]> code.ossystems Code Review - openembedded-core.git/commit
systemtap: fix do_compile failed on fedora21
authorHongxu Jia <hongxu.jia@windriver.com>
Tue, 25 Nov 2014 05:58:43 +0000 (13:58 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Nov 2014 15:27:58 +0000 (15:27 +0000)
commitecc9bb098d69fb1b8920d8ecfaff5c9741859c4d
treed959b4fd293f958aea63259ce7d0ff0b08d60002
parentf9c647b4373e09e788580fd59c4c42a9bcec9268
systemtap: fix do_compile failed on fedora21

For dora, the systemtap-native do_compile failed on fedora21
...
| In file included from /usr/include/stdio.h:27:0,
|                  from tmp/work/x86_64-linux/systemtap-native/
2.3+gitAUTOINC+e58138572e-r0/git/staprun/staprun.h:18,
|                  from tmp/work/x86_64-linux/systemtap-native/
2.3+gitAUTOINC+e58138572e-r0/git/staprun/staprun.c:24:
| /usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and
_SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
|  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use
_DEFAULT_SOURCE"
...

We backport a patch from 2.6 to fix this issue

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/systemtap/systemtap/0001-PR16632-Adapt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch [new file with mode: 0644]
meta/recipes-kernel/systemtap/systemtap_git.inc