[oe-commits] [Bug 5130] Coreutils-native_7.2 fails to compile

bugzilla-daemon at amethyst.openembedded.net bugzilla-daemon at amethyst.openembedded.net
Wed May 27 18:02:05 UTC 2009


http://bugs.openembedded.net/show_bug.cgi?id=5130





--- Comment #1 from Kristoffer Ericson <kristoffer.ericson at gmail.com>  2009-05-27 20:02:04 ---
Is x86 related and the bug is known. Searching with
"/usr/include/asm/sigcontext.h:28: error: expected specifier-qualifier-list
before '__u64' | /usr/include/asm/sigcontext.h:191: error: expected
specifier-qualifier-list before '__u64'"

Gives about 80 hits. The most accurate is this 
http://lists.ibiblio.org/pipermail/sm-grimoire-bugs/2009-April/021406.html

which suggested this :
diff --git a/utils/coreutils/HISTORY b/utils/coreutils/HISTORY
index 942f863..c4b7664 100644
--- a/utils/coreutils/HISTORY
+++ b/utils/coreutils/HISTORY
@@ -1,3 +1,8 @@
+2009-04-05 Vlad Glagolev <stealth at sourcemage.org>
+    * PRE_BUILD: apply headers patch, to fix compilation problem with recent
+      linux-headers which come with glibc; quoting paths
+    * headers.patch: added
+
 2009-04-01 Ladislav Hagara <hgr at vabo.cz>
     * DETAILS: 7.2

diff --git a/utils/coreutils/PRE_BUILD b/utils/coreutils/PRE_BUILD
index 36f4c63..1a3c4a5 100755
--- a/utils/coreutils/PRE_BUILD
+++ b/utils/coreutils/PRE_BUILD
@@ -1,5 +1,7 @@
 default_pre_build &&
-cd ${SOURCE_DIRECTORY} &&
+cd "$SOURCE_DIRECTORY" &&
+
+patch -p0 < "$SPELL_DIRECTORY/headers.patch" &&

 if [[ $SMACK == y ]]; then
   patch -p1 < "$SPELL_DIRECTORY/coreutils-smack.patch"
diff --git a/utils/coreutils/headers.patch b/utils/coreutils/headers.patch
new file mode 100644
index 0000000..9b02b94
--- /dev/null
+++ b/utils/coreutils/headers.patch
@@ -0,0 +1,10 @@
+--- src/ls.c.orig    2009-03-29 21:44:10.000000000 +0400
++++ src/ls.c    2009-04-05 01:30:22.668552690 +0400
+@@ -36,6 +36,7 @@
+    Greg Lee <lee at uhunix.uhcc.hawaii.edu>.  */
+ 
+ #include <config.h>
++#include <asm/types.h>
+ #include <sys/types.h>
+ 
+ #ifdef HAVE_CAP

-- 
Configure bugmail: http://bugs.openembedded.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Openembedded-commits mailing list