Browse Source

Enable reproducible building by dropping build date from version string

Reiner Herrmann 6 years ago
parent
commit
005e950360
2 changed files with 2 additions and 4 deletions
  1. 1
    3
      Makefile
  2. 1
    1
      tsdecrypt.c

+ 1
- 3
Makefile View File

5
 RM = rm -f
5
 RM = rm -f
6
 MV = mv -f
6
 MV = mv -f
7
 
7
 
8
-BUILD_ID = $(shell date +%F_%R)
9
 VERSION = $(shell cat RELEASE)
8
 VERSION = $(shell cat RELEASE)
10
 GIT_VER = $(shell git describe --tags --dirty --always 2>/dev/null)
9
 GIT_VER = $(shell git describe --tags --dirty --always 2>/dev/null)
11
 ifeq "$(GIT_VER)" ""
10
 ifeq "$(GIT_VER)" ""
30
 CC := cc -I/opt/local/include
29
 CC := cc -I/opt/local/include
31
 endif
30
 endif
32
 
31
 
33
-DEFS = -DBUILD_ID=\"$(BUILD_ID)\" \
34
- -DVERSION=\"$(VERSION)\" -DGIT_VER=\"$(GIT_VER)\"
32
+DEFS = -DVERSION=\"$(VERSION)\" -DGIT_VER=\"$(GIT_VER)\"
35
 DEFS += -D_FILE_OFFSET_BITS=64
33
 DEFS += -D_FILE_OFFSET_BITS=64
36
 
34
 
37
 PREFIX ?= /usr/local
35
 PREFIX ?= /usr/local

+ 1
- 1
tsdecrypt.c View File

38
 #define FIRST_REPORT_SEC 3
38
 #define FIRST_REPORT_SEC 3
39
 
39
 
40
 #define PROGRAM_NAME "tsdecrypt"
40
 #define PROGRAM_NAME "tsdecrypt"
41
-static const char *program_id = PROGRAM_NAME " v" VERSION " (" GIT_VER ", build " BUILD_ID " " DLIB ")";
41
+static const char *program_id = PROGRAM_NAME " v" VERSION " (" GIT_VER ", " DLIB ")";
42
 
42
 
43
 int keep_running = 1;
43
 int keep_running = 1;
44
 static FILE *log_file = NULL;
44
 static FILE *log_file = NULL;

Loading…
Cancel
Save