unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Looking for help with packaging a Common Lisp library
@ 2020-01-25 15:03 Konrad Hinsen
  2020-01-25 15:51 ` Pierre Neidhardt
  0 siblings, 1 reply; 16+ messages in thread
From: Konrad Hinsen @ 2020-01-25 15:03 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 660 bytes --]

Hi Guix,

I hope that some Common Lisp expert here can help me with a strange
error message.

I am trying to package the library hdf5-cffi, my current package
definition is attached. It builds without any error message, but
when I try to load the library with

  (asdf:load-system "hdf5-cffi")

I get the error message

 The name "CFFI-GROVEL" does not designate any package.

when loading

  /gnu/store/3lcw9qvx76770wpsbgdvma154y84v54i-sbcl-hdf5-cffi-1.8.18/lib/sbcl/hdf5-cffi--system.fasl

It doesn't make a difference if I put sbcl-cffi-grovel under inputs or
propagated-inputs.

Does anyone have an idea what could be going wrong here?

Cheers,
  Konrad.


[-- Attachment #2: cl-hdf5-cffi.scm --]
[-- Type: application/octet-stream, Size: 2293 bytes --]

(use-modules (gnu packages lisp-xyz)
             (gnu packages maths)
	     ((guix licenses) #:prefix license:)
	     (guix packages)
	     (guix download)
             (guix git-download)
	     (guix build-system asdf)
             (guix utils))

(define-public sbcl-hdf5-cffi
  (let ((commit "5b5c88f191e470e4fe96b462334e3ce0806eed5c")
        (revision "1"))
    (package
      (name "sbcl-hdf5-cffi")
      (version "1.8.18")
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://github.com/hdfgroup/hdf5-cffi.git")
               (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32
           "0vda3075423xz83qky998lpac5b04dwfv7bwgh9jq8cs5v0zrxjf"))))
      (build-system asdf-build-system/sbcl)
      (synopsis "Common Lisp bindings for the HDF5 library")
      (description
       "hdf5-cffi is a CFFI wrapper for the HDF5 library.")
      (home-page "https://github.com/hdfgroup/hdf5-cffi")
      (license (license:non-copyleft
                (string-append "https://github.com/HDFGroup/hdf5-cffi/raw/"
                               commit
                               "/LICENSE")))
      (inputs
       `(("cffi" ,sbcl-cffi)
         ("hdf5" ,hdf5-1.10)))
      ;; This shouldn't need to be a propagated input.
      (propagated-inputs
       `(("cffi-grovel" ,sbcl-cffi-grovel)))
      (native-inputs
       `(("fiveam" ,sbcl-fiveam)))
      (arguments
       `(#:asd-system-name "hdf5-cffi"
         #:asd-file "hdf5-cffi.asd"
         #:test-asd-file "hdf5-cffi.test.asd"
         ;; Tests require loading hdf5-cffi.examples.asd as well,
         ;; I don't know if that is possible with asdf-build-system.
         #:tests? #f
         #:phases
         (modify-phases %standard-phases
           (add-after 'unpack 'fix-paths
             (lambda* (#:key inputs #:allow-other-keys)
               (substitute* "src/library.lisp"
                 (("libhdf5.so")
                  (string-append
                   (assoc-ref inputs "hdf5")
                   "/lib/libhdf5.so")))))))))))


(define-public cl-hdf5-cffi
  (sbcl-package->cl-source-package sbcl-hdf5-cffi))

(define-public ecl-hdf5-cffi
  (sbcl-package->ecl-package sbcl-hdf5-cffi))

sbcl-hdf5-cffi

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

end of thread, other threads:[~2020-01-28 17:09 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-25 15:03 Looking for help with packaging a Common Lisp library Konrad Hinsen
2020-01-25 15:51 ` Pierre Neidhardt
2020-01-25 16:13   ` Guillaume Le Vaillant
2020-01-25 16:19     ` Pierre Neidhardt
2020-01-25 18:28       ` Guillaume Le Vaillant
2020-01-25 19:10         ` Pierre Neidhardt
2020-01-25 19:57     ` Konrad Hinsen
2020-01-25 20:04       ` Pierre Neidhardt
2020-01-26 10:54         ` Konrad Hinsen
2020-01-26 12:15           ` Pierre Neidhardt
2020-01-26 18:04             ` Konrad Hinsen
2020-01-27 14:07               ` Guillaume Le Vaillant
2020-01-27 14:33                 ` Pierre Neidhardt
2020-01-28 10:07                   ` Guillaume Le Vaillant
2020-01-28 11:15                     ` Pierre Neidhardt
2020-01-28 17:09                       ` Konrad Hinsen

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