(sorry for repost, making sure the right people see this)
> -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`\\\"\""
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.
Reproducible-builds mailing list