This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new c3e0d76346 gnu: emacs-wucuo: Fix check phase
c3e0d76346 is described below

commit c3e0d76346d5573f37199e8786a166a04ef03c33
Author: Marcel Steinbeck <[email protected]>
AuthorDate: Fri Sep 19 19:35:30 2025 +0200

    gnu: emacs-wucuo: Fix check phase
    
    * gnu/packages/emacs-xyz.scm (emacs-wucuo): do not call the Makefile targets
    compile and clean when running make test
    
    Change-Id: I1e92507079f03c527aa60adf4979cb8f1f8fbea2
---
 gnu/packages/emacs-xyz.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 807d3cc624..ab71cba873 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -18170,6 +18170,19 @@ restrict the text width to 80 characters.")
     (arguments
      `(#:test-command '("make" "test")
        #:phases (modify-phases %standard-phases
+                  ;; The files auto-generated by `emacs-build-system' cause
+                  ;; the Makefile target `compile' to fail (due to missing
+                  ;; `lexical-binding' directives in the generated files).
+                  ;; Since `emacs-build-system' already byte-compiles the
+                  ;; source files (to `.elc' files), `make compile' is not
+                  ;; needed anyway. Additionally, the `clean' target must be
+                  ;; inhibited as it deletes all `.elc' files in the source
+                  ;; directory, which, however, are part of the installation.
+                  (add-after 'unpack 'patch-makefile
+                    (lambda _
+                      (substitute* "Makefile"
+                        (("test: compile clean")
+                         "test:"))))
                   ;; Set HOME, otherwise tests fail on loading aspell dict.
                   (add-before 'check 'set-home
                     (lambda _ (setenv "HOME" (getcwd)))))))

Reply via email to