@@ -63,15 +63,19 @@ jobs:
6363 git submodule sync --recursive
6464 git config submodule.gnulib.url https://github.com/coreutils/gnulib.git
6565 git submodule update --init --recursive --depth 1
66+ # Backport auto-skip for SELinux progs
67+ # Drop this at coreutils 9.9
68+ curl https://github.com/coreutils/coreutils/commit/8ba47d09a33f0740e071a8394f3504e0fb57948e.patch -o skip-selinux.patch
69+ patch -Np1 -i skip-selinux.patch
6670 working-directory : gnu
6771
68- # ### Build environment setup
72+ # ### Build environment setup without libselinux
6973 - name : Install dependencies
7074 shell : bash
7175 run : |
7276 ## Install dependencies
7377 sudo apt-get update
74- sudo apt-get install -y autoconf autopoint bison texinfo gperf gcc g++ gdb python3-pyinotify jq valgrind libexpect-perl libacl1-dev libattr1-dev libcap-dev libselinux1-dev attr quilt
78+ sudo apt-get install -y autoconf autopoint bison texinfo gperf gcc g++ gdb python3-pyinotify jq valgrind libexpect-perl libacl1-dev libattr1-dev libcap-dev attr quilt
7579 - name : Add various locales
7680 shell : bash
7781 run : |
@@ -158,6 +162,9 @@ jobs:
158162 name : Run GNU tests (SELinux)
159163 runs-on : ubuntu-24.04
160164 steps :
165+ - name : Install libselinux
166+ shell : bash
167+ run : sudo apt-get install -y libselinux1-dev
161168 # ### Get the code, setup cache
162169 - name : Checkout code (uutils)
163170 uses : actions/checkout@v5
@@ -225,7 +232,7 @@ jobs:
225232 # ## Build
226233 - name : Build binaries
227234 run : |
228- lima bash -c "cd ~/work/uutils/ && bash util/build-gnu.sh --release-build"
235+ env SELINUX_ENABLED=1 lima bash -c "cd ~/work/uutils/ && bash util/build-gnu.sh --release-build"
229236
230237 # ## Run tests as user
231238 - name : Generate SELinux tests list
0 commit comments