Merge pull request #9290 from oech3/nolibsel

Fix build failure without libselinux
This commit is contained in:
Sylvestre Ledru
2025-11-15 22:28:10 +01:00
committed by GitHub
2 changed files with 5 additions and 12 deletions
+1 -4
View File
@@ -273,10 +273,7 @@ jobs:
target: aarch64-unknown-linux-gnu
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: Install/setup prerequisites
shell: bash
run: |
sudo apt-get -y update ; sudo apt-get -y install libselinux1-dev
# Test build on the system missing libselinux (don't install libselinux1-dev at here)
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.9
- name: "`make build`"
+4 -8
View File
@@ -195,15 +195,11 @@ HASHSUM_PROGS := \
$(info Detected OS = $(OS))
# Build the SELinux programs only on Linux
ifeq ($(filter $(OS),Linux),)
SELINUX_PROGS :=
endif
ifneq ($(OS),Windows_NT)
PROGS := $(PROGS) $(UNIX_PROGS)
# Build the selinux command even if not on the system
PROGS := $(PROGS) $(SELINUX_PROGS)
PROGS += $(UNIX_PROGS)
endif
ifeq ($(SELINUX_ENABLED),1)
PROGS += $(SELINUX_PROGS)
endif
UTILS ?= $(filter-out $(SKIP_UTILS),$(PROGS))