Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/portage/
Date: Mon, 18 Feb 2019 00:54:31
Message-Id: 1550450993.efd6e6de1e19117224e20690cf11c16105ce817b.zmedico@gentoo
1 commit: efd6e6de1e19117224e20690cf11c16105ce817b
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 18 00:48:55 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 18 00:49:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efd6e6de
7
8 sys-apps/portage: version bump to 2.3.61
9
10 #677776 gnome2_icon_cache_update -> xdg_icon_cache_update
11 #677800 Don't define a default for ACCEPT_LICENSE
12 #678218 locks: handle sshfs hardlink inode numbers
13 FL-6227 cpuinfo: use better available CPU calculation
14
15 Bug: https://bugs.gentoo.org/671498
16 Bug: https://bugs.gentoo.org/677776
17 Bug: https://bugs.gentoo.org/677800
18 Bug: https://bugs.gentoo.org/678218
19 Package-Manager: Portage-2.3.61, Repoman-2.3.12
20 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
21
22 sys-apps/portage/Manifest | 1 +
23 sys-apps/portage/portage-2.3.61.ebuild | 271 +++++++++++++++++++++++++++++++++
24 2 files changed, 272 insertions(+)
25
26 diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest
27 index 6cf47ac1a57..b6c067230ee 100644
28 --- a/sys-apps/portage/Manifest
29 +++ b/sys-apps/portage/Manifest
30 @@ -5,5 +5,6 @@ DIST portage-2.3.49.tar.bz2 1010414 BLAKE2B be8e0194855eda8e8a617ee4415d702199e1
31 DIST portage-2.3.51.tar.bz2 1013015 BLAKE2B f7f5e6c9e627db5a9e4bfcc9a6cbebb40fda910d3cc928922870b295c706a9f669d3d812e726b220610efe6b182460811eb9420d6fa5b8756481df64a88fe2b9 SHA512 6c22b97959d4b5be263b9a1de6bb343b1f8300e989f37c7334a9d5d6fb65fe2390958e222bc5379ec95099124fc51a049ecca6e1bfc18f0a6c57e4601342bb94
32 DIST portage-2.3.59.tar.bz2 1019295 BLAKE2B 705e51343be5a522cfb9d4cc7935042cd1e5b697b2d78aa283bcc6cbdd3163fa54a572824355221915141b14c2f847c3810e5d4088e8784f23a0111d2bcf321a SHA512 abd188a6b6e4a2c19379e15278cfea31f45eaeb327307e6011877b1babf8460066d6f2b3879d77b5d4aee5120387beaa0318ec2764d2039cd10a3aeb26973658
33 DIST portage-2.3.60.tar.bz2 1019434 BLAKE2B ef6cd672cf0a0781d836c3090de099a6da19e36c8d6650b3b9a9eedd0c106259824cdb34ff968cdbc38fdd1bee43aa1ef76f0914c98a45b3cf79edaf9742cae7 SHA512 ad5145c1b82fef50224df3a299375d3e9def03f5b7aaf0e616b6dd646141e1bb94dcb7cef0f210e64c705b0e6142bcf969f85a989c423084f33706a15e6b2e07
34 +DIST portage-2.3.61.tar.bz2 1020972 BLAKE2B 783e0b1a38a42b6727fb42287745720fefd7ab0b0ef75a91d55ceeae6d9379d36bd37abcf42dfb90f6fcbe86354b14a3a2879d3b931174a6d26388375aad6b93 SHA512 2240ec3f3c01596bf0e1920e805392f429caecd58b7df60fd56ecf3ff5946299bb0d91581d358541d676f9136989b20593cb52ec883f0a28d332177b263896ea
35 DIST portage-2.3.8.tar.bz2 938062 BLAKE2B 3f7bedf6268131a3b3539d53c8a7bb069b533b3a78e5eec521b6201439c8ee5e66996e798fe295561d0a94bfcd32adf414d4f8b5e7a93035cea09749406e64a3 SHA512 4b4b2de20323799b9b0f7a8812f939aa9a96d2744a0f65ad5287ba49744c491b55169cdb21f2885317a6a7c960d2070775ffd798f247b44eebc677c33c271eb8
36 DIST portage-74d2509c99fbcb43e018ead4950b938e41e524e5-bug-671472.patch 1584 BLAKE2B 452cd4cb25e42dcfa05c4f9da2bd3cc279556b9cd87037d0d965d39678f347b701dac0eaa59bfdebee9e3715abb506bf3744900ebefafa8fa729a1eb442889b9 SHA512 5bbe163e8eec00ece831c113676e87f0cf61a40f30a75a0de548490eeb789479336feec5bf81868a284bf32bafa00209176156cfb9ce557390d0f4a2ab6d1c1a
37
38 diff --git a/sys-apps/portage/portage-2.3.61.ebuild b/sys-apps/portage/portage-2.3.61.ebuild
39 new file mode 100644
40 index 00000000000..4bf3a6b2ded
41 --- /dev/null
42 +++ b/sys-apps/portage/portage-2.3.61.ebuild
43 @@ -0,0 +1,271 @@
44 +# Copyright 1999-2019 Gentoo Authors
45 +# Distributed under the terms of the GNU General Public License v2
46 +
47 +EAPI=5
48 +
49 +PYTHON_COMPAT=(
50 + pypy
51 + python3_4 python3_5 python3_6 python3_7
52 + python2_7
53 +)
54 +PYTHON_REQ_USE='bzip2(+),threads(+)'
55 +
56 +inherit distutils-r1 epatch linux-info systemd
57 +
58 +DESCRIPTION="Portage is the package management and distribution system for Gentoo"
59 +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
60 +
61 +LICENSE="GPL-2"
62 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd"
63 +SLOT="0"
64 +IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr"
65 +
66 +DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') )
67 + >=app-arch/tar-1.27
68 + dev-lang/python-exec:2
69 + >=sys-apps/sed-4.0.5 sys-devel/patch
70 + doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
71 + epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )"
72 +# Require sandbox-2.2 for bug #288863.
73 +# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's
74 +# quite slow, so it's not considered in the dependencies as an alternative to
75 +# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so
76 +# for now, don't pull in xattr deps for other kernels.
77 +# For whirlpool hash, require python[ssl] (bug #425046).
78 +# For compgen, require bash[readline] (bug #445576).
79 +# app-portage/gemato goes without PYTHON_USEDEP since we're calling
80 +# the executable.
81 +RDEPEND="
82 + >=app-arch/tar-1.27
83 + dev-lang/python-exec:2
84 + !build? (
85 + >=sys-apps/sed-4.0.5
86 + app-shells/bash:0[readline]
87 + >=app-admin/eselect-1.2
88 + $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \
89 + python{2_7,3_4,3_5} pypy)
90 + rsync-verify? (
91 + >=app-portage/gemato-14[${PYTHON_USEDEP}]
92 + >=app-crypt/openpgp-keys-gentoo-release-20180706
93 + >=app-crypt/gnupg-2.2.4-r2[ssl(-)]
94 + )
95 + )
96 + elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
97 + elibc_glibc? ( >=sys-apps/sandbox-2.2 )
98 + elibc_musl? ( >=sys-apps/sandbox-2.2 )
99 + elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
100 + kernel_linux? ( sys-apps/util-linux )
101 + >=app-misc/pax-utils-0.1.17
102 + selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
103 + xattr? ( kernel_linux? (
104 + >=sys-apps/install-xattr-0.3
105 + $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \
106 + python2_7 pypy)
107 + ) )
108 + !<app-admin/logrotate-3.8.0
109 + !<app-portage/repoman-2.3.10"
110 +PDEPEND="
111 + !build? (
112 + >=net-misc/rsync-2.6.4
113 + userland_GNU? ( >=sys-apps/coreutils-6.4 )
114 + )"
115 +# coreutils-6.4 rdep is for date format in emerge-webrsync #164532
116 +# NOTE: FEATURES=installsources requires debugedit and rsync
117 +
118 +REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )"
119 +
120 +SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives"
121 +
122 +prefix_src_archives() {
123 + local x y
124 + for x in ${@}; do
125 + for y in ${SRC_ARCHIVES}; do
126 + echo ${y}/${x}
127 + done
128 + done
129 +}
130 +
131 +TARBALL_PV=${PV}
132 +SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
133 + $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)"
134 +
135 +pkg_pretend() {
136 + local CONFIG_CHECK="~IPC_NS ~PID_NS ~NET_NS"
137 +
138 + check_extra_config
139 +}
140 +
141 +pkg_setup() {
142 + use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
143 +}
144 +
145 +python_prepare_all() {
146 + distutils-r1_python_prepare_all
147 +
148 + if use gentoo-dev; then
149 + einfo "Disabling --dynamic-deps by default for gentoo-dev..."
150 + sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \
151 + -i lib/_emerge/create_depgraph_params.py || \
152 + die "failed to patch create_depgraph_params.py"
153 +
154 + einfo "Enabling additional FEATURES for gentoo-dev..."
155 + echo 'FEATURES="${FEATURES} ipc-sandbox network-sandbox strict-keepdir"' \
156 + >> cnf/make.globals || die
157 + fi
158 +
159 + if use native-extensions; then
160 + printf "[build_ext]\nportage-ext-modules=true\n" >> \
161 + setup.cfg || die
162 + fi
163 +
164 + if ! use ipc ; then
165 + einfo "Disabling ipc..."
166 + sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
167 + -i lib/_emerge/AbstractEbuildProcess.py || \
168 + die "failed to patch AbstractEbuildProcess.py"
169 + fi
170 +
171 + if use xattr && use kernel_linux ; then
172 + einfo "Adding FEATURES=xattr to make.globals ..."
173 + echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
174 + || die "failed to append to make.globals"
175 + fi
176 +
177 + if use build || ! use rsync-verify; then
178 + sed -e '/^sync-rsync-verify-metamanifest/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 + sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \
185 + -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \
186 + -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \
187 + -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \
188 + -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \
189 + -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \
190 + -i lib/portage/const.py || \
191 + die "Failed to patch portage.const.EPREFIX"
192 +
193 + einfo "Prefixing shebangs ..."
194 + while read -r -d $'\0' ; do
195 + local shebang=$(head -n1 "$REPLY")
196 + if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
197 + sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \
198 + die "sed failed"
199 + fi
200 + done < <(find . -type f -print0)
201 +
202 + einfo "Adjusting make.globals ..."
203 + sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \
204 + -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \
205 + -i cnf/make.globals || die "sed failed"
206 +
207 + einfo "Adjusting repos.conf ..."
208 + sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
209 + -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \
210 + -i cnf/repos.conf || die "sed failed"
211 + if use prefix-guest ; then
212 + sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
213 + -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
214 + -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
215 + -i cnf/repos.conf || die "sed failed"
216 + fi
217 +
218 + einfo "Adding FEATURES=force-prefix to make.globals ..."
219 + echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
220 + || die "failed to append to make.globals"
221 + fi
222 +
223 + cd "${S}/cnf" || die
224 + if [ -f "make.conf.example.${ARCH}".diff ]; then
225 + patch make.conf.example "make.conf.example.${ARCH}".diff || \
226 + die "Failed to patch make.conf.example"
227 + else
228 + eerror ""
229 + eerror "Portage does not have an arch-specific configuration for this arch."
230 + eerror "Please notify the arch maintainer about this issue. Using generic."
231 + eerror ""
232 + fi
233 +}
234 +
235 +python_compile_all() {
236 + local targets=()
237 + use doc && targets+=( docbook )
238 + use epydoc && targets+=( epydoc )
239 +
240 + if [[ ${targets[@]} ]]; then
241 + esetup.py "${targets[@]}"
242 + fi
243 +}
244 +
245 +python_test() {
246 + esetup.py test
247 +}
248 +
249 +python_install() {
250 + # Install sbin scripts to bindir for python-exec linking
251 + # they will be relocated in pkg_preinst()
252 + distutils-r1_python_install \
253 + --system-prefix="${EPREFIX}/usr" \
254 + --bindir="$(python_get_scriptdir)" \
255 + --docdir="${EPREFIX}/usr/share/doc/${PF}" \
256 + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
257 + --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
258 + --sbindir="$(python_get_scriptdir)" \
259 + --sysconfdir="${EPREFIX}/etc" \
260 + "${@}"
261 +}
262 +
263 +python_install_all() {
264 + distutils-r1_python_install_all
265 +
266 + local targets=()
267 + use doc && targets+=(
268 + install_docbook
269 + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
270 + )
271 + use epydoc && targets+=(
272 + install_epydoc
273 + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
274 + )
275 +
276 + # install docs
277 + if [[ ${targets[@]} ]]; then
278 + esetup.py "${targets[@]}"
279 + fi
280 +
281 + systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf
282 +
283 + # Due to distutils/python-exec limitations
284 + # these must be installed to /usr/bin.
285 + local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld'
286 + einfo "Moving admin scripts to the correct directory"
287 + dodir /usr/sbin
288 + for target in ${sbin_relocations}; do
289 + einfo "Moving /usr/bin/${target} to /usr/sbin/${target}"
290 + mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!"
291 + done
292 +}
293 +
294 +pkg_preinst() {
295 + # comment out sanity test until it is fixed to work
296 + # with the new PORTAGE_PYM_PATH
297 + #if [[ $ROOT == / ]] ; then
298 + ## Run some minimal tests as a sanity check.
299 + #local test_runner=$(find "${ED}" -name runTests)
300 + #if [[ -n $test_runner && -x $test_runner ]] ; then
301 + #einfo "Running preinst sanity tests..."
302 + #"$test_runner" || die "preinst sanity tests failed"
303 + #fi
304 + #fi
305 +
306 + # elog dir must exist to avoid logrotate error for bug #415911.
307 + # This code runs in preinst in order to bypass the mapping of
308 + # portage:portage to root:root which happens after src_install.
309 + keepdir /var/log/portage/elog
310 + # This is allowed to fail if the user/group are invalid for prefix users.
311 + if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
312 + chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
313 + fi
314 +}