Skip to contentSkip to conversation

ipmiutil: gzip man pages with out timestamp

PATCH Superseded Jeremy A. Puhlman 3 participants 5 messages Feb 22, 2020 – Feb 23, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipmiutil: gzip man pages with out timestamp

From: Jeremy Puhlman <[email protected]>

A timestamp was getting encoded into the gzip header. This causes multilib conflicts when installed together, and would likely fail reproducablity tests.

---
 ...ess-times-from-changing-resulting-gzip-md.patch | 25 ++++++++++++++++++++++
 meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.1.5.bb  |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/ipmiutil/ipmiutil/0001-Prevent-access-times-from-changing-resulting-gzip-md.patch
meta-oe/recipes-kernel/ipmiutil/ipmiutil/0001-Prevent-access-times-from-changing-resulting-gzip-md.patch new file +25 -0
new file mode 100644
index 000000000..82d0e99d0
@@ -0,0 +1,25 @@
+From da668e5bf1a721797361ab866d09913ee8e157c4 Mon Sep 17 00:00:00 2001
+From: Jeremy Puhlman <[email protected]>
+Date: Sat, 22 Feb 2020 04:37:04 +0000
+Subject: [PATCH] Prevent access times from changing resulting gzip md5sum
+
+Upstream-Status: Pending
+https://sourceforge.net/p/ipmiutil/support-requests/40/attachment/0001-Prevent-access-times-from-changing-resulting-gzip-md.patch
+---
+ doc/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/doc/Makefile.am b/doc/Makefile.am
+index b792762..2c52ce6 100644
+--- a/doc/Makefile.am
++++ b/doc/Makefile.am
+@@ -59,5 +59,5 @@ install:
+ 	${INSTALL_DATA_SH} iuser.8 	 ${manto}
+ 	${INSTALL_DATA_SH} iseltime.8 	 ${manto}
+ 	${INSTALL_DATA_SH} bmclanpet.mib ${datato}
+-	cd ${manto}; gzip -f *.8
++	cd ${manto}; gzip -Tf *.8
+ 	
+-- 
+2.13.3
+
meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.1.5.bb +1 -0
index 3e2634028..d0f3688a2 100644
@@ -21,6 +21,7 @@ PARALLEL_MAKE = ""
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/ipmiutil/ipmiutil-${PV}.tar.gz \
            file://fix_systemd_path.patch \
+           file://0001-Prevent-access-times-from-changing-resulting-gzip-md.patch \
           "
 SRC_URI[md5sum] = "292d6df25cad678bb27e5c8cdc6748f9"
 SRC_URI[sha256sum] = "58ccdbd5755d7dd72478756715af09e9c73330dfad2b91dbf03d2ac504b301a3"
Signature · 1 line
2.13.3
#1 lore raw

fails with clang

https://errors.yoctoproject.org/Errors/Details/392235/

Quoted 54 lines · Jeremy A. Puhlman

From: Jeremy Puhlman <[email protected]>

A timestamp was getting encoded into the gzip header. This causes multilib conflicts when installed together, and would likely fail reproducablity tests.

---
 ...ess-times-from-changing-resulting-gzip-md.patch | 25 ++++++++++++++++++++++
 meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.1.5.bb  |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/ipmiutil/ipmiutil/0001-Prevent-access-times-from-changing-resulting-gzip-md.patch
meta-oe/recipes-kernel/ipmiutil/ipmiutil/0001-Prevent-access-times-from-changing-resulting-gzip-md.patch new file +25 -0
new file mode 100644
index 000000000..82d0e99d0
@@ -0,0 +1,25 @@
+From da668e5bf1a721797361ab866d09913ee8e157c4 Mon Sep 17 00:00:00 2001
+From: Jeremy Puhlman <[email protected]>
+Date: Sat, 22 Feb 2020 04:37:04 +0000
+Subject: [PATCH] Prevent access times from changing resulting gzip md5sum
+
+Upstream-Status: Pending
+https://sourceforge.net/p/ipmiutil/support-requests/40/attachment/0001-Prevent-access-times-from-changing-resulting-gzip-md.patch
+---
+ doc/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/doc/Makefile.am b/doc/Makefile.am
+index b792762..2c52ce6 100644
+--- a/doc/Makefile.am
++++ b/doc/Makefile.am
+@@ -59,5 +59,5 @@ install:
+ 	${INSTALL_DATA_SH} iuser.8 	 ${manto}
+ 	${INSTALL_DATA_SH} iseltime.8 	 ${manto}
+ 	${INSTALL_DATA_SH} bmclanpet.mib ${datato}
+-	cd ${manto}; gzip -f *.8
++	cd ${manto}; gzip -Tf *.8
+ 	
+-- 
+2.13.3
+
meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.1.5.bb +1 -0
index 3e2634028..d0f3688a2 100644
@@ -21,6 +21,7 @@ PARALLEL_MAKE = ""
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/ipmiutil/ipmiutil-${PV}.tar.gz \
            file://fix_systemd_path.patch \
+           file://0001-Prevent-access-times-from-changing-resulting-gzip-md.patch \
           "
 SRC_URI[md5sum] = "292d6df25cad678bb27e5c8cdc6748f9"
 SRC_URI[sha256sum] = "58ccdbd5755d7dd72478756715af09e9c73330dfad2b91dbf03d2ac504b301a3"
#2 lore raw
Quoted 3 lines · Khem Raj

fails with clang

https://errors.yoctoproject.org/Errors/Details/392235/

Its a hosttools issue. I was using hosttools tarball that uses pigz as its gzip. Just needs a depends on pigz-native. Ill respin it.

Quoted 55 lines · Jeremy A. Puhlman
Quoted 54 lines

From: Jeremy Puhlman <[email protected]>

A timestamp was getting encoded into the gzip header. This causes multilib conflicts when installed together, and would likely fail reproducablity tests.

---
  ...ess-times-from-changing-resulting-gzip-md.patch | 25 ++++++++++++++++++++++
  meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.1.5.bb  |  1 +
  2 files changed, 26 insertions(+)

create mode 100644 meta-oe/recipes-kernel/ipmiutil/ipmiutil/0001-Prevent-access-times-from-changing-resulting-gzip-md.patch

meta-oe/recipes-kernel/ipmiutil/ipmiutil/0001-Prevent-access-times-from-changing-resulting-gzip-md.patch new file +25 -0
new file mode 100644
index 000000000..82d0e99d0
@@ -0,0 +1,25 @@
+From da668e5bf1a721797361ab866d09913ee8e157c4 Mon Sep 17 00:00:00 2001
+From: Jeremy Puhlman <[email protected]>
+Date: Sat, 22 Feb 2020 04:37:04 +0000
+Subject: [PATCH] Prevent access times from changing resulting gzip md5sum
+
+Upstream-Status: Pending
+https://sourceforge.net/p/ipmiutil/support-requests/40/attachment/0001-Prevent-access-times-from-changing-resulting-gzip-md.patch
+---
+ doc/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/doc/Makefile.am b/doc/Makefile.am
+index b792762..2c52ce6 100644
+--- a/doc/Makefile.am
++++ b/doc/Makefile.am
+@@ -59,5 +59,5 @@ install:
+ 	${INSTALL_DATA_SH} iuser.8 	 ${manto}
+ 	${INSTALL_DATA_SH} iseltime.8 	 ${manto}
+ 	${INSTALL_DATA_SH} bmclanpet.mib ${datato}
+-	cd ${manto}; gzip -f *.8
++	cd ${manto}; gzip -Tf *.8
+ 	
+--
+2.13.3
+
meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.1.5.bb +1 -0
index 3e2634028..d0f3688a2 100644
@@ -21,6 +21,7 @@ PARALLEL_MAKE = ""
 
  SRC_URI = "${SOURCEFORGE_MIRROR}/ipmiutil/ipmiutil-${PV}.tar.gz \
             file://fix_systemd_path.patch \
+           file://0001-Prevent-access-times-from-changing-resulting-gzip-md.patch \
            "
  SRC_URI[md5sum] = "292d6df25cad678bb27e5c8cdc6748f9"
  SRC_URI[sha256sum] = "58ccdbd5755d7dd72478756715af09e9c73330dfad2b91dbf03d2ac504b301a3"
Signature · 2 lines
Jeremy A. Puhlman
[email protected]
#3 lore raw
Quoted 7 lines · Jeremy A. Puhlman
Quoted 3 lines · Khem Raj

fails with clang

https://errors.yoctoproject.org/Errors/Details/392235/

Its a hosttools issue. I was using hosttools tarball that uses pigz as its gzip. Just needs a depends on pigz-native. Ill respin it.

Is there a reason why you aren't using -n instead?

cu
Adrian

#4 lore raw
Quoted 8 lines · Adrian Bunk
Quoted 6 lines · Jeremy A. Puhlman
Quoted 3 lines · Khem Raj

fails with clang

https://errors.yoctoproject.org/Errors/Details/392235/

Its a hosttools issue. I was using hosttools tarball that uses pigz as its gzip. Just needs a depends on pigz-native. Ill respin it.

Is there a reason why you aren't using -n instead?

Cause I was laser focused on timestamp. Yeah -n is the right way to go, and I don't use the system gzip pretty much anywhere(all my builds are on top of the buildtools).

Quoted 4 lines

cu
Adrian

Signature · 2 lines
Jeremy A. Puhlman
[email protected]