summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2019-12-10 14:33:06 +0100
committerGard Spreemann <gspr@nonempty.org>2019-12-10 14:33:06 +0100
commit26c5613de50edc6772e7861f2262c1d4d7f9b8f4 (patch)
tree75b976a8813d6e00f4ce2f87abc5d1d2100d2c83
parent72945fa47b941b4221c9b3f2c1e376aab915c456 (diff)
Add patch to move towards reproducible builds.
-rw-r--r--debian/patches/0007-Move-towards-reproducible-builds.patch24
-rw-r--r--debian/patches/series1
2 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/0007-Move-towards-reproducible-builds.patch b/debian/patches/0007-Move-towards-reproducible-builds.patch
new file mode 100644
index 00000000..4c487bab
--- /dev/null
+++ b/debian/patches/0007-Move-towards-reproducible-builds.patch
@@ -0,0 +1,24 @@
+From: Gard Spreemann <gspr@nonempty.org>
+Date: Tue, 10 Dec 2019 14:31:47 +0100
+Subject: Move towards reproducible builds.
+
+This probably does not take us all the way there, and probably breaks
+doctest, but since we're not doing sphinx stuff yet anyway, that is ok
+for now.
+---
+ src/python/gudhi/__init__.py.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/python/gudhi/__init__.py.in b/src/python/gudhi/__init__.py.in
+index 28bab0e..e22dde4 100644
+--- a/src/python/gudhi/__init__.py.in
++++ b/src/python/gudhi/__init__.py.in
+@@ -15,7 +15,7 @@ __copyright__ = "Copyright (C) 2016 Inria"
+ __license__ = "https://gudhi.inria.fr/licensing/"
+ __version__ = "@GUDHI_VERSION@"
+ # This variable is used by doctest to find files
+-__root_source_dir__ = "@CMAKE_SOURCE_DIR@"
++__root_source_dir__ = "."
+ __debug_info__ = @GUDHI_PYTHON_DEBUG_INFO@
+
+ from sys import exc_info
diff --git a/debian/patches/series b/debian/patches/series
index 091402d1..adeb35f7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
0004-Offline-header-for-docs.patch
0005-Disable-Sphinx.patch
0006-Install-Python-module-in-correct-location.patch
+0007-Move-towards-reproducible-builds.patch