Source: ecbuild Version: 3.0.3-1 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 ecbuild could not be built reproducibly. This is due to it shipping /usr/lib/cmake/ecbuild/ecbuild-import.cmake which contains the absolute build path: │ │ │ │ @@ -1,9 +1,9 @@ │ │ │ │ if(ecbuild_IS_BUILD_DIR_EXPORT) │ │ │ │ - set(ecbuild_MACROS_DIR /build/1st/ecbuild-3.0.3/cmake) │ │ │ │ + set(ecbuild_MACROS_DIR /build/2/ecbuild-3.0.3/2nd/cmake) │ │ │ │ else() A patch is attached that replaces the build dir in the installed package to /usr/share/ecbuild/cmake. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/rules 2019-08-14 08:17:56.207222971 -0700 --- b/debian/rules 2019-08-14 08:26:29.084849212 -0700 @@ -9,3 +9,7 @@ dh_fixperms chmod +x debian/ecbuild/usr/share/ecbuild/cmake/sg.pl chmod -x debian/ecbuild/usr/share/ecbuild/toolchains/preprocess_cray_fortran + +override_dh_install: + dh_install + sed -i -e 's@$(CURDIR)@/usr/share/ecbuild@g' debian/ecbuild/usr/lib/cmake/ecbuild/ecbuild-import.cmake