From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Vollmert Subject: Re: distinguishing between applications and libraries Date: Sun, 30 Jun 2019 22:05:58 +0200 Message-ID: <19D3778D-BA32-41C9-81C9-60ECB4F3BF7E@vllmrt.net> References: <0E655A03-834C-4219-8956-D69CF4C6A444@vllmrt.net> <874l47hs00.fsf@ambrevar.xyz> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:57206) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhg5d-0001dZ-Sl for guix-devel@gnu.org; Sun, 30 Jun 2019 16:06:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhg5b-000399-Dv for guix-devel@gnu.org; Sun, 30 Jun 2019 16:06:20 -0400 Received: from mx1.mailbox.org ([2001:67c:2050:104:0:1:25:1]:41952) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hhg5a-00031Z-OL for guix-devel@gnu.org; Sun, 30 Jun 2019 16:06:19 -0400 In-Reply-To: <874l47hs00.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: guix-devel@gnu.org > On 30. Jun 2019, at 20:01, Pierre Neidhardt wrote: >=20 > Hi Robert! >=20 > `guix search` and other user-facing tools ignore non-exported = packages. >=20 > So you can simply use `define` instead of `define-public` to declare a > package. Good point, but that breaks down once a library is used by a package outside that module. E.g. consider the various ghc-* packages. Running =E2=80=9Cguix search clock=E2=80=9D returns `ghc-clock` and = `ocaml-mtime`. The first needs to be public since it=E2=80=99s used elsewhere, the second is = defined as public anyway. Should that change? >> - maybe there=E2=80=99s some other simplifications to make in library >> package definitions? I=E2=80=99d be happy to not copy over a >> long description that no-one=E2=80=99s ever going to read. :) >=20 > The description does not have to be long, in fact it can be just one > line, but it just explain what the package is here for. Even if it is > not exposed to the user, package maintainers will want to know why = it's > here. Well the real reason why it=E2=80=99s there lies in its reverse = dependencies, no? Robert