Skip to content

Commit b1e8f0b

Browse files
committed
guix: use uptream nsis-x86_64
Our patch is now used upstream.
1 parent 3ccfba1 commit b1e8f0b

File tree

3 files changed

+26
-21
lines changed

3 files changed

+26
-21
lines changed

contrib/guix/manifest.scm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ chain for " target " development."))
189189
(home-page (package-home-page pthreads-xgcc))
190190
(license (package-license pthreads-xgcc)))))
191191

192-
(define (make-nsis-with-sde-support base-nsis)
192+
(define (make-nsis-for-gcc-10 base-nsis)
193193
(package-with-extra-patches base-nsis
194-
(search-our-patches "nsis-SConstruct-sde-support.patch")))
194+
(search-our-patches "nsis-gcc-10-memmove.patch")))
195195

196196
(define-public lief
197197
(package
@@ -630,7 +630,7 @@ inspecting signatures in Mach-O binaries.")
630630
;; Windows
631631
(list zip
632632
(make-mingw-pthreads-cross-toolchain "x86_64-w64-mingw32")
633-
(make-nsis-with-sde-support nsis-x86_64)
633+
(make-nsis-for-gcc-10 nsis-x86_64)
634634
osslsigncode))
635635
((string-contains target "-linux-")
636636
(list (cond ((string-contains target "riscv64-")

contrib/guix/patches/nsis-SConstruct-sde-support.patch

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
commit f6df41524e703dc471e283e566a48e05a735b7f2
2+
Author: Anders <[email protected]>
3+
Date: Sat Jun 27 23:18:45 2020 +0000
4+
5+
Don't let GCC 10 generate memmove calls (bug #1248)
6+
7+
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7189 212acab6-be3b-0410-9dea-997c60f758d6
8+
9+
diff --git a/SCons/Config/gnu b/SCons/Config/gnu
10+
index bfcb362d..21fa446b 100644
11+
--- a/SCons/Config/gnu
12+
+++ b/SCons/Config/gnu
13+
@@ -103,6 +103,10 @@ stub_env.Append(LINKFLAGS = ['$NODEFLIBS_FLAG']) # no standard libraries
14+
stub_env.Append(LINKFLAGS = ['$ALIGN_FLAG']) # 512 bytes align
15+
stub_env.Append(LINKFLAGS = ['$MAP_FLAG']) # generate map file
16+
17+
+conf = FlagsConfigure(stub_env)
18+
+conf.CheckCompileFlag('-fno-tree-loop-distribute-patterns') # GCC 10: Don't generate msvcrt!memmove calls (bug #1248)
19+
+conf.Finish()
20+
+
21+
stub_uenv = stub_env.Clone()
22+
stub_uenv.Append(CPPDEFINES = ['_UNICODE', 'UNICODE'])
23+

0 commit comments

Comments
 (0)