From unknown Fri Sep 05 20:37:14 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59010 <59010@debbugs.gnu.org> To: bug#59010 <59010@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add modprobed-db. Reply-To: bug#59010 <59010@debbugs.gnu.org> Date: Sat, 06 Sep 2025 03:37:14 +0000 retitle 59010 [PATCH] gnu: Add modprobed-db. reassign 59010 guix-patches submitter 59010 Hilton Chain severity 59010 normal tag 59010 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 04 01:49:44 2022 Received: (at submit) by debbugs.gnu.org; 4 Nov 2022 05:49:44 +0000 Received: from localhost ([127.0.0.1]:51417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqpaK-0006XU-HC for submit@debbugs.gnu.org; Fri, 04 Nov 2022 01:49:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:40308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqpaG-0006XK-Af for submit@debbugs.gnu.org; Fri, 04 Nov 2022 01:49:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqpaG-0005JF-5T for guix-patches@gnu.org; Fri, 04 Nov 2022 01:49:40 -0400 Received: from mail.boiledscript.com ([144.168.59.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqpaE-0007JD-BG for guix-patches@gnu.org; Fri, 04 Nov 2022 01:49:39 -0400 Date: Fri, 04 Nov 2022 13:49:16 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1667540973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FvyoX0QFETvfdVY6elpNXZ6NnfmvujjQJsju4ZfGVl0=; b=Uyi5ei/3XrwGPYVUCxlPRg8LFb4Jr6DqvFGB9MEhRxzmqRLKZ2hCwf4cbBNxPR85cs6G3n Jcmzc0z7iJw69zfAHHjJ3N1wYmaDR4oHz8iTh8IDHLm2Tld7BEISKM3HGyh4791x7qpNIf jNPK9L3G3P8h+ln+itdct9vp0GTUcY+A8GbkYjlDz1LNp2epLQyud3/xkf6jjpqSv+CnrM jg84SG8jJl3qwmORTP33SW1ODqYIAIHOV9axmnkVLVeKo9MK9Qpoy45tSUYDFW+0ezpSTt 5YXscEbmzVWjJMe4ezdGU6hR1j/vmMZkzhPXD4/YPrtnFFQ7v7O3Og3jVsS7qw== Message-ID: From: Hilton Chain To: guix-patches@gnu.org Subject: [PATCH] gnu: Add modprobed-db. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space X-Spamd-Bar: / Received-SPF: pass client-ip=144.168.59.46; envelope-from=hako@ultrarare.space; helo=mail.boiledscript.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 17:58:10 2022 Received: (at 59010-done) by debbugs.gnu.org; 9 Nov 2022 22:58:10 +0000 Received: from localhost ([127.0.0.1]:41280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osu1K-0005G9-HN for submit@debbugs.gnu.org; Wed, 09 Nov 2022 17:58:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osu1I-0005Fv-QI for 59010-done@debbugs.gnu.org; Wed, 09 Nov 2022 17:58:09 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osu1D-0005MA-4d; Wed, 09 Nov 2022 17:58:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=VLlYVWrUdI6zGswd6xihSJfF0e3iokPxEXdxanxqoW0=; b=haaz8rWUhXf7zTUafI9d gqa55m3f1XmIKtE/Z78mV5xsLXOJrLK/nofHRy5px/D6OYNx2jvQVWnqpfddA5zbsY5BNYAnzggDY mbMTrYscd72s/NdaOGSA99ufuc6uNDee1ktaFTX9ufsCjX8cMmgQvzxhkL3jf+5Mj49OMjy2o2eH/ JzFVsoKrh1uSkSVV9nZd+/WpW+FM+ZgdUf1UOF8hyxi1YOKL1pGc2Lyla6MXQa5XMHvp2u9/S3lGn EC1OTJpv0youD1lkShwx3LZ2WpExlXcSBfQ1nMGhl1hC1dp3ZXiz484iCZevNgn4KMcWU/rLUPMT6 DzHtr2DcPHTt5A==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osu1C-0001dq-Ip; Wed, 09 Nov 2022 17:58:02 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Hilton Chain Subject: Re: bug#59010: [PATCH] gnu: Add modprobed-db. References: Date: Wed, 09 Nov 2022 23:58:00 +0100 In-Reply-To: (Hilton Chain's message of "Fri, 04 Nov 2022 13:49:16 +0800") Message-ID: <87iljnn3bb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59010-done Cc: 59010-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hilton Chain skribis: > * gnu/packages/linux.scm (modprobed-db): New variable. Applied with the cosmetic changes below, thanks! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline 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 --=-=-=-- From unknown Fri Sep 05 20:37:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 08 Dec 2022 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator