From fefc0365bcfb75fbd71a70ad6dd8227995bd1bdfa11d9c43ab4e8ca539d478fa Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sun, 20 May 2007 09:03:27 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/coreutils?expand=0&rev=9 --- coreutils.changes | 5 +++++ coreutils.spec | 8 ++++++-- fchownat.diff | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 fchownat.diff diff --git a/coreutils.changes b/coreutils.changes index 26db73c..d64d0bd 100644 --- a/coreutils.changes +++ b/coreutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun May 20 10:53:16 CEST 2007 - schwab@suse.de + +- Fix fchownat test. + ------------------------------------------------------------------- Mon Apr 2 11:17:36 CEST 2007 - schwab@suse.de diff --git a/coreutils.spec b/coreutils.spec index 10bccf2..f577557 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -16,12 +16,12 @@ URL: http://www.gnu.org/software/coreutils/ License: GNU General Public License (GPL) Group: System/Base Provides: fileutil fileutils sh-utils sh_utils shellutl stat textutil textutils textutl txtutils -Obsoletes: fileutil fileutils sh-utils sh_utils stat textutil textutils +Obsoletes: fileutils sh-utils stat textutils Obsoletes: libselinux <= 1.23.11-3 libselinux-32bit >= 9 libselinux-64bit = 9 libselinux-x86 = 9 Autoreqprov: on PreReq: %{install_info_prereq} Version: 6.9 -Release: 4 +Release: 14 Summary: GNU Core Utilities Source: coreutils-%{version}.tar.bz2 Source1: su.pamd @@ -32,6 +32,7 @@ Patch30: coreutils-changelog.diff Patch4: coreutils-5.3.0-i18n-0.1.patch Patch5: i18n-uninit.diff Patch6: i18n-infloop.diff +Patch7: fchownat.diff Patch8: coreutils-sysinfo.diff Patch9: ls-x.diff Patch11: i18n-monthsort.diff @@ -99,6 +100,7 @@ Authors: %patch5 %patch6 %patch +%patch7 %patch8 -p1 %patch9 -p1 chmod +x tests/ls/x-option @@ -174,6 +176,8 @@ rm -rf $RPM_BUILD_ROOT %dir %{_prefix}/share/locale/*/LC_TIME %changelog +* Sun May 20 2007 - schwab@suse.de +- Fix fchownat test. * Mon Apr 02 2007 - schwab@suse.de - Fix ls -x. * Fri Mar 23 2007 - schwab@suse.de diff --git a/fchownat.diff b/fchownat.diff new file mode 100644 index 0000000..4be1246 --- /dev/null +++ b/fchownat.diff @@ -0,0 +1,32 @@ +2007-05-20 Jim Meyering + + Fix buggy test for the fchownat-deref bug. + * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling + symlink required for the run-test. Without it, this test would + always declare that fchownat doesn't work, and client code would + unnecessarily use the replacement function with fixed libc. + (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized. + Reported by Greg Schafer. + +--- m4/openat.m4 ++++ m4/openat.m4 +@@ -38,6 +38,7 @@ + rm -f $gl_dangle + # Arrange for deletion of the temporary file this test creates. + ac_clean_files="$ac_clean_files $gl_dangle" ++ ln -s conftest.no-such $gl_dangle + AC_RUN_IFELSE( + [AC_LANG_SOURCE( + [[ +@@ -74,10 +75,7 @@ + + AC_CHECK_FUNC([fchownat], [have_fchownat=yes], [have_fchownat=no]) + if test $have_fchownat = yes; then +- gl_FUNC_FCHOWNAT_DEREF_BUG([have_fchownat_bug=yes]) +- if test $have_fchownat_bug = no; then +- use_replacement_fchownat=no +- fi ++ gl_FUNC_FCHOWNAT_DEREF_BUG([], [use_replacement_fchownat=no]) + fi + + if test $use_replacement_fchownat = yes; then