diff options
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/libgcrypt/files/determinism.patch | 32 | ||||
-rw-r--r-- | meta/recipes-support/libgcrypt/libgcrypt_1.8.4.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-support/libgcrypt/files/determinism.patch b/meta/recipes-support/libgcrypt/files/determinism.patch new file mode 100644 index 0000000000..ad0b8c7950 --- /dev/null +++ b/meta/recipes-support/libgcrypt/files/determinism.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | gnutls detects our outer git trees and injects that revision into its objects. | ||
2 | That isn't deterministic so stop it. Also ensure we're not marked as a development | ||
3 | build as its git detection is faulty. | ||
4 | |||
5 | RP 2020/2/6 | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
9 | |||
10 | |||
11 | Index: libgcrypt-1.8.5/configure.ac | ||
12 | =================================================================== | ||
13 | --- libgcrypt-1.8.5.orig/configure.ac | ||
14 | +++ libgcrypt-1.8.5/configure.ac | ||
15 | @@ -45,7 +45,7 @@ m4_define([mym4_revision_dec], | ||
16 | m4_define([mym4_betastring], | ||
17 | m4_esyscmd_s([git describe --match 'libgcrypt-[0-9].*[0-9]' --long|\ | ||
18 | awk -F- '$3!=0{print"-beta"$3}'])) | ||
19 | -m4_define([mym4_isgit],m4_if(mym4_betastring,[],[no],[yes])) | ||
20 | +m4_define([mym4_isgit],[no]) | ||
21 | m4_define([mym4_full_version],[mym4_version[]mym4_betastring]) | ||
22 | |||
23 | AC_INIT([libgcrypt],[mym4_full_version],[http://bugs.gnupg.org]) | ||
24 | @@ -2575,7 +2575,7 @@ AM_CONDITIONAL([BUILD_DOC], [test "x$bui | ||
25 | # | ||
26 | # Provide information about the build. | ||
27 | # | ||
28 | -BUILD_REVISION="mym4_revision" | ||
29 | +BUILD_REVISION="None" | ||
30 | AC_SUBST(BUILD_REVISION) | ||
31 | AC_DEFINE_UNQUOTED(BUILD_REVISION, "$BUILD_REVISION", | ||
32 | [GIT commit id revision used to build this package]) | ||
diff --git a/meta/recipes-support/libgcrypt/libgcrypt_1.8.4.bb b/meta/recipes-support/libgcrypt/libgcrypt_1.8.4.bb index 1bd355133e..92eb2d257a 100644 --- a/meta/recipes-support/libgcrypt/libgcrypt_1.8.4.bb +++ b/meta/recipes-support/libgcrypt/libgcrypt_1.8.4.bb | |||
@@ -26,6 +26,7 @@ SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.bz2 \ | |||
26 | file://0003-GCM-move-look-up-table-to-.data-section-and-unshare-.patch \ | 26 | file://0003-GCM-move-look-up-table-to-.data-section-and-unshare-.patch \ |
27 | file://0001-ecc-Add-mitigation-against-timing-attack.patch \ | 27 | file://0001-ecc-Add-mitigation-against-timing-attack.patch \ |
28 | file://0001-dsa-ecdsa-Fix-use-of-nonce-use-larger-one.patch \ | 28 | file://0001-dsa-ecdsa-Fix-use-of-nonce-use-larger-one.patch \ |
29 | file://determinism.patch \ | ||
29 | " | 30 | " |
30 | SRC_URI[md5sum] = "fbfdaebbbc6d7e5fbbf6ffdb3e139573" | 31 | SRC_URI[md5sum] = "fbfdaebbbc6d7e5fbbf6ffdb3e139573" |
31 | SRC_URI[sha256sum] = "f638143a0672628fde0cad745e9b14deb85dffb175709cacc1f4fe24b93f2227" | 32 | SRC_URI[sha256sum] = "f638143a0672628fde0cad745e9b14deb85dffb175709cacc1f4fe24b93f2227" |