Skip to content

Commit

Permalink
libxslt: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandesign committed Jun 14, 2024
1 parent 7743059 commit 4de12fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 1 addition & 2 deletions textproc/libxslt/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

Expand Down
13 changes: 13 additions & 0 deletions textproc/libxslt/files/tests.patch
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 4de12fc

Please sign in to comment.