Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170283 - app-portage/portage-utils - qfile -o reports gcc symlinks
Summary: app-portage/portage-utils - qfile -o reports gcc symlinks
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
: 170276 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-10 16:28 UTC by nobody
Modified: 2007-05-12 03:17 UTC (History)
2 users (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 nobody 2007-03-10 16:28:54 UTC
qfile report a file as obsolete that is in fact need & use by a package, also
the file is critical for system health.

equery fail to report the file as own too.

files are 
/usr/bin/i686-pc-linux-gnu-addr2line
/usr/bin/i686-pc-linux-gnu-ar
/usr/bin/i686-pc-linux-gnu-as
/usr/bin/i686-pc-linux-gnu-c++
/usr/bin/i686-pc-linux-gnu-c++filt
/usr/bin/i686-pc-linux-gnu-cpp
/usr/bin/i686-pc-linux-gnu-g++
/usr/bin/i686-pc-linux-gnu-gcc
/usr/bin/i686-pc-linux-gnu-gprof
/usr/bin/i686-pc-linux-gnu-ld
/usr/bin/i686-pc-linux-gnu-nm
/usr/bin/i686-pc-linux-gnu-objcopy
/usr/bin/i686-pc-linux-gnu-objdump
/usr/bin/i686-pc-linux-gnu-ranlib
/usr/bin/i686-pc-linux-gnu-readelf
/usr/bin/i686-pc-linux-gnu-size
/usr/bin/i686-pc-linux-gnu-strings
/usr/bin/i686-pc-linux-gnu-strip


Reproducible: Always

Steps to Reproduce:
1.equery b /usr/bin/i686-pc-linux-gnu-ar 
2.qfile -o /usr/bin/i686-pc-linux-gnu-ar 
3.

Actual Results:  
file is state as unused by a package

Expected Results:  
file report as used & package show

emerge -p portage-utils

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-portage/portage-utils-0.1.24  

qfile -V && equery -V
portage-utils-0.1.24: compiled on Mar  7 2007
$Id: qfile.c,v 1.42 2007/01/13 19:17:39 solar Exp $
file written for Gentoo by <solar and vapier @ gentoo.org>
equery(0.1.4) - Gentoo Package Query Tool
Author(s): Karl Trygve Kalleberg

and the url to the forum :p
Comment 1 nobody 2007-03-10 16:30:21 UTC
can you mark http://bugs.gentoo.org/show_bug.cgi?id=170276 a dup of that one
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-10 16:30:44 UTC
*** Bug 170276 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-10 16:32:47 UTC
(In reply to comment #0)
> qfile report a file as obsolete 

orphaned != obsolete, you've misread the option meaning. Plus, those files *are* orphaned, the symlinks are created by gcc-config and don't belong to any package. What exactly are you requesting here?
Comment 4 nobody 2007-03-10 17:50:10 UTC
don't you think it could be a good idea to add /usr/bin/i686-pc-linux-gnu-* to the gcc-config package so ?
this way qfile won't report it orphans, equery will report them belongs to gcc-config & user will keep them safe.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-03-10 18:01:33 UTC
(In reply to comment #4)
> don't you think it could be a good idea to add /usr/bin/i686-pc-linux-gnu-* to
> the gcc-config package so ?

Uhm, you apparently don't understand how gcc-config works; there's no sane way to add dynamically generated symlinks to CONTENTS file and it also wouldn't make sense.
Comment 6 nobody 2007-03-10 18:28:15 UTC
of course i'm not a dev, so i don't really know how gcc-config works

but check that
equery b /usr/bin/ar
[ Searching for file(s) /usr/bin/ar in *... ]
sys-devel/binutils-2.15.92.0.2-r1 (/usr/bin/ar -> ../i686-pc-linux-gnu/bin/ar)

they did put a symlink in binutils, also it will make sense if you keep in mind that this will stop equery & qfile missing theses files...
but enough speak, i'm aware of that issue, if you don't find it enough high to get a solve, that's ok, just close the bug.
But you better keep in mind, that users aren't all devs, and users dislike having dead files (ok ok, orphans :P) files on their disks, so if you made tools available to users, you better made them as safe as you can. See time waste on bug report else... (without speaking about users that will remove them & have their system working on one foot)
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-03-10 22:12:46 UTC
(In reply to comment #6)
> they did put a symlink in binutils

Not relevant; binutils is not slotted by default while gcc is... You don't get collisions w/ binutils, you would with gcc.

# equery b /usr/bin/ar
[ Searching for file(s) /usr/bin/ar in *... ]
#

is what you get w/ USE="multislot" emerge binutils
Comment 8 solar (RETIRED) gentoo-dev 2007-05-12 03:17:14 UTC
Closing bug