All of lore.kernel.org
 help / color / mirror / Atom feed
* [sumo] [PATCH v1] strace: fix ptest path not found
@ 2018-10-30 23:28 Sinan Kaya
  2018-11-01 23:48 ` akuster808
  0 siblings, 1 reply; 3+ messages in thread
From: Sinan Kaya @ 2018-10-30 23:28 UTC (permalink / raw)
  To: openembedded-core

Running strace ptest is failing with file not found errors.

../../strace: Process 1990 attached
diff: ../../../ptest0/tests/strace-ff.expected: No such file or directory

Even though file is present in the /usr/lib/strace/ptest/tests
directory.

Issue is caused by sed doing a find and replace causing an incorrect
path to be generated.

Below is the srcdir and top_srcdir in the Makefile:

srcdir = ../../ptest0/tests
top_srcdir = ../../strace-4.20

Replacing this with

srcdir = .
top_srcdir = ..

old results:
===================================================
30 of 373 tests failed
(117 tests were not run)
Please report to strace-devel@lists.sourceforge.net
===================================================

new results:
===================================================
13 of 373 tests failed
(117 tests were not run)
Please report to strace-devel@lists.sourceforge.net
===================================================

Signed-off-by: Sinan Kaya <okaya@kernel.org>
---
 meta/recipes-devtools/strace/strace_4.20.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/strace/strace_4.20.bb b/meta/recipes-devtools/strace/strace_4.20.bb
index 869c12f65a..0b35f5443d 100644
--- a/meta/recipes-devtools/strace/strace_4.20.bb
+++ b/meta/recipes-devtools/strace/strace_4.20.bb
@@ -43,7 +43,8 @@ do_compile_ptest() {
 
 do_install_ptest() {
 	oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR}
-	sed -i -e '/^src/s/strace.*[1-9]/ptest/' \
+	sed -i -e 's:^srcdir =.*:srcdir = .:g' \
+	    -e 's:^top_srcdir =.*:top_srcdir = ..:g' \
 	    -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
 	    -e 's|${DEBUG_PREFIX_MAP}||g' \
 	    -e 's:${HOSTTOOLS_DIR}/::g' \
-- 
2.19.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [sumo] [PATCH v1] strace: fix ptest path not found
  2018-10-30 23:28 [sumo] [PATCH v1] strace: fix ptest path not found Sinan Kaya
@ 2018-11-01 23:48 ` akuster808
  2018-11-02  0:43   ` Sinan Kaya
  0 siblings, 1 reply; 3+ messages in thread
From: akuster808 @ 2018-11-01 23:48 UTC (permalink / raw)
  To: Sinan Kaya, openembedded-core

Sinan,

On 10/30/18 4:28 PM, Sinan Kaya wrote:
> Running strace ptest is failing with file not found errors.
>
> ../../strace: Process 1990 attached
> diff: ../../../ptest0/tests/strace-ff.expected: No such file or directory
>
> Even though file is present in the /usr/lib/strace/ptest/tests
> directory.
>
> Issue is caused by sed doing a find and replace causing an incorrect
> path to be generated.
>
> Below is the srcdir and top_srcdir in the Makefile:
>
> srcdir = ../../ptest0/tests
> top_srcdir = ../../strace-4.20

Do you know if this affects Master?

- armin

>
> Replacing this with
>
> srcdir = .
> top_srcdir = ..
>
> old results:
> ===================================================
> 30 of 373 tests failed
> (117 tests were not run)
> Please report to strace-devel@lists.sourceforge.net
> ===================================================
>
> new results:
> ===================================================
> 13 of 373 tests failed
> (117 tests were not run)
> Please report to strace-devel@lists.sourceforge.net
> ===================================================
>
> Signed-off-by: Sinan Kaya <okaya@kernel.org>
> ---
>  meta/recipes-devtools/strace/strace_4.20.bb | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/strace/strace_4.20.bb b/meta/recipes-devtools/strace/strace_4.20.bb
> index 869c12f65a..0b35f5443d 100644
> --- a/meta/recipes-devtools/strace/strace_4.20.bb
> +++ b/meta/recipes-devtools/strace/strace_4.20.bb
> @@ -43,7 +43,8 @@ do_compile_ptest() {
>  
>  do_install_ptest() {
>  	oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR}
> -	sed -i -e '/^src/s/strace.*[1-9]/ptest/' \
> +	sed -i -e 's:^srcdir =.*:srcdir = .:g' \
> +	    -e 's:^top_srcdir =.*:top_srcdir = ..:g' \
>  	    -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
>  	    -e 's|${DEBUG_PREFIX_MAP}||g' \
>  	    -e 's:${HOSTTOOLS_DIR}/::g' \


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sumo] [PATCH v1] strace: fix ptest path not found
  2018-11-01 23:48 ` akuster808
@ 2018-11-02  0:43   ` Sinan Kaya
  0 siblings, 0 replies; 3+ messages in thread
From: Sinan Kaya @ 2018-11-02  0:43 UTC (permalink / raw)
  To: akuster808, openembedded-core

On 11/1/2018 7:48 PM, akuster808 wrote:
>> srcdir = ../../ptest0/tests
>> top_srcdir = ../../strace-4.20
> Do you know if this affects Master?

I have not tested master but I have seen the same issue there.
I looked for a solution at master before debugging this.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-02  0:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-30 23:28 [sumo] [PATCH v1] strace: fix ptest path not found Sinan Kaya
2018-11-01 23:48 ` akuster808
2018-11-02  0:43   ` Sinan Kaya

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.