From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4PhNMzUrTV/TTAAA0tVLHw (envelope-from ) for ; Mon, 31 Aug 2020 16:54:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4PATLzUrTV+nRwAAB5/wlQ (envelope-from ) for ; Mon, 31 Aug 2020 16:54:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6FF309400D3 for ; Mon, 31 Aug 2020 16:54:12 +0000 (UTC) Received: from localhost ([::1]:40726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCn4L-00053L-BF for larch@yhetil.org; Mon, 31 Aug 2020 12:54:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCn4E-00053C-GA for bug-guix@gnu.org; Mon, 31 Aug 2020 12:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42020) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCn4E-0003Wh-5z for bug-guix@gnu.org; Mon, 31 Aug 2020 12:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kCn4E-0005sR-4t for bug-guix@gnu.org; Mon, 31 Aug 2020 12:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42947: Chez Scheme libraries are broken Resent-From: Martin Becze Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 31 Aug 2020 16:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42947 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 42947-submit@debbugs.gnu.org id=B42947.159889281322556 (code B ref 42947); Mon, 31 Aug 2020 16:54:02 +0000 Received: (at 42947) by debbugs.gnu.org; 31 Aug 2020 16:53:33 +0000 Received: from localhost ([127.0.0.1]:53566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCn3k-0005rk-NN for submit@debbugs.gnu.org; Mon, 31 Aug 2020 12:53:33 -0400 Received: from mx1.riseup.net ([198.252.153.129]:40660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCn3i-0005rc-QX for 42947@debbugs.gnu.org; Mon, 31 Aug 2020 12:53:31 -0400 Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4BgGVf0V86zFmLd; Mon, 31 Aug 2020 09:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1598892810; bh=OjNxHncTFGzpUyn316YBE+FE+h7OnjoPvwCHxPOpLaU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=dWZ8IFFMP1fLzEqubr+yLU1R72vRGl0dSAViF2EjR2Ku52qwwSwWxXfxHUtRodVoL 30XNXWZ8tlgUcRjOkkamVo7ID7HXOquzUREoDqPLjl6O6EiLZc/K2pFgDr/c+mlDyc MocXtpdyo22MFlkdPQgoPmFKf/nFC1/X5I9prvRo= X-Riseup-User-ID: 31EFE3FF9C661707437A06126FCC838B4E19985690B1B07FD8E87E77E683BA07 Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 4BgGVc4HvFzJnws; Mon, 31 Aug 2020 09:53:28 -0700 (PDT) References: <4a5dea57-8b0d-8139-3a0f-f686a674198d@riseup.net> <873646rjkt.fsf@gnu.org> From: Martin Becze Message-ID: <8b0bf91a-5962-9c02-ef0e-ea83df4d116c@riseup.net> Date: Mon, 31 Aug 2020 11:53:24 -0500 MIME-Version: 1.0 In-Reply-To: <873646rjkt.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 42947@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=riseup.net header.s=squak header.b=dWZ8IFFM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: ppD+kvCeThqG > This is creating an empty directory, right? Are you sure this helps? Yes, I think it solves the problem. On line 92 of the package definition we have ``` (native-search-paths (list (search-path-specification (variable "CHEZSCHEMELIBDIRS") (files (list (string-append "lib/csv" version "-site")))))) ``` search-path-specification won't set the environmental variable unless the folder already exists. Note lib/csv does exist at this point but most libraries seem to want to live lib/csv-site. On 8/28/20 8:22 AM, Ludovic Courtès wrote: > Hi Martin, > > Martin Becze 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 skribis: > >> By default chez-scheme seems to be using lib/csv for libaries. This >> creates the directory lib/csv-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’. > >