Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207249 - net-misc/vpnc-0.5.1: fails to build
Summary: net-misc/vpnc-0.5.1: fails to build
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Christian Faulhammer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-24 05:45 UTC by Tobias Muehlenbruch
Modified: 2008-01-24 07:12 UTC (History)
2 users (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 Tobias Muehlenbruch 2008-01-24 05:45:42 UTC
The vpnc program fails to be emerged running  emerge vpnc.

The emerge process terminates with the following error:
 * 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: net-misc/vpnc-0.5.1 failed.
 * Call stack:
 *           ebuild.sh, line 1717:  Called dyn_setup
 *           ebuild.sh, line  768:  Called qa_call 'pkg_setup'
 *           ebuild.sh, line   44:  Called pkg_setup
 *   vpnc-0.5.1.ebuild, line   32:  Called check_extra_config
 *   linux-info.eclass, line  425:  Called require_configured_kernel
 *   linux-info.eclass, line  145:  Called die
 * The specific snippet of code:
 *              die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
 *  The die message:
 *   Kernel not configured; no .config found in


Reproducible: Always

Steps to Reproduce:
quantum ~ #  emerge vpnc 
Actual Results:  
quantum ~ #  emerge vpnc
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) net-misc/vpnc-0.5.1 to /
 * vpnc-0.5.1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                      [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking vpnc-0.5.1.tar.gz ;-) ...                                     [ ok ]
 * 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: net-misc/vpnc-0.5.1 failed.
 * Call stack:
 *           ebuild.sh, line 1717:  Called dyn_setup
 *           ebuild.sh, line  768:  Called qa_call 'pkg_setup'
 *           ebuild.sh, line   44:  Called pkg_setup
 *   vpnc-0.5.1.ebuild, line   32:  Called check_extra_config
 *   linux-info.eclass, line  425:  Called require_configured_kernel
 *   linux-info.eclass, line  145:  Called die
 * The specific snippet of code:
 *              die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
 *  The die message:
 *   Kernel not configured; no .config found in
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-misc/vpnc-0.5.1/temp/build.log'.
 *


Expected Results:  
>>> net-misc/vpnc-0.5.1 merged.

1) I found the following workaround:

quantum ~ #  KV_OUT_DIR=/usr/src/linux/ emerge vpnc

-<[ snip  ....  snip ]>-
>>> net-misc/vpnc-0.5.1 merged.


2) I never had to set enviroment variables for the emerge process before. 
For example net-wireless/ipw3945-1.2.2

quantum ~ # emerge ipw3945

>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) net-wireless/ipw3945-1.2.2 to /
-<[ snip  ....  snip ]>-
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.23-gentoo-r3/build
 * Found sources for kernel version:
 *     2.6.23-gentoo-r3
 * Checking for suitable kernel configuration options...                  [ ok ]
-<[ snip  ....  snip ]>-
>>> net-wireless/ipw3945-1.2.2 merged.


3) My setup:

quantum ~ # emerge --info
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 Intel(R) Celeron(R) M CPU 443 @ 1.20GHz
Timestamp of tree: Wed, 23 Jan 2008 23:30:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer -mfpmath=387"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer -mfpmath=387"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://gentoo.channelx.biz/ http://gentoo.osuosl.org/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="en_US.UTF-8"
LINGUAS="us en de nl fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi aim alsa arts avahi bitmap-fonts blas bluetooth bzip2 cddb cdparanoia cdr cjk cli cracklib crypt cups curl curlwrappers dbus dri dts dvd dvdr dvdread encode ffmpeg firefox flac fortran freewnn ftp gdbm gif gmp gphoto2 gpm gtk gtk2 hal iconv icq imagemagick imap imlib ipv6 isdnlog jabber java javascript jpeg jpeg2k kde kdexdeltas lame lapack lesstif libcaca libwww mad maildir mbox midi migemo mikmod mime mmap mmx mng motif mp3 mpeg mplayer msn mudflap ncurses ncursus nls nntp nptl nptlonly nsplugin ogg opengl openmp oscar pam pcmcia pcre pda pdf perl php plotutils png ppds pppd python qt3 qt3support qt4 quicktime readline reflection session slp sockets sox speex spell spl sse sse2 ssl tcl tcpd tetex theora tiff tk truetype truetype-fonts type1-fonts unicode usb vcd vorbis win32codecs wmf x86 xine xml xorg xosd xpm xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="us en de nl fr" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

quantum ~ #
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-24 06:47:08 UTC
Fix:

-check_extra_config
+linux-info_pkg_setup
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2008-01-24 07:09:15 UTC
I killed the test completely, it is only needed on runtime, so checking for the build is useless.  A note is dropped in pkg_postinst and the guide describes it very well.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-01-24 07:12:11 UTC
Hmm yeah, sounds like a  good idea; you can easily make it non-fatal with  CONFIG_CHECK="~TUN" but it will still crap out on unconfigured kernel even then.