From 25defc901f5bf92f039a60ca5a491ad71b91e8b5 Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Apr 24 2008 14:57:35 +0000 Subject: make id-context test executable, few diagnostics added temporarily to failing no-create-missing touch test --- diff --git a/coreutils-6.10-configuration.patch b/coreutils-6.10-configuration.patch index 20c5d26..36680b1 100644 --- a/coreutils-6.10-configuration.patch +++ b/coreutils-6.10-configuration.patch @@ -1,3 +1,15 @@ +diff -urNp coreutils-6.11-orig/tests/touch/no-create-missing coreutils-6.11/tests/touch/no-create-missing +--- coreutils-6.11-orig/tests/touch/no-create-missing 2008-04-19 23:34:23.000000000 +0200 ++++ coreutils-6.11/tests/touch/no-create-missing 2008-04-24 12:34:52.000000000 +0200 +@@ -36,7 +36,7 @@ test="$abs_top_builddir/src/test" + # This test is ineffective unless /dev/stdout also works. + if "$test" -w /dev/stdout >/dev/null && + "$test" ! -w /dev/stdout >&-; then +- touch -c - >&- 2> /dev/null || fail=1 ++ strace touch -c - >&- || fail=1 + touch -cm - >&- 2> /dev/null || fail=1 + touch -ca - >&- 2> /dev/null || fail=1 + fi diff -urNp coreutils-6.11-orig/tests/mkdir/selinux coreutils-6.11/tests/mkdir/selinux --- coreutils-6.11-orig/tests/mkdir/selinux 2008-04-19 23:34:23.000000000 +0200 +++ coreutils-6.11/tests/mkdir/selinux 2008-04-22 13:23:50.000000000 +0200 @@ -9,20 +21,20 @@ diff -urNp coreutils-6.11-orig/tests/mkdir/selinux coreutils-6.11/tests/mkdir/se c=invalid-selinux-context msg="failed to set default file creation context to \`$c':" -diff -urNp coreutils-6.11-orig/tests/misc/runcon-no-reorder coreutils-6.11/tests/misc/runcon-no-reorder ---- coreutils-6.11-orig/tests/misc/runcon-no-reorder 2008-04-19 23:34:23.000000000 +0200 -+++ coreutils-6.11/tests/misc/runcon-no-reorder 2008-04-22 12:27:42.000000000 +0200 -@@ -34,8 +34,8 @@ fail=0 - # On such a system it fails with the above diagnostic, which is fine. - # Before the no-reorder change, it would have failed with a diagnostic - # about -j being an invalid option. --runcon $(id -Z) true -j 2> out && : > exp -+#runcon $(id -Z) true -j 2> out && : > exp +diff -urNp coreutils-6.11-orig/tests/test-lib.sh coreutils-6.11/tests/test-lib.sh +--- coreutils-6.11-orig/tests/test-lib.sh 2008-04-19 23:34:23.000000000 +0200 ++++ coreutils-6.11/tests/test-lib.sh 2008-04-24 14:18:59.000000000 +0200 +@@ -97,8 +97,8 @@ skip_if_() --compare out exp || fail=1 -+#compare out exp || fail=1 - - (exit $fail); exit $fail + require_selinux_() + { +- case `ls -Zd .` in +- '? .'|'unlabeled .') ++ case `ls --scontext -d . | cut -f1 -d" "` in ++ '?'|'unlabeled') + skip_test_ "this system (or maybe just" \ + "the current file system) lacks SELinux support" + ;; diff -urp coreutils-6.11-orig/gnulib-tests/test-getaddrinfo.c coreutils-6.11/gnulib-tests/test-getaddrinfo.c --- coreutils-6.11-orig/gnulib-tests/test-getaddrinfo.c +++ coreutils-6.11/gnulib-tests/test-getaddrinfo.c diff --git a/coreutils.spec b/coreutils.spec index 54076a9..e05babe 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -58,6 +58,7 @@ BuildRequires: gettext bison BuildRequires: texinfo >= 4.3 BuildRequires: lzma BuildRequires: autoconf >= 2.58 +BuildRequires: strace #dist-lzma required BuildRequires: automake >= 1.10.1 %{?!nopam:BuildRequires: pam-devel} @@ -130,6 +131,7 @@ cd %name-%version %patch951 -p1 -b .selinuxman chmod a+x tests/sort/sort-mb-tests +chmod a+x tests/misc/id-context #fix typos/mistakes in localized documentation(#439410, #440056) for pofile in $(find ./po/*.p*)