Setting up a new gentoo system, 'emerge --emptytree system' fails in emerging hal. At first, the hal emerge complained about missing kernel sources. I emerged gentoo-sources. Then it complained that no .config-file was available. 'cd /usr/src/linux ; make defconfig' helped, hal now got merged successfully. (-> Easy workaround) But as according to gentoo installation guide installing an configuring the kernel comes after 'emerge --emptytree system' and as I wonder if merging hal with perhaps a different kernel and/or kernel configuration than used in the later system is quite a good idea and as I could not find a dublicate in the bugzilla database, I thougt I might tell ... Error message after merging gentoo sources, but before 'make defconfig': -------------- * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.13-gentoo-r3 * getfilevar requires 2 variables, with the second a valid file. * getfilevar <VARIABLE> <CONFIGFILE> * Could not find a usable .config in the kernel source directory. * Please ensure that /usr/src/linux points to a configured set of Linux sources. * If you are using KBUILD_OUTPUT, please set the environment var so that * it points to the necessary object directory so that it might find .config. !!! ERROR: sys-apps/hal-0.4.7-r2 failed. !!! Function pkg_setup, Line 45, Exitcode 1 !!! You need to run a 2.6.10 or newer kernel to build & use this pack !!! If you need support, post the topmost build error, NOT this status message. -------------- Reproducible: Always Steps to Reproduce: 1. set up a new gentoo stage2 system 2. emerge --emptytree system Actual Results: emerge does not merge hal # emerge info Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.9-gentoo-r9Gentoo_Kernel_2.6 i686) ================================================================= System uname: 2.6.9-gentoo-r9Gentoo_Kernel_2.6 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 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="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /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="-O2 -march=pentium3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mir.zyrianes.net/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/" LANG="de_DE@euro" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X a52 aac acpi aim alsa apache2 apm audiofile avi bash-completion bcmath berkdb bitmap-fonts bluetooth bzip2 cdparanoia cdr cpdflib crypt cups dga directfb divx4linux dvb dvd dvdr dvdread eds emacs emboss encode exif fbcon ffmpeg flac foomaticdb fortran ftp gdbm gif ginac gnome gphoto2 gpm gstreamer gtk gtk2 hal icq ieee1394 imagemagick imap imlib ipv6 jabbar jack java javascript jpeg kde ladcca leim libg++ libwww lirc lm_sensors mad memlimit mikmod mime ming mmx mng motif mozilla mp3 mpeg msn mule nas ncurses nls ogg oggvorbis opengl oscar pam pdflib perl php plotutils png posix python qt quicktime readline samba scanner sdl session shorten skey slang sndfile sockets speex spell spl sse ssl svg svga symlink sysvipc szip tcltk tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vorbis win32codecs wmf xine xml xml2 xosd xpm xprint xv xvid yahoo zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Another problematic emerge similar to those above: svgalib_helper refused to merge until I compiled the kernel ('make && make modules_install'). ------------------ * Preparing svgalib_helper module make -C /usr/src/linux SUBDIRS=/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper CLASS_CFLAGS= modules make[1]: Entering directory `/usr/src/linux-2.6.13-gentoo-r3' WARNING: Symbol version dump /usr/src/linux-2.6.13-gentoo-r3/Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/main.o CC [M] /var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/i810.o CC [M] /var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/interrupt.o CC [M] /var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/virtual.o CC [M] /var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/displaystart.o LD [M] /var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/svgalib_helper.o Building modules, stage 2. MODPOST /bin/sh: scripts/mod/modpost: Datei oder Verzeichnis nicht gefunden make[2]: *** [__modpost] Fehler 127 make[1]: *** [modules] Fehler 2 make[1]: Leaving directory `/usr/src/linux-2.6.13-gentoo-r3' make: *** [default] Fehler 2 !!! ERROR: media-libs/svgalib-1.9.21-r1 failed. !!! Function linux-mod_src_compile, Line 460, Exitcode 2 !!! Unable to make KDIR=/usr/src/linux default. !!! If you need support, post the topmost build error, NOT this status message. ------------------
Just noticed there is some German in my last comment which I should perhaps translate ... 'Datei oder Verzeichnis nicht gefunden' means 'file or directory not found', 'Fehler' is (of course) 'error'.
I'm wondering how exactly hal is being pulled in to "system" anyway. Yes, I see that he has the hal USE flag, but that shouldn't affect things in system. Anyway, assigning to the gnome herd to investigate.
this is interesting.. I dont think its gnome's fault... texinfo (which is part of system) depends on ncurses ncurses has a gpm use flag gpm has a emacs use flag emacs has a gnome use flag... which pull in gnome-desktop (and ends up getting all of gnome) Solution A. Make emacs not depend on gnome-desktop (and remove the use flag).. all it does is install a .desktop file Solution B. I dont have another solution (appart from removing texinfo from the system)
(In reply to comment #4) > gpm has a emacs use flag vapier, please remove the bogus emacs flag from IUSE in 1.20.1-r5 and also the whole emacs support from 1.20.1-r4 (Bug 99533). Removing that from ~arch ebuilds does not help much.
Filed a bug against emacs for the improper use of the gnome useflag
ping?
Since vapier fixed the underlying bug report. Marking this as fixed. please reopen if problem persists.