i am trying to use docker to build some tools that make use of autoconf/automake with an alpine:edge base image. When the source code provides a configure command, everything works fine, but when this script must be generated first, using autoreconf -vfi, docker seems to hang on : checking that generated files are newer than configure....
It happens on both:
docker Version 17.09.0-ce-mac35 (19611) Channel: stable a98b7c1b7c on Mac OS Sierra 10.12.6
docker Version 17.03.1-ce, build c6d412e on Debian 8.7.
An example of Dockerfile that exhibits the problem (on my computers):
I want to use autoconf on another project using alpine:edge as well and it hangs at that same checking that generated files are newer than configure.... Does someone know what is going on? Any help is appreciated.
That is interesting. This unfortunately is not an option for me as I depend on a package that is only available for edge. Autoconf hasn’t changed for years and all repo versions use 2.69. My guess is that it is not because of autoconf. Might something else hang here? (e.g. M4)
Can confirm that using alpine 3.6 (not the edge version) works… However, this issue also persists in the newly released alpine 3.7… I think the issues stems from one of Alpine’s packages.
Autoconf hasn’t really changed so I can’t exactly pin down the cause here.
Just stumbled onto this issue while trying to bootstrap Alpine from a 3.7 Docker container. When abuild runs configure for pkgconf it hangs for what seems like eons. Looking into it, I found that the configure script fails when Bash is installed, for some weird reason. Simply uninstalling Bash fixed this for me.
A rather horrible workaround for situations where libtool is required (and therefore bash arrives as a dependency) is to symlink /bin/bash to the busybox-provided /bin/sh.
This should be fixed now. It was a combination of a bug in musl libc and bash. Fixing either fixes the issue and musl libc bug was fixed and the bash issue was reported