From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com ([143.182.124.21]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1TgIOu-0002rQ-Rh for openembedded-devel@lists.openembedded.org; Wed, 05 Dec 2012 18:04:50 +0100 Received: from azsmga002.ch.intel.com ([10.2.17.35]) by azsmga101.ch.intel.com with ESMTP; 05 Dec 2012 08:50:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,223,1355126400"; d="scan'208";a="176539331" Received: from unknown (HELO helios.localnet) ([10.252.122.253]) by AZSMGA002.ch.intel.com with ESMTP; 05 Dec 2012 08:50:22 -0800 From: Paul Eggleton To: openembedded-devel@lists.openembedded.org Date: Wed, 05 Dec 2012 16:50:22 +0000 Message-ID: <2884756.H4dIPRv7bS@helios> Organization: Intel Corporation User-Agent: KMail/4.9.3 (Linux/3.5.0-19-generic; KDE/4.9.3; i686; ; ) In-Reply-To: <1354725450-11856-1-git-send-email-paul.eggleton@linux.intel.com> References: <1354725450-11856-1-git-send-email-paul.eggleton@linux.intel.com> MIME-Version: 1.0 Subject: Re: [meta-networking][PATCH] proftpd: conditionally remove /usr/libexec X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2012 17:04:50 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Wednesday 05 December 2012 16:37:30 Paul Eggleton wrote: > From: Kevin Strasser > > As of poky commit id 1d18224b24a515a07170ce36dbd725cb203d3300 > libexecdir has been changed to ${libdir}/${BPN} which is typically > /usr/lib. This change introduces a check to see if /usr/libexec is > being used before attempting to remove it. > > Fixes [YOCTO #3504] > > Signed-off-by: Kevin Strasser > --- > meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb > b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb index > 8624c16..ec943b7 100644 > --- a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb > +++ b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb > @@ -34,7 +34,10 @@ FTPGROUP = "ftp" > > do_install () { > oe_runmake DESTDIR=${D} install > - rmdir ${D}${libexecdir} ${D}${libdir}/proftpd ${D}${datadir}/locale > + rmdir ${D}${libdir}/proftpd ${D}${datadir}/locale > + if [ -d ${D}/usr/libexec ] ; then > + rmdir ${D}/usr/libexec > + fi > sed -i '/ *User[ \t]*/s/ftp/${FTPUSER}/' ${D}${sysconfdir}/proftpd.conf > sed -i '/ *Group[ \t]*/s/ftp/${FTPGROUP}/' ${D}${sysconfdir}/proftpd.conf > install -d ${D}${sysconfdir}/init.d Hmm, this fixes the build failure with master but I think there is a slightly better fix that handles a custom ${libexecdir}. I will send a v2. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre