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