diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-02-07 10:16:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-08 14:20:18 +0000 |
commit | a7f7161ff4c681796ddc0d3bab40d92994e8f447 (patch) | |
tree | 58f43241c59479ac1ef13f914fc01695dbc665ca /meta/recipes-devtools/git | |
parent | 0f82f85dc9f8caf1fbf08af24ee98cbd5b5668a0 (diff) | |
download | poky-a7f7161ff4c681796ddc0d3bab40d92994e8f447.tar.gz |
git: restore reproducibility on centos 7
(From OE-Core rev: edeb2a1a4cfd16706da6815af198d133a94b5ac6)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/git')
-rw-r--r-- | meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch | 30 | ||||
-rw-r--r-- | meta/recipes-devtools/git/git_2.35.1.bb | 3 |
2 files changed, 32 insertions, 1 deletions
diff --git a/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch b/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch new file mode 100644 index 0000000000..e0f702f327 --- /dev/null +++ b/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 3b2505435bc6f982226eff84bad6bf9a36381573 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Mon, 7 Feb 2022 10:13:15 +0100 | ||
4 | Subject: [PATCH] config.mak.uname: do not force RHEL-7 specific build settings | ||
5 | |||
6 | This breaks reproducibility as git builds on centos 7 use | ||
7 | different flags than git builds on other host distros. | ||
8 | |||
9 | Upstream-Status: Inappropriate [upstream needs to check compiler and component versions properly] | ||
10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
11 | --- | ||
12 | config.mak.uname | 5 ----- | ||
13 | 1 file changed, 5 deletions(-) | ||
14 | |||
15 | diff --git a/config.mak.uname b/config.mak.uname | ||
16 | index c48db45..9b3e9bf 100644 | ||
17 | --- a/config.mak.uname | ||
18 | +++ b/config.mak.uname | ||
19 | @@ -63,11 +63,6 @@ ifeq ($(uname_S),Linux) | ||
20 | PROCFS_EXECUTABLE_PATH = /proc/self/exe | ||
21 | HAVE_PLATFORM_PROCINFO = YesPlease | ||
22 | COMPAT_OBJS += compat/linux/procinfo.o | ||
23 | - # centos7/rhel7 provides gcc 4.8.5 and zlib 1.2.7. | ||
24 | - ifneq ($(findstring .el7.,$(uname_R)),) | ||
25 | - BASIC_CFLAGS += -std=c99 | ||
26 | - NO_UNCOMPRESS2 = YesPlease | ||
27 | - endif | ||
28 | endif | ||
29 | ifeq ($(uname_S),GNU/kFreeBSD) | ||
30 | HAVE_ALLOCA_H = YesPlease | ||
diff --git a/meta/recipes-devtools/git/git_2.35.1.bb b/meta/recipes-devtools/git/git_2.35.1.bb index 62017b98ef..a333458d5f 100644 --- a/meta/recipes-devtools/git/git_2.35.1.bb +++ b/meta/recipes-devtools/git/git_2.35.1.bb | |||
@@ -9,7 +9,8 @@ PROVIDES:append:class-native = " git-replacement-native" | |||
9 | 9 | ||
10 | SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \ | 10 | SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \ |
11 | file://fixsort.patch \ | 11 | file://fixsort.patch \ |
12 | " | 12 | file://0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch \ |
13 | " | ||
13 | 14 | ||
14 | S = "${WORKDIR}/git-${PV}" | 15 | S = "${WORKDIR}/git-${PV}" |
15 | 16 | ||