Skip to content

Commit

Permalink
guix: use uptream nsis-x86_64
Browse files Browse the repository at this point in the history
Our patch is now used upstream.
  • Loading branch information
fanquake committed Jan 5, 2022
1 parent 3ccfba1 commit b1e8f0b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 21 deletions.
6 changes: 3 additions & 3 deletions contrib/guix/manifest.scm
Expand Up @@ -189,9 +189,9 @@ chain for " target " development."))
(home-page (package-home-page pthreads-xgcc))
(license (package-license pthreads-xgcc)))))

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

(define-public lief
(package
Expand Down Expand Up @@ -630,7 +630,7 @@ inspecting signatures in Mach-O binaries.")
;; Windows
(list zip
(make-mingw-pthreads-cross-toolchain "x86_64-w64-mingw32")
(make-nsis-with-sde-support nsis-x86_64)
(make-nsis-for-gcc-10 nsis-x86_64)
osslsigncode))
((string-contains target "-linux-")
(list (cond ((string-contains target "riscv64-")
Expand Down
18 changes: 0 additions & 18 deletions contrib/guix/patches/nsis-SConstruct-sde-support.patch

This file was deleted.

23 changes: 23 additions & 0 deletions contrib/guix/patches/nsis-gcc-10-memmove.patch
@@ -0,0 +1,23 @@
commit f6df41524e703dc471e283e566a48e05a735b7f2
Author: Anders <anders_k@users.sourceforge.net>
Date: Sat Jun 27 23:18:45 2020 +0000

Don't let GCC 10 generate memmove calls (bug #1248)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7189 212acab6-be3b-0410-9dea-997c60f758d6

diff --git a/SCons/Config/gnu b/SCons/Config/gnu
index bfcb362d..21fa446b 100644
--- a/SCons/Config/gnu
+++ b/SCons/Config/gnu
@@ -103,6 +103,10 @@ stub_env.Append(LINKFLAGS = ['$NODEFLIBS_FLAG']) # no standard libraries
stub_env.Append(LINKFLAGS = ['$ALIGN_FLAG']) # 512 bytes align
stub_env.Append(LINKFLAGS = ['$MAP_FLAG']) # generate map file

+conf = FlagsConfigure(stub_env)
+conf.CheckCompileFlag('-fno-tree-loop-distribute-patterns') # GCC 10: Don't generate msvcrt!memmove calls (bug #1248)
+conf.Finish()
+
stub_uenv = stub_env.Clone()
stub_uenv.Append(CPPDEFINES = ['_UNICODE', 'UNICODE'])

0 comments on commit b1e8f0b

Please sign in to comment.