From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build")) Date: Fri, 3 Dec 2021 14:31:01 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25330"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 03 07:33:01 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mt27x-0006PD-7J for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Dec 2021 07:33:01 +0100 Original-Received: from localhost ([::1]:49500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mt27w-00017m-41 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Dec 2021 01:33:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt26F-0008GA-Lj for help-gnu-emacs@gnu.org; Fri, 03 Dec 2021 01:31:15 -0500 Original-Received: from [2607:f8b0:4864:20::92c] (port=44018 helo=mail-ua1-x92c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mt26D-00052r-M1 for help-gnu-emacs@gnu.org; Fri, 03 Dec 2021 01:31:15 -0500 Original-Received: by mail-ua1-x92c.google.com with SMTP id j14so3524599uan.10 for ; Thu, 02 Dec 2021 22:31:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=C1HfdYjARroE0lo9Ltt79RycgJwR9t/ingGb9YTDxhM=; b=BvfvgOyP+8Nps9hh2bTqmVgwzuafzZ/z4rtLmedTvELb+jE3VDRcQxFggH+3wfNjiN AbtKvA5YBBdSMODzQoXBt+CF/euna4RqQD4nSjg035+6OfwG8QZYrl9MU14wNwCJ7n/h pDW3zwdjfaHYYq7hDhfVB116xd1TyW7rUebLwEVjtkez0N8NsoAMfA396vJOwepMgZoA 7QgmsspAuhG3cRuhL1bik7sduraPsdFngI8u2MbuLfgRADoy7irFKKhh58V3YA89lM/Y C3tR+Mf8+uNISlSji5jk5Y2OF/ROHO8qzSCtcLDkNXVdhT3R7qgPVhtWQ2fZf3dmCR0X k1kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=C1HfdYjARroE0lo9Ltt79RycgJwR9t/ingGb9YTDxhM=; b=6ip5Hk0fBpet4YRqWbuAi1UDPfl5GtySbeoXa5OJ8UH0WEvdAVXjnhCfTx1clv3OJD 7rmP2NgJSZEMRapg1kY1ijfAwH3Q8tyVW7X9EUH34m3r+32u5Qg9LOCvney5eQIWV6lL EhP/LzHbh1nvKGdb1Mw+5XipPJ8b2EJDK0f87h7vH9oHjyQioF+BCwFyG0iMp1CXPQrT ZVMmqSwYRlI4RI43FrmGS1qL0ylPU0HLiBR+T8v1viML69tI7ms4I4o/BBVlvjrwsw5h J0ILQG0nQOiTCt2ho8eEkYXzqgJaQ4s/aS0CZTcc4tkQn6Tt7KVJy6BLhGFbW+g06lWS pO3Q== X-Gm-Message-State: AOAM533E0cZr7Zu2WfWUk23tls0Svuy+Cq0bJ9AI2HBljGLYoEIyn5Sv tY7I+04adrFdBSL8Jv1GLWj/KqzVITGCqOzcgXsprSYL4toOugE5 X-Google-Smtp-Source: ABdhPJzo+k9XYLnfPjdWyEV5GRPmgcCHr4lMPDFYfOyzKQkgzTlbGyvvd1qHtYbOIyHij/UXKCSNEHqohFUYEK0DVXw= X-Received: by 2002:a05:6102:4192:: with SMTP id cd18mr18649687vsb.35.1638513072617; Thu, 02 Dec 2021 22:31:12 -0800 (PST) In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::92c (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::92c; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x92c.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:134804 Archived-At: On Fri, Dec 3, 2021 at 2:28 PM Hongyi Zhao 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