Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65246 - sys-kernel/config-kernel-0.3.3 is not working
Summary: sys-kernel/config-kernel-0.3.3 is not working
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Peter Johanson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-24 15:06 UTC by José Romildo Malaquias
Modified: 2005-02-26 18:11 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 José Romildo Malaquias 2004-09-24 15:06:51 UTC
I am having some issues when emerging app-misc/lirc-0.7.0_pre7-r1. I get the following messages:

 * /usr/src/linux is a symbolic link
 * Determining the real directory of the Linux kernel source code
 * Building for Linux 2.6.8-gentoo-r4 found in /usr/src/linux
 * which outputs to /usr/src/linux
 * By not using the kernel's ability to output to an alternative
 * directory, some external module builds may fail.
 * See <insert link to user doc here>
 * Due to the 2.6 kernel build system, external module compilation
 * with a normal setup requires write access to //usr/src/linux
 * There are several ways to fix/prevent this.
 * Users can willingly let portage make this writable by doing
 * # config-kernel --allow-writable yes
 * However, this is considered a security risk!
 *
 * The prefered method is to enable Gentoo's new 'koutput' method
 * for kernel modules. See the doc
 * http://www.gentoo.org/doc/en/2.6-koutput-user.xml
 * To enable this, you'll need to run
 * # config-kernel --output-dir /var/tmp/kernel-output
 * and then install a new kernel

After running the commands:

# emerge -uv config-kernel
# config-kernel --output-dir /var/tmp/kernel-output
# env-update
# source /etc/profile
# cd /usr/src/linux-2.6.8-gentoo-r4/
# make mrproper
# cd
# emerge --unmerge gentoo-dev-sources-2.6.8-r4
# emerge -uv gentoo-dev-sources
# cd /usr/src/linux-2.6.8-gentoo-r4/
# cp -vai /boot/config-2.6.8-gentoo-r4 .config
# make && make modules_install && make install
# cd
# LIRC_OPTS="--with-driver=pixelview_pro" emerge -uv lirc

lirc still does not build with the same message. Also, the kernel was no built in /var/tmp/kernel-output, but in /usr/src/linux-2.6.8-gentoo-r4.

Am I doing something wrong, or are there issues with config-kernel?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Gentoo Base System version 1.5.3
Portage 2.0.51_rc1 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r4 i686)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 AMD Athlon(tm) XP 2000+
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox strict usersandbox"
GENTOO_MIRRORS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aalib acl acpi alsa apm arts audiofile avi berkdb
bitmap-fonts bonobo cdr crypt cups divx4linux dvd edl emacs emacs-w3 encode esd
faad fbcon fbdev ffmpeg flac foomaticdb gcj gdbm gif gimpprint glut gnome gpm
gtk gtk2 gtkhtml guile imap imlib imlib2 java javascript jpeg kde libcaca libg++
libwww lirc lzo mad mbox md5sum mikmod mmx mng motif mozilla mpeg ncurses neXt
nls nntp oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime
readline rplay rtc samba sdl silverxp slang spell sse ssl stroke svg svga tcltk
tcpd tetex tiff truetype unicode v4l v4l2 wmf x86 xface xine xml xml2 xmms xosd
xprint xv xvid zlib linguas_en linguas_pt linguas_pt_BR linguas_fr linguas_de"
Comment 1 mindtech 2004-09-25 03:16:08 UTC
I've the same problem with lirc-0.7.0_pre7.

I installed config-kernel-0.3.3 too and ran :

#config-kernel --output-dir /var/tmp/kernel-output
 * Writing out changes to /etc/env.d/05kernel
 * Running env-update. You should run 'source /etc/profile' to update
 * your environment, or log out and in again.
 * Error updating the environment!

That's what I received.

The only change I noticed is :

# echo $KBUILD_OUTPUT_PREFIX
/var/tmp/kernel-output
Comment 2 José Romildo Malaquias 2004-09-25 04:01:26 UTC
I have forgot to tell that I have the same output messages from the command "config-kernel --output-dir /var/tmp/kernel-output".
Comment 3 Arcila Thomas 2004-11-09 12:13:10 UTC
It seems to me it's working (at least on my computer)
you only have to do
config-kernel --make-koutput=$PWD in your kernel dir

The only problem is that new kernel doesn't automagically use that feature.
--output-dir only sets KBUILD_OUTPUT_PREFIX which seems not to be used by any eclass.
Comment 4 Peter Johanson (RETIRED) gentoo-dev 2005-02-26 18:11:53 UTC
config-kernel is no longer supported or recommended. Marking WONTFIX.