From 981b360e119ebd0443ec71f580fa2a6ae4c1dab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ru=C5=BEi=C4=8Dka?= Date: Wed, 12 Nov 2025 13:47:40 +0100 Subject: [PATCH] distro: update to latest apkg compat level 6 Modify scripts/make-archive.sh to output YAML only to stdout as required by latest apkg compat level 6. All stdout was redirected to stderr. --- distro/config/apkg.toml | 2 +- scripts/make_dev_archive.sh | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/distro/config/apkg.toml b/distro/config/apkg.toml index 1d3cd7236..e08582906 100644 --- a/distro/config/apkg.toml +++ b/distro/config/apkg.toml @@ -9,7 +9,7 @@ archive_url = "https://secure.nic.cz/files/knot-dns/knot-{{ version }}.tar.xz" signature_url = "https://secure.nic.cz/files/knot-dns/knot-{{ version }}.tar.xz.asc" [apkg] -compat = 3 +compat = 6 [[distro.aliases]] name = "deb-nolibxdp" diff --git a/scripts/make_dev_archive.sh b/scripts/make_dev_archive.sh index b9929df42..e37682a52 100755 --- a/scripts/make_dev_archive.sh +++ b/scripts/make_dev_archive.sh @@ -2,19 +2,21 @@ # Copyright (C) CZ.NIC, z.s.p.o. and contributors # SPDX-License-Identifier: GPL-2.0-or-later # For more information, see - # # Create a development tarball # +# This script is used by apkg to generate archive from current sources. +# It must only output valid YAML to stdout! set -o errexit -o nounset -o xtrace cd "$(dirname ${0})/.." # configure Knot DNS in order to create archive -autoreconf -if -./configure +autoreconf -if >&2 +./configure >&2 # create archive and parse output for archive name TARDIR=$(make dist 2>&1 | sed -n 's/tardir=\([^ ]\+\).*/\1/p') # print created archive name -ls -1 $TARDIR.tar.* +archive=$(ls -1 $TARDIR.tar.*) +echo "archive: '$archive'"