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

Bug 171212

Summary: PORTAGE_COMPRESS=echo creates void man symlinks w/ app-text/ghostscript-esp
Product: Portage Development Reporter: Arthur Hagen <art-gt>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: trivial CC: jakub
Priority: High Keywords: InVCS
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 172589    

Description Arthur Hagen 2007-03-17 03:41:20 UTC
On system with PORTAGE_COMPRESS=echo, ghostscript-esp creates dead symlinks in /usr/share/man/de/man1/ (but not for the same files in /usr/share/man/man1/)

Reproducible: Always

Steps to Reproduce:
# cd /usr/share/man/de/man1
# ls -l *me
lrwxrwxrwx 1 root root 16 Mar 16 22:24 gsbj.1compressme -> gslp.1compressme
lrwxrwxrwx 1 root root 16 Mar 16 22:24 gsdj.1compressme -> gslp.1compressme
lrwxrwxrwx 1 root root 16 Mar 16 22:24 gsdj500.1compressme -> gslp.1compressme
lrwxrwxrwx 1 root root 16 Mar 16 22:24 gslj.1compressme -> gslp.1compressme
# qfile `pwd`/*me
app-text/ghostscript-esp (/usr/share/man/de/man1/gsbj.1compressme)
app-text/ghostscript-esp (/usr/share/man/de/man1/gsdj.1compressme)
app-text/ghostscript-esp (/usr/share/man/de/man1/gsdj500.1compressme)
app-text/ghostscript-esp (/usr/share/man/de/man1/gslj.1compressme)




Note:  This only happens to the files in /usr/share/man/de/man1/ and not the same files in /usr/share/man/man1/.  Otherwise, I would have reported this as a portage bug, but there's inconsistent handling of de/man1 and man1 here.

# grep COMPRESS /etc/make.conf
PORTAGE_COMPRESS=echo
PORTAGE_COMPRESS_FLAGS=" "

Workaround:
PORTAGE_COMPRESS=:
PORTAGE_COMPRESS_FLAGS=" "

This leads me to speculate that the package install routines calling ecompressdir assumes that $PORTAGE_COMPRESS never writes to stdout, and does a tee or otherwise acts on the output, but for de man pages only.  ICBW.

(By the way, why does it install German man pages in the first place, without "de" or "de_DE" in LINGUAS?  It skips other languages...)
Comment 1 Arthur Hagen 2007-03-17 03:49:45 UTC
emerge --info:

Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 mobile AMD Athlon(tm) XP2400+
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 16 Mar 2007 21:00:01 +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 -march=athlon-4 -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-4 -momit-leaf-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages metadata-transfer noinfo sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en_US en nb_NO nb no"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="echo"
PORTAGE_COMPRESS_FLAGS=" "
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://tree.broomstick.com/gentoo-portage"
USE="3dnow X Xaw3d aac acl acpi alsa audiofile berkdb bitmap-fonts cairo caps cdr cli cracklib crypt cups dbus dri dvd eds emboss encode esd fam flac gdbm gif gnome gpm gstreamer gtk hal iconv idn ipv6 isdnlog jpeg lcms libg++ libnotify logrotate mad matroska mbox midi mikmod mmap mmx motif mp3 mpeg ncurses nfs nis nls nntp nptl nptlonly offensive ogg opengl oss pam pcre pdf perl pic png posix ppds pppd python qt4 quicktime readline reflection sdl seamonkey session sndfile spell spl sse ssl tcpd threads tiff timidity truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xcomposite xml xorg xv xvid zlib" ALSA_CARDS="ali5451" 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 synaptics" KERNEL="linux" LINGUAS="en_GB en_US en nb_NO nb no" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 SpanKY gentoo-dev 2007-03-17 08:08:56 UTC
ignoring the fact that setting PORTAGE_COMPRESS to echo is the wrong way to disable compression, this is fixed in svn

correct method is: PORTAGE_COMPRESS=""
Comment 3 Zac Medico gentoo-dev 2007-03-29 22:36:58 UTC
This has been released in 2.1.2.3.