diff --git a/0001-Ignore-ghost-non-regular-files.patch b/0001-Ignore-ghost-non-regular-files.patch deleted file mode 100644 index 1d45bc5..0000000 --- a/0001-Ignore-ghost-non-regular-files.patch +++ /dev/null @@ -1,52 +0,0 @@ -From ee7eec04fe5be5387168e43e546ec05f1c4372fe Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Wed, 26 Jun 2013 21:40:26 +0100 -Subject: [PATCH] Ignore ghost non-regular files. - -RPMs in Fedora 20 contain /var/run and /var/lock, as symlinks, marked -%ghost. The old code would create these as regular files which would -then cause a failure if something was created inside them. - -You would see an error like this: - -Fatal error: exception Unix.Unix_error(8, "mkdir", "/tmp/supermineab65b098ada401348c6f448e9119504.tmp/root//var/run") - -The new code just ignores these files. With -v it will print a -message like this: - -ignoring ghost non-regular file /var/lock (mode 0120777) from package /tmp/supermin63b9e24946f33f9b16247d063fa7e488.tmp/filesystem-3.2-16.fc20.x86_64.rpm -ignoring ghost non-regular file /var/run (mode 0120777) from package /tmp/supermin63b9e24946f33f9b16247d063fa7e488.tmp/filesystem-3.2-16.fc20.x86_64.rpm ---- - src/supermin.ml | 16 ++++++++++++++++ - 1 file changed, 16 insertions(+) - -diff --git a/src/supermin.ml b/src/supermin.ml -index f87ad6f..251c13e 100644 ---- a/src/supermin.ml -+++ b/src/supermin.ml -@@ -129,6 +129,22 @@ let () = - in - loop files in - -+ (* Ignore %ghost non-regular files. RPMs in Fedora 20 contain these. -+ * It's not clear what they are meant to signify. XXX -+ *) -+ let files = List.filter ( -+ function -+ | name, { ft_dir = false; ft_ghost = true; ft_mode = mode }, pkg -> -+ if (mode land 0o170_000) = 0o100_000 then -+ true -+ else ( -+ debug "ignoring ghost non-regular file %s (mode 0%o) from package %s" -+ name mode pkg; -+ false -+ ) -+ | _ -> true -+ ) files in -+ - (* Because we may have excluded some packages, and also because of - * distribution packaging errors, it's not necessarily true that a - * directory is created before each file in that directory. --- -1.8.3.1 - diff --git a/sources b/sources index 5eade32..1a42b6e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -aabb7d64ece00f363f110ff387ef2916 supermin-4.1.1.tar.gz +8235a2d7e270adad81dded2fac1d365f supermin-4.1.2.tar.gz diff --git a/supermin.spec b/supermin.spec index 70c7765..aad6818 100644 --- a/supermin.spec +++ b/supermin.spec @@ -1,15 +1,12 @@ Summary: Tool for creating supermin appliances Name: supermin -Version: 4.1.1 -Release: 2%{?dist} +Version: 4.1.2 +Release: 1%{?dist} License: GPLv2+ URL: http://people.redhat.com/~rjones/supermin/ Source0: http://libguestfs.org/download/supermin/%{name}-%{version}.tar.gz -# Upstream after 4.1.1. -Patch1: 0001-Ignore-ghost-non-regular-files.patch - %if 0%{?rhel} >= 7 ExclusiveArch: x86_64 %endif @@ -59,11 +56,9 @@ Obsoletes: febootstrap-supermin-helper <= 3.21-1 %prep %setup -q -%patch1 -p1 - %build -%configure +%configure --disable-network-tests make @@ -78,6 +73,10 @@ make DESTDIR=$RPM_BUILD_ROOT install execstack -c $RPM_BUILD_ROOT%{_bindir}/supermin-helper +%check +make check + + %files %doc COPYING README %{_bindir}/supermin @@ -91,6 +90,10 @@ execstack -c $RPM_BUILD_ROOT%{_bindir}/supermin-helper %changelog +* Sat Aug 3 2013 Richard W.M. Jones - 4.1.2-1 +- New upstream version 4.1.2. +- Remove patch which is now upstream. + * Wed Jun 26 2013 Richard W.M. Jones - 4.1.1-2 - Add upstream patch to ignore ghost non-regular files. - This fixes builds on Fedora 20 because the filesystem package has