From 98cf8da1e8c8111db5991db4a4317b9ac801c71e Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Jun 04 2008 17:56:55 +0000 Subject: workaround strange koji failures(#449910, #442352), fixed ls -ZC segfault(#449866) --- diff --git a/coreutils-6.10-configuration.patch b/coreutils-6.10-configuration.patch index c21dd56..e9b0ab7 100644 --- a/coreutils-6.10-configuration.patch +++ b/coreutils-6.10-configuration.patch @@ -1,3 +1,18 @@ +diff --git a/lib/utimens.c b/lib/utimens.c +index 134310b..18a8e7c 100644 +--- a/lib/utimens.c ++++ b/lib/utimens.c +@@ -103,6 +103,10 @@ gl_futimens (int fd ATTRIBUTE_UNUSED, + if (fd < 0) + { + int result = utimensat (AT_FDCWD, file, timespec, 0); ++ /* Work around what might be a koji xen kernel bug): ++ http://bugzilla.redhat.com/442352 */ ++ if (result == 280) ++ result = 0; + if (result == 0 || errno != ENOSYS) + return result; + } diff -urN coreutils-6.12-orig/tests/misc/cut coreutils-6.12/tests/misc/cut --- coreutils-6.12-orig/tests/misc/cut 2008-05-17 08:41:11.000000000 +0200 +++ coreutils-6.12/tests/misc/cut 2008-06-02 11:13:08.000000000 +0200 diff --git a/coreutils-selinux.patch b/coreutils-selinux.patch index 5fbe196..18ef9eb 100644 --- a/coreutils-selinux.patch +++ b/coreutils-selinux.patch @@ -743,7 +743,7 @@ diff -urp coreutils-6.10-orig/src/ls.c coreutils-6.10/src/ls.c f->stat_ok = true; - if (format == long_format || print_scontext) -+ if (format == long_format || format == security_format) ++ if (format == long_format || format == security_format || print_scontext) { bool have_acl = false; int attr_len = (do_deref diff --git a/coreutils.spec b/coreutils.spec index add5b08..e6f0cd2 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -1,7 +1,7 @@ Summary: The GNU core utilities: a set of tools commonly used in shell scripts Name: coreutils Version: 6.12 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ Group: System Environment/Base Url: http://www.gnu.org/software/coreutils/ @@ -307,6 +307,11 @@ fi /sbin/runuser %changelog +* Wed Jun 04 2008 Ondrej Vasik - 6.12-2 +- workaround for strange koji failures(#449910,#442352) +- fixed ls -ZC segfault(#449866, introduced by 6.10-1 + SELinux patch reworking) + * Mon Jun 02 2008 Ondrej Vasik - 6.12-1 - New upstream release 6.12, adapted patches