mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly
Date: Tue, 16 Oct 2018 21:20:52 +0200	[thread overview]
Message-ID: <20181016192052.eehytw564w4ffjjh@pengutronix.de> (raw)
In-Reply-To: <056b6c69bd4456b9629288f08d63edce63a18ddb.camel@allegion.com>

On Tue, Oct 16, 2018 at 02:27:05PM +0000, Baeuerle, Florian wrote:
> Am Dienstag, den 16.10.2018, 14:38 +0200 schrieb Michael Olbrich:
> > On Tue, Oct 16, 2018 at 10:57:20AM +0000, Baeuerle, Florian wrote:
> > > Am Dienstag, den 16.10.2018, 12:09 +0200 schrieb Michael Olbrich:
> > > > On Thu, Oct 11, 2018 at 02:19:17PM +0000, Baeuerle, Florian wrote:
> > > > > Inject fake timestamps into the build via faketime to produce the exact
> > > > > same binaries.
> > > > 
> > > > I'd like to see this patch split in two.
> > > > One to handle the KBUILD_BUILD_ stuff. That should be done like the kernel
> > > > with the symlink magic, but otherwise unconditionally (for now).
> > > > Use SOURCE_DATE_EPOCH for the timestamp. I want to change the kernel to
> > > > use
> > > > this too.
> > > 
> > > SOURCE_DATE_EPOCH uses the ptxdist release number for the timestamp, thus
> > > the
> > > timestamp changes with every ptxdist release. I'd prefer to *really* get the
> > > same binary when the source code was not changed at all. A ptxdist version
> > > bump
> > > has a high potential of not touching anything barebox related.
> > > 
> > > I also do not like mangling the barebox version into a timestamp, but I
> > > couldn't
> > > come up with any better idea.
> > 
> > You can easily overwrite that in your BSP and I'm wouldn't mind changing
> > that in general. The PTXdist release was just a convenient 'date' to use.
> > I'd like to have something that is global to the BSP. Do you have any
> > sugestions?
> 
> Also I'd prefer to use something BSP-global, but I couldn't find anything
> suitable:
> 
> PTXCONF_PROJECT_VERSION - not guaranteed to be a date
> PTXCONF_PLATFORM_VERSION - same here
> 
> Maybe ptxdist could offer using one of those as a fake timestamp, if the
> appropriate format is used.

I'd expect that these change as well.

Hmmm, maybe make it configurable
- ptxdist release: what we have now
- toolchain release: if the compiler changes, then the result will be
  different anyways.
- manual 'date' string: any use-case for this?

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2018-10-16 19:20 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-11 14:19 [ptxdist] [PATCH 1/3] host-faketime: new package Baeuerle, Florian
2018-10-11 14:19 ` [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly Baeuerle, Florian
2018-10-12  7:59   ` Baeuerle, Florian
2018-10-12 12:01   ` Michael Olbrich
2018-10-12 12:21     ` Baeuerle, Florian
2018-10-24  8:19       ` Michael Olbrich
2018-10-26 13:46         ` [ptxdist] [PATCH 0/2] Barebox reproducible build + ptxdist setup configuration Baeuerle, Florian
2018-10-26 13:46           ` [ptxdist] [PATCH 1/4] config/setup: make reproducible builds configurable Baeuerle, Florian
2018-10-26 13:46           ` [ptxdist] [PATCH 2/4] barebox: depend on HOST_LZOP Baeuerle, Florian
2018-10-26 13:46           ` [ptxdist] [PATCH 3/4] lzop: add patch that allows overriding mtime Baeuerle, Florian
2018-10-26 13:46           ` [ptxdist] [PATCH 4/4] barebox: add support for reproducible build Baeuerle, Florian
2018-10-12 12:28     ` [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly Baeuerle, Florian
2018-10-16  8:59       ` Michael Olbrich
2018-10-16 11:06         ` Baeuerle, Florian
2018-10-16 12:51           ` Michael Olbrich
2018-10-16 14:11             ` Baeuerle, Florian
2018-10-16 19:06               ` Michael Olbrich
2018-10-16 10:09   ` Michael Olbrich
2018-10-16 10:57     ` Baeuerle, Florian
2018-10-16 12:38       ` Michael Olbrich
2018-10-16 14:27         ` Baeuerle, Florian
2018-10-16 19:20           ` Michael Olbrich [this message]
2018-10-16 17:15       ` Alexander Dahl
2018-10-16 19:13         ` Michael Olbrich
2018-10-11 14:19 ` [ptxdist] [PATCH 3/3] barebox_mlo: add option for building barebox_mlo reproducibly Baeuerle, Florian
2018-10-11 14:43 ` [ptxdist] [PATCH 1/3] host-faketime: new package Roland Hieber
2018-10-11 21:30   ` Jon Ringle
2018-10-16  7:33     ` Baeuerle, Florian
2018-10-16  8:47       ` Michael Olbrich
2018-10-12  7:47   ` Baeuerle, Florian
2018-10-16  8:51     ` Michael Olbrich
2018-10-16 11:34       ` Alexander Dahl
2018-10-16 12:30         ` Michael Olbrich
2018-10-16  8:53 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181016192052.eehytw564w4ffjjh@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox