diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-12-15 14:49:19 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-12-21 12:23:24 +0100 |
commit | fc1de24f9378ca1e9c6e0f12a6abe65d48314d65 (patch) | |
tree | b72e3e118f1023874dab7ea7ae38c44af37fc73a /etc/patches | |
parent | ec7770c855cc4582fe1dcf27eb7defafa5c8c01d (diff) | |
download | bootstrappable-toolchain-fc1de24f9378ca1e9c6e0f12a6abe65d48314d65.tar.gz |
gcc: Fix GCC patches
Diffstat (limited to 'etc/patches')
-rw-r--r-- | etc/patches/gcc-10/reproducibility/0001-strip-build-directory-from-fixincludes.patch (renamed from etc/patches/gcc-10/reproducibility/0001-strip-build-directory-from-fixinclues.patch) | 2 | ||||
-rw-r--r-- | etc/patches/gcc-10/reproducibility/0002-compute-reproducible-checksums.patch | 4 | ||||
-rw-r--r-- | etc/patches/gcc-10/reproducibility/series | 2 | ||||
-rw-r--r-- | etc/patches/gcc-13/reproducibility/0002-strip-build-directory-from-fixincludes.patch (renamed from etc/patches/gcc-13/reproducibility/0002-strip-build-directory-from-fixinclues.patch) | 2 | ||||
-rw-r--r-- | etc/patches/gcc-13/reproducibility/0004-compute-reproducible-checksums.patch | 4 | ||||
-rw-r--r-- | etc/patches/gcc-13/reproducibility/series | 2 | ||||
-rw-r--r-- | etc/patches/gcc-4.7.4/reproducibility/0002-compute-reproducible-checksums.patch | 4 |
7 files changed, 10 insertions, 10 deletions
diff --git a/etc/patches/gcc-10/reproducibility/0001-strip-build-directory-from-fixinclues.patch b/etc/patches/gcc-10/reproducibility/0001-strip-build-directory-from-fixincludes.patch index d9a545f..96e8ec7 100644 --- a/etc/patches/gcc-10/reproducibility/0001-strip-build-directory-from-fixinclues.patch +++ b/etc/patches/gcc-10/reproducibility/0001-strip-build-directory-from-fixincludes.patch @@ -1,7 +1,7 @@ From a097d475fa8806265f445d11f3074f506baf4a3e Mon Sep 17 00:00:00 2001 From: Oliver Reiche <oliver.reiche@huawei.com> Date: Fri, 18 Aug 2023 14:36:57 +0200 -Subject: [PATCH 1/2] Strip build directory from fixinclues +Subject: [PATCH 1/2] Strip build directory from fixincludes ... to achieve a reproducible binary, which contains the configure string. For this to work, the user needs to set diff --git a/etc/patches/gcc-10/reproducibility/0002-compute-reproducible-checksums.patch b/etc/patches/gcc-10/reproducibility/0002-compute-reproducible-checksums.patch index 3aeb9fb..ee1987e 100644 --- a/etc/patches/gcc-10/reproducibility/0002-compute-reproducible-checksums.patch +++ b/etc/patches/gcc-10/reproducibility/0002-compute-reproducible-checksums.patch @@ -48,7 +48,7 @@ index 8944b9b9f..7ed444c5f 100644 + rm -rf stripped_c_checksum_inputs; \ + mkdir stripped_c_checksum_inputs; \ + cp $(C_OBJS) $(BACKEND) $(LIBDEPS) stripped_c_checksum_inputs/; \ -+ strip -g stripped_c_checksum_inputs/*; \ ++ $(STRIP_FOR_TARGET) -g stripped_c_checksum_inputs/*; \ + build/genchecksum$(build_exeext) $$(ls stripped_c_checksum_inputs/* | LC_ALL=C sort) \ checksum-options > cc1-checksum.c.tmp && \ $(srcdir)/../move-if-change cc1-checksum.c.tmp cc1-checksum.c; \ @@ -65,7 +65,7 @@ index 7896591dd..c65afcb85 100644 + rm -rf stripped_cp_checksum_inputs; \ + mkdir stripped_cp_checksum_inputs; \ + cp $(CXX_OBJS) $(BACKEND) $(CODYLIB) $(LIBDEPS) stripped_cp_checksum_inputs; \ -+ strip -g stripped_cp_checksum_inputs/*; \ ++ $(STRIP_FOR_TARGET) -g stripped_cp_checksum_inputs/*; \ + build/genchecksum$(build_exeext) $$(ls stripped_cp_checksum_inputs/* | LC_ALL=C sort) \ checksum-options > cc1plus-checksum.c.tmp && \ $(srcdir)/../move-if-change cc1plus-checksum.c.tmp cc1plus-checksum.c; \ diff --git a/etc/patches/gcc-10/reproducibility/series b/etc/patches/gcc-10/reproducibility/series index 1ec9fe3..23d38d7 100644 --- a/etc/patches/gcc-10/reproducibility/series +++ b/etc/patches/gcc-10/reproducibility/series @@ -1,2 +1,2 @@ -0001-strip-build-directory-from-fixinclues.patch +0001-strip-build-directory-from-fixincludes.patch 0002-compute-reproducible-checksums.patch diff --git a/etc/patches/gcc-13/reproducibility/0002-strip-build-directory-from-fixinclues.patch b/etc/patches/gcc-13/reproducibility/0002-strip-build-directory-from-fixincludes.patch index fd1ea04..984e529 100644 --- a/etc/patches/gcc-13/reproducibility/0002-strip-build-directory-from-fixinclues.patch +++ b/etc/patches/gcc-13/reproducibility/0002-strip-build-directory-from-fixincludes.patch @@ -1,7 +1,7 @@ From a6fc1b1f0a05fbd6ba664393695ad20d3577a517 Mon Sep 17 00:00:00 2001 From: Oliver Reiche <oliver.reiche@huawei.com> Date: Fri, 18 Aug 2023 14:36:57 +0200 -Subject: [PATCH 2/5] Strip build directory from fixinclues +Subject: [PATCH 2/5] Strip build directory from fixincludes ... to achieve a reproducible binary, which contains the configure string. For this to work, the user needs to set diff --git a/etc/patches/gcc-13/reproducibility/0004-compute-reproducible-checksums.patch b/etc/patches/gcc-13/reproducibility/0004-compute-reproducible-checksums.patch index 8eaeaac..ef358d5 100644 --- a/etc/patches/gcc-13/reproducibility/0004-compute-reproducible-checksums.patch +++ b/etc/patches/gcc-13/reproducibility/0004-compute-reproducible-checksums.patch @@ -48,7 +48,7 @@ index b3b12dcff..1733b40a7 100644 + rm -rf stripped_c_checksum_inputs; \ + mkdir stripped_c_checksum_inputs; \ + cp $(C_OBJS) $(BACKEND) $(LIBDEPS) stripped_c_checksum_inputs/; \ -+ strip -g stripped_c_checksum_inputs/*; \ ++ $(STRIP_FOR_TARGET) -g stripped_c_checksum_inputs/*; \ + build/genchecksum$(build_exeext) $$(ls stripped_c_checksum_inputs/* | LC_ALL=C sort) \ checksum-options > cc1-checksum.cc.tmp && \ $(srcdir)/../move-if-change cc1-checksum.cc.tmp cc1-checksum.cc; \ @@ -65,7 +65,7 @@ index 4ee26fad9..30fe695ec 100644 + rm -rf stripped_cp_checksum_inputs; \ + mkdir stripped_cp_checksum_inputs; \ + cp $(CXX_OBJS) $(BACKEND) $(CODYLIB) $(LIBDEPS) stripped_cp_checksum_inputs; \ -+ strip -g stripped_cp_checksum_inputs/*; \ ++ $(STRIP_FOR_TARGET) -g stripped_cp_checksum_inputs/*; \ + build/genchecksum$(build_exeext) $$(ls stripped_cp_checksum_inputs/* | LC_ALL=C sort) \ checksum-options > cc1plus-checksum.cc.tmp && \ $(srcdir)/../move-if-change cc1plus-checksum.cc.tmp cc1plus-checksum.cc; \ diff --git a/etc/patches/gcc-13/reproducibility/series b/etc/patches/gcc-13/reproducibility/series index 996d939..e5411be 100644 --- a/etc/patches/gcc-13/reproducibility/series +++ b/etc/patches/gcc-13/reproducibility/series @@ -1,5 +1,5 @@ 0001-strip-build-directory-from-config-arguments.patch -0002-strip-build-directory-from-fixinclues.patch +0002-strip-build-directory-from-fixincludes.patch 0003-strip-build-directory-from-mkheaders.conf.patch 0004-compute-reproducible-checksums.patch 0005-do-not-hardcode-rpath-into-cc1-libs.patch diff --git a/etc/patches/gcc-4.7.4/reproducibility/0002-compute-reproducible-checksums.patch b/etc/patches/gcc-4.7.4/reproducibility/0002-compute-reproducible-checksums.patch index 7db6c92..c4f3e2b 100644 --- a/etc/patches/gcc-4.7.4/reproducibility/0002-compute-reproducible-checksums.patch +++ b/etc/patches/gcc-4.7.4/reproducibility/0002-compute-reproducible-checksums.patch @@ -31,7 +31,7 @@ index f3cc49fdb..7fb30a13f 100644 + rm -rf stripped_c_checksum_inputs; \ + mkdir stripped_c_checksum_inputs; \ + cp $(C_OBJS) $(BACKEND) $(LIBDEPS) stripped_c_checksum_inputs/; \ -+ strip -g stripped_c_checksum_inputs/*; \ ++ $(STRIP_FOR_TARGET) -g stripped_c_checksum_inputs/*; \ + build/genchecksum$(build_exeext) $$(ls stripped_c_checksum_inputs/* | LC_ALL=C sort) \ checksum-options > cc1-checksum.c.tmp && \ $(srcdir)/../move-if-change cc1-checksum.c.tmp cc1-checksum.c @@ -48,7 +48,7 @@ index 0ce01ac49..0fc43d305 100644 + rm -rf stripped_cp_checksum_inputs; \ + mkdir stripped_cp_checksum_inputs; \ + cp $(CXX_OBJS) $(BACKEND) $(CODYLIB) $(LIBDEPS) stripped_cp_checksum_inputs; \ -+ strip -g stripped_cp_checksum_inputs/*; \ ++ $(STRIP_FOR_TARGET) -g stripped_cp_checksum_inputs/*; \ + build/genchecksum$(build_exeext) $$(ls stripped_cp_checksum_inputs/* | LC_ALL=C sort) \ checksum-options > cc1plus-checksum.c.tmp && \ $(srcdir)/../move-if-change cc1plus-checksum.c.tmp cc1plus-checksum.c |