[75092] trunk/dports/security/xmlsec

ryandesign at macports.org ryandesign at macports.org
Fri Jan 14 20:03:29 PST 2011


Revision: 75092
          http://trac.macports.org/changeset/75092
Author:   ryandesign at macports.org
Date:     2011-01-14 20:03:20 -0800 (Fri, 14 Jan 2011)
Log Message:
-----------
xmlsec: try to open dynamically-loaded libraries from the correct directory; see #27964

Modified Paths:
--------------
    trunk/dports/security/xmlsec/Portfile

Added Paths:
-----------
    trunk/dports/security/xmlsec/files/
    trunk/dports/security/xmlsec/files/patch-src-dl.c.diff

Modified: trunk/dports/security/xmlsec/Portfile
===================================================================
--- trunk/dports/security/xmlsec/Portfile	2011-01-15 03:59:43 UTC (rev 75091)
+++ trunk/dports/security/xmlsec/Portfile	2011-01-15 04:03:20 UTC (rev 75092)
@@ -5,6 +5,7 @@
 
 name                        xmlsec
 version                     1.2.16
+revision                    1
 categories                  security textproc devel
 platforms                   darwin
 maintainers                 nomaintainer
@@ -31,6 +32,11 @@
                             port:libtool \
                             port:zlib
 
+patchfiles                  patch-src-dl.c.diff
+post-patch {
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/dl.c
+}
+
 configure.args              --with-libxml=${prefix} \
                             --with-libxslt=${prefix}
 

Added: trunk/dports/security/xmlsec/files/patch-src-dl.c.diff
===================================================================
--- trunk/dports/security/xmlsec/files/patch-src-dl.c.diff	                        (rev 0)
+++ trunk/dports/security/xmlsec/files/patch-src-dl.c.diff	2011-01-15 04:03:20 UTC (rev 75092)
@@ -0,0 +1,10 @@
+--- src/dl.c.orig	2010-05-25 16:52:46.000000000 -0500
++++ src/dl.c	2011-01-14 21:58:17.000000000 -0600
+@@ -141,6 +141,7 @@
+     }
+ 
+ #ifdef XMLSEC_DL_LIBLTDL
++    lt_dlsetsearchpath("@PREFIX@/lib");
+     lib->handle = lt_dlopenext((char*)lib->filename);
+     if(lib->handle == NULL) {
+         xmlSecError(XMLSEC_ERRORS_HERE,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110114/07da18b2/attachment-0001.html>


More information about the macports-changes mailing list