summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-01-26 06:29:57 +0000
committerMike Frysinger <vapier@gentoo.org>2008-01-26 06:29:57 +0000
commit3a275237629f0769ccd169aa18e71641dc36eb52 (patch)
tree082419729c04175916a8dca921a32b6a0449a11a /app-arch/lzma-utils
parentremove unused www-servers/apache use flags (diff)
downloadgentoo-2-3a275237629f0769ccd169aa18e71641dc36eb52.tar.gz
gentoo-2-3a275237629f0769ccd169aa18e71641dc36eb52.tar.bz2
gentoo-2-3a275237629f0769ccd169aa18e71641dc36eb52.zip
Fix from Ryan Hill for building with gcc-4.3 #207338.
(Portage version: 2.1.4)
Diffstat (limited to 'app-arch/lzma-utils')
-rw-r--r--app-arch/lzma-utils/ChangeLog6
-rw-r--r--app-arch/lzma-utils/files/lzma-utils-4.32.4-gcc-4.3.patch13
-rw-r--r--app-arch/lzma-utils/lzma-utils-4.32.4.ebuild8
3 files changed, 25 insertions, 2 deletions
diff --git a/app-arch/lzma-utils/ChangeLog b/app-arch/lzma-utils/ChangeLog
index 85bdf2ba826f..4c80cfcd16be 100644
--- a/app-arch/lzma-utils/ChangeLog
+++ b/app-arch/lzma-utils/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-arch/lzma-utils
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/lzma-utils/ChangeLog,v 1.18 2008/01/22 23:15:31 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/lzma-utils/ChangeLog,v 1.19 2008/01/26 06:29:56 vapier Exp $
+
+ 26 Jan 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/lzma-utils-4.32.4-gcc-4.3.patch, lzma-utils-4.32.4.ebuild:
+ Fix from Ryan Hill for building with gcc-4.3 #207338.
22 Jan 2008; Mike Frysinger <vapier@gentoo.org> lzma-utils-4.32.4.ebuild:
Add ~mips love.
diff --git a/app-arch/lzma-utils/files/lzma-utils-4.32.4-gcc-4.3.patch b/app-arch/lzma-utils/files/lzma-utils-4.32.4-gcc-4.3.patch
new file mode 100644
index 000000000000..417a81141cb8
--- /dev/null
+++ b/app-arch/lzma-utils/files/lzma-utils-4.32.4-gcc-4.3.patch
@@ -0,0 +1,13 @@
+http://bugs.gentoo.org/207338
+http://sourceforge.net/forum/forum.php?thread_id=1922427&forum_id=708858
+
+--- lzma-4.32.4/src/lzma/lzmp.cpp
++++ lzma-4.32.4/src/lzma/lzmp.cpp
+@@ -30,6 +30,7 @@
+ #include <cstdio>
+ #include <cstring>
+ #include <climits>
++#include <cstdlib>
+
+ #include <string>
+ using std::string;
diff --git a/app-arch/lzma-utils/lzma-utils-4.32.4.ebuild b/app-arch/lzma-utils/lzma-utils-4.32.4.ebuild
index 66e381083d02..6168bff9fe71 100644
--- a/app-arch/lzma-utils/lzma-utils-4.32.4.ebuild
+++ b/app-arch/lzma-utils/lzma-utils-4.32.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/lzma-utils/lzma-utils-4.32.4.ebuild,v 1.2 2008/01/22 23:15:31 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/lzma-utils/lzma-utils-4.32.4.ebuild,v 1.3 2008/01/26 06:29:56 vapier Exp $
inherit eutils
@@ -17,6 +17,12 @@ RDEPEND="!app-arch/lzma"
S=${WORKDIR}/lzma-${PV/_}
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc-4.3.patch #207338
+}
+
src_install() {
emake install DESTDIR="${D}" || die
dodoc AUTHORS ChangeLog NEWS README THANKS