From: Alan T. DeKok Date: Sun, 27 Apr 2025 13:45:05 +0000 (-0400) Subject: build on systems without lsb_release X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9767cd45aab9178fc80e126be1928693afdd55a;p=thirdparty%2Ffreeradius-server.git build on systems without lsb_release --- diff --git a/scripts/ci/eapol_test-build.sh b/scripts/ci/eapol_test-build.sh index 76b5d5b803..5cbfd6c621 100755 --- a/scripts/ci/eapol_test-build.sh +++ b/scripts/ci/eapol_test-build.sh @@ -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