1 |
commit: d90fade7913c7d374affa689069854093cb23d63 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 28 08:16:18 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 28 08:26:25 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d90fade7 |
7 |
|
8 |
sys-apps/portage: version bump to 2.3.44 |
9 |
|
10 |
#630292 - parallel pngfix |
11 |
#661834 - rsync: fix _commit_download to drop privileges |
12 |
#661838 - webrsync: support sync-openpgp-key-path |
13 |
#661906 - git: fix key refresh failure to trigger abort |
14 |
|
15 |
Package-Manager: Portage-2.3.44, Repoman-2.3.10 |
16 |
|
17 |
sys-apps/portage/Manifest | 1 + |
18 |
sys-apps/portage/portage-2.3.44.ebuild | 285 +++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 286 insertions(+) |
20 |
|
21 |
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest |
22 |
index d08b0e5f08d..9334cbd1844 100644 |
23 |
--- a/sys-apps/portage/Manifest |
24 |
+++ b/sys-apps/portage/Manifest |
25 |
@@ -5,4 +5,5 @@ DIST portage-2.3.40-bug-656942-bug-657436-937d0156aa06.patch 15214 BLAKE2B 0351f |
26 |
DIST portage-2.3.40-bug-657436-937d0156aa06-1fc628eead43.patch 4131 BLAKE2B 1b051097ef4fb073d22b9ef3472077b4845190ec3839886f462cacbee0996dc4c036549c4beab09025e1bb42f421e5032144e90197e3aa5de08dd7d8d1c50fbb SHA512 5910469816b69afb7a0078dd3b35a5304e2c806ac03ff3949603cf4162900fd9dd1df15661b91a2181528e8406679e525308822a0f6ddf4799c79fa9652c27a9 |
27 |
DIST portage-2.3.40.tar.bz2 995122 BLAKE2B 3bfadee6cf57dace32bb4a365850650e13664202f3b16bf75821ff6226e85da823785ac87875fa82bd5cf1b953d638773819495f73f471c06ffd6926518df1ac SHA512 ded128c1941664fab6bc95f05115ec08900fddaedd1b6f12afa48da024531ee8939134d49759e09995c76a95e41beafdbf5528a5b62d3bf21c826ab1ac0cd1c5 |
28 |
DIST portage-2.3.43.tar.bz2 998958 BLAKE2B 28874db4dc989e550aa4a54a91b8ad303f17b2444d6e23a539672c4742ec62c4228f6070f0d36a31b90d1d32998bc4825de706e5a6635bb7051e5b592f8e3eac SHA512 b8f3ab4f700cc72364b38153451a32a371d0b222feacfb206017be7182596cbc83b7e036025d07399e8b32cf3e3889dbc6ba8d26a64fbfc4253f1506da3c8252 |
29 |
+DIST portage-2.3.44.tar.bz2 1008301 BLAKE2B de370ce9f455e6f778dece3be78703f23852caa9185d79b54e6fc35939923f2a28c91aa372a4ae601872b7933970b536e935ea1f8cb8604bf1547dced3d70c33 SHA512 e491998958439dc27fed6e6f9a3b87867c881cae6ec1fe9515db3277fb2f6f866b6ea6298bae5bf6553591ebe75719a5f379ae92e4aede440ac620ce4af9160d |
30 |
DIST portage-2.3.8.tar.bz2 938062 BLAKE2B 3f7bedf6268131a3b3539d53c8a7bb069b533b3a78e5eec521b6201439c8ee5e66996e798fe295561d0a94bfcd32adf414d4f8b5e7a93035cea09749406e64a3 SHA512 4b4b2de20323799b9b0f7a8812f939aa9a96d2744a0f65ad5287ba49744c491b55169cdb21f2885317a6a7c960d2070775ffd798f247b44eebc677c33c271eb8 |
31 |
|
32 |
diff --git a/sys-apps/portage/portage-2.3.44.ebuild b/sys-apps/portage/portage-2.3.44.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..4cf0b294edb |
35 |
--- /dev/null |
36 |
+++ b/sys-apps/portage/portage-2.3.44.ebuild |
37 |
@@ -0,0 +1,285 @@ |
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 python3_7 |
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 ~s390 ~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/openpgp-keys-gentoo-release |
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 |
+ !<app-portage/repoman-2.3.10" |
103 |
+PDEPEND=" |
104 |
+ !build? ( |
105 |
+ >=net-misc/rsync-2.6.4 |
106 |
+ userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
107 |
+ )" |
108 |
+# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
109 |
+# NOTE: FEATURES=installsources requires debugedit and rsync |
110 |
+ |
111 |
+REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
112 |
+ |
113 |
+SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives" |
114 |
+ |
115 |
+prefix_src_archives() { |
116 |
+ local x y |
117 |
+ for x in ${@}; do |
118 |
+ for y in ${SRC_ARCHIVES}; do |
119 |
+ echo ${y}/${x} |
120 |
+ done |
121 |
+ done |
122 |
+} |
123 |
+ |
124 |
+TARBALL_PV=${PV} |
125 |
+SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
126 |
+ $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
127 |
+ |
128 |
+pkg_setup() { |
129 |
+ use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
130 |
+} |
131 |
+ |
132 |
+python_prepare_all() { |
133 |
+ distutils-r1_python_prepare_all |
134 |
+ |
135 |
+ if use gentoo-dev; then |
136 |
+ einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
137 |
+ sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
138 |
+ -i lib/_emerge/create_depgraph_params.py || \ |
139 |
+ die "failed to patch create_depgraph_params.py" |
140 |
+ |
141 |
+ einfo "Enabling additional FEATURES for gentoo-dev..." |
142 |
+ echo 'FEATURES="${FEATURES} ipc-sandbox network-sandbox strict-keepdir"' \ |
143 |
+ >> cnf/make.globals || die |
144 |
+ fi |
145 |
+ |
146 |
+ if use native-extensions; then |
147 |
+ printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
148 |
+ setup.cfg || die |
149 |
+ fi |
150 |
+ |
151 |
+ if ! use ipc ; then |
152 |
+ einfo "Disabling ipc..." |
153 |
+ sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
154 |
+ -i lib/_emerge/AbstractEbuildProcess.py || \ |
155 |
+ die "failed to patch AbstractEbuildProcess.py" |
156 |
+ fi |
157 |
+ |
158 |
+ if use xattr && use kernel_linux ; then |
159 |
+ einfo "Adding FEATURES=xattr to make.globals ..." |
160 |
+ echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
161 |
+ || die "failed to append to make.globals" |
162 |
+ fi |
163 |
+ |
164 |
+ if use build || ! use rsync-verify; then |
165 |
+ sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
166 |
+ -i cnf/repos.conf || die "sed failed" |
167 |
+ fi |
168 |
+ |
169 |
+ if [[ -n ${EPREFIX} ]] ; then |
170 |
+ einfo "Setting portage.const.EPREFIX ..." |
171 |
+ sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
172 |
+ -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
173 |
+ -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
174 |
+ -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
175 |
+ -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
176 |
+ -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
177 |
+ -i lib/portage/const.py || \ |
178 |
+ die "Failed to patch portage.const.EPREFIX" |
179 |
+ |
180 |
+ einfo "Prefixing shebangs ..." |
181 |
+ while read -r -d $'\0' ; do |
182 |
+ local shebang=$(head -n1 "$REPLY") |
183 |
+ if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
184 |
+ sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
185 |
+ die "sed failed" |
186 |
+ fi |
187 |
+ done < <(find . -type f -print0) |
188 |
+ |
189 |
+ einfo "Adjusting make.globals ..." |
190 |
+ sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ |
191 |
+ -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ |
192 |
+ -i cnf/make.globals || die "sed failed" |
193 |
+ |
194 |
+ einfo "Adjusting repos.conf ..." |
195 |
+ sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ |
196 |
+ -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \ |
197 |
+ -i cnf/repos.conf || die "sed failed" |
198 |
+ if use prefix-guest ; then |
199 |
+ sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
200 |
+ -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
201 |
+ -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
202 |
+ -i cnf/repos.conf || die "sed failed" |
203 |
+ fi |
204 |
+ |
205 |
+ einfo "Adding FEATURES=force-prefix to make.globals ..." |
206 |
+ echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
207 |
+ || die "failed to append to make.globals" |
208 |
+ fi |
209 |
+ |
210 |
+ cd "${S}/cnf" || die |
211 |
+ if [ -f "make.conf.example.${ARCH}".diff ]; then |
212 |
+ patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
213 |
+ die "Failed to patch make.conf.example" |
214 |
+ else |
215 |
+ eerror "" |
216 |
+ eerror "Portage does not have an arch-specific configuration for this arch." |
217 |
+ eerror "Please notify the arch maintainer about this issue. Using generic." |
218 |
+ eerror "" |
219 |
+ fi |
220 |
+} |
221 |
+ |
222 |
+python_compile_all() { |
223 |
+ local targets=() |
224 |
+ use doc && targets+=( docbook ) |
225 |
+ use epydoc && targets+=( epydoc ) |
226 |
+ |
227 |
+ if [[ ${targets[@]} ]]; then |
228 |
+ esetup.py "${targets[@]}" |
229 |
+ fi |
230 |
+} |
231 |
+ |
232 |
+python_test() { |
233 |
+ esetup.py test |
234 |
+} |
235 |
+ |
236 |
+python_install() { |
237 |
+ # Install sbin scripts to bindir for python-exec linking |
238 |
+ # they will be relocated in pkg_preinst() |
239 |
+ distutils-r1_python_install \ |
240 |
+ --system-prefix="${EPREFIX}/usr" \ |
241 |
+ --bindir="$(python_get_scriptdir)" \ |
242 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
243 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
244 |
+ --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
245 |
+ --sbindir="$(python_get_scriptdir)" \ |
246 |
+ --sysconfdir="${EPREFIX}/etc" \ |
247 |
+ "${@}" |
248 |
+} |
249 |
+ |
250 |
+python_install_all() { |
251 |
+ distutils-r1_python_install_all |
252 |
+ |
253 |
+ local targets=() |
254 |
+ use doc && targets+=( |
255 |
+ install_docbook |
256 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
257 |
+ ) |
258 |
+ use epydoc && targets+=( |
259 |
+ install_epydoc |
260 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
261 |
+ ) |
262 |
+ |
263 |
+ # install docs |
264 |
+ if [[ ${targets[@]} ]]; then |
265 |
+ esetup.py "${targets[@]}" |
266 |
+ fi |
267 |
+ |
268 |
+ systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
269 |
+ |
270 |
+ # Due to distutils/python-exec limitations |
271 |
+ # these must be installed to /usr/bin. |
272 |
+ local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
273 |
+ einfo "Moving admin scripts to the correct directory" |
274 |
+ dodir /usr/sbin |
275 |
+ for target in ${sbin_relocations}; do |
276 |
+ einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
277 |
+ mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
278 |
+ done |
279 |
+} |
280 |
+ |
281 |
+pkg_preinst() { |
282 |
+ # comment out sanity test until it is fixed to work |
283 |
+ # with the new PORTAGE_PYM_PATH |
284 |
+ #if [[ $ROOT == / ]] ; then |
285 |
+ ## Run some minimal tests as a sanity check. |
286 |
+ #local test_runner=$(find "${ED}" -name runTests) |
287 |
+ #if [[ -n $test_runner && -x $test_runner ]] ; then |
288 |
+ #einfo "Running preinst sanity tests..." |
289 |
+ #"$test_runner" || die "preinst sanity tests failed" |
290 |
+ #fi |
291 |
+ #fi |
292 |
+ |
293 |
+ # elog dir must exist to avoid logrotate error for bug #415911. |
294 |
+ # This code runs in preinst in order to bypass the mapping of |
295 |
+ # portage:portage to root:root which happens after src_install. |
296 |
+ keepdir /var/log/portage/elog |
297 |
+ # This is allowed to fail if the user/group are invalid for prefix users. |
298 |
+ if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
299 |
+ chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
300 |
+ fi |
301 |
+ |
302 |
+ if has_version ">=${CATEGORY}/${PN}-2.3.1" && \ |
303 |
+ has_version "<${CATEGORY}/${PN}-2.3.3"; then |
304 |
+ SYNC_DEPTH_UPGRADE=true |
305 |
+ else |
306 |
+ SYNC_DEPTH_UPGRADE=false |
307 |
+ fi |
308 |
+} |
309 |
+ |
310 |
+pkg_postinst() { |
311 |
+ if ${SYNC_DEPTH_UPGRADE}; then |
312 |
+ ewarn "Please note that this release no longer respects sync-depth for" |
313 |
+ ewarn "git repositories. There have been too many problems and" |
314 |
+ ewarn "performance issues. See bugs 552814, 559008" |
315 |
+ fi |
316 |
+ einfo "" |
317 |
+ einfo "This release of portage NO LONGER contains the repoman code base." |
318 |
+ einfo "Repoman has its own ebuild and release package." |
319 |
+ einfo "For repoman functionality please emerge app-portage/repoman" |
320 |
+ einfo "Please report any bugs you may encounter." |
321 |
+ einfo "" |
322 |
+} |