genkernel issues a mrproper at start - without WARNING! this destroys previous config! (this is what makes it critical in my eyes - you lose data to the defect) genkernel --help says its unrecognized option no man page and genkernel fails to copy the proper config from /etc/kernels/default.config or config-(kenrnel version). Instead you ge the generic stuff, which kills anyone using ALSAS or xfree-drm, loads a lot of unneeded stuff, and forgets to add in the devfs stuff. The latter of which could cause an unbootable system for some users, (FYI, genkernel 1.5 was working fine, its when I emerged in 1.8 that this went to hell in a handbasket) Reproducible: Always Steps to Reproduce: 1.run genkernel from /usr/src/linux as root. 2. 3. Actual Results: if I do --help, it says "unrecognized option" if I do ti by itself, it starts with a mrproper - and the config says its using /usr/src/linux/kernel-config insted of the .config there, ot the defualts put into /etc/config (verified by cat'ing the .config after the build started) Expected Results: It SHOULD warn before blowing away the .config with a make mrproper. it SHOULD respect and use the settings in /etc/kernels/default.config it SHOULD put up options when you do a --help it SHOULD have a man page Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6) ================================================================= System uname: 2.4.20-gentoo-r6 i686 Pentium III (Katmai) ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts tetex aalib bonobo svga tcltk java guile mysql postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla"
this might address some of the problems: this one (says what its going to use) would be changed to: if [ -e ${CONFIG}/config-${KV} ] then echo -e "gentoo (customized)\n config loc: ${CONFIG}/config-${KV}" elif [ -e ${CONFIG}/default-config ] then echo -e "non-gentoo (default)\n config loc: ${CONFIG}/default-config" else echo -e "gentoo (default)\n config loc: ${KD}/kernel-config" fi in the configuration section, have it check for custom, then custom-non-gentto (default-config) in /etc/kernel BEFORE copying over the kernel-config left over from mrproper. as below: ebegin "Running \"make mrproper\"" #running make mrproper fixes unresolved symbol stuff when switching CPU types with #the custom configure option. make mrproper > /dev/null eend if [ -e ${CONFIG}/config-${KV} ] then cp -f ${CONFIG}/config-${KV} ${KD}/.config || die "couldn't copy 1" elif [ -e ${CONFIG}/default-config ] then cp -f ${CONFIG}/default-config ${KD}/.config || die "couldn't copy 2" else cp -f ${KD}/kernel-config ${KD}/.config || die "couldn't copy 3" fi ebegin "Running \"make oldconfig\"" while true;do echo -e "\n";done|make oldconfig >/dev/null eend Basically, the gentoo kernel defaults should be last things, not second ones, especially with you doing a make mrproper. and please see if you can write up a man page. I always tell newbies (and myself) "read the man page" - and unfortunately its not there for genkernel. ANd when the --help is broken (see below), its really frustrating. Oh - the --help option is missing: here's the code for that section that shows it to be missing: for x in $@ do if [ "$x" = "--config" ] then MENUCONFIG="yes" else die "Unrecognized option \"$x\"" fi shift done
Yep, genkernel is really lacking. I'll fix up 1.8 with a soon-to-be-released 1.9.
did these problems get resolved in 1.9 then?
we're not supporting genkernel < 3 upgrade