summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-07-25 14:44:14 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-25 14:44:14 +0000
commit68a025c38aecb23ceebb5bc062385d51bc43ad27 (patch)
tree08633e635cb7375c2eaa037788bc7498f3fd269e
parentremoved RDEPEND=!net-analyzer in preparation for ethereal->wireshark move. (diff)
downloadhistorical-68a025c38aecb23ceebb5bc062385d51bc43ad27.tar.gz
historical-68a025c38aecb23ceebb5bc062385d51bc43ad27.tar.bz2
historical-68a025c38aecb23ceebb5bc062385d51bc43ad27.zip
Remove old ebuilds.
Package-Manager: portage-2.1.1_pre3-r4
-rw-r--r--dev-libs/klibc/Manifest26
-rw-r--r--dev-libs/klibc/files/digest-klibc-1.4.113
-rw-r--r--dev-libs/klibc/files/digest-klibc-1.4.93
-rw-r--r--dev-libs/klibc/files/klibc-1.4.8-dash-flags.patch13
-rw-r--r--dev-libs/klibc/klibc-1.4.11.ebuild219
-rw-r--r--dev-libs/klibc/klibc-1.4.9.ebuild223
6 files changed, 3 insertions, 484 deletions
diff --git a/dev-libs/klibc/Manifest b/dev-libs/klibc/Manifest
index c5b6a9f9505d..0d844eaaacab 100644
--- a/dev-libs/klibc/Manifest
+++ b/dev-libs/klibc/Manifest
@@ -29,10 +29,6 @@ AUX klibc-1.4.7-nostdinc-flags.patch 1163 RMD160 bf741c5a26ac478ff19f6b59de6eaa3
MD5 a4c6e8236b9c25f6b558a418d88d571e files/klibc-1.4.7-nostdinc-flags.patch 1163
RMD160 bf741c5a26ac478ff19f6b59de6eaa387c2cee1d files/klibc-1.4.7-nostdinc-flags.patch 1163
SHA256 753e782a575562c6d30d3cfd4fd0366b28b178d8bced4b57b5eaa1b020205dd5 files/klibc-1.4.7-nostdinc-flags.patch 1163
-AUX klibc-1.4.8-dash-flags.patch 517 RMD160 4ea08679e28d2f71fb50f0845a464357492beaa5 SHA1 befa3ba1a70ec4af7cb5a1eeeb927f032feed64c SHA256 dae946a6449744926f84f876d26634a1b1a069e633bbf79fae62703ef7ce2b5a
-MD5 7c70f018c6e9db478ec322c338c20604 files/klibc-1.4.8-dash-flags.patch 517
-RMD160 4ea08679e28d2f71fb50f0845a464357492beaa5 files/klibc-1.4.8-dash-flags.patch 517
-SHA256 dae946a6449744926f84f876d26634a1b1a069e633bbf79fae62703ef7ce2b5a files/klibc-1.4.8-dash-flags.patch 517
AUX klibc-1.4.9-mips32.patch 632 RMD160 7f9769770208f6b5e44df88f22a682b29acbad3b SHA1 a5f72d885fc191b1f6825cd525ef78472cf2d431 SHA256 546ca8b913721671767fc0c119d694ddaead20f259738ea822a295e20e4f22d3
MD5 b74d27999ddd26a5b44477849bda10d1 files/klibc-1.4.9-mips32.patch 632
RMD160 7f9769770208f6b5e44df88f22a682b29acbad3b files/klibc-1.4.9-mips32.patch 632
@@ -44,9 +40,7 @@ SHA256 02901ef2ca8b320d77b03fab4fa9bef809c11e2e418e7da00aa2c13c4a84dd44 files/kl
DIST klibc-1.1.16.tar.bz2 451284 RMD160 869ed4a53f86bf33b12e5abfa8d343b70da5f8b6 SHA1 8058136ba91f06ab2bf00382b079d8ed03c2585f SHA256 3e7a6f303a7aca1fe938f860c9ee9c93ff7937644b9158bec07df7b1217e8d8b
DIST klibc-1.1.tar.bz2 444770 RMD160 d25df89a8468f05e480ea7348c8cfa25aa4a061e SHA1 167832f15b48f0d7eda160eee4b05b9afa446a69 SHA256 42de47159a382d852750e38fe4877ee2f97f2ff4c47e27f3ce512193d31f63e7
DIST klibc-1.2.1.tar.bz2 451620 RMD160 d0ea3418622c008884c0efb6dee693aa03eca90d SHA1 ff09e5c083326299083846cced052058a291c5bd SHA256 c413b565ea6bd33d4f0af5ee3319d9bc1d804e5cb859b9f3284cad2c449d7c5c
-DIST klibc-1.4.11.tar.bz2 472992 RMD160 d29ef33503f9029b413bf5be30171db17981272a SHA1 51956ac43c057fa6ce3a4eab60603874eaf61ea2 SHA256 659fa977ae4bf83ea2c507304e9df839b81d0fb3526d57049886486038009203
DIST klibc-1.4.12.tar.bz2 473002 RMD160 f10be3132faf99b2e75287c05aa5d1d12c58ebcf SHA1 e61fc2bc3ebebcb60e1e24096f8496d46d977049 SHA256 78f7330e156080809c82dce6d3461ed1f8a547db58bc99c162253c71f3865e89
-DIST klibc-1.4.9.tar.bz2 472957 RMD160 48ac1b171f2f2b5b7b40b791c70adb446502c95c SHA1 39ef201ada1a5a9ab86081367e5549caf512eb1c SHA256 dfde10068f74b7b8d675907bffcb783b5871d35ddc323ee08a7be241bf2ac74f
EBUILD klibc-1.1.16-r1.ebuild 4240 RMD160 6661dd8da518731a420ff98d7dc3f4aabbbeac40 SHA1 fb616105b742112f4f0b9c9db70fec85e0514508 SHA256 7aecfa6e8f3a63fe3c855113c4e535ba93fdc212e9af5818ac1daa35d715858a
MD5 92a3930943687a2c731a7a6eab4850cd klibc-1.1.16-r1.ebuild 4240
RMD160 6661dd8da518731a420ff98d7dc3f4aabbbeac40 klibc-1.1.16-r1.ebuild 4240
@@ -63,18 +57,10 @@ EBUILD klibc-1.2.1-r2.ebuild 5323 RMD160 8319d2f1debd114c0ea0f87126d687ecbf569ef
MD5 645477c67c60ba76c945a13fc08f2804 klibc-1.2.1-r2.ebuild 5323
RMD160 8319d2f1debd114c0ea0f87126d687ecbf569efa klibc-1.2.1-r2.ebuild 5323
SHA256 261ee66329adbf2cc03eba46178c79e57a27c954b99a4821d835c67d1f74ca3d klibc-1.2.1-r2.ebuild 5323
-EBUILD klibc-1.4.11.ebuild 6117 RMD160 c547fd70479a98be82093b641804eba9f67475ea SHA1 bf0e29f1afd101ee92b373311a6b455a315f299d SHA256 1a833a58e63d462f62f2db504673fc672360510c23c578d0ee2b7aae078fa65b
-MD5 ba9098811d28d00287801fa909fdc3e3 klibc-1.4.11.ebuild 6117
-RMD160 c547fd70479a98be82093b641804eba9f67475ea klibc-1.4.11.ebuild 6117
-SHA256 1a833a58e63d462f62f2db504673fc672360510c23c578d0ee2b7aae078fa65b klibc-1.4.11.ebuild 6117
EBUILD klibc-1.4.12.ebuild 6117 RMD160 f5732cb2378c8647088e3c78090918c385228820 SHA1 365fe5ea460f5a5fa5388bcc0c9e2dd674a603ce SHA256 8d88bb5a7ea5a39ec7919a2853dd1326893a04bae5cf9086b7f23659da5820e6
MD5 52151bbf0bc764dfd4aa468cbe3c6103 klibc-1.4.12.ebuild 6117
RMD160 f5732cb2378c8647088e3c78090918c385228820 klibc-1.4.12.ebuild 6117
SHA256 8d88bb5a7ea5a39ec7919a2853dd1326893a04bae5cf9086b7f23659da5820e6 klibc-1.4.12.ebuild 6117
-EBUILD klibc-1.4.9.ebuild 6292 RMD160 39317d7e91c615c35cdaa8c42c6bf6dcc9022575 SHA1 fe920c969bb9c4be1184a89670a8eb99df39d1e9 SHA256 2de65cc60e490ce1bbd0d51c84b8d603b45382045a78802f64359646bce9f787
-MD5 df21a147609a439e2ab8039bfc3748c9 klibc-1.4.9.ebuild 6292
-RMD160 39317d7e91c615c35cdaa8c42c6bf6dcc9022575 klibc-1.4.9.ebuild 6292
-SHA256 2de65cc60e490ce1bbd0d51c84b8d603b45382045a78802f64359646bce9f787 klibc-1.4.9.ebuild 6292
MISC ChangeLog 5504 RMD160 75696a7edbbc99f00562401b6bd28d825cc24d7c SHA1 023de0c687ede37c7a0f55cc0ccfd1968eb8c212 SHA256 ba7af02acfb4f18c0a258dc0ddd5f69b548b9f9856d9b565b8cf629a547b5489
MD5 b2ef76e8c7047e5ca606fd523e2c7664 ChangeLog 5504
RMD160 75696a7edbbc99f00562401b6bd28d825cc24d7c ChangeLog 5504
@@ -95,19 +81,13 @@ SHA256 382c935239962cf639e051b35213a499e7a8762baee40721d5d33fe5d0edfe32 files/di
MD5 e2c54f1b35309be367759ba42ef5027b files/digest-klibc-1.2.1-r2 238
RMD160 19cd909eb9419c8aa5c0e829dab15f8783188ae2 files/digest-klibc-1.2.1-r2 238
SHA256 382c935239962cf639e051b35213a499e7a8762baee40721d5d33fe5d0edfe32 files/digest-klibc-1.2.1-r2 238
-MD5 7dd87e86801e17680ac6d6d17d04299d files/digest-klibc-1.4.11 241
-RMD160 d01b3d4b92900bf0cb60537417690c3dd2e7259d files/digest-klibc-1.4.11 241
-SHA256 0e98cabdf187bed3878d0dbf7a1ea45883631d3cd0a81bfa0a46e8af62015c38 files/digest-klibc-1.4.11 241
MD5 973d90be82ca36897f675b3d968e8679 files/digest-klibc-1.4.12 241
RMD160 fdc29ccbed7abccc934f99ca8adec88f7e47a652 files/digest-klibc-1.4.12 241
SHA256 f7f48c53b5630392ad4dcdd6603ff14bf4922f30a918dcde8836dda59f54ea27 files/digest-klibc-1.4.12 241
-MD5 dccb10398029772dff790f1d2c86d4fb files/digest-klibc-1.4.9 238
-RMD160 d87ef57748a55855ba6d968f55243fedfb174ceb files/digest-klibc-1.4.9 238
-SHA256 17a5887d09ccda088ccbc8d35140be5bf3f099aeb7f05fad5f6d1c144320243f files/digest-klibc-1.4.9 238
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
-iD8DBQFExi0k1ZcsMnZjRyIRAie3AJ9GlFKTYSeEsQhwvzG1TrwaFH8PMwCfQ+MF
-52ORCBiOcB5wBItkR6PqvmY=
-=tmTu
+iD8DBQFExi701ZcsMnZjRyIRAuaIAKCJqLN9Qhs0P96Lj5etnGD5N+qEKACfazkk
+fKwgmSPE9OsNJGlmPYNtxQk=
+=NW4V
-----END PGP SIGNATURE-----
diff --git a/dev-libs/klibc/files/digest-klibc-1.4.11 b/dev-libs/klibc/files/digest-klibc-1.4.11
deleted file mode 100644
index bab01e163222..000000000000
--- a/dev-libs/klibc/files/digest-klibc-1.4.11
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 e2b146c75d0c506d8bfc4f3d21c7f983 klibc-1.4.11.tar.bz2 472992
-RMD160 d29ef33503f9029b413bf5be30171db17981272a klibc-1.4.11.tar.bz2 472992
-SHA256 659fa977ae4bf83ea2c507304e9df839b81d0fb3526d57049886486038009203 klibc-1.4.11.tar.bz2 472992
diff --git a/dev-libs/klibc/files/digest-klibc-1.4.9 b/dev-libs/klibc/files/digest-klibc-1.4.9
deleted file mode 100644
index d5fc594ba0d9..000000000000
--- a/dev-libs/klibc/files/digest-klibc-1.4.9
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 e011fcd7ffcc4f07917b1c6b03130d55 klibc-1.4.9.tar.bz2 472957
-RMD160 48ac1b171f2f2b5b7b40b791c70adb446502c95c klibc-1.4.9.tar.bz2 472957
-SHA256 dfde10068f74b7b8d675907bffcb783b5871d35ddc323ee08a7be241bf2ac74f klibc-1.4.9.tar.bz2 472957
diff --git a/dev-libs/klibc/files/klibc-1.4.8-dash-flags.patch b/dev-libs/klibc/files/klibc-1.4.8-dash-flags.patch
deleted file mode 100644
index 9f758ddfe917..000000000000
--- a/dev-libs/klibc/files/klibc-1.4.8-dash-flags.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/usr/dash/Kbuild b/usr/dash/Kbuild
-index 8e5184e..6e743f8 100644
---- a/usr/dash/Kbuild
-+++ b/usr/dash/Kbuild
-@@ -18,7 +18,7 @@ DEFAULT_INCLUDES := \
- -I$(srctree)/$(src) -I$(objtree)/$(obj) \
- -include $(srctree)/$(src)/config.h
-
--EXTRA_KLIBCCFLAGS := $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS)
-+KLIBCCFLAGS += $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS)
- HOST_EXTRACFLAGS := $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
-
- SRCS := alias.c arith_yylex.c cd.c error.c eval.c exec.c expand.c \
diff --git a/dev-libs/klibc/klibc-1.4.11.ebuild b/dev-libs/klibc/klibc-1.4.11.ebuild
deleted file mode 100644
index 1f7130d26dda..000000000000
--- a/dev-libs/klibc/klibc-1.4.11.ebuild
+++ /dev/null
@@ -1,219 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/klibc-1.4.11.ebuild,v 1.1 2006/07/19 13:13:06 azarah Exp $
-
-inherit eutils linux-info multilib
-
-# Klibc has no PT_GNU_STACK support, so scanning for execstacks is moot
-QA_EXECSTACK="*"
-
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} ]] ; then
- if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
- export CTARGET=${CATEGORY/cross-}
- fi
-fi
-
-DESCRIPTION="A minimal libc subset for use with initramfs."
-HOMEPAGE="http://www.zytor.com/mailman/listinfo/klibc"
-SRC_URI="ftp://ftp.kernel.org/pub/linux/libs/klibc/${P}.tar.bz2
- ftp://ftp.kernel.org/pub/linux/libs/klibc/Stable/${P}.tar.bz2
- ftp://ftp.kernel.org/pub/linux/libs/klibc/Testing/${P}.tar.bz2"
-LICENSE="|| ( GPL-2 LGPL-2 )"
-# Mips patches needs updating ...
-KEYWORDS="~amd64 -mips ~ppc ~x86"
-IUSE="debug n32"
-RESTRICT="nostrip"
-
-DEPEND="dev-lang/perl
- virtual/linux-sources"
-RDEPEND="dev-lang/perl"
-
-if [[ ${CTARGET} != ${CHOST} ]] ; then
- SLOT="${CTARGET}"
-else
- SLOT="0"
-fi
-
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
-
-guess_arch() {
- local x
- local host=$(echo "${CTARGET%%-*}" | sed -e 's/i.86/i386/' \
- -e 's/sun4u/sparc64/' \
- -e 's/arm.*/arm/' \
- -e 's/sa110/arm/' \
- -e 's/powerpc/ppc/')
-
- # Sort reverse so that we will get ppc64 before ppc, etc
- for x in $(ls -1 "${S}/usr/include/arch/" | sort -r) ; do
- if [[ ${host} == "${x}" ]] ; then
- echo "${x}"
- return 0
- fi
- done
-
- return 1
-}
-
-pkg_setup() {
- # Make sure kernel sources are OK
- # (Override for linux-mod eclass)
- check_kernel_built
-}
-
-src_unpack() {
- unpack ${A}
-
- if [[ ! -d /usr/${CTARGET} ]] ; then
- echo
- eerror "It does not look like your cross-compiler is setup properly!"
- die "It does not look like your cross-compiler is setup properly!"
- fi
-
- einfo "CTARGET = $CTARGET"
- if ! guess_arch &>/dev/null ; then
- echo
- eerror "Could not guess klibc's ARCH from your CTARGET!"
- die "Could not guess klibc's ARCH from your CTARGET!"
- fi
-
- kernel_arch=$(readlink "${KV_OUT_DIR}/include/asm" | sed -e 's:asm-::' | \
- sed -e 's/powerpc/ppc/')
- if [[ ${kernel_arch} != $(guess_arch) ]] ; then
- echo
- eerror "Your kernel sources are not configured for your chosen arch!"
- eerror "(KERNEL_ARCH=\"${kernel_arch}\", ARCH=\"$(guess_arch)\")"
- die "Your kernel sources are not configured for your chosen arch!"
- fi
-
- cd ${S}
-
- # Add our linux source tree symlink
- ln -snf ${KV_DIR} linux
-
- # Some reason .config has outdated mtime
- touch ${S}/.config
-
- # We do not want all the nice prelink warnings
- # NOTE: for amd64, we might change below to '/usr/$(get_libdir)/klibc',
- # but I do not do it right now, as the build system do not support
- # the lib64 yet ....
- cat > "${S}/70klibc" <<-EOF
- PRELINK_PATH_MASK="/usr/lib/klibc"
- EOF
-
- # Export the NOSTDINC_FLAGS to ensure -nostdlib is passed, bug #120678
- # NOTE: Disabling this for now, as klibc have -fno-stack-protector. Will
- # enable it again if there is still issues.
- #epatch "${FILESDIR}/${PN}"-1.4.7-nostdinc-flags.patch
- # Build interp.o with EXTRA_KLIBCAFLAGS (.S source)
- epatch "${FILESDIR}/${PN}"-1.4.11-interp-flags.patch
-
- # klibc detects mips64 systems as having 64bit userland
- # Force them to 32bit userlands instead
- if ! use n32; then
- epatch "${FILESDIR}/${PN}"-1.4.9-mips32.patch
- fi
-
- # Linker path is awry
- # NB: Still needed ???
- #epatch "${FILESDIR}/${PN}"-1.1.16-mips-ldpaths.patch
-}
-
-src_compile() {
- local myargs
-
- [[ ${KV_DIR} != "${KV_OUT_DIR}" ]] && \
- myargs="KLIBCKERNELOBJ='${KV_OUT_DIR}/' KBUILD_SRC='1'"
-
- use debug && myargs="${myargs} V=1"
-
- if is_cross ; then
- einfo "ARCH = \"$(guess_arch)\""
- einfo "CROSS = \"${CTARGET}-\""
- emake ARCH=$(guess_arch) \
- CROSS="${CTARGET}-" \
- EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" \
- EXTRA_KLIBCLDFLAGS="-z,noexecstack" \
- libdir="/usr/$(get_libdir)" \
- SHLIBDIR="/$(get_libdir)" \
- mandir="/usr/share/man" \
- INSTALLDIR="/usr/$(get_libdir)/klibc" \
- ${myargs} || die "Compile failed!"
- else
- env -u ARCH \
- emake \
- EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" \
- EXTRA_KLIBCLDFLAGS="-z,noexecstack" \
- libdir="/usr/$(get_libdir)" \
- SHLIBDIR="/$(get_libdir)" \
- mandir="/usr/share/man" \
- INSTALLDIR="/usr/$(get_libdir)/klibc" \
- ${myargs} || die "Compile failed!"
- fi
-}
-
-src_install() {
- local myargs klibc_prefix
-
- [[ ${KV_DIR} != "${KV_OUT_DIR}" ]] && \
- myargs="KLIBCKERNELOBJ='${KV_OUT_DIR}/' KBUILD_SRC='1'"
-
- use debug && myargs="${myargs} V=1"
-
- if is_cross ; then
- klibc_prefix=$("${S}/klcc/${CTARGET}-klcc" -print-klibc-prefix)
-
- make \
- EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" \
- EXTRA_KLIBCLDFLAGS="-z,noexecstack" \
- INSTALLROOT=${D} \
- ARCH=$(guess_arch) \
- CROSS="${CTARGET}-" \
- libdir="/usr/$(get_libdir)" \
- SHLIBDIR="/$(get_libdir)" \
- mandir="/usr/share/man" \
- INSTALLDIR="/usr/$(get_libdir)/klibc" \
- ${myargs} \
- install || die "Install failed!"
- else
- klibc_prefix=$("${S}/klcc/klcc" -print-klibc-prefix)
-
- env -u ARCH \
- make \
- EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" \
- EXTRA_KLIBCLDFLAGS="-z,noexecstack" \
- INSTALLROOT=${D} \
- libdir="/usr/$(get_libdir)" \
- SHLIBDIR="/$(get_libdir)" \
- mandir="/usr/share/man" \
- INSTALLDIR="/usr/$(get_libdir)/klibc" \
- ${myargs} \
- install || die "Install failed!"
- fi
-
- # Hardlinks becoming copies
- for x in gunzip zcat ; do
- rm -f "${D}/${klibc_prefix}/bin/${x}"
- dosym gzip "${klibc_prefix}/bin/${x}"
- done
-
- if ! is_cross ; then
- insinto /usr/share/aclocal
- doins ${FILESDIR}/klibc.m4
-
- doenvd ${S}/70klibc
-
- dodoc ${S}/README ${S}/usr/klibc/{LICENSE,CAVEATS}
- newdoc ${S}/usr/klibc/README README.klibc
- newdoc ${S}/usr/klibc/arch/README README.klibc.arch
- docinto dash; newdoc ${S}/usr/dash/README.klibc README
- docinto gzip; dodoc ${S}/usr/gzip/{COPYING,README}
- fi
-}
-
-pkg_postinst() {
- # Override for linux-mod eclass
- return 0
-}
diff --git a/dev-libs/klibc/klibc-1.4.9.ebuild b/dev-libs/klibc/klibc-1.4.9.ebuild
deleted file mode 100644
index bc401d292a73..000000000000
--- a/dev-libs/klibc/klibc-1.4.9.ebuild
+++ /dev/null
@@ -1,223 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/klibc-1.4.9.ebuild,v 1.3 2006/07/12 06:08:21 azarah Exp $
-
-inherit eutils linux-info multilib
-
-# Klibc has no PT_GNU_STACK support, so scanning for execstacks is moot
-QA_EXECSTACK="*"
-
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} ]] ; then
- if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
- export CTARGET=${CATEGORY/cross-}
- fi
-fi
-
-DESCRIPTION="A minimal libc subset for use with initramfs."
-HOMEPAGE="http://www.zytor.com/mailman/listinfo/klibc"
-SRC_URI="ftp://ftp.kernel.org/pub/linux/libs/klibc/${P}.tar.bz2
- ftp://ftp.kernel.org/pub/linux/libs/klibc/Stable/${P}.tar.bz2
- ftp://ftp.kernel.org/pub/linux/libs/klibc/Testing/${P}.tar.bz2"
-LICENSE="|| ( GPL-2 LGPL-2 )"
-# Mips patches needs updating ...
-KEYWORDS="~amd64 -mips ~ppc ~x86"
-IUSE="debug n32"
-RESTRICT="nostrip"
-
-DEPEND="dev-lang/perl
- virtual/linux-sources"
-RDEPEND="dev-lang/perl"
-
-if [[ ${CTARGET} != ${CHOST} ]] ; then
- SLOT="${CTARGET}"
-else
- SLOT="0"
-fi
-
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
-
-guess_arch() {
- local x
- local host=$(echo "${CTARGET%%-*}" | sed -e 's/i.86/i386/' \
- -e 's/sun4u/sparc64/' \
- -e 's/arm.*/arm/' \
- -e 's/sa110/arm/' \
- -e 's/powerpc/ppc/')
-
- # Sort reverse so that we will get ppc64 before ppc, etc
- for x in $(ls -1 "${S}/usr/include/arch/" | sort -r) ; do
- if [[ ${host} == "${x}" ]] ; then
- echo "${x}"
- return 0
- fi
- done
-
- return 1
-}
-
-pkg_setup() {
- # Make sure kernel sources are OK
- # (Override for linux-mod eclass)
- check_kernel_built
-}
-
-src_unpack() {
- unpack ${A}
-
- if [[ ! -d /usr/${CTARGET} ]] ; then
- echo
- eerror "It does not look like your cross-compiler is setup properly!"
- die "It does not look like your cross-compiler is setup properly!"
- fi
-
- einfo "CTARGET = $CTARGET"
- if ! guess_arch &>/dev/null ; then
- echo
- eerror "Could not guess klibc's ARCH from your CTARGET!"
- die "Could not guess klibc's ARCH from your CTARGET!"
- fi
-
- kernel_arch=$(readlink "${KV_OUT_DIR}/include/asm" | sed -e 's:asm-::' | \
- sed -e 's/powerpc/ppc/')
- if [[ ${kernel_arch} != $(guess_arch) ]] ; then
- echo
- eerror "Your kernel sources are not configured for your chosen arch!"
- eerror "(KERNEL_ARCH=\"${kernel_arch}\", ARCH=\"$(guess_arch)\")"
- die "Your kernel sources are not configured for your chosen arch!"
- fi
-
- cd ${S}
-
- # Add our linux source tree symlink
- ln -snf ${KV_DIR} linux
-
- # Some reason .config has outdated mtime
- touch ${S}/.config
-
- # We do not want all the nice prelink warnings
- # NOTE: for amd64, we might change below to '/usr/$(get_libdir)/klibc',
- # but I do not do it right now, as the build system do not support
- # the lib64 yet ....
- cat > "${S}/70klibc" <<-EOF
- PRELINK_PATH_MASK="/usr/lib/klibc"
- EOF
-
- # Export the NOSTDINC_FLAGS to ensure -nostdlib is passed, bug #120678
- # NOTE: Disabling this for now, as klibc have -fno-stack-protector. Will
- # enable it again if there is still issues.
- #epatch "${FILESDIR}/${PN}"-1.4.7-nostdinc-flags.patch
- # Fix not being able to set EXTRA_KLIBCCFLAGS during build
- epatch "${FILESDIR}/${PN}"-1.4.8-dash-flags.patch
-
- # klibc detects mips64 systems as having 64bit userland
- # Force them to 32bit userlands instead
- if ! use n32; then
- epatch "${FILESDIR}/${PN}"-1.4.9-mips32.patch
- fi
-
- # Linker path is awry
- # NB: Still needed ???
- #epatch "${FILESDIR}/${PN}"-1.1.16-mips-ldpaths.patch
-}
-
-src_compile() {
- local myargs
-
- [[ ${KV_DIR} != "${KV_OUT_DIR}" ]] && \
- myargs="KLIBCKERNELOBJ='${KV_OUT_DIR}/' KBUILD_SRC='1'"
-
- use debug && myargs="${myargs} V=1"
-
- if is_cross ; then
- einfo "ARCH = \"$(guess_arch)\""
- einfo "CROSS = \"${CTARGET}-\""
- emake ARCH=$(guess_arch) \
- CROSS="${CTARGET}-" \
- EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" \
- EXTRA_KLIBCCFLAGS="-Wa,--noexecstack" \
- EXTRA_KLIBCLDFLAGS="-z,noexecstack" \
- libdir="/usr/$(get_libdir)" \
- SHLIBDIR="/$(get_libdir)" \
- mandir="/usr/share/man" \
- INSTALLDIR="/usr/$(get_libdir)/klibc" \
- ${myargs} || die "Compile failed!"
- else
- env -u ARCH \
- emake \
- EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" \
- EXTRA_KLIBCCFLAGS="-Wa,--noexecstack" \
- EXTRA_KLIBCLDFLAGS="-z,noexecstack" \
- libdir="/usr/$(get_libdir)" \
- SHLIBDIR="/$(get_libdir)" \
- mandir="/usr/share/man" \
- INSTALLDIR="/usr/$(get_libdir)/klibc" \
- ${myargs} || die "Compile failed!"
- fi
-}
-
-src_install() {
- local myargs klibc_prefix
-
- [[ ${KV_DIR} != "${KV_OUT_DIR}" ]] && \
- myargs="KLIBCKERNELOBJ='${KV_OUT_DIR}/' KBUILD_SRC='1'"
-
- use debug && myargs="${myargs} V=1"
-
- if is_cross ; then
- klibc_prefix=$("${S}/klcc/${CTARGET}-klcc" -print-klibc-prefix)
-
- make \
- EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" \
- EXTRA_KLIBCCFLAGS="-Wa,--noexecstack" \
- EXTRA_KLIBCLDFLAGS="-z,noexecstack" \
- INSTALLROOT=${D} \
- ARCH=$(guess_arch) \
- CROSS="${CTARGET}-" \
- libdir="/usr/$(get_libdir)" \
- SHLIBDIR="/$(get_libdir)" \
- mandir="/usr/share/man" \
- INSTALLDIR="/usr/$(get_libdir)/klibc" \
- ${myargs} \
- install || die "Install failed!"
- else
- klibc_prefix=$("${S}/klcc/klcc" -print-klibc-prefix)
-
- env -u ARCH \
- make \
- EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" \
- EXTRA_KLIBCCFLAGS="-Wa,--noexecstack" \
- EXTRA_KLIBCLDFLAGS="-z,noexecstack" \
- INSTALLROOT=${D} \
- libdir="/usr/$(get_libdir)" \
- SHLIBDIR="/$(get_libdir)" \
- mandir="/usr/share/man" \
- INSTALLDIR="/usr/$(get_libdir)/klibc" \
- ${myargs} \
- install || die "Install failed!"
- fi
-
- # Hardlinks becoming copies
- for x in gunzip zcat ; do
- rm -f "${D}/${klibc_prefix}/bin/${x}"
- dosym gzip "${klibc_prefix}/bin/${x}"
- done
-
- if ! is_cross ; then
- insinto /usr/share/aclocal
- doins ${FILESDIR}/klibc.m4
-
- doenvd ${S}/70klibc
-
- dodoc ${S}/README ${S}/usr/klibc/{LICENSE,CAVEATS}
- newdoc ${S}/usr/klibc/README README.klibc
- newdoc ${S}/usr/klibc/arch/README README.klibc.arch
- docinto dash; newdoc ${S}/usr/dash/README.klibc README
- docinto gzip; dodoc ${S}/usr/gzip/{COPYING,README}
- fi
-}
-
-pkg_postinst() {
- # Override for linux-mod eclass
- return 0
-}