[Reproducible-builds] Bug#824182: codeblocks: please make the build reproducible (timestamps)
Ximin Luo
infinity0 at debian.org
Tue May 17 17:01:49 UTC 2016
(sorry for repost, making sure the right people see this)
Fabian Wolff:
> -export DEB_CPPFLAGS_MAINT_APPEND=-DNDEBUG
> +export DEB_CPPFLAGS_MAINT_APPEND=-DNDEBUG \
> + -DBUILD_DATE="\"\\\"`date -u -d @$(SOURCE_DATE_EPOCH) +%Y-%m-%d`\\\"\"" \
> + -DBUILD_TIME="\"\\\"`date -u -d @$(SOURCE_DATE_EPOCH) +%T`\\\"\""
Hi Fabian,
Have you tested this patch? My understanding is that debhelper sets SOURCE_DATE_EPOCH but make(1) does not. In general, debian/rules is a plain Makefile and shouldn't assume higher-level tools set anything extra.
So this patch wouldn't work; you need to add a line:
export SOURCE_DATE_EPOCH = $(shell dpkg-parsechangelog -SDate | date -f- +%s)
near the top of debian/rules.
Or you can wait until #824572 is fixed, which I just filed. Then your patch might work without needing to add the extra line above.
X
--
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
git://github.com/infinity0/pubkeys.git
More information about the Reproducible-builds
mailing list