* [PATCH] systemtap: Adapt to glibc deprecation of _BSD_SOURCE: add _DEFAULT_SOURCE
@ 2015-01-23 7:53 Yue Tao
2015-01-23 7:56 ` yue.tao
0 siblings, 1 reply; 2+ messages in thread
From: Yue Tao @ 2015-01-23 7:53 UTC (permalink / raw)
To: openembedded-core; +Cc: yue.tao
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@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@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@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
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] systemtap: Adapt to glibc deprecation of _BSD_SOURCE: add _DEFAULT_SOURCE
2015-01-23 7:53 [PATCH] systemtap: Adapt to glibc deprecation of _BSD_SOURCE: add _DEFAULT_SOURCE Yue Tao
@ 2015-01-23 7:56 ` yue.tao
0 siblings, 0 replies; 2+ messages in thread
From: yue.tao @ 2015-01-23 7:56 UTC (permalink / raw)
To: openembedded-core; +Cc: Yue Tao
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@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@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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-23 7:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-23 7:53 [PATCH] systemtap: Adapt to glibc deprecation of _BSD_SOURCE: add _DEFAULT_SOURCE Yue Tao
2015-01-23 7:56 ` yue.tao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox