From 603cb8006862ddba9845a32d55026d497e45c608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 8 Aug 2017 14:12:40 +0200 Subject: [PATCH] Move all comments from /sbin/ldconfig %postun script rpmbuild passes all lines between %postun and next section (%files) to script body. Including comments. And /sbin/ldconfig does not skip comments and complains when upgrading perl-libs package: /sbin/ldconfig: relative path `1' used to build cache warning: %postun(perl-libs-4:5.26.0-397.fc27.x86_64) scriptlet failed, exit status 1 We must keep the lines literally empty. --- perl.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/perl.spec b/perl.spec index 18f5492..56bbf1c 100644 --- a/perl.spec +++ b/perl.spec @@ -3063,10 +3063,9 @@ popd %postun libs -p /sbin/ldconfig +%files # We sub-package modules from perl-interpreter subpackage. Main perl package # is a meta package. -%files -# Nothing. Nada. Zilch. Zarro. Uh uh. Nope. Sorry. %files interpreter %{_mandir}/man1/*.1*