Source: libctl Version: 4.5.0-3 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0] we noticed that libctl could not be built reproducibly. This is because the shipped example file reference the absolute build path: │ │ │ ├── ./usr/share/doc/libctl-dev/examples/example.scm │ │ │ │ @@ -10,15 +10,15 @@ │ │ │ │ │ │ │ │ (define-class material-type no-parent │ │ │ │ (define-property epsilon no-default 'number positive?) │ │ │ │ (define-property conductivity 0.0 'number)) │ │ │ │ │ │ │ │ ; use the solid geometry classes, variables, etcetera in libgeom: │ │ │ │ ; (one specifications file can include another specifications file) │ │ │ │ -(include "/build/1st/libctl-4.5.0/./utils/geom.scm") │ │ │ │ +(include "/build/2/libctl-4.5.0/2nd/./utils/geom.scm") Patch attached. Note that we have to adjust this file quite late in the build process as the path needs to exist during tests. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/rules 2020-04-13 10:37:35.383164699 +0100 --- b/debian/rules 2020-04-13 11:34:40.945648240 +0100 @@ -15,6 +15,10 @@ override_dh_auto_configure: LIBS="-lm" dh_auto_configure -- --enable-shared +override_dh_installexamples: + dh_installexamples + sed -i -e 's@$(CURDIR)/.@/usr/share/libctl@g' debian/libctl-doc/usr/share/doc/libctl-dev/examples/example.scm + override_dh_installdocs-arch: dh_installdocs mkdir -p debian/libctl-dev/usr/share/doc/libctl-dev