media-libs/gegl: Fix linking (bug #605216)
authorSebastian Pipping <sping@gentoo.org>
Mon, 9 Jan 2017 20:58:19 +0000 (21:58 +0100)
committerSebastian Pipping <sping@gentoo.org>
Mon, 9 Jan 2017 21:11:15 +0000 (22:11 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

media-libs/gegl/files/gegl-0.2.0-underlinking.patch [new file with mode: 0644]
media-libs/gegl/gegl-0.2.0-r2.ebuild

diff --git a/media-libs/gegl/files/gegl-0.2.0-underlinking.patch b/media-libs/gegl/files/gegl-0.2.0-underlinking.patch
new file mode 100644 (file)
index 0000000..4468f38
--- /dev/null
@@ -0,0 +1,38 @@
+From db19965ad957edee3c2ef3e321c3904b436749da Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Mon, 9 Jan 2017 21:38:42 +0100
+Subject: [PATCH] Backport $(MATH_LIB) patch to GEGL 0.2
+
+Source:
+https://git.gnome.org/browse/gegl/patch/?id=c9bbc815378cb81ba8a48be35f615e7e2d74dffc
+---
+ bin/Makefile.am      | 2 +-
+ examples/Makefile.am | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/bin/Makefile.am b/bin/Makefile.am
+index c85ecbd..08a156b 100644
+--- a/bin/Makefile.am
++++ b/bin/Makefile.am
+@@ -23,7 +23,7 @@ AM_CFLAGS = \
+ AM_LDFLAGS =  \
+       $(no_undefined) ../gegl/libgegl-$(GEGL_API_VERSION).la \
+-      $(DEP_LIBS) $(BABL_LIBS) $(PNG_LIBS) $(LIBSPIRO)
++      $(DEP_LIBS) $(BABL_LIBS) $(PNG_LIBS) $(LIBSPIRO) $(MATH_LIB)
+ bin_PROGRAMS = gegl
+diff --git a/examples/Makefile.am b/examples/Makefile.am
+index c29a1dd..5c4ac3a 100644
+--- a/examples/Makefile.am
++++ b/examples/Makefile.am
+@@ -42,4 +42,4 @@ AM_CFLAGS = $(DEP_CFLAGS) $(GTK_CFLAGS) $(BABL_CFLAGS) $(PNG_CFLAGS)
+ AM_LDFLAGS =  \
+       $(top_builddir)/gegl/libgegl-$(GEGL_API_VERSION).la \
+-      $(DEP_LIBS) $(GTK_LIBS) $(BABL_LIBS) $(PNG_LIBS)
++      $(DEP_LIBS) $(GTK_LIBS) $(BABL_LIBS) $(PNG_LIBS) $(MATH_LIB)
+-- 
+2.11.0
+
index fec143cd220e5230910786d272197a9606171fb3..2e8582abb163a4832abf4f2a0cb9d1c56f6d7b61 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -72,6 +72,9 @@ src_prepare() {
        fi
 
        epatch "${FILESDIR}"/${P}-g_log_domain.patch
+
+       # https://bugs.gentoo.org/show_bug.cgi?id=605216
+       epatch "${FILESDIR}"/${P}-underlinking.patch
        eautoreconf
 
        # https://bugs.gentoo.org/show_bug.cgi?id=468248