mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 21:57:48 +00:00
5411e69b91
To avoid proliferation of versions, I suggest the following policy: the oldest LTS release still receiving maintenance updates + the most recent release for distributions that offer LTS releases. For CentOS, this means CentOS7 and CentOS Stream 9 (since CentOS are all "long-term support", this is just the oldest and the newest among currently supported). For Ubuntu, this means Ubuntu 18.04 (previous LTS are in "security fixes only" mode) and Ubuntu 21.10. Recent Ubuntu attempts to be interactive during the configuration of tzdata, required some additional setup. In the common installation script, the logic for handling a configured/built local directory breaks if `gmake` is detected as the make binary; `make distclean` then fails inside the container because not all systems have `gmake` symlink. Remove that attempt of a workaround completely, just require that the host directory is clean. Signed-off-by: Alexey Neyman <stilor@att.net>
28 lines
833 B
Bash
Executable File
28 lines
833 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
# Mounted directory may already be configured. Trying to install from
|
|
# such directory would cause a failure in the container due to mismatch in
|
|
# command names/paths detected by configure on the host.
|
|
if [ -e /crosstool-ng/Makefile \
|
|
-o -e /crosstool-ng/.build \
|
|
-o -e /crosstool-ng/.build-all \
|
|
-o -e /crosstool-ng/config.status ]; then
|
|
echo "ERROR :: The host directory must not be configured/built. Run 'git clean -fxd' before" >&2
|
|
echo "ERROR :: installing crosstool-NG in the container." >&2
|
|
exit 1
|
|
fi
|
|
tar cf - -C / \
|
|
--exclude=crosstool-ng/.git \
|
|
--exclude=crosstool-ng/testing/docker \
|
|
crosstool-ng | \
|
|
tar xf -
|
|
cd crosstool-ng
|
|
./bootstrap
|
|
cd ../work
|
|
~/crosstool-ng/configure --prefix=/opt/ctng
|
|
make
|
|
make install
|
|
cd ..
|
|
rm -rf crosstool-ng
|