summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2010-03-14 16:06:33 +0000
committerThilo Bangert <bangert@gentoo.org>2010-03-14 16:06:33 +0000
commite3721b89c60694de2f1be104b15c8708dd904008 (patch)
treec30f877b24c9566166f57f7460cf7b4fa8cd7cc7 /app-arch/rzip
parentDon't use absolute paths in symlink (diff)
downloadhistorical-e3721b89c60694de2f1be104b15c8708dd904008.tar.gz
historical-e3721b89c60694de2f1be104b15c8708dd904008.tar.bz2
historical-e3721b89c60694de2f1be104b15c8708dd904008.zip
prepare for stable: remove broken version - remove -r2. Users with broken archives are encouraged to use the patch from bug #217552
Package-Manager: portage-2.2_rc67/cvs/Linux i686
Diffstat (limited to 'app-arch/rzip')
-rw-r--r--app-arch/rzip/ChangeLog8
-rw-r--r--app-arch/rzip/Manifest8
-rw-r--r--app-arch/rzip/files/rzip-2.0-darwin.patch188
-rw-r--r--app-arch/rzip/files/rzip-2.1-handle-broken-archive.patch81
-rw-r--r--app-arch/rzip/rzip-2.1-r1.ebuild14
-rw-r--r--app-arch/rzip/rzip-2.1-r2.ebuild28
-rw-r--r--app-arch/rzip/rzip-2.1.ebuild33
7 files changed, 22 insertions, 338 deletions
diff --git a/app-arch/rzip/ChangeLog b/app-arch/rzip/ChangeLog
index 0c1f0553e240..7d8d6a30e7f9 100644
--- a/app-arch/rzip/ChangeLog
+++ b/app-arch/rzip/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-arch/rzip
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/rzip/ChangeLog,v 1.29 2010/01/17 19:30:05 bangert Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rzip/ChangeLog,v 1.30 2010/03/14 16:06:31 bangert Exp $
+
+ 14 Mar 2010; Thilo Bangert <bangert@gentoo.org>
+ -files/rzip-2.0-darwin.patch, -rzip-2.1.ebuild, rzip-2.1-r1.ebuild,
+ -rzip-2.1-r2.ebuild, -files/rzip-2.1-handle-broken-archive.patch:
+ prepare for stable: remove broken version - remove -r2. Users with broken
+ archives are encouraged to use the patch from bug #217552
*rzip-2.1-r2 (17 Jan 2010)
*rzip-2.1-r1 (17 Jan 2010)
diff --git a/app-arch/rzip/Manifest b/app-arch/rzip/Manifest
index 0d4ab68081ee..19161780950a 100644
--- a/app-arch/rzip/Manifest
+++ b/app-arch/rzip/Manifest
@@ -1,9 +1,5 @@
-AUX rzip-2.0-darwin.patch 5035 RMD160 6254a18cfc53f6b427c5fecca5cd1a7215a71fcd SHA1 42a0c4cd4703d9acd779ce8a80ec789e00ad9c67 SHA256 362b0ed1ef42d5c4ca0329c4d2976bd6dc832a54aae2bf34397777f74d851845
AUX rzip-2.1-darwin.patch 5209 RMD160 1ef784996ec28674f376ca23e4fde7f0e90ef038 SHA1 e0764a4c1d7d3d31cb3d0654522fe26cddbfa313 SHA256 55829f129ae9d53d9bb6a01852e41a2d3b9f130f708426042103f0728948a885
-AUX rzip-2.1-handle-broken-archive.patch 2488 RMD160 392a5fab1b8e5f0d1ac9ceccf0ea79e718df312e SHA1 c998a979f0a82dcaf014d4103b1740f99b7cefb6 SHA256 19b2e10343a733867905e1b959577a53e68a229b750b241cdd559a3ffcf3979d
DIST rzip-2.1.tar.gz 46785 RMD160 7ef5299cd526c8c49a779e050ad515a53180c1c5 SHA1 efeafc7a5bdd7daa0cea8d797ff21aa28bdfc8d9 SHA256 4bb96f4d58ccf16749ed3f836957ce97dbcff3e3ee5fd50266229a48f89815b7
-EBUILD rzip-2.1-r1.ebuild 700 RMD160 0cb79cf1143b902ed48b80a0124c74544d9f011b SHA1 92d79854ac0b0afd4e1ec3e57bc2739e15162cef SHA256 25f7f85f87ca0d35146067b9fde60207d4d07021bbe8f81b7a595d07abbe9269
-EBUILD rzip-2.1-r2.ebuild 760 RMD160 12ad59fac723cc3a067c7ae5da588d9dacd51f1f SHA1 b3b4f2ef7dd47b9f82cf1b836babb70074109571 SHA256 3774a38e86a44eaead0018392ab7209e740b394b07cfa6cbd62d130383c6deb5
-EBUILD rzip-2.1.ebuild 888 RMD160 2224876f1b88b416e6e473f7894a7f87d01709d9 SHA1 b0c624913e80ccdf80b5314d60f416451f3a31c2 SHA256 b2ddcf54e1d414ad9f5b4c93aed6c80bbb868f8885e29633aaf3912a80ad13b4
-MISC ChangeLog 3666 RMD160 cf2d2616524a9bb120104443894b434246a9a253 SHA1 d3b65a86c409615cf48f94baa5044121ccb07ea1 SHA256 e4d629fc48f65aa1b579502843af1238f119693572b6eda8359cb8b5cd51f304
+EBUILD rzip-2.1-r1.ebuild 1196 RMD160 5ec23872a4ff186ce89f69871787f0d3828a75f4 SHA1 4f3b2fdd342b376cda8bc87bb7d4daeee9aef930 SHA256 d88456fba49dd110c652c986a7ad242dab83cf316256541a173b07d853dbafd4
+MISC ChangeLog 3991 RMD160 ded3ff620611407d9456b4a7fa5ca5405c3765df SHA1 7140a73ebfcc2d7f6c42bb7ea98fd4fcdb09a7f5 SHA256 16c019d5433e7b1c99bf54d081a80d3a59b4e5cbdf709fddef0255bfab17f6d3
MISC metadata.xml 290 RMD160 b9b86283c09349c8827faef7d3ef5f724a248e77 SHA1 ae1c8e62d75c94ff50b8a5391afb6008460963aa SHA256 380e26e9262298b9cb31e863a9ab641f6fbdc8c50bda2cf2e47fd399f9cb5e85
diff --git a/app-arch/rzip/files/rzip-2.0-darwin.patch b/app-arch/rzip/files/rzip-2.0-darwin.patch
deleted file mode 100644
index b7858d83529c..000000000000
--- a/app-arch/rzip/files/rzip-2.0-darwin.patch
+++ /dev/null
@@ -1,188 +0,0 @@
---- rzip-2.0/Makefile.in
-+++ rzip-2.0/Makefile.in
-@@ -3,8 +3,8 @@
-
- prefix=@prefix@
- exec_prefix=@exec_prefix@
--INSTALL_BIN=$(exec_prefix)/bin
--INSTALL_MAN=$(prefix)/man
-+INSTALL_BIN=$(DESTDIR)/@bindir@
-+INSTALL_MAN=$(DESTDIR)/@mandir@
-
- LIBS=@LIBS@
- CC=@CC@
-@@ -20,7 +20,7 @@
- .SUFFIXES:
- .SUFFIXES: .c .o
-
--OBJS= rzip.o runzip.o main.o stream.o util.o crc32.o
-+OBJS= rzip.o runzip.o strutils.o main.o stream.o util.o crc32.o
-
- # note that the -I. is needed to handle config.h when using VPATH
- .c.o:
-@@ -35,6 +35,7 @@
- ${INSTALLCMD} -m 755 rzip ${INSTALL_BIN}
- -mkdir -p ${INSTALL_MAN}/man1
- ${INSTALLCMD} -m 644 $(srcdir)/rzip.1 ${INSTALL_MAN}/man1/
-+ ln -s rzip $(INSTALL_BIN)/runzip
-
- rzip: $(OBJS)
- $(CC) $(CFLAGS) -o rzip $(OBJS) $(LIBS)
---- rzip-2.0/configure.in
-+++ rzip-2.0/configure.in
-@@ -2,6 +2,12 @@
- AC_INIT(main.c)
- AC_CONFIG_HEADER(config.h)
-
-+# test prior to AC_PROG_CC, since it sets cflags on it's own.
-+if test x"CFLAGS" = x
-+then
-+ DEFAULT_CFLAGS="-g -Wall -O3"
-+fi
-+
- dnl Checks for programs.
- AC_PROG_CC
- AC_PROG_INSTALL
-@@ -9,10 +15,10 @@
- AC_SYS_LARGEFILE
-
- # Thanks to Martin Pool
--if test x"$GCC" = xyes
-+if test x"$GCC" = xyes && test x"$DEFAULT_CFLAGS" != x
- then
- CFLAGS="-g -Wall -O3"
-- AC_MSG_NOTICE([Setting gcc options: $CFLAGS])
-+ AC_MSG_RESULT([Setting default cflags: $CFLAGS])
- fi
-
- AC_CHECK_HEADERS(fcntl.h sys/time.h sys/unistd.h unistd.h)
-@@ -26,31 +32,15 @@
- AC_CHECK_SIZEOF(long)
- AC_CHECK_SIZEOF(short)
-
--AC_CACHE_CHECK([for large file support],rzip_cv_HAVE_LARGE_FILES,[
--AC_TRY_RUN([
--#include <stdio.h>
--#include <sys/types.h>
--main() { return (sizeof(off_t) == 4); }],
--rzip_cv_HAVE_LARGE_FILES=yes,
--rzip_cv_HAVE_LARGE_FILES=no,
--rzip_cv_HAVE_LARGE_FILES=cross)])
--if test x"$rzip_cv_HAVE_LARGE_FILES" = x"yes"; then
-- AC_DEFINE(HAVE_LARGE_FILES, 1, [ ])
--fi
--
--
-+AC_SYS_LARGEFILE
- AC_C_INLINE
-
-
- AC_CHECK_LIB(bz2, BZ2_bzBuffToBuffCompress, ,
- AC_MSG_ERROR([Could not find bz2 library - please install libbz2-devel]))
-
--echo $ac_n "checking for errno in errno.h... $ac_c"
--AC_TRY_COMPILE([#include <errno.h>],[int i = errno],
--echo yes; AC_DEFINE(HAVE_ERRNO_DECL),
--echo no)
--
- AC_CHECK_FUNCS(mmap strerror)
- AC_CHECK_FUNCS(getopt_long)
-+AC_CHECK_FUNCS(strndup)
-
- AC_OUTPUT(Makefile)
---- rzip-2.0/main.c
-+++ rzip-2.0/main.c
-@@ -18,6 +18,7 @@
- /* rzip compression - main program */
-
- #include "rzip.h"
-+#include "strutils.h"
-
- static void usage(void)
- {
-@@ -58,7 +59,7 @@
- fatal("bad magic file descriptor!?\n");
- }
-
--#if HAVE_LARGE_FILES
-+#if _LARGE_FILES
- v = htonl(st.st_size & 0xFFFFFFFF);
- memcpy(&magic[6], &v, 4);
- v = htonl(st.st_size >> 32);
---- rzip-2.0/rzip.h
-+++ rzip-2.0/rzip.h
-@@ -94,7 +94,7 @@
- #define strerror(i) sys_errlist[i]
- #endif
-
--#ifndef HAVE_ERRNO_DECL
-+#if !defined(errno)
- extern int errno;
- #endif
-
---- rzip-2.0/strutils.c
-+++ rzip-2.0/strutils.c
-@@ -0,0 +1,29 @@
-+/*
-+ Copyright (C) 2005 Gentoo Foundation
-+
-+ This program is free software; you can redistribute it and/or modify
-+ it under the terms of the GNU General Public License as published by
-+ the Free Software Foundation; either version 2 of the License, or
-+ (at your option) any later version.
-+
-+ This program is distributed in the hope that it will be useful,
-+ but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ GNU General Public License for more details.
-+
-+ You should have received a copy of the GNU General Public License
-+ along with this program; if not, write to the Free Software
-+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-+*/
-+/* string utilities that may be missing on various platforms */
-+
-+#include "strutils.h"
-+
-+#ifndef HAVE_STRNDUP
-+char* strndup(const char* s, size_t n) {
-+ char* ret = malloc(n + 1);
-+ if (ret == NULL) return(ret);
-+ ret[n] = '\0';
-+ return(memcpy(ret, s, n));
-+}
-+#endif
---- rzip-2.0/strutils.h
-+++ rzip-2.0/strutils.h
-@@ -0,0 +1,31 @@
-+/*
-+ Copyright (C) 2005 Gentoo Foundation
-+
-+ This program is free software; you can redistribute it and/or modify
-+ it under the terms of the GNU General Public License as published by
-+ the Free Software Foundation; either version 2 of the License, or
-+ (at your option) any later version.
-+
-+ This program is distributed in the hope that it will be useful,
-+ but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ GNU General Public License for more details.
-+
-+ You should have received a copy of the GNU General Public License
-+ along with this program; if not, write to the Free Software
-+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-+*/
-+/* string utilities that may be missing on various platforms */
-+
-+#ifndef _HEADER_STRUTIL
-+#define _HEADER_STRUTIL 1
-+
-+#include <stdlib.h>
-+#include <string.h>
-+#include "config.h"
-+
-+# ifndef HAVE_STRNDUP
-+char* strndup(const char* s, size_t n);
-+# endif
-+
-+#endif
diff --git a/app-arch/rzip/files/rzip-2.1-handle-broken-archive.patch b/app-arch/rzip/files/rzip-2.1-handle-broken-archive.patch
deleted file mode 100644
index 860c866eeab3..000000000000
--- a/app-arch/rzip/files/rzip-2.1-handle-broken-archive.patch
+++ /dev/null
@@ -1,81 +0,0 @@
-diff -ur rzip-2.1/main.c rzip-2.1-patched/main.c
---- rzip-2.1/main.c 2006-02-14 01:38:23.000000000 +0100
-+++ rzip-2.1-patched/main.c 2008-07-30 19:29:49.426926726 +0200
-@@ -35,6 +35,7 @@
- printf(" -k keep existing files\n");
- printf(" -P show compression progress\n");
- printf(" -L level set compression level\n");
-+ printf(" -l nr set higher bits of the expected file length to nr\n");
- printf(" -V show version\n");
- #if 0
- /* damn, this will be quite hard to do */
-@@ -172,6 +173,13 @@
-
-
- read_magic(fd_in, fd_out, &expected_size);
-+
-+#ifdef HAVE_LARGE_FILES
-+ if (control->nr) {
-+ expected_size = ( ((off_t)(control->nr))<<32) | (expected_size & 0xFFFFFFFF);
-+ }
-+#endif
-+
- runzip_fd(fd_in, fd_out, fd_hist, expected_size);
-
- if ((control->flags & FLAG_TEST_ONLY) == 0) {
-@@ -267,7 +275,7 @@
- control.flags |= FLAG_DECOMPRESS;
- }
-
-- while ((c = getopt(argc, argv, "h0123456789dS:tVvkfPo:L:")) != -1) {
-+ while ((c = getopt(argc, argv, "h0123456789dS:tVvkl:fPo:L:")) != -1) {
- if (isdigit(c)) {
- control.compression_level = c - '0';
- continue;
-@@ -295,6 +303,12 @@
- case 'k':
- control.flags |= FLAG_KEEP_FILES;
- break;
-+ case 'l':
-+#ifndef HAVE_LARGE_FILES
-+ fatal("You used the -l option, but this rzip doesn't support large files.");
-+#endif
-+ control.nr = atoi(optarg);
-+ break;
- case 'v':
- control.verbosity++;
- break;
-diff -ur rzip-2.1/runzip.c rzip-2.1-patched/runzip.c
---- rzip-2.1/runzip.c 2003-10-08 00:08:28.000000000 +0200
-+++ rzip-2.1-patched/runzip.c 2008-07-30 19:34:03.803564086 +0200
-@@ -179,10 +179,16 @@
- */
- off_t runzip_fd(int fd_in, int fd_out, int fd_hist, off_t expected_size)
- {
-- off_t total = 0;
-- while (total < expected_size) {
-- total += runzip_chunk(fd_in, fd_out, fd_hist);
-+ off_t total = 0, fin=1;
-+ while (fin && total < expected_size) {
-+ fin = runzip_chunk(fd_in, fd_out, fd_hist);
-+ total += fin;
- }
-+
-+ if (total < expected_size) {
-+ fprintf(stderr, "Warning: The uncompressed size does not equal the expected file size.\nHowever if you used the -l option, this may be okay.\n");
-+ }
-+
- return total;
- }
-
-diff -ur rzip-2.1/rzip.h rzip-2.1-patched/rzip.h
---- rzip-2.1/rzip.h 2006-02-14 01:38:23.000000000 +0100
-+++ rzip-2.1-patched/rzip.h 2008-07-30 19:29:49.426926726 +0200
-@@ -113,6 +113,7 @@
- unsigned compression_level;
- unsigned flags;
- unsigned verbosity;
-+ unsigned nr;
- };
-
- void fatal(const char *format, ...);
diff --git a/app-arch/rzip/rzip-2.1-r1.ebuild b/app-arch/rzip/rzip-2.1-r1.ebuild
index 7d0ae6a645ec..0e1326ef903e 100644
--- a/app-arch/rzip/rzip-2.1-r1.ebuild
+++ b/app-arch/rzip/rzip-2.1-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/rzip/rzip-2.1-r1.ebuild,v 1.1 2010/01/17 19:30:05 bangert Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rzip/rzip-2.1-r1.ebuild,v 1.2 2010/03/14 16:06:31 bangert Exp $
EAPI="2"
@@ -25,3 +25,15 @@ src_prepare() {
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."
}
+
+pkg_postinst() {
+ ewarn "Warning: Gentoo shipped a broken rzip for quite some time. During"
+ ewarn "compression of large files it didn't set the right file size, so"
+ ewarn "if you have any reason to believe that your archive was compressed "
+ ewarn "with an old Gentoo rzip, please refer to "
+ ewarn " http://bugs.gentoo.org/show_bug.cgi?id=217552 "
+ ewarn "for the rzip-handle-broken-archive.patch patch to rescue your"
+ ewarn "data."
+ ewarn
+ ewarn "We apologize for the inconvenience."
+}
diff --git a/app-arch/rzip/rzip-2.1-r2.ebuild b/app-arch/rzip/rzip-2.1-r2.ebuild
deleted file mode 100644
index a6250fb94cd7..000000000000
--- a/app-arch/rzip/rzip-2.1-r2.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/rzip/rzip-2.1-r2.ebuild,v 1.1 2010/01/17 19:30:05 bangert Exp $
-
-EAPI="2"
-
-inherit autotools eutils
-
-DESCRIPTION="Compression program for large files"
-HOMEPAGE="http://rzip.samba.org"
-SRC_URI="http://rzip.samba.org/ftp/rzip/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE=""
-
-DEPEND="app-arch/bzip2"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-2.1-darwin.patch
- epatch "${FILESDIR}"/${PN}-2.1-handle-broken-archive.patch
- eautoreconf
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed."
-}
diff --git a/app-arch/rzip/rzip-2.1.ebuild b/app-arch/rzip/rzip-2.1.ebuild
deleted file mode 100644
index b3c66cfb6df5..000000000000
--- a/app-arch/rzip/rzip-2.1.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/rzip/rzip-2.1.ebuild,v 1.12 2010/01/10 00:36:27 jer Exp $
-
-inherit autotools eutils
-
-DESCRIPTION="compression program for large files"
-HOMEPAGE="http://rzip.samba.org"
-SRC_URI="http://rzip.samba.org/ftp/rzip/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 hppa ppc ppc64 sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE=""
-
-DEPEND="app-arch/bzip2"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-2.0-darwin.patch
- eautoreconf
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed."
-}
-
-pkg_postinst() {
- ewarn "It has been reported that this tool will fail on files >4GB"
- ewarn "Please see https://bugs.gentoo.org/show_bug.cgi?id=217552 for more"
- ewarn "information."
-}