[LTP] [PATCH 8/9] ci/debian: Allow to install packages only for docparse

Petr Vorel
2024-01-04T20:47:53Z

Will be used in next commit.

NOTE: Add libwww-perl as explicit dependency (pulled by Debian, but not
by current Ubuntu).

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
ci/debian.sh | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/ci/debian.sh b/ci/debian.sh
index 96b55a35b..1002bf17a 100755
--- a/ci/debian.sh
+++ b/ci/debian.sh
@@ -1,6 +1,6 @@
#!/bin/sh -eux
# SPDX-License-Identifier: GPL-2.0-or-later
-# Copyright (c) 2018-2021 Petr Vorel <pvorel@suse.cz>
+# Copyright (c) 2018-2024 Petr Vorel <pvorel@suse.cz>

# workaround for missing oldstable-updates repository
# W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/main/binary-amd64/Packages
@@ -13,6 +13,20 @@ export DEBIAN_FRONTEND="noninteractive"

apt="apt install -y --no-install-recommends"

+# see .github/workflows/metadata.yml
+if [ "${PACKAGES_FOR_DOCPARSE_ONLY:-}" ]; then
+ $apt \
+ asciidoctor \
+ autoconf \
+ automake \
+ gcc \
+ libjson-perl \
+ libwww-perl \
+ ruby-asciidoctor-pdf
+
+ return 0
+fi
+
$apt \
acl-dev \
asciidoc \
@@ -35,6 +49,7 @@ $apt \
libc6 \
libc6-dev \
libjson-perl \
+ libwww-perl \
libkeyutils-dev \
libkeyutils1 \
libmnl-dev \
--
2.43.0