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.

471 lines
13 KiB

services: Introduce extensible services. This patch rewrites GuixSD services to make them extensible. * gnu-system.am (GNU_SYSTEM_MODULES): Add gnu/services/dbus.scm. * gnu/services.scm (<service>): Replace with new record type. (<service-extension>, <service-type>): New record types. (write-service-type, compute-boot-script, second-argument): New procedures. (%boot-service, boot-service-type): New variables. (file-union, directory-union, modprobe-wrapper, activation-service->script, activation-script, gexps->activation-gexp): New procedures. (activation-service-type, %activation-service): New variables. (etc-directory, files->etc-directory, etc-service): New procedures. (etc-service-type, setuid-program-service, firmware-service-type): New variables. (firmware->activation-gexp): New procedure. (&service-error, &missing-target-service-error, &ambiguous-target-service-error): New condition types. (service-back-edges, fold-services): New procedures. * gnu/services/avahi.scm (<avahi-configuration>): New record type. (configuration-file): Replace keyword parameters with a single 'config' parameter. (%avahi-accounts, %avahi-activation, avahi-service-type): New variables. (avahi-dmd-service): New procedure. (avahi-service): Rewrite using 'service' and 'avahi-configuration'. * gnu/services/base.scm (%root-file-system-dmd-service, root-file-system-service-type): New variables. (root-file-system-service): Use them. (file-system->dmd-service-name): New procedure. (file-system-service-type): New variable. (file-system-service): Use it. Replace keyword parameters with a single 'file-system' object. (user-unmount-service-type): New variable. (user-unmount-service): Use it. (user-processes-service-type): New variable. (user-processes-service): Use it. (host-name-service-type): New variable. (host-name-service): Use it. (console-keymap-service-type): New variable. (console-keymap-service): Use it. (console-font-service-type): New variable. (console-font-service): Use it. (mingetty-pam-service, mingetty-dmd-service): New procedures. (mingetty-service-type): New variable. (mingetty-service): Use it. (nscd-dmd-service): New procedure. (nscd-activation, nscd-service-type): New variables. (nscd-service): Use the latter. (syslog-service-type): New variable. (syslog-service): Use it. (<guix-configuration>): New record type. (%default-guix-configuration): New variable. (guix-dmd-service, guix-accounts, guix-activation): New procedures. (guix-service-type): New variable. (guix-service): Replace list of keyword parameters with a single 'config' parameter. Rewrite using 'service'. (<udev-configuration>): New record type. (udev-dmd-service): New procedure. (udev-service-type): New variable. (udev-service): Use it. (device-mapping-service-type): New variable. (device-mapping-service): Use it. (swap-service-type): New variable. (swap-service): Use it. * gnu/services/databases.scm (<postgresql-configuration>): New record type. (%postgresql-accounts, postgresql-activation): New variables. (postgresql-dmd-service): New procedure. (postgresql-service): Rewrite using 'service' and 'postgresql-configuration'. * gnu/services/dbus.scm: New file. * gnu/services/desktop.scm (dbus-configuration-directory, dbus-service): Remove. (wrapped-dbus-service): New procedure. (<upower-configuration>): New record type. (upower-configuration-file): Replace keyword parameters with single <upower-configuration> parameter. (%upower-accounts, %upower-activation): New variables. (upower-dbus-service, upower-dmd-service): New procedures. (upower-service-type): New variable. (upower-service): Rewrite using 'service' and 'upower-configuration'. (%colord-activation, %colord-accounts): New variables. (colord-dmd-service): New procedure. (colord-service-type): New variable. (colord-service): Rewrite using 'service'. (<geoclue-configuration>): New record type. (geoclue-configuration-file): Replace keyword parameters with a single 'config' parameter. (geoclue-dbus-service, geoclue-dmd-service): New procedures. (%geoclue-accounts, geoclue-service-type): New variables. (geoclue-service): Rewrite using 'service' and 'geoclue-configuration'. (%polkit-accounts, %polkit-pam-services, polkit-service-type): New variables. (polkit-dmd-service): New procedure. (polkit-service): Rewrite using 'service'. (<elogind-configuration>)[elogind]: New field. (elogind-dmd-service): New procedure. (elogind-service-type): New variable. (elogind-service): Rewrite using 'service'. (%desktop-services): Remove argument to 'dbus-service'. Remove 'map' over %BASE-SERVICES. * gnu/services/dmd.scm (dmd-boot-gexp): New procedure. (dmd-root-service-type, %dmd-root-service): New variables. (dmd-service-type): New macro. (<dmd-service>): New record type. * gnu/services/lirc.scm (<lirc-configuration>): New record type. (%lirc-activation): New variable. (lirc-dmd-service): New procedure. (lirc-service-type): New variable. (lirc-service): Rewrite using 'service' and 'lirc-configuration'. * gnu/services/networking.scm (<static-networking>): New record type. (static-networking-service-type): New variable. (static-networking-service): Rewrite using 'service' and 'static-networking'. (dhcp-client-service-type): New variable. (dhcp-client-service): Rewrite using 'service'. (<ntp-configuration>): New record type. (ntp-dmd-service): New procedure. (ntp-service-type): New variable. (ntp-service): New procedure. (%tor-accounts, tor-service-type): New variable. (tor-dmd-service): New procedure. (tor-service): Rewrite using 'service'. (<bitlbee-configuration>): New record type. (bitlbee-dmd-service): New procedure. (%bitlbee-accounts, %bitlbee-activation, bitlbee-service-type): New variables. (bitlbee-service): Rewrite using 'service'. (%wicd-activation): New variable. (wicd-dmd-service): New procedure. (wicd-service-type): New variable. (wicd-service): Rewrite using 'service'. * gnu/services/ssh.scm (<lsh-configuration>): New record type. (activation): Rename to... (lsh-initialization): ... this. (lsh-activation, lsh-dmd-service, lsh-pam-services): New procedures. (lsh-service-type): New variable. (lsh-service): Rewrite using 'service' and 'lsh-configuration'. * gnu/services/web.scm (<nginx-configuration>): New record type. (%nginx-accounts): New variable. (nginx-activation, nginx-dmd-service): New procedures. (nginx-service-type): New variable. (nginx-service): Rewrite using 'service' and 'nginx-configuration'. * gnu/services/xorg.scm (<slim-configuration>): New record type. (slim-pam-service, slim-dmd-service): New procedures. (slim-service-type): New variable. (slim-service): Rewrite using 'service' and 'slim-configuration'. * gnu/system.scm (file-union): Remove. (other-file-system-services): Adjust to new 'file-system-service' signature. (essential-services): Add #:container? parameter. Add %DMD-ROOT-SERVICE, %ACTIVATION-SERVICE, and calls to 'pam-root-service', 'account-service', 'operating-system-etc-service', and a SETUID-PROGRAM-SERVICE instance. (operating-system-services): Pass #:container? to 'essential-services. (etc-directory): Remove. (operating-system-etc-service): New procedure. Rewrite as a call to 'etc-service'. (operating-system-accounts): Change to not return accounts required by services. (operating-system-etc-directory): Rewrite as a call to 'fold-services' and 'etc-directory'. (user-group->gexp, user-account->gexp, modprobe-wrapper): Remove. (operating-system-activation-script): Rewrite as a call to 'fold-services' and 'activation-service->script'. (operating-system-boot-script): Likewise. (operating-system-derivation): Add call to 'lower-object'. (emacs-site-file, emacs-site-directory, shells-file): Change to use 'computed-file' and 'scheme-file' instead of the monadic procedures. * gnu/system/install.scm (cow-store-service-type): New variable. (cow-store-service): Rewrite using 'service'. (/etc/configuration-files): New procedure. (configuration-template-service-type, %configuration-template-service): New variables. (configuration-template-service): Remove. (installation-services): Adjust accordingly. Adjust argument to 'guix-service'. * gnu/system/linux.scm (/etc-entry, pam-root-service): New procedures. (pam-root-service-type): New variable. * gnu/system/shadow.scm (user-group->gexp, user-account->gexp, account-activation, etc-skel, account-service): New procedures. (account-service-type): New variable. * tests/services.scm: New file. * doc/guix.texi (Base Services, Desktop Services): Adjust accordingly. (Defining Services): Rewrite. * doc/images/service-graph.dot: New file. * doc.am (DOT_FILES): Add it. * po/guix/POTFILES.in: Add gnu/services.scm.
6 years ago
  1. # GNU Guix --- Functional package management for GNU
  2. # Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
  3. # Copyright © 2013 Andreas Enge <andreas@enge.fr>
  4. # Copyright © 2015 Alex Kost <alezost@gmail.com>
  5. #
  6. # This file is part of GNU Guix.
  7. #
  8. # GNU Guix is free software; you can redistribute it and/or modify it
  9. # under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 3 of the License, or (at
  11. # your option) any later version.
  12. #
  13. # GNU Guix is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  20. bin_SCRIPTS = \
  21. scripts/guix
  22. nodist_noinst_SCRIPTS = \
  23. pre-inst-env \
  24. test-env
  25. include gnu-system.am
  26. MODULES = \
  27. guix/base32.scm \
  28. guix/base64.scm \
  29. guix/cpio.scm \
  30. guix/records.scm \
  31. guix/gcrypt.scm \
  32. guix/hash.scm \
  33. guix/pk-crypto.scm \
  34. guix/pki.scm \
  35. guix/utils.scm \
  36. guix/sets.scm \
  37. guix/download.scm \
  38. guix/git-download.scm \
  39. guix/monads.scm \
  40. guix/monad-repl.scm \
  41. guix/gexp.scm \
  42. guix/profiles.scm \
  43. guix/serialization.scm \
  44. guix/nar.scm \
  45. guix/derivations.scm \
  46. guix/gnu-maintenance.scm \
  47. guix/upstream.scm \
  48. guix/licenses.scm \
  49. guix/graph.scm \
  50. guix/cve.scm \
  51. guix/build-system.scm \
  52. guix/build-system/cmake.scm \
  53. guix/build-system/emacs.scm \
  54. guix/build-system/glib-or-gtk.scm \
  55. guix/build-system/gnu.scm \
  56. guix/build-system/haskell.scm \
  57. guix/build-system/perl.scm \
  58. guix/build-system/python.scm \
  59. guix/build-system/waf.scm \
  60. guix/build-system/r.scm \
  61. guix/build-system/ruby.scm \
  62. guix/build-system/trivial.scm \
  63. guix/ftp-client.scm \
  64. guix/http-client.scm \
  65. guix/gnupg.scm \
  66. guix/elf.scm \
  67. guix/store.scm \
  68. guix/cvs-download.scm \
  69. guix/svn-download.scm \
  70. guix/ui.scm \
  71. guix/build/download.scm \
  72. guix/build/cmake-build-system.scm \
  73. guix/build/emacs-build-system.scm \
  74. guix/build/git.scm \
  75. guix/build/glib-or-gtk-build-system.scm \
  76. guix/build/gnu-build-system.scm \
  77. guix/build/gnu-dist.scm \
  78. guix/build/perl-build-system.scm \
  79. guix/build/python-build-system.scm \
  80. guix/build/r-build-system.scm \
  81. guix/build/ruby-build-system.scm \
  82. guix/build/waf-build-system.scm \
  83. guix/build/haskell-build-system.scm \
  84. guix/build/store-copy.scm \
  85. guix/build/utils.scm \
  86. guix/build/union.scm \
  87. guix/build/profiles.scm \
  88. guix/build/pull.scm \
  89. guix/build/rpath.scm \
  90. guix/build/cvs.scm \
  91. guix/build/svn.scm \
  92. guix/build/gremlin.scm \
  93. guix/build/emacs-utils.scm \
  94. guix/build/graft.scm \
  95. guix/search-paths.scm \
  96. guix/packages.scm \
  97. guix/import/utils.scm \
  98. guix/import/gnu.scm \
  99. guix/import/snix.scm \
  100. guix/import/cabal.scm \
  101. guix/import/cran.scm \
  102. guix/import/hackage.scm \
  103. guix/import/elpa.scm \
  104. guix/scripts.scm \
  105. guix/scripts/download.scm \
  106. guix/scripts/build.scm \
  107. guix/scripts/archive.scm \
  108. guix/scripts/import.scm \
  109. guix/scripts/package.scm \
  110. guix/scripts/gc.scm \
  111. guix/scripts/hash.scm \
  112. guix/scripts/pull.scm \
  113. guix/scripts/substitute.scm \
  114. guix/scripts/authenticate.scm \
  115. guix/scripts/refresh.scm \
  116. guix/scripts/system.scm \
  117. guix/scripts/lint.scm \
  118. guix/scripts/challenge.scm \
  119. guix/scripts/import/cran.scm \
  120. guix/scripts/import/gnu.scm \
  121. guix/scripts/import/nix.scm \
  122. guix/scripts/import/hackage.scm \
  123. guix/scripts/import/elpa.scm \
  124. guix/scripts/environment.scm \
  125. guix/scripts/publish.scm \
  126. guix/scripts/edit.scm \
  127. guix/scripts/size.scm \
  128. guix/scripts/graph.scm \
  129. guix/scripts/container.scm \
  130. guix/scripts/container/exec.scm \
  131. guix.scm \
  132. $(GNU_SYSTEM_MODULES)
  133. if HAVE_GUILE_JSON
  134. MODULES += \
  135. guix/import/json.scm \
  136. guix/import/pypi.scm \
  137. guix/scripts/import/pypi.scm \
  138. guix/import/cpan.scm \
  139. guix/scripts/import/gem.scm \
  140. guix/import/gem.scm
  141. endif
  142. if BUILD_SYSCALLS_MODULE
  143. MODULES += \
  144. guix/build/syscalls.scm
  145. endif
  146. if BUILD_DAEMON_OFFLOAD
  147. MODULES += \
  148. guix/scripts/offload.scm
  149. endif BUILD_DAEMON_OFFLOAD
  150. # Internal module with test suite support.
  151. dist_noinst_DATA = guix/tests.scm
  152. # Linux-Libre configurations.
  153. KCONFIGS = \
  154. gnu/packages/linux-libre-i686.conf \
  155. gnu/packages/linux-libre-x86_64.conf
  156. # Templates, examples.
  157. EXAMPLES = \
  158. gnu/system/examples/bare-bones.tmpl \
  159. gnu/system/examples/desktop.tmpl
  160. GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go guix/tests.go
  161. nobase_dist_guilemodule_DATA = \
  162. $(MODULES) $(KCONFIGS) $(EXAMPLES) \
  163. $(MISC_DISTRO_FILES)
  164. nobase_nodist_guilemodule_DATA = $(GOBJECTS) guix/config.scm
  165. # Do we need to provide our own non-broken (srfi srfi-37) module?
  166. if INSTALL_SRFI_37
  167. nobase_nodist_guilemodule_DATA += srfi/srfi-37.scm
  168. GOBJECTS += srfi/srfi-37.go
  169. srfi/srfi-37.scm: srfi/srfi-37.scm.in
  170. $(MKDIR_P) srfi
  171. cp "$<" "$@"
  172. endif INSTALL_SRFI_37
  173. # Handy way to remove the .go files without removing all the rest.
  174. clean-go:
  175. -$(RM) -f $(GOBJECTS)
  176. # Test extensions; has to be unconditional.
  177. TEST_EXTENSIONS = .scm .sh
  178. if CAN_RUN_TESTS
  179. SCM_TESTS = \
  180. tests/base32.scm \
  181. tests/base64.scm \
  182. tests/cpio.scm \
  183. tests/hash.scm \
  184. tests/pk-crypto.scm \
  185. tests/pki.scm \
  186. tests/sets.scm \
  187. tests/gnu-maintenance.scm \
  188. tests/substitute.scm \
  189. tests/builders.scm \
  190. tests/derivations.scm \
  191. tests/ui.scm \
  192. tests/records.scm \
  193. tests/utils.scm \
  194. tests/build-utils.scm \
  195. tests/packages.scm \
  196. tests/snix.scm \
  197. tests/hackage.scm \
  198. tests/cran.scm \
  199. tests/elpa.scm \
  200. tests/store.scm \
  201. tests/monads.scm \
  202. tests/gexp.scm \
  203. tests/nar.scm \
  204. tests/union.scm \
  205. tests/profiles.scm \
  206. tests/syscalls.scm \
  207. tests/gremlin.scm \
  208. tests/lint.scm \
  209. tests/publish.scm \
  210. tests/scripts.scm \
  211. tests/size.scm \
  212. tests/graph.scm \
  213. tests/challenge.scm \
  214. tests/cve.scm \
  215. tests/file-systems.scm \
  216. tests/services.scm \
  217. tests/containers.scm
  218. if HAVE_GUILE_JSON
  219. SCM_TESTS += \
  220. tests/pypi.scm \
  221. tests/cpan.scm \
  222. tests/gem.scm
  223. endif
  224. SH_TESTS = \
  225. tests/guix-build.sh \
  226. tests/guix-download.sh \
  227. tests/guix-gc.sh \
  228. tests/guix-hash.sh \
  229. tests/guix-package.sh \
  230. tests/guix-package-net.sh \
  231. tests/guix-system.sh \
  232. tests/guix-archive.sh \
  233. tests/guix-authenticate.sh \
  234. tests/guix-environment.sh \
  235. tests/guix-environment-container.sh \
  236. tests/guix-graph.sh \
  237. tests/guix-lint.sh
  238. if BUILD_DAEMON
  239. SH_TESTS += tests/guix-register.sh
  240. endif BUILD_DAEMON
  241. TESTS = $(SCM_TESTS) $(SH_TESTS)
  242. AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
  243. SCM_LOG_COMPILER = $(top_builddir)/test-env $(GUILE)
  244. AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
  245. SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
  246. AM_SH_LOG_FLAGS = -x -e
  247. # Make sure `tests/guix-gc.sh' runs last, after all the others. Otherwise it
  248. # could end up removing files from the store while they are being used by
  249. # other instances of the daemon.
  250. tests/guix-gc.log: \
  251. $(patsubst %.sh,%.log,$(filter-out tests/guix-gc.sh,$(SH_TESTS))) \
  252. $(SCM_TESTS:%.scm=%.log)
  253. else !CAN_RUN_TESTS
  254. TESTS =
  255. SH_TESTS =
  256. SCM_TESTS =
  257. # Automake always generates a 'check' target, so better not override it.
  258. check-local:
  259. @echo
  260. @echo "Cannot run tests because file name limits would be exceeded." >&2
  261. @echo "Look for 'length' in the 'config.log' file for details." >&2
  262. @echo
  263. @exit 1
  264. endif !CAN_RUN_TESTS
  265. # Public key used to sign substitutes from hydra.gnu.org.
  266. dist_pkgdata_DATA = hydra.gnu.org.pub
  267. # Bash completion file.
  268. dist_bashcompletion_DATA = etc/completion/bash/guix
  269. EXTRA_DIST = \
  270. HACKING \
  271. ROADMAP \
  272. TODO \
  273. CODE-OF-CONDUCT \
  274. .dir-locals.el \
  275. build-aux/build-self.scm \
  276. build-aux/compile-all.scm \
  277. build-aux/hydra/gnu-system.scm \
  278. build-aux/hydra/demo-os.scm \
  279. build-aux/hydra/guix.scm \
  280. build-aux/check-available-binaries.scm \
  281. build-aux/check-final-inputs-self-contained.scm \
  282. build-aux/download.scm \
  283. build-aux/make-binary-tarball.scm \
  284. build-aux/generate-authors.scm \
  285. srfi/srfi-37.scm.in \
  286. srfi/srfi-64.scm \
  287. srfi/srfi-64.upstream.scm \
  288. tests/test.drv \
  289. tests/signing-key.pub \
  290. tests/signing-key.sec \
  291. tests/cve-sample.xml \
  292. build-aux/config.rpath \
  293. bootstrap \
  294. release.nix \
  295. $(TESTS)
  296. if !BUILD_DAEMON_OFFLOAD
  297. EXTRA_DIST += \
  298. guix/scripts/offload.scm
  299. endif !BUILD_DAEMON_OFFLOAD
  300. if !BUILD_SYSCALLS_MODULE
  301. EXTRA_DIST += \
  302. guix/build/syscalls.scm
  303. endif !BUILD_SYSCALLS_MODULE
  304. CLEANFILES = \
  305. $(GOBJECTS) \
  306. $(SCM_TESTS:tests/%.scm=%.log)
  307. # Unset 'GUILE_LOAD_COMPILED_PATH' altogether while compiling. Otherwise, if
  308. # $GUILE_LOAD_COMPILED_PATH contains $(moduledir), we may find .go files in
  309. # there that are newer than the local .scm files (for instance because the
  310. # user ran 'make install' recently). When that happens, we end up loading
  311. # those previously-installed .go files, which may be stale, thereby breaking
  312. # the whole thing.
  313. %.go: make-go ; @:
  314. make-go: $(MODULES) guix/config.scm guix/tests.scm
  315. $(AM_V_at)echo "Compiling Scheme modules..." ; \
  316. unset GUILE_LOAD_COMPILED_PATH ; \
  317. host=$(host) srcdir="$(top_srcdir)" \
  318. $(top_builddir)/pre-inst-env \
  319. $(GUILE) -L "$(top_builddir)" -L "$(top_srcdir)" \
  320. --no-auto-compile \
  321. -s "$(top_srcdir)"/build-aux/compile-all.scm $^
  322. SUFFIXES = .go
  323. # Make sure source files are installed first, so that the mtime of
  324. # installed compiled files is greater than that of installed source
  325. # files. See
  326. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  327. # for details.
  328. guix_install_go_files = install-nobase_nodist_guilemoduleDATA
  329. $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
  330. # The above trick doesn't work for 'config.go' because both 'config.scm' and
  331. # 'config.go' are listed in $(nobase_nodist_guilemodule_DATA). Thus, give it
  332. # special treatment.
  333. install-data-hook: set-bootstrap-executable-permissions
  334. touch "$(DESTDIR)$(guilemoduledir)/guix/config.go"
  335. SUBDIRS = po/guix po/packages
  336. BUILT_SOURCES =
  337. include doc.am
  338. if BUILD_DAEMON
  339. include daemon.am
  340. endif BUILD_DAEMON
  341. ACLOCAL_AMFLAGS = -I m4
  342. AM_DISTCHECK_CONFIGURE_FLAGS = \
  343. --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
  344. --with-libgcrypt-libdir="$(LIBGCRYPT_LIBDIR)" \
  345. --with-nix-prefix="$(NIX_PREFIX)" \
  346. --enable-daemon
  347. dist_emacsui_DATA = emacs/guix-main.scm
  348. nodist_emacsui_DATA = emacs/guix-helper.scm
  349. include emacs.am
  350. # The self-contained tarball.
  351. guix-binary.%.tar.xz:
  352. -GUIX_PACKAGE_PATH= \
  353. $(top_builddir)/pre-inst-env "$(GUILE)" \
  354. "$(top_srcdir)/build-aux/make-binary-tarball.scm" "$*" "$@"
  355. dist-hook: sync-descriptions gen-ChangeLog gen-AUTHORS
  356. dist-hook: assert-no-store-file-names
  357. distcheck-hook: assert-binaries-available assert-final-inputs-self-contained
  358. sync-descriptions:
  359. -GUIX_PACKAGE_PATH= \
  360. $(top_builddir)/pre-inst-env guix lint --checkers=gnu-description
  361. gen-ChangeLog:
  362. if test -d .git; then \
  363. $(top_srcdir)/build-aux/gitlog-to-changelog \
  364. > $(distdir)/cl-t; \
  365. rm -f $(distdir)/ChangeLog; \
  366. mv $(distdir)/cl-t $(distdir)/ChangeLog; \
  367. fi
  368. gen-AUTHORS:
  369. if test -d .git; then \
  370. rm -f "$(distdir)/AUTHORS"; \
  371. $(top_builddir)/pre-inst-env "$(GUILE)" \
  372. "$(top_srcdir)/build-aux/generate-authors.scm" \
  373. "$(top_srcdir)" "$(distdir)/AUTHORS"; \
  374. fi
  375. # Make sure we're not shipping a file that embeds a local /gnu/store file name.
  376. assert-no-store-file-names:
  377. if grep -r --exclude=*.texi --exclude=*.info \
  378. "$(storedir)/[a-z0-9]{32}-" $(distdir) ; \
  379. then \
  380. echo "error: store file names embedded in the distribution" >&2 ; \
  381. exit 1 ; \
  382. fi
  383. # Make sure hydra.gnu.org has the important binaries.
  384. assert-binaries-available:
  385. $(top_builddir)/pre-inst-env "$(GUILE)" \
  386. "$(top_srcdir)/build-aux/check-available-binaries.scm"
  387. # Make sure the final inputs don't refer to bootstrap tools.
  388. assert-final-inputs-self-contained:
  389. $(top_builddir)/pre-inst-env "$(GUILE)" \
  390. "$(top_srcdir)/build-aux/check-final-inputs-self-contained.scm"
  391. .PHONY: sync-descriptions gen-ChangeLog gen-AUTHORS clean-go make-go
  392. .PHONY: assert-no-store-file-names assert-binaries-available
  393. .PHONY: assert-final-inputs-self-contained