Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@ set -ex
thisdir="$(dirname "$0")"
cd "$thisdir"/..

make -j8 CFLAGS="-Werror -Wall"
source /etc/os-release
CFLAGS="-Wall"
if [ "$ID" != "alpine" ]; then
CFLAGS="$CFLAGS -Werror"
# on alpine, with lib musl, there are not re-entrant random functions e.g. srand48_r, lrand48_r see CFE-4654
fi
export CFLAGS
make -j8
7 changes: 6 additions & 1 deletion ci/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ thisdir="$(dirname "$0")"
cd "$thisdir"/..
OPTS="--enable-debug"

if [ -n "$TERMUX_VERSION" ]; then
source /etc/os-release
if [ "$ID" = "alpine" ]; then
OPTS="" # we don't want --enable-debug so that libpromises/dbm_test_api is not built due to lack of srand48_r() and friends on alpine linux libmusl
fi

if [ -n "$TERMUX_VERSION" ] || [ "$ID" = "alpine" ]; then
OPTS="$OPTS --without-pam"
fi

Expand Down
3 changes: 3 additions & 0 deletions ci/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ if [ -f /etc/os-release ]; then
echo "Unsupported version of redhat for $0"
exit 1
fi
elif [ "$ID" = "alpine" ]; then
$GAINROOT apk update
$GAINROOT apk add alpine-sdk lmdb-dev openssl-dev bison flex-dev acl-dev pcre2-dev autoconf automake libtool git python3 gdb librsync-dev
Comment on lines +75 to +77
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@craigcomstock looks like this is not indented to the right level?

elif [ "$ID" = "debian" ] || [[ "$ID_LIKE" =~ "debian" ]]; then
$GAINROOT apt update --yes
$GAINROOT apt install --yes build-essential git libtool autoconf automake bison flex libssl-dev libpcre2-dev libbison-dev libacl1 libacl1-dev lmdb-utils liblmdb-dev libpam0g-dev libtool libyaml-dev libxml2-dev librsync-dev
Expand Down
Loading