Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 380189

Summary: net-misc/dhcp-3.1.3_p1 build failed on Kernel 3.0
Product: Gentoo Linux Reporter: FrankFang <superman601>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal CC: a3li
Priority: Normal    
Version: autobuilds   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description FrankFang 2011-08-22 07:58:44 UTC
dhcp-3.1.3_p1's configure file not support kernel 3.0, the system detect code is listed as below:

    Linux)
      release=`uname -r`
      minor=`echo $release |sed -e 's/[0-9]*\.\([0-9][0-9]*\)\(\..*\)*$/\1/'`
      major=`echo $release |sed -e 's/\([0-9][0-9]*\)\..*$/\1/'`
    
      case $major in
        1) sysname=linux-1 ;;
        2) case $minor in
             0) sysname=linux-2.0 ;;
             1) sysname=linux-2.1 ;;
             2) sysname=linux-2.2 ;;
             *) sysname=linux-2.2 ;;
           esac;;
      esac;;


The variable major get "3", no case is listed, so sysname is empty
Comment 1 SpanKY gentoo-dev 2011-08-27 04:55:48 UTC
seems to be fixed in dhcp-4.2.2
Comment 2 Stuart Shelton 2011-08-28 12:23:01 UTC
dhcp-4.2.2 doesn't work with chroot environments (Bug 362535) so this should be fixed for anyone needing to downgrade.
Comment 3 SpanKY gentoo-dev 2011-08-28 19:06:08 UTC
do not spam unrelated bugs

*** This bug has been marked as a duplicate of bug 379903 ***