View | Details | Raw Unified | Return to bug 243717 | Differences between
and this patch

Collapse All | Expand All

(-)security/xmlsec1/Makefile (-1 / +3 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	xmlsec1
4
PORTNAME=	xmlsec1
5
PORTVERSION=	1.2.25
5
PORTVERSION=	1.2.29
6
CATEGORIES=	security
6
CATEGORIES=	security
7
MASTER_SITES=	http://www.aleksey.com/xmlsec/download/ \
7
MASTER_SITES=	http://www.aleksey.com/xmlsec/download/ \
8
		ftp://ftp.aleksey.com/pub/xmlsec/releases/ \
8
		ftp://ftp.aleksey.com/pub/xmlsec/releases/ \
Lines 49-54 Link Here
49
			libplds4.so:devel/nspr \
49
			libplds4.so:devel/nspr \
50
			libplc4.so:devel/nspr
50
			libplc4.so:devel/nspr
51
51
52
PLIST_SUB=	VERSION=${PORTVERSION}
53
52
post-patch:
54
post-patch:
53
	@${REINPLACE_CMD} -e 's/mozilla-nss/nss/' \
55
	@${REINPLACE_CMD} -e 's/mozilla-nss/nss/' \
54
		-e 's/mozilla-nspr/nspr/' ${WRKSRC}/configure
56
		-e 's/mozilla-nspr/nspr/' ${WRKSRC}/configure
(-)security/xmlsec1/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1513083917
1
TIMESTAMP = 1578046204
2
SHA256 (xmlsec1-1.2.25.tar.gz) = 967ca83edf25ccb5b48a3c4a09ad3405a63365576503bf34290a42de1b92fcd2
2
SHA256 (xmlsec1-1.2.29.tar.gz) = b1d1deba966019930f608d1f2b95c40ca3450f1393bcd3a3c001a8ba1d2839ab
3
SIZE (xmlsec1-1.2.25.tar.gz) = 1839160
3
SIZE (xmlsec1-1.2.29.tar.gz) = 1989360
(-)security/xmlsec1/files/patch-Makefile.in (-11 lines)
Lines 1-11 Link Here
1
--- Makefile.in.orig	2017-12-12 16:05:23.187628000 +0300
2
+++ Makefile.in	2017-12-12 16:07:19.241092000 +0300
3
@@ -480,7 +480,7 @@
4
 bin_SCRIPTS = xmlsec1-config
5
 pkgconfig_DATA = xmlsec1.pc @XMLSEC_CRYPTO_PC_FILES_LIST@
6
 pkgconfigdir = $(prefix)/libdata/pkgconfig
7
-confexecdir = $(libdir)
8
+confexecdir = $(sysconfdir)
9
 confexec_DATA = xmlsec1Conf.sh
10
 m4datadir = $(datadir)/aclocal
11
 m4data_DATA = xmlsec1.m4
(-)security/xmlsec1/files/patch-configure (-135 lines)
Lines 1-135 Link Here
1
--- configure.orig	2017-09-12 13:21:59 UTC
2
+++ configure
3
@@ -12661,7 +12649,7 @@ CC=$lt_save_CC
4
 
5
 
6
 
7
-if test "z$RM" == "z" ; then
8
+if test "z$RM" = "z" ; then
9
     # Extract the first word of "rm", so it can be a program name with args.
10
 set dummy rm; ac_word=$2
11
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12
@@ -13648,7 +13636,7 @@ case "${host}" in
13
         ;;
14
 esac
15
 
16
-if test "z$shrext" == "z" ; then
17
+if test "z$shrext" = "z" ; then
18
     shrext=$shrext_cmds
19
 fi
20
 
21
@@ -14384,6 +14372,7 @@ elif test "z$with_openssl" != "z" ; then
22
 	*-*-osf5*) openssl_exlibs=;;
23
 	*-*-openbsd*) openssl_exlibs=;;
24
 	*-*-netbsd*) openssl_exlibs=;;
25
+	*-*-freebsd*) openssl_exlibs=;;
26
 	#FIXME: check if lib "dl" is required
27
 	*)          openssl_exlibs=-ldl;;
28
     esac
29
@@ -14641,9 +14630,9 @@ if test "z$OPENSSL_FOUND" = "zno" ; then
30
     for dir in $ac_openssl_lib_dir ; do
31
 	if test -f $dir/libcrypto.a ; then
32
 	    	    if test "z$dir" = "z/usr/lib" ; then
33
-		OPENSSL_LIBS="-lcrypto -ldl"
34
+		OPENSSL_LIBS="-lcrypto"
35
 	    else
36
-		OPENSSL_LIBS="-L$dir -lcrypto -ldl"
37
+		OPENSSL_LIBS="-L$dir -lcrypto "
38
 	    fi
39
 	    OPENSSL_LIBS_FOUND="yes"
40
 	    ac_found_openssl_lib_dir=$dir
41
@@ -14668,7 +14669,7 @@ $as_echo_n "checking for openssl librari
42
 /* end confdefs.h.  */
43
44
             #include <openssl/opensslv.h>
45
-        #if OPENSSL_VERSION_NUMBER == 0x20000000L && defined(LIBRESSL_VERSION_NUMBER)
46
+        #if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L
47
         yes
48
         #endif
49
50
@@ -14676,7 +14665,7 @@ _ACEOF
51
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52
   $EGREP "yes" >/dev/null 2>&1; then :
53
 
54
-        OPENSSL_VERSION="1.0.0 (libressl)"
55
+        OPENSSL_VERSION="1.0.0 (LibreSSL < 2.7)"
56
 
57
 else
58
 
59
@@ -14692,7 +14681,31 @@ rm -f conftest*
60
 /* end confdefs.h.  */
61
 
62
             #include <openssl/opensslv.h>
63
-        #if OPENSSL_VERSION_NUMBER >= 0x10100000L
64
+        #if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L
65
+        yes
66
+        #endif
67
+
68
+_ACEOF
69
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70
+  $EGREP "yes" >/dev/null 2>&1; then :
71
+
72
+        OPENSSL_VERSION="1.1.0 (LibreSSL >= 2.7)"
73
+
74
+else
75
+
76
+        OPENSSL_VERSION=""
77
+
78
+fi
79
+rm -f conftest*
80
+
81
+    fi
82
+
83
+    if test "z$OPENSSL_VERSION" = "z" ; then
84
+        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85
+/* end confdefs.h.  */
86
+
87
+            #include <openssl/opensslv.h>
88
+        #if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
89
         yes
90
         #endif
91
 
92
@@ -14749,12 +14762,12 @@ fi
93
 if test "z$OPENSSL_FOUND" = "zyes" ; then
94
     XMLSEC_NO_OPENSSL="0"
95
     OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_CRYPTO_OPENSSL=1"
96
-    XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST openssl"
97
+    XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST openssl"; CPPFLAGS="$CPPFLAGS $OPENSSL_CFLAGS"
98
 else
99
     XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST openssl"
100
 fi
101
 
102
- if test "z$XMLSEC_NO_OPENSSL" == "z1"; then
103
+ if test "z$XMLSEC_NO_OPENSSL" = "z1"; then
104
   XMLSEC_NO_OPENSSL_TRUE=
105
   XMLSEC_NO_OPENSSL_FALSE='#'
106
 else
107
@@ -14776,7 +14789,7 @@ NSPR_MIN_VERSION="4.4.1"
108
 NSS_CFLAGS=""
109
 NSS_LIBS=""
110
 NSS_LIBS_LIST="-lnss3 -lsmime3"
111
-NSPR_LIBS_LIST="-lnspr4 -lplds4 -lplc4"
112
+NSPR_LIBS_LIST="-lnspr4 -lplds4 -lplc4 -lpthread"
113
 NSS_CRYPTO_LIB="$XMLSEC_PACKAGE-nss"
114
 NSS_FOUND="no"
115
 NSPR_PACKAGE=mozilla-nspr
116
@@ -15211,15 +15224,15 @@ $as_echo_n "checking for nss libraries >
117
     NSS_NSS_H=""
118
 
119
     if test "z$with_nss" != "z" ; then
120
-	NSS_CFLAGS="$NSS_CFLAGS -I$with_nss/include -I$with_nss/include/nss"
121
+	NSS_CFLAGS="$NSS_CFLAGS -I$with_nss/include/nss/nss -I$with_nss/include/nss"
122
 	if test "z$with_gnu_ld" = "zyes" ; then
123
-	    NSS_LIBS="$NSS_LIBS -Wl,-rpath-link -Wl,$with_nss/lib -L$with_nss/lib $NSS_LIBS_LIST"
124
+	    NSS_LIBS="$NSS_LIBS -Wl,-rpath-link -Wl,$with_nss/lib/nss -L$with_nss/lib/nss $NSS_LIBS_LIST"
125
         else
126
-	    NSS_LIBS="$NSS_LIBS -L$with_nss/lib $NSS_LIBS_LIST"
127
+	    NSS_LIBS="$NSS_LIBS -L$with_nss/lib/nss $NSS_LIBS_LIST"
128
         fi
129
 	NSS_INCLUDES_FOUND="yes"
130
 	NSS_LIBS_FOUND="yes"
131
-	NSS_NSS_H="$with_nss/include/nss.h"
132
+	NSS_NSS_H="$with_nss/include/nss/nss/nss.h"
133
     else
134
 	for dir in $ac_nss_inc_dir ; do
135
 	    if test -f $dir/nss/nss.h ; then
(-)security/xmlsec1/files/patch-configure.ac (-33 lines)
Lines 1-33 Link Here
1
--- configure.ac.orig	2017-09-12 13:21:09 UTC
2
+++ configure.ac
3
@@ -493,7 +493,7 @@ if test "z$OPENSSL_FOUND" = "zyes" -a "z
4
         yes
5
         #endif
6
     ],[
7
-        OPENSSL_VERSION="1.0.0 (libressl)"
8
+        OPENSSL_VERSION="1.0.0 (libressl < 2.7)"
9
     ],[
10
         OPENSSL_VERSION=""
11
     ])
12
@@ -502,7 +502,20 @@ if test "z$OPENSSL_FOUND" = "zyes" -a "z
13
     if test "z$OPENSSL_VERSION" = "z" ; then
14
         AC_EGREP_CPP(yes,[
15
             #include <openssl/opensslv.h>
16
-        #if OPENSSL_VERSION_NUMBER >= 0x10100000L
17
+        #if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L
18
+        yes
19
+        #endif
20
+    ],[
21
+        OPENSSL_VERSION="1.1.0 (libressl >= 2.7)"
22
+    ],[
23
+        OPENSSL_VERSION=""
24
+    ])
25
+    fi
26
+
27
+    if test "z$OPENSSL_VERSION" = "z" ; then
28
+        AC_EGREP_CPP(yes,[
29
+            #include <openssl/opensslv.h>
30
+        #if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
31
         yes
32
         #endif
33
     ],[
(-)security/xmlsec1/files/patch-include_xmlsec_openssl_crypto.h (-19 lines)
Lines 1-19 Link Here
1
--- include/xmlsec/openssl/crypto.h.orig	2017-09-12 13:21:09 UTC
2
+++ include/xmlsec/openssl/crypto.h
3
@@ -43,11 +43,14 @@ XMLSEC_CRYPTO_EXPORT const xmlChar*     
4
  * What version of the openssl API do we have? (also see configure.ac)
5
  *
6
  *******************************************************************/
7
-#if OPENSSL_VERSION_NUMBER == 0x20000000L && defined(LIBRESSL_VERSION_NUMBER)
8
-/* Libressl decided to take over OpenSSL version 2.0.0, likely will create
9
+#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L
10
+/* LibreSSL decided to take over OpenSSL version 2.0.0, likely will create
11
  * issues down the road...
12
  */
13
 #define XMLSEC_OPENSSL_API_100      1
14
+#elif defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L
15
+/* LibreSSL 2.7 implements OpenSSL 1.1 API */
16
+#define XMLSEC_OPENSSL_API_110      1
17
 #elif OPENSSL_VERSION_NUMBER >= 0x10100000L
18
 #define XMLSEC_OPENSSL_API_110      1
19
 #elif OPENSSL_VERSION_NUMBER >= 0x10000000L
(-)security/xmlsec1/pkg-plist (-7 / +6 lines)
Lines 1-6 Link Here
1
bin/xmlsec1
1
bin/xmlsec1
2
bin/xmlsec1-config
2
bin/xmlsec1-config
3
etc/xmlsec1Conf.sh
4
include/xmlsec1/xmlsec/app.h
3
include/xmlsec1/xmlsec/app.h
5
include/xmlsec1/xmlsec/base64.h
4
include/xmlsec1/xmlsec/base64.h
6
include/xmlsec1/xmlsec/bn.h
5
include/xmlsec1/xmlsec/bn.h
Lines 39-45 Link Here
39
include/xmlsec1/xmlsec/openssl/x509.h
38
include/xmlsec1/xmlsec/openssl/x509.h
40
include/xmlsec1/xmlsec/parser.h
39
include/xmlsec1/xmlsec/parser.h
41
include/xmlsec1/xmlsec/private.h
40
include/xmlsec1/xmlsec/private.h
42
include/xmlsec1/xmlsec/private/xslt.h
43
include/xmlsec1/xmlsec/soap.h
41
include/xmlsec1/xmlsec/soap.h
44
include/xmlsec1/xmlsec/strings.h
42
include/xmlsec1/xmlsec/strings.h
45
include/xmlsec1/xmlsec/templates.h
43
include/xmlsec1/xmlsec/templates.h
Lines 50-55 Link Here
50
include/xmlsec1/xmlsec/xmlenc.h
48
include/xmlsec1/xmlsec/xmlenc.h
51
include/xmlsec1/xmlsec/xmlsec.h
49
include/xmlsec1/xmlsec/xmlsec.h
52
include/xmlsec1/xmlsec/xmltree.h
50
include/xmlsec1/xmlsec/xmltree.h
51
lib/xmlsec1Conf.sh
53
lib/libxmlsec1-gcrypt.a
52
lib/libxmlsec1-gcrypt.a
54
lib/libxmlsec1-gcrypt.so
53
lib/libxmlsec1-gcrypt.so
55
lib/libxmlsec1-gcrypt.so.1
54
lib/libxmlsec1-gcrypt.so.1
Lines 56-75 Link Here
56
%%GNUTLS%%lib/libxmlsec1-gnutls.a
55
%%GNUTLS%%lib/libxmlsec1-gnutls.a
57
%%GNUTLS%%lib/libxmlsec1-gnutls.so
56
%%GNUTLS%%lib/libxmlsec1-gnutls.so
58
%%GNUTLS%%lib/libxmlsec1-gnutls.so.1
57
%%GNUTLS%%lib/libxmlsec1-gnutls.so.1
59
%%GNUTLS%%lib/libxmlsec1-gnutls.so.1.2.25
58
%%GNUTLS%%lib/libxmlsec1-gnutls.so.%%VERSION%%
60
%%NSS%%lib/libxmlsec1-nss.a
59
%%NSS%%lib/libxmlsec1-nss.a
61
%%NSS%%lib/libxmlsec1-nss.so
60
%%NSS%%lib/libxmlsec1-nss.so
62
%%NSS%%lib/libxmlsec1-nss.so.1
61
%%NSS%%lib/libxmlsec1-nss.so.1
63
%%NSS%%lib/libxmlsec1-nss.so.1.2.25
62
%%NSS%%lib/libxmlsec1-nss.so.%%VERSION%%
64
lib/libxmlsec1-gcrypt.so.1.2.25
63
lib/libxmlsec1-gcrypt.so.%%VERSION%%
65
lib/libxmlsec1-openssl.a
64
lib/libxmlsec1-openssl.a
66
lib/libxmlsec1-openssl.so
65
lib/libxmlsec1-openssl.so
67
lib/libxmlsec1-openssl.so.1
66
lib/libxmlsec1-openssl.so.1
68
lib/libxmlsec1-openssl.so.1.2.25
67
lib/libxmlsec1-openssl.so.%%VERSION%%
69
lib/libxmlsec1.a
68
lib/libxmlsec1.a
70
lib/libxmlsec1.so
69
lib/libxmlsec1.so
71
lib/libxmlsec1.so.1
70
lib/libxmlsec1.so.1
72
lib/libxmlsec1.so.1.2.25
71
lib/libxmlsec1.so.%%VERSION%%
73
libdata/pkgconfig/xmlsec1-gcrypt.pc
72
libdata/pkgconfig/xmlsec1-gcrypt.pc
74
%%GNUTLS%%libdata/pkgconfig/xmlsec1-gnutls.pc
73
%%GNUTLS%%libdata/pkgconfig/xmlsec1-gnutls.pc
75
%%NSS%%libdata/pkgconfig/xmlsec1-nss.pc
74
%%NSS%%libdata/pkgconfig/xmlsec1-nss.pc

Return to bug 243717