Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301991 - sys-apps/pcmcia-cs-3.2.8-r2 fails to build with KBUILD_OUTPUT
Summary: sys-apps/pcmcia-cs-3.2.8-r2 fails to build with KBUILD_OUTPUT
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-23 23:51 UTC by Olivier Crete (RETIRED)
Modified: 2010-05-26 10:26 UTC (History)
0 users

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 Olivier Crete (RETIRED) gentoo-dev 2010-01-23 23:51:58 UTC
This package fails to build when building the kernel in a directory separate from the sources.


Relevant LOG:


TesterTop3 tester # KBUILD_OUTPUT=/home/tester/kernel/linux-2.6.31-gentoo-r6/ emerge -uDavN world system

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/pcmcia-cs-3.2.8-r2  USE="X gtk -trusted -vanilla -xforms" KERNEL="(linux%*)" 0 kB [?=>0]

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [?] indicates that the source repository could not be determined

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/pcmcia-cs-3.2.8-r2
 * pcmcia-cs-3.2.8.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                        [ ok ]
 * checking ebuild checksums ;-) ...                                                             [ ok ]
 * checking auxfile checksums ;-) ...                                                            [ ok ]
 * checking miscfile checksums ;-) ...                                                           [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /home/tester/kernel/linux-2.6.31-gentoo-r6/
 * Found sources for kernel version:
 *     2.6.31-gentoo-r6
>>> Unpacking source...
>>> Unpacking pcmcia-cs-3.2.8.tar.gz to /var/tmp/portage/sys-apps/pcmcia-cs-3.2.8-r2/work
 * Applying pcmcia-cs-3.2.8-gcc4.patch ...                                                        [ ok ]
 * Applying pcmcia-cs-3.2.8-CS_EVENT_RESET_COMPLETE.patch ...                                     [ ok ]
 * Applying pcmcia-cs-3.2.8-ldflags.patch ...                                                     [ ok ]
 * Applying pcmcia-cs-3.2.8-move-pnp-ids.patch ...                                                [ ok ]
 * Applying pcmcia-cs-3.2.8-x11.patch ...                                                         [ ok ]
 * Applying pcmcia-cs-3.2.8-tools-only.patch ...                                                  [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-apps/pcmcia-cs-3.2.8-r2/work
>>> Compiling source in /var/tmp/portage/sys-apps/pcmcia-cs-3.2.8-r2/work/pcmcia-cs-3.2.8 ...
 * Unsafe user-space tools disabled
 * Plug and Play support enabled
 * CardBus support enabled
/var/tmp/portage/sys-apps/pcmcia-cs-3.2.8-r2/work/pcmcia-cs-3.2.8/Configure --noprompt --kernel=/usr/src/linux --target=/var/tmp/portage/sys-apps/pcmcia-cs-3.2.8-r2/image/ --arch=x86 --ucc=i686-pc-linux-gnu-gcc --kcc=i686-pc-linux-gnu-gcc --ld=i686-pc-linux-gnu-ld --uflags=-O2 -march=prescott -pipe --kflags= --srctree --nox11 --notrust --pnp --cardbus

    -------- Linux PCMCIA Configuration Script --------

The default responses for each question are correct for most users.
Consult the PCMCIA-HOWTO for additional info about each option.

Linux kernel source directory [/usr/src/linux]

The kernel source tree is version 2.6.31-gentoo-r6.
The current kernel build date is Mon Nov 23 11:10:59 2009.

Build 'trusting' versions of card utilities (y/n) [n]
Include 32-bit (CardBus) card support (y/n) [y]
Module install directory [/lib/modules/2.6.31-gentoo-r6]

Config file /usr/src/linux/.config not present!
    To fix, run 'make config' in /usr/src/linux.

Configuration failed.

 * 
 * ERROR: sys-apps/pcmcia-cs-3.2.8-r2 failed.
Comment 1 Olivier Crete (RETIRED) gentoo-dev 2010-02-23 02:55:03 UTC
Turns out that pcmcia-cs should NOT be used against kernel 2.6. Users should instead use pcmciautils.

Suggested patch:

iff -u -p -r1.18 pcmcia-cs-3.2.8-r2.ebuild
--- pcmcia-cs-3.2.8-r2.ebuild	10 Jan 2010 01:19:49 -0000	1.18
+++ pcmcia-cs-3.2.8-r2.ebuild	23 Feb 2010 02:54:37 -0000
@@ -36,12 +36,9 @@ pkg_setup() {
 		ewarn "CONFIG_PCMCIA in the kernel and use the drivers from"
 		ewarn "sys-apps/pcmcia-cs-modules."
 		ewarn
-	elif kernel_is gt 2 4 && ! (linux_chkconfig_present PCMCIA || linux_chkconfig_present PCCARD); then
-		eerror
-		eerror "The package requires the in-kernel PCMCIA drivers to be enabled"
-		eerror "for kernel 2.6.x."
-		eerror
-		die "linux-${KV_FULL} without PCMCIA support detected"
+	elif kernel_is gt 2 5; then
+
+		die "Use sys-apps/pcmciautils with 2.6.x kernels"
 	fi
 }
 
Comment 2 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2010-05-26 10:26:53 UTC
i added the suggested change.

thanks