diff --git a/textproc/libxslt/Portfile b/textproc/libxslt/Portfile index 41ea1f41e012..8f78a10b0072 100644 --- a/textproc/libxslt/Portfile +++ b/textproc/libxslt/Portfile @@ -29,6 +29,7 @@ use_xz yes depends_build path:bin/pkg-config:pkgconfig patchfiles dynamic_lookup-11.patch \ + tests.patch \ no-doc.patch configure.args --without-python \ @@ -43,8 +44,6 @@ if {${name} eq ${subport}} { port:libxml2 \ port:zlib -# The test suite is currently failing to compile. -# https://gitlab.gnome.org/GNOME/libxslt/-/issues/110 test.run yes test.target check diff --git a/textproc/libxslt/files/tests.patch b/textproc/libxslt/files/tests.patch new file mode 100644 index 000000000000..a7fac6fd40a6 --- /dev/null +++ b/textproc/libxslt/files/tests.patch @@ -0,0 +1,13 @@ +https://gitlab.gnome.org/GNOME/libxslt/-/issues/110 +https://gitlab.gnome.org/GNOME/libxslt/-/commit/ea32b708bff62067caf8bb374dbb25a20c399748 +--- tests/Makefile.in.orig 2024-06-12 11:57:47.000000000 -0500 ++++ tests/Makefile.in 2024-06-14 17:48:05.000000000 -0500 +@@ -434,7 +434,7 @@ + @WITH_MODULES_TRUE@plugindir = $(abs_builddir)/.libs + @WITH_MODULES_TRUE@xmlsoft_org_xslt_testplugin_la_CFLAGS = $(AM_CFLAGS) -DMODULE_COMPILE + @WITH_MODULES_TRUE@xmlsoft_org_xslt_testplugin_la_SOURCES = testplugin.c +-@WITH_MODULES_TRUE@xmlsoft_org_xslt_testplugin_la_LIBADD = $(top_builddir)/libxslt/libxslt.la $(EXTRA_LIBS) ++@WITH_MODULES_TRUE@xmlsoft_org_xslt_testplugin_la_LIBADD = $(top_builddir)/libxslt/libxslt.la $(LIBXML_LIBS) $(EXTRA_LIBS) + @WITH_MODULES_TRUE@xmlsoft_org_xslt_testplugin_la_LDFLAGS = \ + @WITH_MODULES_TRUE@ $(AM_LDFLAGS) -no-undefined \ + @WITH_MODULES_TRUE@ -module -avoid-version -rpath $(plugindir)