1 |
commit: 8f57784b116192377ec948f400c5630022b5f55f |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 28 06:53:52 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 28 06:53:52 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f57784b |
7 |
|
8 |
sys-apps/portage: remove old versions |
9 |
|
10 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
11 |
|
12 |
sys-apps/portage/Manifest | 2 - |
13 |
sys-apps/portage/portage-2.3.41.ebuild | 284 ----------------------------- |
14 |
sys-apps/portage/portage-2.3.42-r1.ebuild | 288 ------------------------------ |
15 |
3 files changed, 574 deletions(-) |
16 |
|
17 |
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest |
18 |
index b3b8cf9dd41..d08b0e5f08d 100644 |
19 |
--- a/sys-apps/portage/Manifest |
20 |
+++ b/sys-apps/portage/Manifest |
21 |
@@ -4,7 +4,5 @@ DIST portage-2.3.24.tar.bz2 959266 BLAKE2B bc15f10599c694ad29f5a55264e929d0a04a9 |
22 |
DIST portage-2.3.40-bug-656942-bug-657436-937d0156aa06.patch 15214 BLAKE2B 0351f82cd46aa1523eb0f70109551009a422546f2fbde1beee7a18dad4ecbfc6465b3b3052a25720196950f7da81adeb66d87940f2b477fbeca27afba56fa18e SHA512 b0482b8dac8af97b841ded426001872c1c708f649dc7774bd3c7003179888fd4d126ece33d001d127b643d88b8a70b9af75bbeb36beeaca7b8ad308f92ff72e7 |
23 |
DIST portage-2.3.40-bug-657436-937d0156aa06-1fc628eead43.patch 4131 BLAKE2B 1b051097ef4fb073d22b9ef3472077b4845190ec3839886f462cacbee0996dc4c036549c4beab09025e1bb42f421e5032144e90197e3aa5de08dd7d8d1c50fbb SHA512 5910469816b69afb7a0078dd3b35a5304e2c806ac03ff3949603cf4162900fd9dd1df15661b91a2181528e8406679e525308822a0f6ddf4799c79fa9652c27a9 |
24 |
DIST portage-2.3.40.tar.bz2 995122 BLAKE2B 3bfadee6cf57dace32bb4a365850650e13664202f3b16bf75821ff6226e85da823785ac87875fa82bd5cf1b953d638773819495f73f471c06ffd6926518df1ac SHA512 ded128c1941664fab6bc95f05115ec08900fddaedd1b6f12afa48da024531ee8939134d49759e09995c76a95e41beafdbf5528a5b62d3bf21c826ab1ac0cd1c5 |
25 |
-DIST portage-2.3.41.tar.bz2 996250 BLAKE2B f76c9198b5a4f00a5d67c85613b182dcb30c8ff568cd74b798c230945294532ecac65a682e97b64da28dd297b6d985445b7f3999b84d5152e4241f22e8813330 SHA512 113113a982e346c31e65c326326913458229c05d443f531c1d1897a679dda143d80223cab8bfbe831f4d92b6db9d09fc451ae3c7753e4d73b33736cc4f34c5e9 |
26 |
-DIST portage-2.3.42.tar.bz2 998518 BLAKE2B 8943dcaf80b9bd566dcc9297e655a225cfafb0d316b17a82aeb25ea05f9cfeeda1ff6a78eb500f85057e98f936ae923200112f3dca920325182e793b4bde74be SHA512 406776e7e026ed5f91c8f16b823a0f18d59deb864ac9e5f86447eba9785b33a91ffc737d9aec19ea764b3f1c32b15dad9c5bb7d35cbf0225c6ed9daa8a471d5f |
27 |
DIST portage-2.3.43.tar.bz2 998958 BLAKE2B 28874db4dc989e550aa4a54a91b8ad303f17b2444d6e23a539672c4742ec62c4228f6070f0d36a31b90d1d32998bc4825de706e5a6635bb7051e5b592f8e3eac SHA512 b8f3ab4f700cc72364b38153451a32a371d0b222feacfb206017be7182596cbc83b7e036025d07399e8b32cf3e3889dbc6ba8d26a64fbfc4253f1506da3c8252 |
28 |
DIST portage-2.3.8.tar.bz2 938062 BLAKE2B 3f7bedf6268131a3b3539d53c8a7bb069b533b3a78e5eec521b6201439c8ee5e66996e798fe295561d0a94bfcd32adf414d4f8b5e7a93035cea09749406e64a3 SHA512 4b4b2de20323799b9b0f7a8812f939aa9a96d2744a0f65ad5287ba49744c491b55169cdb21f2885317a6a7c960d2070775ffd798f247b44eebc677c33c271eb8 |
29 |
|
30 |
diff --git a/sys-apps/portage/portage-2.3.41.ebuild b/sys-apps/portage/portage-2.3.41.ebuild |
31 |
deleted file mode 100644 |
32 |
index 08db0a649a2..00000000000 |
33 |
--- a/sys-apps/portage/portage-2.3.41.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,284 +0,0 @@ |
36 |
-# Copyright 1999-2018 Gentoo Foundation |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=5 |
40 |
- |
41 |
-PYTHON_COMPAT=( |
42 |
- pypy |
43 |
- python3_4 python3_5 python3_6 |
44 |
- python2_7 |
45 |
-) |
46 |
-PYTHON_REQ_USE='bzip2(+),threads(+)' |
47 |
- |
48 |
-inherit distutils-r1 systemd |
49 |
- |
50 |
-DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
51 |
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
52 |
- |
53 |
-LICENSE="GPL-2" |
54 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd" |
55 |
-SLOT="0" |
56 |
-IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
57 |
- |
58 |
-DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
59 |
- >=app-arch/tar-1.27 |
60 |
- dev-lang/python-exec:2 |
61 |
- >=sys-apps/sed-4.0.5 sys-devel/patch |
62 |
- doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
63 |
- epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )" |
64 |
-# Require sandbox-2.2 for bug #288863. |
65 |
-# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
66 |
-# quite slow, so it's not considered in the dependencies as an alternative to |
67 |
-# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
68 |
-# for now, don't pull in xattr deps for other kernels. |
69 |
-# For whirlpool hash, require python[ssl] (bug #425046). |
70 |
-# For compgen, require bash[readline] (bug #445576). |
71 |
-# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
72 |
-# the executable. |
73 |
-RDEPEND=" |
74 |
- >=app-arch/tar-1.27 |
75 |
- dev-lang/python-exec:2 |
76 |
- !build? ( |
77 |
- >=sys-apps/sed-4.0.5 |
78 |
- app-shells/bash:0[readline] |
79 |
- >=app-admin/eselect-1.2 |
80 |
- $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
81 |
- python{2_7,3_4,3_5} pypy) |
82 |
- rsync-verify? ( |
83 |
- >=app-portage/gemato-12.1[${PYTHON_USEDEP}] |
84 |
- app-crypt/openpgp-keys-gentoo-release |
85 |
- >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
86 |
- ) |
87 |
- ) |
88 |
- elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
89 |
- elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
90 |
- elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
91 |
- elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
92 |
- >=app-misc/pax-utils-0.1.17 |
93 |
- selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
94 |
- xattr? ( kernel_linux? ( |
95 |
- >=sys-apps/install-xattr-0.3 |
96 |
- $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
97 |
- python2_7 pypy) |
98 |
- ) ) |
99 |
- !<app-admin/logrotate-3.8.0" |
100 |
-PDEPEND=" |
101 |
- !build? ( |
102 |
- >=net-misc/rsync-2.6.4 |
103 |
- userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
104 |
- )" |
105 |
-# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
106 |
-# NOTE: FEATURES=installsources requires debugedit and rsync |
107 |
- |
108 |
-REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
109 |
- |
110 |
-SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives" |
111 |
- |
112 |
-prefix_src_archives() { |
113 |
- local x y |
114 |
- for x in ${@}; do |
115 |
- for y in ${SRC_ARCHIVES}; do |
116 |
- echo ${y}/${x} |
117 |
- done |
118 |
- done |
119 |
-} |
120 |
- |
121 |
-TARBALL_PV=${PV} |
122 |
-SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
123 |
- $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
124 |
- |
125 |
-pkg_setup() { |
126 |
- use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
127 |
-} |
128 |
- |
129 |
-python_prepare_all() { |
130 |
- distutils-r1_python_prepare_all |
131 |
- |
132 |
- if use gentoo-dev; then |
133 |
- einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
134 |
- sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
135 |
- -i pym/_emerge/create_depgraph_params.py || \ |
136 |
- die "failed to patch create_depgraph_params.py" |
137 |
- |
138 |
- einfo "Enabling additional FEATURES for gentoo-dev..." |
139 |
- echo 'FEATURES="${FEATURES} ipc-sandbox network-sandbox strict-keepdir"' \ |
140 |
- >> cnf/make.globals || die |
141 |
- fi |
142 |
- |
143 |
- if use native-extensions; then |
144 |
- printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
145 |
- setup.cfg || die |
146 |
- fi |
147 |
- |
148 |
- if ! use ipc ; then |
149 |
- einfo "Disabling ipc..." |
150 |
- sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
151 |
- -i pym/_emerge/AbstractEbuildProcess.py || \ |
152 |
- die "failed to patch AbstractEbuildProcess.py" |
153 |
- fi |
154 |
- |
155 |
- if use xattr && use kernel_linux ; then |
156 |
- einfo "Adding FEATURES=xattr to make.globals ..." |
157 |
- echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
158 |
- || die "failed to append to make.globals" |
159 |
- fi |
160 |
- |
161 |
- if use build || ! use rsync-verify; then |
162 |
- sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
163 |
- -i cnf/repos.conf || die "sed failed" |
164 |
- fi |
165 |
- |
166 |
- if [[ -n ${EPREFIX} ]] ; then |
167 |
- einfo "Setting portage.const.EPREFIX ..." |
168 |
- sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
169 |
- -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
170 |
- -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
171 |
- -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
172 |
- -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
173 |
- -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
174 |
- -i pym/portage/const.py || \ |
175 |
- die "Failed to patch portage.const.EPREFIX" |
176 |
- |
177 |
- einfo "Prefixing shebangs ..." |
178 |
- while read -r -d $'\0' ; do |
179 |
- local shebang=$(head -n1 "$REPLY") |
180 |
- if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
181 |
- sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
182 |
- die "sed failed" |
183 |
- fi |
184 |
- done < <(find . -type f -print0) |
185 |
- |
186 |
- einfo "Adjusting make.globals ..." |
187 |
- sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ |
188 |
- -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ |
189 |
- -i cnf/make.globals || die "sed failed" |
190 |
- |
191 |
- einfo "Adjusting repos.conf ..." |
192 |
- sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ |
193 |
- -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \ |
194 |
- -i cnf/repos.conf || die "sed failed" |
195 |
- if use prefix-guest ; then |
196 |
- sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
197 |
- -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
198 |
- -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
199 |
- -i cnf/repos.conf || die "sed failed" |
200 |
- fi |
201 |
- |
202 |
- einfo "Adding FEATURES=force-prefix to make.globals ..." |
203 |
- echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
204 |
- || die "failed to append to make.globals" |
205 |
- fi |
206 |
- |
207 |
- cd "${S}/cnf" || die |
208 |
- if [ -f "make.conf.example.${ARCH}".diff ]; then |
209 |
- patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
210 |
- die "Failed to patch make.conf.example" |
211 |
- else |
212 |
- eerror "" |
213 |
- eerror "Portage does not have an arch-specific configuration for this arch." |
214 |
- eerror "Please notify the arch maintainer about this issue. Using generic." |
215 |
- eerror "" |
216 |
- fi |
217 |
-} |
218 |
- |
219 |
-python_compile_all() { |
220 |
- local targets=() |
221 |
- use doc && targets+=( docbook ) |
222 |
- use epydoc && targets+=( epydoc ) |
223 |
- |
224 |
- if [[ ${targets[@]} ]]; then |
225 |
- esetup.py "${targets[@]}" |
226 |
- fi |
227 |
-} |
228 |
- |
229 |
-python_test() { |
230 |
- esetup.py test |
231 |
-} |
232 |
- |
233 |
-python_install() { |
234 |
- # Install sbin scripts to bindir for python-exec linking |
235 |
- # they will be relocated in pkg_preinst() |
236 |
- distutils-r1_python_install \ |
237 |
- --system-prefix="${EPREFIX}/usr" \ |
238 |
- --bindir="$(python_get_scriptdir)" \ |
239 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
240 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
241 |
- --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
242 |
- --sbindir="$(python_get_scriptdir)" \ |
243 |
- --sysconfdir="${EPREFIX}/etc" \ |
244 |
- "${@}" |
245 |
-} |
246 |
- |
247 |
-python_install_all() { |
248 |
- distutils-r1_python_install_all |
249 |
- |
250 |
- local targets=() |
251 |
- use doc && targets+=( |
252 |
- install_docbook |
253 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
254 |
- ) |
255 |
- use epydoc && targets+=( |
256 |
- install_epydoc |
257 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
258 |
- ) |
259 |
- |
260 |
- # install docs |
261 |
- if [[ ${targets[@]} ]]; then |
262 |
- esetup.py "${targets[@]}" |
263 |
- fi |
264 |
- |
265 |
- systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
266 |
- |
267 |
- # Due to distutils/python-exec limitations |
268 |
- # these must be installed to /usr/bin. |
269 |
- local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
270 |
- einfo "Moving admin scripts to the correct directory" |
271 |
- dodir /usr/sbin |
272 |
- for target in ${sbin_relocations}; do |
273 |
- einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
274 |
- mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
275 |
- done |
276 |
-} |
277 |
- |
278 |
-pkg_preinst() { |
279 |
- # comment out sanity test until it is fixed to work |
280 |
- # with the new PORTAGE_PYM_PATH |
281 |
- #if [[ $ROOT == / ]] ; then |
282 |
- ## Run some minimal tests as a sanity check. |
283 |
- #local test_runner=$(find "${ED}" -name runTests) |
284 |
- #if [[ -n $test_runner && -x $test_runner ]] ; then |
285 |
- #einfo "Running preinst sanity tests..." |
286 |
- #"$test_runner" || die "preinst sanity tests failed" |
287 |
- #fi |
288 |
- #fi |
289 |
- |
290 |
- # elog dir must exist to avoid logrotate error for bug #415911. |
291 |
- # This code runs in preinst in order to bypass the mapping of |
292 |
- # portage:portage to root:root which happens after src_install. |
293 |
- keepdir /var/log/portage/elog |
294 |
- # This is allowed to fail if the user/group are invalid for prefix users. |
295 |
- if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
296 |
- chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
297 |
- fi |
298 |
- |
299 |
- if has_version ">=${CATEGORY}/${PN}-2.3.1" && \ |
300 |
- has_version "<${CATEGORY}/${PN}-2.3.3"; then |
301 |
- SYNC_DEPTH_UPGRADE=true |
302 |
- else |
303 |
- SYNC_DEPTH_UPGRADE=false |
304 |
- fi |
305 |
-} |
306 |
- |
307 |
-pkg_postinst() { |
308 |
- if ${SYNC_DEPTH_UPGRADE}; then |
309 |
- ewarn "Please note that this release no longer respects sync-depth for" |
310 |
- ewarn "git repositories. There have been too many problems and" |
311 |
- ewarn "performance issues. See bugs 552814, 559008" |
312 |
- fi |
313 |
- einfo "" |
314 |
- einfo "This release of portage NO LONGER contains the repoman code base." |
315 |
- einfo "Repoman has its own ebuild and release package." |
316 |
- einfo "For repoman functionality please emerge app-portage/repoman" |
317 |
- einfo "Please report any bugs you may encounter." |
318 |
- einfo "" |
319 |
-} |
320 |
|
321 |
diff --git a/sys-apps/portage/portage-2.3.42-r1.ebuild b/sys-apps/portage/portage-2.3.42-r1.ebuild |
322 |
deleted file mode 100644 |
323 |
index cc042b0b156..00000000000 |
324 |
--- a/sys-apps/portage/portage-2.3.42-r1.ebuild |
325 |
+++ /dev/null |
326 |
@@ -1,288 +0,0 @@ |
327 |
-# Copyright 1999-2018 Gentoo Foundation |
328 |
-# Distributed under the terms of the GNU General Public License v2 |
329 |
- |
330 |
-EAPI=5 |
331 |
- |
332 |
-PYTHON_COMPAT=( |
333 |
- pypy |
334 |
- python3_4 python3_5 python3_6 |
335 |
- python2_7 |
336 |
-) |
337 |
-PYTHON_REQ_USE='bzip2(+),threads(+)' |
338 |
- |
339 |
-inherit distutils-r1 systemd |
340 |
- |
341 |
-DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
342 |
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
343 |
- |
344 |
-LICENSE="GPL-2" |
345 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd" |
346 |
-SLOT="0" |
347 |
-IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
348 |
- |
349 |
-DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
350 |
- >=app-arch/tar-1.27 |
351 |
- dev-lang/python-exec:2 |
352 |
- >=sys-apps/sed-4.0.5 sys-devel/patch |
353 |
- doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
354 |
- epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )" |
355 |
-# Require sandbox-2.2 for bug #288863. |
356 |
-# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
357 |
-# quite slow, so it's not considered in the dependencies as an alternative to |
358 |
-# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
359 |
-# for now, don't pull in xattr deps for other kernels. |
360 |
-# For whirlpool hash, require python[ssl] (bug #425046). |
361 |
-# For compgen, require bash[readline] (bug #445576). |
362 |
-# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
363 |
-# the executable. |
364 |
-RDEPEND=" |
365 |
- >=app-arch/tar-1.27 |
366 |
- dev-lang/python-exec:2 |
367 |
- !build? ( |
368 |
- >=sys-apps/sed-4.0.5 |
369 |
- app-shells/bash:0[readline] |
370 |
- >=app-admin/eselect-1.2 |
371 |
- $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
372 |
- python{2_7,3_4,3_5} pypy) |
373 |
- rsync-verify? ( |
374 |
- >=app-portage/gemato-12.1[${PYTHON_USEDEP}] |
375 |
- app-crypt/openpgp-keys-gentoo-release |
376 |
- >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
377 |
- ) |
378 |
- ) |
379 |
- elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
380 |
- elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
381 |
- elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
382 |
- elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
383 |
- >=app-misc/pax-utils-0.1.17 |
384 |
- selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
385 |
- xattr? ( kernel_linux? ( |
386 |
- >=sys-apps/install-xattr-0.3 |
387 |
- $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
388 |
- python2_7 pypy) |
389 |
- ) ) |
390 |
- !<app-admin/logrotate-3.8.0" |
391 |
-PDEPEND=" |
392 |
- !build? ( |
393 |
- >=net-misc/rsync-2.6.4 |
394 |
- userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
395 |
- )" |
396 |
-# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
397 |
-# NOTE: FEATURES=installsources requires debugedit and rsync |
398 |
- |
399 |
-REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
400 |
- |
401 |
-SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives" |
402 |
- |
403 |
-prefix_src_archives() { |
404 |
- local x y |
405 |
- for x in ${@}; do |
406 |
- for y in ${SRC_ARCHIVES}; do |
407 |
- echo ${y}/${x} |
408 |
- done |
409 |
- done |
410 |
-} |
411 |
- |
412 |
-TARBALL_PV=${PV} |
413 |
-SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
414 |
- $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
415 |
- |
416 |
-pkg_setup() { |
417 |
- use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
418 |
-} |
419 |
- |
420 |
-python_prepare_all() { |
421 |
- distutils-r1_python_prepare_all |
422 |
- |
423 |
- # Apply 36dca004be44 so that sync-allow-hardlinks can |
424 |
- # be set in the DEFAULT section. |
425 |
- sed -e 's:^sync-allow-hardlinks:#\0:' -i cnf/repos.conf || die |
426 |
- |
427 |
- if use gentoo-dev; then |
428 |
- einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
429 |
- sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
430 |
- -i pym/_emerge/create_depgraph_params.py || \ |
431 |
- die "failed to patch create_depgraph_params.py" |
432 |
- |
433 |
- einfo "Enabling additional FEATURES for gentoo-dev..." |
434 |
- echo 'FEATURES="${FEATURES} ipc-sandbox network-sandbox strict-keepdir"' \ |
435 |
- >> cnf/make.globals || die |
436 |
- fi |
437 |
- |
438 |
- if use native-extensions; then |
439 |
- printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
440 |
- setup.cfg || die |
441 |
- fi |
442 |
- |
443 |
- if ! use ipc ; then |
444 |
- einfo "Disabling ipc..." |
445 |
- sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
446 |
- -i pym/_emerge/AbstractEbuildProcess.py || \ |
447 |
- die "failed to patch AbstractEbuildProcess.py" |
448 |
- fi |
449 |
- |
450 |
- if use xattr && use kernel_linux ; then |
451 |
- einfo "Adding FEATURES=xattr to make.globals ..." |
452 |
- echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
453 |
- || die "failed to append to make.globals" |
454 |
- fi |
455 |
- |
456 |
- if use build || ! use rsync-verify; then |
457 |
- sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
458 |
- -i cnf/repos.conf || die "sed failed" |
459 |
- fi |
460 |
- |
461 |
- if [[ -n ${EPREFIX} ]] ; then |
462 |
- einfo "Setting portage.const.EPREFIX ..." |
463 |
- sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
464 |
- -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
465 |
- -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
466 |
- -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
467 |
- -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
468 |
- -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
469 |
- -i pym/portage/const.py || \ |
470 |
- die "Failed to patch portage.const.EPREFIX" |
471 |
- |
472 |
- einfo "Prefixing shebangs ..." |
473 |
- while read -r -d $'\0' ; do |
474 |
- local shebang=$(head -n1 "$REPLY") |
475 |
- if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
476 |
- sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
477 |
- die "sed failed" |
478 |
- fi |
479 |
- done < <(find . -type f -print0) |
480 |
- |
481 |
- einfo "Adjusting make.globals ..." |
482 |
- sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ |
483 |
- -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ |
484 |
- -i cnf/make.globals || die "sed failed" |
485 |
- |
486 |
- einfo "Adjusting repos.conf ..." |
487 |
- sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ |
488 |
- -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \ |
489 |
- -i cnf/repos.conf || die "sed failed" |
490 |
- if use prefix-guest ; then |
491 |
- sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
492 |
- -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
493 |
- -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
494 |
- -i cnf/repos.conf || die "sed failed" |
495 |
- fi |
496 |
- |
497 |
- einfo "Adding FEATURES=force-prefix to make.globals ..." |
498 |
- echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
499 |
- || die "failed to append to make.globals" |
500 |
- fi |
501 |
- |
502 |
- cd "${S}/cnf" || die |
503 |
- if [ -f "make.conf.example.${ARCH}".diff ]; then |
504 |
- patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
505 |
- die "Failed to patch make.conf.example" |
506 |
- else |
507 |
- eerror "" |
508 |
- eerror "Portage does not have an arch-specific configuration for this arch." |
509 |
- eerror "Please notify the arch maintainer about this issue. Using generic." |
510 |
- eerror "" |
511 |
- fi |
512 |
-} |
513 |
- |
514 |
-python_compile_all() { |
515 |
- local targets=() |
516 |
- use doc && targets+=( docbook ) |
517 |
- use epydoc && targets+=( epydoc ) |
518 |
- |
519 |
- if [[ ${targets[@]} ]]; then |
520 |
- esetup.py "${targets[@]}" |
521 |
- fi |
522 |
-} |
523 |
- |
524 |
-python_test() { |
525 |
- esetup.py test |
526 |
-} |
527 |
- |
528 |
-python_install() { |
529 |
- # Install sbin scripts to bindir for python-exec linking |
530 |
- # they will be relocated in pkg_preinst() |
531 |
- distutils-r1_python_install \ |
532 |
- --system-prefix="${EPREFIX}/usr" \ |
533 |
- --bindir="$(python_get_scriptdir)" \ |
534 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
535 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
536 |
- --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
537 |
- --sbindir="$(python_get_scriptdir)" \ |
538 |
- --sysconfdir="${EPREFIX}/etc" \ |
539 |
- "${@}" |
540 |
-} |
541 |
- |
542 |
-python_install_all() { |
543 |
- distutils-r1_python_install_all |
544 |
- |
545 |
- local targets=() |
546 |
- use doc && targets+=( |
547 |
- install_docbook |
548 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
549 |
- ) |
550 |
- use epydoc && targets+=( |
551 |
- install_epydoc |
552 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
553 |
- ) |
554 |
- |
555 |
- # install docs |
556 |
- if [[ ${targets[@]} ]]; then |
557 |
- esetup.py "${targets[@]}" |
558 |
- fi |
559 |
- |
560 |
- systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
561 |
- |
562 |
- # Due to distutils/python-exec limitations |
563 |
- # these must be installed to /usr/bin. |
564 |
- local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
565 |
- einfo "Moving admin scripts to the correct directory" |
566 |
- dodir /usr/sbin |
567 |
- for target in ${sbin_relocations}; do |
568 |
- einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
569 |
- mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
570 |
- done |
571 |
-} |
572 |
- |
573 |
-pkg_preinst() { |
574 |
- # comment out sanity test until it is fixed to work |
575 |
- # with the new PORTAGE_PYM_PATH |
576 |
- #if [[ $ROOT == / ]] ; then |
577 |
- ## Run some minimal tests as a sanity check. |
578 |
- #local test_runner=$(find "${ED}" -name runTests) |
579 |
- #if [[ -n $test_runner && -x $test_runner ]] ; then |
580 |
- #einfo "Running preinst sanity tests..." |
581 |
- #"$test_runner" || die "preinst sanity tests failed" |
582 |
- #fi |
583 |
- #fi |
584 |
- |
585 |
- # elog dir must exist to avoid logrotate error for bug #415911. |
586 |
- # This code runs in preinst in order to bypass the mapping of |
587 |
- # portage:portage to root:root which happens after src_install. |
588 |
- keepdir /var/log/portage/elog |
589 |
- # This is allowed to fail if the user/group are invalid for prefix users. |
590 |
- if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
591 |
- chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
592 |
- fi |
593 |
- |
594 |
- if has_version ">=${CATEGORY}/${PN}-2.3.1" && \ |
595 |
- has_version "<${CATEGORY}/${PN}-2.3.3"; then |
596 |
- SYNC_DEPTH_UPGRADE=true |
597 |
- else |
598 |
- SYNC_DEPTH_UPGRADE=false |
599 |
- fi |
600 |
-} |
601 |
- |
602 |
-pkg_postinst() { |
603 |
- if ${SYNC_DEPTH_UPGRADE}; then |
604 |
- ewarn "Please note that this release no longer respects sync-depth for" |
605 |
- ewarn "git repositories. There have been too many problems and" |
606 |
- ewarn "performance issues. See bugs 552814, 559008" |
607 |
- fi |
608 |
- einfo "" |
609 |
- einfo "This release of portage NO LONGER contains the repoman code base." |
610 |
- einfo "Repoman has its own ebuild and release package." |
611 |
- einfo "For repoman functionality please emerge app-portage/repoman" |
612 |
- einfo "Please report any bugs you may encounter." |
613 |
- einfo "" |
614 |
-} |