[gstreamer-bugs] [Bug 606742] New: Configure has difficulty detecting bison version

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Jan 12 06:31:37 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=606742
  GStreamer | common | unspecified

           Summary: Configure has difficulty detecting bison version
    Classification: Desktop
           Product: GStreamer
           Version: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: common
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: bugzilla.gnome.org at robertwoolley.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


I ran into the problem described in
https://bugzilla.gnome.org/show_bug.cgi?id=543853

When I checked the upstream fix I noticed that it changed the regex to cut out
any non-number characters from the beginning and end of the line:

http://cgit.freedesktop.org/gstreamer/common/commit/?id=2c534ab2fc124f94c75d1836eb7f20bd4e71ffc3

On my Fedora 11, Ubuntu 8.04.3, and RHEL4 machines that line does the
following:
$ /usr/bin/bison --version | head -n 1 | sed 's/^[[^0-9]]*//' | sed
's/[[^0-9]]*$//' | cut -d' ' -f1
bison

If I remove the double brackets then it works as expected:
$ /usr/bin/bison --version | head -n 1 | sed 's/^[^0-9]*//' | sed
's/[^0-9]*$//' | cut -d' ' -f1

Fedora 11: 2.4.1
RHEL4: 1.875
Ubuntu 8.04.3: 2.3

I assume that no one discovered this because the check following this is:

    exit ($bison_version < $bison_min_version) ? 0 : 1;

and $bison_version == "bison" will always be less than a string starting with a
numeral character.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list