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: ChangeLog aufs3-3_p20140609.ebuild
Date: Mon, 09 Jun 2014 08:01:19
Message-Id: 20140609080113.6D5DC2004E@flycatcher.gentoo.org
1 jlec 14/06/09 08:01:12
2
3 Modified: ChangeLog
4 Added: aufs3-3_p20140609.ebuild
5 Log:
6 sys-fs/aufs3: Bump to latest aufs3 HEAD
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
9
10 Revision Changes Path
11 1.94 sys-fs/aufs3/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.94&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.94&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?r1=1.93&r2=1.94
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v
20 retrieving revision 1.93
21 retrieving revision 1.94
22 diff -u -r1.93 -r1.94
23 --- ChangeLog 2 Jun 2014 09:23:19 -0000 1.93
24 +++ ChangeLog 9 Jun 2014 08:01:12 -0000 1.94
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.93 2014/06/02 09:23:19 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.94 2014/06/09 08:01:12 jlec Exp $
30 +
31 +*aufs3-3_p20140609 (09 Jun 2014)
32 +
33 + 09 Jun 2014; Justin Lecher <jlec@g.o> +aufs3-3_p20140609.ebuild:
34 + Bump to latest aufs3 HEAD
35
36 *aufs3-3_p20140602 (02 Jun 2014)
37
38
39
40
41 1.1 sys-fs/aufs3/aufs3-3_p20140609.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140609.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140609.ebuild?rev=1.1&content-type=text/plain
45
46 Index: aufs3-3_p20140609.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_p20140609.ebuild,v 1.1 2014/06/09 08:01:12 jlec Exp $
51
52 EAPI=5
53
54 inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs
55
56 AUFS_VERSION="${PV%%_p*}"
57 # highest branch version
58 PATCH_MAX_VER=14
59 # highest supported version
60 KERN_MAX_VER=15
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_PATCH}" -ge "28" ]]; then
105 PATCH_BRANCH="${KV_MINOR}".x
106 elif [[ "${KV_MINOR}" == "12" ]]; then
107 PATCH_BRANCH="${KV_MINOR}".x
108 else
109 PATCH_BRANCH="${KV_MINOR}"
110 fi
111
112 case ${KV_EXTRA} in
113 "")
114 elog "It seems you are using vanilla-sources with aufs3"
115 elog "Please use sys-kernel/aufs-sources with USE=vanilla"
116 elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade"
117 ;;
118 "-gentoo")
119 elog "It seems you are using gentoo-sources with aufs3"
120 elog "Please use sys-kernel/aufs-sources"
121 elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade"
122 ;;
123 esac
124
125 pushd "${T}" &> /dev/null
126 unpack ${A}
127 cd ${PN}-standalone || die
128 local module_branch=origin/${PN}.${PATCH_BRANCH}
129 einfo "Using ${module_branch} as patch source"
130 git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die
131 combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch
132 combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch
133 if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then
134 if use kernel-patch; then
135 cd ${KV_DIR}
136 ewarn "Patching your kernel..."
137 patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null
138 epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch
139 ewarn "You need to compile your kernel with the applied patch"
140 ewarn "to be able to load and use the aufs kernel module"
141 else
142 eerror "You need to apply a patch to your kernel to compile and run the ${PN} module"
143 eerror "Either enable the kernel-patch useflag to do it with this ebuild"
144 eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand"
145 die "missing kernel patch, please apply it first"
146 fi
147 fi
148 popd &> /dev/null
149 export PKG_SETUP_HAS_BEEN_RAN=1
150 }
151
152 set_config() {
153 for option in $*; do
154 grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option"
155 sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die
156 done
157 }
158
159 src_prepare() {
160 local module_branch=origin/${PN}.${PATCH_BRANCH}
161
162 einfo "Using for module creation branch ${module_branch}"
163 git checkout -q -b local-gentoo ${module_branch} || die
164
165 # All config options to off
166 sed "s:= y:=:g" -i config.mk || die
167
168 set_config RDU BRANCH_MAX_127 SBILIST
169
170 use debug && set_config DEBUG
171 use fuse && set_config BR_FUSE POLL
172 use hfs && set_config BR_HFSPLUS
173 use inotify && set_config HNOTIFY HFSNOTIFY
174 use nfs && set_config EXPORT
175 use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64
176 use ramfs && set_config BR_RAMFS
177
178 if use pax_kernel; then
179 if kernel_is ge 3 11; then
180 epatch "${FILESDIR}"/pax-3.11.patch
181 else
182 epatch "${FILESDIR}"/pax-3.patch
183 fi
184 fi
185
186 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die
187 }
188
189 src_compile() {
190 local ARCH=x86
191
192 emake \
193 CC=$(tc-getCC) \
194 LD=$(tc-getLD) \
195 LDFLAGS="$(raw-ldflags)" \
196 ARCH=$(tc-arch-kernel) \
197 CONFIG_AUFS_FS=m \
198 KDIR="${KV_OUT_DIR}"
199 }
200
201 src_install() {
202 linux-mod_src_install
203
204 insinto /usr/share/doc/${PF}
205
206 use doc && doins -r Documentation
207
208 use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch
209
210 dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-ibitmap}.patch
211
212 readme.gentoo_create_doc
213 }
214
215 pkg_postinst() {
216 readme.gentoo_pkg_postinst
217 linux-mod_pkg_postinst
218 }