emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#36955: closed ([PATCH] machine: Add 'build-locally


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#36955: closed ([PATCH] machine: Add 'build-locally?' field for managed hosts.)
Date: Wed, 07 Aug 2019 22:30:03 +0000

Your message dated Wed, 07 Aug 2019 18:29:45 -0400
with message-id <address@hidden>
and subject line Re: [bug#36955] [PATCH] machine: Add 'build-locally?' field 
for managed hosts.
has caused the debbugs.gnu.org bug report #36955,
regarding [PATCH] machine: Add 'build-locally?' field for managed hosts.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
36955: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36955
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] machine: Add 'build-locally?' field for managed hosts. Date: Wed, 07 Aug 2019 08:44:18 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
* gnu/machine/ssh.scm (machine-ssh-configuration-build-locally?): New
variable.
(managed-host-remote-eval): Pass 'build-locally?' to 'remote-eval'.
---
 gnu/machine/ssh.scm | 26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm
index ae312597dd..1f16d9a5ea 100644
--- a/gnu/machine/ssh.scm
+++ b/gnu/machine/ssh.scm
@@ -47,6 +47,7 @@
             machine-ssh-configuration
 
             machine-ssh-configuration-host-name
+            machine-ssh-configuration-build-locally?
             machine-ssh-configuration-port
             machine-ssh-configuration-user
             machine-ssh-configuration-session))
@@ -69,15 +70,17 @@
   make-machine-ssh-configuration
   machine-ssh-configuration?
   this-machine-ssh-configuration
-  (host-name machine-ssh-configuration-host-name) ; string
-  (port      machine-ssh-configuration-port       ; integer
-             (default 22))
-  (user      machine-ssh-configuration-user       ; string
-             (default "root"))
-  (identity  machine-ssh-configuration-identity   ; path to a private key
-             (default #f))
-  (session   machine-ssh-configuration-session    ; session
-             (default #f)))
+  (host-name      machine-ssh-configuration-host-name) ; string
+  (build-locally? machine-ssh-configuration-build-locally?
+                  (default #t))
+  (port           machine-ssh-configuration-port       ; integer
+                  (default 22))
+  (user           machine-ssh-configuration-user       ; string
+                  (default "root"))
+  (identity       machine-ssh-configuration-identity   ; path to a private key
+                  (default #f))
+  (session        machine-ssh-configuration-session    ; session
+                  (default #f)))
 
 (define (machine-ssh-session machine)
   "Return the SSH session that was given in MACHINE's configuration, or create
@@ -103,7 +106,10 @@ one from the configuration's parameters if one was not 
provided."
   "Internal implementation of 'machine-remote-eval' for MACHINE instances with
 an environment type of 'managed-host."
   (maybe-raise-unsupported-configuration-error machine)
-  (remote-eval exp (machine-ssh-session machine)))
+  (remote-eval exp (machine-ssh-session machine)
+               #:build-locally?
+               (machine-ssh-configuration-build-locally?
+                (machine-configuration machine))))
 

 ;;;
-- 
2.22.0

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: Re: [bug#36955] [PATCH] machine: Add 'build-locally?' field for managed hosts. Date: Wed, 07 Aug 2019 18:29:45 -0400 User-agent: mu4e 1.2.0; emacs 26.2
Jakob L. Kreuze writes:

> Hi Chris,
>
> Christopher Lemmer Webber <address@hidden> writes:
>
>> Looks good, though I assume this is a dependency for another patch
>> that's coming?
>
> Nah, this is standalone. Just so there's an option to offload the builds
> when deploying to particularly capable machines.
>
> Regards,
> Jakob

Ok, thanks for the clarity.  Merged and pushed!


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]