Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48032 - Emerge of app-misc/lirc-0.7.0_pre3 causes sandbox violation
Summary: Emerge of app-misc/lirc-0.7.0_pre3 causes sandbox violation
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
: 47421 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-16 04:35 UTC by Jarle Bjørgeengen
Modified: 2004-12-05 02:46 UTC (History)
3 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 Jarle Bjørgeengen 2004-04-16 04:35:29 UTC
Overview Description:

When trying to install lirc-0.7.0_pre3 with "emerge lirc" , The install fails with the following:

>>>>>>>>>>> SNIP <<<<<<<<<<
 CONFIG_HEADERS= CONFIG_LINKS= \
  CONFIG_FILES=drivers/lirc_dev/Makefile /bin/sh ./config.status
config.status: creating drivers/lirc_dev/Makefile
config.status: executing default-1 commands
make[3]: Leaving directory `/var/tmp/portage/lirc-0.7.0_pre3/work/lirc-0.7.0pre3/drivers/lirc_dev'
make[3]: Entering directory `/var/tmp/portage/lirc-0.7.0_pre3/work/lirc-0.7.0pre3/drivers/lirc_dev'
mv Makefile Makefile.automake
cp ../Makefile.kernel Makefile
make -C /usr/src/linux/ SUBDIRS=/var/tmp/portage/lirc-0.7.0_pre3/work/lirc-0.7.0pre3/drivers/lirc_dev modules \
        KBUILD_VERBOSE=1
make[4]: Entering directory `/usr/src/linux-2.4.25'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
ACCESS DENIED  open_wr:   /usr/src/linux-2.4.25/scripts/split-include
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot open output file scripts/split-include: Permission denied
collect2: ld returned 1 exit status
ACCESS DENIED  unlink:    /usr/src/linux-2.4.25/scripts/split-include
make[4]: *** [scripts/split-include] Error 1
make[4]: Leaving directory `/usr/src/linux-2.4.25'
make[3]: *** [lirc_dev.o] Error 2
make[3]: Leaving directory `/var/tmp/portage/lirc-0.7.0_pre3/work/lirc-0.7.0pre3/drivers/lirc_dev'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/lirc-0.7.0_pre3/work/lirc-0.7.0pre3/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/lirc-0.7.0_pre3/work/lirc-0.7.0pre3'
make: *** [all] Error 2

!!! ERROR: app-misc/lirc-0.7.0_pre3 failed.
!!! Function src_compile, Line 94, Exitcode 2
!!! (no error message)

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-misc_-_lirc-0.7.0_pre3-9899.log"

open_wr:   /usr/src/linux-2.4.25/scripts/split-include
unlink:    /usr/src/linux-2.4.25/scripts/split-include
--------------------------------------------------------------------------------
>>>>>>>>>>>>>>>> SNIP <<<<<<<<<<<<<<<<<<

Output og emerge info

>>>>>>>>>>>>>> SNIP <<<<<<<<<<<<<<<<<<<<
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-nc6000-ntfs)
=================================================================
System uname: 2.4.25-nc6000-ntfs i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -fomit-frame-pointer -O2 -pipe -mmmx -msse -msse2 -mfpmath=sse,387"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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 /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -fomit-frame-pointer -O2 -pipe -mmmx -msse -msse2 -mfpmath=sse,387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://eurolinux.grenoble.hp.com/pub/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d acpi alsa apm arts avi berkdb cdr crypt cups curl dvd encode esd ethereal evo foomaticdb gd gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imap imlib jabber java jpeg kde ldap libg++ libwww lirc mad mcal mikmod mmx motif mozilla mpeg msn ncurses nls oggvorbis opengl oss pam pcmcia pda pdflib perl plotutils png pnp python qt quicktime readline scanner sdl slang spell sse ssl svga tcltk tcpd tiff truetype trusted usb wmf wxWindows x86 xinerama xml xml2 xmms xosd xv zlib"
>>>>>>>>>>>>> SNIP <<<<<<<<<<<<<<<<<<<<

emerge =lirc-0.7.0_pre2 exhibits the same behavior.
emerge =lirc-0.6.6-r1 exhibits the same behavior.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-04-19 22:38:20 UTC
*** Bug 47421 has been marked as a duplicate of this bug. ***
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-04-19 22:40:34 UTC
maybe we have a chance with the same as done in media-sound/alsa-driver/alsa-driver-1.0.4-r1.ebuild in which the whole kernel source is copied to PORTAGE_TEMP
Comment 3 Harri Kukkonen 2004-04-27 17:35:32 UTC
I had the same problem with kernel 2.4.26 and lirc-0.7.0_pre3 (other lirc versions failed also). 

I got mine working by doing the following steps:

- Installing linux-headers-2.4.26 (masked, needs some adjustment)
- Re-emerge glibc
- Copying /usr/src/linux/* -> /var/tmp/portage/linux-2.4.26 (as per advice in comment #2, I
Comment 4 Harri Kukkonen 2004-04-27 17:35:32 UTC
I had the same problem with kernel 2.4.26 and lirc-0.7.0_pre3 (other lirc versions failed also). 

I got mine working by doing the following steps:

- Installing linux-headers-2.4.26 (masked, needs some adjustment)
- Re-emerge glibc
- Copying /usr/src/linux/* -> /var/tmp/portage/linux-2.4.26 (as per advice in comment #2, I´m not sure if this helped or is necessary, since emerge lirc didn't work until after doing the kernel steps) 
- Going to /usr/src/linux and doing make mrproper
- Copying the old config back
- Make menuconfig (and saved the config unchanged)
- Make dep

After this emerge lirc worked. I´m not sure if all these steps are necessary, and don´t dare to change bugs status or anything since I´m a newbie with this bugreporting stuff. I hope this helps anyway.
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2004-06-28 09:11:49 UTC
latexer: does the new kmod elcass copy the kernel sources for kernel 2.4 as well?
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2004-08-01 15:08:42 UTC
does this bug still occur with lirc-0.7.0_pre7 ?
Comment 7 Quantumstate 2004-08-08 09:20:10 UTC
No, with lirc-0.7.0_pre7 you'll get:
cc1: Permission denied: opening dependency file scripts/basic/.fixdep.d

... only if in /etc/make.conf you have
FEATURES="userpriv"
Comment 8 Heinrich Wendel (RETIRED) gentoo-dev 2004-08-18 02:58:06 UTC
so it builds fine without userpriv?
Comment 9 Greg Etling 2004-09-09 10:05:07 UTC
I have now duplicated this bug on kernel 2.4.26-gentoo-r9 when emerging lirc-0.7.0_pre7. This is a fresh gentoo install:

make[4]: Entering directory `/usr/src/linux-2.4.26-gentoo-r9'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
ACCESS DENIED  open_wr:   /usr/src/linux-2.4.26-gentoo-r9/scripts/split-include
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot open output file scripts/split-include: Permission denied
collect2: ld returned 1 exit status
ACCESS DENIED  unlink:    /usr/src/linux-2.4.26-gentoo-r9/scripts/split-include
...


--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-misc_-_lirc-0.7.0_pre7-13508.log"

open_wr:   /usr/src/linux-2.4.26-gentoo-r9/scripts/split-include
unlink:    /usr/src/linux-2.4.26-gentoo-r9/scripts/split-include
--------------------------------------------------------------------------------

Comment 10 Heinrich Wendel (RETIRED) gentoo-dev 2004-11-29 04:51:53 UTC
what about lirc-0.7.0?
Comment 11 Heinrich Wendel (RETIRED) gentoo-dev 2004-12-05 02:46:43 UTC
please test lirc-0.7.0-r1