From 99b27a1f2e82b94606a7202caf1cb84f3642188b Mon Sep 17 00:00:00 2001 From: Mikhail Efimov Date: Fri, 11 Oct 2024 14:29:12 +0300 Subject: [PATCH] Autoconf shell requirements fix Problem with autoconf "Rebuilding configure script using /usr/local/bin/autoconf: This script requires a shell more modern than all". in some contexts is fixed with some 'standard' technique. See https://stackoverflow.com/questions/161064/autoconf-using-sh-i-need-shell-bash-how-do-i-force-autoconf-to-use-bash/161128#161128. --- autoconf/Dockerfile | 2 +- autoconf/entry.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/autoconf/Dockerfile b/autoconf/Dockerfile index 1108f4c..be4dfd4 100644 --- a/autoconf/Dockerfile +++ b/autoconf/Dockerfile @@ -5,7 +5,7 @@ ARG AUTOCONF_ARCHIVE_VERSION="2023.02.20" ARG AUTOMAKE_VERSION="1.16.5" LABEL org.opencontainers.image.source="https://github.com/python/cpython-devcontainers" -LABEL org.opencontainers.image.base.name="docker.io/library/alpine:3.19" +LABEL org.opencontainers.image.base.name="docker.io/library/ubuntu:22.04" LABEL org.opencontainers.image.authors="Donghee Na" LABEL org.opencontainers.image.title="GNU Autoconf ${AUTOCONF_VERSION} container for CPython" LABEL org.opencontainers.image.description="Container image with GNU Autoconf ${AUTOCONF_VERSION}, GNU Automake ${AUTOMAKE_VERSION}, and autoconf-archive ${AUTOCONF_ARCHIVE_VERSION} for generating CPython's configure script." diff --git a/autoconf/entry.sh b/autoconf/entry.sh index 81c50ed..4069e46 100755 --- a/autoconf/entry.sh +++ b/autoconf/entry.sh @@ -1,6 +1,8 @@ #!/bin/sh set -e +export CONFIG_SHELL="/usr/bin/bash" + BIN=/usr/local/bin AUTOCONF=$BIN/autoconf AUTORECONF=$BIN/autoreconf