guix-devel
[Top][All Lists]
Advanced

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

packaging help


From: Yagnesh Raghava Yakkala
Subject: packaging help
Date: Fri, 21 Mar 2014 20:28:27 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

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




reply via email to

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