Skip to contentSkip to conversation

any subtle uses for hardcoded /etc instead of ${sysconfdir}?

DISCUSSION Robert P. J. Day 2 participants 2 messages Aug 2, 2014

lore
Share & tools
lore
#0 lore raw

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

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 13 lines · Robert P. J. Day

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
$
Quoted 4 lines

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.

Not that I can think of offhand.

Cheers,

Richard