Skip to content

Commit a10813c

Browse files
Do not build SELinux programs on FreeBSD when using make (#8443)
* Do not build SELinux programs on FreeBSD * FreeBSD: test building with make
1 parent f36bf1d commit a10813c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/freebsd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ jobs:
195195
export CARGO_TERM_COLOR=always
196196
if (test -z "\$FAULT"); then cargo nextest run --hide-progress-bar --profile ci --features '${{ matrix.job.features }}' || FAULT=1 ; fi
197197
if (test -z "\$FAULT"); then cargo nextest run --hide-progress-bar --profile ci --all-features -p uucore || FAULT=1 ; fi
198+
# Test building with make
199+
if (test -z "\$FAULT"); then make PROFILE=ci || FAULT=1 ; fi
198200
# Clean to avoid to rsync back the files
199201
cargo clean
200202
if (test -n "\$FAULT"); then exit 1 ; fi

GNUmakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ SELINUX_PROGS := \
193193

194194
$(info Detected OS = $(OS))
195195

196-
# Don't build the SELinux programs on macOS (Darwin)
197-
ifeq ($(OS),Darwin)
198-
SELINUX_PROGS :=
196+
# Don't build the SELinux programs on macOS (Darwin) and FreeBSD
197+
ifeq ($(filter $(OS),Darwin FreeBSD),$(OS))
198+
SELINUX_PROGS :=
199199
endif
200200

201201
ifneq ($(OS),Windows_NT)

0 commit comments

Comments
 (0)