ports/152070: [patch] security/xmlsec1 - Fix upstream bug in .pc files for pkg-config

Tom Judge tom at tomjudge.com
Tue Nov 9 05:10:10 UTC 2010


>Number:         152070
>Category:       ports
>Synopsis:       [patch] security/xmlsec1 - Fix upstream bug in .pc files for pkg-config
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 09 05:10:09 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Tom Judge
>Release:        FreeBSD 8.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD tinderbox.home.tomjudge.com 8.1-STABLE FreeBSD 8.1-STABLE #0 r213720: Tue Oct 12 14:02:02 UTC 2010 tj at tinderbox.home.tomjudge.com:/usr/obj/usr/src/sys/GENERIC amd64

>Description:

The .pc.in files for this port have to many escape chars in them (\\\ rather than \).

The attach patch corrects the files so that dependent ports will build correctly.

This should fix at lease security/lasso

Upstream bug report is here:
	https://bugzilla.gnome.org/show_bug.cgi?id=631258

>How-To-Repeat:
>Fix:

--- security-xmlsec1.txt begins here ---
diff -urN xmlsec1.orig/Makefile xmlsec1/Makefile
--- xmlsec1.orig/Makefile	2010-11-09 04:46:10.000000000 +0000
+++ xmlsec1/Makefile	2010-11-09 04:46:58.000000000 +0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	xmlsec1
 PORTVERSION=	1.2.16
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	http://www.aleksey.com/xmlsec/download/ \
 		ftp://ftp.aleksey.com/pub/xmlsec/releases/ \
diff -urN xmlsec1.orig/files/patch-xmlsec-gcrypt.pc.in xmlsec1/files/patch-xmlsec-gcrypt.pc.in
--- xmlsec1.orig/files/patch-xmlsec-gcrypt.pc.in	1970-01-01 00:00:00.000000000 +0000
+++ xmlsec1/files/patch-xmlsec-gcrypt.pc.in	2010-11-09 04:42:36.000000000 +0000
@@ -0,0 +1,9 @@
+--- xmlsec-gcrypt.pc.in.orig	2010-11-09 04:42:05.000000000 +0000
++++ xmlsec-gcrypt.pc.in	2010-11-09 04:42:05.000000000 +0000
+@@ -7,5 +7,5 @@
+ Version: @VERSION@
+ Description: XML Security Library implements XML Signature and XML Encryption standards
+ Requires: libxml-2.0 >= @LIBXML_MIN_VERSION@ libxslt >= @LIBXSLT_MIN_VERSION@
+-Cflags: -DXMLSEC_CRYPTO=\\\"gcrypt\\\" @XMLSEC_GCRYPT_CFLAGS@
++Cflags: -DXMLSEC_CRYPTO=\"gcrypt\" @XMLSEC_GCRYPT_CFLAGS@
+ Libs: @XMLSEC_GCRYPT_LIBS@
diff -urN xmlsec1.orig/files/patch-xmlsec-gnutls.pc.in xmlsec1/files/patch-xmlsec-gnutls.pc.in
--- xmlsec1.orig/files/patch-xmlsec-gnutls.pc.in	1970-01-01 00:00:00.000000000 +0000
+++ xmlsec1/files/patch-xmlsec-gnutls.pc.in	2010-11-09 04:42:36.000000000 +0000
@@ -0,0 +1,9 @@
+--- xmlsec-gnutls.pc.in.orig	2010-11-09 04:42:05.000000000 +0000
++++ xmlsec-gnutls.pc.in	2010-11-09 04:42:05.000000000 +0000
+@@ -7,5 +7,5 @@
+ Version: @VERSION@
+ Description: XML Security Library implements XML Signature and XML Encryption standards
+ Requires: libxml-2.0 >= @LIBXML_MIN_VERSION@ libxslt >= @LIBXSLT_MIN_VERSION@
+-Cflags: -DXMLSEC_CRYPTO=\\\"gnutls\\\" @XMLSEC_GNUTLS_CFLAGS@
++Cflags: -DXMLSEC_CRYPTO=\"gnutls\" @XMLSEC_GNUTLS_CFLAGS@
+ Libs: @XMLSEC_GNUTLS_LIBS@
diff -urN xmlsec1.orig/files/patch-xmlsec-nss.pc.in xmlsec1/files/patch-xmlsec-nss.pc.in
--- xmlsec1.orig/files/patch-xmlsec-nss.pc.in	1970-01-01 00:00:00.000000000 +0000
+++ xmlsec1/files/patch-xmlsec-nss.pc.in	2010-11-09 04:42:36.000000000 +0000
@@ -0,0 +1,9 @@
+--- xmlsec-nss.pc.in.orig	2010-11-09 04:42:05.000000000 +0000
++++ xmlsec-nss.pc.in	2010-11-09 04:42:05.000000000 +0000
+@@ -7,5 +7,5 @@
+ Version: @VERSION@
+ Description: XML Security Library implements XML Signature and XML Encryption standards
+ Requires: libxml-2.0 >= @LIBXML_MIN_VERSION@ libxslt >= @LIBXSLT_MIN_VERSION@ @NSPR_PACKAGE@ >= @MOZILLA_MIN_VERSION@ @NSS_PACKAGE@ >= @MOZILLA_MIN_VERSION@
+-Cflags: -DXMLSEC_CRYPTO=\\\"nss\\\" -DXMLSEC_CRYPTO_NSS=1 @XMLSEC_CORE_CFLAGS@
++Cflags: -DXMLSEC_CRYPTO=\"nss\" -DXMLSEC_CRYPTO_NSS=1 @XMLSEC_CORE_CFLAGS@
+ Libs: -L${libdir} -lxmlsec1-nss @XMLSEC_CORE_LIBS@
diff -urN xmlsec1.orig/files/patch-xmlsec-openssl.pc.in xmlsec1/files/patch-xmlsec-openssl.pc.in
--- xmlsec1.orig/files/patch-xmlsec-openssl.pc.in	1970-01-01 00:00:00.000000000 +0000
+++ xmlsec1/files/patch-xmlsec-openssl.pc.in	2010-11-09 04:42:36.000000000 +0000
@@ -0,0 +1,9 @@
+--- xmlsec-openssl.pc.in.orig	2010-11-09 04:42:05.000000000 +0000
++++ xmlsec-openssl.pc.in	2010-11-09 04:42:05.000000000 +0000
+@@ -7,5 +7,5 @@
+ Version: @VERSION@
+ Description: XML Security Library implements XML Signature and XML Encryption standards
+ Requires: libxml-2.0 >= @LIBXML_MIN_VERSION@ libxslt >= @LIBXSLT_MIN_VERSION@ 
+-Cflags: -DXMLSEC_CRYPTO=\\\"openssl\\\" @XMLSEC_OPENSSL_CFLAGS@
++Cflags: -DXMLSEC_CRYPTO=\"openssl\" @XMLSEC_OPENSSL_CFLAGS@
+ Libs: @XMLSEC_OPENSSL_LIBS@
diff -urN xmlsec1.orig/files/patch-xmlsec.pc.in xmlsec1/files/patch-xmlsec.pc.in
--- xmlsec1.orig/files/patch-xmlsec.pc.in	1970-01-01 00:00:00.000000000 +0000
+++ xmlsec1/files/patch-xmlsec.pc.in	2010-11-09 04:42:36.000000000 +0000
@@ -0,0 +1,9 @@
+--- xmlsec.pc.in.orig	2010-11-09 04:42:05.000000000 +0000
++++ xmlsec.pc.in	2010-11-09 04:42:05.000000000 +0000
+@@ -7,5 +7,5 @@
+ Version: @VERSION@
+ Description: XML Security Library implements XML Signature and XML Encryption standards
+ Requires: libxml-2.0 >= @LIBXML_MIN_VERSION@ libxslt >= @LIBXSLT_MIN_VERSION@ 
+-Cflags: -DXMLSEC_CRYPTO=\\\"@XMLSEC_CRYPTO@\\\" -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 @XMLSEC_CORE_CFLAGS@
++Cflags: -DXMLSEC_CRYPTO=\"@XMLSEC_CRYPTO@\" -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 @XMLSEC_CORE_CFLAGS@
+ Libs: -L${libdir} @XMLSEC_CORE_LIBS@ 
--- security-xmlsec1.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list