[SCM] giada/master: Set BUILD_DATE to date from debian/changelog

Mattia Rizzolo mattia at mapreri.org
Sun Nov 15 08:39:10 UTC 2015


On Sun, Nov 15, 2015 at 07:09:02AM +0100, Jaromír Mikeš wrote:
> 2015-11-06 22:39 GMT+01:00  <umlaeute at users.alioth.debian.org>:
> > The following commit has been merged in the master branch:
> > commit 94c8da77170f65e46196fc97af5845629d22fb3c
> > Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
> > Date:   Fri Nov 6 22:00:34 2015 +0100
> >
> >     Set BUILD_DATE to date from debian/changelog
> >
> > diff --git a/debian/rules b/debian/rules
> > index 48f2758..a7cc037 100755
> > --- a/debian/rules
> > +++ b/debian/rules
> > @@ -5,7 +5,9 @@ DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname
> >  UPSTREAM_VERSION ?=$(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
> >  DFSG = dfsg1
> >  PKG = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
> > +DATE := $(shell date -u -d "$$(dpkg-parsechangelog -SDate)" +"%Y/%m/%d")
> >
> > +CPPFLAGS+=-DBUILD_DATE='"$(DATE)"'
> >  LDFLAGS+=-Wl,--as-needed
> 
> Hi IOhannes,
> 
> for what is this needed?

Indeed the commit message lack that information, but it's needed to make
the build reproducible, as the final d/changelog says:

   * Made build reproducible
     * Patch to allow setting of DATE in about-dialog
     * Set BUILD_DATE to date from debian/changelog


-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  http://mapreri.org                              : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20151115/2efb3eab/attachment.sig>


More information about the pkg-multimedia-maintainers mailing list