From 8b2a2a7a3e5f148a37a68e6d494e32747193be3dfa846be63d18ee76b2cc0953 Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Wed, 28 Nov 2012 12:48:53 +0000 Subject: [PATCH] Accepting request 143405 from home:rmilasan:branches:Base:System - Update default posix version to 200112 (bnc#783352). Hide rootfs in df (df not using yet /proc/self/mountinfo). OBS-URL: https://build.opensuse.org/request/show/143405 OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=167 --- coreutils-df-always-hide-rootfs.patch | 14 ++++++++++++++ coreutils.changes | 6 ++++++ coreutils.spec | 4 +++- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 coreutils-df-always-hide-rootfs.patch diff --git a/coreutils-df-always-hide-rootfs.patch b/coreutils-df-always-hide-rootfs.patch new file mode 100644 index 0000000..d1b859b --- /dev/null +++ b/coreutils-df-always-hide-rootfs.patch @@ -0,0 +1,14 @@ +Index: coreutils-8.17/src/df.c +=================================================================== +--- coreutils-8.17.orig/src/df.c ++++ coreutils-8.17/src/df.c +@@ -474,6 +474,9 @@ get_dev (char const *disk, char const *m + if (!selected_fstype (fstype) || excluded_fstype (fstype)) + return; + ++ if (STRNCMP_LIT (fstype, "rootfs") == 0) ++ return; ++ + /* If MOUNT_POINT is NULL, then the file system is not mounted, and this + program reports on the file system that the special file is on. + It would be better to report on the unmounted file system, diff --git a/coreutils.changes b/coreutils.changes index 9e4bc27..4f2ad7b 100644 --- a/coreutils.changes +++ b/coreutils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 28 12:25:18 UTC 2012 - rmilasan@suse.com + +- Update default posix version to 200112 (bnc#783352). + Hide rootfs in df (df not using yet /proc/self/mountinfo). + ------------------------------------------------------------------- Mon Nov 19 13:04:44 UTC 2012 - idonmez@suse.com diff --git a/coreutils.spec b/coreutils.spec index 92d4c21..5d99f4b 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -82,6 +82,7 @@ Patch36: coreutils-basename_documentation.patch Patch37: coreutils-bnc#697897-setsid.patch Patch38: coreutils-cp-corrupt-fragmented-sparse.patch Patch39: coreutils-no_silent-rule.patch +Patch40: coreutils-df-always-hide-rootfs.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build # this will create a cycle, broken up randomly - coreutils is just too core to have other # prerequires @@ -129,6 +130,7 @@ uname unexpand uniq unlink uptime users vdir wc who whoami yes %if 0%{suse_version} < 1200 %patch39 %endif +%patch40 -p1 xz -dc %{S:4} >po/de.po @@ -142,7 +144,7 @@ export CFLAGS="%optflags -Wall" --enable-install-program=arch,su \ gl_cv_func_printf_directive_n=yes \ gl_cv_func_isnanl_works=yes \ - DEFAULT_POSIX2_VERSION=199209 + DEFAULT_POSIX2_VERSION=200112 alternative=199209 make -C po update-po make %{?_smp_mflags} V=1