libxcrypt: Upgrade to 4.0.1

Minor release primary fixes are
* get it building with gcc8
* Fixes for riscv64

drop local gcc8 support patch which is not needed now

(From OE-Core rev: b02ac5dd2dc27fe742cb7f20a12090eda3190c84)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2018-05-17 09:11:34 -07:00
committed by Richard Purdie
parent 09dc5c8273
commit 5174968168
2 changed files with 1 additions and 38 deletions

View File

@@ -1,36 +0,0 @@
From c8c5908611e44a649489e8d217528fedc4864e14 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 10 May 2018 13:32:20 -0700
Subject: [PATCH] disable format-truncation warning with gcc-8
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
crypt-sunmd5.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/crypt-sunmd5.c b/crypt-sunmd5.c
index 4c85b7f..3e838cd 100644
--- a/crypt-sunmd5.c
+++ b/crypt-sunmd5.c
@@ -151,6 +151,11 @@ getrounds (const char *s)
return ((uint32_t)val);
}
+#pragma GCC diagnostic push
+#if defined(__GNUC__) && (__GNUC__ >= 8)
+#pragma GCC diagnostic ignored "-Wformat-truncation"
+#endif
+
void
gensalt_sunmd5_rn (unsigned long count,
const uint8_t *rbytes, size_t nrbytes,
@@ -189,6 +194,7 @@ gensalt_sunmd5_rn (unsigned long count,
"$" CRYPT_ALGNAME "," ROUNDS "%u$%s$",
(unsigned int)count, rndstr);
}
+#pragma GCC diagnostic pop
void
crypt_sunmd5_rn (const char *phrase, const char *setting,

View File

@@ -9,11 +9,10 @@ LIC_FILES_CHKSUM ?= "file://LICENSING;md5=d1cc18f512ded3bd6000f3729f31be08 \
inherit autotools
SRCREV ?= "215b32aa4e0b255c3356a96bd6d257661bad73ca"
SRCREV ?= "089479bb24acd168613757a6f12d63caa95416b4"
SRCBRANCH ?= "master"
SRC_URI = "git://github.com/besser82/libxcrypt.git;branch=${SRCBRANCH} \
file://0001-disable-format-truncation-warning-with-gcc-8.patch \
"
PROVIDES = "virtual/crypt"