From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: bug#30130: Add =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?whereis=E2=80=99?= command Date: Mon, 17 Dec 2018 22:55:47 +0200 Message-ID: <20181217205547.GA2581@macbook41> References: <871sirf3fo.fsf@gnu.org> <65446f307809a0e20ba595e2008eb3da@riseup.net> <87va3suzqd.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZ07Z-0000pN-Qw for bug-guix@gnu.org; Mon, 17 Dec 2018 16:08:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYzvm-0003Wf-6C for bug-guix@gnu.org; Mon, 17 Dec 2018 15:56:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48033) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gYzvm-0003Vy-1a for bug-guix@gnu.org; Mon, 17 Dec 2018 15:56:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gYzvl-0002G7-Qd for bug-guix@gnu.org; Mon, 17 Dec 2018 15:56:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87va3suzqd.fsf@elephly.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ricardo Wurmus Cc: swedebugia@riseup.net, 30130@debbugs.gnu.org --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 17, 2018 at 01:03:38PM +0100, Ricardo Wurmus wrote: >=20 > > This could be solved by a new field in the package-record: (provides > > '("list of commands provided")) >=20 > The danger with doing this in a package definition is that it can easily > go out of sync unless we also add a verification phase to compare the > output with the list of provided executables. Another problem is that > the list might not be complete and it is yet another manual thing to > maintain for all packages. >=20 > Another approach is to shift this task to substitute servers. This is Debian's aproach, with 'apt-file'. Another option that would keep it more local would be a custom updatedb command that would look in bin/sbin/libexec in the store for binaries and keep track of that. The downside of course being that you'd only know about binaries you had in your store. >=20 > > E.g. right now in my guixsd I have no "file" command. I have no idea > > which package installs it. :p >=20 > The confusingly named =E2=80=9Cfile=E2=80=9D package provides the =E2=80= =9Cfile=E2=80=9D executable ;) This works for file, but it's not obvious that 'clear' is in ncurses. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlwYDU8ACgkQQarn3Mo9 g1Hb+xAAwSFBzpgQlYT6KtcPpKUvEWqjFOdrKTs++bofrXU7YD9x5KoAOez0haEE 7ySRQG284u3CCBX5Wqxb4Bians2haBridHfa3lpm+hitwB9Zn/ximV+M2znAfgNj gheuPQTHsDrDVeG8lG0BUfh3BuycJzbZI+bSvxs0uWPeFs3zCtdLS4BFGzsdHHzD 9QwFwwAkYUEnLJQ47ReeqrPjzhuQmDH4i/BSthUIo9J816420iobnu7VO+6K/YmS LsaCGSIOC3kbqsm3OThjbP2X0Ii1x7f4c2EJzdQNkdG3aoYWBxxa0dPJ+h+nbDyv p50BuyXyzPmzmrnDpiT33mQyj0Lg1Xhks5Ot/vjxy1GbYPsEcv7TveF4cGzopXYW +J4+hZv1WG/LqwUUDS51HjKNJEh6lWsy99WSqxM3DMyT4CAgkJBJUDIwLQZemOcQ hE3DDXWAZw7zNOPHnhH8B+JerFBxyxpZ3+/kunl0qjeQ4SgjC1qYIWVpeRQcrBIj c05d+T1ZAfGWDza8/JFE1j0hz5+k4Hj/lQVe5ZXgCs8AtkPp1akZplc40YBjpQ3S TodzAriz+IYbm9u6xyliUZIG1LZyuZHYQqCQPYR7oLMl4cxfA+Z/hbKXkrR/9LLj p8caN8K4BLJtYzW5pt801whMVsFOgKmqp5VUnvBTEVBNt/axFqo= =daxm -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--