1 |
commit: 03615d27a5ab502bbb7a011f546b1b2a9da376a2 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 2 15:24:06 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 2 15:24:24 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03615d27 |
7 |
|
8 |
dev-libs/xmlsec: fix tests with >=dev-libs/nss-5.59 |
9 |
|
10 |
MD5 was removed upstream. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/764437 |
13 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
.../xmlsec/files/xmlsec-1.2.31-fix-nss-3.59.patch | 29 ++++++++++++++++++++++ |
17 |
dev-libs/xmlsec/xmlsec-1.2.31.ebuild | 6 ++++- |
18 |
2 files changed, 34 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/dev-libs/xmlsec/files/xmlsec-1.2.31-fix-nss-3.59.patch b/dev-libs/xmlsec/files/xmlsec-1.2.31-fix-nss-3.59.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..b70b8cf2d61 |
23 |
--- /dev/null |
24 |
+++ b/dev-libs/xmlsec/files/xmlsec-1.2.31-fix-nss-3.59.patch |
25 |
@@ -0,0 +1,29 @@ |
26 |
+https://bugs.gentoo.org/764437 |
27 |
+https://github.com/lsh123/xmlsec/commit/f3a59c721e38a663405093e2bbb30e2bf45853a2.patch |
28 |
+From f3a59c721e38a663405093e2bbb30e2bf45853a2 Mon Sep 17 00:00:00 2001 |
29 |
+From: lsh123 <aleksey@×××××××.com> |
30 |
+Date: Fri, 18 Dec 2020 16:22:40 -0800 |
31 |
+Subject: [PATCH] Remove MD5 for NSS 3.59 and above; enable nss test on osx and |
32 |
+ mingw (issue #305) (#306) |
33 |
+ |
34 |
+--- |
35 |
+ include/xmlsec/nss/crypto.h | 6 ++++++ |
36 |
+ 2 files changed, 10 insertions(+), 3 deletions(-) |
37 |
+ |
38 |
+diff --git a/include/xmlsec/nss/crypto.h b/include/xmlsec/nss/crypto.h |
39 |
+index 223c1d85..614ac931 100644 |
40 |
+--- a/include/xmlsec/nss/crypto.h |
41 |
++++ b/include/xmlsec/nss/crypto.h |
42 |
+@@ -19,6 +19,12 @@ |
43 |
+ #include <xmlsec/transforms.h> |
44 |
+ #include <xmlsec/dl.h> |
45 |
+ |
46 |
++ |
47 |
++/* MD5 was removed from NSS */ |
48 |
++#if (NSS_VMAJOR > 3) || ((NSS_VMAJOR == 3) && (NSS_VMINOR > 58)) |
49 |
++#define XMLSEC_NO_MD5 1 |
50 |
++#endif /* (NSS_VMAJOR > 3) || ((NSS_VMAJOR == 3) && (NSS_VMINOR > 58)) */ |
51 |
++ |
52 |
+ #ifdef __cplusplus |
53 |
+ extern "C" { |
54 |
+ #endif /* __cplusplus */ |
55 |
|
56 |
diff --git a/dev-libs/xmlsec/xmlsec-1.2.31.ebuild b/dev-libs/xmlsec/xmlsec-1.2.31.ebuild |
57 |
index 2da2a8e15d6..671ed055d22 100644 |
58 |
--- a/dev-libs/xmlsec/xmlsec-1.2.31.ebuild |
59 |
+++ b/dev-libs/xmlsec/xmlsec-1.2.31.ebuild |
60 |
@@ -1,4 +1,4 @@ |
61 |
-# Copyright 1999-2020 Gentoo Authors |
62 |
+# Copyright 1999-2021 Gentoo Authors |
63 |
# Distributed under the terms of the GNU General Public License v2 |
64 |
|
65 |
EAPI=7 |
66 |
@@ -36,6 +36,10 @@ BDEPEND="virtual/pkgconfig |
67 |
) |
68 |
)" |
69 |
|
70 |
+PATCHES=( |
71 |
+ "${FILESDIR}/${P}-fix-nss-3.59.patch" |
72 |
+) |
73 |
+ |
74 |
src_configure() { |
75 |
# Bash because of bug #721128 |
76 |
CONFIG_SHELL=${BASH} econf \ |