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-arch/pax/files/, app-arch/pax/
Date: Thu, 29 Mar 2018 00:07:47
Message-Id: 1522282054.b6d28e6d52b36d20f8703e88ea97e4f697a824ca.bman@gentoo
1 commit: b6d28e6d52b36d20f8703e88ea97e4f697a824ca
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 29 00:07:20 2018 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 29 00:07:34 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6d28e6d
7
8 app-arch/pax: drop vulnerable wrt bug #537522
9
10 app-arch/pax/Manifest | 2 -
11 app-arch/pax/files/pax-3.4-fix-fts-includes.patch | 24 ----
12 app-arch/pax/files/pax-3.4-sysmacros.patch | 12 --
13 app-arch/pax/files/pax-3.4-x32.patch | 162 ----------------------
14 app-arch/pax/pax-20160306.ebuild | 60 --------
15 app-arch/pax/pax-3.4.12.16-r1.ebuild | 40 ------
16 app-arch/pax/pax-3.4.12.16.ebuild | 38 -----
17 7 files changed, 338 deletions(-)
18
19 diff --git a/app-arch/pax/Manifest b/app-arch/pax/Manifest
20 index f57780793f9..a31ca15a60e 100644
21 --- a/app-arch/pax/Manifest
22 +++ b/app-arch/pax/Manifest
23 @@ -1,3 +1 @@
24 -DIST pax-3.4-12.fc16.src.rpm 171016 BLAKE2B 94332a7cd24613c4488c1f00de3bcebeba9a82bc948b3cf83274c5a8d3efb5f687f1363376c40e5dc17a001a2f8c677b49d219a9530ece1710d2f7ddd60a9f44 SHA512 78704cd1b66288acdaa8fdf4ca0a97c12b1e843e024be4d3fac88a6b42049928c6bfe69a72a58a00a9bf755c23e1e8e0b7d30bc72ba08a83830495dd5f6d9be1
25 -DIST paxmirabilis-20160306.cpio.gz 147448 BLAKE2B b2a9bcfbb6d2007b8a4162b8d010c2a34f7ebc8595a8c20f6b8e973d85421a7f21f24d90b3d0228e5c9921b69dec1ef0ddcd4ee540f95072237255ecf309016d SHA512 65c9613f235d973f23d829d87b93963f4b21beca4d7158abb8243f7f0ba8eb883544bbd0c16bde82f0e55ab2fbf33e3dfb155a50c0f5be3bf6d88eaf95e1037f
26 DIST paxmirabilis-20161104.cpio.gz 148061 BLAKE2B 997a126d3048488e1a4e49ff9753de2ebdbe75b7daedbea8c95ab5f1902d4768d4b12b13fa684cb2a7c2fe8470ab60e19ea3f9430429a6a4e6e1d57993130fd4 SHA512 42ec8365a5efb9ffb9d383cece39ffaac85c1c8d69856ec557a5567cf0d28d98a0f2d4b7fed53572366eba12c71111cc80b591d51c6a19a3e6437efb62af33ce
27
28 diff --git a/app-arch/pax/files/pax-3.4-fix-fts-includes.patch b/app-arch/pax/files/pax-3.4-fix-fts-includes.patch
29 deleted file mode 100644
30 index 5e4e37eb66a..00000000000
31 --- a/app-arch/pax/files/pax-3.4-fix-fts-includes.patch
32 +++ /dev/null
33 @@ -1,24 +0,0 @@
34 -diff -ur pax-3.4-orig/lib/fts.c pax-3.4/lib/fts.c
35 ---- pax-3.4-orig/lib/fts.c 2005-07-29 09:55:25.000000000 +0200
36 -+++ pax-3.4/lib/fts.c 2014-10-30 21:38:42.404092744 +0100
37 -@@ -35,7 +35,7 @@
38 - #include <fcntl.h>
39 - #include <dirent.h>
40 - #include <errno.h>
41 --#include <fts.h>
42 -+#include "fts.h"
43 - #include <stdlib.h>
44 - #include <string.h>
45 - #include <unistd.h>
46 -diff -ur pax-3.4-orig/src/ftree.c pax-3.4/src/ftree.c
47 ---- pax-3.4-orig/src/ftree.c 2005-07-29 09:46:06.000000000 +0200
48 -+++ pax-3.4/src/ftree.c 2014-10-30 21:39:14.876093149 +0100
49 -@@ -46,7 +46,7 @@
50 - #include <stdio.h>
51 - #include <errno.h>
52 - #include <stdlib.h>
53 --#include <fts.h>
54 -+#include "../lib/fts.h"
55 - #include "pax.h"
56 - #include "ftree.h"
57 - #include "extern.h"
58
59 diff --git a/app-arch/pax/files/pax-3.4-sysmacros.patch b/app-arch/pax/files/pax-3.4-sysmacros.patch
60 deleted file mode 100644
61 index 3aede97ec06..00000000000
62 --- a/app-arch/pax/files/pax-3.4-sysmacros.patch
63 +++ /dev/null
64 @@ -1,12 +0,0 @@
65 -not all C libs pull in this header via sys/types.h for major()/etc...
66 -
67 ---- a/src/extern.h
68 -+++ b/src/extern.h
69 -@@ -38,6 +38,7 @@
70 - */
71 -
72 - #include <sys/cdefs.h>
73 -+#include <sys/sysmacros.h>
74 -
75 - /*
76 - * ar_io.c
77
78 diff --git a/app-arch/pax/files/pax-3.4-x32.patch b/app-arch/pax/files/pax-3.4-x32.patch
79 deleted file mode 100644
80 index 7ae1a9d914c..00000000000
81 --- a/app-arch/pax/files/pax-3.4-x32.patch
82 +++ /dev/null
83 @@ -1,162 +0,0 @@
84 -https://sites.google.com/site/x32abi/x32-patches
85 -
86 ---- pax-3.4/configure.in
87 -+++ pax-3.4/configure.in
88 -@@ -33,4 +33,7 @@ dnl Checks for header files.
89 - dnl Checks for typedefs, structures, and compiler characteristics.
90 - AC_C_CONST
91 -
92 -+AC_CHECK_SIZEOF(off_t)
93 -+AC_CHECK_SIZEOF(long)
94 -+
95 - AC_OUTPUT([Makefile lib/Makefile src/Makefile])
96 ---- pax-3.4/src/ar_io.c
97 -+++ pax-3.4/src/ar_io.c
98 -@@ -378,7 +378,8 @@ ar_close(void)
99 - * could have written anything yet.
100 - */
101 - if (frmt == NULL) {
102 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
103 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
104 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
105 - (void)fprintf(listf, "%s: unknown format, %qu bytes skipped.\n",
106 - #else
107 - (void)fprintf(listf, "%s: unknown format, %lu bytes skipped.\n",
108 -@@ -391,7 +392,8 @@ ar_close(void)
109 -
110 - if (strcmp(NM_CPIO, argv0) == 0)
111 - (void)fprintf(listf,
112 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
113 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
114 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
115 - "%qu blocks\n",
116 - #else
117 - "%lu blocks\n",
118 -@@ -399,7 +401,8 @@ ar_close(void)
119 - (rdcnt ? rdcnt : wrcnt) / 5120);
120 - else if (strcmp(NM_TAR, argv0) != 0)
121 - (void)fprintf(listf,
122 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
123 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
124 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
125 - "%s: %s vol %d, %lu files, %qu bytes read, %qu bytes written.\n",
126 - #else
127 - "%s: %s vol %d, %lu files, %lu bytes read, %lu bytes written.\n",
128 ---- pax-3.4/src/cpio.c
129 -+++ pax-3.4/src/cpio.c
130 -@@ -218,7 +218,8 @@ rd_ln_nm (ARCHD *arcn)
131 - */
132 - if ((arcn->sb.st_size == 0) ||
133 - (arcn->sb.st_size >= (off_t) sizeof(arcn->ln_name))) {
134 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
135 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
136 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
137 - paxwarn (1, "Cpio link name length is invalid: %qu",
138 - arcn->sb.st_size);
139 - #else
140 ---- pax-3.4/src/gen_subs.c
141 -+++ pax-3.4/src/gen_subs.c
142 -@@ -133,7 +133,8 @@ ls_list (ARCHD *arcn, time_t now, FILE *
143 - * print device id's for devices, or sizes for other nodes
144 - */
145 - if ((arcn->type == PAX_CHR) || (arcn->type == PAX_BLK))
146 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
147 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
148 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
149 - (void) fprintf (fp, "%4lu,%4lu ", (unsigned long) MAJOR (sbp->st_rdev),
150 - (unsigned long) MINOR (sbp->st_rdev));
151 - #else
152 -@@ -142,7 +143,8 @@ ls_list (ARCHD *arcn, time_t now, FILE *
153 - #endif
154 - else
155 - {
156 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
157 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
158 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
159 - (void) fprintf (fp, "%9qu ", sbp->st_size);
160 - #else
161 - (void) fprintf (fp, "%9lu ", sbp->st_size);
162 -@@ -334,7 +336,8 @@ ul_asc (u_long val, char *str, int len,
163 - return (0);
164 - }
165 -
166 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
167 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
168 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
169 - /*
170 - * asc_uqd()
171 - * convert hex/octal character string into a u_quad_t. We do not have to
172 ---- pax-3.4/src/options.c
173 -+++ pax-3.4/src/options.c
174 -@@ -1545,7 +1545,8 @@ str_offt (char *val)
175 - char *expr;
176 - off_t num, t;
177 -
178 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
179 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
180 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
181 - num = strtoq (val, &expr, 0);
182 - if ((num == LONG_LONG_MAX) || (num <= 0) || (expr == val))
183 - #else
184 ---- pax-3.4/src/tar.c
185 -+++ pax-3.4/src/tar.c
186 -@@ -58,7 +58,8 @@
187 - static unsigned long tar_chksm (char *, int);
188 - static char *name_split (char *, int);
189 - static int ul_oct (u_long, char *, int, int);
190 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
191 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
192 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
193 - static int uqd_oct (u_quad_t, char *, int, int);
194 - #endif
195 -
196 -@@ -196,7 +197,8 @@ ul_oct (u_long val, register char *str,
197 - return (0);
198 - }
199 -
200 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
201 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
202 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
203 - /*
204 - * uqd_oct()
205 - * convert an u_quad_t to an octal string. one of many oddball field
206 -@@ -427,7 +429,8 @@ tar_rd (ARCHD *arcn, char *buf)
207 - 0xfff);
208 - arcn->sb.st_uid = (uid_t) asc_ul (hd->uid, sizeof (hd->uid), OCT);
209 - arcn->sb.st_gid = (gid_t) asc_ul (hd->gid, sizeof (hd->gid), OCT);
210 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
211 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
212 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
213 - arcn->sb.st_size = (off_t) asc_uqd (hd->size, sizeof (hd->size), OCT);
214 - #else
215 - arcn->sb.st_size = (off_t) asc_ul (hd->size, sizeof (hd->size), OCT);
216 -@@ -659,7 +662,8 @@ tar_wr (register ARCHD * arcn)
217 - * data follows this file, so set the pad
218 - */
219 - hd->linkflag = AREGTYPE;
220 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
221 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
222 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
223 - if (uqd_oct ((u_quad_t) arcn->sb.st_size, hd->size,
224 - sizeof (hd->size), 1))
225 - #else
226 -@@ -834,7 +838,8 @@ ustar_rd (ARCHD *arcn, char *buf)
227 - */
228 - arcn->sb.st_mode = (mode_t) (asc_ul (hd->mode, sizeof (hd->mode), OCT) &
229 - 0xfff);
230 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
231 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
232 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
233 - arcn->sb.st_size = (off_t) asc_uqd (hd->size, sizeof (hd->size), OCT);
234 - #else
235 - arcn->sb.st_size = (off_t) asc_ul (hd->size, sizeof (hd->size), OCT);
236 -@@ -1081,7 +1086,8 @@ ustar_wr (register ARCHD * arcn)
237 - else
238 - hd->typeflag = REGTYPE;
239 - arcn->pad = TAR_PAD (arcn->sb.st_size);
240 --#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
241 -+#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \
242 -+ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
243 - if (uqd_oct ((u_quad_t) arcn->sb.st_size, hd->size,
244 - sizeof (hd->size), 3))
245 - {
246
247 diff --git a/app-arch/pax/pax-20160306.ebuild b/app-arch/pax/pax-20160306.ebuild
248 deleted file mode 100644
249 index 221a2103c1a..00000000000
250 --- a/app-arch/pax/pax-20160306.ebuild
251 +++ /dev/null
252 @@ -1,60 +0,0 @@
253 -# Copyright 1999-2016 Gentoo Foundation
254 -# Distributed under the terms of the GNU General Public License v2
255 -
256 -EAPI="5"
257 -
258 -inherit unpacker toolchain-funcs flag-o-matic
259 -
260 -DESCRIPTION="pax (Portable Archive eXchange) is the POSIX standard archive tool"
261 -HOMEPAGE="https://www.mirbsd.org/pax.htm"
262 -SRC_URI="https://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${PV}.cpio.gz"
263 -
264 -LICENSE="BSD"
265 -SLOT="0"
266 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
267 -IUSE=""
268 -
269 -RDEPEND="dev-libs/libbsd
270 - elibc_musl? ( sys-libs/fts-standalone )"
271 -DEPEND="${RDEPEND}
272 - $(unpacker_src_uri_depends)"
273 -
274 -S=${WORKDIR}/${PN}
275 -
276 -PATCHES=( "${FILESDIR}/${P}-glibc-to-linux.patch" )
277 -
278 -src_prepare() {
279 - # Newer C libraries omit this include from sys/types.h.
280 - sed -i '1i#include <sys/sysmacros.h>' extern.h || die
281 - default
282 -}
283 -
284 -src_configure() {
285 - tc-export CC PKG_CONFIG
286 -}
287 -
288 -src_compile() {
289 - use elibc_musl && append-ldflags "-lfts"
290 -
291 - # We can't rely on LFS flags as it uses the fts.h interface which lacks 64-bit support.
292 - set -- \
293 - ${CC} ${CPPFLAGS} ${CFLAGS} \
294 - -DHAVE_STRLCPY -DHAVE_VIS -DHAVE_STRMODE \
295 - -DLONG_OFF_T -DHAVE_LINKAT \
296 - $(${PKG_CONFIG} --cflags libbsd-overlay) \
297 - -Wall ${LDFLAGS} *.c -o ${PN} \
298 - $(${PKG_CONFIG} --libs libbsd-overlay)
299 - echo "$@"
300 - "$@" || die
301 -}
302 -
303 -src_install() {
304 - dobin ${PN}
305 - doman ${PN}.1
306 -
307 - dosym pax /usr/bin/paxcpio
308 - newman cpio.1 paxcpio.1
309 -
310 - dosym pax /usr/bin/paxtar
311 - newman tar.1 paxtar.1
312 -}
313
314 diff --git a/app-arch/pax/pax-3.4.12.16-r1.ebuild b/app-arch/pax/pax-3.4.12.16-r1.ebuild
315 deleted file mode 100644
316 index 2b39f887b60..00000000000
317 --- a/app-arch/pax/pax-3.4.12.16-r1.ebuild
318 +++ /dev/null
319 @@ -1,40 +0,0 @@
320 -# Copyright 1999-2017 Gentoo Foundation
321 -# Distributed under the terms of the GNU General Public License v2
322 -
323 -EAPI="4"
324 -
325 -inherit eutils rpm versionator autotools
326 -
327 -MY_PV=$(get_version_component_range 1-2)
328 -MY_P="${PN}-${MY_PV}"
329 -RPM_PV=$(get_version_component_range 3)
330 -FC_PV=$(get_version_component_range 4)
331 -
332 -DESCRIPTION="pax (Portable Archive eXchange) is the POSIX standard archive tool"
333 -HOMEPAGE="http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/bin/pax/"
334 -SRC_URI="mirror://fedora-dev/releases/${FC_PV}/Everything/source/SRPMS/${MY_P}-${RPM_PV}.fc${FC_PV}.src.rpm"
335 -
336 -LICENSE="GPL-2"
337 -SLOT="0"
338 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
339 -IUSE=""
340 -
341 -S=${WORKDIR}/${MY_P}
342 -
343 -src_prepare() {
344 - rpm_spec_epatch ../${PN}.spec
345 - epatch "${FILESDIR}"/pax-3.4-x32.patch
346 - epatch "${FILESDIR}"/pax-3.4-fix-fts-includes.patch
347 - epatch "${FILESDIR}"/pax-3.4-sysmacros.patch
348 - sed -i configure.in \
349 - -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
350 - -e 's|-Werror||g' \
351 - -e '/AC_PROG_RANLIB/a AC_PROG_MKDIR_P' \
352 - || die
353 - eautoreconf
354 -}
355 -
356 -src_install() {
357 - default
358 - dodoc AUTHORS ChangeLog NEWS README THANKS
359 -}
360
361 diff --git a/app-arch/pax/pax-3.4.12.16.ebuild b/app-arch/pax/pax-3.4.12.16.ebuild
362 deleted file mode 100644
363 index 42fbe159f96..00000000000
364 --- a/app-arch/pax/pax-3.4.12.16.ebuild
365 +++ /dev/null
366 @@ -1,38 +0,0 @@
367 -# Copyright 1999-2017 Gentoo Foundation
368 -# Distributed under the terms of the GNU General Public License v2
369 -
370 -EAPI="4"
371 -
372 -inherit eutils rpm versionator autotools
373 -
374 -MY_PV=$(get_version_component_range 1-2)
375 -MY_P="${PN}-${MY_PV}"
376 -RPM_PV=$(get_version_component_range 3)
377 -FC_PV=$(get_version_component_range 4)
378 -
379 -DESCRIPTION="pax (Portable Archive eXchange) is the POSIX standard archive tool"
380 -HOMEPAGE="http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/bin/pax/"
381 -SRC_URI="mirror://fedora-dev/releases/${FC_PV}/Everything/source/SRPMS/${MY_P}-${RPM_PV}.fc${FC_PV}.src.rpm"
382 -
383 -LICENSE="GPL-2"
384 -SLOT="0"
385 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
386 -IUSE=""
387 -
388 -S=${WORKDIR}/${MY_P}
389 -
390 -src_prepare() {
391 - rpm_spec_epatch ../${PN}.spec
392 - epatch "${FILESDIR}"/pax-3.4-x32.patch
393 - epatch "${FILESDIR}"/pax-3.4-sysmacros.patch
394 - sed -i configure.in \
395 - -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
396 - -e 's|-Werror||g' \
397 - || die
398 - eautoreconf
399 -}
400 -
401 -src_install() {
402 - default
403 - dodoc AUTHORS ChangeLog NEWS README THANKS
404 -}