Skip to contentSkip to conversation

Misc fixes

PATCH Applied Daniel Gomez 1 participant 5 messages May 26 – Jun 17

lore
Share & tools
lore
#0 lore raw

cover Misc fixes

Fixes.

---
Daniel Gomez (3):
scripts/get_gdb_base_port: strip leading zeros for the Kconfig int type
bootlinux: drop empty umask key from kdevops-managed ccache.conf workflows/linux: add Linus tree URL fallback

 playbooks/roles/bootlinux/templates/ccache.conf.j2 | 1 -
 scripts/get_gdb_base_port.sh                       | 3 ++-
 workflows/linux/Kconfig.linus                      | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

---
base-commit: a81b18438512916a3cc01a8215442db855bb2bbb
change-id: 20260526-misc-fixes-3f23cfbd3fba

Best regards,

Signature · 1 line
Daniel Gomez <[email protected]>
#1 lore raw

PATCH 1/3 scripts/get_gdb_base_port: strip leading zeros for the Kconfig int type

From: Daniel Gomez <[email protected]>

libvirt/Kconfig has LIBVIRT_GDB_BASEPORT as a Kconfig int whose default comes from this script. The script extracts the last 4 digits of the script's own md5sum, which can begin with a zero (today the script emits "0016"). Kconfig's int parser rejects that with:

libvirt/Kconfig:1177:warning: 'LIBVIRT_GDB_BASEPORT': number is invalid

Run the value through arithmetic expansion with the 10#-base prefix to force base-10 interpretation and emit it without leading zeros.

Generated-by Claude AI
---
 scripts/get_gdb_base_port.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/get_gdb_base_port.sh +2 -1
index bdd80044..91048617 100755
@@ -11,4 +11,5 @@ digits_only=$(echo $base_md5sum | tr -cd '0-9')
 # extract the last 4 digits from md5sum
 
 base_port=${digits_only: -4}
-echo $base_port
+# Strip leading zeros so the Kconfig `int` type accepts the value.
+echo $((10#$base_port))
Signature · 1 line
2.53.0
#2 lore raw

PATCH 2/3 bootlinux: drop empty umask key from kdevops-managed ccache.conf

In reply to Daniel Gomez

From: Daniel Gomez <[email protected]>

A bare umask = line makes ccache fold the following key into the value and abort with "invalid unsigned octal integer", surfaced by the kernel build as the misleading "ccache gcc: unknown C compiler" at Kconfig.include. ccache's compiled-in umask default is fine for kdevops-managed caches, so drop the key.

Generated-by Claude AI
---
 playbooks/roles/bootlinux/templates/ccache.conf.j2 | 1 -
 1 file changed, 1 deletion(-)
playbooks/roles/bootlinux/templates/ccache.conf.j2 +0 -1
index 8c0a7bf9..707b2f5b 100644
@@ -23,5 +23,4 @@ hard_link = false
 inode_cache = true
 
 # Security
-umask =
 read_only = false
Signature · 1 line
2.53.0
#3 lore raw

PATCH 3/3 workflows/linux: add Linus tree URL fallback

In reply to Daniel Gomez

From: Daniel Gomez <[email protected]>

BOOTLINUX_TREE_LINUS_URL has three gated default clauses:
\!USE_LOCAL_LINUX_MIRROR, USE_LIBVIRT_MIRROR && GUESTFS && \!BOOTLINUX_9P, and USE_LIBVIRT_MIRROR && BOOTLINUX_9P. A configuration that sets USE_LOCAL_LINUX_MIRROR=y under a non-libvirt bringup (qsu, for example) matches none of them and the URL resolves to the empty string, which flows through BOOTLINUX_TREE into target_linux_git= and target_linux_tree= empty.

Add an unconditional final fallback to DEFAULT_TORVALDS_HTTPS_URL. The earlier predicate-gated defaults still take precedence whenever they match. The empty-URL gap predates this series; the qsu backend is the first non-libvirt bringup to expose it.

Generated-by Claude AI
---
 workflows/linux/Kconfig.linus | 1 +
 1 file changed, 1 insertion(+)
workflows/linux/Kconfig.linus +1 -0
index b16696a4..4b9a8dc7 100644
@@ -50,6 +50,7 @@ config BOOTLINUX_TREE_LINUS_URL
 	default DEFAULT_TORVALDS_HTTPS_URL if !USE_LOCAL_LINUX_MIRROR
 	default $(shell, scripts/append-makefile-vars.sh git:// $(KDEVOPS_DEFAULT_BRIDGE_IP_GUESTFS) /mirror/linux.git) if USE_LIBVIRT_MIRROR && !BOOTLINUX_9P && GUESTFS
 	default "/mirror/linux.git" if USE_LIBVIRT_MIRROR && BOOTLINUX_9P
+	default DEFAULT_TORVALDS_HTTPS_URL
 
 endif # BOOTLINUX_TREE_LINUS
 
Signature · 1 line
2.53.0
author Applied
#4 lore raw
In reply to Daniel Gomez

From: Daniel Gomez <[email protected]>

Quoted 1 line · Daniel Gomez

Fixes.

Applied.

[1/3] scripts/get_gdb_base_port: strip leading zeros for the Kconfig int type

      commit: 10906270f959048db7d11ac5f3ccfa2514b5f166
[2/3] bootlinux: drop empty umask key from kdevops-managed ccache.conf
      commit: b6267d244ba24847ed950d839c3518cc3182fb6a
[3/3] workflows/linux: add Linus tree URL fallback
      commit: 9e7721aa981a12506ae92db79a1a3e7a866947b2

Best regards,

Signature · 1 line
Daniel Gomez <[email protected]>