[oe-commits] Holger Hans Peter Freyther : m4: Fix m4-native-1.4.14 build on Fedora13...

git version control git at git.openembedded.org
Wed Jun 2 08:24:01 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 368b4b672f58009cd76cb9c8e87f217e5c222668
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=368b4b672f58009cd76cb9c8e87f217e5c222668

Author: Holger Hans Peter Freyther <zecke at selfish.org>
Date:   Wed Jun  2 16:15:07 2010 +0800

m4: Fix m4-native-1.4.14 build on Fedora13...

The build error was a link failure not finding S_ISDIR
which is a macro provided for the stat syscall..

---

 recipes/m4/files/f13-compile.patch |   16 ++++++++++++++++
 recipes/m4/m4_1.4.14.bb            |    2 ++
 2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/recipes/m4/files/f13-compile.patch b/recipes/m4/files/f13-compile.patch
new file mode 100644
index 0000000..c69241a
--- /dev/null
+++ b/recipes/m4/files/f13-compile.patch
@@ -0,0 +1,16 @@
+Index: m4-1.4.14/src/path.c
+===================================================================
+--- m4-1.4.14.orig/src/path.c
++++ m4-1.4.14/src/path.c
+@@ -24,6 +24,11 @@
+ 
+ #include "m4.h"
+ 
++#include <sys/types.h>
++#include <sys/stat.h>
++#include <unistd.h>
++
++
+ struct includes
+ {
+   struct includes *next;        /* next directory to search */
diff --git a/recipes/m4/m4_1.4.14.bb b/recipes/m4/m4_1.4.14.bb
index b8f1802..3d33de1 100644
--- a/recipes/m4/m4_1.4.14.bb
+++ b/recipes/m4/m4_1.4.14.bb
@@ -2,6 +2,8 @@ require m4.inc
 
 PR = "${INC_PR}.0"
 
+SRC_URI += "file://f13-compile.patch;patch=1"
+
 SRC_URI[archive.md5sum] = "e6fb7d08d50d87e796069cff12a52a93"
 SRC_URI[archive.sha256sum] = "0885ffa93256353a96b1cf0bcbc4d639ed09953b687e6cc412c4048e656f4dd2"
 





More information about the Openembedded-commits mailing list