mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Merge pull request #9290 from oech3/nolibsel
Fix build failure without libselinux
This commit is contained in:
@@ -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
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user