Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/2] fs/common.mk: do not store original names and timestamps when creating GZIP rootfs
@ 2019-07-16 17:42 Atharva Lele
  2019-07-16 17:42 ` [Buildroot] [PATCH v2 2/2] Makefile: don't export GZIP environment variable Atharva Lele
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Atharva Lele @ 2019-07-16 17:42 UTC (permalink / raw)
  To: buildroot

We don't use the GZIP environment variable to store GZIP options
anymore. So explicitly add -n argument to the GZIP call to ensure
reproducibility.

Signed-off-by: Atharva Lele <itsatharva@gmail.com>
Acked-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
Changes v1 -> v2:
  - Reversed order of patches
---
 fs/common.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/common.mk b/fs/common.mk
index fceb38c5b9..ca46a331d6 100644
--- a/fs/common.mk
+++ b/fs/common.mk
@@ -115,7 +115,7 @@ ROOTFS_$(2)_FINAL_RECURSIVE_DEPENDENCIES = $$(sort \
 
 ifeq ($$(BR2_TARGET_ROOTFS_$(2)_GZIP),y)
 ROOTFS_$(2)_COMPRESS_EXT = .gz
-ROOTFS_$(2)_COMPRESS_CMD = gzip -9 -c
+ROOTFS_$(2)_COMPRESS_CMD = gzip -9 -c -n
 endif
 ifeq ($$(BR2_TARGET_ROOTFS_$(2)_BZIP2),y)
 ROOTFS_$(2)_COMPRESS_EXT = .bz2
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 2/2] Makefile: don't export GZIP environment variable
  2019-07-16 17:42 [Buildroot] [PATCH v2 1/2] fs/common.mk: do not store original names and timestamps when creating GZIP rootfs Atharva Lele
@ 2019-07-16 17:42 ` Atharva Lele
  2019-08-04 20:12   ` Peter Korsgaard
  2019-07-17  6:47 ` [Buildroot] [PATCH v2 1/2] fs/common.mk: do not store original names and timestamps when creating GZIP rootfs Thomas Petazzoni
  2019-08-04 20:12 ` Peter Korsgaard
  2 siblings, 1 reply; 5+ messages in thread
From: Atharva Lele @ 2019-07-16 17:42 UTC (permalink / raw)
  To: buildroot

We export GZIP = -n so that GZIP does not record original
name and timestamps. However..

GZIP environment variable is deprecated and soon will not be
supported in future GZIP versions. GZIP suggests the use of a
wrapper to pass options globally but it might be difficult to
implement in Buildroot. For now, we don't export the variable
and fix reproducibility issues per package as they show up in
Autobuilder.

Signed-off-by: Atharva Lele <itsatharva@gmail.com>
Acked-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
Changes v1 -> v2:
  - Reversed order of patches
---
 Makefile | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Makefile b/Makefile
index c98a0ed87e..9cce934990 100644
--- a/Makefile
+++ b/Makefile
@@ -248,7 +248,6 @@ ifeq ($(BR2_REPRODUCIBLE),y)
 export TZ = UTC
 export LANG = C
 export LC_ALL = C
-export GZIP = -n
 endif
 
 # To put more focus on warnings, be less verbose as default
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 1/2] fs/common.mk: do not store original names and timestamps when creating GZIP rootfs
  2019-07-16 17:42 [Buildroot] [PATCH v2 1/2] fs/common.mk: do not store original names and timestamps when creating GZIP rootfs Atharva Lele
  2019-07-16 17:42 ` [Buildroot] [PATCH v2 2/2] Makefile: don't export GZIP environment variable Atharva Lele
@ 2019-07-17  6:47 ` Thomas Petazzoni
  2019-08-04 20:12 ` Peter Korsgaard
  2 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2019-07-17  6:47 UTC (permalink / raw)
  To: buildroot

Hello Atharva,

On Tue, 16 Jul 2019 23:12:13 +0530
Atharva Lele <itsatharva@gmail.com> wrote:

> We don't use the GZIP environment variable to store GZIP options
> anymore. So explicitly add -n argument to the GZIP call to ensure
> reproducibility.
> 
> Signed-off-by: Atharva Lele <itsatharva@gmail.com>
> Acked-by: Yann E. MORIN <yann.morin.1998@free.fr>
> ---
> Changes v1 -> v2:
>   - Reversed order of patches
> ---
>  fs/common.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Both applied, thanks! I had to reword a little bit the commit log of
PATCH 1/2, because the wording was no longer really appropriate after
you swapped the order of the two patches.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 1/2] fs/common.mk: do not store original names and timestamps when creating GZIP rootfs
  2019-07-16 17:42 [Buildroot] [PATCH v2 1/2] fs/common.mk: do not store original names and timestamps when creating GZIP rootfs Atharva Lele
  2019-07-16 17:42 ` [Buildroot] [PATCH v2 2/2] Makefile: don't export GZIP environment variable Atharva Lele
  2019-07-17  6:47 ` [Buildroot] [PATCH v2 1/2] fs/common.mk: do not store original names and timestamps when creating GZIP rootfs Thomas Petazzoni
@ 2019-08-04 20:12 ` Peter Korsgaard
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2019-08-04 20:12 UTC (permalink / raw)
  To: buildroot

>>>>> "Atharva" == Atharva Lele <itsatharva@gmail.com> writes:

 > We don't use the GZIP environment variable to store GZIP options
 > anymore. So explicitly add -n argument to the GZIP call to ensure
 > reproducibility.

 > Signed-off-by: Atharva Lele <itsatharva@gmail.com>
 > Acked-by: Yann E. MORIN <yann.morin.1998@free.fr>

Committed to 2019.02.x and 2019.05.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 2/2] Makefile: don't export GZIP environment variable
  2019-07-16 17:42 ` [Buildroot] [PATCH v2 2/2] Makefile: don't export GZIP environment variable Atharva Lele
@ 2019-08-04 20:12   ` Peter Korsgaard
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2019-08-04 20:12 UTC (permalink / raw)
  To: buildroot

>>>>> "Atharva" == Atharva Lele <itsatharva@gmail.com> writes:

 > We export GZIP = -n so that GZIP does not record original
 > name and timestamps. However..

 > GZIP environment variable is deprecated and soon will not be
 > supported in future GZIP versions. GZIP suggests the use of a
 > wrapper to pass options globally but it might be difficult to
 > implement in Buildroot. For now, we don't export the variable
 > and fix reproducibility issues per package as they show up in
 > Autobuilder.

 > Signed-off-by: Atharva Lele <itsatharva@gmail.com>
 > Acked-by: Yann E. MORIN <yann.morin.1998@free.fr>
 > ---
 > Changes v1 -> v2:
 >   - Reversed order of patches

Committed to 2019.02.x and 2019.05.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-04 20:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-16 17:42 [Buildroot] [PATCH v2 1/2] fs/common.mk: do not store original names and timestamps when creating GZIP rootfs Atharva Lele
2019-07-16 17:42 ` [Buildroot] [PATCH v2 2/2] Makefile: don't export GZIP environment variable Atharva Lele
2019-08-04 20:12   ` Peter Korsgaard
2019-07-17  6:47 ` [Buildroot] [PATCH v2 1/2] fs/common.mk: do not store original names and timestamps when creating GZIP rootfs Thomas Petazzoni
2019-08-04 20:12 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox