weird compilation error?

Samuel Thibault samuel.thibault at ens-lyon.org
Sun Sep 9 14:25:11 EDT 2012


Rob Hudson, le Sun 09 Sep 2012 11:22:07 -0500, a écrit :
> I'm attempting to patch speakup-3.1.6 into linux-3.5.2 and I get this:
> [asteriskk at coffee-bean speakup-3.1.6]$ ./install ~/tmp/s/linux-3.5.2
> Speakup does not support kernels before 2.6.26.
> Um, since when is 3.5.2 before 2.6.26? What did I miss?

As usual, when the computer goes wrong, it's simply because there is a
bug.  Here is a patch which should fix it.

However, it seems I'm unable to push it to the speakup repository.
Kirk, it seems /usr/src/git/* got their group back to src, so that
people in the speakup group can't push any more.

Samuel
-------------- next part --------------
commit 2e32a629be78bf98d61dd3b41372636cc4492161
Author: Samuel Thibault <samuel.thibault at ens-lyon.org>
Date:   Sun Sep 9 20:21:06 2012 +0200

    Fix version comparison against 2.6.26
    
    Signed-off-by: Samuel Thibault <samuel.thibault at ens-lyon.org>

diff --git a/install b/install
index 31ca1d0..99103a6 100755
--- a/install
+++ b/install
@@ -68,7 +68,7 @@ fi
 check_kdir "${KDIR}"
 get_kv "${KDIR}"
 
-if [ $VERSION -lt 2 -o $PATCHLEVEL -lt 6 -o $SUBLEVEL -lt 26 ]; then
+if [ $VERSION -lt 2 -o \( $VERSION -eq 2 -a $PATCHLEVEL -lt 6 \) -o \( $VERSION -eq 2 -a $PATCHLEVEL -eq 6 -a $SUBLEVEL -lt 26 \) ]; then
 	die "Speakup does not support kernels before 2.6.26."
 fi
 


More information about the Speakup mailing list