mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 17:14:46 +02:00
648a10494f
In particular, this disables default +F for #__SYNC__ channels. The test suite has a "+F off" but when on 3 servers, each 75 clones are connecting, the MODE is too late and the join limit is already reached sometimes. Causing tests to fail.
69 lines
1.8 KiB
Python
Executable File
69 lines
1.8 KiB
Python
Executable File
#!/bin/bash
|
|
|
|
# Exit on any failure:
|
|
set -e
|
|
|
|
# Verbose:
|
|
set -x
|
|
|
|
if [ "$1" != "" ]; then
|
|
BUILDCONFIG="$*"
|
|
fi
|
|
|
|
if [[ "$OSTYPE" == "freebsd"* ]]; then
|
|
export MAKE="gmake -j4"
|
|
else
|
|
export MAKE="make -j4"
|
|
fi
|
|
|
|
# -DRAWCMDLOGGING was dropped, but can be useful for debugging
|
|
export CPPFLAGS="$CPPFLAGS -DFAKELAG_CONFIGURABLE -DNOREMOVETMP -DTESTSUITE"
|
|
|
|
# !! skipped for now: extras/build-tests/nix/select-config $BUILDCONFIG !!
|
|
# !! temporary use this:
|
|
cp extras/build-tests/nix/configs/default ./config.settings
|
|
|
|
# Debian 8 workaround:
|
|
if lsb_release -av 2>&1|egrep 'Debian.*jessie'; then
|
|
echo "Disabling ASan due to false positives on deb8"
|
|
echo 'EXTRAPARA="--enable-werror --disable-asan"' >>config.settings
|
|
fi
|
|
if uname -s|grep -i freebsd; then
|
|
echo "Disabling ASan on FreeBSD due to 100% CPU loop in OpenSSL initialization routine"
|
|
echo 'EXTRAPARA="--enable-werror --disable-asan"' >>config.settings
|
|
fi
|
|
|
|
# If SSLDIR is set the environment, this overrides config.settings
|
|
# Used for example in the openssl3 build tests.
|
|
if [ "$SSLDIR" != "" ]; then
|
|
echo 'SSLDIR="'"$SSLDIR"'"' >>config.settings
|
|
fi
|
|
|
|
# Read config.settings, this makes a couple of variables available to us.
|
|
. ./config.settings
|
|
if [ "$SSLDIR" != "" ]; then
|
|
# In case we build local openssl/libressl
|
|
export LD_LIBRARY_PATH="$SSLDIR/lib"
|
|
fi
|
|
./Config -quick || (tail -n 5000 config.log; exit 1)
|
|
$MAKE
|
|
yes ''|$MAKE pem
|
|
$MAKE || exit 1
|
|
$MAKE install || exit 1
|
|
./unrealircd module install third/dumpcmds || exit 1
|
|
|
|
set +x
|
|
echo ""
|
|
echo "***********************************************"
|
|
echo "UnrealIRCd build & install successful."
|
|
echo "***********************************************"
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
otool -L ~/unrealircd/bin/unrealircd
|
|
else
|
|
ldd ~/unrealircd/bin/unrealircd
|
|
fi
|
|
|
|
# This was only the 'building' part, so give a hint...
|
|
echo "You can now run extras/build-tests/nix/run-tests"
|