summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-03-19 09:43:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-20 18:54:56 +0000
commitd497d046f01071deb7ab5e408af6a1b912dfeba6 (patch)
tree7ea6cf572be5fe591e65e631ace3e820e9c35479
parentb1deccbd49cc3f785623b7600b8668fc0236f5cd (diff)
downloadpoky-d497d046f01071deb7ab5e408af6a1b912dfeba6.tar.gz
strace: update 5.10 -> 5.11
Drop disable-git-version-gen.patch as problem fixed upstream. Add parallel builds to ptest compile. strace-graph has been removed upstream. Adjust ptest patch to match upstream changes. License-Update: copyright years. (From OE-Core rev: 09af1c98499c9919dc2ebf7eb11796d3d912a8a5) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/strace/strace/Makefile-ptest.patch19
-rw-r--r--meta/recipes-devtools/strace/strace/disable-git-version-gen.patch37
-rw-r--r--meta/recipes-devtools/strace/strace/update-gawk-paths.patch44
-rw-r--r--meta/recipes-devtools/strace/strace_5.11.bb (renamed from meta/recipes-devtools/strace/strace_5.10.bb)18
4 files changed, 39 insertions, 79 deletions
diff --git a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
index 42c1893f39..4cef0c0127 100644
--- a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
+++ b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
@@ -1,4 +1,4 @@
1From ee47e205255928679701a5b769bd7ae0f815119d Mon Sep 17 00:00:00 2001 1From 205e7661822987825c7149ada4eefdc5368828ce Mon Sep 17 00:00:00 2001
2From: Gabriel Barbu <gabriel.barbu@enea.com> 2From: Gabriel Barbu <gabriel.barbu@enea.com>
3Date: Thu, 25 Jul 2013 15:28:33 +0200 3Date: Thu, 25 Jul 2013 15:28:33 +0200
4Subject: [PATCH] strace: Add ptest 4Subject: [PATCH] strace: Add ptest
@@ -10,14 +10,14 @@ Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
10Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> 10Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
11 11
12--- 12---
13 tests/Makefile.am | 19 +++++++++++++++++++ 13 tests/Makefile.am | 20 ++++++++++++++++++++
14 1 file changed, 19 insertions(+) 14 1 file changed, 20 insertions(+)
15 15
16diff --git a/tests/Makefile.am b/tests/Makefile.am 16diff --git a/tests/Makefile.am b/tests/Makefile.am
17index 8cf4c36..66162eb 100644 17index b8efce8..fa9a1af 100644
18--- a/tests/Makefile.am 18--- a/tests/Makefile.am
19+++ b/tests/Makefile.am 19+++ b/tests/Makefile.am
20@@ -15,6 +15,7 @@ SIZEOF_LONG = @SIZEOF_LONG@ 20@@ -16,6 +16,7 @@ SIZEOF_LONG = @SIZEOF_LONG@
21 MPERS_NAME = 21 MPERS_NAME =
22 MPERS_CC_FLAGS = 22 MPERS_CC_FLAGS =
23 ARCH_MFLAGS = 23 ARCH_MFLAGS =
@@ -25,16 +25,17 @@ index 8cf4c36..66162eb 100644
25 AM_CFLAGS = $(WARN_CFLAGS) 25 AM_CFLAGS = $(WARN_CFLAGS)
26 AM_CPPFLAGS = $(ARCH_MFLAGS) \ 26 AM_CPPFLAGS = $(ARCH_MFLAGS) \
27 -I$(builddir) \ 27 -I$(builddir) \
28@@ -538,3 +539,21 @@ BUILT_SOURCES = ksysent.h 28@@ -692,3 +693,22 @@ BUILT_SOURCES = ksysent.h
29 CLEANFILES = ksysent.h 29 CLEANFILES = ksysent.h
30 30
31 include ../scno.am 31 include ../src/scno.am
32+ 32+
33+buildtest-TESTS: $(check_PROGRAMS) $(TESTS) 33+buildtest-TESTS: $(check_PROGRAMS) $(TESTS)
34+ 34+
35+install-ptest: 35+install-ptest:
36+ install $(BUILDDIR)/strace $(DESTDIR) 36+ install -d $(DESTDIR)/src
37+ install $(srcdir)/../strace-log-merge $(DESTDIR) 37+ install $(BUILDDIR)/src/strace $(DESTDIR)/src
38+ install $(srcdir)/../src/strace-log-merge $(DESTDIR)/src
38+ install -d $(DESTDIR)/$(TESTDIR) 39+ install -d $(DESTDIR)/$(TESTDIR)
39+ cp $(BUILDDIR)/$(TESTDIR)/Makefile $(DESTDIR)/$(TESTDIR) 40+ cp $(BUILDDIR)/$(TESTDIR)/Makefile $(DESTDIR)/$(TESTDIR)
40+ sed -i -e 's/^Makefile:/_Makefile:/' $(DESTDIR)/$(TESTDIR)/Makefile 41+ sed -i -e 's/^Makefile:/_Makefile:/' $(DESTDIR)/$(TESTDIR)/Makefile
diff --git a/meta/recipes-devtools/strace/strace/disable-git-version-gen.patch b/meta/recipes-devtools/strace/strace/disable-git-version-gen.patch
deleted file mode 100644
index e8dbd7f273..0000000000
--- a/meta/recipes-devtools/strace/strace/disable-git-version-gen.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1From d87a7feb5ea75da7061afdd473faba044ec8eb0f Mon Sep 17 00:00:00 2001
2From: Andre McCurdy <armccurdy@gmail.com>
3Date: Mon, 18 Jan 2016 13:33:50 -0800
4Subject: [PATCH] strace: remove need for scripts
5
6git-version-gen copyright-year-gen file-date-gen are not included in
7tarball releases, so we need to avoid attempts to call them.
8
9Upstream-Status: Inappropriate [configuration]
10
11Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
12Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
13
14---
15 configure.ac | 6 +++---
16 1 file changed, 3 insertions(+), 3 deletions(-)
17
18diff --git a/configure.ac b/configure.ac
19index dd4f13f..65f000b 100644
20--- a/configure.ac
21+++ b/configure.ac
22@@ -12,12 +12,12 @@
23
24 AC_PREREQ(2.57)
25 AC_INIT([strace],
26- st_esyscmd_s([./git-version-gen .tarball-version]),
27+ m4_esyscmd_s([cat .tarball-version]),
28 [strace-devel@lists.strace.io],
29 [strace],
30 [https://strace.io])
31-m4_define([copyright_year], st_esyscmd_s([./copyright-year-gen .year]))
32-m4_define([manpage_date], st_esyscmd_s([./file-date-gen strace.1.in]))
33+m4_define([copyright_year], m4_esyscmd_s([cat .year]))
34+m4_define([manpage_date], m4_esyscmd_s([cat .strace.1.in.date]))
35 AC_COPYRIGHT([Copyright (c) 1999-]copyright_year[ The strace developers.])
36 AC_CONFIG_SRCDIR([strace.c])
37 AC_CONFIG_AUX_DIR([.])
diff --git a/meta/recipes-devtools/strace/strace/update-gawk-paths.patch b/meta/recipes-devtools/strace/strace/update-gawk-paths.patch
index d46b147de5..0c683496ae 100644
--- a/meta/recipes-devtools/strace/strace/update-gawk-paths.patch
+++ b/meta/recipes-devtools/strace/strace/update-gawk-paths.patch
@@ -1,4 +1,4 @@
1From 12a726b280eca94883edcb4da1eaaf8e93d41739 Mon Sep 17 00:00:00 2001 1From 4cd26cfaec255ec87f22abe886e0be89312a9671 Mon Sep 17 00:00:00 2001
2From: Andre McCurdy <armccurdy@gmail.com> 2From: Andre McCurdy <armccurdy@gmail.com>
3Date: Mon, 18 Jan 2016 11:01:00 -0800 3Date: Mon, 18 Jan 2016 11:01:00 -0800
4Subject: [PATCH] update gawk paths, /bin/gawk -> /usr/bin/gawk 4Subject: [PATCH] update gawk paths, /bin/gawk -> /usr/bin/gawk
@@ -13,7 +13,7 @@ Upstream-Status: Inappropriate [configuration]
13Signed-off-by: Andre McCurdy <armccurdy@gmail.com> 13Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
14 14
15--- 15---
16 mpers.awk | 2 +- 16 src/mpers.awk | 2 +-
17 tests-m32/caps.awk | 2 +- 17 tests-m32/caps.awk | 2 +-
18 tests-m32/match.awk | 2 +- 18 tests-m32/match.awk | 2 +-
19 tests-m32/rt_sigaction.awk | 2 +- 19 tests-m32/rt_sigaction.awk | 2 +-
@@ -25,18 +25,18 @@ Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
25 tests/rt_sigaction.awk | 2 +- 25 tests/rt_sigaction.awk | 2 +-
26 10 files changed, 10 insertions(+), 10 deletions(-) 26 10 files changed, 10 insertions(+), 10 deletions(-)
27 27
28diff --git a/mpers.awk b/mpers.awk 28diff --git a/src/mpers.awk b/src/mpers.awk
29index 17f8f2b..d69dcd5 100644 29index 25a212f..b2ff53f 100644
30--- a/mpers.awk 30--- a/src/mpers.awk
31+++ b/mpers.awk 31+++ b/src/mpers.awk
32@@ -1,4 +1,4 @@ 32@@ -1,4 +1,4 @@
33-#!/bin/gawk 33-#!/bin/gawk
34+#!/usr/bin/gawk 34+#!/usr/bin/gawk
35 # 35 #
36 # Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com> 36 # Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
37 # Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org> 37 # Copyright (c) 2015-2016 Dmitry V. Levin <ldv@strace.io>
38diff --git a/tests-m32/caps.awk b/tests-m32/caps.awk 38diff --git a/tests-m32/caps.awk b/tests-m32/caps.awk
39index 941564a..0bcc3ff 100644 39index 69500ec..e5dfd87 100644
40--- a/tests-m32/caps.awk 40--- a/tests-m32/caps.awk
41+++ b/tests-m32/caps.awk 41+++ b/tests-m32/caps.awk
42@@ -1,4 +1,4 @@ 42@@ -1,4 +1,4 @@
@@ -46,27 +46,27 @@ index 941564a..0bcc3ff 100644
46 # This file is part of caps strace test. 46 # This file is part of caps strace test.
47 # 47 #
48diff --git a/tests-m32/match.awk b/tests-m32/match.awk 48diff --git a/tests-m32/match.awk b/tests-m32/match.awk
49index d91c518..ee5d908 100644 49index 1cde87c..df63f78 100644
50--- a/tests-m32/match.awk 50--- a/tests-m32/match.awk
51+++ b/tests-m32/match.awk 51+++ b/tests-m32/match.awk
52@@ -1,4 +1,4 @@ 52@@ -1,4 +1,4 @@
53-#!/bin/gawk 53-#!/bin/gawk
54+#!/usr/bin/gawk 54+#!/usr/bin/gawk
55 # 55 #
56 # Copyright (c) 2014-2018 Dmitry V. Levin <ldv@altlinux.org> 56 # Copyright (c) 2014-2021 Dmitry V. Levin <ldv@strace.io>
57 # All rights reserved. 57 # All rights reserved.
58diff --git a/tests-m32/rt_sigaction.awk b/tests-m32/rt_sigaction.awk 58diff --git a/tests-m32/rt_sigaction.awk b/tests-m32/rt_sigaction.awk
59index 81dd813..9cd9549 100644 59index dce78f5..573d9ea 100644
60--- a/tests-m32/rt_sigaction.awk 60--- a/tests-m32/rt_sigaction.awk
61+++ b/tests-m32/rt_sigaction.awk 61+++ b/tests-m32/rt_sigaction.awk
62@@ -1,4 +1,4 @@ 62@@ -1,4 +1,4 @@
63-#!/bin/gawk 63-#!/bin/gawk
64+#!/usr/bin/gawk 64+#!/usr/bin/gawk
65 # 65 #
66 # Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org> 66 # Copyright (c) 2014-2015 Dmitry V. Levin <ldv@strace.io>
67 # Copyright (c) 2016 Elvira Khabirova <lineprinter0@gmail.com> 67 # Copyright (c) 2016 Elvira Khabirova <lineprinter0@gmail.com>
68diff --git a/tests-mx32/caps.awk b/tests-mx32/caps.awk 68diff --git a/tests-mx32/caps.awk b/tests-mx32/caps.awk
69index 941564a..0bcc3ff 100644 69index 69500ec..e5dfd87 100644
70--- a/tests-mx32/caps.awk 70--- a/tests-mx32/caps.awk
71+++ b/tests-mx32/caps.awk 71+++ b/tests-mx32/caps.awk
72@@ -1,4 +1,4 @@ 72@@ -1,4 +1,4 @@
@@ -76,27 +76,27 @@ index 941564a..0bcc3ff 100644
76 # This file is part of caps strace test. 76 # This file is part of caps strace test.
77 # 77 #
78diff --git a/tests-mx32/match.awk b/tests-mx32/match.awk 78diff --git a/tests-mx32/match.awk b/tests-mx32/match.awk
79index d91c518..ee5d908 100644 79index 1cde87c..df63f78 100644
80--- a/tests-mx32/match.awk 80--- a/tests-mx32/match.awk
81+++ b/tests-mx32/match.awk 81+++ b/tests-mx32/match.awk
82@@ -1,4 +1,4 @@ 82@@ -1,4 +1,4 @@
83-#!/bin/gawk 83-#!/bin/gawk
84+#!/usr/bin/gawk 84+#!/usr/bin/gawk
85 # 85 #
86 # Copyright (c) 2014-2018 Dmitry V. Levin <ldv@altlinux.org> 86 # Copyright (c) 2014-2021 Dmitry V. Levin <ldv@strace.io>
87 # All rights reserved. 87 # All rights reserved.
88diff --git a/tests-mx32/rt_sigaction.awk b/tests-mx32/rt_sigaction.awk 88diff --git a/tests-mx32/rt_sigaction.awk b/tests-mx32/rt_sigaction.awk
89index 81dd813..9cd9549 100644 89index dce78f5..573d9ea 100644
90--- a/tests-mx32/rt_sigaction.awk 90--- a/tests-mx32/rt_sigaction.awk
91+++ b/tests-mx32/rt_sigaction.awk 91+++ b/tests-mx32/rt_sigaction.awk
92@@ -1,4 +1,4 @@ 92@@ -1,4 +1,4 @@
93-#!/bin/gawk 93-#!/bin/gawk
94+#!/usr/bin/gawk 94+#!/usr/bin/gawk
95 # 95 #
96 # Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org> 96 # Copyright (c) 2014-2015 Dmitry V. Levin <ldv@strace.io>
97 # Copyright (c) 2016 Elvira Khabirova <lineprinter0@gmail.com> 97 # Copyright (c) 2016 Elvira Khabirova <lineprinter0@gmail.com>
98diff --git a/tests/caps.awk b/tests/caps.awk 98diff --git a/tests/caps.awk b/tests/caps.awk
99index 941564a..0bcc3ff 100644 99index 69500ec..e5dfd87 100644
100--- a/tests/caps.awk 100--- a/tests/caps.awk
101+++ b/tests/caps.awk 101+++ b/tests/caps.awk
102@@ -1,4 +1,4 @@ 102@@ -1,4 +1,4 @@
@@ -106,22 +106,22 @@ index 941564a..0bcc3ff 100644
106 # This file is part of caps strace test. 106 # This file is part of caps strace test.
107 # 107 #
108diff --git a/tests/match.awk b/tests/match.awk 108diff --git a/tests/match.awk b/tests/match.awk
109index d91c518..ee5d908 100644 109index 1cde87c..df63f78 100644
110--- a/tests/match.awk 110--- a/tests/match.awk
111+++ b/tests/match.awk 111+++ b/tests/match.awk
112@@ -1,4 +1,4 @@ 112@@ -1,4 +1,4 @@
113-#!/bin/gawk 113-#!/bin/gawk
114+#!/usr/bin/gawk 114+#!/usr/bin/gawk
115 # 115 #
116 # Copyright (c) 2014-2018 Dmitry V. Levin <ldv@altlinux.org> 116 # Copyright (c) 2014-2021 Dmitry V. Levin <ldv@strace.io>
117 # All rights reserved. 117 # All rights reserved.
118diff --git a/tests/rt_sigaction.awk b/tests/rt_sigaction.awk 118diff --git a/tests/rt_sigaction.awk b/tests/rt_sigaction.awk
119index 81dd813..9cd9549 100644 119index dce78f5..573d9ea 100644
120--- a/tests/rt_sigaction.awk 120--- a/tests/rt_sigaction.awk
121+++ b/tests/rt_sigaction.awk 121+++ b/tests/rt_sigaction.awk
122@@ -1,4 +1,4 @@ 122@@ -1,4 +1,4 @@
123-#!/bin/gawk 123-#!/bin/gawk
124+#!/usr/bin/gawk 124+#!/usr/bin/gawk
125 # 125 #
126 # Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org> 126 # Copyright (c) 2014-2015 Dmitry V. Levin <ldv@strace.io>
127 # Copyright (c) 2016 Elvira Khabirova <lineprinter0@gmail.com> 127 # Copyright (c) 2016 Elvira Khabirova <lineprinter0@gmail.com>
diff --git a/meta/recipes-devtools/strace/strace_5.10.bb b/meta/recipes-devtools/strace/strace_5.11.bb
index 17bde082a3..f6a91df1d2 100644
--- a/meta/recipes-devtools/strace/strace_5.10.bb
+++ b/meta/recipes-devtools/strace/strace_5.11.bb
@@ -3,10 +3,9 @@ HOMEPAGE = "http://strace.io"
3DESCRIPTION = "strace is a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor and tamper with interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state." 3DESCRIPTION = "strace is a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor and tamper with interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state."
4SECTION = "console/utils" 4SECTION = "console/utils"
5LICENSE = "LGPL-2.1+ & GPL-2+" 5LICENSE = "LGPL-2.1+ & GPL-2+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=c756d9d5dabc27663df64f0bf492166c" 6LIC_FILES_CHKSUM = "file://COPYING;md5=318cfc887fc8723f4e9d4709b55e065b"
7 7
8SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ 8SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
9 file://disable-git-version-gen.patch \
10 file://update-gawk-paths.patch \ 9 file://update-gawk-paths.patch \
11 file://Makefile-ptest.patch \ 10 file://Makefile-ptest.patch \
12 file://run-ptest \ 11 file://run-ptest \
@@ -16,7 +15,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
16 file://uintptr_t.patch \ 15 file://uintptr_t.patch \
17 file://0001-strace-fix-reproducibilty-issues.patch \ 16 file://0001-strace-fix-reproducibilty-issues.patch \
18 " 17 "
19SRC_URI[sha256sum] = "fe3982ea4cd9aeb3b4ba35f6279f0b577a37175d3282be24b9a5537b56b8f01c" 18SRC_URI[sha256sum] = "ffe340b10c145a0f85734271e9cce56457d23f21a7ea5931ab32f8cf4e793879"
20 19
21inherit autotools ptest 20inherit autotools ptest
22 21
@@ -34,19 +33,16 @@ CFLAGS_append_libc-musl = " -Dsigcontext_struct=sigcontext"
34TESTDIR = "tests" 33TESTDIR = "tests"
35PTEST_BUILD_HOST_PATTERN = "^(DEB_CHANGELOGTIME|RPM_CHANGELOGTIME|WARN_CFLAGS_FOR_BUILD|LDFLAGS_FOR_BUILD)" 34PTEST_BUILD_HOST_PATTERN = "^(DEB_CHANGELOGTIME|RPM_CHANGELOGTIME|WARN_CFLAGS_FOR_BUILD|LDFLAGS_FOR_BUILD)"
36 35
37do_install_append() {
38 # We don't ship strace-graph here because it needs perl
39 rm ${D}${bindir}/strace-graph
40}
41
42do_compile_ptest() { 36do_compile_ptest() {
43 oe_runmake -C ${TESTDIR} buildtest-TESTS 37 oe_runmake ${PARALLEL_MAKE} -C ${TESTDIR} buildtest-TESTS
44} 38}
45 39
46do_install_ptest() { 40do_install_ptest() {
47 oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR} 41 oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR}
48 install -m 755 ${S}/test-driver ${D}${PTEST_PATH} 42 mkdir -p ${D}${PTEST_PATH}/build-aux
49 install -m 644 ${B}/config.h ${D}${PTEST_PATH} 43 mkdir -p ${D}${PTEST_PATH}/src
44 install -m 755 ${S}/build-aux/test-driver ${D}${PTEST_PATH}/build-aux/
45 install -m 644 ${B}/src/config.h ${D}${PTEST_PATH}/src/
50 sed -i -e '/^src/s/strace.*[0-9]/ptest/' ${D}/${PTEST_PATH}/${TESTDIR}/Makefile 46 sed -i -e '/^src/s/strace.*[0-9]/ptest/' ${D}/${PTEST_PATH}/${TESTDIR}/Makefile
51} 47}
52 48