unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Martin Becze <mjbecze@riseup.net>
Cc: 42947@debbugs.gnu.org
Subject: bug#42947: Chez Scheme libraries are broken
Date: Fri, 28 Aug 2020 15:22:42 +0200	[thread overview]
Message-ID: <873646rjkt.fsf@gnu.org> (raw)
In-Reply-To: <4a5dea57-8b0d-8139-3a0f-f686a674198d@riseup.net> (Martin Becze's message of "Thu, 20 Aug 2020 06:30:44 -0500")

Hi Martin,

Martin Becze <mjbecze@riseup.net> skribis:

> Chez Scheme libraries are broken. For example `guix environment --ad-hoc
> chez-scheme chez-fmt`. chez-fmt will not install (for me) because it is
> dependent on chez-srfi and chez-scheme seem unable to locate it.
>
> I think it is because CHEZSCHEMELIBDIRS is not being set. But I'm not
> sure why that is happening. The chez-scheme package includes the following
>
>
> ```
> (native-search-paths
>       (list (search-path-specification
>             (variable "CHEZSCHEMELIBDIRS")
>             (files (list (string-append "lib/csv" version "-site"))))))
> ```
> Which I think should set it.
>
> -Martin

Martin Becze <mjbecze@riseup.net> skribis:

> By default chez-scheme seems to be using lib/csv<version> for libaries. This
> creates the directory lib/csv<version>-site which the scheme libary packages
> expect.
>
> * gnu/packages/chez.scm (chez-scheme): Create libary directory.
> ---
>  gnu/packages/chez.scm | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm
> index b80421d3f7..bb584696ae 100644
> --- a/gnu/packages/chez.scm
> +++ b/gnu/packages/chez.scm
> @@ -194,6 +194,8 @@
>                      (bin (string-append out "/bin"))
>                      (lib (string-append out "/lib"))
>                      (name "chez-scheme"))
> +               ;; create the folder for libary installation
> +               (mkdir (string-append lib "/csv" ,version "-site"))

This is creating an empty directory, right?  Are you sure this helps?

Isn’t the problem that packages like chez-fmt install libraries in
‘csv-site’ instead of ‘csv1.2.3-site’?

--8<---------------cut here---------------start------------->8---
$ find $(./pre-inst-env  guix build chez-fmt)
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11/lib
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11/lib/csv-site
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11/lib/csv-site/fmt-js.so
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11/lib/csv-site/fmt-c.so
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11/lib/csv-site/fmt.so
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11/share
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11/share/doc
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11/share/doc/chez-fmt-0.8.11
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11/share/doc/chez-fmt-0.8.11/fmt.css
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11/share/doc/chez-fmt-0.8.11/README
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11/share/doc/chez-fmt-0.8.11/fmt.html
/gnu/store/qr8mgphbivlqbdmn355kps2cxlmi679d-chez-fmt-0.8.11/share/doc/chez-fmt-0.8.11/VERSION
--8<---------------cut here---------------end--------------->8---

Thanks,
Ludo’.




  parent reply	other threads:[~2020-08-28 13:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-20 11:30 bug#42947: Chez Scheme libraries are broken Martin Becze
2020-08-20 17:59 ` bug#42947: [PATCH 1/2] gun: chez-scheme: Create libary directory Martin Becze
2020-08-20 17:59   ` bug#42947: [PATCH 2/2] gnu: chez-srfi: Fix tests Martin Becze
2020-08-28 13:21     ` Ludovic Courtès
2020-08-28 13:22 ` Ludovic Courtès [this message]
2020-08-31 16:53   ` bug#42947: Chez Scheme libraries are broken Martin Becze
2020-08-31 20:56     ` Ludovic Courtès
2020-09-01  9:22       ` Martin Becze
2020-09-02 14:36         ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873646rjkt.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=42947@debbugs.gnu.org \
    --cc=mjbecze@riseup.net \
    /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 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).