From 89dc13243b7311669e5e4ad0ff8abbc0c7216dfd Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 13 May 2024 10:39:04 +0200 Subject: Add gcc 14.1.0 --- ...02-strip-build-directory-from-fixincludes.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 etc/patches/gcc-14/reproducibility/0002-strip-build-directory-from-fixincludes.patch (limited to 'etc/patches/gcc-14/reproducibility/0002-strip-build-directory-from-fixincludes.patch') diff --git a/etc/patches/gcc-14/reproducibility/0002-strip-build-directory-from-fixincludes.patch b/etc/patches/gcc-14/reproducibility/0002-strip-build-directory-from-fixincludes.patch new file mode 100644 index 0000000..8ce7a8a --- /dev/null +++ b/etc/patches/gcc-14/reproducibility/0002-strip-build-directory-from-fixincludes.patch @@ -0,0 +1,29 @@ +From 561f33bc220ba86947a7f99cc503d4dee13be089 Mon Sep 17 00:00:00 2001 +From: Oliver Reiche +Date: Fri, 18 Aug 2023 14:36:57 +0200 +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 +"BUILD_ROOT_DIR" before building. +--- + fixincludes/configure | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/fixincludes/configure b/fixincludes/configure +index 662c94dc1..c316bd6f9 100755 +--- a/fixincludes/configure ++++ b/fixincludes/configure +@@ -6397,6 +6397,9 @@ cat >"$ac_tmp/defines.awk" <<\_ACAWK || + BEGIN { + _ACEOF + ++# Remove host machine's build path from confdefs.h ++sed -i 's|'${BUILD_ROOT_DIR:-/nonexistent}'|/build|g' confdefs.h ++ + # Transform confdefs.h into an awk script `defines.awk', embedded as + # here-document in config.status, that substitutes the proper values into + # config.h.in to produce config.h. +-- +2.30.2 + -- cgit v1.2.3