All of lore.kernel.org
 help / color / mirror / Atom feed
From: Atharva Lele <itsatharva@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] fs/cpio: make cpio rootfs reproducible
Date: Tue, 16 Jul 2019 17:45:49 +0530	[thread overview]
Message-ID: <40090178.cAxkiHm8M1@msi-manjaro> (raw)
In-Reply-To: <20190714172133.GC29941@scaer>

Yann, all:

Replying to both of Yann's emails in this one:

On Sunday, July 14, 2019 10:17:25 PM IST Yann E. MORIN wrote:
> Having a pure assignment in a condition is risky for the future. If we
> were to later add new unconditional options, we would add them before
> this part (as is customary to do: uncoditional stuff goes before
> conditional stuff). In this case, the assignment here would override the
> uncoditional options, which is not nice.
> 
> Instead, I think we prefer an append-assignment in conditional blocks,
> even if the variable is not already defined.

Ah yes that makes sense. I'll change it to an append-assignment in v2.
Thanks!

On Sunday, July 14, 2019 10:51:33 PM IST Yann E. MORIN wrote:
> Atharva, All,
> 
> On 2019-07-14 18:47 +0200, Yann E. MORIN spake thusly:
> > On 2019-07-14 21:53 +0530, Atharva Lele spake thusly:
> > > Pass the recommended argument in the CPIO manual to make cpio archives
> > > reproducible.
> 
> [--SNIP--]
> 
> > > +# --repoducible option was not introduced until cpio v2.12. Some
> > > distros
> > > +# like Ubuntu 16.04 or Debian oldstable which package v2.11. Hence
> > > build
> > > +# host-cpio.
> > > +ifeq ($(BR2_REPRODUCIBLE), y)
> > > +ROOTFS_CPIO_DEPENDENCIES += host-cpio
> > > +CPIO_OPTS = --reproducible
> 
> In addition to my previous comments: the variable shall be prefixed with
> ROOTFS_CPIO_, not just with CPIO_, otherwise it could clash with variables
> from the cpio package itself.

Agreed, fixing it in v2.

> Regards,
> Yann E. MORIN.

Thanks for the review!

Regards,
Atharva Lele

  reply	other threads:[~2019-07-16 12:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-14 16:23 [Buildroot] [PATCH 1/2] package/cpio: add host version Atharva Lele
2019-07-14 16:23 ` [Buildroot] [PATCH 2/2] fs/cpio: make cpio rootfs reproducible Atharva Lele
2019-07-14 16:47   ` Yann E. MORIN
2019-07-14 17:21     ` Yann E. MORIN
2019-07-16 12:15       ` Atharva Lele [this message]
2019-07-14 16:39 ` [Buildroot] [PATCH 1/2] package/cpio: add host version Yann E. MORIN

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=40090178.cAxkiHm8M1@msi-manjaro \
    --to=itsatharva@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.