all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#59010] [PATCH] gnu: Add modprobed-db.
@ 2022-11-04  5:49 Hilton Chain via Guix-patches via
  2022-11-09 22:58 ` bug#59010: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Hilton Chain via Guix-patches via @ 2022-11-04  5:49 UTC (permalink / raw)
  To: 59010

* gnu/packages/linux.scm (modprobed-db): New variable.
---
 gnu/packages/linux.scm | 61 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 1690957954..5637511964 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -9512,3 +9512,64 @@ (define-public tp-smapi-module
 @acronym{SMAPI, System Management Application Program Interface} and direct
 access to the embedded controller.")
     (license license:gpl2+)))
+
+(define-public modprobed-db
+  (package
+    (name "modprobed-db")
+    (version "2.46")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/graysky2/modprobed-db")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "017w9czm31f5c7wjyrl5fy6cw7ji681jjc7s913nbc0r43j080qr"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:tests? #f                  ;no tests
+           #:make-flags
+           #~(list (string-append "PREFIX=" #$output)
+                   "INITDIR_SYSTEMD=no-thanks")
+           #:phases
+           #~(modify-phases %standard-phases
+               (delete 'configure)
+               (add-after 'install 'fix-path
+                 (lambda* (#:key inputs #:allow-other-keys)
+                   (substitute* (string-append #$output "/bin/modprobed-db")
+                     (("/usr") #$output)
+                     (((string-append "(" (string-join (list "awk"
+                                                             "cp"
+                                                             "cut"
+                                                             "getent"
+                                                             "grep"
+                                                             "logname"
+                                                             "md5sum"
+                                                             "mkdir"
+                                                             "mv"
+                                                             "sed"
+                                                             "sort"
+                                                             "uniq"
+                                                             "wc")
+                                                       "|") ")") m)
+                      (search-input-file inputs (string-append "/bin/" m)))
+                     (("modprobe ")
+                      (string-append
+                       (search-input-file inputs "/bin/modprobe") " "))))))))
+    (inputs (list coreutils kmod gawk glibc grep sed))
+    (home-page "https://wiki.archlinux.org/index.php/Modprobed-db")
+    (synopsis "Keep track of EVERY kernel module that has ever been probed")
+    (description
+     "@code{Modprobed-db} is a useful utility for users wishing to build a
+minimal kernel via a @code{make localmodconfig}.  In a nutshell, this make
+target creates a config based on the current config and a list of modules you
+define (@code{modprobed-db} keeps for you).  It then disables any module
+option that is not needed thus not building hundreds/potentially thousands of
+extraneous modules.  This results in a system-specific, streamlined kernel
+package and footprint as well as reduced compilation times.
+
+@code{Modprobed-db} simply logs every module ever probed on the target system
+to a text-based database (@code{$XDG_CONFIG_HOME/modprobed-db}) which can be
+read directly by @code{make localmodconfig} as described above.")
+    (license license:expat)))

base-commit: e3280ae8b5c4aaf28eb6de8406215927923a4dff
-- 
2.38.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#59010: [PATCH] gnu: Add modprobed-db.
  2022-11-04  5:49 [bug#59010] [PATCH] gnu: Add modprobed-db Hilton Chain via Guix-patches via
@ 2022-11-09 22:58 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-11-09 22:58 UTC (permalink / raw)
  To: Hilton Chain; +Cc: 59010-done

[-- Attachment #1: Type: text/plain, Size: 172 bytes --]

Hilton Chain <hako@ultrarare.space> skribis:

> * gnu/packages/linux.scm (modprobed-db): New variable.

Applied with the cosmetic changes below, thanks!

Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 2134 bytes --]

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 69a81ed653..574b0ae027 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -9524,20 +9524,20 @@ (define-public modprobed-db
                       (string-append
                        (search-input-file inputs "/bin/modprobe") " "))))))))
     (inputs (list coreutils kmod gawk glibc grep sed))
-    (home-page "https://wiki.archlinux.org/index.php/Modprobed-db")
-    (synopsis "Keep track of EVERY kernel module that has ever been probed")
+    (home-page "https://wiki.archlinux.org/title/Modprobed-db")
+    (synopsis "Keep track of Linux modules that have been probed")
     (description
-     "@code{Modprobed-db} is a useful utility for users wishing to build a
-minimal kernel via a @code{make localmodconfig}.  In a nutshell, this make
+     "Modprobed-db is a useful utility for users wishing to build a minimal
+kernel via a @code{make localmodconfig}.  In a nutshell, this @command{make}
 target creates a config based on the current config and a list of modules you
-define (@code{modprobed-db} keeps for you).  It then disables any module
-option that is not needed thus not building hundreds/potentially thousands of
-extraneous modules.  This results in a system-specific, streamlined kernel
-package and footprint as well as reduced compilation times.
+define (that @command{modprobed-db} keeps for you).  It then disables any
+module option that is not needed thus not building extraneous modules.  This
+results in a system-specific, streamlined kernel package and footprint as well
+as reduced compilation times.
 
-@code{Modprobed-db} simply logs every module ever probed on the target system
-to a text-based database (@code{$XDG_CONFIG_HOME/modprobed-db}) which can be
-read directly by @code{make localmodconfig} as described above.")
+Modprobed-db simply logs every module ever probed on the target system to a
+text-based database (@file{$XDG_CONFIG_HOME/modprobed-db}), which can be read
+directly by @code{make localmodconfig} as described above.")
     (license license:expat)))
 
 (define-public kconfig-hardened-check

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-09 22:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-04  5:49 [bug#59010] [PATCH] gnu: Add modprobed-db Hilton Chain via Guix-patches via
2022-11-09 22:58 ` bug#59010: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.