Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102605 - 'equery belongs' confused by softlinks
Summary: 'equery belongs' confused by softlinks
Status: RESOLVED DUPLICATE of bug 96515
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-15 06:36 UTC by Jakob Schiotz
Modified: 2005-08-15 06:42 UTC (History)
0 users

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 Jakob Schiotz 2005-08-15 06:36:45 UTC
/usr/X11R6 is obsolete, and is now a softlink to /usr.  This confuses equery, as
illustrated by the following attempt to discover which package delivers the
transfig binary:

[demokrit] ~/development/Asap>which transfig
/usr/bin/transfig
[demokrit] ~/development/Asap>equery belongs /usr/bin/transfig
[ Searching for file(s) /usr/bin/transfig in *... ]
[demokrit] ~/development/Asap>

Note that nothing is found.  If I list which files the package actually
provides, I get the following:

[demokrit] ~/development/Asap>equery files media-gfx/transfig
[ Searching for packages matching media-gfx/transfig... ]
media-gfx/transfig-3.2.4-r1
* Contents of media-gfx/transfig-3.2.4-r1:
/usr
/usr/X11R6
/usr/X11R6/bin
/usr/X11R6/bin/fig2dev
/usr/X11R6/bin/fig2ps2tex
/usr/X11R6/bin/fig2ps2tex.sh
/usr/X11R6/bin/pic2tpic
/usr/X11R6/bin/transfig            <=== Here it is!
/usr/X11R6/lib
/usr/X11R6/lib/fig2dev
/usr/bin
/usr/lib
  [ ..... ]

Note that /usr/X11R6/bin/transfig appears here.

[demokrit] ~/development/Asap>ls -l /usr/X11R6
lrwxrwxrwx  1 root root 6 Aug  2 11:50 /usr/X11R6 -> ../usr



Reproducible: Always
Steps to Reproduce:
1.equery belongs `which transfig`
2.
3.

Actual Results:  
equery did not find any package

Expected Results:  
It should have found the package media-gfx/transfig-3.2.4-r1


# emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/
ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/"
LINGUAS="dk fr"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-marving"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d acpi alsa atlas avi berkdb bitmap-fonts cdr crypt cups curl dga
dvd eds emacs emboss encode fam flac font-server foomaticdb fortran gd gdbm gif
gpm gstreamer gtk gtk2 imagemagick imap imlib java jpeg kde kdeenablefinal
kdexdeltas libg++ libwww mad maildir mbox mikmod mime motif mozilla mp3 mpeg
mule ncurses netcdf nls nptl ogg oggvorbis opengl oss pam pcmcia pdflib perl
plotutils png pnp ppds python qt quicktime readline real scanner sdl smime spell
sse sse2 ssl svga tcltk tcpd tetex tiff truetype truetype-fonts trusted
type1-fonts usb vorbis win32codecs wxwindows xine xml2 xmms xv xvid zlib
linguas_dk linguas_fr userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-08-15 06:42:05 UTC

*** This bug has been marked as a duplicate of 96515 ***