summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorStefaan De Roeck <stefaan@gentoo.org>2007-09-19 17:45:22 +0000
committerStefaan De Roeck <stefaan@gentoo.org>2007-09-19 17:45:22 +0000
commit7403d837055810809a1d2ee070d5a7c9e6655ca8 (patch)
tree54adee6dd145e97ee3f39d98359b213259b00b0b /net-fs
parentFix TEXTRELS, EXECSTACK, bug #188484 (diff)
downloadgentoo-2-7403d837055810809a1d2ee070d5a7c9e6655ca8.tar.gz
gentoo-2-7403d837055810809a1d2ee070d5a7c9e6655ca8.tar.bz2
gentoo-2-7403d837055810809a1d2ee070d5a7c9e6655ca8.zip
Add patch to support sparc (bug #176050)
(Portage version: 2.1.3.9)
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/openafs-kernel/ChangeLog8
-rw-r--r--net-fs/openafs-kernel/files/digest-openafs-kernel-1.4.4_p20070724-r29
-rw-r--r--net-fs/openafs-kernel/files/openafs-sparc.patch42
-rw-r--r--net-fs/openafs-kernel/openafs-kernel-1.4.4_p20070724-r2.ebuild61
4 files changed, 119 insertions, 1 deletions
diff --git a/net-fs/openafs-kernel/ChangeLog b/net-fs/openafs-kernel/ChangeLog
index 7c5ba1c1834f..c7b2ef39eee0 100644
--- a/net-fs/openafs-kernel/ChangeLog
+++ b/net-fs/openafs-kernel/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-fs/openafs-kernel
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/ChangeLog,v 1.73 2007/09/19 16:31:18 stefaan Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/ChangeLog,v 1.74 2007/09/19 17:45:21 stefaan Exp $
+
+*openafs-kernel-1.4.4_p20070724-r2 (19 Sep 2007)
+
+ 19 Sep 2007; Stefaan De Roeck <stefaan@gentoo.org>
+ +files/openafs-sparc.patch, +openafs-kernel-1.4.4_p20070724-r2.ebuild:
+ Add patch to support sparc (bug #176050)
*openafs-kernel-1.4.4_p20070724-r1 (19 Sep 2007)
diff --git a/net-fs/openafs-kernel/files/digest-openafs-kernel-1.4.4_p20070724-r2 b/net-fs/openafs-kernel/files/digest-openafs-kernel-1.4.4_p20070724-r2
new file mode 100644
index 000000000000..45171d220de7
--- /dev/null
+++ b/net-fs/openafs-kernel/files/digest-openafs-kernel-1.4.4_p20070724-r2
@@ -0,0 +1,9 @@
+MD5 09e5fd0d92579373687391b6f0579614 openafs-1.4.4-cvs20070724.patch.bz2 86943
+RMD160 26daf5867f89691ba2cf6f578a729cae8894c646 openafs-1.4.4-cvs20070724.patch.bz2 86943
+SHA256 2fffc29f58db15f46eb7b1695744f7982ccb836b84f7964308de893d4345b724 openafs-1.4.4-cvs20070724.patch.bz2 86943
+MD5 59cd499c6bf337b1f2215f83a7404794 openafs-1.4.4-src.tar.bz2 12500224
+RMD160 712907afc74ced010996dd43f785b341ac24da46 openafs-1.4.4-src.tar.bz2 12500224
+SHA256 a417c4d5eab6cf68c6082b6bd93d7ca70410635794308b731269b246ba80f7e4 openafs-1.4.4-src.tar.bz2 12500224
+MD5 9c7119b44628c1f0a7b251e096e94d16 openafs-gentoo-0.13.tar.bz2 16814
+RMD160 98bd851081bcdccec87b50139e7bd9e52663c12b openafs-gentoo-0.13.tar.bz2 16814
+SHA256 a39c0c9656a82e586bff7bd9543d8ccd175991777d68c7fe47de1c724cbe19f2 openafs-gentoo-0.13.tar.bz2 16814
diff --git a/net-fs/openafs-kernel/files/openafs-sparc.patch b/net-fs/openafs-kernel/files/openafs-sparc.patch
new file mode 100644
index 000000000000..1b23c0625124
--- /dev/null
+++ b/net-fs/openafs-kernel/files/openafs-sparc.patch
@@ -0,0 +1,42 @@
+From http://www.openafs.org/pipermail/openafs-devel/2007-February/014914.html
+
+--- openafs-1.4.4/src/afs/LINUX/osi_probe.c.old 2007-09-19 18:15:09.000000000 +0200
++++ openafs-1.4.4/src/afs/LINUX/osi_probe.c 2007-09-19 18:16:53.000000000 +0200
+@@ -228,7 +228,9 @@
+ ) __attribute__((weak));
+ #endif
+
++#ifdef LINUX_EXPORTS_SYS_CALL_TABLE
+ extern SYSCALLTYPE sys_call_table[] __attribute__((weak));
++#endif
+ extern SYSCALLTYPE ia32_sys_call_table[] __attribute__((weak));
+ extern SYSCALLTYPE sys_call_table32[] __attribute__((weak));
+ extern SYSCALLTYPE sys_call_table_emu[] __attribute__((weak));
+@@ -505,7 +507,11 @@
+ 0,
+ #endif
+
+- sys_call_table, /* weak symbol ref */
++#ifdef LINUX_EXPORTS_SYS_CALL_TABLE
++ sys_call_table, /* weak symbol ref */
++#else
++ 0,
++#endif
+ 0, 0, /* module parameter answers */
+ #ifdef AFS_LINUX_sys_call_table
+ AFS_LINUX_sys_call_table, /* compiled-in answer, if any */
+--- openafs-1.4.4/src/cf/linux-test4.m4.old 2007-09-19 18:16:49.000000000 +0200
++++ openafs-1.4.4/src/cf/linux-test4.m4 2007-09-19 18:16:53.000000000 +0200
+@@ -111,9 +111,9 @@
+ AC_CACHE_VAL([ac_cv_linux_exports_sys_call_table], [
+ AC_TRY_KBUILD(
+ [#include <linux/modversions.h>],
+-[#ifndef __ver_sys_call_table
+-#error sys_call_table not exported
+-#endif],
++[
++extern SYSCALLTYPE sys_call_table[] __attribute__((weak));
++],
+ ac_cv_linux_exports_sys_call_table=yes,
+ ac_cv_linux_exports_sys_call_table=no)])
+ AC_MSG_RESULT($ac_cv_linux_exports_sys_call_table)])
diff --git a/net-fs/openafs-kernel/openafs-kernel-1.4.4_p20070724-r2.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.4.4_p20070724-r2.ebuild
new file mode 100644
index 000000000000..a17bdef0b5c2
--- /dev/null
+++ b/net-fs/openafs-kernel/openafs-kernel-1.4.4_p20070724-r2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2007 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.4.4_p20070724-r2.ebuild,v 1.1 2007/09/19 17:45:21 stefaan Exp $
+
+inherit eutils linux-mod versionator toolchain-funcs
+
+PATCHVER=0.13
+MY_PN=${PN/-kernel}
+MY_PV_DATE=${PV#*_p}
+MY_PV=${PV%_p*}
+MY_P=${MY_PN}-${MY_PV}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="The OpenAFS distributed file system kernel module"
+HOMEPAGE="http://www.openafs.org/"
+SRC_URI="http://openafs.org/dl/${MY_PN}/${PV}/${MY_P}-src.tar.bz2
+ mirror://gentoo/${MY_PN}-gentoo-${PATCHVER}.tar.bz2
+ mirror://gentoo/${MY_PN}-${MY_PV}-cvs${MY_PV_DATE}.patch.bz2"
+
+LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2)
+
+CONFIG_CHECK="!DEBUG_RODATA"
+DEBUG_RODATA_ERROR="OpenAFS is incompatible with linux' CONFIG_DEBUG_RODATA option"
+
+pkg_setup() {
+ linux-mod_pkg_setup
+}
+
+src_unpack() {
+ unpack ${MY_P}-src.tar.bz2
+ unpack ${MY_PN}-gentoo-${PATCHVER}.tar.bz2
+ cd ${S}
+
+ EPATCH_SUFFIX="patch" epatch ${PATCHDIR}
+ epatch ${DISTDIR}/${MY_P}-cvs${MY_PV_DATE}.patch.bz2
+
+ epatch ${FILESDIR}/openafs-ppc64.patch
+ epatch ${FILESDIR}/openafs-sparc.patch
+
+ ./regen.sh || die "Failed: regenerating configure script"
+}
+
+src_compile() {
+ ARCH="$(tc-arch-kernel)" econf --with-linux-kernel-headers=${KV_DIR} || die "Failed: econf"
+
+ ARCH="$(tc-arch-kernel)" emake -j1 only_libafs || die "Failed: emake"
+}
+
+src_install() {
+ MOD_SRCDIR=$(expr ${S}/src/libafs/MODLOAD-*)
+ [ -f ${MOD_SRCDIR}/libafs.${KV_OBJ} ] \
+ || die "Couldn't find compiled kernel module"
+
+ MODULE_NAMES='libafs(fs/openafs:$MOD_SRCDIR)'
+
+ linux-mod_src_install
+}