From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from astoria.ccjclearline.com ([64.235.106.9]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Skxr5-0008WQ-S7 for openembedded-core@lists.openembedded.org; Sat, 30 Jun 2012 15:36:56 +0200 Received: from cpec03f0ed08c7f-cm001ac318e826.cpe.net.cable.rogers.com ([99.241.91.63]:35548 helo=crashcourse.ca) by astoria.ccjclearline.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1SkxgW-0003NV-24 for openembedded-core@lists.openembedded.org; Sat, 30 Jun 2012 09:26:00 -0400 Date: Sat, 30 Jun 2012 09:25:57 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@oneiric To: OE Core mailing list Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - astoria.ccjclearline.com X-AntiAbuse: Original Domain - lists.openembedded.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: Subject: is it best practice to use ${sysconfdir} rather than hard-coding "/etc"? 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: Sat, 30 Jun 2012 13:36:56 -0000 Content-Type: TEXT/PLAIN; charset=US-ASCII i suspect i know the answer to this, but in the recipe file usbinit.bb, we have: do_install() { install -d ${D}/etc install -d ${D}/etc/init.d install usb-gether ${D}/etc/init.d } i'm guessing that would more properly be coded: do_install() { install -d ${D}${sysconfdir} install -d ${D}${sysconfdir}/init.d install usb-gether ${D}${sysconfdir}/init.d } the end result is functionally identical, of course, it's all just a matter of style. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================