grub-common: wrongly sorts 2.6.32-trunk ahead of 2.6.32-1
A message that is not in the archive (sent off-list or not yet received): 20100202200622.28744.65677.reportbug@tux64.internal.ucko.debian.net
Quoted 28 lines · Aaron M. Ucko
In the rush to make official 2.6.32 kernel packages available in Debian, the maintainers initially used image names of the form vmlinuz-2.6.32-trunk-FLAVOR to indicate that they hadn't yet reached a final -1 ABI. They now have, but grub's version comparison function incorrectly treats the older -trunk packages as newer. (I'm not sure why the maintainers chose -trunk rather than -0 or ~trunk, but what's done is done.)
The good news is that the relevant shell function (
version_test_gtfrom grub-mkconfig_lib) already has a provision for sorting some suffixes early, so I propose simply adjusting it to do the same for(quoted diff) +0
-1-trunk:home/amu/tmp/grub-mkconfig_lib renamed from usr/lib/grub/grub-mkconfig_lib +3
-2@@ -163,8 +163,9 @@ version_test_gt () { - local a=`echo $1 | sed -e "s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\)/~\1/g"` - local b=`echo $2 | sed -e "s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\)/~\1/g"` + local sedexp="s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g" + local a=`echo $1 | sed -e "$sedexp"` + local b=`echo $2 | sed -e "$sedexp"` local cmp=gt if [ "x$b" = "x" ] ; then return 0
Quoted 1 line
Could you please do so?
This patch looks reasonable to me (although sorry that I'm late in paying attention to it). grub-devel, any objections?
Signature · 1 line
Colin Watson [[email protected]]
Quoted 16 lines · Colin Watson
Quoted 15 lines · Aaron M. Ucko
home/amu/tmp/grub-mkconfig_lib renamed from usr/lib/grub/grub-mkconfig_lib +3
-2@@ -163,8 +163,9 @@ version_test_gt () { - local a=`echo $1 | sed -e "s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\)/~\1/g"` - local b=`echo $2 | sed -e "s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\)/~\1/g"` + local sedexp="s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g" + local a=`echo $1 | sed -e "$sedexp"` + local b=`echo $2 | sed -e "$sedexp"` local cmp=gt if [ "x$b" = "x" ] ; then return 0
Quoted 4 lines
Quoted 1 line
Could you please do so?
This patch looks reasonable to me (although sorry that I'm late in paying attention to it). grub-devel, any objections?
Err, please disregard this. Apparently the \(pre\|rc\|test\|git\|old\) stuff was already a Debian-specific patch (I guess it is a bit too much hardcoded magic for upstream, really).
Sorry for the noise,
Signature · 1 line
Colin Watson [[email protected]]
configure --help message for grub-emu
I want to alter the configure script so the --help prints the instructions for building grub-emu. I saw it was asked a couple times in #grub where to get it. I think this means altering the configure.ac file but some open source projects generate configure.ac from a script. Is configure.ac the correct file to alter?
Re: configure --help message for grub-emu
Quoted 5 lines · Jason Butler
I want to alter the configure script so the --help prints the instructions for building grub-emu. I saw it was asked a couple times in #grub where to get it. I think this means altering the configure.ac file but some open source projects generate configure.ac from a script.
This is rare; configure.ac is normally a source file.
Quoted 1 line
Is configure.ac the correct file to alter?
Yes.
Signature · 1 line
Colin Watson [[email protected]]
Quoted 19 lines · Colin Watson
Quoted 17 lines · Colin Watson
Quoted 15 lines · Aaron M. Ucko
home/amu/tmp/grub-mkconfig_lib renamed from usr/lib/grub/grub-mkconfig_lib +3
-2@@ -163,8 +163,9 @@ version_test_gt () { - local a=`echo $1 | sed -e "s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\)/~\1/g"` - local b=`echo $2 | sed -e "s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\)/~\1/g"` + local sedexp="s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g" + local a=`echo $1 | sed -e "$sedexp"` + local b=`echo $2 | sed -e "$sedexp"` local cmp=gt if [ "x$b" = "x" ] ; then return 0
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines
Could you please do so?
This patch looks reasonable to me (although sorry that I'm late in paying attention to it). grub-devel, any objections?
Err, please disregard this. Apparently the \(pre\|rc\|test\|git\|old\) stuff was already a Debian-specific patch (I guess it is a bit too much hardcoded magic for upstream, really).
Ok. Please disregard my previous reply
Quoted 3 lines
Sorry for the noise,
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 30 lines · Colin Watson
Quoted 28 lines · Aaron M. Ucko
In the rush to make official 2.6.32 kernel packages available in Debian, the maintainers initially used image names of the form vmlinuz-2.6.32-trunk-FLAVOR to indicate that they hadn't yet reached a final -1 ABI. They now have, but grub's version comparison function incorrectly treats the older -trunk packages as newer. (I'm not sure why the maintainers chose -trunk rather than -0 or ~trunk, but what's done is done.)
The good news is that the relevant shell function (
version_test_gtfrom grub-mkconfig_lib) already has a provision for sorting some suffixes early, so I propose simply adjusting it to do the same for(quoted diff) +0
-1-trunk:home/amu/tmp/grub-mkconfig_lib renamed from usr/lib/grub/grub-mkconfig_lib +3
-2@@ -163,8 +163,9 @@ version_test_gt () { - local a=`echo $1 | sed -e "s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\)/~\1/g"` - local b=`echo $2 | sed -e "s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\)/~\1/g"` + local sedexp="s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g" + local a=`echo $1 | sed -e "$sedexp"` + local b=`echo $2 | sed -e "$sedexp"` local cmp=gt if [ "x$b" = "x" ] ; then return 0
Quoted 3 lines
Quoted 2 lines
Could you please do so?
Go ahead for trunk. Don't forget the Changelog
Quoted 4 lines
This patch looks reasonable to me (although sorry that I'm late in paying attention to it). grub-devel, any objections?
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko