Skip to content

Commit b15c29c

Browse files
Merge #838
838: Re-enable solaris targets. r=Emilgardis a=Alexhuszagh Fixes the solaris targets, and re-enables them in CI. Related to #534. Co-authored-by: Alex Huszagh <[email protected]>
2 parents cc61dc8 + c746b35 commit b15c29c

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,8 @@ jobs:
189189
- { target: i686-unknown-freebsd, os: ubuntu-latest, dylib: 1, std: 1 }
190190
- { target: x86_64-unknown-freebsd, os: ubuntu-latest, dylib: 1, std: 1 }
191191
- { target: x86_64-unknown-netbsd, os: ubuntu-latest, cpp: 1, dylib: 1, std: 1 }
192-
# Disabled, see #534
193-
#-{ target: sparcv9-sun-solaris, os: ubuntu-latest, cpp: 1, dylib: 1, std: 1 }
194-
#-{ target: x86_64-sun-solaris, os: ubuntu-latest, cpp: 1, dylib: 1, std: 1 }
192+
- { target: sparcv9-sun-solaris, os: ubuntu-latest, cpp: 1, dylib: 1, std: 1 }
193+
- { target: x86_64-sun-solaris, os: ubuntu-latest, cpp: 1, dylib: 1, std: 1 }
195194
- { target: thumbv6m-none-eabi, os: ubuntu-latest, std: 1 }
196195
- { target: thumbv7em-none-eabi, os: ubuntu-latest, std: 1 }
197196
- { target: thumbv7em-none-eabihf, os: ubuntu-latest, std: 1 }

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
3131

3232
### Changed
3333

34+
- #838 - re-enabled the solaris targets.
3435
- #807 - update Qemu to 6.1.0 on images using Ubuntu 18.04+ with python3.6+.
3536
- #775 - forward Cargo exit code to host
3637
- #762 - re-enabled `x86_64-unknown-dragonfly` target.

docker/solaris.sh

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ main() {
1010
local arch="${1}"
1111

1212
local binutils=2.28.1 \
13-
gcc=6.4.0 \
13+
gcc=8.4.0 \
1414
target="${arch}-sun-solaris2.10"
1515

1616
install_packages bzip2 \
@@ -58,18 +58,21 @@ main() {
5858
add-apt-repository -y 'deb http://apt.dilos.org/dilos dilos2-testing main'
5959
dpkg --add-architecture "${apt_arch}"
6060
apt-get update
61-
apt-cache depends --recurse --no-replaces \
62-
"libc:${apt_arch}" \
63-
"libdl-dev:${apt_arch}" \
64-
"libm-dev:${apt_arch}" \
65-
"libnsl-dev:${apt_arch}" \
66-
"libpthread-dev:${apt_arch}" \
67-
"libresolv-dev:${apt_arch}" \
68-
"librt:${apt_arch}" \
69-
"libsocket-dev:${apt_arch}" \
70-
"system-crt:${apt_arch}" \
71-
"system-header:${apt_arch}" \
72-
| grep "^\w" | xargs apt-get download
61+
# shellcheck disable=SC2046
62+
apt-get download $(apt-cache depends --recurse --no-replaces \
63+
"libc:${apt_arch}" \
64+
"liblgrp-dev:${apt_arch}" \
65+
"liblgrp:${apt_arch}" \
66+
"libm-dev:${apt_arch}" \
67+
"libpthread:${apt_arch}" \
68+
"libresolv:${apt_arch}" \
69+
"librt:${apt_arch}" \
70+
"libsendfile-dev:${apt_arch}" \
71+
"libsendfile:${apt_arch}" \
72+
"libsocket:${apt_arch}" \
73+
"system-crt:${apt_arch}" \
74+
"system-header:${apt_arch}" \
75+
| grep "^\w")
7376

7477
for deb in *"${apt_arch}.deb"; do
7578
dpkg -x "${deb}" "${td}/solaris"
@@ -102,6 +105,8 @@ EOF
102105
ln -s usr/include "${destdir}/sys-include"
103106
ln -s usr/include "${destdir}/include"
104107

108+
# note: solaris2.10 is obsolete, so we can't upgrade to GCC 10 till then.
109+
# for gcc 9.4.0, need `--enable-obsolete`
105110
cd gcc-build
106111
../gcc/configure \
107112
--disable-libada \

0 commit comments

Comments
 (0)