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_p20130325.ebuild
Date: Sat, 30 Mar 2013 13:31:05
Message-Id: 20130330133101.1D6AA2171D@flycatcher.gentoo.org
1 jlec 13/03/30 13:31:01
2
3 Modified: ChangeLog
4 Added: aufs3-3_p20130325.ebuild
5 Log:
6 sys-fs/aufs3: Version BUmp
7
8 (Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
9
10 Revision Changes Path
11 1.54 sys-fs/aufs3/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.54&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?rev=1.54&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/ChangeLog?r1=1.53&r2=1.54
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v
20 retrieving revision 1.53
21 retrieving revision 1.54
22 diff -u -r1.53 -r1.54
23 --- ChangeLog 21 Mar 2013 08:39:21 -0000 1.53
24 +++ ChangeLog 30 Mar 2013 13:31:00 -0000 1.54
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.53 2013/03/21 08:39:21 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.54 2013/03/30 13:31:00 jlec Exp $
30 +
31 +*aufs3-3_p20130325 (30 Mar 2013)
32 +
33 + 30 Mar 2013; Justin Lecher <jlec@g.o> +aufs3-3_p20130325.ebuild:
34 + Version BUmp
35
36 21 Mar 2013; Justin Lecher <jlec@g.o> aufs3-3_p20130318.ebuild:
37 Fix kernel patching, thanks likewhoa for the patch
38
39
40
41 1.1 sys-fs/aufs3/aufs3-3_p20130325.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20130325.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/aufs3/aufs3-3_p20130325.ebuild?rev=1.1&content-type=text/plain
45
46 Index: aufs3-3_p20130325.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_p20130325.ebuild,v 1.1 2013/03/30 13:31:00 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=8
59 # highest supported version
60 KERN_MAX_VER=9
61 # highest util branch version
62 UTIL_MAX_VER=0
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+=" ~EXPERIMENTAL !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 0 0 && die "kernel too old, Please use sys-fs/aufs2"
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 if [[ "${PATCH_BRANCH}" == "x-rcN" ]]; then
109 UTIL_BRANCH="x-rcN"
110 elif [[ "${KV_MINOR}" -gt "${UTIL_MAX_VER}" ]]; then
111 UTIL_BRANCH="${UTIL_MAX_VER}"
112 else
113 UTIL_BRANCH="${KV_MINOR}"
114 fi
115
116 pushd "${T}" &> /dev/null
117 unpack ${A}
118 cd ${PN}-standalone || die
119 local module_branch=origin/${PN}.${PATCH_BRANCH}
120 git checkout -q -b local-gentoo ${module_branch} || die
121 combinediff ${PN}-base.patch ${PN}-standalone.patch > ${PN}-standalone-base-combined.patch
122 if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-combined.patch > /dev/null ); then
123 if use kernel-patch; then
124 cd ${KV_DIR}
125 ewarn "Patching your kernel..."
126 patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-combined.patch >/dev/null
127 epatch "${T}"/${PN}-standalone/${PN}-standalone-base-combined.patch
128 ewarn "You need to compile your kernel with the applied patch"
129 ewarn "to be able to load and use the aufs kernel module"
130 else
131 eerror "You need to apply a patch to your kernel to compile and run the ${PN} module"
132 eerror "Either enable the kernel-patch useflag to do it with this ebuild"
133 eerror "or apply ${EPRFIX}/usr/share/doc/${PF}/${PN}-standalone-base-combined.patch by hand"
134 die "missing kernel patch, please apply it first"
135 fi
136 fi
137 popd &> /dev/null
138 export PKG_SETUP_HAS_BEEN_RAN=1
139 }
140
141 set_config() {
142 for option in $*; do
143 grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option"
144 sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die
145 done
146 }
147
148 src_prepare() {
149 local module_branch=origin/${PN}.${PATCH_BRANCH}
150 local util_branch=origin/${PN}.${UTIL_BRANCH}
151
152 einfo "Using for module creation branch ${module_branch}"
153 git checkout -q -b local-gentoo ${module_branch} || die
154
155 # All config options to off
156 sed "s:= y:=:g" -i config.mk || die
157
158 set_config RDU BRANCH_MAX_127 SBILIST
159
160 use debug && set_config DEBUG
161 use fuse && set_config BR_FUSE POLL
162 use hfs && set_config BR_HFSPLUS
163 use inotify && set_config HNOTIFY HFSNOTIFY
164 use nfs && set_config EXPORT
165 use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64
166 use ramfs && set_config BR_RAMFS
167
168 use pax_kernel && epatch "${FILESDIR}"/pax-2.patch
169
170 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die
171 }
172
173 src_compile() {
174 local ARCH=x86
175
176 emake \
177 CC=$(tc-getCC) \
178 LD=$(tc-getLD) \
179 LDFLAGS="$(raw-ldflags)" \
180 ARCH=$(tc-arch-kernel) \
181 CONFIG_AUFS_FS=m \
182 KDIR="${KV_OUT_DIR}"
183 }
184
185 src_install() {
186 linux-mod_src_install
187
188 insinto /usr/share/doc/${PF}
189
190 use doc && doins -r Documentation
191
192 use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-combined.patch
193
194 dodoc Documentation/filesystems/aufs/README
195 }