]> code.ossystems Code Review - openembedded-core.git/commitdiff
libc locale split: fix some remaining problems
authorKoen Kooi <koen@dominion.thruhere.net>
Wed, 29 Jun 2011 12:00:23 +0000 (14:00 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Jun 2011 13:27:53 +0000 (14:27 +0100)
* libc-{common,package}.bbclass: fix shlib renaming for the C library
Without this you'd end up with eglibc_2.12.ipk instead of libc6_2.12.ipk as before

* eglibc-locale: don't make versions go backwards after split from eglibc
eglibc was way beyond PR = "r1" at the time of the split, so increase PR to make package upgrades work

[RP: Fixup PR merge conflict]
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/libc-common.bbclass
meta/classes/libc-package.bbclass
meta/recipes-core/eglibc/eglibc-locale.inc
meta/recipes-core/eglibc/eglibc-package.inc

index bae0ace8908d4cb8f6f0bed12ec71d6366fffae6..5e932051a2a710f18f126796e39401f2dbc91a87 100644 (file)
@@ -21,3 +21,10 @@ def get_libc_fpu_setting(bb, d):
     if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
         return "--without-fp"
     return ""
+
+python populate_packages_prepend () {
+       if bb.data.getVar('DEBIAN_NAMES', d, 1):
+               bpn = bb.data.getVar('BPN', d, 1)
+               bb.data.setVar('PKG_'+bpn, 'libc6', d)
+               bb.data.setVar('PKG_'+bpn+'-dev', 'libc6-dev', d)
+}
index ff92afb1798ca49272a33a4a8dfffd0333430e15..7cfeb7de4569f613214154c41f5bee080d68d65d 100644 (file)
@@ -369,9 +369,6 @@ python package_do_split_gconvs () {
 # We want to do this indirection so that we can safely 'return'
 # from the called function even though we're prepending
 python populate_packages_prepend () {
-       if bb.data.getVar('DEBIAN_NAMES', d, 1):
-               bpn = bb.data.getVar('BPN', d, 1)
-               bb.data.setVar('PKG_'+bpn, 'libc6', d)
-               bb.data.setVar('PKG_'+bpn+'-dev', 'libc6-dev', d)
        bb.build.exec_func('package_do_split_gconvs', d)
 }
+
index c84f03292bf8e59365ff7ccceb2e82f0accb0f65..00cccc017545ad1be76c70c21dde86ca4fa4f3de 100644 (file)
@@ -26,7 +26,7 @@ BINARY_LOCALE_ARCHES ?= "arm.* i[3-6]86 x86_64 powerpc mips"
 # set "0" for qemu emulation of native localedef for locale generation
 LOCALE_GENERATION_WITH_CROSS-LOCALEDEF = "1"
 
-PR = "r2"
+PR = "r16"
 
 PKGSUFFIX = ""
 PKGSUFFIX_virtclass-nativesdk = "-nativesdk"
index 831835612ec5a4b6d006209247f59c5a389ced98..8228484815ba9e0860daa18f65ade80e4d86ee2c 100644 (file)
@@ -90,21 +90,13 @@ inherit libc-common
 
 do_install_locale () {
        dest=${D}/${includedir}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS}
-       install -d ${dest}${base_libdir} ${dest}${bindir} ${dest}${libdir} ${dest}${datadir}
-       cp -fpPR ${D}${base_libdir}/* ${dest}${base_libdir}
-       cp -fpP ${D}${bindir}/localedef ${dest}${bindir}
-        mv ${D}${libdir}/gconv ${dest}${libdir}
-       cp -fpPR ${D}${libdir}/* ${dest}${libdir}
-        mv ${D}${datadir}/i18n ${dest}${datadir}
-       cp -fpPR ${D}${datadir}/* ${dest}${datadir}
+       install -d ${dest} ${dest}${bindir}
+       cp -fpPR ${D}${base_libdir} ${dest}${base_prefix}
+       cp -fpPR ${D}${libdir} ${dest}${exec_prefix}
+       cp -fpPR ${D}${datadir} ${dest}${exec_prefix}
+       cp -fpPR ${D}${bindir}/localedef ${dest}${bindir}
        cp -fpPR ${WORKDIR}/SUPPORTED ${dest}
 }
 
 addtask do_install_locale after do_install before do_populate_sysroot
 
-PACKAGE_PREPROCESS_FUNCS += "eglibc_package_preprocess"
-
-eglibc_package_preprocess () {
-       rm -rf ${PKGD}/${includedir}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS}
-}
-