guix_mirror_bot pushed a commit to branch master
in repository guix.

commit e7f413b0c6510c0bb7c5663f1d417d8a9e258259
Author: Jelle Licht <[email protected]>
AuthorDate: Thu Oct 15 14:28:10 2026 +0200

    doc: Do not regenerate translations when po.go is compiled.
    
    Building from a tarball tried to regenerate them which fails with the
    read-only source tree of 'make distcheck'.
    
    * doc/local.mk ($(srcdir)/%D%/guix.%.texi): Make 'guix/build/po.go' an 
order-only
    prerequisite.  Depend on 'guix/build/po.scm' and 
'build-aux/convert-xref.scm'.
    ($(srcdir)/%D%/guix-cookbook.%.texi): Likewise.
    ($(srcdir)/%D%/contributing.%.texi): Likewise.
---
 doc/local.mk | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/doc/local.mk b/doc/local.mk
index aa84759645a..6ab1f216ac1 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -112,7 +112,11 @@ endef
 # because the path extension is not 'pot'.
 dummy_pot = $(shell mktemp --suffix=.pot)
 
-$(srcdir)/%D%/guix.%.texi: po/doc/guix-manual.%.po 
$(srcdir)/%D%/contributing.%.texi guix/build/po.go
+# A newly compiled 'po.go' is no reason to regenerate these, which may be in
+# a read-only source tree.
+$(srcdir)/%D%/guix.%.texi: po/doc/guix-manual.%.po 
$(srcdir)/%D%/contributing.%.texi \
+  $(srcdir)/guix/build/po.scm $(srcdir)/build-aux/convert-xref.scm     \
+  | guix/build/po.go
        -$(AM_V_PO4A)$(PO4A) --no-update                        \
            --variable localized="[email protected]"                       \
            --variable master="$(srcdir)/%D%/guix.texi"         \
@@ -123,7 +127,9 @@ $(srcdir)/%D%/guix.%.texi: po/doc/guix-manual.%.po 
$(srcdir)/%D%/contributing.%.
        -$(AM_V_POXREF)LC_ALL=en_US.UTF-8 $(xref_command)
        -mv "[email protected]" "$@"
 
-$(srcdir)/%D%/guix-cookbook.%.texi: po/doc/guix-cookbook.%.po guix/build/po.go
+$(srcdir)/%D%/guix-cookbook.%.texi: po/doc/guix-cookbook.%.po          \
+  $(srcdir)/guix/build/po.scm $(srcdir)/build-aux/convert-xref.scm     \
+  | guix/build/po.go
        -$(AM_V_PO4A)$(PO4A) --no-update                                \
            --variable localized="[email protected]"                               \
            --variable master="$(srcdir)/%D%/guix-cookbook.texi"        \
@@ -134,7 +140,9 @@ $(srcdir)/%D%/guix-cookbook.%.texi: 
po/doc/guix-cookbook.%.po guix/build/po.go
        -$(AM_V_POXREF)LC_ALL=en_US.UTF-8 $(xref_command)
        -mv "[email protected]" "$@"
 
-$(srcdir)/%D%/contributing.%.texi: po/doc/guix-manual.%.po guix/build/po.go
+$(srcdir)/%D%/contributing.%.texi: po/doc/guix-manual.%.po             \
+  $(srcdir)/guix/build/po.scm $(srcdir)/build-aux/convert-xref.scm     \
+  | guix/build/po.go
        -$(AM_V_PO4A)$(PO4A) --no-update                        \
            --variable localized="[email protected]"                       \
            --variable master="$(srcdir)/%D%/contributing.texi"         \

Reply via email to