Skip to contentSkip to conversation

ofono: add missing mkdir when creating new files

PATCH New Ross Burton 1 participant 2 messages Dec 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ofono: add missing mkdir when creating new files

---
 ...g-mkdir-when-creating-unit-test-prov.patch | 27 +++++++++++++++++++
 meta/recipes-connectivity/ofono/ofono_2.19.bb |  1 +
 2 files changed, 28 insertions(+)
 create mode 100644 meta/recipes-connectivity/ofono/ofono/0001-build-add-missing-mkdir-when-creating-unit-test-prov.patch
meta/recipes-connectivity/ofono/ofono/0001-build-add-missing-mkdir-when-creating-unit-test-prov.patch new file +27 -0
new file mode 100644
index 00000000000..b6e816631dc
@@ -0,0 +1,27 @@
+From e473db4ef4e418e78d04b8de712b5d280f762b43 Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+Date: Thu, 18 Dec 2025 18:00:28 +0000
+Subject: [PATCH] build: add missing mkdir when creating unit/test-provision.db
+
+Upstream-Status: Submitted [https://lore.kernel.org/ofono/[email protected]/T/#u]
+Signed-off-by: Ross Burton <[email protected]>
+
+---
+ Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.am b/Makefile.am
+index cf51cdf1..3bd414d6 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -947,6 +947,7 @@ unit_test_qmimodem_qmi_LDADD = @GLIB_LIBS@ $(ell_ldadd) -ldl
+ unit_objects += $(unit_test_qmimodem_qmi_OBJECTS)
+ 
+ unit/test-provision.db: unit/test-provision.json
++	$(AM_V_at)$(MKDIR_P) unit
+ 	$(AM_V_GEN)$(srcdir)/tools/provisiontool generate \
+ 		--infile $< --outfile $@
+ 
+-- 
+2.43.0
+
meta/recipes-connectivity/ofono/ofono_2.19.bb +1 -0
index 136c13fbebb..74fa70f609b 100644
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
 DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ell"
 
 SRC_URI = "${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \
+           file://0001-build-add-missing-mkdir-when-creating-unit-test-prov.patch \
            file://ofono \
            "
 SRC_URI[sha256sum] = "d554525ad2db1ccd2fe3ed733e437d76997e7f443c085b87e6be1fded020bc8f"
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 kea: remove more host paths

If ccache is in use then the full path to ccache is resolved, and ends up in both config.report and then config_report.cc. This results in build paths in libkea-cfgrpt.so.3.0.0, so we should also remove HOSTTOOLS_DIR from these files to ensure both reproducibility and no host contamination.

---
 meta/recipes-connectivity/kea/kea_3.0.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-connectivity/kea/kea_3.0.1.bb +3 -1
index 8729b1162ea..a4950e3bc16 100644
@@ -57,7 +57,9 @@ do_configure:prepend() {
 
 # patch out build host paths for reproducibility
 do_compile:prepend:class-target() {
-    sed -i -e "s,${WORKDIR},,g" ${B}/config.report
+    sed -i -e "s,${WORKDIR},,g" -e "s,${HOSTTOOLS_DIR}/,,g" \
+        ${B}/config.report \
+        ${B}/src/lib/process/cfgrpt/config_report.cc
 }
 
 do_install:append() {
Signature · 1 line
2.43.0