diff options
| author | Martin Jansa <martin.jansa@gmail.com> | 2020-01-28 02:52:34 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-01-27 20:04:56 -0800 |
| commit | 1c085f4877d78901f1e8c2aff4c670f2ed1f7f98 (patch) | |
| tree | 55ff92ff067b66dd4523777095c181d9f8647960 | |
| parent | 4de9a27a4e27621b04918d0fbc26e0295768feb7 (diff) | |
| download | meta-openembedded-1c085f4877d78901f1e8c2aff4c670f2ed1f7f98.tar.gz | |
xmlsec1: search nspr header files in ${STAGING_INCDIR}/nspr
* the --with-nspr/--with-nss should be just ${prefix} as mentioned in:
https://www.aleksey.com/pipermail/xmlsec/2005/007172.html
remove the change-finding-path-of-nss.patch parts handling nspr and
handling incorrect --with-nspr/--with-nss value in the recipe missing
"/usr" prefix
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/xmlsec1/xmlsec1/change-finding-path-of-nss.patch | 44 | ||||
| -rw-r--r-- | meta-oe/recipes-support/xmlsec1/xmlsec1_1.2.29.bb | 6 |
2 files changed, 5 insertions, 45 deletions
diff --git a/meta-oe/recipes-support/xmlsec1/xmlsec1/change-finding-path-of-nss.patch b/meta-oe/recipes-support/xmlsec1/xmlsec1/change-finding-path-of-nss.patch index 1cec47fca0..1451ff5647 100644 --- a/meta-oe/recipes-support/xmlsec1/xmlsec1/change-finding-path-of-nss.patch +++ b/meta-oe/recipes-support/xmlsec1/xmlsec1/change-finding-path-of-nss.patch | |||
| @@ -16,12 +16,8 @@ diff --git a/configure.ac b/configure.ac | |||
| 16 | index 951b3eb..1fdeb0f 100644 | 16 | index 951b3eb..1fdeb0f 100644 |
| 17 | --- a/configure.ac | 17 | --- a/configure.ac |
| 18 | +++ b/configure.ac | 18 | +++ b/configure.ac |
| 19 | @@ -866,10 +866,10 @@ MOZILLA_MIN_VERSION="1.4" | 19 | @@ -866,7 +866,7 @@ MOZILLA_MIN_VERSION="1.4" |
| 20 | NSS_CRYPTO_LIB="$XMLSEC_PACKAGE-nss" | 20 | NSPR_INCLUDE_MARKER="nspr/nspr.h" |
| 21 | NSPR_PACKAGE=mozilla-nspr | ||
| 22 | NSS_PACKAGE=mozilla-nss | ||
| 23 | -NSPR_INCLUDE_MARKER="nspr/nspr.h" | ||
| 24 | +NSPR_INCLUDE_MARKER="nspr.h" | ||
| 25 | NSPR_LIB_MARKER="libnspr4$shrext" | 21 | NSPR_LIB_MARKER="libnspr4$shrext" |
| 26 | NSPR_LIBS_LIST="-lnspr4 -lplds4 -lplc4" | 22 | NSPR_LIBS_LIST="-lnspr4 -lplds4 -lplc4" |
| 27 | -NSS_INCLUDE_MARKER="nss/nss.h" | 23 | -NSS_INCLUDE_MARKER="nss/nss.h" |
| @@ -29,39 +25,3 @@ index 951b3eb..1fdeb0f 100644 | |||
| 29 | NSS_LIB_MARKER="libnss3$shrext" | 25 | NSS_LIB_MARKER="libnss3$shrext" |
| 30 | NSS_LIBS_LIST="-lnss3 -lsmime3" | 26 | NSS_LIBS_LIST="-lnss3 -lsmime3" |
| 31 | 27 | ||
| 32 | @@ -898,24 +898,24 @@ fi | ||
| 33 | dnl Priority 1: User specifies the path to installation | ||
| 34 | if test "z$NSPR_FOUND" = "zno" -a "z$with_nspr" != "z" -a "z$with_nspr" != "zyes" ; then | ||
| 35 | AC_MSG_CHECKING(for nspr library installation in "$with_nspr" folder) | ||
| 36 | - if test -f "$with_nspr/include/$NSPR_INCLUDE_MARKER" -a -f "$with_nspr/lib/$NSPR_LIB_MARKER" ; then | ||
| 37 | - NSPR_INCLUDE_PATH="$with_nspr/include" | ||
| 38 | - NSPR_LIB_PATH="$with_nspr/lib" | ||
| 39 | + if test -f "$with_nspr/usr/include/$NSPR_INCLUDE_MARKER" -a -f "$with_nspr/${libdir}/$NSPR_LIB_MARKER" ; then | ||
| 40 | + NSPR_INCLUDE_PATH="$with_nspr/usr/include" | ||
| 41 | + NSPR_LIB_PATH="$with_nspr/${libdir}" | ||
| 42 | NSPR_FOUND="yes" | ||
| 43 | AC_MSG_RESULT([yes]) | ||
| 44 | else | ||
| 45 | - AC_MSG_ERROR([not found: "$with_nspr/include/$NSPR_INCLUDE_MARKER" and/or "$with_nspr/lib/$NSPR_LIB_MARKER" files don't exist), typo?]) | ||
| 46 | + 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?]) | ||
| 47 | fi | ||
| 48 | fi | ||
| 49 | if test "z$NSS_FOUND" = "zno" -a "z$with_nss" != "z" -a "z$with_nss" != "zyes" ; then | ||
| 50 | AC_MSG_CHECKING(for nss library installation in "$with_nss" folder) | ||
| 51 | - if test -f "$with_nss/include/$NSS_INCLUDE_MARKER" -a -f "$with_nss/lib/$NSS_LIB_MARKER" ; then | ||
| 52 | - NSS_INCLUDE_PATH="$with_nss/include" | ||
| 53 | - NSS_LIB_PATH="$with_nss/lib" | ||
| 54 | + if test -f "$with_nss/usr/include/$NSS_INCLUDE_MARKER" -a -f "$with_nss/${libdir}/$NSS_LIB_MARKER" ; then | ||
| 55 | + NSS_INCLUDE_PATH="$with_nss/usr/include/nss3" | ||
| 56 | + NSS_LIB_PATH="$with_nss/${libdir}" | ||
| 57 | NSS_FOUND="yes" | ||
| 58 | AC_MSG_RESULT([yes]) | ||
| 59 | else | ||
| 60 | - AC_MSG_ERROR([not found: "$with_nss/include/$NSS_INCLUDE_MARKER" and/or "$with_nss/lib/$NSS_LIB_MARKER" files don't exist), typo?]) | ||
| 61 | + 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?]) | ||
| 62 | fi | ||
| 63 | fi | ||
| 64 | |||
| 65 | -- | ||
| 66 | 2.7.4 | ||
| 67 | |||
diff --git a/meta-oe/recipes-support/xmlsec1/xmlsec1_1.2.29.bb b/meta-oe/recipes-support/xmlsec1/xmlsec1_1.2.29.bb index 40c585ee10..3e25e8d35f 100644 --- a/meta-oe/recipes-support/xmlsec1/xmlsec1_1.2.29.bb +++ b/meta-oe/recipes-support/xmlsec1/xmlsec1_1.2.29.bb | |||
| @@ -25,13 +25,13 @@ SRC_URI[sha256sum] = "b1d1deba966019930f608d1f2b95c40ca3450f1393bcd3a3c001a8ba1d | |||
| 25 | 25 | ||
| 26 | inherit autotools-brokensep ptest pkgconfig | 26 | inherit autotools-brokensep ptest pkgconfig |
| 27 | 27 | ||
| 28 | CFLAGS += "-I${STAGING_INCDIR}/nspr4 -I${STAGING_INCDIR}/nss3" | 28 | #CFLAGS += "-I${STAGING_INCDIR}/nss3" |
| 29 | CPPFLAGS += "-I${STAGING_INCDIR}/nspr4 -I${STAGING_INCDIR}/nss3" | 29 | #CPPFLAGS += "-I${STAGING_INCDIR}/nss3" |
| 30 | 30 | ||
| 31 | PACKAGECONFIG ??= "gnutls libgcrypt nss openssl des" | 31 | PACKAGECONFIG ??= "gnutls libgcrypt nss openssl des" |
| 32 | PACKAGECONFIG[gnutls] = ",,gnutls" | 32 | PACKAGECONFIG[gnutls] = ",,gnutls" |
| 33 | PACKAGECONFIG[libgcrypt] = ",,libgcrypt" | 33 | PACKAGECONFIG[libgcrypt] = ",,libgcrypt" |
| 34 | PACKAGECONFIG[nss] = "--with-nss=${STAGING_LIBDIR}/../.. --with-nspr=${STAGING_LIBDIR}/../..,,nss nspr" | 34 | PACKAGECONFIG[nss] = "--with-nss=${STAGING_LIBDIR}/.. --with-nspr=${STAGING_LIBDIR}/..,,nss nspr" |
| 35 | PACKAGECONFIG[openssl] = ",,openssl" | 35 | PACKAGECONFIG[openssl] = ",,openssl" |
| 36 | PACKAGECONFIG[des] = ",--disable-des,," | 36 | PACKAGECONFIG[des] = ",--disable-des,," |
| 37 | 37 | ||
