Gentoo Archives: gentoo-commits

From: "Brian Dolbec (dolsen)" <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/portage: portage-2.2.14_rc1.ebuild portage-9999.ebuild ChangeLog portage-2.2.10.ebuild portage-2.2.11-r1.ebuild portage-2.2.1.ebuild portage-2.2.7.ebuild portage-2.2.12-r1.ebuild portage-2.2.13.ebuild portage-2.1.6.7_p1.ebuild
Date: Fri, 26 Sep 2014 18:58:49
Message-Id: 20140926185845.BFA016589@oystercatcher.gentoo.org
1 dolsen 14/09/26 18:58:45
2
3 Modified: portage-9999.ebuild ChangeLog
4 Added: portage-2.2.14_rc1.ebuild
5 Removed: portage-2.2.10.ebuild portage-2.2.11-r1.ebuild
6 portage-2.2.1.ebuild portage-2.2.7.ebuild
7 portage-2.2.12-r1.ebuild portage-2.2.13.ebuild
8 portage-2.1.6.7_p1.ebuild
9 Log:
10 Version bump, cleanout old
11
12 (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 0x65E309F2189DB0B8)
13
14 Revision Changes Path
15 1.104 sys-apps/portage/portage-9999.ebuild
16
17 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-9999.ebuild?rev=1.104&view=markup
18 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-9999.ebuild?rev=1.104&content-type=text/plain
19 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-9999.ebuild?r1=1.103&r2=1.104
20
21 Index: portage-9999.ebuild
22 ===================================================================
23 RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-9999.ebuild,v
24 retrieving revision 1.103
25 retrieving revision 1.104
26 diff -u -r1.103 -r1.104
27 --- portage-9999.ebuild 26 Sep 2014 17:04:07 -0000 1.103
28 +++ portage-9999.ebuild 26 Sep 2014 18:58:45 -0000 1.104
29 @@ -1,6 +1,6 @@
30 # Copyright 1999-2014 Gentoo Foundation
31 # Distributed under the terms of the GNU General Public License v2
32 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-9999.ebuild,v 1.103 2014/09/26 17:04:07 dolsen Exp $
33 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-9999.ebuild,v 1.104 2014/09/26 18:58:45 dolsen Exp $
34
35 EAPI=5
36
37 @@ -181,6 +181,16 @@
38 if [[ ${targets[@]} ]]; then
39 esetup.py "${targets[@]}"
40 fi
41 +
42 + # Due to distutils/python-exec limitations
43 + # they must be installed to /usr/bin.
44 + local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld'
45 + einfo "Moving admin scripts to the correct directory"
46 + dodir /usr/sbin
47 + for target in ${sbin_relocations}; do
48 + einfo "Moving /usr/bin/${target} to /usr/sbin/${target}"
49 + mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}"
50 + done
51 }
52
53 pkg_preinst() {
54 @@ -203,14 +213,4 @@
55 if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
56 chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
57 fi
58 -
59 - # Due to distutils/python-exec limitations
60 - # they must be installed to /usr/bin.
61 - local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld'
62 - einfo "Moving admin scripts to the correct directory"
63 - dodir /usr/sbin
64 - for target in ${sbin_relocations}; do
65 - einfo "Moving /usr/bin/${target} to /usr/sbin/${target}"
66 - mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}"
67 - done
68 }
69
70
71
72 1.1412 sys-apps/portage/ChangeLog
73
74 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.1412&view=markup
75 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.1412&content-type=text/plain
76 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.1411&r2=1.1412
77
78 Index: ChangeLog
79 ===================================================================
80 RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v
81 retrieving revision 1.1411
82 retrieving revision 1.1412
83 diff -u -r1.1411 -r1.1412
84 --- ChangeLog 26 Sep 2014 17:04:07 -0000 1.1411
85 +++ ChangeLog 26 Sep 2014 18:58:45 -0000 1.1412
86 @@ -1,6 +1,15 @@
87 # ChangeLog for sys-apps/portage
88 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
89 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1411 2014/09/26 17:04:07 dolsen Exp $
90 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1412 2014/09/26 18:58:45 dolsen Exp $
91 +
92 +*portage-2.2.14_rc1 (26 Sep 2014)
93 +
94 + 26 Sep 2014; Brian Dolbec <dolsen@g.o> -portage-2.1.6.7_p1.ebuild,
95 + -portage-2.2.1.ebuild, -portage-2.2.7.ebuild, -portage-2.2.10.ebuild,
96 + -portage-2.2.11-r1.ebuild, -portage-2.2.12-r1.ebuild, -portage-2.2.13.ebuild,
97 + +portage-2.2.14_rc1.ebuild, portage-9999.ebuild:
98 + Version bump, cleanout old. Move sbin relocation code from pkg_preinst() to
99 + python_install_all() for 9999,
100
101 26 Sep 2014; Brian Dolbec <dolsen@g.o> portage-9999.ebuild:
102 Move the admin scripts to /usr/sbin/ in pkg_preinst
103
104
105
106 1.1 sys-apps/portage/portage-2.2.14_rc1.ebuild
107
108 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.2.14_rc1.ebuild?rev=1.1&view=markup
109 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.2.14_rc1.ebuild?rev=1.1&content-type=text/plain
110
111 Index: portage-2.2.14_rc1.ebuild
112 ===================================================================
113 # Copyright 1999-2014 Gentoo Foundation
114 # Distributed under the terms of the GNU General Public License v2
115 # $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.2.14_rc1.ebuild,v 1.1 2014/09/26 18:58:45 dolsen Exp $
116
117 EAPI=5
118
119 PYTHON_COMPAT=(
120 pypy
121 python3_2 python3_3 python3_4
122 python2_7
123 )
124 # Note: substituted below
125 PYTHON_REQ_USE='bzip2(+)'
126
127 inherit distutils-r1 multilib
128
129 DESCRIPTION="Portage is the package management and distribution system for Gentoo"
130 HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml"
131
132 LICENSE="GPL-2"
133 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
134 SLOT="0"
135 IUSE="build doc epydoc +ipc linguas_ru selinux xattr"
136
137 DEPEND="!build? ( ${PYTHON_DEPS//bzip2(+)/ssl(+),bzip2(+)} )
138 dev-lang/python-exec:2
139 >=sys-apps/sed-4.0.5 sys-devel/patch
140 doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
141 epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )"
142 # Require sandbox-2.2 for bug #288863.
143 # For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's
144 # quite slow, so it's not considered in the dependencies as an alternative to
145 # to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so
146 # for now, don't pull in xattr deps for other kernels.
147 # For whirlpool hash, require python[ssl] or python-mhash (bug #425046).
148 # For compgen, require bash[readline] (bug #445576).
149 RDEPEND="
150 dev-lang/python-exec:2
151 !build? (
152 >=sys-apps/sed-4.0.5
153 || ( >=app-shells/bash-4.2_p37[readline] ( <app-shells/bash-4.2_p37 >=app-shells/bash-3.2_p17 ) )
154 >=app-admin/eselect-1.2
155 )
156 elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
157 elibc_glibc? ( >=sys-apps/sandbox-2.2 )
158 elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
159 >=app-misc/pax-utils-0.1.17
160 selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
161 xattr? ( kernel_linux? (
162 >=sys-apps/install-xattr-0.3
163 $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \
164 python{2_7,3_2} pypy)
165 ) )
166 !<app-shells/bash-3.2_p17
167 !<app-admin/logrotate-3.8.0"
168 PDEPEND="
169 !build? (
170 >=net-misc/rsync-2.6.4
171 userland_GNU? ( >=sys-apps/coreutils-6.4 )
172 )"
173 # coreutils-6.4 rdep is for date format in emerge-webrsync #164532
174 # NOTE: FEATURES=installsources requires debugedit and rsync
175
176 REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )"
177
178 SRC_ARCHIVES="http://dev.gentoo.org/~dolsen/releases/portage"
179
180 prefix_src_archives() {
181 local x y
182 for x in ${@}; do
183 for y in ${SRC_ARCHIVES}; do
184 echo ${y}/${x}
185 done
186 done
187 }
188
189 TARBALL_PV=${PV}
190 SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
191 $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)"
192
193 python_prepare_all() {
194 distutils-r1_python_prepare_all
195
196 if ! use ipc ; then
197 einfo "Disabling ipc..."
198 sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
199 -i pym/_emerge/AbstractEbuildProcess.py || \
200 die "failed to patch AbstractEbuildProcess.py"
201 fi
202
203 if use xattr && use kernel_linux ; then
204 einfo "Adding FEATURES=xattr to make.globals ..."
205 echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
206 || die "failed to append to make.globals"
207 fi
208
209 if [[ -n ${EPREFIX} ]] ; then
210 einfo "Setting portage.const.EPREFIX ..."
211 sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \
212 -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \
213 -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \
214 -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \
215 -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \
216 -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \
217 -i pym/portage/const.py || \
218 die "Failed to patch portage.const.EPREFIX"
219
220 einfo "Prefixing shebangs ..."
221 while read -r -d $'\0' ; do
222 local shebang=$(head -n1 "$REPLY")
223 if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
224 sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \
225 die "sed failed"
226 fi
227 done < <(find . -type f -print0)
228
229 einfo "Adjusting make.globals ..."
230 sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \
231 -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \
232 -i cnf/make.globals || die "sed failed"
233
234 einfo "Adjusting repos.conf ..."
235 sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
236 -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
237 -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
238 -e "s|^\(sync-uri = \).*|\\1rsync://prefix.gentooexperimental.org/gentoo-portage-prefix|" \
239 -i cnf/repos.conf || die "sed failed"
240
241 einfo "Adding FEATURES=force-prefix to make.globals ..."
242 echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
243 || die "failed to append to make.globals"
244 fi
245
246 cd "${S}/cnf" || die
247 if [ -f "make.conf.example.${ARCH}".diff ]; then
248 patch make.conf.example "make.conf.example.${ARCH}".diff || \
249 die "Failed to patch make.conf.example"
250 else
251 eerror ""
252 eerror "Portage does not have an arch-specific configuration for this arch."
253 eerror "Please notify the arch maintainer about this issue. Using generic."
254 eerror ""
255 fi
256 }
257
258 python_compile_all() {
259 local targets=()
260 use doc && targets+=( docbook )
261 use epydoc && targets+=( epydoc )
262
263 if [[ ${targets[@]} ]]; then
264 esetup.py "${targets[@]}"
265 fi
266 }
267
268 python_test() {
269 esetup.py test
270 }
271
272 python_install() {
273 # Install sbin scripts to bindir for python-exec linking
274 # they will be relocated in pkg_preinst()
275 distutils-r1_python_install \
276 --system-prefix="${EPREFIX}/usr" \
277 --bindir="$(python_get_scriptdir)" \
278 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
279 --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
280 --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
281 --sbindir="$(python_get_scriptdir)" \
282 --sysconfdir="${EPREFIX}/etc" \
283 "${@}"
284 }
285
286 python_install_all() {
287 distutils-r1_python_install_all
288
289 local targets=()
290 use doc && targets+=( install_docbook )
291 use epydoc && targets+=( install_epydoc )
292
293 # install docs
294 if [[ ${targets[@]} ]]; then
295 esetup.py "${targets[@]}"
296 fi
297
298 # Due to distutils/python-exec limitations
299 # these must be installed to /usr/bin.
300 local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld'
301 einfo "Moving admin scripts to the correct directory"
302 dodir /usr/sbin
303 for target in ${sbin_relocations}; do
304 einfo "Moving /usr/bin/${target} to /usr/sbin/${target}"
305 mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}"
306 done
307 }
308
309 pkg_preinst() {
310 # comment out sanity test until it is fixed to work
311 # with the new PORTAGE_PYM_PATH
312 #if [[ $ROOT == / ]] ; then
313 ## Run some minimal tests as a sanity check.
314 #local test_runner=$(find "${ED}" -name runTests)
315 #if [[ -n $test_runner && -x $test_runner ]] ; then
316 #einfo "Running preinst sanity tests..."
317 #"$test_runner" || die "preinst sanity tests failed"
318 #fi
319 #fi
320
321 # elog dir must exist to avoid logrotate error for bug #415911.
322 # This code runs in preinst in order to bypass the mapping of
323 # portage:portage to root:root which happens after src_install.
324 keepdir /var/log/portage/elog
325 # This is allowed to fail if the user/group are invalid for prefix users.
326 if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
327 chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
328 fi
329 }