Skip to contentSkip to conversation

rpm: depend on curl-native

PATCH In review Alexander Kanavin 2 participants 3 messages Feb 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpm: depend on curl-native

rpm is searching for curl executable at do_configure time and result is non-deterministic without this dependency:
https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20240201-8dcic6ea/packages/diff-html/

---
 meta/recipes-devtools/rpm/rpm_4.19.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/rpm/rpm_4.19.1.bb +1 -1
index af11dec5ef3..f6d21cb6a4a 100644
@@ -48,7 +48,7 @@ SRCREV = "98b301ebb44fb5cabb56fc24bc3aaa437c47c038"
 
 S = "${WORKDIR}/git"
 
-DEPENDS = "lua libgcrypt file popt xz bzip2 elfutils python3 sqlite3 zstd"
+DEPENDS = "lua libgcrypt file popt xz bzip2 elfutils python3 sqlite3 zstd curl-native"
 DEPENDS:append:class-native = " file-replacement-native bzip2-replacement-native"
 
 EXTRA_OECMAKE:append:libc-musl = " -DENABLE_NLS=OFF -DENABLE_OPENMP=OFF"
Signature · 1 line
2.39.2
#1 lore raw
Quoted 14 lines · Alexander Kanavin

rpm is searching for curl executable at do_configure time and result is non-deterministic without this dependency:
https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20240201-8dcic6ea/packages/diff-html/

---
 meta/recipes-devtools/rpm/rpm_4.19.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/rpm/rpm_4.19.1.bb +0 -0
index af11dec5ef3..f6d21cb6a4a 100644

meta/recipes-devtools/rpm/rpm_4.19.1.bb SRCREV = "98b301ebb44fb5cabb56fc24bc3aaa437c47c038" · line 54

Quoted 8 lines
meta/recipes-devtools/rpm/rpm_4.19.1.bb +1 -1
@@ -48,7 +48,7 @@ SRCREV = "98b301ebb44fb5cabb56fc24bc3aaa437c47c038"
 
 S = "${WORKDIR}/git"
 
-DEPENDS = "lua libgcrypt file popt xz bzip2 elfutils python3 sqlite3 zstd"
+DEPENDS = "lua libgcrypt file popt xz bzip2 elfutils python3 sqlite3 zstd curl-native"
 DEPENDS:append:class-native = " file-replacement-native bzip2-replacement-native"
 
 EXTRA_OECMAKE:append:libc-musl = " -DENABLE_NLS=OFF -DENABLE_OPENMP=OFF"

Can we not just tell rpm it is "curl" or "/usr/bin/curl" explicitly? Adding dependencies increases build times and we really don't want to if we don't need to.

Cheers,

Richard

#2 lore raw
Quoted 3 lines · Richard Purdie

Can we not just tell rpm it is "curl" or "/usr/bin/curl" explicitly? Adding dependencies increases build times and we really don't want to if we don't need to.

Yes, I've send a patch for that now.

Alex