From be156e7a144233bd4833b971ee0c756d3720993c Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Mon, 14 Nov 2022 11:59:57 +0100 Subject: [PATCH] tests/chrootless: skip if libpam-runtime (<= 1.5.2-5) --- tests/chrootless | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/chrootless b/tests/chrootless index cead669..8f86992 100644 --- a/tests/chrootless +++ b/tests/chrootless @@ -2,6 +2,10 @@ set -eu export LC_ALL=C.UTF-8 export SOURCE_DATE_EPOCH={{ SOURCE_DATE_EPOCH }} +if dpkg --compare-versions "$(dpkg-query -W -f='${Version}' libpam-runtime)" le 1.5.2-5; then + # https://bugs.debian.org/1022952 + exit 0 +fi trap "rm -f /tmp/chrootless.tar /tmp/root.tar" EXIT INT TERM # we need --hook-dir=./hooks/merged-usr because usrmerge does not understand # DPKG_ROOT