sci-chemistry/gnome-chemistry-utils: fix underlinking w/ slibtool

Closes: https://bugs.gentoo.org/913669
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43980
Closes: https://github.com/gentoo/gentoo/pull/43980
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
Nicolas PARLANT 2025-09-29 10:49:48 +02:00 committed by Pacho Ramos
parent 69c1a6b26c
commit d761e927eb
No known key found for this signature in database
GPG Key ID: 7CB10C207FC07DBC
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,30 @@
https://bugs.gentoo.org/913669
fix underlinking with slibtool
--- a/plugins/loaders/cdx/Makefile.am
+++ b/plugins/loaders/cdx/Makefile.am
@@ -18,8 +18,9 @@ gcu_loader_cdx_LTLIBRARIES = cdx.la
cdx_la_LDFLAGS = -module -avoid-version -no-undefined
cdx_la_LIBADD = \
- $(gsf_LIBS) \
- $(top_builddir)/libs/gcu/libgcu-@GCU_API_VER@.la
+ $(gtk_LIBS) $(gsf_LIBS) \
+ $(top_builddir)/libs/gcu/libgcu-@GCU_API_VER@.la \
+ $(top_builddir)/libs/gcp/libgcp-@GCU_API_VER@.la
cdx_la_SOURCES = \
cdx.cc
--- a/plugins/loaders/cdxml/Makefile.am
+++ b/plugins/loaders/cdxml/Makefile.am
@@ -17,8 +17,9 @@ gcu_loader_cdxml_LTLIBRARIES = cdxml.la
cdxml_la_LDFLAGS = -module -avoid-version -no-undefined
cdxml_la_LIBADD = \
- $(gsf_LIBS) $(goffice_LIBS) \
- $(top_builddir)/libs/gcu/libgcu-@GCU_API_VER@.la
+ $(gtk_LIBS) $(gsf_LIBS) $(goffice_LIBS) \
+ $(top_builddir)/libs/gcu/libgcu-@GCU_API_VER@.la \
+ $(top_builddir)/libs/gcp/libgcp-@GCU_API_VER@.la
cdxml_la_SOURCES = \
cdxml.cc

View File

@ -61,6 +61,9 @@ src_prepare() {
# Disable tests for manpages
eapply "${FILESDIR}"/${PN}-disable_tests_man.patch
# bug 913669 fix underlinking with slibtool
eapply "${FILESDIR}"/${PN}-fix_underlinking.patch
sed -e "s:pkg-config:$(tc-getPKG_CONFIG):g" \
-i configure.ac || die