unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* packaging help
@ 2014-03-21 11:28 Yagnesh Raghava Yakkala
       [not found] ` <87y50365qt.fsf@gmail.com>
  2014-03-21 14:03 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Yagnesh Raghava Yakkala @ 2014-03-21 11:28 UTC (permalink / raw)
  To: guix-devel


Hello,

I am trying to package UDUNITS2¹ which is a dependency of Netcdf4. I am
getting an syntax error while building guix.

I pasted the following in maths.scm (similar to units package definition). 

--8<---------------cut here---------------start------------->8---
(define-public udunits
  (package
    (name "udunits")
    (version "2.2.4")
    (source (origin
              (method url-fetch)
              (uri (string-append "ftp://ftp.unidata.ucar.edu/pub/udunits/udunits-" version
                                  "-Source.tar.gz"))
              (sha256 (base32
                       "04zs1jcn90gl58ypbb8sqg9ddq4dc7md3a3xmlgi2xabbj136arh"))))
    (build-system gnu-build-system)
    (arguments `(#:tests? #f
                          #:configure-flags '("--with-pic")))
    (synopsis "C library provides for arithmetic manipulation of units and for
conversion of numeric values between compatible units")
    (description
     "The UDUNITS package supports units of physical quantities. Its C library
provides for arithmetic manipulation of units and for conversion of numeric
values between compatible units. The package contains an extensive unit
database, which is in XML format and user-extendable. The package also
contains a command-line utility for investigating units and converting
values.")
    (license license:x11-style "https://raw.githubusercontent.com/Unidata/UDUNITS-2/master/COPYRIGHT")
    (home-page "http://www.unidata.ucar.edu/software/udunits/")))
--8<---------------cut here---------------end--------------->8---

Now when I try to build guix by running make the following syntax error coming
up.

--8<---------------cut here---------------start------------->8---
;;; note: source file ./guix/config.scm
;;;       newer than compiled /home/yagnesh/repos/gu/guix/guix/config.go
ice-9/boot-9.scm:106:20: In procedure #<procedure a53b40 at ice-9/boot-9.scm:97:6 (thrown-k . args)>:
ice-9/boot-9.scm:106:20: Syntax error:
gnu/packages/maths.scm:73:2: source expression failed to match any pattern in form (package (name "udunits") (version "2.2.4") (source (origin (method url-fetch) (uri (string-append "ftp://ftp.unidata.ucar.edu/pub/udunits/udunits-" version "-Source.tar.gz")) (sha256 (base32 "04zs1jcn90gl58ypbb8sqg9ddq4dc7md3a3xmlgi2xabbj136arh")))) (build-system gnu-build-system) (arguments (quasiquote (#:tests? #f #:configure-flags (quote ("--with-pic"))))) (synopsis "C library provides for arithmetic manipulation of units and for\nconversion of numeric values between compatible units") (description "The UDUNITS package supports units of physical quantities. Its C library\nprovides for arithmetic manipulation of units and for conversion of numeric\nvalues between compatible units. The package contains an extensive unit\ndatabase, which is in XML format and user-extendable. The package also\ncontains a command-line utility for investigating units and converting\nvalues.") (license license:x11-style "https://raw.githubusercontent.com/Unidata/UDUNITS-2/master/COPYRIGHT") (home-page "http://www.unidata.ucar.edu/software/udunits/"))
make[2]: *** [gnu/packages/maths.go] Error 1
make[2]: Leaving directory `/home/yagnesh/repos/gu/guix'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/yagnesh/repos/gu/guix'
make: *** [all] Error 2
--8<---------------cut here---------------end--------------->8---

Seems I am making basic mistake. Thanks for any hints.

¹  http://www.unidata.ucar.edu/software/udunits/
Thanks.
-- 
ఎందరో మహానుభావులు అందరికి వందనములు.
YYR

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

* Re: packaging help
       [not found]   ` <87eh1v1xlz.fsf@sealion.lowtem.hokudai.ac.jp>
@ 2014-03-21 13:45     ` Eric Bavier
  2014-03-23 20:33       ` Yagnesh Raghava Yakkala
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Bavier @ 2014-03-21 13:45 UTC (permalink / raw)
  To: Yagnesh Raghava Yakkala; +Cc: guix-devel

Yagnesh Raghava Yakkala <hi@yagnesh.org> writes:

> Hello Eric,
>
> On Mar 21 2014, Eric Bavier <ericbavier@gmail.com> wrote:
>
>> Yagnesh Raghava Yakkala <hi@yagnesh.org> writes:
>>
>>>     (license license:x11-style "https://raw.githubusercontent.com/Unidata/UDUNITS-2/master/COPYRIGHT")
>>>     (home-page "http://www.unidata.ucar.edu/software/udunits/")))
>>
>> x11-style is a procedure, so you likely need to put parendtheses around
>> it an the url.
>
> Oh, wow. That worked. Thanks.
>
> BTW I am not really familiar with different licenses.
>
> could any confirm whether the is x11-style or not?
>
> URL:
> https://raw.githubusercontent.com/Unidata/UDUNITS-2/master/COPYRIGHT

It looks to me more like a BSD-style license.  See
https://www.gnu.org/licenses/license-list.html#ModifiedBSD.  It has the
additional 4th clause about patent-infringement.

> Thanks.,

-- 
`~Eric

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

* Re: packaging help
  2014-03-21 11:28 packaging help Yagnesh Raghava Yakkala
       [not found] ` <87y50365qt.fsf@gmail.com>
@ 2014-03-21 14:03 ` Ludovic Courtès
  2014-03-23 20:31   ` Yagnesh Raghava Yakkala
  1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2014-03-21 14:03 UTC (permalink / raw)
  To: Yagnesh Raghava Yakkala; +Cc: guix-devel

Yagnesh Raghava Yakkala <hi@yagnesh.org> skribis:

>     (license license:x11-style "https://raw.githubusercontent.com/Unidata/UDUNITS-2/master/COPYRIGHT")

This should read:

  (license
   (license:x11-style "https://raw.githubusercontent.com/Unidata/UDUNITS-2/master/COPYRIGHT"))

(Yeah, error reporting is not optimal.)

Ludo’.

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

* Re: packaging help
  2014-03-21 14:03 ` Ludovic Courtès
@ 2014-03-23 20:31   ` Yagnesh Raghava Yakkala
  0 siblings, 0 replies; 5+ messages in thread
From: Yagnesh Raghava Yakkala @ 2014-03-23 20:31 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel


Hello Ludovic,

On Mar 21 2014, ludo@gnu.org (Ludovic Courtès) wrote:

> Yagnesh Raghava Yakkala <hi@yagnesh.org> skribis:
>
>>     (license license:x11-style "https://raw.githubusercontent.com/Unidata/UDUNITS-2/master/COPYRIGHT")
>
> This should read:
>
>   (license
>    (license:x11-style "https://raw.githubusercontent.com/Unidata/UDUNITS-2/master/COPYRIGHT"))

Yes, I got that. 

Thanks.,
-- 
ఎందరో మహానుభావులు అందరికి వందనములు.
YYR

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

* Re: packaging help
  2014-03-21 13:45     ` Eric Bavier
@ 2014-03-23 20:33       ` Yagnesh Raghava Yakkala
  0 siblings, 0 replies; 5+ messages in thread
From: Yagnesh Raghava Yakkala @ 2014-03-23 20:33 UTC (permalink / raw)
  To: Eric Bavier; +Cc: guix-devel


Hello Eric,

On Mar 21 2014, Eric Bavier <ericbavier@gmail.com> wrote:

> Yagnesh Raghava Yakkala <hi@yagnesh.org> writes:
>
>> Hello Eric,
>>
>> On Mar 21 2014, Eric Bavier <ericbavier@gmail.com> wrote:
>>
>>> Yagnesh Raghava Yakkala <hi@yagnesh.org> writes:
>>>
>>>>     (license license:x11-style "https://raw.githubusercontent.com/Unidata/UDUNITS-2/master/COPYRIGHT")
>>>>     (home-page "http://www.unidata.ucar.edu/software/udunits/")))
>>>
>>> x11-style is a procedure, so you likely need to put parendtheses around
>>> it an the url.
>>
>> Oh, wow. That worked. Thanks.
>>
>> BTW I am not really familiar with different licenses.
>>
>> could any confirm whether the is x11-style or not?
>>
>> URL:
>> https://raw.githubusercontent.com/Unidata/UDUNITS-2/master/COPYRIGHT
>
> It looks to me more like a BSD-style license.  See
> https://www.gnu.org/licenses/license-list.html#ModifiedBSD.  It has the
> additional 4th clause about patent-infringement.

Thanks, I will change it to that.

Thanks.,
-- 
ఎందరో మహానుభావులు అందరికి వందనములు.
YYR

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

end of thread, other threads:[~2014-03-23 20:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-21 11:28 packaging help Yagnesh Raghava Yakkala
     [not found] ` <87y50365qt.fsf@gmail.com>
     [not found]   ` <87eh1v1xlz.fsf@sealion.lowtem.hokudai.ac.jp>
2014-03-21 13:45     ` Eric Bavier
2014-03-23 20:33       ` Yagnesh Raghava Yakkala
2014-03-21 14:03 ` Ludovic Courtès
2014-03-23 20:31   ` Yagnesh Raghava Yakkala

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).