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.

985 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>
1 year 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/node.scm \
  128. guix/build-system/perl.scm \
  129. guix/build-system/python.scm \
  130. guix/build-system/ocaml.scm \
  131. guix/build-system/qt.scm \
  132. guix/build-system/waf.scm \
  133. guix/build-system/r.scm \
  134. guix/build-system/rakudo.scm \
  135. guix/build-system/ruby.scm \
  136. guix/build-system/scons.scm \
  137. guix/build-system/texlive.scm \
  138. guix/build-system/trivial.scm \
  139. guix/ftp-client.scm \
  140. guix/http-client.scm \
  141. guix/gnupg.scm \
  142. guix/elf.scm \
  143. guix/profiling.scm \
  144. guix/store.scm \
  145. guix/cvs-download.scm \
  146. guix/svn-download.scm \
  147. guix/colors.scm \
  148. guix/i18n.scm \
  149. guix/diagnostics.scm \
  150. guix/ui.scm \
  151. guix/status.scm \
  152. guix/build/android-ndk-build-system.scm \
  153. guix/build/ant-build-system.scm \
  154. guix/build/download.scm \
  155. guix/build/download-nar.scm \
  156. guix/build/cargo-build-system.scm \
  157. guix/build/cargo-utils.scm \
  158. guix/build/cmake-build-system.scm \
  159. guix/build/dub-build-system.scm \
  160. guix/build/dune-build-system.scm \
  161. guix/build/emacs-build-system.scm \
  162. guix/build/meson-build-system.scm \
  163. guix/build/minify-build-system.scm \
  164. guix/build/font-build-system.scm \
  165. guix/build/go-build-system.scm \
  166. guix/build/asdf-build-system.scm \
  167. guix/build/bzr.scm \
  168. guix/build/copy-build-system.scm \
  169. guix/build/git.scm \
  170. guix/build/hg.scm \
  171. guix/build/glib-or-gtk-build-system.scm \
  172. guix/build/gnu-bootstrap.scm \
  173. guix/build/gnu-build-system.scm \
  174. guix/build/gnu-dist.scm \
  175. guix/build/guile-build-system.scm \
  176. guix/build/node-build-system.scm \
  177. guix/build/perl-build-system.scm \
  178. guix/build/python-build-system.scm \
  179. guix/build/ocaml-build-system.scm \
  180. guix/build/qt-build-system.scm \
  181. guix/build/r-build-system.scm \
  182. guix/build/rakudo-build-system.scm \
  183. guix/build/ruby-build-system.scm \
  184. guix/build/scons-build-system.scm \
  185. guix/build/texlive-build-system.scm \
  186. guix/build/waf-build-system.scm \
  187. guix/build/haskell-build-system.scm \
  188. guix/build/julia-build-system.scm \
  189. guix/build/linux-module-build-system.scm \
  190. guix/build/store-copy.scm \
  191. guix/build/json.scm \
  192. guix/build/utils.scm \
  193. guix/build/union.scm \
  194. guix/build/profiles.scm \
  195. guix/build/compile.scm \
  196. guix/build/rpath.scm \
  197. guix/build/cvs.scm \
  198. guix/build/svn.scm \
  199. guix/build/syscalls.scm \
  200. guix/build/gremlin.scm \
  201. guix/build/debug-link.scm \
  202. guix/build/clojure-build-system.scm \
  203. guix/build/clojure-utils.scm \
  204. guix/build/emacs-utils.scm \
  205. guix/build/java-utils.scm \
  206. guix/build/lisp-utils.scm \
  207. guix/build/graft.scm \
  208. guix/build/bournish.scm \
  209. guix/build/qt-utils.scm \
  210. guix/build/make-bootstrap.scm \
  211. guix/search-paths.scm \
  212. guix/packages.scm \
  213. guix/import/cabal.scm \
  214. guix/import/cpan.scm \
  215. guix/import/cran.scm \
  216. guix/import/crate.scm \
  217. guix/import/elpa.scm \
  218. guix/import/gem.scm \
  219. guix/import/github.scm \
  220. guix/import/gnome.scm \
  221. guix/import/gnu.scm \
  222. guix/import/hackage.scm \
  223. guix/import/json.scm \
  224. guix/import/kde.scm \
  225. guix/import/launchpad.scm \
  226. guix/import/opam.scm \
  227. guix/import/print.scm \
  228. guix/import/pypi.scm \
  229. guix/import/snix.scm \
  230. guix/import/stackage.scm \
  231. guix/import/texlive.scm \
  232. guix/import/utils.scm \
  233. guix/scripts.scm \
  234. guix/scripts/download.scm \
  235. guix/scripts/perform-download.scm \
  236. guix/scripts/build.scm \
  237. guix/scripts/archive.scm \
  238. guix/scripts/import.scm \
  239. guix/scripts/package.scm \
  240. guix/scripts/install.scm \
  241. guix/scripts/remove.scm \
  242. guix/scripts/upgrade.scm \
  243. guix/scripts/search.scm \
  244. guix/scripts/show.scm \
  245. guix/scripts/gc.scm \
  246. guix/scripts/hash.scm \
  247. guix/scripts/pack.scm \
  248. guix/scripts/pull.scm \
  249. guix/scripts/processes.scm \
  250. guix/scripts/substitute.scm \
  251. guix/scripts/authenticate.scm \
  252. guix/scripts/refresh.scm \
  253. guix/scripts/repl.scm \
  254. guix/scripts/describe.scm \
  255. guix/scripts/system.scm \
  256. guix/scripts/system/search.scm \
  257. guix/scripts/system/reconfigure.scm \
  258. guix/scripts/lint.scm \
  259. guix/scripts/challenge.scm \
  260. guix/scripts/import/crate.scm \
  261. guix/scripts/import/cran.scm \
  262. guix/scripts/import/elpa.scm \
  263. guix/scripts/import/gem.scm \
  264. guix/scripts/import/gnu.scm \
  265. guix/scripts/import/hackage.scm \
  266. guix/scripts/import/json.scm \
  267. guix/scripts/import/nix.scm \
  268. guix/scripts/import/opam.scm \
  269. guix/scripts/import/pypi.scm \
  270. guix/scripts/import/stackage.scm \
  271. guix/scripts/import/texlive.scm \
  272. guix/scripts/environment.scm \
  273. guix/scripts/publish.scm \
  274. guix/scripts/edit.scm \
  275. guix/scripts/size.scm \
  276. guix/scripts/git.scm \
  277. guix/scripts/git/authenticate.scm \
  278. guix/scripts/graph.scm \
  279. guix/scripts/weather.scm \
  280. guix/scripts/container.scm \
  281. guix/scripts/container/exec.scm \
  282. guix/scripts/deploy.scm \
  283. guix/scripts/time-machine.scm \
  284. guix.scm \
  285. $(GNU_SYSTEM_MODULES)
  286. if HAVE_GUILE_SSH
  287. MODULES += \
  288. guix/ssh.scm \
  289. guix/remote.scm \
  290. guix/scripts/copy.scm \
  291. guix/store/ssh.scm
  292. endif HAVE_GUILE_SSH
  293. if BUILD_DAEMON_OFFLOAD
  294. MODULES += \
  295. guix/scripts/offload.scm
  296. endif BUILD_DAEMON_OFFLOAD
  297. # Scheme implementation of the build daemon and related functionality.
  298. STORE_MODULES = \
  299. guix/store/database.scm \
  300. guix/store/deduplication.scm \
  301. guix/store/roots.scm
  302. MODULES += $(STORE_MODULES)
  303. # Internal modules with test suite support.
  304. dist_noinst_DATA = \
  305. guix/tests.scm \
  306. guix/tests/http.scm \
  307. guix/tests/git.scm \
  308. guix/tests/gnupg.scm
  309. # Auxiliary files for packages.
  310. AUX_FILES = \
  311. gnu/packages/aux-files/chromium/master-preferences.json \
  312. gnu/packages/aux-files/emacs/guix-emacs.el \
  313. gnu/packages/aux-files/linux-libre/5.4-arm.conf \
  314. gnu/packages/aux-files/linux-libre/5.4-arm64.conf \
  315. gnu/packages/aux-files/linux-libre/5.4-i686.conf \
  316. gnu/packages/aux-files/linux-libre/5.4-x86_64.conf \
  317. gnu/packages/aux-files/linux-libre/4.19-arm.conf \
  318. gnu/packages/aux-files/linux-libre/4.19-arm64.conf \
  319. gnu/packages/aux-files/linux-libre/4.19-i686.conf \
  320. gnu/packages/aux-files/linux-libre/4.19-x86_64.conf \
  321. gnu/packages/aux-files/linux-libre/4.14-arm.conf \
  322. gnu/packages/aux-files/linux-libre/4.14-i686.conf \
  323. gnu/packages/aux-files/linux-libre/4.14-x86_64.conf \
  324. gnu/packages/aux-files/linux-libre/4.9-i686.conf \
  325. gnu/packages/aux-files/linux-libre/4.9-x86_64.conf \
  326. gnu/packages/aux-files/linux-libre/4.4-i686.conf \
  327. gnu/packages/aux-files/linux-libre/4.4-x86_64.conf \
  328. gnu/packages/aux-files/pack-audit.c \
  329. gnu/packages/aux-files/run-in-namespace.c
  330. # Templates, examples.
  331. EXAMPLES = \
  332. gnu/system/examples/asus-c201.tmpl \
  333. gnu/system/examples/bare-bones.tmpl \
  334. gnu/system/examples/bare-hurd.tmpl \
  335. gnu/system/examples/beaglebone-black.tmpl \
  336. gnu/system/examples/desktop.tmpl \
  337. gnu/system/examples/lightweight-desktop.tmpl \
  338. gnu/system/examples/docker-image.tmpl \
  339. gnu/system/examples/vm-image.tmpl
  340. GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go $(dist_noinst_DATA:%.scm=%.go)
  341. nobase_dist_guilemodule_DATA = \
  342. guix/store/schema.sql \
  343. $(MODULES) $(MODULES_NOT_COMPILED) $(AUX_FILES) $(EXAMPLES) \
  344. $(MISC_DISTRO_FILES)
  345. nobase_nodist_guilemodule_DATA = guix/config.scm
  346. nobase_nodist_guileobject_DATA = $(GOBJECTS)
  347. # Handy way to remove the .go files without removing all the rest.
  348. clean-go:
  349. -$(RM) -f $(GOBJECTS)
  350. @find . -path ./test-tmp -prune -o -name '*.go' -print | \
  351. if test -t 1; then \
  352. xargs -r echo -e "\033[31mwarning:\033[0m stray .go files:"; \
  353. else \
  354. xargs -r echo "warning: stray .go files:"; \
  355. fi
  356. # Test extensions; has to be unconditional.
  357. TEST_EXTENSIONS = .scm .sh
  358. if CAN_RUN_TESTS
  359. SCM_TESTS = \
  360. tests/accounts.scm \
  361. tests/base16.scm \
  362. tests/base32.scm \
  363. tests/base64.scm \
  364. tests/bournish.scm \
  365. tests/builders.scm \
  366. tests/build-utils.scm \
  367. tests/cache.scm \
  368. tests/challenge.scm \
  369. tests/channels.scm \
  370. tests/combinators.scm \
  371. tests/containers.scm \
  372. tests/cpan.scm \
  373. tests/cpio.scm \
  374. tests/cran.scm \
  375. tests/crate.scm \
  376. tests/cve.scm \
  377. tests/debug-link.scm \
  378. tests/derivations.scm \
  379. tests/discovery.scm \
  380. tests/elpa.scm \
  381. tests/file-systems.scm \
  382. tests/gem.scm \
  383. tests/gexp.scm \
  384. tests/git.scm \
  385. tests/git-authenticate.scm \
  386. tests/glob.scm \
  387. tests/gnu-maintenance.scm \
  388. tests/grafts.scm \
  389. tests/graph.scm \
  390. tests/gremlin.scm \
  391. tests/hackage.scm \
  392. tests/import-utils.scm \
  393. tests/inferior.scm \
  394. tests/lint.scm \
  395. tests/lzlib.scm \
  396. tests/modules.scm \
  397. tests/monads.scm \
  398. tests/nar.scm \
  399. tests/networking.scm \
  400. tests/opam.scm \
  401. tests/openpgp.scm \
  402. tests/packages.scm \
  403. tests/pack.scm \
  404. tests/pki.scm \
  405. tests/print.scm \
  406. tests/processes.scm \
  407. tests/profiles.scm \
  408. tests/publish.scm \
  409. tests/pypi.scm \
  410. tests/records.scm \
  411. tests/scripts.scm \
  412. tests/scripts-build.scm \
  413. tests/search-paths.scm \
  414. tests/services.scm \
  415. tests/services/linux.scm \
  416. tests/sets.scm \
  417. tests/size.scm \
  418. tests/snix.scm \
  419. tests/status.scm \
  420. tests/store-database.scm \
  421. tests/store-deduplication.scm \
  422. tests/store-roots.scm \
  423. tests/store.scm \
  424. tests/substitute.scm \
  425. tests/swh.scm \
  426. tests/syscalls.scm \
  427. tests/system.scm \
  428. tests/texlive.scm \
  429. tests/ui.scm \
  430. tests/union.scm \
  431. tests/upstream.scm \
  432. tests/utils.scm \
  433. tests/uuid.scm \
  434. tests/workers.scm \
  435. tests/zlib.scm
  436. SH_TESTS = \
  437. tests/guix-build.sh \
  438. tests/guix-build-branch.sh \
  439. tests/guix-download.sh \
  440. tests/guix-gc.sh \
  441. tests/guix-git-authenticate.sh \
  442. tests/guix-hash.sh \
  443. tests/guix-pack.sh \
  444. tests/guix-pack-localstatedir.sh \
  445. tests/guix-pack-relocatable.sh \
  446. tests/guix-package.sh \
  447. tests/guix-package-aliases.sh \
  448. tests/guix-package-net.sh \
  449. tests/guix-system.sh \
  450. tests/guix-archive.sh \
  451. tests/guix-authenticate.sh \
  452. tests/guix-environment.sh \
  453. tests/guix-environment-container.sh \
  454. tests/guix-graph.sh \
  455. tests/guix-describe.sh \
  456. tests/guix-repl.sh \
  457. tests/guix-lint.sh
  458. TESTS = $(SCM_TESTS) $(SH_TESTS)
  459. AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)" GUILE_AUTO_COMPILE=0
  460. SCM_LOG_DRIVER = \
  461. $(top_builddir)/test-env --quiet-stderr \
  462. $(GUILE) --no-auto-compile -e main \
  463. $(top_srcdir)/build-aux/test-driver.scm
  464. AM_SCM_LOG_DRIVER_FLAGS = --brief=yes
  465. SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
  466. AM_SH_LOG_FLAGS = -x -e
  467. # Make sure `tests/guix-gc.sh' runs last, after all the others. Otherwise it
  468. # could end up removing files from the store while they are being used by
  469. # other instances of the daemon.
  470. tests/guix-gc.log: \
  471. $(patsubst %.sh,%.log,$(filter-out tests/guix-gc.sh,$(SH_TESTS))) \
  472. $(SCM_TESTS:%.scm=%.log)
  473. else !CAN_RUN_TESTS
  474. TESTS =
  475. SH_TESTS =
  476. SCM_TESTS =
  477. # Automake always generates a 'check' target, so better not override it.
  478. check-local:
  479. @echo
  480. @echo "Cannot run tests because file name limits would be exceeded." >&2
  481. @echo "Look for 'length' in the 'config.log' file for details." >&2
  482. @echo
  483. @exit 1
  484. endif !CAN_RUN_TESTS
  485. check-system: $(GOBJECTS)
  486. $(AM_V_at)$(top_builddir)/pre-inst-env \
  487. guix build -m $(top_srcdir)/etc/system-tests.scm -K
  488. # Public keys used to sign substitutes.
  489. dist_pkgdata_DATA = \
  490. etc/substitutes/berlin.guix.gnu.org.pub \
  491. etc/substitutes/ci.guix.gnu.org.pub \
  492. etc/substitutes/ci.guix.info.pub
  493. # Bash completion file.
  494. dist_bashcompletion_DATA = etc/completion/bash/guix \
  495. etc/completion/bash/guix-daemon
  496. # Zsh completion file.
  497. dist_zshcompletion_DATA = etc/completion/zsh/_guix
  498. # Fish completion file.
  499. dist_fishcompletion_DATA = etc/completion/fish/guix.fish
  500. # SELinux policy
  501. dist_selinux_policy_DATA = etc/guix-daemon.cil
  502. EXTRA_DIST += \
  503. HACKING \
  504. ROADMAP \
  505. TODO \
  506. CODE-OF-CONDUCT \
  507. .dir-locals.el \
  508. .guix-channel \
  509. scripts/guix.in \
  510. etc/guix-install.sh \
  511. etc/news.scm \
  512. etc/release-manifest.scm \
  513. etc/system-tests.scm \
  514. etc/historical-authorizations \
  515. build-aux/build-self.scm \
  516. build-aux/compile-all.scm \
  517. build-aux/hydra/evaluate.scm \
  518. build-aux/hydra/gnu-system.scm \
  519. build-aux/hydra/guix.scm \
  520. build-aux/hydra/guix-modular.scm \
  521. build-aux/cuirass/gnu-system.scm \
  522. build-aux/cuirass/guix-modular.scm \
  523. build-aux/cuirass/hydra-to-cuirass.scm \
  524. build-aux/check-final-inputs-self-contained.scm \
  525. build-aux/check-channel-news.scm \
  526. build-aux/compile-as-derivation.scm \
  527. build-aux/generate-authors.scm \
  528. build-aux/test-driver.scm \
  529. build-aux/update-guix-package.scm \
  530. build-aux/update-NEWS.scm \
  531. d3.v3.js \
  532. graph.js \
  533. tests/test.drv \
  534. tests/signing-key.pub \
  535. tests/signing-key.sec \
  536. tests/cve-sample.json \
  537. tests/civodul.key \
  538. tests/rsa.key \
  539. tests/dsa.key \
  540. tests/ed25519.key \
  541. tests/ed25519.sec \
  542. tests/ed25519bis.key \
  543. tests/ed25519bis.sec \
  544. build-aux/config.rpath \
  545. bootstrap \
  546. doc/build.scm \
  547. $(TESTS)
  548. if !BUILD_DAEMON_OFFLOAD
  549. EXTRA_DIST += \
  550. guix/scripts/offload.scm
  551. endif !BUILD_DAEMON_OFFLOAD
  552. CLEANFILES = \
  553. $(bin_SCRIPTS) \
  554. $(GOBJECTS) \
  555. $(SCM_TESTS:tests/%.scm=%.log)
  556. # Unset 'GUILE_LOAD_COMPILED_PATH' altogether while compiling. Otherwise, if
  557. # $GUILE_LOAD_COMPILED_PATH contains $(moduledir), we may find .go files in
  558. # there that are newer than the local .scm files (for instance because the
  559. # user ran 'make install' recently). When that happens, we end up loading
  560. # those previously-installed .go files, which may be stale, thereby breaking
  561. # the whole thing. Likewise, set 'XDG_CACHE_HOME' to avoid loading possibly
  562. # stale files from ~/.cache/guile/ccache.
  563. %.go: make-go ; @:
  564. make-go: $(MODULES) guix/config.scm $(dist_noinst_DATA)
  565. $(AM_V_at)echo "Compiling Scheme modules..." ; \
  566. unset GUILE_LOAD_COMPILED_PATH ; \
  567. XDG_CACHE_HOME=/nowhere \
  568. host=$(host) srcdir="$(top_srcdir)" \
  569. $(top_builddir)/pre-inst-env \
  570. $(GUILE) -L "$(top_builddir)" -L "$(top_srcdir)" \
  571. --no-auto-compile \
  572. -s "$(top_srcdir)"/build-aux/compile-all.scm $^
  573. SUFFIXES = .go
  574. # Make sure source files are installed first, so that the mtime of
  575. # installed compiled files is greater than that of installed source
  576. # files. See
  577. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  578. # for details.
  579. guix_install_go_files = install-nobase_nodist_guileobjectDATA
  580. $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
  581. # The above trick doesn't work for 'config.go' because both 'config.scm' and
  582. # 'config.go' are listed in $(nobase_nodist_guileobject_DATA). Thus, give it
  583. # special treatment.
  584. install-data-hook:
  585. touch "$(DESTDIR)$(guileobjectdir)/guix/config.go"
  586. # Commit corresponding to the 'v1.0.0' tag.
  587. commit_v1_0_0 = 6298c3ffd9654d3231a6f25390b056483e8f407c
  588. # Introduction of the 'guix' channel. Keep in sync with (guix channels)!
  589. channel_intro_commit = 9edb3f66fd807b096b48283debdcddccfea34bad
  590. channel_intro_signer = BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA
  591. # Authenticate the current Git checkout by checking signatures on every commit
  592. # starting from $(commit_v1_0_0).
  593. authenticate: guix/openpgp.go guix/git-authenticate.go guix/git.go
  594. $(AM_V_at)echo "Authenticating Git checkout..." ; \
  595. "$(top_builddir)/pre-inst-env" guix git authenticate \
  596. --cache-key=channels/guix --stats \
  597. "$(channel_intro_commit)" "$(channel_intro_signer)"
  598. # Assuming Guix is already installed and the daemon is up and running, this
  599. # rule builds from $(srcdir), creating and building derivations.
  600. as-derivation:
  601. $(AM_V_at)echo "Building Guix in Guix..." ; \
  602. $(GUILE) --no-auto-compile \
  603. "$(top_srcdir)/build-aux/compile-as-derivation.scm" \
  604. "$(abs_top_srcdir)"
  605. SUBDIRS = po/guix po/packages
  606. BUILT_SOURCES =
  607. include doc/local.mk
  608. if BUILD_DAEMON
  609. include nix/local.mk
  610. endif BUILD_DAEMON
  611. ACLOCAL_AMFLAGS = -I m4
  612. # Pass an explicit '--localstatedir' so that configure does not error out if
  613. # it finds an existing installation with a different localstatedir. Inherit
  614. # 'ac_cv_guix_test_root' so that "make check" in $(distdir) does not have to
  615. # repopulate the whole store, and to make sure $(GUIX_TEST_ROOT) is short
  616. # enough for shebangs.
  617. AM_DISTCHECK_CONFIGURE_FLAGS = \
  618. --localstatedir="$$dc_install_base/var" \
  619. --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
  620. --with-libgcrypt-libdir="$(LIBGCRYPT_LIBDIR)" \
  621. --with-nix-prefix="$(NIX_PREFIX)" \
  622. --enable-daemon \
  623. ac_cv_guix_test_root="$(GUIX_TEST_ROOT)"
  624. # Name of the 'guix' package shipped in the binary tarball.
  625. GUIX_FOR_BINARY_TARBALL = guile3.0-guix
  626. # The self-contained tarball.
  627. guix-binary.%.tar.xz:
  628. $(AM_V_GEN)GUIX_PACKAGE_PATH= \
  629. tarball=`$(top_builddir)/pre-inst-env guix pack -C xz \
  630. --fallback \
  631. -s "$*" --localstatedir --profile-name=current-guix \
  632. $(GUIX_FOR_BINARY_TARBALL)` ; \
  633. cp "$$tarball" "$@.tmp" ; mv "$@.tmp" "$@"
  634. dist-hook: gen-ChangeLog gen-AUTHORS gen-tarball-version
  635. dist-hook: assert-no-store-file-names
  636. dist-hook: doc-po-update
  637. distcheck-hook: assert-binaries-available assert-final-inputs-self-contained
  638. EXTRA_DIST += $(top_srcdir)/.version
  639. BUILT_SOURCES += $(top_srcdir)/.version
  640. $(top_srcdir)/.version:
  641. echo $(VERSION) > "$@-t" && mv "$@-t" "$@"
  642. gen-tarball-version:
  643. echo $(VERSION) > "$(distdir)/.tarball-version"
  644. gen-ChangeLog:
  645. $(AM_V_GEN)if test -d .git; then \
  646. $(top_srcdir)/build-aux/gitlog-to-changelog \
  647. > $(distdir)/ChangeLog.tmp; \
  648. rm -f $(distdir)/ChangeLog; \
  649. mv $(distdir)/ChangeLog.tmp $(distdir)/ChangeLog; \
  650. fi
  651. gen-AUTHORS:
  652. $(AM_V_GEN)if test -d .git; then \
  653. rm -f "$(distdir)/AUTHORS"; \
  654. $(top_builddir)/pre-inst-env "$(GUILE)" \
  655. "$(top_srcdir)/build-aux/generate-authors.scm" \
  656. "$(top_srcdir)" "$(distdir)/AUTHORS"; \
  657. fi
  658. # Like 'dist', but regenerate 'configure' so we get an up-to-date
  659. # 'PACKAGE_VERSION' string. (In Gnulib, 'GNUmakefile' has a special trick to
  660. # do that whenever a 'dist' target is used.)
  661. dist-with-updated-version:
  662. @echo "Running './bootstrap' for new version string..."
  663. $(top_srcdir)/bootstrap
  664. $(MAKE) $(AM_MAKEFLAGS) $(top_srcdir)/.version dist
  665. .PHONY: dist-with-updated-version
  666. #
  667. # Release management.
  668. #
  669. releasedir = release-$(PACKAGE_VERSION)
  670. PACKAGE_FULL_TARNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
  671. # List of source tarballs produced. This must be kept in sync with the
  672. # 'dist-' options of 'AM_INIT_AUTOMAKE' in 'configure.ac'.
  673. SOURCE_TARBALLS = \
  674. $(foreach ext,tar.gz,$(PACKAGE_FULL_TARNAME).$(ext))
  675. # Systems supported by Guix.
  676. SUPPORTED_SYSTEMS ?= x86_64-linux i686-linux armhf-linux aarch64-linux
  677. # Guix binary tarballs.
  678. BINARY_TARBALLS = \
  679. $(foreach system,$(SUPPORTED_SYSTEMS),guix-binary.$(system).tar.xz)
  680. # Systems supported by Guix System.
  681. GUIX_SYSTEM_SUPPORTED_SYSTEMS ?= x86_64-linux i686-linux
  682. # Systems for which we build Guix VMs.
  683. GUIX_SYSTEM_VM_SYSTEMS ?= x86_64-linux
  684. # Prefix of the Guix installation image file name.
  685. GUIX_SYSTEM_IMAGE_BASE = guix-system-install-$(PACKAGE_VERSION)
  686. # Prefix of the Guix VM image file name.
  687. GUIX_SYSTEM_VM_IMAGE_BASE = guix-system-vm-image-$(PACKAGE_VERSION)
  688. # Flags for 'guix system vm-image'. By default create a VM image that appears
  689. # to have a 20G hard disk.
  690. GUIX_SYSTEM_VM_IMAGE_FLAGS ?= --image-size=30G
  691. # Return the sequence of '-s' flags for the given systems.
  692. system_flags = $(foreach system,$(1),-s $(system))
  693. # The release process works in several phases:
  694. #
  695. # 0. We assume the developer created a 'vX.Y' tag.
  696. # 1. Build the source tarball.
  697. # 2. Update the 'guix' package so that it corresponds to the 'vX.Y' tag.
  698. # 3. Build the binary tarballs for that 'guix' package.
  699. # 4. Update the 'guix' package again.
  700. # 5. Build the installation images. The images will run 'guix'
  701. # corresponding to 'vX.Y' + 1 commit, and they will install 'vX.Y'.
  702. #
  703. # This 'release' target takes care of everything and copies the resulting
  704. # files to $(releasedir).
  705. #
  706. # XXX: Depend on 'dist' rather than 'distcheck' to work around the Gettext
  707. # issue described at <https://savannah.gnu.org/bugs/index.php?51027>.
  708. release: dist-with-updated-version
  709. cd po; git checkout .
  710. @if ! git diff-index --quiet HEAD; then \
  711. echo "There are uncommitted changes; stopping." >&2 ; \
  712. exit 1 ; \
  713. fi
  714. $(MKDIR_P) "$(releasedir)"
  715. rm -f "$(releasedir)"/*
  716. mv $(SOURCE_TARBALLS) "$(releasedir)"
  717. $(top_builddir)/pre-inst-env "$(GUILE)" \
  718. $(top_srcdir)/build-aux/update-guix-package.scm \
  719. "`git rev-parse HEAD`" "$(PACKAGE_VERSION)"
  720. git add $(top_srcdir)/gnu/packages/package-management.scm
  721. git commit -m "gnu: guix: Update to $(PACKAGE_VERSION)."
  722. $(top_builddir)/pre-inst-env guix build $(GUIX_FOR_BINARY_TARBALL) \
  723. $(call system_flags,$(SUPPORTED_SYSTEMS)) \
  724. -v1 --no-grafts --fallback
  725. rm -f $(BINARY_TARBALLS)
  726. $(MAKE) $(BINARY_TARBALLS)
  727. for system in $(SUPPORTED_SYSTEMS) ; do \
  728. mv "guix-binary.$$system.tar.xz" \
  729. "$(releasedir)/guix-binary-$(PACKAGE_VERSION).$$system.tar.xz" ; \
  730. done
  731. $(top_builddir)/pre-inst-env "$(GUILE)" \
  732. $(top_srcdir)/build-aux/update-guix-package.scm \
  733. "`git rev-parse HEAD`"
  734. git add $(top_srcdir)/gnu/packages/package-management.scm
  735. git commit -m "gnu: guix: Update to `git rev-parse HEAD | cut -c1-7`."
  736. $(top_builddir)/pre-inst-env guix build guix \
  737. $(call system_flags,$(GUIX_SYSTEM_SUPPORTED_SYSTEMS)) \
  738. -v1 --no-grafts --fallback
  739. for system in $(GUIX_SYSTEM_SUPPORTED_SYSTEMS) ; do \
  740. image=`$(top_builddir)/pre-inst-env \
  741. guix system disk-image \
  742. --file-system-type=iso9660 \
  743. --system=$$system --fallback \
  744. gnu/system/install.scm` ; \
  745. if [ ! -f "$$image" ] ; then \
  746. echo "failed to produced Guix installation image for $$system" >&2 ; \
  747. exit 1 ; \
  748. fi ; \
  749. xz < "$$image" > "$(releasedir)/$(GUIX_SYSTEM_IMAGE_BASE).$$system.iso.xz.tmp" ; \
  750. mv "$(releasedir)/$(GUIX_SYSTEM_IMAGE_BASE).$$system.iso.xz.tmp" \
  751. "$(releasedir)/$(GUIX_SYSTEM_IMAGE_BASE).$$system.iso.xz" ; \
  752. done
  753. for system in $(GUIX_SYSTEM_VM_SYSTEMS) ; do \
  754. image=`$(top_builddir)/pre-inst-env \
  755. guix system vm-image $(GUIX_SYSTEM_VM_IMAGE_FLAGS) \
  756. --save-provenance \
  757. --system=$$system --fallback \
  758. gnu/system/examples/vm-image.tmpl` ; \
  759. if [ ! -f "$$image" ] ; then \
  760. echo "failed to produced Guix VM image for $$system" >&2 ; \
  761. exit 1 ; \
  762. fi ; \
  763. xz < "$$image" > "$(releasedir)/$(GUIX_SYSTEM_VM_IMAGE_BASE).$$system.xz.tmp" ; \
  764. mv "$(releasedir)/$(GUIX_SYSTEM_VM_IMAGE_BASE).$$system.xz.tmp" \
  765. "$(releasedir)/$(GUIX_SYSTEM_VM_IMAGE_BASE).$$system.xz" ; \
  766. done
  767. @echo
  768. @echo "Congratulations! All the release files are now in $(releasedir)."
  769. @echo
  770. update-guix-package:
  771. git rev-parse HEAD
  772. $(top_builddir)/pre-inst-env "$(GUILE)" \
  773. $(top_srcdir)/build-aux/update-guix-package.scm \
  774. "`git rev-parse HEAD`"
  775. # Location of a checkout of <git://git.savannah.gnu.org/guix/maintenance.git>.
  776. # Package data from this checkout is used by 'update-NEWS.scm'.
  777. GUIX_MAINTENANCE_DIRECTORY ?= $(top_srcdir)/../guix-maintenance
  778. update-NEWS: $(GOBJECTS)
  779. $(top_builddir)/pre-inst-env "$(GUILE)" \
  780. $(top_srcdir)/build-aux/update-NEWS.scm \
  781. $(top_srcdir)/NEWS "$(GUIX_MAINTENANCE_DIRECTORY)/data"
  782. # Make sure we're not shipping a file that embeds a local /gnu/store file name.
  783. assert-no-store-file-names:
  784. $(AM_V_at)if grep -r --exclude=*.texi --exclude=*.info \
  785. --exclude=*.info-[0-9] --exclude=*.dot \
  786. --exclude=*.eps --exclude-dir=bootstrap \
  787. --exclude=guix-manual.pot --exclude=guix-manual.*.po \
  788. --exclude=guix-cookbook.pot --exclude=guix-cookbook.*.po \
  789. --exclude=guix-prettify.el \
  790. --exclude=ChangeLog* \
  791. --exclude=binutils-boot-2.20*.patch \
  792. -E "$(storedir)/[a-z0-9]{32}-" $(distdir) ; \
  793. then \
  794. echo "error: store file names embedded in the distribution" >&2 ; \
  795. exit 1 ; \
  796. fi
  797. # Make sure important substitutes are available.
  798. assert-binaries-available: $(GOBJECTS)
  799. $(AM_V_at)$(top_builddir)/pre-inst-env \
  800. guix weather -m "$(top_srcdir)/etc/release-manifest.scm" \
  801. --display-missing
  802. # Make sure the final inputs don't refer to bootstrap tools.
  803. assert-final-inputs-self-contained: $(GOBJECTS)
  804. $(AM_V_at)$(top_builddir)/pre-inst-env "$(GUILE)" \
  805. "$(top_srcdir)/build-aux/check-final-inputs-self-contained.scm"
  806. # Validate channel news.
  807. check-channel-news: $(GOBJECTS)
  808. $(AM_V_at)$(top_builddir)/pre-inst-env "$(GUILE)" \
  809. "$(top_srcdir)/build-aux/check-channel-news.scm"
  810. # Compute the Hydra jobs and write them in the target file.
  811. hydra-jobs.scm: $(GOBJECTS)
  812. $(AM_V_at)$(MKDIR_P) "`dirname "$@"`"
  813. $(AM_V_GEN)$(top_builddir)/pre-inst-env "$(GUILE)" \
  814. "$(top_srcdir)/build-aux/hydra/evaluate.scm" \
  815. "$(top_srcdir)/build-aux/hydra/gnu-system.scm" > "$@.tmp"
  816. $(AM_V_at)mv "$@.tmp" "$@"
  817. # Compute the Cuirass jobs and write them in the target file.
  818. cuirass-jobs.scm: $(GOBJECTS)
  819. $(AM_V_at)$(MKDIR_P) "`dirname "$@"`"
  820. $(AM_V_GEN)$(top_builddir)/pre-inst-env "$(GUILE)" \
  821. "$(top_srcdir)/build-aux/hydra/evaluate.scm" \
  822. "$(top_srcdir)/build-aux/cuirass/gnu-system.scm" \
  823. cuirass > "$@.tmp"
  824. $(AM_V_at)mv "$@.tmp" "$@"
  825. .PHONY: gen-ChangeLog gen-AUTHORS gen-tarball-version
  826. .PHONY: assert-no-store-file-names assert-binaries-available
  827. .PHONY: assert-final-inputs-self-contained check-channel-news
  828. .PHONY: clean-go make-go as-derivation authenticate
  829. .PHONY: update-guix-package update-NEWS release
  830. # Downloading up-to-date PO files.
  831. # make-download-po-rule DOMAIN DIRECTORY [FILE-NAME-PREFIX]
  832. define make-download-po-rule
  833. download-po.$(1):
  834. if [ -f "$(top_srcdir)/$(2)/LINGUAS" ]; then \
  835. LINGUAS="`grep -v '^[[:blank:]]*#' < $(top_srcdir)/$(2)/LINGUAS`" ; \
  836. else \
  837. LINGUAS="`(cd $(top_srcdir)/$(2); \
  838. for i in *.po; do echo $$$$i; done) | cut -d . -f 2`" ; \
  839. fi ; \
  840. for lang in $$$$LINGUAS; do \
  841. if wget -nv -O "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" \
  842. "https://translationproject.org/latest/$(1)/$$$$lang.po" ; \
  843. then \
  844. mv "$(top_srcdir)/$(2)/$(3)$$$$lang.po"{.tmp,} ; \
  845. else \
  846. rm "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" ; \
  847. fi ; \
  848. done
  849. .PHONY: download-po.$(1)
  850. endef
  851. $(eval $(call make-download-po-rule,guix,po/guix))
  852. $(eval $(call make-download-po-rule,guix-packages,po/packages))
  853. $(eval $(call make-download-po-rule,guix-manual,po/doc,guix-manual.))
  854. download-po: $(foreach domain,guix guix-packages guix-manual,download-po.$(domain))
  855. .PHONY: download-po
  856. ## -------------- ##
  857. ## Silent rules. ##
  858. ## -------------- ##
  859. AM_V_DL = $(AM_V_DL_$(V))
  860. AM_V_DL_ = $(AM_V_DL_$(AM_DEFAULT_VERBOSITY))
  861. AM_V_DL_0 = @echo " DL " $@;
  862. AM_V_DOT = $(AM_V_DOT_$(V))
  863. AM_V_DOT_ = $(AM_V_DOT_$(AM_DEFAULT_VERBOSITY))
  864. AM_V_DOT_0 = @echo " DOT " $@;
  865. AM_V_HELP2MAN = $(AM_V_HELP2MAN_$(V))
  866. AM_V_HELP2MAN_ = $(AM_V_HELP2MAN_$(AM_DEFAULT_VERBOSITY))
  867. AM_V_HELP2MAN_0 = @echo " HELP2MAN" $@;
  868. AM_V_PO4A = $(AM_V_PO4A_$(V))
  869. AM_V_PO4A_ = $(AM_V_PO4A_$(AM_DEFAULT_VERBOSITY))
  870. AM_V_PO4A_0 = @echo " PO4A" $@;
  871. AM_V_POXREF = $(AM_V_POXREF_$(V))
  872. AM_V_POXREF_ = $(AM_V_POXREF_$(AM_DEFAULT_VERBOSITY))
  873. AM_V_POXREF_0 = @echo " POXREF" $@;