Skip to contentSkip to conversation

strace: remove obsolete patch

PATCH In review Ross Burton 3 participants 7 messages Oct 19, 2021 – Oct 21, 2021

lore
Share & tools
lore
#0 lore raw

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
deleted file mode 100644
index 088d685af0..0000000000
@@ -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
index 02a4843edf..a81bda04ba 100644
@@ -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
#1 lore raw

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
new file mode 100644
index 0000000000..5629dec319
@@ -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
index a81bda04ba..9ae1367337 100644
@@ -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
#2 lore raw

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 ]

---
 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 +0 -0
new file mode 100644
index 0000000000..5629dec319

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
index a81bda04ba..9ae1367337 100644
@@ -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
#3 lore raw

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 ]

---
 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 +0 -0
new file mode 100644
index 0000000000..5629dec319

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 17 lines
meta/recipes-devtools/strace/strace_5.14.bb +1 -1
index a81bda04ba..9ae1367337 100644
@@ -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

#4 lore raw

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 ]

---
 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 +0 -0
new file mode 100644
index 0000000000..5629dec319

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 17 lines
meta/recipes-devtools/strace/strace_5.14.bb +1 -1
index a81bda04ba..9ae1367337 100644
@@ -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
#5 lore raw

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 ]

---
 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 +0 -0
new file mode 100644
index 0000000000..5629dec319

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 17 lines
meta/recipes-devtools/strace/strace_5.14.bb +1 -1
index a81bda04ba..9ae1367337 100644
@@ -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

#6 lore raw

PATCH 3/3 strace: remove TOOLCHAIN assignment

In reply to Ross Burton

Back 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
index 9ae1367337..5e02df9145 100644
@@ -53,4 +53,3 @@ RDEPENDS:${PN}-ptest:append:libc-glibc = "\
 "
 
 BBCLASSEXTEND = "native"
-TOOLCHAIN = "gcc"
Signature · 1 line
2.25.1