@@ -92,7 +92,9 @@
#:use-module (gnu packages bison)
#:use-module (gnu packages boost)
#:use-module (gnu packages calendar)
- #:use-module (gnu packages check)
+ ;; Don't import these modules here, otherwise a cycle would result.
+ ;; If needed, use 'module-ref' + 'resolve-interface'.
+ ;; #:use-module (gnu packages check)
#:use-module (gnu packages cpio)
#:use-module (gnu packages crypto)
#:use-module (gnu packages cryptsetup)
@@ -1681,7 +1683,10 @@ at login. Local and dynamic reconfiguration are its key features.")
(inputs
(list linux-pam))
(native-inputs
- (list python-pytest))
+ ;; Avoid adding Pythonland and GNOMEland to the module closure when
+ ;; all we need is util-linux.
+ (list (module-ref (resolve-interface '(gnu packages check))
+ 'python-pytest)))
(home-page "https://github.com/minrk/pamela")
(synopsis "PAM interface using ctypes")
(description "This package provides a PAM interface using @code{ctypes}.")
@@ -3779,7 +3784,10 @@ from the module-init-tools project.")
'())
(list
;; For the test suite.
- cppcheck
+ ;; Avoid adding Pythonland and GNOMEland to the module closure when
+ ;; all we need is util-linux.
+ (module-ref (resolve-interface '(gnu packages check))
+ 'cppcheck)
;; Avoid adding 'golang' and its dependencies Rubyland and
;; Nodeland to the module closure when all we need is util-linux.
(module-ref (resolve-interface '(gnu packages golang)) 'go))))
@@ -5183,7 +5191,10 @@ arrays when needed.")
(native-inputs
(list perl pkg-config valgrind
;; For tests.
- cmocka))
+ ;; Avoid adding Pythonland and GNOMEland to the module closure when
+ ;; all we need is util-linux.
+ (module-ref (resolve-interface '(gnu packages check))
+ 'cmocka)))
(inputs
`(("json-c" ,json-c)
("libaio" ,libaio)
@@ -6594,7 +6605,11 @@ exceeded.")
#~(list)
#~(list "--enable-unit-tests"))))
(native-inputs
- (list cmocka pkg-config))
+ (list ;; Avoid adding Pythonland and GNOMEland to the module closure when
+ ;; all we need is util-linux.
+ (module-ref (resolve-interface '(gnu packages check))
+ 'cmocka)
+ pkg-config))
(inputs
`(("acl" ,acl) ; extended attributes (xattr)
("libuuid" ,util-linux "lib")
@@ -7243,7 +7258,11 @@ the MTP device as a file system.")
(native-inputs
(list pkg-config
;; For tests.
- check groff))
+ ;; Avoid adding Pythonland and GNOMEland to the module closure when
+ ;; all we need is util-linux.
+ (module-ref (resolve-interface '(gnu packages check))
+ 'check)
+ groff))
(inputs
(list expat libcap libselinux))
(synopsis "Utility to show process environment")