Bug 9566 - autogen.sh fails minimum version check with aclocal-1.10
Summary: autogen.sh fails minimum version check with aclocal-1.10
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.3.9
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 10006
  Show dependency treegraph
 
Reported: 2007-01-07 12:23 UTC by Chris Wilson
Modified: 2007-04-03 12:38 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Alternate version comparison (2.94 KB, patch)
2007-01-07 12:27 UTC, Chris Wilson
Details | Splinter Review
gnome style check version (7.38 KB, patch)
2007-01-09 01:34 UTC, Chris Wilson
Details | Splinter Review

Description Chris Wilson 2007-01-07 12:23:01 UTC
awk believes 1.10 < 1.7.
Comment 1 Chris Wilson 2007-01-07 12:27:17 UTC
Created attachment 8323 [details] [review]
Alternate version comparison
Comment 2 Behdad Esfahbod 2007-01-08 17:55:49 UTC
I prefer the compare_versions() function from gnome-autogen.sh:

compare_versions() {
    ch_min_version=$1
    ch_actual_version=$2
    ch_status=0
    IFS="${IFS=         }"; ch_save_IFS="$IFS"; IFS="."
    set $ch_actual_version
    for ch_min in $ch_min_version; do
        ch_cur=`echo $1 | sed 's/[^0-9].*$//'`; shift # remove letter suffixes
        if [ -z "$ch_min" ]; then break; fi
        if [ -z "$ch_cur" ]; then ch_status=1; break; fi
        if [ $ch_cur -gt $ch_min ]; then break; fi
        if [ $ch_cur -lt $ch_min ]; then ch_status=1; break; fi
    done
    IFS="$ch_save_IFS"
    return $ch_status
}
Comment 3 Chris Wilson 2007-01-09 01:34:51 UTC
Created attachment 8340 [details] [review]
gnome style check version

Indeed, I much preferred their script over my quick 'get cairo building' hack.
Comment 4 Behdad Esfahbod 2007-01-09 11:10:39 UTC
Carl, see if you like the autogen.sh output with the patch committed.
Comment 5 Carl Worth 2007-01-09 13:34:39 UTC
Are we sending automake patches upstream with this?

I really don't understand why every project in the world should continue
to grow such horrendous piles of bootstrapping code when the build system
should provide that itself.

End of rant.

-Carl
Comment 6 Behdad Esfahbod 2007-01-09 13:39:25 UTC
Well, it does, and it's called autoreconf.  It just isn't old enough to depend
on.  sigh...
Comment 7 Behdad Esfahbod 2007-04-03 12:38:27 UTC
Committed now. 38c9909e2948f089bbec89e2d43b0e6f930c1ab1


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.