All of lore.kernel.org
 help / color / mirror / Atom feed
From: "yue.tao" <yue.tao@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Cc: Yue Tao <Yue.Tao@windriver.com>
Subject: Re: [PATCH] systemtap: Adapt to glibc deprecation of _BSD_SOURCE: add _DEFAULT_SOURCE
Date: Fri, 23 Jan 2015 15:56:48 +0800	[thread overview]
Message-ID: <54C1FEC0.3060809@windriver.com> (raw)
In-Reply-To: <1421999585-7473-1-git-send-email-Yue.Tao@windriver.com>

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



      reply	other threads:[~2015-01-23  7:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54C1FEC0.3060809@windriver.com \
    --to=yue.tao@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.