Merge pull request #8491 from keymanapp/chore/linux/debian

chore(linux): Run and ignore autopkgtests on s390x
This commit is contained in:
Eberhard Beilharz 2023-03-24 10:01:04 +01:00 • committed by GitHub
commit 6e147daadd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View file

@ -1,7 +1,13 @@
keyman (16.0.139-3) unstable; urgency=medium
* debian/tests: Run autopkgtests on s390x but immediately return
-- Eberhard Beilharz <eb1@sil.org> Wed, 22 Mar 2023 19:25:02 +0100
keyman (16.0.139-2) unstable; urgency=medium
* Don't build on s390x because Keyman doesn't work on big-endian architectures
(upstream bug https://github.com/keymanapp/keyman/issues/5111)
(upstream bug https://github.com/keymanapp/keyman/issues/5111)
-- Eberhard Beilharz <eb1@sil.org> Mon, 20 Mar 2023 19:54:44 +0100

View file

@ -2,4 +2,4 @@ Tests: test-build
Depends: @,
build-essential,
pkg-config,
Architecture: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el riscv64
Architecture: any

View file

@ -9,6 +9,14 @@ WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd "$WORKDIR"
if [ "$(dpkg --print-architecture)" == "s390x" ]; then
# libkmnkbp doesn't support big endian architectures
# (https://github.com/keymanapp/keyman/issues/5111), so it isn't
# build on s390x and we can't run the tests. Simply ignore.
echo "Not supported on s390x: OK"
exit 0
fi
# Test all include files are available
cat <<EOF > keymantest.c
#include <keyman/keyboardprocessor.h>