summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-08-26 21:44:56 +0000
committerJeroen Roovers <jer@gentoo.org>2010-08-26 21:44:56 +0000
commit28dc2e194e15929cab302b9965b55cda6f79b908 (patch)
tree3392393ed3dbb4d0894ecc7904d515d9f517883e /app-arch/rzip
parentApply patch from upstream which fixes compilation with -dbus. Bug #334533 (diff)
downloadgentoo-2-28dc2e194e15929cab302b9965b55cda6f79b908.tar.gz
gentoo-2-28dc2e194e15929cab302b9965b55cda6f79b908.tar.bz2
gentoo-2-28dc2e194e15929cab302b9965b55cda6f79b908.zip
Clean up patch. Respect LDFLAGS (bug #334589).
(Portage version: 2.2_rc69/cvs/Linux i686)
Diffstat (limited to 'app-arch/rzip')
-rw-r--r--app-arch/rzip/ChangeLog6
-rw-r--r--app-arch/rzip/files/rzip-2.1-darwin.patch90
-rw-r--r--app-arch/rzip/rzip-2.1-r2.ebuild39
3 files changed, 88 insertions, 47 deletions
diff --git a/app-arch/rzip/ChangeLog b/app-arch/rzip/ChangeLog
index f29aade98df1..c3f03bf1a6eb 100644
--- a/app-arch/rzip/ChangeLog
+++ b/app-arch/rzip/ChangeLog
@@ -1,6 +1,10 @@
# 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.35 2010/04/08 18:13:43 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rzip/ChangeLog,v 1.36 2010/08/26 21:44:56 jer Exp $
+
+ 26 Aug 2010; Jeroen Roovers <jer@gentoo.org> +rzip-2.1-r2.ebuild,
+ files/rzip-2.1-darwin.patch:
+ Clean up patch. Respect LDFLAGS (bug #334589).
08 Apr 2010; Jeroen Roovers <jer@gentoo.org> rzip-2.1-r1.ebuild:
Stable for HPPA (bug #309383).
diff --git a/app-arch/rzip/files/rzip-2.1-darwin.patch b/app-arch/rzip/files/rzip-2.1-darwin.patch
index b62a1d404051..b07aa1712309 100644
--- a/app-arch/rzip/files/rzip-2.1-darwin.patch
+++ b/app-arch/rzip/files/rzip-2.1-darwin.patch
@@ -1,6 +1,5 @@
-diff -r -uN rzip-2.1/configure.in rzip-2.1-patched/configure.in
---- rzip-2.1/configure.in 2003-11-03 09:19:11.000000000 +0100
-+++ rzip-2.1-patched/configure.in 2008-07-27 21:59:45.774740303 +0200
+--- a/configure.in 2003-11-03 09:19:11.000000000 +0100
++++ b/configure.in 2008-07-27 21:59:45.774740303 +0200
@@ -2,6 +2,12 @@
AC_INIT(main.c)
AC_CONFIG_HEADER(config.h)
@@ -41,9 +40,8 @@ diff -r -uN rzip-2.1/configure.in rzip-2.1-patched/configure.in
+AC_CHECK_FUNCS(strndup)
AC_OUTPUT(Makefile)
-diff -r -uN 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-27 22:00:28.298071207 +0200
+--- a/main.c 2006-02-14 01:38:23.000000000 +0100
++++ b/main.c 2008-07-27 22:00:28.298071207 +0200
@@ -18,6 +18,7 @@
/* rzip compression - main program */
@@ -52,40 +50,8 @@ diff -r -uN rzip-2.1/main.c rzip-2.1-patched/main.c
static void usage(void)
{
-diff -r -uN rzip-2.1/Makefile.in rzip-2.1-patched/Makefile.in
---- rzip-2.1/Makefile.in 2006-02-14 01:38:23.000000000 +0100
-+++ rzip-2.1-patched/Makefile.in 2008-07-27 21:58:08.201419790 +0200
-@@ -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)
-diff -r -uN 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-27 21:58:08.204752617 +0200
+--- a/rzip.h 2006-02-14 01:38:23.000000000 +0100
++++ b/rzip.h 2008-07-27 21:58:08.204752617 +0200
@@ -94,7 +94,7 @@
#define strerror(i) sys_errlist[i]
#endif
@@ -95,9 +61,8 @@ diff -r -uN rzip-2.1/rzip.h rzip-2.1-patched/rzip.h
extern int errno;
#endif
-diff -r -uN rzip-2.1/strutils.c rzip-2.1-patched/strutils.c
---- rzip-2.1/strutils.c 1970-01-01 01:00:00.000000000 +0100
-+++ rzip-2.1-patched/strutils.c 2008-07-27 21:58:08.204752617 +0200
+--- a/strutils.c 1970-01-01 01:00:00.000000000 +0100
++++ b/strutils.c 2008-07-27 21:58:08.204752617 +0200
@@ -0,0 +1,29 @@
+/*
+ Copyright (C) 2005 Gentoo Foundation
@@ -128,9 +93,8 @@ diff -r -uN rzip-2.1/strutils.c rzip-2.1-patched/strutils.c
+ return(memcpy(ret, s, n));
+}
+#endif
-diff -r -uN rzip-2.1/strutils.h rzip-2.1-patched/strutils.h
---- rzip-2.1/strutils.h 1970-01-01 01:00:00.000000000 +0100
-+++ rzip-2.1-patched/strutils.h 2008-07-27 21:58:08.204752617 +0200
+--- a/strutils.h 1970-01-01 01:00:00.000000000 +0100
++++ b/strutils.h 2008-07-27 21:58:08.204752617 +0200
@@ -0,0 +1,31 @@
+/*
+ Copyright (C) 2005 Gentoo Foundation
@@ -163,3 +127,37 @@ diff -r -uN rzip-2.1/strutils.h rzip-2.1-patched/strutils.h
+# endif
+
+#endif
+--- a/Makefile.in 2006-02-14 01:38:23.000000000 +0100
++++ b/Makefile.in 2010-08-26 23:34:38.000000000 +0200
+@@ -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,9 +35,10 @@
+ ${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)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o rzip $(OBJS) $(LIBS)
+
+ rzip.1: rzip.yo
+ yodl2man -o rzip.1 rzip.yo
diff --git a/app-arch/rzip/rzip-2.1-r2.ebuild b/app-arch/rzip/rzip-2.1-r2.ebuild
new file mode 100644
index 000000000000..af9327499983
--- /dev/null
+++ b/app-arch/rzip/rzip-2.1-r2.ebuild
@@ -0,0 +1,39 @@
+# 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.3 2010/08/26 21:44:56 jer 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
+ eautoreconf
+}
+
+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."
+}