diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2017-12-01 10:49:47 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2017-12-02 15:06:02 +0100 |
| commit | c85f069148b33115f67f260e6ef2f10e4e80707e (patch) | |
| tree | f97aa0e4f2b0501723e61ffd39500737877944e5 | |
| parent | 3c97322a6e44cfb5aadf6dadfbed65170786a913 (diff) | |
gnu: man-db: Use 'groff-minimal' at run time.
This reduces the closure of man-db from 175 MiB to 97 MiB.
* gnu/packages/man.scm (man-db)[native-inputs]: Add GROFF.
[inputs]: Replace GROFF with GROFF-MINIMAL.
[arguments]: #:configure-flags now refers to GROFF-MINIMAL.
Add #:disallowed-references.
| -rw-r--r-- | gnu/packages/man.scm | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/gnu/packages/man.scm b/gnu/packages/man.scm index 4f6ed15750d..8abdaf48f60 100644 --- a/gnu/packages/man.scm +++ b/gnu/packages/man.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2012, 2014, 2015 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2012, 2014, 2015, 2017 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2014 David Thompson <dthompson2@worcester.edu> | 3 | ;;; Copyright © 2014 David Thompson <dthompson2@worcester.edu> |
| 4 | ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net> | 4 | ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net> |
| 5 | ;;; Copyright © 2015 Alex Kost <alezost@gmail.com> | 5 | ;;; Copyright © 2015 Alex Kost <alezost@gmail.com> |
| @@ -68,7 +68,7 @@ a flexible and convenient way.") | |||
| 68 | "0gqgs4zc3r87apns0k5qp689p2ylxx2596s2mkmkxjjay99brv88")))) | 68 | "0gqgs4zc3r87apns0k5qp689p2ylxx2596s2mkmkxjjay99brv88")))) |
| 69 | (build-system gnu-build-system) | 69 | (build-system gnu-build-system) |
| 70 | (arguments | 70 | (arguments |
| 71 | '(#:phases | 71 | `(#:phases |
| 72 | (modify-phases %standard-phases | 72 | (modify-phases %standard-phases |
| 73 | (add-after 'patch-source-shebangs 'patch-test-shebangs | 73 | (add-after 'patch-source-shebangs 'patch-test-shebangs |
| 74 | (lambda* (#:key outputs #:allow-other-keys) | 74 | (lambda* (#:key outputs #:allow-other-keys) |
| @@ -88,6 +88,7 @@ a flexible and convenient way.") | |||
| 88 | #t))) | 88 | #t))) |
| 89 | #:configure-flags | 89 | #:configure-flags |
| 90 | (let ((groff (assoc-ref %build-inputs "groff")) | 90 | (let ((groff (assoc-ref %build-inputs "groff")) |
| 91 | (groff-minimal (assoc-ref %build-inputs "groff-minimal")) | ||
| 91 | (less (assoc-ref %build-inputs "less")) | 92 | (less (assoc-ref %build-inputs "less")) |
| 92 | (gzip (assoc-ref %build-inputs "gzip")) | 93 | (gzip (assoc-ref %build-inputs "gzip")) |
| 93 | (bzip2 (assoc-ref %build-inputs "bzip2")) | 94 | (bzip2 (assoc-ref %build-inputs "bzip2")) |
| @@ -110,17 +111,24 @@ a flexible and convenient way.") | |||
| 110 | (string-append "--with-systemdtmpfilesdir=" | 111 | (string-append "--with-systemdtmpfilesdir=" |
| 111 | %output "/lib/tmpfiles.d")) | 112 | %output "/lib/tmpfiles.d")) |
| 112 | (map (lambda (prog) | 113 | (map (lambda (prog) |
| 113 | (string-append "--with-" prog "=" groff "/bin/" prog)) | 114 | (string-append "--with-" prog "=" groff-minimal |
| 115 | "/bin/" prog)) | ||
| 114 | '("nroff" "eqn" "neqn" "tbl" "refer" "pic")))) | 116 | '("nroff" "eqn" "neqn" "tbl" "refer" "pic")))) |
| 117 | |||
| 118 | ;; At run time we should refer to GROFF-MINIMAL, not GROFF (the latter | ||
| 119 | ;; pulls in Perl.) | ||
| 120 | #:disallowed-references (,groff) | ||
| 121 | |||
| 115 | #:modules ((guix build gnu-build-system) | 122 | #:modules ((guix build gnu-build-system) |
| 116 | (guix build utils) | 123 | (guix build utils) |
| 117 | (srfi srfi-1)))) | 124 | (srfi srfi-1)))) |
| 118 | (native-inputs | 125 | (native-inputs |
| 119 | `(("pkg-config" ,pkg-config))) | 126 | `(("pkg-config" ,pkg-config) |
| 127 | ("groff" ,groff))) ;needed at build time (troff, grops, soelim, etc.) | ||
| 120 | (inputs | 128 | (inputs |
| 121 | `(("flex" ,flex) | 129 | `(("flex" ,flex) |
| 122 | ("gdbm" ,gdbm) | 130 | ("gdbm" ,gdbm) |
| 123 | ("groff" ,groff) | 131 | ("groff-minimal" ,groff-minimal) |
| 124 | ("less" ,less) | 132 | ("less" ,less) |
| 125 | ("libpipeline" ,libpipeline) | 133 | ("libpipeline" ,libpipeline) |
| 126 | ("util-linux" ,util-linux))) | 134 | ("util-linux" ,util-linux))) |
