Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 308560 Details for
Bug 449910
New coreutils on rawhide appears to cause failures in package building
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Better workaround with testcase
testedworkaround.patch.txt (text/plain), 2.92 KB, created by
Ondrej Vasik
on 2008-06-06 19:09:15 UTC
(
hide
)
Description:
Better workaround with testcase
Filename:
MIME Type:
Creator:
Ondrej Vasik
Created:
2008-06-06 19:09:15 UTC
Size:
2.92 KB
patch
obsolete
>diff -urNp coreutils-6.12-orig/lib/utimens.c coreutils-6.12/lib/utimens.c >--- coreutils-6.12-orig/lib/utimens.c 2008-06-06 12:49:08.000000000 +0200 >+++ coreutils-6.12/lib/utimens.c 2008-06-06 12:52:24.000000000 +0200 >@@ -103,6 +103,17 @@ gl_futimens (int fd ATTRIBUTE_UNUSED, > if (fd < 0) > { > int result = utimensat (AT_FDCWD, file, timespec, 0); >+# ifdef __linux__ >+ /* Work around what might be a kernel bug: >+ http://bugzilla.redhat.com/442352 >+ http://bugzilla.redhat.com/449910 >+ It appears that utimensat can mistakenly return 280 rather >+ than 0 to indicate success. >+ FIXME: remove in 2010 or whenever the offending kernels >+ are no longer in common use. */ >+ if (0 < result) >+ errno = ENOSYS; >+# endif > if (result == 0 || errno != ENOSYS) > return result; > } >@@ -110,6 +121,17 @@ gl_futimens (int fd ATTRIBUTE_UNUSED, > #if HAVE_FUTIMENS > { > int result = futimens (fd, timespec); >+# ifdef __linux__ >+ /* Work around what might be a kernel bug: >+ http://bugzilla.redhat.com/442352 >+ http://bugzilla.redhat.com/449910 >+ It appears that utimens can mistakenly return 280 rather >+ than 0 to indicate success. >+ FIXME: remove in 2010 or whenever the offending kernels >+ are no longer in common use. */ >+ if (0 < result) >+ errno = ENOSYS; >+# endif > if (result == 0 || errno != ENOSYS) > return result; > } >diff -urNp coreutils-6.12-orig/tests/Makefile.am coreutils-6.12/tests/Makefile.am >--- coreutils-6.12-orig/tests/Makefile.am 2008-06-05 10:52:49.000000000 +0200 >+++ coreutils-6.12/tests/Makefile.am 2008-06-05 13:23:02.000000000 +0200 >@@ -215,6 +215,7 @@ TESTS = \ > misc/tty-eof \ > misc/unexpand \ > misc/uniq \ >+ misc/utimensat-touchcp \ > chmod/c-option \ > chmod/equal-x \ > chmod/equals \ >diff -urNp coreutils-6.12-orig/tests/misc/utimensat-touchcp coreutils-6.12/tests/misc/utimensat-touchcp >--- coreutils-6.12-orig/tests/misc/utimensat-touchcp 1970-01-01 01:00:00.000000000 +0100 >+++ coreutils-6.12/tests/misc/utimensat-touchcp 2008-06-05 13:22:01.000000000 +0200 >@@ -0,0 +1,33 @@ >+#!/bin/sh >+# Make sure touch -r and cp -pr works without hanging. >+ >+if test "$VERBOSE" = yes; then >+ set -x >+ touch --version >+ cp --version >+fi >+ >+. $srcdir/test-lib.sh >+ >+touch a.old || framework_failure >+sleep 1 >+ >+fail=0 >+ >+#check for touch >+touch -r a.old a || fail=1 >+ls -l --full-time a >time1 >+ls -l --full-time a.old >time2 >+sed -i 's/a.old/a/' time2 >+cmp time1 time2 > /dev/null 2>&1 || fail=1 >+test $fail = 1 && diff time1 time2 2> /dev/null >+ >+#check for cp >+cp -pr a.old b || fail=1 >+ls -l --full-time a >time1 >+ls -l --full-time a.old >time2 >+sed -i 's/a.old/a/' time2 >+cmp time1 time2 > /dev/null 2>&1 || fail=1 >+test $fail = 1 && diff time1 time2 2> /dev/null >+ >+(exit $fail); exit $fail
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 449910
:
308346
|
308374
| 308560