From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Problem with revdep-rebuild
Date: Mon, 16 Aug 2010 11:57:14 +0200 [thread overview]
Message-ID: <201008161157.14890.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <4C690709.7050503@gmail.com>
On Monday 16 August 2010 11:38:17 Dale wrote:
> Peter Humphrey wrote:
> > On Monday 16 August 2010 09:13:29 Dale wrote:
> >> Massimiliano Ziccardi wrote:
> >>> # equery belongs /usr/lib/libxfce4util.la<http://libxfce4util.la>
> >>> [ Searching for file(s) /usr/lib/libxfce4util.la
> >>> <http://libxfce4util.la> in *... ]
> >>> #
> >>> "
> >>
> >> Equery doesn't give any results because it is not installed.
> >
> > If it weren't installed it wouldn't be able to announce what it was
> > searching for and where :-)
>
> Some new people think it knows where things come from even if it is not
> installed. It can't do that so I posted that in case the person didn't
> know. Then I posted a way to find out even if a package is not
> installed. I didn't know about that website until someone pointed it
> out to me many ages ago.
>
> It would be neat if it could do that tho. Just have no idea how it
> could. ;-)
It would have to consult a database of file->package mappings. For already
installed packages, it simply looks in /var/ locally - an excellent high-
quality database of such already exists there :-)
For not already installed packages, it would have to look out on the
intartubes for the site you mentioned or something similar. A portage dev
would have to be batshit insane to even try that as the results are "fuzzy".
There are filename collisions to deal with, plus the fact that you don't know
what a package installs till someone builds it. And then there's the carnage
caused by USE flags - my list of installed files for a package is likely
different to yours.
A hallmark of portage is that it deals in definitive data - results are always
exact, unambiguous and deterministic - especially deterministic.
Google for instance, is none of these things. Google results are "good
enough". Mixing portage's view of data with google's view of data will break
portage is many many horrible ways and make your life (as someone who helps
others on this list) miserable - users *will* trust such a lookup tool to be
definitive.
Which all goes to say you should resist the creation of any such lookup tool
with every fibre of your being :-)
--
alan dot mckinnon at gmail dot com
next prev parent reply other threads:[~2010-08-16 10:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-13 12:42 [gentoo-user] Problem with revdep-rebuild Massimiliano Ziccardi
2010-08-13 13:50 ` Alex Schuster
2010-08-14 1:26 ` Jake Moe
2010-08-16 7:54 ` Massimiliano Ziccardi
2010-08-16 8:13 ` Dale
2010-08-16 9:31 ` Peter Humphrey
2010-08-16 9:38 ` Dale
2010-08-16 9:47 ` Massimiliano Ziccardi
2010-08-17 10:21 ` Jake Moe
2010-08-20 8:39 ` Massimiliano Ziccardi
2010-08-16 9:57 ` Alan McKinnon [this message]
2010-08-16 15:26 ` Bill Longman
2010-08-16 10:07 ` Peter Humphrey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201008161157.14890.alan.mckinnon@gmail.com \
--to=alan.mckinnon@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox