GNU bug report logs - #49851
[PATCH] gnu: Add libiscsi.

Previous Next

Package: guix-patches;

Reported by: Ron Nazarov <noisytoot <at> disroot.org>

Date: Tue, 3 Aug 2021 23:06:02 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

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 49851 in the body.
You can then email your comments to 49851 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#49851; Package guix-patches. (Tue, 03 Aug 2021 23:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ron Nazarov <noisytoot <at> disroot.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 03 Aug 2021 23:06:02 GMT) Full text and rfc822 format available.

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

From: Ron Nazarov <noisytoot <at> disroot.org>
To: guix-patches <at> gnu.org
Cc: Ron Nazarov <noisytoot <at> disroot.org>
Subject: [PATCH] gnu: Add libiscsi.
Date: Wed,  4 Aug 2021 00:04:54 +0100
* gnu/packages/scsi.scm (libiscsi): New variable.
---
 gnu/packages/scsi.scm | 34 ++++++++++++++++++++++++++++++++--
 1 file changed, 32 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/scsi.scm b/gnu/packages/scsi.scm
index 4c3bfd7e33..ae4f60c10d 100644
--- a/gnu/packages/scsi.scm
+++ b/gnu/packages/scsi.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2016 Chris Marusich <cmmarusich <at> gmail.com>
 ;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me <at> tobias.gr>
+;;; Copyright © 2021 Noisytoot <noisytoot <at> disroot.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -19,10 +20,12 @@
 
 (define-module (gnu packages scsi)
   #:use-module ((guix licenses)
-                #:select (gpl2+ bsd-2 bsd-3))
+                #:select (gpl2+ bsd-2 bsd-3 lgpl2.1+))
   #:use-module (guix packages)
   #:use-module (guix download)
-  #:use-module (guix build-system gnu))
+  #:use-module (guix git-download)
+  #:use-module (guix build-system gnu)
+  #:use-module (gnu packages autotools))
 
 (define-public sg3-utils
   (package
@@ -65,3 +68,30 @@ used in C and C++ programs to interact with SCSI devices.")
     ;;   various source code files refer to a file called "BSD_LICENSE" [...]."
     ;; Some files (like sg_compare_and_write.c) retain their 3-clause headers!
     (license (list gpl2+ bsd-2 bsd-3))))
+
+(define-public libiscsi
+  (package
+    (name "libiscsi")
+    (version "1.19.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/sahlberg/libiscsi")
+             (commit version)))
+       (sha256
+        (base32
+         "0ajrkkg5awmi8m4b3mha7h07ylg18k252qprvk1sgq0qbyd66zy7"))
+       (file-name (git-file-name name version))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)))
+    (synopsis "Client-side library for iSCSI")
+    (description "Libiscsi is a client-side library to implement
+the iSCSI protocol that can be used to access the resources of an iSCSI target.
+It is fully asynchronous with regards to iSCSI commands and SCSI tasks,
+but a synchronous layer is also provided for ease of use for simpler applications.")
+    (home-page "https://github.com/sahlberg/libiscsi")
+    (license (list gpl2+ lgpl2.1+))))
-- 
2.32.0





Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Thu, 24 Feb 2022 05:12:02 GMT) Full text and rfc822 format available.

Notification sent to Ron Nazarov <noisytoot <at> disroot.org>:
bug acknowledged by developer. (Thu, 24 Feb 2022 05:12:02 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ron Nazarov <noisytoot <at> disroot.org>
Cc: 49851-done <at> debbugs.gnu.org
Subject: Re: bug#49851: [PATCH] gnu: Add libiscsi.
Date: Thu, 24 Feb 2022 00:10:57 -0500
Hello!

Ron Nazarov <noisytoot <at> disroot.org> writes:

> * gnu/packages/scsi.scm (libiscsi): New variable.
> ---
>  gnu/packages/scsi.scm | 34 ++++++++++++++++++++++++++++++++--
>  1 file changed, 32 insertions(+), 2 deletions(-)
>
> diff --git a/gnu/packages/scsi.scm b/gnu/packages/scsi.scm
> index 4c3bfd7e33..ae4f60c10d 100644
> --- a/gnu/packages/scsi.scm
> +++ b/gnu/packages/scsi.scm
> @@ -1,6 +1,7 @@
>  ;;; GNU Guix --- Functional package management for GNU
>  ;;; Copyright © 2016 Chris Marusich <cmmarusich <at> gmail.com>
>  ;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me <at> tobias.gr>
> +;;; Copyright © 2021 Noisytoot <noisytoot <at> disroot.org>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -19,10 +20,12 @@
>  
>  (define-module (gnu packages scsi)
>    #:use-module ((guix licenses)
> -                #:select (gpl2+ bsd-2 bsd-3))
> +                #:select (gpl2+ bsd-2 bsd-3 lgpl2.1+))
>    #:use-module (guix packages)
>    #:use-module (guix download)
> -  #:use-module (guix build-system gnu))
> +  #:use-module (guix git-download)
> +  #:use-module (guix build-system gnu)
> +  #:use-module (gnu packages autotools))
>  
>  (define-public sg3-utils
>    (package
> @@ -65,3 +68,30 @@ used in C and C++ programs to interact with SCSI devices.")
>      ;;   various source code files refer to a file called "BSD_LICENSE" [...]."
>      ;; Some files (like sg_compare_and_write.c) retain their 3-clause headers!
>      (license (list gpl2+ bsd-2 bsd-3))))
> +
> +(define-public libiscsi
> +  (package
> +    (name "libiscsi")
> +    (version "1.19.0")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/sahlberg/libiscsi")
> +             (commit version)))
> +       (sha256
> +        (base32
> +         "0ajrkkg5awmi8m4b3mha7h07ylg18k252qprvk1sgq0qbyd66zy7"))
> +       (file-name (git-file-name name version))))
> +    (build-system gnu-build-system)
> +    (native-inputs
> +     `(("autoconf" ,autoconf)
> +       ("automake" ,automake)
> +       ("libtool" ,libtool)))
> +    (synopsis "Client-side library for iSCSI")
> +    (description "Libiscsi is a client-side library to implement
> +the iSCSI protocol that can be used to access the resources of an iSCSI target.
> +It is fully asynchronous with regards to iSCSI commands and SCSI tasks,
> +but a synchronous layer is also provided for ease of use for simpler applications.")
> +    (home-page "https://github.com/sahlberg/libiscsi")
> +    (license (list gpl2+ lgpl2.1+))))

Well done!  I've modified it a bit like so:

modified   gnu/packages/scsi.scm
@@ -87,14 +87,16 @@ (define-public libiscsi
          "0ajrkkg5awmi8m4b3mha7h07ylg18k252qprvk1sgq0qbyd66zy7"))
        (file-name (git-file-name name version))))
     (build-system gnu-build-system)
-    (native-inputs
-     `(("autoconf" ,autoconf)
-       ("automake" ,automake)
-       ("libtool" ,libtool)))
+    (native-inputs (list autoconf automake libtool))

For the new style inputs.

     (synopsis "Client-side library for iSCSI")
-    (description "Libiscsi is a client-side library to implement
-the iSCSI protocol that can be used to access the resources of an iSCSI target.
-It is fully asynchronous with regards to iSCSI commands and SCSI tasks,
-but a synchronous layer is also provided for ease of use for simpler applications.")
+    (description "Libiscsi is a client-side library to implement the iSCSI
+protocol that can be used to access the resources of an iSCSI target.  It is
+fully asynchronous with regards to iSCSI commands and SCSI tasks, but a
+synchronous layer is also provided for ease of use for simpler
applications.")

Re-flowed the text in Emacs.

     (home-page "https://github.com/sahlberg/libiscsi")
-    (license (list gpl2+ lgpl2.1+))))
+    (license (list
+              ;; For the src, examples and test-tool directories, except
+              ;; src/ld_iscsi.c.
+              gpl2+
+              ;; For the lib and include directories.
+              lgpl2.1+))))

Added explanatory comments for the licenses.

And pushed as bf827d6465.

Thank you!

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 24 Mar 2022 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 34 days ago.

Previous Next


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