From 84728d5ba408c11344f78a6da50fd720d74e3c0a Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 31 Jan 2024 00:07:06 -0500 Subject: gnu: Do not eagerly load (gnu packages commencement). As its top comment says, this module is not meant to be imported to avoid circular module dependencies. * gnu/packages/chicken.scm (chicken) [propagated-inputs]: Resolve gcc-toolchain lazily. * gnu/packages/plan9.scm (plan9port): Likewise. * gnu/packages/raspberry-pi.scm (raspi-arm64-chainloader) [native-inputs]: Resolve ld-wrapper lazily. Change-Id: Ie9859046ed32b67dc53bcc5444d6ae162e5d4022 --- gnu/packages/chicken.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gnu/packages/chicken.scm') diff --git a/gnu/packages/chicken.scm b/gnu/packages/chicken.scm index 8f5e8ce98d..3743ae3e2a 100644 --- a/gnu/packages/chicken.scm +++ b/gnu/packages/chicken.scm @@ -26,7 +26,6 @@ (define-module (gnu packages chicken) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix svn-download) - #:use-module (gnu packages commencement) #:use-module ((guix licenses) #:prefix license:)) @@ -68,7 +67,11 @@ (define-public chicken (variable "CHICKEN_REPOSITORY_PATH") ;; TODO extract binary version into a module level definition. (files (list "var/lib/chicken/11"))))) - (propagated-inputs (list gcc-toolchain)) + ;; Reference gcc-toolchain lazily to avoid circular module dependency + ;; problems. + (propagated-inputs (list (module-ref (resolve-interface + '(gnu packages commencement)) + 'gcc-toolchain))) (home-page "https://www.call-cc.org/") (synopsis "R5RS Scheme implementation that compiles native code via C") (description -- cgit v1.2.3