All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roger Pau Monne <roger.pau@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Jean Guyader <jean.guyader@gmail.com>
Subject: Re: [PATCH] configure: Check for flex
Date: Tue, 24 Apr 2012 17:35:36 +0100	[thread overview]
Message-ID: <4F96D658.1050604@citrix.com> (raw)
In-Reply-To: <20374.54254.482250.200623@mariner.uk.xensource.com>

Ian Jackson escribió:
> Roger Pau Monne writes ("Re: [Xen-devel] [PATCH] configure: Check for flex"):
>> El 15/04/2012, a las 19:43, Jean Guyader escribió:
>>> libxl require the command flex to be present.
>>> Verify in the configure script that the flex
>>> command exsits.
>>>
>>> Signed-off-by: Jean Guyader<jean.guyader@gmail.com>
>>
>> I've already sent a patch for this, detecting and setting Flex and Bison at configure, and printing a pretty error message if libxl needs them and they are not found:
>>
>> http://lists.xen.org/archives/html/xen-devel/2012-04/msg00923.html
>
> (I'm afraid that patch is still in my (enormous) backlog, but:)
>
> I'm not very convinced that that patch is an improvement.  All it
> does, effectively, is change the error message from "flex: not found"
> to a custom one which effectively says "I couldn't find flex".

It also adds automatic detection of flex/bison from configure, so if the 
user has those installed, and they are needed, the compilation will not 
fail (without this patch the compilation will just fail).

> If flex is not available, and the timestamps indicate the file needs
> to be rebuilt, we have two choices, corresponding to two possible
> situations:
>    1. Assume that the problem is simply timestamp skew, and allow
>       the build to continue without regenerating the file (although
>       we should probably print a warning)
>    2. Assume that the user has edited (or patched) the flex source
>       code, and stop with an error
>
> Of these I think 1. is preferable.  In the latter case, if the user
> edited it themselves they will hopefully be reading the make output
> and see the warning; whereas if the user applied a patch, the patch
> should update the flex output too.
>
> In practice we update these files rarely and of course we always
> commit a corresponding change.  So doing 1. will only adversely affect
> a small minority of developers.  Whereas doing 2. seems to cause
> regular annoyance to many people who don't necessarily know what's
> going on.
>
> Ian.

      reply	other threads:[~2012-04-24 16:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-15 18:43 [PATCH] configure: Check for flex Jean Guyader
2012-04-16  7:42 ` Ian Campbell
2012-04-16  8:54 ` Roger Pau Monne
2012-04-24 16:25   ` Ian Jackson
2012-04-24 16:35     ` Roger Pau Monne [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=4F96D658.1050604@citrix.com \
    --to=roger.pau@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=jean.guyader@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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.