Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16661 - pcmcia-cs-3.2.1-r4 update fails
Summary: pcmcia-cs-3.2.1-r4 update fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Peter Johanson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-02 06:59 UTC by Tobias Sager
Modified: 2003-03-04 16:07 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 Tobias Sager 2003-03-02 06:59:19 UTC
two different errors:
 - first the one with the permissions
 - and second the failing detection of kernel tree

<snip>
>>> md5 ;-) pcmcia-cs-3.2.1.tar.gz
>>> md5 ;-) orinoco-0.13b-patched.diff
>>> md5 ;-) orinoco-0.13b.tar.gz
>>> Unpacking source...
>>> Unpacking pcmcia-cs-3.2.1.tar.gz to /var/tmp/portage/pcmcia-cs-3.2.1-r4/work
>>> Unpacking orinoco-0.13b.tar.gz to /var/tmp/portage/pcmcia-cs-3.2.1-r4/work
patching file hermes.c
patching file hermes.h
patching file orinoco.c
patching file orinoco.h
mv: overwrite `wireless/hermes.c', overriding mode 0444? y
mv: overwrite `wireless/hermes.h', overriding mode 0444? y
mv: overwrite `wireless/hermes_rid.h', overriding mode 0444? y
mv: overwrite `wireless/orinoco.c', overriding mode 0444? y
mv: overwrite `wireless/orinoco_cs.c', overriding mode 0444? y
mv: overwrite `wireless/orinoco.h', overriding mode 0444? y
mv: overwrite `wireless/ieee802_11.h', overriding mode 0444? y
/usr/sbin/ebuild.sh: line 50: Configure: Permission denied
/usr/sbin/ebuild.sh: line 57: etc/config: Permission denied
>>> Source unpacked.

    -------- 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]
Linux source tree '/usr/src/linux' is incomplete or missing!
    See the HOWTO for a list of FTP sites for current kernel sources.

Configuration failed.


!!! ERROR: sys-apps/pcmcia-cs-3.2.1-r4 failed.
!!! Function src_compile, Line 97, Exitcode 1
!!! failed configuring

saidar root # l /usr/src/linux
lrwxr-xr-x    1 root     root           20 2003-02-14 00:50 /usr/src/linux -> linux-2.4.19-vanilla
</snip>

Reproducible: Always
Steps to Reproduce:

1. emerge -u pcmcia-cs
2. press 'y' for every permission asking
3. wait and watch
Comment 1 Peter Johanson (RETIRED) gentoo-dev 2003-03-02 11:00:16 UTC
Can you please send me the output of "emerge --info", as well as the output of 
"ls -l /usr/src/2.4.19-vanilla/". 
Comment 2 Peter Johanson (RETIRED) gentoo-dev 2003-03-02 13:19:37 UTC
pcmcia-3.2.1-r4 has been fixed to work with FEATURES="userpriv" enabled. rsync and try re-emerging. Next check for presence of /usr/src/linux/kernel/Makefile to see about the error about missing or incomplete kernel tree.
Comment 3 Tobias Sager 2003-03-02 15:54:48 UTC
I see a possibility there:

<snip>
saidar root # l /usr/src/linux/kernel/Makefile
-rw-------    1 tsa      users        1272 2002-09-21 01:00 /usr/src/linux/kernel/Makefile
</snip>

portage user does not have permission to read the kernel tree...
could that be it?

emerge info anyway:
<snip>
Portage 2.0.47-r7 (default-x86-1.4, gcc-3.2.2, glibc-2.2.5-r2,2.3.1-r2)
=================================================================
System uname: 2.4.19 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
GENTOO_MIRRORS=" http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://trumpetti.atm.tut.fi/gentoo/ http://trumpetti.atm.tut.fi/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/portage.local"
USE="x86 oss apm crypt cups gif jpeg libwww mikmod mmx ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gdbm berkdb slang readline aalib svga java guile mysql X sdl gpm tcpd pam ssl python esd imlib oggvorbis gtk qt motif opengl cdr sse sse2 -3dnow pcmcia pnp trusted pda gphoto2 dga fbcon -gnome libg++ tcltk tiff alsa dvd ggi mozilla xml perl samba -doc -kde xfs gtkhtml encode avi mpeg -arts -gtk2 usb ethereal"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache distcc userpriv usersandbox"
</snip>

Regards, thanks
Tobias
Comment 4 Tobias Sager 2003-03-02 15:55:27 UTC
Besides, the permission problem vanished.
Comment 5 Peter Johanson (RETIRED) gentoo-dev 2003-03-02 20:34:59 UTC
the permissions on that could definitely be affecting this. Try doing something like "chmod -R a+r /usr/src/linux" to add the read bit to everything in your kernel tree.
Comment 6 Tobias Sager 2003-03-03 10:49:49 UTC
Works. Thanks.
(Though it's a pity pcmcia needs access to the kernel tree)
Comment 7 Peter Johanson (RETIRED) gentoo-dev 2003-03-04 16:07:39 UTC
worky