2010-08-06 02:38:06 +00:00
#
# For now, we will skip building of a gcc package if it is a uclibc one
# and our build is not a uclibc one, and we skip a eglibc one if our build
# is a uclibc build.
#
# See the note in gcc/gcc_3.4.0.oe
#
python __anonymous () {
import bb , re
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
uc_os = ( re . match ( '.*uclibc*' , d . getVar ( 'TARGET_OS' , 1 )) != None )
2010-08-06 02:38:06 +00:00
if uc_os :
raise bb . parse . SkipPackage ( " incompatible with target %s " %
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
d . getVar ( 'TARGET_OS' , 1 ))
2010-08-06 02:38:06 +00:00
}
# Set this to zero if you don't want ldconfig in the output package
USE_LDCONFIG ? = " 1 "
2011-09-22 19:50:35 +00:00
PKGSUFFIX = " "
PKGSUFFIX_virtclass - nativesdk = " -nativesdk "
2010-09-08 19:31:39 +00:00
2011-08-02 10:42:21 +00:00
PACKAGES = " ${ PN } -dbg ${ PN } catchsegv ${ PKGSUFFIX } sln ${ PKGSUFFIX } nscd ${ PKGSUFFIX } ldd ${ PKGSUFFIX } ${ PN } -utils eglibc-extra-nss ${ PKGSUFFIX } eglibc-thread-db ${ PKGSUFFIX } ${ PN } -pic ${ PN } -dev ${ PN } -doc libcidn ${ PKGSUFFIX } libmemusage ${ PKGSUFFIX } libsegfault ${ PKGSUFFIX } ${ PN } -pcprofile libsotruss ${ PKGSUFFIX } "
2010-08-06 02:38:06 +00:00
2011-09-19 14:38:44 +00:00
# The ld.so in this eglibc supports the GNU_HASH
RPROVIDES_ $ { PN } = " glibc ${ PKGSUFFIX } rtld(GNU_HASH) "
2011-08-02 10:42:21 +00:00
RPROVIDES_ $ { PN } - utils = " glibc ${ PKGSUFFIX } -utils "
RPROVIDES_ $ { PN } - pic = " glibc ${ PKGSUFFIX } -pic "
RPROVIDES_ $ { PN } - dev = " glibc ${ PKGSUFFIX } -dev "
RPROVIDES_ $ { PN } - doc = " glibc ${ PKGSUFFIX } -doc "
RPROVIDES_eglibc - extra - nss $ { PKGSUFFIX } = " glibc-extra-nss ${ PKGSUFFIX } "
RPROVIDES_eglibc - thread - db $ { PKGSUFFIX } = " glibc-thread-db ${ PKGSUFFIX } "
RPROVIDES_ $ { PN } - pcprofile = " glibc ${ PKGSUFFIX } -pcprofile "
RPROVIDES_ $ { PN } - dbg = " glibc-dbg ${ PKGSUFFIX } "
2011-06-02 12:15:05 +00:00
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 "
2010-08-06 02:38:06 +00:00
2010-12-23 15:50:31 +00:00
FILES_ $ { PN } = " ${ libc_baselibs } ${ libexecdir } /* $ { @base_conditional('USE_LDCONFIG', '1', ' ${ base_sbindir } /ldconfig ${ sysconfdir } /ld.so.conf', '', d)} "
2010-09-08 19:31:39 +00:00
FILES_ldd $ { PKGSUFFIX } = " ${ bindir } /ldd "
FILES_libsegfault $ { PKGSUFFIX } = " ${ base_libdir } /libSegFault* "
2011-08-04 10:36:23 +00:00
FILES_libcidn $ { PKGSUFFIX } = " ${ base_libdir } /libcidn-*.so ${ base_libdir } /libcidn.so.* "
FILES_libmemusage $ { PKGSUFFIX } = " ${ base_libdir } /libmemusage.so "
FILES_eglibc - extra - nss $ { PKGSUFFIX } = " ${ base_libdir } /libnss_*-*.so ${ base_libdir } /libnss_*.so.* "
FILES_sln $ { PKGSUFFIX } = " /sbin/sln "
2011-08-02 10:42:21 +00:00
FILES_ $ { PN } - pic = " ${ libdir } /*_pic.a ${ libdir } /*_pic.map ${ libdir } /libc_pic/ "
2011-06-22 00:55:33 +00:00
FILES_libsotruss $ { PKGSUFFIX } = " ${ libdir } /audit/sotruss-lib.so "
2011-08-02 10:42:21 +00:00
FILES_ $ { PN } - dev_append += " ${ bindir } /rpcgen ${ libdir } /*.a \
2010-08-06 02:38:06 +00:00
$ { base_libdir } /*. a $ { base_libdir } /*. o $ { datadir } / aclocal "
2010-09-08 19:31:39 +00:00
FILES_nscd $ { PKGSUFFIX } = " ${ sbindir } /nscd* "
2011-08-02 10:42:21 +00:00
FILES_ $ { PN } - utils = " ${ bindir } /* ${ sbindir } /* "
2011-06-28 06:58:15 +00:00
FILES_ $ { PN } - dbg += " ${ libexecdir } /*/.debug ${ libdir } /audit/.debug "
2010-09-08 19:31:39 +00:00
FILES_catchsegv $ { PKGSUFFIX } = " ${ bindir } /catchsegv "
RDEPENDS_catchsegv $ { PKGSUFFIX } = " libsegfault "
2011-08-02 10:42:21 +00:00
RDEPENDS_ $ { PN } - utils += " bash "
FILES_ $ { PN } - pcprofile = " ${ base_libdir } /libpcprofile.so "
2011-07-13 16:47:32 +00:00
FILES_eglibc - thread - db $ { PKGSUFFIX } = " ${ base_libdir } /libthread_db.so.* ${ base_libdir } /libthread_db-*.so "
2011-08-02 10:42:21 +00:00
RPROVIDES_ $ { PN } - dev += " libc-dev "
2010-08-06 02:38:06 +00:00
2010-09-27 14:44:05 +00:00
SUMMARY_sln = " The static ln. "
DESCRIPTION_sln = " Similar to the 'ln' utility, but statically linked. sln is useful to make symbolic links to dynamic libraries if the dynamic linking system, for some reason, is not functional. "
SUMMARY_nscd = " Name service cache daemon "
DESCRIPTION_nscd = " nscd, name service cache daemon, caches name service lookups for the passwd, group and hosts information. It can damatically improvide performance with remote, such as NIS or NIS+, name services. "
2011-08-02 10:42:21 +00:00
SUMMARY_eglibc - extra - nss $ { PKGSUFFIX } = " hesiod, NIS and NIS+ nss libraries "
DESCRIPTION_eglibc - extra - nss $ { PKGSUFFIX } = " eglibc: nis, nisplus and hesiod search services. "
2010-09-27 14:44:05 +00:00
SUMMARY_ldd = " print shared library dependencies "
DESCRIPTION_ldd = " /usr/bin/ldd prints shared library dependencies for each program or shared library specified on the command line. "
2011-08-02 10:42:21 +00:00
SUMMARY_ $ { PN } - utils = " Miscellaneous utilities provided by eglibc "
DESCRIPTION_ $ { PN } - utils = " Miscellaneous utilities including getconf, iconf, locale, gencat, tzselect, zic, rpcinfo, ... "
2011-06-22 00:55:33 +00:00
DESCRIPTION_libsotruss = " Library to support sotruss which traces calls through PLTs "
2010-08-06 02:38:06 +00:00
2011-07-26 19:17:11 +00:00
inherit libc - common multilib_header
2010-08-06 02:38:06 +00:00
2011-07-07 16:17:49 +00:00
do_install_append () {
rm - f $ { D } $ { sysconfdir } / localtime
2011-07-26 19:17:11 +00:00
oe_multilib_header bits / syscall . h
2011-07-07 16:17:49 +00:00
}
2011-06-28 12:30:47 +00:00
do_install_locale () {
dest = $ { D } / $ { includedir } / eglibc - locale - internal - $ { MULTIMACH_TARGET_SYS }
2011-06-30 15:41:49 +00:00
install - d $ { dest } $ { base_libdir } $ { dest } $ { bindir } $ { dest } $ { libdir } $ { dest } $ { datadir }
2011-07-08 19:48:39 +00:00
if [ " ${ base_libdir } " != " ${ libdir } " ]; then
cp - fpPR $ { D } $ { base_libdir } /* $ { dest } $ { base_libdir }
fi
2011-08-26 11:41:18 +00:00
if [ - e $ { D } $ { bindir } / localedef ]; then
2011-07-19 16:51:10 +00:00
mv - f $ { D } $ { bindir } / localedef $ { dest } $ { bindir }
fi
2011-08-26 11:41:18 +00:00
if [ - e $ { D } $ { libdir } / gconv ]; then
2011-07-19 16:51:10 +00:00
mv - f $ { D } $ { libdir } / gconv $ { dest } $ { libdir }
fi
2011-06-30 15:41:49 +00:00
cp - fpPR $ { D } $ { libdir } /* $ { dest } $ { libdir }
mv $ { D } $ { datadir } / i18n $ { dest } $ { datadir }
cp - fpPR $ { D } $ { datadir } /* $ { dest } $ { datadir }
2011-06-28 12:30:47 +00:00
cp - fpPR $ { WORKDIR } / SUPPORTED $ { dest }
}
2011-06-30 15:45:20 +00:00
addtask do_install_locale after do_install before do_populate_sysroot do_package
2011-06-28 12:30:47 +00:00
2011-06-30 15:41:49 +00:00
PACKAGE_PREPROCESS_FUNCS += " eglibc_package_preprocess "
eglibc_package_preprocess () {
rm - rf $ { PKGD } / $ { includedir } / eglibc - locale - internal - $ { MULTIMACH_TARGET_SYS }
}