summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2005-07-29 18:01:27 +0000
committerDaniel Drake <dsd@gentoo.org>2005-07-29 18:01:27 +0000
commita93c37a447c8b9c9121cbdbe3695524925cc9c88 (patch)
tree72ad6ab3bd4a0382733e338573f93747103b801c /net-fs/openafs-kernel/openafs-kernel-1.2.13.ebuild
parentMake sure that all of the autotool toolchain is called as we patch configure.... (diff)
downloadgentoo-2-a93c37a447c8b9c9121cbdbe3695524925cc9c88.tar.gz
gentoo-2-a93c37a447c8b9c9121cbdbe3695524925cc9c88.tar.bz2
gentoo-2-a93c37a447c8b9c9121cbdbe3695524925cc9c88.zip
Check for Linux 2.6 the new way, and try to support cross compiling
(Portage version: 1.589-cvs)
Diffstat (limited to 'net-fs/openafs-kernel/openafs-kernel-1.2.13.ebuild')
-rw-r--r--net-fs/openafs-kernel/openafs-kernel-1.2.13.ebuild17
1 files changed, 7 insertions, 10 deletions
diff --git a/net-fs/openafs-kernel/openafs-kernel-1.2.13.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.2.13.ebuild
index 32d040792330..2b4d085b90a3 100644
--- a/net-fs/openafs-kernel/openafs-kernel-1.2.13.ebuild
+++ b/net-fs/openafs-kernel/openafs-kernel-1.2.13.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/openafs-kernel-1.2.13.ebuild,v 1.4 2005/07/29 17:50:44 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/openafs-kernel-1.2.13.ebuild,v 1.5 2005/07/29 18:01:27 dsd Exp $
-inherit eutils linux-mod versionator check-kernel
+inherit eutils linux-mod versionator toolchain-funcs
PATCHVER=0.1
MY_PN=${PN/-kernel}
@@ -18,14 +18,13 @@ LICENSE="IPL-1"
SLOT="0"
KEYWORDS="~x86 ~alpha ~ia64"
-DEPEND="virtual/linux-sources"
-
PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2)/kernel
pkg_setup() {
- if is_2_5_kernel || is_2_6_kernel
- then
- die "Linux 2.6 kernels do not use this version of openafs. Use the 1.3 series"
+ if kernel_is gt 2 4; then
+ eerror "openafs-1.2 does not support kernels newer than Linux 2.4."
+ einfo "Please try the openafs-1.3 series"
+ die "Kernel is too new!"
fi
linux-mod_pkg_setup
}
@@ -38,9 +37,7 @@ src_unpack() {
src_compile() {
econf --with-linux-kernel-headers=${KV_DIR} || die "Failed: econf"
- # unset ARCH, because else it will be used as an incent to start
- # cross-compiling the kernel module
- env -u ARCH make only_libafs || die "Failed: make"
+ ARCH="$(tc-arch-kernel)" make only_libafs || die "Failed: make"
}
src_install() {