File: 0002-Fix-reproducibility-issue.patch

package info (click to toggle)
libdfp 1.0.17-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,172 kB
  • sloc: ansic: 255,724; sh: 4,225; makefile: 703; awk: 461; python: 432; cpp: 254
file content (28 lines) | stat: -rw-r--r-- 1,357 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: =?utf-8?b?RnLDqWTDqXJpYyBCb25uYXJk?= <frediz@debian.org>
Date: Mon, 27 Jul 2020 12:03:15 +0200
Subject: Fix reproducibility issue

libdfp.a and libdfp-1.0.15.so contain full path to printf_dfp.c in the build directory.
-fdebug-prefix-map=OLD=NEW is used but it doesn't change anything.
Building with relative path to source dir does the job for now.
---
 Makefile.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index e5a4627..96d9bf5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -126,9 +126,9 @@ makefile_dirs := $(foreach odir,$(sysdep_dirs), $(dir $(wildcard $(top_srcdir)/$
 
 # Like $makefile_dirs but add the $(top_srcdir) reference and strip out the redundant spaces.
 # This has to be = assigned.
-all_srcdirs = $(strip $(foreach dir,$(sysdep_dirs), $(top_srcdir)/$(dir))) \
-	      $(top_srcdir)/libdecnumber $(top_srcdir)/printf-hooks $(top_srcdir)/stdlib \
-	      $(top_srcdir)/decNumberMath $(top_srcdir)/ieee754r $(top_srcdir)/base-math $(top_srcdir)/ $(top_srcdir)/tests
+all_srcdirs = $(strip $(foreach dir,$(sysdep_dirs), @top_srcdir@/$(dir))) \
+	      @top_srcdir@/libdecnumber @top_srcdir@/printf-hooks @top_srcdir@/stdlib \
+	      @top_srcdir@/decNumberMath @top_srcdir@/ieee754r @top_srcdir@/base-math @top_srcdir@/ @top_srcdir@/tests
 
 backend_headers := libdecnumber