openwrt/package
Markus Stockhausen d34cef823e
Some checks failed
Build Kernel / Build all affected Kernels (push) Waiting to run
Build all core packages / Build all core packages for selected target (push) Waiting to run
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
build: avoid errors during release candidate kernel packaging
The build system allows to use Linux release candidate kernels (-rcX).
For this a target/linux/generic/kernel-6.XY as follows is needed:

LINUX_VERSION-6.XY = -rc1
LINUX_KERNEL_HASH-6.XY-rc1 = 18ba6ebd72f46b881e0d73e390b2888b7b43...

Sadly the builds fail with a packaging error.

fakeroot /home/openwrt/openwrt/openwrt/staging_dir/host/bin/apk
mkpkg --info "name:kernel" --info "version:6.15-rc1~c4bf...1f6-r1"
ERROR: info field 'version' has invalid value: package version is invalid

The apk metadata specification reads:

"... Currently the APK version specification is as follows:
number{.number}...{letter}{_suffix{number}}...{~hash}{-r#} ...
Optionally one or more _suffix{number} components can follow.
The list of valid suffixes (and their sorting order) is: alpha,
beta, pre, rc, <no suffix>, cvs, svn, git, hg, p."

Given that the kernel uses "-rcX" naming scheme and apk requires
"_rcX" instead, simply translate the dash to an underscore for
these builds.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21214
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-12-20 11:06:47 +01:00
..
base-files image: add CONFIG_EXTRA_IMAGE_NAME 2025-12-12 22:06:06 +00:00
boot uboot-sunxi: fix u-boot build 2025-12-17 00:06:24 +01:00
devel kselftests-bpf: drop dependency on kernel 6.6 2025-11-27 12:47:16 +01:00
firmware linux-firmware: intel: bump BE200 wifi firmware 2025-12-17 21:21:21 +01:00
kernel build: avoid errors during release candidate kernel packaging 2025-12-20 11:06:47 +01:00
libs libcap: Revert "libcap: update to 2.77" 2025-12-16 01:24:47 +01:00
network odhcpd: update to Git HEAD (2025-12-18) 2025-12-18 21:24:09 +01:00
system apk: bump to 3.0.2 2025-12-12 13:59:39 +01:00
utils packages: nvram: add set_bcm43602_variables quirk for ASUS RT-AC3200 2025-12-18 18:18:48 +00:00
Makefile build: avoid errors during release candidate kernel packaging 2025-12-20 11:06:47 +01:00