Skip to content

Commit

Permalink
merge bitcoin#27668: document when certain guix patches can be dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Jun 29, 2023
1 parent 0a7e3ff commit 7074a06
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions contrib/guix/patches/gcc-broken-longjmp.patch
Expand Up @@ -29,6 +29,8 @@ Date: Wed May 5 22:48:51 2021 +0200
gcc/testsuite/
* gcc.c-torture/execute/20210505-1.c: New test.

This patch can be dropped when we are building with GCC 10.4.0 or later.

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 2f838840e96..06ad1b2274e 100644
--- a/gcc/config/i386/i386.c
Expand Down
4 changes: 3 additions & 1 deletion contrib/guix/patches/glibc-2.27-fcommon.patch
Expand Up @@ -5,7 +5,7 @@ Date: Fri May 6 11:03:04 2022 +0100
build: use -fcommon to retain legacy behaviour with GCC 10

GCC 10 started using -fno-common by default, which causes issues with
the powerpc builds using gibc 2.24. A patch was commited to glibc to fix
the powerpc builds using gibc 2.27. A patch was commited to glibc to fix
the issue, 18363b4f010da9ba459b13310b113ac0647c2fcc but is non-trvial
to backport, and was broken in at least one way, see the followup in
commit 7650321ce037302bfc2f026aa19e0213b8d02fe6.
Expand All @@ -17,6 +17,8 @@ Date: Fri May 6 11:03:04 2022 +0100
https://sourceware.org/git/?p=glibc.git;a=commit;h=18363b4f010da9ba459b13310b113ac0647c2fcc
https://sourceware.org/git/?p=glibc.git;a=commit;h=7650321ce037302bfc2f026aa19e0213b8d02fe6

This patch can be dropped when we are building with glibc 2.31+.

diff --git a/Makeconfig b/Makeconfig
index 86a71e5802..aa2166be60 100644
--- a/Makeconfig
Expand Down
2 changes: 1 addition & 1 deletion contrib/guix/patches/glibc-2.27-guix-prefix.patch
Expand Up @@ -5,7 +5,7 @@ In order to be reproducible regardless of the architecture used to build
the package, map all guix store prefixes to something fixed, e.g. /usr.

We might be able to drop this in favour of using --with-nonshared-cflags
when we being using newer versions of glibc.
when we begin using newer versions of glibc.

--- a/Makeconfig
+++ b/Makeconfig
Expand Down
Expand Up @@ -4,6 +4,8 @@ See also: http://lists.busybox.net/pipermail/buildroot/2020-July/590376.html.

https://sourceware.org/git/?p=glibc.git;a=commit;h=0b9c84906f653978fb8768c7ebd0ee14a47e662e

This patch can be dropped when we are building with glibc 2.28+.

From 562c52cc81a4e456a62e6455feb32732049e9070 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Mon, 31 Dec 2018 09:26:42 -0800
Expand Down
1 change: 1 addition & 0 deletions contrib/guix/patches/vmov-alignment.patch
@@ -1,6 +1,7 @@
Description: Use unaligned VMOV instructions
Author: Stephen Kitt <skitt@debian.org>
Bug-Debian: https://bugs.debian.org/939559
See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412

Based on a patch originally by Claude Heiland-Allen <claude@mathr.co.uk>

Expand Down

0 comments on commit 7074a06

Please sign in to comment.