gnu: openjdk17: Update to 17.0.2
[jackhill/guix/guix.git] / Makefile.am
index 3f06ef8..2c07fe7 100644 (file)
@@ -1,5 +1,5 @@
 # GNU Guix --- Functional package management for GNU
-# Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
+# Copyright © 2012-2022 Ludovic Courtès <ludo@gnu.org>
 # Copyright © 2013 Andreas Enge <andreas@enge.fr>
 # Copyright © 2015, 2017 Alex Kost <alezost@gmail.com>
 # Copyright © 2016, 2018 Mathieu Lirzin <mthl@gnu.org>
@@ -100,6 +100,7 @@ MODULES =                                   \
   guix/extracting-download.scm                 \
   guix/git-download.scm                                \
   guix/hg-download.scm                         \
+  guix/hash.scm                                        \
   guix/swh.scm                                 \
   guix/monads.scm                              \
   guix/monad-repl.scm                          \
@@ -129,6 +130,7 @@ MODULES =                                   \
   guix/cache.scm                               \
   guix/cve.scm                                 \
   guix/workers.scm                             \
+  guix/least-authority.scm                     \
   guix/ipfs.scm                                        \
   guix/build-system.scm                                \
   guix/build-system/android-ndk.scm            \
@@ -378,6 +380,10 @@ AUX_FILES =                                                \
   gnu/packages/aux-files/chromium/master-preferences.json              \
   gnu/packages/aux-files/emacs/guix-emacs.el           \
   gnu/packages/aux-files/guix.vim                      \
+  gnu/packages/aux-files/linux-libre/5.17-arm.conf     \
+  gnu/packages/aux-files/linux-libre/5.17-arm64.conf   \
+  gnu/packages/aux-files/linux-libre/5.17-i686.conf    \
+  gnu/packages/aux-files/linux-libre/5.17-x86_64.conf  \
   gnu/packages/aux-files/linux-libre/5.15-arm.conf     \
   gnu/packages/aux-files/linux-libre/5.15-arm64.conf   \
   gnu/packages/aux-files/linux-libre/5.15-i686.conf    \
@@ -404,6 +410,7 @@ AUX_FILES =                                         \
   gnu/packages/aux-files/pack-audit.c                  \
   gnu/packages/aux-files/python/sanity-check.py                \
   gnu/packages/aux-files/python/sitecustomize.py       \
+  gnu/packages/aux-files/renpy/renpy.in        \
   gnu/packages/aux-files/run-in-namespace.c
 
 # Templates, examples.
@@ -480,7 +487,9 @@ SCM_TESTS =                                 \
   tests/gremlin.scm                            \
   tests/hackage.scm                            \
   tests/home-import.scm                                \
+  tests/http-client.scm                                \
   tests/import-git.scm                         \
+  tests/import-github.scm                      \
   tests/import-utils.scm                       \
   tests/inferior.scm                           \
   tests/lint.scm                               \
@@ -560,6 +569,7 @@ SH_TESTS =                                  \
   tests/guix-environment.sh                    \
   tests/guix-environment-container.sh          \
   tests/guix-shell.sh                          \
+  tests/guix-shell-export-manifest.sh          \
   tests/guix-graph.sh                          \
   tests/guix-describe.sh                       \
   tests/guix-repl.sh                           \
@@ -1019,10 +1029,12 @@ assert-no-store-file-names:
          exit 1 ;                                                              \
        fi
 
-# Make sure important substitutes are available.
+# Make sure important substitutes are available.  Check only the primary
+# server so that '--display-missing' doesn't print two lists.
 assert-binaries-available: $(GOBJECTS)
        $(AM_V_at)$(top_builddir)/pre-inst-env                          \
          guix weather -m "$(top_srcdir)/etc/release-manifest.scm"      \
+                       --substitute-urls="https://ci.guix.gnu.org"     \
                        --display-missing
 
 # Make sure the final inputs don't refer to bootstrap tools.
@@ -1058,21 +1070,35 @@ WEBLATE_REPO = https://framagit.org/tyreunom/guix-translations
 # form.
 download-po:
        dir=$$(mktemp -d); \
-       git clone --depth 1 "$(WEBLATE_REPO)" "$$dir/translations"; \
+       git clone --depth 1 "$(WEBLATE_REPO)" "$$dir/translations" && \
        for domain in po/doc po/guix po/packages; do \
            for po in "$$dir/translations/$$domain"/*.po; do \
                translated=$$(LANG=en_US.UTF-8 msgfmt --statistics "$$po" 2>&1 | cut -f1 -d' '); \
+               untranslated=$$(LANG=en_US.UTF-8 msgfmt --statistics "$$po" 2>&1 | rev | cut -f3 -d' ' | rev); \
+               untranslated=$${untranslated:-0}; \
+               total=$$(($$translated+$$untranslated)); \
                target=$$(basename "$$po"); \
                target="$$domain/$$target"; \
-               if msgfmt -c "$$po" && [ "$$translated" != "0" ]; then \
+               msgfmt -c "$$po"; \
+               if msgfmt -c "$$po" && [ "$$translated" != "0" ] && ([ "$$domain" != "po/doc" ] || [ "$$translated" -gt $$(($$total/10)) ] || [ -f $$target ]); then \
                    msgfilter --no-wrap -i "$$po" cat > "$$po".tmp; \
                    mv "$$po".tmp "$$target"; \
                    echo "copied $$target."; \
                else \
-                   echo "WARN: $$target ($$translated translated messages) was not added/updated."; \
+                   echo "WARN: $$target ($$translated translated messages ($$((translated/total*100))%)) was not added/updated."; \
                fi; \
            done; \
        done; \
+       for po in po/doc/*.po; do \
+           translated=$$(LANG=en_US.UTF-8 msgfmt --statistics "$$po" 2>&1 | cut -f1 -d' '); \
+           untranslated=$$(LANG=en_US.UTF-8 msgfmt --statistics "$$po" 2>&1 | rev | cut -f3 -d' ' | rev); \
+           untranslated=$${untranslated:-0}; \
+           total=$$(($$translated + $$untranslated)); \
+           if [ "$$translated" -lt "$$(($$total/20))" ]; then \
+               echo "WARN: $$po was removed because it is below the 5% threshold: $$((translated/total*100))%"; \
+               rm $$po; \
+           fi; \
+       done; \
        rm -rf "$$dir"
 .PHONY: download-po