[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/31: build: haskell-build-system: Process all transitive dependencies.
From: |
guix-commits |
Subject: |
11/31: build: haskell-build-system: Process all transitive dependencies. |
Date: |
Sun, 26 Feb 2023 04:44:37 -0500 (EST) |
lbraun pushed a commit to branch master
in repository guix.
commit 39c97cf3d03e2a5f7929654ecf92e92ab03bb953
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Jan 6 12:46:26 2023 +0100
build: haskell-build-system: Process all transitive dependencies.
A bug caused install-transitive-deps to stop looping if a dependency
file already existed in the target directory. For Haskell packages
with multiple libraries (like attoparsec) this resulted in missing
dependencies and error messages like this:
The following packages are broken because other packages they depend
on are missing. These broken packages must be rebuilt before they
can be used.
installed package attoparsec-0.14.4 is broken due to missing package
scientific-0.3.7.0-9XG3zUjXOw970JFcruv0cZ
See <https://issues.guix.gnu.org/54729#11>.
* guix/build/haskell-build-system.scm (register): Unconditionally loop
over all tails.
---
guix/build/haskell-build-system.scm | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/guix/build/haskell-build-system.scm
b/guix/build/haskell-build-system.scm
index fb4aba28ea..72e12ba746 100644
--- a/guix/build/haskell-build-system.scm
+++ b/guix/build/haskell-build-system.scm
@@ -214,14 +214,16 @@ given Haskell package."
(() #t) ;done
((id . tail)
(if (not (vhash-assoc id seen))
- (let ((dep-conf (string-append src "/" id ".conf"))
- (dep-conf* (string-append dest "/" id ".conf")))
- (unless (file-exists? dep-conf*)
- (unless (file-exists? dep-conf)
+ (let* ((dep-conf (string-append src "/" id ".conf"))
+ (dep-conf* (string-append dest "/" id ".conf"))
+ (dep-conf-exists? (file-exists? dep-conf))
+ (dep-conf*-exists? (file-exists? dep-conf*))
+ (next-tail (append lst (if dep-conf-exists? (conf-depends
dep-conf) '()))))
+ (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?
- (loop (vhash-cons id #t seen)
- (append lst (conf-depends dep-conf)))))
+ (copy-file dep-conf dep-conf*)) ;XXX: maybe symlink instead?
+ (loop (vhash-cons id #t seen) next-tail))
(loop seen tail))))))
(define (install-config-file conf-file dest output:doc output:lib)
- 06/31: import: hackage: Add upstream-name property., (continued)
- 06/31: import: hackage: Add upstream-name property., guix-commits, 2023/02/26
- 07/31: gnu: Add upstream-name property to Haskell packages., guix-commits, 2023/02/26
- 04/31: gnu: Switch default to GHC 9.2., guix-commits, 2023/02/26
- 01/31: import: hackage: Allow version at the beginning of cabal file., guix-commits, 2023/02/26
- 05/31: import: stackage: Update to release 20.5., guix-commits, 2023/02/26
- 09/31: gnu: Use HACKAGE-URI for packages from Hackage., guix-commits, 2023/02/26
- 10/31: import: haskell: Add new internal library for GHC 9.2., guix-commits, 2023/02/26
- 13/31: Upgrade Haskell packages., guix-commits, 2023/02/26
- 18/31: gnu: elm: Support GHC 9.2., guix-commits, 2023/02/26
- 08/31: import: hackage: Use upstream-name property., guix-commits, 2023/02/26
- 11/31: build: haskell-build-system: Process all transitive dependencies.,
guix-commits <=
- 12/31: build: haskell-build-system: Remove unused linker flags., guix-commits, 2023/02/26
- 14/31: gnu: ghc-9.2: Increase make verbosity., guix-commits, 2023/02/26
- 15/31: gnu: Remove unused Haskell packages., guix-commits, 2023/02/26
- 16/31: gnu: ghc-parsec: Update to 3.1.15.0., guix-commits, 2023/02/26
- 17/31: gnu: idris: Fix overly zealous regular expression., guix-commits, 2023/02/26
- 19/31: build-system: haskell: Drop default "static" output., guix-commits, 2023/02/26
- 20/31: gnu: ghc-9.2: Support static linking with glibc < 2.34., guix-commits, 2023/02/26
- 21/31: gnu: ghc-lua: Disable symbol export., guix-commits, 2023/02/26
- 22/31: build: haskell-build-system: Build static executables by default., guix-commits, 2023/02/26
- 24/31: gnu: hledger: Drop Haskell libraries and documentation., guix-commits, 2023/02/26