5 if [ "$DEB_PACKAGE" ]; then
6 # We're not using sparse for debian packages, tests are skipped and
7 # all extra dependencies tracked by mk-build-deps.
11 # Build and install sparse.
13 # Explicitly disable sparse support for llvm because some travis
14 # environments claim to have LLVM (llvm-config exists and works) but
15 # linking against it fails.
16 # Disabling sqlite support because sindex build fails and we don't
17 # really need this utility being installed.
18 git clone git
://git.kernel.org
/pub
/scm
/devel
/sparse
/sparse.git
20 make -j4 HAVE_LLVM
= HAVE_SQLITE
= install
23 pip3
install --disable-pip-version-check --user flake8 hacking
24 pip3
install --user --upgrade docutils
25 pip3
install --user 'meson==0.47.1'
28 # Installing 32-bit libraries.
30 if [ -z "$GITHUB_WORKFLOW" ]; then
31 # 32-bit and 64-bit libunwind can not be installed at the same time.
32 # This will remove the 64-bit libunwind and install 32-bit version.
33 # GitHub Actions doesn't have 32-bit versions of these libs.
34 pkgs
=$pkgs" libunwind-dev:i386 libunbound-dev:i386"
37 sudo apt-get
install -y $pkgs
40 # IPv6 is supported by kernel but disabled in TravisCI images:
41 # https://github.com/travis-ci/travis-ci/issues/8891
42 # Enable it to avoid skipping of IPv6 related tests.
43 sudo sysctl
-w net.ipv6.conf.all.disable_ipv6
=0