From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e71Aa-0004om-Vd for guix-patches@gnu.org; Tue, 24 Oct 2017 11:31:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e71AU-00074u-ED for guix-patches@gnu.org; Tue, 24 Oct 2017 11:31:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51355) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e71AU-00074e-AT for guix-patches@gnu.org; Tue, 24 Oct 2017 11:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e71AU-000111-4B for guix-patches@gnu.org; Tue, 24 Oct 2017 11:31:02 -0400 Subject: [bug#28690] provide a lib output for boost Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87o9p1u78l.fsf@gnu.org> <87zi8ji0sw.fsf@albion.it.manchester.ac.uk> <87a80j0zv9.fsf@gnu.org> <20171024.152840.126421535486070154.post@thomasdanckaert.be> Date: Tue, 24 Oct 2017 08:30:08 -0700 In-Reply-To: <20171024.152840.126421535486070154.post@thomasdanckaert.be> (Thomas Danckaert's message of "Tue, 24 Oct 2017 15:28:40 +0200 (CEST)") Message-ID: <87inf4pnr3.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Thomas Danckaert Cc: 28690@debbugs.gnu.org, dave.love@manchester.ac.uk Thomas Danckaert skribis: >>> I don't know if it helps, or is well-known anyhow, but you can >>> check the >>> dependencies of any that are in Debian by looking under >>> https://packages.debian.org/sid/. >> >> I don=E2=80=99t think it helps. I suggest looking for the direct >> dependencies >> of Boost in Guix, possibly using =E2=80=98guix refresh -l boost=E2=80=99. > > Doesn't that also lists indirect dependencies (575 of them)?=20 Yes it does. > After some experimentation at the REPL, I came up with the following > to find only packages directly depending on boost: > > (use-modules > (srfi srfi-1) > (guix packages) > (gnu packages) > (gnu packages boost) > (guix scripts refresh)) > > (define (depends-on-boost pkg) > (any (lambda (p) (eq? p boost)) > (map cadr (append (package-inputs pkg) > (package-propagated-inputs pkg) > (package-native-inputs pkg))))) > > (let ((all-deps (filter depends-on-boost (fold-packages cons '())))) > (format (current-output-port) > "~{~a~^~%~}~%" (map package-name all-deps))) > > Leading to the 97 dependencies in the attached file. Neat! We should add something like this to =E2=80=98guix refresh=E2=80=99. > Is that approach correct? There are also 3 packages which have boost > as a propagated input (mdds, gpgmepp and librevenge). That could lead > to further packages depending on boost, which are missing from the > list, but for now I'll assume that such cases are rare. The approach looks correct, yes. > Meanwhile I'll try to build those 97 packages, stay tuned ;-) Awesome, let us know how it goes! Thanks, Ludo=E2=80=99.