mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
package/refpolicy: ensure REFPOLICY_EXTRA_MODULES_DIRS is empty when it should be
When both BR2_REFPOLICY_EXTRA_MODULES_DIRS and PACKAGES_SELINUX_EXTRA_MODULES_DIRS are empty, we expect REFPOLICY_EXTRA_MODULES_DIRS to also be empty. However, due to spaces, this is not the case. This commit adds a $(strip ...) call to ensure it is the case. Thanks to this, the check on whether REFPOLICY_EXTRA_MODULES_DIRS is empty later on will really work as it should. Reported-by: Antoine Ténart <antoine.tenart@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
@@ -42,8 +42,9 @@ ifeq ($(BR2_PACKAGE_REFPOLICY_UPSTREAM_VERSION),y)
|
|||||||
# Allow to provide out-of-tree SELinux modules in addition to the ones
|
# Allow to provide out-of-tree SELinux modules in addition to the ones
|
||||||
# in the refpolicy.
|
# in the refpolicy.
|
||||||
REFPOLICY_EXTRA_MODULES_DIRS = \
|
REFPOLICY_EXTRA_MODULES_DIRS = \
|
||||||
$(call qstrip,$(BR2_REFPOLICY_EXTRA_MODULES_DIRS)) \
|
$(strip \
|
||||||
$(PACKAGES_SELINUX_EXTRA_MODULES_DIRS)
|
$(call qstrip,$(BR2_REFPOLICY_EXTRA_MODULES_DIRS)) \
|
||||||
|
$(PACKAGES_SELINUX_EXTRA_MODULES_DIRS))
|
||||||
$(foreach dir,$(REFPOLICY_EXTRA_MODULES_DIRS),\
|
$(foreach dir,$(REFPOLICY_EXTRA_MODULES_DIRS),\
|
||||||
$(if $(wildcard $(dir)),,\
|
$(if $(wildcard $(dir)),,\
|
||||||
$(error BR2_REFPOLICY_EXTRA_MODULES_DIRS contains nonexistent directory $(dir))))
|
$(error BR2_REFPOLICY_EXTRA_MODULES_DIRS contains nonexistent directory $(dir))))
|
||||||
|
|||||||
Reference in New Issue
Block a user