Skip to content

Commit 9ef4783

Browse files
Merge #6677: backport: trivial commits
6a0b179 Merge bitcoin#30609: guix: bump time-machine to 7bf1d7aeaffba15c4f680f93ae88fbef25427252 (merge-script) e417fec Merge bitcoin#30452: guix: bump time-machine to efc26826400762207cde9f23802cfe75a737963c (merge-script) 9ca2ecc Merge bitcoin#25966: test: Remove redundant test (Andrew Chow) Pull request description: ## Issue being fixed or feature implemented (extra) small batch of trivial backports ## How Has This Been Tested? CI ## Breaking Changes None ## Checklist: _Go over all the following points, and put an `x` in all the boxes that apply._ - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ Top commit has no ACKs. Tree-SHA512: 038813cc06e77194478d7f5bb992890ee8a2177176d54320f8cbd382b7ee1b4602f115f6f394dd13f711e3ad927601a45b58098a4b44201bfbb9a2e0827e7642
2 parents 7325e06 + 6a0b179 commit 9ef4783

File tree

6 files changed

+30
-25
lines changed

6 files changed

+30
-25
lines changed

contrib/devtools/symbol-check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def check_MACHO_sdk(binary) -> bool:
252252
return False
253253

254254
def check_MACHO_lld(binary) -> bool:
255-
if binary.build_version.tools[0].version == [18, 1, 6]:
255+
if binary.build_version.tools[0].version == [18, 1, 8]:
256256
return True
257257
return False
258258

contrib/guix/libexec/prelude.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fi
5151
time-machine() {
5252
# shellcheck disable=SC2086
5353
guix time-machine --url=https://git.savannah.gnu.org/git/guix.git \
54-
--commit=f0bb724211872cd6158fce6162e0b8c73efed126 \
54+
--commit=7bf1d7aeaffba15c4f680f93ae88fbef25427252 \
5555
--cores="$JOBS" \
5656
--keep-failed \
5757
--fallback \

contrib/guix/manifest.scm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,17 @@ desirable for building Dash Core release binaries."
128128
(package-with-extra-patches binutils
129129
(search-our-patches "binutils-unaligned-default.patch")))
130130

131+
(define (winpthreads-patches mingw-w64-x86_64-winpthreads)
132+
(package-with-extra-patches mingw-w64-x86_64-winpthreads
133+
(search-our-patches "winpthreads-remap-guix-store.patch")))
134+
131135
(define (make-mingw-pthreads-cross-toolchain target)
132136
"Create a cross-compilation toolchain package for TARGET"
133137
(let* ((xbinutils (binutils-mingw-patches (cross-binutils target)))
134138
(machine (substring target 0 (string-index target #\-)))
135-
(pthreads-xlibc (make-mingw-w64 machine
139+
(pthreads-xlibc (winpthreads-patches (make-mingw-w64 machine
136140
#:xgcc (cross-gcc target #:xgcc (gcc-mingw-patches base-gcc))
137-
#:with-winpthreads? #t))
141+
#:with-winpthreads? #t)))
138142
(pthreads-xgcc (cross-gcc target
139143
#:xgcc (gcc-mingw-patches mingw-w64-base-gcc)
140144
#:xbinutils xbinutils

contrib/guix/patches/gcc-remap-guix-store.patch

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
From aad25427e74f387412e8bc9a9d7bbc6c496c792f Mon Sep 17 00:00:00 2001
2-
From: Andrew Chow <achow101-github@achow101.com>
3-
Date: Wed, 6 Jul 2022 16:49:41 -0400
4-
Subject: [PATCH] guix: remap guix store paths to /usr
1+
Without ffile-prefix-map, the debug symbols will contain paths for the
2+
guix store which will include the hashes of each package. However, the
3+
hash for the same package will differ when on different architectures.
4+
In order to be reproducible regardless of the architecture used to build
5+
the package, map all guix store prefixes to something fixed, e.g. /usr.
56

6-
---
7-
libgcc/Makefile.in | 2 +-
8-
1 file changed, 1 insertion(+), 1 deletion(-)
9-
10-
diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in
11-
index 851e7657d07..476c2becd1c 100644
127
--- a/libgcc/Makefile.in
138
+++ b/libgcc/Makefile.in
149
@@ -854,7 +854,7 @@ endif
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Without ffile-prefix-map, the debug symbols will contain paths for the
2+
guix store which will include the hashes of each package. However, the
3+
hash for the same package will differ when on different architectures.
4+
In order to be reproducible regardless of the architecture used to build
5+
the package, map all guix store prefixes to something fixed, e.g. /usr.
6+
7+
--- a/mingw-w64-libraries/winpthreads/Makefile.in
8+
+++ b/mingw-w64-libraries/winpthreads/Makefile.in
9+
@@ -478,7 +478,7 @@ top_build_prefix = @top_build_prefix@
10+
top_builddir = @top_builddir@
11+
top_srcdir = @top_srcdir@
12+
SUBDIRS = . tests
13+
-AM_CFLAGS = -Wall -DWIN32_LEAN_AND_MEAN $(am__append_1)
14+
+AM_CFLAGS = -Wall -DWIN32_LEAN_AND_MEAN $(am__append_1) $(shell find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -ffile-prefix-map={}=/usr" \;)
15+
ACLOCAL_AMFLAGS = -I m4
16+
lib_LTLIBRARIES = libwinpthread.la
17+
include_HEADERS = include/pthread.h include/sched.h include/semaphore.h include/pthread_unistd.h include/pthread_time.h include/pthread_compat.h include/pthread_signal.h

src/wallet/test/coinselector_tests.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -241,17 +241,6 @@ BOOST_AUTO_TEST_CASE(bnb_search_test)
241241
BOOST_CHECK_EQUAL(result5->GetSelectedValue(), 10 * CENT);
242242
expected_result.Clear();
243243

244-
// Negative effective value
245-
// Select 10 Cent but have 1 Cent not be possible because too small
246-
add_coin(5 * CENT, 5, expected_result);
247-
add_coin(3 * CENT, 3, expected_result);
248-
add_coin(2 * CENT, 2, expected_result);
249-
const auto result6 = SelectCoinsBnB(GroupCoins(utxo_pool), 10 * CENT, 5000);
250-
BOOST_CHECK(result6);
251-
BOOST_CHECK_EQUAL(result6->GetSelectedValue(), 10 * CENT);
252-
// FIXME: this test is redundant with the above, because 1 Cent is selected, not "too small"
253-
// BOOST_CHECK(EquivalentResult(expected_result, *result));
254-
255244
// Select 0.25 Cent, not possible
256245
BOOST_CHECK(!SelectCoinsBnB(GroupCoins(utxo_pool), 0.25 * CENT, 0.5 * CENT));
257246
expected_result.Clear();

0 commit comments

Comments
 (0)