commit: f22efd7a1c09380d7312ac954a0f0cc470817d45 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> AuthorDate: Fri Apr 30 14:29:49 2021 +0000 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> CommitDate: Fri Apr 30 16:16:42 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f22efd7a
x11-themes/gtk-engines-candidio: Fix for slibtool Thanks-to: orbea <orbea <AT> riseup.net> Closes: https://bugs.gentoo.org/779478 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> .../files/gtk-engines-candido-0.9.1-libm.patch | 31 ++++++++++++++++++++++ .../gtk-engines-candido-0.9.1.ebuild | 5 +++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/x11-themes/gtk-engines-candido/files/gtk-engines-candido-0.9.1-libm.patch b/x11-themes/gtk-engines-candido/files/gtk-engines-candido-0.9.1-libm.patch new file mode 100644 index 00000000000..a2d87d35d96 --- /dev/null +++ b/x11-themes/gtk-engines-candido/files/gtk-engines-candido-0.9.1-libm.patch @@ -0,0 +1,31 @@ +commit 11de11a1cfa840545dd8fd9b41937445c6107f86 +Author: orbea <[email protected]> +Date: Wed Mar 31 05:11:07 2021 -0700 + + build: Fix undefined reference for libm. + +diff --git a/Makefile.am b/Makefile.am +index 62fd2e3..78ccc65 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -22,5 +22,4 @@ libcandido_la_SOURCES = \ + ./src/config.h + + libcandido_la_LDFLAGS = -module -avoid-version -no-undefined +-libcandido_la_LIBADD = $(GTK_LIBS) +- ++libcandido_la_LIBADD = $(GTK_LIBS) $(LIBM) +diff --git a/configure.ac b/configure.ac +index 8e261af..8570101 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -27,6 +27,9 @@ PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.8.0,, + AC_SUBST(GTK_CFLAGS) + AC_SUBST(GTK_LIBS) + ++AC_CHECK_LIBM ++AC_SUBST([LIBM]) ++ + GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0` + AC_SUBST(GTK_VERSION) + diff --git a/x11-themes/gtk-engines-candido/gtk-engines-candido-0.9.1.ebuild b/x11-themes/gtk-engines-candido/gtk-engines-candido-0.9.1.ebuild index 90d89b19f4f..af36e75970f 100644 --- a/x11-themes/gtk-engines-candido/gtk-engines-candido-0.9.1.ebuild +++ b/x11-themes/gtk-engines-candido/gtk-engines-candido-0.9.1.ebuild @@ -21,7 +21,10 @@ BDEPEND="virtual/pkgconfig" S="${WORKDIR}/${MY_P}" -PATCHES=( "${FILESDIR}"/${P}-glib-2.31.patch ) +PATCHES=( + "${FILESDIR}"/${P}-glib-2.31.patch + "${FILESDIR}"/${P}-libm.patch +) src_prepare() { default
