From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1.windriver.com ([147.11.146.13]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SyREn-0007jr-JB for openembedded-core@lists.openembedded.org; Mon, 06 Aug 2012 19:37:05 +0200 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail1.windriver.com (8.14.5/8.14.3) with ESMTP id q76HPJoC009956 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 6 Aug 2012 10:25:19 -0700 (PDT) Received: from msp-dhcp47.wrs.com (172.25.34.47) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.2.309.2; Mon, 6 Aug 2012 10:25:19 -0700 Message-ID: <501FFE06.7060709@windriver.com> Date: Mon, 6 Aug 2012 12:25:26 -0500 From: Mark Hatle Organization: Wind River Systems User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: References: <1344182057-15981-1-git-send-email-javier@dowhile0.org> <1344182057-15981-4-git-send-email-javier@dowhile0.org> In-Reply-To: <1344182057-15981-4-git-send-email-javier@dowhile0.org> Subject: Re: [PATCH 03/30] lsbsetup: use ${bindir} instead of /usr/bin for packaging 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, 06 Aug 2012 17:37:06 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 8/5/12 10:53 AM, Javier Martinez Canillas wrote: > It is considered good practice to use the build system provided > variables instead of directly specify hardcoded paths. > > Signed-off-by: Javier Martinez Canillas > --- > meta/recipes-extended/lsb/lsbsetup_1.0.bb | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/meta/recipes-extended/lsb/lsbsetup_1.0.bb b/meta/recipes-extended/lsb/lsbsetup_1.0.bb > index 9172ee3..bda4589 100644 > --- a/meta/recipes-extended/lsb/lsbsetup_1.0.bb > +++ b/meta/recipes-extended/lsb/lsbsetup_1.0.bb > @@ -11,9 +11,9 @@ S = "${WORKDIR}" > > do_install() { > # Only install file if it has a contents > - install -d ${D}/usr/bin > + install -d ${D}${bindir} the LSB required /usr/bin, I think. So this might be one of the few cases were specifying /usr/bin is acceptable. (but I'm not against the change) --Mark > install -d ${D}/${sysconfdir} > - install -m 0755 ${S}/LSB_Setup.sh ${D}/usr/bin > + install -m 0755 ${S}/LSB_Setup.sh ${D}${bindir} > install -d ${D}/${libdir}/lsb > ln -sf ${base_sbindir}/chkconfig ${D}/${libdir}/lsb/install_initd > ln -sf ${base_sbindir}/chkconfig ${D}/${libdir}/lsb/remove_initd >