Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329395 - app-portage/portage-utils-0.4 qfile -o reports nonorphaned symlinks as orphaned
Summary: app-portage/portage-utils-0.4 qfile -o reports nonorphaned symlinks as orphaned
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-22 08:39 UTC by Marcin Mirosław
Modified: 2011-01-18 20:09 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 Marcin Mirosław 2010-07-22 08:39:50 UTC
For example:
# emerge -C sqlite:0
[...]
# qfile -o /usr/bin/* | grep lemon
# emerge -1 sqlite:0
[...]
>>> Installing (1 of 1) dev-db/sqlite-2.8.16-r4
 * Linking /usr/bin/lemon-0 to /usr/bin/lemon (relative)
>>> Auto-cleaning packages...
[...]
# qfile -o /usr/bin/* | grep lemon
/usr/bin/lemon

As we can see, qfile says that /usr/bin/lemon is orphaned file, let's go on.
# ls -lah /usr/bin/lemon
lrwxrwxrwx 1 root root 7 07-22 10:26 /usr/bin/lemon -> lemon-0

# grep lemon /var/db/pkg/dev-db/sqlite-2.8.16-r4/CONTENTS 
obj /usr/bin/lemon-0 1009f03fd78cf014cf7bdbf99666e0b9 1279787208

Now we know why qfile says that /usr/bin/lemon is orphaned. It's not mentioned in CONTENTS. But when i do emerge -C sqlite:0 i'm getting:
>>> Unmerging in:  5 4 3 2 1 
>>> Unmerging dev-db/sqlite-2.8.16-r4...
 * Removing dead symlink /usr/bin/lemon

 * GNU info directory index is up-to-date.

Portage "knows" that /usr/bin/lemon symlink should be removed.
So i'm not sure problem is in qfile (doesn't know thet bin/lemon is "good" file) or in portage (bin/lemon should be mentioned in CONTENTS file).

Reproducible: Always




emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-zen1 i686)
=================================================================
System uname: Linux-2.6.34-zen1-i686-Intel-R-_Celeron-R-_CPU_E1500_@_2.20GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 22 Jul 2010 06:00:15 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.5, 4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 PUEL Q3AEULA skype-eula dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mfpmath=sse -pipe -fpeel-loops -fprefetch-loop-arrays -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -mfpmath=sse -pipe -fpeel-loops -fprefetch-loop-arrays -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="XXXmetadata-transfer assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL"
LC_ALL="pl_PL.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/sunrise /usr/local/portage/miro-overlay/portage /usr/local/portage/miro-overlay/in_sunrise /usr/local/portage/miro-overlay/staging"
SYNC="rsync://192.168.138.254/gentoo-portage"
USE="X a52 aac acl acpi adns alsa apache2 async bash-completion bfq bittorrent branding bzip2 cairo caps cdr chroot clamdtop cli community consolekit cracklib crypt cups custom-cflags custom-optimization cxx dbus diskio dlz dmx dri dts dvd dvdr emboss encode exif extras fam firefox flac fortran ftp fts3 gd gif gpm graphite hal hash iconv idn iproute2 ipv6 ithreads jpeg kde lcms ldap libnotify lightning logrotate lzo mad mikmod mmap mmx mmxext mng modules mp3 mp4 mpeg mtp mudflap mysql mysqli ncurses network-cron nls nptl nptlonly nsplugin objc ogg opengl openmp openssl optimization optimized-qmake pam pango pch pcre pdf perl phonon png ppds pppd profile profiling python qt3support qt4 readline reflection replytolist rss samba sdl semantic-desktop session sharedmem smp spell spl sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification strong-optimization subversion svg sysfs threads threadsafe tiff tools truetype unicode urandom usb vim vim-pager vim-syntax vim-with-x vorbis watchdog x264 x86 xattr xcb xinerama xml xorg xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 cgid dav deflate dir env expires ext_filter  filter headers include info log_config logio mime mime_magic negotiation  rewrite setenvif speling status unique_id usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en es" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel 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" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2010-09-19 17:13:58 UTC
Is this a regression from 0.3.1?
Comment 2 Marcin Mirosław 2010-09-22 11:02:14 UTC
No, the same situation exists in version 0.3.1.
Comment 3 SpanKY gentoo-dev 2011-01-18 03:16:22 UTC
the alternatives.eclass takes care of managing the lemon symlink, but it does it in the pkg_* phases and thus no package actually owns it
Comment 4 Marcin Mirosław 2011-01-18 14:10:26 UTC
If this is not problem in qfile so this is bug in portage, because portage doesn't track symlinks created by self :)
Comment 5 SpanKY gentoo-dev 2011-01-18 20:09:23 UTC
it isnt a bug in portage either.  the alternatives.eclass modifies files in $ROOT during the pkg_* step.  nothing portage can do to monitor that.