From 382f2fc26b4cae5a8fcd85914f66db236b86c01d Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 21 Mar 2025 14:21:10 +0100 Subject: [PATCH] CI PCP: fix another breakage [Win] The development in PCP seem to be very turbulent these days and it breaks Win builds often so pin a commit in Windows CI until the situation calms down a bit. --- .github/scripts/install-common-deps.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/scripts/install-common-deps.sh b/.github/scripts/install-common-deps.sh index 63c9bdf6f..67d39a49f 100755 --- a/.github/scripts/install-common-deps.sh +++ b/.github/scripts/install-common-deps.sh @@ -108,11 +108,14 @@ install_pcp() { ( cd pcp # TODO TOREMOVE when not needed - sed "/int gettimeofday/i\\ + if is_win; then + git checkout 46341d6 + sed "/int gettimeofday/i\\ struct timezone;\\ struct timeval;\\ " libpcp/src/windows/pcp_gettimeofday.h > fixed - mv fixed libpcp/src/windows/pcp_gettimeofday.h + mv fixed libpcp/src/windows/pcp_gettimeofday.h + fi ./autogen.sh || true # autogen exits with 1 CFLAGS=-fPIC ./configure --disable-shared