[OE-core] [PATCH] systemtap: Adapt to glibc deprecation of _BSD_SOURCE: add _DEFAULT_SOURCE

yue.tao yue.tao at windriver.com
Fri Jan 23 07:56:48 UTC 2015


Please ignore the patch, I sent a wrong version patch.

On 2015年01月23日 15:53, Yue Tao wrote:
> The _BSD_SOURCE has been deprecation in glibc 2.20 and greater, in order to
> being compatible with newer glibc version, add _DEFAULT_SOURCE.
>
> The build error on fedora21_64
>
> Signed-off-by: Yue Tao <Yue.Tao at windriver.com>
> ---
>   ...pt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch |   31 ++++++++++++++++++++
>   meta/recipes-kernel/systemtap/systemtap_git.inc    |    1 +
>   2 files changed, 32 insertions(+)
>   create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-PR16632-Adapt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch
>
> diff --git a/meta/recipes-kernel/systemtap/systemtap/0001-PR16632-Adapt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch b/meta/recipes-kernel/systemtap/systemtap/0001-PR16632-Adapt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch
> new file mode 100644
> index 0000000..d69d3bf
> --- /dev/null
> +++ b/meta/recipes-kernel/systemtap/systemtap/0001-PR16632-Adapt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch
> @@ -0,0 +1,31 @@
> +From c6278d012a483d97f5ee4756406d9c88735d2838 Mon Sep 17 00:00:00 2001
> +From: "Frank Ch. Eigler" <fche at redhat.com>
> +Date: Tue, 25 Feb 2014 11:34:35 -0500
> +Subject: [PATCH] PR16632: Adapt to glibc deprecation of _BSD_SOURCE: add
> + _DEFAULT_SOURCE
> +
> +(Upstream commit c6278d012a483d97f5ee4756406d9c88735d2838)
> +
> +Upstream-Status: Backport
> +
> +Signed-off-by: Yue Tao <yue.tao at windriver.com>
> +
> +---
> + staprun/staprun.c                       |    1 +
> + 2 files changed, 2 insertions(+)
> +
> +diff --git a/staprun/staprun.c b/staprun/staprun.c
> +index e4ced77..8782ade 100644
> +--- a/runtime/staprun/staprun.c
> ++++ b/runtime/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.7.9.5
> +
> diff --git a/meta/recipes-kernel/systemtap/systemtap_git.inc b/meta/recipes-kernel/systemtap/systemtap_git.inc
> index f81e8ba..d51fad2 100644
> --- a/meta/recipes-kernel/systemtap/systemtap_git.inc
> +++ b/meta/recipes-kernel/systemtap/systemtap_git.inc
> @@ -9,6 +9,7 @@ SRC_URI = "git://sourceware.org/git/systemtap.git \
>              file://system_map_location.patch \
>              file://tapset-linux-sendfile-syscall.patch \
>              file://configure-allow-to-disable-libvirt.patch \
> +           file://0001-PR16632-Adapt-to-glibc-deprecation-of-_BSD_SOURCE-ad.patch \
>             "
>   
>   # systemtap doesn't support mips




More information about the Openembedded-core mailing list