1 |
commit: dc6a007989a12167cb16a43c0a2b1d1be31a0325 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 29 14:57:22 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 29 15:04:28 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc6a0079 |
7 |
|
8 |
sys-apps/portage-mgorny: Drop old |
9 |
|
10 |
sys-apps/portage-mgorny/Manifest | 2 - |
11 |
.../portage-mgorny/portage-mgorny-2.3.24.4.ebuild | 199 --------------------- |
12 |
.../portage-mgorny/portage-mgorny-2.3.24.5.ebuild | 199 --------------------- |
13 |
3 files changed, 400 deletions(-) |
14 |
|
15 |
diff --git a/sys-apps/portage-mgorny/Manifest b/sys-apps/portage-mgorny/Manifest |
16 |
index ff97cd29954..00341dfce22 100644 |
17 |
--- a/sys-apps/portage-mgorny/Manifest |
18 |
+++ b/sys-apps/portage-mgorny/Manifest |
19 |
@@ -1,3 +1 @@ |
20 |
-DIST portage-mgorny-2.3.24.4.tar.gz 1235738 BLAKE2B 4365b4c2ac754b6a09a19598d7e4bddc16575b17dcd3e6dabcbb58ddd905a548da5d7c5a660e8bb8e638e39bf8803869144f08f6ece34775e79dd70f4be6d933 SHA512 ed5f14a457d00951f4af6b76db501f33523b6a19f2983d1b7acaa62f7eee90b8facf834f88d4de2dea26f12b7f373c64771c9f797af6c82578fb45b8db8ef678 |
21 |
-DIST portage-mgorny-2.3.24.5.tar.gz 1236839 BLAKE2B 388ef0e61c33a3c9db8e2b9e0e2ddef5e163a522156bb3021c00da7006c298681297ab636f5ab64ebca4ceb07488616a3e2a96aca454db6721dea0d258ded7cc SHA512 18fe8037076f62b1683bf2b861af4ce9dfc90791d5f9bb0e6b4aab356804d4e894322a2c87f0413a4f8b664584d4d24fb5aeedef276286f0896e16915342af26 |
22 |
DIST portage-mgorny-2.3.26.1.tar.gz 1237698 BLAKE2B 73dcce2f57930bd074f6de5103a31ba3730537196438302ea7b25b21ee32d6ab8b3292b42825eac2e912639be1dd0a1b15c049c5cb22f54525c476b96f4817f4 SHA512 38c5ca6a1fee7125942fca10921f3c2ae201c6c06b4f69ee7b0b90b44486aca7b8e4f5817efad99c1ef5ad3f558cd9da144d2c3c26242a1a05bca9e17921b173 |
23 |
|
24 |
diff --git a/sys-apps/portage-mgorny/portage-mgorny-2.3.24.4.ebuild b/sys-apps/portage-mgorny/portage-mgorny-2.3.24.4.ebuild |
25 |
deleted file mode 100644 |
26 |
index 39117506dcf..00000000000 |
27 |
--- a/sys-apps/portage-mgorny/portage-mgorny-2.3.24.4.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,199 +0,0 @@ |
30 |
-# Copyright 1999-2018 Gentoo Foundation |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
- |
33 |
-EAPI=6 |
34 |
- |
35 |
-PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy ) |
36 |
-PYTHON_REQ_USE='bzip2(+),threads(+)' |
37 |
- |
38 |
-inherit distutils-r1 |
39 |
- |
40 |
-DESCRIPTION="Fork of Portage focused on cleaning up and useful features" |
41 |
-HOMEPAGE="https://github.com/mgorny/portage" |
42 |
-SRC_URI="https://github.com/mgorny/portage/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
-S=${WORKDIR}/portage-${PV} |
44 |
- |
45 |
-LICENSE="GPL-2" |
46 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd" |
47 |
-SLOT="0" |
48 |
-IUSE="build +ipc +native-extensions selinux xattr kernel_linux" |
49 |
- |
50 |
-DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
51 |
- >=app-arch/tar-1.27 |
52 |
- >=sys-apps/sed-4.0.5 |
53 |
- sys-devel/patch" |
54 |
-RDEPEND=" |
55 |
- >=app-arch/tar-1.27 |
56 |
- !build? ( |
57 |
- >=app-admin/eselect-1.2 |
58 |
- app-crypt/openpgp-keys-gentoo-release |
59 |
- >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
60 |
- >=app-portage/gemato-10 |
61 |
- app-shells/bash:0[readline] |
62 |
- $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
63 |
- python{2_7,3_4,3_5} pypy) |
64 |
- >=dev-python/lxml-3.6.0[${PYTHON_USEDEP}] |
65 |
- >=sys-apps/sed-4.0.5 |
66 |
- ) |
67 |
- elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
68 |
- elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
69 |
- elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
70 |
- elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
71 |
- >=app-misc/pax-utils-0.1.17 |
72 |
- selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
73 |
- xattr? ( kernel_linux? ( |
74 |
- >=sys-apps/install-xattr-0.3 |
75 |
- $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
76 |
- python2_7 pypy) |
77 |
- ) ) |
78 |
- !app-portage/repoman |
79 |
- !sys-apps/portage" |
80 |
-PDEPEND=" |
81 |
- !build? ( |
82 |
- >=net-misc/rsync-2.6.4 |
83 |
- )" |
84 |
-# NOTE: FEATURES=installsources requires debugedit and rsync |
85 |
- |
86 |
-pkg_pretend() { |
87 |
- if [[ -f ${EROOT%/}/etc/make.conf ]]; then |
88 |
- eerror "You seem to be using /etc/make.conf. Please migrate to the new" |
89 |
- eerror "/etc/portage/make.conf location before upgrading." |
90 |
- if [[ ! -f ${EROOT%/}/etc/portage/make.conf ]]; then |
91 |
- eerror |
92 |
- eerror " mv ${EROOT%/}/etc/make.conf ${EROOT%/}/etc/portage/make.conf" |
93 |
- else |
94 |
- ewarn |
95 |
- ewarn "WARNING: You seem to have make.conf in both locations. Please take" |
96 |
- ewarn "care not to accientally overwrite one with the other." |
97 |
- fi |
98 |
- die "${EROOT%/}/etc/make.conf present" |
99 |
- fi |
100 |
- |
101 |
- if [[ -f ${EROOT%/}/etc/portage/package.keywords ]]; then |
102 |
- eerror "You seem to be using /etc/portage/package.keywords. Please migrate" |
103 |
- eerror "to the new /etc/portage/package.accept_keywords location before" |
104 |
- eerror "upgrading." |
105 |
- eerror |
106 |
- if [[ -d ${EROOT%/}/etc/portage/package.accept_keywords ]]; then |
107 |
- eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords/99old" |
108 |
- else |
109 |
- if [[ -f ${EROOT%/}/etc/portage/package.accept_keywords ]]; then |
110 |
- eerror " cat ${EROOT%/}/etc/portage/package.accept_keywords >> ${EROOT%/}/etc/portage/package.keywords" |
111 |
- fi |
112 |
- eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords" |
113 |
- fi |
114 |
- die "${EROOT%/}/etc/portage/package.keywords present" |
115 |
- fi |
116 |
- |
117 |
- if has_version sys-apps/portage; then |
118 |
- ewarn "If you are migrating from sys-apps/portage to sys-apps/portage-mgorny," |
119 |
- ewarn "please note that Portage will abort upon having to unmerge itself." |
120 |
- ewarn "However, sys-apps/portage-mgorny will already be installed at this" |
121 |
- ewarn "point, so you simply have to restart emerge and it will successfully" |
122 |
- ewarn "clean the old package afterwards." |
123 |
- ewarn |
124 |
- ewarn "If you did not use '--dynamic-deps n' in Portage, your VDB dependency" |
125 |
- ewarn "graph is probably broken. You may need to use '--changed-deps y'" |
126 |
- ewarn "for your first @world upgrade to resolve the conflicts. Afterwards," |
127 |
- ewarn "--changed-deps should no longer be necessary and any conflicts" |
128 |
- ewarn "introduced afterwards should be reported to bugs.gentoo.org." |
129 |
- fi |
130 |
-} |
131 |
- |
132 |
-python_prepare_all() { |
133 |
- distutils-r1_python_prepare_all |
134 |
- |
135 |
- if ! use ipc ; then |
136 |
- einfo "Disabling ipc..." |
137 |
- sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
138 |
- -i pym/_emerge/AbstractEbuildProcess.py || |
139 |
- die "failed to patch AbstractEbuildProcess.py" |
140 |
- fi |
141 |
- |
142 |
- if use xattr && use kernel_linux ; then |
143 |
- einfo "Adding FEATURES=xattr to make.globals ..." |
144 |
- echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
145 |
- || die "failed to append to make.globals" |
146 |
- fi |
147 |
- |
148 |
- if [[ -n ${EPREFIX} ]] ; then |
149 |
- einfo "Setting portage.const.EPREFIX ..." |
150 |
- sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
151 |
- -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
152 |
- -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
153 |
- -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
154 |
- -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
155 |
- -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
156 |
- -i pym/portage/const.py || |
157 |
- die "Failed to patch portage.const.EPREFIX" |
158 |
- |
159 |
- einfo "Prefixing shebangs ..." |
160 |
- while read -r -d $'\0' ; do |
161 |
- local shebang=$(head -n1 "${REPLY}") |
162 |
- if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
163 |
- sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "${REPLY}" || |
164 |
- die "sed failed" |
165 |
- fi |
166 |
- done < <(find . -type f -print0) |
167 |
- |
168 |
- einfo "Adjusting make.globals ..." |
169 |
- sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ |
170 |
- -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ |
171 |
- -i cnf/make.globals || die "sed failed" |
172 |
- |
173 |
- einfo "Adjusting repos.conf ..." |
174 |
- sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ |
175 |
- -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \ |
176 |
- -i cnf/repos.conf || die "sed failed" |
177 |
- if prefix-guest ; then |
178 |
- sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
179 |
- -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
180 |
- -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
181 |
- -i cnf/repos.conf || die "sed failed" |
182 |
- fi |
183 |
- |
184 |
- einfo "Adding FEATURES=force-prefix to make.globals ..." |
185 |
- echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
186 |
- || die "failed to append to make.globals" |
187 |
- fi |
188 |
- |
189 |
- cd "${S}/cnf" || die |
190 |
- if [[ -f make.conf.example.${ARCH}.diff ]]; then |
191 |
- patch make.conf.example "make.conf.example.${ARCH}.diff" || |
192 |
- die "Failed to patch make.conf.example" |
193 |
- else |
194 |
- eerror "" |
195 |
- eerror "Portage does not have an arch-specific configuration for this arch." |
196 |
- eerror "Please notify the arch maintainer about this issue. Using generic." |
197 |
- eerror "" |
198 |
- fi |
199 |
-} |
200 |
- |
201 |
-python_configure_all() { |
202 |
- cat >> setup.cfg <<-EOF || die |
203 |
- [build_ext] |
204 |
- portage-ext-modules=$(usex native-extensions true false) |
205 |
- EOF |
206 |
-} |
207 |
- |
208 |
-python_test() { |
209 |
- esetup.py test |
210 |
-} |
211 |
- |
212 |
-python_install() { |
213 |
- distutils-r1_python_install \ |
214 |
- --system-prefix="${EPREFIX}/usr" \ |
215 |
- --bindir="$(python_get_scriptdir)" \ |
216 |
- --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
217 |
- --sysconfdir="${EPREFIX}/etc" \ |
218 |
- "${@}" |
219 |
- |
220 |
- keepdir /var/log/portage/elog |
221 |
-} |
222 |
- |
223 |
-pkg_preinst() { |
224 |
- # This is allowed to fail if the user/group are invalid for prefix users. |
225 |
- if chown portage:portage "${ED%/}"/var/log/portage{,/elog} 2>/dev/null ; then |
226 |
- chmod g+s,ug+rwx "${ED%/}"/var/log/portage{,/elog} |
227 |
- fi |
228 |
-} |
229 |
|
230 |
diff --git a/sys-apps/portage-mgorny/portage-mgorny-2.3.24.5.ebuild b/sys-apps/portage-mgorny/portage-mgorny-2.3.24.5.ebuild |
231 |
deleted file mode 100644 |
232 |
index 39117506dcf..00000000000 |
233 |
--- a/sys-apps/portage-mgorny/portage-mgorny-2.3.24.5.ebuild |
234 |
+++ /dev/null |
235 |
@@ -1,199 +0,0 @@ |
236 |
-# Copyright 1999-2018 Gentoo Foundation |
237 |
-# Distributed under the terms of the GNU General Public License v2 |
238 |
- |
239 |
-EAPI=6 |
240 |
- |
241 |
-PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy ) |
242 |
-PYTHON_REQ_USE='bzip2(+),threads(+)' |
243 |
- |
244 |
-inherit distutils-r1 |
245 |
- |
246 |
-DESCRIPTION="Fork of Portage focused on cleaning up and useful features" |
247 |
-HOMEPAGE="https://github.com/mgorny/portage" |
248 |
-SRC_URI="https://github.com/mgorny/portage/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
249 |
-S=${WORKDIR}/portage-${PV} |
250 |
- |
251 |
-LICENSE="GPL-2" |
252 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd" |
253 |
-SLOT="0" |
254 |
-IUSE="build +ipc +native-extensions selinux xattr kernel_linux" |
255 |
- |
256 |
-DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
257 |
- >=app-arch/tar-1.27 |
258 |
- >=sys-apps/sed-4.0.5 |
259 |
- sys-devel/patch" |
260 |
-RDEPEND=" |
261 |
- >=app-arch/tar-1.27 |
262 |
- !build? ( |
263 |
- >=app-admin/eselect-1.2 |
264 |
- app-crypt/openpgp-keys-gentoo-release |
265 |
- >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
266 |
- >=app-portage/gemato-10 |
267 |
- app-shells/bash:0[readline] |
268 |
- $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
269 |
- python{2_7,3_4,3_5} pypy) |
270 |
- >=dev-python/lxml-3.6.0[${PYTHON_USEDEP}] |
271 |
- >=sys-apps/sed-4.0.5 |
272 |
- ) |
273 |
- elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
274 |
- elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
275 |
- elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
276 |
- elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
277 |
- >=app-misc/pax-utils-0.1.17 |
278 |
- selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
279 |
- xattr? ( kernel_linux? ( |
280 |
- >=sys-apps/install-xattr-0.3 |
281 |
- $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
282 |
- python2_7 pypy) |
283 |
- ) ) |
284 |
- !app-portage/repoman |
285 |
- !sys-apps/portage" |
286 |
-PDEPEND=" |
287 |
- !build? ( |
288 |
- >=net-misc/rsync-2.6.4 |
289 |
- )" |
290 |
-# NOTE: FEATURES=installsources requires debugedit and rsync |
291 |
- |
292 |
-pkg_pretend() { |
293 |
- if [[ -f ${EROOT%/}/etc/make.conf ]]; then |
294 |
- eerror "You seem to be using /etc/make.conf. Please migrate to the new" |
295 |
- eerror "/etc/portage/make.conf location before upgrading." |
296 |
- if [[ ! -f ${EROOT%/}/etc/portage/make.conf ]]; then |
297 |
- eerror |
298 |
- eerror " mv ${EROOT%/}/etc/make.conf ${EROOT%/}/etc/portage/make.conf" |
299 |
- else |
300 |
- ewarn |
301 |
- ewarn "WARNING: You seem to have make.conf in both locations. Please take" |
302 |
- ewarn "care not to accientally overwrite one with the other." |
303 |
- fi |
304 |
- die "${EROOT%/}/etc/make.conf present" |
305 |
- fi |
306 |
- |
307 |
- if [[ -f ${EROOT%/}/etc/portage/package.keywords ]]; then |
308 |
- eerror "You seem to be using /etc/portage/package.keywords. Please migrate" |
309 |
- eerror "to the new /etc/portage/package.accept_keywords location before" |
310 |
- eerror "upgrading." |
311 |
- eerror |
312 |
- if [[ -d ${EROOT%/}/etc/portage/package.accept_keywords ]]; then |
313 |
- eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords/99old" |
314 |
- else |
315 |
- if [[ -f ${EROOT%/}/etc/portage/package.accept_keywords ]]; then |
316 |
- eerror " cat ${EROOT%/}/etc/portage/package.accept_keywords >> ${EROOT%/}/etc/portage/package.keywords" |
317 |
- fi |
318 |
- eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords" |
319 |
- fi |
320 |
- die "${EROOT%/}/etc/portage/package.keywords present" |
321 |
- fi |
322 |
- |
323 |
- if has_version sys-apps/portage; then |
324 |
- ewarn "If you are migrating from sys-apps/portage to sys-apps/portage-mgorny," |
325 |
- ewarn "please note that Portage will abort upon having to unmerge itself." |
326 |
- ewarn "However, sys-apps/portage-mgorny will already be installed at this" |
327 |
- ewarn "point, so you simply have to restart emerge and it will successfully" |
328 |
- ewarn "clean the old package afterwards." |
329 |
- ewarn |
330 |
- ewarn "If you did not use '--dynamic-deps n' in Portage, your VDB dependency" |
331 |
- ewarn "graph is probably broken. You may need to use '--changed-deps y'" |
332 |
- ewarn "for your first @world upgrade to resolve the conflicts. Afterwards," |
333 |
- ewarn "--changed-deps should no longer be necessary and any conflicts" |
334 |
- ewarn "introduced afterwards should be reported to bugs.gentoo.org." |
335 |
- fi |
336 |
-} |
337 |
- |
338 |
-python_prepare_all() { |
339 |
- distutils-r1_python_prepare_all |
340 |
- |
341 |
- if ! use ipc ; then |
342 |
- einfo "Disabling ipc..." |
343 |
- sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
344 |
- -i pym/_emerge/AbstractEbuildProcess.py || |
345 |
- die "failed to patch AbstractEbuildProcess.py" |
346 |
- fi |
347 |
- |
348 |
- if use xattr && use kernel_linux ; then |
349 |
- einfo "Adding FEATURES=xattr to make.globals ..." |
350 |
- echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
351 |
- || die "failed to append to make.globals" |
352 |
- fi |
353 |
- |
354 |
- if [[ -n ${EPREFIX} ]] ; then |
355 |
- einfo "Setting portage.const.EPREFIX ..." |
356 |
- sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
357 |
- -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
358 |
- -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
359 |
- -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
360 |
- -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
361 |
- -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
362 |
- -i pym/portage/const.py || |
363 |
- die "Failed to patch portage.const.EPREFIX" |
364 |
- |
365 |
- einfo "Prefixing shebangs ..." |
366 |
- while read -r -d $'\0' ; do |
367 |
- local shebang=$(head -n1 "${REPLY}") |
368 |
- if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
369 |
- sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "${REPLY}" || |
370 |
- die "sed failed" |
371 |
- fi |
372 |
- done < <(find . -type f -print0) |
373 |
- |
374 |
- einfo "Adjusting make.globals ..." |
375 |
- sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ |
376 |
- -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ |
377 |
- -i cnf/make.globals || die "sed failed" |
378 |
- |
379 |
- einfo "Adjusting repos.conf ..." |
380 |
- sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ |
381 |
- -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \ |
382 |
- -i cnf/repos.conf || die "sed failed" |
383 |
- if prefix-guest ; then |
384 |
- sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
385 |
- -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
386 |
- -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
387 |
- -i cnf/repos.conf || die "sed failed" |
388 |
- fi |
389 |
- |
390 |
- einfo "Adding FEATURES=force-prefix to make.globals ..." |
391 |
- echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
392 |
- || die "failed to append to make.globals" |
393 |
- fi |
394 |
- |
395 |
- cd "${S}/cnf" || die |
396 |
- if [[ -f make.conf.example.${ARCH}.diff ]]; then |
397 |
- patch make.conf.example "make.conf.example.${ARCH}.diff" || |
398 |
- die "Failed to patch make.conf.example" |
399 |
- else |
400 |
- eerror "" |
401 |
- eerror "Portage does not have an arch-specific configuration for this arch." |
402 |
- eerror "Please notify the arch maintainer about this issue. Using generic." |
403 |
- eerror "" |
404 |
- fi |
405 |
-} |
406 |
- |
407 |
-python_configure_all() { |
408 |
- cat >> setup.cfg <<-EOF || die |
409 |
- [build_ext] |
410 |
- portage-ext-modules=$(usex native-extensions true false) |
411 |
- EOF |
412 |
-} |
413 |
- |
414 |
-python_test() { |
415 |
- esetup.py test |
416 |
-} |
417 |
- |
418 |
-python_install() { |
419 |
- distutils-r1_python_install \ |
420 |
- --system-prefix="${EPREFIX}/usr" \ |
421 |
- --bindir="$(python_get_scriptdir)" \ |
422 |
- --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
423 |
- --sysconfdir="${EPREFIX}/etc" \ |
424 |
- "${@}" |
425 |
- |
426 |
- keepdir /var/log/portage/elog |
427 |
-} |
428 |
- |
429 |
-pkg_preinst() { |
430 |
- # This is allowed to fail if the user/group are invalid for prefix users. |
431 |
- if chown portage:portage "${ED%/}"/var/log/portage{,/elog} 2>/dev/null ; then |
432 |
- chmod g+s,ug+rwx "${ED%/}"/var/log/portage{,/elog} |
433 |
- fi |
434 |
-} |