DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] mk: fix command-line dependency check for quoted strings
Date: Fri, 15 Nov 2013 15:55:37 +0100	[thread overview]
Message-ID: <201311151555.37151.thomas.monjalon@6wind.com> (raw)
In-Reply-To: <1384526332-24702-1-git-send-email-adrien.mazarguil@6wind.com>

15/11/2013 15:38, Adrien Mazarguil :
> Before recompiling a file, rte.compile-pre.mk checks whether the command
> line is different from the previous one.
> 
> This is done by storing for each object file the entire command line in a
> kind of dependency file with a .cmd extension (see obj2cmd). If that file
> exists, the line is retrieved first and compared against $(C_TO_O_STR).
> The object file gets recompiled if the file doesn't exist or if the line
> is different.
> 
> The problem is that sometimes, files are recompiled for no apparent reason.
> 
> The check doesn't work properly when a command line contains double-quoted
> strings such as -DFOO='"bar"' because the shell interprets and strips them.
> This is fixed by protecting C_TO_O_CMD with simple quotes, knowing that
> such quotes are already escaped in C_TO_O_STR.
> 
> Moreover, because simple quotes are escaped in C_TO_O_STR, the retrieved
> command should be compared against C_TO_O instead.
> 
> Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>

Acked and applied.

Thanks
-- 
Thomas

      reply	other threads:[~2013-11-15 14:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-15 14:38 Adrien Mazarguil
2013-11-15 14:55 ` Thomas Monjalon [this message]

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=201311151555.37151.thomas.monjalon@6wind.com \
    --to=thomas.monjalon@6wind.com \
    --cc=adrien.mazarguil@6wind.com \
    --cc=dev@dpdk.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;
as well as URLs for NNTP newsgroup(s).