diff options
| author | simit.ghane <simit.ghane@lge.com> | 2024-07-24 07:37:03 +0530 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-26 12:28:42 +0100 |
| commit | 1dda68d7f22817e0c8944b2e0eda858f53bd12f6 (patch) | |
| tree | 7ddd7ecc87afda7ad889df85b67428ebd62b8cd3 /meta/recipes-support | |
| parent | 4e1b106c07d540b00034aa2425e8392ae64dd717 (diff) | |
| download | poky-1dda68d7f22817e0c8944b2e0eda858f53bd12f6.tar.gz | |
libgcrypt: upgrade 1.10.3 -> 1.11.0
Changelog:
==========
https://lists.gnu.org/archive/html/info-gnu/2024-06/msg00004.html
License-Update:
-Add 3-clause BSD license for poly1305-amd64-avx512.S.
-cipher/Makefile.am: Add 'poly1305-amd64-avx512.S'.
-cipher/poly1305-amd64-avx512.S: New.
-cipher/poly1305-internal.h (POLY1305_USE_AVX512): New.
-Add 'cipher/keccak-amd64-avx512.S'.
-Update license docs for FSF new address and update gcrypt.texi.
Apart from upgrade also refreshed the patches like
0001-libgcrypt-fix-m4-file-for-oe-core.patch
0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch
no-bench-slope.patch
In 0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch
reverted back the change in cipher/Makefile.am related to o_flag_munging
(From OE-Core rev: aa50e6bc8dcb3f5870e1fa285ec5ab997a7a59cf)
Signed-off-by: simit.ghane <simit.ghane@lge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
| -rw-r--r-- | meta/recipes-support/libgcrypt/files/0001-libgcrypt-fix-m4-file-for-oe-core.patch | 17 | ||||
| -rw-r--r-- | meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch | 51 | ||||
| -rw-r--r-- | meta/recipes-support/libgcrypt/files/no-bench-slope.patch | 12 | ||||
| -rw-r--r-- | meta/recipes-support/libgcrypt/libgcrypt_1.11.0.bb (renamed from meta/recipes-support/libgcrypt/libgcrypt_1.10.3.bb) | 13 |
4 files changed, 39 insertions, 54 deletions
diff --git a/meta/recipes-support/libgcrypt/files/0001-libgcrypt-fix-m4-file-for-oe-core.patch b/meta/recipes-support/libgcrypt/files/0001-libgcrypt-fix-m4-file-for-oe-core.patch index cbfa30f0ad..9615611f6e 100644 --- a/meta/recipes-support/libgcrypt/files/0001-libgcrypt-fix-m4-file-for-oe-core.patch +++ b/meta/recipes-support/libgcrypt/files/0001-libgcrypt-fix-m4-file-for-oe-core.patch | |||
| @@ -17,13 +17,13 @@ Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> | |||
| 17 | 1 file changed, 4 insertions(+), 86 deletions(-) | 17 | 1 file changed, 4 insertions(+), 86 deletions(-) |
| 18 | 18 | ||
| 19 | diff --git a/src/libgcrypt.m4 b/src/libgcrypt.m4 | 19 | diff --git a/src/libgcrypt.m4 b/src/libgcrypt.m4 |
| 20 | index cd4249e..e53a36f 100644 | 20 | index 353df81b6d..b195e22894 100644 |
| 21 | --- a/src/libgcrypt.m4 | 21 | --- a/src/libgcrypt.m4 |
| 22 | +++ b/src/libgcrypt.m4 | 22 | +++ b/src/libgcrypt.m4 |
| 23 | @@ -29,41 +29,6 @@ dnl is added to the gpg_config_script_warn variable. | 23 | @@ -116,41 +116,6 @@ dnl |
| 24 | dnl | ||
| 25 | AC_DEFUN([AM_PATH_LIBGCRYPT], | 24 | AC_DEFUN([AM_PATH_LIBGCRYPT], |
| 26 | [ AC_REQUIRE([AC_CANONICAL_HOST]) | 25 | [ AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 26 | AC_REQUIRE([_AM_PATH_GPGRT_CONFIG])dnl | ||
| 27 | - AC_ARG_WITH(libgcrypt-prefix, | 27 | - AC_ARG_WITH(libgcrypt-prefix, |
| 28 | - AS_HELP_STRING([--with-libgcrypt-prefix=PFX], | 28 | - AS_HELP_STRING([--with-libgcrypt-prefix=PFX], |
| 29 | - [prefix where LIBGCRYPT is installed (optional)]), | 29 | - [prefix where LIBGCRYPT is installed (optional)]), |
| @@ -62,7 +62,7 @@ index cd4249e..e53a36f 100644 | |||
| 62 | 62 | ||
| 63 | tmp=ifelse([$1], ,1:1.2.0,$1) | 63 | tmp=ifelse([$1], ,1:1.2.0,$1) |
| 64 | if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then | 64 | if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then |
| 65 | @@ -74,56 +39,13 @@ AC_DEFUN([AM_PATH_LIBGCRYPT], | 65 | @@ -161,56 +126,13 @@ AC_DEFUN([AM_PATH_LIBGCRYPT], |
| 66 | min_libgcrypt_version="$tmp" | 66 | min_libgcrypt_version="$tmp" |
| 67 | fi | 67 | fi |
| 68 | 68 | ||
| @@ -122,7 +122,7 @@ index cd4249e..e53a36f 100644 | |||
| 122 | if test "$tmp" -gt 0 ; then | 122 | if test "$tmp" -gt 0 ; then |
| 123 | AC_MSG_CHECKING([LIBGCRYPT API version]) | 123 | AC_MSG_CHECKING([LIBGCRYPT API version]) |
| 124 | if test "$req_libgcrypt_api" -eq "$tmp" ; then | 124 | if test "$req_libgcrypt_api" -eq "$tmp" ; then |
| 125 | @@ -136,11 +58,9 @@ AC_DEFUN([AM_PATH_LIBGCRYPT], | 125 | @@ -223,11 +145,9 @@ AC_DEFUN([AM_PATH_LIBGCRYPT], |
| 126 | fi | 126 | fi |
| 127 | fi | 127 | fi |
| 128 | if test $ok = yes; then | 128 | if test $ok = yes; then |
| @@ -135,7 +135,7 @@ index cd4249e..e53a36f 100644 | |||
| 135 | else | 135 | else |
| 136 | libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none` | 136 | libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none` |
| 137 | fi | 137 | fi |
| 138 | @@ -158,8 +78,6 @@ AC_DEFUN([AM_PATH_LIBGCRYPT], | 138 | @@ -245,8 +165,6 @@ AC_DEFUN([AM_PATH_LIBGCRYPT], |
| 139 | fi | 139 | fi |
| 140 | fi | 140 | fi |
| 141 | else | 141 | else |
| @@ -144,3 +144,6 @@ index cd4249e..e53a36f 100644 | |||
| 144 | ifelse([$3], , :, [$3]) | 144 | ifelse([$3], , :, [$3]) |
| 145 | fi | 145 | fi |
| 146 | AC_SUBST(LIBGCRYPT_CFLAGS) | 146 | AC_SUBST(LIBGCRYPT_CFLAGS) |
| 147 | -- | ||
| 148 | 2.34.1 | ||
| 149 | |||
diff --git a/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch b/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch index ea5bba8891..78b02eda9d 100644 --- a/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch +++ b/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch | |||
| @@ -1,40 +1,19 @@ | |||
| 1 | From 7d9817ca935a35fe6c8e2c2c7615825fa08a3a19 Mon Sep 17 00:00:00 2001 | 1 | From e96df0c82e086bf348753d2d0fa37fa6191b4b14 Mon Sep 17 00:00:00 2001 |
| 2 | From: "simit.ghane" <simit.ghane@lge.com> | 2 | From: "simit.ghane" <simit.ghane@lge.com> |
| 3 | Date: Tue, 7 May 2024 14:09:03 +0530 | 3 | Date: Tue, 11 Jun 2024 07:22:28 +0530 |
| 4 | Subject: [PATCHV2] Fix building error with '-O2' in sysroot path | 4 | Subject: [PATCH] random:cipher: handle substitution in sed command |
| 5 | 5 | ||
| 6 | Upstream-Status: Backport [https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=7d9817ca935a35fe6c8e2c2c7615825fa08a3a19 | 6 | Upstream-Status: Backport [https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=e96df0c82e086bf348753d2d0fa37fa6191b4b14] |
| 7 | https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=e96df0c82e086bf348753d2d0fa37fa6191b4b14 | ||
| 8 | https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=5afadba008918d651afefb842ae123cc18454c74] | ||
| 9 | |||
| 10 | * cipher/Makefile.am (o_flag_munging): Tweak the sed script. | ||
| 11 | * random/Makefile.am (o_flag_munging): Ditto. | ||
| 12 | -- | ||
| 13 | |||
| 14 | Characters like '-O2' or '-Ofast' will be replaced by '-O1' and '-O0' | ||
| 15 | respectively when compiling cipher and random in the filesystem | ||
| 16 | paths as well if they happen to contain '-O2' or '-Ofast | ||
| 17 | |||
| 18 | If we are cross compiling libgcrypt and sysroot contains such | ||
| 19 | characters, we would | ||
| 20 | get compile errors because the sysroot path has been modified. | ||
| 21 | |||
| 22 | Fix this by adding blank spaces and tabs before the original matching | ||
| 23 | pattern in the sed command. | ||
| 24 | |||
| 25 | Signed-off-by: simit.ghane <simit.ghane@lge.com> | ||
| 26 | |||
| 27 | ChangeLog entries added by wk | ||
| 28 | |||
| 29 | Note that there is also the configure option --disable-O-flag-munging; | ||
| 30 | see the README. | ||
| 31 | |||
| 32 | random:cipher: handle substitution in sed command | ||
| 33 | 7 | ||
| 34 | * cipher/Makefile.am (o_flag_munging): Add 'g' flag for first sed | 8 | * cipher/Makefile.am (o_flag_munging): Add 'g' flag for first sed |
| 35 | expression. | 9 | expression. |
| 36 | * random/Makefile.am (o_flag_munging): Likewise. | 10 | * random/Makefile.am (o_flag_munging): Likewise. |
| 11 | -- | ||
| 12 | |||
| 13 | It was there earlier and accidentally removed from | ||
| 14 | Makefile.am of cipher and random | ||
| 37 | 15 | ||
| 16 | Signed-off-by: simit.ghane <simit.ghane@lge.com> | ||
| 38 | [jk: add changelog to commit message] | 17 | [jk: add changelog to commit message] |
| 39 | Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi> | 18 | Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi> |
| 40 | --- | 19 | --- |
| @@ -43,27 +22,27 @@ Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi> | |||
| 43 | 2 files changed, 2 insertions(+), 2 deletions(-) | 22 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 44 | 23 | ||
| 45 | diff --git a/cipher/Makefile.am b/cipher/Makefile.am | 24 | diff --git a/cipher/Makefile.am b/cipher/Makefile.am |
| 46 | index c3d642b2ac..f1c3971c40 100644 | 25 | index ea9014cc98..149c9f2101 100644 |
| 47 | --- a/cipher/Makefile.am | 26 | --- a/cipher/Makefile.am |
| 48 | +++ b/cipher/Makefile.am | 27 | +++ b/cipher/Makefile.am |
| 49 | @@ -153,7 +153,7 @@ gost-s-box: gost-s-box.c | 28 | @@ -169,7 +169,7 @@ gost-s-box$(EXEEXT_FOR_BUILD): gost-s-box.c |
| 50 | 29 | ||
| 51 | 30 | ||
| 52 | if ENABLE_O_FLAG_MUNGING | 31 | if ENABLE_O_FLAG_MUNGING |
| 53 | -o_flag_munging = sed -e 's/-O\([2-9sgz][2-9sgz]*\)/-O1/' -e 's/-Ofast/-O1/g' | 32 | -o_flag_munging = sed -e 's/[[:blank:]]-O\([2-9sgz][2-9sgz]*\)/ -O1 /' -e 's/[[:blank:]]-Ofast/ -O1 /g' |
| 54 | +o_flag_munging = sed -e 's/[[:blank:]]-O\([1-9sgz][1-9sgz]*\)/ -O1 /g' -e 's/[[:blank:]]-Ofast/ -O1 /g' | 33 | +o_flag_munging = sed -e 's/[[:blank:]]-O\([2-9sgz][2-9sgz]*\)/ -O1 /g' -e 's/[[:blank:]]-Ofast/ -O1 /g' |
| 55 | else | 34 | else |
| 56 | o_flag_munging = cat | 35 | o_flag_munging = cat |
| 57 | endif | 36 | endif |
| 58 | diff --git a/random/Makefile.am b/random/Makefile.am | 37 | diff --git a/random/Makefile.am b/random/Makefile.am |
| 59 | index 0c935a0595..340df38a79 100644 | 38 | index c7100ef8b8..a42e430649 100644 |
| 60 | --- a/random/Makefile.am | 39 | --- a/random/Makefile.am |
| 61 | +++ b/random/Makefile.am | 40 | +++ b/random/Makefile.am |
| 62 | @@ -56,7 +56,7 @@ jitterentropy-base.c jitterentropy.h jitterentropy-base-user.h | 41 | @@ -56,7 +56,7 @@ jitterentropy-base.c jitterentropy.h jitterentropy-base-user.h |
| 63 | 42 | ||
| 64 | # The rndjent module needs to be compiled without optimization. */ | 43 | # The rndjent module needs to be compiled without optimization. */ |
| 65 | if ENABLE_O_FLAG_MUNGING | 44 | if ENABLE_O_FLAG_MUNGING |
| 66 | -o_flag_munging = sed -e 's/-O\([1-9sgz][1-9sgz]*\)/-O0/g' -e 's/-Ofast/-O0/g' | 45 | -o_flag_munging = sed -e 's/[[:blank:]]-O\([1-9sgz][1-9sgz]*\)/ -O0 /' -e 's/[[:blank:]]-Ofast/ -O0 /g' |
| 67 | +o_flag_munging = sed -e 's/[[:blank:]]-O\([1-9sgz][1-9sgz]*\)/ -O0 /g' -e 's/[[:blank:]]-Ofast/ -O0 /g' | 46 | +o_flag_munging = sed -e 's/[[:blank:]]-O\([1-9sgz][1-9sgz]*\)/ -O0 /g' -e 's/[[:blank:]]-Ofast/ -O0 /g' |
| 68 | else | 47 | else |
| 69 | o_flag_munging = cat | 48 | o_flag_munging = cat |
diff --git a/meta/recipes-support/libgcrypt/files/no-bench-slope.patch b/meta/recipes-support/libgcrypt/files/no-bench-slope.patch index 8de3c6713b..ed65ed4e67 100644 --- a/meta/recipes-support/libgcrypt/files/no-bench-slope.patch +++ b/meta/recipes-support/libgcrypt/files/no-bench-slope.patch | |||
| @@ -5,9 +5,12 @@ Until this has been root-caused, disable the test. | |||
| 5 | 5 | ||
| 6 | Upstream-Status: Inappropriate | 6 | Upstream-Status: Inappropriate |
| 7 | Signed-off-by: Ross Burton <ross.burton@arm.com> | 7 | Signed-off-by: Ross Burton <ross.burton@arm.com> |
| 8 | --- | ||
| 9 | tests/testdrv.c | 1 - | ||
| 10 | 1 file changed, 1 deletion(-) | ||
| 8 | 11 | ||
| 9 | diff --git a/tests/testdrv.c b/tests/testdrv.c | 12 | diff --git a/tests/testdrv.c b/tests/testdrv.c |
| 10 | index 0ccde326..d3455186 100644 | 13 | index bfca4c2314..5a755f512e 100644 |
| 11 | --- a/tests/testdrv.c | 14 | --- a/tests/testdrv.c |
| 12 | +++ b/tests/testdrv.c | 15 | +++ b/tests/testdrv.c |
| 13 | @@ -77,7 +77,6 @@ static struct { | 16 | @@ -77,7 +77,6 @@ static struct { |
| @@ -15,6 +18,7 @@ index 0ccde326..d3455186 100644 | |||
| 15 | { "t-ed448" }, | 18 | { "t-ed448" }, |
| 16 | { "benchmark" }, | 19 | { "benchmark" }, |
| 17 | - { "bench-slope" }, | 20 | - { "bench-slope" }, |
| 18 | { "hashtest-256g", "hashtest", "--gigs 256 SHA1 SHA256 SHA512 SM3", | 21 | { "hashtest-6g", "hashtest", "--hugeblock --gigs 6 SHA1 SHA256 SHA512 " |
| 19 | LONG_RUNNING }, | 22 | "SHA3-512 SM3 BLAKE2S_256 " |
| 20 | { NULL } | 23 | "BLAKE2B_512 CRC32 " |
| 24 | |||
diff --git a/meta/recipes-support/libgcrypt/libgcrypt_1.10.3.bb b/meta/recipes-support/libgcrypt/libgcrypt_1.11.0.bb index 5a76201ab5..ea1f34e8ce 100644 --- a/meta/recipes-support/libgcrypt/libgcrypt_1.10.3.bb +++ b/meta/recipes-support/libgcrypt/libgcrypt_1.11.0.bb | |||
| @@ -6,14 +6,13 @@ HOMEPAGE = "http://directory.fsf.org/project/libgcrypt/" | |||
| 6 | BUGTRACKER = "https://bugs.g10code.com/gnupg/index" | 6 | BUGTRACKER = "https://bugs.g10code.com/gnupg/index" |
| 7 | SECTION = "libs" | 7 | SECTION = "libs" |
| 8 | 8 | ||
| 9 | # helper program gcryptrnd and getrandom are under GPL, rest LGPL | 9 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & BSD-3-Clause" |
| 10 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later" | 10 | LICENSE:${PN} = "LGPL-2.1-or-later & BSD-3-Clause" |
| 11 | LICENSE:${PN} = "LGPL-2.1-or-later" | ||
| 12 | LICENSE:${PN}-dev = "GPL-2.0-or-later & LGPL-2.1-or-later" | 11 | LICENSE:${PN}-dev = "GPL-2.0-or-later & LGPL-2.1-or-later" |
| 13 | 12 | ||
| 14 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 15 | file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff \ | 14 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ |
| 16 | file://LICENSES;md5=ef545b6cc717747072616519a1256d69 \ | 15 | file://LICENSES;md5=034b4e369944ad4b52a68368f1cf98b8 \ |
| 17 | " | 16 | " |
| 18 | 17 | ||
| 19 | DEPENDS = "libgpg-error" | 18 | DEPENDS = "libgpg-error" |
| @@ -27,7 +26,7 @@ SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.bz2 \ | |||
| 27 | file://no-bench-slope.patch \ | 26 | file://no-bench-slope.patch \ |
| 28 | file://run-ptest \ | 27 | file://run-ptest \ |
| 29 | " | 28 | " |
| 30 | SRC_URI[sha256sum] = "8b0870897ac5ac67ded568dcfadf45969cfa8a6beb0fd60af2a9eadc2a3272aa" | 29 | SRC_URI[sha256sum] = "09120c9867ce7f2081d6aaa1775386b98c2f2f246135761aae47d81f58685b9c" |
| 31 | 30 | ||
| 32 | BINCONFIG = "${bindir}/libgcrypt-config" | 31 | BINCONFIG = "${bindir}/libgcrypt-config" |
| 33 | 32 | ||
