From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] fs/cpio: make cpio rootfs reproducible
Date: Sun, 14 Jul 2019 11:02:56 +0200 [thread overview]
Message-ID: <20190714090256.GJ2680@scaer> (raw)
In-Reply-To: <e4d54ca8-8d14-a42f-cb71-a370575c0e11@mind.be>
Arnout, Atharva, All,
On 2019-07-14 00:34 +0200, Arnout Vandecappelle spake thusly:
> On 12/07/2019 19:23, Atharva Lele wrote:
> > Pass the recommended argument in the CPIO manual to make cpio archives
> > reproducible.
[--SNIP--]
> > +ifeq ($(BR2_REPRODUCIBLE), y)
> > +CPIO_OPTS = --reproducible
>
> Unfortunately, this option was only introduced in cpio 2.12 (2015). Older
> distros, including Debian oldstable and Ubuntu 2016.04, both of which are still
> being maintained, have an earlier cpio version (2.11) so don't have this option.
>
> Therefore, I think we have to check for a suitable system cpio and build
> host-cpio if it is not suitable. Or maybe, for reproducible, always build
> host-cpio?
If we are reproducible, then always build our cpio version.
We currently do not have a host-cpio package, but it is relatively
trivial to add (patch pending). Yet, I tried and it adds about 25s to
the build, somewhat comparable to the overhead for host-tar...
If someone gets sufficiently annoyed by the overhead, they'll provide
a patch to switch to checking for a suitable cpio.
But in any case, I think that people who do care about reproducibility,
do care more about it than they do about time.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
prev parent reply other threads:[~2019-07-14 9:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-12 17:23 [Buildroot] [PATCH] fs/cpio: make cpio rootfs reproducible Atharva Lele
2019-07-13 22:34 ` Arnout Vandecappelle
2019-07-14 9:02 ` Yann E. MORIN [this message]
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=20190714090256.GJ2680@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/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