summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorSimon Steinbeiß <ochosi@xfce.org>2022-03-04 02:53:38 +0000
committerAndre Miranda <andreldm@xfce.org>2022-03-04 02:53:38 +0000
commitde6137361ee3bb8a8b398a349a3cdab4f297c116 (patch)
tree24fca71549e19ecebe3445cfea49985e0330f3ea /helpers
parent2ae47732a54ebfdbfa9c8e938e6e3be28c204e73 (diff)
downloadxfce4-dev-tools-de6137361ee3bb8a8b398a349a3cdab4f297c116.tar.gz
xfce-build: Fix build with SELinux (!58)HEADmaster
If you're using SELinux locally you will have to pass the "z" parameter to make the volume mounted in the container readable.
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/xfce-build3
1 files changed, 2 insertions, 1 deletions
diff --git a/helpers/xfce-build b/helpers/xfce-build
index 7fd49bf..cd26904 100755
--- a/helpers/xfce-build
+++ b/helpers/xfce-build
@@ -19,7 +19,8 @@ docker_pull () {
docker_run () {
# Run the build in the docker container
- docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) --volume $VOLUME:/tmp --env CFLAGS="${CFLAGS}" --env CONTAINER=$CONTAINER --env VERSION=$VERSION $CONTAINER:$VERSION /bin/bash -c "${BUILD_CMD}"
+ # That z parameter for volume is needed when SELinux is enabled
+ docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) --volume $VOLUME:/tmp:z --env CFLAGS="${CFLAGS}" --env CONTAINER=$CONTAINER --env VERSION=$VERSION $CONTAINER:$VERSION /bin/bash -c "${BUILD_CMD}"
}
# Parse the commandline arguments