guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: Add sg3_utils.


From: Leo Famulari
Subject: Re: [PATCH] gnu: Add sg3_utils.
Date: Sun, 14 Aug 2016 15:21:55 -0400
User-agent: Mutt/1.6.0 (2016-04-01)

On Sun, Aug 14, 2016 at 11:49:28AM -0700, Chris Marusich wrote:
> Leo Famulari <address@hidden> 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: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]