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.

990 lines
32 KiB

mailmap: Update entries for Nikita. * .mailmap: change email and name for Nikita. * Makefile.am, doc/guix.texi, etc/completion/fish/guix.fish, gnu/packages/accessibility.scm, gnu/packages/admin.scm, gnu/packages/audio.scm, gnu/packages/autotools.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/cinnamon.scm, gnu/packages/compression.scm, gnu/packages/crypto.scm, gnu/packages/databases.scm, gnu/packages/django.scm, gnu/packages/dns.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm, gnu/packages/enlightenment.scm, gnu/packages/erlang.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/forth.scm, gnu/packages/fvwm.scm, gnu/packages/games.scm, gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm, gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile-xyz.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-check.scm, gnu/packages/haskell-crypto.scm, gnu/packages/haskell-xyz.scm, gnu/packages/haskell.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/language.scm, gnu/packages/libcanberra.scm, gnu/packages/linux.scm, gnu/packages/lisp-xyz.scm, gnu/packages/lisp.scm, gnu/packages/lolcode.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm, gnu/packages/maths.scm, gnu/packages/mc.scm, gnu/packages/messaging.scm, gnu/packages/music.scm, gnu/packages/ncurses.scm, gnu/packages/networking.scm, gnu/packages/nickle.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm, gnu/packages/perl-check.scm, gnu/packages/perl.scm, gnu/packages/python-compression.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/ssh.scm, gnu/packages/suckless.scm, gnu/packages/tbb.scm, gnu/packages/telephony.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/web.scm, gnu/packages/wm.scm, gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/services/certbot.scm, gnu/services/desktop.scm, gnu/services/version-control.scm, gnu/services/web.scm, guix/import/hackage.scm, guix/licenses.scm: Likewise. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2 years ago
lint: Move the linting code to a different module. To try and move towards making programatic access to the linting code easier, this commit separates out the linting script, from the linting functionality that it uses. * guix/scripts/lint.scm (emit-warnings): Alter to to not use match-lambda, as <lint-warning> isn't accessible. (<lint-warning>, lint-warning, make-lint-warning, lint-warning?, lint-warning-message, lint-warning-message-text, lint-warning-message-data, lint-warning-location, package-file, %make-warning make-warning, <lint-checker>, lint-checker, make-lint-checker, lint-checker?, lint-checker-name, lint-checker-description, lint-checker-check, properly-starts-sentance?, starts-with-abbreviation?, %quoted-identifier-rx, check-description-style, package-input-intersection, check-inputs-should-be-native, check-inputs-should-not-be-an-input-at-all, package-name-regexp, check-synopsis-style, probe-uri, tls-certificate-error-string, validate-uri, check-home-page, %distro-directory, check-patch-file-names, escape-quotes, official-gnu-packages*, check-gnu-synopsis+description, origin-uris, check-source, check-source-file-name, check-source-unstable-tarball, check-mirror-url, check-github-url, check-derivation, check-license, call-with-networking-fail-safe, with-networking-fail-safe, current-vulnerabilities*, package-vulnerabilities, check-vulnerabilities, check-for-updates, report-tabulations, report-trailing-white-space, report-long-line, %hanging-paren-rx, report-lone-parantheses, %formatting-reporters, report-formatting-issues, check-formatting, %checkers): Move to… * guix/lint.scm: … here * po/guix/POTFILES.in: Add guix/lint.scm. * Makefile.am: Add guix/lint.scm. * tests/lint.scm: Change to import (guix lint), rather than (guix scripts lint).
2 years ago
Add (guix status) and use it for pretty colored output. * guix/progress.scm (progress-reporter/trace): New procedure. (%progress-interval): New variable. (progress-reporter/file): Use it. * guix/scripts/build.scm (set-build-options-from-command-line): Pass #:print-extended-build-trace?. (%default-options): Add 'print-extended-build-trace?'. (guix-build): Parameterize CURRENT-TERMINAL-COLUMNS. Use 'build-status-updater'. * guix/scripts/environment.scm (%default-options): Add 'print-extended-build-trace?'. (guix-environment): Wrap body in 'with-status-report'. * guix/scripts/pack.scm (%default-options): Add 'print-build-trace?' and 'print-extended-build-trace?'. (guix-pack): Wrap body in 'with-status-report'. * guix/scripts/package.scm (%default-options, guix-package): Likewise. * guix/scripts/system.scm (%default-options, guix-system): Likewise. * guix/scripts/pull.scm (%default-options, guix-pull): Likewise. * guix/scripts/substitute.scm (progress-report-port): Don't call STOP when TOTAL is zero. (process-substitution): Add #:print-build-trace? and honor it. (guix-substitute)[print-build-trace?]: New variable. Pass #:print-build-trace? to 'process-substitution'. * guix/status.scm: New file. * guix/store.scm (set-build-options): Add #:print-extended-build-trace?; pass it into PAIRS. (%protocol-version): Bump. (protocol-version, nix-server-version): New procedures. (current-store-protocol-version): New variable. (with-store, build-things): Parameterize it. * guix/ui.scm (build-output-port): Remove. (colorize-string): Export. * po/guix/POTFILES.in: Add guix/status.scm. * tests/status.scm: New file. * Makefile.am (SCM_TESTS): Add it. * nix/libstore/worker-protocol.hh (PROTOCOL_VERSION): Bump to 0x162. * nix/libstore/build.cc (DerivationGoal::registerOutputs) (SubstitutionGoal::finished): Print a "@ hash-mismatch" trace before throwing.
5 years ago
build: Add a Guile custom test driver using SRFI-64. Before that '.log' files for scheme tests were fragmented and not included in test-suite.log. This unifies the semantics of SRFI-64 API with Automake test suite. * build-aux/test-driver.scm: New file. * Makefile.am (SCM_LOG_DRIVER, AM_SCM_LOG_DRIVER_FLAGS): New variables. (SCM_LOG_COMPILER, AM_SCM_LOG_FLAGS): Delete variables. (AM_TESTS_ENVIRONMENT): Set GUILE_AUTO_COMPILE to 0. * test-env.in: Silence guix-daemon. * doc/guix.texi (Running the Test Suite): Describe how to display the detailed results. Bug reports require only 'test-suite.log' file. * tests/base32.scm, tests/build-utils.scm, tests/builders.scm, tests/challenge.scm, tests/cpan.scm, tests/cpio.scm, tests/cran.scm, tests/cve.scm, tests/derivations.scm, tests/elpa.scm, tests/file-systems.scm, tests/gem.scm, tests/gexp.scm, tests/gnu-maintenance.scm, tests/grafts.scm, tests/graph.scm, tests/gremlin.scm, tests/hackage.scm, tests/hash.scm, tests/import-utils.scm, tests/lint.scm, tests/monads.scm, tests/nar.scm, tests/packages.scm, tests/pk-crypto.scm, tests/pki.scm, tests/profiles.scm, tests/publish.scm, tests/pypi.scm, tests/records.scm, tests/scripts-build.scm, tests/scripts.scm, tests/services.scm, tests/sets.scm, tests/size.scm, tests/snix.scm, tests/store.scm, tests/substitute.scm, tests/syscalls.scm, tests/system.scm, tests/ui.scm, tests/union.scm, tests/upstream.scm, tests/utils.scm: Don't exit at the end of test groups. * tests/containers.scm: Likewise. Use 'test-skip' instead of exiting with error code 77.
6 years ago
build: Add a Guile custom test driver using SRFI-64. Before that '.log' files for scheme tests were fragmented and not included in test-suite.log. This unifies the semantics of SRFI-64 API with Automake test suite. * build-aux/test-driver.scm: New file. * Makefile.am (SCM_LOG_DRIVER, AM_SCM_LOG_DRIVER_FLAGS): New variables. (SCM_LOG_COMPILER, AM_SCM_LOG_FLAGS): Delete variables. (AM_TESTS_ENVIRONMENT): Set GUILE_AUTO_COMPILE to 0. * test-env.in: Silence guix-daemon. * doc/guix.texi (Running the Test Suite): Describe how to display the detailed results. Bug reports require only 'test-suite.log' file. * tests/base32.scm, tests/build-utils.scm, tests/builders.scm, tests/challenge.scm, tests/cpan.scm, tests/cpio.scm, tests/cran.scm, tests/cve.scm, tests/derivations.scm, tests/elpa.scm, tests/file-systems.scm, tests/gem.scm, tests/gexp.scm, tests/gnu-maintenance.scm, tests/grafts.scm, tests/graph.scm, tests/gremlin.scm, tests/hackage.scm, tests/hash.scm, tests/import-utils.scm, tests/lint.scm, tests/monads.scm, tests/nar.scm, tests/packages.scm, tests/pk-crypto.scm, tests/pki.scm, tests/profiles.scm, tests/publish.scm, tests/pypi.scm, tests/records.scm, tests/scripts-build.scm, tests/scripts.scm, tests/services.scm, tests/sets.scm, tests/size.scm, tests/snix.scm, tests/store.scm, tests/substitute.scm, tests/syscalls.scm, tests/system.scm, tests/ui.scm, tests/union.scm, tests/upstream.scm, tests/utils.scm: Don't exit at the end of test groups. * tests/containers.scm: Likewise. Use 'test-skip' instead of exiting with error code 77.
6 years ago
  1. # GNU Guix --- Functional package management for GNU
  2. # Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
  3. # Copyright © 2013 Andreas Enge <andreas@enge.fr>
  4. # Copyright © 2015, 2017 Alex Kost <alezost@gmail.com>
  5. # Copyright © 2016, 2018 Mathieu Lirzin <mthl@gnu.org>
  6. # Copyright © 2016, 2017, 2018, 2019 Mark H Weaver <mhw@netris.org>
  7. # Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
  8. # Copyright © 2017 Leo Famulari <leo@famulari.name>
  9. # Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
  10. # Copyright © 2017, 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
  11. # Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
  12. # Copyright © 2018 Nikita <nikita@n0.is>
  13. # Copyright © 2018 Julien Lepiller <julien@lepiller.eu>
  14. # Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
  15. # Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
  16. # Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
  17. #
  18. # This file is part of GNU Guix.
  19. #
  20. # GNU Guix is free software; you can redistribute it and/or modify it
  21. # under the terms of the GNU General Public License as published by
  22. # the Free Software Foundation; either version 3 of the License, or (at
  23. # your option) any later version.
  24. #
  25. # GNU Guix is distributed in the hope that it will be useful, but
  26. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  28. # GNU General Public License for more details.
  29. #
  30. # You should have received a copy of the GNU General Public License
  31. # along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  32. MSGMERGE_UPDATE = @MSGMERGE@ --update
  33. bin_SCRIPTS = scripts/guix
  34. # Handle substitution of fully-expanded Autoconf variables.
  35. do_subst = $(SED) \
  36. -e 's,[@]GUILE[@],$(GUILE),g' \
  37. -e 's,[@]guilemoduledir[@],$(guilemoduledir),g' \
  38. -e 's,[@]guileobjectdir[@],$(guileobjectdir),g' \
  39. -e 's,[@]localedir[@],$(localedir),g'
  40. scripts/guix: scripts/guix.in Makefile
  41. $(AM_V_at)rm -f $@ $@-t
  42. $(AM_V_at)$(MKDIR_P) "$(@D)"
  43. $(AM_V_GEN)$(do_subst) < "$(srcdir)/$@.in" > "$@-t"
  44. $(AM_V_at)chmod a+x,a-w "$@-t" && mv -f "$@-t" "$@"
  45. nodist_noinst_SCRIPTS = \
  46. pre-inst-env \
  47. test-env
  48. # Modules that are not compiled but are installed nonetheless, such as
  49. # build-side modules with unusual dependencies.
  50. MODULES_NOT_COMPILED = \
  51. guix/build/po.scm \
  52. guix/man-db.scm
  53. include gnu/local.mk
  54. include po/doc/local.mk
  55. MODULES = \
  56. guix/base16.scm \
  57. guix/base32.scm \
  58. guix/base64.scm \
  59. guix/ci.scm \
  60. guix/cpio.scm \
  61. guix/deprecation.scm \
  62. guix/docker.scm \
  63. guix/json.scm \
  64. guix/records.scm \
  65. guix/openpgp.scm \
  66. guix/pki.scm \
  67. guix/progress.scm \
  68. guix/combinators.scm \
  69. guix/memoization.scm \
  70. guix/utils.scm \
  71. guix/sets.scm \
  72. guix/modules.scm \
  73. guix/download.scm \
  74. guix/discovery.scm \
  75. guix/bzr-download.scm \
  76. guix/git-download.scm \
  77. guix/hg-download.scm \
  78. guix/swh.scm \
  79. guix/monads.scm \
  80. guix/monad-repl.scm \
  81. guix/gexp.scm \
  82. guix/profiles.scm \
  83. guix/serialization.scm \
  84. guix/nar.scm \
  85. guix/derivations.scm \
  86. guix/grafts.scm \
  87. guix/repl.scm \
  88. guix/inferior.scm \
  89. guix/describe.scm \
  90. guix/quirks.scm \
  91. guix/channels.scm \
  92. guix/gnu-maintenance.scm \
  93. guix/self.scm \
  94. guix/upstream.scm \
  95. guix/licenses.scm \
  96. guix/lint.scm \
  97. guix/glob.scm \
  98. guix/git.scm \
  99. guix/git-authenticate.scm \
  100. guix/graph.scm \
  101. guix/cache.scm \
  102. guix/cve.scm \
  103. guix/workers.scm \
  104. guix/zlib.scm \
  105. guix/lzlib.scm \
  106. guix/build-system.scm \
  107. guix/build-system/android-ndk.scm \
  108. guix/build-system/ant.scm \
  109. guix/build-system/cargo.scm \
  110. guix/build-system/clojure.scm \
  111. guix/build-system/cmake.scm \
  112. guix/build-system/dub.scm \
  113. guix/build-system/dune.scm \
  114. guix/build-system/emacs.scm \
  115. guix/build-system/font.scm \
  116. guix/build-system/go.scm \
  117. guix/build-system/meson.scm \
  118. guix/build-system/minify.scm \
  119. guix/build-system/asdf.scm \
  120. guix/build-system/copy.scm \
  121. guix/build-system/glib-or-gtk.scm \
  122. guix/build-system/gnu.scm \
  123. guix/build-system/guile.scm \
  124. guix/build-system/haskell.scm \
  125. guix/build-system/julia.scm \
  126. guix/build-system/linux-module.scm \
  127. guix/build-system/maven.scm \
  128. guix/build-system/node.scm \
  129. guix/build-system/perl.scm \
  130. guix/build-system/python.scm \
  131. guix/build-system/ocaml.scm \
  132. guix/build-system/qt.scm \
  133. guix/build-system/waf.scm \
  134. guix/build-system/r.scm \
  135. guix/build-system/rakudo.scm \
  136. guix/build-system/ruby.scm \
  137. guix/build-system/scons.scm \
  138. guix/build-system/texlive.scm \
  139. guix/build-system/trivial.scm \
  140. guix/ftp-client.scm \
  141. guix/http-client.scm \
  142. guix/gnupg.scm \
  143. guix/elf.scm \
  144. guix/profiling.scm \
  145. guix/store.scm \
  146. guix/cvs-download.scm \
  147. guix/svn-download.scm \
  148. guix/colors.scm \
  149. guix/i18n.scm \
  150. guix/diagnostics.scm \
  151. guix/ui.scm \
  152. guix/status.scm \
  153. guix/build/android-ndk-build-system.scm \
  154. guix/build/ant-build-system.scm \
  155. guix/build/download.scm \
  156. guix/build/download-nar.scm \
  157. guix/build/cargo-build-system.scm \
  158. guix/build/cargo-utils.scm \
  159. guix/build/cmake-build-system.scm \
  160. guix/build/dub-build-system.scm \
  161. guix/build/dune-build-system.scm \
  162. guix/build/emacs-build-system.scm \
  163. guix/build/meson-build-system.scm \
  164. guix/build/minify-build-system.scm \
  165. guix/build/font-build-system.scm \
  166. guix/build/go-build-system.scm \
  167. guix/build/asdf-build-system.scm \
  168. guix/build/bzr.scm \
  169. guix/build/copy-build-system.scm \
  170. guix/build/git.scm \
  171. guix/build/hg.scm \
  172. guix/build/glib-or-gtk-build-system.scm \
  173. guix/build/gnu-bootstrap.scm \
  174. guix/build/gnu-build-system.scm \
  175. guix/build/gnu-dist.scm \
  176. guix/build/guile-build-system.scm \
  177. guix/build/maven-build-system.scm \
  178. guix/build/node-build-system.scm \
  179. guix/build/perl-build-system.scm \
  180. guix/build/python-build-system.scm \
  181. guix/build/ocaml-build-system.scm \
  182. guix/build/qt-build-system.scm \
  183. guix/build/r-build-system.scm \
  184. guix/build/rakudo-build-system.scm \
  185. guix/build/ruby-build-system.scm \
  186. guix/build/scons-build-system.scm \
  187. guix/build/texlive-build-system.scm \
  188. guix/build/waf-build-system.scm \
  189. guix/build/haskell-build-system.scm \
  190. guix/build/julia-build-system.scm \
  191. guix/build/linux-module-build-system.scm \
  192. guix/build/store-copy.scm \
  193. guix/build/json.scm \
  194. guix/build/utils.scm \
  195. guix/build/union.scm \
  196. guix/build/profiles.scm \
  197. guix/build/compile.scm \
  198. guix/build/rpath.scm \
  199. guix/build/cvs.scm \
  200. guix/build/svn.scm \
  201. guix/build/syscalls.scm \
  202. guix/build/gremlin.scm \
  203. guix/build/debug-link.scm \
  204. guix/build/clojure-build-system.scm \
  205. guix/build/clojure-utils.scm \
  206. guix/build/emacs-utils.scm \
  207. guix/build/java-utils.scm \
  208. guix/build/lisp-utils.scm \
  209. guix/build/maven/java.scm \
  210. guix/build/maven/plugin.scm \
  211. guix/build/maven/pom.scm \
  212. guix/build/graft.scm \
  213. guix/build/bournish.scm \
  214. guix/build/qt-utils.scm \
  215. guix/build/make-bootstrap.scm \
  216. guix/search-paths.scm \
  217. guix/packages.scm \
  218. guix/import/cabal.scm \
  219. guix/import/cpan.scm \
  220. guix/import/cran.scm \
  221. guix/import/crate.scm \
  222. guix/import/elpa.scm \
  223. guix/import/gem.scm \
  224. guix/import/github.scm \
  225. guix/import/gnome.scm \
  226. guix/import/gnu.scm \
  227. guix/import/hackage.scm \
  228. guix/import/json.scm \
  229. guix/import/kde.scm \
  230. guix/import/launchpad.scm \
  231. guix/import/opam.scm \
  232. guix/import/print.scm \
  233. guix/import/pypi.scm \
  234. guix/import/snix.scm \
  235. guix/import/stackage.scm \
  236. guix/import/texlive.scm \
  237. guix/import/utils.scm \
  238. guix/scripts.scm \
  239. guix/scripts/download.scm \
  240. guix/scripts/perform-download.scm \
  241. guix/scripts/build.scm \
  242. guix/scripts/archive.scm \
  243. guix/scripts/import.scm \
  244. guix/scripts/package.scm \
  245. guix/scripts/install.scm \
  246. guix/scripts/remove.scm \
  247. guix/scripts/upgrade.scm \
  248. guix/scripts/search.scm \
  249. guix/scripts/show.scm \
  250. guix/scripts/gc.scm \
  251. guix/scripts/hash.scm \
  252. guix/scripts/pack.scm \
  253. guix/scripts/pull.scm \
  254. guix/scripts/processes.scm \
  255. guix/scripts/substitute.scm \
  256. guix/scripts/authenticate.scm \
  257. guix/scripts/refresh.scm \
  258. guix/scripts/repl.scm \
  259. guix/scripts/describe.scm \
  260. guix/scripts/system.scm \
  261. guix/scripts/system/search.scm \
  262. guix/scripts/system/reconfigure.scm \
  263. guix/scripts/lint.scm \
  264. guix/scripts/challenge.scm \
  265. guix/scripts/import/crate.scm \
  266. guix/scripts/import/cran.scm \
  267. guix/scripts/import/elpa.scm \
  268. guix/scripts/import/gem.scm \
  269. guix/scripts/import/gnu.scm \
  270. guix/scripts/import/hackage.scm \
  271. guix/scripts/import/json.scm \
  272. guix/scripts/import/nix.scm \
  273. guix/scripts/import/opam.scm \
  274. guix/scripts/import/pypi.scm \
  275. guix/scripts/import/stackage.scm \
  276. guix/scripts/import/texlive.scm \
  277. guix/scripts/environment.scm \
  278. guix/scripts/publish.scm \
  279. guix/scripts/edit.scm \
  280. guix/scripts/size.scm \
  281. guix/scripts/git.scm \
  282. guix/scripts/git/authenticate.scm \
  283. guix/scripts/graph.scm \
  284. guix/scripts/weather.scm \
  285. guix/scripts/container.scm \
  286. guix/scripts/container/exec.scm \
  287. guix/scripts/deploy.scm \
  288. guix/scripts/time-machine.scm \
  289. guix.scm \
  290. $(GNU_SYSTEM_MODULES)
  291. if HAVE_GUILE_SSH
  292. MODULES += \
  293. guix/ssh.scm \
  294. guix/remote.scm \
  295. guix/scripts/copy.scm \
  296. guix/store/ssh.scm
  297. endif HAVE_GUILE_SSH
  298. if BUILD_DAEMON_OFFLOAD
  299. MODULES += \
  300. guix/scripts/offload.scm
  301. endif BUILD_DAEMON_OFFLOAD
  302. # Scheme implementation of the build daemon and related functionality.
  303. STORE_MODULES = \
  304. guix/store/database.scm \
  305. guix/store/deduplication.scm \
  306. guix/store/roots.scm
  307. MODULES += $(STORE_MODULES)
  308. # Internal modules with test suite support.
  309. dist_noinst_DATA = \
  310. guix/tests.scm \
  311. guix/tests/http.scm \
  312. guix/tests/git.scm \
  313. guix/tests/gnupg.scm
  314. # Auxiliary files for packages.
  315. AUX_FILES = \
  316. gnu/packages/aux-files/chromium/master-preferences.json \
  317. gnu/packages/aux-files/emacs/guix-emacs.el \
  318. gnu/packages/aux-files/linux-libre/5.4-arm.conf \
  319. gnu/packages/aux-files/linux-libre/5.4-arm64.conf \
  320. gnu/packages/aux-files/linux-libre/5.4-i686.conf \
  321. gnu/packages/aux-files/linux-libre/5.4-x86_64.conf \
  322. gnu/packages/aux-files/linux-libre/4.19-arm.conf \
  323. gnu/packages/aux-files/linux-libre/4.19-arm64.conf \
  324. gnu/packages/aux-files/linux-libre/4.19-i686.conf \
  325. gnu/packages/aux-files/linux-libre/4.19-x86_64.conf \
  326. gnu/packages/aux-files/linux-libre/4.14-arm.conf \
  327. gnu/packages/aux-files/linux-libre/4.14-i686.conf \
  328. gnu/packages/aux-files/linux-libre/4.14-x86_64.conf \
  329. gnu/packages/aux-files/linux-libre/4.9-i686.conf \
  330. gnu/packages/aux-files/linux-libre/4.9-x86_64.conf \
  331. gnu/packages/aux-files/linux-libre/4.4-i686.conf \
  332. gnu/packages/aux-files/linux-libre/4.4-x86_64.conf \
  333. gnu/packages/aux-files/pack-audit.c \
  334. gnu/packages/aux-files/run-in-namespace.c
  335. # Templates, examples.
  336. EXAMPLES = \
  337. gnu/system/examples/asus-c201.tmpl \
  338. gnu/system/examples/bare-bones.tmpl \
  339. gnu/system/examples/bare-hurd.tmpl \
  340. gnu/system/examples/beaglebone-black.tmpl \
  341. gnu/system/examples/desktop.tmpl \
  342. gnu/system/examples/lightweight-desktop.tmpl \
  343. gnu/system/examples/docker-image.tmpl \
  344. gnu/system/examples/vm-image.tmpl
  345. GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go $(dist_noinst_DATA:%.scm=%.go)
  346. nobase_dist_guilemodule_DATA = \
  347. guix/store/schema.sql \
  348. $(MODULES) $(MODULES_NOT_COMPILED) $(AUX_FILES) $(EXAMPLES) \
  349. $(MISC_DISTRO_FILES)
  350. nobase_nodist_guilemodule_DATA = guix/config.scm
  351. nobase_nodist_guileobject_DATA = $(GOBJECTS)
  352. # Handy way to remove the .go files without removing all the rest.
  353. clean-go:
  354. -$(RM) -f $(GOBJECTS)
  355. @find . -path ./test-tmp -prune -o -name '*.go' -print | \
  356. if test -t 1; then \
  357. xargs -r echo -e "\033[31mwarning:\033[0m stray .go files:"; \
  358. else \
  359. xargs -r echo "warning: stray .go files:"; \
  360. fi
  361. # Test extensions; has to be unconditional.
  362. TEST_EXTENSIONS = .scm .sh
  363. if CAN_RUN_TESTS
  364. SCM_TESTS = \
  365. tests/accounts.scm \
  366. tests/base16.scm \
  367. tests/base32.scm \
  368. tests/base64.scm \
  369. tests/bournish.scm \
  370. tests/builders.scm \
  371. tests/build-utils.scm \
  372. tests/cache.scm \
  373. tests/challenge.scm \
  374. tests/channels.scm \
  375. tests/combinators.scm \
  376. tests/containers.scm \
  377. tests/cpan.scm \
  378. tests/cpio.scm \
  379. tests/cran.scm \
  380. tests/crate.scm \
  381. tests/cve.scm \
  382. tests/debug-link.scm \
  383. tests/derivations.scm \
  384. tests/discovery.scm \
  385. tests/elpa.scm \
  386. tests/file-systems.scm \
  387. tests/gem.scm \
  388. tests/gexp.scm \
  389. tests/git.scm \
  390. tests/git-authenticate.scm \
  391. tests/glob.scm \
  392. tests/gnu-maintenance.scm \
  393. tests/grafts.scm \
  394. tests/graph.scm \
  395. tests/gremlin.scm \
  396. tests/hackage.scm \
  397. tests/import-utils.scm \
  398. tests/inferior.scm \
  399. tests/lint.scm \
  400. tests/lzlib.scm \
  401. tests/modules.scm \
  402. tests/monads.scm \
  403. tests/nar.scm \
  404. tests/networking.scm \
  405. tests/opam.scm \
  406. tests/openpgp.scm \
  407. tests/packages.scm \
  408. tests/pack.scm \
  409. tests/pki.scm \
  410. tests/print.scm \
  411. tests/processes.scm \
  412. tests/profiles.scm \
  413. tests/publish.scm \
  414. tests/pypi.scm \
  415. tests/records.scm \
  416. tests/scripts.scm \
  417. tests/scripts-build.scm \
  418. tests/search-paths.scm \
  419. tests/services.scm \
  420. tests/services/linux.scm \
  421. tests/sets.scm \
  422. tests/size.scm \
  423. tests/snix.scm \
  424. tests/status.scm \
  425. tests/store-database.scm \
  426. tests/store-deduplication.scm \
  427. tests/store-roots.scm \
  428. tests/store.scm \
  429. tests/substitute.scm \
  430. tests/swh.scm \
  431. tests/syscalls.scm \
  432. tests/system.scm \
  433. tests/texlive.scm \
  434. tests/ui.scm \
  435. tests/union.scm \
  436. tests/upstream.scm \
  437. tests/utils.scm \
  438. tests/uuid.scm \
  439. tests/workers.scm \
  440. tests/zlib.scm
  441. SH_TESTS = \
  442. tests/guix-build.sh \
  443. tests/guix-build-branch.sh \
  444. tests/guix-download.sh \
  445. tests/guix-gc.sh \
  446. tests/guix-git-authenticate.sh \
  447. tests/guix-hash.sh \
  448. tests/guix-pack.sh \
  449. tests/guix-pack-localstatedir.sh \
  450. tests/guix-pack-relocatable.sh \
  451. tests/guix-package.sh \
  452. tests/guix-package-aliases.sh \
  453. tests/guix-package-net.sh \
  454. tests/guix-system.sh \
  455. tests/guix-archive.sh \
  456. tests/guix-authenticate.sh \
  457. tests/guix-environment.sh \
  458. tests/guix-environment-container.sh \
  459. tests/guix-graph.sh \
  460. tests/guix-describe.sh \
  461. tests/guix-repl.sh \
  462. tests/guix-lint.sh
  463. TESTS = $(SCM_TESTS) $(SH_TESTS)
  464. AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)" GUILE_AUTO_COMPILE=0
  465. SCM_LOG_DRIVER = \
  466. $(top_builddir)/test-env --quiet-stderr \
  467. $(GUILE) --no-auto-compile -e main \
  468. $(top_srcdir)/build-aux/test-driver.scm
  469. AM_SCM_LOG_DRIVER_FLAGS = --brief=yes
  470. SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
  471. AM_SH_LOG_FLAGS = -x -e
  472. # Make sure `tests/guix-gc.sh' runs last, after all the others. Otherwise it
  473. # could end up removing files from the store while they are being used by
  474. # other instances of the daemon.
  475. tests/guix-gc.log: \
  476. $(patsubst %.sh,%.log,$(filter-out tests/guix-gc.sh,$(SH_TESTS))) \
  477. $(SCM_TESTS:%.scm=%.log)
  478. else !CAN_RUN_TESTS
  479. TESTS =
  480. SH_TESTS =
  481. SCM_TESTS =
  482. # Automake always generates a 'check' target, so better not override it.
  483. check-local:
  484. @echo
  485. @echo "Cannot run tests because file name limits would be exceeded." >&2
  486. @echo "Look for 'length' in the 'config.log' file for details." >&2
  487. @echo
  488. @exit 1
  489. endif !CAN_RUN_TESTS
  490. check-system: $(GOBJECTS)
  491. $(AM_V_at)$(top_builddir)/pre-inst-env \
  492. guix build -m $(top_srcdir)/etc/system-tests.scm -K
  493. # Public keys used to sign substitutes.
  494. dist_pkgdata_DATA = \
  495. etc/substitutes/berlin.guix.gnu.org.pub \
  496. etc/substitutes/ci.guix.gnu.org.pub \
  497. etc/substitutes/ci.guix.info.pub
  498. # Bash completion file.
  499. dist_bashcompletion_DATA = etc/completion/bash/guix \
  500. etc/completion/bash/guix-daemon
  501. # Zsh completion file.
  502. dist_zshcompletion_DATA = etc/completion/zsh/_guix
  503. # Fish completion file.
  504. dist_fishcompletion_DATA = etc/completion/fish/guix.fish
  505. # SELinux policy
  506. dist_selinux_policy_DATA = etc/guix-daemon.cil
  507. EXTRA_DIST += \
  508. HACKING \
  509. ROADMAP \
  510. TODO \
  511. CODE-OF-CONDUCT \
  512. .dir-locals.el \
  513. .guix-channel \
  514. scripts/guix.in \
  515. etc/guix-install.sh \
  516. etc/news.scm \
  517. etc/release-manifest.scm \
  518. etc/system-tests.scm \
  519. etc/historical-authorizations \
  520. build-aux/build-self.scm \
  521. build-aux/compile-all.scm \
  522. build-aux/hydra/evaluate.scm \
  523. build-aux/hydra/gnu-system.scm \
  524. build-aux/hydra/guix.scm \
  525. build-aux/hydra/guix-modular.scm \
  526. build-aux/cuirass/gnu-system.scm \
  527. build-aux/cuirass/guix-modular.scm \
  528. build-aux/cuirass/hydra-to-cuirass.scm \
  529. build-aux/check-final-inputs-self-contained.scm \
  530. build-aux/check-channel-news.scm \
  531. build-aux/compile-as-derivation.scm \
  532. build-aux/generate-authors.scm \
  533. build-aux/test-driver.scm \
  534. build-aux/update-guix-package.scm \
  535. build-aux/update-NEWS.scm \
  536. d3.v3.js \
  537. graph.js \
  538. tests/test.drv \
  539. tests/signing-key.pub \
  540. tests/signing-key.sec \
  541. tests/cve-sample.json \
  542. tests/civodul.key \
  543. tests/rsa.key \
  544. tests/dsa.key \
  545. tests/ed25519.key \
  546. tests/ed25519.sec \
  547. tests/ed25519bis.key \
  548. tests/ed25519bis.sec \
  549. build-aux/config.rpath \
  550. bootstrap \
  551. doc/build.scm \
  552. $(TESTS)
  553. if !BUILD_DAEMON_OFFLOAD
  554. EXTRA_DIST += \
  555. guix/scripts/offload.scm
  556. endif !BUILD_DAEMON_OFFLOAD
  557. CLEANFILES = \
  558. $(bin_SCRIPTS) \
  559. $(GOBJECTS) \
  560. $(SCM_TESTS:tests/%.scm=%.log)
  561. # Unset 'GUILE_LOAD_COMPILED_PATH' altogether while compiling. Otherwise, if
  562. # $GUILE_LOAD_COMPILED_PATH contains $(moduledir), we may find .go files in
  563. # there that are newer than the local .scm files (for instance because the
  564. # user ran 'make install' recently). When that happens, we end up loading
  565. # those previously-installed .go files, which may be stale, thereby breaking
  566. # the whole thing. Likewise, set 'XDG_CACHE_HOME' to avoid loading possibly
  567. # stale files from ~/.cache/guile/ccache.
  568. %.go: make-go ; @:
  569. make-go: $(MODULES) guix/config.scm $(dist_noinst_DATA)
  570. $(AM_V_at)echo "Compiling Scheme modules..." ; \
  571. unset GUILE_LOAD_COMPILED_PATH ; \
  572. XDG_CACHE_HOME=/nowhere \
  573. host=$(host) srcdir="$(top_srcdir)" \
  574. $(top_builddir)/pre-inst-env \
  575. $(GUILE) -L "$(top_builddir)" -L "$(top_srcdir)" \
  576. --no-auto-compile \
  577. -s "$(top_srcdir)"/build-aux/compile-all.scm $^
  578. SUFFIXES = .go
  579. # Make sure source files are installed first, so that the mtime of
  580. # installed compiled files is greater than that of installed source
  581. # files. See
  582. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  583. # for details.
  584. guix_install_go_files = install-nobase_nodist_guileobjectDATA
  585. $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
  586. # The above trick doesn't work for 'config.go' because both 'config.scm' and
  587. # 'config.go' are listed in $(nobase_nodist_guileobject_DATA). Thus, give it
  588. # special treatment.
  589. install-data-hook:
  590. touch "$(DESTDIR)$(guileobjectdir)/guix/config.go"
  591. # Commit corresponding to the 'v1.0.0' tag.
  592. commit_v1_0_0 = 6298c3ffd9654d3231a6f25390b056483e8f407c
  593. # Introduction of the 'guix' channel. Keep in sync with (guix channels)!
  594. channel_intro_commit = 9edb3f66fd807b096b48283debdcddccfea34bad
  595. channel_intro_signer = BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA
  596. # Authenticate the current Git checkout by checking signatures on every commit
  597. # starting from $(commit_v1_0_0).
  598. authenticate: guix/openpgp.go guix/git-authenticate.go guix/git.go
  599. $(AM_V_at)echo "Authenticating Git checkout..." ; \
  600. "$(top_builddir)/pre-inst-env" guix git authenticate \
  601. --cache-key=channels/guix --stats \
  602. "$(channel_intro_commit)" "$(channel_intro_signer)"
  603. # Assuming Guix is already installed and the daemon is up and running, this
  604. # rule builds from $(srcdir), creating and building derivations.
  605. as-derivation:
  606. $(AM_V_at)echo "Building Guix in Guix..." ; \
  607. $(GUILE) --no-auto-compile \
  608. "$(top_srcdir)/build-aux/compile-as-derivation.scm" \
  609. "$(abs_top_srcdir)"
  610. SUBDIRS = po/guix po/packages
  611. BUILT_SOURCES =
  612. include doc/local.mk
  613. if BUILD_DAEMON
  614. include nix/local.mk
  615. endif BUILD_DAEMON
  616. ACLOCAL_AMFLAGS = -I m4
  617. # Pass an explicit '--localstatedir' so that configure does not error out if
  618. # it finds an existing installation with a different localstatedir. Inherit
  619. # 'ac_cv_guix_test_root' so that "make check" in $(distdir) does not have to
  620. # repopulate the whole store, and to make sure $(GUIX_TEST_ROOT) is short
  621. # enough for shebangs.
  622. AM_DISTCHECK_CONFIGURE_FLAGS = \
  623. --localstatedir="$$dc_install_base/var" \
  624. --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
  625. --with-libgcrypt-libdir="$(LIBGCRYPT_LIBDIR)" \
  626. --with-nix-prefix="$(NIX_PREFIX)" \
  627. --enable-daemon \
  628. ac_cv_guix_test_root="$(GUIX_TEST_ROOT)"
  629. # Name of the 'guix' package shipped in the binary tarball.
  630. GUIX_FOR_BINARY_TARBALL = guile3.0-guix
  631. # The self-contained tarball.
  632. guix-binary.%.tar.xz:
  633. $(AM_V_GEN)GUIX_PACKAGE_PATH= \
  634. tarball=`$(top_builddir)/pre-inst-env guix pack -C xz \
  635. --fallback \
  636. -s "$*" --localstatedir --profile-name=current-guix \
  637. $(GUIX_FOR_BINARY_TARBALL)` ; \
  638. cp "$$tarball" "$@.tmp" ; mv "$@.tmp" "$@"
  639. dist-hook: gen-ChangeLog gen-AUTHORS gen-tarball-version
  640. dist-hook: assert-no-store-file-names
  641. dist-hook: doc-po-update
  642. distcheck-hook: assert-binaries-available assert-final-inputs-self-contained
  643. EXTRA_DIST += $(top_srcdir)/.version
  644. BUILT_SOURCES += $(top_srcdir)/.version
  645. $(top_srcdir)/.version:
  646. echo $(VERSION) > "$@-t" && mv "$@-t" "$@"
  647. gen-tarball-version:
  648. echo $(VERSION) > "$(distdir)/.tarball-version"
  649. gen-ChangeLog:
  650. $(AM_V_GEN)if test -d .git; then \
  651. $(top_srcdir)/build-aux/gitlog-to-changelog \
  652. > $(distdir)/ChangeLog.tmp; \
  653. rm -f $(distdir)/ChangeLog; \
  654. mv $(distdir)/ChangeLog.tmp $(distdir)/ChangeLog; \
  655. fi
  656. gen-AUTHORS:
  657. $(AM_V_GEN)if test -d .git; then \
  658. rm -f "$(distdir)/AUTHORS"; \
  659. $(top_builddir)/pre-inst-env "$(GUILE)" \
  660. "$(top_srcdir)/build-aux/generate-authors.scm" \
  661. "$(top_srcdir)" "$(distdir)/AUTHORS"; \
  662. fi
  663. # Like 'dist', but regenerate 'configure' so we get an up-to-date
  664. # 'PACKAGE_VERSION' string. (In Gnulib, 'GNUmakefile' has a special trick to
  665. # do that whenever a 'dist' target is used.)
  666. dist-with-updated-version:
  667. @echo "Running './bootstrap' for new version string..."
  668. $(top_srcdir)/bootstrap
  669. $(MAKE) $(AM_MAKEFLAGS) $(top_srcdir)/.version dist
  670. .PHONY: dist-with-updated-version
  671. #
  672. # Release management.
  673. #
  674. releasedir = release-$(PACKAGE_VERSION)
  675. PACKAGE_FULL_TARNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
  676. # List of source tarballs produced. This must be kept in sync with the
  677. # 'dist-' options of 'AM_INIT_AUTOMAKE' in 'configure.ac'.
  678. SOURCE_TARBALLS = \
  679. $(foreach ext,tar.gz,$(PACKAGE_FULL_TARNAME).$(ext))
  680. # Systems supported by Guix.
  681. SUPPORTED_SYSTEMS ?= x86_64-linux i686-linux armhf-linux aarch64-linux
  682. # Guix binary tarballs.
  683. BINARY_TARBALLS = \
  684. $(foreach system,$(SUPPORTED_SYSTEMS),guix-binary.$(system).tar.xz)
  685. # Systems supported by Guix System.
  686. GUIX_SYSTEM_SUPPORTED_SYSTEMS ?= x86_64-linux i686-linux
  687. # Systems for which we build Guix VMs.
  688. GUIX_SYSTEM_VM_SYSTEMS ?= x86_64-linux
  689. # Prefix of the Guix installation image file name.
  690. GUIX_SYSTEM_IMAGE_BASE = guix-system-install-$(PACKAGE_VERSION)
  691. # Prefix of the Guix VM image file name.
  692. GUIX_SYSTEM_VM_IMAGE_BASE = guix-system-vm-image-$(PACKAGE_VERSION)
  693. # Flags for 'guix system vm-image'. By default create a VM image that appears
  694. # to have a 20G hard disk.
  695. GUIX_SYSTEM_VM_IMAGE_FLAGS ?= --image-size=30G
  696. # Return the sequence of '-s' flags for the given systems.
  697. system_flags = $(foreach system,$(1),-s $(system))
  698. # The release process works in several phases:
  699. #
  700. # 0. We assume the developer created a 'vX.Y' tag.
  701. # 1. Build the source tarball.
  702. # 2. Update the 'guix' package so that it corresponds to the 'vX.Y' tag.
  703. # 3. Build the binary tarballs for that 'guix' package.
  704. # 4. Update the 'guix' package again.
  705. # 5. Build the installation images. The images will run 'guix'
  706. # corresponding to 'vX.Y' + 1 commit, and they will install 'vX.Y'.
  707. #
  708. # This 'release' target takes care of everything and copies the resulting
  709. # files to $(releasedir).
  710. #
  711. # XXX: Depend on 'dist' rather than 'distcheck' to work around the Gettext
  712. # issue described at <https://savannah.gnu.org/bugs/index.php?51027>.
  713. release: dist-with-updated-version
  714. cd po; git checkout .
  715. @if ! git diff-index --quiet HEAD; then \
  716. echo "There are uncommitted changes; stopping." >&2 ; \
  717. exit 1 ; \
  718. fi
  719. $(MKDIR_P) "$(releasedir)"
  720. rm -f "$(releasedir)"/*
  721. mv $(SOURCE_TARBALLS) "$(releasedir)"
  722. $(top_builddir)/pre-inst-env "$(GUILE)" \
  723. $(top_srcdir)/build-aux/update-guix-package.scm \
  724. "`git rev-parse HEAD`" "$(PACKAGE_VERSION)"
  725. git add $(top_srcdir)/gnu/packages/package-management.scm
  726. git commit -m "gnu: guix: Update to $(PACKAGE_VERSION)."
  727. $(top_builddir)/pre-inst-env guix build $(GUIX_FOR_BINARY_TARBALL) \
  728. $(call system_flags,$(SUPPORTED_SYSTEMS)) \
  729. -v1 --no-grafts --fallback
  730. rm -f $(BINARY_TARBALLS)
  731. $(MAKE) $(BINARY_TARBALLS)
  732. for system in $(SUPPORTED_SYSTEMS) ; do \
  733. mv "guix-binary.$$system.tar.xz" \
  734. "$(releasedir)/guix-binary-$(PACKAGE_VERSION).$$system.tar.xz" ; \
  735. done
  736. $(top_builddir)/pre-inst-env "$(GUILE)" \
  737. $(top_srcdir)/build-aux/update-guix-package.scm \
  738. "`git rev-parse HEAD`"
  739. git add $(top_srcdir)/gnu/packages/package-management.scm
  740. git commit -m "gnu: guix: Update to `git rev-parse HEAD | cut -c1-7`."
  741. $(top_builddir)/pre-inst-env guix build guix \
  742. $(call system_flags,$(GUIX_SYSTEM_SUPPORTED_SYSTEMS)) \
  743. -v1 --no-grafts --fallback
  744. for system in $(GUIX_SYSTEM_SUPPORTED_SYSTEMS) ; do \
  745. image=`$(top_builddir)/pre-inst-env \
  746. guix system disk-image \
  747. --file-system-type=iso9660 \
  748. --system=$$system --fallback \
  749. gnu/system/install.scm` ; \
  750. if [ ! -f "$$image" ] ; then \
  751. echo "failed to produced Guix installation image for $$system" >&2 ; \
  752. exit 1 ; \
  753. fi ; \
  754. xz < "$$image" > "$(releasedir)/$(GUIX_SYSTEM_IMAGE_BASE).$$system.iso.xz.tmp" ; \
  755. mv "$(releasedir)/$(GUIX_SYSTEM_IMAGE_BASE).$$system.iso.xz.tmp" \
  756. "$(releasedir)/$(GUIX_SYSTEM_IMAGE_BASE).$$system.iso.xz" ; \
  757. done
  758. for system in $(GUIX_SYSTEM_VM_SYSTEMS) ; do \
  759. image=`$(top_builddir)/pre-inst-env \
  760. guix system vm-image $(GUIX_SYSTEM_VM_IMAGE_FLAGS) \
  761. --save-provenance \
  762. --system=$$system --fallback \
  763. gnu/system/examples/vm-image.tmpl` ; \
  764. if [ ! -f "$$image" ] ; then \
  765. echo "failed to produced Guix VM image for $$system" >&2 ; \
  766. exit 1 ; \
  767. fi ; \
  768. xz < "$$image" > "$(releasedir)/$(GUIX_SYSTEM_VM_IMAGE_BASE).$$system.xz.tmp" ; \
  769. mv "$(releasedir)/$(GUIX_SYSTEM_VM_IMAGE_BASE).$$system.xz.tmp" \
  770. "$(releasedir)/$(GUIX_SYSTEM_VM_IMAGE_BASE).$$system.xz" ; \
  771. done
  772. @echo
  773. @echo "Congratulations! All the release files are now in $(releasedir)."
  774. @echo
  775. update-guix-package:
  776. git rev-parse HEAD
  777. $(top_builddir)/pre-inst-env "$(GUILE)" \
  778. $(top_srcdir)/build-aux/update-guix-package.scm \
  779. "`git rev-parse HEAD`"
  780. # Location of a checkout of <git://git.savannah.gnu.org/guix/maintenance.git>.
  781. # Package data from this checkout is used by 'update-NEWS.scm'.
  782. GUIX_MAINTENANCE_DIRECTORY ?= $(top_srcdir)/../guix-maintenance
  783. update-NEWS: $(GOBJECTS)
  784. $(top_builddir)/pre-inst-env "$(GUILE)" \
  785. $(top_srcdir)/build-aux/update-NEWS.scm \
  786. $(top_srcdir)/NEWS "$(GUIX_MAINTENANCE_DIRECTORY)/data"
  787. # Make sure we're not shipping a file that embeds a local /gnu/store file name.
  788. assert-no-store-file-names:
  789. $(AM_V_at)if grep -r --exclude=*.texi --exclude=*.info \
  790. --exclude=*.info-[0-9] --exclude=*.dot \
  791. --exclude=*.eps --exclude-dir=bootstrap \
  792. --exclude=guix-manual.pot --exclude=guix-manual.*.po \
  793. --exclude=guix-cookbook.pot --exclude=guix-cookbook.*.po \
  794. --exclude=guix-prettify.el \
  795. --exclude=ChangeLog* \
  796. --exclude=binutils-boot-2.20*.patch \
  797. -E "$(storedir)/[a-z0-9]{32}-" $(distdir) ; \
  798. then \
  799. echo "error: store file names embedded in the distribution" >&2 ; \
  800. exit 1 ; \
  801. fi
  802. # Make sure important substitutes are available.
  803. assert-binaries-available: $(GOBJECTS)
  804. $(AM_V_at)$(top_builddir)/pre-inst-env \
  805. guix weather -m "$(top_srcdir)/etc/release-manifest.scm" \
  806. --display-missing
  807. # Make sure the final inputs don't refer to bootstrap tools.
  808. assert-final-inputs-self-contained: $(GOBJECTS)
  809. $(AM_V_at)$(top_builddir)/pre-inst-env "$(GUILE)" \
  810. "$(top_srcdir)/build-aux/check-final-inputs-self-contained.scm"
  811. # Validate channel news.
  812. check-channel-news: $(GOBJECTS)
  813. $(AM_V_at)$(top_builddir)/pre-inst-env "$(GUILE)" \
  814. "$(top_srcdir)/build-aux/check-channel-news.scm"
  815. # Compute the Hydra jobs and write them in the target file.
  816. hydra-jobs.scm: $(GOBJECTS)
  817. $(AM_V_at)$(MKDIR_P) "`dirname "$@"`"
  818. $(AM_V_GEN)$(top_builddir)/pre-inst-env "$(GUILE)" \
  819. "$(top_srcdir)/build-aux/hydra/evaluate.scm" \
  820. "$(top_srcdir)/build-aux/hydra/gnu-system.scm" > "$@.tmp"
  821. $(AM_V_at)mv "$@.tmp" "$@"
  822. # Compute the Cuirass jobs and write them in the target file.
  823. cuirass-jobs.scm: $(GOBJECTS)
  824. $(AM_V_at)$(MKDIR_P) "`dirname "$@"`"
  825. $(AM_V_GEN)$(top_builddir)/pre-inst-env "$(GUILE)" \
  826. "$(top_srcdir)/build-aux/hydra/evaluate.scm" \
  827. "$(top_srcdir)/build-aux/cuirass/gnu-system.scm" \
  828. cuirass > "$@.tmp"
  829. $(AM_V_at)mv "$@.tmp" "$@"
  830. .PHONY: gen-ChangeLog gen-AUTHORS gen-tarball-version
  831. .PHONY: assert-no-store-file-names assert-binaries-available
  832. .PHONY: assert-final-inputs-self-contained check-channel-news
  833. .PHONY: clean-go make-go as-derivation authenticate
  834. .PHONY: update-guix-package update-NEWS release
  835. # Downloading up-to-date PO files.
  836. # make-download-po-rule DOMAIN DIRECTORY [FILE-NAME-PREFIX]
  837. define make-download-po-rule
  838. download-po.$(1):
  839. if [ -f "$(top_srcdir)/$(2)/LINGUAS" ]; then \
  840. LINGUAS="`grep -v '^[[:blank:]]*#' < $(top_srcdir)/$(2)/LINGUAS`" ; \
  841. else \
  842. LINGUAS="`(cd $(top_srcdir)/$(2); \
  843. for i in *.po; do echo $$$$i; done) | cut -d . -f 2`" ; \
  844. fi ; \
  845. for lang in $$$$LINGUAS; do \
  846. if wget -nv -O "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" \
  847. "https://translationproject.org/latest/$(1)/$$$$lang.po" ; \
  848. then \
  849. mv "$(top_srcdir)/$(2)/$(3)$$$$lang.po"{.tmp,} ; \
  850. else \
  851. rm "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" ; \
  852. fi ; \
  853. done
  854. .PHONY: download-po.$(1)
  855. endef
  856. $(eval $(call make-download-po-rule,guix,po/guix))
  857. $(eval $(call make-download-po-rule,guix-packages,po/packages))
  858. $(eval $(call make-download-po-rule,guix-manual,po/doc,guix-manual.))
  859. download-po: $(foreach domain,guix guix-packages guix-manual,download-po.$(domain))
  860. .PHONY: download-po
  861. ## -------------- ##
  862. ## Silent rules. ##
  863. ## -------------- ##
  864. AM_V_DL = $(AM_V_DL_$(V))
  865. AM_V_DL_ = $(AM_V_DL_$(AM_DEFAULT_VERBOSITY))
  866. AM_V_DL_0 = @echo " DL " $@;
  867. AM_V_DOT = $(AM_V_DOT_$(V))
  868. AM_V_DOT_ = $(AM_V_DOT_$(AM_DEFAULT_VERBOSITY))
  869. AM_V_DOT_0 = @echo " DOT " $@;
  870. AM_V_HELP2MAN = $(AM_V_HELP2MAN_$(V))
  871. AM_V_HELP2MAN_ = $(AM_V_HELP2MAN_$(AM_DEFAULT_VERBOSITY))
  872. AM_V_HELP2MAN_0 = @echo " HELP2MAN" $@;
  873. AM_V_PO4A = $(AM_V_PO4A_$(V))
  874. AM_V_PO4A_ = $(AM_V_PO4A_$(AM_DEFAULT_VERBOSITY))
  875. AM_V_PO4A_0 = @echo " PO4A" $@;
  876. AM_V_POXREF = $(AM_V_POXREF_$(V))
  877. AM_V_POXREF_ = $(AM_V_POXREF_$(AM_DEFAULT_VERBOSITY))
  878. AM_V_POXREF_0 = @echo " POXREF" $@;