Misc fixes
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]>
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.
--- scripts/get_gdb_base_port.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/get_gdb_base_port.sh +2 -1
@@ -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
PATCH 2/3 bootlinux: drop empty umask key from kdevops-managed ccache.conf
In reply to Daniel GomezFrom: 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.
--- playbooks/roles/bootlinux/templates/ccache.conf.j2 | 1 - 1 file changed, 1 deletion(-)
playbooks/roles/bootlinux/templates/ccache.conf.j2 +0 -1
@@ -23,5 +23,4 @@ hard_link = false inode_cache = true # Security -umask = read_only = false
Signature · 1 line
2.53.0
PATCH 3/3 workflows/linux: add Linus tree URL fallback
In reply to Daniel GomezFrom: 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.
--- workflows/linux/Kconfig.linus | 1 + 1 file changed, 1 insertion(+)
workflows/linux/Kconfig.linus +1 -0
@@ -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
Daniel Gomez
AppliedFrom: 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: 9e7721aa981a12506ae92db79a1a3e7a866947b2Best regards,
Signature · 1 line
Daniel Gomez <[email protected]>