systemtap: fix do_compile failed on fedora21
cover systemtap: fix do_compile failed on fedora21
The following changes since commit 12dd4279c59c9c8dd08e42ebfaa1e6b611341aa1:
ltp: Added zip-native as a DEPENDS (2014-11-21 16:49:41 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib hongxu/fix-systemtap
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-systemtap
Hongxu Jia (1):
systemtap: fix do_compile failed on fedora21
...pt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch | 27 ++++++++++++++++++++++ meta/recipes-kernel/systemtap/systemtap_git.inc | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-PR16632-Adapt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch
Signature · 1 line
1.9.1
PATCH 1/1 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
--- ...pt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch | 27 ++++++++++++++++++++++ meta/recipes-kernel/systemtap/systemtap_git.inc | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-PR16632-Adapt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch
meta/recipes-kernel/systemtap/systemtap/0001-PR16632-Adapt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 62379eedc739605f04d02e76eb50c4d2f129ae08 Mon Sep 17 00:00:00 2001 +From: "Frank Ch. Eigler" <[email protected]> +Date: Tue, 25 Nov 2014 13:45:14 +0800 +Subject: [PATCH] PR16632: Adapt to glibc deprecation of _BSD_SOURCE: add _DEFAULT_SOURCE + +Upstream-Status: Backport from commit c6278d012a483d97f5ee4756406d9c88735d2838 + +Signed-off-by: Hongxu Jia <[email protected]> +--- + staprun/staprun.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/staprun/staprun.c b/staprun/staprun.c +index b85e2b0..1e1b5c3 100644 +--- a/staprun/staprun.c ++++ b/staprun/staprun.c +@@ -21,6 +21,7 @@ + + #define _XOPEN_SOURCE + #define _BSD_SOURCE ++#define _DEFAULT_SOURCE + #include "staprun.h" + #include "../privilege.h" + #include "../runtime/k_syms.h" +-- +1.9.1 +
meta/recipes-kernel/systemtap/systemtap_git.inc +1 -0
@@ -7,6 +7,7 @@ PV = "2.3+git${SRCPV}" SRC_URI = "git://sourceware.org/git/systemtap.git \ file://docproc-build-fix.patch \ file://obsolete_automake_macros.patch \ + file://0001-PR16632-Adapt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch \ " FILESPATH = "${FILE_DIRNAME}/systemtap"
Signature · 1 line
1.9.1