unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Common Lisp systems using `package-inferred-system' fails to find dependency
@ 2023-08-30 13:26 Simen Endsjø
  2023-09-04  8:00 ` Guillaume Le Vaillant
  0 siblings, 1 reply; 2+ messages in thread
From: Simen Endsjø @ 2023-08-30 13:26 UTC (permalink / raw)
  To: help-guix

Hi,

I’m trying to package some Common Lisp projects which is using
package-inferred-system, but I’m not really sure how this should be done.

I get into a problem packaging log4cl-extras, which has the system
log4cl-extras/error, which in turn uses dissect.

Adding `(inputs (list cl-dissect ...))' doesn’t work, and still gives an error:

┌────
│ Component dissect not found, required by
│ #<PACKAGE-INFERRED-SYSTEM "log4cl-extras/error">
└────

So I probably need to package these in some other way? These projects are using
<https://github.com/40ants/40ants-asdf-system> if that makes a difference.

Any pointers in the right direction would be appreciated.

┌────
│ (define-public sbcl-log4cl-extras
│   (let ((commit "920e5e551b116419aa82de46e4a8a0f787db7d82")
│         (revision "0"))
│     (package
│       (name "sbcl-log4cl-extras")
│       (version (git-version "0.9.0" revision commit))
│       (source
│        (origin
│          (method git-fetch)
│          (uri (git-reference
│                (url "https://github.com/40ants/log4cl-extras")
│                (commit commit)))
│          (sha256
│           (base32 "0nhzsh9sm19kd6nwn8k4j8rkfpjnkfx3i30zqr2kvjs0h27ljpjy"))))
│       (build-system asdf-build-system/sbcl)
│       (arguments
│        ;; Drop tests to avoid package more packages
│        '(#:tests? #f))
│       (native-inputs
│        (list))
│       (inputs
│        (list
│         cl-40ants-asdf-system
│         cl-pythonic-string-reader
│         cl-log4cl
│         cl-jonathan
│         cl-40ants-doc
│         cl-strings
│         cl-global-vars
│         cl-dissect
│         cl-with-output-to-stream))
│       (home-page "https://40ants.com/log4cl-extras")
│       (synopsis "A bunch of addons to LOG4CL: JSON appender, context fields, cross-finger appender, etc.")
│       (description
│        "This library extends LOG4CL system in a few ways:
│ 
│ * It helps with configuration of multiple appenders and layouts.
│ * Has a facility to catch context fields and to log them.
│ * Has a macro to log unhandled errors.
│ * Adds a layout to write messages as JSON, which is useful for production as makes easier to parse and process such logs.
│ * Uses the appenders which are not disabled in case of some error which again, should be useful for production.")
│       (license license:bsd-4))))
└────

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

* Re: Common Lisp systems using `package-inferred-system' fails to find dependency
  2023-08-30 13:26 Common Lisp systems using `package-inferred-system' fails to find dependency Simen Endsjø
@ 2023-09-04  8:00 ` Guillaume Le Vaillant
  0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Le Vaillant @ 2023-09-04  8:00 UTC (permalink / raw)
  To: Simen Endsjø; +Cc: help-guix

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

Simen Endsjø <simendsjo@gmail.com> skribis:

> │ (define-public sbcl-log4cl-extras
> │   [...]
> │       (inputs
> │        (list
> │         cl-40ants-asdf-system
> │         cl-pythonic-string-reader
> │         cl-log4cl
> │         cl-jonathan
> │         cl-40ants-doc
> │         cl-strings
> │         cl-global-vars
> │         cl-dissect
> │         cl-with-output-to-stream))
> │   [...]

Hi.
As you're making a package for sbcl, it should use the inputs
compiled for sbcl instead of the source-only inputs.
E.g.: sbcl-log4cl instead of cl-log4cl, sbcl-cl-strings instead of
cl-strings, etc.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

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

end of thread, other threads:[~2023-09-04  8:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-30 13:26 Common Lisp systems using `package-inferred-system' fails to find dependency Simen Endsjø
2023-09-04  8:00 ` Guillaume Le Vaillant

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