lint: Check for inappropriate inputs in propagated-inputs too.
authorEfraim Flashner <efraim@flashner.co.il>
Thu, 9 Apr 2020 21:29:56 +0000 (00:29 +0300)
committerEfraim Flashner <efraim@flashner.co.il>
Thu, 9 Apr 2020 21:45:59 +0000 (00:45 +0300)
* guix/lint.scm (check-inputs-should-be-native): Also check the
propagated inputs of the package.

guix/lint.scm

index 72582cf..bda5c0c 100644 (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"