From f1ee78acab192a741fac3e3615ab5922f54b6c66 Mon Sep 17 00:00:00 2001 From: gangatp Date: Mon, 10 Nov 2025 18:38:46 +0530 Subject: [PATCH 1/2] fix github actions build --- Build/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Build/Dockerfile b/Build/Dockerfile index 2387b618..30a67bf2 100644 --- a/Build/Dockerfile +++ b/Build/Dockerfile @@ -29,8 +29,10 @@ RUN dnf -y module enable python39 && \ # RUN dnf -y install libicu libicu-devel # Free Pascal 3.0.4 -RUN (cd /opt && curl -O -L 'http://downloads.sourceforge.net/project/freepascal/Linux/3.0.4/fpc-3.0.4-1.x86_64.rpm' \ - && rpm -i fpc-3.0.4-1.x86_64.rpm) +RUN cd /opt && \ + curl -L -o fpc-3.0.4-1.x86_64.rpm 'https://sourceforge.net/projects/freepascal/files/Linux/3.0.4/fpc-3.0.4-1.x86_64.rpm/download' && \ + rpm -i fpc-3.0.4-1.x86_64.rpm && \ + rm -f fpc-3.0.4-1.x86_64.rpm # Go RUN (cd /opt && curl -O -L https://golang.org/dl/go1.17.2.linux-amd64.tar.gz && tar zxvf go1.17.2.linux-amd64.tar.gz) From ee573689406f671cd5439afa13562178c6829e7f Mon Sep 17 00:00:00 2001 From: gangatp Date: Mon, 10 Nov 2025 18:57:32 +0530 Subject: [PATCH 2/2] fix github actions build --- Build/Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Build/Dockerfile b/Build/Dockerfile index 30a67bf2..395aecbd 100644 --- a/Build/Dockerfile +++ b/Build/Dockerfile @@ -30,7 +30,17 @@ RUN dnf -y module enable python39 && \ # Free Pascal 3.0.4 RUN cd /opt && \ - curl -L -o fpc-3.0.4-1.x86_64.rpm 'https://sourceforge.net/projects/freepascal/files/Linux/3.0.4/fpc-3.0.4-1.x86_64.rpm/download' && \ + curl -L -H "Accept: */*" -H "Accept-Language: en-US,en;q=0.9" \ + -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36" \ + -o fpc-3.0.4-1.x86_64.rpm \ + 'https://sourceforge.net/projects/freepascal/files/Linux/3.0.4/fpc-3.0.4-1.x86_64.rpm/download' && \ + FILE_SIZE=$(stat -c%s fpc-3.0.4-1.x86_64.rpm 2>/dev/null || echo 0) && \ + if [ "$FILE_SIZE" -lt 1000000 ]; then \ + echo "Downloaded file too small ($FILE_SIZE bytes), trying alternative URL..."; \ + rm -f fpc-3.0.4-1.x86_64.rpm; \ + curl -L -f -o fpc-3.0.4-1.x86_64.rpm 'http://downloads.sourceforge.net/project/freepascal/Linux/3.0.4/fpc-3.0.4-1.x86_64.rpm'; \ + fi && \ + [ $(stat -c%s fpc-3.0.4-1.x86_64.rpm) -gt 1000000 ] && \ rpm -i fpc-3.0.4-1.x86_64.rpm && \ rm -f fpc-3.0.4-1.x86_64.rpm