Subject: bug#72416: closed (Re: [bug#72416] Improved patch with udev rules and described changes)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 14 Aug 2024 10:11:02 +0000

Your bug report

#72416: [PATCH] gnu: usbrelay: Update to 1.2.1.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
72416: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72416
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#72416] Improved patch with udev rules and described changes
From: Christopher Baines <[email-masked]>
To: Evgeny Pisemsky <[email-masked]>
Cc: [email-masked]
Date: Wed, 14 Aug 2024 11:10:16 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Evgeny Pisemsky <[email-masked]> writes:

> From 32639b4f86ffd3b9120bd0882ca4532280e6579e Mon Sep 17 00:00:00 2001
> Message-ID: <[email-masked]>
> From: Evgeny Pisemsky <[email-masked]>
> Date: Wed, 7 Aug 2024 11:55:11 +0300
> Subject: [PATCH] gnu: usbrelay: Update to 1.2.1.
>
> * gnu/packages/hardware.scm (usbrelay): Update to 1.2.1.
> [arguments]: Install manpage and udev rules, specify actual version.
>
> Change-Id: I5b889889c528d5526c8cfcc66d56b2b9d8d60437
> ---
>  gnu/packages/hardware.scm | 40 +++++++++++++++++++++++++--------------
>  1 file changed, 26 insertions(+), 14 deletions(-)

Thanks for the patch, I tweaked the indentation to make the diff clearer
and pushed this to master as ff185dc00319af1dede83df465288e73dc0e5ff5.

Chris

Subject: [PATCH] gnu: usbrelay: Update to 1.2.1.
From: Evgeny Pisemsky <[email-masked]>
To: [email-masked]
Date: Fri, 02 Aug 2024 11:30:29 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

>From 523d0096745e8e649b966101f528b402ec06fc48 Mon Sep 17 00:00:00 2001
Message-ID: <[email-masked]>
From: Evgeny Pisemsky <[email-masked]>
Date: Fri, 2 Aug 2024 11:00:11 +0300
Subject: [PATCH] gnu: usbrelay: Update to 1.2.1.

* gnu/packages/hardware.scm (usbrelay): Update to 1.2.1.

Change-Id: I5b889889c528d5526c8cfcc66d56b2b9d8d60437
---
 gnu/packages/hardware.scm | 38 +++++++++++++++++++++++---------------
 1 file changed, 23 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index 468e2adc3b..349b928713 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -1580,28 +1580,36 @@ (define-public lxi-tools
 (define-public usbrelay
   (package
     (name "usbrelay")
-    (version "1.2")
-    (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://github.com/darrylb123/usbrelay")
-                    (commit version)))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "0fr3wglr2c6myg4k6ai2p5z38prclcnk2ngik15sq16fnp6qg750"))))
+    (version "1.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/darrylb123/usbrelay")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1xw2fqx4drmkvv587vkz3aicp6pw1mzxr8bjz8wad9j4c0r24cgn"))))
     (build-system gnu-build-system)
     (arguments
      (list
       #:phases #~(modify-phases %standard-phases
-                   (delete 'configure)) ;no configure script
-      #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
-                           (string-append "PREFIX=" #$output)
+                   ;; No configure script.
+                   (delete 'configure)
+                   (add-after 'install 'install-manpage
+                     (lambda _
+                       (install-file "usbrelay.1"
+                                     (string-append #$output "/share/man/man1")))))
+      #:make-flags #~(list (string-append "PREFIX=" #$output)
+                           (string-append "CC=" #$(cc-for-target))
                            (string-append "LDFLAGS=-Wl,-rpath="
                                           (string-append #$output "/lib"))
                            "LDCONFIG=true"
-                           "USBMAJOR=$(USBLIBVER)")
-      #:tests? #f))                     ;no test suite
+                           (string-append "USBMAJOR=" #$version)
+                           (string-append "USBLIBVER=" #$version)
+                           (string-append "VERSION=" #$version))
+      ;; No test suite.
+      #:tests? #f))
     (inputs (list hidapi))
     (home-page "https://github.com/darrylb123/usbrelay")
     (synopsis "Control USB relay modules")

base-commit: b20956651a53a8f23828fdeb6945e1a31e6997a8
-- 
2.45.2