Skip to content

Commit c4f135d

Browse files
committed
Merge branch 'CDRIVER-2230-end-solaris'
* CDRIVER-2230-end-solaris: CDRIVER-2230 End Official Solaris Support
2 parents ade806b + ba5e96e commit c4f135d

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
@@ -85,7 +85,7 @@ CONFIGURE_SCRIPT="./autogen.sh"
8585

8686

8787
# --strip-components is an GNU tar extension. Check if the platform
88-
# (e.g. Solaris) has GNU tar installed as `gtar`, otherwise we assume to be on
88+
# has GNU tar installed as `gtar`, otherwise we assume to be on
8989
# platform that supports it
9090
# command -v returns success error code if found and prints the path to it
9191
if command -v gtar 2>/dev/null; then
@@ -161,15 +161,6 @@ case "$OS" in
161161
MAKEFLAGS="-j${cpus}"
162162
export LD_LIBRARY_PATH=".libs:src/libbson/.libs:$LD_LIBRARY_PATH"
163163
;;
164-
165-
sunos)
166-
PATH="/opt/mongodbtoolchain/bin:$PATH"
167-
if [ "$SASL" != "no" ]; then
168-
export SASL_CFLAGS="-I/opt/csw/include/"
169-
export SASL_LIBS="-L/opt/csw/lib/amd64/ -lsasl2"
170-
fi
171-
export LD_LIBRARY_PATH="/opt/csw/lib/amd64/:.libs:src/libbson/.libs:$LD_LIBRARY_PATH"
172-
;;
173164
esac
174165

175166
case "$CC" in

.evergreen/config.yml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ functions:
334334
working_dir: "mongoc"
335335
script: |
336336
sudo apt-get install -y awscli || true
337-
sudo /opt/csw/bin/pkgutil -y -i sasl_dev sasl_gssapi || true
338337
339338
"prepare kerberos" :
340339
- command: shell.exec
@@ -6849,45 +6848,6 @@ buildvariants:
68496848
- ".3.4 .nossl !.nosasl"
68506849
# Ubuntu16.04 only supports MongoDB 3.4+
68516850

6852-
# Interesting platforms
6853-
#- name: solaris
6854-
# display_name: "*Solaris (x86-64) (GCC 4.9.2)"
6855-
# expansions:
6856-
# CC: "gcc"
6857-
# MARCH: "x86_64"
6858-
# batchtime: 1440 # 1 day
6859-
# run_on:
6860-
# - solaris
6861-
# tasks:
6862-
# - "release-compile"
6863-
# - "debug-compile"
6864-
# - "debug-compile-nosasl-openssl"
6865-
# - ".debug-compile !.sspi .nossl"
6866-
# - ".authentication-tests .nosasl !.ssl !.sspi" # Revert me: CDRIVER-2000
6867-
# - ".authentication-tests .openssl"
6868-
# - ".latest .nossl" # No MongoDB SSL builds available for any version
6869-
# - ".3.4 .nossl" # No MongoDB SSL builds available for any version
6870-
# - ".3.2 .nossl !.nosasl"
6871-
# - ".3.0 .nossl !.nosasl"
6872-
# - ".2.6 .nossl !.nosasl"
6873-
#
6874-
#- name: solaris-32
6875-
# display_name: "Solaris (i386) (GCC 4.9.2)"
6876-
# expansions:
6877-
# CC: "gcc"
6878-
# MARCH: "i386"
6879-
# batchtime: 1440 # 1 day
6880-
# run_on:
6881-
# - solaris
6882-
# tasks:
6883-
# - "release-compile"
6884-
# - "debug-compile"
6885-
# - ".debug-compile !.sspi .nossl .nosasl"
6886-
# - ".authentication-tests .nosasl !.ssl"
6887-
# - ".latest .nossl .nosasl"
6888-
# - ".3.4 .nossl .nosasl"
6889-
# # We don't have i386 builds of OpenSSL or Cyrus SASL installed
6890-
68916851
- name: darwin
68926852
display_name: "*Darwin, macOS (Apple LLVM)"
68936853
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
@@ -39,12 +39,6 @@ case "$OS" in
3939
PING="./mongoc-ping"
4040
;;
4141

42-
sunos)
43-
PATH="/opt/mongodbtoolchain/bin:$PATH"
44-
export LD_LIBRARY_PATH="install-dir/lib:/opt/csw/lib/amd64/:.libs:src/libbson/.libs"
45-
PING="./mongoc-ping"
46-
;;
47-
4842
*)
4943
# This libtool wrapper script was built in a unique dir like
5044
# "/data/mci/998e754a0d1ed79b8bf733f405b87778/mongoc",
@@ -65,9 +59,6 @@ fi
6559
cp /etc/ca-certificates/extracted/tls-ca-bundle.pem install-dir/ssl/cert.pem || true
6660
# OpenSSL fips enabled path
6761
cp /etc/ca-certificates/extracted/tls-ca-bundle.pem install-dir/cert.pem || true
68-
# Solaris CSW OpenSSL install need to copy the OS trust store
69-
sudo mkdir -p /etc/opt/csw/ssl/ || true
70-
sudo cp /etc/ssl/cert.pem /etc/opt/csw/ssl/ || true
7162

7263
export PATH=install-dir/bin:$PATH
7364
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)