From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aE9OBPAUTl+8JgAA0tVLHw (envelope-from ) for ; Tue, 01 Sep 2020 09:31:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8Ns9APAUTl8vaQAA1q6Kng (envelope-from ) for ; Tue, 01 Sep 2020 09:31:28 +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 EAEAB940B9D for ; Tue, 1 Sep 2020 09:31:26 +0000 (UTC) Received: from localhost ([::1]:36882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kD2dQ-0008JD-SU for larch@yhetil.org; Tue, 01 Sep 2020 05:31:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kD2VK-0007aS-CY for bug-guix@gnu.org; Tue, 01 Sep 2020 05:23:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43469) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kD2VK-00086L-0K for bug-guix@gnu.org; Tue, 01 Sep 2020 05:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kD2VJ-00015B-SG for bug-guix@gnu.org; Tue, 01 Sep 2020 05:23:01 -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: Tue, 01 Sep 2020 09:23:01 +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.15989521334091 (code B ref 42947); Tue, 01 Sep 2020 09:23:01 +0000 Received: (at 42947) by debbugs.gnu.org; 1 Sep 2020 09:22:13 +0000 Received: from localhost ([127.0.0.1]:55015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kD2UX-00013t-DE for submit@debbugs.gnu.org; Tue, 01 Sep 2020 05:22:13 -0400 Received: from mx1.riseup.net ([198.252.153.129]:58362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kD2UV-00013k-8K for 42947@debbugs.gnu.org; Tue, 01 Sep 2020 05:22:12 -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 4BghRQ46YDzFmZc; Tue, 1 Sep 2020 02:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1598952130; bh=Y+OZeSEa038GSdAlD9CvHIAPubPDjUpNzO2Uldj2AGA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=aDKZuxpmWcJT9zQsZtCpfq+7ONYuFVv3cnaxSK7Tg5bCWWrp2AHdPJtQdYm5dYB8Q t36xEMMjkKhqNoxk3ewFfcfWqT40lm6zhhh7AHJ0o01VNI7h209PIP03cQgpLfNK2/ TY6P+Zr0ezgV3GvnZKjxLxiLPeoPGdHVJNF24hPY= X-Riseup-User-ID: 52197CE1D03252CAE7F3B7BDA47595EA5AD1C3AF4F057A53E2DFC12881A84C77 Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 4BghRP1h5TzJml3; Tue, 1 Sep 2020 02:22:08 -0700 (PDT) References: <4a5dea57-8b0d-8139-3a0f-f686a674198d@riseup.net> <873646rjkt.fsf@gnu.org> <8b0bf91a-5962-9c02-ef0e-ea83df4d116c@riseup.net> <87eenmbkld.fsf@gnu.org> From: Martin Becze Message-ID: Date: Tue, 1 Sep 2020 04:22:03 -0500 MIME-Version: 1.0 In-Reply-To: <87eenmbkld.fsf@gnu.org> Content-Type: multipart/mixed; boundary="------------5B3487F3D45518862A3C1B68" Content-Language: en-US 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=aDKZuxpm; 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: uZlWha2Nn2zj This is a multi-part message in MIME format. --------------5B3487F3D45518862A3C1B68 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit > I see, but now we’re creating a directory that remains empty, and as I > wrote, chez-fmt is actually installed in another directory anyway: Oh yikes! Yeah so I see half of the scheme libraries are installed in lib/csv-site and other are installed in lib/csv-site. It appears that there was a missing make flag for scheme-fmt and several others. Attached is an updated patch that fixes that. On 8/31/20 3:56 PM, Ludovic Courtès wrote: > Hi, > > Martin Becze skribis: > >>> 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. > > I see, but now we’re creating a directory that remains empty, and as I > wrote, chez-fmt is actually installed in another directory anyway: > >>> 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--- > > So perhaps the search path should be just lib/csv-site? Is that > consistent across Chez packages? > > Thanks, > Ludo’. > --------------5B3487F3D45518862A3C1B68 Content-Type: text/x-patch; charset=UTF-8; name="v2-0001-gnu-chez-scheme-Fix-libary-directory-issue.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="v2-0001-gnu-chez-scheme-Fix-libary-directory-issue.patch" >From 328ab304b47671dcdc03768f07484aae298ca646 Mon Sep 17 00:00:00 2001 From: Martin Becze Date: Thu, 20 Aug 2020 12:39:50 -0500 Subject: [PATCH v2 1/2] gnu: chez-scheme: Fix libary directory issue. 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 (chez-make-flags): Add chezversion to make flags. --- gnu/packages/chez.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm index da0b17e799..ac8fce5a1a 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")) (symlink (string-append bin "/scheme") (string-append bin "/" name)) (map (lambda (file) @@ -416,9 +418,11 @@ Chez Scheme.") ;; files. (define (chez-make-flags name version) `(let ((out (assoc-ref %outputs "out"))) - (list (string-append "PREFIX=" out) - (string-append "DOCDIR=" out "/share/doc/" - ,name "-" ,version)))) + (list + (string-append "chezversion=" ,(package-version chez-scheme)) + (string-append "PREFIX=" out) + (string-append "DOCDIR=" out "/share/doc/" + ,name "-" ,version)))) (define-public chez-matchable (package -- 2.28.0 --------------5B3487F3D45518862A3C1B68--