diff --git a/sci-chemistry/gnome-chemistry-utils/files/gnome-chemistry-utils-fix_underlinking.patch b/sci-chemistry/gnome-chemistry-utils/files/gnome-chemistry-utils-fix_underlinking.patch new file mode 100644 index 000000000000..9b80a5590827 --- /dev/null +++ b/sci-chemistry/gnome-chemistry-utils/files/gnome-chemistry-utils-fix_underlinking.patch @@ -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 diff --git a/sci-chemistry/gnome-chemistry-utils/gnome-chemistry-utils-0.14.17_p6-r4.ebuild b/sci-chemistry/gnome-chemistry-utils/gnome-chemistry-utils-0.14.17_p6-r4.ebuild index bf12f2c92679..54c80b7ee569 100644 --- a/sci-chemistry/gnome-chemistry-utils/gnome-chemistry-utils-0.14.17_p6-r4.ebuild +++ b/sci-chemistry/gnome-chemistry-utils/gnome-chemistry-utils-0.14.17_p6-r4.ebuild @@ -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