summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc-package.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-package.inc')
-rw-r--r--meta/recipes-core/eglibc/eglibc-package.inc24
1 files changed, 18 insertions, 6 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc
index 0059bcfc1c..79c43f15be 100644
--- a/meta/recipes-core/eglibc/eglibc-package.inc
+++ b/meta/recipes-core/eglibc/eglibc-package.inc
@@ -17,7 +17,7 @@ python __anonymous () {
17# Set this to zero if you don't want ldconfig in the output package 17# Set this to zero if you don't want ldconfig in the output package
18USE_LDCONFIG ?= "1" 18USE_LDCONFIG ?= "1"
19 19
20PACKAGES = "${PN}-dbg catchsegv sln nscd ldd ${PN}-mtrace ${PN}-utils eglibc-thread-db ${PN}-pic libcidn libmemusage libsegfault ${PN}-pcprofile libsotruss ${PN} eglibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc" 20PACKAGES = "${PN}-dbg catchsegv sln nscd ldd ${PN}-utils eglibc-thread-db ${PN}-pic libcidn libmemusage libsegfault ${PN}-pcprofile libsotruss ${PN} eglibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"
21 21
22# The ld.so in this eglibc supports the GNU_HASH 22# The ld.so in this eglibc supports the GNU_HASH
23RPROVIDES_${PN} = "glibc rtld(GNU_HASH)" 23RPROVIDES_${PN} = "glibc rtld(GNU_HASH)"
@@ -51,8 +51,6 @@ FILES_${PN}-utils = "${bindir}/* ${sbindir}/*"
51FILES_${PN}-dbg += "${libexecdir}/*/.debug ${libdir}/audit/.debug" 51FILES_${PN}-dbg += "${libexecdir}/*/.debug ${libdir}/audit/.debug"
52FILES_catchsegv = "${bindir}/catchsegv" 52FILES_catchsegv = "${bindir}/catchsegv"
53RDEPENDS_catchsegv = "libsegfault" 53RDEPENDS_catchsegv = "libsegfault"
54RDEPENDS_${PN}-utils += "bash"
55RDEPENDS_${PN}-mtrace += "perl"
56FILES_${PN}-pcprofile = "${base_libdir}/libpcprofile.so" 54FILES_${PN}-pcprofile = "${base_libdir}/libpcprofile.so"
57FILES_eglibc-thread-db = "${base_libdir}/libthread_db.so.* ${base_libdir}/libthread_db-*.so" 55FILES_eglibc-thread-db = "${base_libdir}/libthread_db.so.* ${base_libdir}/libthread_db-*.so"
58RPROVIDES_${PN}-dev += "libc-dev" 56RPROVIDES_${PN}-dev += "libc-dev"
@@ -65,11 +63,9 @@ DESCRIPTION_nscd = "nscd, name service cache daemon, caches name service lookups
65SUMMARY_eglibc-extra-nss = "hesiod, NIS and NIS+ nss libraries" 63SUMMARY_eglibc-extra-nss = "hesiod, NIS and NIS+ nss libraries"
66DESCRIPTION_eglibc-extra-nss = "eglibc: nis, nisplus and hesiod search services." 64DESCRIPTION_eglibc-extra-nss = "eglibc: nis, nisplus and hesiod search services."
67SUMMARY_ldd = "print shared library dependencies" 65SUMMARY_ldd = "print shared library dependencies"
68DESCRIPTION_ldd = "/usr/bin/ldd prints shared library dependencies for each program or shared library specified on the command line." 66DESCRIPTION_ldd = "${bindir}/ldd prints shared library dependencies for each program or shared library specified on the command line."
69SUMMARY_${PN}-utils = "Miscellaneous utilities provided by eglibc" 67SUMMARY_${PN}-utils = "Miscellaneous utilities provided by eglibc"
70DESCRIPTION_${PN}-utils = "Miscellaneous utilities including getconf, iconf, locale, gencat, tzselect, zic, rpcinfo, ..." 68DESCRIPTION_${PN}-utils = "Miscellaneous utilities including getconf, iconf, locale, gencat, tzselect, zic, rpcinfo, ..."
71SUMMARY_${PN}-mtrace = "mtrace utility provided by eglibc"
72DESCRIPTION_${PN}-mtrace = "mtrace utility provided by eglibc"
73DESCRIPTION_libsotruss = "Library to support sotruss which traces calls through PLTs" 69DESCRIPTION_libsotruss = "Library to support sotruss which traces calls through PLTs"
74 70
75inherit libc-common multilib_header 71inherit libc-common multilib_header
@@ -111,10 +107,26 @@ do_install_locale () {
111 107
112addtask do_install_locale after do_install before do_populate_sysroot do_package 108addtask do_install_locale after do_install before do_populate_sysroot do_package
113 109
110bashscripts = "mtrace sotruss xtrace"
111
112do_evacuate_scripts () {
113 target=${D}${includedir}/eglibc-scripts-internal-${MULTIMACH_TARGET_SYS}
114 mkdir -p $target
115 for i in ${bashscripts}; do
116 cp ${D}${bindir}/$i $target/
117 done
118}
119
120addtask evacuate_scripts after do_install before do_populate_sysroot do_package
121
114PACKAGE_PREPROCESS_FUNCS += "eglibc_package_preprocess" 122PACKAGE_PREPROCESS_FUNCS += "eglibc_package_preprocess"
115 123
116eglibc_package_preprocess () { 124eglibc_package_preprocess () {
117 rm -rf ${PKGD}/${includedir}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS} 125 rm -rf ${PKGD}/${includedir}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS}
126 rm -rf ${PKGD}/${includedir}/eglibc-scripts-internal-${MULTIMACH_TARGET_SYS}
127 for i in ${bashscripts}; do
128 rm -f ${PKGD}${bindir}/$i
129 done
118 rm -rf ${PKGD}/${localedir} 130 rm -rf ${PKGD}/${localedir}
119 if [ "${libdir}" != "${exec_prefix}/lib" ]; then 131 if [ "${libdir}" != "${exec_prefix}/lib" ]; then
120 # This dir only exists to hold locales 132 # This dir only exists to hold locales