summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-11-01 01:18:48 +0000
committerMike Frysinger <vapier@gentoo.org>2006-11-01 01:18:48 +0000
commit1cc681a67a59e1d7f86d09975885a4e79a6cdb35 (patch)
treece930940dfd85ddee543abe6945ed389df64bb5f /app-arch
parentold (diff)
downloadhistorical-1cc681a67a59e1d7f86d09975885a4e79a6cdb35.tar.gz
historical-1cc681a67a59e1d7f86d09975885a4e79a6cdb35.tar.bz2
historical-1cc681a67a59e1d7f86d09975885a4e79a6cdb35.zip
Add fix from upstream.
Package-Manager: portage-2.1.2_rc1-r1
Diffstat (limited to 'app-arch')
-rw-r--r--app-arch/tar/ChangeLog8
-rw-r--r--app-arch/tar/Manifest32
-rw-r--r--app-arch/tar/files/digest-tar-1.16-r13
-rw-r--r--app-arch/tar/files/tar-1.16-segv.patch122
-rw-r--r--app-arch/tar/tar-1.16-r1.ebuild66
5 files changed, 216 insertions, 15 deletions
diff --git a/app-arch/tar/ChangeLog b/app-arch/tar/ChangeLog
index 490f753d912e..a10a8a7538d1 100644
--- a/app-arch/tar/ChangeLog
+++ b/app-arch/tar/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-arch/tar
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v 1.70 2006/10/21 21:45:56 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v 1.71 2006/11/01 01:18:48 vapier Exp $
+
+*tar-1.16-r1 (01 Nov 2006)
+
+ 01 Nov 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/tar-1.16-segv.patch, +tar-1.16-r1.ebuild:
+ Add fix from upstream.
*tar-1.16 (21 Oct 2006)
diff --git a/app-arch/tar/Manifest b/app-arch/tar/Manifest
index fd583814a4e8..b44f2c3041b3 100644
--- a/app-arch/tar/Manifest
+++ b/app-arch/tar/Manifest
@@ -25,6 +25,10 @@ AUX tar-1.15.1-lseek.patch 5270 RMD160 5f9b369b4c6bb0160c6cc4fe37af83d9cc1e016f
MD5 c6222f8e6644e897361b0426c753fc8d files/tar-1.15.1-lseek.patch 5270
RMD160 5f9b369b4c6bb0160c6cc4fe37af83d9cc1e016f files/tar-1.15.1-lseek.patch 5270
SHA256 a633c41829595a7f31d25cd0711d473bb79c3bf552a6fd6f13f8758d3342b8ba files/tar-1.15.1-lseek.patch 5270
+AUX tar-1.16-segv.patch 3565 RMD160 ce5462948e80e1ba04d56e0463d44a6a7576470b SHA1 da656c13d35a0fa65252cf7029906f2cf5dc920a SHA256 f728d761017e7257584c6a59c2ad74bd37a1485d8a5e1eb90c66325a4ff39fce
+MD5 f50e8ad7424115b7d9a3343837a6c216 files/tar-1.16-segv.patch 3565
+RMD160 ce5462948e80e1ba04d56e0463d44a6a7576470b files/tar-1.16-segv.patch 3565
+SHA256 f728d761017e7257584c6a59c2ad74bd37a1485d8a5e1eb90c66325a4ff39fce files/tar-1.16-segv.patch 3565
AUX tar-CVE-2006-0300.patch 3677 RMD160 924b5e6aa64df7cb6ba3314ae114b12e26db3210 SHA1 603d534a11270dd0262babfea4cd03e1958fc333 SHA256 1eb197a54ef561c2e5589663bf7cc75dbb641907dec295210003bfe990699e90
MD5 2e0f6c79abe0ead888d78dfeca151ff0 files/tar-CVE-2006-0300.patch 3677
RMD160 924b5e6aa64df7cb6ba3314ae114b12e26db3210 files/tar-CVE-2006-0300.patch 3677
@@ -39,14 +43,14 @@ EBUILD tar-1.15.1-r1.ebuild 2094 RMD160 a14ed9e1f5384020f4012802407fe91fb549ed1d
MD5 38a7572f6d97b2dc85520da201c86d94 tar-1.15.1-r1.ebuild 2094
RMD160 a14ed9e1f5384020f4012802407fe91fb549ed1d tar-1.15.1-r1.ebuild 2094
SHA256 78b08063af2c1eb28d0cf304354574e2cd0ae2ec9e3e190a808f4c0c8fb2fcd7 tar-1.15.1-r1.ebuild 2094
-EBUILD tar-1.16.ebuild 1630 RMD160 1488d9375a9e05c1165c1de7b6a15c629c0854c6 SHA1 c0a80d98e53ecd6c0aaaed0ead2fe7b836d0db9b SHA256 48ed4eaa7288dd63ffd6a11a82775436d03a54717b301025103fcc71a5609fc7
-MD5 2aabc61107349ee7954a02a04ce70436 tar-1.16.ebuild 1630
-RMD160 1488d9375a9e05c1165c1de7b6a15c629c0854c6 tar-1.16.ebuild 1630
-SHA256 48ed4eaa7288dd63ffd6a11a82775436d03a54717b301025103fcc71a5609fc7 tar-1.16.ebuild 1630
-MISC ChangeLog 12727 RMD160 d13fdc4e928156e0f9ae2fdd6e922920bdeee929 SHA1 d938921c89fe8ad309d29fa3bbbee5bbda517f37 SHA256 1e6873e9b1f3c9884d8080b0713e85d72608ffad4f07646de446d95abd03172b
-MD5 e7967f1b89aed5ace0b7fac32a90ff66 ChangeLog 12727
-RMD160 d13fdc4e928156e0f9ae2fdd6e922920bdeee929 ChangeLog 12727
-SHA256 1e6873e9b1f3c9884d8080b0713e85d72608ffad4f07646de446d95abd03172b ChangeLog 12727
+EBUILD tar-1.16-r1.ebuild 1671 RMD160 30bfcf2ea4e25a9ada88b016b379de7a63aa2fb3 SHA1 bbacee3c2f526933f676ee2cd6f2f9b55c722561 SHA256 bfd252ae1092d3855a74bb4e6994be50a08eea049e66ce15c65f6b2e87a848d4
+MD5 53ad3a0e07f17fae0559bceceadcab6d tar-1.16-r1.ebuild 1671
+RMD160 30bfcf2ea4e25a9ada88b016b379de7a63aa2fb3 tar-1.16-r1.ebuild 1671
+SHA256 bfd252ae1092d3855a74bb4e6994be50a08eea049e66ce15c65f6b2e87a848d4 tar-1.16-r1.ebuild 1671
+MISC ChangeLog 12882 RMD160 7fe84c3fc5a5c577ae2fbaf2cd753c68cd4d8d70 SHA1 4e9e7bf04a19dd94e230aa291b97d78f5109ed49 SHA256 21f6afd41e4cde4edba3ba4302fd124a0cf2f531d8fce4f2f6bcf36e53b28def
+MD5 8f04871d62b2b96ab8f9e5018ab634e0 ChangeLog 12882
+RMD160 7fe84c3fc5a5c577ae2fbaf2cd753c68cd4d8d70 ChangeLog 12882
+SHA256 21f6afd41e4cde4edba3ba4302fd124a0cf2f531d8fce4f2f6bcf36e53b28def ChangeLog 12882
MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92
MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 metadata.xml 164
@@ -54,13 +58,13 @@ SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 metadata
MD5 f7a21f9f5928613f14747b9af765414f files/digest-tar-1.15.1-r1 238
RMD160 f3ddee28290c332c2f47deb49c798a117bcbcb60 files/digest-tar-1.15.1-r1 238
SHA256 eea23c8236851bf6a88f8c709db6bd7a4ba13c77bb454702bee6d9d494c5c8e6 files/digest-tar-1.15.1-r1 238
-MD5 d83012aa7c110e18a7515d2445728211 files/digest-tar-1.16 232
-RMD160 84073f7ff171b3e55397133047bfcc9e51df72ab files/digest-tar-1.16 232
-SHA256 fd938834fa8b004b0d930585435d930db0a29a5d8f1dcdc65d8c1e8ff3d6a4d2 files/digest-tar-1.16 232
+MD5 d83012aa7c110e18a7515d2445728211 files/digest-tar-1.16-r1 232
+RMD160 84073f7ff171b3e55397133047bfcc9e51df72ab files/digest-tar-1.16-r1 232
+SHA256 fd938834fa8b004b0d930585435d930db0a29a5d8f1dcdc65d8c1e8ff3d6a4d2 files/digest-tar-1.16-r1 232
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
-iD8DBQFFRH10amhnQswr0vIRAsBCAKCKlrstbGEl6i8ARphzS5DrH55pdgCbBAN7
-eup/+JARfhw7PNbwnNk5R/E=
-=AM6S
+iD8DBQFFR/YCamhnQswr0vIRAvfMAJwILogIufXlgY/CSkiPamrNvzBIzQCfdi/d
+0eYIeMi+z4DV3X9svOraTZI=
+=eB0H
-----END PGP SIGNATURE-----
diff --git a/app-arch/tar/files/digest-tar-1.16-r1 b/app-arch/tar/files/digest-tar-1.16-r1
new file mode 100644
index 000000000000..9e015428baa6
--- /dev/null
+++ b/app-arch/tar/files/digest-tar-1.16-r1
@@ -0,0 +1,3 @@
+MD5 d6fe544e834a8f9db6e6c7c2d38ec100 tar-1.16.tar.bz2 1785682
+RMD160 9d4a8a55ae0b62395cc7f72421fd274c443caf66 tar-1.16.tar.bz2 1785682
+SHA256 5037dfa4bdd426e680345681070a484f7f4edfa0b3381f595ca6dbc6ca1f5361 tar-1.16.tar.bz2 1785682
diff --git a/app-arch/tar/files/tar-1.16-segv.patch b/app-arch/tar/files/tar-1.16-segv.patch
new file mode 100644
index 000000000000..f99fae50df8c
--- /dev/null
+++ b/app-arch/tar/files/tar-1.16-segv.patch
@@ -0,0 +1,122 @@
+fix from upstream
+
+http://lists.gnu.org/archive/html/bug-tar/2006-10/msg00042.html
+
+To: "Karl Berry" <karl@freefriends.org>
+From: "Sergey Poznyakoff" <gray@Mirddin.farlep.net>
+Date: Wed, 01 Nov 2006 02:17:25 +0200
+Subject: Re: [Bug-tar] tar 1.16 segmentation fault
+
+Karl Berry <karl@freefriends.org> wrote:
+
+> I typed (by mistake):
+> tar czfT x.tgz `cat /tmp/b`
+>
+> and got:
+> Segmentation fault
+
+Thank you. I have installed the following fix:
+
+2006-11-01 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * src/tar.c: Handle zero-length entries in a files-from file
+
+Index: src/tar.c
+===================================================================
+RCS file: /cvsroot/tar/tar/src/tar.c,v
+retrieving revision 1.160
+diff -p -u -r1.160 tar.c
+--- src/tar.c 17 Oct 2006 08:13:43 -0000 1.160
++++ src/tar.c 1 Nov 2006 00:15:40 -0000
+@@ -953,7 +953,8 @@ enum read_file_list_state /* Result of
+ {
+ file_list_success, /* OK, name read successfully */
+ file_list_end, /* End of list file */
+- file_list_zero /* Zero separator encountered where it should not */
++ file_list_zero, /* Zero separator encountered where it should not */
++ file_list_skip /* Empty (zero-length) entry encountered, skip it */
+ };
+
+ /* Read from FP a sequence of characters up to FILENAME_TERMINATOR and put them
+@@ -971,13 +972,15 @@ read_name_from_file (FILE *fp, struct ob
+ {
+ /* We have read a zero separator. The file possibly is
+ zero-separated */
+- /* FATAL_ERROR((0, 0, N_("file name contains null character"))); */
+ return file_list_zero;
+ }
+ obstack_1grow (stk, c);
+ counter++;
+ }
+
++ if (counter == 0 && c != EOF)
++ return file_list_skip;
++
+ obstack_1grow (stk, 0);
+
+ return (counter == 0 && c == EOF) ? file_list_end : file_list_success;
+@@ -1058,31 +1061,42 @@ update_argv (const char *filename, struc
+ open_fatal (filename);
+ }
+
+- while ((read_state = read_name_from_file (fp, &argv_stk)) == file_list_success)
+- count++;
+-
+- if (read_state == file_list_zero)
++ while ((read_state = read_name_from_file (fp, &argv_stk)) != file_list_end)
+ {
+- size_t size;
++ switch (read_state)
++ {
++ case file_list_success:
++ count++;
++ break;
++
++ case file_list_end: /* won't happen, just to pacify gcc */
++ break;
+
+- WARN ((0, 0, N_("%s: file name read contains nul character"),
+- quotearg_colon (filename)));
++ case file_list_zero:
++ {
++ size_t size;
+
+- /* Prepare new stack contents */
+- size = obstack_object_size (&argv_stk);
+- p = obstack_finish (&argv_stk);
+- for (; size > 0; size--, p++)
+- if (*p)
+- obstack_1grow (&argv_stk, *p);
+- else
+- obstack_1grow (&argv_stk, '\n');
+- obstack_1grow (&argv_stk, 0);
+- count = 1;
+-
+- /* Read rest of files using new filename terminator */
+- filename_terminator = 0;
+- while (read_name_from_file (fp, &argv_stk) == file_list_success)
+- count++;
++ WARN ((0, 0, N_("%s: file name read contains nul character"),
++ quotearg_colon (filename)));
++
++ /* Prepare new stack contents */
++ size = obstack_object_size (&argv_stk);
++ p = obstack_finish (&argv_stk);
++ for (; size > 0; size--, p++)
++ if (*p)
++ obstack_1grow (&argv_stk, *p);
++ else
++ obstack_1grow (&argv_stk, '\n');
++ obstack_1grow (&argv_stk, 0);
++ count = 1;
++ /* Read rest of files using new filename terminator */
++ filename_terminator = 0;
++ break;
++ }
++
++ case file_list_skip:
++ break;
++ }
+ }
+
+ if (!is_stdin)
diff --git a/app-arch/tar/tar-1.16-r1.ebuild b/app-arch/tar/tar-1.16-r1.ebuild
new file mode 100644
index 000000000000..e8657383ff2d
--- /dev/null
+++ b/app-arch/tar/tar-1.16-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.16-r1.ebuild,v 1.1 2006/11/01 01:18:48 vapier Exp $
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="Use this to make tarballs :)"
+HOMEPAGE="http://www.gnu.org/software/tar/"
+SRC_URI="http://ftp.gnu.org/gnu/tar/${P}.tar.bz2
+ ftp://alpha.gnu.org/gnu/tar/${P}.tar.bz2
+ mirror://gnu/tar/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="nls static"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.10.35 )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-segv.patch
+
+ if ! use userland_GNU ; then
+ sed -i \
+ -e 's:/backup\.sh:/gbackup.sh:' \
+ scripts/{backup,dump-remind,restore}.in \
+ || die "sed non-GNU"
+ fi
+}
+
+src_compile() {
+ local myconf
+ use static && append-ldflags -static
+ use userland_GNU || myconf="--program-prefix=g"
+ # Work around bug in sandbox #67051
+ gl_cv_func_chown_follows_symlink=yes \
+ econf \
+ --enable-backup-scripts \
+ --bindir=/bin \
+ --libexecdir=/usr/sbin \
+ $(use_enable nls) \
+ ${myconf} || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ local p=""
+ use userland_GNU || p=g
+
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ # a nasty yet required symlink
+ dodir /etc
+ dosym /usr/sbin/${p}rmt /etc/${p}rmt
+
+ dodoc AUTHORS ChangeLog* NEWS README* PORTS THANKS
+ newman "${FILESDIR}"/tar.1 ${p}tar.1
+ mv "${D}"/usr/sbin/${p}backup{,-tar}
+ mv "${D}"/usr/sbin/${p}restore{,-tar}
+
+ rm -f "${D}"/usr/$(get_libdir)/charset.alias
+}