diff options
author | Sam James <sam@gentoo.org> | 2021-04-01 22:54:48 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-01 23:03:59 +0000 |
commit | 02b5cfb32642a1fdcf64effcc2898a5bf4ebed8a (patch) | |
tree | 69fd529ecd827e6770ec7deff07be8a85d797db3 /media-gfx | |
parent | media-gfx/gtkimageview: port to EAPI 7, BDEPEND (diff) | |
download | gentoo-02b5cfb32642a1fdcf64effcc2898a5bf4ebed8a.tar.gz gentoo-02b5cfb32642a1fdcf64effcc2898a5bf4ebed8a.tar.bz2 gentoo-02b5cfb32642a1fdcf64effcc2898a5bf4ebed8a.zip |
media-gfx/gtkimageview: fix build with slibtool
Thakns-to: orbea <orbea@riseup.net>
Closes: https://bugs.gentoo.org/779127
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/gtkimageview/files/gtkimageview-1.6.4-slibtool-undefined-references.patch | 35 | ||||
-rw-r--r-- | media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild | 4 |
2 files changed, 39 insertions, 0 deletions
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 <orbea@riseup.net> +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 |