Skip to content

Commit 7934d0d

Browse files
fix: remove autoreconf to prevent hang on ARM platforms (#121)
The autoreconf command hangs on ARM platforms due to a known bash/libtool/autoconf interaction issue. Since the curl tarball already includes a pre-generated configure script, autoreconf is unnecessary. - Remove autoreconf call from preinstall.sh - Remove autoreconf call from Dockerfile.native - Add check for missing configure script in preinstall.sh
1 parent e42ed5f commit 7934d0d

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Dockerfile.native

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ RUN cd /tmp && \
3232

3333
# Build curl
3434
WORKDIR /tmp/curl
35-
RUN autoreconf -fiv && \
36-
CFLAGS="$CURL_CFLAGS" LDFLAGS="$CURL_LDFLAGS" ./configure \
35+
# Skip autoreconf - the curl tarball includes a pre-generated configure script
36+
# Running autoreconf hangs on ARM platforms due to bash/libtool/autoconf issue
37+
RUN CFLAGS="$CURL_CFLAGS" LDFLAGS="$CURL_LDFLAGS" ./configure \
3738
--prefix /build/deps \
3839
--disable-alt-svc \
3940
--disable-ares \

scripts/preinstall.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@ fi
5050
echo "Building curl..."
5151
(
5252
cd "$CURL_DIR"
53-
# Only run autoreconf if configure doesn't exist or is older than configure.ac
54-
if [ ! -f configure ] || [ configure.ac -nt configure ]; then
55-
autoreconf -fiv
53+
# The curl tarball includes a pre-generated configure script.
54+
# We skip autoreconf as it hangs on ARM platforms due to a known
55+
# bash/libtool/autoconf interaction issue.
56+
if [ ! -f configure ]; then
57+
echo "Error: configure script not found in curl archive" >&2
58+
exit 1
5659
fi
5760
./configure \
5861
--prefix "$ARTIFACTS_DIR" \

0 commit comments

Comments
 (0)