Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111064 - linux-info should not check for module-support when it is not building a module
Summary: linux-info should not check for module-support when it is not building a module
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: John Mylchreest (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-31 15:34 UTC by Christian Hesse
Modified: 2005-12-30 10:33 UTC (History)
1 user (show)

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 Christian Hesse 2005-10-31 15:34:03 UTC
Linux kernel 2.6.14 includes support for FUSE. I've built it into the kernel 
and module support is disabled. With this configuration I can't emerge sys-fs/
fuse. Removing "inherit linux-mod" from ebuild solves the problem.


Reproducible: Always
Steps to Reproduce:
1. use 2.6.14, enable FUSE, disable module support
2. emerge sys-fs/fuse

Actual Results:  
emerge stops with an error, it misses module support in the kernel.


Expected Results:  
emerge fuse


Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.
14-ck1 i586)
=================================================================
System uname: 2.6.14-ck1 i586 Pentium MMX
Gentoo Base System version 1.6.13
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=pentium-mmx -Os -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-mmx -Os -pipe"
DISTDIR="/mnt/data/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://linux.rz.ruhr
-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-
mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/
pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/
gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-
muenster.de/pub/linux/distributions/gentoo ftp://ftp6.uni-muenster.de/pub/linux/
distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http:
//ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp:///ftp-stud.fht-esslingen.de
/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/"
LANG="en_US"
MAKEOPTS="-j 2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/data/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage_overlay"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 7zip apache2 apm berkdb bitmap-fonts ck-server crypt cups curl eds 
emboss encode foomaticdb gdbm gstreamer imlib ipv6 javascript largeterminal libg
++ libwww mikmod mmx motif mpeg mysql ncurses network nls nptl nptlonly odbc 
ogg pam pcre pdflib perl pic pthreads python quicktime readline rtc samba sasl 
slang smime ssl tcpd threads truetype truetype-fonts type1-fonts udev unicode 
userlocales vorbis xml xml2 xmms zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jan Kundrát (RETIRED) gentoo-dev 2005-11-01 15:30:18 UTC
From `emerge sys-fs/fuse` (~x86 version, but the same check is present in 
latest stable as well, iirc): 
  
 * Determining the location of the kernel source code  
 * Found kernel source directory:  
 *     /usr/src/linux  
 * Found sources for kernel version:  
 *     2.6.14-gentoo  
 * Checking for suitable kernel configuration options:  
 *   We have detected FUSE already built into the kernel.  
We will continue, but we wont build the module this time.  
 * Please check to make sure these options are set correctly.  
 * Failure to do so may cause unexpected problems.  
>>> Unpacking source...  
  
  
Works fine with siefs. I'd suggest RESOLVED WORKSFORME.  
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2005-11-01 15:39:39 UTC
well, jkt you are right but the issue here is different.

Linux-info behaves wrong here.
Comment 3 Christian Hesse 2005-11-01 15:57:45 UTC
To make shure everybody understands what I'm steaking about:

 * Checking for suitable kernel configuration options:
 *   We have detected FUSE already built into the kernel.
We will continue, but we wont build the module this time.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.

This part is ok.

 * These sources do not support loading external modules.
 * to be able to use this module please enable "Loadable modules support"
 * in your kernel, recompile and then try merging this module again.

That is what causes the problem. emerge aborts after this message.
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2005-12-25 02:38:58 UTC
johnm: any progress with this?
Comment 5 John Mylchreest (RETIRED) gentoo-dev 2005-12-30 10:33:35 UTC
if im going to be strict over this, I would suggest splitting the fuse ebuild into fuse-utils and fuse-kernel or some such, since technically speaking linux-mod is doing the correct thing by exiting when it cannot confirm module support.

However, that being said, if you think this is a valid problem for now I would suggest re-defining pkg_setup as follows:

pkg_setup() {
        linux-info_pkg_setup;
        check_kernel_built;
        set_kvobj;
}

If you prefer, throw the question/bug to gentoo-kernel@ and we can bash it out to come up with a finer solution.