GNU bug report logs -
#26312
[PATCH] gnu: Add cifs-utils.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26312 in the body.
You can then email your comments to 26312 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#26312
; Package
guix-patches
.
(Thu, 30 Mar 2017 15:49:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Thomas Danckaert <post <at> thomasdanckaert.be>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 30 Mar 2017 15:49:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[0001-gnu-Add-cifs-utils.patch (text/x-patch, inline)]
From 5eea8296e5d53d179bef13f6b7e47c0258a6e33a Mon Sep 17 00:00:00 2001
From: Thomas Danckaert <post <at> thomasdanckaert.be>
Date: Thu, 30 Mar 2017 17:47:00 +0200
Subject: [PATCH] gnu: Add cifs-utils.
* gnu/packages/samba.scm (cifs-utils): New variable.
---
gnu/packages/samba.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm
index 3b2a6868d..379e1306d 100644
--- a/gnu/packages/samba.scm
+++ b/gnu/packages/samba.scm
@@ -26,6 +26,8 @@
#:use-module (guix licenses)
#:use-module (gnu packages acl)
#:use-module (gnu packages admin)
+ #:use-module (gnu packages autotools)
+ #:use-module (gnu packages crypto)
#:use-module (gnu packages cups)
#:use-module (gnu packages databases)
#:use-module (gnu packages tls)
@@ -33,10 +35,53 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages openldap)
#:use-module (gnu packages readline)
+ #:use-module (gnu packages kerberos)
#:use-module (gnu packages linux)
#:use-module (gnu packages perl)
#:use-module (gnu packages python))
+(define-public cifs-utils
+ (package
+ (name "cifs-utils")
+ (version "6.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://download.samba.org/pub/linux-cifs/"
+ name "/" name "-" version ".tar.bz2"))
+ (sha256 (base32
+ "1ayghnkryy1n1zm5dyvyyr7n3807nsm6glfcbbki5c2a8w91dwmj"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("keytuils" ,keyutils)
+ ("linux-pam" ,linux-pam)
+ ("libcap-ng" ,libcap-ng)
+ ("mit-krb5" ,mit-krb5)
+ ("samba" ,samba)
+ ("talloc" ,talloc)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'autoreconf
+ (lambda _ ; install.sh is missing from release tarball
+ (zero? (system* "autoreconf" "-i"))))
+ (add-before 'configure 'set-root-sbin
+ (lambda _ ; Don't try to install in "/sbin"
+ (setenv "ROOTSBINDIR"
+ (string-append (assoc-ref %outputs "out") "/sbin"))
+ #t)))))
+ (synopsis "User-space utilities for CIFS (Samba) mounts")
+ (description "@code{cifs-utils} is a set of user-space tools used
+by the in-kernel CIFS filesystem.")
+ (home-page "https://wiki.samba.org/index.php/LinuxCIFS_utils")
+ ;; cifs-utils is licensed as GPL3 or later, but 3 files contain LGPL code.
+ (license
+ (list gpl3+ lgpl2.1+ lgpl3+))))
+
(define-public iniparser
(package
(name "iniparser")
--
2.11.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26312
; Package
guix-patches
.
(Thu, 30 Mar 2017 20:19:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 26312 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thomas,
I don't have any Samba shares to test this on, but will try my hand at
this reviewing business anyway.
On 30/03/17 17:48, Thomas Danckaert wrote:
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + (add-before 'configure 'autoreconf
> + (lambda _ ; install.sh is missing from release tarball
> + (zero? (system* "autoreconf" "-i"))))
If it's a one-time oversight, best leave a note for the next update:
;; The 6.7 tarball is missing ‘install.sh’. Create it.
(Your shorter in-line form is fine too; I just think active comments are
more clear.)
I noticed that the ‘--enable-systemd’ configure flag is enabled by
default, but it seems to be well-behaved on systems without a running
systemd.
> + (synopsis "User-space utilities for CIFS (Samba) mounts")
> + (description "@code{cifs-utils} is a set of user-space tools used
> +by the in-kernel CIFS filesystem.")
If this package is as Linux-specific at it seems, I'd explicitly mention
that in both the synopsis and description.
Aside: GNU uses ‘file system’, not ‘filesystem’, because GNU is rad. How
about expanding the acronym at the same time? E.g.:
‘the @{Common Internet File System} (CIFS) implementation built into
the Linux kernel’.
Bonus points for replacing the horrid word ‘implementation’ :-)
Thanks!
T G-R
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26312
; Package
guix-patches
.
(Sat, 01 Apr 2017 06:49:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 26312 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Tobias Geerinckx-Rice <me <at> tobias.gr> writes:
> Thomas,
>
> I don't have any Samba shares to test this on, but will try my hand at
> this reviewing business anyway.
Thanks! I followed all of your suggestions.
> Aside: GNU uses ‘file system’, not ‘filesystem’, because GNU is rad. How
> about expanding the acronym at the same time? E.g.:
>
> ‘the @{Common Internet File System} (CIFS) implementation built into
> the Linux kernel’.
>
> Bonus points for replacing the horrid word ‘implementation’ :-)
I stole this from somewhere:
“@code{cifs-utils} is a set of user-space utilities for mounting and
managing @{Common Internet File System} (CIFS) shares using the Linux
kernel CIFS client.”
Thomas
[0001-gnu-Add-cifs-utils.patch (text/x-patch, inline)]
From 08858a1e8674f868db2fc255e47bb18aa0ee9de9 Mon Sep 17 00:00:00 2001
From: Thomas Danckaert <post <at> thomasdanckaert.be>
Date: Thu, 30 Mar 2017 17:47:00 +0200
Subject: [PATCH] gnu: Add cifs-utils.
* gnu/packages/samba.scm (cifs-utils): New variable.
---
gnu/packages/samba.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm
index 3b2a6868d..92531eebf 100644
--- a/gnu/packages/samba.scm
+++ b/gnu/packages/samba.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2015 Mark H Weaver <mhw <at> netris.org>
;;; Copyright © 2016, 2017 Efraim Flashner <efraim <at> flashner.co.il>
;;; Copyright © 2016 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno <at> openmailbox.org>
+;;; Copyright © 2017 Thomas Danckaert <post <at> thomasdanckaert.be>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -26,6 +27,8 @@
#:use-module (guix licenses)
#:use-module (gnu packages acl)
#:use-module (gnu packages admin)
+ #:use-module (gnu packages autotools)
+ #:use-module (gnu packages crypto)
#:use-module (gnu packages cups)
#:use-module (gnu packages databases)
#:use-module (gnu packages tls)
@@ -33,10 +36,55 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages openldap)
#:use-module (gnu packages readline)
+ #:use-module (gnu packages kerberos)
#:use-module (gnu packages linux)
#:use-module (gnu packages perl)
#:use-module (gnu packages python))
+(define-public cifs-utils
+ (package
+ (name "cifs-utils")
+ (version "6.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://download.samba.org/pub/linux-cifs/"
+ name "/" name "-" version ".tar.bz2"))
+ (sha256 (base32
+ "1ayghnkryy1n1zm5dyvyyr7n3807nsm6glfcbbki5c2a8w91dwmj"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("keytuils" ,keyutils)
+ ("linux-pam" ,linux-pam)
+ ("libcap-ng" ,libcap-ng)
+ ("mit-krb5" ,mit-krb5)
+ ("samba" ,samba)
+ ("talloc" ,talloc)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; The 6.7 tarball is missing ‘install.sh’. Create it.
+ (add-before 'configure 'autoreconf
+ (lambda _
+ (zero? (system* "autoreconf" "-i"))))
+ (add-before 'configure 'set-root-sbin
+ (lambda _ ; Don't try to install in "/sbin".
+ (setenv "ROOTSBINDIR"
+ (string-append (assoc-ref %outputs "out") "/sbin"))
+ #t)))))
+ (synopsis "User-space utilities for Linux CIFS (Samba) mounts")
+ (description "@code{cifs-utils} is a set of user-space utilities for
+mounting and managing @{Common Internet File System} (CIFS) shares using the
+Linux kernel CIFS client.")
+ (home-page "https://wiki.samba.org/index.php/LinuxCIFS_utils")
+ ;; cifs-utils is licensed as GPL3 or later, but 3 files contain LGPL code.
+ (license
+ (list gpl3+ lgpl2.1+ lgpl3+))))
+
(define-public iniparser
(package
(name "iniparser")
--
2.12.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26312
; Package
guix-patches
.
(Sat, 01 Apr 2017 17:19:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 26312 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thomas Danckaert <post <at> thomasdanckaert.be> writes:
> Tobias Geerinckx-Rice <me <at> tobias.gr> writes:
>
>> Thomas,
>>
>> I don't have any Samba shares to test this on, but will try my hand at
>> this reviewing business anyway.
>
> Thanks! I followed all of your suggestions.
>
>> Aside: GNU uses ‘file system’, not ‘filesystem’, because GNU is rad. How
>> about expanding the acronym at the same time? E.g.:
>>
>> ‘the @{Common Internet File System} (CIFS) implementation built into
>> the Linux kernel’.
>>
>> Bonus points for replacing the horrid word ‘implementation’ :-)
>
> I stole this from somewhere:
>
> “@code{cifs-utils} is a set of user-space utilities for mounting and
> managing @{Common Internet File System} (CIFS) shares using the Linux
> kernel CIFS client.”
>
> Thomas
>
> From 08858a1e8674f868db2fc255e47bb18aa0ee9de9 Mon Sep 17 00:00:00 2001
> From: Thomas Danckaert <post <at> thomasdanckaert.be>
> Date: Thu, 30 Mar 2017 17:47:00 +0200
> Subject: [PATCH] gnu: Add cifs-utils.
>
> * gnu/packages/samba.scm (cifs-utils): New variable.
> ---
> gnu/packages/samba.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 48 insertions(+)
>
> diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm
> index 3b2a6868d..92531eebf 100644
> --- a/gnu/packages/samba.scm
> +++ b/gnu/packages/samba.scm
> @@ -3,6 +3,7 @@
> ;;; Copyright © 2015 Mark H Weaver <mhw <at> netris.org>
> ;;; Copyright © 2016, 2017 Efraim Flashner <efraim <at> flashner.co.il>
> ;;; Copyright © 2016 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno <at> openmailbox.org>
> +;;; Copyright © 2017 Thomas Danckaert <post <at> thomasdanckaert.be>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -26,6 +27,8 @@
> #:use-module (guix licenses)
> #:use-module (gnu packages acl)
> #:use-module (gnu packages admin)
> + #:use-module (gnu packages autotools)
> + #:use-module (gnu packages crypto)
> #:use-module (gnu packages cups)
> #:use-module (gnu packages databases)
> #:use-module (gnu packages tls)
> @@ -33,10 +36,55 @@
> #:use-module (gnu packages pkg-config)
> #:use-module (gnu packages openldap)
> #:use-module (gnu packages readline)
> + #:use-module (gnu packages kerberos)
> #:use-module (gnu packages linux)
> #:use-module (gnu packages perl)
> #:use-module (gnu packages python))
>
> +(define-public cifs-utils
> + (package
> + (name "cifs-utils")
> + (version "6.7")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (string-append "https://download.samba.org/pub/linux-cifs/"
> + name "/" name "-" version ".tar.bz2"))
> + (sha256 (base32
> + "1ayghnkryy1n1zm5dyvyyr7n3807nsm6glfcbbki5c2a8w91dwmj"))))
> + (build-system gnu-build-system)
> + (native-inputs
> + `(("autoconf" ,autoconf)
> + ("automake" ,automake)
> + ("pkg-config" ,pkg-config)))
> + (inputs
> + `(("keytuils" ,keyutils)
> + ("linux-pam" ,linux-pam)
> + ("libcap-ng" ,libcap-ng)
> + ("mit-krb5" ,mit-krb5)
> + ("samba" ,samba)
> + ("talloc" ,talloc)))
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + ;; The 6.7 tarball is missing ‘install.sh’. Create it.
> + (add-before 'configure 'autoreconf
> + (lambda _
> + (zero? (system* "autoreconf" "-i"))))
> + (add-before 'configure 'set-root-sbin
> + (lambda _ ; Don't try to install in "/sbin".
> + (setenv "ROOTSBINDIR"
> + (string-append (assoc-ref %outputs "out") "/sbin"))
> + #t)))))
> + (synopsis "User-space utilities for Linux CIFS (Samba) mounts")
> + (description "@code{cifs-utils} is a set of user-space utilities for
> +mounting and managing @{Common Internet File System} (CIFS) shares using the
^^^
This should be @dfn{...}.
> +Linux kernel CIFS client.")
> + (home-page "https://wiki.samba.org/index.php/LinuxCIFS_utils")
> + ;; cifs-utils is licensed as GPL3 or later, but 3 files contain LGPL code.
> + (license
> + (list gpl3+ lgpl2.1+ lgpl3+))))
Could you mention which files, since it's only three? I also think
listing both lgpl2.1+ and lgpl3+ is redundant; if these source files
interact in some way the result is effectively lgpl3+. If the LGPL2.1+
code is what is installed, I would pick that since it implies LGPL3+.
The rest LGTM!
> +
> (define-public iniparser
> (package
> (name "iniparser")
> --
> 2.12.2
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26312
; Package
guix-patches
.
(Sun, 02 Apr 2017 10:54:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 26312 <at> debbugs.gnu.org (full text, mbox):
Marius Bakke <mbakke <at> fastmail.com> writes:
> Could you mention which files, since it's only three? I also think
> listing both lgpl2.1+ and lgpl3+ is redundant; if these source files
> interact in some way the result is effectively lgpl3+. If the LGPL2.1+
> code is what is installed, I would pick that since it implies LGPL3+.
The files are source/util.{h,c} (lgpl2.1+), and source/cifs_spnego.h
(lgpl3+), I'll add that in a comment.
About the lgpl2.1+ vs lgpl3+ thing, I'm a bit confused about what we
actually want to communicate with the license field (and probably about
license issues in general). As far as I know, all code (lgpl2.1+ and
lgpl3+ files) is installed (compiled). Because the rest of the code is
GPL3+, I think a linked binary (e.g. a substitute from hydra) can only
be distributed as GPL3+? In addition to that, there are 3 source files,
which can are individually licensed as LGPL2.1+ and LGPL3+, which why we
specify a list of licenses, I thought? In that case I don't really
understand why mentioning only lgpl2.1+ would be sufficient (lgpl3+ is
more strict?).
I'm just trying to understand so I get this stuff right the next time...
Not counting the license itself, the lgpl3+ file is only 25 lines :-)
cheers,
Thomas
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26312
; Package
guix-patches
.
(Sun, 02 Apr 2017 11:36:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 26312 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thomas Danckaert <post <at> thomasdanckaert.be> writes:
> Marius Bakke <mbakke <at> fastmail.com> writes:
>
>> Could you mention which files, since it's only three? I also think
>> listing both lgpl2.1+ and lgpl3+ is redundant; if these source files
>> interact in some way the result is effectively lgpl3+. If the LGPL2.1+
>> code is what is installed, I would pick that since it implies LGPL3+.
>
> The files are source/util.{h,c} (lgpl2.1+), and source/cifs_spnego.h
> (lgpl3+), I'll add that in a comment.
>
> About the lgpl2.1+ vs lgpl3+ thing, I'm a bit confused about what we
> actually want to communicate with the license field (and probably about
> license issues in general). As far as I know, all code (lgpl2.1+ and
> lgpl3+ files) is installed (compiled). Because the rest of the code is
> GPL3+, I think a linked binary (e.g. a substitute from hydra) can only
> be distributed as GPL3+? In addition to that, there are 3 source files,
> which can are individually licensed as LGPL2.1+ and LGPL3+, which why we
> specify a list of licenses, I thought? In that case I don't really
> understand why mentioning only lgpl2.1+ would be sufficient (lgpl3+ is
> more strict?).
I had a short discussion with Ludo over this in #26256[0]. The consensus
is that the "license" field should communicate the terms of the end
result, i.e. what the user installs.
Often a package will install some executable files with a GPL3+ license
which are using some library files that are LGPL3+, then both of those
should be mentioned.
This becomes complicated when there are a mix of licenses as in this
case. Then we have to look at which files are using which to determine
what applies to the output.
In this case, none of the LGPL code appear to be installed on its own.
Most of the source is either GPL2+ or GPL3+. So, I would argue that
GPL3+ alone is what applies to this package, since it "wins" over LGPL
and GPL2 by being stricter.
Hope this helps!
[0] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26256#86
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26312
; Package
guix-patches
.
(Sun, 02 Apr 2017 16:15:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 26312 <at> debbugs.gnu.org (full text, mbox):
From: Marius Bakke <mbakke <at> fastmail.com>
Subject: Re: bug#26312: [PATCH] gnu: Add cifs-utils.
Date: Sun, 02 Apr 2017 13:35:54 +0200
> I had a short discussion with Ludo over this in #26256[0]. The
> consensus
> is that the "license" field should communicate the terms of the end
> result, i.e. what the user installs.
Thanks for the clarification! In that case I agree that GPL3+ is
what's applicable.
I've seen a number of discussions about licensing. Maybe I can add a
“License” subsection in the manual's “Packaging Guidelines”?
Thomas
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26312
; Package
guix-patches
.
(Mon, 03 Apr 2017 20:03:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 26312 <at> debbugs.gnu.org (full text, mbox):
Pushed as b4dcfce51bb3e06710e06881e23493fde3c4763c, closing!
Reply sent
to
Thomas Danckaert <post <at> thomasdanckaert.be>
:
You have taken responsibility.
(Mon, 03 Apr 2017 20:03:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Thomas Danckaert <post <at> thomasdanckaert.be>
:
bug acknowledged by developer.
(Mon, 03 Apr 2017 20:03:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 02 May 2017 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 47 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.