summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-03-11 01:29:30 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-03-11 01:29:30 +0000
commit725792b399515c583ab4a01cc1d00e30f59b334c (patch)
treed48b5902c2a5e51fc3b1726268f1d9f5445b2836 /dev-libs/klibc
parentNew release (1.0.2) (diff)
downloadgentoo-2-725792b399515c583ab4a01cc1d00e30f59b334c.tar.gz
gentoo-2-725792b399515c583ab4a01cc1d00e30f59b334c.tar.bz2
gentoo-2-725792b399515c583ab4a01cc1d00e30f59b334c.zip
Fixup gunzip/zcat hardlinks of gzip becoming copies. Add perl to DEPEND and
RDEPEND, as its needed during build, and afterwards for klcc wrapper. Add pkg_postinst() override for linux-mod eclass, as we do not install modules. (Portage version: 2.0.51.19)
Diffstat (limited to 'dev-libs/klibc')
-rw-r--r--dev-libs/klibc/ChangeLog7
-rw-r--r--dev-libs/klibc/klibc-1.0.3.ebuild31
2 files changed, 32 insertions, 6 deletions
diff --git a/dev-libs/klibc/ChangeLog b/dev-libs/klibc/ChangeLog
index 5af906c9ea83..7aaf1ca50491 100644
--- a/dev-libs/klibc/ChangeLog
+++ b/dev-libs/klibc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/klibc
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/ChangeLog,v 1.4 2005/03/10 09:46:40 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/ChangeLog,v 1.5 2005/03/11 01:29:30 azarah Exp $
+
+ 11 Mar 2005; Martin Schlemmer <azarah@gentoo.org> klibc-1.0.3.ebuild:
+ Fixup gunzip/zcat hardlinks of gzip becoming copies. Add perl to DEPEND and
+ RDEPEND, as its needed during build, and afterwards for klcc wrapper. Add
+ pkg_postinst() override for linux-mod eclass, as we do not install modules.
10 Mar 2005; Martin Schlemmer <azarah@gentoo.org> files/klibc.m4:
Update m4 macro.
diff --git a/dev-libs/klibc/klibc-1.0.3.ebuild b/dev-libs/klibc/klibc-1.0.3.ebuild
index be6573f0b2a4..ceec0a026ddb 100644
--- a/dev-libs/klibc/klibc-1.0.3.ebuild
+++ b/dev-libs/klibc/klibc-1.0.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/klibc-1.0.3.ebuild,v 1.1 2005/03/10 08:49:28 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/klibc-1.0.3.ebuild,v 1.2 2005/03/11 01:29:30 azarah Exp $
inherit eutils linux-mod
@@ -21,7 +21,9 @@ KEYWORDS="~x86"
IUSE=""
RESTRICT="nostrip"
-DEPEND="virtual/linux-sources"
+DEPEND="dev-lang/perl
+ virtual/linux-sources"
+RDEPEND="dev-lang/perl"
if [[ ${CTARGET} != ${CHOST} ]] ; then
SLOT="${CTARGET}"
@@ -50,6 +52,11 @@ guess_arch() {
return 1
}
+pkg_setup() {
+ # Make sure kernel sources are OK
+ # (Override for linux-mod eclass)
+ check_kernel_built
+}
src_unpack() {
unpack ${A}
@@ -66,9 +73,6 @@ src_unpack() {
die "Could not guess klibc's ARCH from your CTARGET!"
fi
- # Make sure kernel sources are ok
- check_kernel_built
-
kernel_arch=$(readlink "${KV_DIR}/include/asm" | sed -e 's:asm-::')
if [[ ${kernel_arch} != $(guess_arch) ]] ; then
echo
@@ -95,15 +99,27 @@ src_compile() {
}
src_install() {
+ local klibc_prefix
+
if is_cross ; then
make INSTALLROOT=${D} \
ARCH=$(guess_arch) \
CROSS="${CTARGET}-" \
install || die "Install failed!"
+
+ klibc_prefix=$("${S}/${CTARGET}-klcc" -print-klibc-bindir)
else
env -u ARCH \
make INSTALLROOT=${D} install || die "Install failed!"
+ klibc_prefix=$("${S}/klcc" -print-klibc-bindir)
+ fi
+
+ # Hardlinks becoming copies
+ dosym gzip "${klibc_prefix}/gunzip"
+ dosym gzip "${klibc_prefix}/zcat"
+
+ if ! is_cross ; then
insinto /usr/share/aclocal
doins ${FILESDIR}/klibc.m4
@@ -116,3 +132,8 @@ src_install() {
docinto kinit; dodoc ${S}/kinit/README
fi
}
+
+pkg_postinst() {
+ # Override for linux-mod eclass
+ return 0
+}