From patchwork Sun Dec 29 18:44:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182594 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp5506782ild; Sun, 29 Dec 2019 10:45:43 -0800 (PST) X-Google-Smtp-Source: APXvYqx7tXIsfqpGTgnpArQGrenzeowtH9V8r0kv2U1tVlXwsKHElSffF/21wW+T/uxjlo6qJYKr X-Received: by 2002:a62:8782:: with SMTP id i124mr66115968pfe.22.1577645143541; Sun, 29 Dec 2019 10:45:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577645143; cv=none; d=google.com; s=arc-20160816; b=Q2wf2lDny9zuIFvb7PFSStU2fKtAq6watAZflhfuaPbp/8j1CJNewoxbpFIFeUv9gs Tp57vlQRfuNdjVuiwjezJ4Lv3vNfJSx3qBpjGTCaC/60TCVtDADgSXzHNsbEQgs/qf6+ Fo3+Q5HNPFmBFcwNgxVMD3agP0vjY1uVAaaZsi4kJ9Yb4BzDW4ks8+pxUiNeT5vD+xqq ybAjQQDeTOyUhhR9WwBfp7xUEuGAQrzjaicnqOri22+CLfmeZ0gtOKcQD92M3WBCi6qu otk4zIzXlc+XqpSPrgaDr7W3FUIt0pKqyp8SMPZF9tXiCvlMQCCorAGMmM2+aJQtC30u sNsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=eKQzNbFyKBETu0q9t3uMMIBDlwOIij2RR+fzgu5Ehuk=; b=Rt8Rn9P1vLfCetP3f3Lots+uMRRbvH6p239NNzIrte3y3zAX47SwxVA+7jbzsRhLNb q8rfkAGM4/ohsX/gWHYto0a4Dk00ZACQFtcwxS2ePUcMXAmi10iInX57Wb6ToMKdWdtz KMMpJxp9Yc0cWZejuIp0dcUJQD5fbr3bmioesKHu78XUFtTDPDUMvlOb+DVLaVHmQaE5 uGUjPpankxKNZ53EpAJdIYJ6kD+0gi3StpzVMRIXVxJWPONpDXvzZZFY7P1kkFilyr7K R0NhYQhA5KrtZBoL7lHJ7/yrI6n6ul3r3P0ZHOYVNghuAQm0vPO8xRwT4yxBu/47gr1k nJ4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=lf1snVBp; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 21si38989559pgn.257.2019.12.29.10.45.43; Sun, 29 Dec 2019 10:45:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=lf1snVBp; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id ED24F7F8E5; Sun, 29 Dec 2019 18:44:57 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mail.openembedded.org (Postfix) with ESMTP id 4CB4D7F87C for ; Sun, 29 Dec 2019 18:44:36 +0000 (UTC) Received: by mail-pl1-f181.google.com with SMTP id bd4so13808948plb.8 for ; Sun, 29 Dec 2019 10:44:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Rju4aJpA7sDGRmBYbx8vwerBtK0LKVKl+LuWnt732XM=; b=lf1snVBpV1RJIPabueI9uXn56iA+TX7NmnmUwo4T1olMYz2g8AnwH42mat1LIgrQL7 pbgRmX/JnW7Zze/1jutt10AF56VKVRiklrxhyx0OvypyVxXTvTBH6HMqunyPaxnVWqyI j30GBiSum5vLULFLNyLnRw/o243cPRLjkP7SCK8YrGRXSCXXKTsV3ObKu1bNqmEX1O57 r92XmHRwkUZwB2KJB8wVjZOUv8eGldeAqz9ZaM0m6wc6EVAF30XbBcW5v4fVKmC1NW/7 qjdpLTaWgt2ccg5KZWkfNH50+PgOjEzGVjB7XmLxxE5euTtKZqFh9FGIWvQo0TV3qTuv W3OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Rju4aJpA7sDGRmBYbx8vwerBtK0LKVKl+LuWnt732XM=; b=jkxMy3XcN6UHcMoL/DdRACeieaP3qUWxD+2xglS14/viizHIH9pexWCWhHPTL9gQAK qIQsvfBniEXe9kyMmnKJr1qOdNWIsz6n07fHYRV16Ozh4z6up5fKv0c2xVAcEPDqhQoY 4ELujEvmjkLlmrUBFMJJtCrWwdi2+1XJ82BG1FLClKtxgVcgzAKsJFGZKs9WgkCUy3yV EJHWNJj4LV/dLM7BgTk0LtxvA1PmMaWTLF+t/MCbT6vMNsOik9bdYn5Km9T71iHWtpd+ m2NRYizX1bhlxyo3iqluvocw01vu1DIb/y7f8L1wZ6MjiVyayN6C9mefdeKRUTXpNDiO c0pw== X-Gm-Message-State: APjAAAUU8I8pTSSvL4iQuBsKfMdyeYSKA19GdiyU5tTu0CkApYLc4q2l YGKfk8OZaFMeG6B6MgMetr1OBRbs62E= X-Received: by 2002:a17:90a:bf0c:: with SMTP id c12mr39638158pjs.112.1577645076968; Sun, 29 Dec 2019 10:44:36 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::2f83]) by smtp.gmail.com with ESMTPSA id bo19sm21257085pjb.25.2019.12.29.10.44.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2019 10:44:36 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 29 Dec 2019 10:44:06 -0800 Message-Id: <20191229184415.19514-10-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229184415.19514-1-raj.khem@gmail.com> References: <20191229184415.19514-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 10/19] strace: Upgrade to 5.4 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Remove a patch already present upstream Add a patch to fix build with upcoming glibc 2.31 where __ptrace_syscall_info definition is added Signed-off-by: Khem Raj --- ...yscall_info-to-__ptrace_syscall_info.patch | 52 +++++++++++++++++++ ...Check-for-mips-and-alpha-before-usin.patch | 32 ------------ .../strace/strace/Makefile-ptest.patch | 6 +-- ...st-test-for-m32-mx32-compile-support.patch | 10 ++-- .../strace/strace/sys_headers.patch | 2 +- .../strace/{strace_5.3.bb => strace_5.4.bb} | 6 +-- 6 files changed, 62 insertions(+), 46 deletions(-) create mode 100644 meta/recipes-devtools/strace/strace/0001-define-ptrace_syscall_info-to-__ptrace_syscall_info.patch delete mode 100644 meta/recipes-devtools/strace/strace/0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch rename meta/recipes-devtools/strace/{strace_5.3.bb => strace_5.4.bb} (89%) -- 2.24.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/strace/strace/0001-define-ptrace_syscall_info-to-__ptrace_syscall_info.patch b/meta/recipes-devtools/strace/strace/0001-define-ptrace_syscall_info-to-__ptrace_syscall_info.patch new file mode 100644 index 0000000000..dd0617a15f --- /dev/null +++ b/meta/recipes-devtools/strace/strace/0001-define-ptrace_syscall_info-to-__ptrace_syscall_info.patch @@ -0,0 +1,52 @@ +From 86bbe1135d5d13db1ced64141acfb513c03d2f30 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 21 Dec 2019 10:18:38 -0800 +Subject: [PATCH] define ptrace_syscall_info to __ptrace_syscall_info + +glibc 2.31+ has defined __ptrace_syscall_info [1] + +[1] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d1e411e5c786ce3028d98b4e6fc02c2fcf66ae37;hp=2e4e75727eb05eef4c10470d865bd42962d5fae7 + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + get_personality.h | 2 ++ + ptrace.h | 2 ++ + 2 files changed, 4 insertions(+) + +--- a/get_personality.h ++++ b/get_personality.h +@@ -10,7 +10,9 @@ + + # include "ptrace.h" + ++# if HAVE_STRUCT___PTRACE_SYSCALL_INFO + extern int + get_personality_from_syscall_info(const struct ptrace_syscall_info *); ++# endif + + #endif /* !STRACE_GET_PERSONALITY_H */ +--- a/ptrace.h ++++ b/ptrace.h +@@ -186,6 +186,9 @@ struct ptrace_syscall_info { + }; + # endif + ++# if HAVE_STRUCT___PTRACE_SYSCALL_INFO ++# define ptrace_syscall_info __ptrace_syscall_info ++# endif + # if !HAVE_DECL_PTRACE_PEEKUSER + # define PTRACE_PEEKUSER PTRACE_PEEKUSR + # endif +--- a/configure.ac ++++ b/configure.ac +@@ -317,7 +317,8 @@ AC_CHECK_MEMBERS([struct stat.st_mtime_n + AC_CHECK_TYPES(m4_normalize([ + struct pt_all_user_regs, + struct ia64_fpreg, +- struct ptrace_peeksiginfo_args ++ struct ptrace_peeksiginfo_args, ++ struct __ptrace_syscall_info + ]),,, [#include ]) + + # For kernels that do not have v3.10-rc1~201^2~11 diff --git a/meta/recipes-devtools/strace/strace/0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch b/meta/recipes-devtools/strace/strace/0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch deleted file mode 100644 index 95d85bf34a..0000000000 --- a/meta/recipes-devtools/strace/strace/0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 879ae71c472ce522f1b3514d2abf6ad49b4acc07 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Mon, 18 Sep 2017 22:51:32 -0700 -Subject: [PATCH] tests/sigaction: Check for mips and alpha before using - sa_restorer - -local structure does not define restorer member for mips and alpha -in definition, we need to match that assumption here where they are -being set - -Fixes -| ../../strace-4.18/tests/sigaction.c:177:36: error: 'struct_set_sa {aka struct set_sa}' has no member named 'restorer' -| # define SA_RESTORER_ARGS , new_act->restorer - -Upstream-Status: Pending -Signed-off-by: Khem Raj - ---- - tests/sigaction.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/tests/sigaction.c -+++ b/tests/sigaction.c -@@ -156,7 +156,7 @@ main(void) - sigdelset(mask.libc, SIGHUP); - - memcpy(new_act->mask, mask.old, sizeof(mask.old)); --# ifdef SA_RESTORER -+#if defined(SA_RESTORER) && !defined(MIPS) && !defined(ALPHA) - new_act->flags = SA_RESTORER; - new_act->restorer = (unsigned long) 0xdeadfacecafef00dULL; - # define SA_RESTORER_FMT ", sa_flags=SA_RESTORER, sa_restorer=%#lx" diff --git a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch index 08fa5c53b8..2437d1fb6d 100644 --- a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch +++ b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch @@ -13,11 +13,9 @@ Signed-off-by: Anuj Mittal tests/Makefile.am | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -diff --git a/tests/Makefile.am b/tests/Makefile.am -index 825c989..4623c48 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am -@@ -14,6 +14,7 @@ SIZEOF_LONG = @SIZEOF_LONG@ +@@ -15,6 +15,7 @@ SIZEOF_LONG = @SIZEOF_LONG@ MPERS_NAME = MPERS_CC_FLAGS = ARCH_MFLAGS = @@ -25,7 +23,7 @@ index 825c989..4623c48 100644 AM_CFLAGS = $(WARN_CFLAGS) AM_CPPFLAGS = $(ARCH_MFLAGS) \ -I$(builddir) \ -@@ -477,3 +478,21 @@ BUILT_SOURCES = ksysent.h +@@ -531,3 +532,21 @@ BUILT_SOURCES = ksysent.h CLEANFILES = ksysent.h include ../scno.am diff --git a/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch b/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch index a9bd900da8..ae22105cbe 100644 --- a/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch +++ b/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch @@ -23,19 +23,17 @@ Signed-off-by: Andre McCurdy m4/mpers.m4 | 2 ++ 1 file changed, 2 insertions(+) -diff --git a/m4/mpers.m4 b/m4/mpers.m4 -index 13725d7..d8578ea 100644 --- a/m4/mpers.m4 +++ b/m4/mpers.m4 -@@ -88,6 +88,7 @@ case "$arch" in - CFLAGS="$CFLAGS MPERS_CFLAGS $IFLAG" - AC_CACHE_CHECK([for mpers_name personality compile support], [st_cv_cc], +@@ -103,6 +103,7 @@ case "$arch" in + CFLAGS="$CFLAGS MPERS_CFLAGS${IFLAG:+ }$IFLAG" + AC_CACHE_CHECK([for mpers_name personality compile support (using $CC $CFLAGS)], [st_cv_cc], [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include + #include int main(){return 0;}]])], [st_cv_cc=yes], [st_cv_cc=no])]) -@@ -95,6 +96,7 @@ case "$arch" in +@@ -110,6 +111,7 @@ case "$arch" in AC_CACHE_CHECK([for mpers_name personality runtime support], [st_cv_runtime], [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include diff --git a/meta/recipes-devtools/strace/strace/sys_headers.patch b/meta/recipes-devtools/strace/strace/sys_headers.patch index e46f2c350d..d1b704e0d9 100644 --- a/meta/recipes-devtools/strace/strace/sys_headers.patch +++ b/meta/recipes-devtools/strace/strace/sys_headers.patch @@ -11,7 +11,7 @@ Suggested-by: Rich Felker Signed-off-by: Khem Raj --- a/configure.ac +++ b/configure.ac -@@ -439,11 +439,7 @@ AC_CHECK_HEADERS(m4_normalize([ +@@ -441,11 +441,7 @@ AC_CHECK_HEADERS(m4_normalize([ sys/conf.h sys/eventfd.h sys/fanotify.h diff --git a/meta/recipes-devtools/strace/strace_5.3.bb b/meta/recipes-devtools/strace/strace_5.4.bb similarity index 89% rename from meta/recipes-devtools/strace/strace_5.3.bb rename to meta/recipes-devtools/strace/strace_5.4.bb index b000afb30b..1e428ccd64 100644 --- a/meta/recipes-devtools/strace/strace_5.3.bb +++ b/meta/recipes-devtools/strace/strace_5.4.bb @@ -12,13 +12,13 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ file://run-ptest \ 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://ptest-spacesave.patch \ file://uintptr_t.patch \ file://sys_headers.patch \ + file://0001-define-ptrace_syscall_info-to-__ptrace_syscall_info.patch \ " -SRC_URI[md5sum] = "84f5e72de813c9b1bb6057ee8ab428d8" -SRC_URI[sha256sum] = "6c131198749656401fe3efd6b4b16a07ea867e8f530867ceae8930bbc937a047" +SRC_URI[md5sum] = "b2b58f05eb3c5c0bf9d1e26003b4d698" +SRC_URI[sha256sum] = "f7d00514d51290b6db78ad7a9de709baf93caa5981498924cbc9a744cfd2a741" inherit autotools ptest