bitbake: set libexecdir to prefix/libexec
RFC PATCH 1/1 bitbake: set libexecdir to prefix/libexec
Hi,
This is very much a RFC as currently systemd images with this fail to boot (logind fails to start), but once that is sorted I really want to see this merged.
tl;dr: our definition of libexecdir is fundamentally wrong because it embeds $BPN. The prevailing trend (and default in GNU tools) is to use /usr/libexec, so this patch changes it.
Ross
--- meta/conf/bitbake.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/conf/bitbake.conf +2 -2
@@ -41,7 +41,7 @@ export systemd_user_unitdir = "${nonarch_libdir}/systemd/user" export bindir = "${exec_prefix}/bin" export sbindir = "${exec_prefix}/sbin" export libdir = "${exec_prefix}/${baselib}" -export libexecdir = "${libdir}/${BPN}" +export libexecdir = "${exec_prefix}/libexec" export includedir = "${exec_prefix}/include" export oldincludedir = "${exec_prefix}/include" localedir = "${libdir}/locale"
@@ -55,7 +55,7 @@ bindir_native = "${prefix_native}/bin" sbindir_native = "${prefix_native}/sbin" includedir_native = "${prefix_native}/include" libdir_native = "${prefix_native}/lib" -libexecdir_native = "${libdir_native}/${BPN}" +libexecdir_native = "${prefix_native}/libexec" base_libdir_native = "/lib" datadir_native = "${prefix_native}/share" bindir_cross = "/bin"
Signature · 1 line
2.1.4
Quoted 6 lines · Ross Burton
tl;dr: our definition of libexecdir is fundamentally wrong because it embeds
$BPN. The prevailing trend (and default in GNU tools) is to use/usr/libexec,
so this patch changes it.
I assume we can expect a patch from Saul in another three years to change it back again. Plus ca change... :-}
More seriously though, I think this is a good change. I have had essentially this patch locally ever since it was most recently changed in the other direction, and there never seemed to be any very compelling reason for the BPN-based version.
p.