mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
build-system/gnu: Optimize the package graph.
With this change, the output of: guix graph -e '(@@ (gnu packages commencement) coreutils-final)' |grep 'label = ' | wc -l drops from 76 nodes to 68 nodes, and the "add-data-to-store-cache" hit rate for: guix build libreoffice -d --no-grafts drops from 3.9% to 2.6%. * guix/build-system/gnu.scm (package-with-explicit-inputs*)[cut?]: Adjust condition to exclude packages with build systems other than GNU-BUILD-SYSTEM, such as 'ld-wrapper-boot3'.
This commit is contained in:
parent
9f78552996
commit
5a17b9b673
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -151,8 +151,8 @@ (define (add-explicit-inputs p)
|
|||
p))
|
||||
|
||||
(define (cut? p)
|
||||
(and (eq? (package-build-system p) gnu-build-system)
|
||||
(memq #:implicit-inputs? (package-arguments p))))
|
||||
(or (not (eq? (package-build-system p) gnu-build-system))
|
||||
(memq #:implicit-inputs? (package-arguments p))))
|
||||
|
||||
(package-mapping add-explicit-inputs cut?))
|
||||
|
||||
|
|
Loading…
Reference in a new issue