Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor-browser-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matthew Finkel
tor-browser-build
Commits
8b94652d
Unverified
Commit
8b94652d
authored
4 years ago
by
Georg Koppen
Browse files
Options
Downloads
Patches
Plain Diff
Bug 40090: NSIS 3.06.1 still needs timestamp patch
parent
6addbb46
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
projects/nsis/build
+5
-0
5 additions, 0 deletions
projects/nsis/build
projects/nsis/config
+1
-0
1 addition, 0 deletions
projects/nsis/config
projects/nsis/no-insert-timestamp.patch
+27
-0
27 additions, 0 deletions
projects/nsis/no-insert-timestamp.patch
with
33 additions
and
0 deletions
projects/nsis/build
+
5
−
0
View file @
8b94652d
...
...
@@ -8,6 +8,11 @@ tar -C /var/tmp/build -xf nsis-[% c('version') %].tar.bz2
tar
-
C
/
var
/
tmp
/
build
-
xf
[
%
c
(
'
input_files_by_name/zlib
'
)
%
]
cd
/
var
/
tmp
/
build
/
nsis
-
[
%
c
(
'
version
'
)
%
]
-
src
# Adding --no-insert-timestamp to APPEND_LINKFLAGS is not working as it
# is used for both the host and cross-compiled parts, but this option is
# only valid for the Windows linker. Therefore we add it using a patch
# to the cross-compilation part only. Still needed as of 3.06.1, see: #40090.
patch
-
p1
<
$
rootdir
/
no
-
insert
-
timestamp
.
patch
[
%
IF
c
(
"
var/windows-x86_64
"
)
%
]
# Seems like setting TARGET_ARCH is not enough so we need to patch build.cpp
...
...
This diff is collapsed.
Click to expand it.
projects/nsis/config
+
1
−
0
View file @
8b94652d
...
...
@@ -17,6 +17,7 @@ input_files:
-
filename
:
'
nsis-[%
c("version")
%].tar.bz2'
URL
:
'
https://downloads.sourceforge.net/nsis/nsis-[%
c("version")
%]-src.tar.bz2'
sha256sum
:
9b5d68bf1874a7b393432410c7e8c376f174d2602179883845d2508152153ff0
-
filename
:
no-insert-timestamp.patch
-
name
:
'
[%
c("var/compiler")
%]'
project
:
'
[%
c("var/compiler")
%]'
-
name
:
zlib
...
...
This diff is collapsed.
Click to expand it.
projects/nsis/no-insert-timestamp.patch
0 → 100644
+
27
−
0
View file @
8b94652d
diff -ur nsis-3.03-src/SCons/Config/gnu nsis-3.03-src.n/SCons/Config/gnu
--- nsis-3.03-src/SCons/Config/gnu 2017-10-06 15:30:20.000000000 -0400
+++ nsis-3.03-src.n/SCons/Config/gnu 2018-06-17 13:26:05.945495151 -0400
@@ -102,6 +102,7 @@
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
+stub_env.Append(LINKFLAGS = ['-Wl,--no-insert-timestamp']) # remove timestamps for reproducible builds
stub_uenv = stub_env.Clone()
stub_uenv.Append(CPPDEFINES = ['_UNICODE', 'UNICODE'])
@@ -142,6 +143,7 @@
plugin_env.Append(LINKFLAGS = ['$MAP_FLAG']) # generate map file
plugin_env.Append(LINKFLAGS = ['-static-libgcc']) # remove libgcc*.dll dependency
plugin_env.Append(LINKFLAGS = ['-static-libstdc++']) # remove libstdc++*.dll dependency
+plugin_env.Append(LINKFLAGS = ['-Wl,--no-insert-timestamp']) # remove timestamps for reproducible builds
plugin_uenv = plugin_env.Clone()
plugin_uenv.Append(CPPDEFINES = ['_UNICODE', 'UNICODE'])
@@ -181,6 +183,7 @@
util_env.Append(LINKFLAGS = ['-mwindows']) # build windows executables
util_env.Append(LINKFLAGS = ['$ALIGN_FLAG']) # 512 bytes align
+util_env.Append(LINKFLAGS = ['-Wl,--no-insert-timestamp']) # remove timestamps for reproducible builds
conf = FlagsConfigure(util_env)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment