mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-19 07:11:55 -09:00
package/bubblewrap: fix build failure if kernel uses localversion
Bubblewrap expects the value of the assume_kernel option, if set, to be exactly three numbers separated by dots, nothing else [1]. If that requirement is not met configuring the build fails. Buildroot sets assume_kernel to $(LINUX_VERSION_PROBED) since the version bump to 0.12.0. However, the expansion of LINUX_VERSION_PROBED may contain additional suffixes, e.g. if CONFIG_LOCALVERSION is set, or localversion* files are present (like in CIP kernels). So filter the version string to ignore any suffixes. [1] https://github.com/containers/bubblewrap/blob/v0.13.0/meson.build#L94-L104 Fixes:4cb6193d2e("package/bubblewrap: security bump to version 0.12.0") Fixes: https://autobuild.buildroot.org/results/e7513e4730000e46b13bb9cf25955ebd3ec5fb71/ Signed-off-by: Fiona Klute <fiona.klute@gmx.de> Acked-by: Adrian Perez de Castro <aperez@igalia.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commita2b5b7371b) Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
This commit is contained in:
committed by
Raphaël Mélotte
parent
d351d851e4
commit
aacf9c6ad6
@@ -18,7 +18,7 @@ define BUBBLEWRAP_LINUX_CONFIG_FIXUPS
|
||||
endef
|
||||
|
||||
BUBBLEWRAP_CONF_OPTS = \
|
||||
-Dassume_kernel=$(LINUX_VERSION_PROBED) \
|
||||
-Dassume_kernel=$(shell echo $(LINUX_VERSION_PROBED) | grep -o '^[0-9]\+\.[0-9]\+\.[0-9]\+') \
|
||||
-Dzsh_completion=disabled \
|
||||
-Dman=disabled \
|
||||
-Dpython=$(HOST_DIR)/bin/python \
|
||||
|
||||
Reference in New Issue
Block a user