mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
libgcrypt: Fix determinism issue
The build was injection git information from the wrong git tree, stop this to allow reproducible builds. (From OE-Core rev: 506b36b6d86b3454fcc3cb85f6229cbe8d14f5b5) (From OE-Core rev: 2b68ffc6d7c45541958f1b0c0b9ca9e39064e096) (From OE-Core rev: cd2e778771d836e04f76a0ff283c250dc19372c6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
32
meta/recipes-support/libgcrypt/files/determinism.patch
Normal file
32
meta/recipes-support/libgcrypt/files/determinism.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
gnutls detects our outer git trees and injects that revision into its objects.
|
||||
That isn't deterministic so stop it. Also ensure we're not marked as a development
|
||||
build as its git detection is faulty.
|
||||
|
||||
RP 2020/2/6
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
||||
|
||||
|
||||
Index: libgcrypt-1.8.5/configure.ac
|
||||
===================================================================
|
||||
--- libgcrypt-1.8.5.orig/configure.ac
|
||||
+++ libgcrypt-1.8.5/configure.ac
|
||||
@@ -45,7 +45,7 @@ m4_define([mym4_revision_dec],
|
||||
m4_define([mym4_betastring],
|
||||
m4_esyscmd_s([git describe --match 'libgcrypt-[0-9].*[0-9]' --long|\
|
||||
awk -F- '$3!=0{print"-beta"$3}']))
|
||||
-m4_define([mym4_isgit],m4_if(mym4_betastring,[],[no],[yes]))
|
||||
+m4_define([mym4_isgit],[no])
|
||||
m4_define([mym4_full_version],[mym4_version[]mym4_betastring])
|
||||
|
||||
AC_INIT([libgcrypt],[mym4_full_version],[http://bugs.gnupg.org])
|
||||
@@ -2575,7 +2575,7 @@ AM_CONDITIONAL([BUILD_DOC], [test "x$bui
|
||||
#
|
||||
# Provide information about the build.
|
||||
#
|
||||
-BUILD_REVISION="mym4_revision"
|
||||
+BUILD_REVISION="None"
|
||||
AC_SUBST(BUILD_REVISION)
|
||||
AC_DEFINE_UNQUOTED(BUILD_REVISION, "$BUILD_REVISION",
|
||||
[GIT commit id revision used to build this package])
|
||||
@@ -26,6 +26,7 @@ SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.bz2 \
|
||||
file://0003-GCM-move-look-up-table-to-.data-section-and-unshare-.patch \
|
||||
file://0001-ecc-Add-mitigation-against-timing-attack.patch \
|
||||
file://0001-dsa-ecdsa-Fix-use-of-nonce-use-larger-one.patch \
|
||||
file://determinism.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "fbfdaebbbc6d7e5fbbf6ffdb3e139573"
|
||||
SRC_URI[sha256sum] = "f638143a0672628fde0cad745e9b14deb85dffb175709cacc1f4fe24b93f2227"
|
||||
|
||||
Reference in New Issue
Block a user