mirror of
https://git.yoctoproject.org/meta-security
synced 2026-06-03 13:50:45 +00:00
xmlsec1: upgrade 1.2.25 -> 1.2.26
Drop patch xmlsec1-fix-a-typo-in-examples-verify3.c.patch since the issue had been fixed upstream. Rebase patch change-finding-path-of-nss.patch Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
From 47379747e34f952d31af028c672940ca7859ae3c Mon Sep 17 00:00:00 2001
|
From c1c980a95d85bcaf8802524d6148783522b300d7 Mon Sep 17 00:00:00 2001
|
||||||
From: Yulong Pei <Yulong.pei@windriver.com>
|
From: Yulong Pei <Yulong.pei@windriver.com>
|
||||||
Date: Wed, 21 Jul 2010 22:33:43 +0800
|
Date: Wed, 21 Jul 2010 22:33:43 +0800
|
||||||
Subject: [PATCH] change finding path of nss and nspr
|
Subject: [PATCH] change finding path of nss and nspr
|
||||||
@@ -7,66 +7,61 @@ Upstream-Status: Pending
|
|||||||
|
|
||||||
Signed-off-by: Yulong Pei <Yulong.pei@windriver.com>
|
Signed-off-by: Yulong Pei <Yulong.pei@windriver.com>
|
||||||
Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
|
Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
|
||||||
|
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||||
---
|
---
|
||||||
configure.ac | 12 ++++++------
|
configure.ac | 20 ++++++++++----------
|
||||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
1 file changed, 10 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
diff --git a/configure.ac b/configure.ac
|
||||||
index 3278200..6edec7d 100644
|
index 951b3eb..1fdeb0f 100644
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -644,7 +644,7 @@ if test "z$NSS_FOUND" = "zno" ; then
|
@@ -866,10 +866,10 @@ MOZILLA_MIN_VERSION="1.4"
|
||||||
|
NSS_CRYPTO_LIB="$XMLSEC_PACKAGE-nss"
|
||||||
|
NSPR_PACKAGE=mozilla-nspr
|
||||||
|
NSS_PACKAGE=mozilla-nss
|
||||||
|
-NSPR_INCLUDE_MARKER="nspr/nspr.h"
|
||||||
|
+NSPR_INCLUDE_MARKER="nspr.h"
|
||||||
|
NSPR_LIB_MARKER="libnspr4$shrext"
|
||||||
|
NSPR_LIBS_LIST="-lnspr4 -lplds4 -lplc4"
|
||||||
|
-NSS_INCLUDE_MARKER="nss/nss.h"
|
||||||
|
+NSS_INCLUDE_MARKER="nss3/nss.h"
|
||||||
|
NSS_LIB_MARKER="libnss3$shrext"
|
||||||
|
NSS_LIBS_LIST="-lnss3 -lsmime3"
|
||||||
|
|
||||||
if test "z$with_nspr" != "z" ; then
|
@@ -898,24 +898,24 @@ fi
|
||||||
NSPR_PREFIX="$with_nspr"
|
dnl Priority 1: User specifies the path to installation
|
||||||
- NSPR_CFLAGS="-I$with_nspr/include -I$with_nspr/include/nspr"
|
if test "z$NSPR_FOUND" = "zno" -a "z$with_nspr" != "z" -a "z$with_nspr" != "zyes" ; then
|
||||||
+ NSPR_CFLAGS="-I$with_nspr/usr/include -I$with_nspr/usr/include/nspr4"
|
AC_MSG_CHECKING(for nspr library installation in "$with_nspr" folder)
|
||||||
if test "z$with_gnu_ld" = "zyes" ; then
|
- if test -f "$with_nspr/include/$NSPR_INCLUDE_MARKER" -a -f "$with_nspr/lib/$NSPR_LIB_MARKER" ; then
|
||||||
NSPR_LIBS="-Wl,-rpath-link -Wl,$with_nspr/lib -L$with_nspr/lib $NSPR_LIBS_LIST"
|
- NSPR_INCLUDE_PATH="$with_nspr/include"
|
||||||
else
|
- NSPR_LIB_PATH="$with_nspr/lib"
|
||||||
@@ -652,7 +652,7 @@ if test "z$NSS_FOUND" = "zno" ; then
|
+ if test -f "$with_nspr/usr/include/$NSPR_INCLUDE_MARKER" -a -f "$with_nspr/${libdir}/$NSPR_LIB_MARKER" ; then
|
||||||
fi
|
+ NSPR_INCLUDE_PATH="$with_nspr/usr/include"
|
||||||
NSPR_INCLUDES_FOUND="yes"
|
+ NSPR_LIB_PATH="$with_nspr/${libdir}"
|
||||||
NSPR_LIBS_FOUND="yes"
|
NSPR_FOUND="yes"
|
||||||
- NSPR_PRINIT_H="$with_nspr/include/prinit.h"
|
AC_MSG_RESULT([yes])
|
||||||
+ NSPR_PRINIT_H="$with_nspr/usr/include/nspr4/prinit.h"
|
|
||||||
else
|
else
|
||||||
for dir in $ac_nss_inc_dir ; do
|
- AC_MSG_ERROR([not found: "$with_nspr/include/$NSPR_INCLUDE_MARKER" and/or "$with_nspr/lib/$NSPR_LIB_MARKER" files don't exist), typo?])
|
||||||
if test -f $dir/nspr/prinit.h ; then
|
+ AC_MSG_ERROR([not found: "$with_nspr/usr/include/$NSPR_INCLUDE_MARKER" and/or "$with_nspr/${libdir}/$NSPR_LIB_MARKER" files don't exist), typo?])
|
||||||
@@ -690,7 +690,7 @@ if test "z$NSS_FOUND" = "zno" ; then
|
fi
|
||||||
OLD_CPPFLAGS=$CPPFLAGS
|
fi
|
||||||
CPPFLAGS="$NSPR_CFLAGS"
|
if test "z$NSS_FOUND" = "zno" -a "z$with_nss" != "z" -a "z$with_nss" != "zyes" ; then
|
||||||
AC_EGREP_CPP(yes,[
|
AC_MSG_CHECKING(for nss library installation in "$with_nss" folder)
|
||||||
- #include <prinit.h>
|
- if test -f "$with_nss/include/$NSS_INCLUDE_MARKER" -a -f "$with_nss/lib/$NSS_LIB_MARKER" ; then
|
||||||
+ #include <nspr4/prinit.h>
|
- NSS_INCLUDE_PATH="$with_nss/include"
|
||||||
#if PR_VMAJOR >= 4
|
- NSS_LIB_PATH="$with_nss/lib"
|
||||||
yes
|
+ if test -f "$with_nss/usr/include/$NSS_INCLUDE_MARKER" -a -f "$with_nss/${libdir}/$NSS_LIB_MARKER" ; then
|
||||||
#endif
|
+ NSS_INCLUDE_PATH="$with_nss/usr/include/nss3"
|
||||||
@@ -715,7 +715,7 @@ if test "z$NSS_FOUND" = "zno" ; then
|
+ NSS_LIB_PATH="$with_nss/${libdir}"
|
||||||
NSS_NSS_H=""
|
NSS_FOUND="yes"
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
- AC_MSG_ERROR([not found: "$with_nss/include/$NSS_INCLUDE_MARKER" and/or "$with_nss/lib/$NSS_LIB_MARKER" files don't exist), typo?])
|
||||||
|
+ AC_MSG_ERROR([not found: "$with_nss/usr/include/$NSS_INCLUDE_MARKER" and/or "$with_nss/${libdir}/$NSS_LIB_MARKER" files don't exist), typo?])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if test "z$with_nss" != "z" ; then
|
--
|
||||||
- NSS_CFLAGS="$NSS_CFLAGS -I$with_nss/include -I$with_nss/include/nss"
|
2.7.4
|
||||||
+ NSS_CFLAGS="$NSS_CFLAGS -I$with_nss/usr/include -I$with_nss/usr/include/nss3 -I$with_nspr/usr/include/nspr4"
|
|
||||||
if test "z$with_gnu_ld" = "zyes" ; then
|
|
||||||
NSS_LIBS="$NSS_LIBS -Wl,-rpath-link -Wl,$with_nss/lib -L$with_nss/lib $NSS_LIBS_LIST"
|
|
||||||
else
|
|
||||||
@@ -723,7 +723,7 @@ if test "z$NSS_FOUND" = "zno" ; then
|
|
||||||
fi
|
|
||||||
NSS_INCLUDES_FOUND="yes"
|
|
||||||
NSS_LIBS_FOUND="yes"
|
|
||||||
- NSS_NSS_H="$with_nss/include/nss.h"
|
|
||||||
+ NSS_NSS_H="$with_nss/usr/include/nss3/nss.h"
|
|
||||||
else
|
|
||||||
for dir in $ac_nss_inc_dir ; do
|
|
||||||
if test -f $dir/nss/nss.h ; then
|
|
||||||
@@ -761,7 +761,7 @@ if test "z$NSS_FOUND" = "zno" ; then
|
|
||||||
OLD_CPPFLAGS=$CPPFLAGS
|
|
||||||
CPPFLAGS="$NSPR_CFLAGS $NSS_CFLAGS"
|
|
||||||
AC_EGREP_CPP(yes,[
|
|
||||||
- #include <nss.h>
|
|
||||||
+ #include <nss3/nss.h>
|
|
||||||
#if NSS_VMAJOR >= 3 && NSS_VMINOR >= 2
|
|
||||||
yes
|
|
||||||
#endif
|
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
From 1d8ae4b32bd76c19ec238f30eb9b1ee582cbe990 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jackie Huang <jackie.huang@windriver.com>
|
|
||||||
Date: Fri, 2 Mar 2018 01:10:58 -0800
|
|
||||||
Subject: [PATCH] xmlsec1: fix a typo in examples/verify3.c
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://github.com/lsh123/xmlsec/pull/153]
|
|
||||||
|
|
||||||
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
|
|
||||||
|
|
||||||
---
|
|
||||||
examples/verify3.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/examples/verify3.c b/examples/verify3.c
|
|
||||||
index 2d26ae7..68f52ab 100644
|
|
||||||
--- a/examples/verify3.c
|
|
||||||
+++ b/examples/verify3.c
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-4/**
|
|
||||||
+/**
|
|
||||||
* XML Security Library example: Verifying a file signed with X509 certificate
|
|
||||||
*
|
|
||||||
* Verifies a file signed with X509 certificate.
|
|
||||||
+2
-3
@@ -17,12 +17,11 @@ SRC_URI = "http://www.aleksey.com/xmlsec/download/${BP}.tar.gz \
|
|||||||
file://change-finding-path-of-nss.patch \
|
file://change-finding-path-of-nss.patch \
|
||||||
file://makefile-ptest.patch \
|
file://makefile-ptest.patch \
|
||||||
file://xmlsec1-examples-allow-build-in-separate-dir.patch \
|
file://xmlsec1-examples-allow-build-in-separate-dir.patch \
|
||||||
file://xmlsec1-fix-a-typo-in-examples-verify3.c.patch \
|
|
||||||
file://run-ptest \
|
file://run-ptest \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "dbbef1efc69e61bc4629650205a05b41"
|
SRC_URI[md5sum] = "9c4aaf9ff615a73921b9e3bf4988d878"
|
||||||
SRC_URI[sha256sum] = "967ca83edf25ccb5b48a3c4a09ad3405a63365576503bf34290a42de1b92fcd2"
|
SRC_URI[sha256sum] = "8d8276c9c720ca42a3b0023df8b7ae41a2d6c5f9aa8d20ed1672d84cc8982d50"
|
||||||
|
|
||||||
inherit autotools-brokensep ptest pkgconfig
|
inherit autotools-brokensep ptest pkgconfig
|
||||||
|
|
||||||
Reference in New Issue
Block a user