Use autoreconf for exchange/merchant tarballs; add autoconf

This commit is contained in:
nocci 2025-12-12 11:43:25 +00:00
parent e1362911fd
commit b13de688ba

View file

@ -14,7 +14,7 @@ ARG MERCHANT_TARBALL_URL=
ARG LIBEUFIN_TARBALL_URL=
RUN apt-get update && apt-get install -y \
build-essential git automake libtool pkg-config \
build-essential git automake autoconf libtool pkg-config \
libgnutls28-dev libjansson-dev libsqlite3-dev libunistring-dev \
libcurl4-openssl-dev libmicrohttpd-dev libgcrypt20-dev libsodium-dev \
postgresql-client curl gnupg gettext gettext-base \
@ -88,13 +88,14 @@ RUN set -e; \
git clone --depth 1 --branch "${EXCHANGE_REF}" https://git.taler.net/exchange.git /src/exchange; \
EXCHANGE_DIR="/src/exchange"; \
fi; \
if [ ! -f "${EXCHANGE_DIR}/configure" ]; then \
if [ ! -d "${EXCHANGE_DIR}/.git" ]; then \
(cd "${EXCHANGE_DIR}" && git init >/dev/null 2>&1); \
fi; \
cd "${EXCHANGE_DIR}" && env GNUNET_PREFIX=/usr GIT_CONFIG_NOSYSTEM=1 GIT_DIR= GIT_WORK_TREE=. ./bootstrap; \
if [ "${EXCHANGE_TAR}" = "1" ]; then \
cd "${EXCHANGE_DIR}" && autoreconf -fi; \
else \
echo "Skipping bootstrap for Exchange (configure present)"; \
if [ ! -f "${EXCHANGE_DIR}/configure" ]; then \
cd "${EXCHANGE_DIR}" && env GNUNET_PREFIX=/usr ./bootstrap; \
else \
echo "Skipping bootstrap for Exchange (configure present)"; \
fi; \
fi; \
cd "${EXCHANGE_DIR}" && env GNUNET_PREFIX=/usr GIT_CONFIG_NOSYSTEM=1 GIT_DIR= GIT_WORK_TREE=. ./configure --prefix=/usr && make -j$(nproc) && make install; \
# Merchant
@ -118,13 +119,14 @@ RUN set -e; \
git clone --depth 1 --branch "${MERCHANT_REF}" https://git.taler.net/merchant.git /src/merchant; \
MERCHANT_DIR="/src/merchant"; \
fi; \
if [ ! -f "${MERCHANT_DIR}/configure" ]; then \
if [ ! -d "${MERCHANT_DIR}/.git" ]; then \
(cd "${MERCHANT_DIR}" && git init >/dev/null 2>&1); \
fi; \
cd "${MERCHANT_DIR}" && env GNUNET_PREFIX=/usr GIT_CONFIG_NOSYSTEM=1 GIT_DIR= GIT_WORK_TREE=. ./bootstrap; \
if [ "${MERCHANT_TAR}" = "1" ]; then \
cd "${MERCHANT_DIR}" && autoreconf -fi; \
else \
echo "Skipping bootstrap for Merchant (configure present)"; \
if [ ! -f "${MERCHANT_DIR}/configure" ]; then \
cd "${MERCHANT_DIR}" && env GNUNET_PREFIX=/usr ./bootstrap; \
else \
echo "Skipping bootstrap for Merchant (configure present)"; \
fi; \
fi; \
cd "${MERCHANT_DIR}" && env GNUNET_PREFIX=/usr GIT_CONFIG_NOSYSTEM=1 GIT_DIR= GIT_WORK_TREE=. ./configure --prefix=/usr && make -j$(nproc) && make install