Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400679 - emerge complains about /usr/share/info/dir package ownership when PORTAGE_TMPDIR is on an NFS share
Summary: emerge complains about /usr/share/info/dir package ownership when PORTAGE_TMP...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 402213
  Show dependency tree
 
Reported: 2012-01-25 03:50 UTC by Jack
Modified: 2012-02-04 23:29 UTC (History)
1 user (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 Jack 2012-01-25 03:50:56 UTC
Emerging libidn-1.23 warns of a file collision on /usr/share/info/dir, but no other package owns that file, so it (over)writes it.  However, that file is the dir of all installed info files.  I have no idea if that file existed before the emerge, but there are plenty of files in that directory.  I assume that file "dir" should either be owned by the package that installs the info command (sys-apps/texinfo) or by no package.

Reproducible: Didn't try

Steps to Reproduce:
1. emerge libidn-1.23 (I assume 1.24 will do the same, but have not tried)
2.
3.
Actual Results:  
Warns about collision on /usr/share/info/dir, but overwrites since no other package owns.

Expected Results:  
/usr/share/info/dir not overwritten, but updated with any info files installed by the package.

This is NOT a normal "file collision" report.  I know no other package claims to own the file, but I certainly don't see how libidn should own it.

Sorry if I've completely misunderstood the process of managing info files - if so, please point me to the right fine manual to read.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-25 15:05:15 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report as a file.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-25 15:07:48 UTC
I guess some other package claims to own this file and the libidn ebuild was simply the next to edit it.

/usr/lib/portage/bin/misc-functions.sh explicitly removes and rebuilds this file...
Comment 3 Jack 2012-01-25 15:53:02 UTC
Emerge --info below.  I no longer have the build log.  I can re-run the emerge, but I suppose I would have to unmerge first, and manually create the file so the collision is reported again.  Please note that the collision explicitly said that no other package owned the file.  I also confirmed this with equery belongs.

# emerge --info
Portage 2.1.10.41 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.0.6-gentoo-01 x86_64)
=================================================================
System uname: Linux-3.0.6-gentoo-01-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4000+-with-gentoo-2.0.3
Timestamp of tree: Sat, 21 Jan 2012 20:45:01 +0000
ccache version 3.1.6 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories:

gentoo
    location: /usr/portage
    sync: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 0

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 1

ABI="amd64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode multilib"
CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump"
CAMERAS="kodak ptp2"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules"
COLORFGBG="0;15"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-jzRGaXdNKP,guid=c446bc4f46a4ec71356befec000000f4"
DEFAULT_ABI="amd64"
DISPLAY=":0"
DISTDIR="/usr/portage/distfiles"
EDITOR="emacs"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--ask --verbose"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch webrsync-gpg"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec sftp -P \${port} \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
FFLAGS=""
FLTK_DOCDIR="/usr/share/doc/fltk-1.3.0/html"
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/       http://www.gtlib.gatech.edu/pub/gentoo  ftp://ftp.ussg.iu.edu/pub/linux/gentoo "
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx"
GRUB_PLATFORMS=""
GSETTINGS_BACKEND="dconf"
GS_LIB="/home/jack/.fonts"
GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/home/jack/.gtkrc-2.0:/home/jack/.kde4/share/config/gtkrc-2.0"
GTK_RC_FILES="/etc/gtk/gtkrc:/home/jack/.gtkrc:/home/jack/.kde4/share/config/gtkrc"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HISTCONTROL="ignoredups"
HOME="/root"
HUSHLOGIN="FALSE"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info:/usr/share/info/emacs-23"
INPUT_DEVICES="evdev"
JAVAC="/home/jack/.gentoo/java-config-2/current-user-vm/bin/javac"
JAVACC_HOME="/usr/share/javacc/"
JAVA_HOME="/home/jack/.gentoo/java-config-2/current-user-vm"
JDK_HOME="/home/jack/.gentoo/java-config-2/current-user-vm"
KDE_FULL_SESSION="true"
KDE_MULTIHEAD="false"
KDE_SESSION_UID="501"
KDE_SESSION_VERSION="4"
KERNEL="linux"
KONSOLE_DBUS_SERVICE=":1.135"
KONSOLE_DBUS_SESSION="/Sessions/11"
LANG="en_US.UTF-8"
LANGUAGE=""
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL=""
LC_COLLATE="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_n32="lib32"
LIBDIR_n64="lib64"
LIBDIR_o32="lib"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_s390="lib32"
LIBDIR_s390x="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAIL="/var/mail/jack"
MAKEOPTS="-j3"
MANPATH="/home/jack/.gentoo/java-config-2/current-user-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man:/etc/java-config/system-vm/man/:/usr/lib64/php5.3/man/:/usr/share/postgresql/man/:/usr/share/postgresql-9.1/man/"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NOCOLOR="true"
OLDPWD="/usr/portage/net-dns/libidn"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
PHP_TARGETS="php5-3"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc sparc64-freebsd ppc-openbsd x86-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_IONICE_COMMAND="ionice -c 3 -p ${PID}"
PORTAGE_NICENESS="19"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/home/portage/tmpdir"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PRELINK_PATH_MASK="/usr/lib64/klibc:/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so"
PROFILEHOME=""
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/home/portage/tmpdir/portage"
PYTHONDONTWRITEBYTECODE="1"
QT_PLUGIN_PATH="/usr/lib64/kde4/plugins:/home/jack/.kde4/lib64/kde4/plugins/:/usr/lib64/kde4/plugins/"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3"
RPMDIR="/usr/portage/rpm"
RUBYOPT="-rauto_gem"
RUBY_TARGETS="ruby18"
SANE_CONFIG_DIR="/etc/sane.d"
SESSION_MANAGER="local/ffortso4:@/tmp/.ICE-unix/3564,unix/ffortso4:/tmp/.ICE-unix/3564"
SHELL="/bin/bash"
SHELL_SESSION_ID="95dbeaadfc424000a622819864cbd1f9"
SHLVL="5"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
TERM="xterm"
USB_DEVFS_PATH="/dev/bus/usb"
USE="X aac acl alsa amd64 at4 berkdb bluetooth bzip2 cairo cli consolekit cracklib crypt cups cxx dbus dri dvd emacs exif ffmpeg fftw firefox flac fontconfig foomaticdb fortran gcj gdbm gimp glut gphoto2 gpm gstreamer gtk iconv java joystick jpeg jpeg2k kde lm mad midi mmx modules motif mp3 mpeg_mplayer mudflap multilib ncurses nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf png policykit ppds pppd qt3support qt4 quicktime readline scanner sdl sensors session spell sse sse2 ssl svg sysfs tcpd tiff timidity truetype udev unicode usb v4l vhosts vorbis xcomposite xml xorg xulrunner xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="kodak ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv vesa nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS DRACUT_MODULES DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL OFED_DRIVERS PHP_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d"
VIDEO_CARDS="nv vesa nvidia"
WINDOWID="94731882"
WINDOWPATH="7"
XAUTHORITY="/root/.xauthFrfyU6"
XCURSOR_THEME="Oxygen_Blue"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
XDG_MENU_PREFIX="gnome-"
XDG_SESSION_COOKIE="1dc1d0bb41437f6b6df89fc800000020-1327256541.971462-445116343"
XERCESC_NLS_HOME="/usr/share/xerces-c/msg"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
_="/usr/bin/emerge"
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-25 19:16:42 UTC
Thank you.

I don't think this has anything to do with net-dns/libidn - the ebuilds do not (and should not) touch that file, so I guess that in the past, the info dir regeneration failed, and that net-dns/libidn happened to be the ebuild that installed some new info files since. I assume an general operating system or package manager failure caused all this.
Comment 5 Jack 2012-01-25 20:31:29 UTC
OK - so maybe libidn is clean, and it should be a bug against portage, since this:

# equery belongs /usr/share/info/dir
 * Searching for /usr/share/info/dir ... 
net-dns/libidn-1.23 (/usr/share/info/dir)

really shouldn't be happening, should it?  

Even if the bug gets closed as CANTFIX (I wish there was a better category, although it certainly can't be fixed if we don't really know what went wrong) it should be listed against either portage or whatever component failed and let that file be marked as owned by the ebuild currently being emerged (libidn).
Comment 6 Zac Medico gentoo-dev 2012-01-25 22:29:14 UTC
It looks similar to bug 255775, but not the same. Can you rebuild net-dns/libidn-1.23 to see if it installs /usr/share/info/dir again? Please set PORT_LOGDIR and attach the build log if you can reproduce it.
Comment 7 Jack 2012-01-25 23:19:48 UTC
I have a bunch of packages left to emerge for my KDE 4.7.4 upgrade, but once that's done, I'll redo libidn, and post the results.
Comment 8 Jack 2012-01-26 18:13:52 UTC
Well, the original emerge was with portage 2.1.10.41.  I just re-emerged libidn with portage 2.1.10.44, and the error did not recur, and after the emerge, /usr/share/info/dir is NOT claimed to be owned by any package (per equery).

I don't know if there was some (subtle?) bug in portage-2.1.10.41, fixed in .44, or if I just hit some transient hiccough in the ether.  I'll try a few more times, but if I can't repeat it, I'll close it myself as invalid, and apologize for the noise.
Comment 9 Jack 2012-01-26 19:30:08 UTC
Unfortunately (or not) I am not able to reproduce with, with over a dozen repeats of the emerge.  I don't know if it was some funny state of /usr/share/info/dir to begin with, or just "phase of the moon."  I guess if that file actually gets rebuilt (which is how I read the note in the log) then I wouldn't have lost anything from the initial overwrite, since it seems to have been successfully rebuilt with every emerge since.

Obviously I'll reopen if I see this again, but closing for now.  No point in wasting any more of anybody's time.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-27 16:39:53 UTC
I have personally seen this quite a few times, and it's nearly impossible to reproduce without recreating the package database state from before the merge that caused the warning. It's also quite a minor issue and the bug probably still is in the code somewhere. Obviously no package should own that file but some portage version did create that ownership in the past.

So this bug definitely isn't invalid - it's just difficult to reproduce.
Comment 11 Jack 2012-01-27 17:00:32 UTC
Are there any hints at all about what type of state might trigger this?  Is there anything in particular I should be careful to record if it happens again, so I don't lose information that might help track down the cause?
Comment 12 Jack 2012-01-31 21:54:06 UTC
OK - it happened again to me with sci-visualization/gnuplot-4.4.4-r1.  It's a bit complicated by the fact that I had an error in the emerge due to an nfs4 issue, but following the failed emerge with "ebuild /usr/portage/sci-visualization/gnuplot/gnuplot-4.4.4-r1.ebuild merge" ended with the collision error.  Hopefully I have not disturbed the state of things, so I can get some useful information - but what should I capture and report here?

Oddly - 'equery /usr/share/info/dir' now returns dev-libs/libconfig-1.4.3, which was emerged as part of the batch just before gnplot, so this is at least different from my last case, where it was assigned to the package with the emerge that detected the collision.
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-31 22:12:07 UTC
(In reply to comment #12)
> OK - it happened again to me with sci-visualization/gnuplot-4.4.4-r1.  It's a
> bit complicated by the fact that I had an error in the emerge due to an nfs4
> issue

Oh, your PORTAGE_TMPDIR is on a remote share? There's a slew of similar bugs...
Comment 14 Jack 2012-02-01 03:47:50 UTC
Yes, my PORTAGE_TMPDIR is on nfs4.  I know that leads to issues such as failing on some "chown" commands within emerge, as well as not being able to delete some (apparently empty) directories.  It also causes emerge of sudo to not set the program as setuid.  However, is it likely that is also the cause of this collision problem?  If so, I have nothing to add here, until those issues are resolved.
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-01 16:46:24 UTC
Makes me wonder if 
/usr/lib/portage/bin/misc-functions.sh:781:   rm -f "${ED}"/usr/share/info/dir{,.gz,.bz2}

fails properly.

Maybe that should be run without -f and with a || die to troubleshoot this.

net-dns/libidn-1.23 does run this:
 install-info --info-dir='/var/tmp/portage/net-dns/libidn-1.23/image//usr/share/info' '/var/tmp/portage/net-dns/libidn-1.23/image//u
sr/share/info/libidn.info'

but other package probably do that too, so the file is definitely present but not removed in misc-functions.sh.
Comment 16 Zac Medico gentoo-dev 2012-02-01 18:57:55 UTC
(In reply to comment #15)
> Makes me wonder if 
> /usr/lib/portage/bin/misc-functions.sh:781:   rm -f
> "${ED}"/usr/share/info/dir{,.gz,.bz2}
> 
> fails properly.

The return code isn't even checked, so no it won't. Fixed now:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=9e4b06838cef9a10468a6e3d220cc4f2154939e1

> Maybe that should be run without -f and with a || die to troubleshoot this.

I think -f is appropriate, but ignoring the return value is not. Here's what the rm man page says:

   -f, --force
     ignore nonexistent files, never prompt
Comment 17 Jack 2012-02-01 22:50:24 UTC
As far as I can see, this commit will prevent the collision problem, but it is also likely to cause some if not many emerges with PORTAGE_TMPDIR on nfs4 to just fail.  

I'd really love to figure out exactly what it is about nfs4 that is causing these problems.  I'm not going to hijack this bug, and I'm not ready to file a specific one yet, but I'd really love any suggestions on what I can to do track down and capture enough information to actually identify the underlying issue.
Comment 18 Zac Medico gentoo-dev 2012-02-02 09:09:30 UTC
(In reply to comment #17)
> As far as I can see, this commit will prevent the collision problem, but it is
> also likely to cause some if not many emerges with PORTAGE_TMPDIR on nfs4 to
> just fail.  

It's better that the alternative, which is to allow installation of a corrupt package.

> I'd really love to figure out exactly what it is about nfs4 that is causing
> these problems.  I'm not going to hijack this bug, and I'm not ready to file a
> specific one yet, but I'd really love any suggestions on what I can to do track
> down and capture enough information to actually identify the underlying issue.

While you're on the topic of NFS bugs, if you've experienced bug 364143 then maybe you can look into that too.
Comment 19 Zac Medico gentoo-dev 2012-02-04 23:29:36 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > Makes me wonder if 
> > /usr/lib/portage/bin/misc-functions.sh:781:   rm -f
> > "${ED}"/usr/share/info/dir{,.gz,.bz2}
> > 
> > fails properly.
> 
> The return code isn't even checked, so no it won't. Fixed now:
> 
> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=9e4b06838cef9a10468a6e3d220cc4f2154939e1

This is fixed in 2.1.10.45 and 2.2.0_alpha85.