1 |
commit: 8e3bda74238f4169b16974eb015bf2b287c21fe0 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 12 20:04:38 2017 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 12 21:08:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e3bda74 |
7 |
|
8 |
sys-fs/aufs4: Version Bump |
9 |
|
10 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.13, Repoman-2.3.4 |
12 |
|
13 |
sys-fs/aufs4/Manifest | 1 + |
14 |
sys-fs/aufs4/aufs4-0_pre20171106.ebuild | 184 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 185 insertions(+) |
16 |
|
17 |
diff --git a/sys-fs/aufs4/Manifest b/sys-fs/aufs4/Manifest |
18 |
index 4579c71bccb..7f9f36c8db3 100644 |
19 |
--- a/sys-fs/aufs4/Manifest |
20 |
+++ b/sys-fs/aufs4/Manifest |
21 |
@@ -9,3 +9,4 @@ DIST aufs4-standalone-0_pre20170220.tar.xz 2115232 SHA256 96dcb9d94d1d2358a61e9d |
22 |
DIST aufs4-standalone-0_pre20170313.tar.xz 1883012 SHA256 195b0a821fe9fe7f22416848699bb464434d6c7562d981a3fa64f8670234b516 SHA512 7d711e0ebdc38aa79d3b7cdb04c91f3029c233bacdadca87a8622d48826c261c678d6a2cda6b627a0db0f248b35448e0d9da30e2c8e2e42e3b1e3ae6327033ba WHIRLPOOL 41410d251ede7e85faee6aaac4139aa00862f7dfdf4eeef6baef72f0324d594cf48c416d3d3dc7ff98ad0563d3b7b0b3c20f75784947660947b20a74331d89c7 |
23 |
DIST aufs4-standalone-0_pre20170612.tar.xz 2017248 SHA256 fe725b22ace944b26cc33a79fe8cb977824937473ee4b67b95d62854da1dd589 SHA512 2d0fd1dce7b1a421533e667420fc69a44c378753dccddc3768eebdb906a023e41378b38961004a58b1c4f2e3844c86f8cb4be238e634318a380881eab513acfa WHIRLPOOL c74bea33b077e3dda7abe165daf0e5c54e1949f6b3d3928b47e50d13e9dee1a9b2a49605b85d9afb52dd36c69a61c1f07969e4a05da0aa705051d719b8a86776 |
24 |
DIST aufs4-standalone-0_pre20171002.tar.xz 2265048 SHA256 89ed39c84ad9d30a479b9bc5039dcdd37c0a88d61055a9935e364e23a12a2d59 SHA512 ee9d0e48fba6671fe4c5d3f533956c3eb0c6caa45fc4074be94f4427d84a5446cd4dc9f3ebf27fb56e697b24172ddd14a61c246f0414ebce8e372c204dfbb150 WHIRLPOOL 178ece388bd30c2d3aeef226f5fc03910513df7902f208ca14dfd4a841c453db38fc48ade8c18e0801142cdb4d592d2f4d13f68369a74eed32bb8ee4a3465e3c |
25 |
+DIST aufs4-standalone-0_pre20171106.tar.xz 2351120 SHA256 c795079fd6cf6835af4cf5879a238d1be788c459cb233a17a9f962aba0699df6 SHA512 9a8c6f59b737133e423613365bb46fd197f05a93d459b6206a70807ffaa6763b7095b2f4780deb6e7882a2b464aaa185cf1760febbf3a674e8d0cf71c7ba72ee WHIRLPOOL d3497bc316b33bf6805635808976f5130c042474af701fed244ca00211117ae4994ec3ba3d449ab7b466207adf6ff88b8e3704e88e7cdc3d2b43f5479602c5ee |
26 |
|
27 |
diff --git a/sys-fs/aufs4/aufs4-0_pre20171106.ebuild b/sys-fs/aufs4/aufs4-0_pre20171106.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..2f61f36acc1 |
30 |
--- /dev/null |
31 |
+++ b/sys-fs/aufs4/aufs4-0_pre20171106.ebuild |
32 |
@@ -0,0 +1,184 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo-r1 toolchain-funcs |
39 |
+ |
40 |
+AUFS_VERSION="${PV%%_p*}" |
41 |
+# highest branch version |
42 |
+PATCH_MAX_VER=13 |
43 |
+# highest supported version |
44 |
+KERN_MAX_VER=14 |
45 |
+# lowest supported version |
46 |
+KERN_MIN_VER=0 |
47 |
+ |
48 |
+DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
49 |
+HOMEPAGE="http://aufs.sourceforge.net/" |
50 |
+SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs4-standalone-${PV}.tar.xz" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~x86" |
55 |
+IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
56 |
+ |
57 |
+DEPEND=" |
58 |
+ dev-util/patchutils |
59 |
+ dev-vcs/git" |
60 |
+RDEPEND=" |
61 |
+ sys-fs/aufs-util |
62 |
+ !sys-fs/aufs |
63 |
+ !sys-fs/aufs2 |
64 |
+ !sys-fs/aufs3" |
65 |
+ |
66 |
+S="${WORKDIR}"/${PN}-standalone |
67 |
+ |
68 |
+MODULE_NAMES="aufs(misc:${S})" |
69 |
+ |
70 |
+pkg_setup() { |
71 |
+ CONFIG_CHECK+=" !AUFS_FS" |
72 |
+ use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
73 |
+ use nfs && CONFIG_CHECK+=" EXPORTFS" |
74 |
+ use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
75 |
+ use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
76 |
+ use pax_kernel && CONFIG_CHECK+=" PAX" \ |
77 |
+ && ERROR_PAX="Please use hardened sources" |
78 |
+ |
79 |
+ # this is needed so merging a binpkg ${PN} is |
80 |
+ # possible w/out a kernel unpacked on the system |
81 |
+ [[ -n "$PKG_SETUP_HAS_BEEN_RAN" ]] && return |
82 |
+ |
83 |
+ get_version |
84 |
+ kernel_is lt 4 ${KERN_MIN_VER} 0 && \ |
85 |
+ die "the kernel version isn't supported by upstream anymore. Please upgrade." |
86 |
+ kernel_is gt 4 ${KERN_MAX_VER} 99 && die "kernel too new" |
87 |
+ |
88 |
+ linux-mod_pkg_setup |
89 |
+ |
90 |
+ if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
91 |
+ PATCH_BRANCH="x-rcN" |
92 |
+ elif [[ "${KV_MINOR}" == "1" ]] && [[ "${KV_PATCH}" -ge "13" ]]; then |
93 |
+ PATCH_BRANCH="${KV_MINOR}".13+ |
94 |
+ else |
95 |
+ PATCH_BRANCH="${KV_MINOR}" |
96 |
+ fi |
97 |
+ |
98 |
+ case ${KV_EXTRA} in |
99 |
+ "") |
100 |
+ elog "It seems you are using vanilla-sources with aufs4" |
101 |
+ elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
102 |
+ elog "This will save you the nasty reemerge of sys-fs/aufs4 on every kernel upgrade" |
103 |
+ ;; |
104 |
+ "-gentoo") |
105 |
+ elog "It seems you are using gentoo-sources with aufs4" |
106 |
+ elog "Please use sys-kernel/aufs-sources" |
107 |
+ elog "This will save you the nasty reemerge of sys-fs/aufs4 on every kernel upgrade" |
108 |
+ ;; |
109 |
+ esac |
110 |
+ |
111 |
+ pushd "${T}" &> /dev/null || die |
112 |
+ unpack ${A} |
113 |
+ |
114 |
+ cd ${PN}-standalone || die |
115 |
+ |
116 |
+ local module_branch=origin/${PN}.${PATCH_BRANCH} |
117 |
+ |
118 |
+ einfo "Using ${module_branch} as patch source" |
119 |
+ git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
120 |
+ |
121 |
+ combinediff \ |
122 |
+ ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
123 |
+ combinediff \ |
124 |
+ "${T}"/combined-1.patch ${PN}-mmap.patch \ |
125 |
+ > ${PN}-standalone-base-mmap-combined.patch |
126 |
+ |
127 |
+ if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
128 |
+ if use kernel-patch; then |
129 |
+ cd ${KV_DIR} |
130 |
+ ewarn "Patching your kernel..." |
131 |
+ patch \ |
132 |
+ --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} \ |
133 |
+ < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch \ |
134 |
+ > /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 |
+ |
146 |
+ popd &> /dev/null |
147 |
+ export PKG_SETUP_HAS_BEEN_RAN=1 |
148 |
+} |
149 |
+ |
150 |
+set_config() { |
151 |
+ for option in $*; do |
152 |
+ grep -q "^CONFIG_AUFS_${option} =" config.mk || \ |
153 |
+ die "${option} is not a valid config option" |
154 |
+ sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
155 |
+ done |
156 |
+} |
157 |
+ |
158 |
+src_prepare() { |
159 |
+ local module_branch=origin/${PN}.${PATCH_BRANCH} |
160 |
+ |
161 |
+ einfo "Using for module creation branch ${module_branch}" |
162 |
+ git checkout -q -b local-gentoo ${module_branch} || die |
163 |
+ |
164 |
+ # All config options to off |
165 |
+ sed "s:= y:=:g" -i config.mk || die |
166 |
+ |
167 |
+ set_config RDU BRANCH_MAX_127 SBILIST |
168 |
+ |
169 |
+ use debug && set_config DEBUG |
170 |
+ use fuse && set_config BR_FUSE POLL |
171 |
+ use hfs && set_config BR_HFSPLUS |
172 |
+ use inotify && set_config HNOTIFY HFSNOTIFY |
173 |
+ use nfs && set_config EXPORT |
174 |
+ use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
175 |
+ use ramfs && set_config BR_RAMFS |
176 |
+ |
177 |
+ use pax_kernel && epatch "${FILESDIR}"/pax-4.patch |
178 |
+ |
179 |
+ sed \ |
180 |
+ -e "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" \ |
181 |
+ -i Makefile || die |
182 |
+ |
183 |
+ eapply_user |
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 |
+ use doc && dodoc -r Documentation |
202 |
+ |
203 |
+ use kernel-patch || \ |
204 |
+ doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
205 |
+ |
206 |
+ dodoc \ |
207 |
+ Documentation/filesystems/aufs/README \ |
208 |
+ "${T}"/${PN}-standalone/{aufs4-loopback,vfs-ino,tmpfs-idr}.patch |
209 |
+ |
210 |
+ readme.gentoo_create_doc |
211 |
+} |
212 |
+ |
213 |
+pkg_postinst() { |
214 |
+ readme.gentoo_print_elog |
215 |
+ linux-mod_pkg_postinst |
216 |
+} |