Package: reposurgeon / 3.45-1

0001-build-with-trimpath-for-reproducibility.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Build with '-{gc,asm}flags all=-trimpath=' for reproducibility
 Copied from dh-golang (1.38).
 See also https://github.com/restic/restic/issues/2061
Author: Anthony Fok <foka@debian.org>
Origin: vendor
Forwarded: https://gitlab.com/esr/reposurgeon/merge_requests/181
Last-Update: 2018-12-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile
+++ b/Makefile
@@ -38,9 +38,10 @@
             dvcs-migration-guide.html features.html reporting-bugs.html
 SHARED    = $(DOCS) reposurgeon-git-aliases $(HTMLFILES)
 
+GOFLAGS = -gcflags all='-trimpath $(GOPATH)/src' -asmflags all='-trimpath $(GOPATH)/src'
 all:  $(MANPAGES) $(HTMLFILES)
-	GOPATH=$(GOPATH) go build repocutter
-	GOPATH=$(GOPATH) go build repomapper
+	GOPATH=$(GOPATH) go build $(GOFLAGS) repocutter
+	GOPATH=$(GOPATH) go build $(GOFLAGS) repomapper
 
 %.1: %.xml
 	$(XMLTO) $(XMLTOOPTS) man $<