Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160565 - mercurial.eclass does not work if the first unpack fails
Summary: mercurial.eclass does not work if the first unpack fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 259898
Blocks:
  Show dependency tree
 
Reported: 2007-01-06 20:07 UTC by Petteri Räty (RETIRED)
Modified: 2009-03-09 20:12 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2007-01-06 20:07:01 UTC
pena alsa-driver # ebuild alsa-driver-9999.ebuild clean merge
Disabling noauto in features... merge disables it. (qmerge doesn't)
 * checking ebuild checksums ;-) ...                                                                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                 [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.19-ge61d5fd0-dirty
 * Checking for suitable kernel configuration options...                                                                                                                                               [ ok ]
>>> Unpacking source...
 * hg pull -u http://hg.alsa-project.org/alsa-driver ...
abort: repository default not found!                                                                                                                                                                   [ !! ]

!!! ERROR: media-sound/alsa-driver-9999 failed.
Call stack:
  ebuild.sh, line 1593:   Called dyn_unpack
  ebuild.sh, line 731:   Called src_unpack
  alsa-driver-9999.ebuild, line 67:   Called mercurial_fetch 'http://hg.alsa-project.org/alsa-driver'
  mercurial.eclass, line 63:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

This is what happened on the first try:
pena alsa-driver # ebuild alsa-driver-9999.ebuild clean merge
Disabling noauto in features... merge disables it. (qmerge doesn't)
 * checking ebuild checksums ;-) ...                                                                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                 [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.19-ge61d5fd0-dirty
 * Checking for suitable kernel configuration options...                                                                                                                                               [ ok ]
>>> Unpacking source...
 * create /var/distfiles/hg-src ...                                                                                                                                                                    [ ok ]
 * hg clone http://hg.alsa-project.org/alsa-driver ...
requesting all changes
adding changesets
adding manifests
adding file changes
close failed: [Errno 28] No space left on device
close failed: [Errno 28] No space left on device
close failed: [Errno 28] No space left on device
abort: No space left on device: alsa-driver/.hg/store/data/pci/ac97/ac97__proc.c.i
transaction abort!
rollback completed                                                                                                                                                                                     [ !! ]

!!! ERROR: media-sound/alsa-driver-9999 failed.
Call stack:
  ebuild.sh, line 1593:   Called dyn_unpack
  ebuild.sh, line 731:   Called src_unpack
  alsa-driver-9999.ebuild, line 67:   Called mercurial_fetch 'http://hg.alsa-project.org/alsa-driver'
  mercurial.eclass, line 54:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

After rm -fr hg-src it works fine.
Portage 2.1.2_rc4-r5 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-ge61d5fd0-dirty i686)
=================================================================
System uname: 2.6.19-ge61d5fd0-dirty i686 Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
Gentoo Base System version 1.13.0_alpha10
Last Sync: Unknown
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
dev-lang/python:     2.4.4, 2.5-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
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.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /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/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/var/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect cvs distlocks fixpackages java-strict parallel-fetch sandbox sfperms sign strict stricter userpriv usersandbox verify-rdepend"
GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo  http://lame.lut.fi/linux/gentoo "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="fi"
MAKEOPTS="-j2"
PKGDIR="/home/pkg/"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/checkouts/overlays/betelgeuse /mnt/checkouts/overlays/migrated-java"
SYNC="rsync://192.168.150.1:/portage"
USE="a52 aac acl acpi alsa arts audiofile bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdb cddb cdparanoia cdr cli cracklib crypt cups dbus dlloader dri dts dvd dvdr dvdread emboss esd fam ffmpeg firefox gif gstreamer hal iconv isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility libg++ logitech-mouse mad mikmod mjpeg mmx mp3 mpeg ncurses network nptl nptlonly nsplugin nvidia offensive ogg opengl pam pcre png ppds pppd qt3 quicktime readline real reflection rtc samba session spell spl sse sse2 ssl subversion svg symlink theora threads truetype truetype-fonts type1-fonts udev unicode usb userlocales vim-syntax vorbis x86 xcb xcomposite xinerama xml xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LINGUAS="fi" USERLAND="GNU" VIDEO_CARDS="none nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andrew Ross (RETIRED) gentoo-dev 2007-01-21 02:27:28 UTC
I have nothing to do with this eclass, which is unrelated to the dev-util/mercurial.
Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2008-02-05 21:16:25 UTC
Halcy0n, maybe you're interested in this? :)
Comment 3 Arne Babenhauserheide 2009-01-16 11:41:47 UTC
This looks like Mercurial leaves an empty directory when the clone fails. 

The eclass should on error explicitely remove the directory, I think. 

(I assume the first run had the partition with the distfiles run out of memory, so the cloning aborted). 
Comment 4 Krzysztof Pawlik (RETIRED) gentoo-dev 2009-02-22 13:49:43 UTC
CC cleanup.
Comment 5 Krzysztof Pawlik (RETIRED) gentoo-dev 2009-02-22 14:31:15 UTC
Could you please test patch against mercurial.eclass from bug 259898 ?
Comment 6 Krzysztof Pawlik (RETIRED) gentoo-dev 2009-03-09 20:12:07 UTC
Fixed by bug #259898.