File tree Expand file tree Collapse file tree 5 files changed +30
-14
lines changed Expand file tree Collapse file tree 5 files changed +30
-14
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ def check_MACHO_sdk(binary) -> bool:
245
245
return False
246
246
247
247
def check_MACHO_lld (binary ) -> bool :
248
- if binary .build_version .tools [0 ].version == [18 , 1 , 6 ]:
248
+ if binary .build_version .tools [0 ].version == [18 , 1 , 8 ]:
249
249
return True
250
250
return False
251
251
Original file line number Diff line number Diff line change 51
51
time-machine () {
52
52
# shellcheck disable=SC2086
53
53
guix time-machine --url=https://git.savannah.gnu.org/git/guix.git \
54
- --commit=f0bb724211872cd6158fce6162e0b8c73efed126 \
54
+ --commit=efc26826400762207cde9f23802cfe75a737963c \
55
55
--cores=" $JOBS " \
56
56
--keep-failed \
57
57
--fallback \
Original file line number Diff line number Diff line change @@ -128,13 +128,17 @@ desirable for building Bitcoin Core release binaries."
128
128
(package-with-extra-patches binutils
129
129
(search-our-patches " binutils-unaligned-default.patch" )))
130
130
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
+
131
135
(define (make-mingw-pthreads-cross-toolchain target )
132
136
"Create a cross-compilation toolchain package for TARGET"
133
137
(let* ((xbinutils (binutils-mingw-patches (cross-binutils target)))
134
138
(machine (substring target 0 (string-index target #\- )))
135
- (pthreads-xlibc (make-mingw-w64 machine
139
+ (pthreads-xlibc (winpthreads-patches ( make-mingw-w64 machine
136
140
#:xgcc (cross-gcc target #:xgcc (gcc-mingw-patches base-gcc))
137
- #:with-winpthreads? #t ))
141
+ #:with-winpthreads? #t )))
138
142
(pthreads-xgcc (cross-gcc target
139
143
#:xgcc (gcc-mingw-patches mingw-w64-base-gcc)
140
144
#:xbinutils xbinutils
Original file line number Diff line number Diff line change 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.
5
6
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
12
7
--- a/libgcc/Makefile.in
13
8
+++ b/libgcc/Makefile.in
14
9
@@ -854,7 +854,7 @@ endif
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments