From 1e56b858ab87d755c44f8afa3b3c0f2d9a04e6c1 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Jul 10 2006 09:45:16 +0000 Subject: - silence install in minimal buildroot without /var/log matchpathcon(/var/log/lastlog) failed: No such file or directory error: %post(util-linux-2.13-0.29.x86_64) scriptlet failed, exit status 1 --- diff --git a/util-linux.spec b/util-linux.spec index 0ee93dc..a6ec090 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -9,7 +9,7 @@ Summary: A collection of basic system utilities. Name: util-linux Version: 2.13 -Release: 0.29 +Release: 0.30 License: distributable Group: System Environment/Base @@ -497,6 +497,8 @@ rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir %post /sbin/install-info %{_infodir}/ipc.info* %{_infodir}/dir +# only for minimal buildroots without /var/log +[ -d /var/log ] || mkdir -p /var/log touch /var/log/lastlog chown root:root /var/log/lastlog chmod 0644 /var/log/lastlog @@ -698,6 +700,9 @@ exit 0 /sbin/losetup %changelog +* Mon Jul 10 2006 Karsten Hopp 2.13-0.30 +- silence install in minimal buildroot without /var/log + * Fri Jul 7 2006 Karel Zak 2.13-0.29 - include the raw command for RHELs