GNU bug report logs - #36866
[PATCH] added trezord package

Previous Next

Package: guix-patches;

Reported by: mjbecze <at> riseup.net

Date: Wed, 31 Jul 2019 00:13:01 UTC

Severity: normal

Tags: patch

Done: Julien Lepiller <julien <at> lepiller.eu>

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 36866 in the body.
You can then email your comments to 36866 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#36866; Package guix-patches. (Wed, 31 Jul 2019 00:13:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to mjbecze <at> riseup.net:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 31 Jul 2019 00:13:01 GMT) Full text and rfc822 format available.

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

From: mjbecze <at> riseup.net
To: guix-patches <at> gnu.org
Subject: [PATCH] added trezord package
Date: Tue, 30 Jul 2019 17:11:59 -0700
 
---
 gnu/packages/trezor.scm | 48 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 gnu/packages/trezor.scm

diff --git a/gnu/packages/trezor.scm b/gnu/packages/trezor.scm
new file mode 100644
index 0000000000..6da61d7f56
--- /dev/null
+++ b/gnu/packages/trezor.scm
@@ -0,0 +1,48 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright � 2018 Pierre Neidhardt <mail <at> ambrevar.xyz>
+;;; Copyright � 2019 Tobias Geerinckx-Rice <me <at> tobias.gr>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or
(at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages trezor)
+  #:use-module (guix licenses) 
+  #:use-module (guix packages)
+  #:use-module (guix git-download)
+  #:use-module (guix download)
+  #:use-module (guix build-system go)
+  #:use-module (gnu packages golang))
+
+(define-public trezord
+  (package
+    (name "trezord")
+    (version "2.0.17")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/trezor/trezord-go/archive/v" version
+             ".tar.gz"))
+       (sha256
+        (base32
"1r68yb1q8v3vbxi95gsq1nfjw2v59sykchrbbc2kppy3cymfk411"))
+       (file-name (string-append name "-" version "-source"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/trezor/trezord-go"))
+    (home-page "https://trezor.io")
+    (synopsis "Trezor Communication Daemon aka Trezor Bridge (written
in Go)")
+    (description "This allows a Trezor hardware wallet to communicate
to the Trezor
+ wallet.")
+    (license lgpl3+)))
-- 
2.22.0





Information forwarded to guix-patches <at> gnu.org:
bug#36866; Package guix-patches. (Thu, 01 Aug 2019 01:40:02 GMT) Full text and rfc822 format available.

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

From: Martin Becze <mjbecze <at> riseup.net>
To: 36866 <at> debbugs.gnu.org
Subject: [PATCH] added trezord package
Date: Wed, 31 Jul 2019 20:38:53 -0500
heyyy does anyone know if this is the correct way to open a PR to guix?
kinda missing easy github mode here... lol





Information forwarded to guix-patches <at> gnu.org:
bug#36866; Package guix-patches. (Thu, 01 Aug 2019 06:13:02 GMT) Full text and rfc822 format available.

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

From: Julien Lepiller <julien <at> lepiller.eu>
To: Martin Becze <mjbecze <at> riseup.net>,36866 <at> debbugs.gnu.org
Subject: Re: [bug#36866] [PATCH] added trezord package
Date: Thu, 01 Aug 2019 08:12:25 +0200
Le 1 août 2019 03:38:53 GMT+02:00, Martin Becze <mjbecze <at> riseup.net> a écrit :
>heyyy does anyone know if this is the correct way to open a PR to guix?
>kinda missing easy github mode here... lol

Hey Martin,

You're on the right track. Now, you just have to send your patches to this bug (36866 <at> debbugs.gnu.org) with git send-email. If there's only one patch, you may send it as an attachment instead, but send-email is the prefered way.




Information forwarded to guix-patches <at> gnu.org:
bug#36866; Package guix-patches. (Thu, 01 Aug 2019 06:49:02 GMT) Full text and rfc822 format available.

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

From: Julien Lepiller <julien <at> lepiller.eu>
To: Martin Becze <mjbecze <at> riseup.net>,36866 <at> debbugs.gnu.org
Subject: Re: [bug#36866] [PATCH] added trezord package
Date: Thu, 01 Aug 2019 08:48:18 +0200
Le 1 août 2019 08:12:25 GMT+02:00, Julien Lepiller <julien <at> lepiller.eu> a écrit :
>Le 1 août 2019 03:38:53 GMT+02:00, Martin Becze <mjbecze <at> riseup.net> a
>écrit :
>>heyyy does anyone know if this is the correct way to open a PR to
>guix?
>>kinda missing easy github mode here... lol
>
>Hey Martin,
>
>You're on the right track. Now, you just have to send your patches to
>this bug (36866 <at> debbugs.gnu.org) with git send-email. If there's only
>one patch, you may send it as an attachment instead, but send-email is
>the prefered way.

Hi again,

For some reason I didn't see your previous email with the patch, but I do now. Can you make sure the copyright line at the beginning is correct? It should only mentionned people who worked on that file, including you.

Github tarballs are autogenerated, but get regenerated from time to time and they are not stable. We prefer to use tge git-fetch method for github, since it is more stable. There thould be plenty of examples in the repo, but we can take care of that. Otherwise, nice patch! Could you send an updated one to this bug number? Thank you!




Information forwarded to guix-patches <at> gnu.org:
bug#36866; Package guix-patches. (Thu, 01 Aug 2019 19:32:02 GMT) Full text and rfc822 format available.

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

From: mjbecze <at> riseup.net
To: Julien Lepiller <julien <at> lepiller.eu>
Cc: 36866 <at> debbugs.gnu.org
Subject: [PATCH 2/2] fixed copyright line and use git-fetch
Date: Thu, 01 Aug 2019 12:31:44 -0700

---
 gnu/packages/trezor.scm | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/trezor.scm b/gnu/packages/trezor.scm
index 6da61d7f56..9f43d67175 100644
--- a/gnu/packages/trezor.scm
+++ b/gnu/packages/trezor.scm
@@ -1,6 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright � 2018 Pierre Neidhardt <mail <at> ambrevar.xyz>
-;;; Copyright � 2019 Tobias Geerinckx-Rice <me <at> tobias.gr>
+;;; Copyright � 2019 Martin Becze <mjbecze <at> riseup.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -28,16 +27,16 @@
 (define-public trezord
   (package
     (name "trezord")
-    (version "2.0.17")
+    (version "v2.0.17")
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append
-             "https://github.com/trezor/trezord-go/archive/v" version
-             ".tar.gz"))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/trezor/trezord-go.git")
+             (commit version)))
        (sha256
-        (base32
"1r68yb1q8v3vbxi95gsq1nfjw2v59sykchrbbc2kppy3cymfk411"))
-       (file-name (string-append name "-" version "-source"))))
+        (base32
"0nqzpq0i3crh0i4r1cppja5sn3rwi1fv9afxzwzv63096x5l30a7"))
+       (file-name (git-file-name name version))))
     (build-system go-build-system)
     (arguments
      '(#:import-path "github.com/trezor/trezord-go"))
-- 
2.22.0





Reply sent to Julien Lepiller <julien <at> lepiller.eu>:
You have taken responsibility. (Thu, 01 Aug 2019 20:17:02 GMT) Full text and rfc822 format available.

Notification sent to mjbecze <at> riseup.net:
bug acknowledged by developer. (Thu, 01 Aug 2019 20:17:02 GMT) Full text and rfc822 format available.

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

From: Julien Lepiller <julien <at> lepiller.eu>
To: mjbecze <at> riseup.net
Cc: 36866-done <at> debbugs.gnu.org
Subject: Re: [PATCH 2/2] fixed copyright line and use git-fetch
Date: Thu, 1 Aug 2019 22:16:15 +0200
Pushed as 01b37d0f74e483c1197f82b67b8575c0771bf08c, thank you! I've put
your package definition in finance.scm, along with bitcoin-core,
monero, and other trezor stuff. I also changed the version back to what
it was in your original patch ("2.0.17" instead of "v2.0.17") and used
(string-append "v" version) as the commit.

Thank you again for your contribution!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 30 Aug 2019 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 240 days ago.

Previous Next


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