]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
build on systems without lsb_release
authorAlan T. DeKok <aland@freeradius.org>
Sun, 27 Apr 2025 13:45:05 +0000 (09:45 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 27 Apr 2025 13:45:05 +0000 (09:45 -0400)
scripts/ci/eapol_test-build.sh

index 76b5d5b803cc8cc30519e5443b4c1c1ba60de16f..5cbfd6c621a5036d77107f1bfb64fa8b82ae7dea 100755 (executable)
@@ -101,8 +101,10 @@ sed -i -e 's/-Werror//' "${WPA_SUPPLICANT_DIR}/Makefile"
 
 # There is currently a code path incorrectly identified as a use-after-free by GCC on sid
 # Make that just a warning rather than a compilation failure
-if ! [ -z `lsb_release -d | grep sid` ]; then
-    export CFLAGS="-MMD -O2 -Wall -Wno-error=use-after-free -g"
+if which lsb_release > /dev/null 2>&1; then
+    if ! [ -z `lsb_release -d | grep sid` ]; then
+        export CFLAGS="-MMD -O2 -Wall -Wno-error=use-after-free -g"
+    fi
 fi
 
 if ! ${MAKE} -C "${WPA_SUPPLICANT_DIR}" -j8 eapol_test 1>&2 || [ ! -e "${WPA_SUPPLICANT_DIR}/eapol_test" ]; then