Skip to contentSkip to conversation

rpm: override curl executable search with just 'curl'

PATCH New Alexander Kanavin 1 participant 1 message Feb 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpm: override curl executable search with just 'curl'

rpm is searching for curl executable at do_configure time and result is non-deterministic, depending on whether curl is in native sysroot or not:
https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20240201-8dcic6ea/packages/diff-html/

---
 meta/recipes-devtools/rpm/rpm_4.19.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/rpm/rpm_4.19.1.bb +1 -0
index af11dec5ef3..086f100229b 100644
@@ -51,6 +51,7 @@ S = "${WORKDIR}/git"
 DEPENDS = "lua libgcrypt file popt xz bzip2 elfutils python3 sqlite3 zstd"
 DEPENDS:append:class-native = " file-replacement-native bzip2-replacement-native"
 
+EXTRA_OECMAKE:append = " -D__CURL:FILEPATH=curl"
 EXTRA_OECMAKE:append:libc-musl = " -DENABLE_NLS=OFF -DENABLE_OPENMP=OFF"
 
 # --sysconfdir prevents rpm from attempting to access machine-specific configuration in sysroot/etc; we need to have it in rootfs
Signature · 1 line
2.39.2