Skip to contentSkip to conversation

elfutils: Add zstd PACKAGECONFIG for determinism

PATCH Superseded Richard Purdie 2 participants 3 messages Aug 16, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 elfutils: Add zstd PACKAGECONFIG for determinism

Ensure builds as deterministic by covering all compression configuration options.

---
 meta/recipes-devtools/elfutils/elfutils_0.185.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/elfutils/elfutils_0.185.bb +1 -0
index 7a88c5259fd..852d27764c9 100644
@@ -42,6 +42,7 @@ DEPENDS_BZIP2:class-target = "bzip2"
 PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'debuginfod', 'debuginfod libdebuginfod', '', d)}"
 PACKAGECONFIG[bzip2] = "--with-bzlib,--without-bzlib,${DEPENDS_BZIP2}"
 PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz"
+PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd"
 PACKAGECONFIG[libdebuginfod] = "--enable-libdebuginfod,--disable-libdebuginfod,curl"
 PACKAGECONFIG[debuginfod] = "--enable-debuginfod,--disable-debuginfod,libarchive sqlite3 libmicrohttpd"
 
Signature · 1 line
2.30.2
#1 lore raw

PATCH 2/2 man-db: Add compression PACKAGECONFIG entries

Add PACKAGECONFIG entries for various compression algorithms to ensure builds are deterministic.

---
 meta/recipes-extended/man-db/man-db_2.9.4.bb | 7 +++++++
 1 file changed, 7 insertions(+)
meta/recipes-extended/man-db/man-db_2.9.4.bb +7 -0
index c4cdbcc3b49..2b530fb8a6a 100644
@@ -22,6 +22,13 @@ inherit gettext pkgconfig autotools systemd
 EXTRA_OECONF = "--with-pager=less --with-systemdsystemunitdir=${systemd_unitdir}/system"
 EXTRA_AUTORECONF += "-I ${S}/gl/m4"
 
+PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2"
+PACKAGECONFIG[gzip] = "--with-gzip,--without-gzip,gzip"
+PACKAGECONFIG[lzip] = "--with-lzip,--without-lzip,lzip"
+PACKAGECONFIG[lzma] = "--with-lzma,--without-lzma,xz"
+PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd"
+PACKAGECONFIG[xz] = "--with-xz,--without-xz,xz"
+
 do_install() {
 	autotools_do_install
 
Signature · 1 line
2.30.2
#2 lore raw

Re: [OE-core] [PATCH 2/2] man-db: Add compression PACKAGECONFIG entries

Quoted 13 lines · Richard Purdie

Add PACKAGECONFIG entries for various compression algorithms to ensure builds are deterministic.

---
  meta/recipes-extended/man-db/man-db_2.9.4.bb | 7 +++++++
  1 file changed, 7 insertions(+)
meta/recipes-extended/man-db/man-db_2.9.4.bb +0 -0
index c4cdbcc3b49..2b530fb8a6a 100644

meta/recipes-extended/man-db/man-db_2.9.4.bb inherit gettext pkgconfig autotools systemd · line 31

Quoted 10 lines
meta/recipes-extended/man-db/man-db_2.9.4.bb +7 -0
@@ -22,6 +22,13 @@ inherit gettext pkgconfig autotools systemd
  EXTRA_OECONF = "--with-pager=less --with-systemdsystemunitdir=${systemd_unitdir}/system"
  EXTRA_AUTORECONF += "-I ${S}/gl/m4"
 
+PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2"
+PACKAGECONFIG[gzip] = "--with-gzip,--without-gzip,gzip"
+PACKAGECONFIG[lzip] = "--with-lzip,--without-lzip,lzip"
+PACKAGECONFIG[lzma] = "--with-lzma,--without-lzma,xz"
+PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd"
+PACKAGECONFIG[xz] = "--with-xz,--without-xz,xz"
+

were there some enabled by default I wonder ? I agree the minimal default is a good starting point but just want to understand should we need a default compression turned on or not.

Quoted 8 lines
meta/recipes-extended/man-db/man-db_2.9.4.bb +0 -0
  do_install() {
  	autotools_do_install