2018-08-03 16:39:04 +00:00
|
|
|
#!/bin/bash
|
2018-01-19 21:33:48 +00:00
|
|
|
|
|
|
|
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd ../.. && pwd)
|
|
|
|
|
2018-01-20 02:35:16 +00:00
|
|
|
# also possible: DIST=bionic DIST=testing
|
2018-05-05 12:31:47 +00:00
|
|
|
export DIST=${DIST=unstable}
|
2018-01-19 21:33:48 +00:00
|
|
|
|
|
|
|
cd $ROOT_DIR
|
|
|
|
. $ROOT_DIR/debian/.pbuilderrc
|
|
|
|
if [[ -n "$FORCE_PBUILDER_CREATE" || ! -e "$BASETGZ" ]] ; then
|
|
|
|
sudo --preserve-env pbuilder create --configfile $ROOT_DIR/debian/.pbuilderrc $PBUILDER_OPT
|
|
|
|
fi
|
|
|
|
|
|
|
|
env TEST_RUN=1 \
|
|
|
|
`# Skip tests:` \
|
|
|
|
`# 00281 requires internal compiler` \
|
|
|
|
`# 00416 requires patched poco from contrib/` \
|
2018-02-13 18:00:06 +00:00
|
|
|
TEST_OPT="--skip long compile 00416 $TEST_OPT" \
|
2018-01-19 21:33:48 +00:00
|
|
|
TEST_TRUE=false \
|
2018-01-20 02:35:16 +00:00
|
|
|
DH_VERBOSE=1 \
|
2018-08-27 14:39:20 +00:00
|
|
|
CMAKE_FLAGS="-DUNBUNDLED=1 -DUSE_STATIC_LIBRARIES=0 $CMAKE_FLAGS" \
|
2018-01-19 21:33:48 +00:00
|
|
|
`# Use all possible contrib libs from system` \
|
|
|
|
`# psmisc - killall` \
|
|
|
|
`# gdb - symbol test in pbuilder` \
|
2020-06-29 20:07:45 +00:00
|
|
|
EXTRAPACKAGES="psmisc libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libboost-regex-dev libboost-iostreams-dev zlib1g-dev liblz4-dev libdouble-conversion-dev libsparsehash-dev librdkafka-dev libpoco-dev unixodbc-dev libsparsehash-dev libgoogle-perftools-dev libzstd-dev libre2-dev libunwind-dev googletest libcctz-dev libcapnp-dev libjemalloc-dev libssl-dev libcurl4-openssl-dev libunwind-dev libgsasl7-dev libxml2-dev libbrotli-dev libhyperscan-dev rapidjson-dev $EXTRAPACKAGES" \
|
2018-01-26 09:03:38 +00:00
|
|
|
pdebuild --configfile $ROOT_DIR/debian/.pbuilderrc $PDEBUILD_OPT
|