Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 169551

Summary: dev-perl/HTML-Tree-3.23 hangs while compressing because compressed file already exists
Product: Portage Development Reporter: Arthur Hagen <art-gt>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: mcummings
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 172589    

Description Arthur Hagen 2007-03-05 23:22:54 UTC
dev-perl/HTML-Tree-3.23 ebuild tries to compress a file where a compressed file with that name already exists.  This hangs the emerge process, which will wait for user input.

Reproducible: Always

Steps to Reproduce:
emerge dev-perl/HTML-Tree
Actual Results:  
 * Cleaning out stray man files
gzip: /var/tmp/portage/dev-perl/HTML-Tree-3.23/image/usr/share/doc/HTML-Tree-3.23//Changes.gz already exists; do you wish to overwrite (y or n)? 



On this system, PORTAGE_COMPRESS is set to "gzip".
Comment 1 SpanKY gentoo-dev 2007-03-10 14:40:44 UTC
did you set PORTAGE_COMPRESS_FLAGS as well ?  post `emerge --info`
Comment 2 Arthur Hagen 2007-03-10 20:35:46 UTC
Yes, PORTAGE_COMPRESS_FLAGS is also set (not that it matters, since it defaults to "-9" which is perfectly valid with gzip as well as bzip2).

Also, emerge --info does NOT return the value of PORTAGE_COMPRESS and PORTAGE_COMPRESS_FLAGS, which is exactly why I *did* state that PORTAGE_COMPRESS was set instead of doing an emerge --info.  This was explicitly to avoid someone closing the case with "NEEDINFO"... *grumble*

Portage 2.1.2.2 (selinux/x86/2006.1, gcc-3.4.6, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 10 Mar 2007 10:00:07 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     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.14
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 -pipe -march=pentium4 -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /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 -pipe -march=pentium4 -momit-leaf-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks loadpolicy metadata-transfer parallel-fetch sandbox selinux sesandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.arcticnetwork.ca/"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en_US en"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi apache2 berkdb caps crypt cups dri eds fam gdbm gif gnome gtk idn ipv6 jpeg logrotate mad mbox midi mmap mmx motif ncurses nfs nis nls nptl nptlonly offensive pam pcre perl pic png posix python readline sdl seamonkey selinux spell spl sse sse2 ssl tcpd threads tiff truetype unicode x86 xml zlib" 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="keyboard mouse" KERNEL="linux" LINGUAS="en_GB en_US en" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


% grep PORTAGE_COMPRESS /etc/make.conf
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-9"
Comment 3 Zac Medico gentoo-dev 2007-03-10 20:59:10 UTC
The default is now PORTAGE_COMPRESS_FLAGS="-f9" because of bug #168267.  `dodoc Changes` is called twice because the ebuild sets mydoc="Changes MANIFEST README" and Change* is part of the default dodoc list inside perl-module_src_install().
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2007-03-13 15:48:01 UTC
(In reply to comment #3)
> The default is now PORTAGE_COMPRESS_FLAGS="-f9" because of bug #168267.  `dodoc
> Changes` is called twice because the ebuild sets mydoc="Changes MANIFEST
> README" and Change* is part of the default dodoc list inside
> perl-module_src_install().
> 

please emerge sync in a few hours (time for the mirrors to do their thing) - CHANGES removed from this ebuild. Will go through the tree and remove it elsewhere. Wish I'd realized this sooner,

~mcummings
Comment 5 Zac Medico gentoo-dev 2007-04-18 03:42:48 UTC
In 2.1.2.3 we use rm instead of the -f flag.