From cd5b67b2172a17342c21c873ba7e213a6b7c89e0 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Sat, 5 Dec 2015 17:40:20 +0100 Subject: media-libs/gegl: Fix underlinking Gnome-Bugs: https://bugzilla.gnome.org/show_bug.cgi?id=759065 Package-Manager: portage-2.2.25 Signed-off-by: Justin Lecher --- .../gegl/files/gegl-0.3.4-underlinking.patch | 31 ++++++++++++++++++++++ media-libs/gegl/gegl-0.3.4.ebuild | 4 ++- media-libs/gegl/metadata.xml | 20 +++++++------- 3 files changed, 44 insertions(+), 11 deletions(-) create mode 100644 media-libs/gegl/files/gegl-0.3.4-underlinking.patch (limited to 'media-libs') diff --git a/media-libs/gegl/files/gegl-0.3.4-underlinking.patch b/media-libs/gegl/files/gegl-0.3.4-underlinking.patch new file mode 100644 index 000000000000..a7a62909efdc --- /dev/null +++ b/media-libs/gegl/files/gegl-0.3.4-underlinking.patch @@ -0,0 +1,31 @@ +From 8dd23b1ed5f1ce065839f15a21ca28766835f1fd Mon Sep 17 00:00:00 2001 +From: Justin Lecher +Date: Sat, 5 Dec 2015 17:34:48 +0100 +Subject: [PATCH] Fix underlinking (-lm) of libgegl.so + +When linking with ld.gold the builds fails due to underlinking of libgegl.so +./.libs/libgegl-0.3.so: error: undefined reference to 'tanhf' + +Gnome-Bugs: https://bugzilla.gnome.org/show_bug.cgi?id=759065 + +Signed-off-by: Justin Lecher +--- + gegl/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gegl/Makefile.am b/gegl/Makefile.am +index e26099c..e53777d 100644 +--- a/gegl/Makefile.am ++++ b/gegl/Makefile.am +@@ -39,7 +39,7 @@ AM_LDFLAGS = \ + $(no_undefined) -export-dynamic -version-info $(GEGL_LIBRARY_VERSION) + + LIBS = \ +- $(DEP_LIBS) $(BABL_LIBS) ++ $(DEP_LIBS) $(BABL_LIBS) -lm + + GEGL_publicdir = $(includedir)/gegl-$(GEGL_API_VERSION) + +-- +2.6.3 + diff --git a/media-libs/gegl/gegl-0.3.4.ebuild b/media-libs/gegl/gegl-0.3.4.ebuild index ce3348cb7019..764b6c98fef9 100644 --- a/media-libs/gegl/gegl-0.3.4.ebuild +++ b/media-libs/gegl/gegl-0.3.4.ebuild @@ -77,7 +77,9 @@ pkg_setup() { } src_prepare() { - epatch "${FILESDIR}"/${PN}-0.3.4-endian.patch + epatch \ + "${FILESDIR}"/${PN}-0.3.4-endian.patch \ + "${FILESDIR}"/${P}-underlinking.patch # FIXME: the following should be proper patch sent to upstream # fix OSX loadable module filename extension diff --git a/media-libs/gegl/metadata.xml b/media-libs/gegl/metadata.xml index 93d122d4a6f3..0492c2c9d178 100644 --- a/media-libs/gegl/metadata.xml +++ b/media-libs/gegl/metadata.xml @@ -1,14 +1,14 @@ - - sping@gentoo.org - - - Use dev-libs/gobject-introspection for introspection. - Enable support for media-libs/lensfun. - Enable sparse solving via sci-libs/umfpack. - Enable bindings for dev-lang/vala - Enable support for media-libs/libwebp - + + sping@gentoo.org + + + Use dev-libs/gobject-introspection for introspection. + Enable support for media-libs/lensfun. + Enable sparse solving via sci-libs/umfpack. + Enable bindings for dev-lang/vala + Enable support for media-libs/libwebp + -- cgit v1.2.3-65-gdbad