[oe-commits] Chris Larson : coreutils-6.0: apply patch for USE_STATVFS
git version control
git at git.openembedded.org
Fri Oct 22 03:30:52 UTC 2010
Module: openembedded.git
Branch: kergoth/autotools
Commit: ac0b7d1cf703fed7930e2adf6309ded86a887d1b
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ac0b7d1cf703fed7930e2adf6309ded86a887d1b
Author: Chris Larson <chris_larson at mentor.com>
Date: Sat Oct 16 23:14:20 2010 -0700
coreutils-6.0: apply patch for USE_STATVFS
Fixes compile error on platforms where statvfs does not have an f_type member
(e.g. OSX). See
http://www.mail-archive.com/bug-coreutils@gnu.org/msg06552.html for details.
Signed-off-by: Chris Larson <chris_larson at mentor.com>
---
recipes/coreutils/coreutils-6.0.inc | 1 +
recipes/coreutils/coreutils-6.0/USE_STATVFS.patch | 26 +++++++++++++++++++++
recipes/coreutils/coreutils_6.0.bb | 2 +-
3 files changed, 28 insertions(+), 1 deletions(-)
diff --git a/recipes/coreutils/coreutils-6.0.inc b/recipes/coreutils/coreutils-6.0.inc
index fb5abbc..05a2ef1 100644
--- a/recipes/coreutils/coreutils-6.0.inc
+++ b/recipes/coreutils/coreutils-6.0.inc
@@ -6,4 +6,5 @@ SRC_URI = "\
ftp://alpha.gnu.org/gnu/coreutils/coreutils-${PV}.tar.bz2 \
file://futimens.patch \
file://coreutils-install-use-STRIP.patch \
+ file://USE_STATVFS.patch \
"
diff --git a/recipes/coreutils/coreutils-6.0/USE_STATVFS.patch b/recipes/coreutils/coreutils-6.0/USE_STATVFS.patch
new file mode 100644
index 0000000..b96ad99
--- /dev/null
+++ b/recipes/coreutils/coreutils-6.0/USE_STATVFS.patch
@@ -0,0 +1,26 @@
+From 5ce0b45a43fc2de8862a439b6e6281fdd55e27ed Mon Sep 17 00:00:00 2001
+From: Paul Eggert <eggert at cs.ucla.edu>
+Date: Tue, 15 Aug 2006 23:23:28 +0000
+Subject: [PATCH] (USE_STATVFS): Define to 0 if f_type is needed, but
+ statvfs.f_type not present.
+
+---
+ src/stat.c | 3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/src/stat.c b/src/stat.c
+index 4c6047c..481096d 100644
+--- a/src/stat.c
++++ b/src/stat.c
+@@ -20,7 +20,8 @@
+ #include <config.h>
+
+ #if (STAT_STATVFS \
+- && (HAVE_STRUCT_STATVFS_F_BASETYPE || ! HAVE_STRUCT_STATFS_F_FSTYPENAME))
++ && (HAVE_STRUCT_STATVFS_F_BASETYPE \
++ || (! HAVE_STRUCT_STATFS_F_FSTYPENAME && HAVE_STRUCT_STATVFS_F_TYPE)))
+ # define USE_STATVFS 1
+ #else
+ # define USE_STATVFS 0
+--
+1.7.2.3
diff --git a/recipes/coreutils/coreutils_6.0.bb b/recipes/coreutils/coreutils_6.0.bb
index 32f0f1f..afa2cd7 100644
--- a/recipes/coreutils/coreutils_6.0.bb
+++ b/recipes/coreutils/coreutils_6.0.bb
@@ -1,7 +1,7 @@
require coreutils-${PV}.inc
require coreutils-target.inc
-PR = "r3"
+PR = "r4"
SRC_URI += "\
file://man.patch \
More information about the Openembedded-commits
mailing list