Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62534 - dispatch-conf crashs when merging files and /tmp and /etc are on different filesystems!
Summary: dispatch-conf crashs when merging files and /tmp and /etc are on different f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-09-01 11:01 UTC by K. Posern
Modified: 2004-10-22 08:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (diff -cbr OLD NEW) of /usr/sbin/dispatch-conf (patch,2.59 KB, patch)
2004-09-01 11:05 UTC, K. Posern
Details | Diff
diff -Nu "dispatch-conf.ORIGINAL" "dispatch-conf.NEW" (new-diff,1.50 KB, patch)
2004-09-04 09:49 UTC, K. Posern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description K. Posern 2004-09-01 11:01:57 UTC
dispatch-conf crashs when I type m, cause it calls os.rename in line 153 (in grind) and this is not supposed to work for different filesystems.

--> I changed all os.rename commands to shutil.move

see attachments



Reproducible: Always
Steps to Reproduce:
1. dispatch-conf (while changed config files are waiting for merge...)
2. m for merge
3. r,l,r,l,l,r,r,r,r,r,r,l,l,l (for example)


Actual Results:  
CRASH with nice python error message ;-)
Comment 1 K. Posern 2004-09-01 11:05:08 UTC
Created attachment 38694 [details, diff]
patch (diff -cbr OLD NEW) of /usr/sbin/dispatch-conf
Comment 2 Roman Gaufman 2004-09-03 01:49:23 UTC
someone please commit this, it works great.
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2004-09-04 09:44:10 UTC
Please resubmit that patch in 'diff -Nu' format.
Comment 4 K. Posern 2004-09-04 09:49:10 UTC
Created attachment 38916 [details, diff]
diff -Nu "dispatch-conf.ORIGINAL" "dispatch-conf.NEW"
Comment 5 K. Posern 2004-09-04 09:55:39 UTC
Hmmm... I forgot to mention my VERSION ... (but as no one asked I suppose its egal  (=doesn't matter))...

Nevertheless the obligatory "emerge info" output:

Portage 2.0.50-r10 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -pipe -fomit-frame-pointer -O3"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -pipe -fomit-frame-pointer -O3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="
     http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/      ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
     http://212.219.247.11/sites/www.ibiblio.org/gentoo/
     http://212.219.247.12/sites/www.ibiblio.org/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 aac aalib acl acpi acpi4linux aim alsa amd apache2 apm arts audiofile avi berkdb bonobo cdr crypt cups dga directfb divx4linux dv dvd dvdr emacs emacs-w3 encode escreen esd ethereal faac faad fam fax fbcon ffmpeg firebird flac foomaticdb gb gdbm geoip ggi gif gimp gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hbci icq imagemagick imap imlib ipv6 jabber jack java jce jikes jp2 jpeg kde kerberos ladcca lcms libcaca libg++ libsamplerate libwww lirc live mad maildir matroska matrox memlimit mikmod mldonkeypango mmx motif mozdomi mozilla mozxmlterm mpeg mpeg4 mplayer msn mysql nas ncurses nls ntlm odbc ofx oggvorbis opengl oscar oss pam pcap pcre pdflib perl php png posix postgres ppds pthreads python qt quicktime readline ruby samba scanner sdl silc slang speex spell spl sqlite sse ssl svga tcltk tcpd tetex theora tiff transcode truetype unicode usb v4l v4l2 videos wmf x86 xemacs xml xml2 xmms xosd xprint xv xvid yahoo yv12 zlib zvbi"

Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:48:13 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2