Package: libflac-doc
Version: 1.3.1-4
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath

While working on the “reproducible builds” effort [1], we have noticed
that flac could not be built reproducibly.

In particular, the generated file doc/FLAC.tag captures the path of the build
directory. The attached path modifies the file to use the install path instead.

 [1]: https://wiki.debian.org/ReproducibleBuilds

Regards,

Daf
>From 0533326767646c6970bca03f895af81c75c05baf Mon Sep 17 00:00:00 2001
From: Dafydd Harries <d...@rhydd.org>
Date: Sat, 3 Dec 2016 16:58:53 -0500
Subject: [PATCH] remove build path from generated FLAC.tag file

Use sed to update paths to point to locations in /usr/include rather than
locations in the source directory at build time.
---
 doc/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 4681bf8..8fc5172 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -25,6 +25,7 @@ FLAC.tag: Doxyfile
 	rm -rf html/api
 	mv doxytmp/html html/api
 	rm -rf doxytmp
+	sed -ie 's,>.*/include/,>/usr/include/,' FLAC.tag
 else
 FLAC.tag:
 	touch $@
-- 
2.9.3

Reply via email to