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,7 +5,6 @@ MKDEP = $(CROSS)$(CC) -MP -MM -o $*.d $<
5 5
 RM = rm -f
6 6
 MV = mv -f
7 7
 
8
-BUILD_ID = $(shell date +%F_%R)
9 8
 VERSION = $(shell cat RELEASE)
10 9
 GIT_VER = $(shell git describe --tags --dirty --always 2>/dev/null)
11 10
 ifeq "$(GIT_VER)" ""
@@ -30,8 +29,7 @@ LDFLAGS :=
30 29
 CC := cc -I/opt/local/include
31 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 33
 DEFS += -D_FILE_OFFSET_BITS=64
36 34
 
37 35
 PREFIX ?= /usr/local

+ 1
- 1
tsdecrypt.c View File

@@ -38,7 +38,7 @@
38 38
 #define FIRST_REPORT_SEC 3
39 39
 
40 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 43
 int keep_running = 1;
44 44
 static FILE *log_file = NULL;

Loading…
Cancel
Save