strace: remove obsolete patch
PATCH 1/3 strace: remove obsolete patch
This patch isn't needed with strace 5.14, which includes stdint.h centrally.
--- .../strace/strace/uintptr_t.patch | 27 ------------------- meta/recipes-devtools/strace/strace_5.14.bb | 1 - 2 files changed, 28 deletions(-) delete mode 100644 meta/recipes-devtools/strace/strace/uintptr_t.patch
meta/recipes-devtools/strace/strace/uintptr_t.patch deleted +0 -27
@@ -1,27 +0,0 @@ -From a6c9366bfbcef6f3f4bb068b1f1a5623935b5013 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Tue, 5 Nov 2019 20:05:08 -0800 -Subject: [PATCH] include stdint.h for getting uintptr_t definition - -fixes do_compile_ptest_base -tests/fanotify_mark.c:191:23: error: 'uintptr_t' undeclared (first use in this function); did you mean 'intptr_t'? - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> - ---- - tests/fanotify_mark.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/tests/fanotify_mark.c b/tests/fanotify_mark.c -index aade643..de579f3 100644 ---- a/tests/fanotify_mark.c -+++ b/tests/fanotify_mark.c -@@ -18,6 +18,7 @@ - - # include <limits.h> - # include <stdio.h> -+# include <stdint.h> - # include <unistd.h> - # include <sys/fanotify.h> -
meta/recipes-devtools/strace/strace_5.14.bb +0 -1
@@ -12,7 +12,6 @@ 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://ptest-spacesave.patch \ - file://uintptr_t.patch \ file://0001-strace-fix-reproducibilty-issues.patch \ " SRC_URI[sha256sum] = "901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73"
Signature · 1 line
2.25.1
PATCH 2/3 strace: handle loaded test systems
If the host is loaded when running the tests there is a good chance that strace-T.test will fail, as it does a sleep(1) and checks that the nanosleep() call lasted for 0.9-1.1 seconds.
Relax the test so that the test passes if the call takes less than two seconds.
[ YOCTO #14596 ]
--- meta/recipes-devtools/strace/strace/ptest-sleep.patch | 7 +++++++ meta/recipes-devtools/strace/strace_5.14.bb | 1 + 2 files changed, 8 insertions(+) create mode 100644 meta/recipes-devtools/strace/strace/ptest-sleep.patch
meta/recipes-devtools/strace/strace/ptest-sleep.patch new file +7 -0
@@ -0,0 +1,7 @@ +diff --git a/tests/strace-T.expected b/tests/strace-T.expected +index 1ea020465..f78d3e2c8 100644 +--- a/tests/strace-T.expected ++++ b/tests/strace-T.expected +@@ -1 +1 @@ +-nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.[01]|0\.9)[[:digit:]]{5}> ++nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.|0\.9)[[:digit:]]{5}>
meta/recipes-devtools/strace/strace_5.14.bb +1 -0
@@ -13,6 +13,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ file://ptest-spacesave.patch \ file://0001-strace-fix-reproducibilty-issues.patch \ + file://ptest-sleep.patch \ " SRC_URI[sha256sum] = "901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73"
Signature · 1 line
2.25.1
Re: [OE-core] [PATCH 2/3] strace: handle loaded test systems
Hi Ross,
Quoted 22 lines · Ross Burton
If the host is loaded when running the tests there is a good chance that strace-T.test will fail, as it does a sleep(1) and checks that the
nanosleep()call lasted for 0.9-1.1 seconds.Relax the test so that the test passes if the call takes less than two seconds.
[ YOCTO #14596 ]
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-devtools/strace/strace/ptest-sleep.patch | 7 +++++++ meta/recipes-devtools/strace/strace_5.14.bb | 1 + 2 files changed, 8 insertions(+) create mode 100644 meta/recipes-devtools/strace/strace/ptest-sleep.patchmeta/recipes-devtools/strace/strace/ptest-sleep.patch new file +0
-0
meta/recipes-devtools/strace/strace/ptest-sleep.patch line 7
Quoted 7 lines
meta/recipes-devtools/strace/strace/ptest-sleep.patch new file +7
-0@@ -0,0 +1,7 @@ +diff --git a/tests/strace-T.expected b/tests/strace-T.expected +index 1ea020465..f78d3e2c8 100644 +--- a/tests/strace-T.expected ++++ b/tests/strace-T.expected +@@ -1 +1 @@ +-nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.[01]|0\.9)[[:digit:]]{5}> ++nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.|0\.9)[[:digit:]]{5}>
Those two builds have the patch and reliably failed:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2425/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2428/steps/12/logs/stdio
Quoted 25 lines
meta/recipes-devtools/strace/strace_5.14.bb +1
-0@@ -13,6 +13,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ file://ptest-spacesave.patch \ file://0001-strace-fix-reproducibilty-issues.patch \ + file://ptest-sleep.patch \ " SRC_URI[sha256sum] = "901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73"Signature · 11 lines
2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157202): https://lists.openembedded.org/g/openembedded-core/message/157202 Mute This Topic: https://lists.openembedded.org/mt/86448553/3617179 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [OE-core] [PATCH 2/3] strace: handle loaded test systems
Sigh. I'll just remove the test entirely then.
Ross
Quoted 70 lines · Alexandre Belloni
Hi Ross,
Quoted 22 lines · Ross Burton
If the host is loaded when running the tests there is a good chance that strace-T.test will fail, as it does a sleep(1) and checks that the
nanosleep()call lasted for 0.9-1.1 seconds.Relax the test so that the test passes if the call takes less than two seconds.
[ YOCTO #14596 ]
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-devtools/strace/strace/ptest-sleep.patch | 7 +++++++ meta/recipes-devtools/strace/strace_5.14.bb | 1 + 2 files changed, 8 insertions(+) create mode 100644 meta/recipes-devtools/strace/strace/ptest-sleep.patchmeta/recipes-devtools/strace/strace/ptest-sleep.patch new file +0
-0meta/recipes-devtools/strace/strace/ptest-sleep.patch line 7
Quoted 7 lines
meta/recipes-devtools/strace/strace/ptest-sleep.patch new file +7
-0@@ -0,0 +1,7 @@ +diff --git a/tests/strace-T.expected b/tests/strace-T.expected +index 1ea020465..f78d3e2c8 100644 +--- a/tests/strace-T.expected ++++ b/tests/strace-T.expected +@@ -1 +1 @@ +-nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.[01]|0\.9)[[:digit:]]{5}> ++nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.|0\.9)[[:digit:]]{5}>Those two builds have the patch and reliably failed:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2425/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2428/steps/12/logs/stdioQuoted 17 lines
meta/recipes-devtools/strace/strace_5.14.bb +1
-1@@ -13,6 +13,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ file://ptest-spacesave.patch \ file://0001-strace-fix-reproducibilty-issues.patch \ + file://ptest-sleep.patch \ " SRC_URI[sha256sum] = "901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73" --2.25.1
Quoted 8 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#157202): https://lists.openembedded.org/g/openembedded-core/message/157202
Mute This Topic: https://lists.openembedded.org/mt/86448553/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=---
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Re: [OE-core] [PATCH 2/3] strace: handle loaded test systems
Quoted 1 line · Ross Burton
Sigh. I'll just remove the test entirely then.
Actually, I think your regex is not correct because it also failed on qemux86. I believe you are missing a digit in the case it takes more than one second, before you had '1.[01]' then 5 digits, you changed it to '1.' and 5 digits, this should be 6
Quoted 75 lines
Ross
Quoted 70 lines · Alexandre Belloni
Hi Ross,
Quoted 22 lines · Ross Burton
If the host is loaded when running the tests there is a good chance that strace-T.test will fail, as it does a sleep(1) and checks that the
nanosleep()call lasted for 0.9-1.1 seconds.Relax the test so that the test passes if the call takes less than two seconds.
[ YOCTO #14596 ]
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-devtools/strace/strace/ptest-sleep.patch | 7 +++++++ meta/recipes-devtools/strace/strace_5.14.bb | 1 + 2 files changed, 8 insertions(+) create mode 100644 meta/recipes-devtools/strace/strace/ptest-sleep.patchmeta/recipes-devtools/strace/strace/ptest-sleep.patch new file +0
-0meta/recipes-devtools/strace/strace/ptest-sleep.patch line 7
Quoted 7 lines
meta/recipes-devtools/strace/strace/ptest-sleep.patch new file +7
-0@@ -0,0 +1,7 @@ +diff --git a/tests/strace-T.expected b/tests/strace-T.expected +index 1ea020465..f78d3e2c8 100644 +--- a/tests/strace-T.expected ++++ b/tests/strace-T.expected +@@ -1 +1 @@ +-nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.[01]|0\.9)[[:digit:]]{5}> ++nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.|0\.9)[[:digit:]]{5}>Those two builds have the patch and reliably failed:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2425/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2428/steps/12/logs/stdioQuoted 17 lines
meta/recipes-devtools/strace/strace_5.14.bb +1
-1@@ -13,6 +13,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ file://ptest-spacesave.patch \ file://0001-strace-fix-reproducibilty-issues.patch \ + file://ptest-sleep.patch \ " SRC_URI[sha256sum] = "901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73" --2.25.1
Quoted 8 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#157202): https://lists.openembedded.org/g/openembedded-core/message/157202
Mute This Topic: https://lists.openembedded.org/mt/86448553/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=---
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [OE-core] [PATCH 2/3] strace: handle loaded test systems
Ha, idiot me. I didn't see that bit of the regex and the test suite takes so long I didn't actually test it...
Other opinions on whether to we skip the test or relax the bounds?
Ross
Quoted 89 lines · Alexandre Belloni
Quoted 1 line · Ross Burton
Sigh. I'll just remove the test entirely then.
Actually, I think your regex is not correct because it also failed on qemux86. I believe you are missing a digit in the case it takes more than one second, before you had '1.[01]' then 5 digits, you changed it to '1.' and 5 digits, this should be 6
Quoted 75 lines
Ross
Quoted 70 lines · Alexandre Belloni
Hi Ross,
Quoted 22 lines · Ross Burton
If the host is loaded when running the tests there is a good chance that strace-T.test will fail, as it does a sleep(1) and checks that the
nanosleep()call lasted for 0.9-1.1 seconds.Relax the test so that the test passes if the call takes less than two seconds.
[ YOCTO #14596 ]
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-devtools/strace/strace/ptest-sleep.patch | 7 +++++++ meta/recipes-devtools/strace/strace_5.14.bb | 1 + 2 files changed, 8 insertions(+) create mode 100644 meta/recipes-devtools/strace/strace/ptest-sleep.patchmeta/recipes-devtools/strace/strace/ptest-sleep.patch new file +0
-0meta/recipes-devtools/strace/strace/ptest-sleep.patch line 7
Quoted 7 lines
meta/recipes-devtools/strace/strace/ptest-sleep.patch new file +7
-0@@ -0,0 +1,7 @@ +diff --git a/tests/strace-T.expected b/tests/strace-T.expected +index 1ea020465..f78d3e2c8 100644 +--- a/tests/strace-T.expected ++++ b/tests/strace-T.expected +@@ -1 +1 @@ +-nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.[01]|0\.9)[[:digit:]]{5}> ++nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.|0\.9)[[:digit:]]{5}>Those two builds have the patch and reliably failed:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2425/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2428/steps/12/logs/stdioQuoted 17 lines
meta/recipes-devtools/strace/strace_5.14.bb +1
-1@@ -13,6 +13,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ file://ptest-spacesave.patch \ file://0001-strace-fix-reproducibilty-issues.patch \ + file://ptest-sleep.patch \ " SRC_URI[sha256sum] = "901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73" --2.25.1
Quoted 8 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#157202): https://lists.openembedded.org/g/openembedded-core/message/157202
Mute This Topic: https://lists.openembedded.org/mt/86448553/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=---
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
PATCH 3/3 strace: remove TOOLCHAIN assignment
In reply to Ross BurtonBack in 2016 strace failed to link when using clang, but this isn't the case anymore.
--- meta/recipes-devtools/strace/strace_5.14.bb | 1 - 1 file changed, 1 deletion(-)
meta/recipes-devtools/strace/strace_5.14.bb +0 -1
@@ -53,4 +53,3 @@ RDEPENDS:${PN}-ptest:append:libc-glibc = "\ " BBCLASSEXTEND = "native" -TOOLCHAIN = "gcc"
Signature · 1 line
2.25.1