diff options
author | Dmitry V. Levin <ldv@strace.io> | 2024-10-14 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-10-23 08:00:00 +0000 |
commit | 613e59dca7034168bab4b9f6a89dd864957f0426 (patch) | |
tree | 70111f765659715d29c91421ed06d0847d2c496a /ci | |
parent | 4aa31119988c4dcceaa9edce74121d2c057ad1f8 (diff) | |
download | pam-613e59dca7034168bab4b9f6a89dd864957f0426.tar.gz pam-613e59dca7034168bab4b9f6a89dd864957f0426.tar.bz2 pam-613e59dca7034168bab4b9f6a89dd864957f0426.zip |
build: drop autotools support
There is no point in supporting two different build systems.
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/autotools-build.sh | 111 | ||||
-rwxr-xr-x | ci/meson-build.sh | 53 |
2 files changed, 0 insertions, 164 deletions
diff --git a/ci/autotools-build.sh b/ci/autotools-build.sh deleted file mode 100755 index 019c8529..00000000 --- a/ci/autotools-build.sh +++ /dev/null @@ -1,111 +0,0 @@ -#!/bin/sh -ex -# -# Copyright (c) 2018-2019 The strace developers. -# All rights reserved. -# -# SPDX-License-Identifier: GPL-2.0-or-later - -DISTCHECK_CONFIGURE_FLAGS='--disable-dependency-tracking --enable-Werror --enable-lastlog' -export DISTCHECK_CONFIGURE_FLAGS - -case "${TARGET-}" in - x32) - CC="$CC -mx32" - ;; - x86) - CC="$CC -m32" - DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --build=i686-pc-linux-gnu --target=i686-pc-linux-gnu" - ;; -esac - -CPPFLAGS= - -case "${CHECK-}" in - coverage) - DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --enable-code-coverage" - CFLAGS='-g -O0' - CFLAGS_FOR_BUILD="$CFLAGS" - export CFLAGS CFLAGS_FOR_BUILD - ;; - valgrind) - DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --enable-valgrind" - ;; -esac - -case "${VENDORDIR-}" in - */*) - DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --enable-vendordir=$VENDORDIR" - ;; -esac - -case "${USE_OPENSSL-}" in - yes) - DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --enable-openssl" - ;; -esac - -case "${ENABLE_DEBUG-}" in - yes) - DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --enable-debug" - ;; -esac - -echo 'BEGIN OF BUILD ENVIRONMENT INFORMATION' -uname -a |head -1 -libc="$(ldd /bin/sh |sed -n 's|^[^/]*\(/[^ ]*/libc\.so[^ ]*\).*|\1|p' |head -1)" -$libc |head -1 -$CC --version |head -1 -make --version |head -1 -autoconf --version |head -1 -automake --version |head -1 -libtoolize --version |head -1 -kver="$(printf '%s\n%s\n' '#include <linux/version.h>' 'LINUX_VERSION_CODE' | $CC $CPPFLAGS -E -P -)" -printf 'kernel-headers %s.%s.%s\n' $((kver/65536)) $((kver/256%256)) $((kver%256)) -echo 'END OF BUILD ENVIRONMENT INFORMATION' - -export CC_FOR_BUILD="$CC" - -./autogen.sh -./configure $DISTCHECK_CONFIGURE_FLAGS \ - || { - rc=$? - cat config.log - echo "$CC -dumpspecs follows" - $CC -dumpspecs - exit $rc -} - -j=-j`nproc` || j= - -case "${CHECK-}" in - coverage) - make -k $j all VERBOSE=${VERBOSE-} - make -k $j check VERBOSE=${VERBOSE-} - codecov --gcov-args=-abcp ||: - echo 'BEGIN OF TEST SUITE INFORMATION' - tail -n 99999 -- tests*/test-suite.log - echo 'END OF TEST SUITE INFORMATION' - ;; - valgrind) - make -k $j all VERBOSE=${VERBOSE-} - rc=$? - for n in ${VALGRIND_TOOLS:-memcheck helgrind drd}; do - make -k $j -C "${VALGRIND_TESTDIR:-.}" \ - check-valgrind-$n VERBOSE=${VERBOSE-} || - rc=$? - done - echo 'BEGIN OF TEST SUITE INFORMATION' - tail -n 99999 -- tests*/test-suite*.log || - rc=$? - echo 'END OF TEST SUITE INFORMATION' - [ "$rc" -eq 0 ] - ;; - *) - make -k $j distcheck VERBOSE=${VERBOSE-} - ;; -esac - -if git status --porcelain |grep '^?'; then - echo >&2 'git status reported untracked files' - exit 1 -fi diff --git a/ci/meson-build.sh b/ci/meson-build.sh deleted file mode 100755 index c50bb7f2..00000000 --- a/ci/meson-build.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh -ex -# -# Copyright (c) 2018-2024 The strace developers. -# All rights reserved. -# -# SPDX-License-Identifier: GPL-2.0-or-later - -opts='-Doptimization=2 -Dwerror=true -Dpam_lastlog=enabled' - -case "${VENDORDIR-}" in - */*) - opts="$opts -Dvendordir=$VENDORDIR" - ;; -esac - -case "${USE_OPENSSL-}" in - yes) - opts="$opts -Dopenssl=enabled" - ;; -esac - -case "${ENABLE_DEBUG-}" in - yes) - opts="$opts -Dpam-debug=true" - ;; -esac - -echo 'BEGIN OF BUILD ENVIRONMENT INFORMATION' -uname -a |head -1 -libc="$(ldd /bin/sh |sed -n 's|^[^/]*\(/[^ ]*/libc\.so[^ ]*\).*|\1|p' |head -1)" -$libc |head -1 -$CC --version |head -1 -meson --version |head -1 -ninja --version |head -1 -kver="$(printf '%s\n%s\n' '#include <linux/version.h>' 'LINUX_VERSION_CODE' | $CC -E -P -)" -printf 'kernel-headers %s.%s.%s\n' $((kver/65536)) $((kver/256%256)) $((kver%256)) -echo 'END OF BUILD ENVIRONMENT INFORMATION' - -mkdir build -meson setup $opts build - -# If "meson dist" supported -v option, it could be used here -# instead of all subsequent individual meson commands. - -meson compile -v -C build -mkdir build/destdir -DESTDIR=$(pwd)/build/destdir meson install -C build -meson test -v -C build - -if git status --porcelain |grep '^?'; then - echo >&2 'git status reported untracked files' - exit 1 -fi |