mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
gnu: emacs-realgud: Fix realgud:run-process problem.
* gnu/packages/emacs-xyz.scm (emacs-realgud)[phases] {fix-realgud:run-process-void-error}: New phase. {fix-autogen-script}: Return #t. {autogen}: Likewise. {set-home}: Likewise. {remove-realgud-pkg.el}: Likewise.
This commit is contained in:
parent
ecbde6505c
commit
99d27a1353
1 changed files with 16 additions and 3 deletions
|
@ -6010,22 +6010,35 @@ (define-public emacs-realgud
|
|||
`(#:tests? #t
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-realgud:run-process-void-error
|
||||
;; See: https://github.com/realgud/realgud/issues/269.
|
||||
(lambda _
|
||||
(substitute* '("realgud/debugger/gdb/gdb.el"
|
||||
"realgud/debugger/gub/gub.el")
|
||||
(("^\\(require 'load-relative\\).*" anchor)
|
||||
(string-append anchor
|
||||
"(require-relative-list \
|
||||
'(\"../../common/run\") \"realgud:\")\n")))
|
||||
#t))
|
||||
(add-after 'unpack 'fix-autogen-script
|
||||
(lambda _
|
||||
(substitute* "autogen.sh"
|
||||
(("./configure") "sh configure"))))
|
||||
(("./configure") "sh configure"))
|
||||
#t))
|
||||
(add-after 'fix-autogen-script 'autogen
|
||||
(lambda _
|
||||
(setenv "CONFIG_SHELL" "sh")
|
||||
(invoke "sh" "autogen.sh")))
|
||||
(add-after 'fix-autogen-script 'set-home
|
||||
(lambda _
|
||||
(setenv "HOME" (getenv "TMPDIR"))))
|
||||
(setenv "HOME" (getenv "TMPDIR"))
|
||||
#t))
|
||||
(add-before 'patch-el-files 'remove-realgud-pkg.el
|
||||
(lambda _
|
||||
;; FIXME: `patch-el-files' crashes on this file with error:
|
||||
;; unable to locate "bashdb".
|
||||
(delete-file "./test/test-regexp-bashdb.el"))))
|
||||
(delete-file "./test/test-regexp-bashdb.el")
|
||||
#t)))
|
||||
#:include (cons* ".*\\.el$" %default-include)))
|
||||
(native-inputs
|
||||
`(("autoconf" ,autoconf)
|
||||
|
|
Loading…
Reference in a new issue