openSUSE / catatonit

A container init that is so simple it's effectively brain-dead.
GNU General Public License v2.0
188 stars 18 forks source link

alpine build fails due to configure syntax error #26

Closed mgoltzsche closed 1 year ago

mgoltzsche commented 1 year ago

On alpine ./configure fails due to a syntax error:

./configure: line 3156: syntax error: unexpected word (expecting ")")

configure line 3153-3157:

fi

LT_PREREQ(2.4.2)
LT_INIT(disable-shared)

Dockerfile to reproduce:

FROM alpine:3.17
RUN apk add --update --no-cache git make gcc musl-dev autoconf automake
ARG CATATONIT_VERSION=99bb9048f532257f3a2c3856cfa19fe957ab6cec # v0.1.7+buildfix
RUN git clone https://github.com/openSUSE/catatonit.git /catatonit
WORKDIR /catatonit
RUN set -ex; \
    git checkout $CATATONIT_VERSION; \
    ./autogen.sh; \
    cat -n configure | head -n3157; \
    ./configure LDFLAGS="-static" --prefix=/ --bindir=/bin
mgoltzsche commented 1 year ago

Additionally installing libtool fixed the build.

This is related: https://github.com/Juniper/libslax/issues/37