<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/04c98ad0468250b229449565e39d09b9eb4e8f5a">https://github.com/macports/macports-ports/commit/04c98ad0468250b229449565e39d09b9eb4e8f5a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 04c98ad0468250b229449565e39d09b9eb4e8f5a
</span>Author: Marius Schamschula <mschamschula@gmail.com>
AuthorDate: Thu May 4 08:41:15 2023 -0500
<span style='display:block; white-space:pre;color:#404040;'> xmlsec-1.2: support old ABI
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/67372
</span>---
security/xmlsec-1.2/Portfile | 83 +++++++++++++++++++++++
security/xmlsec-1.2/files/dynamic_lookup-11.patch | 24 +++++++
security/xmlsec-1.2/files/patch-src-dl.c.diff | 10 +++
3 files changed, 117 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/xmlsec-1.2/Portfile b/security/xmlsec-1.2/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..cd28be2dc46
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/xmlsec-1.2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,83 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Note: this version is for backward compatibility, remove after dependents are updated
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name xmlsec-1.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 1.2.37
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 9ef8c08f762a5aba2d6ce7ead53efdcea8fad9cb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 5f8dfbcb6d1e56bddd0b5ec2e00a3d0ca5342a9f57c24dffde5c796b2be2871c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 2009175
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories security textproc devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {mps @Schamschula} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conflicts xmlsec
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description XML Security Library is a C library based on LibXML2.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}. The library supports major XML security \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ standards. XML Signature, XML Encryption, Canonical XML and \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Exclusive Canonical XML.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.aleksey.com/xmlsec/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites ${homepage}download/ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ftp://ftp.xmlsoft.org/xmlsec/releases/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname xmlsec1-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:libxml2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libxslt \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libiconv \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libtool \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/icu-uc.pc:icu \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-src-dl.c.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dynamic_lookup-11.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/dl.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args --disable-silent-rules \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-libxml=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-libxslt=${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Add gcrypt support.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:libgcrypt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append --with-gcrypt=${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Add gnutls support.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append path:lib/pkgconfig/gnutls.pc:gnutls
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Do not specify the path to gnutls or it will fail to find it, because
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# it looks for the libgnutls-config script that gnutls no longer provides.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Do not remove the equals sign or it will fail trying to find the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# libraries and headers in a directory called "yes".
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append --with-gnutls=
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Add nss and nspr support.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:nss port:nspr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append --with-nss --with-nspr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.ldflags-append -L${prefix}/lib/nss -L${prefix}/lib/nspr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# nss is not universal.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+universal_variant no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Add openssl support.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append path:lib/libssl.dylib:openssl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Do not specify the path to openssl or it will try to link with the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# static library instead of the dynamic one, and it will fail when
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# openssl is installed universal.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Do not remove the equals sign or it will fail trying to find the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# libraries and headers in a directory called "yes".
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append --with-openssl=
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.target check
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url ${homepage}download.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex {xmlsec1-([0-9.]+)\.}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/xmlsec-1.2/files/dynamic_lookup-11.patch b/security/xmlsec-1.2/files/dynamic_lookup-11.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3e47fe5c54d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/xmlsec-1.2/files/dynamic_lookup-11.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,24 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix libtool's macOS 11+ bug, copied from libtool port.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2020-10-29 16:52:15.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2020-11-15 08:46:58.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -8289,16 +8289,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ darwin1.*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- darwin*) # darwin 5.x on
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # if running on 10.5 or later, the deployment target defaults
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # to the OS version, if on x86, and 10.4, the deployment
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # target defaults to 10.4. Don't you love it?
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 10.[012][,.]*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ darwin*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ case ${MACOSX_DEPLOYMENT_TARGET},$host in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ 10.[012],*|,*powerpc*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 10.*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ *)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;;
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/xmlsec-1.2/files/patch-src-dl.c.diff b/security/xmlsec-1.2/files/patch-src-dl.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..cb7fd2ad695
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/xmlsec-1.2/files/patch-src-dl.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/dl.c.orig 2023-04-12 11:45:12.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/dl.c 2023-04-14 01:47:10.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -133,6 +133,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef XMLSEC_DL_LIBLTDL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ lt_dlsetsearchpath("@PREFIX@/lib");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lib->handle = lt_dlopenext((char*)lib->filename);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(lib->handle == NULL) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xmlSecIOError("lt_dlopenext", lib->filename, NULL);
</span></pre><pre style='margin:0'>
</pre>