summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-06-09 06:47:12 +0000
committerMike Frysinger <vapier@gentoo.org>2012-06-09 06:47:12 +0000
commit63f90fda52356822ed51b80c420c23ca2e9de7f5 (patch)
tree81dd04bb22bdc8d9a57b5299096a8b445629c9a1 /sys-libs/uclibc
parentmarked x86 per bug 420039 (diff)
downloadhistorical-63f90fda52356822ed51b80c420c23ca2e9de7f5.tar.gz
historical-63f90fda52356822ed51b80c420c23ca2e9de7f5.tar.bz2
historical-63f90fda52356822ed51b80c420c23ca2e9de7f5.zip
Drop tc-is-softfloat usage as the FPU knob merely controls enabling of libm.
Package-Manager: portage-2.2.0_alpha110/cvs/Linux x86_64
Diffstat (limited to 'sys-libs/uclibc')
-rw-r--r--sys-libs/uclibc/ChangeLog9
-rw-r--r--sys-libs/uclibc/Manifest54
-rw-r--r--sys-libs/uclibc/uclibc-0.9.27-r1.ebuild399
-rw-r--r--sys-libs/uclibc/uclibc-0.9.28.3-r3.ebuild457
-rw-r--r--sys-libs/uclibc/uclibc-0.9.28.3-r7.ebuild457
-rw-r--r--sys-libs/uclibc/uclibc-0.9.28.3-r8.ebuild9
-rw-r--r--sys-libs/uclibc/uclibc-0.9.28.3.ebuild457
-rw-r--r--sys-libs/uclibc/uclibc-0.9.30.1-r1.ebuild8
-rw-r--r--sys-libs/uclibc/uclibc-0.9.30.1.ebuild8
-rw-r--r--sys-libs/uclibc/uclibc-0.9.30.ebuild8
-rw-r--r--sys-libs/uclibc/uclibc-0.9.33.1-r1.ebuild6
-rw-r--r--sys-libs/uclibc/uclibc-0.9.33.1.ebuild6
-rw-r--r--sys-libs/uclibc/uclibc-0.9.33.2.ebuild6
-rw-r--r--sys-libs/uclibc/uclibc-9999.ebuild9
14 files changed, 44 insertions, 1849 deletions
diff --git a/sys-libs/uclibc/ChangeLog b/sys-libs/uclibc/ChangeLog
index bdc5448df60d..41016bdb9ff1 100644
--- a/sys-libs/uclibc/ChangeLog
+++ b/sys-libs/uclibc/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-libs/uclibc
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/ChangeLog,v 1.66 2012/06/09 05:27:09 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/ChangeLog,v 1.67 2012/06/09 06:47:12 vapier Exp $
+
+ 09 Jun 2012; Mike Frysinger <vapier@gentoo.org> -uclibc-0.9.27-r1.ebuild,
+ -uclibc-0.9.28.3-r3.ebuild, -uclibc-0.9.28.3-r7.ebuild,
+ -uclibc-0.9.28.3.ebuild, uclibc-0.9.28.3-r8.ebuild, uclibc-0.9.30.1-r1.ebuild,
+ uclibc-0.9.30.1.ebuild, uclibc-0.9.30.ebuild, uclibc-0.9.33.1-r1.ebuild,
+ uclibc-0.9.33.1.ebuild, uclibc-0.9.33.2.ebuild, uclibc-9999.ebuild:
+ Drop tc-is-softfloat usage as the FPU knob merely controls enabling of libm.
09 Jun 2012; Mike Frysinger <vapier@gentoo.org> uclibc-0.9.33.2.ebuild:
Mark stable for all.
diff --git a/sys-libs/uclibc/Manifest b/sys-libs/uclibc/Manifest
index 4c0477d59c0b..b15d2131994a 100644
--- a/sys-libs/uclibc/Manifest
+++ b/sys-libs/uclibc/Manifest
@@ -1,12 +1,6 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-DIST uClibc-0.9.27-cvs-update-20050114.patch.bz2 839 RMD160 08439855b6dc481216132d3882b8f634ecbe4555 SHA1 0e1a400745f0cbd739c6c08f45951eea836b1102 SHA256 83b86570ed0f0109f2ff04e753daf18a9bf59eab5b01b8d04a2406bb4100c423
-DIST uClibc-0.9.27-patches-1.6.tar.bz2 24001 RMD160 eca81853e00e5144c165b2eb4733059d53f93234 SHA1 93beb60660145c1b661c577f1e89a7217841c0c9 SHA256 78ff8162423b5563b1a97ae5294ab1e919b9489e171962053da54c04ee127797
-DIST uClibc-0.9.27.tar.bz2 1693895 RMD160 4c580c0c468bcd7e77a6b4223847f17b6ad241cc SHA1 e0de53949998253e25e6b946b564062babb723b4 SHA256 d43098b9d1cac5cc983672f885d82b59459c3abcb12ef8141653581c77cd0d9c
-DIST uClibc-0.9.28.3-patches-1.0.tar.bz2 16079 RMD160 2224a7b826932fcd5c96a0bddb30fcfa4173de35 SHA1 098f90da4879bc3a14afe662f19163c969bde431 SHA256 c432d869fc3e8a4e2137541e8a1ab93e7d634387d9ca5131842721f4b080b72e
-DIST uClibc-0.9.28.3-patches-1.3.tar.bz2 21241 RMD160 c78dda0bdbc751721559d91bdd60a29e5260007b SHA1 f89a0bd18fbda1101ad419c3abc06068dd237776 SHA256 b3a3a98798861e38525082884b4a5be1ab42d281c2680db3ddc0085d031aa397
-DIST uClibc-0.9.28.3-patches-1.8.tar.bz2 27909 RMD160 7c936749075162939c76489aa5a88278f235b48f SHA1 5bb582cb8f95407bd9fa938a9dd09027dcf0db0b SHA256 9496394de9de241551497c496b7fb8ece32b23536485bd81bd20128c2e104790
DIST uClibc-0.9.28.3-patches-1.9.tar.bz2 37861 RMD160 c53f7cbca1170d2522875e99f5135aee8c4fba63 SHA1 b29c580b6a09425e07354e4d637f2df9901dc6fb SHA256 855542aa752b4c6413af33ece03816f70214bf7fdbe36f2f043d057bb2635d68
DIST uClibc-0.9.28.3.tar.bz2 1795383 RMD160 61591281f4193d4dcd0fa3252fb3286028d4cb63 SHA1 77c5220697a1772d0d9da4bda0d866e4f4b68540 SHA256 1d86d5dad6060e7057cfe023ffc7b7661bdc7fe95112b37447851c0a75b547a1
DIST uClibc-0.9.30-patches-1.0.tar.bz2 7017 RMD160 548b43fc8f3d3637eccef5c5df13b84380ec8631 SHA1 bfb64d3bdc0d067e78b050fe899021849a47f091 SHA256 e8f36766c8b6cb37bab69af09e7ff2c5108719c74b83fc145893198b87f8e73e
@@ -19,34 +13,30 @@ DIST uClibc-0.9.33.1.tar.bz2 2830006 RMD160 ab51fa11c1a1eece7dc70d307d63b9e0bf5c
DIST uClibc-0.9.33.2-patches-1.tar.bz2 2351 RMD160 a069c2f917615674388476947cfbe822ba444edb SHA1 263e93d8f82a60ba071e274200dd1ee4e932f10e SHA256 f85756b12ce5f20747f7900b30016bc4c391e0b6977cf6ecfe35891da0f851d8
DIST uClibc-0.9.33.2.tar.bz2 2834029 RMD160 842e5eba2790603a6e241bbd4a5859e35fb602b8 SHA1 4d8d67d6754409bd10015d67d1ce7a04c0b001ba SHA256 988d2c777e0605fe253d12157f71ec68f25d1bb8428725d2b7460bf9977e1662
DIST uClibc-locale-030818.tgz 236073 RMD160 8e3f4b20b94e07e535cbbbe81287186014c5f151 SHA1 78f901e6ed228ed84106bd034c1b97eee1eecb50 SHA256 c4362be318a38f18d98dccf462d22d95bab92f05548bb93f65298fe9afaebd57
-EBUILD uclibc-0.9.27-r1.ebuild 12295 RMD160 dfefb5f85c2b12c249e01ec0aa3c066a2c28ab59 SHA1 094a64200eca960c7b855d510f0f0639f625b22f SHA256 909046419adbf69c6f51c0df62120c9881dd264d0e685053594ce11a1898d40c
-EBUILD uclibc-0.9.28.3-r3.ebuild 14469 RMD160 9ea3c6a093ddc317f7d1080810ec33c66046d3e8 SHA1 10a9a01da848586d1dcbc3d87701d32ef27555f4 SHA256 29624dc42980e1cd424508adf21cc67eab9b41007e375e0856276c69183c2d3c
-EBUILD uclibc-0.9.28.3-r7.ebuild 14467 RMD160 6651b7ca7ff2153ea6bf5bec90b45c6aa290e93a SHA1 d8b676b3c5520b6539d8201470e995c5a11c32a2 SHA256 4c855e86622551338fc347fd266eebed942a4df964aebfba2e5f2d9941862d4e
-EBUILD uclibc-0.9.28.3-r8.ebuild 14743 RMD160 77f785385139cdacce035292ff88e49f46ced66f SHA1 987a6f993c150c9835268b7aeb9ca68c9989f0f5 SHA256 af427ebe030d6d5af25bb94d774e51e57b4589795ce10e4c1141fc8c83496033
-EBUILD uclibc-0.9.28.3.ebuild 14463 RMD160 d1ef9642ddce3ea2e522a084656efbc3780012ef SHA1 b7406eac9bea85b86d3659fbf1167e5381331a34 SHA256 33e7b4be9d086cca1ce5953ba76c919a2c447db039c2f7d4acf0beda5a486d88
-EBUILD uclibc-0.9.30.1-r1.ebuild 11596 RMD160 b6e69c3b4a1fef66415be334b611a305eb9eac1c SHA1 59f3ec6e39293ef0d8e24dc7d67ae5dcc66394dc SHA256 c04c4b19db017f072ac6a4351794b0758f696dd5251a607fbce1cab3764e25b3
-EBUILD uclibc-0.9.30.1.ebuild 11424 RMD160 21b85d326ae2f39442706c544fd3923837ed76f5 SHA1 488fb83e05bfe01d3114d4dfaf678ad674339d71 SHA256 5d8402111d86b9ff13448310db45e1a3532e1bbbc78c85487af8667697c4a467
-EBUILD uclibc-0.9.30.ebuild 13831 RMD160 e2d718c7b4cbc3b75114ad552dbf60f0675f8d5e SHA1 d5a84b7d59c05b5b599e8b3445afd39475a76cbb SHA256 385cc38e7751d2edb8d46c9f8cb98587da2066d2935ccddd4f282f02dd68c1bb
-EBUILD uclibc-0.9.33.1-r1.ebuild 10721 RMD160 9e73353dcaf15e35c8691fe3afb882f0df65fb75 SHA1 2770ef48e0ed6478cfedc438db58d634d194df63 SHA256 ebcd0c3ccc77db458a34cd7067b4331acb9960e8555590735ca9db8d2944a047
-EBUILD uclibc-0.9.33.1.ebuild 10695 RMD160 382805e3d27745199d9e634bdcefc086bdd3070a SHA1 fce1326e7ea8e27f82692ce1beb1b2dd7ddf7633 SHA256 1bbd0e8dcad16f033788625883f9620116d76fc1e625a673c1b5c97c71e8c3b6
-EBUILD uclibc-0.9.33.2.ebuild 10712 RMD160 b067d218ab8143836098b5ed644a79595a91ca34 SHA1 2528c125745f1b2b8af40e2ce75950eb39457a58 SHA256 e461049d048b36b253ca5c2baee5a50768694113396b63bac13afb6ed7fddbff
-EBUILD uclibc-9999.ebuild 10690 RMD160 9fd4ba3a14dda655fa94127d4fefb0d7a7cd64fe SHA1 1c692d21646cfefa9d5bde1e73e24e9aa337892a SHA256 239aa757433f83bce460a158ce69d638cb2738c83a5c1d74686fe0821c838fb8
-MISC ChangeLog 19582 RMD160 38b89ad99b482d23027d4d5c29c082002d2deea5 SHA1 d80393337c61ed47caaf8088f019623830ecacb4 SHA256 c7cf20e8bfc46b3f46de2f377cda5a3515bd4de2a15738fcd3e15994a6382819
+EBUILD uclibc-0.9.28.3-r8.ebuild 14630 RMD160 f09d2247239cee060af6185e8ecffca82efec3dd SHA1 1fb9de93e3a59875fe3bf61788641fd00b30b0f8 SHA256 27a5827a295d4b02c34136abcc8a41793d33c9dba849d5050a416760eb9cc8b0
+EBUILD uclibc-0.9.30.1-r1.ebuild 11524 RMD160 8890d56bac3eb7a552bcfbe4719c3999bafd969d SHA1 c3ef51ba960581eb5c0213baa9ec3bc41f215d6c SHA256 f798e14bac03f42cd867df18c76b6430bd64f1d9c38265de2145a451899da793
+EBUILD uclibc-0.9.30.1.ebuild 11352 RMD160 23df522f9fb1b22a136a81e966168cf993d12b3d SHA1 d7dd19f8801a4dfd0ea98e3bac55ffda976ac23d SHA256 cde3cb7dbe676f8724e072611496e6a02cda86d641f926a30d2a89afa5dd3190
+EBUILD uclibc-0.9.30.ebuild 13759 RMD160 285b4924ccecf62170b3d679b2e4be31a1225be4 SHA1 3c0e9eb2f44b1f6129c5056328de93397b818bcf SHA256 878f2b1a77e3de34f05949ad9d605b39971011e032010fddf68a8c06a7e1f3ea
+EBUILD uclibc-0.9.33.1-r1.ebuild 10638 RMD160 4421ee4794536f1db1f7f05badbec4262b58a8da SHA1 e45218ccbb71f74bee401ea9542e697aa542420d SHA256 3dd5ada253e15765973bafc55b9af445e985f9abf5315210ca9ef960c979edd8
+EBUILD uclibc-0.9.33.1.ebuild 10612 RMD160 c24371364b6be330dce159c81e026af1d325b68e SHA1 2b47f4962b5278f57fc271507155a0d9f741f442 SHA256 f175807254cff8e8e91fb0173d3d965f3eee27458e3917c042b085cf7ef7c236
+EBUILD uclibc-0.9.33.2.ebuild 10630 RMD160 0f9a864a6e23c856b003ce74ce8f18d7257f24c9 SHA1 49d4a3ef777735301754e9c89c91eeaeb28d89fe SHA256 db49c741a424d2433ec3978184c979b2a9fcb903f83eeb110adcec76940b342e
+EBUILD uclibc-9999.ebuild 10630 RMD160 71e355a49727b807c39d8c002c21bd63fbb662be SHA1 9c04d623ae9a084dd5f7f4f282d7cdf713d9a381 SHA256 1cec3d6d45c9f727a958f4d8216b8b82897f9a3af6bc5ce3d32cc7aa7947c6b0
+MISC ChangeLog 20022 RMD160 ccc24b3d0e6832fcad9c430a0329c24cb4a0a7e8 SHA1 2c7d632fd379ad5d6f94856dc84eb25e9a9e3eb8 SHA256 af9800c855f2c9362f9aeabf9a7d46d945ccdfe0a10ac8731ff1c35485e8d070
MISC metadata.xml 1435 RMD160 c1c094bb21b394fcbe9700d82a0c53b6fbfecb7b SHA1 cd0fb903aff700a6c15c685c7457429025e6d08d SHA256 cd15ca4d65ec270c128fb37bd2c489b6e83c566203028cc8ecf9a90bea9c071d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBAgAGBQJP0t63AAoJELEHsLL7fEFWz+kP/in36IbqoFyeZkqQnYAqfOUW
-2mRDttyKC8ArcNhg7dnqUsh5rXl7kZ+AWtjPXeyc8CTT2Bed+1mAPROWS1B+DdY2
-+nBKSb83VjuWOwFcnw3Wjxkp7uDVVC8GziqBnQci4UKAD4h4eearKyKpTeSDwGWS
-dfNd+sJzSNUfcgobAGFFRrbT1Hz6wui6y/h7FNGGYW4OW38X0INkuzv3+wWaPfD4
-WdtnmUzX6xnHpDPSUvJeeAMXf5RvkKnTVBz6AOMlv+aJoBuXCFcTEh2WtjRCQBoZ
-+vgsYcEeiwtW5un0nMn3FoGHOnmYGfW2YQ6oqW7auewD384MET2kC/lY1lEYIhPc
-LaT8p8gooMxzI1YHbIi7jNsqB+Oivkow9hBfLxcs9Uy1+nMm8+ZFypVJ5UhLfDHR
-2EfRQ31ePF3hTE/z9B9VdE3AAScAybNKXTWG7uC91u/zGdvjtOnIWY9K4MCkRzsv
-Ut00zU2emmA/P8OQqaPvVkccViKktAe2T1wpxFbj+Dq9hHkleK7OlSj21PgrRKAF
-0bp7eopmNaLxKWbsWAugystV8QibEov8T99G0DMxPq7JBQsK2X1jdym2fZIFCe94
-hUlLgmyaF19kcBTojxP8e6dbAcY1ay6YGEwRgiDNmPy693HB8wO88zNuo2SBY9uJ
-vUErWOvr5HBiLuutOM4n
-=4GGd
+iQIcBAEBAgAGBQJP0vF+AAoJELEHsLL7fEFWYsIP/14ly/NHKudCLTSgZLkuF+RB
+v9wfKHUg5XbnRZu+DHp9IV8GPxr422b12sbhGsVh237VJSs+teuCjvkRGwI4TNXr
+p/KR+MIAA81kj6412Mv2e30CK8RuRObuM77FWYLX4J+lYgpzAhgXXXENjh3LbY1l
+h+FFjOQ/tb5ebbJfiP0C3Q2oRwUPlXaw4Ad86s/fDPZU80GP/fmVXQU1FB8fBF0d
+BRlkiot2Qym0WODuO650Bjy0bEYSbZiShjq6zTsPrCqHvPMNGrqy5vNYZHv/ZbF3
+fUtWfXgRdK2XpeHR0lbWkoY5306qkTWEzMh0Sw05V0pnoAFzfzP+/0FqcHC5cPEg
+6O8JOSrL1RtnDZBR9cW2MGAW1kToYw6MC7+YDuox9ly9MmOlmF6kaaWYaQhy+myS
+nAmt49K1KRKKkSDyj3289scsZAnPjI2bnWbxzSnl+XU1vPDSr7C4uenaxelFsMQg
+yDKQ1lIEz/yLSHl+ahvAYzdQd9wfkROVxMpI76wkUnL3FQL7BhEcpsbnWgJ0PZup
+05azLfQz/9A4VIr/erbxSIyE6vaG0AZHdO3X5+rhxxq1fN1FRyuYFFKh4G+9twFb
+uhSVJf6j+bUFHDVE2538UYCY/xQpZQj/xgE42DwXOMAfoL7dEijUhchb/gMAU/3n
+UFPxfbKOhDMqKP6JbAPI
+=0LTy
-----END PGP SIGNATURE-----
diff --git a/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild b/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild
deleted file mode 100644
index e54f52f9309b..000000000000
--- a/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild
+++ /dev/null
@@ -1,399 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild,v 1.41 2011/04/20 18:10:38 ulm Exp $
-
-inherit eutils flag-o-matic toolchain-funcs
-
-export CBUILD=${CBUILD:-${CHOST}}
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} ]] ; then
- if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
- export CTARGET=${CATEGORY/cross-}
- fi
-fi
-# Handle the case where we want uclibc on glibc ...
-if [[ ${CTARGET} == ${CHOST} ]] && [[ ${CHOST} != *-uclibc ]] ; then
- export UCLIBC_AND_GLIBC="sitting in a tree"
- export CTARGET=${CHOST%%-*}-pc-linux-uclibc
-fi
-
-# To make a new SVN_VER we do.
-# wget -O - http://uclibc.org/downloads/snapshots/uClibc-`date +%Y%m%d`.tar.bz2 | tar jxf -
-# tar jxf /usr/portage/distfiles/uClibc-0.9.27.tar.bz2
-# diff -urN --exclude .svn uClibc-0.9.27 uClibc | bzip2 - > uClibc-0.9.27-svn-update-`date +%Y%m%d`.patch.bz2
-# rm -rf uClibc-0.9.27-svn-update-`date +%Y%m%d`.patch.bz2 uClibc uClibc-0.9.27
-
-MY_P=uClibc-${PV}
-SVN_VER="20050114"
-PATCH_VER="1.6"
-DESCRIPTION="C library for developing embedded Linux systems"
-HOMEPAGE="http://www.uclibc.org/"
-SRC_URI="mirror://kernel/linux/libs/uclibc/${MY_P}.tar.bz2
- mirror://gentoo/${MY_P}-cvs-update-${SVN_VER}.patch.bz2
- mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2
- nls? ( !userlocales? ( pregen? (
- x86? ( http://www.uclibc.org/downloads/uClibc-locale-030818.tgz )
- ) ) )"
-
-LICENSE="LGPL-2"
-[[ ${CTARGET} != ${CHOST} ]] \
- && SLOT="${CTARGET}" \
- || SLOT="0"
-KEYWORDS="-* arm m68k ~mips ppc sh sparc x86"
-IUSE="build debug hardened ipv6 minimal nls pregen userlocales wordexp crosscompile_opts_headers-only"
-RESTRICT="strip"
-
-RDEPEND=""
-if [[ ${CTARGET} == ${CHOST} ]] ; then
- DEPEND="virtual/os-headers app-misc/pax-utils"
-else
- DEPEND=""
-fi
-
-S=${WORKDIR}/${MY_P}
-
-alt_build_kprefix() {
- if [[ ${CBUILD} == ${CHOST} && ${CTARGET} == ${CHOST} ]] \
- || [[ -n ${UCLIBC_AND_GLIBC} ]]
- then
- echo /usr
- else
- echo /usr/${CTARGET}/usr
- fi
-}
-just_headers() {
- use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
-}
-
-uclibc_endian() {
- # XXX: this wont work for a toolchain which is bi-endian, but we
- # dont have any such thing at the moment, so not a big deal
- touch "${T}"/endian.s
- $(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o
- case $(file "${T}"/endian.o) in
- *" MSB "*) echo "big";;
- *" LSB "*) echo "little";;
- *) echo "NFC";;
- esac
- rm -f "${T}"/endian.{s,o}
-}
-
-pkg_setup() {
- just_headers && return 0
- has_version ${CATEGORY}/uclibc || return 0
- [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0
- [[ ${ROOT} != "/" ]] && return 0
-
- if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then
- eerror "You previously built uclibc with USE=-nls."
- eerror "You cannot generate locale data with this"
- eerror "system. Please rerun emerge with USE=pregen."
- die "host cannot support locales"
- elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then
- eerror "You previously built uclibc with USE=nls."
- eerror "Rebuilding uClibc with USE=-nls will prob"
- eerror "destroy your system."
- die "switching to nls is baaaad"
- fi
-}
-
-CPU_ARM="GENERIC_ARM ARM{610,710,720T,920T,922T,926T,_{SA110,SA1100,XSCALE}}"
-CPU_M68K=""
-CPU_MIPS="MIPS_ISA_{1,2,3,4,MIPS{32,64}}"
-CPU_PPC=""
-CPU_SH="SH{2,3,4,5}"
-CPU_SPARC=""
-CPU_X86="GENERIC_386 {3,4,5,6}86 586MMX PENTIUM{II,III,4} K{6,7} ELAN CRUSOE WINCHIP{C6,2} CYRIXIII NEHEMIAH"
-IUSE_UCLIBC_CPU="${CPU_ARM} ${CPU_MIPS} ${CPU_PPC} ${CPU_SH} ${CPU_SPARC} ${CPU_X86}"
-
-check_cpu_opts() {
- local cpu_var="CPU_$(echo $(tc-arch) | tr [a-z] [A-Z])"
- if [[ -z ${UCLIBC_CPU} ]] ; then
- ewarn "You really should consider setting UCLIBC_CPU"
- ewarn "Otherwise, the build will be generic (read: slow)."
- ewarn "Available CPU options:"
- UCLIBC_CPU=$(eval echo ${!cpu_var})
- echo ${UCLIBC_CPU}
- export UCLIBC_CPU=${UCLIBC_CPU%% *}
- else
- local cpu found=0
- for cpu in $(eval echo ${!cpu_var}) ; do
- [[ ${UCLIBC_CPU} == "${cpu}" ]] && found=1 && break
- done
- if [[ ${found} -eq 0 ]] ; then
- ewarn "UCLIBC_CPU choice '${UCLIBC_CPU}' not supported"
- ewarn "Valid choices:"
- eval echo ${!cpu_var}
- die "pick a supported cpu type"
- fi
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- check_cpu_opts
-
- echo
- einfo "Runtime Prefix: /"
- einfo "Devel Prefix: /usr"
- einfo "Kernel Prefix: $(alt_build_kprefix)"
- einfo "CBUILD: ${CBUILD}"
- einfo "CHOST: ${CHOST}"
- einfo "CTARGET: ${CTARGET}"
- einfo "CPU: ${UCLIBC_CPU}"
- einfo "ENDIAN: $(uclibc_endian)"
- echo
-
- ########## PATCHES ##########
-
- [[ -n ${SVN_VER} ]] && \
- epatch "${WORKDIR}"/${MY_P}-cvs-update-${SVN_VER}.patch
-
- if [[ -n ${PATCH_VER} ]] ; then
- unpack ${MY_P}-patches-${PATCH_VER}.tar.bz2
- EPATCH_SUFFIX="patch"
- epatch "${WORKDIR}"/patch
- # math functions (sinf,cosf,tanf,atan2f,powf,fabsf,copysignf,scalbnf,rem_pio2f)
- use build || epatch "${WORKDIR}"/patch/math
- fi
-
- ########## CPU SELECTION ##########
-
- local target config_target
- case $(tc-arch) in
- arm) target="arm"; config_target="GENERIC_ARM";;
- m68k) target="m68k"; config_target="no cpu-specific options";;
- mips) target="mips"; config_target="MIPS_ISA_1";;
- ppc) target="powerpc"; config_target="no cpu-specific options";;
- sh) target="sh"; config_target="SH4";;
- x86) target="i386"; config_target="GENERIC_386";;
- *) die "$(tc-arch) lists no defaults :/";;
- esac
- sed -i -e "s:default TARGET_i386:default TARGET_${target}:" \
- extra/Configs/Config.in
- sed -i -e "s:default CONFIG_${config_target}:default CONFIG_${UCLIBC_CPU:-${config_target}}:" \
- extra/Configs/Config.${target}
-
- ########## CONFIG SETUP ##########
-
- make defconfig >/dev/null || die "could not config"
-
- for def in UCLIBC_PROFILING DO{DEBUG,ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
- sed -i -e "s:${def}=y:# ${def} is not set:" .config
- done
- if use debug ; then
- echo "SUPPORT_LD_DEBUG=y" >> .config
- echo "DODEBUG=y" >> .config
- fi
-
- sed -i -e '/ARCH_.*_ENDIAN/d' .config
- echo "ARCH_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config
-
- if [[ $(tc-is-softfloat) != "no" ]] ; then
- sed -i -e '/^HAS_FPU=y$/d' .config
- echo 'HAS_FPU=n' >> .config
- fi
-
- for def in DO_C99_MATH UCLIBC_HAS_{RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} ; do
- sed -i -e "s:# ${def} is not set:${def}=y:" .config
- done
- echo "UCLIBC_HAS_FULL_RPC=y" >> .config
- echo "PTHREADS_DEBUG_SUPPORT=y" >> .config
- echo "UCLIBC_HAS_TZ_FILE_READ_MANY=n" >> .config
-
- if use nls ; then
- sed -i -e "s:# UCLIBC_HAS_LOCALE is not set:UCLIBC_HAS_LOCALE=y:" .config
- echo "UCLIBC_HAS_XLOCALE=n" >> .config
- echo "UCLIBC_HAS_GLIBC_DIGIT_GROUPING=y" >> .config
- echo "UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING=y" >> .config
- echo "UCLIBC_HAS_GETTEXT_AWARENESS=y" >> .config
-
- if use pregen ; then
- echo "UCLIBC_PREGENERATED_LOCALE_DATA=y" >> .config
- echo "UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y" >> .config
- if use userlocales ; then
- cp "${DISTDIR}"/${MY_P}-user-locale.tar.gz \
- extra/locale/uClibc-locale-030818.tgz \
- || die "could not copy ${MY_P}-user-locale.tar.gz"
- else
- cp "${DISTDIR}"/${MY_P}-$(tc-arch)-full-locale.tar.gz \
- extra/locale/uClibc-locale-030818.tgz \
- || die "could not copy locale"
- fi
- else
- echo "UCLIBC_PREGENERATED_LOCALE_DATA=n" >> .config
- fi
- else
- echo "UCLIBC_HAS_LOCALE=n" >> .config
- fi
-
- use ipv6 && sed -i -e "s:# UCLIBC_HAS_IPV6 is not set:UCLIBC_HAS_IPV6=y:" .config
-
- # uncomment if you miss wordexp (alsa-lib)
- use wordexp && sed -i -e "s:# UCLIBC_HAS_WORDEXP is not set:UCLIBC_HAS_WORDEXP=y:" .config
-
- # we need to do it independently of hardened to get ssp.c built into libc
- sed -i -e "s:# UCLIBC_SECURITY.*:UCLIBC_SECURITY=y:" .config
- echo "UCLIBC_HAS_SSP=y" >> .config
- echo "PROPOLICE_BLOCK_ABRT=n" >> .config
- if use debug ; then
- echo "PROPOLICE_BLOCK_SEGV=y" >> .config
- echo "PROPOLICE_BLOCK_KILL=n" >> .config
- else
- echo "PROPOLICE_BLOCK_SEGV=n" >> .config
- echo "PROPOLICE_BLOCK_KILL=y" >> .config
- fi
-
- if use hardened ; then
- if has $(tc-arch) mips ppc x86 ; then
- echo "UCLIBC_BUILD_PIE=y" >> .config
- else
- echo "UCLIBC_BUILD_PIE=n" >> .config
- fi
- echo "SSP_QUICK_CANARY=n" >> .config
- echo "UCLIBC_BUILD_SSP=y" >> .config
- echo "UCLIBC_BUILD_RELRO=y" >> .config
- echo "UCLIBC_BUILD_NOW=y" >> .config
- echo "UCLIBC_BUILD_NOEXECSTACK=y" >> .config
- else
- echo "UCLIBC_BUILD_PIE=n" >> .config
- echo "SSP_QUICK_CANARY=y" >> .config
- echo "UCLIBC_BUILD_SSP=n" >> .config
- echo "UCLIBC_BUILD_RELRO=n" >> .config
- echo "UCLIBC_BUILD_NOW=n" >> .config
- echo "UCLIBC_BUILD_NOEXECSTACK=n" >> .config
- fi
-
- # we are building against system installed kernel headers
- sed -i \
- -e "/^KERNEL_SOURCE/s:=.*:=\"$(alt_build_kprefix)\":" \
- -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/$(get_libdir)\":" \
- -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \
- -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \
- .config
-
- yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig"
-
- chmod +x extra/scripts/relative_path.sh
-
- cp .config myconfig
-
- emake clean > /dev/null || die "could not clean"
-}
-
-setup_locales() {
- cd "${S}"/extra/locale
- if use userlocales && [[ -f ${ROOT}/etc/locales.build ]] ; then
- :;
- elif use minimal ; then
- find ./charmaps -name ASCII.pairs > codesets.txt
- find ./charmaps -name ISO-8859-1.pairs >> codesets.txt
- cat <<-EOF > locales.txt
- @euro e
- UTF-8 yes
- 8-bit yes
- en_US ISO-8859-1
- en_US.UTF-8 UTF-8
- EOF
- else
- find ./charmaps -name '*.pairs' > codesets.txt
- cp LOCALES locales.txt
- fi
- cd -
-}
-
-src_compile() {
- cp myconfig .config
-
- # last release doesnt support parallel build,
- # but the current svn repo does ...
- export MAKEOPTS="${MAKEOPTS} -j1"
- type -p ${CTARGET}-ar && export MAKEOPTS="${MAKEOPTS} CROSS=${CTARGET}-"
-
- emake headers || die "make headers failed"
- just_headers && return 0
-
- if use nls && ! use pregen ; then
- cd extra/locale
- make clean || die "make locale clean failed"
- setup_locales
- emake || die "could not make locales"
- cd ../..
- fi
-
- emake || die "could not make"
- [[ ${CTARGET} != ${CHOST} ]] && return 0
-
- if [[ ${CHOST} == *-uclibc ]] ; then
- emake utils || die "could not make utils"
- fi
-}
-
-src_test() {
- return 0
-
- [[ ${CHOST} != ${CTARGET} ]] && return 0
- [[ ${CBUILD} != ${CHOST} ]] && return 0
-
- # running tests require this
- use build || addwrite /dev/ptmx
-
- # This is wrong, but uclibc's tests fail bad when screwing
- # around with sandbox, so lets just punt it
- unset LD_PRELOAD
-
- # assert test fails on pax/grsec enabled kernels - normal
- # vfork test fails in sandbox (both glibc/uclibc)
- cd test
- make || die "test failed"
-}
-
-src_install() {
- local sysroot=${D}
- [[ ${CHOST} != ${CTARGET} ]] && sysroot="${sysroot}/usr/${CTARGET}"
-
- local target="install"
- just_headers && target="install_dev"
- emake PREFIX="${sysroot}" ${target} || die "install failed"
-
- # remove files coming from kernel-headers
- rm -rf "${D}"${sysroot}/usr/include/{asm,linux,asm-generic}
-
- # clean up misc cruft
- find "${D}"${sysroot}/usr/include -type d '(' -name CVS -o -name .svn ')' -print0 | xargs -0 rm -r
- find "${D}"${sysroot}/usr/include -type f -name .cvsignore -print0 | xargs -0 rm -f
-
- # Make sure we install the sys-include symlink so that when
- # we build a 2nd stage cross-compiler, gcc finds the target
- # system headers correctly. See gcc/doc/gccinstall.info
- if [[ ${CTARGET} != ${CHOST} ]] ; then
- dosym usr/include /usr/${CTARGET}/sys-include
- return 0
- fi
-
- if [[ ${CHOST} == *-uclibc* ]] ; then
- emake PREFIX="${D}" install_utils || die "install-utils failed"
- dobin extra/scripts/getent
- fi
-
- dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
-}
-
-pkg_postinst() {
- [[ ${CTARGET} != ${CHOST} ]] && return 0
- [[ ${CHOST} != *-uclibc* ]] && return 0
-
- if [[ ! -e ${ROOT}/etc/TZ ]] ; then
- ewarn "Please remember to set your timezone in /etc/TZ"
- [[ ! -d ${ROOT}/etc ]] && mkdir -p "${ROOT}"/etc
- echo "UTC" > "${ROOT}"/etc/TZ
- fi
-
- if [[ ${ROOT} == "/" ]] ; then
- # update cache before reloading init
- /sbin/ldconfig
- # reload init ...
- [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null
- fi
-}
diff --git a/sys-libs/uclibc/uclibc-0.9.28.3-r3.ebuild b/sys-libs/uclibc/uclibc-0.9.28.3-r3.ebuild
deleted file mode 100644
index 068716cab79e..000000000000
--- a/sys-libs/uclibc/uclibc-0.9.28.3-r3.ebuild
+++ /dev/null
@@ -1,457 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28.3-r3.ebuild,v 1.11 2011/04/20 18:10:38 ulm Exp $
-
-#ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc"
-#inherit subversion
-inherit eutils flag-o-matic toolchain-funcs
-
-export CBUILD=${CBUILD:-${CHOST}}
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} ]] ; then
- if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
- export CTARGET=${CATEGORY/cross-}
- fi
-fi
-# Handle the case where we want uclibc on glibc ...
-if [[ ${CTARGET} == ${CHOST} ]] && [[ ${CHOST} != *-uclibc ]] ; then
- export UCLIBC_AND_GLIBC="sitting in a tree"
- export CTARGET=${CHOST%%-*}-pc-linux-uclibc
-fi
-
-MY_P=uClibc-${PV}
-SVN_VER=""
-PATCH_VER="1.3"
-DESCRIPTION="C library for developing embedded Linux systems"
-HOMEPAGE="http://www.uclibc.org/"
-SRC_URI="mirror://kernel/linux/libs/uclibc/${MY_P}.tar.bz2
- http://uclibc.org/downloads/${MY_P}.tar.bz2
- nls? ( !userlocales? ( pregen? (
- x86? ( http://www.uclibc.org/downloads/uClibc-locale-030818.tgz )
- ) ) )"
-[[ -z ${SVN_VER} ]] || \
- SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2"
-[[ -z ${PATCH_VER} ]] || \
- SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2"
-
-LICENSE="LGPL-2"
-[[ ${CTARGET} != ${CHOST} ]] \
- && SLOT="${CTARGET}" \
- || SLOT="0"
-KEYWORDS="-* arm ~m68k -mips ppc ~sh ~sparc x86"
-IUSE="build uclibc-compat debug hardened iconv ipv6 minimal nls pregen savedconfig userlocales wordexp crosscompile_opts_headers-only"
-RESTRICT="strip"
-
-RDEPEND=""
-if [[ ${CTARGET} == ${CHOST} ]] ; then
- DEPEND="virtual/os-headers app-misc/pax-utils"
-else
- DEPEND=""
-fi
-
-S=${WORKDIR}/${MY_P}
-
-alt_build_kprefix() {
- if [[ ${CBUILD} == ${CHOST} && ${CTARGET} == ${CHOST} ]] \
- || [[ -n ${UCLIBC_AND_GLIBC} ]]
- then
- echo /usr
- else
- echo /usr/${CTARGET}/usr
- fi
-}
-just_headers() {
- use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
-}
-
-uclibc_endian() {
- # XXX: this wont work for a toolchain which is bi-endian, but we
- # dont have any such thing at the moment, so not a big deal
- touch "${T}"/endian.s
- $(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o
- case $(file "${T}"/endian.o) in
- *" MSB "*) echo "big";;
- *" LSB "*) echo "little";;
- *) echo "NFC";;
- esac
- rm -f "${T}"/endian.{s,o}
-}
-
-pkg_setup() {
- just_headers && return 0
- has_version ${CATEGORY}/uclibc || return 0
- [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0
- [[ ${ROOT} != "/" ]] && return 0
- [[ ${CATEGORY} == cross-* ]] && return 0
-
- if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then
- eerror "You previously built uclibc with USE=-nls."
- eerror "You cannot generate locale data with this"
- eerror "system. Please rerun emerge with USE=pregen."
- die "host cannot support locales"
- elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then
- eerror "You previously built uclibc with USE=nls."
- eerror "Rebuilding uClibc with USE=-nls will prob"
- eerror "destroy your system."
- die "switching from nls is baaaad"
- fi
-}
-
-PIE_STABLE="arm mips ppc x86"
-
-CPU_ALPHA=""
-CPU_AMD64=""
-CPU_ARM="GENERIC_ARM ARM{610,710,720T,920T,922T,926T,_{SA110,SA1100,XSCALE}}"
-CPU_IA64=""
-CPU_M68K=""
-CPU_MIPS="MIPS_ISA_{1,2,3,4,MIPS{32,64}}"
-CPU_PPC=""
-CPU_SH="SH{2,3,4,5}"
-CPU_SPARC=""
-CPU_X86="GENERIC_386 {3,4,5,6}86 586MMX PENTIUM{II,III,4} K{6,7} ELAN CRUSOE WINCHIP{C6,2} CYRIXIII NEHEMIAH"
-IUSE_UCLIBC_CPU="${CPU_ARM} ${CPU_MIPS} ${CPU_PPC} ${CPU_SH} ${CPU_SPARC} ${CPU_X86}"
-
-check_cpu_opts() {
- local cpu_var="CPU_$(echo $(tc-arch) | tr [a-z] [A-Z])"
- [[ -z ${!cpu_var} ]] && return 0
-
- if [[ -z ${UCLIBC_CPU} ]] ; then
- ewarn "You really should consider setting UCLIBC_CPU"
- ewarn "Otherwise, the build will be generic (read: slow)."
- ewarn "Available CPU options:"
- UCLIBC_CPU=$(eval echo ${!cpu_var})
- echo ${UCLIBC_CPU}
- case ${CTARGET} in
- mips[1234]*) export UCLIBC_CPU="MIPS_ISA_${CTARGET:4:1}";;
- sh[2345]*) export UCLIBC_CPU="SH${CTARGET:2:1}";;
- i[456]86*) export UCLIBC_CPU="${CTARGET:1:1}86";;
- *) export UCLIBC_CPU=${UCLIBC_CPU%% *};;
- esac
- else
- local cpu found=0
- for cpu in $(eval echo ${!cpu_var}) ; do
- [[ ${UCLIBC_CPU} == "${cpu}" ]] && found=1 && break
- done
- if [[ ${found} -eq 0 ]] ; then
- ewarn "UCLIBC_CPU choice '${UCLIBC_CPU}' not supported"
- ewarn "Valid choices:"
- eval echo ${!cpu_var}
- die "pick a supported cpu type"
- fi
- fi
-}
-
-src_unpack() {
- [[ -n ${ESVN_REPO_URI} ]] \
- && subversion_src_unpack \
- || unpack ${A}
- cd "${S}"
-
- check_cpu_opts
-
- echo
- einfo "Runtime Prefix: /"
- einfo "Devel Prefix: /usr"
- einfo "Kernel Prefix: $(alt_build_kprefix)"
- einfo "CBUILD: ${CBUILD}"
- einfo "CHOST: ${CHOST}"
- einfo "CTARGET: ${CTARGET}"
- einfo "CPU: ${UCLIBC_CPU:-default}"
- einfo "ENDIAN: $(uclibc_endian)"
- echo
-
- ########## PATCHES ##########
-
- [[ -n ${SVN_VER} ]] && \
- epatch "${WORKDIR}"/${MY_P}-cvs-update-${SVN_VER}.patch
-
- if [[ -n ${PATCH_VER} ]] ; then
- unpack ${MY_P}-patches-${PATCH_VER}.tar.bz2
- EPATCH_SUFFIX="patch"
- epatch "${WORKDIR}"/patch
- # math functions (sinf,cosf,tanf,atan2f,powf,fabsf,copysignf,scalbnf,rem_pio2f)
- cp "${WORKDIR}"/patch/math/libm/* "${S}"/libm/ || die
- epatch "${WORKDIR}"/patch/math
- fi
-
- ########## CPU SELECTION ##########
-
- local target config_target
- case $(tc-arch) in
- alpha) target="alpha"; config_target="no cpu-specific options";;
- amd64) target="x86_64"; config_target="no cpu-specific options";;
- arm) target="arm"; config_target="GENERIC_ARM";;
- ia64) target="ia64"; config_target="no cpu-specific options";;
- m68k) target="m68k"; config_target="no cpu-specific options";;
- mips) target="mips"; config_target="MIPS_ISA_1";;
- ppc) target="powerpc"; config_target="no cpu-specific options";;
- sh) target="sh"; config_target="SH4";;
- sparc) target="sparc"; config_target="no cpu-specific options";;
- x86) target="i386"; config_target="GENERIC_386";;
- *) die "$(tc-arch) lists no defaults :/";;
- esac
- sed -i -e "s:default TARGET_i386:default TARGET_${target}:" \
- extra/Configs/Config.in
- sed -i -e "s:default CONFIG_${config_target}:default CONFIG_${UCLIBC_CPU:-${config_target}}:" \
- extra/Configs/Config.${target}
-
- ########## CONFIG SETUP ##########
-
- make defconfig >/dev/null || die "could not config"
-
- for def in DO{DEBUG{,_PT},ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
- sed -i -e "s:${def}=y:# ${def} is not set:" .config
- done
- if use debug ; then
- #echo "SUPPORT_LD_DEBUG_EARLY=y" >> .config
- echo "SUPPORT_LD_DEBUG=y" >> .config
- echo "DODEBUG=y" >> .config
- #echo "DODEBUG_PT=y" >> .config
- fi
-
- sed -i -e '/ARCH_.*_ENDIAN/d' .config
- echo "ARCH_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config
-
- if [[ $(tc-is-softfloat) != "no" ]] ; then
- sed -i -e '/^HAS_FPU=y$/d' .config
- echo 'HAS_FPU=n' >> .config
- fi
-
- local moredefs="DL_FINI_CRT_COMPAT"
- # We need todo this for a few months. .28 is a major upgrade.
- # Don't do it from cross-compiling case though
- if ! use uclibc-compat ; then
- if [[ -z ${UCLIBC_AND_GLIBC} ]] && [[ -z ${UCLIBC_SCANNED_COMPAT} ]] && \
- ! just_headers && [[ ${CHOST} == ${CTARGET} ]] ; then
- local fnames=""
- einfo "Doing a scanelf in paths for bins containing the __uClibc_start_main symbol"
- fnames=$(scanelf -pyqs__uClibc_start_main -F%F#s)
- if [[ -z ${fnames} ]] ; then
- einfo "This system is clean."
- einfo "To prevent the scanning of files again in the future you can export UCLIBC_SCANNED_COMPAT=1"
- moredefs=""
- else
- ewarn "You need to remerge the packages that contain the following files before you can remerge ${P} without USE=uclibc-compat enabled."
- ewarn "qfile ${fnames}"
- echo
- ewarn "Leaving on ${moredefs}"
- fi
- else
- moredefs=""
- fi
- fi
- for def in ${moredefs} MALLOC_GLIBC_COMPAT DO_C99_MATH UCLIBC_HAS_{RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} ; do
- sed -i -e "s:# ${def} is not set:${def}=y:" .config
- done
- echo "UCLIBC_HAS_FULL_RPC=y" >> .config
- echo "PTHREADS_DEBUG_SUPPORT=y" >> .config
- echo "UCLIBC_HAS_TZ_FILE_READ_MANY=n" >> .config
-
- if use iconv ; then
- sed -i -e "s:# UCLIBC_HAS_LOCALE is not set:UCLIBC_HAS_LOCALE=y:" .config
- echo "UCLIBC_HAS_XLOCALE=n" >> .config
- echo "UCLIBC_HAS_GLIBC_DIGIT_GROUPING=y" >> .config
- echo "UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING=y" >> .config
-
- if use nls ; then
- echo "UCLIBC_HAS_GETTEXT_AWARENESS=y" >> .config
- else
- echo "UCLIBC_HAS_GETTEXT_AWARENESS=n" >> .config
- fi
-
- if use pregen ; then
- echo "UCLIBC_PREGENERATED_LOCALE_DATA=y" >> .config
- echo "UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y" >> .config
- if use userlocales ; then
- cp "${DISTDIR}"/${MY_P}-user-locale.tar.gz \
- extra/locale/uClibc-locale-030818.tgz \
- || die "could not copy ${MY_P}-user-locale.tar.gz"
- else
- cp "${DISTDIR}"/${MY_P}-$(tc-arch)-full-locale.tar.gz \
- extra/locale/uClibc-locale-030818.tgz \
- || die "could not copy locale"
- fi
- else
- echo "UCLIBC_PREGENERATED_LOCALE_DATA=n" >> .config
- fi
- else
- echo "UCLIBC_HAS_LOCALE=n" >> .config
- fi
-
- use ipv6 && sed -i -e "s:# UCLIBC_HAS_IPV6 is not set:UCLIBC_HAS_IPV6=y:" .config
-
- # uncomment if you miss wordexp (alsa-lib)
- use wordexp && sed -i -e "s:# UCLIBC_HAS_WORDEXP is not set:UCLIBC_HAS_WORDEXP=y:" .config
-
- # we need to do it independently of hardened to get ssp.c built into libc
- sed -i -e "s:# UCLIBC_SECURITY.*:UCLIBC_SECURITY=y:" .config
- echo "UCLIBC_HAS_SSP=y" >> .config
- echo "SSP_USE_ERANDOM=n" >> .config
- echo "PROPOLICE_BLOCK_ABRT=n" >> .config
- if use debug ; then
- echo "PROPOLICE_BLOCK_SEGV=y" >> .config
- echo "PROPOLICE_BLOCK_KILL=n" >> .config
- else
- echo "PROPOLICE_BLOCK_SEGV=n" >> .config
- echo "PROPOLICE_BLOCK_KILL=y" >> .config
- fi
-
- # arm/mips do not emit PT_GNU_STACK, but if we enable this here
- # it will be emitted as RWE, ppc has to be checked, x86 needs it
- # this option should be used independently of hardened
- # relro could be also moved out of hardened
- if has $(tc-arch) x86 ; then
- echo "UCLIBC_BUILD_NOEXECSTACK=y" >> .config
- else
- echo "UCLIBC_BUILD_NOEXECSTACK=n" >> .config
- fi
- echo "UCLIBC_BUILD_RELRO=y" >> .config
- if use hardened ; then
- if has $(tc-arch) ${PIE_STABLE} ; then
- echo "UCLIBC_BUILD_PIE=y" >> .config
- else
- echo "UCLIBC_BUILD_PIE=n" >> .config
- fi
- echo "SSP_QUICK_CANARY=n" >> .config
- echo "UCLIBC_BUILD_SSP=y" >> .config
- echo "UCLIBC_BUILD_NOW=y" >> .config
- else
- echo "UCLIBC_BUILD_PIE=n" >> .config
- echo "SSP_QUICK_CANARY=y" >> .config
- echo "UCLIBC_BUILD_SSP=n" >> .config
- echo "UCLIBC_BUILD_NOW=n" >> .config
- fi
-
- # Allow users some custom control over the config
- if use savedconfig ; then
- for conf in ${PN}-${PV}-${PR} ${PN}-${PV} ${PN}; do
- configfile=${ROOT}/etc/${PN}/${CTARGET}/${conf}.config
- einfo "Checking existence of ${configfile} ..."
- [[ -r ${configfile} ]] || configfile=/etc/${PN}/${CHOST}/${conf}.config
- if [[ -r ${configfile} ]] ; then
- cp "${configfile}" "${S}"/.config
- einfo "Found your ${configfile} and using it."
- einfo "Note that this feature is *totally unsupported*."
- break
- fi
- done
- fi
-
- # setup build and run paths
- local cross=${CTARGET}-
- type -p ${cross}ar > /dev/null || cross=""
- sed -i \
- -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${cross}\":" \
- -e "/^KERNEL_SOURCE/s:=.*:=\"$(alt_build_kprefix)\":" \
- -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/$(get_libdir)\":" \
- -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \
- -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \
- .config || die
-
- yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig"
-
- cp .config myconfig
-
- emake -s clean > /dev/null || die "could not clean"
-}
-
-setup_locales() {
- cd "${S}"/extra/locale
- if use userlocales && [[ -f ${ROOT}/etc/locales.build ]] ; then
- :;
- elif use minimal ; then
- find ./charmaps -name ASCII.pairs > codesets.txt
- find ./charmaps -name ISO-8859-1.pairs >> codesets.txt
- cat <<-EOF > locales.txt
- @euro e
- UTF-8 yes
- 8-bit yes
- en_US ISO-8859-1
- en_US.UTF-8 UTF-8
- EOF
- else
- find ./charmaps -name '*.pairs' > codesets.txt
- cp LOCALES locales.txt
- fi
- cd -
-}
-
-src_compile() {
- cp myconfig .config
-
- emake headers || die "make headers failed"
- just_headers && return 0
-
- if use iconv && ! use pregen ; then
- cd extra/locale
- make clean || die "make locale clean failed"
- setup_locales
- emake || die "make locales failed"
- cd ../..
- fi
-
- emake || die "make failed"
- if [[ ${CTARGET} != ${CHOST} ]] ; then
- emake -C utils hostutils || die "make hostutils failed"
- elif [[ ${CHOST} == *-uclibc ]] ; then
- emake utils || die "make utils failed"
- fi
-}
-
-src_test() {
- [[ ${CHOST} != ${CTARGET} ]] && return 0
- [[ ${CBUILD} != ${CHOST} ]] && return 0
-
- # assert test fails on pax/grsec enabled kernels - normal
- # vfork test fails in sandbox (both glibc/uclibc)
- make UCLIBC_ONLY=1 check || die "test failed"
-}
-
-src_install() {
- local sysroot=${D}
- [[ ${CHOST} != ${CTARGET} ]] && sysroot="${sysroot}/usr/${CTARGET}"
-
- local target="install"
- just_headers && target="install_dev"
- emake DESTDIR="${sysroot}" ${target} || die "install failed"
-
- # remove files coming from kernel-headers
- rm -rf "${sysroot}"/usr/include/{linux,asm*}
-
- # Make sure we install the sys-include symlink so that when
- # we build a 2nd stage cross-compiler, gcc finds the target
- # system headers correctly. See gcc/doc/gccinstall.info
- if [[ ${CTARGET} != ${CHOST} ]] ; then
- dosym usr/include /usr/${CTARGET}/sys-include
- if ! just_headers ; then
- newbin utils/ldconfig.host ${CTARGET}-ldconfig || die
- newbin utils/ldd.host ${CTARGET}-ldd || die
- fi
- return 0
- fi
-
- if [[ ${CHOST} == *-uclibc* ]] ; then
- emake DESTDIR="${D}" install_utils || die "install-utils failed"
- dobin extra/scripts/getent
- fi
-
- dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
-}
-
-pkg_postinst() {
- [[ ${CTARGET} != ${CHOST} ]] && return 0
- [[ ${CHOST} != *-uclibc* ]] && return 0
-
- if [[ ! -e ${ROOT}/etc/TZ ]] ; then
- ewarn "Please remember to set your timezone in /etc/TZ"
- [[ ! -d ${ROOT}/etc ]] && mkdir -p "${ROOT}"/etc
- echo "UTC" > "${ROOT}"/etc/TZ
- fi
-
- if [[ ${ROOT} == "/" ]] ; then
- # update cache before reloading init
- /sbin/ldconfig
- # reload init ...
- [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null
- fi
-}
diff --git a/sys-libs/uclibc/uclibc-0.9.28.3-r7.ebuild b/sys-libs/uclibc/uclibc-0.9.28.3-r7.ebuild
deleted file mode 100644
index 1b6657bdb8ce..000000000000
--- a/sys-libs/uclibc/uclibc-0.9.28.3-r7.ebuild
+++ /dev/null
@@ -1,457 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28.3-r7.ebuild,v 1.11 2011/04/20 18:10:38 ulm Exp $
-
-#ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc"
-#inherit subversion
-inherit eutils flag-o-matic toolchain-funcs
-
-export CBUILD=${CBUILD:-${CHOST}}
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} ]] ; then
- if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
- export CTARGET=${CATEGORY/cross-}
- fi
-fi
-# Handle the case where we want uclibc on glibc ...
-if [[ ${CTARGET} == ${CHOST} ]] && [[ ${CHOST} != *-uclibc ]] ; then
- export UCLIBC_AND_GLIBC="sitting in a tree"
- export CTARGET=${CHOST%%-*}-pc-linux-uclibc
-fi
-
-MY_P=uClibc-${PV}
-SVN_VER=""
-PATCH_VER="1.8"
-DESCRIPTION="C library for developing embedded Linux systems"
-HOMEPAGE="http://www.uclibc.org/"
-SRC_URI="mirror://kernel/linux/libs/uclibc/${MY_P}.tar.bz2
- http://uclibc.org/downloads/${MY_P}.tar.bz2
- nls? ( !userlocales? ( pregen? (
- x86? ( http://www.uclibc.org/downloads/uClibc-locale-030818.tgz )
- ) ) )"
-[[ -z ${SVN_VER} ]] || \
- SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2"
-[[ -z ${PATCH_VER} ]] || \
- SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2"
-
-LICENSE="LGPL-2"
-[[ ${CTARGET} != ${CHOST} ]] \
- && SLOT="${CTARGET}" \
- || SLOT="0"
-KEYWORDS="-* arm m68k -mips ppc sh ~sparc x86"
-IUSE="build uclibc-compat debug hardened iconv ipv6 minimal nls pregen savedconfig userlocales wordexp crosscompile_opts_headers-only"
-RESTRICT="strip"
-
-RDEPEND=""
-if [[ ${CTARGET} == ${CHOST} ]] ; then
- DEPEND="virtual/os-headers app-misc/pax-utils"
-else
- DEPEND=""
-fi
-
-S=${WORKDIR}/${MY_P}
-
-alt_build_kprefix() {
- if [[ ${CBUILD} == ${CHOST} && ${CTARGET} == ${CHOST} ]] \
- || [[ -n ${UCLIBC_AND_GLIBC} ]]
- then
- echo /usr
- else
- echo /usr/${CTARGET}/usr
- fi
-}
-just_headers() {
- use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
-}
-
-uclibc_endian() {
- # XXX: this wont work for a toolchain which is bi-endian, but we
- # dont have any such thing at the moment, so not a big deal
- touch "${T}"/endian.s
- $(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o
- case $(file "${T}"/endian.o) in
- *" MSB "*) echo "big";;
- *" LSB "*) echo "little";;
- *) echo "NFC";;
- esac
- rm -f "${T}"/endian.{s,o}
-}
-
-pkg_setup() {
- just_headers && return 0
- has_version ${CATEGORY}/uclibc || return 0
- [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0
- [[ ${ROOT} != "/" ]] && return 0
- [[ ${CATEGORY} == cross-* ]] && return 0
-
- if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then
- eerror "You previously built uclibc with USE=-nls."
- eerror "You cannot generate locale data with this"
- eerror "system. Please rerun emerge with USE=pregen."
- die "host cannot support locales"
- elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then
- eerror "You previously built uclibc with USE=nls."
- eerror "Rebuilding uClibc with USE=-nls will prob"
- eerror "destroy your system."
- die "switching from nls is baaaad"
- fi
-}
-
-PIE_STABLE="arm mips ppc x86"
-
-CPU_ALPHA=""
-CPU_AMD64=""
-CPU_ARM="GENERIC_ARM ARM{610,710,720T,920T,922T,926T,_{SA110,SA1100,XSCALE}}"
-CPU_IA64=""
-CPU_M68K=""
-CPU_MIPS="MIPS_ISA_{1,2,3,4,MIPS{32,64}}"
-CPU_PPC=""
-CPU_SH="SH{2,3,4,5}"
-CPU_SPARC=""
-CPU_X86="GENERIC_386 {3,4,5,6}86 586MMX PENTIUM{II,III,4} K{6,7} ELAN CRUSOE WINCHIP{C6,2} CYRIXIII NEHEMIAH"
-IUSE_UCLIBC_CPU="${CPU_ARM} ${CPU_MIPS} ${CPU_PPC} ${CPU_SH} ${CPU_SPARC} ${CPU_X86}"
-
-check_cpu_opts() {
- local cpu_var="CPU_$(echo $(tc-arch) | tr [a-z] [A-Z])"
- [[ -z ${!cpu_var} ]] && return 0
-
- if [[ -z ${UCLIBC_CPU} ]] ; then
- ewarn "You really should consider setting UCLIBC_CPU"
- ewarn "Otherwise, the build will be generic (read: slow)."
- ewarn "Available CPU options:"
- UCLIBC_CPU=$(eval echo ${!cpu_var})
- echo ${UCLIBC_CPU}
- case ${CTARGET} in
- mips[1234]*) export UCLIBC_CPU="MIPS_ISA_${CTARGET:4:1}";;
- sh[2345]*) export UCLIBC_CPU="SH${CTARGET:2:1}";;
- i[456]86*) export UCLIBC_CPU="${CTARGET:1:1}86";;
- *) export UCLIBC_CPU=${UCLIBC_CPU%% *};;
- esac
- else
- local cpu found=0
- for cpu in $(eval echo ${!cpu_var}) ; do
- [[ ${UCLIBC_CPU} == "${cpu}" ]] && found=1 && break
- done
- if [[ ${found} -eq 0 ]] ; then
- ewarn "UCLIBC_CPU choice '${UCLIBC_CPU}' not supported"
- ewarn "Valid choices:"
- eval echo ${!cpu_var}
- die "pick a supported cpu type"
- fi
- fi
-}
-
-src_unpack() {
- [[ -n ${ESVN_REPO_URI} ]] \
- && subversion_src_unpack \
- || unpack ${A}
- cd "${S}"
-
- check_cpu_opts
-
- echo
- einfo "Runtime Prefix: /"
- einfo "Devel Prefix: /usr"
- einfo "Kernel Prefix: $(alt_build_kprefix)"
- einfo "CBUILD: ${CBUILD}"
- einfo "CHOST: ${CHOST}"
- einfo "CTARGET: ${CTARGET}"
- einfo "CPU: ${UCLIBC_CPU:-default}"
- einfo "ENDIAN: $(uclibc_endian)"
- echo
-
- ########## PATCHES ##########
-
- [[ -n ${SVN_VER} ]] && \
- epatch "${WORKDIR}"/${MY_P}-cvs-update-${SVN_VER}.patch
-
- if [[ -n ${PATCH_VER} ]] ; then
- unpack ${MY_P}-patches-${PATCH_VER}.tar.bz2
- EPATCH_SUFFIX="patch"
- epatch "${WORKDIR}"/patch
- # math functions (sinf,cosf,tanf,atan2f,powf,fabsf,copysignf,scalbnf,rem_pio2f)
- cp "${WORKDIR}"/patch/math/libm/* "${S}"/libm/ || die
- epatch "${WORKDIR}"/patch/math
- fi
-
- ########## CPU SELECTION ##########
-
- local target config_target
- case $(tc-arch) in
- alpha) target="alpha"; config_target="no cpu-specific options";;
- amd64) target="x86_64"; config_target="no cpu-specific options";;
- arm) target="arm"; config_target="GENERIC_ARM";;
- ia64) target="ia64"; config_target="no cpu-specific options";;
- m68k) target="m68k"; config_target="no cpu-specific options";;
- mips) target="mips"; config_target="MIPS_ISA_1";;
- ppc) target="powerpc"; config_target="no cpu-specific options";;
- sh) target="sh"; config_target="SH4";;
- sparc) target="sparc"; config_target="no cpu-specific options";;
- x86) target="i386"; config_target="GENERIC_386";;
- *) die "$(tc-arch) lists no defaults :/";;
- esac
- sed -i -e "s:default TARGET_i386:default TARGET_${target}:" \
- extra/Configs/Config.in
- sed -i -e "s:default CONFIG_${config_target}:default CONFIG_${UCLIBC_CPU:-${config_target}}:" \
- extra/Configs/Config.${target}
-
- ########## CONFIG SETUP ##########
-
- make defconfig >/dev/null || die "could not config"
-
- for def in DO{DEBUG{,_PT},ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
- sed -i -e "s:${def}=y:# ${def} is not set:" .config
- done
- if use debug ; then
- #echo "SUPPORT_LD_DEBUG_EARLY=y" >> .config
- echo "SUPPORT_LD_DEBUG=y" >> .config
- echo "DODEBUG=y" >> .config
- #echo "DODEBUG_PT=y" >> .config
- fi
-
- sed -i -e '/ARCH_.*_ENDIAN/d' .config
- echo "ARCH_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config
-
- if [[ $(tc-is-softfloat) != "no" ]] ; then
- sed -i -e '/^HAS_FPU=y$/d' .config
- echo 'HAS_FPU=n' >> .config
- fi
-
- local moredefs="DL_FINI_CRT_COMPAT"
- # We need todo this for a few months. .28 is a major upgrade.
- # Don't do it from cross-compiling case though
- if ! use uclibc-compat ; then
- if [[ -z ${UCLIBC_AND_GLIBC} ]] && [[ -z ${UCLIBC_SCANNED_COMPAT} ]] && \
- ! just_headers && [[ ${CHOST} == ${CTARGET} ]] ; then
- local fnames=""
- einfo "Doing a scanelf in paths for bins containing the __uClibc_start_main symbol"
- fnames=$(scanelf -pyqs__uClibc_start_main -F%F#s)
- if [[ -z ${fnames} ]] ; then
- einfo "This system is clean."
- einfo "To prevent the scanning of files again in the future you can export UCLIBC_SCANNED_COMPAT=1"
- moredefs=""
- else
- ewarn "You need to remerge the packages that contain the following files before you can remerge ${P} without USE=uclibc-compat enabled."
- ewarn "qfile ${fnames}"
- echo
- ewarn "Leaving on ${moredefs}"
- fi
- else
- moredefs=""
- fi
- fi
- for def in ${moredefs} MALLOC_GLIBC_COMPAT DO_C99_MATH UCLIBC_HAS_{RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} ; do
- sed -i -e "s:# ${def} is not set:${def}=y:" .config
- done
- echo "UCLIBC_HAS_FULL_RPC=y" >> .config
- echo "PTHREADS_DEBUG_SUPPORT=y" >> .config
- echo "UCLIBC_HAS_TZ_FILE_READ_MANY=n" >> .config
-
- if use iconv ; then
- sed -i -e "s:# UCLIBC_HAS_LOCALE is not set:UCLIBC_HAS_LOCALE=y:" .config
- echo "UCLIBC_HAS_XLOCALE=n" >> .config
- echo "UCLIBC_HAS_GLIBC_DIGIT_GROUPING=y" >> .config
- echo "UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING=y" >> .config
-
- if use nls ; then
- echo "UCLIBC_HAS_GETTEXT_AWARENESS=y" >> .config
- else
- echo "UCLIBC_HAS_GETTEXT_AWARENESS=n" >> .config
- fi
-
- if use pregen ; then
- echo "UCLIBC_PREGENERATED_LOCALE_DATA=y" >> .config
- echo "UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y" >> .config
- if use userlocales ; then
- cp "${DISTDIR}"/${MY_P}-user-locale.tar.gz \
- extra/locale/uClibc-locale-030818.tgz \
- || die "could not copy ${MY_P}-user-locale.tar.gz"
- else
- cp "${DISTDIR}"/${MY_P}-$(tc-arch)-full-locale.tar.gz \
- extra/locale/uClibc-locale-030818.tgz \
- || die "could not copy locale"
- fi
- else
- echo "UCLIBC_PREGENERATED_LOCALE_DATA=n" >> .config
- fi
- else
- echo "UCLIBC_HAS_LOCALE=n" >> .config
- fi
-
- use ipv6 && sed -i -e "s:# UCLIBC_HAS_IPV6 is not set:UCLIBC_HAS_IPV6=y:" .config
-
- # uncomment if you miss wordexp (alsa-lib)
- use wordexp && sed -i -e "s:# UCLIBC_HAS_WORDEXP is not set:UCLIBC_HAS_WORDEXP=y:" .config
-
- # we need to do it independently of hardened to get ssp.c built into libc
- sed -i -e "s:# UCLIBC_SECURITY.*:UCLIBC_SECURITY=y:" .config
- echo "UCLIBC_HAS_SSP=y" >> .config
- echo "SSP_USE_ERANDOM=n" >> .config
- echo "PROPOLICE_BLOCK_ABRT=n" >> .config
- if use debug ; then
- echo "PROPOLICE_BLOCK_SEGV=y" >> .config
- echo "PROPOLICE_BLOCK_KILL=n" >> .config
- else
- echo "PROPOLICE_BLOCK_SEGV=n" >> .config
- echo "PROPOLICE_BLOCK_KILL=y" >> .config
- fi
-
- # arm/mips do not emit PT_GNU_STACK, but if we enable this here
- # it will be emitted as RWE, ppc has to be checked, x86 needs it
- # this option should be used independently of hardened
- # relro could be also moved out of hardened
- if has $(tc-arch) x86 ; then
- echo "UCLIBC_BUILD_NOEXECSTACK=y" >> .config
- else
- echo "UCLIBC_BUILD_NOEXECSTACK=n" >> .config
- fi
- echo "UCLIBC_BUILD_RELRO=y" >> .config
- if use hardened ; then
- if has $(tc-arch) ${PIE_STABLE} ; then
- echo "UCLIBC_BUILD_PIE=y" >> .config
- else
- echo "UCLIBC_BUILD_PIE=n" >> .config
- fi
- echo "SSP_QUICK_CANARY=n" >> .config
- echo "UCLIBC_BUILD_SSP=y" >> .config
- echo "UCLIBC_BUILD_NOW=y" >> .config
- else
- echo "UCLIBC_BUILD_PIE=n" >> .config
- echo "SSP_QUICK_CANARY=y" >> .config
- echo "UCLIBC_BUILD_SSP=n" >> .config
- echo "UCLIBC_BUILD_NOW=n" >> .config
- fi
-
- # Allow users some custom control over the config
- if use savedconfig ; then
- for conf in ${PN}-${PV}-${PR} ${PN}-${PV} ${PN}; do
- configfile=${ROOT}/etc/${PN}/${CTARGET}/${conf}.config
- einfo "Checking existence of ${configfile} ..."
- [[ -r ${configfile} ]] || configfile=/etc/${PN}/${CHOST}/${conf}.config
- if [[ -r ${configfile} ]] ; then
- cp "${configfile}" "${S}"/.config
- einfo "Found your ${configfile} and using it."
- einfo "Note that this feature is *totally unsupported*."
- break
- fi
- done
- fi
-
- # setup build and run paths
- local cross=${CTARGET}-
- type -p ${cross}ar > /dev/null || cross=""
- sed -i \
- -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${cross}\":" \
- -e "/^KERNEL_SOURCE/s:=.*:=\"$(alt_build_kprefix)\":" \
- -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/$(get_libdir)\":" \
- -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \
- -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \
- .config || die
-
- yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig"
-
- cp .config myconfig
-
- emake -s clean > /dev/null || die "could not clean"
-}
-
-setup_locales() {
- cd "${S}"/extra/locale
- if use userlocales && [[ -f ${ROOT}/etc/locales.build ]] ; then
- :;
- elif use minimal ; then
- find ./charmaps -name ASCII.pairs > codesets.txt
- find ./charmaps -name ISO-8859-1.pairs >> codesets.txt
- cat <<-EOF > locales.txt
- @euro e
- UTF-8 yes
- 8-bit yes
- en_US ISO-8859-1
- en_US.UTF-8 UTF-8
- EOF
- else
- find ./charmaps -name '*.pairs' > codesets.txt
- cp LOCALES locales.txt
- fi
- cd -
-}
-
-src_compile() {
- cp myconfig .config
-
- emake headers || die "make headers failed"
- just_headers && return 0
-
- if use iconv && ! use pregen ; then
- cd extra/locale
- make clean || die "make locale clean failed"
- setup_locales
- emake || die "make locales failed"
- cd ../..
- fi
-
- emake || die "make failed"
- if [[ ${CTARGET} != ${CHOST} ]] ; then
- emake -C utils hostutils || die "make hostutils failed"
- elif [[ ${CHOST} == *-uclibc ]] ; then
- emake utils || die "make utils failed"
- fi
-}
-
-src_test() {
- [[ ${CHOST} != ${CTARGET} ]] && return 0
- [[ ${CBUILD} != ${CHOST} ]] && return 0
-
- # assert test fails on pax/grsec enabled kernels - normal
- # vfork test fails in sandbox (both glibc/uclibc)
- make UCLIBC_ONLY=1 check || die "test failed"
-}
-
-src_install() {
- local sysroot=${D}
- [[ ${CHOST} != ${CTARGET} ]] && sysroot="${sysroot}/usr/${CTARGET}"
-
- local target="install"
- just_headers && target="install_dev"
- emake DESTDIR="${sysroot}" ${target} || die "install failed"
-
- # remove files coming from kernel-headers
- rm -rf "${sysroot}"/usr/include/{linux,asm*}
-
- # Make sure we install the sys-include symlink so that when
- # we build a 2nd stage cross-compiler, gcc finds the target
- # system headers correctly. See gcc/doc/gccinstall.info
- if [[ ${CTARGET} != ${CHOST} ]] ; then
- dosym usr/include /usr/${CTARGET}/sys-include
- if ! just_headers ; then
- newbin utils/ldconfig.host ${CTARGET}-ldconfig || die
- newbin utils/ldd.host ${CTARGET}-ldd || die
- fi
- return 0
- fi
-
- if [[ ${CHOST} == *-uclibc* ]] ; then
- emake DESTDIR="${D}" install_utils || die "install-utils failed"
- dobin extra/scripts/getent
- fi
-
- dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
-}
-
-pkg_postinst() {
- [[ ${CTARGET} != ${CHOST} ]] && return 0
- [[ ${CHOST} != *-uclibc* ]] && return 0
-
- if [[ ! -e ${ROOT}/etc/TZ ]] ; then
- ewarn "Please remember to set your timezone in /etc/TZ"
- [[ ! -d ${ROOT}/etc ]] && mkdir -p "${ROOT}"/etc
- echo "UTC" > "${ROOT}"/etc/TZ
- fi
-
- if [[ ${ROOT} == "/" ]] ; then
- # update cache before reloading init
- /sbin/ldconfig
- # reload init ...
- [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null
- fi
-}
diff --git a/sys-libs/uclibc/uclibc-0.9.28.3-r8.ebuild b/sys-libs/uclibc/uclibc-0.9.28.3-r8.ebuild
index 33d8b609ea75..bd953d76b8f4 100644
--- a/sys-libs/uclibc/uclibc-0.9.28.3-r8.ebuild
+++ b/sys-libs/uclibc/uclibc-0.9.28.3-r8.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28.3-r8.ebuild,v 1.7 2011/04/20 18:10:38 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28.3-r8.ebuild,v 1.8 2012/06/09 06:47:12 vapier Exp $
#ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc"
#inherit subversion
@@ -212,11 +212,6 @@ src_unpack() {
sed -i -e '/ARCH_.*_ENDIAN/d' .config
echo "ARCH_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config
- if [[ $(tc-is-softfloat) != "no" ]] ; then
- sed -i -e '/^HAS_FPU=y$/d' .config
- echo 'HAS_FPU=n' >> .config
- fi
-
local moredefs="DL_FINI_CRT_COMPAT"
# We need todo this for a few months. .28 is a major upgrade.
# Don't do it from cross-compiling case though
diff --git a/sys-libs/uclibc/uclibc-0.9.28.3.ebuild b/sys-libs/uclibc/uclibc-0.9.28.3.ebuild
deleted file mode 100644
index 6230a55456ce..000000000000
--- a/sys-libs/uclibc/uclibc-0.9.28.3.ebuild
+++ /dev/null
@@ -1,457 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28.3.ebuild,v 1.16 2011/04/20 18:10:38 ulm Exp $
-
-#ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc"
-#inherit subversion
-inherit eutils flag-o-matic toolchain-funcs
-
-export CBUILD=${CBUILD:-${CHOST}}
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} ]] ; then
- if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
- export CTARGET=${CATEGORY/cross-}
- fi
-fi
-# Handle the case where we want uclibc on glibc ...
-if [[ ${CTARGET} == ${CHOST} ]] && [[ ${CHOST} != *-uclibc ]] ; then
- export UCLIBC_AND_GLIBC="sitting in a tree"
- export CTARGET=${CHOST%%-*}-pc-linux-uclibc
-fi
-
-MY_P=uClibc-${PV}
-SVN_VER=""
-PATCH_VER="1.0"
-DESCRIPTION="C library for developing embedded Linux systems"
-HOMEPAGE="http://www.uclibc.org/"
-SRC_URI="mirror://kernel/linux/libs/uclibc/${MY_P}.tar.bz2
- http://uclibc.org/downloads/${MY_P}.tar.bz2
- nls? ( !userlocales? ( pregen? (
- x86? ( http://www.uclibc.org/downloads/uClibc-locale-030818.tgz )
- ) ) )"
-[[ -z ${SVN_VER} ]] || \
- SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2"
-[[ -z ${PATCH_VER} ]] || \
- SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2"
-
-LICENSE="LGPL-2"
-[[ ${CTARGET} != ${CHOST} ]] \
- && SLOT="${CTARGET}" \
- || SLOT="0"
-KEYWORDS="-* arm m68k -mips ppc sh sparc x86"
-IUSE="build uclibc-compat debug hardened iconv ipv6 minimal nls pregen savedconfig userlocales wordexp crosscompile_opts_headers-only"
-RESTRICT="strip"
-
-RDEPEND=""
-if [[ ${CTARGET} == ${CHOST} ]] ; then
- DEPEND="virtual/os-headers app-misc/pax-utils"
-else
- DEPEND=""
-fi
-
-S=${WORKDIR}/${MY_P}
-
-alt_build_kprefix() {
- if [[ ${CBUILD} == ${CHOST} && ${CTARGET} == ${CHOST} ]] \
- || [[ -n ${UCLIBC_AND_GLIBC} ]]
- then
- echo /usr
- else
- echo /usr/${CTARGET}/usr
- fi
-}
-just_headers() {
- use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
-}
-
-uclibc_endian() {
- # XXX: this wont work for a toolchain which is bi-endian, but we
- # dont have any such thing at the moment, so not a big deal
- touch "${T}"/endian.s
- $(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o
- case $(file "${T}"/endian.o) in
- *" MSB "*) echo "big";;
- *" LSB "*) echo "little";;
- *) echo "NFC";;
- esac
- rm -f "${T}"/endian.{s,o}
-}
-
-pkg_setup() {
- just_headers && return 0
- has_version ${CATEGORY}/uclibc || return 0
- [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0
- [[ ${ROOT} != "/" ]] && return 0
- [[ ${CATEGORY} == cross-* ]] && return 0
-
- if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then
- eerror "You previously built uclibc with USE=-nls."
- eerror "You cannot generate locale data with this"
- eerror "system. Please rerun emerge with USE=pregen."
- die "host cannot support locales"
- elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then
- eerror "You previously built uclibc with USE=nls."
- eerror "Rebuilding uClibc with USE=-nls will prob"
- eerror "destroy your system."
- die "switching from nls is baaaad"
- fi
-}
-
-PIE_STABLE="arm mips ppc x86"
-
-CPU_ALPHA=""
-CPU_AMD64=""
-CPU_ARM="GENERIC_ARM ARM{610,710,720T,920T,922T,926T,_{SA110,SA1100,XSCALE}}"
-CPU_IA64=""
-CPU_M68K=""
-CPU_MIPS="MIPS_ISA_{1,2,3,4,MIPS{32,64}}"
-CPU_PPC=""
-CPU_SH="SH{2,3,4,5}"
-CPU_SPARC=""
-CPU_X86="GENERIC_386 {3,4,5,6}86 586MMX PENTIUM{II,III,4} K{6,7} ELAN CRUSOE WINCHIP{C6,2} CYRIXIII NEHEMIAH"
-IUSE_UCLIBC_CPU="${CPU_ARM} ${CPU_MIPS} ${CPU_PPC} ${CPU_SH} ${CPU_SPARC} ${CPU_X86}"
-
-check_cpu_opts() {
- local cpu_var="CPU_$(echo $(tc-arch) | tr [a-z] [A-Z])"
- [[ -z ${!cpu_var} ]] && return 0
-
- if [[ -z ${UCLIBC_CPU} ]] ; then
- ewarn "You really should consider setting UCLIBC_CPU"
- ewarn "Otherwise, the build will be generic (read: slow)."
- ewarn "Available CPU options:"
- UCLIBC_CPU=$(eval echo ${!cpu_var})
- echo ${UCLIBC_CPU}
- case ${CTARGET} in
- mips[1234]*) export UCLIBC_CPU="MIPS_ISA_${CTARGET:4:1}";;
- sh[2345]*) export UCLIBC_CPU="SH${CTARGET:2:1}";;
- i[456]86*) export UCLIBC_CPU="${CTARGET:1:1}86";;
- *) export UCLIBC_CPU=${UCLIBC_CPU%% *};;
- esac
- else
- local cpu found=0
- for cpu in $(eval echo ${!cpu_var}) ; do
- [[ ${UCLIBC_CPU} == "${cpu}" ]] && found=1 && break
- done
- if [[ ${found} -eq 0 ]] ; then
- ewarn "UCLIBC_CPU choice '${UCLIBC_CPU}' not supported"
- ewarn "Valid choices:"
- eval echo ${!cpu_var}
- die "pick a supported cpu type"
- fi
- fi
-}
-
-src_unpack() {
- [[ -n ${ESVN_REPO_URI} ]] \
- && subversion_src_unpack \
- || unpack ${A}
- cd "${S}"
-
- check_cpu_opts
-
- echo
- einfo "Runtime Prefix: /"
- einfo "Devel Prefix: /usr"
- einfo "Kernel Prefix: $(alt_build_kprefix)"
- einfo "CBUILD: ${CBUILD}"
- einfo "CHOST: ${CHOST}"
- einfo "CTARGET: ${CTARGET}"
- einfo "CPU: ${UCLIBC_CPU:-default}"
- einfo "ENDIAN: $(uclibc_endian)"
- echo
-
- ########## PATCHES ##########
-
- [[ -n ${SVN_VER} ]] && \
- epatch "${WORKDIR}"/${MY_P}-cvs-update-${SVN_VER}.patch
-
- if [[ -n ${PATCH_VER} ]] ; then
- unpack ${MY_P}-patches-${PATCH_VER}.tar.bz2
- EPATCH_SUFFIX="patch"
- epatch "${WORKDIR}"/patch
- # math functions (sinf,cosf,tanf,atan2f,powf,fabsf,copysignf,scalbnf,rem_pio2f)
- cp "${WORKDIR}"/patch/math/libm/* "${S}"/libm/ || die
- epatch "${WORKDIR}"/patch/math
- fi
-
- ########## CPU SELECTION ##########
-
- local target config_target
- case $(tc-arch) in
- alpha) target="alpha"; config_target="no cpu-specific options";;
- amd64) target="x86_64"; config_target="no cpu-specific options";;
- arm) target="arm"; config_target="GENERIC_ARM";;
- ia64) target="ia64"; config_target="no cpu-specific options";;
- m68k) target="m68k"; config_target="no cpu-specific options";;
- mips) target="mips"; config_target="MIPS_ISA_1";;
- ppc) target="powerpc"; config_target="no cpu-specific options";;
- sh) target="sh"; config_target="SH4";;
- sparc) target="sparc"; config_target="no cpu-specific options";;
- x86) target="i386"; config_target="GENERIC_386";;
- *) die "$(tc-arch) lists no defaults :/";;
- esac
- sed -i -e "s:default TARGET_i386:default TARGET_${target}:" \
- extra/Configs/Config.in
- sed -i -e "s:default CONFIG_${config_target}:default CONFIG_${UCLIBC_CPU:-${config_target}}:" \
- extra/Configs/Config.${target}
-
- ########## CONFIG SETUP ##########
-
- make defconfig >/dev/null || die "could not config"
-
- for def in DO{DEBUG{,_PT},ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
- sed -i -e "s:${def}=y:# ${def} is not set:" .config
- done
- if use debug ; then
- #echo "SUPPORT_LD_DEBUG_EARLY=y" >> .config
- echo "SUPPORT_LD_DEBUG=y" >> .config
- echo "DODEBUG=y" >> .config
- #echo "DODEBUG_PT=y" >> .config
- fi
-
- sed -i -e '/ARCH_.*_ENDIAN/d' .config
- echo "ARCH_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config
-
- if [[ $(tc-is-softfloat) != "no" ]] ; then
- sed -i -e '/^HAS_FPU=y$/d' .config
- echo 'HAS_FPU=n' >> .config
- fi
-
- local moredefs="DL_FINI_CRT_COMPAT"
- # We need todo this for a few months. .28 is a major upgrade.
- # Don't do it from cross-compiling case though
- if ! use uclibc-compat ; then
- if [[ -z ${UCLIBC_AND_GLIBC} ]] && [[ -z ${UCLIBC_SCANNED_COMPAT} ]] && \
- ! just_headers && [[ ${CHOST} == ${CTARGET} ]] ; then
- local fnames=""
- einfo "Doing a scanelf in paths for bins containing the __uClibc_start_main symbol"
- fnames=$(scanelf -pyqs__uClibc_start_main -F%F#s)
- if [[ -z ${fnames} ]] ; then
- einfo "This system is clean."
- einfo "To prevent the scanning of files again in the future you can export UCLIBC_SCANNED_COMPAT=1"
- moredefs=""
- else
- ewarn "You need to remerge the packages that contain the following files before you can remerge ${P} without USE=uclibc-compat enabled."
- ewarn "qfile ${fnames}"
- echo
- ewarn "Leaving on ${moredefs}"
- fi
- else
- moredefs=""
- fi
- fi
- for def in ${moredefs} MALLOC_GLIBC_COMPAT DO_C99_MATH UCLIBC_HAS_{RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} ; do
- sed -i -e "s:# ${def} is not set:${def}=y:" .config
- done
- echo "UCLIBC_HAS_FULL_RPC=y" >> .config
- echo "PTHREADS_DEBUG_SUPPORT=y" >> .config
- echo "UCLIBC_HAS_TZ_FILE_READ_MANY=n" >> .config
-
- if use iconv ; then
- sed -i -e "s:# UCLIBC_HAS_LOCALE is not set:UCLIBC_HAS_LOCALE=y:" .config
- echo "UCLIBC_HAS_XLOCALE=n" >> .config
- echo "UCLIBC_HAS_GLIBC_DIGIT_GROUPING=y" >> .config
- echo "UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING=y" >> .config
-
- if use nls ; then
- echo "UCLIBC_HAS_GETTEXT_AWARENESS=y" >> .config
- else
- echo "UCLIBC_HAS_GETTEXT_AWARENESS=n" >> .config
- fi
-
- if use pregen ; then
- echo "UCLIBC_PREGENERATED_LOCALE_DATA=y" >> .config
- echo "UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y" >> .config
- if use userlocales ; then
- cp "${DISTDIR}"/${MY_P}-user-locale.tar.gz \
- extra/locale/uClibc-locale-030818.tgz \
- || die "could not copy ${MY_P}-user-locale.tar.gz"
- else
- cp "${DISTDIR}"/${MY_P}-$(tc-arch)-full-locale.tar.gz \
- extra/locale/uClibc-locale-030818.tgz \
- || die "could not copy locale"
- fi
- else
- echo "UCLIBC_PREGENERATED_LOCALE_DATA=n" >> .config
- fi
- else
- echo "UCLIBC_HAS_LOCALE=n" >> .config
- fi
-
- use ipv6 && sed -i -e "s:# UCLIBC_HAS_IPV6 is not set:UCLIBC_HAS_IPV6=y:" .config
-
- # uncomment if you miss wordexp (alsa-lib)
- use wordexp && sed -i -e "s:# UCLIBC_HAS_WORDEXP is not set:UCLIBC_HAS_WORDEXP=y:" .config
-
- # we need to do it independently of hardened to get ssp.c built into libc
- sed -i -e "s:# UCLIBC_SECURITY.*:UCLIBC_SECURITY=y:" .config
- echo "UCLIBC_HAS_SSP=y" >> .config
- echo "SSP_USE_ERANDOM=n" >> .config
- echo "PROPOLICE_BLOCK_ABRT=n" >> .config
- if use debug ; then
- echo "PROPOLICE_BLOCK_SEGV=y" >> .config
- echo "PROPOLICE_BLOCK_KILL=n" >> .config
- else
- echo "PROPOLICE_BLOCK_SEGV=n" >> .config
- echo "PROPOLICE_BLOCK_KILL=y" >> .config
- fi
-
- # arm/mips do not emit PT_GNU_STACK, but if we enable this here
- # it will be emitted as RWE, ppc has to be checked, x86 needs it
- # this option should be used independently of hardened
- # relro could be also moved out of hardened
- if has $(tc-arch) x86 ; then
- echo "UCLIBC_BUILD_NOEXECSTACK=y" >> .config
- else
- echo "UCLIBC_BUILD_NOEXECSTACK=n" >> .config
- fi
- echo "UCLIBC_BUILD_RELRO=y" >> .config
- if use hardened ; then
- if has $(tc-arch) ${PIE_STABLE} ; then
- echo "UCLIBC_BUILD_PIE=y" >> .config
- else
- echo "UCLIBC_BUILD_PIE=n" >> .config
- fi
- echo "SSP_QUICK_CANARY=n" >> .config
- echo "UCLIBC_BUILD_SSP=y" >> .config
- echo "UCLIBC_BUILD_NOW=y" >> .config
- else
- echo "UCLIBC_BUILD_PIE=n" >> .config
- echo "SSP_QUICK_CANARY=y" >> .config
- echo "UCLIBC_BUILD_SSP=n" >> .config
- echo "UCLIBC_BUILD_NOW=n" >> .config
- fi
-
- # Allow users some custom control over the config
- if use savedconfig ; then
- for conf in ${PN}-${PV}-${PR} ${PN}-${PV} ${PN}; do
- configfile=${ROOT}/etc/${PN}/${CTARGET}/${conf}.config
- einfo "Checking existence of ${configfile} ..."
- [[ -r ${configfile} ]] || configfile=/etc/${PN}/${CHOST}/${conf}.config
- if [[ -r ${configfile} ]] ; then
- cp "${configfile}" "${S}"/.config
- einfo "Found your ${configfile} and using it."
- einfo "Note that this feature is *totally unsupported*."
- break
- fi
- done
- fi
-
- # setup build and run paths
- local cross=${CTARGET}-
- type -p ${cross}ar > /dev/null || cross=""
- sed -i \
- -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${cross}\":" \
- -e "/^KERNEL_SOURCE/s:=.*:=\"$(alt_build_kprefix)\":" \
- -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/$(get_libdir)\":" \
- -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \
- -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \
- .config || die
-
- yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig"
-
- cp .config myconfig
-
- emake -s clean > /dev/null || die "could not clean"
-}
-
-setup_locales() {
- cd "${S}"/extra/locale
- if use userlocales && [[ -f ${ROOT}/etc/locales.build ]] ; then
- :;
- elif use minimal ; then
- find ./charmaps -name ASCII.pairs > codesets.txt
- find ./charmaps -name ISO-8859-1.pairs >> codesets.txt
- cat <<-EOF > locales.txt
- @euro e
- UTF-8 yes
- 8-bit yes
- en_US ISO-8859-1
- en_US.UTF-8 UTF-8
- EOF
- else
- find ./charmaps -name '*.pairs' > codesets.txt
- cp LOCALES locales.txt
- fi
- cd -
-}
-
-src_compile() {
- cp myconfig .config
-
- emake headers || die "make headers failed"
- just_headers && return 0
-
- if use iconv && ! use pregen ; then
- cd extra/locale
- make clean || die "make locale clean failed"
- setup_locales
- emake || die "make locales failed"
- cd ../..
- fi
-
- emake || die "make failed"
- if [[ ${CTARGET} != ${CHOST} ]] ; then
- emake -C utils hostutils || die "make hostutils failed"
- elif [[ ${CHOST} == *-uclibc ]] ; then
- emake utils || die "make utils failed"
- fi
-}
-
-src_test() {
- [[ ${CHOST} != ${CTARGET} ]] && return 0
- [[ ${CBUILD} != ${CHOST} ]] && return 0
-
- # assert test fails on pax/grsec enabled kernels - normal
- # vfork test fails in sandbox (both glibc/uclibc)
- make UCLIBC_ONLY=1 check || die "test failed"
-}
-
-src_install() {
- local sysroot=${D}
- [[ ${CHOST} != ${CTARGET} ]] && sysroot="${sysroot}/usr/${CTARGET}"
-
- local target="install"
- just_headers && target="install_dev"
- emake DESTDIR="${sysroot}" ${target} || die "install failed"
-
- # remove files coming from kernel-headers
- rm -rf "${sysroot}"/usr/include/{linux,asm*}
-
- # Make sure we install the sys-include symlink so that when
- # we build a 2nd stage cross-compiler, gcc finds the target
- # system headers correctly. See gcc/doc/gccinstall.info
- if [[ ${CTARGET} != ${CHOST} ]] ; then
- dosym usr/include /usr/${CTARGET}/sys-include
- if ! just_headers ; then
- newbin utils/ldconfig.host ${CTARGET}-ldconfig || die
- newbin utils/ldd.host ${CTARGET}-ldd || die
- fi
- return 0
- fi
-
- if [[ ${CHOST} == *-uclibc* ]] ; then
- emake DESTDIR="${D}" install_utils || die "install-utils failed"
- dobin extra/scripts/getent
- fi
-
- dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
-}
-
-pkg_postinst() {
- [[ ${CTARGET} != ${CHOST} ]] && return 0
- [[ ${CHOST} != *-uclibc* ]] && return 0
-
- if [[ ! -e ${ROOT}/etc/TZ ]] ; then
- ewarn "Please remember to set your timezone in /etc/TZ"
- [[ ! -d ${ROOT}/etc ]] && mkdir -p "${ROOT}"/etc
- echo "UTC" > "${ROOT}"/etc/TZ
- fi
-
- if [[ ${ROOT} == "/" ]] ; then
- # update cache before reloading init
- /sbin/ldconfig
- # reload init ...
- [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null
- fi
-}
diff --git a/sys-libs/uclibc/uclibc-0.9.30.1-r1.ebuild b/sys-libs/uclibc/uclibc-0.9.30.1-r1.ebuild
index ad1e4d3cd45e..768704b5e716 100644
--- a/sys-libs/uclibc/uclibc-0.9.30.1-r1.ebuild
+++ b/sys-libs/uclibc/uclibc-0.9.30.1-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.30.1-r1.ebuild,v 1.9 2011/04/20 18:10:38 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.30.1-r1.ebuild,v 1.10 2012/06/09 06:47:12 vapier Exp $
#ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc"
#inherit subversion
@@ -208,10 +208,6 @@ src_unpack() {
sed -i -e '/ARCH_.*_ENDIAN/d' .config
set_opt "ARCH_WANTS_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN" y
- if [[ $(tc-is-softfloat) != "no" ]] ; then
- set_opt UCLIBC_HAS_FPU n
- fi
-
if [[ ${CTARGET/eabi} != ${CTARGET} ]] ; then
set_opt CONFIG_ARM_OABI n
set_opt CONFIG_ARM_EABI y
diff --git a/sys-libs/uclibc/uclibc-0.9.30.1.ebuild b/sys-libs/uclibc/uclibc-0.9.30.1.ebuild
index 038a5823832d..d234c309b158 100644
--- a/sys-libs/uclibc/uclibc-0.9.30.1.ebuild
+++ b/sys-libs/uclibc/uclibc-0.9.30.1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.30.1.ebuild,v 1.9 2011/04/20 18:10:38 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.30.1.ebuild,v 1.10 2012/06/09 06:47:12 vapier Exp $
#ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc"
#inherit subversion
@@ -200,10 +200,6 @@ src_unpack() {
sed -i -e '/ARCH_.*_ENDIAN/d' .config
set_opt "ARCH_WANTS_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN" y
- if [[ $(tc-is-softfloat) != "no" ]] ; then
- set_opt UCLIBC_HAS_FPU n
- fi
-
if [[ ${CTARGET/eabi} != ${CTARGET} ]] ; then
set_opt CONFIG_ARM_OABI n
set_opt CONFIG_ARM_EABI y
diff --git a/sys-libs/uclibc/uclibc-0.9.30.ebuild b/sys-libs/uclibc/uclibc-0.9.30.ebuild
index c098662e64df..3aadb509d475 100644
--- a/sys-libs/uclibc/uclibc-0.9.30.ebuild
+++ b/sys-libs/uclibc/uclibc-0.9.30.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.30.ebuild,v 1.9 2011/04/20 18:10:38 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.30.ebuild,v 1.10 2012/06/09 06:47:12 vapier Exp $
#ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc"
#inherit subversion
@@ -222,10 +222,6 @@ src_unpack() {
sed -i -e '/ARCH_.*_ENDIAN/d' .config
set_opt "ARCH_WANTS_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN" y
- if [[ $(tc-is-softfloat) != "no" ]] ; then
- set_opt UCLIBC_HAS_FPU n
- fi
-
if [[ ${CTARGET/eabi} != ${CTARGET} ]] ; then
set_opt CONFIG_ARM_OABI n
set_opt CONFIG_ARM_EABI y
diff --git a/sys-libs/uclibc/uclibc-0.9.33.1-r1.ebuild b/sys-libs/uclibc/uclibc-0.9.33.1-r1.ebuild
index aae39ff30366..7025da7a0666 100644
--- a/sys-libs/uclibc/uclibc-0.9.33.1-r1.ebuild
+++ b/sys-libs/uclibc/uclibc-0.9.33.1-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.33.1-r1.ebuild,v 1.2 2012/06/01 04:22:53 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.33.1-r1.ebuild,v 1.3 2012/06/09 06:47:12 vapier Exp $
inherit eutils flag-o-matic multilib toolchain-funcs savedconfig
if [[ ${PV} == "9999" ]] ; then
@@ -159,10 +159,6 @@ src_config() {
sed -i -e '/ARCH_.*_ENDIAN/d' .config
kconfig_q_opt y "ARCH_WANTS_$(uclibc_endian)_ENDIAN"
- if [[ $(tc-is-softfloat) != "no" ]] ; then
- kconfig_q_opt n UCLIBC_HAS_FPU
- fi
-
if [[ ${CTARGET} == arm* ]] ; then
kconfig_q_opt n CONFIG_ARM_OABI
kconfig_q_opt y CONFIG_ARM_EABI
diff --git a/sys-libs/uclibc/uclibc-0.9.33.1.ebuild b/sys-libs/uclibc/uclibc-0.9.33.1.ebuild
index d60e1f65bcda..fc01776ff13e 100644
--- a/sys-libs/uclibc/uclibc-0.9.33.1.ebuild
+++ b/sys-libs/uclibc/uclibc-0.9.33.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.33.1.ebuild,v 1.2 2012/06/01 04:22:53 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.33.1.ebuild,v 1.3 2012/06/09 06:47:12 vapier Exp $
inherit eutils flag-o-matic multilib toolchain-funcs savedconfig
if [[ ${PV} == "9999" ]] ; then
@@ -159,10 +159,6 @@ src_config() {
sed -i -e '/ARCH_.*_ENDIAN/d' .config
kconfig_q_opt y "ARCH_WANTS_$(uclibc_endian)_ENDIAN"
- if [[ $(tc-is-softfloat) != "no" ]] ; then
- kconfig_q_opt n UCLIBC_HAS_FPU
- fi
-
if [[ ${CTARGET} == arm* ]] ; then
kconfig_q_opt n CONFIG_ARM_OABI
kconfig_q_opt y CONFIG_ARM_EABI
diff --git a/sys-libs/uclibc/uclibc-0.9.33.2.ebuild b/sys-libs/uclibc/uclibc-0.9.33.2.ebuild
index 6b5fc1664fb7..707b1d5bd28b 100644
--- a/sys-libs/uclibc/uclibc-0.9.33.2.ebuild
+++ b/sys-libs/uclibc/uclibc-0.9.33.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.33.2.ebuild,v 1.3 2012/06/09 05:27:09 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.33.2.ebuild,v 1.4 2012/06/09 06:47:12 vapier Exp $
inherit eutils flag-o-matic multilib toolchain-funcs savedconfig
if [[ ${PV} == "9999" ]] ; then
@@ -159,10 +159,6 @@ src_config() {
sed -i -e '/ARCH_.*_ENDIAN/d' .config
kconfig_q_opt y "ARCH_WANTS_$(uclibc_endian)_ENDIAN"
- if [[ $(tc-is-softfloat) != "no" ]] ; then
- kconfig_q_opt n UCLIBC_HAS_FPU
- fi
-
if [[ ${CTARGET} == arm* ]] ; then
kconfig_q_opt n CONFIG_ARM_OABI
kconfig_q_opt y CONFIG_ARM_EABI
diff --git a/sys-libs/uclibc/uclibc-9999.ebuild b/sys-libs/uclibc/uclibc-9999.ebuild
index b210ce20004d..65eb2d0855dd 100644
--- a/sys-libs/uclibc/uclibc-9999.ebuild
+++ b/sys-libs/uclibc/uclibc-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-9999.ebuild,v 1.2 2012/06/01 04:22:53 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-9999.ebuild,v 1.3 2012/06/09 06:47:12 vapier Exp $
inherit eutils flag-o-matic multilib toolchain-funcs savedconfig
if [[ ${PV} == "9999" ]] ; then
@@ -159,10 +159,6 @@ src_config() {
sed -i -e '/ARCH_.*_ENDIAN/d' .config
kconfig_q_opt y "ARCH_WANTS_$(uclibc_endian)_ENDIAN"
- if [[ $(tc-is-softfloat) != "no" ]] ; then
- kconfig_q_opt n UCLIBC_HAS_FPU
- fi
-
if [[ ${CTARGET} == arm* ]] ; then
kconfig_q_opt n CONFIG_ARM_OABI
kconfig_q_opt y CONFIG_ARM_EABI
@@ -173,12 +169,13 @@ src_config() {
DO_C99_MATH
UCLIBC_HAS_{CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC}
UCLIBC_HAS_FENV
- UCLIBC_HAS_FTW
+ UCLIBC_HAS_{N,}FTW
UCLIBC_HAS_GNU_GLOB
UCLIBC_HAS_LIBUTIL
UCLIBC_HAS_PROGRAM_INVOCATION_NAME
UCLIBC_HAS_RESOLVER_SUPPORT
UCLIBC_HAS_TZ_FILE_READ_MANY
+ UCLIBC_HAS_UTMPX
UCLIBC_SUSV3_LEGACY
UCLIBC_SUSV3_LEGACY_MACROS
UCLIBC_SUSV4_LEGACY