From bcaea5c99420922ee71a78e84bbfbc23eed70c0c Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Thu, 27 Aug 2020 12:47:57 +0200 Subject: [PATCH] Enable binfmts support profile before using it, this fixes the autopkgtestsuite --- debian/changelog | 3 ++- debian/qualify-clang.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index be4dca0d..72296094 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ -llvm-toolchain-11 (1:11.0.0~+rc2-2) UNRELEASED; urgency=medium +llvm-toolchain-11 (1:11.0.0~+rc2-2) unstable; urgency=medium [ Gianfranco Costamagna ] * Disable ocaml support on i386, not reasonable to support it there (specially for Ubuntu) + * Enable binfmt support before using it in tests, to fix them [ Sylvestre Ledru ] * Also link against -latomic on mipsel to fix diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 81685161..95007aa7 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -295,6 +295,7 @@ clang-$VERSION -O3 -emit-llvm foo.c -c -o foo.bc chmod +x foo.bc # only run if the binfmt is installed correctly if /usr/sbin/update-binfmts --display llvm-$VERSION-runtime.binfmt &> /dev/null; then + /usr/sbin/update-binfmts --enable llvm-$VERSION-runtime.binfmt if ! ./foo.bc|grep -q "lli foo"; then echo "executing ./foo.bc failed" ./foo.bc