]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
eapol_test-build.sh: Set permissive CFLAGs for FreeBSD build (#4352)
authorTerry Burton <tez@terryburton.co.uk>
Thu, 6 Jan 2022 20:08:23 +0000 (20:08 +0000)
committerGitHub <noreply@github.com>
Thu, 6 Jan 2022 20:08:23 +0000 (14:08 -0600)
... instead of patching the source.

scripts/ci/eapol_test-build.sh
scripts/ci/eapol_test/config_freebsd

index 0797d148539eae1e454cf752cbd85e6dba9eed10..03f756375332647b2f93927d45e6fe4df3124d58 100755 (executable)
@@ -89,23 +89,6 @@ if ! [ -e "${HOSTAPD_DIR}/.git" ] && ! git clone --branch "${HOSTAPD_GIT_TAG}" -
     exit 1
 fi
 
-#
-#  Required for LLVM builds until 2.10 which includes commit 12388313a0
-#
-patch -d "${TMP_BUILD_DIR}/hostapd" -p1 --ignore-whitespace <<'EOF'
---- a/src/radius/radius_client.c
-+++ b/src/radius/radius_client.c
-@@ -814,7 +814,7 @@ static void radius_client_receive(int sock, void *eloop_ctx, void *sock_ctx)
- {
-        struct radius_client_data *radius = eloop_ctx;
-        struct hostapd_radius_servers *conf = radius->conf;
--       RadiusType msg_type = (RadiusType) sock_ctx;
-+       RadiusType msg_type = (uintptr_t) sock_ctx;
-        int len, roundtrip;
-        unsigned char buf[3000];
-        struct radius_msg *msg;
-EOF
-
 cp -n "$BUILD_CONF_FILE" "$WPA_SUPPLICANT_DIR/.config"
 
 if ! ${MAKE} -C "${WPA_SUPPLICANT_DIR}" -j8 eapol_test 1>&2 || [ ! -e "${WPA_SUPPLICANT_DIR}/eapol_test" ]; then
index 5aa043b03ed4897770cf80e020529d03f913ff26..e7c90376d7992fcf00a2e0b2166e5f9b80507d1c 100644 (file)
@@ -9,7 +9,7 @@
 # be modified from here. In most cases, these lines should use += in order not
 # to override previous values of the variables.
 
-CFLAGS += -g3 -O0 -Wno-error=deprecated-declarations
+CFLAGS += -g3 -O0 -Wno-error=deprecated-declarations -Wno-error=void-pointer-to-enum-cast
 #CFLAGS += -I/usr/local/include/openssl
 #LIBS += -L/usr/local/lib