Description of problem: While updating packages on a Rawhide box today: ... Cleanup : libvirt-daemon-driver-storage-1.2.8-1.fc22.x86_64 130/189 /var/tmp/rpm-tmp.w5Leu0: line 8: libvirtd.socket: command not found error: %preun(libvirt-daemon-1.2.8-1.fc22.x86_64) scriptlet failed, exit status 127 Error in PREUN scriptlet in rpm package libvirt-daemon-1.2.8-1.fc22.x86_64 Cleanup : libvirt-daemon-1.2.8-1.fc22.x86_64 131/189 ... $ rpm -q --scripts libvirt-daemon ... preuninstall scriptlet (using /bin/sh): if [ $1 -eq 0 ] ; then # Package removal, not upgrade systemctl --no-reload disable \ > /dev/null 2>&1 || : systemctl stop \ > /dev/null 2>&1 || : fi libvirtd.socket \ libvirtd.service \ virtlockd.socket \ virtlockd.service ... The new version of the package has the same broken %preun script. Version-Release number of selected component (if applicable): libvirt-daemon-1.2.8-2.fc22.x86_64 How reproducible: Always Steps to Reproduce: 1. Have a previous version of libvirt-daemon installed on a Rawhide box 2. yum upgrade libvirt-daemon 3. Actual results: The update fails because of an error in %preun. Expected results: Clean upgrade. Additional info:
same as bug 1136736 for RHEL; fix is commit 6209454d5b10c2d89faab8a56b250f1569d823fe Author: Jiri Denemark <jdenemar> Date: Wed Sep 3 10:51:14 2014 +0200 spec: Fix preun script for daemon %systemd_preun macro cannot be split into several lines. https://bugzilla.redhat.com/show_bug.cgi?id=1136736 Signed-off-by: Jiri Denemark <jdenemar>
Fixed in libvirt-1.2.8-3.fc22