From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.windriver.com ([147.11.1.11]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SgSUh-0002Sl-JA for openembedded-core@lists.openembedded.org; Mon, 18 Jun 2012 05:19:11 +0200 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id q5I38TU1016990 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sun, 17 Jun 2012 20:08:29 -0700 (PDT) Received: from [128.224.162.223] (128.224.162.223) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.1.255.0; Sun, 17 Jun 2012 20:08:29 -0700 Message-ID: <4FDE9BAA.2000602@windriver.com> Date: Mon, 18 Jun 2012 11:08:26 +0800 From: Xiaofeng Yan User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: References: <1339772393.7261.6.camel@ted> <4FDE9912.60406@windriver.com> In-Reply-To: <4FDE9912.60406@windriver.com> X-Originating-IP: [128.224.162.223] X-MIME-Autoconverted: from 8bit to quoted-printable by mail.windriver.com id q5I38TU1016990 Subject: Re: [PATCH 2/3] lsbinitscripts: Remove original /etc/init.d/functions when building an lsb image X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2012 03:19:12 -0000 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable On 2012=E5=B9=B406=E6=9C=8818=E6=97=A5 10:57, Xiaofeng Yan wrote: > On 2012=E5=B9=B406=E6=9C=8815=E6=97=A5 22:59, Richard Purdie wrote: >> On Fri, 2012-06-15 at 17:30 +0800, xiaofeng.yan@windriver.com wrote: >>> From: Xiaofeng Yan >>> >>> The linking will fail when an original functions exist. So remove the >>> original functions when building an lsb image and make functions=20 >>> linking to >>> functions.lsbinitscripts successfully. >>> >>> [YOCTO #2133] >>> >>> Signed-off-by: Xiaofeng Yan >>> --- >>> meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 8 +++++++- >>> 1 file changed, 7 insertions(+), 1 deletion(-) >>> >>> diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb=20 >>> b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb >>> index dd92a92..73bea2f 100644 >>> --- a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb >>> +++ b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb >>> @@ -2,7 +2,7 @@ DESCRIPTION =3D "SysV init scripts which only is used= =20 >>> in an LSB image" >>> SECTION =3D "base" >>> LICENSE =3D "GPLv2" >>> DEPENDS =3D "popt" >>> -PR =3D "r0" >>> +PR =3D "r1" >>> >>> LIC_FILES_CHKSUM =3D=20 >>> "file://COPYING;md5=3Debf4e8b49780ab187d51bd26aaa022c6" >>> >>> @@ -25,3 +25,9 @@ do_install(){ >>> install -d ${D}/etc/init.d/ >>> install -m 0755 ${S}/rc.d/init.d/functions=20 >>> ${D}/etc/init.d/functions >>> } >>> + >>> +pkg_postinst_${PN} () { >>> + if [ -f "/etc/init.d/functions" ]; then >>> + rm -f /etc/init.d/functions >>> + fi >>> +} >> This looks highly suspicious to me. Shouldn't the other provider of th= is >> be put under control for update-alternatives too or something? > Thanks for your comments. > the other provider of this is from initscripts_1.0.bb, installing all=20 > of init-scripts in the stage of installing without using=20 > update-alternatives. So the functions is a file instead of linking=20 > mode. An error appear when lsbinicscritps replace initscripts if not=20 > removing file functions. So I remove the original functions for making=20 > the latter linking successfully. What is the purpose is for avoiding=20 > to modify the other non-lsb bb files. The changes of this will be only=20 > in lsb image. Can we add the removing function if not a linking when using=20 update-alternatives ? > Thanks > Yan >> Cheers, >> >> Richard >> >> >> _______________________________________________ >> Openembedded-core mailing list >> Openembedded-core@lists.openembedded.org >> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core >> > > > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core