Mirror of GNU Guix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

311 lines
12 KiB

ui: Rename '_' to 'G_'. This avoids collisions with '_' when the latter is used as a 'match' pattern for instance. See <https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00464.html>. * guix/ui.scm: Rename '_' to 'G_'. * po/guix/Makevars (XGETTEXT_OPTIONS): Adjust accordingly. * build-aux/compile-all.scm (warnings): Remove 'format'. * gnu/packages.scm, gnu/services.scm, gnu/services/shepherd.scm, gnu/system.scm, gnu/system/shadow.scm, guix/gnupg.scm, guix/http-client.scm, guix/import/cpan.scm, guix/import/elpa.scm, guix/import/pypi.scm, guix/nar.scm, guix/scripts.scm, guix/scripts/archive.scm, guix/scripts/authenticate.scm, guix/scripts/build.scm, guix/scripts/challenge.scm, guix/scripts/container.scm, guix/scripts/container/exec.scm, guix/scripts/copy.scm, guix/scripts/download.scm, guix/scripts/edit.scm, guix/scripts/environment.scm, guix/scripts/gc.scm, guix/scripts/graph.scm, guix/scripts/hash.scm, guix/scripts/import.scm, guix/scripts/import/cpan.scm, guix/scripts/import/cran.scm, guix/scripts/import/crate.scm, guix/scripts/import/elpa.scm, guix/scripts/import/gem.scm, guix/scripts/import/gnu.scm, guix/scripts/import/hackage.scm, guix/scripts/import/nix.scm, guix/scripts/import/pypi.scm, guix/scripts/import/stackage.scm, guix/scripts/lint.scm, guix/scripts/offload.scm, guix/scripts/pack.scm, guix/scripts/package.scm, guix/scripts/perform-download.scm, guix/scripts/publish.scm, guix/scripts/pull.scm, guix/scripts/refresh.scm, guix/scripts/size.scm, guix/scripts/substitute.scm, guix/scripts/system.scm, guix/ssh.scm, guix/upstream.scm: Use 'G_' instead of '_'. Most of this change was obtained by running: "sed -i -e's/(_ "/(G_ "/g' `find -name \*.scm`".
5 years ago
ui: Rename '_' to 'G_'. This avoids collisions with '_' when the latter is used as a 'match' pattern for instance. See <https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00464.html>. * guix/ui.scm: Rename '_' to 'G_'. * po/guix/Makevars (XGETTEXT_OPTIONS): Adjust accordingly. * build-aux/compile-all.scm (warnings): Remove 'format'. * gnu/packages.scm, gnu/services.scm, gnu/services/shepherd.scm, gnu/system.scm, gnu/system/shadow.scm, guix/gnupg.scm, guix/http-client.scm, guix/import/cpan.scm, guix/import/elpa.scm, guix/import/pypi.scm, guix/nar.scm, guix/scripts.scm, guix/scripts/archive.scm, guix/scripts/authenticate.scm, guix/scripts/build.scm, guix/scripts/challenge.scm, guix/scripts/container.scm, guix/scripts/container/exec.scm, guix/scripts/copy.scm, guix/scripts/download.scm, guix/scripts/edit.scm, guix/scripts/environment.scm, guix/scripts/gc.scm, guix/scripts/graph.scm, guix/scripts/hash.scm, guix/scripts/import.scm, guix/scripts/import/cpan.scm, guix/scripts/import/cran.scm, guix/scripts/import/crate.scm, guix/scripts/import/elpa.scm, guix/scripts/import/gem.scm, guix/scripts/import/gnu.scm, guix/scripts/import/hackage.scm, guix/scripts/import/nix.scm, guix/scripts/import/pypi.scm, guix/scripts/import/stackage.scm, guix/scripts/lint.scm, guix/scripts/offload.scm, guix/scripts/pack.scm, guix/scripts/package.scm, guix/scripts/perform-download.scm, guix/scripts/publish.scm, guix/scripts/pull.scm, guix/scripts/refresh.scm, guix/scripts/size.scm, guix/scripts/substitute.scm, guix/scripts/system.scm, guix/ssh.scm, guix/upstream.scm: Use 'G_' instead of '_'. Most of this change was obtained by running: "sed -i -e's/(_ "/(G_ "/g' `find -name \*.scm`".
5 years ago
ui: Rename '_' to 'G_'. This avoids collisions with '_' when the latter is used as a 'match' pattern for instance. See <https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00464.html>. * guix/ui.scm: Rename '_' to 'G_'. * po/guix/Makevars (XGETTEXT_OPTIONS): Adjust accordingly. * build-aux/compile-all.scm (warnings): Remove 'format'. * gnu/packages.scm, gnu/services.scm, gnu/services/shepherd.scm, gnu/system.scm, gnu/system/shadow.scm, guix/gnupg.scm, guix/http-client.scm, guix/import/cpan.scm, guix/import/elpa.scm, guix/import/pypi.scm, guix/nar.scm, guix/scripts.scm, guix/scripts/archive.scm, guix/scripts/authenticate.scm, guix/scripts/build.scm, guix/scripts/challenge.scm, guix/scripts/container.scm, guix/scripts/container/exec.scm, guix/scripts/copy.scm, guix/scripts/download.scm, guix/scripts/edit.scm, guix/scripts/environment.scm, guix/scripts/gc.scm, guix/scripts/graph.scm, guix/scripts/hash.scm, guix/scripts/import.scm, guix/scripts/import/cpan.scm, guix/scripts/import/cran.scm, guix/scripts/import/crate.scm, guix/scripts/import/elpa.scm, guix/scripts/import/gem.scm, guix/scripts/import/gnu.scm, guix/scripts/import/hackage.scm, guix/scripts/import/nix.scm, guix/scripts/import/pypi.scm, guix/scripts/import/stackage.scm, guix/scripts/lint.scm, guix/scripts/offload.scm, guix/scripts/pack.scm, guix/scripts/package.scm, guix/scripts/perform-download.scm, guix/scripts/publish.scm, guix/scripts/pull.scm, guix/scripts/refresh.scm, guix/scripts/size.scm, guix/scripts/substitute.scm, guix/scripts/system.scm, guix/ssh.scm, guix/upstream.scm: Use 'G_' instead of '_'. Most of this change was obtained by running: "sed -i -e's/(_ "/(G_ "/g' `find -name \*.scm`".
5 years ago
ui: Rename '_' to 'G_'. This avoids collisions with '_' when the latter is used as a 'match' pattern for instance. See <https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00464.html>. * guix/ui.scm: Rename '_' to 'G_'. * po/guix/Makevars (XGETTEXT_OPTIONS): Adjust accordingly. * build-aux/compile-all.scm (warnings): Remove 'format'. * gnu/packages.scm, gnu/services.scm, gnu/services/shepherd.scm, gnu/system.scm, gnu/system/shadow.scm, guix/gnupg.scm, guix/http-client.scm, guix/import/cpan.scm, guix/import/elpa.scm, guix/import/pypi.scm, guix/nar.scm, guix/scripts.scm, guix/scripts/archive.scm, guix/scripts/authenticate.scm, guix/scripts/build.scm, guix/scripts/challenge.scm, guix/scripts/container.scm, guix/scripts/container/exec.scm, guix/scripts/copy.scm, guix/scripts/download.scm, guix/scripts/edit.scm, guix/scripts/environment.scm, guix/scripts/gc.scm, guix/scripts/graph.scm, guix/scripts/hash.scm, guix/scripts/import.scm, guix/scripts/import/cpan.scm, guix/scripts/import/cran.scm, guix/scripts/import/crate.scm, guix/scripts/import/elpa.scm, guix/scripts/import/gem.scm, guix/scripts/import/gnu.scm, guix/scripts/import/hackage.scm, guix/scripts/import/nix.scm, guix/scripts/import/pypi.scm, guix/scripts/import/stackage.scm, guix/scripts/lint.scm, guix/scripts/offload.scm, guix/scripts/pack.scm, guix/scripts/package.scm, guix/scripts/perform-download.scm, guix/scripts/publish.scm, guix/scripts/pull.scm, guix/scripts/refresh.scm, guix/scripts/size.scm, guix/scripts/substitute.scm, guix/scripts/system.scm, guix/ssh.scm, guix/upstream.scm: Use 'G_' instead of '_'. Most of this change was obtained by running: "sed -i -e's/(_ "/(G_ "/g' `find -name \*.scm`".
5 years ago
ui: Rename '_' to 'G_'. This avoids collisions with '_' when the latter is used as a 'match' pattern for instance. See <https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00464.html>. * guix/ui.scm: Rename '_' to 'G_'. * po/guix/Makevars (XGETTEXT_OPTIONS): Adjust accordingly. * build-aux/compile-all.scm (warnings): Remove 'format'. * gnu/packages.scm, gnu/services.scm, gnu/services/shepherd.scm, gnu/system.scm, gnu/system/shadow.scm, guix/gnupg.scm, guix/http-client.scm, guix/import/cpan.scm, guix/import/elpa.scm, guix/import/pypi.scm, guix/nar.scm, guix/scripts.scm, guix/scripts/archive.scm, guix/scripts/authenticate.scm, guix/scripts/build.scm, guix/scripts/challenge.scm, guix/scripts/container.scm, guix/scripts/container/exec.scm, guix/scripts/copy.scm, guix/scripts/download.scm, guix/scripts/edit.scm, guix/scripts/environment.scm, guix/scripts/gc.scm, guix/scripts/graph.scm, guix/scripts/hash.scm, guix/scripts/import.scm, guix/scripts/import/cpan.scm, guix/scripts/import/cran.scm, guix/scripts/import/crate.scm, guix/scripts/import/elpa.scm, guix/scripts/import/gem.scm, guix/scripts/import/gnu.scm, guix/scripts/import/hackage.scm, guix/scripts/import/nix.scm, guix/scripts/import/pypi.scm, guix/scripts/import/stackage.scm, guix/scripts/lint.scm, guix/scripts/offload.scm, guix/scripts/pack.scm, guix/scripts/package.scm, guix/scripts/perform-download.scm, guix/scripts/publish.scm, guix/scripts/pull.scm, guix/scripts/refresh.scm, guix/scripts/size.scm, guix/scripts/substitute.scm, guix/scripts/system.scm, guix/ssh.scm, guix/upstream.scm: Use 'G_' instead of '_'. Most of this change was obtained by running: "sed -i -e's/(_ "/(G_ "/g' `find -name \*.scm`".
5 years ago
ui: Rename '_' to 'G_'. This avoids collisions with '_' when the latter is used as a 'match' pattern for instance. See <https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00464.html>. * guix/ui.scm: Rename '_' to 'G_'. * po/guix/Makevars (XGETTEXT_OPTIONS): Adjust accordingly. * build-aux/compile-all.scm (warnings): Remove 'format'. * gnu/packages.scm, gnu/services.scm, gnu/services/shepherd.scm, gnu/system.scm, gnu/system/shadow.scm, guix/gnupg.scm, guix/http-client.scm, guix/import/cpan.scm, guix/import/elpa.scm, guix/import/pypi.scm, guix/nar.scm, guix/scripts.scm, guix/scripts/archive.scm, guix/scripts/authenticate.scm, guix/scripts/build.scm, guix/scripts/challenge.scm, guix/scripts/container.scm, guix/scripts/container/exec.scm, guix/scripts/copy.scm, guix/scripts/download.scm, guix/scripts/edit.scm, guix/scripts/environment.scm, guix/scripts/gc.scm, guix/scripts/graph.scm, guix/scripts/hash.scm, guix/scripts/import.scm, guix/scripts/import/cpan.scm, guix/scripts/import/cran.scm, guix/scripts/import/crate.scm, guix/scripts/import/elpa.scm, guix/scripts/import/gem.scm, guix/scripts/import/gnu.scm, guix/scripts/import/hackage.scm, guix/scripts/import/nix.scm, guix/scripts/import/pypi.scm, guix/scripts/import/stackage.scm, guix/scripts/lint.scm, guix/scripts/offload.scm, guix/scripts/pack.scm, guix/scripts/package.scm, guix/scripts/perform-download.scm, guix/scripts/publish.scm, guix/scripts/pull.scm, guix/scripts/refresh.scm, guix/scripts/size.scm, guix/scripts/substitute.scm, guix/scripts/system.scm, guix/ssh.scm, guix/upstream.scm: Use 'G_' instead of '_'. Most of this change was obtained by running: "sed -i -e's/(_ "/(G_ "/g' `find -name \*.scm`".
5 years ago
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
  3. ;;; Copyright © 2013 Mark H Weaver <mhw@netris.org>
  4. ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
  5. ;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com>
  6. ;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
  7. ;;;
  8. ;;; This file is part of GNU Guix.
  9. ;;;
  10. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  11. ;;; under the terms of the GNU General Public License as published by
  12. ;;; the Free Software Foundation; either version 3 of the License, or (at
  13. ;;; your option) any later version.
  14. ;;;
  15. ;;; GNU Guix is distributed in the hope that it will be useful, but
  16. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  17. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. ;;; GNU General Public License for more details.
  19. ;;;
  20. ;;; You should have received a copy of the GNU General Public License
  21. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  22. (define-module (gnu packages)
  23. #:use-module (guix packages)
  24. #:use-module (guix ui)
  25. #:use-module (guix utils)
  26. #:use-module (guix discovery)
  27. #:use-module (guix memoization)
  28. #:use-module ((guix build utils)
  29. #:select ((package-name->name+version
  30. . hyphen-separated-name->name+version)))
  31. #:autoload (guix profiles) (packages->manifest)
  32. #:use-module (ice-9 vlist)
  33. #:use-module (ice-9 match)
  34. #:use-module (srfi srfi-1)
  35. #:use-module (srfi srfi-11)
  36. #:use-module (srfi srfi-26)
  37. #:use-module (srfi srfi-34)
  38. #:use-module (srfi srfi-35)
  39. #:use-module (srfi srfi-39)
  40. #:export (search-patch
  41. search-patches
  42. search-auxiliary-file
  43. search-bootstrap-binary
  44. %patch-path
  45. %auxiliary-files-path
  46. %bootstrap-binaries-path
  47. %package-module-path
  48. fold-packages
  49. find-packages-by-name
  50. find-best-packages-by-name
  51. find-newest-available-packages
  52. specification->package
  53. specification->package+output
  54. specifications->manifest))
  55. ;;; Commentary:
  56. ;;;
  57. ;;; General utilities for the software distribution---i.e., the modules under
  58. ;;; (gnu packages ...).
  59. ;;;
  60. ;;; Code:
  61. ;; By default, we store patches, auxiliary files and bootstrap binaries
  62. ;; alongside Guile modules. This is so that these extra files can be
  63. ;; found without requiring a special setup, such as a specific
  64. ;; installation directory and an extra environment variable. One
  65. ;; advantage of this setup is that everything just works in an
  66. ;; auto-compilation setting.
  67. (define %bootstrap-binaries-path
  68. (make-parameter
  69. (map (cut string-append <> "/gnu/packages/bootstrap")
  70. %load-path)))
  71. (define %auxiliary-files-path
  72. (make-parameter
  73. (map (cut string-append <> "/gnu/packages/aux-files")
  74. %load-path)))
  75. (define (search-auxiliary-file file-name)
  76. "Search the auxiliary FILE-NAME. Return #f if not found."
  77. (search-path (%auxiliary-files-path) file-name))
  78. (define (search-patch file-name)
  79. "Search the patch FILE-NAME. Raise an error if not found."
  80. (or (search-path (%patch-path) file-name)
  81. (raise (condition
  82. (&message (message (format #f (G_ "~a: patch not found")
  83. file-name)))))))
  84. (define-syntax-rule (search-patches file-name ...)
  85. "Return the list of absolute file names corresponding to each
  86. FILE-NAME found in %PATCH-PATH."
  87. (list (search-patch file-name) ...))
  88. (define (search-bootstrap-binary file-name system)
  89. "Search the bootstrap binary FILE-NAME for SYSTEM. Raise an error if not
  90. found."
  91. (or (search-path (%bootstrap-binaries-path)
  92. (string-append system "/" file-name))
  93. (raise (condition
  94. (&message
  95. (message
  96. (format #f (G_ "could not find bootstrap binary '~a' \
  97. for system '~a'")
  98. file-name system)))))))
  99. (define %distro-root-directory
  100. ;; Absolute file name of the module hierarchy. Since (gnu packages …) might
  101. ;; live in a directory different from (guix), try to get the best match.
  102. (letrec-syntax ((dirname* (syntax-rules ()
  103. ((_ file)
  104. (dirname file))
  105. ((_ file head tail ...)
  106. (dirname (dirname* file tail ...)))))
  107. (try (syntax-rules ()
  108. ((_ (file things ...) rest ...)
  109. (match (search-path %load-path file)
  110. (#f
  111. (try rest ...))
  112. (absolute
  113. (dirname* absolute things ...))))
  114. ((_)
  115. #f))))
  116. (try ("gnu/packages/base.scm" gnu/ packages/)
  117. ("gnu/packages.scm" gnu/)
  118. ("guix.scm"))))
  119. (define %package-module-path
  120. ;; Search path for package modules. Each item must be either a directory
  121. ;; name or a pair whose car is a directory and whose cdr is a sub-directory
  122. ;; to narrow the search.
  123. (let* ((not-colon (char-set-complement (char-set #\:)))
  124. (environment (string-tokenize (or (getenv "GUIX_PACKAGE_PATH") "")
  125. not-colon)))
  126. ;; Automatically add items from $GUIX_PACKAGE_PATH to Guile's search path.
  127. (for-each (lambda (directory)
  128. (set! %load-path (cons directory %load-path))
  129. (set! %load-compiled-path
  130. (cons directory %load-compiled-path)))
  131. environment)
  132. (make-parameter
  133. (append environment `((,%distro-root-directory . "gnu/packages"))))))
  134. (define %patch-path
  135. ;; Define it after '%package-module-path' so that '%load-path' contains user
  136. ;; directories, allowing patches in $GUIX_PACKAGE_PATH to be found.
  137. (make-parameter
  138. (map (lambda (directory)
  139. (if (string=? directory %distro-root-directory)
  140. (string-append directory "/gnu/packages/patches")
  141. directory))
  142. %load-path)))
  143. (define* (fold-packages proc init
  144. #:optional
  145. (modules (all-modules (%package-module-path)
  146. #:warn
  147. warn-about-load-error))
  148. #:key (select? (negate hidden-package?)))
  149. "Call (PROC PACKAGE RESULT) for each available package defined in one of
  150. MODULES that matches SELECT?, using INIT as the initial value of RESULT. It
  151. is guaranteed to never traverse the same package twice."
  152. (fold-module-public-variables (lambda (object result)
  153. (if (and (package? object) (select? object))
  154. (proc object result)
  155. result))
  156. init
  157. modules))
  158. (define find-packages-by-name
  159. (let ((packages (delay
  160. (fold-packages (lambda (p r)
  161. (vhash-cons (package-name p) p r))
  162. vlist-null)))
  163. (version>? (lambda (p1 p2)
  164. (version>? (package-version p1) (package-version p2)))))
  165. (lambda* (name #:optional version)
  166. "Return the list of packages with the given NAME. If VERSION is not #f,
  167. then only return packages whose version is prefixed by VERSION, sorted in
  168. decreasing version order."
  169. (let ((matching (sort (vhash-fold* cons '() name (force packages))
  170. version>?)))
  171. (if version
  172. (filter (lambda (package)
  173. (version-prefix? version (package-version package)))
  174. matching)
  175. matching)))))
  176. (define find-newest-available-packages
  177. (mlambda ()
  178. "Return a vhash keyed by package names, and with
  179. associated values of the form
  180. (newest-version newest-package ...)
  181. where the preferred package is listed first."
  182. ;; FIXME: Currently, the preferred package is whichever one
  183. ;; was found last by 'fold-packages'. Find a better solution.
  184. (fold-packages (lambda (p r)
  185. (let ((name (package-name p))
  186. (version (package-version p)))
  187. (match (vhash-assoc name r)
  188. ((_ newest-so-far . pkgs)
  189. (case (version-compare version newest-so-far)
  190. ((>) (vhash-cons name `(,version ,p) r))
  191. ((=) (vhash-cons name `(,version ,p ,@pkgs) r))
  192. ((<) r)))
  193. (#f (vhash-cons name `(,version ,p) r)))))
  194. vlist-null)))
  195. (define (find-best-packages-by-name name version)
  196. "If version is #f, return the list of packages named NAME with the highest
  197. version numbers; otherwise, return the list of packages named NAME and at
  198. VERSION."
  199. (if version
  200. (find-packages-by-name name version)
  201. (match (vhash-assoc name (find-newest-available-packages))
  202. ((_ version pkgs ...) pkgs)
  203. (#f '()))))
  204. (define %sigint-prompt
  205. ;; The prompt to jump to upon SIGINT.
  206. (make-prompt-tag "interruptible"))
  207. (define (call-with-sigint-handler thunk handler)
  208. "Call THUNK and return its value. Upon SIGINT, call HANDLER with the signal
  209. number in the context of the continuation of the call to this function, and
  210. return its return value."
  211. (call-with-prompt %sigint-prompt
  212. (lambda ()
  213. (sigaction SIGINT
  214. (lambda (signum)
  215. (sigaction SIGINT SIG_DFL)
  216. (abort-to-prompt %sigint-prompt signum)))
  217. (dynamic-wind
  218. (const #t)
  219. thunk
  220. (cut sigaction SIGINT SIG_DFL)))
  221. (lambda (k signum)
  222. (handler signum))))
  223. ;;;
  224. ;;; Package specification.
  225. ;;;
  226. (define* (%find-package spec name version)
  227. (match (find-best-packages-by-name name version)
  228. ((pkg . pkg*)
  229. (unless (null? pkg*)
  230. (warning (G_ "ambiguous package specification `~a'~%") spec)
  231. (warning (G_ "choosing ~a@~a from ~a~%")
  232. (package-name pkg) (package-version pkg)
  233. (location->string (package-location pkg))))
  234. (match (package-superseded pkg)
  235. ((? package? new)
  236. (info (G_ "package '~a' has been superseded by '~a'~%")
  237. (package-name pkg) (package-name new))
  238. new)
  239. (#f
  240. pkg)))
  241. (x
  242. (if version
  243. (leave (G_ "~A: package not found for version ~a~%") name version)
  244. (leave (G_ "~A: unknown package~%") name)))))
  245. (define (specification->package spec)
  246. "Return a package matching SPEC. SPEC may be a package name, or a package
  247. name followed by an at-sign and a version number. If the version number is not
  248. present, return the preferred newest version."
  249. (let-values (((name version) (package-name->name+version spec)))
  250. (%find-package spec name version)))
  251. (define* (specification->package+output spec #:optional (output "out"))
  252. "Return the package and output specified by SPEC, or #f and #f; SPEC may
  253. optionally contain a version number and an output name, as in these examples:
  254. guile
  255. guile@2.0.9
  256. guile:debug
  257. guile@2.0.9:debug
  258. If SPEC does not specify a version number, return the preferred newest
  259. version; if SPEC does not specify an output, return OUTPUT."
  260. (let-values (((name version sub-drv)
  261. (package-specification->name+version+output spec output)))
  262. (match (%find-package spec name version)
  263. (#f
  264. (values #f #f))
  265. (package
  266. (if (member sub-drv (package-outputs package))
  267. (values package sub-drv)
  268. (leave (G_ "package `~a' lacks output `~a'~%")
  269. (package-full-name package)
  270. sub-drv))))))
  271. (define (specifications->manifest specs)
  272. "Given SPECS, a list of specifications such as \"emacs@25.2\" or
  273. \"guile:debug\", return a profile manifest."
  274. ;; This procedure exists mostly so users of 'guix package -m' don't have to
  275. ;; fiddle with multiple-value returns.
  276. (packages->manifest
  277. (map (compose list specification->package+output) specs)))