On Fri, 13 May 2016 14:55:05 +0200 Fabian Wolff <fabi.wo...@arcor.de> wrote:
> -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

Reply via email to