From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MFbQNeoqeGJNJwEAbAwnHQ (envelope-from ) for ; Sun, 08 May 2022 22:41:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YCatNeoqeGIoFAEA9RJhRA (envelope-from ) for ; Sun, 08 May 2022 22:41:14 +0200 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 7B08C15B8B for ; Sun, 8 May 2022 22:41:14 +0200 (CEST) Received: from localhost ([::1]:60518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnniL-0005Ar-5j for larch@yhetil.org; Sun, 08 May 2022 16:41:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnnED-0003nd-00 for guix-patches@gnu.org; Sun, 08 May 2022 16:10:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnnEC-0000FA-Ip for guix-patches@gnu.org; Sun, 08 May 2022 16:10:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnnEC-0002NW-EL for guix-patches@gnu.org; Sun, 08 May 2022 16:10:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55248] [PATCH v2 4/9] gnu: chez-scheme: Refactor documentation phases. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 May 2022 20:10:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55248 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55248@debbugs.gnu.org Cc: Liliana Marie Prikler , Maxime Devos , Philip McGrath , Liliana Marie Prikler Received: via spool by 55248-submit@debbugs.gnu.org id=B55248.16520405799018 (code B ref 55248); Sun, 08 May 2022 20:10:04 +0000 Received: (at 55248) by debbugs.gnu.org; 8 May 2022 20:09:39 +0000 Received: from localhost ([127.0.0.1]:55268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnnDm-0002LJ-TI for submit@debbugs.gnu.org; Sun, 08 May 2022 16:09:39 -0400 Received: from mail-vk1-f171.google.com ([209.85.221.171]:35333) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnnDj-0002Ko-Ea for 55248@debbugs.gnu.org; Sun, 08 May 2022 16:09:35 -0400 Received: by mail-vk1-f171.google.com with SMTP id e7so6010431vkh.2 for <55248@debbugs.gnu.org>; Sun, 08 May 2022 13:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KjaP2rvANmmMXNQFFrlb7FuHL+nHim3mKpSwJJ/N+ls=; b=Zwsw8za4McewwxsBsRbpz90sWRjJptQcmkmtzRV2v9fBaDDlqURYHfXtxjfcEPMFvs 22zhH2NJN+bOXBtdbZKYC9hZrtFjP+TG4N/LSShrTvHAajvLZkJ3gyv+C9YYitH/ajIQ P4SHNb9T75Sw64R8TPZytiK7EDVIOFt55eGqnE6h4854Z/WKmA9fgrhtGcsFgAz4c71X znTepeNy175mvk52Jf6OzDme+19aEVmkDKc96iJtDQ4s1QqrvjtIWz1rlvNUFNy6AMrw YpY78J25f+oeHxO2V8xIDCoge2I41poZ+ShCV/n6V3ILaCVz1XTSqoufRxF/CSXT2JfB G0mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KjaP2rvANmmMXNQFFrlb7FuHL+nHim3mKpSwJJ/N+ls=; b=q1EE4oaf+PNm6G5QklAu3TME11XaJ98vxuKg+29Vwa+LuVIHtZk79kPv9kc1d1nUtf IyDXlt6lw9kgh4IoxXvgdKg0/caherCwMiiavFM6JH4XdquqT7k1o0B42pQ04sYYZi+6 3dxfmWCfcylh4FDQ/rHMNWA8w5WgFPtdOfBIXoHslNVBfyyhCNoP1Jf+YtxUmy4u9njk 97xAAFHzpef5gyUKYWPziqDnr1nFHwLDZP3LjoiW/Tb9YlHjAmPryTy+241SjiMdG0MH 5MHDidG/IJQWXGsTccnF9cyDXPX+xnuHPOnWwDweg23ce/94HIT0CWPZc6Cej/ZOAAly cN5Q== X-Gm-Message-State: AOAM533nGtZpQ2ABn/MjyzKy9nn/6r6T2PfXrmWIxX0xhRJUuPO2L55h 3zBzm9KbiOb1oxi9hWyjLuGl3tQAaqXSSkeC X-Google-Smtp-Source: ABdhPJwCGC9D5s3Tow0fQHm7VX9l42zN9d2aBwUaU/AR0SIp4e+60nJTXWgLDu8gfWp6njUiDCqqQw== X-Received: by 2002:ac5:cb65:0:b0:34d:58d9:216d with SMTP id l5-20020ac5cb65000000b0034d58d9216dmr6921441vkn.21.1652040569973; Sun, 08 May 2022 13:09:29 -0700 (PDT) Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51]) by smtp.gmail.com with UTF8SMTPSA id u68-20020a1f2e47000000b0034e6f1fd048sm1563973vku.18.2022.05.08.13.09.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 May 2022 13:09:29 -0700 (PDT) From: Philip McGrath Date: Sun, 8 May 2022 16:07:47 -0400 Message-Id: <55dfaa9f70c0842d05424ed394c232e5454262d1.1652039837.git.philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652042474; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KjaP2rvANmmMXNQFFrlb7FuHL+nHim3mKpSwJJ/N+ls=; b=Dvpi1HkMDL7tj6oJ/agfw9IoBJ/l+DhDtxpRP+5Z+A/eWwruJV9T1MsFtzfgKO7ZARMt4h CgdeBnRJFFp7EUhw8yDE6kmjGCGm8j62YM2OIfk5hx3p1s+ZOioBmu4+osY/Rr4gfRNUHw c6P+L4ApLDubxFrnlB9aKBKjTakqGA0zH/i7EO34PHeSeUsLj16kdiieQrxZGKri4NDqqk 5aOfqhi0vFsMVzJmIWJEumIVjdnB0k/GqgWMDIubtwXkJ1tntTEulJiBK0zKxGUJst4DyH NNelJbDxN6vfbP3Ha0EnteDQg8wbsE1W4qJ9NlUhLv4OCfZcCeyONGjB4odAEQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652042474; a=rsa-sha256; cv=none; b=ENvaFuxwrVV29Ilz9KZQ2ozU5GQ6AaIWOL0dRiHKwyiYgNOqykxijyktst5SjuYMe59vJ4 ilj54cHqSueWBvEAqk0uf03vpxBrnvU+KFnAuboD5Os19vMO65pqwiiCwx36XeXWGm1xSg BcavOJG5RnjdH4C/VDkBtFq/CCm07seVEf1xU0BR1LezcRaYfW6q3F+mA4QrZayS2f/nmy qJKpkgLoBPZd0fCx2yn7ni9KnJcNnDzvF5EioJ6dsCa9I9EF8eOZwd9coPStnx/xfge8q7 QEvSKH9P47IKlMtkv28OV6z0u7Z8fpmGtjwqKZnuM3BXOmpK5Tg6Z5sQODOrtg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=Zwsw8za4; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=Zwsw8za4; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7B08C15B8B X-Spam-Score: 3.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: xRdo6YyoXNnu Patches merged in both upstream Chez Scheme and Racket's variant will soon let us replace the 'install-docs' phase with just 'make install-docs'. Separating the 'link-doc-pdfs' phase (which won't change) leaves us well-prepared for the transition, regardless of whether Chez Scheme 9.5.10 or Racket 8.6 is released first. * gnu/packages/chez.scm (chez-scheme)[arguments]: Split 'install-doc' phase into 'install-docs' (matching the future 'make' target) and 'link-doc-pdfs'. --- gnu/packages/chez.scm | 64 ++++++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm index 34545b1f58..49051abd17 100644 --- a/gnu/packages/chez.scm +++ b/gnu/packages/chez.scm @@ -309,35 +309,43 @@ (define-public chez-scheme (string-append (dirname scheme.boot) "/chez-scheme.boot"))))))) ;; Building the documentation requires stex and a running scheme. - ;; FIXME: this is probably wrong for cross-compilation - (add-after 'install-symlink 'install-doc + (add-after 'install-symlink 'install-docs (lambda* (#:key native-inputs inputs outputs #:allow-other-keys) - (match (assoc-ref outputs "doc") - (#f - (format #t "not installing docs~%")) - (doc-prefix - (let* ((chez+version (strip-store-file-name #$output)) - (scheme (search-input-file outputs "/bin/scheme")) - (stexlib (search-input-directory (or native-inputs - inputs) - "/lib/stex")) - (doc-dir (string-append doc-prefix - "/share/doc/" - chez+version))) - (define* (stex-make #:optional (suffix "")) - (invoke "make" "install" - (string-append "Scheme=" scheme) - (string-append "STEXLIB=" stexlib) - (string-append "installdir=" doc-dir suffix))) - (with-directory-excursion "csug" - (stex-make "/csug")) - (with-directory-excursion "release_notes" - (stex-make "/release_notes")) - (with-directory-excursion doc-dir - (symlink "release_notes/release_notes.pdf" - "release_notes.pdf") - (symlink "csug/csug9_5.pdf" - "csug.pdf")))))))))) + (let* ((doc-prefix (or (assoc-ref outputs "doc") + (assoc-ref outputs "out"))) + (chez+version (strip-store-file-name #$output)) + (scheme (search-input-file outputs "/bin/scheme")) + (stexlib (search-input-directory (or native-inputs + inputs) + "/lib/stex")) + (doc-dir (string-append doc-prefix + "/share/doc/" + chez+version))) + (define* (stex-make #:optional (suffix "")) + (invoke "make" "install" + (string-append "Scheme=" scheme) + (string-append "STEXLIB=" stexlib) + (string-append "installdir=" doc-dir suffix))) + (with-directory-excursion "csug" + (stex-make "/csug")) + (with-directory-excursion "release_notes" + (stex-make "/release_notes"))))) + (add-after 'install-docs 'link-doc-pdfs + ;; otherwise, it's hard to notice them in a forest of HTML files + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion + (string-append (or (assoc-ref outputs "doc") + (assoc-ref outputs "out")) + "/share/doc/" + (strip-store-file-name #$output)) + (symlink "release_notes/release_notes.pdf" + "release_notes.pdf") + (match (find-files "csug" + "csug.*\\.pdf$" ;; embeded version number + #:fail-on-error? #t) + ((pth) + (symlink pth + "csug.pdf"))))))))) ;; Chez Scheme does not have a MIPS backend. ;; FIXME: Debian backports patches to get armhf working. ;; We should too. It is the Chez machine type arm32le -- 2.32.0