File: 003-reproducible-build.patch

package info (click to toggle)
csstidy 1.4-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 388 kB
  • sloc: cpp: 2,570; makefile: 5
file content (14 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Sort list of source files for deterministic linking order

--- a/csstidy/SConscript
+++ b/csstidy/SConscript
@@ -21,7 +21,7 @@
 localenv.BuildDir(builddir, ".", duplicate=0)
 
 #Figure out all the source files
-srclst = map(lambda x: builddir + '/' + x, glob.glob('*.cpp'))
+srclst = map(lambda x: builddir + '/' + x, sorted(glob.glob('*.cpp')))
 
 #If running win32 get special version information from the .rc
 if localenv['PLATFORM'] == 'win32':