Source: vboot-utils Severity: normal Version: 0~R81-12871.B-1 Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: fixfilepath ftbfs X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
When the dpkg-buildflags "fixfilepath" is enabled, vboot-utils FTBFS, as clang does not support the -ffile-prefix-map argument: clang: clang: error: error: unknown argument: '-ffile-prefix-map=/<<PKGBUILDDIR>>=.'unknown argument: '-ffile-prefix-map=/<<PKGBUILDDIR\>>=.' This can be tested by passing the following DEB_BUILD_OPTIONS: DEB_BUILD_OPTIONS=reproducible=+fixfilepath The "fixfilepath" is not currently enabled by dpkg-buildflags by default, but might become the default at some point in the future. The attached patch disables use of this feature in debian/rules and enables the remaining reproducibility related build flags. Thanks for maintaining vboot-utils! live well, vagrant
From ec585212c265af22d69249459dcd05dbbc17b78f Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Tue, 29 Sep 2020 21:40:28 +0000 Subject: [PATCH 2/2] debian/rules: Disable use of fixfilepath with DEB_BUILD_MAINT_OPTIONS. clang does not currently support it, and the build fails with: clang: clang: error: error: unknown argument: '-ffile-prefix-map=/<<PKGBUILDDIR>>=.'unknown argument: '-ffile-prefix-map=/<<PKGBUILDDIR\>>=.' Enable other reproducible related build flags (fixdebugpath, timeless), as these still work and are the current defaults for dpkg-buildflags. --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 90bf280..a2c916e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,6 @@ #!/usr/bin/make -f -export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=-fixfilepath,+fixdebugpath,+timeless export CC = clang-9 override_dh_auto_build: -- 2.28.0
signature.asc
Description: PGP signature