diff options
-rw-r--r-- | dev-libs/klibc/ChangeLog | 7 | ||||
-rw-r--r-- | dev-libs/klibc/Manifest | 52 | ||||
-rw-r--r-- | dev-libs/klibc/files/digest-klibc-1.2.1 | 3 | ||||
-rw-r--r-- | dev-libs/klibc/klibc-1.2.1.ebuild | 163 |
4 files changed, 223 insertions, 2 deletions
diff --git a/dev-libs/klibc/ChangeLog b/dev-libs/klibc/ChangeLog index a3893f704c06..6b7f4b273d9e 100644 --- a/dev-libs/klibc/ChangeLog +++ b/dev-libs/klibc/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/klibc # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/ChangeLog,v 1.18 2006/01/22 01:30:04 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/ChangeLog,v 1.19 2006/02/04 08:57:22 azarah Exp $ + +*klibc-1.2.1 (04 Feb 2006) + + 04 Feb 2006; Martin Schlemmer <azarah@gentoo.org> +klibc-1.2.1.ebuild: + New release. 26 Jan 2006; Joshua Kinard <kumba@gentoo.org> +files/klibc-1.1.16-mips-ldpaths.patch, +files/klibc-1.1.16-mips32.patch, diff --git a/dev-libs/klibc/Manifest b/dev-libs/klibc/Manifest index c7b4f7ceb262..3ee96eeba94e 100644 --- a/dev-libs/klibc/Manifest +++ b/dev-libs/klibc/Manifest @@ -1,17 +1,67 @@ -MD5 2e2d9313ffe8189d16cb0e02a8694ddb ChangeLog 3043 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 f349181e2cd46dbd2ca3dbe1648c2d52 ChangeLog 3161 +RMD160 137587f24f9bf07b8857960c27c15c1e10c12286 ChangeLog 3161 +SHA256 2af41d1902899cc849400fc3ac391ba75870f714ac9b5ea1cd55cbfe9f028806 ChangeLog 3161 MD5 5f74818fe6743d6f26cd199480a6d4ea files/digest-klibc-1.0.14-r1 65 +RMD160 9f35187a056704d0ae89ecc0984dbad7ba757fc3 files/digest-klibc-1.0.14-r1 65 +SHA256 d6e84fe0d96310d4a3ba58d5b1e1d7ed06086082d203846f1e4e3633afbfceb6 files/digest-klibc-1.0.14-r1 65 MD5 9f7934fa62dac32c7a1f7fb7f3c1eff6 files/digest-klibc-1.1 62 +RMD160 df9f654a6e8ece2c7b49f6d3b48867a91622464a files/digest-klibc-1.1 62 +SHA256 4086d4d0fd033307e39bb963ac8336db22dcdfab6265606b9cc3bec0866679d9 files/digest-klibc-1.1 62 MD5 40dd929bc6cde977c4e309596afcd6fe files/digest-klibc-1.1.1 64 +RMD160 e3163e1d9f92e88f5480ddcb91e5a5ae53d1a52c files/digest-klibc-1.1.1 64 +SHA256 3bc8215709fba23c0f5184affbe90dc3674d4aa24e3dc8e765ce191cdf6db405 files/digest-klibc-1.1.1 64 MD5 0e893c37516ea180bbbdcb60081bbec8 files/digest-klibc-1.1.16 65 +RMD160 e70d8ce528ce241aac43ba66687748f2cf868ef5 files/digest-klibc-1.1.16 65 +SHA256 bd43dc46dc8a74dd097f3e1373a013124dc643a05ec1bdabaaeec8dcd1c91546 files/digest-klibc-1.1.16 65 MD5 0e893c37516ea180bbbdcb60081bbec8 files/digest-klibc-1.1.16-r1 65 +RMD160 e70d8ce528ce241aac43ba66687748f2cf868ef5 files/digest-klibc-1.1.16-r1 65 +SHA256 bd43dc46dc8a74dd097f3e1373a013124dc643a05ec1bdabaaeec8dcd1c91546 files/digest-klibc-1.1.16-r1 65 +MD5 e2c54f1b35309be367759ba42ef5027b files/digest-klibc-1.2.1 238 +RMD160 19cd909eb9419c8aa5c0e829dab15f8783188ae2 files/digest-klibc-1.2.1 238 +SHA256 382c935239962cf639e051b35213a499e7a8762baee40721d5d33fe5d0edfe32 files/digest-klibc-1.2.1 238 MD5 4b098438d57b0f7ad9f16d534fb98eb4 files/klibc-1.0.14-nostdlib.patch 460 +RMD160 b7cf757792d33d93763f80599f7c09b81be527f3 files/klibc-1.0.14-nostdlib.patch 460 +SHA256 9f33b172b3d1d71f4f23459af6e6169ce97070d1bcd81833c6e4e70fe39f1b58 files/klibc-1.0.14-nostdlib.patch 460 MD5 d771e07746a2d5b2bdac366cd992c885 files/klibc-1.1-mips32.patch 670 +RMD160 ecab014d68b65837eb6088c21d95be0c23170cfc files/klibc-1.1-mips32.patch 670 +SHA256 42d127d2d5348b7856d33b7ffce986d49c7adbef82cf2bb34aa06a022fabad4c files/klibc-1.1-mips32.patch 670 MD5 25555d8cb9cd5bca679f411b73a0d6f8 files/klibc-1.1.16-mips-ldpaths.patch 441 +RMD160 002d2ca889741e004d842cc6e155503d66568f18 files/klibc-1.1.16-mips-ldpaths.patch 441 +SHA256 25c65f443351fbdb59584a5867f6610c2f7fd722d2186089917568b23229d65c files/klibc-1.1.16-mips-ldpaths.patch 441 MD5 bc6971ccb91f090d38a5490d630d8973 files/klibc-1.1.16-mips32.patch 711 +RMD160 334e971cb4f31e89862b6bfdbbe54ae7c59b1478 files/klibc-1.1.16-mips32.patch 711 +SHA256 b46340b0e1abb7284f2ef84724cdbffd52c760c71d2fe00f05d35065c372ae91 files/klibc-1.1.16-mips32.patch 711 MD5 790a9f0a9a74e6eac6c6c1dbde2a94b6 files/klibc.m4 3619 +RMD160 aee79c8296f375e3614fcf5d97b21ed9e043c719 files/klibc.m4 3619 +SHA256 02901ef2ca8b320d77b03fab4fa9bef809c11e2e418e7da00aa2c13c4a84dd44 files/klibc.m4 3619 MD5 87eac36868c96b295f5b4b631a505db9 klibc-1.0.14-r1.ebuild 4123 +RMD160 a2ad0c70d40090db8fac0c85db9b8525d6805294 klibc-1.0.14-r1.ebuild 4123 +SHA256 8d7c64fcad902a8322b231dc605bed6ebd11994f1d3da9330762b43d1e1d878d klibc-1.0.14-r1.ebuild 4123 MD5 7d2be2d1eb8c7df488373415c7a1a5f3 klibc-1.1.1.ebuild 4172 +RMD160 43fe04e7fb5cc8ef4b83093133cefd280d387c3d klibc-1.1.1.ebuild 4172 +SHA256 0af486637859e6b4f1f273636104a15c9e06c36cc3ebbc13af4943251f240abd klibc-1.1.1.ebuild 4172 MD5 92a3930943687a2c731a7a6eab4850cd klibc-1.1.16-r1.ebuild 4240 +RMD160 6661dd8da518731a420ff98d7dc3f4aabbbeac40 klibc-1.1.16-r1.ebuild 4240 +SHA256 7aecfa6e8f3a63fe3c855113c4e535ba93fdc212e9af5818ac1daa35d715858a klibc-1.1.16-r1.ebuild 4240 MD5 40263c09cc9924e72ca0ce91630b4039 klibc-1.1.16.ebuild 4082 +RMD160 6b22e9789f3f9b263b93d7362f7c9e80b05293a9 klibc-1.1.16.ebuild 4082 +SHA256 7ba6f473e6ee67d8843a2fd0a460ce67d0b75bb7c7cfacf92b4592658b202ed3 klibc-1.1.16.ebuild 4082 MD5 8aeec3288335b9aa00b16bf2c0ae45b6 klibc-1.1.ebuild 4165 +RMD160 322fb2a8bab3b1240ed44831507691be457677d0 klibc-1.1.ebuild 4165 +SHA256 94ef3179da75c07c197c830e644520b0032b0493601d8c3ee217f81d6f124230 klibc-1.1.ebuild 4165 +MD5 631b5cb4d1ec609f7d3ed03228a596ec klibc-1.2.1.ebuild 4276 +RMD160 30d3aec718ff2592c51c76379e0db0a25c19d78f klibc-1.2.1.ebuild 4276 +SHA256 f19fb668f2571cfb447475c7c9a22c294eb3c494b558d684b33dc2e8bad2a9da klibc-1.2.1.ebuild 4276 MD5 b612d343db3c54560665171eb7db245c metadata.xml 223 +RMD160 7af8dd320b92b8c61a58767f5221770cd236c63a metadata.xml 223 +SHA256 4b7a3ec9381367d73e7d7f56f27fcf2a703d7731c345cc88af4587743936e2f0 metadata.xml 223 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.2 (GNU/Linux) + +iD8DBQFD5Gzu1ZcsMnZjRyIRAu2JAKCrh1o/cXFScYJvbX2IdbUz1zaSeQCfeNHl +nnB9KbOKywY1qLCfMlMi6Sg= +=iafB +-----END PGP SIGNATURE----- diff --git a/dev-libs/klibc/files/digest-klibc-1.2.1 b/dev-libs/klibc/files/digest-klibc-1.2.1 new file mode 100644 index 000000000000..b6bfd214458f --- /dev/null +++ b/dev-libs/klibc/files/digest-klibc-1.2.1 @@ -0,0 +1,3 @@ +MD5 d5ce19f5df32e7f4f5bbb4562d0573be klibc-1.2.1.tar.bz2 451620 +RMD160 d0ea3418622c008884c0efb6dee693aa03eca90d klibc-1.2.1.tar.bz2 451620 +SHA256 c413b565ea6bd33d4f0af5ee3319d9bc1d804e5cb859b9f3284cad2c449d7c5c klibc-1.2.1.tar.bz2 451620 diff --git a/dev-libs/klibc/klibc-1.2.1.ebuild b/dev-libs/klibc/klibc-1.2.1.ebuild new file mode 100644 index 000000000000..67492fbc4453 --- /dev/null +++ b/dev-libs/klibc/klibc-1.2.1.ebuild @@ -0,0 +1,163 @@ +# 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.2.1.ebuild,v 1.1 2006/02/04 08:57:22 azarah Exp $ + +inherit eutils linux-mod + +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="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}/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 + + 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-::') + 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 + + # set the build directory + echo "KRNLOBJ = ${KV_OUT_DIR}" >> MCONFIG + + # 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 + + # klibc detects mips64 systems as having 64bit userland + # Force them to 32bit userlands instead +# if ! use n32; then +# epatch ${FILESDIR}/${PN}-1.1.16-mips32.patch +# fi + + # Linker path is awry +# epatch ${FILESDIR}/${PN}-1.1.16-mips-ldpaths.patch +} + +src_compile() { + if is_cross ; then + einfo "ARCH = \"$(guess_arch)\"" + einfo "CROSS = \"${CTARGET}-\"" + emake ARCH=$(guess_arch) \ + CROSS="${CTARGET}-" || die "Compile failed!" + else + env -u ARCH \ + emake || die "Compile failed!" + fi +} + +src_install() { + local klibc_prefix + + if is_cross ; then + make INSTALLROOT=${D} \ + ARCH=$(guess_arch) \ + CROSS="${CTARGET}-" \ + install || die "Install failed!" + + klibc_prefix=$("${S}/klcc/${CTARGET}-klcc" -print-klibc-bindir) + else + env -u ARCH \ + make INSTALLROOT=${D} install || die "Install failed!" + + klibc_prefix=$("${S}/klcc/klcc" -print-klibc-bindir) + fi + + # Hardlinks becoming copies + for x in gunzip zcat ; do + rm -f "${D}/${klibc_prefix}/${x}" + dosym gzip "${klibc_prefix}/${x}" + done + + if ! is_cross ; then + insinto /usr/share/aclocal + doins ${FILESDIR}/klibc.m4 + + doenvd ${S}/70klibc + + dodoc ${S}/README ${S}/klibc/{LICENSE,CAVEATS} + newdoc ${S}/klibc/README README.klibc + newdoc ${S}/klibc/arch/README README.klibc.arch + docinto dash; newdoc ${S}/dash/README.klibc README + docinto gzip; dodoc ${S}/gzip/{COPYING,README} + fi +} + +pkg_postinst() { + # Override for linux-mod eclass + return 0 +} |