From: Max Krummenacher <max.oss.09@gmail.com>
To: Khem Raj <raj.khem@gmail.com>, openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 08/10] strace: Fix build with glibc 2.28
Date: Sun, 05 Aug 2018 11:50:06 +0200 [thread overview]
Message-ID: <1533462606.3114.1.camel@gmail.com> (raw)
In-Reply-To: <3257c4ab40a5ed8f6df7fa7273c02939fb27ac75.1533434674.git.raj.khem@gmail.com>
Hi
Am Samstag, den 04.08.2018, 19:07 -0700 schrieb Khem Raj:
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> .../0001-tests-Include-linux-stat.h.patch | 76 +++++++++++++++++++
> meta/recipes-devtools/strace/strace_4.23.bb | 1 +
> 2 files changed, 77 insertions(+)
> create mode 100644 meta/recipes-devtools/strace/strace/0001-tests-Include-linux-stat.h.patch
>
> diff --git a/meta/recipes-devtools/strace/strace/0001-tests-Include-linux-stat.h.patch
> b/meta/recipes-devtools/strace/strace/0001-tests-Include-linux-stat.h.patch
> new file mode 100644
> index 0000000000..cbb9c60de7
> --- /dev/null
> +++ b/meta/recipes-devtools/strace/strace/0001-tests-Include-linux-stat.h.patch
> @@ -0,0 +1,76 @@
> +From 264889246fcdd486867e8ca923094afa1689126c Mon Sep 17 00:00:00 2001
> +From: Khem Raj <raj.khem@gmail.com>
> +Date: Sat, 4 Aug 2018 13:18:03 -0700
> +Subject: [PATCH] tests: Include linux/stat.h
> +
> +Starting with glibc 2.28, sys/stat.h header will have the
> +definition for struct statx, in which case including linux/stat.h should be
> +avoided, in order to prevent a duplicate definition.
> +
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +---
> +Upstream-Status: Submitted [https://lists.strace.io/pipermail/strace-devel/2018-August/008329.htm
> l]
> + tests-m32/statx.c | 7 +++++++
> + tests-mx32/statx.c | 8 +++++++-
> + tests/statx.c | 8 +++++++-
> + 3 files changed, 21 insertions(+), 2 deletions(-)
> +
> +diff --git a/tests-m32/statx.c b/tests-m32/statx.c
> +index 816b7eb..7364a02 100644
> +--- a/tests-m32/statx.c
> ++++ b/tests-m32/statx.c
> +@@ -30,6 +30,13 @@
> +
> + #ifdef __NR_statx
> +
> ++# if defined(__GLIBC__)
> ++# if !__GLIBC_PREREQ(2,28)
> ++# include <linux/stat.h>
> ++# endif
> ++# else
> ++# include <linux/stat.h>
> ++# endif
> + # include <linux/stat.h>
Shouldn't the unconditional include be removed?
Max
> + # include "xlat.h"
> + # include "xlat/statx_masks.h"
> +diff --git a/tests-mx32/statx.c b/tests-mx32/statx.c
> +index 816b7eb..e9f9993 100644
> +--- a/tests-mx32/statx.c
> ++++ b/tests-mx32/statx.c
> +@@ -30,7 +30,13 @@
> +
> + #ifdef __NR_statx
> +
> +-# include <linux/stat.h>
> ++# if defined(__GLIBC__)
> ++# if !__GLIBC_PREREQ(2,28)
> ++# include <linux/stat.h>
> ++# endif
> ++# else
> ++# include <linux/stat.h>
> ++# endif
> + # include "xlat.h"
> + # include "xlat/statx_masks.h"
> + # include "xlat/statx_attrs.h"
> +diff --git a/tests/statx.c b/tests/statx.c
> +index 816b7eb..e9f9993 100644
> +--- a/tests/statx.c
> ++++ b/tests/statx.c
> +@@ -30,7 +30,13 @@
> +
> + #ifdef __NR_statx
> +
> +-# include <linux/stat.h>
> ++# if defined(__GLIBC__)
> ++# if !__GLIBC_PREREQ(2,28)
> ++# include <linux/stat.h>
> ++# endif
> ++# else
> ++# include <linux/stat.h>
> ++# endif
> + # include "xlat.h"
> + # include "xlat/statx_masks.h"
> + # include "xlat/statx_attrs.h"
> +--
> +2.18.0
> +
> diff --git a/meta/recipes-devtools/strace/strace_4.23.bb b/meta/recipes-
> devtools/strace/strace_4.23.bb
> index 0c159fc6f6..d966a77b89 100644
> --- a/meta/recipes-devtools/strace/strace_4.23.bb
> +++ b/meta/recipes-devtools/strace/strace_4.23.bb
> @@ -14,6 +14,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
> file://mips-SIGEMT.patch \
> file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \
> file://0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch \
> + file://0001-tests-Include-linux-stat.h.patch \
> "
> SRC_URI[md5sum] = "fad4bba0947553cef34d46a9fd78f039"
> SRC_URI[sha256sum] = "7860a6965f1dd832747bd8281a04738274398d32c56e9fbd0a68b1bb9ec09aad"
> --
> 2.18.0
>
next prev parent reply other threads:[~2018-08-05 9:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-05 2:06 [PATCH 00/10] Update to glibc 2.28 Khem Raj
2018-08-05 2:06 ` [PATCH 01/10] glibc: Upgrade to 2.28 Khem Raj
2018-08-05 2:06 ` [PATCH 02/10] systemd: Detect if statx struct is defined in sys/stat.h Khem Raj
2018-08-05 2:06 ` [PATCH 03/10] m4: Workaround gnulib's fseeko.c implementation Khem Raj
2018-08-05 2:06 ` [PATCH 04/10] findutils: Fix build with glibc 2.28 Khem Raj
2018-08-05 2:06 ` [PATCH 05/10] bootchart2: Update to master-tip Khem Raj
2018-08-05 2:06 ` [PATCH 06/10] gzip: Fix build with glibc 2.28 Khem Raj
2018-08-05 2:06 ` [PATCH 07/10] bison: Fix build break " Khem Raj
2018-08-05 2:07 ` [PATCH 08/10] strace: Fix build " Khem Raj
2018-08-05 9:50 ` Max Krummenacher [this message]
2018-08-05 15:15 ` Khem Raj
2018-08-05 2:07 ` [PATCH 09/10] blktool: " Khem Raj
2018-08-05 2:07 ` [PATCH 10/10] ppp: Use openssl for the DES instead of the libcrypt / glibc Khem Raj
2018-08-05 2:34 ` ✗ patchtest: failure for Update to glibc 2.28 Patchwork
2018-08-06 11:46 ` [PATCH 00/10] " Burton, Ross
2018-08-06 11:58 ` Burton, Ross
2018-08-06 19:12 ` Burton, Ross
2018-08-06 19:50 ` 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=1533462606.3114.1.camel@gmail.com \
--to=max.oss.09@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox