Add eglibc-pic, resync eglibc-dev with glibc
PATCH 1/1 Add eglibc-pic, resync eglibc-dev with glibc
eglibc-package.bbclass: Add eglibc-pic, resync eglibc-dev with glibc
Resync what goes into eglibc-dev based on what we have in glibc-dev. This includes zoneinfo and picking up the reset of the static libraries (many are missed otherwise and static linking in SDKs fails). We add in a eglibc-pic package to catch all of the pic stuff (some of which would otherwise be caught in -dev).
Will bump PRs when I push this.
(quoted diff) +0 -0
b/recipes/eglibc/eglibc-package.bbclass
index 3c33f93..9c660b4 100644
recipes/eglibc/eglibc-package.bbclass +0 -0
@@ -29,11 +29,12 @@ BINARY_LOCALE_ARCHES ?= "arm.* i[3-6]86 x86_64
powerpc"
# Set this to zero if you don't want ldconfig in the output package USE_LDCONFIG ?= "1"
-PACKAGES = "eglibc-dbg eglibc catchsegv sln nscd ldd localedef eglibc-utils eglibc-dev eglibc-doc eglibc-locale libsegfault eglibc-extra-nss eglibc-thread-db eglibc-pcprofile" +PACKAGES = "eglibc-dbg eglibc catchsegv sln nscd ldd localedef eglibc-utils eglibc-pic eglibc-dev eglibc-doc eglibc-locale libcidn libmemusage libsegfault eglibc-extra-nss eglibc-thread-db eglibc-pcprofile"
PACKAGES_DYNAMIC = "glibc-gconv-* glibc-charmap-* glibc-localedata-*
glibc-binary-localedata-* eglibc-gconv-* eglibc-charmap-* eglibc-localedata-* eglibc-binary-localedata-* locale-base-*"
RPROVIDES_eglibc = "glibc"
RPROVIDES_eglibc-utils = "glibc-utils"
+RPROVIDES_eglibc-pic = "glibc-pic"
RPROVIDES_eglibc-dev = "glibc-dev"
RPROVIDES_eglibc-doc = "glibc-doc"
RPROVIDES_eglibc-locale = "glibc-locale"
@@ -43,12 +44,16 @@ RPROVIDES_eglibc-pcprofile = "glibc-pcprofile"
RPROVIDES_eglibc-dbg = "glibc-dbg"
libc_baselibs = "${base_libdir}/libcrypt*.so.*
${base_libdir}/libcrypt-*.so ${base_libdir}/libc*.so.* ${base_libdir}/libc*.so ${base_libdir}/libm*.so.* ${base_libdir}/libm-*.so ${base_libdir}/ld*.so.* ${base_libdir}/ld-*.so ${base_libdir}/libpthread*.so.* ${base_libdir}/libpthread-*.so ${base_libdir}/libresolv*.so.* ${base_libdir}/libresolv-*.so ${base_libdir}/librt*.so.* ${base_libdir}/librt-*.so ${base_libdir}/libutil*.so.* ${base_libdir}/libutil-*.so ${base_libdir}/libnsl*.so.* ${base_libdir}/libnsl-*.so ${base_libdir}/libnss_files*.so.* ${base_libdir}/libnss_files-*.so ${base_libdir}/libnss_compat*.so.* ${base_libdir}/libnss_compat-*.so ${base_libdir}/libnss_dns*.so.* ${base_libdir}/libnss_dns-*.so ${base_libdir}/libdl*.so.* ${base_libdir}/libdl-*.so ${base_libdir}/libanl*.so.* ${base_libdir}/libanl-*.so ${base_libdir}/libBrokenLocale*.so.* ${base_libdir}/libBrokenLocale-*.so"
-FILES_${PN} = "${libc_baselibs} ${libexecdir}/* ${@base_conditional('USE_LDCONFIG', '1', '${base_sbindir}/ldconfig', '', d)}"
+FILES_${PN} = "${libc_baselibs} ${libexecdir}/* ${datadir}/zoneinfo ${@base_conditional('USE_LDCONFIG', '1', '${base_sbindir}/ldconfig', '', d)}"
FILES_ldd = "${bindir}/ldd"
FILES_libsegfault = "${base_libdir}/libSegFault*"
+FILES_libcidn = "${base_libdir}/libcidn*.so" +FILES_libmemusage = "${base_libdir}/libmemusage.so"
FILES_eglibc-extra-nss = "${base_libdir}/libnss*"
FILES_sln = "/sbin/sln"
-FILES_eglibc-dev_append = " ${libdir}/*.o ${bindir}/rpcgen ${libdir}/libc_nonshared.a ${libdir}/libpthread_nonshared.a" +FILES_eglibc-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/"
+FILES_eglibc-dev_append += "${bindir}/rpcgen ${libdir}/*.a \
+ ${base_libdir}/*.a ${base_libdir}/*.o ${datadir}/aclocal"
FILES_nscd = "${sbindir}/nscd*"
FILES_eglibc-utils = "${bindir}/* ${sbindir}/*" FILES_eglibc-gconv = "${libdir}/gconv/*"
@@ -95,7 +100,6 @@ do_install() {
mv ${WORKDIR}/SUPPORTED.tmp ${WORKDIR}/SUPPORTED
done
rm -f ${D}/etc/rpc
- rm -rf ${D}${datadir}/zoneinfo
rm -rf ${D}${libexecdir}/getconf
}
Signature · 2 lines
Tom Rini <[email protected]> Mentor Graphics Corporation
Quoted 80 lines · Tom Rini
eglibc-package.bbclass: Add eglibc-pic, resync eglibc-dev with glibc
Resync what goes into eglibc-dev based on what we have in glibc-dev. This includes zoneinfo and picking up the reset of the static libraries (many are missed otherwise and static linking in SDKs fails). We add in a eglibc-pic package to catch all of the pic stuff (some of which would otherwise be caught in -dev).
Will bump PRs when I push this.
Signed-off-by Tom Rini <[email protected]>recipes/eglibc/eglibc-package.bbclass +0
-0@@ -29,11 +29,12 @@ BINARY_LOCALE_ARCHES ?= "arm.* i[3-6]86 x86_64powerpc"
# Set this to zero if you don't want ldconfig in the output packageUSE_LDCONFIG?= "1"-PACKAGES = "eglibc-dbg eglibc catchsegv sln nscd ldd localedef eglibc-utils eglibc-dev eglibc-doc eglibc-locale libsegfault eglibc-extra-nss eglibc-thread-db eglibc-pcprofile" +PACKAGES = "eglibc-dbg eglibc catchsegv sln nscd ldd localedef eglibc-utils eglibc-pic eglibc-dev eglibc-doc eglibc-locale libcidn libmemusage libsegfault eglibc-extra-nss eglibc-thread-db eglibc-pcprofile"
PACKAGES_DYNAMIC = "glibc-gconv-* glibc-charmap-* glibc-localedata-* glibc-binary-localedata-* eglibc-gconv-* eglibc-charmap-* eglibc-localedata-* eglibc-binary-localedata-* locale-base-*"RPROVIDES_eglibc = "glibc"
RPROVIDES_eglibc-utils = "glibc-utils"
+RPROVIDES_eglibc-pic = "glibc-pic"
RPROVIDES_eglibc-dev = "glibc-dev"
RPROVIDES_eglibc-doc = "glibc-doc"
RPROVIDES_eglibc-locale = "glibc-locale"recipes/eglibc/eglibc-package.bbclass +0
-0@@ -43,12 +44,16 @@ RPROVIDES_eglibc-pcprofile = "glibc-pcprofile"RPROVIDES_eglibc-dbg = "glibc-dbg"
libc_baselibs = "${base_libdir}/libcrypt*.so.* ${base_libdir}/libcrypt-*.so ${base_libdir}/libc*.so.* ${base_libdir}/libc*.so ${base_libdir}/libm*.so.* ${base_libdir}/libm-*.so ${base_libdir}/ld*.so.* ${base_libdir}/ld-*.so ${base_libdir}/libpthread*.so.* ${base_libdir}/libpthread-*.so ${base_libdir}/libresolv*.so.* ${base_libdir}/libresolv-*.so ${base_libdir}/librt*.so.* ${base_libdir}/librt-*.so ${base_libdir}/libutil*.so.* ${base_libdir}/libutil-*.so ${base_libdir}/libnsl*.so.* ${base_libdir}/libnsl-*.so ${base_libdir}/libnss_files*.so.* ${base_libdir}/libnss_files-*.so ${base_libdir}/libnss_compat*.so.* ${base_libdir}/libnss_compat-*.so ${base_libdir}/libnss_dns*.so.* ${base_libdir}/libnss_dns-*.so ${base_libdir}/libdl*.so.* ${base_libdir}/libdl-*.so ${base_libdir}/libanl*.so.* ${base_libdir}/libanl-*.so ${base_libdir}/libBrokenLocale*.so.* ${base_libdir}/libBrokenLocale-*.so"-FILES_${PN} = "${libc_baselibs} ${libexecdir}/* ${@base_conditional('USE_LDCONFIG', '1', '${base_sbindir}/ldconfig', '', d)}"
+FILES_${PN} = "${libc_baselibs} ${libexecdir}/* ${datadir}/zoneinfo ${@base_conditional('USE_LDCONFIG', '1', '${base_sbindir}/ldconfig', '', d)}"
FILES_ldd = "${bindir}/ldd"
FILES_libsegfault = "${base_libdir}/libSegFault*"recipes/eglibc/eglibc-package.bbclass +2
-0+FILES_libcidn = "${base_libdir}/libcidn*.so" +FILES_libmemusage = "${base_libdir}/libmemusage.so"FILES_eglibc-extra-nss = "${base_libdir}/libnss*"
FILES_sln= "/sbin/sln"
-FILES_eglibc-dev_append = " ${libdir}/*.o ${bindir}/rpcgen ${libdir}/libc_nonshared.a ${libdir}/libpthread_nonshared.a" +FILES_eglibc-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/"
+FILES_eglibc-dev_append += "${bindir}/rpcgen ${libdir}/*.a \
+ ${base_libdir}/*.a ${base_libdir}/*.o ${datadir}/aclocal"FILES_nscd= "${sbindir}/nscd*"
FILES_eglibc-utils = "${bindir}/* ${sbindir}/*" FILES_eglibc-gconv = "${libdir}/gconv/*"recipes/eglibc/eglibc-package.bbclass +0
-0@@ -95,7 +100,6 @@ do_install() {
Quoted 9 lines
mv ${WORKDIR}/SUPPORTED.tmp ${WORKDIR}/SUPPORTED done
rm -f ${D}/etc/rpc
- rm -rf ${D}${datadir}/zoneinfo
rm -rf ${D}${libexecdir}/getconf
}
Why is change to not delete zoneinfo needed ? these should be provided by tzdata
for other changes
Quoted 4 lines
--
Tom Rini <[email protected]>
Mentor Graphics Corporation
Quoted 85 lines · Khem Raj
Quoted 84 lines · Tom Rini
eglibc-package.bbclass: Add eglibc-pic, resync eglibc-dev with glibc
Resync what goes into eglibc-dev based on what we have in glibc-dev. This includes zoneinfo and picking up the reset of the static libraries (many are missed otherwise and static linking in SDKs fails). We add in a eglibc-pic package to catch all of the pic stuff (some of which would otherwise be caught in -dev).
Will bump PRs when I push this.
Signed-off-by Tom Rini <[email protected]>recipes/eglibc/eglibc-package.bbclass +0
-0@@ -29,11 +29,12 @@ BINARY_LOCALE_ARCHES ?= "arm.* i[3-6]86 x86_64powerpc"
# Set this to zero if you don't want ldconfig in the output packageUSE_LDCONFIG?= "1"-PACKAGES = "eglibc-dbg eglibc catchsegv sln nscd ldd localedef eglibc-utils eglibc-dev eglibc-doc eglibc-locale libsegfault eglibc-extra-nss eglibc-thread-db eglibc-pcprofile" +PACKAGES = "eglibc-dbg eglibc catchsegv sln nscd ldd localedef eglibc-utils eglibc-pic eglibc-dev eglibc-doc eglibc-locale libcidn libmemusage libsegfault eglibc-extra-nss eglibc-thread-db eglibc-pcprofile"
PACKAGES_DYNAMIC= "glibc-gconv-* glibc-charmap-* glibc-localedata-*
glibc-binary-localedata-* eglibc-gconv-* eglibc-charmap-* eglibc-localedata-* eglibc-binary-localedata-* locale-base-*"
RPROVIDES_eglibc= "glibc"
RPROVIDES_eglibc-utils = "glibc-utils"recipes/eglibc/eglibc-package.bbclass +1
-0+RPROVIDES_eglibc-pic = "glibc-pic" RPROVIDES_eglibc-dev = "glibc-dev" RPROVIDES_eglibc-doc = "glibc-doc" RPROVIDES_eglibc-locale = "glibc-locale"@@ -43,12 +44,16 @@ RPROVIDES_eglibc-pcprofile = "glibc-pcprofile" RPROVIDES_eglibc-dbg = "glibc-dbg" libc_baselibs = "${base_libdir}/libcrypt*.so.*${base_libdir}/libcrypt-*.so ${base_libdir}/libc*.so.* ${base_libdir}/libc*.so ${base_libdir}/libm*.so.* ${base_libdir}/libm-*.so ${base_libdir}/ld*.so.* ${base_libdir}/ld-*.so ${base_libdir}/libpthread*.so.* ${base_libdir}/libpthread-*.so ${base_libdir}/libresolv*.so.* ${base_libdir}/libresolv-*.so ${base_libdir}/librt*.so.* ${base_libdir}/librt-*.so ${base_libdir}/libutil*.so.* ${base_libdir}/libutil-*.so ${base_libdir}/libnsl*.so.* ${base_libdir}/libnsl-*.so ${base_libdir}/libnss_files*.so.* ${base_libdir}/libnss_files-*.so ${base_libdir}/libnss_compat*.so.* ${base_libdir}/libnss_compat-*.so ${base_libdir}/libnss_dns*.so.* ${base_libdir}/libnss_dns-*.so ${base_libdir}/libdl*.so.* ${base_libdir}/libdl-*.so ${base_libdir}/libanl*.so.* ${base_libdir}/libanl-*.so ${base_libdir}/libBrokenLocale*.so.* ${base_libdir}/libBrokenLocale-*.so"
-FILES_${PN} = "${libc_baselibs} ${libexecdir}/* ${@base_conditional('USE_LDCONFIG', '1', '${base_sbindir}/ldconfig', '', d)}"
+FILES_${PN} = "${libc_baselibs} ${libexecdir}/* ${datadir}/zoneinfo ${@base_conditional('USE_LDCONFIG', '1', '${base_sbindir}/ldconfig', '', d)}"
FILES_ldd= "${bindir}/ldd"
FILES_libsegfault= "${base_libdir}/libSegFault*"recipes/eglibc/eglibc-package.bbclass +2
-1+FILES_libcidn = "${base_libdir}/libcidn*.so" +FILES_libmemusage = "${base_libdir}/libmemusage.so" FILES_eglibc-extra-nss = "${base_libdir}/libnss*" FILES_sln = "/sbin/sln" -FILES_eglibc-dev_append = " ${libdir}/*.o ${bindir}/rpcgen${libdir}/libc_nonshared.a ${libdir}/libpthread_nonshared.a" +FILES_eglibc-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/"
recipes/eglibc/eglibc-package.bbclass +2
-1+FILES_eglibc-dev_append += "${bindir}/rpcgen ${libdir}/*.a \ + ${base_libdir}/*.a ${base_libdir}/*.o ${datadir}/aclocal" FILES_nscd = "${sbindir}/nscd*" FILES_eglibc-utils = "${bindir}/* ${sbindir}/*" FILES_eglibc-gconv = "${libdir}/gconv/*"@@ -95,7 +100,6 @@ do_install() { mv ${WORKDIR}/SUPPORTED.tmp ${WORKDIR}/SUPPORTED done rm -f ${D}/etc/rpc - rm -rf ${D}${datadir}/zoneinfo
Quoted 8 lines
recipes/eglibc/eglibc-package.bbclass do_install() { · line 105
Quoted 5 lines
recipes/eglibc/eglibc-package.bbclass +0
-0rm -rf ${D}${libexecdir}/getconf }Why is change to not delete zoneinfo needed ? these should be provided by tzdata
If we really want, OK, I'll drop that part out.
Quoted 8 lines
for other changes
Acked-by Khem Raj <[email protected]>Quoted 4 lines
--
Tom Rini <[email protected]>
Mentor Graphics Corporation
Signature · 2 lines
Tom Rini <[email protected]> Mentor Graphics Corporation
Quoted 7 lines · Tom Rini
eglibc-package.bbclass: Add eglibc-pic, resync eglibc-dev with glibc
Resync what goes into eglibc-dev based on what we have in glibc-dev. This includes zoneinfo and picking up the reset of the static libraries (many are missed otherwise and static linking in SDKs fails). We add in a eglibc-pic package to catch all of the pic stuff (some of which would otherwise be caught in -dev).
It is a bit of a shame that eglibc doesn't reuse more of the glibc packaging logic, as opposed to having its own copies of everything. I wonder if there is a way that this could be improved.
p.
Quoted 9 lines · Phil Blundell
Quoted 7 lines · Tom Rini
eglibc-package.bbclass: Add eglibc-pic, resync eglibc-dev with glibc
Resync what goes into eglibc-dev based on what we have in glibc-dev. This includes zoneinfo and picking up the reset of the static libraries (many are missed otherwise and static linking in SDKs fails). We add in a eglibc-pic package to catch all of the pic stuff (some of which would otherwise be caught in -dev).
Quoted 3 lines
It is a bit of a shame that eglibc doesn't reuse more of the glibc packaging logic, as opposed to having its own copies of everything. I wonder if there is a way that this could be improved.
Khem said no as he plans for eglibc to look more uclibc-like, roughly.
Signature · 2 lines
Tom Rini <[email protected]> Mentor Graphics Corporation