Open lispstudent opened 3 years ago
It seems Emacs can find the shell and all the commands, including make
, etc, but not if executed directly.
I also tried @npostavs suggestion given here, to no avail.
In my case,
(add-to-list 'exec-path "c:/msys64/usr/bin")
(setenv "PATH" (mapconcat #'identity exec-path path-separator))
I was able to have BBDB recipe work within Windows + MSYS2 by adding this line to it:
:build/windows-nt (("sh" "autogen.sh") ("sh" "configure") ("make"))
The whole recipe would be:
(:name bbdb
:website "http://bbdb.sourceforge.net/"
:description "The Insidious Big Brother Database (BBDB) is a contact management utility."
:type git
:url "https://git.savannah.nongnu.org/git/bbdb.git"
:load-path ("./lisp")
;; if using vm, add `--with-vm-dir=DIR' after ./configure
:build `(("./autogen.sh") ("./configure") ("make"))
:build/windows-nt (("sh" "autogen.sh") ("sh" "configure") ("make"))
:features bbdb-loaddefs
:autoloads nil
:info "doc")
Would this be the canonical way to fix such issues?
Would it be fine to submit PRs for such cases?
Thanks for merging! 👍
I am able to use complex recipes, like
org-mode
.But with some, I am experiencing the following behavior (as an example, 'bbdb'):
Executing this:
I get error:
And see this in the backtrace:
But if I run this elisp snippet,
autogen.sh
and./configure
run just fine:This is with latest el-get on Emacs 27.1 running from Windows 10 with MSYS2 as shell.
Could somebody please give me some pointers on how to fix this?