Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Jul 2012 18:13:51 -0400
From:      Richard Yao <ryao@gentoo.org>
To:        Sean <sean@gothic.net.au>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Gentoo Solution to Nanny Terminal Problem
Message-ID:  <4FF6119F.7030406@gentoo.org>
In-Reply-To: <8B6B2F42-71EA-449A-8A83-8F76C34A2DC5@gothic.net.au>
References:  <CA%2BQLa9B-Dm-=hQCrbEgyfO4sKZ5aG72_PEFF9nLhyoy4GRCGrA@mail.gmail.com> <4FF2E00E.2030502@FreeBSD.org> <86bojxow6x.fsf@ds4.des.no> <4FF35864.5030109@FreeBSD.org> <CAC8HS2Hx%2BqV1zYSzyM6wYzbyA6BStd3HEwc-VDhv40DHM=qCvw@mail.gmail.com> <CAOjFWZ5ikPz_yDhEQutiXVG354qRHYJTn-M_S4Cx-=YRgFP7eQ@mail.gmail.com> <20120704185104.GA42355@DataIX.net> <4FF4B36A.2040608@FreeBSD.org> <20120704180134.7c649e1b@bhuda.mired.org>	<4FF4BEED.10103@FreeBSD.org> <9fab855109ce448d89081b2ad8e5adc8@HUBCAS2.cs.stonybrook.edu> <4FF58257.4040301@gentoo.org> <38FB993D-6EB4-49BF-9790-420F7375E331@gothic.net.au> <4FF5B0FE.5010609@gentoo.org> <8B6B2F42-71EA-449A-8A83-8F76C34A2DC5@gothic.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig9A89239EDCEA7D9579A3D196
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 07/05/2012 12:18 PM, Sean wrote:
>=20
> On 06/07/2012, at 1:21 AM, Richard Yao wrote:
>=20
>> On 07/05/2012 10:58 AM, Sean wrote:
>>>
>>> On 05/07/2012, at 10:02 PM, Richard Yao wrote:
>>>>
>>>> The second is the e-file command, which will query that database for=

>>>> whatever follows it. For example, if I want to find out which packag=
e
>>>> installs repoman, I can do `e-file repoman`. I can also do `e-file
>>>> /usr/bin/repoman`.
>>>>
>>>> if FreeBSD had an equivalent to this command, this command, then I
>>>> imagine that calls for Ubuntu/Fedora features should cease. Gentoo u=
sers
>>>> seem to be happy with e-file.
>>>>
>>>
>>>
>>> 0:55 Fri 06-Jul sean@queen [~] pkg_info -W bash
>>> /usr/local/bin/bash was installed by package bash-4.2.28
>>>
>>> 0:57 Fri 06-Jul sean@queen [~] pkg_info -W /usr/local/sbin/sendmail=20
>>> /usr/local/sbin/sendmail was installed by package postfix-2.9.3,1
>>
>> Does that tell you about packages that are not installed?
>>
>=20
> No, but that wasn't part of your description. Or if it was, I missed it=
 and go me for publicly putting my foot in my mouth :)
>=20
> And if it's going down the path of every package/port there's questions=
 (at least to me...) - is it all possible ports/packages including option=
s (and that's a big 'how?'), or just the defaults? Considering how dynami=
c ports are with options rather than being broken up into pieces, it gets=
 ugly fast - which port has /usr/local/bin/ndb_config? ok, yes, mysql*-se=
rver, but only if WITH_NDB - it's not default. Maybe that should be a mys=
ql*-server-ndb port, but it's not, and it's far from alone there ... PHP =
was at one time the poster child for compiling everything in via options =
rather than using modules and I'm very grateful for the maintainers for s=
orting out that mess as much as they have. But it's also another example =
of non-default options making notable changes; what if you're looking for=
 the mod_php setup? Searching for mod_php won't work if you just use defa=
ults; it's a non-default option for the php5* package. Same with php-fpm.=
=20
>=20
> It's an effective solution for the default packages and certainly works=
 well on that basis, but the current ports aren't always amenable to peel=
ing out the required information in a variety of cases.=20
>=20
> This is not to say it's a bad idea - it's not, by any means. Quite the =
reverse really. It's just the boundaries and limits really need to be cle=
ar or its diving down a rabbit hole... (shuffle/split the ports to make t=
his easier? Does pkg-ng make it easier to find this sort of information? =
Punt on it and say caveat emptor?)
>=20
> Gentoo's ebuilds can be just as dynamic - how does Gentoo deal with it?=


That information is recorded in /var/db/pkg. The cron job reads that on
Gentoo. As for what it will find, it only will find things that has been
installed on end user systems that are running the cron job. If an
option or port is not used, then it will not find it. That has only
happened to me once on Gentoo. Apparently, no one runing the cron job
used mtree and the package had been broken for a while.


--------------enig9A89239EDCEA7D9579A3D196
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJP9hGkAAoJECDuEZm+6Exk8ycP/isGNJ5dsbygIEWFT26yNW3/
h5tDfzZWhI+CqMmIhYZoXzHNYyTZBhTXHUQ0e1vx7dYwCKoY9ZNBoPUJRDVYa3Y9
nwotTpKiXdHLe/zoisUoBKbst0IphrS97L9PFZt4m4RpKIBITQszTqwWQi9e/WcY
4kHCGwWCjiRrGFlmy8HgMmMVDxK562NRqDv/5jwYWmFCI5pmrj+WTH3IOqrYcxfQ
vRLGPiQpkBhUjexvgAQs0YxijvX96zJugBXItjJ7E02soO0hid12ZwA6SobrIyzN
2/IbjL8JRVy0+z3VXXEtXdwyl5ngB8S4BiTsc5BCgnLs5I/E90a/q2MqUqgVaqu0
Y/RqoUpJT7dTRN5uhfCMaJw5HJUKKevljkgHxp0aHLMoEWhUMei6xXW3ruHihfxG
3GhYzt6EoK3sxVqGOwkiyB5H7NiICg2Vem7OJehpdAU1PpnPDh5+JulYw4OG/eLs
gUOkpxQyH73nKCV9jwaekkm3RaAwZFAFLi7DPEseavJ/NPlpxMiW0+UBRDQ03uPW
h0aIyWSkp5PMeE3qmz26ZnK5jLpYnOLh0Vp6/azyfSX+WLvcwfTOH+FG3q8wBAn0
S6qdIp4X2Sh4GpeQmRxoIXU26KyFiT0FhR9p+Uv9U6AbDJjZhbWSLhOWgfZy4Y/J
l0Mblx8uJ1Ax0MJJxsQG
=4nRy
-----END PGP SIGNATURE-----

--------------enig9A89239EDCEA7D9579A3D196--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FF6119F.7030406>