All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <mlureau@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
	qemu-devel@nongnu.org, qemu-trivial@nongnu.org
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] build-sys: fix find-in-path
Date: Tue, 27 Sep 2016 10:22:03 -0400 (EDT)	[thread overview]
Message-ID: <227638539.339534.1474986123574.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <87wphxh1gf.fsf@dusky.pond.sub.org>

Hi

----- Original Message -----
> Marc-André Lureau <marcandre.lureau@redhat.com> writes:
> 
> > Fix spelling, the GNU make text functions is not called "find-string"
> > but "findstring".
> >
> > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> > ---
> >  rules.mak | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/rules.mak b/rules.mak
> > index 5c82c19..f721988 100644
> > --- a/rules.mak
> > +++ b/rules.mak
> > @@ -132,7 +132,7 @@ endef
> >  # Looks in the PATH if the argument contains no slash, else only considers
> >  one
> >  # specific directory.  Returns an # empty string if the program doesn't
> >  exist
> >  # there.
> > -find-in-path = $(if $(find-string /, $1), \
> > +find-in-path = $(if $(findstring /, $1), \
> >          $(wildcard $1), \
> >          $(wildcard $(patsubst %, %/$1, $(subst :, ,$(PATH)))))
> 
> Impact?

Not much in current code base, it's only used by:
tests/tcg/Makefile:ifneq ($(call find-in-path, $(CC_I386)),)

So if you set CC_I386 to an absolute PATH, it's not going to run the I386_TESTS.

This is not very important yet, but better for correctness.

In the future, I hope qemu can have a better tcg-test framework (I am doing some experiment in https://github.com/elmarco/qemu/tree/tcg-tests/tests/tcg), and as part of this work, I found this bug.


WARNING: multiple messages have this Message-ID (diff)
From: "Marc-André Lureau" <mlureau@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
	qemu-devel@nongnu.org, qemu-trivial@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] build-sys: fix find-in-path
Date: Tue, 27 Sep 2016 10:22:03 -0400 (EDT)	[thread overview]
Message-ID: <227638539.339534.1474986123574.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <87wphxh1gf.fsf@dusky.pond.sub.org>

Hi

----- Original Message -----
> Marc-André Lureau <marcandre.lureau@redhat.com> writes:
> 
> > Fix spelling, the GNU make text functions is not called "find-string"
> > but "findstring".
> >
> > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> > ---
> >  rules.mak | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/rules.mak b/rules.mak
> > index 5c82c19..f721988 100644
> > --- a/rules.mak
> > +++ b/rules.mak
> > @@ -132,7 +132,7 @@ endef
> >  # Looks in the PATH if the argument contains no slash, else only considers
> >  one
> >  # specific directory.  Returns an # empty string if the program doesn't
> >  exist
> >  # there.
> > -find-in-path = $(if $(find-string /, $1), \
> > +find-in-path = $(if $(findstring /, $1), \
> >          $(wildcard $1), \
> >          $(wildcard $(patsubst %, %/$1, $(subst :, ,$(PATH)))))
> 
> Impact?

Not much in current code base, it's only used by:
tests/tcg/Makefile:ifneq ($(call find-in-path, $(CC_I386)),)

So if you set CC_I386 to an absolute PATH, it's not going to run the I386_TESTS.

This is not very important yet, but better for correctness.

In the future, I hope qemu can have a better tcg-test framework (I am doing some experiment in https://github.com/elmarco/qemu/tree/tcg-tests/tests/tcg), and as part of this work, I found this bug.

  reply	other threads:[~2016-09-27 14:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-23 12:35 [Qemu-trivial] [PATCH] build-sys: fix find-in-path Marc-André Lureau
2016-09-23 12:35 ` [Qemu-devel] " Marc-André Lureau
2016-09-27 14:17 ` [Qemu-trivial] " Markus Armbruster
2016-09-27 14:17   ` Markus Armbruster
2016-09-27 14:22   ` Marc-André Lureau [this message]
2016-09-27 14:22     ` Marc-André Lureau
2016-09-27 15:26     ` [Qemu-trivial] " Markus Armbruster
2016-09-27 15:26       ` Markus Armbruster
2016-09-29 15:59 ` [Qemu-trivial] " Michael Tokarev
2016-09-29 15:59   ` [Qemu-devel] " Michael Tokarev

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=227638539.339534.1474986123574.JavaMail.zimbra@redhat.com \
    --to=mlureau@redhat.com \
    --cc=armbru@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.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 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.