GNU bug report logs -
#76690
[PATCH emacs-team 0/4] Emacs build fixes + enable native comp by default?
Previous Next
Reported by: Morgan Smith <Morgan.J.Smith <at> outlook.com>
Date: Sun, 2 Mar 2025 20:59:01 UTC
Severity: normal
Tags: patch
Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 76690 <at> debbugs.gnu.org (full text, mbox):
* guix/build-system/emacs.scm(emacs-build): Add 'lisp-directory' key.
* guix/build/emacs-build-system.scm(unpack): Change into 'lisp-directory'
after unpacking.
Change-Id: I3991af7188de72b29b1c6985ffe7185216cedb35
---
guix/build-system/emacs.scm | 2 ++
guix/build/emacs-build-system.scm | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/guix/build-system/emacs.scm b/guix/build-system/emacs.scm
index 06eec43ec4..27a029f258 100644
--- a/guix/build-system/emacs.scm
+++ b/guix/build-system/emacs.scm
@@ -87,6 +87,7 @@ (define* (emacs-build name inputs
(test-command ''("make" "check"))
(phases '%standard-phases)
(outputs '("out"))
+ (lisp-directory ".")
(include (quote %default-include))
(exclude (quote %default-exclude))
(search-paths '())
@@ -105,6 +106,7 @@ (define* (emacs-build name inputs
(use-modules #$@(sexp->gexp modules))
(emacs-build #:name #$name
#:source #+source
+ #:lisp-directory #$lisp-directory
#:system #$system
#:test-command #$test-command
#:tests? #$tests?
diff --git a/guix/build/emacs-build-system.scm b/guix/build/emacs-build-system.scm
index aa083c6409..4e52122f22 100644
--- a/guix/build/emacs-build-system.scm
+++ b/guix/build/emacs-build-system.scm
@@ -67,7 +67,7 @@ (define (store-file->elisp-source-file file)
(strip-store-file-name file) suffix))))
(string-append name suffix))))
-(define* (unpack #:key source #:allow-other-keys)
+(define* (unpack #:key source lisp-directory #:allow-other-keys)
"Unpack SOURCE into the build directory. SOURCE may be a compressed
archive, a directory, or an Emacs Lisp file."
(if (string-suffix? ".el" source)
@@ -76,7 +76,9 @@ (define* (unpack #:key source #:allow-other-keys)
(chdir "source")
(copy-file source (store-file->elisp-source-file source))
#t)
- (gnu:unpack #:source source)))
+ (begin
+ (gnu:unpack #:source source)
+ (chdir lisp-directory))))
(define* (expand-load-path #:key (prepend-source? #t) #:allow-other-keys)
"Expand EMACSLOADPATH, so that inputs, whose code resides in subdirectories,
--
2.48.1
This bug report was last modified 69 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.