Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #8317

Re: maven.build.timestamp and ReproducibleBuilds with maven

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Eugene Zhukov <jevgeni.zh@gmail.com>
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 <q54dI-1WP-15@gated-at.bofh.it> (permalink)
References <q4TLk-3RF-25@gated-at.bofh.it> <q51pw-6oq-23@gated-at.bofh.it>
X-Original-To Debian Java <debian-java@lists.debian.org>, 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 <jevgeni.zh@gmail.com>
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 <debian-java@lists.debian.org> archive/latest/18631
List-ID <debian-java.lists.debian.org>
List-URL <https://lists.debian.org/debian-java/>
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 <CAPqGMfLjpsH4iRoG=C+L9xrYYepjRpDWi17XwAgPKAfZ8QJBrg@mail.gmail.com>
X-Original-References <CAPqGMfLGsDCFUc=K3BZ+wBuc4jaOjMQtnaFtbkA0vew=fhB7xA@mail.gmail.com> <55E9BB7A.2060204@apache.org>
Xref csiph.com linux.debian.maint.java:8317

Show key headers only | View raw


On Fri, Sep 4, 2015 at 6:40 PM, Emmanuel Bourg <ebourg@apache.org> wrote:
> Le 04/09/2015 09:38, Eugene Zhukov a écrit :
>
>> It is possible to set tool.build.date=something 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 = $(shell dpkg-parsechangelog --show-field Date)
> DEB_MAVEN_ARGS := -Dtool.build.date=$(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

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Find similar


Thread

maven.build.timestamp and ReproducibleBuilds with maven Eugene Zhukov <jevgeni.zh@gmail.com> - 2015-09-04 09:40 +0200
  Re: maven.build.timestamp and ReproducibleBuilds with maven Emmanuel Bourg <ebourg@apache.org> - 2015-09-04 17:50 +0200
    Re: maven.build.timestamp and ReproducibleBuilds with maven Eugene Zhukov <jevgeni.zh@gmail.com> - 2015-09-04 20:50 +0200

csiph-web