sudo: handle libexecdir != libdir/PN.
PATCH 1/3 sudo: handle libexecdir != libdir/PN.
sudo has somewhat special file installation logic and installs the modules and libraries to $libexecdir/sudo, with special handling for the case when libexecdir already contains /sudo (which it does by default in current oe-core where libexecdir=$libdir/$PN).
As setting libexecdir to /usr/libexec should work, add both possibilities to FILES to be sure the right files are captured, and add INSANE_SKIP for the libdir warning that libraries are outside of /usr/lib/ (arguably, this should be fixed in insane).
--- meta/recipes-extended/sudo/sudo.inc | 5 +++++ meta/recipes-extended/sudo/sudo_1.8.14p3.bb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-)
meta/recipes-extended/sudo/sudo.inc +5 -0
@@ -38,3 +38,8 @@ do_compile_prepend () { do_install_prepend (){ mkdir -p ${D}/${localstatedir}/lib } + +# Sudo insists on putting libraries into libexecdir +INSANE_SKIP_${PN} += "libdir" +INSANE_SKIP_${PN}-dev += "libdir" +INSANE_SKIP_${PN}-dbg += "libdir"
meta/recipes-extended/sudo/sudo_1.8.14p3.bb +2 -1
@@ -33,4 +33,5 @@ do_install_append () { } FILES_${PN} += "${libdir}/tmpfiles.d" -FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/*.la" +FILES_${PN}-dev += "${libexecdir}/${BPN}/lib*${SOLIBSDEV} ${libexecdir}/${BPN}/*.la \ + ${libexecdir}/lib*${SOLIBSDEV} ${libexecdir}/*.la"
Signature · 1 line
2.1.4
PATCH 2/3 glibc: fix libdir/libexecdir path confusion
$libdir/glibc is deleted if it doesn't exist but this is incorrectly assuming what variables are used to create this directory. In fact libexecdir is being used in the Makefile so use that in the recipe too.
This fixes builds where libexecdir is changed.
--- meta/recipes-core/glibc/glibc-package.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-core/glibc/glibc-package.inc +3 -2
@@ -82,9 +82,10 @@ do_install_append () { rm -rf ${D}${localstatedir} # remove empty glibc dir - if [ -d ${D}${libdir}/glibc -a ! -e ${D}${libdir}/glibc/pt_chown ]; then - rmdir ${D}${libdir}/glibc + if [ -d ${D}${libexecdir} ]; then + rmdir --ignore-fail-on-non-empty ${D}${libexecdir} fi + oe_multilib_header bits/syscall.h if [ -f ${D}${bindir}/mtrace ]; then
Signature · 1 line
2.1.4
PATCH 3/3 neard: fix libdir/libexecdir confusion
In reply to Ross BurtonThese binaries are installed to $libexecdir/nfc not $libdir/$BPN.
--- meta/recipes-connectivity/neard/neard_0.15.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/neard/neard_0.15.bb +1 -1
@@ -43,7 +43,7 @@ do_install_append() { PACKAGES =+ "${PN}-tests" FILES_${PN}-tests = "${libdir}/${BPN}/*-test" -FILES_${PN}-dbg += "${libdir}/${BPN}/*/.debug" +FILES_${PN}-dbg += "${libexecdir}/nfc/.debug ${libdir}/${BPN}/*/.debug" RDEPENDS_${PN} = "dbus python python-dbus python-pygobject"
Signature · 1 line
2.1.4