summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2016-08-27 12:06:50 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2016-08-27 12:06:59 +0100
commitb027c1e8a3a25ab1f1a5646ccb0e751dcb41271e (patch)
tree8d5bdb7ec539c492c622a9b44f516bc8b1d896f9 /media-libs/imlib
parentwww-apps/nextcloud: version bump (diff)
downloadgentoo-b027c1e8a3a25ab1f1a5646ccb0e751dcb41271e.tar.gz
gentoo-b027c1e8a3a25ab1f1a5646ccb0e751dcb41271e.tar.bz2
gentoo-b027c1e8a3a25ab1f1a5646ccb0e751dcb41271e.zip
media-libs/imlib: fix testsuite underlinking, bug #367645
Fix by Greg Turner adds required libraries to t-load test. While at it dropped LDFLAGS leak into imlib.pc. Reported-by: Diego Elio Pettenò Bug: https://bugs.gentoo.org/367645 Package-Manager: portage-2.3.0
Diffstat (limited to 'media-libs/imlib')
-rw-r--r--media-libs/imlib/files/imlib-1.9.15-no-LDFLAGS-in-pc.patch16
-rw-r--r--media-libs/imlib/files/imlib-1.9.15-underlinking-test.patch10
-rw-r--r--media-libs/imlib/imlib-1.9.15-r4.ebuild4
3 files changed, 29 insertions, 1 deletions
diff --git a/media-libs/imlib/files/imlib-1.9.15-no-LDFLAGS-in-pc.patch b/media-libs/imlib/files/imlib-1.9.15-no-LDFLAGS-in-pc.patch
new file mode 100644
index 000000000000..9a1ade9879ee
--- /dev/null
+++ b/media-libs/imlib/files/imlib-1.9.15-no-LDFLAGS-in-pc.patch
@@ -0,0 +1,16 @@
+Detected by Gentoo QA check:
+
+ * QA Notice: pkg-config files with wrong LDFLAGS detected:
+ * /usr/lib32/pkgconfig/imlib.pc:Libs: -L${libdir} -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -lImlib -ljpeg -ltiff -lgif -lpng -lz -lm -lXext -lSM -lICE -lXext -lX11
+ * /usr/lib64/pkgconfig/imlib.pc:Libs: -L${libdir} -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -lImlib -ljpeg -ltiff -lgif -lpng -lz -lm -lXext -lSM -lICE -lXext -lX11
+diff --git a/imlib.pc.in b/imlib.pc.in
+index 0a6f276..dc1ef7d 100644
+--- a/imlib.pc.in
++++ b/imlib.pc.in
+@@ -9,5 +9,5 @@ Name: Imlib
+ Description: An image loading and rendering library for X11R6
+ Version: @VERSION@
+ Requires:
+-Libs: -L${libdir} @LDFLAGS@ -lImlib @SUPPORT_LIBS@ @X_LIBS@ @X_PRE_LIBS@ -lXext -lX11 @X_EXTRA_LIBS@
++Libs: -L${libdir} -lImlib @SUPPORT_LIBS@ @X_LIBS@ @X_PRE_LIBS@ -lXext -lX11 @X_EXTRA_LIBS@
+ Cflags: -I${includedir} @X_CFLAGS@
diff --git a/media-libs/imlib/files/imlib-1.9.15-underlinking-test.patch b/media-libs/imlib/files/imlib-1.9.15-underlinking-test.patch
new file mode 100644
index 000000000000..aa52557e25a2
--- /dev/null
+++ b/media-libs/imlib/files/imlib-1.9.15-underlinking-test.patch
@@ -0,0 +1,10 @@
+https://bugs.gentoo.org/show_bug.cgi?id=367645
+by Greg Turner
+diff -urpN imlib-1.9.15.orig/Imlib/Makefile.am imlib-1.9.15/Imlib/Makefile.am
+--- imlib-1.9.15.orig/Imlib/Makefile.am 2004-09-20 17:22:59.000000000 -0700
++++ imlib-1.9.15/Imlib/Makefile.am 2013-10-08 02:48:53.772197627 -0700
+@@ -44,3 +44,3 @@ INCLUDES = -I. -I$(srcdir) -I.. -I$(srcd
+ check_PROGRAMS = t-load
+
+-t_load_LDADD = libImlib.la
++t_load_LDADD = libImlib.la $(X_PRE_LIBS) $(X_LIBS) -lX11 $(X_EXTRA_LIBS)
diff --git a/media-libs/imlib/imlib-1.9.15-r4.ebuild b/media-libs/imlib/imlib-1.9.15-r4.ebuild
index d85d7b6dd6cd..99e4d3d20001 100644
--- a/media-libs/imlib/imlib-1.9.15-r4.ebuild
+++ b/media-libs/imlib/imlib-1.9.15-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -39,6 +39,8 @@ src_prepare() {
epatch "${FILESDIR}"/${P}-fix-rendering.patch #197489
epatch "${FILESDIR}"/${P}-asneeded.patch #207638
epatch "${FILESDIR}"/${P}-libpng15.patch #357167
+ epatch "${FILESDIR}"/${P}-underlinking-test.patch #367645
+ epatch "${FILESDIR}"/${P}-no-LDFLAGS-in-pc.patch
mkdir m4 && cp "${WORKDIR}"/gtk-1-for-imlib.m4 m4