diff options
author | Russ Allbery <rra@debian.org> | 2019-10-23 16:03:52 -0700 |
---|---|---|
committer | Russ Allbery <rra@debian.org> | 2019-10-23 16:03:52 -0700 |
commit | 645ee1a5649d2cf8d22f8181f3afb344dd294a29 (patch) | |
tree | 0c12f0334dc22c0d2c10a7df76aa897773e36b56 | |
parent | 6292d50a9205506f01c9d4bd83a46225c4d03849 (diff) |
Fix syntax of date command handling SOURCE_DATE_EPOCH
-rw-r--r-- | debian/changelog | 1 | ||||
-rwxr-xr-x | debian/rules | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 13d56b7..a4b3ac0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ gnubg (1.06.002-3) UNRELEASED; urgency=medium * Build against Python 3 instead of Python 2. (Closes: #936627) + * Fix syntax of date command handling SOURCE_DATE_EPOCH. * Update standards version to 4.4.1 (no changes required). * Add missing comma to gnubg-data long description. * Remove some extraneous details from the gnubg-data long description. diff --git a/debian/rules b/debian/rules index 0ed3f59..fe35797 100755 --- a/debian/rules +++ b/debian/rules @@ -11,7 +11,7 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed # Determine the build date from SOURCE_DATE_EPOCH, putting it back into the # same format as the __DATE__ C preprocessor define. -BUILD_DATE := $(shell LC_ALL=C date -d'$(SOURCE_DATE_EPOCH)' +'%b %e %Y') +BUILD_DATE := $(shell LC_ALL=C date -d'@$(SOURCE_DATE_EPOCH)' +'%b %e %Y') # Replace the following upstream-supplied GCC probes with the latest # versions from the autoconf-archive package, since otherwise i386 CPU |