Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Portage + Python +??? = Nothing successfully installs

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
ShadowHawkBV
Guru
Guru
User avatar
Posts: 355
Joined: Sat Mar 27, 2004 2:11 pm

Portage + Python +??? = Nothing successfully installs

  • Quote

Post by ShadowHawkBV » Wed Mar 04, 2009 10:59 pm

I did my normal eix-sync and emerge -uDvNa world today. Everything was fine. Since I updated the toolchain (glibc, Gcc, etc) I decided it's best to do an emerge -uDvNea system. It asked me to unmask sys-devel/libtool, sys-apps/sandbox, and app-admin/pessulus so it could continue. I did so and then ran it. It rebuilt portage, and gave me the following error:

Code: Select all

Cannot chown a lockfile. This could cause inconvenience later.
>>> Done.
Cannot chown a lockfile. This could cause inconvenience later.
Traceback (most recent call last):
  File "/usr/bin/emerge", line 40, in <module>
    retval = _emerge.emerge_main()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 14387, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 13483, in action_build
    retval = mergetask.merge()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 9999, in merge
    rval = self._merge()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 10241, in _merge
    self._main_loop()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 10376, in _main_loop
    self._poll_loop()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 8930, in _poll_loop
    handler(f, event)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 2238, in _output_handler
    self._unregister_if_appropriate(event)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1753, in _unregister_if_appropriate
    self.wait()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1657, in wait
    self._wait()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 2062, in _wait
    self._set_returncode(wait_retval)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 3049, in _set_returncode
    bintree.inject(pkg.cpv, filename=binpkg_tmpfile)
  File "//usr/lib64/portage/pym/portage/dbapi/bintree.py", line 839, in inject
    self._create_symlink(cpv)
  File "//usr/lib64/portage/pym/portage/dbapi/bintree.py", line 298, in _create_symlink
    os.symlink(os.path.join("..", "All", mypkg + ".tbz2"), full_path)
OSError: [Errno 17] File exists
It now gives me that error no matter what I try to emerge. It also fails doing python-updater with the same error.

Here's my emerge --info

Code: Select all

Portage 2.1.6.4 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.2.5
Timestamp of tree: Wed, 04 Mar 2009 14:00:11 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r15, 2.5.4-r2
dev-util/cmake:      2.6.3
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/samba/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrored.ca/ ftp://gentoo.mirrored.ca/ http://gentoo.osuosl.org/ ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/"
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/samba/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 ao audiofile berkdb bidi bluetooth bonobo branding bzip2 cairo cdinstall cdparanoia cdr cli cracklib crypt cups dbus dga doc dri dts dvd dvdr dvdread eds emboss encode esd evd evo exif fam fbcon ffmpeg firefox flac foomanticdb fortran fuse gd gdbm gif glut gnome gnutls gphoto2 gpm gstreamer gtk gtkhtml hal iconv imagemagick ipv6 isdnlog java javascript jbig jpeg jpeg2k kde ldap libcaca libgda libnotify mad matroska matrox midi mikmod mmap mmx mng mp3 mpeg mplayer mudflap multilib mysql ncurses nls nocd nptl nptlonly nsplugin nvidia offensive ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session sound spell spl sse sse2 ssl startup-notification stream svg sysfs tcpd theora tiff truetype unicode usb utf-8 v4l vcd vorbis vram wmf wxwindows xine xinerama xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="INTEL8X0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
and my make.conf

Code: Select all

CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j4"
PORTAGE_TMPDIR="/home/tmp"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrored.ca/ ftp://gentoo.mirrored.ca/ http://gentoo.osuosl.org/ ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/"
ALSA_CARDS="INTEL8X0"
FEATURES="-userfetch parallel-fetch buildpkg ccache fixpackages"
CCACHE_SIZE="4G"
CCACHE_DIR="/home/tmp/ccache"
INPUT_DEVICES="mouse keyboard evdev joystick"
VIDEO_CARDS="nvidia"
DISTDIR="/samba/distfiles"
PKGDIR="/samba/packages"
USE="-arts X aac a52 acpi alsa ao audiofile bidi bonobo cairo cdinstall cdparanoia cdr crypt cups dbus dga  doc dri dts dvd dvdr dvdread eds encode evd  exif fbcon ffmpeg firefox flac foomanticdb fuse gd gif glut gnome gnutls gphoto2 gstreamer gtk gtkhtml hal imagemagick java javascript jbig jpeg jpeg2k libcaca libgda mad matroska  matrox mng mmap mpeg mp3 mplayer mysql nptl nptlonly nocd nsplugin nvidia offensive ogg opengl oss perl pcre png pdf ppds qt4 qt3support quicktime samba sdl sound stream svg svga theora tiff usb unicode utf-8 v4l vcd vidix vorbis vram win32codecs wmf wxwindows xine xinerama xulrunner xv xvmc xvid"
PORTAGE_ELOG_CLASSES="info warn log error"
PORTAGE_ELOG_SYSTEM="syslog save"
I've looked on Bugzilla, and the answers there don't match the problem here. The problem there that kind of matches has an impossible fix as the file it says to edit (sudo vim /usr/lib/portage/pym/portage_data.py) doesn't contain the line mentioned. (Sorry, I can't remember what the search term I used was to find it.)

Any help would be appreciated, as I can't really leave my box in this state.
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte
Top
TrueDFX
Retired Dev
Retired Dev
Posts: 1348
Joined: Wed Jun 02, 2004 5:33 pm

  • Quote

Post by TrueDFX » Wed Mar 04, 2009 11:10 pm

If it's failing when saving the package, you should be able to work around that by disabling FEATURES="buildpkg". As for the actual error, could you please check your PKGDIR? Is there anything unusual there? What do you see if you run

Code: Select all

ls -l -R /samba/packages/
?
Top
ShadowHawkBV
Guru
Guru
User avatar
Posts: 355
Joined: Sat Mar 27, 2004 2:11 pm

  • Quote

Post by ShadowHawkBV » Wed Mar 04, 2009 11:17 pm

http://pastebin.com/m34cec989

Seems to be normal to me.

If all it is is a problem with it creating packages after it builds, I can live without that easily.
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Mar 05, 2009 3:57 am

Is /samba/packages a network mount? Your user/group ownership looks wrong. I would expect the files and directories to be owned by root.
Top
sumerman
n00b
n00b
User avatar
Posts: 51
Joined: Sun Jun 26, 2005 8:24 pm
Location: New York, NY

Same problem

  • Quote

Post by sumerman » Thu Mar 05, 2009 4:20 am

I have posted what appears to be a similar problem, although I am not accessing files through samba. The main difference is that I get the same python error when I run

Code: Select all

emerge --info
so I can't post that information.
Last edited by sumerman on Thu Mar 05, 2009 2:08 pm, edited 2 times in total.
Top
nmp0906
n00b
n00b
Posts: 71
Joined: Thu Jan 31, 2008 12:14 pm
Location: United States

  • Quote

Post by nmp0906 » Thu Mar 05, 2009 12:46 pm

Hu wrote:Is /samba/packages a network mount? Your user/group ownership looks wrong. I would expect the files and directories to be owned by root.
I'd assume from the /samba it is. The real issue is that we see chown issues (or any write/modify actions) failing. I don't think the file perms here are the issue since emerge runs as root.
Top
ShadowHawkBV
Guru
Guru
User avatar
Posts: 355
Joined: Sat Mar 27, 2004 2:11 pm

  • Quote

Post by ShadowHawkBV » Thu Mar 05, 2009 7:44 pm

Is /samba/packages a network mount? Your user/group ownership looks wrong. I would expect the files and directories to be owned by root.
Yes it is. But I have it set to be so promiscuous, any user on my internal land can read/write/execute anything there. I've had it running like that for ~3 years now. I initially thought that something had changed with samba/CIFS/ my SAN, but rolling it back didn't change the buildpkg problem. I'm not even sure if this would constitute a portage error, python error, or some other package.

As long as the workstation can continue functioning/updating, I'll have to dig into the cause later. Many thanks for the assistance to this point. I'll keep an eye on the forum, but I'll be unable to modify anything for a bit.
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

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

 

 

magic