From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SfYAX-00081n-Jp for openembedded-core@lists.openembedded.org; Fri, 15 Jun 2012 17:10:38 +0200 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q5FExx8V014614; Fri, 15 Jun 2012 15:59:59 +0100 Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13532-10; Fri, 15 Jun 2012 15:59:55 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q5FExqw0014608 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Jun 2012 15:59:53 +0100 Message-ID: <1339772393.7261.6.camel@ted> From: Richard Purdie To: Patches and discussions about the oe-core layer Date: Fri, 15 Jun 2012 15:59:53 +0100 In-Reply-To: References: X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 X-Virus-Scanned: amavisd-new at rpsys.net Cc: Zhenfeng.Zhao@windriver.com 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: Fri, 15 Jun 2012 15:10:38 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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 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 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 = "SysV init scripts which only is used in an LSB image" > SECTION = "base" > LICENSE = "GPLv2" > DEPENDS = "popt" > -PR = "r0" > +PR = "r1" > > LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6" > > @@ -25,3 +25,9 @@ do_install(){ > install -d ${D}/etc/init.d/ > install -m 0755 ${S}/rc.d/init.d/functions ${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 this be put under control for update-alternatives too or something? Cheers, Richard