Openembedded Core Discussions
 help / color / mirror / Atom feed
From: akuster808 <akuster808@gmail.com>
To: Sinan Kaya <okaya@kernel.org>, openembedded-core@lists.openembedded.org
Subject: Re: [sumo] [PATCH v1] strace: fix ptest path not found
Date: Thu, 1 Nov 2018 16:48:18 -0700	[thread overview]
Message-ID: <47198674-85e7-c0e9-bb6c-d6ed5310a9b0@gmail.com> (raw)
In-Reply-To: <20181030232815.24575-1-okaya@kernel.org>

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' \


  reply	other threads:[~2018-11-01 23:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-30 23:28 [sumo] [PATCH v1] strace: fix ptest path not found Sinan Kaya
2018-11-01 23:48 ` akuster808 [this message]
2018-11-02  0:43   ` Sinan Kaya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47198674-85e7-c0e9-bb6c-d6ed5310a9b0@gmail.com \
    --to=akuster808@gmail.com \
    --cc=okaya@kernel.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox