summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc-package.inc
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2012-09-25 13:56:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-22 14:59:29 +0100
commit59e3a13604fbf28ed89031e7f107c193b238d7fd (patch)
treee20f589ded9ba3484209ae6b5d10b5ac90363be5 /meta/recipes-core/eglibc/eglibc-package.inc
parent92b44ec00ed33b72ecf50cd272cc929fac1251dc (diff)
downloadpoky-59e3a13604fbf28ed89031e7f107c193b238d7fd.tar.gz
eglibc: Move perl- and bash-using scripts to separate recipes
This removes the dependency of eglibc.bb itself on perl and bash which, in turn, eliminates the need to build those two recipes if the scripts which need them are not going to be installed. Also provide dummy do_evacuate_scripts() for all variants of eglibc-initial otherwise the nativesdk and multilib variants might crash trying to copy a non-existent mtrace script. (From OE-Core rev: 74b5f8943b2b29c7b3b62be7d81fb2b3a86b9584) Signed-off-by: Phil Blundell <pb@pbcl.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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