All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] ltrace: Remove deprecated readdir_r()
Date: Mon, 25 Apr 2016 17:44:25 +0200	[thread overview]
Message-ID: <20160425154425.GA2558@jama> (raw)
In-Reply-To: <1461543138-25293-1-git-send-email-raj.khem@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2952 bytes --]

On Sun, Apr 24, 2016 at 05:12:18PM -0700, Khem Raj wrote:
> New glibc >= 2.24 will remove it

Is this still needed with:
http://patchwork.openembedded.org/patch/120317/
?

If so please rebase on top of master-next and resend.

> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  .../0001-replace-readdir_r-with-readdir.patch      | 33 ++++++++++++++++++++++
>  meta-oe/recipes-devtools/ltrace/ltrace_git.bb      |  1 +
>  2 files changed, 34 insertions(+)
>  create mode 100644 meta-oe/recipes-devtools/ltrace/ltrace/0001-replace-readdir_r-with-readdir.patch
> 
> diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-replace-readdir_r-with-readdir.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-replace-readdir_r-with-readdir.patch
> new file mode 100644
> index 0000000..8d2c264
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/ltrace/ltrace/0001-replace-readdir_r-with-readdir.patch
> @@ -0,0 +1,33 @@
> +From 64f98f84fd88797e219f9dde1ca387fee4b509f0 Mon Sep 17 00:00:00 2001
> +From: Khem Raj <raj.khem@gmail.com>
> +Date: Sun, 24 Apr 2016 16:58:17 -0700
> +Subject: [PATCH] replace readdir_r with readdir
> +
> +glibc 2.24 has deprecated readdir_r
> +
> +https://sourceware.org/ml/libc-alpha/2016-02/msg00093.html
> +
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +---
> +Upstream-Status: Submitted
> +
> + sysdeps/linux-gnu/proc.c | 5 +++--
> + 1 file changed, 3 insertions(+), 2 deletions(-)
> +
> +Index: git/sysdeps/linux-gnu/proc.c
> +===================================================================
> +--- git.orig/sysdeps/linux-gnu/proc.c
> ++++ git/sysdeps/linux-gnu/proc.c
> +@@ -240,9 +240,10 @@ process_tasks(pid_t pid, pid_t **ret_tas
> + 	size_t alloc = 0;
> + 
> + 	while (1) {
> +-		struct dirent entry;
> + 		struct dirent *result;
> +-		if (readdir_r(d, &entry, &result) != 0) {
> ++		errno = 0;
> ++		result = readdir(d);
> ++		if (errno != 0) {
> + 			free(tasks);
> + 			return -1;
> + 		}
> diff --git a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
> index d8d037e..7a7174c 100644
> --- a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
> +++ b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
> @@ -19,6 +19,7 @@ SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git;branch=ltrace-0.7 \
>             file://ltrace-0.7.2-unused-typedef.patch \
>             file://configure-allow-to-disable-selinux-support.patch \
>             file://0001-ltrace-fix-gcc-5-logical-not-parentheses.patch \
> +           file://0001-replace-readdir_r-with-readdir.patch \
>            "
>  S = "${WORKDIR}/git"
>  
> -- 
> 2.8.0
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

  reply	other threads:[~2016-04-25 15:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-25  0:12 [meta-oe][PATCH] ltrace: Remove deprecated readdir_r() Khem Raj
2016-04-25 15:44 ` Martin Jansa [this message]
2016-04-25 16:26   ` Khem Raj

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=20160425154425.GA2558@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-devel@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.