From: Saku Laesvuori via Guix-patches via <guix-patches@gnu.org>
To: 67921@debbugs.gnu.org
Cc: Saku Laesvuori <saku@laesvuori.fi>, Lars-Dominik Braun <lars@6xq.net>
Subject: [bug#67921] [PATCH haskell-team 3/3] guix: haskell-build-system: Hide dependecies from ghc's package db
Date: Wed, 20 Dec 2023 09:13:49 +0200 [thread overview]
Message-ID: <6030eebe203e81a45acda76c95bcbfb064ff5e74.1703056111.git.saku@laesvuori.fi> (raw)
In-Reply-To: <5cdfcf3aadfbe42655b941764d5a700b6d4bca88.1703056111.git.saku@laesvuori.fi>
A Haskell package P contains information about all other haskell
packages P_n it depends on. This commit hides the packages P_n in the
package database stored in P, which enables being explicit about which
haskell packages one wants to be visible in their profile.
* guix/build/haskell-build-system.scm
(register)[install-transitive-deps]: Set the 'exposed' field to False in
the dependencies' .conf files. Remove a comment about symlinking because
the copied files are now modified.
Fixes: https://issues.guix.gnu.org/66347
Change-Id: I66332cd49e6036689873d9435036c9f876216f1b
---
guix/build/haskell-build-system.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/guix/build/haskell-build-system.scm b/guix/build/haskell-build-system.scm
index 0e94cf59a5..83c742427a 100644
--- a/guix/build/haskell-build-system.scm
+++ b/guix/build/haskell-build-system.scm
@@ -214,7 +214,10 @@ (define* (register #:key name system inputs outputs #:allow-other-keys)
(unless dep-conf*-exists?
(unless dep-conf-exists?
(error (format #f "File ~a does not exist. This usually means the dependency ~a is missing. Was checking conf-file ~a." dep-conf id conf-file)))
- (copy-file dep-conf dep-conf*)) ;XXX: maybe symlink instead?
+ (copy-file dep-conf dep-conf*)
+ (substitute* dep-conf*
+ (("(exposed:[ \t]*)True" _ field)
+ (string-append field "False"))))
(loop (vhash-cons id #t seen) next-tail))
(loop seen tail))))))
--
2.41.0
next prev parent reply other threads:[~2023-12-20 7:15 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-20 7:10 [bug#67921] [PATCH haskell-team 1/3] gnu: ghc-next: Update to version 9.4.8 Saku Laesvuori via Guix-patches via
2023-12-20 7:13 ` [bug#67921] [PATCH haskell-team 2/3] gnu: ghc: Use version 9.4.8 as the default Saku Laesvuori via Guix-patches via
2023-12-22 10:07 ` Lars-Dominik Braun
2023-12-22 10:33 ` Saku Laesvuori via Guix-patches via
2023-12-22 11:03 ` Lars-Dominik Braun
2023-12-20 7:13 ` Saku Laesvuori via Guix-patches via [this message]
2024-01-06 18:42 ` [bug#67921] [PATCH haskell-team 3/3] guix: haskell-build-system: Hide dependecies from ghc's package db Lars-Dominik Braun
2024-01-08 7:09 ` Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [WIP PATCH v2 00/23] Update GHC to 9.6.4 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69154] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 01/23] gnu: ghc-next: Update to version 9.4.8 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69144] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 02/23] gnu: Add ghc-js-flot-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69143] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 03/23] gnu: Add ghc-clock-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69142] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 04/23] gnu: Add ghc-extra-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69151] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 05/23] gnu: Add ghc-hashable-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69158] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 06/23] gnu: Add ghc-splitmix-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69165] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 07/23] gnu: Add ghc-random-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69156] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 08/23] gnu: Add ghc-primitive-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69161] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 09/23] gnu: Add ghc-js-jquery-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69153] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 10/23] gnu: Add ghc-utf8-string-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69157] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 11/23] gnu: Add ghc-heaps-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69152] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 12/23] gnu: Add ghc-js-dgtable-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69146] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 13/23] gnu: Add ghc-nats-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69147] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 14/23] gnu: Add ghc-tagged-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69145] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 15/23] gnu: Add ghc-semigroups-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69148] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 16/23] gnu: Add ghc-base16-bytestring-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69155] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 17/23] gnu: Add ghc-cryptohash-sha256-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69160] " Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#67921] [PATCH v2 18/23] gnu: Add ghc-unordered-containers-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:49 ` [bug#69149] " Saku Laesvuori via Guix-patches via
2024-02-15 8:50 ` [bug#67921] [PATCH v2 19/23] gnu: Add ghc-filepattern-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:50 ` [bug#69162] " Saku Laesvuori via Guix-patches via
2024-02-15 8:50 ` [bug#67921] [PATCH v2 20/23] gnu: Add ghc-shake-bootstrap-for-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:50 ` [bug#69163] " Saku Laesvuori via Guix-patches via
2024-02-15 8:50 ` [bug#67921] [PATCH v2 21/23] gnu: Add hadrian-for-ghc-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:50 ` [bug#69164] " Saku Laesvuori via Guix-patches via
2024-02-15 8:50 ` [bug#67921] [PATCH v2 22/23] gnu: Add ghc-9.6 Saku Laesvuori via Guix-patches via
2024-02-15 8:50 ` [bug#69159] " Saku Laesvuori via Guix-patches via
2024-02-15 8:50 ` [bug#67921] [PATCH v2 23/23] gnu: ghc: Update to version 9.6.4 Saku Laesvuori via Guix-patches via
2024-02-15 8:50 ` [bug#69150] " Saku Laesvuori via Guix-patches via
2024-02-15 16:41 ` [bug#69154] Closing accidental issues Saku Laesvuori via Guix-patches via
2024-02-15 17:05 ` Hilton Chain via Guix-patches via
2024-02-15 17:05 ` [bug#67921] [WIP PATCH v2 00/23] Update GHC to 9.6.4 Suhail via Guix-patches via
2024-02-15 17:49 ` Saku Laesvuori via Guix-patches via
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6030eebe203e81a45acda76c95bcbfb064ff5e74.1703056111.git.saku@laesvuori.fi \
--to=guix-patches@gnu.org \
--cc=67921@debbugs.gnu.org \
--cc=lars@6xq.net \
--cc=saku@laesvuori.fi \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.