File: 03_Reproducible_builds.patch

package info (click to toggle)
fastqtl 2.184%2Bv7%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,420 kB
  • sloc: cpp: 3,102; python: 323; makefile: 82; sh: 19; javascript: 3
file content (22 lines) | stat: -rw-r--r-- 809 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: Dylan Aïssi <bob.dybian@gmail.com>,
        Reiner Herrmann <reiner@reiner-h.de>
Description: Patch the makefile in order to enable reproducible builds (stable order for inputs).
Last-Update: 2016-12-16
Bug-Debian: https://bugs.debian.org/848292
Forwarded: TODO

--- a/Makefile
+++ b/Makefile
@@ -58,9 +58,9 @@
 
 #files (binary, objects, headers & sources)
 FILE_BIN=bin/fastQTL
-FILE_O=$(shell for file in `find src -name *.cpp`; do echo obj/$$(basename $$file .cpp).o; done)
-FILE_H=$(shell find src -name *.h)
-FILE_CPP=$(shell find src -name *.cpp)
+FILE_O=$(shell for file in `find src -name *.cpp | LC_ALL=C sort`; do echo obj/$$(basename $$file .cpp).o; done)
+FILE_H=$(shell find src -name *.h | LC_ALL=C sort)
+FILE_CPP=$(shell find src -name *.cpp | LC_ALL=C sort)
 
 #default
 all: linux