Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/aufs3: aufs3-3_p20140623.ebuild aufs3-3_p20140630.ebuild ChangeLog
Date: Mon, 30 Jun 2014 07:04:05
Message-Id: 20140630070400.C28F82004E@flycatcher.gentoo.org
1 jlec 14/06/30 07:04:00
2
3 Modified: aufs3-3_p20140623.ebuild ChangeLog
4 Added: aufs3-3_p20140630.ebuild
5 Log:
6 sys-fs/aufs3: Bump to latest aufs3 release
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
9
10 Revision Changes Path
11 1.2 sys-fs/aufs3/aufs3-3_p20140623.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140623.ebuild?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140623.ebuild?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140623.ebuild?r1=1.1&r2=1.2
16
17 Index: aufs3-3_p20140623.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140623.ebuild,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- aufs3-3_p20140623.ebuild 23 Jun 2014 07:01:58 -0000 1.1
24 +++ aufs3-3_p20140623.ebuild 30 Jun 2014 07:04:00 -0000 1.2
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2014 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140623.ebuild,v 1.1 2014/06/23 07:01:58 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140623.ebuild,v 1.2 2014/06/30 07:04:00 jlec Exp $
30
31 EAPI=5
32
33 @@ -35,6 +35,8 @@
34
35 MODULE_NAMES="aufs(misc:${S})"
36
37 +README_GENTOO_SUFFIX="-r1"
38 +
39 pkg_setup() {
40 CONFIG_CHECK+=" !AUFS_FS"
41 use inotify && CONFIG_CHECK+=" ~FSNOTIFY"
42
43
44
45 1.98 sys-fs/aufs3/ChangeLog
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.98&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.98&content-type=text/plain
49 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?r1=1.97&r2=1.98
50
51 Index: ChangeLog
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v
54 retrieving revision 1.97
55 retrieving revision 1.98
56 diff -u -r1.97 -r1.98
57 --- ChangeLog 23 Jun 2014 07:01:57 -0000 1.97
58 +++ ChangeLog 30 Jun 2014 07:04:00 -0000 1.98
59 @@ -1,6 +1,12 @@
60 # ChangeLog for sys-fs/aufs3
61 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
62 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.97 2014/06/23 07:01:57 jlec Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.98 2014/06/30 07:04:00 jlec Exp $
64 +
65 +*aufs3-3_p20140630 (30 Jun 2014)
66 +
67 + 30 Jun 2014; Justin Lecher <jlec@g.o> aufs3-3_p20140623.ebuild,
68 + +aufs3-3_p20140630.ebuild, files/README.gentoo, +files/README.gentoo-r1:
69 + Bump to latest aufs3 release
70
71 *aufs3-3_p20140623 (23 Jun 2014)
72
73
74
75
76 1.1 sys-fs/aufs3/aufs3-3_p20140630.ebuild
77
78 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140630.ebuild?rev=1.1&view=markup
79 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140630.ebuild?rev=1.1&content-type=text/plain
80
81 Index: aufs3-3_p20140630.ebuild
82 ===================================================================
83 # Copyright 1999-2014 Gentoo Foundation
84 # Distributed under the terms of the GNU General Public License v2
85 # $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140630.ebuild,v 1.1 2014/06/30 07:04:00 jlec Exp $
86
87 EAPI=5
88
89 inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs
90
91 AUFS_VERSION="${PV%%_p*}"
92 # highest branch version
93 PATCH_MAX_VER=15
94 # highest supported version
95 KERN_MAX_VER=16
96 # lowest supported version
97 KERN_MIN_VER=10
98
99 DESCRIPTION="An entirely re-designed and re-implemented Unionfs"
100 HOMEPAGE="http://aufs.sourceforge.net/"
101 SRC_URI="http://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz"
102
103 LICENSE="GPL-2"
104 SLOT="0"
105 KEYWORDS="~amd64 ~x86"
106 IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs"
107
108 DEPEND="
109 dev-util/patchutils
110 dev-vcs/git"
111 RDEPEND="
112 sys-fs/aufs-util
113 !sys-fs/aufs
114 !sys-fs/aufs2"
115
116 S="${WORKDIR}"/${PN}-standalone
117
118 MODULE_NAMES="aufs(misc:${S})"
119
120 README_GENTOO_SUFFIX="-r1"
121
122 pkg_setup() {
123 CONFIG_CHECK+=" !AUFS_FS"
124 use inotify && CONFIG_CHECK+=" ~FSNOTIFY"
125 use nfs && CONFIG_CHECK+=" EXPORTFS"
126 use fuse && CONFIG_CHECK+=" ~FUSE_FS"
127 use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS"
128 use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources"
129
130 # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system
131 [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return
132
133 get_version
134 kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade."
135 kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new"
136
137 linux-mod_pkg_setup
138
139 if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then
140 PATCH_BRANCH="x-rcN"
141 elif [[ "${KV_MINOR}" == "10" ]] && [[ "${KV_PATCH}" -ge "28" ]]; then
142 PATCH_BRANCH="${KV_MINOR}".x
143 elif [[ "${KV_MINOR}" == "12" ]]; then
144 PATCH_BRANCH="${KV_MINOR}".x
145 else
146 PATCH_BRANCH="${KV_MINOR}"
147 fi
148
149 case ${KV_EXTRA} in
150 "")
151 elog "It seems you are using vanilla-sources with aufs3"
152 elog "Please use sys-kernel/aufs-sources with USE=vanilla"
153 elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade"
154 ;;
155 "-gentoo")
156 elog "It seems you are using gentoo-sources with aufs3"
157 elog "Please use sys-kernel/aufs-sources"
158 elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade"
159 ;;
160 esac
161
162 pushd "${T}" &> /dev/null
163 unpack ${A}
164 cd ${PN}-standalone || die
165 local module_branch=origin/${PN}.${PATCH_BRANCH}
166 einfo "Using ${module_branch} as patch source"
167 git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die
168 combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch
169 combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch
170 if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then
171 if use kernel-patch; then
172 cd ${KV_DIR}
173 ewarn "Patching your kernel..."
174 patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null
175 epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch
176 ewarn "You need to compile your kernel with the applied patch"
177 ewarn "to be able to load and use the aufs kernel module"
178 else
179 eerror "You need to apply a patch to your kernel to compile and run the ${PN} module"
180 eerror "Either enable the kernel-patch useflag to do it with this ebuild"
181 eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand"
182 die "missing kernel patch, please apply it first"
183 fi
184 fi
185 popd &> /dev/null
186 export PKG_SETUP_HAS_BEEN_RAN=1
187 }
188
189 set_config() {
190 for option in $*; do
191 grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option"
192 sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die
193 done
194 }
195
196 src_prepare() {
197 local module_branch=origin/${PN}.${PATCH_BRANCH}
198
199 einfo "Using for module creation branch ${module_branch}"
200 git checkout -q -b local-gentoo ${module_branch} || die
201
202 # All config options to off
203 sed "s:= y:=:g" -i config.mk || die
204
205 set_config RDU BRANCH_MAX_127 SBILIST
206
207 use debug && set_config DEBUG
208 use fuse && set_config BR_FUSE POLL
209 use hfs && set_config BR_HFSPLUS
210 use inotify && set_config HNOTIFY HFSNOTIFY
211 use nfs && set_config EXPORT
212 use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64
213 use ramfs && set_config BR_RAMFS
214
215 if use pax_kernel; then
216 if kernel_is ge 3 11; then
217 epatch "${FILESDIR}"/pax-3.11.patch
218 else
219 epatch "${FILESDIR}"/pax-3.patch
220 fi
221 fi
222
223 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die
224 }
225
226 src_compile() {
227 local ARCH=x86
228
229 emake \
230 CC=$(tc-getCC) \
231 LD=$(tc-getLD) \
232 LDFLAGS="$(raw-ldflags)" \
233 ARCH=$(tc-arch-kernel) \
234 CONFIG_AUFS_FS=m \
235 KDIR="${KV_OUT_DIR}"
236 }
237
238 src_install() {
239 linux-mod_src_install
240
241 insinto /usr/share/doc/${PF}
242
243 use doc && doins -r Documentation
244
245 use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch
246
247 dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch
248
249 readme.gentoo_create_doc
250 }
251
252 pkg_postinst() {
253 readme.gentoo_pkg_postinst
254 linux-mod_pkg_postinst
255 }