View previous topic :: View next topic |
Author |
Message |
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Wed Jul 16, 2008 6:32 pm Post subject: pkgcore exits with error, on every pmerge?! |
|
|
Code: | # pmerge tcsh
* Resolving...
Processing 1 of 1: app-shells/tcsh-6.15-r2
tee: /var/portage/log/app-shells/tcsh-6.15-r2:buildable:20080716-202457.log: Permission denied
>>> Unpacking tcsh-6.15.00.tar.gz to /var/portage/_tmp/portage/app-shells/tcsh-6.15-r2/work
>>> Unpacking tcsh-config-1.6.tar.bz2 to /var/portage/_tmp/portage/app-shells/tcsh-6.15-r2/work
* Applying tcsh-6.14.00-debian-dircolors.patch ... [ ok ]
* Applying tcsh-6.14-makefile.patch ... [ ok ]
* Applying tcsh-6.15.00-normalize-command-fix.patch ... [ ok ]
sandbox exists- /var/log/sandbox/sandbox-13704.log
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-13704.log"
open_wr: /var/portage/log/app-shells/tcsh-6.15-r2:buildable:20080716-202457.log (symlink to /mnt/external/portage/portage/log/app-shells/tcsh-6.15-r2:buildable:20080716-202457.log)
--------------------------------------------------------------------------------
SANDBOX_ON:=1
SANDBOX_DISABLED:=0
SANDBOX_READ:=/:
/dev/shm:/var/portage/_tmp:/var/portage/ccache:/var/portage/_tmp/portage/app-shells/tcsh-6.15-r2/image/:
/var/portage/_tmp/portage/app-shells/tcsh-6.15-r2/work/:/var/portage/_tmp/portage/app-shells/tcsh-6.15-r2/temp/
SANDBOX_WRITE:=/dev/zero:/dev/null:/dev/fd:/proc/self/fd:/dev/pts/:/dev/vc/:/dev/pty:/dev/tty:
/dev/tts:/dev/console:/dev/shm:/dev/shm/ngpt:/var/log/scrollkeeper.log:/usr/tmp/conftest:/usr/lib/conftest:
/usr/lib32/conftest:/usr/lib64/conftest:/usr/tmp/cf:/usr/lib/cf:/usr/lib32/cf:/usr/lib64/cf:/tmp/.gconfd/lock:/tmp/.bash_history:
/tmp:/tmp:/var/tmp:/tmp/:/var/tmp/:/var/log/sandbox/sandbox-13704.log:/dev/shm:/var/portage/_tmp:
/var/portage/ccache:/var/portage/_tmp/portage/app-shells/tcsh-6.15-r2/image/:
/var/portage/_tmp/portage/app-shells/tcsh-6.15-r2/work/:/var/portage/_tmp/portage/app-shells/tcsh-6.15-r2/temp/:
/var/log/sandbox/sandbox-13704.log:/var/portage/log/app-shells/tcsh-6.15-r2:buildable:20080716-202457.log
SANDBOX_PREDICT:=/tmp/.:/usr/lib/python2.0/:/usr/lib/python2.1/:/usr/lib/python2.2/:/usr/lib/python2.3/:/usr/lib/python2.4/:
/usr/lib/python2.5/:/usr/lib/python3.0/:/var/db/aliases.db:/var/db/netgroup.db:/var/db/netmasks.db:/var/db/ethers.db:
/var/db/rpc.db:/var/db/protocols.db:/var/db/services.db:/var/db/networks.db:/var/db/hosts.db:/var/db/group.db:
/var/db/passwd.db:/proc/self/maps:/dev/console:/dev/random:/var/portage/_tmp
SANDBOX_DEBUG:=unset
SANDBOX_DEBUG_LOG:=/var/log/sandbox/sandbox-debug-13704.log
SANDBOX_LOG:=/var/log/sandbox/sandbox-13704.log
SANDBOX_ARMED:=unset
phases failed
!!! Failed to build config wrapped(use): ebuild src: app-shells/tcsh-6.15-r2: Failed build operation: unpack: Failed building (False/0 return from handler) |
It's the same error with almost any package...
Log files in /var/portage/log/app-shells are created, but are empty.
Permissions seem OK to me, I even chowned whole /var/portage to portage:portage.
Anyway I have very complex portage setup, here is my make.conf to ilustrate that:
Code: | # /etc/make.conf
#
# General host/compiler settings
#
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -Os -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
#
# Linker settings
#
#LDFLAGS="-Wl,-O1 -Wl,--sort-common -s -Wl,--strip-debug -Wl,--enable-new-dtags"
#LDFLAGS="${LDFLAGS} -Wl,--as-needed"
#LDFLAGS="${LDFLAGS} -Wl,--relax"
#
# Portage directories
#
PORTAGE_TMPDIR= "/var/portage/_tmp" # tmpdir for compiling
PORTDIR= "/var/portage/local/gentoo" # Portage tree location
DISTDIR= "/var/portage/distfiles" # Distfiles location
PKGDIR= "/var/portage/packages" # where created .tbz2 binary packages will be stored
PORT_LOGDIR= "/var/portage/log" # logging directory
PORTAGE_BINHOST="file:///var/portage/packages" # binary packages
PORTDIR_OVERLAY="/var/portage/local/jsosic"
source /var/portage/local/layman/make.conf
#
# Portage mirrors
#
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ \
http://mirror.bih.net.ba/gentoo/ \
http://distfiles.gentoo.bg/ \
http://ftp.linux.ee/pub/gentoo/distfiles/ \
http://ftp.rhnet.is/pub/gentoo/ \
http://ftp.heanet.ie/pub/gentoo/ "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_RSYNC_EXTRA_OPTS=""
#FETCHCOMMAND="/usr/bin/getdelta.sh \${URI}"
#RESUMECOMMAND="wget -c \${URI}"
#
# Portage Features & behaviour
#
FEATURES="parallel-fetch confcache buildpkg ccache metadata-transfer userfetch userpriv"
EMERGE_DEFAULT_OPTS="--verbose" # options passed to emerge by default
INSTALL_MASK=""
PORTAGE_NICENESS="15" # Niceness of compile process
AUTOCLEAN="yes" # Automatically cleans the system by removing outdated packages which will not remove functionalities
CLEAN_DELAY="3" # Determines how long the countdown delay will be after running `emerge clean`
PORTAGE_TMPFS="/dev/shm" # location of tmpfs
CCACHE_SIZE="4096M" # max size of ccache dir
CCACHE_DIR=/var/portage/ccache # ccache dir location
PORTAGE_ELOG_CLASSES="*" # log all elogs
PORTAGE_ELOG_SYSTEM="save mail"
PORTAGE_ELOG_MAILURI="root@localhost"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="Package \${PACKAGE} merged on \${HOST} with notice"
EBEEP_IGNORE="no" # disable beeps when displaying important informational messages
EPAUSE_IGNORE="no" # ignore short pauses that occur when displaying important informational messages
LINGUAS="en en_US hr"
VIDEO_CARDS="nvidia vesa"
LIRC_DEVICES="devinput"
#
# USE flags
#
USE=" mmx mmxext 3dnow 3dnowext sse xvmc \
acpi dvd dvdr usb ieee1394 lm_sensors v4l v4l2 lirc \
alsa pulseaudio -oss -esd -arts \
X xcb glitz opengl sdl -directfb -dv \
nptl nptlonly threads xattr -nls \
-ipv6 \
bash-completion zsh-completion vim-syntax doc pdf \
jpeg jpeg2k png tiff xpm gif imlib mng svg imagemagick \
mp2 mp3 musepack musicbrainz vorbis ogg aac a52 mad \
sndfile wavpack dts speex cdparanoia audiofile \
quicktime real flac ffmpeg xvid divx vcd gmedia \
realmedia wmp mpeg theora dvdread \
truetype utf8 unicode spell slang offensive \
bzip2 lzo rar zip \
xface xosd \
firefox mozilla moznopango seamonkey nsplugin mplayer \
startup-notification kdeenablefinal -kde -gnome -eds \
-gstreamer \
-gpm -dbus -hal \
perl tetex -java \
fbcondecor " |
Also, /var/portage is symlink to /mnt/external/portage/portage, and /mnt/external/portage is mountpoint of my usb hard drive (/dev/sdb2).
Any ideas?
Mod Edit by NeddySeagoon - line breaks added for easier reading _________________ I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54437 Location: 56N 3W
|
Posted: Wed Jul 16, 2008 7:50 pm Post subject: |
|
|
Moved from Portage & Programming to Unsupported Software.
All alternate package manager discussions go here _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Fri Jul 18, 2008 6:30 pm Post subject: |
|
|
Sorry for the inconvenience. _________________ I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54437 Location: 56N 3W
|
Posted: Fri Jul 18, 2008 6:42 pm Post subject: |
|
|
jsosic, Code: | --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-13704.log"
open_wr: /var/portage/log/app-shells/tcsh-6.15-r2:buildable:20080716-202457.log (symlink to /mnt/external/portage/portage/log/app-shells/tcsh-6.15-r2:buildable:20080716-202457.log) |
Portage has tried to write to /mnt/external/portage/portage/log/app-shells/tcsh-6.15-r2:buildable:20080716-202457.log but does not have write permissions.
Check the permissions on the partition, which I guess is /mnt/external and look in
I don't see that path listed. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Sun Jul 20, 2008 9:48 am Post subject: |
|
|
As I understood, I need to set SANDBOX_WRITE:=, so that includes /mnt/external? But where do I set that variable? _________________ I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life |
|
Back to top |
|
|
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Sat Aug 02, 2008 3:09 am Post subject: |
|
|
So nobody actually knows this?
I've tried within /etc/portage/bashrc, but it doesn't work. At least it doesn't work with pkgcore. Portage is working OK with or without entry in bashrc. _________________ I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life |
|
Back to top |
|
|
ferringb Retired Dev
Joined: 03 Apr 2003 Posts: 357
|
Posted: Fri Aug 08, 2008 12:56 am Post subject: |
|
|
jsosic wrote: | So nobody actually knows this?
I've tried within /etc/portage/bashrc, but it doesn't work. At least it doesn't work with pkgcore. Portage is working OK with or without entry in bashrc. |
Ticket it upstream please at pkgcore.org/trac/pkgcore/ ; more then willing to look into it, but in general, I'd suggest hitting upstream ticket system since I don't watch the forums.
Version of pkgcore I'm guessing is 0.4.7.5? |
|
Back to top |
|
|
ferringb Retired Dev
Joined: 03 Apr 2003 Posts: 357
|
Posted: Fri Aug 08, 2008 1:16 am Post subject: nevermind on the ticket |
|
|
Know what's going on, will release a fix in next day or so w/ it; basically portage spawns tee outside of the sandbox, pkgcore (due to ebd) spawns it from w/in an armed sandbox. Thus sandbox rules apply to it. |
|
Back to top |
|
|
ferringb Retired Dev
Joined: 03 Apr 2003 Posts: 357
|
|
Back to top |
|
|
|