Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2905 - [IDEA] Support searching for files installed by all available packages, even those that aren't currently installed.
Summary: [IDEA] Support searching for files installed by all available packages, even ...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 4883 9938 15475 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-21 23:59 UTC by Rufiao Valhacouto
Modified: 2017-06-03 22:08 UTC (History)
6 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 Rufiao Valhacouto 2002-05-21 23:59:51 UTC
portage should provide means to search in the contents of all the packages, have
they been installed or not. This could address the following situations:

- Discover which package(s) provides a given file in the case it's not installed
in the system
- Find which other package(s) could provide a file which is installed
- Provide means for (partially) checking if the specified dependendies of every
package are satisfied (by using ldd and checking if the linked libraries are
provided by the specified dependencies in the ebuild)

This functionality imposes some implementation problems, since every ebuild
should provide something like a 'contents' file specifying the superset of files
it could provide (which can vary according with USE flags, for instance),  and
this may be an unwanted overhead for the portage tree. A possible solution could
be to provide a online service running under gentoo.org to allow such queries
(in this case a proper backend could run every available ebuild and create a
database of files). 

A similar system exists in Debian, which provides an on-line interface to query
for the contents of packages:
http://www.debian.org/distrib/packages#search_contents
Comment 1 SpanKY gentoo-dev 2002-10-30 08:29:09 UTC
*** Bug 9938 has been marked as a duplicate of this bug. ***
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-09-25 14:47:41 UTC
*** Bug 4883 has been marked as a duplicate of this bug. ***
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-01-12 04:33:17 UTC
*** Bug 15475 has been marked as a duplicate of this bug. ***
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-04-01 00:58:58 UTC
I think this would be best suited for gentoo-stats, the client sends the CONTENTS files together with USE/ARCH to the server which analyzes them and calculates probabilities of a given file being in a package. That information could then be queried from the website.
Of course it should be completely optional and off by default for privacy and bandwidth reasons.
Comment 5 Mark Cooper 2004-07-01 05:10:56 UTC
There's a discussion at http://forums.gentoo.org/viewtopic.php?t=189584 about implementing such a system ... comments appreciated
Comment 6 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-10-11 21:36:43 UTC
(In reply to comment #4)
> I think this would be best suited for gentoo-stats, the client sends the 
CONTENTS files together with USE/ARCH to the server which analyzes them and 
calculates probabilities of a given file being in a package. That information 
could then be queried from the website.
> Of course it should be completely optional and off by default for privacy and 
bandwidth reasons.

FYI, the gentoo-stats project died.
Comment 7 Daniel Herzog 2006-12-16 02:56:50 UTC
well, i think whenever it reappears it would be a good idea to implement (again) :-)
Comment 8 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-03-15 12:41:47 UTC
> - Discover which package(s) provides a given file in the case it's not installed
in the system
> - Find which other package(s) could provide a file which is installed

We have a tool for such thing in tree (`emerge pfl && e-file someFileHere`) so I assume there is no longer need for such thing to be implemented.

> - Provide means for (partially) checking if the specified dependendies of every
package are satisfied (by using ldd and checking if the linked libraries are
provided by the specified dependencies in the ebuild)

This is very simple to implement in bash (just grep the NEEDED entries, enumerate them through `equery b` and `e-file` to tell whether they are present and if not tell which package we need to depend on), furthermore it is irrelevant to the "implementation problem" you refer to.

So, I ask the maintainers, do we still have a need to reinvent the wheel here?
Comment 9 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-06-09 11:46:06 UTC
@Portage Tools Team: Ping. If you think `e-file ...` from app-portage/pfl covers this, then please close this bug and remove bug #472746 from Blocks; thanks. If not, feel free to see this message as a subtle reminder for this idea...