[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#54539] [PATCH 5/6] gnu: earlyoom: Avoid importing Goland and Haskel
From: |
Maxime Devos |
Subject: |
[bug#54539] [PATCH 5/6] gnu: earlyoom: Avoid importing Goland and Haskelland to break cycles. |
Date: |
Wed, 23 Mar 2022 18:48:54 +0000 |
This (partially?) breaks a cycle between (gnu packages linux),
(gnu packages haskell-xyz) and (gnu packages golang).
It seems a bit cheaty to me but it works.
* gnu/packages/linux.scm (earlyoom): Use 'module-ref' and friends to access
'go' and 'pandoc'. Remove now unneeded imports.
---
gnu/packages/linux.scm | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 5a0c5650e4..c47204dc76 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -52,7 +52,7 @@
;;; Copyright © 2020 pukkamustard <pukkamustard@posteo.net>
;;; Copyright © 2021 B. Wilson <elaexuotee@wilsonb.com>
;;; Copyright © 2021 Ivan Gankevich <i.gankevich@spbu.ru>
-;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2021,2022 Maxime Devos <maximedevos@telenet.be>
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
@@ -110,12 +110,13 @@
#:use-module (gnu packages gettext)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnupg)
- #:use-module (gnu packages golang)
+ ;; Don't import these modules here, otherwise a cycle would result.
+ ;; #:use-module (gnu packages golang)
#:use-module (gnu packages gperf)
#:use-module (gnu packages gstreamer)
- ;; Don't import that module here, otherwise a cycle would result.
+ ;; Don't import these modules here, otherwise a cycle would result.
;; #:use-module (gnu packages gtk)
- #:use-module (gnu packages haskell-xyz)
+ ;; #:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages libunwind)
#:use-module (gnu packages libusb)
#:use-module (gnu packages llvm)
@@ -3771,12 +3772,17 @@ from the module-init-tools project.")
(append
;; To generate the manpage.
(if (or (target-x86-64?) (target-x86-32?))
- (list pandoc)
+ ;; Avoid adding Haskelland to the module closure
+ ;; when all we need is util-linux.
+ (list (module-ref (resolve-interface '(gnu packages haskell-xyz))
+ 'pandoc))
'())
(list
;; For the test suite.
cppcheck
- go)))
+ ;; 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))))
(home-page "https://github.com/rfjakob/earlyoom")
(synopsis "Simple out of memory (OOM) daemon for the Linux kernel")
(description "Early OOM is a minimalist out of memory (OOM) daemon that
--
2.30.2
- [bug#54539] [PATCH 0/6] Start breaking up import cycles, (continued)
- [bug#54539] [PATCH 0/6] Start breaking up import cycles, zimoun, 2022/03/24
- [bug#54539] [PATCH 0/6] Start breaking up import cycles, Maxime Devos, 2022/03/24
- [bug#54539] [PATCH 0/6] Start breaking up import cycles, Liliana Marie Prikler, 2022/03/25
- [bug#54539] [PATCH 0/6] Start breaking up import cycles, zimoun, 2022/03/25
- [bug#54539] [PATCH 0/6] Start breaking up import cycles, Maxime Devos, 2022/03/25
- [bug#54539] [PATCH 0/6] Start breaking up import cycles, zimoun, 2022/03/25
- [bug#54539] [PATCH 0/6] Start breaking up import cycles, Leo Famulari, 2022/03/24
- [bug#54539] [PATCH 0/6] Start breaking up import cycles, Liliana Marie Prikler, 2022/03/25
[bug#54539] [PATCH 1/6] gnu: audacity: Move into new module to break cycles., Maxime Devos, 2022/03/23
- [bug#54539] [PATCH 2/6] gnu: xsensors: Move to (gnu packages xorg) to break cycles., Maxime Devos, 2022/03/23
- [bug#54539] [PATCH 5/6] gnu: earlyoom: Avoid importing Goland and Haskelland to break cycles.,
Maxime Devos <=
- [bug#54539] [PATCH 6/6] gnu: linux: Avoid importing (gnu packages check) to break cycles., Maxime Devos, 2022/03/23
- [bug#54539] [PATCH 3/6] gnu: tlp: Move tlp and friends to new module to break cycles., Maxime Devos, 2022/03/23
- [bug#54539] [PATCH 4/6] gnu: go-netlink: Move to (gnu packages networking) to break cycles., Maxime Devos, 2022/03/23
- [bug#54539] [PATCH 1/6] gnu: audacity: Move into new module to break cycles., Maxime Devos, 2022/03/25
[bug#54539] [PATCH 0/6] Start breaking up import cycles, Maxime Devos, 2022/03/24
[bug#54539] [PATCH 0/6] Start breaking up import cycles, Maxime Devos, 2022/03/25