From 3199a088f2ff5233b1304aa1007859b2587f5158 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 16 Feb 2021 08:53:23 +0100 Subject: [PATCH] scripts/chroot-fixups/rpm-macros.sh: avoid use of /dev/stderr ... which results in the following error: /var/tmp/rpm-tmp.0DE51f: line 81: /dev/stderr: Permission denied ... while scanning python-flit-3.0.0-3.el9 --- scripts/chroot-fixups/rpm-macros.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 scripts/chroot-fixups/rpm-macros.sh diff --git a/scripts/chroot-fixups/rpm-macros.sh b/scripts/chroot-fixups/rpm-macros.sh new file mode 100755 index 00000000..2b23a75d --- /dev/null +++ b/scripts/chroot-fixups/rpm-macros.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +file="/usr/lib/rpm/macros.d/macros.pyproject" +if [ -w ${file} ]; then + (set -x; sed -e 's|> */dev/stderr|>\&2|' -i ${file}) +fi