lint: Check for inappropriate inputs in propagated-inputs too.

* guix/lint.scm (check-inputs-should-be-native): Also check the
propagated inputs of the package.
This commit is contained in:
Efraim Flashner 2020-04-10 00:29:56 +03:00
parent 960abd5859
commit d95252baf9
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -7,7 +7,7 @@
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2017 Alex Kost <alezost@gmail.com>
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017, 2018, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018, 2019 Arun Isaac <arunisaac@systemreboot.net>
;;;
;;; This file is part of GNU Guix.
@ -286,7 +286,8 @@ of a package, and INPUT-NAMES, a list of package specifications such as
(define (check-inputs-should-be-native package)
;; Emit a warning if some inputs of PACKAGE are likely to belong to its
;; native inputs.
(let ((inputs (package-inputs package))
(let ((inputs (append (package-inputs package)
(package-propagated-inputs package)))
(input-names
'("pkg-config"
"autoconf"