all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yagnesh Raghava Yakkala <hi@yagnesh.org>
To: guix-devel@gnu.org
Subject: packaging help
Date: Fri, 21 Mar 2014 20:28:27 +0900	[thread overview]
Message-ID: <87mwgj23l0.fsf@sealion.lowtem.hokudai.ac.jp> (raw)


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	other threads:[~2014-03-21 11:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-21 11:28 Yagnesh Raghava Yakkala [this message]
     [not found] ` <87y50365qt.fsf@gmail.com>
     [not found]   ` <87eh1v1xlz.fsf@sealion.lowtem.hokudai.ac.jp>
2014-03-21 13:45     ` packaging help 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

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=87mwgj23l0.fsf@sealion.lowtem.hokudai.ac.jp \
    --to=hi@yagnesh.org \
    --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.