wanted to expand on the explanation of post-install scripts using
examples out of OE/YP layers, and ran across this oddity in
meta-openembedded/meta-networking, in quagga.inc.
here's what's at line 146:
pkg_postinst_${PN} () {
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd sysvinit', 'true',
'false', d)}; then
if [ -n "$D" ]; then
OPTS="--root=$D"
fi
systemctl $OPTS mask quagga.service
fi
}
but here's what's further down at line 204:
pkg_postinst_${PN} () {
if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
${sysconfdir}/init.d/populate-volatile.sh update
fi
}
where the second definition appears to override the first one. is
there some magic regarding defining two pkg_postinst() routines for
the same package? or is that just an oversight?
rday
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#137092):
https://lists.openembedded.org/g/openembedded-core/message/137092
Mute This Topic: https://lists.openembedded.org/mt/72853277/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-