From 02b5cfb32642a1fdcf64effcc2898a5bf4ebed8a Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 1 Apr 2021 22:54:48 +0000 Subject: media-gfx/gtkimageview: fix build with slibtool Thakns-to: orbea Closes: https://bugs.gentoo.org/779127 Signed-off-by: Sam James --- ...eview-1.6.4-slibtool-undefined-references.patch | 35 ++++++++++++++++++++++ media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild | 4 +++ 2 files changed, 39 insertions(+) create mode 100644 media-gfx/gtkimageview/files/gtkimageview-1.6.4-slibtool-undefined-references.patch (limited to 'media-gfx') diff --git a/media-gfx/gtkimageview/files/gtkimageview-1.6.4-slibtool-undefined-references.patch b/media-gfx/gtkimageview/files/gtkimageview-1.6.4-slibtool-undefined-references.patch new file mode 100644 index 000000000000..b323d74c2573 --- /dev/null +++ b/media-gfx/gtkimageview/files/gtkimageview-1.6.4-slibtool-undefined-references.patch @@ -0,0 +1,35 @@ +https://bugs.gentoo.org/779127 + +commit 7f1fc516fbfb185e77b0acaab84a25b666a55e21 +Author: orbea +Date: Mon Mar 29 11:50:45 2021 -0700 + + build: Fix undefined libm reference. + +diff --git a/configure.in b/configure.in +index bd01480..63eb587 100644 +--- a/configure.in ++++ b/configure.in +@@ -23,6 +23,9 @@ GNOME_COMPILE_WARNINGS(error) + DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" + AC_SUBST(DEPRECATED_FLAGS) + ++AC_CHECK_LIBM ++AC_SUBST([LIBM]) ++ + PKG_CHECK_MODULES(DEP, + gtk+-2.0 >= 2.6.0) + AC_SUBST(DEP_CFLAGS) +diff --git a/src/Makefile.am b/src/Makefile.am +index 57c9f42..375dc44 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -41,7 +41,7 @@ libgtkimageview_la_SOURCES = \ + $(BUILT_SOURCES) \ + $(libgtkimageview_headers) + +-libgtkimageview_la_LIBADD = $(DEP_LIBS) ++libgtkimageview_la_LIBADD = $(DEP_LIBS) $(LIBM) + libgtkimageview_la_LDFLAGS = -no-undefined + + libgtkimageview_includedir = $(includedir)/gtkimageview diff --git a/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild b/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild index 2e38da6bfd9b..a5f5c5e507ff 100644 --- a/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild +++ b/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild @@ -25,6 +25,10 @@ BDEPEND=" gnome-base/gnome-common " +PATCHES=( + "${FILESDIR}"/${PN}-1.6.4-slibtool-undefined-references.patch +) + src_prepare() { gnome2_src_prepare -- cgit v1.2.3-65-gdbad