| View previous topic :: View next topic |
| Author |
Message |
Lars Tux's lil' helper


Joined: 06 Feb 2003 Posts: 145 Location: Germany, near baltic sea
|
Posted: Wed Apr 25, 2007 8:56 am Post subject: [SOLVED] Merge fails |
|
|
Hi all,
I can't simply run a emerge without get merge problems, I need some help to solve the problem, maybe some of you have a good idea.
If I emerge a package, most the time it results in an error like this:
| Code: |
Traceback (most recent call last):
File "/usr/bin/emerge", line 5481, in ?
retval = emerge_main()
File "/usr/bin/emerge", line 5476, in emerge_main
myopts, myaction, myfiles, spinner)
File "/usr/bin/emerge", line 4943, in action_build
retval = mergetask.merge(pkglist, favorites, mtimedb)
File "/usr/bin/emerge", line 3123, in merge
prev_mtimes=ldpath_mtimes)
File "/usr/lib/portage/pym/portage.py", line 3731, in doebuild
vartree=vartree, prev_mtimes=prev_mtimes)
File "/usr/lib/portage/pym/portage.py", line 3939, in merge
mydbapi=mydbapi, prev_mtimes=prev_mtimes)
File "/usr/lib/portage/pym/portage.py", line 7834, in merge
cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
File "/usr/lib/portage/pym/portage.py", line 7381, in treewalk
os.makedirs(self.dbtmpdir)
File "/usr/lib/python2.4/os.py", line 159, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '/var/db/pkg/dev-util/-MERGING-pkgconfig-0.21-r1'
|
Simple remove of the -MERGING* directory has no effect, the result after next emerge run on the same package is the same problem. AFAIK I don't use any extra special tools to enhance portage, but I'm not sure, because the system is also at least 2 years old but up to date.
My trick is at the moment, to emerge portage (2.1.2.2) or emerge python (2.4.3-r4) again, most the time one of them is possible to emerge. Then it seems to be possible to emerge any other packages. After a reboot the same procedure.
There must be something wrong in my system. Any ideas?
Please help!
# emerge --info
| Code: |
Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.20.7 i686)
=================================================================
System uname: 2.6.20.7 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 25 Apr 2007 01:46:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python: 2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r6
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE"
LC_ALL="de_DE"
LINGUAS="de de_DE"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage-lla"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X Xaw3d a52 aac aalib acpi aiglx alsa amarok amd ao apache2 arts artswrappersuid asf async audacious audiofile automount berkdb bitmap-fonts bzip2 cairo cdda cddb cdparanoia cdr cdrom cli cracklib crypt css cups curl d dbus dga directfb dri dts dv dvb dvd dvdr dvdread eds emacs emboss encode esd exif expat fam fame fat fbcon ffmpeg firefox flac font-server fontconfig gcj gd gdbm gif glibc-compat20 glibc-omitfp glitz glut gnome gphoto2 gstreamer gtk gtk2 hal iconv idn ieee1394 image imagemagick imlib ipv6 isdnlog java javascript joystick jpeg jpeg2k kde kqemu lame lcms ldap libcaca libg++ lm_sensors lua lzo lzw mad maildir mhash midi mikmod mixer mjpeg mmap mmx mmxext mng mono motif mozcalendar mozdom mozilla mozsvg mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer mysql nas ncurses net netbeans nls nptl nsplugin nvidia ogg openal opengl oss pam parse-clocks pcre pda pdf perl php pmu png povray ppds pppd python qt3 qt4 quicktime rdesktop readline real reflection reiserfs rtc samba scanner sdl sdl-image sdl-sound sdlaudio seamonkey sensord server session slang smp snmp sox speex spell spl sqlite sse sse2 ssl startup-notification stream svga syslog tcpd threads tiff transcode truetype truetype-fonts type1-fonts usb v4l2 vcd vdr vidix visualization vnc vncviewer vorbis wifi win32codecs wma x264 x86 xanim xcomposite xine xml xorg xpm xv xvid xvmc yv12 zip zlib zvbi" ALSA_CARDS="via82xx bt87x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="canon sony" ELIBC="glibc" INPUT_DEVICES="mouse keyboard joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de de_DE" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
_________________
| Quote: | | Alles was nicht einfach ist, ist entweder falsch oder zu kompliziert. |
V.Glazounov
Last edited by Lars on Mon Apr 30, 2007 3:41 am; edited 1 time in total |
|
| Back to top |
|
 |
Lars Tux's lil' helper


Joined: 06 Feb 2003 Posts: 145 Location: Germany, near baltic sea
|
Posted: Wed Apr 25, 2007 9:06 am Post subject: |
|
|
On point from me, revdep-rebuild has no effects. _________________
| Quote: | | Alles was nicht einfach ist, ist entweder falsch oder zu kompliziert. |
V.Glazounov |
|
| Back to top |
|
 |
Lars Tux's lil' helper


Joined: 06 Feb 2003 Posts: 145 Location: Germany, near baltic sea
|
Posted: Mon Apr 30, 2007 3:41 am Post subject: |
|
|
Absolutly no ideas, what could be wrong here?
I found the problem, after a long period of thinking and analysing about. It was a file system failure.
I'm using a reiserfs loop file for /var/db as also for /usr/portage. The /usr/portage tree will recreate every time, I got a new portage snapshot tree. Simple script was doing such for me in a cron job. But /var/db is all the time the same. This /var/db got a failure after some crashes in the past. I don't know. Nevertheless, I rebuild a new /var/db loop file and put all the pkg stuff in it by copy command.
Now merge works again, as expected. _________________
| Quote: | | Alles was nicht einfach ist, ist entweder falsch oder zu kompliziert. |
V.Glazounov |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|