BASELIB != lib fixes
cover BASELIB != lib fixes
From: Dan McGregor <[email protected]>
These solve a few issues when libdir is /usr/lib64. The commits are also available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib.git dankm/libdir
Daniel McGregor (2):
bitbake.conf: make localedir nonarch
opkg-utils: store alternatives in nonarch_libdir
meta/conf/bitbake.conf | 2 +- meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.7.0
PATCH 1/2 bitbake.conf: make localedir nonarch
From: Daniel McGregor <[email protected]>
systemd and others expect locales to be in nonarch_libdir, regardless of the base library directory.
--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/bitbake.conf +1 -1
@@ -44,7 +44,7 @@ export libdir = "${exec_prefix}/${baselib}" export libexecdir = "${libdir}/${BPN}" export includedir = "${exec_prefix}/include" export oldincludedir = "${exec_prefix}/include" -localedir = "${libdir}/locale" +localedir = "${nonarch_libdir}/locale" # Linkage between native/cross/nativesdk layouts base_bindir_native = "/bin"
Signature · 1 line
2.7.0
PATCH 2/2 opkg-utils: store alternatives in nonarch_libdir
In reply to Dan McGregorFrom: Daniel McGregor <[email protected]>
opkg-utils-native stores alternative info in /usr/lib, so do the same on the target.
--- meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +1 -1
@@ -34,7 +34,7 @@ do_install() { do_install_append_class-target() { if [ -e "${D}${bindir}/update-alternatives" ]; then - sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${libdir},g' + sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${nonarch_libdir},g' fi }
Signature · 1 line
2.7.0
Re: [PATCH 1/2] bitbake.conf: make localedir nonarch
In reply to Dan McGregormeta/conf/bitbake.conf export libdir = "${exec_prefix}/${baselib}" · line 47
Quoted 3 lines · Dan McGregor
meta/conf/bitbake.conf +1
-1-localedir = "${libdir}/locale" +localedir = "${nonarch_libdir}/locale"
As was recently discovered, this variable isn't really used in many places:
$ dpkg -c xz-locale-de_5.2.2-r0.1_corei7-64.ipk|grep mo -rw-r--r-- root/root 26533 2016-01-12 16:50 ./usr/share/locale/de/LC_MESSAGES/xz.mo
I'd suggest that localedir should be ${datadir}/locale, and then any explicit users of ${datadir}/locale/ replaced with ${localedir}.
Ross
Re: [PATCH 1/2] bitbake.conf: make localedir nonarch
Quoted 9 lines · Ross
meta/conf/bitbake.conf export libdir = "${exec_prefix}/${baselib}" · line 47
Quoted 3 lines · Dan McGregor
meta/conf/bitbake.conf +1
-1-localedir = "${libdir}/locale" +localedir = "${nonarch_libdir}/locale"As was recently discovered, this variable isn't really used in many places:
Quoted 7 lines
$ dpkg -c xz-locale-de_5.2.2-r0.1_corei7-64.ipk|grep mo -rw-r--r-- root/root 26533 2016-01-12 16:50 ./usr/share/locale/de/LC_MESSAGES/xz.moI'd suggest that localedir should be ${datadir}/locale, and then any explicit users of ${datadir}/locale/ replaced with ${localedir}.
Isn't the current localedir used for binary locales, whereas datadir/locale is the location of the non-binary locale files? So we'd be changing the meaning/semantics of the variable? Admittedly to a version which would be used in more recipes, but I think we should make it clear that we're changing its meaning in that way, if so.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics