Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

pkgcore exits with error, on every pmerge?!

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
jsosic
Guru
Guru
User avatar
Posts: 510
Joined: Mon Aug 02, 2004 12:27 pm
Location: Split (Croatia)

pkgcore exits with error, on every pmerge?!

  • Quote

Post by jsosic » Wed Jul 16, 2008 6:32 pm

Code: Select all

# 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: Select all

# /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
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56071
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Jul 16, 2008 7:50 pm

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.
Top
jsosic
Guru
Guru
User avatar
Posts: 510
Joined: Mon Aug 02, 2004 12:27 pm
Location: Split (Croatia)

  • Quote

Post by jsosic » Fri Jul 18, 2008 6:30 pm

Sorry for the inconvenience.
I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56071
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Jul 18, 2008 6:42 pm

jsosic,

Code: Select all

--------------------------- 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

Code: Select all

SANDBOX_WRITE:=
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.
Top
jsosic
Guru
Guru
User avatar
Posts: 510
Joined: Mon Aug 02, 2004 12:27 pm
Location: Split (Croatia)

  • Quote

Post by jsosic » Sun Jul 20, 2008 9:48 am

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
Top
jsosic
Guru
Guru
User avatar
Posts: 510
Joined: Mon Aug 02, 2004 12:27 pm
Location: Split (Croatia)

  • Quote

Post by jsosic » Sat Aug 02, 2008 3:09 am

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
Top
ferringb
Retired Dev
Retired Dev
User avatar
Posts: 357
Joined: Thu Apr 03, 2003 10:06 pm

  • Quote

Post by ferringb » Fri Aug 08, 2008 12:56 am

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?
Top
ferringb
Retired Dev
Retired Dev
User avatar
Posts: 357
Joined: Thu Apr 03, 2003 10:06 pm

nevermind on the ticket

  • Quote

Post by ferringb » Fri Aug 08, 2008 1:16 am

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.
Top
ferringb
Retired Dev
Retired Dev
User avatar
Posts: 357
Joined: Thu Apr 03, 2003 10:06 pm

  • Quote

Post by ferringb » Fri Aug 08, 2008 1:34 am

and here is the patch fixing it; apply it w/in /usr/lib/python2.*/site-packages/
Top
Post Reply

9 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy