1 |
commit: 39bc8967e254a5c83d5e0e22db6a0b6d772ed01e |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 12 02:15:52 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 12 02:35:05 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39bc8967 |
7 |
|
8 |
sys-apps/portage: Bump to version 2.3.76 |
9 |
|
10 |
#693836 erroneous firefox downgrade |
11 |
#693980 x11-module-rebuild: support SYMLINK_LIB=no |
12 |
#694000 OwnerSet: fix exclude-files support |
13 |
|
14 |
Bug: https://bugs.gentoo.org/691278 |
15 |
Bug: https://bugs.gentoo.org/693836 |
16 |
Bug: https://bugs.gentoo.org/693980 |
17 |
Bug: https://bugs.gentoo.org/694000 |
18 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
19 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
20 |
|
21 |
sys-apps/portage/Manifest | 1 + |
22 |
sys-apps/portage/portage-2.3.76.ebuild | 261 +++++++++++++++++++++++++++++++++ |
23 |
2 files changed, 262 insertions(+) |
24 |
|
25 |
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest |
26 |
index 4536a40778c..b563e536c96 100644 |
27 |
--- a/sys-apps/portage/Manifest |
28 |
+++ b/sys-apps/portage/Manifest |
29 |
@@ -1,4 +1,5 @@ |
30 |
DIST portage-2.3.66.tar.bz2 1023966 BLAKE2B dc378b714101b287fa33defeb778e586da83275cdc2d0bc7a98e9f2ea568568313d6a2767f693f3111fc41f0c6f07451315021186a1719bd52520da327c103d6 SHA512 f8642237e0127d9838c6e91430a19b8886295f8ce6b18cf915d6eb63204c7a8c65783f1554eec90b7ce7d0b613ef4206643eec8751b0594de1dcb4ede4491779 |
31 |
DIST portage-2.3.69.tar.bz2 1027945 BLAKE2B 22a06370d9db8f8954f609a4435983b914f03c11fa1c4c857089738db574e3346fc286c77bb62103d868742b423484b3a186cbc22545cccca0f516a5724e331e SHA512 20a6c9d26829e9d3738da824aa3fcc0bc8f01019ae9631871ce56e5ff37d91ed27d7b9505c433cc3b7441290abf98bf0897bbb66c099cbb982854047e6c8f045 |
32 |
DIST portage-2.3.75.tar.bz2 1032575 BLAKE2B c4f3e9a7e7056af19da6a56599fb79a26331d6ab88981f966b77e2d17ee5dac1a585f54b1185f64855c9c2af544684b759143f657a529878a4e6eb9df4757340 SHA512 06dabc9bff2992b197575ceab5b4f117aca01a10d2556bb006bb28bd4c1d99edfbff753e83aba706782da1e365b923e081ce2037053fed31e18baa5fab6da4a2 |
33 |
+DIST portage-2.3.76.tar.bz2 1033462 BLAKE2B 1be0641337cd7d2a55f8aaba6f84bbfa7182503050e669fb28cd00e4de13cce31ec6e33cc2794e372d1a67b7d2f27e6bb85969f720f2ed449c619598b708b903 SHA512 e7774cf89e3865cb1ca5465fc961b452cc8529ccf09e86b7ebd16cca049f1efb527dca9aba892392d5909283cf12930117b1d33fa58e1e429f4408cf50181921 |
34 |
DIST repoman-bug-685482-fbebef9677d6.patch 3350 BLAKE2B f715267e2731c1ec7c780aa9c6cffe1f848b3ad050273646579677a0522483df6fef844ffd87fb22f7dad53f1ec60221acd0d81a813569baf768ba62a6c1921c SHA512 0e44625aeec7c239d7db8fdcf6a13313f4a8c1275e0e474cc2f05e5476d86214881cec2917d816c8b63f69d508c0bfa69e6a8e05b614b405463c998a4fb7ce12 |
35 |
|
36 |
diff --git a/sys-apps/portage/portage-2.3.76.ebuild b/sys-apps/portage/portage-2.3.76.ebuild |
37 |
new file mode 100644 |
38 |
index 00000000000..b45fedf3529 |
39 |
--- /dev/null |
40 |
+++ b/sys-apps/portage/portage-2.3.76.ebuild |
41 |
@@ -0,0 +1,261 @@ |
42 |
+# Copyright 1999-2019 Gentoo Authors |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
+EAPI=5 |
46 |
+ |
47 |
+PYTHON_COMPAT=( |
48 |
+ pypy |
49 |
+ python3_5 python3_6 python3_7 |
50 |
+ python2_7 |
51 |
+) |
52 |
+PYTHON_REQ_USE='bzip2(+),threads(+)' |
53 |
+ |
54 |
+inherit distutils-r1 linux-info systemd prefix |
55 |
+ |
56 |
+DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
57 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
58 |
+ |
59 |
+LICENSE="GPL-2" |
60 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-fbsd" |
61 |
+SLOT="0" |
62 |
+IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
63 |
+ |
64 |
+DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
65 |
+ >=app-arch/tar-1.27 |
66 |
+ dev-lang/python-exec:2 |
67 |
+ >=sys-apps/sed-4.0.5 sys-devel/patch |
68 |
+ doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
69 |
+ epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )" |
70 |
+# Require sandbox-2.2 for bug #288863. |
71 |
+# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
72 |
+# quite slow, so it's not considered in the dependencies as an alternative to |
73 |
+# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
74 |
+# for now, don't pull in xattr deps for other kernels. |
75 |
+# For whirlpool hash, require python[ssl] (bug #425046). |
76 |
+# For compgen, require bash[readline] (bug #445576). |
77 |
+# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
78 |
+# the executable. |
79 |
+RDEPEND=" |
80 |
+ >=app-arch/tar-1.27 |
81 |
+ dev-lang/python-exec:2 |
82 |
+ !build? ( |
83 |
+ >=sys-apps/sed-4.0.5 |
84 |
+ app-shells/bash:0[readline] |
85 |
+ >=app-admin/eselect-1.2 |
86 |
+ $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
87 |
+ python{2_7,3_5} pypy) |
88 |
+ rsync-verify? ( |
89 |
+ >=app-portage/gemato-14[${PYTHON_USEDEP}] |
90 |
+ >=app-crypt/openpgp-keys-gentoo-release-20180706 |
91 |
+ >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
92 |
+ ) |
93 |
+ ) |
94 |
+ elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
95 |
+ elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
96 |
+ elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
97 |
+ elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
98 |
+ kernel_linux? ( sys-apps/util-linux ) |
99 |
+ >=app-misc/pax-utils-0.1.17 |
100 |
+ selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
101 |
+ xattr? ( kernel_linux? ( |
102 |
+ >=sys-apps/install-xattr-0.3 |
103 |
+ $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
104 |
+ python2_7 pypy) |
105 |
+ ) ) |
106 |
+ !<app-admin/logrotate-3.8.0 |
107 |
+ !<app-portage/gentoolkit-0.4.6 |
108 |
+ !<app-portage/repoman-2.3.10" |
109 |
+PDEPEND=" |
110 |
+ !build? ( |
111 |
+ >=net-misc/rsync-2.6.4 |
112 |
+ userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
113 |
+ )" |
114 |
+# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
115 |
+# NOTE: FEATURES=installsources requires debugedit and rsync |
116 |
+ |
117 |
+REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
118 |
+ |
119 |
+SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives" |
120 |
+ |
121 |
+prefix_src_archives() { |
122 |
+ local x y |
123 |
+ for x in ${@}; do |
124 |
+ for y in ${SRC_ARCHIVES}; do |
125 |
+ echo ${y}/${x} |
126 |
+ done |
127 |
+ done |
128 |
+} |
129 |
+ |
130 |
+TARBALL_PV=${PV} |
131 |
+SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
132 |
+ $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
133 |
+ |
134 |
+pkg_pretend() { |
135 |
+ local CONFIG_CHECK="~IPC_NS ~PID_NS ~NET_NS" |
136 |
+ |
137 |
+ check_extra_config |
138 |
+} |
139 |
+ |
140 |
+pkg_setup() { |
141 |
+ use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
142 |
+} |
143 |
+ |
144 |
+python_prepare_all() { |
145 |
+ distutils-r1_python_prepare_all |
146 |
+ |
147 |
+ if use gentoo-dev; then |
148 |
+ einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
149 |
+ sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
150 |
+ -i lib/_emerge/create_depgraph_params.py || \ |
151 |
+ die "failed to patch create_depgraph_params.py" |
152 |
+ |
153 |
+ einfo "Enabling additional FEATURES for gentoo-dev..." |
154 |
+ echo 'FEATURES="${FEATURES} strict-keepdir"' \ |
155 |
+ >> cnf/make.globals || die |
156 |
+ fi |
157 |
+ |
158 |
+ if use native-extensions; then |
159 |
+ printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
160 |
+ setup.cfg || die |
161 |
+ fi |
162 |
+ |
163 |
+ if ! use ipc ; then |
164 |
+ einfo "Disabling ipc..." |
165 |
+ sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
166 |
+ -i lib/_emerge/AbstractEbuildProcess.py || \ |
167 |
+ die "failed to patch AbstractEbuildProcess.py" |
168 |
+ fi |
169 |
+ |
170 |
+ if use xattr && use kernel_linux ; then |
171 |
+ einfo "Adding FEATURES=xattr to make.globals ..." |
172 |
+ echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
173 |
+ || die "failed to append to make.globals" |
174 |
+ fi |
175 |
+ |
176 |
+ if use build || ! use rsync-verify; then |
177 |
+ sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
178 |
+ -e '/^sync-webrsync-verify-signature/s|yes|no|' \ |
179 |
+ -i cnf/repos.conf || die "sed failed" |
180 |
+ fi |
181 |
+ |
182 |
+ if [[ -n ${EPREFIX} ]] ; then |
183 |
+ einfo "Setting portage.const.EPREFIX ..." |
184 |
+ hprefixify -e "s|^(EPREFIX[[:space:]]*=[[:space:]]*\").*|\1${EPREFIX}\"|" \ |
185 |
+ -w "/_BINARY/" lib/portage/const.py |
186 |
+ |
187 |
+ einfo "Prefixing shebangs ..." |
188 |
+ while read -r -d $'\0' ; do |
189 |
+ local shebang=$(head -n1 "$REPLY") |
190 |
+ if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
191 |
+ sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
192 |
+ die "sed failed" |
193 |
+ fi |
194 |
+ done < <(find . -type f ! -name etc-update -print0) |
195 |
+ |
196 |
+ einfo "Adjusting make.globals, repos.conf and etc-update ..." |
197 |
+ hprefixify cnf/{make.globals,repos.conf} bin/etc-update |
198 |
+ |
199 |
+ if use prefix-guest ; then |
200 |
+ sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
201 |
+ -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
202 |
+ -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
203 |
+ -i cnf/repos.conf || die "sed failed" |
204 |
+ fi |
205 |
+ |
206 |
+ einfo "Adding FEATURES=force-prefix to make.globals ..." |
207 |
+ echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
208 |
+ || die "failed to append to make.globals" |
209 |
+ fi |
210 |
+ |
211 |
+ cd "${S}/cnf" || die |
212 |
+ if [ -f "make.conf.example.${ARCH}".diff ]; then |
213 |
+ patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
214 |
+ die "Failed to patch make.conf.example" |
215 |
+ else |
216 |
+ eerror "" |
217 |
+ eerror "Portage does not have an arch-specific configuration for this arch." |
218 |
+ eerror "Please notify the arch maintainer about this issue. Using generic." |
219 |
+ eerror "" |
220 |
+ fi |
221 |
+} |
222 |
+ |
223 |
+python_compile_all() { |
224 |
+ local targets=() |
225 |
+ use doc && targets+=( docbook ) |
226 |
+ use epydoc && targets+=( epydoc ) |
227 |
+ |
228 |
+ if [[ ${targets[@]} ]]; then |
229 |
+ esetup.py "${targets[@]}" |
230 |
+ fi |
231 |
+} |
232 |
+ |
233 |
+python_test() { |
234 |
+ esetup.py test |
235 |
+} |
236 |
+ |
237 |
+python_install() { |
238 |
+ # Install sbin scripts to bindir for python-exec linking |
239 |
+ # they will be relocated in pkg_preinst() |
240 |
+ distutils-r1_python_install \ |
241 |
+ --system-prefix="${EPREFIX}/usr" \ |
242 |
+ --bindir="$(python_get_scriptdir)" \ |
243 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
244 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
245 |
+ --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
246 |
+ --sbindir="$(python_get_scriptdir)" \ |
247 |
+ --sysconfdir="${EPREFIX}/etc" \ |
248 |
+ "${@}" |
249 |
+} |
250 |
+ |
251 |
+python_install_all() { |
252 |
+ distutils-r1_python_install_all |
253 |
+ |
254 |
+ local targets=() |
255 |
+ use doc && targets+=( |
256 |
+ install_docbook |
257 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
258 |
+ ) |
259 |
+ use epydoc && targets+=( |
260 |
+ install_epydoc |
261 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
262 |
+ ) |
263 |
+ |
264 |
+ # install docs |
265 |
+ if [[ ${targets[@]} ]]; then |
266 |
+ esetup.py "${targets[@]}" |
267 |
+ fi |
268 |
+ |
269 |
+ systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
270 |
+ |
271 |
+ # Due to distutils/python-exec limitations |
272 |
+ # these must be installed to /usr/bin. |
273 |
+ local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
274 |
+ einfo "Moving admin scripts to the correct directory" |
275 |
+ dodir /usr/sbin |
276 |
+ for target in ${sbin_relocations}; do |
277 |
+ einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
278 |
+ mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
279 |
+ done |
280 |
+} |
281 |
+ |
282 |
+pkg_preinst() { |
283 |
+ python_setup |
284 |
+ python_export PYTHON_SITEDIR |
285 |
+ [[ -d ${D%/}${PYTHON_SITEDIR} ]] || die "${D%/}${PYTHON_SITEDIR}: No such directory" |
286 |
+ env -u DISTDIR \ |
287 |
+ -u PORTAGE_OVERRIDE_EPREFIX \ |
288 |
+ -u PORTAGE_REPOSITORIES \ |
289 |
+ -u PORTDIR \ |
290 |
+ -u PORTDIR_OVERLAY \ |
291 |
+ PYTHONPATH="${D%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}" \ |
292 |
+ "${PYTHON}" -m portage._compat_upgrade.default_locations || die |
293 |
+ |
294 |
+ # elog dir must exist to avoid logrotate error for bug #415911. |
295 |
+ # This code runs in preinst in order to bypass the mapping of |
296 |
+ # portage:portage to root:root which happens after src_install. |
297 |
+ keepdir /var/log/portage/elog |
298 |
+ # This is allowed to fail if the user/group are invalid for prefix users. |
299 |
+ if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
300 |
+ chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
301 |
+ fi |
302 |
+} |