diff options
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-package.inc')
-rw-r--r-- | meta/recipes-core/eglibc/eglibc-package.inc | 24 |
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 |
18 | USE_LDCONFIG ?= "1" | 18 | USE_LDCONFIG ?= "1" |
19 | 19 | ||
20 | PACKAGES = "${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" | 20 | PACKAGES = "${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 |
23 | RPROVIDES_${PN} = "glibc rtld(GNU_HASH)" | 23 | RPROVIDES_${PN} = "glibc rtld(GNU_HASH)" |
@@ -51,8 +51,6 @@ FILES_${PN}-utils = "${bindir}/* ${sbindir}/*" | |||
51 | FILES_${PN}-dbg += "${libexecdir}/*/.debug ${libdir}/audit/.debug" | 51 | FILES_${PN}-dbg += "${libexecdir}/*/.debug ${libdir}/audit/.debug" |
52 | FILES_catchsegv = "${bindir}/catchsegv" | 52 | FILES_catchsegv = "${bindir}/catchsegv" |
53 | RDEPENDS_catchsegv = "libsegfault" | 53 | RDEPENDS_catchsegv = "libsegfault" |
54 | RDEPENDS_${PN}-utils += "bash" | ||
55 | RDEPENDS_${PN}-mtrace += "perl" | ||
56 | FILES_${PN}-pcprofile = "${base_libdir}/libpcprofile.so" | 54 | FILES_${PN}-pcprofile = "${base_libdir}/libpcprofile.so" |
57 | FILES_eglibc-thread-db = "${base_libdir}/libthread_db.so.* ${base_libdir}/libthread_db-*.so" | 55 | FILES_eglibc-thread-db = "${base_libdir}/libthread_db.so.* ${base_libdir}/libthread_db-*.so" |
58 | RPROVIDES_${PN}-dev += "libc-dev" | 56 | RPROVIDES_${PN}-dev += "libc-dev" |
@@ -65,11 +63,9 @@ DESCRIPTION_nscd = "nscd, name service cache daemon, caches name service lookups | |||
65 | SUMMARY_eglibc-extra-nss = "hesiod, NIS and NIS+ nss libraries" | 63 | SUMMARY_eglibc-extra-nss = "hesiod, NIS and NIS+ nss libraries" |
66 | DESCRIPTION_eglibc-extra-nss = "eglibc: nis, nisplus and hesiod search services." | 64 | DESCRIPTION_eglibc-extra-nss = "eglibc: nis, nisplus and hesiod search services." |
67 | SUMMARY_ldd = "print shared library dependencies" | 65 | SUMMARY_ldd = "print shared library dependencies" |
68 | DESCRIPTION_ldd = "/usr/bin/ldd prints shared library dependencies for each program or shared library specified on the command line." | 66 | DESCRIPTION_ldd = "${bindir}/ldd prints shared library dependencies for each program or shared library specified on the command line." |
69 | SUMMARY_${PN}-utils = "Miscellaneous utilities provided by eglibc" | 67 | SUMMARY_${PN}-utils = "Miscellaneous utilities provided by eglibc" |
70 | DESCRIPTION_${PN}-utils = "Miscellaneous utilities including getconf, iconf, locale, gencat, tzselect, zic, rpcinfo, ..." | 68 | DESCRIPTION_${PN}-utils = "Miscellaneous utilities including getconf, iconf, locale, gencat, tzselect, zic, rpcinfo, ..." |
71 | SUMMARY_${PN}-mtrace = "mtrace utility provided by eglibc" | ||
72 | DESCRIPTION_${PN}-mtrace = "mtrace utility provided by eglibc" | ||
73 | DESCRIPTION_libsotruss = "Library to support sotruss which traces calls through PLTs" | 69 | DESCRIPTION_libsotruss = "Library to support sotruss which traces calls through PLTs" |
74 | 70 | ||
75 | inherit libc-common multilib_header | 71 | inherit libc-common multilib_header |
@@ -111,10 +107,26 @@ do_install_locale () { | |||
111 | 107 | ||
112 | addtask do_install_locale after do_install before do_populate_sysroot do_package | 108 | addtask do_install_locale after do_install before do_populate_sysroot do_package |
113 | 109 | ||
110 | bashscripts = "mtrace sotruss xtrace" | ||
111 | |||
112 | do_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 | |||
120 | addtask evacuate_scripts after do_install before do_populate_sysroot do_package | ||
121 | |||
114 | PACKAGE_PREPROCESS_FUNCS += "eglibc_package_preprocess" | 122 | PACKAGE_PREPROCESS_FUNCS += "eglibc_package_preprocess" |
115 | 123 | ||
116 | eglibc_package_preprocess () { | 124 | eglibc_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 |