From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzQAv-00069c-5X for guix-patches@gnu.org; Tue, 03 Oct 2017 12:36:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzQAs-00048g-14 for guix-patches@gnu.org; Tue, 03 Oct 2017 12:36:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:37947) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzQAr-00048U-T4 for guix-patches@gnu.org; Tue, 03 Oct 2017 12:36:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzQAr-0008FK-NW for guix-patches@gnu.org; Tue, 03 Oct 2017 12:36:01 -0400 Subject: [bug#28690] provide a lib output for boost Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzQ9g-0005zw-R4 for guix-patches@gnu.org; Tue, 03 Oct 2017 12:34:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzQ9d-0002SE-Ne for guix-patches@gnu.org; Tue, 03 Oct 2017 12:34:48 -0400 Received: from tranquility.mcc.ac.uk ([130.88.200.145]:47868) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dzQ9d-0002NO-FB for guix-patches@gnu.org; Tue, 03 Oct 2017 12:34:45 -0400 Received: from asmtp2.its.manchester.ac.uk ([130.88.13.150]) by tranquility.mcc.ac.uk with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85 (FreeBSD)) (envelope-from ) id 1dzQ9Z-000PBs-Op for guix-patches@gnu.org; Tue, 03 Oct 2017 17:34:41 +0100 Received: from albion.it.manchester.ac.uk ([130.88.138.79]:44482) by asmtp2.its.manchester.ac.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1dzQ9Z-0006IA-FA for guix-patches@gnu.org; Tue, 03 Oct 2017 17:34:41 +0100 From: Dave Love Date: Tue, 03 Oct 2017 17:34:41 +0100 Message-ID: <87d164b36m.fsf@albion.it.manchester.ac.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="interception-IRA-Palestine-Liberation-Organization-AK-47-Maritime" 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: 28690@debbugs.gnu.org --interception-IRA-Palestine-Liberation-Organization-AK-47-Maritime Content-Type: text/plain I mentioned elsewhere noticing the large size of boost in closures. I've now realized what the problem was with making a lib output, and done one, as below. However, presumably it should have a dependency of out on lib for compatibility, and I don't know the right way to do that. The lib package is 17MiB, and the headers are 108MiB. --interception-IRA-Palestine-Liberation-Organization-AK-47-Maritime Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-boost-Make-a-lib-output.patch >From 1bb845d1d45ee7e8b9447bab902f3de41f0acfac Mon Sep 17 00:00:00 2001 From: Dave Love Date: Tue, 3 Oct 2017 16:18:59 +0100 Subject: [PATCH] gnu: boost: Make a "lib" output. This save about half the contribution to the Closure of things linked against it, * gnu/packages/boost.scm(outputs): Add lib. (arguments)[mv-lib]: Add move the lib output into place after install. --- gnu/packages/boost.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm index 4c7308e9d..c1e622fcd 100644 --- a/gnu/packages/boost.scm +++ b/gnu/packages/boost.scm @@ -53,6 +53,7 @@ `(("perl" ,perl) ("python" ,python-2) ("tcsh" ,tcsh))) + (outputs '("out" "lib")) (arguments `(#:tests? #f #:make-flags @@ -60,7 +61,7 @@ ;; Set the RUNPATH to $libdir so that the libs find each other. (string-append "linkflags=-Wl,-rpath=" - (assoc-ref %outputs "out") "/lib") + (assoc-ref %outputs "lib") "/lib") ;; Boost's 'context' library is not yet supported on mips64, so ;; we disable it. The 'coroutine' library depends on 'context', @@ -99,7 +100,13 @@ (replace 'install (lambda* (#:key outputs make-flags #:allow-other-keys) - (zero? (apply system* "./b2" "install" make-flags))))))) + (zero? (apply system* "./b2" "install" make-flags)))) + (add-after 'install 'mv-lib + (lambda _ + (mkdir-p (assoc-ref %outputs "lib")) + (rename-file (string-append %output "/lib") + (string-append (assoc-ref %outputs "lib") + "/lib"))))))) (home-page "http://boost.org") (synopsis "Peer-reviewed portable C++ source libraries") -- 2.11.0 --interception-IRA-Palestine-Liberation-Organization-AK-47-Maritime--