summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/libxcrypt
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/libxcrypt')
-rw-r--r--meta/recipes-core/libxcrypt/files/fix_cflags_handling.patch33
-rw-r--r--meta/recipes-core/libxcrypt/libxcrypt-compat_4.4.38.bb (renamed from meta/recipes-core/libxcrypt/libxcrypt-compat_4.4.36.bb)3
-rw-r--r--meta/recipes-core/libxcrypt/libxcrypt.inc9
-rw-r--r--meta/recipes-core/libxcrypt/libxcrypt_4.4.38.bb (renamed from meta/recipes-core/libxcrypt/libxcrypt_4.4.36.bb)0
4 files changed, 5 insertions, 40 deletions
diff --git a/meta/recipes-core/libxcrypt/files/fix_cflags_handling.patch b/meta/recipes-core/libxcrypt/files/fix_cflags_handling.patch
deleted file mode 100644
index 94aa3fed49..0000000000
--- a/meta/recipes-core/libxcrypt/files/fix_cflags_handling.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From 7b2a0cdc281d94a5782c37ef87040c341447b4b4 Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Fri, 30 Apr 2021 10:35:02 +0100
4Subject: [PATCH] libxcrypt: Update to 4.4.19 release and fix symbol version
5
6If you pass CFLAGS with a leading space, " " gets passed to popen and convinces
7gcc to try and open a file called " ". This results in a confusing error message
8like:
9
10x86_64-pokysdk-linux-gcc: error: : No such file or directory
11
12Avoid this by stripping empty elements out of CFLAGS.
13
14Upstream-Status: Submitted [https://github.com/besser82/libxcrypt/pull/126]
15Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
16
17---
18 build-aux/scripts/compute-symver-floor | 2 ++
19 1 file changed, 2 insertions(+)
20
21diff --git a/build-aux/scripts/compute-symver-floor b/build-aux/scripts/compute-symver-floor
22index 4ec82e1..8117342 100644
23--- a/build-aux/scripts/compute-symver-floor
24+++ b/build-aux/scripts/compute-symver-floor
25@@ -36,6 +36,8 @@ sub preprocessor_check {
26 die "C compiler not available\n" unless @CC;
27
28 @CFLAGS = sh_split($ENV{CFLAGS} // q{});
29+ # Remove empty elements, particularly leading ones which cause issues with popen below
30+ @CFLAGS = grep {$_} @CFLAGS;
31
32 # Remove empty elements, particularly leading ones which
33 # cause issues with popen below.
diff --git a/meta/recipes-core/libxcrypt/libxcrypt-compat_4.4.36.bb b/meta/recipes-core/libxcrypt/libxcrypt-compat_4.4.38.bb
index d5546ce9ba..bb4e2032dd 100644
--- a/meta/recipes-core/libxcrypt/libxcrypt-compat_4.4.36.bb
+++ b/meta/recipes-core/libxcrypt/libxcrypt-compat_4.4.38.bb
@@ -1,5 +1,5 @@
1# 1#
2# This provides libcrypto.so.1 which contains obsolete APIs, needed for uninative in particular 2# This provides libcrypt.so.1 which contains obsolete APIs, needed for uninative in particular
3# 3#
4 4
5require libxcrypt.inc 5require libxcrypt.inc
@@ -16,3 +16,4 @@ do_install:append () {
16 rm -rf ${D}${libdir}/libcrypt.so 16 rm -rf ${D}${libdir}/libcrypt.so
17 rm -rf ${D}${datadir} 17 rm -rf ${D}${datadir}
18} 18}
19
diff --git a/meta/recipes-core/libxcrypt/libxcrypt.inc b/meta/recipes-core/libxcrypt/libxcrypt.inc
index ba93d91aef..77fec83234 100644
--- a/meta/recipes-core/libxcrypt/libxcrypt.inc
+++ b/meta/recipes-core/libxcrypt/libxcrypt.inc
@@ -9,16 +9,13 @@ LIC_FILES_CHKSUM = "file://LICENSING;md5=c0a30e2b1502c55a7f37e412cd6c6a4b \
9 9
10inherit autotools pkgconfig 10inherit autotools pkgconfig
11 11
12SRC_URI = "git://github.com/besser82/libxcrypt.git;branch=${SRCBRANCH};protocol=https" 12SRC_URI = "git://github.com/besser82/libxcrypt.git;branch=${SRCBRANCH};protocol=https \
13SRCREV = "f531a36aa916a22ef2ce7d270ba381e264250cbf" 13 "
14SRCREV = "55ea777e8d567e5e86ffac917c28815ac54cc341"
14SRCBRANCH ?= "master" 15SRCBRANCH ?= "master"
15 16
16SRC_URI += "file://fix_cflags_handling.patch"
17
18PROVIDES = "virtual/crypt" 17PROVIDES = "virtual/crypt"
19 18
20S = "${WORKDIR}/git"
21
22BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}" 19BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}"
23TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir} -Wno-error" 20TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir} -Wno-error"
24CPPFLAGS:append:class-nativesdk = " -Wno-error" 21CPPFLAGS:append:class-nativesdk = " -Wno-error"
diff --git a/meta/recipes-core/libxcrypt/libxcrypt_4.4.36.bb b/meta/recipes-core/libxcrypt/libxcrypt_4.4.38.bb
index 79dba2f6dc..79dba2f6dc 100644
--- a/meta/recipes-core/libxcrypt/libxcrypt_4.4.36.bb
+++ b/meta/recipes-core/libxcrypt/libxcrypt_4.4.38.bb