Gentoo Archives: gentoo-commits

From: "NP Hardass (np-hardass)" <np-hardass@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/openafs-kernel: openafs-kernel-1.6.12.ebuild ChangeLog
Date: Fri, 03 Jul 2015 02:01:16
Message-Id: 20150703020107.98EE0743@oystercatcher.gentoo.org
1 np-hardass 15/07/03 02:01:07
2
3 Modified: ChangeLog
4 Added: openafs-kernel-1.6.12.ebuild
5 Log:
6 Version bump to 1.6.12. Supports Kernels up to 4.1. See http://openafs.org/dl/openafs/1.6.12/RELNOTES-1.6.12 for release notes.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 18F89C67)
9
10 Revision Changes Path
11 1.172 net-fs/openafs-kernel/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs-kernel/ChangeLog?rev=1.172&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs-kernel/ChangeLog?rev=1.172&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs-kernel/ChangeLog?r1=1.171&r2=1.172
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/ChangeLog,v
20 retrieving revision 1.171
21 retrieving revision 1.172
22 diff -u -r1.171 -r1.172
23 --- ChangeLog 3 May 2015 14:34:58 -0000 1.171
24 +++ ChangeLog 3 Jul 2015 02:01:07 -0000 1.172
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-fs/openafs-kernel
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/ChangeLog,v 1.171 2015/05/03 14:34:58 bircoph Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/ChangeLog,v 1.172 2015/07/03 02:01:07 np-hardass Exp $
30 +
31 +*openafs-kernel-1.6.12 (03 Jul 2015)
32 +
33 + 03 Jul 2015; NP-Hardass <NP-Hardass@g.o> +openafs-kernel-1.6.12.ebuild:
34 + Version bump to 1.6.12. Supports Kernels up to 4.1. See
35 + http://openafs.org/dl/openafs/1.6.12/RELNOTES-1.6.12 for release notes.
36
37 *openafs-kernel-1.6.11.1 (03 May 2015)
38
39
40
41
42 1.1 net-fs/openafs-kernel/openafs-kernel-1.6.12.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs-kernel/openafs-kernel-1.6.12.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs-kernel/openafs-kernel-1.6.12.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openafs-kernel-1.6.12.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/openafs-kernel-1.6.12.ebuild,v 1.1 2015/07/03 02:01:07 np-hardass Exp $
52
53 EAPI="5"
54
55 inherit autotools eutils linux-mod multilib toolchain-funcs versionator
56
57 MY_PV=$(delete_version_separator '_')
58 MY_PN="${PN/-kernel}"
59 MY_P="${MY_PN}-${MY_PV}"
60 PVER="20150626"
61
62 DESCRIPTION="The OpenAFS distributed file system kernel module"
63 HOMEPAGE="http://www.openafs.org/"
64 # We always d/l the doc tarball as man pages are not USE=doc material
65 [[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
66 SRC_URI="
67 http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
68 http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
69 http://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz
70 "
71
72 LICENSE="IBM BSD openafs-krb5-a APSL-2"
73 SLOT="0"
74 KEYWORDS="~amd64 ~amd64-fbsd ~amd64-linux ~sparc ~x86 ~x86-fbsd ~x86-linux"
75 IUSE=""
76
77 S=${WORKDIR}/${MY_P}
78
79 CONFIG_CHECK="!DEBUG_RODATA ~!AFS_FS KEYS"
80 ERROR_DEBUG_RODATA="OpenAFS is incompatible with linux' CONFIG_DEBUG_RODATA option"
81 ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
82 ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
83
84 QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
85 QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
86
87 pkg_pretend() {
88 if use kernel_linux && kernel_is ge 4 2 ; then
89 ewarn "Gentoo supports kernels which are supported by OpenAFS"
90 ewarn "which are limited to the kernel versions: <4.2"
91 ewarn ""
92 ewarn "You are free to utilize epatch_user to provide whatever"
93 ewarn "support you feel is appropriate, but will not receive"
94 ewarn "support as a result of those changes."
95 ewarn ""
96 ewarn "Please do not file a bug report about this."
97 fi
98 }
99
100 pkg_setup() {
101 if use kernel_linux; then
102 linux-mod_pkg_setup
103 fi
104 }
105
106 src_prepare() {
107 # do not tamper with CFLAGS for the kernel module
108 EPATCH_EXCLUDE="040_all_flags.patch" \
109 EPATCH_SUFFIX="patch" \
110 epatch "${WORKDIR}"/gentoo/patches
111 epatch_user
112
113 # packaging is f-ed up, so we can't run eautoreconf
114 # run autotools commands based on what is listed in regen.sh
115 eaclocal -I src/cf
116 eautoconf
117 eautoconf -o configure-libafs configure-libafs.ac
118 eautoheader
119 einfo "Deleting autom4te.cache directory"
120 rm -rf autom4te.cache
121 }
122
123 src_configure() {
124 local myconf=""
125 # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
126 if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
127 myconf="--enable-linux-d_splice_alias-extra-iput"
128 fi
129
130 local ARCH="$(tc-arch-kernel)"
131 local MY_ARCH="$(tc-arch)"
132 local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC"
133
134 if use kernel_linux; then
135 myconf+=( --with-linux-kernel-headers="${KV_DIR}" \
136 --with-linux-kernel-build="${KV_OUT_DIR}"
137 )
138 elif use kernel_FreeBSD; then
139 myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" )
140 fi
141 econf "${myconf[@]}"
142 }
143
144 src_compile() {
145 ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
146 }
147
148 src_install() {
149 if use kernel_linux; then
150 local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
151 [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
152
153 MODULE_NAMES="libafs(fs/openafs:${srcdir})"
154
155 linux-mod_src_install
156 elif use kernel_FreeBSD; then
157 insinto /boot/modules
158 doins "${S}"/src/libafs/MODLOAD/libafs.ko
159 fi
160 }
161
162 pkg_postinst() {
163 # Update linker.hints file
164 use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
165 use kernel_linux && linux-mod_pkg_postinst
166 }
167
168 pkg_postrm() {
169 # Update linker.hints file
170 use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
171 use kernel_linux && linux-mod_pkg_postrm
172 }