Use Arch patch to fix compilation with gcc-4.6 (bug #367865).
authorPacho Ramos <pacho@gentoo.org>
Fri, 23 Sep 2011 12:46:50 +0000 (12:46 +0000)
committerPacho Ramos <pacho@gentoo.org>
Fri, 23 Sep 2011 12:46:50 +0000 (12:46 +0000)
Package-Manager: portage-2.1.10.19/cvs/Linux x86_64

app-office/abiword/ChangeLog
app-office/abiword/abiword-2.8.6-r1.ebuild
app-office/abiword/files/abiword-2.8.6-gcc46.patch [new file with mode: 0644]

index 5254ce09c125b71d09ea7ff39250c037b527cbfe..9bd545068ad416ff79aea00e141b154e4a9d7b9c 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for app-office/abiword
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/abiword/ChangeLog,v 1.247 2011/09/23 09:08:02 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/abiword/ChangeLog,v 1.248 2011/09/23 12:46:50 pacho Exp $
+
+  23 Sep 2011; Pacho Ramos <pacho@gentoo.org> abiword-2.8.6-r1.ebuild,
+  +files/abiword-2.8.6-gcc46.patch:
+  Use Arch patch to fix compilation with gcc-4.6 (bug #367865).
 
   23 Sep 2011; Lars Wendler <polynomial-c@gentoo.org>
   files/abiword-2.8.6-libpng15.patch:
index ae94b7a790c88073c621397374e4839743abe18c..72e829894b823d64ff2ec12743ac077ddd565391 100644 (file)
@@ -1,10 +1,10 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/abiword/abiword-2.8.6-r1.ebuild,v 1.11 2011/08/07 08:59:48 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/abiword/abiword-2.8.6-r1.ebuild,v 1.12 2011/09/23 12:46:50 pacho Exp $
 
 EAPI="3"
 
-inherit alternatives eutils gnome2 versionator
+inherit alternatives eutils gnome2 versionator autotools
 
 MY_MAJORV=$(get_version_component_range 1-2)
 
@@ -117,16 +117,19 @@ src_configure() {
 }
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}-libpng15.patch
-
        gnome2_src_prepare
 
+       epatch "${FILESDIR}"/${P}-libpng15.patch
+       epatch "${FILESDIR}"/${P}-gcc46.patch
+
        # install icon to pixmaps (bug #220097)
        sed 's:$(datadir)/icons:$(datadir)/pixmaps:' \
                -i Makefile.am Makefile.in || die "sed 1 failed"
        # readme.txt will be installed using dodoc
        sed '/readme\.txt\|abw/d' \
                -i user/wp/Makefile.am user/wp/Makefile.in || die "sed 2 failed"
+
+       eautoreconf
 }
 
 src_install() {
diff --git a/app-office/abiword/files/abiword-2.8.6-gcc46.patch b/app-office/abiword/files/abiword-2.8.6-gcc46.patch
new file mode 100644 (file)
index 0000000..c07000e
--- /dev/null
@@ -0,0 +1,21 @@
+diff -u -r abiword-2.8.6.orig/src/Makefile.am abiword-2.8.6/src/Makefile.am
+--- abiword-2.8.6.orig/src/Makefile.am 2009-09-09 15:11:01.000000000 +0200
++++ abiword-2.8.6/src/Makefile.am      2011-08-02 23:35:51.904761961 +0200
+@@ -107,7 +107,7 @@
+ AbiWord_LDFLAGS = \
+       $(DEPS_LIBS) \
+-      --no-undefined \
++      -Wl,--no-undefined \
+       -avoid-version \
+       -export-dynamic \
+       -headerpad_max_install_names 
+@@ -129,7 +129,7 @@
+ abiword_LDFLAGS = \
+       $(platform_ldflags) \
+-      --no-undefined      \
++      -Wl,--no-undefined      \
+       -avoid-version      \
+       -export-dynamic