1 |
commit: 37211774596c6b9f5ac5ccab508cb8a628994819 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 27 04:08:45 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 27 04:10:18 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37211774 |
7 |
|
8 |
sys-apps/portage: version bump to 2.3.41 |
9 |
|
10 |
#600804 - revert portage uid/gid mapping behavior for PMS |
11 |
#656542 - ebuild command PermissionError from prepare_build_dirs |
12 |
#657422 - "[Errno 7] Argument list too long" with --usepkgonly |
13 |
#658322 - support trailing slash in INSTALL_MASK patterns |
14 |
#658684 - fix emerge hang after unhandled exception with no tty |
15 |
#658806 - compress-build-logs EOFError |
16 |
#659228 - fix QA_FLAGS_IGNORED for EAPI 7 |
17 |
|
18 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
19 |
|
20 |
sys-apps/portage/Manifest | 1 + |
21 |
sys-apps/portage/portage-2.3.41.ebuild | 284 +++++++++++++++++++++++++++++++++ |
22 |
2 files changed, 285 insertions(+) |
23 |
|
24 |
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest |
25 |
index c2aa1cad252..d33899070dc 100644 |
26 |
--- a/sys-apps/portage/Manifest |
27 |
+++ b/sys-apps/portage/Manifest |
28 |
@@ -4,4 +4,5 @@ DIST portage-2.3.24.tar.bz2 959266 BLAKE2B bc15f10599c694ad29f5a55264e929d0a04a9 |
29 |
DIST portage-2.3.40-bug-656942-bug-657436-937d0156aa06.patch 15214 BLAKE2B 0351f82cd46aa1523eb0f70109551009a422546f2fbde1beee7a18dad4ecbfc6465b3b3052a25720196950f7da81adeb66d87940f2b477fbeca27afba56fa18e SHA512 b0482b8dac8af97b841ded426001872c1c708f649dc7774bd3c7003179888fd4d126ece33d001d127b643d88b8a70b9af75bbeb36beeaca7b8ad308f92ff72e7 |
30 |
DIST portage-2.3.40-bug-657436-937d0156aa06-1fc628eead43.patch 4131 BLAKE2B 1b051097ef4fb073d22b9ef3472077b4845190ec3839886f462cacbee0996dc4c036549c4beab09025e1bb42f421e5032144e90197e3aa5de08dd7d8d1c50fbb SHA512 5910469816b69afb7a0078dd3b35a5304e2c806ac03ff3949603cf4162900fd9dd1df15661b91a2181528e8406679e525308822a0f6ddf4799c79fa9652c27a9 |
31 |
DIST portage-2.3.40.tar.bz2 995122 BLAKE2B 3bfadee6cf57dace32bb4a365850650e13664202f3b16bf75821ff6226e85da823785ac87875fa82bd5cf1b953d638773819495f73f471c06ffd6926518df1ac SHA512 ded128c1941664fab6bc95f05115ec08900fddaedd1b6f12afa48da024531ee8939134d49759e09995c76a95e41beafdbf5528a5b62d3bf21c826ab1ac0cd1c5 |
32 |
+DIST portage-2.3.41.tar.bz2 996250 BLAKE2B f76c9198b5a4f00a5d67c85613b182dcb30c8ff568cd74b798c230945294532ecac65a682e97b64da28dd297b6d985445b7f3999b84d5152e4241f22e8813330 SHA512 113113a982e346c31e65c326326913458229c05d443f531c1d1897a679dda143d80223cab8bfbe831f4d92b6db9d09fc451ae3c7753e4d73b33736cc4f34c5e9 |
33 |
DIST portage-2.3.8.tar.bz2 938062 BLAKE2B 3f7bedf6268131a3b3539d53c8a7bb069b533b3a78e5eec521b6201439c8ee5e66996e798fe295561d0a94bfcd32adf414d4f8b5e7a93035cea09749406e64a3 SHA512 4b4b2de20323799b9b0f7a8812f939aa9a96d2744a0f65ad5287ba49744c491b55169cdb21f2885317a6a7c960d2070775ffd798f247b44eebc677c33c271eb8 |
34 |
|
35 |
diff --git a/sys-apps/portage/portage-2.3.41.ebuild b/sys-apps/portage/portage-2.3.41.ebuild |
36 |
new file mode 100644 |
37 |
index 00000000000..08db0a649a2 |
38 |
--- /dev/null |
39 |
+++ b/sys-apps/portage/portage-2.3.41.ebuild |
40 |
@@ -0,0 +1,284 @@ |
41 |
+# Copyright 1999-2018 Gentoo Foundation |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+ |
44 |
+EAPI=5 |
45 |
+ |
46 |
+PYTHON_COMPAT=( |
47 |
+ pypy |
48 |
+ python3_4 python3_5 python3_6 |
49 |
+ python2_7 |
50 |
+) |
51 |
+PYTHON_REQ_USE='bzip2(+),threads(+)' |
52 |
+ |
53 |
+inherit distutils-r1 systemd |
54 |
+ |
55 |
+DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
56 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
57 |
+ |
58 |
+LICENSE="GPL-2" |
59 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd" |
60 |
+SLOT="0" |
61 |
+IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
62 |
+ |
63 |
+DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
64 |
+ >=app-arch/tar-1.27 |
65 |
+ dev-lang/python-exec:2 |
66 |
+ >=sys-apps/sed-4.0.5 sys-devel/patch |
67 |
+ doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
68 |
+ epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )" |
69 |
+# Require sandbox-2.2 for bug #288863. |
70 |
+# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
71 |
+# quite slow, so it's not considered in the dependencies as an alternative to |
72 |
+# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
73 |
+# for now, don't pull in xattr deps for other kernels. |
74 |
+# For whirlpool hash, require python[ssl] (bug #425046). |
75 |
+# For compgen, require bash[readline] (bug #445576). |
76 |
+# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
77 |
+# the executable. |
78 |
+RDEPEND=" |
79 |
+ >=app-arch/tar-1.27 |
80 |
+ dev-lang/python-exec:2 |
81 |
+ !build? ( |
82 |
+ >=sys-apps/sed-4.0.5 |
83 |
+ app-shells/bash:0[readline] |
84 |
+ >=app-admin/eselect-1.2 |
85 |
+ $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
86 |
+ python{2_7,3_4,3_5} pypy) |
87 |
+ rsync-verify? ( |
88 |
+ >=app-portage/gemato-12.1[${PYTHON_USEDEP}] |
89 |
+ app-crypt/openpgp-keys-gentoo-release |
90 |
+ >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
91 |
+ ) |
92 |
+ ) |
93 |
+ elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
94 |
+ elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
95 |
+ elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
96 |
+ elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
97 |
+ >=app-misc/pax-utils-0.1.17 |
98 |
+ selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
99 |
+ xattr? ( kernel_linux? ( |
100 |
+ >=sys-apps/install-xattr-0.3 |
101 |
+ $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
102 |
+ python2_7 pypy) |
103 |
+ ) ) |
104 |
+ !<app-admin/logrotate-3.8.0" |
105 |
+PDEPEND=" |
106 |
+ !build? ( |
107 |
+ >=net-misc/rsync-2.6.4 |
108 |
+ userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
109 |
+ )" |
110 |
+# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
111 |
+# NOTE: FEATURES=installsources requires debugedit and rsync |
112 |
+ |
113 |
+REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
114 |
+ |
115 |
+SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives" |
116 |
+ |
117 |
+prefix_src_archives() { |
118 |
+ local x y |
119 |
+ for x in ${@}; do |
120 |
+ for y in ${SRC_ARCHIVES}; do |
121 |
+ echo ${y}/${x} |
122 |
+ done |
123 |
+ done |
124 |
+} |
125 |
+ |
126 |
+TARBALL_PV=${PV} |
127 |
+SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
128 |
+ $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
129 |
+ |
130 |
+pkg_setup() { |
131 |
+ use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
132 |
+} |
133 |
+ |
134 |
+python_prepare_all() { |
135 |
+ distutils-r1_python_prepare_all |
136 |
+ |
137 |
+ if use gentoo-dev; then |
138 |
+ einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
139 |
+ sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
140 |
+ -i pym/_emerge/create_depgraph_params.py || \ |
141 |
+ die "failed to patch create_depgraph_params.py" |
142 |
+ |
143 |
+ einfo "Enabling additional FEATURES for gentoo-dev..." |
144 |
+ echo 'FEATURES="${FEATURES} ipc-sandbox network-sandbox strict-keepdir"' \ |
145 |
+ >> cnf/make.globals || die |
146 |
+ fi |
147 |
+ |
148 |
+ if use native-extensions; then |
149 |
+ printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
150 |
+ setup.cfg || die |
151 |
+ fi |
152 |
+ |
153 |
+ if ! use ipc ; then |
154 |
+ einfo "Disabling ipc..." |
155 |
+ sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
156 |
+ -i pym/_emerge/AbstractEbuildProcess.py || \ |
157 |
+ die "failed to patch AbstractEbuildProcess.py" |
158 |
+ fi |
159 |
+ |
160 |
+ if use xattr && use kernel_linux ; then |
161 |
+ einfo "Adding FEATURES=xattr to make.globals ..." |
162 |
+ echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
163 |
+ || die "failed to append to make.globals" |
164 |
+ fi |
165 |
+ |
166 |
+ if use build || ! use rsync-verify; then |
167 |
+ sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
168 |
+ -i cnf/repos.conf || die "sed failed" |
169 |
+ fi |
170 |
+ |
171 |
+ if [[ -n ${EPREFIX} ]] ; then |
172 |
+ einfo "Setting portage.const.EPREFIX ..." |
173 |
+ sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
174 |
+ -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
175 |
+ -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
176 |
+ -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
177 |
+ -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
178 |
+ -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
179 |
+ -i pym/portage/const.py || \ |
180 |
+ die "Failed to patch portage.const.EPREFIX" |
181 |
+ |
182 |
+ einfo "Prefixing shebangs ..." |
183 |
+ while read -r -d $'\0' ; do |
184 |
+ local shebang=$(head -n1 "$REPLY") |
185 |
+ if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
186 |
+ sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
187 |
+ die "sed failed" |
188 |
+ fi |
189 |
+ done < <(find . -type f -print0) |
190 |
+ |
191 |
+ einfo "Adjusting make.globals ..." |
192 |
+ sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ |
193 |
+ -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ |
194 |
+ -i cnf/make.globals || die "sed failed" |
195 |
+ |
196 |
+ einfo "Adjusting repos.conf ..." |
197 |
+ sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ |
198 |
+ -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \ |
199 |
+ -i cnf/repos.conf || die "sed failed" |
200 |
+ if use prefix-guest ; then |
201 |
+ sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
202 |
+ -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
203 |
+ -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
204 |
+ -i cnf/repos.conf || die "sed failed" |
205 |
+ fi |
206 |
+ |
207 |
+ einfo "Adding FEATURES=force-prefix to make.globals ..." |
208 |
+ echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
209 |
+ || die "failed to append to make.globals" |
210 |
+ fi |
211 |
+ |
212 |
+ cd "${S}/cnf" || die |
213 |
+ if [ -f "make.conf.example.${ARCH}".diff ]; then |
214 |
+ patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
215 |
+ die "Failed to patch make.conf.example" |
216 |
+ else |
217 |
+ eerror "" |
218 |
+ eerror "Portage does not have an arch-specific configuration for this arch." |
219 |
+ eerror "Please notify the arch maintainer about this issue. Using generic." |
220 |
+ eerror "" |
221 |
+ fi |
222 |
+} |
223 |
+ |
224 |
+python_compile_all() { |
225 |
+ local targets=() |
226 |
+ use doc && targets+=( docbook ) |
227 |
+ use epydoc && targets+=( epydoc ) |
228 |
+ |
229 |
+ if [[ ${targets[@]} ]]; then |
230 |
+ esetup.py "${targets[@]}" |
231 |
+ fi |
232 |
+} |
233 |
+ |
234 |
+python_test() { |
235 |
+ esetup.py test |
236 |
+} |
237 |
+ |
238 |
+python_install() { |
239 |
+ # Install sbin scripts to bindir for python-exec linking |
240 |
+ # they will be relocated in pkg_preinst() |
241 |
+ distutils-r1_python_install \ |
242 |
+ --system-prefix="${EPREFIX}/usr" \ |
243 |
+ --bindir="$(python_get_scriptdir)" \ |
244 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
245 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
246 |
+ --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
247 |
+ --sbindir="$(python_get_scriptdir)" \ |
248 |
+ --sysconfdir="${EPREFIX}/etc" \ |
249 |
+ "${@}" |
250 |
+} |
251 |
+ |
252 |
+python_install_all() { |
253 |
+ distutils-r1_python_install_all |
254 |
+ |
255 |
+ local targets=() |
256 |
+ use doc && targets+=( |
257 |
+ install_docbook |
258 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
259 |
+ ) |
260 |
+ use epydoc && targets+=( |
261 |
+ install_epydoc |
262 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
263 |
+ ) |
264 |
+ |
265 |
+ # install docs |
266 |
+ if [[ ${targets[@]} ]]; then |
267 |
+ esetup.py "${targets[@]}" |
268 |
+ fi |
269 |
+ |
270 |
+ systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
271 |
+ |
272 |
+ # Due to distutils/python-exec limitations |
273 |
+ # these must be installed to /usr/bin. |
274 |
+ local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
275 |
+ einfo "Moving admin scripts to the correct directory" |
276 |
+ dodir /usr/sbin |
277 |
+ for target in ${sbin_relocations}; do |
278 |
+ einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
279 |
+ mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
280 |
+ done |
281 |
+} |
282 |
+ |
283 |
+pkg_preinst() { |
284 |
+ # comment out sanity test until it is fixed to work |
285 |
+ # with the new PORTAGE_PYM_PATH |
286 |
+ #if [[ $ROOT == / ]] ; then |
287 |
+ ## Run some minimal tests as a sanity check. |
288 |
+ #local test_runner=$(find "${ED}" -name runTests) |
289 |
+ #if [[ -n $test_runner && -x $test_runner ]] ; then |
290 |
+ #einfo "Running preinst sanity tests..." |
291 |
+ #"$test_runner" || die "preinst sanity tests failed" |
292 |
+ #fi |
293 |
+ #fi |
294 |
+ |
295 |
+ # elog dir must exist to avoid logrotate error for bug #415911. |
296 |
+ # This code runs in preinst in order to bypass the mapping of |
297 |
+ # portage:portage to root:root which happens after src_install. |
298 |
+ keepdir /var/log/portage/elog |
299 |
+ # This is allowed to fail if the user/group are invalid for prefix users. |
300 |
+ if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
301 |
+ chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
302 |
+ fi |
303 |
+ |
304 |
+ if has_version ">=${CATEGORY}/${PN}-2.3.1" && \ |
305 |
+ has_version "<${CATEGORY}/${PN}-2.3.3"; then |
306 |
+ SYNC_DEPTH_UPGRADE=true |
307 |
+ else |
308 |
+ SYNC_DEPTH_UPGRADE=false |
309 |
+ fi |
310 |
+} |
311 |
+ |
312 |
+pkg_postinst() { |
313 |
+ if ${SYNC_DEPTH_UPGRADE}; then |
314 |
+ ewarn "Please note that this release no longer respects sync-depth for" |
315 |
+ ewarn "git repositories. There have been too many problems and" |
316 |
+ ewarn "performance issues. See bugs 552814, 559008" |
317 |
+ fi |
318 |
+ einfo "" |
319 |
+ einfo "This release of portage NO LONGER contains the repoman code base." |
320 |
+ einfo "Repoman has its own ebuild and release package." |
321 |
+ einfo "For repoman functionality please emerge app-portage/repoman" |
322 |
+ einfo "Please report any bugs you may encounter." |
323 |
+ einfo "" |
324 |
+} |