Skip to content

Commit ba5e96e

Browse files
committed
CDRIVER-2230 End Official Solaris Support
1 parent e622b08 commit ba5e96e

File tree

10 files changed

+3
-94
lines changed

10 files changed

+3
-94
lines changed

.evergreen/compile-unix.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ CONFIGURE_SCRIPT="./autogen.sh"
148148

149149

150150
# --strip-components is an GNU tar extension. Check if the platform
151-
# (e.g. Solaris) has GNU tar installed as `gtar`, otherwise we assume to be on
151+
# has GNU tar installed as `gtar`, otherwise we assume to be on
152152
# platform that supports it
153153
# command -v returns success error code if found and prints the path to it
154154
if command -v gtar 2>/dev/null; then
@@ -224,15 +224,6 @@ case "$OS" in
224224
MAKEFLAGS="-j${cpus}"
225225
export LD_LIBRARY_PATH=".libs:src/libbson/.libs:$LD_LIBRARY_PATH"
226226
;;
227-
228-
sunos)
229-
PATH="/opt/mongodbtoolchain/bin:$PATH"
230-
if [ "$SASL" != "no" ]; then
231-
export SASL_CFLAGS="-I/opt/csw/include/"
232-
export SASL_LIBS="-L/opt/csw/lib/amd64/ -lsasl2"
233-
fi
234-
export LD_LIBRARY_PATH="/opt/csw/lib/amd64/:.libs:src/libbson/.libs:$LD_LIBRARY_PATH"
235-
;;
236227
esac
237228

238229
case "$CC" in

.evergreen/config.yml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ functions:
325325
working_dir: "mongoc"
326326
script: |
327327
sudo apt-get install -y awscli || true
328-
sudo /opt/csw/bin/pkgutil -y -i sasl_dev sasl_gssapi || true
329328
330329
"prepare kerberos" :
331330
- command: shell.exec
@@ -6817,45 +6816,6 @@ buildvariants:
68176816
- ".3.4 .nossl !.nosasl"
68186817
# Ubuntu16.04 only supports MongoDB 3.4+
68196818

6820-
# Interesting platforms
6821-
#- name: solaris
6822-
# display_name: "*Solaris (x86-64) (GCC 4.9.2)"
6823-
# expansions:
6824-
# CC: "gcc"
6825-
# MARCH: "x86_64"
6826-
# batchtime: 1440 # 1 day
6827-
# run_on:
6828-
# - solaris
6829-
# tasks:
6830-
# - "release-compile"
6831-
# - "debug-compile"
6832-
# - "debug-compile-nosasl-openssl"
6833-
# - ".debug-compile !.sspi .nossl"
6834-
# - ".authentication-tests .nosasl !.ssl !.sspi" # Revert me: CDRIVER-2000
6835-
# - ".authentication-tests .openssl"
6836-
# - ".latest .nossl" # No MongoDB SSL builds available for any version
6837-
# - ".3.4 .nossl" # No MongoDB SSL builds available for any version
6838-
# - ".3.2 .nossl !.nosasl"
6839-
# - ".3.0 .nossl !.nosasl"
6840-
# - ".2.6 .nossl !.nosasl"
6841-
#
6842-
#- name: solaris-32
6843-
# display_name: "Solaris (i386) (GCC 4.9.2)"
6844-
# expansions:
6845-
# CC: "gcc"
6846-
# MARCH: "i386"
6847-
# batchtime: 1440 # 1 day
6848-
# run_on:
6849-
# - solaris
6850-
# tasks:
6851-
# - "release-compile"
6852-
# - "debug-compile"
6853-
# - ".debug-compile !.sspi .nossl .nosasl"
6854-
# - ".authentication-tests .nosasl !.ssl"
6855-
# - ".latest .nossl .nosasl"
6856-
# - ".3.4 .nossl .nosasl"
6857-
# # We don't have i386 builds of OpenSSL or Cyrus SASL installed
6858-
68596819
- name: darwin
68606820
display_name: "*Darwin, macOS (Apple LLVM)"
68616821
expansions:

.evergreen/download-mongodb.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,6 @@ get_mongodb_download_url_for ()
6262
MONGODB_26="https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-${VERSION_26}.tgz"
6363
MONGODB_24="https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-${VERSION_24}.tgz"
6464
;;
65-
sunos*i86pc)
66-
MONGODB_LATEST="https://fastdl.mongodb.org/sunos5/mongodb-sunos5-x86_64-latest.tgz"
67-
MONGODB_34="https://fastdl.mongodb.org/sunos5/mongodb-sunos5-x86_64-${VERSION_34}.tgz"
68-
MONGODB_32="https://fastdl.mongodb.org/sunos5/mongodb-sunos5-x86_64-${VERSION_32}.tgz"
69-
MONGODB_30="https://fastdl.mongodb.org/sunos5/mongodb-sunos5-x86_64-${VERSION_30}.tgz"
70-
MONGODB_26="https://fastdl.mongodb.org/sunos5/mongodb-sunos5-x86_64-${VERSION_26}.tgz"
71-
MONGODB_24="https://fastdl.mongodb.org/sunos5/mongodb-sunos5-x86_64-${VERSION_24}.tgz"
72-
;;
7365
linux-rhel-7.2-s390x)
7466
MONGODB_LATEST="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel72-latest.tgz"
7567
MONGODB_34="http://downloads.10gen.com/linux/mongodb-linux-s390x-enterprise-rhel72-${VERSION_34}.tgz"

.evergreen/integration-tests.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,6 @@ case "$OS" in
7676
export MONGO_SHELL_CONNECTION_FLAGS="$MONGO_SHELL_CONNECTION_FLAGS --host localhost --ssl --sslCAFile=$MONGO_ORCHESTRATION_HOME/lib/ca.pem --sslPEMKeyFile=$MONGO_ORCHESTRATION_HOME/lib/client.pem"
7777
fi
7878
;;
79-
sunos*)
80-
# Can't make a virtual env here
81-
echo "{ \"releases\": { \"default\": \"`pwd`/mongodb/bin\" } }" > orchestration.config
82-
nohup mongo-orchestration -f orchestration.config -e default --socket-timeout-ms=60000 --bind=127.0.0.1 --enable-majority-read-concern start > $MONGO_ORCHESTRATION_HOME/out.log 2> $MONGO_ORCHESTRATION_HOME/err.log < /dev/null &
83-
if [ "$SSL" != "nossl" ]; then
84-
export MONGO_SHELL_CONNECTION_FLAGS="$MONGO_SHELL_CONNECTION_FLAGS --host localhost --ssl --sslCAFile=$MONGO_ORCHESTRATION_HOME/lib/ca.pem --sslPEMKeyFile=$MONGO_ORCHESTRATION_HOME/lib/client.pem"
85-
fi
86-
;;
8779
*)
8880
echo "{ \"releases\": { \"default\": \"`pwd`/mongodb/bin\" } }" > orchestration.config
8981
# Make sure MO is running latest version

.evergreen/run-auth-tests.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ case "$OS" in
3636
PING="./mongoc-ping"
3737
;;
3838

39-
sunos)
40-
PATH="/opt/mongodbtoolchain/bin:$PATH"
41-
export LD_LIBRARY_PATH="install-dir/lib:/opt/csw/lib/amd64/:.libs:src/libbson/.libs"
42-
PING="./mongoc-ping"
43-
;;
44-
4539
*)
4640
# This libtool wrapper script was built in a unique dir like
4741
# "/data/mci/998e754a0d1ed79b8bf733f405b87778/mongoc",
@@ -62,9 +56,6 @@ fi
6256
cp /etc/ca-certificates/extracted/tls-ca-bundle.pem install-dir/ssl/cert.pem || true
6357
# OpenSSL fips enabled path
6458
cp /etc/ca-certificates/extracted/tls-ca-bundle.pem install-dir/cert.pem || true
65-
# Solaris CSW OpenSSL install need to copy the OS trust store
66-
sudo mkdir -p /etc/opt/csw/ssl/ || true
67-
sudo cp /etc/ssl/cert.pem /etc/opt/csw/ssl/ || true
6859

6960
export PATH=install-dir/bin:$PATH
7061
openssl version || true

.evergreen/run-tests.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ case "$OS" in
5959
export DYLD_LIBRARY_PATH=".libs:src/libbson/.libs"
6060
;;
6161

62-
sunos)
63-
PATH="/opt/mongodbtoolchain/bin:$PATH"
64-
export LD_LIBRARY_PATH="/opt/csw/lib/amd64/:.libs:src/libbson/.libs"
65-
;;
66-
6762
*)
6863
#if test -f /tmp/drivers.keytab; then
6964
# See CDRIVER-2000
@@ -89,10 +84,6 @@ case "$OS" in
8984
test-libmongoc.exe -d -F test-results.json
9085
;;
9186

92-
sunos)
93-
gmake -o test-libmongoc test TEST_ARGS="--no-fork -d -F test-results.json"
94-
;;
95-
9687
*)
9788
make -o test-libmongoc test TEST_ARGS="--no-fork -d -F test-results.json"
9889
;;

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ operating systems and architectures.
2121
* FreeBSD (10 and newer)
2222
* Windows (Vista and newer)
2323
* macOS (10.8 and newer)
24-
* Solaris x86_64/SPARC (11 and newer)
2524
* ARM/SPARC/x86/x86_64
2625

2726

doc/installing.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ The MongoDB C Driver is `continuously tested <https://evergreen.mongodb.com/wate
1616
- Microsoft Windows Server 2008
1717
- RHEL 7.0, 7.1, 7.2
1818
- SUSE 12
19-
- smartOS (sunos / Solaris)
2019
- Ubuntu 12.04, 14.04, 16.04
2120
- Clang 3.4, 3.5, 3.7, 3.8
2221
- GCC 4.6, 4.8, 4.9, 5.3

src/mongoc/mongoc-openssl.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ _mongoc_openssl_init (void)
7373
_mongoc_openssl_thread_startup ();
7474
#endif
7575

76-
/*
77-
* Ensure we also load the ciphers now from the primary thread
78-
* or we can run into some weirdness on 64-bit Solaris 10 on
79-
* SPARC with openssl 0.9.7.
80-
*/
8176
ctx = SSL_CTX_new (SSLv23_method ());
8277
if (!ctx) {
8378
MONGOC_ERROR ("Failed to initialize OpenSSL.");

tests/test-mongoc-stream-tls-error.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,14 +336,13 @@ test_mongoc_tls_handshake_stall (void)
336336
void
337337
test_stream_tls_error_install (TestSuite *suite)
338338
{
339-
/* TLS stream doesn't detect hangup promptly on Solaris for some reason */
340339
#if !defined(MONGOC_ENABLE_SSL_SECURE_CHANNEL) && \
341340
!defined(MONGOC_ENABLE_SSL_LIBRESSL)
342-
#if !defined(__sun) && !defined(__APPLE__)
341+
#if !defined(__APPLE__)
343342
TestSuite_Add (suite, "/TLS/hangup", test_mongoc_tls_hangup);
344343
#endif
345344

346-
/* CDRIVER-2222 this should be reenabled for Apple Secure Channel too */
345+
/* CDRIVER-2222 this should be reenabled for Apple Secure Channel too */
347346
#if !defined(MONGOC_ENABLE_SSL_SECURE_CHANNEL)
348347
TestSuite_Add (
349348
suite, "/TLS/handshake_stall", test_mongoc_tls_handshake_stall);

0 commit comments

Comments
 (0)