Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Eugene Zhukov Newsgroups: linux.debian.maint.java Subject: Re: maven.build.timestamp and ReproducibleBuilds with maven Date: Fri, 04 Sep 2015 20:50:02 +0200 Message-ID: References: X-Original-To: Debian Java , reproducible-builds@lists.alioth.debian.org X-Mailbox-Line: From debian-java-request@lists.debian.org Fri Sep 4 18:40:58 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.299 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, MONEY=0.5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -7 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=0mdlcqywpuRI+sxPQmUnslhcYsXyTPJCLeaON7n5b1o=; b=HXbUeKYEGeKgJE9Yt2PxeDLv8vB+8/kZZNjCG4zOCmSYUOy2l/g+x8dqBi4S5kxE5D Baei8dbNUSt4UOGZPCQqSE2ggZhvZhGMZ5NJpkvgAUVFSkCgtST8Di6qSEfzWSNA3KLf UgmXMk/cHcTYMBXMwsoGzJjPVeQuCNLC/f5rioYTT/aieRe8NRj8ve28d79cQ9+Y1vQd X32LO+r5ZXhov+QjTuUmPW/YajBVGy9WmNbz8NoiRcwbGkOeddutOgtV17jj8Nmr+2QL wfkPN9COFnKHOW6A6bWfz4LSnYspJANVPJtvcQGy5xrhniNeH5YF277TcW8tEyiY7ZTh kDqQ== MIME-Version: 1.0 X-Received: by 10.107.12.146 with SMTP id 18mr9024555iom.78.1441392041873; Fri, 04 Sep 2015 11:40:41 -0700 (PDT) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/18631 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAPqGMfLjpsH4iRoG=C+L9xrYYepjRpDWi17XwAgPKAfZ8QJBrg@mail.gmail.com Approved: robomod@news.nic.it Lines: 22 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 4 Sep 2015 21:40:41 +0300 X-Original-Message-ID: X-Original-References: <55E9BB7A.2060204@apache.org> Xref: csiph.com linux.debian.maint.java:8317 On Fri, Sep 4, 2015 at 6:40 PM, Emmanuel Bourg wrote: > Le 04/09/2015 09:38, Eugene Zhukov a =C3=A9crit : > >> It is possible to set tool.build.date=3Dsomething in d/maven.properties, >> but how to get this done dynamically? > > Hi Eugene, > > Did you try adding the DEB_MAVEN_ARGS variable in debian/rules to > specify the parameter dynamically? Something like this: > > DEB_CHANGELOG_DATETIME =3D $(shell dpkg-parsechangelog --show-field Date) > DEB_MAVEN_ARGS :=3D -Dtool.build.date=3D$(DEB_CHANGELOG_DATETIME) > It works, thanks a lot! Just needed to add back the dependency on cdbs. > I wish the formatted changelog date could have been exported along > SOURCE_DATE_EPOCH, this would save one line. I need to transform the date to yyyy-MM-dd format to comply with upstream anyway. Eugene