From c9767cd45aab9178fc80e126be1928693afdd55a Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Sun, 27 Apr 2025 09:45:05 -0400 Subject: [PATCH] build on systems without lsb_release --- scripts/ci/eapol_test-build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.47.3