GNU bug report logs - #31174
[PATCH] gnu: Add go-golang-org-x-crypto-ssh-terminal.

Previous Next

Package: guix-patches;

Reported by: Tomáš Čech <sleep_walker <at> gnu.org>

Date: Mon, 16 Apr 2018 09:12:01 UTC

Severity: normal

Tags: fixed, patch

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31174 in the body.
You can then email your comments to 31174 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#31174; Package guix-patches. (Mon, 16 Apr 2018 09:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tomáš Čech <sleep_walker <at> gnu.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 16 Apr 2018 09:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tomáš Čech <sleep_walker <at> gnu.org>
To: guix-patches <at> gnu.org
Cc: Tomáš Čech <sleep_walker <at> gnu.org>
Subject: [PATCH] gnu: Add go-golang-org-x-crypto-ssh-terminal.
Date: Mon, 16 Apr 2018 11:11:20 +0200
* gnu/packages/syncthing.scm (go-golang-org-x-crypto-ssh-terminal): New
variable.
---
 gnu/packages/syncthing.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/syncthing.scm b/gnu/packages/syncthing.scm
index 4c607600d..a6cff9759 100644
--- a/gnu/packages/syncthing.scm
+++ b/gnu/packages/syncthing.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2016 Petter <petter <at> mykolab.ch>
 ;;; Copyright © 2016, 2017, 2018 Leo Famulari <leo <at> famulari.name>
+;;; Copyright © 2018 Tomáš Čech <sleep_walker <at> gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1200,6 +1201,44 @@ Tiny Encryption Algorithm (XTEA) block cipher.")
       (home-page "https://go.googlesource.com/crypto/")
       (license bsd-3))))
 
+(define-public go-golang-org-x-crypto-ssh-terminal
+  (let ((commit "95a4943f35d008beabde8c11e5075a1b714e6419")
+        (revision "1"))
+    (package
+      (name "go-golang-org-x-crypto-ssh-terminal")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://go.googlesource.com/crypto")
+                      (commit commit)))
+                (file-name (string-append "go.googlesource.com-crypto-"
+                                          version "-checkout"))
+                (sha256
+                 (base32
+                  "0bkm0jx9mxmi1liabb9c04kf765n7d0062zdp3zmvzyamsq00lcx"))))
+      (build-system go-build-system)
+      (inputs
+       `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
+      (arguments
+       `(#:import-path "golang.org/x/crypto/ssh/terminal"
+         #:unpack-path "golang.org/x/crypto"
+         #:phases
+         (modify-phases %standard-phases
+           (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
+             (lambda* (#:key outputs #:allow-other-keys)
+               (map (lambda (file)
+                      (make-file-writable file))
+                    (find-files
+                      (string-append (assoc-ref outputs "out")
+                                     "/src/golang.org/x/crypto/ed25519/testdata")
+                      ".*\\.gz$"))
+               #t)))))
+      (synopsis "TBD")
+      (description "TBD")
+      (home-page "https://go.googlesource.com/crypto/")
+      (license bsd-3))))
+
 (define* (go-golang-org-x-net-union #:optional
                                  (packages (list go-golang-org-x-net-ipv4
                                                  go-golang-org-x-net-bpf
-- 
2.16.3





Information forwarded to guix-patches <at> gnu.org:
bug#31174; Package guix-patches. (Tue, 17 Apr 2018 19:53:01 GMT) Full text and rfc822 format available.

Message #8 received at 31174 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Tomáš Čech <sleep_walker <at> gnu.org>
Cc: 31174 <at> debbugs.gnu.org
Subject: Re: [bug#31174] [PATCH] gnu: Add go-golang-org-x-crypto-ssh-terminal.
Date: Tue, 17 Apr 2018 15:52:14 -0400
[Message part 1 (text/plain, inline)]
On Mon, Apr 16, 2018 at 11:11:20AM +0200, Tomáš Čech wrote:
> * gnu/packages/syncthing.scm (go-golang-org-x-crypto-ssh-terminal): New
> variable.

Thanks!

In general, LGTM.

Did you put this in the Syncthing module because that's where the
rest of the Go 'x' libraries live? If so, I'd rather move the full 'x'
suite to (gnu packages golang), since they are not specific to Syncthing
and are used by nearly every Go application. I can handle this move.

> +      (synopsis "TBD")
> +      (description "TBD")

This is the last missing bit :)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#31174; Package guix-patches. (Tue, 17 Apr 2018 20:09:02 GMT) Full text and rfc822 format available.

Message #11 received at 31174 <at> debbugs.gnu.org (full text, mbox):

From: Tomáš Čech <sleep_walker <at> gnu.org>
To: Leo Famulari <leo <at> famulari.name>
Cc: 31174 <at> debbugs.gnu.org
Subject: Re: [bug#31174] [PATCH] gnu: Add go-golang-org-x-crypto-ssh-terminal.
Date: Tue, 17 Apr 2018 22:07:59 +0200
[Message part 1 (text/plain, inline)]
On Tue, Apr 17, 2018 at 03:52:14PM -0400, Leo Famulari wrote:
>On Mon, Apr 16, 2018 at 11:11:20AM +0200, Tomáš Čech wrote:
>> * gnu/packages/syncthing.scm (go-golang-org-x-crypto-ssh-terminal): New
>> variable.
>
>Thanks!
>
>In general, LGTM.
>
>Did you put this in the Syncthing module because that's where the
>rest of the Go 'x' libraries live? If so, I'd rather move the full 'x'
>suite to (gnu packages golang), since they are not specific to Syncthing
>and are used by nearly every Go application. I can handle this move.

Yes, my motivation was to keep all related packages together.

Moving go-golang* packages to (gnu packages golang) sounds right. I
will put it this to the same spot and let you do the rearrangement if
you don't mind.

>
>> +      (synopsis "TBD")
>> +      (description "TBD")
>
>This is the last missing bit :)

Ooops, sorry!

S_W
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#31174; Package guix-patches. (Tue, 17 Apr 2018 21:51:01 GMT) Full text and rfc822 format available.

Message #14 received at 31174 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Tomáš Čech <sleep_walker <at> gnu.org>
Cc: 31174 <at> debbugs.gnu.org
Subject: Re: [bug#31174] [PATCH] gnu: Add go-golang-org-x-crypto-ssh-terminal.
Date: Tue, 17 Apr 2018 17:50:01 -0400
[Message part 1 (text/plain, inline)]
On Tue, Apr 17, 2018 at 10:07:59PM +0200, Tomáš Čech wrote:
> On Tue, Apr 17, 2018 at 03:52:14PM -0400, Leo Famulari wrote:
> > On Mon, Apr 16, 2018 at 11:11:20AM +0200, Tomáš Čech wrote:
> > > * gnu/packages/syncthing.scm (go-golang-org-x-crypto-ssh-terminal): New
> > > variable.
> > 
> > Thanks!
> > 
> > In general, LGTM.
> > 
> > Did you put this in the Syncthing module because that's where the
> > rest of the Go 'x' libraries live? If so, I'd rather move the full 'x'
> > suite to (gnu packages golang), since they are not specific to Syncthing
> > and are used by nearly every Go application. I can handle this move.
> 
> Yes, my motivation was to keep all related packages together.
> 
> Moving go-golang* packages to (gnu packages golang) sounds right. I
> will put it this to the same spot and let you do the rearrangement if
> you don't mind.

Okay! Moved in 269d0858c6c01145b07be8ebb170e448894b112a

> > > +      (synopsis "TBD")
> > > +      (description "TBD")
> > 
> > This is the last missing bit :)
> 
> Ooops, sorry!

Can you fill these out and send an updated patch?
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#31174; Package guix-patches. (Thu, 19 Apr 2018 08:07:02 GMT) Full text and rfc822 format available.

Message #17 received at 31174 <at> debbugs.gnu.org (full text, mbox):

From: Tomáš Čech <sleep_walker <at> gnu.org>
To: Leo Famulari <leo <at> famulari.name>
Cc: Tomáš Čech <sleep_walker <at> gnu.org>,
 31174 <at> debbugs.gnu.org
Subject: [PATCH] gnu: Add go-golang-org-x-crypto-ssh-terminal.
Date: Thu, 19 Apr 2018 10:05:55 +0200
* gnu/packages/golang.scm (go-golang-org-x-crypto-ssh-terminal): New variable.
---
 gnu/packages/golang.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e2fbd54a5..485aa02c4 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2017 Alex Vong <alexvong1995 <at> gmail.com>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me <at> tobias.gr>
 ;;; Copyright © 2018 Christopher Baines <mail <at> cbaines.net>
+;;; Copyright © 2018 Tomáš Čech <sleep_walker <at> gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1257,3 +1258,43 @@ functions for normalizing Unicode strings.")
 limiting in Go.")
       (home-page "https://godoc.org/golang.org/x/time/rate")
       (license license:bsd-3))))
+
+(define-public go-golang-org-x-crypto-ssh-terminal
+  (let ((commit "95a4943f35d008beabde8c11e5075a1b714e6419")
+        (revision "1"))
+    (package
+      (name "go-golang-org-x-crypto-ssh-terminal")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://go.googlesource.com/crypto")
+                      (commit commit)))
+                (file-name (string-append "go.googlesource.com-crypto-"
+                                          version "-checkout"))
+                (sha256
+                 (base32
+                  "0bkm0jx9mxmi1liabb9c04kf765n7d0062zdp3zmvzyamsq00lcx"))))
+      (build-system go-build-system)
+      (inputs
+       `(("go-golang-org-x-sys-unix" ,go-golang-org-x-sys-unix)))
+      (arguments
+       `(#:import-path "golang.org/x/crypto/ssh/terminal"
+         #:unpack-path "golang.org/x/crypto"
+         #:phases
+         (modify-phases %standard-phases
+           (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
+             (lambda* (#:key outputs #:allow-other-keys)
+               (map (lambda (file)
+                      (make-file-writable file))
+                    (find-files
+                      (string-append (assoc-ref outputs "out")
+                                     "/src/golang.org/x/crypto/ed25519/testdata")
+                      ".*\\.gz$"))
+               #t)))))
+      (synopsis "Terminal functions for Go")
+      (description "This package provides @{terminal}, which implements
+support functions for dealing with terminals, as commonly found on UNIX
+systems.")
+      (home-page "https://go.googlesource.com/crypto/")
+      (license license:bsd-3))))
-- 
2.17.0





Information forwarded to guix-patches <at> gnu.org:
bug#31174; Package guix-patches. (Thu, 19 Apr 2018 14:41:01 GMT) Full text and rfc822 format available.

Message #20 received at 31174 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Tomáš Čech <sleep_walker <at> gnu.org>
Cc: 31174 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add go-golang-org-x-crypto-ssh-terminal.
Date: Thu, 19 Apr 2018 10:40:54 -0400
[Message part 1 (text/plain, inline)]
On Thu, Apr 19, 2018 at 10:05:55AM +0200, Tomáš Čech wrote:
> * gnu/packages/golang.scm (go-golang-org-x-crypto-ssh-terminal): New variable.

LGTM, thanks!

Also, please don't hesitate to suggest changes to the go-build-system.
The current implementation is a bit primitive and will probably need
some changes as we add more Go applications.
[signature.asc (application/pgp-signature, inline)]

Added tag(s) fixed. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Sun, 22 Apr 2018 21:43:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 31174 <at> debbugs.gnu.org and Tomáš Čech <sleep_walker <at> gnu.org> Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Sun, 22 Apr 2018 21:43:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#31174; Package guix-patches. (Sun, 22 Apr 2018 22:19:02 GMT) Full text and rfc822 format available.

Message #27 received at 31174-done <at> debbugs.gnu.org (full text, mbox):

From: Tomáš Čech <sleep_walker <at> gnu.org>
To: 31174-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add go-golang-org-x-crypto-ssh-terminal.
Date: Mon, 23 Apr 2018 00:18:46 +0200
[Message part 1 (text/plain, inline)]
Pushed. Closing.

Thanks for review!

S_W
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 21 May 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 35 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.