unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Guile 2.0.11 error during test of package definition on Trisquel 7
@ 2016-01-22 20:58 swedebugia
  2016-01-23 10:46 ` Ricardo Wurmus
  0 siblings, 1 reply; 2+ messages in thread
From: swedebugia @ 2016-01-22 20:58 UTC (permalink / raw)
  To: guix-devel

Hi

I tried following the manual build* from a fresh git pull.

 From 7.6:
"   ./pre-inst-env guix build gnew --keep-failed
    If the package is unknown to the ‘guix’ command, it may be that the
source file contains a syntax error, or lacks a ‘define-public’ clause
to export the package variable.  To figure it out, you may load the
module from Guile to get more information about the actual error:

      ./pre-inst-env guile -c '(use-modules (gnu packages gnew))'"

After putting the new package definition below into python.scm:
(define-public python-twisted
   (package
     (name "python-twisted")
     (version "15.5.0")
     (source
      (origin
        (method url-fetch)
;       (extension "tar.bz2")
;       (uri (pypi-uri "Twisted" version extension))
        (uri (pypi-uri "Twisted" version))
        (sha256
         (base32
          "0zy18lcrris4aaslil5k12i13k56c32hzfdv6h10kbnzl026h158"))))
     (build-system python-build-system)
     (inputs
      `(("python-setuptools" ,python-setuptools)))
     (home-page "http://twistedmatrix.com/")
     (synopsis
      "An asynchronous networking framework written in Python")
     (description
      "An asynchronous networking framework written in Python")
     (license license:expat)))

./pre-inst-env guix build cannot find it.
I then do:
$ ./pre-inst-env guile -c '(use-modules (gnu packages python))'
but it tries to auto-compile python.scm and fails with:
;;; ERROR: failed to create path for auto-compiled file "path/to/file"

WTF?

 From within guix environment guix --container:
it compiles without errors.

cheers
swedebugia

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

* Re: Guile 2.0.11 error during test of package definition on Trisquel 7
  2016-01-22 20:58 Guile 2.0.11 error during test of package definition on Trisquel 7 swedebugia
@ 2016-01-23 10:46 ` Ricardo Wurmus
  0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2016-01-23 10:46 UTC (permalink / raw)
  To: swedebugia; +Cc: guix-devel


swedebugia@riseup.net writes:

> I tried following the manual build* from a fresh git pull.
>
>  From 7.6:
> "   ./pre-inst-env guix build gnew --keep-failed
>     If the package is unknown to the ‘guix’ command, it may be that the
> source file contains a syntax error, or lacks a ‘define-public’ clause
> to export the package variable.  To figure it out, you may load the
> module from Guile to get more information about the actual error:
>
>       ./pre-inst-env guile -c '(use-modules (gnu packages gnew))'"
>
> After putting the new package definition below into python.scm:
> (define-public python-twisted
>    (package
>      (name "python-twisted")
>      (version "15.5.0")
>      (source
>       (origin
>         (method url-fetch)
> ;       (extension "tar.bz2")
> ;       (uri (pypi-uri "Twisted" version extension))
>         (uri (pypi-uri "Twisted" version))
>         (sha256
>          (base32
>           "0zy18lcrris4aaslil5k12i13k56c32hzfdv6h10kbnzl026h158"))))
>      (build-system python-build-system)
>      (inputs
>       `(("python-setuptools" ,python-setuptools)))
>      (home-page "http://twistedmatrix.com/")
>      (synopsis
>       "An asynchronous networking framework written in Python")
>      (description
>       "An asynchronous networking framework written in Python")
>      (license license:expat)))
>
> ./pre-inst-env guix build cannot find it.

Is there more output?  Sometimes syntax errors or otherwise invalid
expressions are reported as guix build fails to find the package.

From what I can tell “./pre-inst-env guix build python-twisted” should
just work.  I have never had to use the “guile -c” way.

~~ Ricardo

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

end of thread, other threads:[~2016-01-23 10:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-22 20:58 Guile 2.0.11 error during test of package definition on Trisquel 7 swedebugia
2016-01-23 10:46 ` Ricardo Wurmus

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).