From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))
Date: Fri, 3 Dec 2021 14:31:01 +0800 [thread overview]
Message-ID: <CAGP6PO+HkgTb4VNdJd2sxuyT8b9XY7gx=GHgs43d17Ehafa7aA@mail.gmail.com> (raw)
In-Reply-To: <CAGP6PO+vYXk=4Szeia1e3D0qZ380SOB9U=Lt9L8MM8qEaOLzCA@mail.gmail.com>
On Fri, Dec 3, 2021 at 2:28 PM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> I try to install vterm through straight's use-package integration with
> the following configuration:
>
> 1.
> (use-package vterm
> :straight (
> :pre-build (
> ("rm" "-fr" "build")
> ("mkdir" "build")
> ("bash" "-c" "cd build && cmake .. && make")
> )))
>
> 2.
> (use-package vterm
> :straight (
> :pre-build (
> (shell-command "rm -fr build && mkdir build && cd $_
> && cmake .. && make")
> )))
>
> 3.
> (use-package vterm
> :straight (
> :pre-build (
> ("rm" "-fr" "build")
> ("mkdir" "build")
> `("bash" "-c" "cd \"$1\" && cmake .. && make" "--"
> ,(concat (straight--repos-dir "emacs-libvterm") "build"))
> )))
>
>
> In the above methods, 1. and 2. can, but 3. can't build the vterm
> module when I'm running `M-x straight-rebuild-package RET vterm RET'.
>
> So, I want to know what's wrong with the following bash command calling method:
>
> `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat
> (straight--repos-dir "emacs-libvterm") "build"))
This method is based on the suggestion given by Radon Rosborough here [1]:
I'd recommend (untested):
`("bash" "-c" "cd \"$1\" && whatever-command" "--" ,some-other-directory)
[1] https://github.com/raxod502/straight.el/issues/800#issuecomment-933009729
prev parent reply other threads:[~2021-12-03 6:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-03 6:28 `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build")) Hongyi Zhao
2021-12-03 6:31 ` Hongyi Zhao [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGP6PO+HkgTb4VNdJd2sxuyT8b9XY7gx=GHgs43d17Ehafa7aA@mail.gmail.com' \
--to=hongyi.zhao@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).