1 |
commit: e3844298086242c58e577d53c9a513b4e80b6bbb |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 1 18:07:28 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 1 18:07:28 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3844298 |
7 |
|
8 |
sys-apps/portage: remove old versions |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
sys-apps/portage/Manifest | 3 - |
13 |
sys-apps/portage/portage-2.3.31.ebuild | 284 --------------------------------- |
14 |
sys-apps/portage/portage-2.3.36.ebuild | 284 --------------------------------- |
15 |
sys-apps/portage/portage-2.3.38.ebuild | 284 --------------------------------- |
16 |
4 files changed, 855 deletions(-) |
17 |
|
18 |
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest |
19 |
index 6e289f9447e..40f922cc43b 100644 |
20 |
--- a/sys-apps/portage/Manifest |
21 |
+++ b/sys-apps/portage/Manifest |
22 |
@@ -1,8 +1,5 @@ |
23 |
DIST portage-2.3.13.tar.bz2 945477 BLAKE2B 0ad44859f04db529713cc80a51e6dadc767ed6b6d0aef1d070650d82133c05e161eaa9fd1e208b3078c513ccf6f73136b8bf865542f0dc9396de9142bad1d32c SHA512 71d9ea6c9a889572f60e7e501e9f8739db588cffd98a431303906eb90c1f7bb85c55f6779cbfb921630149d1b3174539fe2357fbeffbbe9857998907e3215ad3 |
24 |
DIST portage-2.3.19.tar.bz2 954921 BLAKE2B e1bb3606ff2c5ba7b2123c61469b99f4d5d89f534a9af26065ac03bb2accd00cd363e4027e33546fc9b6d01b2fb65ca0d4311c6e2e8cc518c09030c979a69240 SHA512 94899bdfa4d22c846234bd28d4744613202cf67d3f32c242cb7fb60b17419419a2a29912e584ade7df52fba4c6a58774c5859148352221c978f34b4e7680981d |
25 |
DIST portage-2.3.24.tar.bz2 959266 BLAKE2B bc15f10599c694ad29f5a55264e929d0a04a9c5211e9cafd4f1a35de1d77e655d99df0ceb352fd431a8cefd40c733064422d8f41099edf7263aa36ef8cfd2ba8 SHA512 fca250d4afc1819a27b67daff770132ed4e88fb067038992a6b3f8aac63604536366ea628dd30c24f93db19ae55e88da372598ccc489bcf445038dfe860ce0ec |
26 |
-DIST portage-2.3.31.tar.bz2 986684 BLAKE2B dc2a6e7da211da98320b872b26af46138791e2600d261fbff21823576804ea04dc77bc69c5f64d94a9bc3d0ec9cba0630b9093c12c426ae0561471092c837080 SHA512 7cca6aa6e8e6ce7ee3902686b437ea09c398630f46926d568a35f94b95be3c6ecc53a4ab6ee99d52c04755d5144900cc3aa84be24a49533518f8c50a9301ffb8 |
27 |
-DIST portage-2.3.36.tar.bz2 992242 BLAKE2B 44b414495ab156214bfd27d10894a6b1ae020f503639f41d408670b440b5e389bd56c801138907992982db8964aaa2664e9f7f0aa99647d4eab1aa81167157ba SHA512 765bb60fce2b6b84c5fde7b19c5abeeed0ba8036ea311c7f57dfcb2ed11395cafe7bdd07a2b46adce95792f4bf9f5401643e88780c90e792a8a4e4d1f2886167 |
28 |
-DIST portage-2.3.38.tar.bz2 993841 BLAKE2B a473d905a3caae4fc9e45486c4cbf75b10de396b40b4f84aef9012da12dab78ad14f8645bbb71adf058159dca6dacba7314d44664826c8402904d0e0e4c55e52 SHA512 e9fbfdcb5c3f4f8c001d0cd16e62c0cc7c23b92f9abca1b26f4c9e95b547e78cf126a9a7807b70beb9014514c1d32bd277bea9d0b91a7c912785b4178f77dede |
29 |
DIST portage-2.3.40.tar.bz2 995122 BLAKE2B 3bfadee6cf57dace32bb4a365850650e13664202f3b16bf75821ff6226e85da823785ac87875fa82bd5cf1b953d638773819495f73f471c06ffd6926518df1ac SHA512 ded128c1941664fab6bc95f05115ec08900fddaedd1b6f12afa48da024531ee8939134d49759e09995c76a95e41beafdbf5528a5b62d3bf21c826ab1ac0cd1c5 |
30 |
DIST portage-2.3.8.tar.bz2 938062 BLAKE2B 3f7bedf6268131a3b3539d53c8a7bb069b533b3a78e5eec521b6201439c8ee5e66996e798fe295561d0a94bfcd32adf414d4f8b5e7a93035cea09749406e64a3 SHA512 4b4b2de20323799b9b0f7a8812f939aa9a96d2744a0f65ad5287ba49744c491b55169cdb21f2885317a6a7c960d2070775ffd798f247b44eebc677c33c271eb8 |
31 |
|
32 |
diff --git a/sys-apps/portage/portage-2.3.31.ebuild b/sys-apps/portage/portage-2.3.31.ebuild |
33 |
deleted file mode 100644 |
34 |
index accf849fff4..00000000000 |
35 |
--- a/sys-apps/portage/portage-2.3.31.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,284 +0,0 @@ |
38 |
-# Copyright 1999-2018 Gentoo Foundation |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
- |
41 |
-EAPI=5 |
42 |
- |
43 |
-PYTHON_COMPAT=( |
44 |
- pypy |
45 |
- python3_4 python3_5 python3_6 |
46 |
- python2_7 |
47 |
-) |
48 |
-PYTHON_REQ_USE='bzip2(+),threads(+)' |
49 |
- |
50 |
-inherit distutils-r1 systemd |
51 |
- |
52 |
-DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
53 |
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
54 |
- |
55 |
-LICENSE="GPL-2" |
56 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd" |
57 |
-SLOT="0" |
58 |
-IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
59 |
- |
60 |
-DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
61 |
- >=app-arch/tar-1.27 |
62 |
- dev-lang/python-exec:2 |
63 |
- >=sys-apps/sed-4.0.5 sys-devel/patch |
64 |
- doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
65 |
- epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )" |
66 |
-# Require sandbox-2.2 for bug #288863. |
67 |
-# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
68 |
-# quite slow, so it's not considered in the dependencies as an alternative to |
69 |
-# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
70 |
-# for now, don't pull in xattr deps for other kernels. |
71 |
-# For whirlpool hash, require python[ssl] (bug #425046). |
72 |
-# For compgen, require bash[readline] (bug #445576). |
73 |
-# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
74 |
-# the executable. |
75 |
-RDEPEND=" |
76 |
- >=app-arch/tar-1.27 |
77 |
- dev-lang/python-exec:2 |
78 |
- !build? ( |
79 |
- >=sys-apps/sed-4.0.5 |
80 |
- app-shells/bash:0[readline] |
81 |
- >=app-admin/eselect-1.2 |
82 |
- $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
83 |
- python{2_7,3_4,3_5} pypy) |
84 |
- rsync-verify? ( |
85 |
- >=app-portage/gemato-12.1[${PYTHON_USEDEP}] |
86 |
- app-crypt/gentoo-keys |
87 |
- >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
88 |
- ) |
89 |
- ) |
90 |
- elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
91 |
- elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
92 |
- elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
93 |
- elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
94 |
- >=app-misc/pax-utils-0.1.17 |
95 |
- selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
96 |
- xattr? ( kernel_linux? ( |
97 |
- >=sys-apps/install-xattr-0.3 |
98 |
- $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
99 |
- python2_7 pypy) |
100 |
- ) ) |
101 |
- !<app-admin/logrotate-3.8.0" |
102 |
-PDEPEND=" |
103 |
- !build? ( |
104 |
- >=net-misc/rsync-2.6.4 |
105 |
- userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
106 |
- )" |
107 |
-# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
108 |
-# NOTE: FEATURES=installsources requires debugedit and rsync |
109 |
- |
110 |
-REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
111 |
- |
112 |
-SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives" |
113 |
- |
114 |
-prefix_src_archives() { |
115 |
- local x y |
116 |
- for x in ${@}; do |
117 |
- for y in ${SRC_ARCHIVES}; do |
118 |
- echo ${y}/${x} |
119 |
- done |
120 |
- done |
121 |
-} |
122 |
- |
123 |
-TARBALL_PV=${PV} |
124 |
-SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
125 |
- $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
126 |
- |
127 |
-pkg_setup() { |
128 |
- use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
129 |
-} |
130 |
- |
131 |
-python_prepare_all() { |
132 |
- distutils-r1_python_prepare_all |
133 |
- |
134 |
- if use gentoo-dev; then |
135 |
- einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
136 |
- sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
137 |
- -i pym/_emerge/create_depgraph_params.py || \ |
138 |
- die "failed to patch create_depgraph_params.py" |
139 |
- |
140 |
- einfo "Enabling additional FEATURES for gentoo-dev..." |
141 |
- echo 'FEATURES="${FEATURES} ipc-sandbox network-sandbox strict-keepdir"' \ |
142 |
- >> cnf/make.globals || die |
143 |
- fi |
144 |
- |
145 |
- if use native-extensions; then |
146 |
- printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
147 |
- setup.cfg || die |
148 |
- fi |
149 |
- |
150 |
- if ! use ipc ; then |
151 |
- einfo "Disabling ipc..." |
152 |
- sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
153 |
- -i pym/_emerge/AbstractEbuildProcess.py || \ |
154 |
- die "failed to patch AbstractEbuildProcess.py" |
155 |
- fi |
156 |
- |
157 |
- if use xattr && use kernel_linux ; then |
158 |
- einfo "Adding FEATURES=xattr to make.globals ..." |
159 |
- echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
160 |
- || die "failed to append to make.globals" |
161 |
- fi |
162 |
- |
163 |
- if use build || ! use rsync-verify; then |
164 |
- sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
165 |
- -i cnf/repos.conf || die "sed failed" |
166 |
- fi |
167 |
- |
168 |
- if [[ -n ${EPREFIX} ]] ; then |
169 |
- einfo "Setting portage.const.EPREFIX ..." |
170 |
- sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
171 |
- -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
172 |
- -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
173 |
- -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
174 |
- -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
175 |
- -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
176 |
- -i pym/portage/const.py || \ |
177 |
- die "Failed to patch portage.const.EPREFIX" |
178 |
- |
179 |
- einfo "Prefixing shebangs ..." |
180 |
- while read -r -d $'\0' ; do |
181 |
- local shebang=$(head -n1 "$REPLY") |
182 |
- if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
183 |
- sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
184 |
- die "sed failed" |
185 |
- fi |
186 |
- done < <(find . -type f -print0) |
187 |
- |
188 |
- einfo "Adjusting make.globals ..." |
189 |
- sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ |
190 |
- -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ |
191 |
- -i cnf/make.globals || die "sed failed" |
192 |
- |
193 |
- einfo "Adjusting repos.conf ..." |
194 |
- sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ |
195 |
- -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \ |
196 |
- -i cnf/repos.conf || die "sed failed" |
197 |
- if use prefix-guest ; then |
198 |
- sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
199 |
- -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
200 |
- -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
201 |
- -i cnf/repos.conf || die "sed failed" |
202 |
- fi |
203 |
- |
204 |
- einfo "Adding FEATURES=force-prefix to make.globals ..." |
205 |
- echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
206 |
- || die "failed to append to make.globals" |
207 |
- fi |
208 |
- |
209 |
- cd "${S}/cnf" || die |
210 |
- if [ -f "make.conf.example.${ARCH}".diff ]; then |
211 |
- patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
212 |
- die "Failed to patch make.conf.example" |
213 |
- else |
214 |
- eerror "" |
215 |
- eerror "Portage does not have an arch-specific configuration for this arch." |
216 |
- eerror "Please notify the arch maintainer about this issue. Using generic." |
217 |
- eerror "" |
218 |
- fi |
219 |
-} |
220 |
- |
221 |
-python_compile_all() { |
222 |
- local targets=() |
223 |
- use doc && targets+=( docbook ) |
224 |
- use epydoc && targets+=( epydoc ) |
225 |
- |
226 |
- if [[ ${targets[@]} ]]; then |
227 |
- esetup.py "${targets[@]}" |
228 |
- fi |
229 |
-} |
230 |
- |
231 |
-python_test() { |
232 |
- esetup.py test |
233 |
-} |
234 |
- |
235 |
-python_install() { |
236 |
- # Install sbin scripts to bindir for python-exec linking |
237 |
- # they will be relocated in pkg_preinst() |
238 |
- distutils-r1_python_install \ |
239 |
- --system-prefix="${EPREFIX}/usr" \ |
240 |
- --bindir="$(python_get_scriptdir)" \ |
241 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
242 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
243 |
- --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
244 |
- --sbindir="$(python_get_scriptdir)" \ |
245 |
- --sysconfdir="${EPREFIX}/etc" \ |
246 |
- "${@}" |
247 |
-} |
248 |
- |
249 |
-python_install_all() { |
250 |
- distutils-r1_python_install_all |
251 |
- |
252 |
- local targets=() |
253 |
- use doc && targets+=( |
254 |
- install_docbook |
255 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
256 |
- ) |
257 |
- use epydoc && targets+=( |
258 |
- install_epydoc |
259 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
260 |
- ) |
261 |
- |
262 |
- # install docs |
263 |
- if [[ ${targets[@]} ]]; then |
264 |
- esetup.py "${targets[@]}" |
265 |
- fi |
266 |
- |
267 |
- systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
268 |
- |
269 |
- # Due to distutils/python-exec limitations |
270 |
- # these must be installed to /usr/bin. |
271 |
- local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
272 |
- einfo "Moving admin scripts to the correct directory" |
273 |
- dodir /usr/sbin |
274 |
- for target in ${sbin_relocations}; do |
275 |
- einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
276 |
- mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
277 |
- done |
278 |
-} |
279 |
- |
280 |
-pkg_preinst() { |
281 |
- # comment out sanity test until it is fixed to work |
282 |
- # with the new PORTAGE_PYM_PATH |
283 |
- #if [[ $ROOT == / ]] ; then |
284 |
- ## Run some minimal tests as a sanity check. |
285 |
- #local test_runner=$(find "${ED}" -name runTests) |
286 |
- #if [[ -n $test_runner && -x $test_runner ]] ; then |
287 |
- #einfo "Running preinst sanity tests..." |
288 |
- #"$test_runner" || die "preinst sanity tests failed" |
289 |
- #fi |
290 |
- #fi |
291 |
- |
292 |
- # elog dir must exist to avoid logrotate error for bug #415911. |
293 |
- # This code runs in preinst in order to bypass the mapping of |
294 |
- # portage:portage to root:root which happens after src_install. |
295 |
- keepdir /var/log/portage/elog |
296 |
- # This is allowed to fail if the user/group are invalid for prefix users. |
297 |
- if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
298 |
- chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
299 |
- fi |
300 |
- |
301 |
- if has_version ">=${CATEGORY}/${PN}-2.3.1" && \ |
302 |
- has_version "<${CATEGORY}/${PN}-2.3.3"; then |
303 |
- SYNC_DEPTH_UPGRADE=true |
304 |
- else |
305 |
- SYNC_DEPTH_UPGRADE=false |
306 |
- fi |
307 |
-} |
308 |
- |
309 |
-pkg_postinst() { |
310 |
- if ${SYNC_DEPTH_UPGRADE}; then |
311 |
- ewarn "Please note that this release no longer respects sync-depth for" |
312 |
- ewarn "git repositories. There have been too many problems and" |
313 |
- ewarn "performance issues. See bugs 552814, 559008" |
314 |
- fi |
315 |
- einfo "" |
316 |
- einfo "This release of portage NO LONGER contains the repoman code base." |
317 |
- einfo "Repoman has its own ebuild and release package." |
318 |
- einfo "For repoman functionality please emerge app-portage/repoman" |
319 |
- einfo "Please report any bugs you may encounter." |
320 |
- einfo "" |
321 |
-} |
322 |
|
323 |
diff --git a/sys-apps/portage/portage-2.3.36.ebuild b/sys-apps/portage/portage-2.3.36.ebuild |
324 |
deleted file mode 100644 |
325 |
index accf849fff4..00000000000 |
326 |
--- a/sys-apps/portage/portage-2.3.36.ebuild |
327 |
+++ /dev/null |
328 |
@@ -1,284 +0,0 @@ |
329 |
-# Copyright 1999-2018 Gentoo Foundation |
330 |
-# Distributed under the terms of the GNU General Public License v2 |
331 |
- |
332 |
-EAPI=5 |
333 |
- |
334 |
-PYTHON_COMPAT=( |
335 |
- pypy |
336 |
- python3_4 python3_5 python3_6 |
337 |
- python2_7 |
338 |
-) |
339 |
-PYTHON_REQ_USE='bzip2(+),threads(+)' |
340 |
- |
341 |
-inherit distutils-r1 systemd |
342 |
- |
343 |
-DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
344 |
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
345 |
- |
346 |
-LICENSE="GPL-2" |
347 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd" |
348 |
-SLOT="0" |
349 |
-IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
350 |
- |
351 |
-DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
352 |
- >=app-arch/tar-1.27 |
353 |
- dev-lang/python-exec:2 |
354 |
- >=sys-apps/sed-4.0.5 sys-devel/patch |
355 |
- doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
356 |
- epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )" |
357 |
-# Require sandbox-2.2 for bug #288863. |
358 |
-# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
359 |
-# quite slow, so it's not considered in the dependencies as an alternative to |
360 |
-# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
361 |
-# for now, don't pull in xattr deps for other kernels. |
362 |
-# For whirlpool hash, require python[ssl] (bug #425046). |
363 |
-# For compgen, require bash[readline] (bug #445576). |
364 |
-# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
365 |
-# the executable. |
366 |
-RDEPEND=" |
367 |
- >=app-arch/tar-1.27 |
368 |
- dev-lang/python-exec:2 |
369 |
- !build? ( |
370 |
- >=sys-apps/sed-4.0.5 |
371 |
- app-shells/bash:0[readline] |
372 |
- >=app-admin/eselect-1.2 |
373 |
- $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
374 |
- python{2_7,3_4,3_5} pypy) |
375 |
- rsync-verify? ( |
376 |
- >=app-portage/gemato-12.1[${PYTHON_USEDEP}] |
377 |
- app-crypt/gentoo-keys |
378 |
- >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
379 |
- ) |
380 |
- ) |
381 |
- elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
382 |
- elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
383 |
- elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
384 |
- elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
385 |
- >=app-misc/pax-utils-0.1.17 |
386 |
- selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
387 |
- xattr? ( kernel_linux? ( |
388 |
- >=sys-apps/install-xattr-0.3 |
389 |
- $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
390 |
- python2_7 pypy) |
391 |
- ) ) |
392 |
- !<app-admin/logrotate-3.8.0" |
393 |
-PDEPEND=" |
394 |
- !build? ( |
395 |
- >=net-misc/rsync-2.6.4 |
396 |
- userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
397 |
- )" |
398 |
-# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
399 |
-# NOTE: FEATURES=installsources requires debugedit and rsync |
400 |
- |
401 |
-REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
402 |
- |
403 |
-SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives" |
404 |
- |
405 |
-prefix_src_archives() { |
406 |
- local x y |
407 |
- for x in ${@}; do |
408 |
- for y in ${SRC_ARCHIVES}; do |
409 |
- echo ${y}/${x} |
410 |
- done |
411 |
- done |
412 |
-} |
413 |
- |
414 |
-TARBALL_PV=${PV} |
415 |
-SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
416 |
- $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
417 |
- |
418 |
-pkg_setup() { |
419 |
- use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
420 |
-} |
421 |
- |
422 |
-python_prepare_all() { |
423 |
- distutils-r1_python_prepare_all |
424 |
- |
425 |
- if use gentoo-dev; then |
426 |
- einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
427 |
- sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
428 |
- -i pym/_emerge/create_depgraph_params.py || \ |
429 |
- die "failed to patch create_depgraph_params.py" |
430 |
- |
431 |
- einfo "Enabling additional FEATURES for gentoo-dev..." |
432 |
- echo 'FEATURES="${FEATURES} ipc-sandbox network-sandbox strict-keepdir"' \ |
433 |
- >> cnf/make.globals || die |
434 |
- fi |
435 |
- |
436 |
- if use native-extensions; then |
437 |
- printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
438 |
- setup.cfg || die |
439 |
- fi |
440 |
- |
441 |
- if ! use ipc ; then |
442 |
- einfo "Disabling ipc..." |
443 |
- sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
444 |
- -i pym/_emerge/AbstractEbuildProcess.py || \ |
445 |
- die "failed to patch AbstractEbuildProcess.py" |
446 |
- fi |
447 |
- |
448 |
- if use xattr && use kernel_linux ; then |
449 |
- einfo "Adding FEATURES=xattr to make.globals ..." |
450 |
- echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
451 |
- || die "failed to append to make.globals" |
452 |
- fi |
453 |
- |
454 |
- if use build || ! use rsync-verify; then |
455 |
- sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
456 |
- -i cnf/repos.conf || die "sed failed" |
457 |
- fi |
458 |
- |
459 |
- if [[ -n ${EPREFIX} ]] ; then |
460 |
- einfo "Setting portage.const.EPREFIX ..." |
461 |
- sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
462 |
- -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
463 |
- -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
464 |
- -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
465 |
- -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
466 |
- -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
467 |
- -i pym/portage/const.py || \ |
468 |
- die "Failed to patch portage.const.EPREFIX" |
469 |
- |
470 |
- einfo "Prefixing shebangs ..." |
471 |
- while read -r -d $'\0' ; do |
472 |
- local shebang=$(head -n1 "$REPLY") |
473 |
- if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
474 |
- sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
475 |
- die "sed failed" |
476 |
- fi |
477 |
- done < <(find . -type f -print0) |
478 |
- |
479 |
- einfo "Adjusting make.globals ..." |
480 |
- sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ |
481 |
- -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ |
482 |
- -i cnf/make.globals || die "sed failed" |
483 |
- |
484 |
- einfo "Adjusting repos.conf ..." |
485 |
- sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ |
486 |
- -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \ |
487 |
- -i cnf/repos.conf || die "sed failed" |
488 |
- if use prefix-guest ; then |
489 |
- sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
490 |
- -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
491 |
- -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
492 |
- -i cnf/repos.conf || die "sed failed" |
493 |
- fi |
494 |
- |
495 |
- einfo "Adding FEATURES=force-prefix to make.globals ..." |
496 |
- echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
497 |
- || die "failed to append to make.globals" |
498 |
- fi |
499 |
- |
500 |
- cd "${S}/cnf" || die |
501 |
- if [ -f "make.conf.example.${ARCH}".diff ]; then |
502 |
- patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
503 |
- die "Failed to patch make.conf.example" |
504 |
- else |
505 |
- eerror "" |
506 |
- eerror "Portage does not have an arch-specific configuration for this arch." |
507 |
- eerror "Please notify the arch maintainer about this issue. Using generic." |
508 |
- eerror "" |
509 |
- fi |
510 |
-} |
511 |
- |
512 |
-python_compile_all() { |
513 |
- local targets=() |
514 |
- use doc && targets+=( docbook ) |
515 |
- use epydoc && targets+=( epydoc ) |
516 |
- |
517 |
- if [[ ${targets[@]} ]]; then |
518 |
- esetup.py "${targets[@]}" |
519 |
- fi |
520 |
-} |
521 |
- |
522 |
-python_test() { |
523 |
- esetup.py test |
524 |
-} |
525 |
- |
526 |
-python_install() { |
527 |
- # Install sbin scripts to bindir for python-exec linking |
528 |
- # they will be relocated in pkg_preinst() |
529 |
- distutils-r1_python_install \ |
530 |
- --system-prefix="${EPREFIX}/usr" \ |
531 |
- --bindir="$(python_get_scriptdir)" \ |
532 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
533 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
534 |
- --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
535 |
- --sbindir="$(python_get_scriptdir)" \ |
536 |
- --sysconfdir="${EPREFIX}/etc" \ |
537 |
- "${@}" |
538 |
-} |
539 |
- |
540 |
-python_install_all() { |
541 |
- distutils-r1_python_install_all |
542 |
- |
543 |
- local targets=() |
544 |
- use doc && targets+=( |
545 |
- install_docbook |
546 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
547 |
- ) |
548 |
- use epydoc && targets+=( |
549 |
- install_epydoc |
550 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
551 |
- ) |
552 |
- |
553 |
- # install docs |
554 |
- if [[ ${targets[@]} ]]; then |
555 |
- esetup.py "${targets[@]}" |
556 |
- fi |
557 |
- |
558 |
- systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
559 |
- |
560 |
- # Due to distutils/python-exec limitations |
561 |
- # these must be installed to /usr/bin. |
562 |
- local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
563 |
- einfo "Moving admin scripts to the correct directory" |
564 |
- dodir /usr/sbin |
565 |
- for target in ${sbin_relocations}; do |
566 |
- einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
567 |
- mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
568 |
- done |
569 |
-} |
570 |
- |
571 |
-pkg_preinst() { |
572 |
- # comment out sanity test until it is fixed to work |
573 |
- # with the new PORTAGE_PYM_PATH |
574 |
- #if [[ $ROOT == / ]] ; then |
575 |
- ## Run some minimal tests as a sanity check. |
576 |
- #local test_runner=$(find "${ED}" -name runTests) |
577 |
- #if [[ -n $test_runner && -x $test_runner ]] ; then |
578 |
- #einfo "Running preinst sanity tests..." |
579 |
- #"$test_runner" || die "preinst sanity tests failed" |
580 |
- #fi |
581 |
- #fi |
582 |
- |
583 |
- # elog dir must exist to avoid logrotate error for bug #415911. |
584 |
- # This code runs in preinst in order to bypass the mapping of |
585 |
- # portage:portage to root:root which happens after src_install. |
586 |
- keepdir /var/log/portage/elog |
587 |
- # This is allowed to fail if the user/group are invalid for prefix users. |
588 |
- if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
589 |
- chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
590 |
- fi |
591 |
- |
592 |
- if has_version ">=${CATEGORY}/${PN}-2.3.1" && \ |
593 |
- has_version "<${CATEGORY}/${PN}-2.3.3"; then |
594 |
- SYNC_DEPTH_UPGRADE=true |
595 |
- else |
596 |
- SYNC_DEPTH_UPGRADE=false |
597 |
- fi |
598 |
-} |
599 |
- |
600 |
-pkg_postinst() { |
601 |
- if ${SYNC_DEPTH_UPGRADE}; then |
602 |
- ewarn "Please note that this release no longer respects sync-depth for" |
603 |
- ewarn "git repositories. There have been too many problems and" |
604 |
- ewarn "performance issues. See bugs 552814, 559008" |
605 |
- fi |
606 |
- einfo "" |
607 |
- einfo "This release of portage NO LONGER contains the repoman code base." |
608 |
- einfo "Repoman has its own ebuild and release package." |
609 |
- einfo "For repoman functionality please emerge app-portage/repoman" |
610 |
- einfo "Please report any bugs you may encounter." |
611 |
- einfo "" |
612 |
-} |
613 |
|
614 |
diff --git a/sys-apps/portage/portage-2.3.38.ebuild b/sys-apps/portage/portage-2.3.38.ebuild |
615 |
deleted file mode 100644 |
616 |
index 453c559a2ac..00000000000 |
617 |
--- a/sys-apps/portage/portage-2.3.38.ebuild |
618 |
+++ /dev/null |
619 |
@@ -1,284 +0,0 @@ |
620 |
-# Copyright 1999-2018 Gentoo Foundation |
621 |
-# Distributed under the terms of the GNU General Public License v2 |
622 |
- |
623 |
-EAPI=5 |
624 |
- |
625 |
-PYTHON_COMPAT=( |
626 |
- pypy |
627 |
- python3_4 python3_5 python3_6 |
628 |
- python2_7 |
629 |
-) |
630 |
-PYTHON_REQ_USE='bzip2(+),threads(+)' |
631 |
- |
632 |
-inherit distutils-r1 systemd |
633 |
- |
634 |
-DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
635 |
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
636 |
- |
637 |
-LICENSE="GPL-2" |
638 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd" |
639 |
-SLOT="0" |
640 |
-IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
641 |
- |
642 |
-DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
643 |
- >=app-arch/tar-1.27 |
644 |
- dev-lang/python-exec:2 |
645 |
- >=sys-apps/sed-4.0.5 sys-devel/patch |
646 |
- doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
647 |
- epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )" |
648 |
-# Require sandbox-2.2 for bug #288863. |
649 |
-# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
650 |
-# quite slow, so it's not considered in the dependencies as an alternative to |
651 |
-# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
652 |
-# for now, don't pull in xattr deps for other kernels. |
653 |
-# For whirlpool hash, require python[ssl] (bug #425046). |
654 |
-# For compgen, require bash[readline] (bug #445576). |
655 |
-# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
656 |
-# the executable. |
657 |
-RDEPEND=" |
658 |
- >=app-arch/tar-1.27 |
659 |
- dev-lang/python-exec:2 |
660 |
- !build? ( |
661 |
- >=sys-apps/sed-4.0.5 |
662 |
- app-shells/bash:0[readline] |
663 |
- >=app-admin/eselect-1.2 |
664 |
- $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
665 |
- python{2_7,3_4,3_5} pypy) |
666 |
- rsync-verify? ( |
667 |
- >=app-portage/gemato-12.1[${PYTHON_USEDEP}] |
668 |
- app-crypt/openpgp-keys-gentoo-release |
669 |
- >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
670 |
- ) |
671 |
- ) |
672 |
- elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
673 |
- elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
674 |
- elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
675 |
- elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
676 |
- >=app-misc/pax-utils-0.1.17 |
677 |
- selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
678 |
- xattr? ( kernel_linux? ( |
679 |
- >=sys-apps/install-xattr-0.3 |
680 |
- $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
681 |
- python2_7 pypy) |
682 |
- ) ) |
683 |
- !<app-admin/logrotate-3.8.0" |
684 |
-PDEPEND=" |
685 |
- !build? ( |
686 |
- >=net-misc/rsync-2.6.4 |
687 |
- userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
688 |
- )" |
689 |
-# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
690 |
-# NOTE: FEATURES=installsources requires debugedit and rsync |
691 |
- |
692 |
-REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
693 |
- |
694 |
-SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives" |
695 |
- |
696 |
-prefix_src_archives() { |
697 |
- local x y |
698 |
- for x in ${@}; do |
699 |
- for y in ${SRC_ARCHIVES}; do |
700 |
- echo ${y}/${x} |
701 |
- done |
702 |
- done |
703 |
-} |
704 |
- |
705 |
-TARBALL_PV=${PV} |
706 |
-SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
707 |
- $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
708 |
- |
709 |
-pkg_setup() { |
710 |
- use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
711 |
-} |
712 |
- |
713 |
-python_prepare_all() { |
714 |
- distutils-r1_python_prepare_all |
715 |
- |
716 |
- if use gentoo-dev; then |
717 |
- einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
718 |
- sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
719 |
- -i pym/_emerge/create_depgraph_params.py || \ |
720 |
- die "failed to patch create_depgraph_params.py" |
721 |
- |
722 |
- einfo "Enabling additional FEATURES for gentoo-dev..." |
723 |
- echo 'FEATURES="${FEATURES} ipc-sandbox network-sandbox strict-keepdir"' \ |
724 |
- >> cnf/make.globals || die |
725 |
- fi |
726 |
- |
727 |
- if use native-extensions; then |
728 |
- printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
729 |
- setup.cfg || die |
730 |
- fi |
731 |
- |
732 |
- if ! use ipc ; then |
733 |
- einfo "Disabling ipc..." |
734 |
- sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
735 |
- -i pym/_emerge/AbstractEbuildProcess.py || \ |
736 |
- die "failed to patch AbstractEbuildProcess.py" |
737 |
- fi |
738 |
- |
739 |
- if use xattr && use kernel_linux ; then |
740 |
- einfo "Adding FEATURES=xattr to make.globals ..." |
741 |
- echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
742 |
- || die "failed to append to make.globals" |
743 |
- fi |
744 |
- |
745 |
- if use build || ! use rsync-verify; then |
746 |
- sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
747 |
- -i cnf/repos.conf || die "sed failed" |
748 |
- fi |
749 |
- |
750 |
- if [[ -n ${EPREFIX} ]] ; then |
751 |
- einfo "Setting portage.const.EPREFIX ..." |
752 |
- sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
753 |
- -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
754 |
- -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
755 |
- -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
756 |
- -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
757 |
- -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
758 |
- -i pym/portage/const.py || \ |
759 |
- die "Failed to patch portage.const.EPREFIX" |
760 |
- |
761 |
- einfo "Prefixing shebangs ..." |
762 |
- while read -r -d $'\0' ; do |
763 |
- local shebang=$(head -n1 "$REPLY") |
764 |
- if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
765 |
- sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
766 |
- die "sed failed" |
767 |
- fi |
768 |
- done < <(find . -type f -print0) |
769 |
- |
770 |
- einfo "Adjusting make.globals ..." |
771 |
- sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ |
772 |
- -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ |
773 |
- -i cnf/make.globals || die "sed failed" |
774 |
- |
775 |
- einfo "Adjusting repos.conf ..." |
776 |
- sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ |
777 |
- -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \ |
778 |
- -i cnf/repos.conf || die "sed failed" |
779 |
- if use prefix-guest ; then |
780 |
- sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
781 |
- -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
782 |
- -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
783 |
- -i cnf/repos.conf || die "sed failed" |
784 |
- fi |
785 |
- |
786 |
- einfo "Adding FEATURES=force-prefix to make.globals ..." |
787 |
- echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
788 |
- || die "failed to append to make.globals" |
789 |
- fi |
790 |
- |
791 |
- cd "${S}/cnf" || die |
792 |
- if [ -f "make.conf.example.${ARCH}".diff ]; then |
793 |
- patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
794 |
- die "Failed to patch make.conf.example" |
795 |
- else |
796 |
- eerror "" |
797 |
- eerror "Portage does not have an arch-specific configuration for this arch." |
798 |
- eerror "Please notify the arch maintainer about this issue. Using generic." |
799 |
- eerror "" |
800 |
- fi |
801 |
-} |
802 |
- |
803 |
-python_compile_all() { |
804 |
- local targets=() |
805 |
- use doc && targets+=( docbook ) |
806 |
- use epydoc && targets+=( epydoc ) |
807 |
- |
808 |
- if [[ ${targets[@]} ]]; then |
809 |
- esetup.py "${targets[@]}" |
810 |
- fi |
811 |
-} |
812 |
- |
813 |
-python_test() { |
814 |
- esetup.py test |
815 |
-} |
816 |
- |
817 |
-python_install() { |
818 |
- # Install sbin scripts to bindir for python-exec linking |
819 |
- # they will be relocated in pkg_preinst() |
820 |
- distutils-r1_python_install \ |
821 |
- --system-prefix="${EPREFIX}/usr" \ |
822 |
- --bindir="$(python_get_scriptdir)" \ |
823 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
824 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
825 |
- --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
826 |
- --sbindir="$(python_get_scriptdir)" \ |
827 |
- --sysconfdir="${EPREFIX}/etc" \ |
828 |
- "${@}" |
829 |
-} |
830 |
- |
831 |
-python_install_all() { |
832 |
- distutils-r1_python_install_all |
833 |
- |
834 |
- local targets=() |
835 |
- use doc && targets+=( |
836 |
- install_docbook |
837 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
838 |
- ) |
839 |
- use epydoc && targets+=( |
840 |
- install_epydoc |
841 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
842 |
- ) |
843 |
- |
844 |
- # install docs |
845 |
- if [[ ${targets[@]} ]]; then |
846 |
- esetup.py "${targets[@]}" |
847 |
- fi |
848 |
- |
849 |
- systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
850 |
- |
851 |
- # Due to distutils/python-exec limitations |
852 |
- # these must be installed to /usr/bin. |
853 |
- local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
854 |
- einfo "Moving admin scripts to the correct directory" |
855 |
- dodir /usr/sbin |
856 |
- for target in ${sbin_relocations}; do |
857 |
- einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
858 |
- mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
859 |
- done |
860 |
-} |
861 |
- |
862 |
-pkg_preinst() { |
863 |
- # comment out sanity test until it is fixed to work |
864 |
- # with the new PORTAGE_PYM_PATH |
865 |
- #if [[ $ROOT == / ]] ; then |
866 |
- ## Run some minimal tests as a sanity check. |
867 |
- #local test_runner=$(find "${ED}" -name runTests) |
868 |
- #if [[ -n $test_runner && -x $test_runner ]] ; then |
869 |
- #einfo "Running preinst sanity tests..." |
870 |
- #"$test_runner" || die "preinst sanity tests failed" |
871 |
- #fi |
872 |
- #fi |
873 |
- |
874 |
- # elog dir must exist to avoid logrotate error for bug #415911. |
875 |
- # This code runs in preinst in order to bypass the mapping of |
876 |
- # portage:portage to root:root which happens after src_install. |
877 |
- keepdir /var/log/portage/elog |
878 |
- # This is allowed to fail if the user/group are invalid for prefix users. |
879 |
- if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
880 |
- chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
881 |
- fi |
882 |
- |
883 |
- if has_version ">=${CATEGORY}/${PN}-2.3.1" && \ |
884 |
- has_version "<${CATEGORY}/${PN}-2.3.3"; then |
885 |
- SYNC_DEPTH_UPGRADE=true |
886 |
- else |
887 |
- SYNC_DEPTH_UPGRADE=false |
888 |
- fi |
889 |
-} |
890 |
- |
891 |
-pkg_postinst() { |
892 |
- if ${SYNC_DEPTH_UPGRADE}; then |
893 |
- ewarn "Please note that this release no longer respects sync-depth for" |
894 |
- ewarn "git repositories. There have been too many problems and" |
895 |
- ewarn "performance issues. See bugs 552814, 559008" |
896 |
- fi |
897 |
- einfo "" |
898 |
- einfo "This release of portage NO LONGER contains the repoman code base." |
899 |
- einfo "Repoman has its own ebuild and release package." |
900 |
- einfo "For repoman functionality please emerge app-portage/repoman" |
901 |
- einfo "Please report any bugs you may encounter." |
902 |
- einfo "" |
903 |
-} |