Subject: bug#39829: closed (Done: gnu: linux: Add lsscsi.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 03 Mar 2020 16:24:02 +0000

Your bug report

#39829: [PATCH] gnu: linux: Add lsscsi.

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].

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

Subject: Done: gnu: linux: Add lsscsi.
From: Jakub Kądziołka <[email-masked]>
To: [email-masked]
Date: Tue, 3 Mar 2020 17:24:33 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

LGTM, pushed as c06c7a3aec38471dae3fb88f64558921003b2590.

Thanks!

Subject: [PATCH] gnu: linux: Add lsscsi.
From: Vincent Legoll <[email-masked]>
To: [email-masked]
Date: Sat, 29 Feb 2020 00:25:17 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Built in kvm x86_64, narchived & scp'ed to laptop, then tested there:

$ /gnu/store/*lsscsi*/bin/lsscsi
[0:0:0:0]    disk    ATA      CT120BX500SSD1   R013  /dev/sda
[1:0:0:0]    cd/dvd  TSSTcorp CDDVDW TS-L633C  SN01  /dev/sr0
[4:0:0:0]    disk    Generic  2.0 Reader   -SD 1.00  /dev/sdb
[4:0:0:1]    disk    Generic  2.0 Reader   -MS 1.00  /dev/sdc

-- 
Vincent Legoll
From 76ec9623747523e414d59df573e54e376691faa0 Mon Sep 17 00:00:00 2001
From: Vincent Legoll <[email-masked]>
Date: Sat, 29 Feb 2020 00:19:01 +0100
Subject: [PATCH] gnu: linux: Add lsscsi.

* gnu/packages/linux.scm (lsscsi): New variable.
---
 gnu/packages/linux.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 0289047d27..bea41536cc 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -40,6 +40,7 @@
 ;;; Copyright © 2019 Kei Kebreau <[email-masked]>
 ;;; Copyright © 2020 Oleg Pykhalov <[email-masked]>
 ;;; Copyright © 2020 Pierre Neidhardt <[email-masked]>
+;;; Copyright © 2020 Vincent Legoll <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1841,6 +1842,27 @@ IPv6 packet filter.
 Both commands are targeted at system administrators.")
     (license license:gpl2+)))
 
+(define-public lsscsi
+  (package
+    (name "lsscsi")
+    (version "0.31")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append
+                   "http://sg.danny.cz/scsi/lsscsi-" version ".tar.xz"))
+             (sha256
+              (base32
+               "1ry2y34xmpgxdbfbyvs8cjmbx0fn222yjdab87wj21q60nab5p75"))))
+    (build-system gnu-build-system)
+    (synopsis "Lists information about SCSI or NVMe devices in Linux")
+    (home-page "http://sg.danny.cz/scsi/lsscsi.html")
+    (description
+     "@command{lsscsi} lists SCSI logical units or SCSI targets.  It can
+also list NVMe namespaces or controllers and show the relationship between a
+device's primary node name, its SCSI generic (sg) node name and its kernel
+name.")
+    (license license:gpl2)))
+
 (define-public ebtables
   (package
     (name "ebtables")
-- 
2.25.1