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