Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97700 - genkernel --menuconfig with incorrect directory specification takes a long time to bomb out.
Summary: genkernel --menuconfig with incorrect directory specification takes a long ti...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard: InCVS
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-02 03:07 UTC by Corin Goodier
Modified: 2005-07-12 10:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Corin Goodier 2005-07-02 03:07:16 UTC
This is an enhancement to have genkernel fail at the first grep error if the
directory or path specified in the --menuconfig option (or similar) instead of
trying to go through 4 grep's, checking the .config twice and running the first
few compiles.

Reproducible: Always
Steps to Reproduce:
1. Use the following command line: "genkernel all --kerneldir=/usr/src/<kernel
directory>--menuconfig" and note there's no space after the kernel directory to
create a bad path
2. n/a
3. n/a

Actual Results:  
grep: /usr/src/linux-2.6.11-gentoo-r11--menuconfig/Makefile: No such file or
directory
grep: /usr/src/linux-2.6.11-gentoo-r11--menuconfig/Makefile: No such file or
directory
grep: /usr/src/linux-2.6.11-gentoo-r11--menuconfig/Makefile: No such file or
directory
grep: /usr/src/linux-2.6.11-gentoo-r11--menuconfig/Makefile: No such file or
directory
* Compiling Linux Kernel .. for x86_64...

* ERROR: Error: No kernel .config specified, or file not found!

* -- Grepping log... --

* Compiling Linux Kernel .. for x86_64...
  CC      drivers/pci/quirks.o
  HOSTCC  drivers/pci/gen-devlist
* Gentoo Linux Genkernel; Version 3.1.5

* ERROR: Error: No kernel .config specified, or file not found!

* -- End log... --


Expected Results:  
Would be nie to see the first grep fail the entire process because if the path
is wrong you aren't going to be able to compile anything anyway...

emerge  info:

Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 10 2005, 00:58:45)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks loadpolicy sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en gb"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa berkdb bitmap-fonts cdr crypt curl fam font-server
fortran gdbm gif gpm gtk ipv6 java jp2 jpeg kde libwww lzw lzw-tiff mad mp3
mysql ncurses nls opengl oss pam perl png python qt readline samba ssl tcpd tiff
truetype truetype-fonts type1-fonts usb userlocales xml2 xpm xrandr xv zlib
linguas_en linguas_gb userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Eric Edgar (RETIRED) gentoo-dev 2005-07-11 11:31:55 UTC
Check for the existance of the kernel sources earlier.
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2005-07-12 10:43:58 UTC
Fixed in 3.2.2, thanks!