From: Leo Famulari <leo@famulari.name>
To: Chris Marusich <cmmarusich@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add sg3_utils.
Date: Sun, 14 Aug 2016 15:21:55 -0400 [thread overview]
Message-ID: <20160814192155.GA3327@jasmine> (raw)
In-Reply-To: <87h9anw5hj.fsf@gmail.com>
[-- 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 --]
next prev parent reply other threads:[~2016-08-14 19:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2016-08-15 2:15 ` Chris Marusich
2016-08-14 1:17 ` Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160814192155.GA3327@jasmine \
--to=leo@famulari.name \
--cc=cmmarusich@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.