[OE-core] any subtle uses for hardcoded /etc instead of ${sysconfdir}?

Robert P. J. Day rpjday at crashcourse.ca
Sat Aug 2 08:13:32 UTC 2014


  occasionally, i run across stuff like this (here, under
recipes-support):

$ grep -r "/etc" nss*
nss/files/nss-CVE-2013-1740.patch:+ *
(SSL_ForceHandshake/PR_Recv/PR_Send/etc.) needed to finish the handshake.
nss/nss.inc:    mkdir -p ${D}/etc/pki/nssdb/
nss/nss.inc:    certutil -N -d ${D}/etc/pki/nssdb/ -f ./empty_password
nss/nss.inc:    chmod 644 ${D}/etc/pki/nssdb/*.db
nss-myhostname/nss-myhostname_0.3.bb:		-i $D/etc/nsswitch.conf
nss-myhostname/nss-myhostname_0.3.bb:		-i $D/etc/nsswitch.conf
$

  is there any reason for hard-coding "/etc" into those filenames,
rather than "${sysconfdir}"? i can submit a quick patch to tweak that,
but i always wonder if there's something subtle going on underneath
that i'm unaware of.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================




More information about the Openembedded-core mailing list