Bug 61825 - ACCESS DENIED error in slmodem-2.9.9-r2 ebuild with 2.4 kernels
|
Bug#:
61825
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: dragonheart@gentoo.org
|
Reported By: pva@gentoo.org
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: ACCESS DENIED error in slmodem-2.9.9-r2 ebuild with 2.4 kernels
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2004-08-26 09:18 0000
|
During instalation of slmodem-2.9.9-r2 driver I have an "ACCESS DENIED" error.
Removing alsa flag produce the same result.
Reproducible: Always
Steps to Reproduce:
1. # emerge slmodem
Actual Results:
make install -C drivers
install -D -m 755
modem/modem_test /var/tmp/portage/slmodem-2.9.9-r2/image//usr/sbin/modem_test
make[1]: Entering directory
`/var/tmp/portage/slmodem-2.9.9-r2/work/slmodem-2.9.9/drivers'
rm
-f /var/tmp/portage/slmodem-2.9.9-r2/image//lib/modules/2.4.26-gentoo-r6/misc/slmdm.o
\
/var/tmp/portage/slmodem-2.9.9-r2/image//lib/modules/2.4.26-gentoo-r6/misc/slfax.o
\
/var/tmp/portage/slmodem-2.9.9-r2/image//lib/modules/2.4.26-gentoo-r6/misc/slusb.o
\
/var/tmp/portage/slmodem-2.9.9-r2/image//lib/modules/2.4.26-gentoo-r6/misc/slamrmo.o
\
/var/tmp/portage/slmodem-2.9.9-r2/image//lib/modules/2.4.26-gentoo-r6/misc/slmodem.o
# remove old 2.7,2.8 version
install -D -m 644
slamr.o /var/tmp/portage/slmodem-2.9.9-r2/image//lib/modules/2.4.26-gentoo-r6/misc/slamr.o
install -D -m 644
slusb.o /var/tmp/portage/slmodem-2.9.9-r2/image//lib/modules/2.4.26-gentoo-r6/misc/slusb.o
mkdir -p /var/tmp/portage/slmodem-2.9.9-r2/image//etc && \
cp /etc/modules.conf /var/tmp/portage/slmodem-2.9.9-r2/image//etc/modules.conf.slamr
&& \
echo 'alias char-major-212 slamr'
>> /var/tmp/portage/slmodem-2.9.9-r2/image//etc/modules.conf && \
echo 'alias char-major-213 slusb'
>> /var/tmp/portage/slmodem-2.9.9-r2/image//etc/modules.conf
/sbin/depmod -a
ACCESS DENIED open_wr: /lib/modules/2.4.26-gentoo-r6/modules.dep
depmod: Can't open /lib/modules/2.4.26-gentoo-r6/modules.dep for writing
make[1]: *** [install] ?????? 255
make[1]: Leaving directory
`/var/tmp/portage/slmodem-2.9.9-r2/work/slmodem-2.9.9/drivers'
make: *** [install-drivers] ?????? 2
!!! ERROR: net-dialup/slmodem-2.9.9-r2 failed.
!!! Function src_install, Line 81, Exitcode 2
!!! driver install failed
--------------------------- ACCESS VIOLATION SUMMARY -------------------------
LOG FILE = "/tmp/sandbox-net-dialup_-_slmodem-2.9.9-r2-29272.log"
open_wr: /lib/modules/2.4.26-gentoo-r6/modules.dep
------------------------------------------------------------------------------
Expected Results:
I expect emerge to complete with success.
# emerge --info
Portage 2.0.50-r10 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r1,
2.4.26-gentoo-r6)
=================================================================
System uname: 2.4.26-gentoo-r6 i686 Mobile Intel(R) Celeron(R) CPU 1.60GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=pentium4 -march=pentium4 -O2 -pipe -fomit-frame-pointer -mmmx
-msse -msse2 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=pentium4 -march=pentium4 -O2 -pipe -fomit-frame-pointer -mmmx
-msse -msse2 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi bindist cdr crypt cups directfb dvd encode esd faad
flac foomaticdb ggi gif gnome gpm gtk gtk2 idea imagemagick imlib java jbig
jpeg kde lcms libg++ libwww linguas_ru lzw-tiff mad matroska mmx mozilla mpeg
ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png python qt
quicktime readline samba slang spell sse ssl tetex theora tiff truetype wmf
wsconvert x86 xml2 xmms xv zlib"
# uname -a
Linux antsy 2.4.26-gentoo-r6 #1 ??? ??? 19 13:47:17 MSD 2004 i686 Mobile
Intel(R) Celeron(R) CPU 1.60GHz GenuineIntel GNU/Linux
# ll /usr/src
total 35K
-rw-r--r-- 1 root root 26K Jul 19 13:41 kern.conf
lrwxrwxrwx 1 root root 31 Jul 19 13:42 linux
-> /usr/src/linux-2.4.26-gentoo-r6
drwxr-xr-x 16 root root 880 Aug 1 01:50 linux-2.4.26-gentoo-r6
*** Bug 61823 has been marked as a duplicate of this bug. ***
Is this still broken? It jus worked for me. Also I just added 2.9.10 can you
double check that that one works for you.
Yes. I can't intall neither slmodem-2.9.9 nor 2.9.10. The same problem. Now I
have linux-2.4.27.
As you can see from my bug report, install script calls `depmod -a`, which
tries to write into /lib/modules/*/modules.dep. But emerge do not allow it to
do this.
If I suppose you have FEATURES="-sandbox", then I can edit my /etc/make.conf
and install this package. But IIRC it is very bad to do such things. Please,
correct me if I'm wrong. I'm not a developer.
Oh.
After installation with FEATURES="-sandbox", I found another bug with the ebuild. Installation process shouldn't modify /etc/modules.conf. Only modules-update, should update this file.
Yes this will be fixed. Sorry for the inconvience
*** Bug 65743 has been marked as a duplicate of this bug. ***