diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2024-03-01 13:07:14 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2024-03-28 13:55:09 +0000 |
commit | 601b0f1b93f6406eb37dbc1f9dcbfbe2f9ac59bc (patch) | |
tree | d66a0e6c3c3de92868cb1104e3b1843b331d40b7 /tcwg-base | |
parent | 7c1fe7d55a4d2024bd4e2bf5c46d1fe2c315739e (diff) |
tcwg-base: Add symlinks with version numbers for autotools
So that we have autoconf-2.69 as a link to autoconf etc...
This would enable us to use Sourceware's autoregen.py which is the
script they use in their bot to detect commits which didn't correctly
run autotools.
We may want to use the same script in our precommit CI.
Change-Id: I5ab639858d9a90b2f70d42a3daca9dd9ac2ee873
Diffstat (limited to 'tcwg-base')
-rw-r--r-- | tcwg-base/Dockerfile.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tcwg-base/Dockerfile.in b/tcwg-base/Dockerfile.in index 0e4fd071..31b1a18d 100644 --- a/tcwg-base/Dockerfile.in +++ b/tcwg-base/Dockerfile.in @@ -351,7 +351,7 @@ RUN curl -f -o $(git --exec-path)/git-filter-repo \ # libtool-2.2.7a which is not available either. Build succeeds in # with --enable-maintainer-mode and the system versions of libtool and # gettext, so rely on them. -RUN autoconf_ver=autoconf-2.69 \ +RUN autoconf_version=2.69 autoconf_ver=autoconf-${autoconf_version} \ && cd /usr/local \ && wget https://ftp.gnu.org/gnu/autoconf/${autoconf_ver}.tar.xz \ && cd /tmp \ @@ -361,8 +361,12 @@ RUN autoconf_ver=autoconf-2.69 \ && cd build \ && ../configure --prefix=/usr/local/${autoconf_ver} \ && make install \ + && cd /usr/local/${autoconf_ver}/bin \ + && for f in autoconf autoheader autom4te autoreconf autoscan autoupdate ifnames; do \ + ln -sv $f $f-${autoconf_version} ; \ + done \ && rm -f /usr/local/${autoconf_ver}.tar.xz \ - && automake_ver=automake-1.15.1 \ + && automake_version=1.15.1 automake_ver=automake-${automake_version} \ && cd /usr/local \ && wget https://ftp.gnu.org/gnu/automake/${automake_ver}.tar.xz \ && cd /tmp \ @@ -372,6 +376,10 @@ RUN autoconf_ver=autoconf-2.69 \ && cd build \ && ../configure --prefix=/usr/local/${automake_ver} \ && make install \ + && cd /usr/local/${automake_ver}/bin \ + && for f in aclocal automake; do \ + ln -sv $f $f-${automake_version} ; \ + done \ && rm -f /usr/local/${automake_ver}.tar.xz \ && rm -rf /tmp/${autoconf_ver} /tmp/${automake_ver} |