Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/portage-utils/files/, app-portage/portage-utils/
Date: Sun, 29 Jan 2017 07:10:40
Message-Id: 1485673818.2b53693f62f0a5ce8cdeefe3135fa13315fa53e2.bman@gentoo
1 commit: 2b53693f62f0a5ce8cdeefe3135fa13315fa53e2
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 24 08:17:10 2017 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 07:10:18 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b53693f
7
8 app-portage/portage-utils: drop vulnerable and obsolete patches wrt bug #573574
9
10 Closes: https://github.com/gentoo/gentoo/pull/3620
11
12 app-portage/portage-utils/Manifest | 3 -
13 .../files/portage-utils-0.56-qcheck-tz.patch | 31 ---------
14 .../files/portage-utils-0.56-qlop-tz.patch | 39 -----------
15 .../files/portage-utils-0.60-solaris.patch | 48 -------------
16 .../portage-utils/portage-utils-0.56.ebuild | 80 ----------------------
17 .../portage-utils/portage-utils-0.60.ebuild | 79 ---------------------
18 .../portage-utils/portage-utils-0.61.ebuild | 79 ---------------------
19 7 files changed, 359 deletions(-)
20
21 diff --git a/app-portage/portage-utils/Manifest b/app-portage/portage-utils/Manifest
22 index 4801921..e6d7be8 100644
23 --- a/app-portage/portage-utils/Manifest
24 +++ b/app-portage/portage-utils/Manifest
25 @@ -1,6 +1,3 @@
26 -DIST portage-utils-0.56.tar.xz 513832 SHA256 4df7323fb2667dd9bcee0f2d169c01ed8600aa6196118e6cd3a10cfe99852bbf SHA512 f2136a7df4cd91499b135fbf000f81a71177d5a39b4da2db484ab0f9492d152eaa72a5fee0e56d4b58611462e251905e554f5e41890a749f05d19e50c16c77b6 WHIRLPOOL af0a96ca3bf2dd39335317829aa8aff110a63042c415368400977e974cc21163da7eb76f7d53fcd05e133fd8a8568255ba022a32f1b174bda0dcb15b5f1476b9
27 -DIST portage-utils-0.60.tar.xz 519424 SHA256 d5e4a7384321d21d0aa484fcd30768dbce557e9c97a98cd2723d3eb75b82f503 SHA512 80355b31d49ac0f47c0a05071584608bd5fc0b8a98ab9025cb0a3bc8c18e318fbc60ff33e6834cd4f0ad159c2eb7f63d0d9cb61d4c86cee473215670ebba5694 WHIRLPOOL ec6d2bc1b164a7baff83019455de91483a98401f052153e152cef3733d041e71ca2f4333c9281aa593ee962d0e42b2d4f72f0d04e13982cbb25518f3bd5ca66d
28 -DIST portage-utils-0.61.tar.xz 526588 SHA256 9c8942529dcfd9ee5798ab6a61fd0e8d1cc42645cbf4aeeefdb2d18a13076787 SHA512 0d09901f9d0213ef4d3d1b8961185d5f748d46a06663312f382f33e39fd9d94adc97660a11f482f3c9eb771e0f4e6bfc877390e002e7c0455c9e5ad8ebf1a7a2 WHIRLPOOL 0dcce5a46bd53b39c49edecdc35b64d79d83f06a136d773808270d685895e6bcb0669ce2689c39eeccb3f3f97cb7723b58317c34865aa80605af8b88f1d44280
29 DIST portage-utils-0.62.tar.xz 527216 SHA256 f6ce1938e41ec2073be12568470a7aae51489579add0709c08af5d9be1c0c563 SHA512 71b2888cef1bf7549c3829cc7d4bbe2e99a711434bae4fb78c55b9c37815b61623518f19ab87db30f533d771398933c085640dc7c8ffcedf87a70ac702a52fa1 WHIRLPOOL 105d60d3f778a79972e39d2d8e78aa8b971f085721362e4d594d86006752d97b25d41a1e5a9006f603cda0088da89abb179d8bc129815c1363f30dfb6ff59891
30 DIST portage-utils-0.63.tar.xz 529012 SHA256 7a754cccad2d4c3331d348ba9df51bb3b9565866674303152b55248b05130a02 SHA512 2b0bceee63b894e7f517f3c938a1873aa90c41b668abbf6a39125a1bb9ce1059731e34216cc357787b5cbf83a0cf0748530147262673ea0bc26404d6274714eb WHIRLPOOL fdaec19af639c744394063dd57f7e64fb02ff10c4ee5b1ef2f49928df6d47fb5bf732e547264390787e20ca6e3251be3935e9f348f2510aa0fc6779778ca44ba
31 DIST portage-utils-0.64.tar.xz 533124 SHA256 a53505758d04b2115f636afc9f0c15176a591f3cdb58f684cfd148b29c4783f0 SHA512 e384b88454607aa9123ac3a71d55fb16de475ba59f4ba6efd236594f42140e75650696430138cdb6e1c4e1792db091bbc1db42b1c1102fd579af6514ecefffb7 WHIRLPOOL 19e34782c2f1ed637db73865acc6c07c4162ace55c0b24287bf92c66a9ebea4ca0ab230bb94478aa71bee72280231f75dd5de4eb8fc10248b52ee77cc977392e
32
33 diff --git a/app-portage/portage-utils/files/portage-utils-0.56-qcheck-tz.patch b/app-portage/portage-utils/files/portage-utils-0.56-qcheck-tz.patch
34 deleted file mode 100644
35 index 5b493b6..00000000
36 --- a/app-portage/portage-utils/files/portage-utils-0.56-qcheck-tz.patch
37 +++ /dev/null
38 @@ -1,31 +0,0 @@
39 -From 359fe5097ca531291a2cbb878dc6940351a7a358 Mon Sep 17 00:00:00 2001
40 -From: Mike Frysinger <vapier@g.o>
41 -Date: Thu, 11 Jun 2015 09:51:22 +0000
42 -Subject: [PATCH] tests: qcheck: fix timezone handling
43 -
44 -Make sure the stamps are pinned to UTC rather than using the active TZ.
45 -
46 -URL: https://bugs.gentoo.org/551718
47 -Reported-by: Jeroen Roovers <jer@g.o>
48 ----
49 - tests/qcheck/dotest | 4 ++--
50 - 1 file changed, 2 insertions(+), 2 deletions(-)
51 -
52 -diff --git a/tests/qcheck/dotest b/tests/qcheck/dotest
53 -index 965a5b5..9122321 100755
54 ---- a/tests/qcheck/dotest
55 -+++ b/tests/qcheck/dotest
56 -@@ -10,8 +10,8 @@ export Q_VDB=/
57 - # This is the "valid" mtime the test packages have hardcoded in the CONTENTS
58 - # files. The stamp is the CONTENTS while the touch date is the corresponding
59 - # unpacked date.
60 --STAMP=1398954900 DATE=201405011035
61 --find "${ROOT}" -exec touch -h -t "${DATE}" {} +
62 -+STAMP=1398954900 DATE='2014-05-01T14:35:00Z'
63 -+find "${ROOT}" -exec touch -h -d "${DATE}" {} +
64 -
65 - mktmpdir
66 -
67 ---
68 -2.4.1
69 -
70
71 diff --git a/app-portage/portage-utils/files/portage-utils-0.56-qlop-tz.patch b/app-portage/portage-utils/files/portage-utils-0.56-qlop-tz.patch
72 deleted file mode 100644
73 index d812daa..00000000
74 --- a/app-portage/portage-utils/files/portage-utils-0.56-qlop-tz.patch
75 +++ /dev/null
76 @@ -1,39 +0,0 @@
77 -From 286688cb68c9989f697203ca779b08fad23366db Mon Sep 17 00:00:00 2001
78 -From: Mike Frysinger <vapier@g.o>
79 -Date: Fri, 12 Jun 2015 05:05:41 -0400
80 -Subject: [PATCH] tests: force TZ to UTC for everyone
81 -
82 -This should make test outputs more stable across systems.
83 -
84 -URL: https://bugs.gentoo.org/551806
85 -Reported-by: Nikoli <nikoli@×××.us>
86 ----
87 - tests/init.sh | 2 ++
88 - tests/qlop/list01.good | 4 ++--
89 - 2 files changed, 4 insertions(+), 2 deletions(-)
90 -
91 -diff --git a/tests/init.sh b/tests/init.sh
92 -index b3f634e..11fd379 100644
93 ---- a/tests/init.sh
94 -+++ b/tests/init.sh
95 -@@ -33,6 +33,8 @@ setup_env
96 - unset ROOT PORTAGE_CONFIGROOT PORTAGE_QUIET
97 - # but make sure we don't implicitly rely on user's setup
98 - export PORTAGE_CONFIGROOT="${ab}/not/a/real/path"
99 -+# Always use UTC for timestamps to keep tests stable. #551806
100 -+export TZ='UTC 0'
101 -
102 - q -i -q
103 -
104 -diff --git a/tests/qlop/list01.good b/tests/qlop/list01.good
105 -index 458c751..fc8683c 100644
106 ---- a/tests/qlop/list01.good
107 -+++ b/tests/qlop/list01.good
108 -@@ -1,2 +1,2 @@
109 --Thu Jan 27 00:42:17 2005 >>> rsync://192.168.0.5/gentoo-portage
110 --Sat May 16 04:21:00 2015 >>> gentoo
111 -+Thu Jan 27 05:42:17 2005 >>> rsync://192.168.0.5/gentoo-portage
112 -+Sat May 16 08:21:00 2015 >>> gentoo
113 ---
114 -2.4.1
115 -
116
117 diff --git a/app-portage/portage-utils/files/portage-utils-0.60-solaris.patch b/app-portage/portage-utils/files/portage-utils-0.60-solaris.patch
118 deleted file mode 100644
119 index c938844..00000000
120 --- a/app-portage/portage-utils/files/portage-utils-0.60-solaris.patch
121 +++ /dev/null
122 @@ -1,48 +0,0 @@
123 -- remove non-compatible xasprintf wrapper (compared to statement
124 - expression version in libq/xasprintf.c
125 -- work around missing d_type/DT_DIR
126 -
127 ---- qcache.c
128 -+++ qcache.c
129 -@@ -750,13 +750,21 @@
130 -
131 - xasprintf(&catpath, "%s/dep/%s", portedb, data->overlay);
132 - dir = opendir(catpath);
133 -- while ((de = readdir(dir)))
134 -+ while ((de = readdir(dir))) {
135 -+#ifndef DT_DIR
136 -+ struct stat s;
137 -+ if (stat(de->d_name, &s))
138 -+ continue;
139 -+ if (S_ISDIR(s.st_mode) && de->d_name[0] != '.') {
140 -+#else
141 - if (de->d_type == DT_DIR && de->d_name[0] != '.') {
142 -+#endif
143 - bool ok;
144 - allcats = add_set_unique(de->d_name, allcats, &ok);
145 - if (ok)
146 - ++numcat;
147 - }
148 -+ }
149 - closedir(dir);
150 - free(catpath);
151 -
152 ---- libq/compat.c
153 -+++ libq/compat.c
154 -@@ -20,16 +20,6 @@
155 - return(off == NULL ? off : (char*)(big + (off - b)));
156 - }
157 -
158 --#undef xasprintf
159 --#define xasprintf(strp, fmt, args...) \
160 -- do { /* xasprintf() */ \
161 -- char str[BUFSIZ]; \
162 -- if ((snprintf(str, sizeof(str)-1, fmt , ## args)) == -1) \
163 -- err("Out of stack space?"); \
164 -- str[sizeof(str)-1] = '\0'; \
165 -- *strp = xstrdup(str); \
166 -- } while (0)
167 --
168 - #elif defined(__hpux__) || defined(__MINT__)
169 - /* must not include both dir.h and dirent.h on hpux11..11 & FreeMiNT */
170 - #elif defined(__linux__)
171
172 diff --git a/app-portage/portage-utils/portage-utils-0.56.ebuild b/app-portage/portage-utils/portage-utils-0.56.ebuild
173 deleted file mode 100644
174 index 2882919..00000000
175 --- a/app-portage/portage-utils/portage-utils-0.56.ebuild
176 +++ /dev/null
177 @@ -1,80 +0,0 @@
178 -# Copyright 1999-2015 Gentoo Foundation
179 -# Distributed under the terms of the GNU General Public License v2
180 -# $Id$
181 -
182 -EAPI="4"
183 -
184 -inherit flag-o-matic toolchain-funcs eutils
185 -
186 -DESCRIPTION="small and fast portage helper tools written in C"
187 -HOMEPAGE="https://wiki.gentoo.org/wiki/Portage-utils"
188 -SRC_URI="mirror://gentoo/${P}.tar.xz
189 - https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
190 -
191 -LICENSE="GPL-2"
192 -SLOT="0"
193 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
194 -IUSE="nls static"
195 -
196 -RDEPEND="dev-libs/iniparser:0"
197 -DEPEND="${RDEPEND}
198 - app-arch/xz-utils
199 - static? ( dev-libs/iniparser:0[static-libs] )"
200 -
201 -src_prepare() {
202 - epatch "${FILESDIR}"/${P}-qcheck-tz.patch #551718
203 - epatch "${FILESDIR}"/${P}-qlop-tz.patch #551806
204 - epatch_user
205 -}
206 -
207 -src_configure() {
208 - use static && append-ldflags -static
209 -
210 - # Avoid slow configure+gnulib+make if on an up-to-date Linux system
211 - if use prefix || ! use kernel_linux || \
212 - has_version '<sys-libs/glibc-2.10'
213 - then
214 - econf --with-eprefix="${EPREFIX}"
215 - else
216 - tc-export CC
217 - fi
218 -}
219 -
220 -src_compile() {
221 - emake NLS=$(usex nls)
222 -}
223 -
224 -src_install() {
225 - default
226 -
227 - exeinto /etc/portage/bin
228 - doexe "${FILESDIR}"/post_sync
229 - insinto /etc/portage/postsync.d
230 - doins "${FILESDIR}"/q-reinitialize
231 -
232 - # Portage fixes shebangs, we just need to fix the paths in the files
233 - sed -i \
234 - -e "s:\(/etc/portage/postsync.d\|/usr/bin/q\):${EPREFIX}&:g" \
235 - "${ED}"/etc/portage/bin/post_sync \
236 - "${ED}"/etc/portage/postsync.d/q-reinitialize || die
237 -}
238 -
239 -pkg_preinst() {
240 - # preserve +x bit on postsync files #301721
241 - local x
242 - pushd "${ED}" >/dev/null
243 - for x in etc/portage/postsync.d/* ; do
244 - [[ -x ${EROOT}/${x} ]] && chmod +x "${x}"
245 - done
246 -}
247 -
248 -pkg_postinst() {
249 - if [[ -z ${REPLACING_VERSIONS} ]] ; then
250 - elog "${EPREFIX}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
251 - elog "If you wish for it to be automatically run at the end of every --sync:"
252 - elog " # chmod +x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
253 - elog "Normally this should only take a few seconds to run but file systems"
254 - elog "such as ext3 can take a lot longer. To disable, simply do:"
255 - elog " # chmod -x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
256 - fi
257 -}
258
259 diff --git a/app-portage/portage-utils/portage-utils-0.60.ebuild b/app-portage/portage-utils/portage-utils-0.60.ebuild
260 deleted file mode 100644
261 index ae43b8c..00000000
262 --- a/app-portage/portage-utils/portage-utils-0.60.ebuild
263 +++ /dev/null
264 @@ -1,79 +0,0 @@
265 -# Copyright 1999-2015 Gentoo Foundation
266 -# Distributed under the terms of the GNU General Public License v2
267 -# $Id$
268 -
269 -EAPI="4"
270 -
271 -inherit flag-o-matic toolchain-funcs eutils
272 -
273 -DESCRIPTION="small and fast portage helper tools written in C"
274 -HOMEPAGE="https://wiki.gentoo.org/wiki/Portage-utils"
275 -SRC_URI="mirror://gentoo/${P}.tar.xz
276 - https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
277 -
278 -LICENSE="GPL-2"
279 -SLOT="0"
280 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
281 -IUSE="nls static"
282 -
283 -RDEPEND="dev-libs/iniparser:0"
284 -DEPEND="${RDEPEND}
285 - app-arch/xz-utils
286 - static? ( dev-libs/iniparser:0[static-libs] )"
287 -
288 -src_prepare() {
289 - epatch "${FILESDIR}"/${P}-solaris.patch
290 - epatch_user
291 -}
292 -
293 -src_configure() {
294 - use static && append-ldflags -static
295 -
296 - # Avoid slow configure+gnulib+make if on an up-to-date Linux system
297 - if use prefix || ! use kernel_linux || \
298 - has_version '<sys-libs/glibc-2.10'
299 - then
300 - econf --with-eprefix="${EPREFIX}"
301 - else
302 - tc-export CC
303 - fi
304 -}
305 -
306 -src_compile() {
307 - emake NLS=$(usex nls)
308 -}
309 -
310 -src_install() {
311 - default
312 -
313 - exeinto /etc/portage/bin
314 - doexe "${FILESDIR}"/post_sync
315 - insinto /etc/portage/postsync.d
316 - doins "${FILESDIR}"/q-reinitialize
317 -
318 - # Portage fixes shebangs, we just need to fix the paths in the files
319 - sed -i \
320 - -e "s:\(/etc/portage/postsync.d\|/usr/bin/q\):${EPREFIX}&:g" \
321 - "${ED}"/etc/portage/bin/post_sync \
322 - "${ED}"/etc/portage/postsync.d/q-reinitialize || die
323 -}
324 -
325 -pkg_preinst() {
326 - # preserve +x bit on postsync files #301721
327 - local x
328 - pushd "${ED}" >/dev/null
329 - for x in etc/portage/postsync.d/* ; do
330 - [[ -x ${EROOT}/${x} ]] && chmod +x "${x}"
331 - done
332 -}
333 -
334 -pkg_postinst() {
335 - if [[ -z ${REPLACING_VERSIONS} ]] ; then
336 - elog "${EPREFIX}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
337 - elog "If you wish for it to be automatically run at the end of every --sync:"
338 - elog " # chmod +x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
339 - elog "Normally this should only take a few seconds to run but file systems"
340 - elog "such as ext3 can take a lot longer. To disable, simply do:"
341 - elog " # chmod -x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
342 - fi
343 -}
344
345 diff --git a/app-portage/portage-utils/portage-utils-0.61.ebuild b/app-portage/portage-utils/portage-utils-0.61.ebuild
346 deleted file mode 100644
347 index 1b26679..00000000
348 --- a/app-portage/portage-utils/portage-utils-0.61.ebuild
349 +++ /dev/null
350 @@ -1,79 +0,0 @@
351 -# Copyright 1999-2016 Gentoo Foundation
352 -# Distributed under the terms of the GNU General Public License v2
353 -# $Id$
354 -
355 -EAPI="4"
356 -
357 -inherit flag-o-matic toolchain-funcs eutils
358 -
359 -DESCRIPTION="small and fast portage helper tools written in C"
360 -HOMEPAGE="https://wiki.gentoo.org/wiki/Portage-utils"
361 -SRC_URI="mirror://gentoo/${P}.tar.xz
362 - https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
363 -
364 -LICENSE="GPL-2"
365 -SLOT="0"
366 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
367 -IUSE="nls static"
368 -
369 -RDEPEND="dev-libs/iniparser:0"
370 -DEPEND="${RDEPEND}
371 - app-arch/xz-utils
372 - static? ( dev-libs/iniparser:0[static-libs] )"
373 -
374 -src_prepare() {
375 - epatch "${FILESDIR}"/${P}-solaris.patch
376 - epatch_user
377 -}
378 -
379 -src_configure() {
380 - use static && append-ldflags -static
381 -
382 - # Avoid slow configure+gnulib+make if on an up-to-date Linux system
383 - if use prefix || ! use kernel_linux || \
384 - has_version '<sys-libs/glibc-2.10'
385 - then
386 - econf --with-eprefix="${EPREFIX}"
387 - else
388 - tc-export CC
389 - fi
390 -}
391 -
392 -src_compile() {
393 - emake NLS=$(usex nls)
394 -}
395 -
396 -src_install() {
397 - default
398 -
399 - exeinto /etc/portage/bin
400 - doexe "${FILESDIR}"/post_sync
401 - insinto /etc/portage/postsync.d
402 - doins "${FILESDIR}"/q-reinitialize
403 -
404 - # Portage fixes shebangs, we just need to fix the paths in the files
405 - sed -i \
406 - -e "s:\(/etc/portage/postsync.d\|/usr/bin/q\):${EPREFIX}&:g" \
407 - "${ED}"/etc/portage/bin/post_sync \
408 - "${ED}"/etc/portage/postsync.d/q-reinitialize || die
409 -}
410 -
411 -pkg_preinst() {
412 - # preserve +x bit on postsync files #301721
413 - local x
414 - pushd "${ED}" >/dev/null
415 - for x in etc/portage/postsync.d/* ; do
416 - [[ -x ${EROOT}/${x} ]] && chmod +x "${x}"
417 - done
418 -}
419 -
420 -pkg_postinst() {
421 - if [[ -z ${REPLACING_VERSIONS} ]] ; then
422 - elog "${EPREFIX}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
423 - elog "If you wish for it to be automatically run at the end of every --sync:"
424 - elog " # chmod +x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
425 - elog "Normally this should only take a few seconds to run but file systems"
426 - elog "such as ext3 can take a lot longer. To disable, simply do:"
427 - elog " # chmod -x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
428 - fi
429 -}