Skip to contentSkip to conversation

ruby: Make docs generation deterministic

PATCH New Richard Purdie 1 participant 2 messages Sep 10, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ruby: Make docs generation deterministic

The presence or lack of nroff on the host was changing the doc type. Set it explicitly to be deterministic and reproducible.

---
 meta/recipes-devtools/ruby/ruby_3.3.4.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/ruby/ruby_3.3.4.bb +1 -0
index ebff4136c9c..d39b7ae5206 100644
@@ -67,6 +67,7 @@ EXTRA_OECONF = "\
     --enable-load-relative \
     --with-pkg-config=pkg-config \
     --with-static-linked-ext \
+    --with-mantype=man \
 "
 
 EXTRA_OECONF:append:libc-musl = "\
#1 lore raw

PATCH 2/2 libedit: Make docs generation deterministic

The presence or lack of nroff on the host was changing the doc type. Stop the code from looking at host paths outside HOSTTOOLS and hence cause the doc type to be deterministic and reproducible.

---
 meta/recipes-devtools/libedit/libedit_20240808-3.1.bb | 7 +++++++
 1 file changed, 7 insertions(+)
meta/recipes-devtools/libedit/libedit_20240808-3.1.bb +7 -0
index 932e5a1485a..bf6ec8ebd3c 100644
@@ -15,4 +15,11 @@ SRC_URI = "http://www.thrysoee.dk/editline/${BP}.tar.gz \
           "
 SRC_URI[sha256sum] = "5f0573349d77c4a48967191cdd6634dd7aa5f6398c6a57fe037cc02696d6099f"
 
+# configure hardcodes /usr/bin search path bypassing HOSTTOOLS
+CACHED_CONFIGUREVARS += "ac_cv_path_NROFF=/bin/false"
+
+# remove at next version upgrade or when output changes
+PR = "r1"
+HASHEQUIV_HASH_VERSION .= ".1"
+
 BBCLASSEXTEND = "native nativesdk"