all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add sg3_utils.
@ 2016-08-13  9:42 Chris Marusich
  2016-08-13  9:52 ` Chris Marusich
  2016-08-14  1:17 ` Leo Famulari
  0 siblings, 2 replies; 9+ messages in thread
From: Chris Marusich @ 2016-08-13  9:42 UTC (permalink / raw)
  To: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 1851 bytes --]

Hi,

This patch adds sg3_utils (and libsgutils).

When I ran 'guix size sg3_utils', I noticed the following output, which
seemed large to me.  Is it normal?

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix size sg3_utils
store item                                                       total    self
/gnu/store/vbs91pmyw56m7sf8h7qvn465cbwbi24g-sg3_utils-1.42          74.9     2.4   3.2%
/gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib           60.9    22.9  30.5%
/gnu/store/ykzwykkvr2c80rw4l1qh3mvfdkl7jibi-bash-4.3.42             49.7     4.7   6.3%
/gnu/store/68rzhy9px1njppv0nmbm8nk0sdkg5jx6-readline-6.3            45.0     1.2   1.6%
/gnu/store/ld16jy012l3jpkj6azynzmldxn28cspw-ncurses-6.0             43.8     5.7   7.6%
/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23              38.1    36.7  49.0%
/gnu/store/0010wvgs40kdq8chzsh403qm7la9jxq7-bash-static-4.3.42       1.4     1.4   1.9%
total: 74.9 MiB
--8<---------------cut here---------------end--------------->8---

It might be nice to package the library and the tools separately.  How
might I do that?  The release tarball's README says the following, but I
see no obvious way to split the build output into 3 separate packages:

"Various distributions (of Linux mainly) distribute sg3_utils as 3
installable packages. One is a package containing the shared library
discussed above (e.g. libsgutils2-2_1.33-0.1_i386.deb). A second package
contains the utilities (e.g. sg3-utils_1.33-0.1_i386.deb) and depends on
the first package). Finally there is an optional package that contains
header files and a static library
(e.g. libsgutils2-dev_1.33-0.1_i386.deb). This final package is only
needed to build other packages (e.g. sdparm) that wish to use the
sg3_utils shared library."

-- 
Chris

[-- Attachment #1.2: 0001-gnu-Add-sg3_utils.patch --]
[-- Type: text/x-patch, Size: 3671 bytes --]

From 68fefdc9ec01e9a09296e4aaba8d127d4c3c3dd4 Mon Sep 17 00:00:00 2001
From: Chris Marusich <cmmarusich@gmail.com>
Date: Sat, 13 Aug 2016 01:58:03 -0700
Subject: [PATCH] gnu: Add sg3_utils.

* gnu/local.mk: Include gnu/packages/education.scm.
* gnu/packages/scsi.scm: Add new file.
* gnu/packages/scsi.scm (sg3_utils): New variable.
---
 gnu/local.mk          |  1 +
 gnu/packages/scsi.scm | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 gnu/packages/scsi.scm

diff --git a/gnu/local.mk b/gnu/local.mk
index 44ace61..99dbb30 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -305,6 +305,7 @@ GNU_SYSTEM_MODULES =				\
   %D%/packages/scheme.scm			\
   %D%/packages/screen.scm			\
   %D%/packages/scribus.scm			\
+  %D%/packages/scsi.scm				\
   %D%/packages/sdl.scm				\
   %D%/packages/search.scm			\
   %D%/packages/serialization.scm		\
diff --git a/gnu/packages/scsi.scm b/gnu/packages/scsi.scm
new file mode 100644
index 0000000..e7ba8e0
--- /dev/null
+++ b/gnu/packages/scsi.scm
@@ -0,0 +1,53 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
+;;;
+;;; 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 scsi)
+  #:use-module ((guix licenses)
+                #:select (gpl2+ bsd-3))
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix build-system gnu))
+
+(define-public sg3_utils
+  (package
+    (name "sg3_utils")
+    (version "1.42")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://sg.danny.cz/sg/p/sg3_utils-"
+                                  version ".tar.xz"))
+              (sha256
+               (base32
+                "1fg71rj0f1gdjmkj0z8wlv46cf9lryjdyjkbi7fjmssgi5jyvblp"))))
+    (build-system gnu-build-system)
+    (home-page "http://sg.danny.cz/sg/sg3_utils.html")
+    (synopsis "SCSI device utilities")
+    (description
+     "sg3_utils is a collection of utilities for devices that use the Small
+Computer System Interface (SCSI) command set.  It includes utilities to read
+data from, write data to, control, modify, and query the state of SCSI
+devices.  For example, this package provides command-line tools to copy data
+based on \"dd\" syntax and semantics (called sg_dd, sgp_dd and sgm_dd), check
+INQUIRY data and VPD pages (sg_inq), check mode and log pages (sginfo,
+sg_modes and sg_logs), spin up and down disks (sg_start), do self
+tests (sg_senddiag), parse sense data, and perform various other functions.
+In addition, this package includes a library, called libsgutils, which can be
+used in C and C++ programs to interact with SCSI devices.")
+    ;; The libsgutils library itself is licensed under bsd-3.  Some tools are
+    ;; licensed under bsd-3, also.  Some tools are licensed under gpl2+.
+    (license (list gpl2+ bsd-3))))
-- 
2.7.3


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] gnu: Add sg3_utils.
  2016-08-13  9:42 [PATCH] gnu: Add sg3_utils Chris Marusich
@ 2016-08-13  9:52 ` Chris Marusich
  2016-08-14  1:27   ` Leo Famulari
  2016-08-14  1:17 ` Leo Famulari
  1 sibling, 1 reply; 9+ messages in thread
From: Chris Marusich @ 2016-08-13  9:52 UTC (permalink / raw)
  To: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 456 bytes --]

Chris Marusich <cmmarusich@gmail.com> writes:

> Subject: [PATCH] gnu: Add sg3_utils.
>
> * gnu/local.mk: Include gnu/packages/education.scm.
> * gnu/packages/scsi.scm: Add new file.
> * gnu/packages/scsi.scm (sg3_utils): New variable.

This commit message contains an error.  I copied it from an earlier
commit message, and I forgot to replace "education.scm" with "scsi.scm"
everywhere.  This new patch fixes the commit message.

-- 
Chris

[-- Attachment #1.2: 0001-gnu-Add-sg3_utils.patch --]
[-- Type: text/x-patch, Size: 3666 bytes --]

From 18b8adc5f7c11090b86877a37f01840033d10a89 Mon Sep 17 00:00:00 2001
From: Chris Marusich <cmmarusich@gmail.com>
Date: Sat, 13 Aug 2016 01:58:03 -0700
Subject: [PATCH] gnu: Add sg3_utils.

* gnu/local.mk: Include gnu/packages/scsi.scm.
* gnu/packages/scsi.scm: Add new file.
* gnu/packages/scsi.scm (sg3_utils): New variable.
---
 gnu/local.mk          |  1 +
 gnu/packages/scsi.scm | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 gnu/packages/scsi.scm

diff --git a/gnu/local.mk b/gnu/local.mk
index 44ace61..99dbb30 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -305,6 +305,7 @@ GNU_SYSTEM_MODULES =				\
   %D%/packages/scheme.scm			\
   %D%/packages/screen.scm			\
   %D%/packages/scribus.scm			\
+  %D%/packages/scsi.scm				\
   %D%/packages/sdl.scm				\
   %D%/packages/search.scm			\
   %D%/packages/serialization.scm		\
diff --git a/gnu/packages/scsi.scm b/gnu/packages/scsi.scm
new file mode 100644
index 0000000..e7ba8e0
--- /dev/null
+++ b/gnu/packages/scsi.scm
@@ -0,0 +1,53 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
+;;;
+;;; 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 scsi)
+  #:use-module ((guix licenses)
+                #:select (gpl2+ bsd-3))
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix build-system gnu))
+
+(define-public sg3_utils
+  (package
+    (name "sg3_utils")
+    (version "1.42")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://sg.danny.cz/sg/p/sg3_utils-"
+                                  version ".tar.xz"))
+              (sha256
+               (base32
+                "1fg71rj0f1gdjmkj0z8wlv46cf9lryjdyjkbi7fjmssgi5jyvblp"))))
+    (build-system gnu-build-system)
+    (home-page "http://sg.danny.cz/sg/sg3_utils.html")
+    (synopsis "SCSI device utilities")
+    (description
+     "sg3_utils is a collection of utilities for devices that use the Small
+Computer System Interface (SCSI) command set.  It includes utilities to read
+data from, write data to, control, modify, and query the state of SCSI
+devices.  For example, this package provides command-line tools to copy data
+based on \"dd\" syntax and semantics (called sg_dd, sgp_dd and sgm_dd), check
+INQUIRY data and VPD pages (sg_inq), check mode and log pages (sginfo,
+sg_modes and sg_logs), spin up and down disks (sg_start), do self
+tests (sg_senddiag), parse sense data, and perform various other functions.
+In addition, this package includes a library, called libsgutils, which can be
+used in C and C++ programs to interact with SCSI devices.")
+    ;; The libsgutils library itself is licensed under bsd-3.  Some tools are
+    ;; licensed under bsd-3, also.  Some tools are licensed under gpl2+.
+    (license (list gpl2+ bsd-3))))
-- 
2.7.3


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] gnu: Add sg3_utils.
  2016-08-13  9:42 [PATCH] gnu: Add sg3_utils Chris Marusich
  2016-08-13  9:52 ` Chris Marusich
@ 2016-08-14  1:17 ` Leo Famulari
  1 sibling, 0 replies; 9+ messages in thread
From: Leo Famulari @ 2016-08-14  1:17 UTC (permalink / raw)
  To: Chris Marusich; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 2603 bytes --]

On Sat, Aug 13, 2016 at 02:42:34AM -0700, Chris Marusich wrote:
> Hi,
> 
> This patch adds sg3_utils (and libsgutils).
> 
> When I ran 'guix size sg3_utils', I noticed the following output, which
> seemed large to me.  Is it normal?
> 
> --8<---------------cut here---------------start------------->8---
> $ ./pre-inst-env guix size sg3_utils
> store item                                                       total    self
> /gnu/store/vbs91pmyw56m7sf8h7qvn465cbwbi24g-sg3_utils-1.42          74.9     2.4   3.2%
> /gnu/store/9nifwk709wajpyfwa0jzaa3p6mf10vxs-gcc-4.9.3-lib           60.9    22.9  30.5%
> /gnu/store/ykzwykkvr2c80rw4l1qh3mvfdkl7jibi-bash-4.3.42             49.7     4.7   6.3%
> /gnu/store/68rzhy9px1njppv0nmbm8nk0sdkg5jx6-readline-6.3            45.0     1.2   1.6%
> /gnu/store/ld16jy012l3jpkj6azynzmldxn28cspw-ncurses-6.0             43.8     5.7   7.6%
> /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23              38.1    36.7  49.0%
> /gnu/store/0010wvgs40kdq8chzsh403qm7la9jxq7-bash-static-4.3.42       1.4     1.4   1.9%
> total: 74.9 MiB
> --8<---------------cut here---------------end--------------->8---

The overall size looks normal to me. I don't understand how sg3_utils can be
2.4 MiB, while increasing the closure size by 14 MiB.

> It might be nice to package the library and the tools separately.  How
> might I do that?  The release tarball's README says the following, but I
> see no obvious way to split the build output into 3 separate packages:
> 
> "Various distributions (of Linux mainly) distribute sg3_utils as 3
> installable packages. One is a package containing the shared library
> discussed above (e.g. libsgutils2-2_1.33-0.1_i386.deb). A second package
> contains the utilities (e.g. sg3-utils_1.33-0.1_i386.deb) and depends on
> the first package). Finally there is an optional package that contains
> header files and a static library
> (e.g. libsgutils2-dev_1.33-0.1_i386.deb). This final package is only
> needed to build other packages (e.g. sdparm) that wish to use the
> sg3_utils shared library."

We tend not to create separate outputs unless there is a good reason. A
good reason could be a rarely used component that is disproportionately
large; we might try to put that in a separate output so it doesn't bloat
users' profiles unnecessarily.

A really good upstream build system will make this easy. Check the nmap
package definition for an example: we can build an install ndiff
directly into its own output, and this keeps the Python reference
separate from the default nmap output.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] gnu: Add sg3_utils.
  2016-08-13  9:52 ` Chris Marusich
@ 2016-08-14  1:27   ` Leo Famulari
  2016-08-14  3:23     ` Chris Marusich
  0 siblings, 1 reply; 9+ messages in thread
From: Leo Famulari @ 2016-08-14  1:27 UTC (permalink / raw)
  To: Chris Marusich; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1835 bytes --]

On Sat, Aug 13, 2016 at 02:52:56AM -0700, Chris Marusich wrote:
> Chris Marusich <cmmarusich@gmail.com> writes:
> Subject: [PATCH] gnu: Add sg3_utils.
> 
> * gnu/local.mk: Include gnu/packages/scsi.scm.
> * gnu/packages/scsi.scm: Add new file.
> * gnu/packages/scsi.scm (sg3_utils): New variable.

Thanks for this patch! How about putting it in disk.scm? I have no
strong preference either way. I don't like moving things around too much
once they have been created, however :)

> +  #:use-module ((guix licenses)
> +                #:select (gpl2+ bsd-3))

Do we need to use #:select here? How about using a license prefix? What
are the pros and cons?

> +(define-public sg3_utils
> +  (package
> +    (name "sg3_utils")

We like to use underscores instead of hyphens in package names:

https://www.gnu.org/software/guix/manual/html_node/Package-Naming.html#Package-Naming

> +    (description
> +     "sg3_utils is a collection of utilities for devices that use the Small
> +Computer System Interface (SCSI) command set.  It includes utilities to read
> +data from, write data to, control, modify, and query the state of SCSI
> +devices.  For example, this package provides command-line tools to copy data
> +based on \"dd\" syntax and semantics (called sg_dd, sgp_dd and sgm_dd), check
> +INQUIRY data and VPD pages (sg_inq), check mode and log pages (sginfo,
> +sg_modes and sg_logs), spin up and down disks (sg_start), do self
> +tests (sg_senddiag), parse sense data, and perform various other functions.
> +In addition, this package includes a library, called libsgutils, which can be
> +used in C and C++ programs to interact with SCSI devices.")

I think that dd, and all the sg_* commands, should be wrapped in texinfo
markup, like this:

@code{dd}

Can you send an updated patch?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] gnu: Add sg3_utils.
  2016-08-14  1:27   ` Leo Famulari
@ 2016-08-14  3:23     ` Chris Marusich
  2016-08-14 16:46       ` Leo Famulari
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Marusich @ 2016-08-14  3:23 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 1961 bytes --]

Leo Famulari <leo@famulari.name> writes:

> Thanks for this patch! How about putting it in disk.scm? I have no
> strong preference either way. I don't like moving things around too much
> once they have been created, however :)

sg3_utils and its library can be used with any SCSI device, which
includes many devices which are not hard disks, such as CD-ROMs and
media changers (i.e., jukeboxes), so I don't think it makes sense to put
it into a file whose scope is limited to disks.

>> +  #:use-module ((guix licenses)
>> +                #:select (gpl2+ bsd-3))
>
> Do we need to use #:select here? How about using a license prefix? What
> are the pros and cons?
>
>> +(define-public sg3_utils
>> +  (package
>> +    (name "sg3_utils")
>
> We like to use underscores instead of hyphens in package names:
>
> https://www.gnu.org/software/guix/manual/html_node/Package-Naming.html#Package-Naming

Thank you for pointing this out.  I've updated it (see attached patch).

>> +    (description
>> +     "sg3_utils is a collection of utilities for devices that use the Small
>> +Computer System Interface (SCSI) command set.  It includes utilities to read
>> +data from, write data to, control, modify, and query the state of SCSI
>> +devices.  For example, this package provides command-line tools to copy data
>> +based on \"dd\" syntax and semantics (called sg_dd, sgp_dd and sgm_dd), check
>> +INQUIRY data and VPD pages (sg_inq), check mode and log pages (sginfo,
>> +sg_modes and sg_logs), spin up and down disks (sg_start), do self
>> +tests (sg_senddiag), parse sense data, and perform various other functions.
>> +In addition, this package includes a library, called libsgutils, which can be
>> +used in C and C++ programs to interact with SCSI devices.")
>
> I think that dd, and all the sg_* commands, should be wrapped in texinfo
> markup, like this:
>
> @code{dd}

Done!  Thanks for the tip.

-- 
Chris

[-- Attachment #1.2: 0001-gnu-Add-sg3_utils.patch --]
[-- Type: text/x-patch, Size: 3760 bytes --]

From 3539ae43993d2118e101446086e123651a132460 Mon Sep 17 00:00:00 2001
From: Chris Marusich <cmmarusich@gmail.com>
Date: Sat, 13 Aug 2016 01:58:03 -0700
Subject: [PATCH] gnu: Add sg3_utils.

* gnu/local.mk: Include gnu/packages/scsi.scm.
* gnu/packages/scsi.scm: Add new file.
* gnu/packages/scsi.scm (sg3_utils): New variable.
---
 gnu/local.mk          |  1 +
 gnu/packages/scsi.scm | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)
 create mode 100644 gnu/packages/scsi.scm

diff --git a/gnu/local.mk b/gnu/local.mk
index 44ace61..99dbb30 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -305,6 +305,7 @@ GNU_SYSTEM_MODULES =				\
   %D%/packages/scheme.scm			\
   %D%/packages/screen.scm			\
   %D%/packages/scribus.scm			\
+  %D%/packages/scsi.scm				\
   %D%/packages/sdl.scm				\
   %D%/packages/search.scm			\
   %D%/packages/serialization.scm		\
diff --git a/gnu/packages/scsi.scm b/gnu/packages/scsi.scm
new file mode 100644
index 0000000..92e2d7a
--- /dev/null
+++ b/gnu/packages/scsi.scm
@@ -0,0 +1,54 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
+;;;
+;;; 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 scsi)
+  #:use-module ((guix licenses)
+                #:select (gpl2+ bsd-3))
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix build-system gnu))
+
+(define-public sg3-utils
+  (package
+    (name "sg3-utils")
+    (version "1.42")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://sg.danny.cz/sg/p/sg3_utils-"
+                                  version ".tar.xz"))
+              (sha256
+               (base32
+                "1fg71rj0f1gdjmkj0z8wlv46cf9lryjdyjkbi7fjmssgi5jyvblp"))))
+    (build-system gnu-build-system)
+    (home-page "http://sg.danny.cz/sg/sg3_utils.html")
+    (synopsis "SCSI device utilities")
+    (description
+     "sg3-utils is a collection of utilities for devices that use the Small
+Computer System Interface (SCSI) command set.  It includes utilities to read
+data from, write data to, control, modify, and query the state of SCSI
+devices.  For example, this package provides command-line tools to copy data
+based on @code{dd} syntax and semantics (called @code{sg_dd}, @code{sgp_dd}
+and @code{sgm_dd}), check INQUIRY data and VPD pages (@code{sg_inq}), check
+mode and log pages (@code{sginfo}, @code{sg_modes} and @code{sg_logs}), spin
+up and down disks (@code{sg_start}), do self tests (@code{sg_senddiag}), parse
+sense data (@code{sg_decode_sense}), and perform various other functions.  In
+addition, this package includes a library, called libsgutils, which can be
+used in C and C++ programs to interact with SCSI devices.")
+    ;; The libsgutils library itself is licensed under bsd-3.  Some tools are
+    ;; licensed under bsd-3, also.  Some tools are licensed under gpl2+.
+    (license (list gpl2+ bsd-3))))
-- 
2.9.2


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] gnu: Add sg3_utils.
  2016-08-14  3:23     ` Chris Marusich
@ 2016-08-14 16:46       ` Leo Famulari
  2016-08-14 18:49         ` Chris Marusich
  0 siblings, 1 reply; 9+ messages in thread
From: Leo Famulari @ 2016-08-14 16:46 UTC (permalink / raw)
  To: Chris Marusich; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]

On Sat, Aug 13, 2016 at 08:23:38PM -0700, Chris Marusich wrote:
> sg3_utils and its library can be used with any SCSI device, which
> includes many devices which are not hard disks, such as CD-ROMs and
> media changers (i.e., jukeboxes), so I don't think it makes sense to put
> it into a file whose scope is limited to disks.

Ah, I can't wait for jukebox.scm ;)

> >> +  #:use-module ((guix licenses)
> >> +                #:select (gpl2+ bsd-3))
> >
> > Do we need to use #:select here? How about using a license prefix? What
> > are the pros and cons?

I'll leave this as is.

> > We like to use underscores instead of hyphens in package names:
> >
> > https://www.gnu.org/software/guix/manual/html_node/Package-Naming.html#Package-Naming
> 
> Thank you for pointing this out.  I've updated it (see attached patch).

Thanks for understanding my mistake; I got it backwards in the sentence
you replied to :p

> 
> > I think that dd, and all the sg_* commands, should be wrapped in texinfo
> > markup, like this:
> >
> > @code{dd}
> 
> Done!  Thanks for the tip.

Thanks! Pushed as 5cf30103f7.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] gnu: Add sg3_utils.
  2016-08-14 16:46       ` Leo Famulari
@ 2016-08-14 18:49         ` Chris Marusich
  2016-08-14 19:21           ` Leo Famulari
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Marusich @ 2016-08-14 18:49 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

Leo Famulari <leo@famulari.name> writes:

>> >> +  #:use-module ((guix licenses)
>> >> +                #:select (gpl2+ bsd-3))
>> >
>> > Do we need to use #:select here? How about using a license prefix? What
>> > are the pros and cons?
>
> I'll leave this as is.

Oh, sorry, I missed this comment.  What is the difference?  I'm
unfamiliar with what it means to "use a license prefix"; where can I
find more info about that?

> Pushed as 5cf30103f7.

Thank you!

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] gnu: Add sg3_utils.
  2016-08-14 18:49         ` Chris Marusich
@ 2016-08-14 19:21           ` Leo Famulari
  2016-08-15  2:15             ` Chris Marusich
  0 siblings, 1 reply; 9+ messages in thread
From: Leo Famulari @ 2016-08-14 19:21 UTC (permalink / raw)
  To: Chris Marusich; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1347 bytes --]

On Sun, Aug 14, 2016 at 11:49:28AM -0700, Chris Marusich wrote:
> Leo Famulari <leo@famulari.name> writes:
> 
> >> >> +  #:use-module ((guix licenses)
> >> >> +                #:select (gpl2+ bsd-3))
> >> >
> >> > Do we need to use #:select here? How about using a license prefix? What
> >> > are the pros and cons?
> >
> > I'll leave this as is.
> 
> Oh, sorry, I missed this comment.  What is the difference?  I'm
> unfamiliar with what it means to "use a license prefix"; where can I
> find more info about that?

Generally, we have the problem of using different variables named
'expat', 'zlib', 'openssl', and possibly others. For those 3, there are
both package and license variables sharing the name.

So, if we want to refer to both the package and license variables of,
for example, expat, we have to distinguish them somehow. So, we
sometimes "prefix" the licenses when they are used, to distinguish them
from the packages.

There is a good example in 'gnu/packages/admin.scm'. Check line 33,
where the license module is imported:

33   #:use-module ((guix licenses) #:prefix license:)

and line 107, where you can see it in action:

107     (license license:gpl2+)))

Using #:select to only import specific licenses can help, but you still
have a problem when it's time to #:select the expat license.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] gnu: Add sg3_utils.
  2016-08-14 19:21           ` Leo Famulari
@ 2016-08-15  2:15             ` Chris Marusich
  0 siblings, 0 replies; 9+ messages in thread
From: Chris Marusich @ 2016-08-15  2:15 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 954 bytes --]

Leo Famulari <leo@famulari.name> writes:

> Generally, we have the problem of using different variables named
> 'expat', 'zlib', 'openssl', and possibly others. For those 3, there are
> both package and license variables sharing the name.
>
> So, if we want to refer to both the package and license variables of,
> for example, expat, we have to distinguish them somehow. So, we
> sometimes "prefix" the licenses when they are used, to distinguish them
> from the packages.
>
> There is a good example in 'gnu/packages/admin.scm'. Check line 33,
> where the license module is imported:
>
> 33   #:use-module ((guix licenses) #:prefix license:)
>
> and line 107, where you can see it in action:
>
> 107     (license license:gpl2+)))
>
> Using #:select to only import specific licenses can help, but you still
> have a problem when it's time to #:select the expat license.

I see!  That's useful.  Thanks for the tip.

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-08-15  2:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-13  9:42 [PATCH] gnu: Add sg3_utils Chris Marusich
2016-08-13  9:52 ` Chris Marusich
2016-08-14  1:27   ` Leo Famulari
2016-08-14  3:23     ` Chris Marusich
2016-08-14 16:46       ` Leo Famulari
2016-08-14 18:49         ` Chris Marusich
2016-08-14 19:21           ` Leo Famulari
2016-08-15  2:15             ` Chris Marusich
2016-08-14  1:17 ` Leo Famulari

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.