generic-poky/meta/recipes-devtools
Hongxu Jia e609afe4d7 qemu-native:fix do_compile failed on SLED 11.2
1, When build qemu-native on SLED 11.2, there is an error:
...
| In file included from /usr/include/bits/sigcontext.h:28,
|    from /usr/include/signal.h:339,
|    from /buildarea2/tmp/work/i686-linux/qemu-native/1.4.0-r0/
qemu-1.4.0/include/qemu-common.h:42,
|    from fsdev/virtfs-proxy-helper.c:23:
| /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'
...

2, The virtfs-proxy-helper.c includes <sys/capability.h> and
qemu-common.h in sequence. The header include map is:
(`-->' presents `include')
...
"virtfs-proxy-helper.c" --> <sys/capability.h>
...
"virtfs-proxy-helper.c" --> "qemu-common.h" --> <signal.h> -->
<bits/sigcontext.h> --> <asm/sigcontext.h> --> <linux/types.h> -->
<asm/types.h> --> <asm-generic/types.h> --> <asm-generic/int-ll64.h>
...

3, The bug is found on SLED 11.2 x86. In libcap header file
/usr/include/sys/capability.h, it does evil stuff like this:
...
  25 /*
  26  * Make sure we can be included from userland by preventing
  27  * capability.h from including other kernel headers
  28  */
  29 #define _LINUX_TYPES_H
  30 #define _LINUX_FS_H
  31 #define __LINUX_COMPILER_H
  32 #define __user
  33
  34 typedef unsigned int __u32;
  35 typedef __u32 __le32;
...
This completely prevents including /usr/include/linux/types.h.
The above `<asm/sigcontext.h> --> <linux/types.h>' is prevented,
and '__u64' is defined in <asm-generic/int-ll64.h>.

4, Modify virtfs-proxy-helper.c to include <sys/capability.h>
last to workaround the issue.

http://www.linuxtv.org/pipermail/vdr/2009-August/021194.html
http://patchwork.linuxtv.org/patch/12748/

[YOCTO #4001]

(From OE-Core rev: 1267bb2fd91f205d35e805aa019d25ab7a921b14)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-15 01:53:04 +00:00
..
apt apt-native: fix checksums 2013-03-10 04:36:51 +00:00
autoconf autoconf: update RDEDENDS 2013-01-07 11:09:36 +00:00
autogen autogen: use pkg-config directly instead of guile-config 2012-11-28 07:00:59 +00:00
automake automake: use autotools_do_install 2013-01-27 13:53:33 +00:00
binutils binutils: Delete recipes for 2.22 2013-02-28 23:15:49 +00:00
bison bison: remove help2man dependency 2013-01-07 13:50:40 +00:00
btrfs-tools btrfs-tools: added PV to git package recipe 2013-03-04 10:04:27 +00:00
ccache ccache: update to upstream version 3.1.8 2012-12-03 13:52:06 +00:00
cdrtools ldconfig/cdrtools/icecc-create-env/linuxdoc-tools/python: Set FILESPATH to find -native files 2012-11-21 16:56:04 +00:00
chrpath recipes-devtools: replace virtclass-native(sdk) with class-native(sdk) 2012-11-02 16:18:29 +00:00
cmake cmake: add AArch64 support 2013-01-07 13:38:29 +00:00
desktop-file-utils desktop-file-utils: Add SRC_URI checksums 2011-04-06 08:01:13 -07:00
devel-config nfs-export-root: add explict no_subtree-check to suppress warning 2012-10-08 09:23:56 +01:00
diffstat diffstat: upgrade from 1.54 to 1.55 2012-01-17 14:53:15 +00:00
distcc distcc: updated to version 3.1 2013-02-04 13:18:25 +00:00
docbook-dsssl-stylesheets docbook-dsssl-stylesheets-native: Write a bak file for shared state 2011-08-01 14:16:55 +01:00
docbook-sgml-dtd docbook-sgml-dtd-native: Write a bak file for shared state 2011-08-01 14:16:55 +01:00
docbook-utils docbook-utils-native: Fix re-execution of the unpack task 2012-04-16 12:52:10 +01:00
dosfstools Add Upstream-Status to patches 2012-01-03 12:14:31 +00:00
dpkg dpkg depends on ncurses 2013-03-12 18:33:27 +00:00
e2fsprogs e2fsprogs : upgrade to 1.42.7 2013-02-28 23:15:45 +00:00
elfutils recipes-devtools: replace virtclass-native(sdk) with class-native(sdk) 2012-11-02 16:18:29 +00:00
file file: Update to 5.13 2013-02-28 23:15:51 +00:00
flex Flex: use proper m4 binary on target 2013-02-01 15:54:03 +00:00
gcc gcc-4.7: Fix incorrect warning with -Wcast-qual 2013-03-12 18:33:28 +00:00
gdb gdb-cross-canadian: Set RDEPENDS on the specific package that needs it 2013-02-04 16:42:47 +00:00
genext2fs genext2fs.inc: Add nativesdk build capability 2013-02-22 06:09:23 -08:00
git git: updated to 1.8.1.4 2013-03-05 13:14:56 +00:00
gnu-config recipes-devtools: replace virtclass-native(sdk) with class-native(sdk) 2012-11-02 16:18:29 +00:00
guile guile: add explicit dependency to avoid parallel build issue 2013-01-09 15:05:26 +00:00
guilt guilt: remove GIT_EXEC_BASE export 2013-02-04 13:18:27 +00:00
help2man help2man: update to upstream version 1.40.13 2013-01-15 08:10:10 +00:00
icecc-create-env ldconfig/cdrtools/icecc-create-env/linuxdoc-tools/python: Set FILESPATH to find -native files 2012-11-21 16:56:04 +00:00
icon-naming-utils icon-naming-utils: Add SRC_URI Checksum 2011-10-07 11:35:46 +01:00
insserv recipes-devtools: replace virtclass-native(sdk) with class-native(sdk) 2012-11-02 16:18:29 +00:00
installer adt-installer: remove patches and .pc directories from the shipped tarball 2013-03-10 04:36:51 +00:00
intltool intltool: updated to 0.50.2 2013-02-06 09:37:26 +00:00
kconfig-frontends kconfig-frontends: Update to 3.8 2013-02-28 23:15:51 +00:00
libjson libjson: add 0.9 2011-11-29 11:22:04 +00:00
libtool libtool-native_2.4.2.bb: Always use /bin/sed for SED 2013-02-13 16:52:30 +00:00
linuxdoc-tools ldconfig/cdrtools/icecc-create-env/linuxdoc-tools/python: Set FILESPATH to find -native files 2012-11-21 16:56:04 +00:00
m4 gettext,m4,augeas,gnutls: Account for removal of gets in eglibc 2.16 2012-07-17 10:54:00 +01:00
make make-3.82: Add patch from git to fix parallel make race 2013-02-11 14:46:09 +00:00
makedevs Patches: Fix Upstream-Status info 2011-07-13 12:29:20 +01:00
mkelfimage mkelfimage-native:make failed if libz not in host 2012-12-17 17:24:50 +00:00
mklibs mklibs-native: Update for python-native changes 2012-07-22 11:42:21 +01:00
mtd mtd-utils: split into multiple packages 2013-01-28 12:29:30 +00:00
mtools mtools : upgrade to 4.0.18 2013-01-28 14:49:05 +00:00
nasm nasm: updated to 2.10.07 2013-01-10 23:43:10 +00:00
openjade openjade-native_1.3.2.bb: fix typo and change the deps exclusion to correct var 2012-07-11 11:35:52 +01:00
opensp opensp: replace obsolete automake macros with working ones 2013-01-15 08:10:12 +00:00
opkg opkg: save output of postinst scripts when image first boot 2013-03-07 11:14:38 +00:00
opkg-utils recipes-devtools: replace virtclass-native(sdk) with class-native(sdk) 2012-11-02 16:18:29 +00:00
ossp-uuid ossp-uuid: fix out-of-tree builds 2012-12-14 15:05:30 +00:00
packagegroups packagegroup-*: add RREPLACES/RCONFLICTS 2012-09-04 18:03:18 +01:00
patch patch: update to upstream version 2.7.1 2012-12-19 17:54:53 +00:00
pax-utils pax-utils : upgrade to 0.6 2013-02-04 13:18:26 +00:00
perl perl-nativesdk:fix toolchain relocation issues 2013-03-01 13:03:29 +00:00
pkgconfig pkg-config: replace obsolete automake macros with working ones 2013-01-10 23:43:14 +00:00
prelink prelink: update to git head 2013-01-07 13:38:27 +00:00
pseudo Update pseudo to 1.5.1 2013-03-01 13:03:28 +00:00
python Python: Fix for CVE-2012-2135 2013-03-04 09:58:17 +00:00
qemu qemu-native:fix do_compile failed on SLED 11.2 2013-03-15 01:53:04 +00:00
quilt quilt: Don't use BUILD_ROOT on darwin. 2013-01-15 08:10:15 +00:00
remake remake: added PV to git package recipe 2013-03-02 12:56:55 +00:00
rpm rpm: save output of postinstall scripts when image first boot 2013-03-07 11:14:39 +00:00
rsync rsync doesn't create hardlinks for certain files 2012-12-03 14:47:55 +00:00
sgml-common sgml-common: use ${PN} instead of sgml-common 2013-02-04 16:42:48 +00:00
sgmlspl libxml-parser-perl, libxml-simple-perl, expat, sgmlspl-native, git: bump PR to rebuild after perl upgrade 2011-10-25 08:36:16 +01:00
squashfs-tools squashfs: fix CVE-2012-4025 2012-12-17 17:24:54 +00:00
strace strace: fix kernel release string parsing 2013-03-10 04:36:51 +00:00
subversion subversion: updated to 1.7.8 2012-12-26 11:34:09 +00:00
swabber poky-default-revisions: move the SRCREV to recipe file 2011-05-04 15:06:36 +01:00
syslinux syslinux: use BPN instead of PN 2013-02-04 16:42:49 +00:00
tcf-agent Update proto -> protocol for recipes 2012-07-17 10:53:55 +01:00
tcltk tcl: updated to version 8.5.13 2013-01-07 14:30:50 +00:00
transfig OECore license fixes: meta/* 2011-12-08 15:24:32 +00:00
ubootchart ubootchart: cleanup update-alternatives deprecated code 2012-08-15 14:26:28 +01:00
unfs-server recipes-devtools: replace virtclass-native(sdk) with class-native(sdk) 2012-11-02 16:18:29 +00:00
unifdef unifdef-native: Correct LICENSE 2012-08-19 10:46:39 +01:00
valgrind valgrind: update to 3.8.1 2013-01-28 12:29:30 +00:00