From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 07 17:59:17 2021 Received: (at submit) by debbugs.gnu.org; 7 Aug 2021 21:59:17 +0000 Received: from localhost ([127.0.0.1]:53260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCULd-0001EK-EO for submit@debbugs.gnu.org; Sat, 07 Aug 2021 17:59:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:39810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCULZ-0001EA-Ly for submit@debbugs.gnu.org; Sat, 07 Aug 2021 17:59:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCULX-0007JY-OD for guix-patches@gnu.org; Sat, 07 Aug 2021 17:59:13 -0400 Received: from mail-4323.protonmail.ch ([185.70.43.23]:41028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCULV-0006wO-CI for guix-patches@gnu.org; Sat, 07 Aug 2021 17:59:11 -0400 Date: Sat, 07 Aug 2021 21:58:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1628373539; bh=PsfeW4ne7pTu/0Lra+tWYgG1tZLxwKQ0ux8PPjhFgKk=; h=Date:To:From:Reply-To:Subject:From; b=IzI+f9XrPZjY881TP+b8EQL/HuNM1sOirsSrGLayjJX+xzkCR+2xR/ztC4Bo3a05z 2+Cha0jh0gu7kLuOAQoPGtmz4w9HxvuKuawRJsbmBZatkHRRMf++zLx5XIgxsWsM+i kcAR6aHZs72E3kfXtbVIHRZdAXCclFSuuAvChFaU= To: "guix-patches@gnu.org" From: phodina Subject: [PATCH 1/3] gnu: Add libx86emu Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=185.70.43.23; envelope-from=phodina@protonmail.com; helo=mail-4323.protonmail.ch 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) 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: , Reply-To: phodina Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/hardware.scm: (libx86emu): New variable. diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 707a47fb4b..93be54cb18 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -4,6 +4,7 @@ ;;; Copyright =C2=A9 2020 Brice Waegeneire ;;; Copyright =C2=A9 2021 Evgeny Pisemsky ;;; Copyright =C2=A9 2021 L=C3=A9o Le Bouter +;;; Copyright =C2=A9 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,6 +23,7 @@ (define-module (gnu packages hardware) #:use-module (gnu packages admin) + #:use-module (gnu packages assembly) #:use-module (gnu packages autotools) #:use-module (gnu packages bash) #:use-module (gnu packages compression) @@ -45,6 +47,7 @@ #:use-module (gnu packages python) #:use-module (gnu packages qt) #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) #:use-module (gnu packages web) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) @@ -256,6 +259,54 @@ specific SMBIOS tables.") (license (list license:osl2.1 license:gpl2+ license:bsd-3 license:boost1.0)))) +(define-public libx86emu +(package + (name "libx86emu") + (version "3.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/wfeldt/libx86emu") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "104xqc6nj9rpi7knl3dfqvasf087hlz2n5yndb1iycw35a6j509b")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list + (string-append "CC=3D" ,(cc-for-target)) + (string-append "DESTDIR=3D" %output) + (string-append "LIBDIR=3D/lib")) + #:phases (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'fix-version-and-usr + (lambda* (#:key inputs #:allow-other-keys) + (delete-file "git2log") + (let* ((file (open-file "VERSION" "a"))) + (display ,version file) + (close-port file)) + (substitute* "Makefile" + (("/usr") "/")))) + (replace 'check + (lambda* _ + (invoke "make" "test")))))) + (native-inputs `(("git" ,git) ("perl" ,perl) ("nasm" ,nasm))) + (synopsis "Library for x86 emulation") + (description "Small library to emulate x86 instructions. The focus here +is not a complete emulation (go for qemu for this) but to cover enough for +typical firmware blobs. +@enumerate +@item intercept any memory access or directly map real memory ranges +@item intercept any i/o access, map real i/o ports, or block any real i/o +@item intercept any interrupt +@item provides hook to run after each instruction +@item recognizes a special x86 instruction that can trigger logging +@item has integrated logging +@end enumerate") + (home-page "https://github.com/wfeldt/libx86emu") + (license license:bsd-1))) + ;; Distinct from memtest86, which is obsolete. (define-public memtest86+ (package -- 2.32.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 07 18:04:00 2021 Received: (at 49934) by debbugs.gnu.org; 7 Aug 2021 22:04:00 +0000 Received: from localhost ([127.0.0.1]:53270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCUQC-0001Mr-7T for submit@debbugs.gnu.org; Sat, 07 Aug 2021 18:04:00 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:35362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCUQA-0001Mc-90 for 49934@debbugs.gnu.org; Sat, 07 Aug 2021 18:03:59 -0400 Date: Sat, 07 Aug 2021 22:03:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1628373831; bh=1YI3W0R/wQ7qlbRGhqTiQgZT4HrpL6Rn2hJFkJXApKQ=; h=Date:To:From:Reply-To:Subject:From; b=rNabqTF1DtLUFQIPkDXHebB3qk3loGI6LndP4S8EkXztF2SaGxXqXWY4tk3qUkwGZ U2NaMmsmLiZzBPiE8UhEXjhMNm4nArESpKp2uedXU1Wz7/sCxuF24IzJnuGbvMo+b2 yZZii7zlCVumQXIzvrmjRQ9OvQh3U4oGZdP5pd8w= To: "49934@debbugs.gnu.org" <49934@debbugs.gnu.org> From: phodina Subject: Subject: [PATCH 2/3] gnu: Add hwinfo. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49934 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: , Reply-To: phodina Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/hardware.scm: (hwinfo): New variable. diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 93be54cb18..bcba8bd9e4 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -32,6 +32,7 @@ #:use-module (gnu packages crypto) #:use-module (gnu packages curl) #:use-module (gnu packages documentation) + #:use-module (gnu packages flex) #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) @@ -172,6 +173,54 @@ through the Display Data Channel Command Interface (@d= fn{DDC/CI}) protocol.") human-readable format and checks if it conforms to the standards.") (license license:expat)))) +(define-public hwinfo +(package + (name "hwinfo") + (version "21.75") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/openSUSE/hwinfo") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "139bgzwi8iy1dz0g8mqpq9iig8klsmnb5c2sp0v7qgbgh7xxnqn3")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no tests + ;; disable as there is a bug where the src/hd is not build as depend= ency + #:parallel-build? #f + #:make-flags (list + (string-append "DESTDIR=3D" %output) + (string-append "LDFLAGS=3D-Lsrc -Wl,-rpath=3D" %output= "/lib") + (string-append "CC=3D" ,(cc-for-target)) + (string-append "HWINFO_VERSION=3D" ,version)) + #:phases (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'fix-sbin-and-flex + (lambda* (#:key inputs #:allow-other-keys) + (delete-file "git2log") + (let* ((file (open-file "VERSION" "a"))) + (display ,version file) + (close-port file)) + (substitute* "Makefile" + (("/sbin") "/bin") + (("/usr/lib.*") "/lib\n") + (("^TARGETS.*") "TARGETS =3D hwinfo hwinfo.pc\n= ") + (("/usr") "/")) + (substitute* "src/isdn/cdb/Makefile" + (("lex isdn_cdb.lex") "flex isdn_cdb.lex")) + (substitute* "hwinfo.pc.in" + (("prefix=3D/usr") (string-append "prefix=3D" %= output)))))))) + (native-inputs `(("flex" ,flex) ("perl" ,perl) ("pkg-config" ,pkg-config= ))) + (inputs `(("libx86emu" ,libx86emu) ("util-linux:lib" ,util-linux "lib"))= ) + (synopsis "Hardware information tool") + (description "Probe for the hardware present in the system. It can be u= sed +to generate a system overview log which can be later used for support.") + (home-page "https://github.com/openSUSE/hwinfo") + (license license:gpl2))) + (define-public i7z (let ((revision "0") (commit "1a41ff13db747e962456ddbb5ccb2b7fc43ca0cb")) -- 2.32.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 07 18:05:23 2021 Received: (at 49934) by debbugs.gnu.org; 7 Aug 2021 22:05:23 +0000 Received: from localhost ([127.0.0.1]:53274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCURX-0001PJ-JW for submit@debbugs.gnu.org; Sat, 07 Aug 2021 18:05:23 -0400 Received: from mail-4323.protonmail.ch ([185.70.43.23]:62922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCURV-0001P3-58 for 49934@debbugs.gnu.org; Sat, 07 Aug 2021 18:05:22 -0400 Date: Sat, 07 Aug 2021 22:05:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1628373910; bh=AZHTuWgyD5RuYWxU8jkpNoo3otu75++Nat7XZ/6A/nE=; h=Date:To:From:Reply-To:Subject:From; b=dF7bHVTOeKFjDeCW1/noE6Ss5le8WSKW8IjHJu6p4LQJ/uIjfb+jb1/VDTjIQS7zd WBqMR0lHHyhNyJMz+ey530N6kviPxH6qDep2u3Z1iPmCDvVHGLXl5sctkDIsfCyiKT 5GHXs6HdtSIv5sYMeQSx5b4551ZDfYqOdjtiYpUI= To: "49934@debbugs.gnu.org" <49934@debbugs.gnu.org> From: phodina Subject: Subject: [PATCH 3/3] gnu: Add hw-probe. Message-ID: <9C5l8Fm8tD--N3SdfuqfU9MBY5U_LkGmOXPZsizoLoeb0pLSpABF4wcOfxN8F7z8_gaqeCluTS5Cs-IuAeaN9HGzM0hwDkpOSK5nVB7_Bqc=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49934 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: , Reply-To: phodina Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/hardware.scm: (hw-probe): New variable. diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index bcba8bd9e4..1891dc475b 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -173,6 +173,36 @@ through the Display Data Channel Command Interface (@d= fn{DDC/CI}) protocol.") human-readable format and checks if it conforms to the standards.") (license license:expat)))) +(define-public hw-probe +(package + (name "hw-probe") + (version "f450cad0cf686756c32689595e6d0092933e5959") ; no tags + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/linuxhw/hw-probe") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "16qh5nzv42sg5r6bjg0a9vcmmva87vnw4d778b35zs5gm3gzw370")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f + #:make-flags (list (string-append "DESTDIR=3D" (assoc-ref %outputs "= out")) "prefix=3D") + #:phases (modify-phases %standard-phases + (delete 'configure)))) + (inputs `(("perl" ,perl) + ("hwinfo" ,hwinfo))) + (propagated-inputs `(("dmidecode" ,dmidecode) + ("smartmontools" ,smartmontools) + ("edid-decode" ,edid-decode))) + (synopsis "Probe for hardware, check operability and find drivers") + (description "Tool to probe for hardware, check operability and find dri= vers +with the help of Linux hardware database: https://linux-hardware.org") + (home-page "https://github.com/linuxhw/hw-probe") + (license license:lgpl2.1))) + (define-public hwinfo (package (name "hwinfo") -- 2.32.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 08 06:10:19 2021 Received: (at 49934) by debbugs.gnu.org; 8 Aug 2021 10:10:19 +0000 Received: from localhost ([127.0.0.1]:53666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCfl5-0004Op-HO for submit@debbugs.gnu.org; Sun, 08 Aug 2021 06:10:19 -0400 Received: from pelzflorian.de ([5.45.111.108]:54392 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCfl0-0004Oc-EI for 49934@debbugs.gnu.org; Sun, 08 Aug 2021 06:10:18 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id E7BE1360674; Sun, 8 Aug 2021 12:10:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1628417413; bh=plFz3Ya9IrGRabGTFFF+8E1N4VjeJOZhl1iG7TYbxdg=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=M+71rAWn6RJ1rfqU8Zdv8F9EDvtI/p/brOlPgUo79TdWw3IDQIajEmHtsW+bH6KVF kkTw9UFM+xdLCzUDQj6XzHR4CGTRPF4bjXC+QRJK9UUg6di9Oo0r+BjrQmE/itKX7O oXgxkCQBGugBY43KK6rNBqstM5a/jQg2XthCKxpo= Date: Sun, 8 Aug 2021 12:10:03 +0200 From: "pelzflorian (Florian Pelz)" To: phodina Subject: Re: [bug#49934] [PATCH 1/3] gnu: Add libx86emu Message-ID: <20210808101003.gf66cz5raojbic4c@pelzflorian.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49934 Cc: 49934@debbugs.gnu.org, Vincent Legoll 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: -1.0 (-) On Sat, Aug 07, 2021 at 09:58:55PM +0000, phodina via Guix-patches via wrote: > + (home-page "https://github.com/wfeldt/libx86emu") FYI this is the same package as . I don’t know what became of it. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 08:00:13 2021 Received: (at 49934) by debbugs.gnu.org; 9 Aug 2021 12:00:13 +0000 Received: from localhost ([127.0.0.1]:56142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD3wz-0001An-1T for submit@debbugs.gnu.org; Mon, 09 Aug 2021 08:00:13 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:47943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD3wu-00018t-4N for 49934@debbugs.gnu.org; Mon, 09 Aug 2021 08:00:10 -0400 Date: Mon, 09 Aug 2021 12:00:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1628510401; bh=J1EUQwu6klcMbYWauHiG+96JBhit/wlN3YzuKtu6mWY=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=SX4m483WlLW/y9VwFUoMqbFuyj1eO9Gsa4TnyKTojEhBeGnqYFlR0nObQInSaNhPZ xquuVvuJqn2ZtDp2FsDNVa5INIdU3oU2HBkmKjBrYI3fOcwZpQ3yEKjoNrCicvimEG sy4GUjrrxfJM3W48lHZJTMbzJynJeEadDlQVD7Jo= To: "pelzflorian (Florian Pelz)" From: phodina Subject: Re: [bug#49934] [PATCH 1/3] gnu: Add libx86emu Message-ID: In-Reply-To: <20210808101003.gf66cz5raojbic4c@pelzflorian.localdomain> References: <20210808101003.gf66cz5raojbic4c@pelzflorian.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49934 Cc: 49934@debbugs.gnu.org, Vincent Legoll 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: , Reply-To: phodina Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi On Sunday, August 8th, 2021 at 12:10 PM, pelzflorian (Florian Pelz) wrote: > On Sat, Aug 07, 2021 at 09:58:55PM +0000, phodina via Guix-patches via wr= ote: > > > - (home-page "https://github.com/wfeldt/libx86emu") > > FYI this is the same package as http://issues.guix.gnu.org/45744. > > I don=E2=80=99t know what became of it. Thanks. I didn't know there's a patch already. The aim of this one is to ge= t the hwinfo and hw-prober to get the hardware details. I've not encountered this situation. So what do you think is the best appro= ach? Use the patch from Vincent Legoll and refactor the other two? So that both issues are closed? Kind regards Petr From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 13:06:50 2021 Received: (at 49934) by debbugs.gnu.org; 9 Aug 2021 17:06:50 +0000 Received: from localhost ([127.0.0.1]:57664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD8je-0001Fe-Hw for submit@debbugs.gnu.org; Mon, 09 Aug 2021 13:06:50 -0400 Received: from pelzflorian.de ([5.45.111.108]:56080 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD8jY-0001FR-W4 for 49934@debbugs.gnu.org; Mon, 09 Aug 2021 13:06:45 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 6D7B3360674; Mon, 9 Aug 2021 19:06:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1628528799; bh=L3roS8QGCXO9w86BJxQPTJz49DKzN5K2sBpO+QKvyiM=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=uncEEoiFYoIEgIJQrxGnvNA1Eb2CEi8kz7R+mV2OrhC0B83Kt7gPSdJvkAWHnXB0a lWI1qLZQo6Sojx9xmqbXJH4tiSvGI2CouWC4QeHYXOW2AHiFHRCpe3n+Wcbq3FzlNt qDUOr4VAKm23qIlLxRJG9SRkdUva84DPKHr1Goz0= Date: Mon, 9 Aug 2021 19:06:28 +0200 From: "pelzflorian (Florian Pelz)" To: phodina Subject: Re: [bug#49934] [PATCH 1/3] gnu: Add libx86emu Message-ID: <20210809170628.4yx45hvxcso6zgng@pelzflorian.localdomain> References: <20210808101003.gf66cz5raojbic4c@pelzflorian.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49934 Cc: 49934@debbugs.gnu.org, Vincent Legoll 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: -1.0 (-) On Mon, Aug 09, 2021 at 12:00:00PM +0000, phodina wrote: > Thanks. I didn't know there's a patch already. The aim of this one is to get the hwinfo and hw-prober to get the hardware details. I think it is good to get your patch into shape and merged. While I haven’t been involved in package review (shame on me), I’ll give it a try. You should, after applying each of your patches, cd to the guix repo and run `./etc/indent-code.el gnu/packages/hardware.scm` as described in `info '(guix)Formatting Code'`. `./pre-inst-env guix lint libx86emu` warns that your custom check phase does not consider #:tests? (i.e. it does not work with the --without-tests transform option). As for the package libx86emu proper: > (define-public libx86emu > (package > (name "libx86emu") > (version "3.1") > (source (origin > (method git-fetch) > (uri (git-reference > (url "https://github.com/wfeldt/libx86emu") > (commit version))) > (file-name (git-file-name name version)) > (sha256 > (base32 > "104xqc6nj9rpi7knl3dfqvasf087hlz2n5yndb1iycw35a6j509b")))) > (build-system gnu-build-system) > (arguments > `(#:make-flags (list > (string-append "CC=" ,(cc-for-target)) > (string-append "DESTDIR=" %output) > (string-append "LIBDIR=/lib")) > #:phases (modify-phases %standard-phases > (delete 'configure) > (add-after 'unpack 'fix-version-and-usr > (lambda* (#:key inputs #:allow-other-keys) > (delete-file "git2log") I am not sure, would it be better to delete this git2log in an origin snippet? I have not checked. > (let* ((file (open-file "VERSION" "a"))) > (display ,version file) > (close-port file)) > (substitute* "Makefile" > (("/usr") "/")))) > (replace 'check > (lambda* _ > (invoke "make" "test")))))) > (native-inputs `(("git" ,git) ("perl" ,perl) ("nasm" ,nasm))) > (synopsis "Library for x86 emulation") > (description "Small library to emulate x86 instructions. The focus here > is not a complete emulation (go for qemu for this) but to cover enough for > typical firmware blobs. The start of the sentence is missing before @enumerate. “You can”? > @enumerate > @item intercept any memory access or directly map real memory ranges > @item intercept any i/o access, map real i/o ports, or block any real i/o > @item intercept any interrupt > @item provides hook to run after each instruction Either “provides a hook” or “provides hooks”. > @item recognizes a special x86 instruction that can trigger logging s/recognizes/recognize/ > @item has integrated logging Maybe s/has/use/ > @end enumerate") > (home-page "https://github.com/wfeldt/libx86emu") > (license license:bsd-1))) The license is not bsd-1 but x11-style, I think. Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 30 16:32:15 2021 Received: (at control) by debbugs.gnu.org; 30 Aug 2021 20:32:15 +0000 Received: from localhost ([127.0.0.1]:60436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKnwx-0002Vz-7c for submit@debbugs.gnu.org; Mon, 30 Aug 2021 16:32:15 -0400 Received: from out0.migadu.com ([94.23.1.103]:21680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKnwr-0002Vi-1E for control@debbugs.gnu.org; Mon, 30 Aug 2021 16:32:10 -0400 To: control@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1630355522; h=from:from:reply-to:subject:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=iIFiGB11W8TN1WACBGUl270zdQXPmTribwMaK/eQ+lM=; b=TA1CEGxEOqBMd15tJ9XqroCesgQkhKEHvkUpHdYWj3I4tytll07K0rm/kwgGcR+mbyunHz Jq9HGqZEkfW+LzatAK+sZIMa+hoX68Uze9A/ftgXv593WaHMjbNlhuxBJMb4bHoks9Uaq8 olm++e20lDneJy8B8cBttiMBYwlLJ5GFFfCzEhINUHn0GFxdQD9wn9tw5mWWUAPLk+Xbp4 NvJB8xKjvuDu6LJYFa0c1vx9lY5xpMd7OrjMgI45qXgTYaz33L5jFOnhIZ/SasGxN0crFf ZqrMw0mZf027fERQO4G/+dszLDRqD3lL1fQA5C8pI4ou1/JoQPwohVlJDvR/CQ== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Message-ID: <2b1c9098-8414-288c-c8ca-a70253752784@raghavgururajan.name> Date: Mon, 30 Aug 2021 16:32:00 -0400 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PrFJbV4s2z4jCupAY8OIZQAMiSR1sSytp" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: retitle 49934 Hw-Probe Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [94.23.1.103 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [94.23.1.103 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 TVD_SPACE_RATIO No description available. 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control 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: 0.3 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --PrFJbV4s2z4jCupAY8OIZQAMiSR1sSytp Content-Type: multipart/mixed; boundary="DLLzZB4nO8D2d8sWtT7PdYbYTCTDVfSWF"; protected-headers="v1" From: Raghav Gururajan To: control@debbugs.gnu.org Message-ID: <2b1c9098-8414-288c-c8ca-a70253752784@raghavgururajan.name> --DLLzZB4nO8D2d8sWtT7PdYbYTCTDVfSWF Content-Type: multipart/mixed; boundary="------------D7D8FA16CE57C287307BDBCE" Content-Language: en-CA This is a multi-part message in MIME format. --------------D7D8FA16CE57C287307BDBCE Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable retitle 49934 Hw-Probe --------------D7D8FA16CE57C287307BDBCE Content-Type: application/pgp-keys; name="OpenPGP_0x5F5816647F8BE551.asc" Content-Transfer-Encoding: quoted-printable Content-Description: OpenPGP public key Content-Disposition: attachment; filename="OpenPGP_0x5F5816647F8BE551.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX2ZCJBYJKwYBBAHaRw8BAQdAdiUK33kml2dYjrWidlr4/v0pmjpUv7hOsBN/oSl5wx7NL= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJHKSA8cmdAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpMEExYIADsFC= wkI BwIGFQoJCAsCBBYCAwECHgECF4ACGQEWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYRS1pwIbI= wAK CRBfWBZkf4vlUbYYAQCe+UaQKTg+iaEL0XAuhyZgiMNpjoqrvlZCAb8ahNLe3AEA1/v+k2EjE= ap/ lfeUSxuzy4MvYXxRRJMZ1C+qJs7MIgPNPVJhZ2hhdiBHdXJ1cmFqYW4gKEVkdWNhdGlvbikgP= GVk dWNhdGlvbkByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpjMs32pHWsF9YF= mR/ i+VRBQJgE0xGAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i+VRQcQBALNRe= 1V/ 5DKN8ZxyVQlzt4TdGUyNom7xJ6r23ANtcygxAQDBjw6NLXV3aYGDMVVmQPbdAnFiB/x1rpJsA= wB/ 1BSBDc05UmFnaGF2IEd1cnVyYWphbiAoRmluYW5jZSkgPGZpbmFuY2VAcmFnaGF2Z3VydXJha= mFu Lm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNMbwIbAwULCQgHAgYVC= gkI CwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUWnLAP914hb0IzSCiaj+XrcEBaIt/Q+KjRn2fj5A7= V6Z ucJJqwEA64eks7xjLBS3mpTpaGwdDtluJcR7G8XZJJdbdK2YyQ/NN1JhZ2hhdiBHdXJ1cmFqY= W4g KEhlYWx0aCkgPGhlYWx0aEByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpj= Ms3 2pHWsF9YFmR/i+VRBQJgE0yhAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i= +VR xdcA/3YxFzlKKHrTguDxE1tBWD31BUYlXWl351j6MB/U+tWdAPwJB8QD8janaddv3U5ZGzswf= hQv GGzx6SLcX0E253uNC80/UmFnaGF2IEd1cnVyYWphbiAoT2NjdXBhdGlvbikgPG9jY3VwYXRpb= 25A cmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCY= BNM ugIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUSrlAP0VJw8frvWHAGd6l= Zdy x1v+relUGB4DToqDgIMBQyG58gD+NU5t4h0IY6YaiQ+FPyJzdV62k15d9IDvTMYPvcWIpQPNP= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJlY3JlYXRpb24pIDxyZWNyZWF0aW9uQHJhZ2hhdmd1cnVyYWphb= i5u YW1lPsKQBBMWCAA4FiEEzS1eqqmMyzfakdawX1gWZH+L5VEFAmATTNkCGwMFCwkIBwIGFQoJC= AsC BBYCAwECHgECF4AACgkQX1gWZH+L5VHhbQD/b6jXWdQfxi+xzrs1+A0lvnihfUgQ0H/r5U2bO= w9d FIkA/0nCh0VJKX+YrySJhWugL7e8ItqwKADh0v05vO6qtlkAzTdSYWdoYXYgR3VydXJhamFuI= ChT b2NpYWwpIDxzb2NpYWxAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN= 9qR 1rBfWBZkf4vlUQUCYBNM8AIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlU= dtv AQCKMxBdxwMUJdyigGWqrTuJUaLVL2dgvqGa0k39nsQA8gD+PH3LsQAaJ98xREKxYXMAszNnJ= RJR xYa9trfixyQbrw7NNVJhZ2hhdiBHdXJ1cmFqYW4gKFRyYWRlKSA8dHJhZGVAcmFnaGF2Z3Vyd= XJh amFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNNHQIbAwULCQgHA= gYV CgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUQ+9AP0S/6S5PLshS/vz7ezRO2HokruaRiDhg= w0t yRM3LAefSQEA7rEBw9sSUsDgRILGKUi1ZzQq5AJ0F77KOXyurVqnywXOOARfZkIkEgorBgEEA= ZdV AQUBAQdAZgiqc2NhH/myrCCan9x7gKI6QBPZ/1b+Bz/f3n95ozkDAQgHwngEGBYIACAWIQTNL= V6q qYzLN9qR1rBfWBZkf4vlUQUCX2ZCJAIbDAAKCRBfWBZkf4vlUV/OAQD+tMNgmddPSchLpaDPp= sdD hpvra2uTonNUmnfbTvPgpQD/dG72NCT8hBUVqtzxwQmBrXY/nPEUxctYuvu3unUmzQU=3D =3DooAX -----END PGP PUBLIC KEY BLOCK----- --------------D7D8FA16CE57C287307BDBCE-- --DLLzZB4nO8D2d8sWtT7PdYbYTCTDVfSWF-- --PrFJbV4s2z4jCupAY8OIZQAMiSR1sSytp Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYS1AQAUDAAAAAAAKCRBfWBZkf4vlUXr0 AP9VnElKBB2mqvvPFGocdi3maUUH84qgFGYp+z4oro5nPwD/QtPSI1WMmZVVjrCePwx7k3Kj9a+/ 7D06bCEJnICB4gk= =i9ur -----END PGP SIGNATURE----- --PrFJbV4s2z4jCupAY8OIZQAMiSR1sSytp-- From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 30 16:34:07 2021 Received: (at control) by debbugs.gnu.org; 30 Aug 2021 20:34:07 +0000 Received: from localhost ([127.0.0.1]:60442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKnyl-0002ZM-E8 for submit@debbugs.gnu.org; Mon, 30 Aug 2021 16:34:07 -0400 Received: from out0.migadu.com ([94.23.1.103]:22132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKnyg-0002Yt-4I for control@debbugs.gnu.org; Mon, 30 Aug 2021 16:34:02 -0400 To: control@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1630355637; h=from:from:reply-to:subject:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=smjGtWXDEK7mCprmJwNfGWTYGFXhY36SGbjjowutI6I=; b=tKx7q0//sWWstSiDKy2cP/fVgGhObXVuM4K5a4H7WGCkW+taP7a7atw8I9wvkZNNVfSLga cO2lQnj/AsOGETi1Q7o63Czc1j1KV0fz/052/nAIQiV1TycasI2WkYhx6n2zi19feVY3Jp KuyI70RTHUQRZPTLrlkHykOJ/QBloEDAPgC6kB8n4XKrOIS23TnGhTSjMXHivyeA82bVwE jK/HoJBhtMaBCF3rglPPxNARQp5pntLk9M1laqUo4BUSVRaR57nfoEJ1FpfrTT8/eSTSNj xuQ9niEJjRvpRtaE+T4SgMybcF8K4pHqKUO6fpcwF3h07gDDsxgaTX4Hh+bocQ== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Message-ID: Date: Mon, 30 Aug 2021 16:33:55 -0400 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vl2bbd6MIStXXW9ImadGi6QjgOQzHPKcU" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: merge 49934 50283 Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [94.23.1.103 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [94.23.1.103 listed in wl.mailspike.net] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control 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: 0.3 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --vl2bbd6MIStXXW9ImadGi6QjgOQzHPKcU Content-Type: multipart/mixed; boundary="KkPuhVrmdXGSXQFLJ9zQFPAyalvP5VnVt"; protected-headers="v1" From: Raghav Gururajan To: control@debbugs.gnu.org Message-ID: --KkPuhVrmdXGSXQFLJ9zQFPAyalvP5VnVt Content-Type: multipart/mixed; boundary="------------5D3CD5609094973C1578C7D6" Content-Language: en-CA This is a multi-part message in MIME format. --------------5D3CD5609094973C1578C7D6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable merge 49934 50283 --------------5D3CD5609094973C1578C7D6 Content-Type: application/pgp-keys; name="OpenPGP_0x5F5816647F8BE551.asc" Content-Transfer-Encoding: quoted-printable Content-Description: OpenPGP public key Content-Disposition: attachment; filename="OpenPGP_0x5F5816647F8BE551.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX2ZCJBYJKwYBBAHaRw8BAQdAdiUK33kml2dYjrWidlr4/v0pmjpUv7hOsBN/oSl5wx7NL= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJHKSA8cmdAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpMEExYIADsFC= wkI BwIGFQoJCAsCBBYCAwECHgECF4ACGQEWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYRS1pwIbI= wAK CRBfWBZkf4vlUbYYAQCe+UaQKTg+iaEL0XAuhyZgiMNpjoqrvlZCAb8ahNLe3AEA1/v+k2EjE= ap/ lfeUSxuzy4MvYXxRRJMZ1C+qJs7MIgPNPVJhZ2hhdiBHdXJ1cmFqYW4gKEVkdWNhdGlvbikgP= GVk dWNhdGlvbkByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpjMs32pHWsF9YF= mR/ i+VRBQJgE0xGAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i+VRQcQBALNRe= 1V/ 5DKN8ZxyVQlzt4TdGUyNom7xJ6r23ANtcygxAQDBjw6NLXV3aYGDMVVmQPbdAnFiB/x1rpJsA= wB/ 1BSBDc05UmFnaGF2IEd1cnVyYWphbiAoRmluYW5jZSkgPGZpbmFuY2VAcmFnaGF2Z3VydXJha= mFu Lm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNMbwIbAwULCQgHAgYVC= gkI CwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUWnLAP914hb0IzSCiaj+XrcEBaIt/Q+KjRn2fj5A7= V6Z ucJJqwEA64eks7xjLBS3mpTpaGwdDtluJcR7G8XZJJdbdK2YyQ/NN1JhZ2hhdiBHdXJ1cmFqY= W4g KEhlYWx0aCkgPGhlYWx0aEByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpj= Ms3 2pHWsF9YFmR/i+VRBQJgE0yhAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i= +VR xdcA/3YxFzlKKHrTguDxE1tBWD31BUYlXWl351j6MB/U+tWdAPwJB8QD8janaddv3U5ZGzswf= hQv GGzx6SLcX0E253uNC80/UmFnaGF2IEd1cnVyYWphbiAoT2NjdXBhdGlvbikgPG9jY3VwYXRpb= 25A cmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCY= BNM ugIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUSrlAP0VJw8frvWHAGd6l= Zdy x1v+relUGB4DToqDgIMBQyG58gD+NU5t4h0IY6YaiQ+FPyJzdV62k15d9IDvTMYPvcWIpQPNP= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJlY3JlYXRpb24pIDxyZWNyZWF0aW9uQHJhZ2hhdmd1cnVyYWphb= i5u YW1lPsKQBBMWCAA4FiEEzS1eqqmMyzfakdawX1gWZH+L5VEFAmATTNkCGwMFCwkIBwIGFQoJC= AsC BBYCAwECHgECF4AACgkQX1gWZH+L5VHhbQD/b6jXWdQfxi+xzrs1+A0lvnihfUgQ0H/r5U2bO= w9d FIkA/0nCh0VJKX+YrySJhWugL7e8ItqwKADh0v05vO6qtlkAzTdSYWdoYXYgR3VydXJhamFuI= ChT b2NpYWwpIDxzb2NpYWxAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN= 9qR 1rBfWBZkf4vlUQUCYBNM8AIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlU= dtv AQCKMxBdxwMUJdyigGWqrTuJUaLVL2dgvqGa0k39nsQA8gD+PH3LsQAaJ98xREKxYXMAszNnJ= RJR xYa9trfixyQbrw7NNVJhZ2hhdiBHdXJ1cmFqYW4gKFRyYWRlKSA8dHJhZGVAcmFnaGF2Z3Vyd= XJh amFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNNHQIbAwULCQgHA= gYV CgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUQ+9AP0S/6S5PLshS/vz7ezRO2HokruaRiDhg= w0t yRM3LAefSQEA7rEBw9sSUsDgRILGKUi1ZzQq5AJ0F77KOXyurVqnywXOOARfZkIkEgorBgEEA= ZdV AQUBAQdAZgiqc2NhH/myrCCan9x7gKI6QBPZ/1b+Bz/f3n95ozkDAQgHwngEGBYIACAWIQTNL= V6q qYzLN9qR1rBfWBZkf4vlUQUCX2ZCJAIbDAAKCRBfWBZkf4vlUV/OAQD+tMNgmddPSchLpaDPp= sdD hpvra2uTonNUmnfbTvPgpQD/dG72NCT8hBUVqtzxwQmBrXY/nPEUxctYuvu3unUmzQU=3D =3DooAX -----END PGP PUBLIC KEY BLOCK----- --------------5D3CD5609094973C1578C7D6-- --KkPuhVrmdXGSXQFLJ9zQFPAyalvP5VnVt-- --vl2bbd6MIStXXW9ImadGi6QjgOQzHPKcU Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYS1AswUDAAAAAAAKCRBfWBZkf4vlUYCC AQCYzaw9w7tp/mgxB9bblo9PR42mZK9cOsU855L8APIzZAEA5mpxcObmMqNJ+HT/u3J3s+Krzl3K GREn+MjwVPySAgM= =agSa -----END PGP SIGNATURE----- --vl2bbd6MIStXXW9ImadGi6QjgOQzHPKcU-- From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 30 17:35:02 2021 Received: (at 49934) by debbugs.gnu.org; 30 Aug 2021 21:35:02 +0000 Received: from localhost ([127.0.0.1]:60519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKovm-00005f-Fp for submit@debbugs.gnu.org; Mon, 30 Aug 2021 17:35:02 -0400 Received: from out0.migadu.com ([94.23.1.103]:37748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKovj-000055-C6 for 49934@debbugs.gnu.org; Mon, 30 Aug 2021 17:35:00 -0400 To: phodina@protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1630359297; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=BBmJcv0AzcNCmj+BVTg8Ni+OUST6zsqhXQOp1QX45qo=; b=VWrpbAjKjQ2/MEHj1Cf8pbXtIPqQFi9dvNynYaZTfULlv6Noz9BK4fkRdf/WmLCdZTY3pv JF0F8jBh6rQeCnYwcBWVHwWeTBZMgWE4/c4Ou5UeHPtA3F/cZkirhxfWLOt5i1l05O4pUt H4CablTeKOIRPFjiLsr/zRxWXDI1MU29hpzQSSXQAtzIZmDjZWb+bgqqPPk2JpXhA8TYSb L903dg3l+Xb9YK0vs9hENx8mrCV+4EWzPV3Wqig2RYdwtacHW84ONDZJNEqsyfF8sOGYbm I7hsTXF4LR3PUkjcNYrFDkyTwMDhbM2LtQ0nvzBJ9ly8dVH0lHEgKTnyKMDLwg== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Subject: Re: Hw-Probe Message-ID: <74a1ea51-8db7-f8c6-758b-e7cd7e484fe9@raghavgururajan.name> Date: Mon, 30 Aug 2021 17:34:50 -0400 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wMXhLfqqDpptd1l8fWaAZOsjUI2k90cez" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49934 Cc: 49934@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: -1.7 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --wMXhLfqqDpptd1l8fWaAZOsjUI2k90cez Content-Type: multipart/mixed; boundary="wIkr8eMOopcLiEYnyKhf5BXc1Bt7ciib9"; protected-headers="v1" From: Raghav Gururajan To: phodina@protonmail.com Cc: 49934@debbugs.gnu.org Message-ID: <74a1ea51-8db7-f8c6-758b-e7cd7e484fe9@raghavgururajan.name> Subject: Re: Hw-Probe --wIkr8eMOopcLiEYnyKhf5BXc1Bt7ciib9 Content-Type: multipart/mixed; boundary="------------03EC600AC033497329198B6B" Content-Language: en-CA This is a multi-part message in MIME format. --------------03EC600AC033497329198B6B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Petr! I have merged #49934 and #50283. I'll combine our patches and send a new one. :) Regards, RG. --------------03EC600AC033497329198B6B Content-Type: application/pgp-keys; name="OpenPGP_0x5F5816647F8BE551.asc" Content-Transfer-Encoding: quoted-printable Content-Description: OpenPGP public key Content-Disposition: attachment; filename="OpenPGP_0x5F5816647F8BE551.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX2ZCJBYJKwYBBAHaRw8BAQdAdiUK33kml2dYjrWidlr4/v0pmjpUv7hOsBN/oSl5wx7NL= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJHKSA8cmdAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpMEExYIADsFC= wkI BwIGFQoJCAsCBBYCAwECHgECF4ACGQEWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYRS1pwIbI= wAK CRBfWBZkf4vlUbYYAQCe+UaQKTg+iaEL0XAuhyZgiMNpjoqrvlZCAb8ahNLe3AEA1/v+k2EjE= ap/ lfeUSxuzy4MvYXxRRJMZ1C+qJs7MIgPNPVJhZ2hhdiBHdXJ1cmFqYW4gKEVkdWNhdGlvbikgP= GVk dWNhdGlvbkByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpjMs32pHWsF9YF= mR/ i+VRBQJgE0xGAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i+VRQcQBALNRe= 1V/ 5DKN8ZxyVQlzt4TdGUyNom7xJ6r23ANtcygxAQDBjw6NLXV3aYGDMVVmQPbdAnFiB/x1rpJsA= wB/ 1BSBDc05UmFnaGF2IEd1cnVyYWphbiAoRmluYW5jZSkgPGZpbmFuY2VAcmFnaGF2Z3VydXJha= mFu Lm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNMbwIbAwULCQgHAgYVC= gkI CwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUWnLAP914hb0IzSCiaj+XrcEBaIt/Q+KjRn2fj5A7= V6Z ucJJqwEA64eks7xjLBS3mpTpaGwdDtluJcR7G8XZJJdbdK2YyQ/NN1JhZ2hhdiBHdXJ1cmFqY= W4g KEhlYWx0aCkgPGhlYWx0aEByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpj= Ms3 2pHWsF9YFmR/i+VRBQJgE0yhAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i= +VR xdcA/3YxFzlKKHrTguDxE1tBWD31BUYlXWl351j6MB/U+tWdAPwJB8QD8janaddv3U5ZGzswf= hQv GGzx6SLcX0E253uNC80/UmFnaGF2IEd1cnVyYWphbiAoT2NjdXBhdGlvbikgPG9jY3VwYXRpb= 25A cmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCY= BNM ugIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUSrlAP0VJw8frvWHAGd6l= Zdy x1v+relUGB4DToqDgIMBQyG58gD+NU5t4h0IY6YaiQ+FPyJzdV62k15d9IDvTMYPvcWIpQPNP= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJlY3JlYXRpb24pIDxyZWNyZWF0aW9uQHJhZ2hhdmd1cnVyYWphb= i5u YW1lPsKQBBMWCAA4FiEEzS1eqqmMyzfakdawX1gWZH+L5VEFAmATTNkCGwMFCwkIBwIGFQoJC= AsC BBYCAwECHgECF4AACgkQX1gWZH+L5VHhbQD/b6jXWdQfxi+xzrs1+A0lvnihfUgQ0H/r5U2bO= w9d FIkA/0nCh0VJKX+YrySJhWugL7e8ItqwKADh0v05vO6qtlkAzTdSYWdoYXYgR3VydXJhamFuI= ChT b2NpYWwpIDxzb2NpYWxAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN= 9qR 1rBfWBZkf4vlUQUCYBNM8AIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlU= dtv AQCKMxBdxwMUJdyigGWqrTuJUaLVL2dgvqGa0k39nsQA8gD+PH3LsQAaJ98xREKxYXMAszNnJ= RJR xYa9trfixyQbrw7NNVJhZ2hhdiBHdXJ1cmFqYW4gKFRyYWRlKSA8dHJhZGVAcmFnaGF2Z3Vyd= XJh amFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNNHQIbAwULCQgHA= gYV CgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUQ+9AP0S/6S5PLshS/vz7ezRO2HokruaRiDhg= w0t yRM3LAefSQEA7rEBw9sSUsDgRILGKUi1ZzQq5AJ0F77KOXyurVqnywXOOARfZkIkEgorBgEEA= ZdV AQUBAQdAZgiqc2NhH/myrCCan9x7gKI6QBPZ/1b+Bz/f3n95ozkDAQgHwngEGBYIACAWIQTNL= V6q qYzLN9qR1rBfWBZkf4vlUQUCX2ZCJAIbDAAKCRBfWBZkf4vlUV/OAQD+tMNgmddPSchLpaDPp= sdD hpvra2uTonNUmnfbTvPgpQD/dG72NCT8hBUVqtzxwQmBrXY/nPEUxctYuvu3unUmzQU=3D =3DooAX -----END PGP PUBLIC KEY BLOCK----- --------------03EC600AC033497329198B6B-- --wIkr8eMOopcLiEYnyKhf5BXc1Bt7ciib9-- --wMXhLfqqDpptd1l8fWaAZOsjUI2k90cez Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYS1O+gUDAAAAAAAKCRBfWBZkf4vlUbN8 AQC4YPSGQ1tv9b4kQwn62TMmDlDTUt3+plCwbJ+YyY79hQD/ZuIh+saUPWBMZKh821zbVBsIfYOL 36364cXfDs4fHwU= =fsw0 -----END PGP SIGNATURE----- --wMXhLfqqDpptd1l8fWaAZOsjUI2k90cez-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 01 19:19:51 2021 Received: (at 49934) by debbugs.gnu.org; 1 Oct 2021 23:19:51 +0000 Received: from localhost ([127.0.0.1]:57565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWRoj-00057L-KE for submit@debbugs.gnu.org; Fri, 01 Oct 2021 19:19:51 -0400 Received: from out10.migadu.com ([46.105.121.227]:58795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWRoc-000574-Cg for 49934@debbugs.gnu.org; Fri, 01 Oct 2021 19:19:48 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1633130380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6Imo+2IIU1RCfUQmUSyONWKDeuty67PhxwqhNXA+t88=; b=ookbcYPk5scwibh63BlM8DFQzDObgnwbP2WPtycYyv4QKdk+SkgRzthJ32J6hkBAtyGKtC jZIn5/N5nDWgTJLoAfDdIp3ZhTpu/2U8FCtXoZVfExoquXd3Im67V16ES2rFYGFhJSe3dD AoGy9fL/2lupdEwOQrnn2oUE2Iso3+lp8VMNGoYFjYLjqf5BlgbDKkG4VhF2HdXPS/KKfL TsdR/2c71whoRn8dypDTjY8Ztx8uoxCgTbdKx0T8KHYX6mhjkjuFitRid93lVjIuXmJ0Pr qrQJEmiiHmqgZjMDw6pKQFYD32yUpUwnX4PkxfH7CrzMLegIYLiDwUbiDd5IGg== From: Raghav Gururajan To: 49934@debbugs.gnu.org Subject: [PATCH] gnu: Add hw-probe. Date: Fri, 1 Oct 2021 19:19:01 -0400 Message-Id: <20211001231901.24230-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49934 Cc: Raghav Gururajan , pelzflorian@pelzflorian.de, Petr Hodina 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: -0.1 (/) * gnu/packages/hardware.scm (hw-probe): New variable. Co-authored-by: Petr Hodina --- gnu/packages/hardware.scm | 491 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 491 insertions(+) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index d000ab8ce6..9a3fa86edc 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -26,20 +26,29 @@ (define-module (gnu packages hardware) #:use-module (gnu packages admin) #:use-module (gnu packages autotools) + #:use-module (gnu packages avahi) + #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages compression) #:use-module (gnu packages check) #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) + #:use-module (gnu packages cups) #:use-module (gnu packages curl) + #:use-module (gnu packages debian) + #:use-module (gnu packages disk) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) + #:use-module (gnu packages gl) #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) + #:use-module (gnu packages package-management) #:use-module (gnu packages ncurses) #:use-module (gnu packages openldap) #:use-module (gnu packages pciutils) @@ -51,14 +60,19 @@ #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) + #:use-module (gnu packages scanner) + #:use-module (gnu packages security-token) #:use-module (gnu packages tls) + #:use-module (gnu packages video) #:use-module (gnu packages virtualization) + #:use-module (gnu packages vulkan) #:use-module (gnu packages web) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module (guix download) #:use-module (guix git-download) @@ -70,6 +84,483 @@ ;; This is a module for packages related to physical hardware that don't (yet) ;; have a more specific home like gps.scm, security-token.scm, &c. +(define-public hw-probe + (package + (name "hw-probe") + (version "1.5") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/linuxhw/hw-probe") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zyaardfw6r9nwxbkbb68hyl8719xn8sxpbgm7czkvsbjrim11n8")))) + (build-system perl-build-system) + (arguments + `(#:tests? #f ;no test target + #:imported-modules + (,@%perl-build-system-modules) + #:modules + ((guix build perl-build-system) + (guix build utils) + (srfi srfi-26)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + ;; Correct install prefix. + (substitute* "Makefile" + (("/usr") out))) + ;; Use absolute paths to referenced programs. + (substitute* "hw-probe.pl" + (("Cmd\\(\"acpi") + (format #f "Cmd(\"~a/bin/acpi" + (assoc-ref inputs "acpi"))) + (("Cmd\\(\"acpidump") + (format #f "Cmd(\"~a/bin/acpidump" + (assoc-ref inputs "acpica"))) + (("Cmd\\(\"acpixtract") + (format #f "Cmd(\"~a/bin/acpixtract" + (assoc-ref inputs "acpica"))) + (("Cmd\\(\"alsactl") + (format #f "Cmd(\"~a/bin/alsactl" + (assoc-ref inputs "alsa-utils"))) + #;(("Cmd\\(\"amdconfig") + (format #f "Cmd(\"~a/bin/amdconfig" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"amixer") + (format #f "Cmd(\"~a/bin/amixer" + (assoc-ref inputs "alsa-utils"))) + #;(("Cmd\\(\"apk") + (format #f "Cmd(\"~a/bin/apk" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"aplay") + (format #f "Cmd(\"~a/bin/aplay" + (assoc-ref inputs "alsa-utils"))) + #;(("Cmd\\(\"arcconf") + (format #f "Cmd(\"~a/bin/arcconf" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"arecord") + (format #f "Cmd(\"~a/bin/arecord" + (assoc-ref inputs "alsa-utils"))) + (("Cmd\\(\"avahi-browse") + (format #f "Cmd(\"~a/bin/avahi-browse" + (assoc-ref inputs "avahi"))) + (("Cmd\\(\"biosdecode") + (format #f "Cmd(\"~a/sbin/biosdecode" + (assoc-ref inputs "dmidecode"))) + (("=cat") + (format #f "=~a/bin/cat" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"chmod") + (format #f "Cmd(\"~a/bin/chmod" + (assoc-ref inputs "coreutils"))) + (("\"chmod\"") + (format #f "\"~a/bin/chmod\"" + (assoc-ref inputs "coreutils"))) + (("\"chown\"") + (format #f "\"~a/bin/chown\"" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"cpuid") + (format #f "Cmd(\"~a/bin/cpuid" + (assoc-ref inputs "cpuid"))) + (("Cmd\\(\"cpupower") + (format #f "Cmd(\"~a/bin/cpupower" + (assoc-ref inputs "cpupower"))) + (("Cmd\\(\"curl") + (format #f "Cmd(\"~a/bin/curl" + (assoc-ref inputs "curl"))) + (("Cmd = \"curl") + (format #f "Cmd = \"~a/bin/curl" + (assoc-ref inputs "curl"))) + (("Cmd = \\(\"curl") + (format #f "Cmd = (\"~a/bin/curl" + (assoc-ref inputs "curl"))) + (("\"date\"") + (format #f "\"~a/bin/date\"" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"dd") + (format #f "Cmd(\"~a/bin/dd" + (assoc-ref inputs "coreutils"))) + (("\"dd ") + (format #f "\"~a/bin/dd " + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"df") + (format #f "Cmd(\"~a/bin/df" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"dkms") + (format #f "Cmd(\"~a/bin/dkms" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"dmesg") + (format #f "Cmd(\"~a/bin/dmesg" + (assoc-ref inputs "util-linux"))) + (("Cmd\\(\"dmidecode") + (format #f "Cmd(\"~a/sbin/dmidecode" + (assoc-ref inputs "dmidecode"))) + (("Cmd\\(\"dpkg") + (format #f "Cmd(\"~a/bin/dpkg" + (assoc-ref inputs "dpkg"))) + #;(("echo") + (format #f "~a/bin/echo" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"edid-decode") + (format #f "Cmd(\"~a/bin/edid-decode" + (assoc-ref inputs "edid-decode"))) + (("Cmd\\(\"efibootmgr") + (format #f "Cmd(\"~a/sbin/efibootmgr" + (assoc-ref inputs "efibootmgr"))) + (("Cmd\\(\"efivar") + (format #f "Cmd(\"~a/bin/efivar" + (assoc-ref inputs "efivar"))) + #;(("Cmd\\(\"eopkg") + (format #f "Cmd(\"~a/bin/eopkg" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"ethtool") + (format #f "Cmd(\"~a/sbin/ethtool" + (assoc-ref inputs "ethtool"))) + (("Cmd\\(\".*ethtool") + (format #f "Cmd(\"~a/sbin/ethtool" + (assoc-ref inputs "ethtool"))) + (("Cmd\\(\"fdisk") + (format #f "Cmd(\"~a/sbin/fdisk" + (assoc-ref inputs "util-linux"))) + #;(("Cmd\\(\"fglrxinfo") + (format #f "Cmd(\"~a/bin/fglrxinfo" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"find") + (format #f "Cmd(\"~a/bin/find" + (assoc-ref inputs "findutils"))) + (("Cmd\\(\"findmnt") + (format #f "Cmd(\"~a/bin/findmnt" + (assoc-ref inputs "util-linux"))) + (("Cmd = \"findmnt") + (format #f "Cmd = \"~a/bin/findmnt" + (assoc-ref inputs "util-linux"))) + (("Cmd\\(\"glxgears") + (format #f "Cmd(\"~a/bin/glxgears" + (assoc-ref inputs "mesa-utils"))) + (("Cmd\\(\"glxinfo") + (format #f "Cmd(\"~a/bin/glxinfo" + (assoc-ref inputs "mesa-utils"))) + #;(("grep") + (format #f "~a/bin/grep" + (assoc-ref inputs "grep"))) + (("`head") + (format #f "`~a/bin/head" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"hciconfig") + (format #f "Cmd(\"~a/bin/hciconfig" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"hcitool") + (format #f "Cmd(\"~a/bin/hcitool" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"hddtemp") + (format #f "Cmd(\"~a/sbin/hddtemp" + (assoc-ref inputs "hddtemp"))) + (("Cmd\\(\"hdparm") + (format #f "Cmd(\"~a/sbin/hdparm" + (assoc-ref inputs "hdparm"))) + (("Cmd = \"hdparm") + (format #f "Cmd = \"~a/bin/hdparm" + (assoc-ref inputs "hdparm"))) + #;(("Cmd\\(\"hp-probe") + (format #f "Cmd(\"~a/bin/hp-probe" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"hwinfo") + (format #f "Cmd(\"~a/bin/hwinfo" + (assoc-ref inputs "hwinfo"))) + #;(("Cmd = \"hwinfo") + (format #f "Cmd = \"~a/bin/hwinfo" + (assoc-ref inputs "hwinfo"))) + (("Cmd\\(\"i2cdetect") + (format #f "Cmd(\"~a/sbin/i2cdetect" + (assoc-ref inputs "i2c-tools"))) + (("Cmd\\(\"iasl") + (format #f "Cmd(\"~a/bin/iasl" + (assoc-ref inputs "acpica"))) + (("Cmd\\(\"ifconfig") + (format #f "Cmd(\"~a/bin/ifconfig" + (assoc-ref inputs "net-tools"))) + (("Cmd\\(\"inxi") + (format #f "Cmd(\"~a/bin/inxi" + (assoc-ref inputs "inxi"))) + (("Cmd\\(\"iostat") + (format #f "Cmd(\"~a/bin/iostat" + (assoc-ref inputs "sysstat"))) + (("Cmd\\(\"ip") + (format #f "Cmd(\"~a/sbin/ip" + (assoc-ref inputs "iproute2"))) + (("Cmd\\(\".*ip") + (format #f "Cmd(\"~a/sbin/ip" + (assoc-ref inputs "iproute2"))) + (("Cmd\\(\"iw") + (format #f "Cmd(\"~a/sbin/iw" + (assoc-ref inputs "iw"))) + (("Cmd\\(\".*iw") + (format #f "Cmd(\"~a/sbin/iw" + (assoc-ref inputs "iw"))) + #;(("Cmd\\(\"iwconfig") + (format #f "Cmd(\"~a/bin/iwconfig" + (assoc-ref inputs "foobar"))) + #;(("join") + (format #f "~a/bin/join" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"journalctl") + (format #f "Cmd(\"~a/bin/journalctl" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"ls") + (format #f "Cmd(\"~a/bin/ls" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"lsb_release") + (format #f "Cmd(\"~a/bin/lsb_release" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"lsblk") + (format #f "Cmd(\"~a/bin/lsblk" + (assoc-ref inputs "util-linux"))) + (("Cmd = \"lsblk") + (format #f "Cmd = \"~a/bin/lsblk" + (assoc-ref inputs "util-linux"))) + (("Cmd\\(\"lscpu") + (format #f "Cmd(\"~a/bin/lscpu" + (assoc-ref inputs "util-linux"))) + #;(("Cmd\\(\"lsinitrd") + (format #f "Cmd(\"~a/bin/lsinitrd" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"lsmod") + (format #f "Cmd(\"~a/bin/lsmod" + (assoc-ref inputs "module-init-tools"))) + (("Cmd\\(\"lspci") + (format #f "Cmd(\"~a/sbin/lspci" + (assoc-ref inputs "pciutils"))) + #;(("Cmd\\(\"lspnp") + (format #f "Cmd(\"~a/bin/lspnp" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"lsusb") + (format #f "Cmd(\"~a/bin/lsusb" + (assoc-ref inputs "usbutils"))) + (("Cmd\\(\"mcelog") + (format #f "Cmd(\"~a/sbin/mcelog" + (assoc-ref inputs "mcelog"))) + (("Cmd\\(\"md5sum") + (format #f "Cmd(\"~a/bin/md5sum" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"megactl") + (format #f "Cmd(\"~a/bin/megactl" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"memtester") + (format #f "Cmd(\"~a/bin/memtester" + (assoc-ref inputs "memtester"))) + (("Cmd\\(\"mmcli") + (format #f "Cmd(\"~a/bin/mmcli" + (assoc-ref inputs "modem-manager"))) + (("Cmd\\(\"modinfo") + (format #f "Cmd(\"~a/sbin/modinfo" + (assoc-ref inputs "module-init-tools"))) + #;(("Cmd\\(\"monitor-get-edid") + (format #f "Cmd(\"~a/bin/monitor-get-edid" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"mount") + (format #f "Cmd(\"~a/bin/mount" + (assoc-ref inputs "util-linux"))) + #;(("Cmd\\(\"nm-tool") + (format #f "Cmd(\"~a/bin/nm-tool" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"nmcli") + (format #f "Cmd(\"~a/bin/nmcli" + (assoc-ref inputs "network-manager"))) + (("Cmd\\(\"numactl") + (format #f "Cmd(\"~a/bin/numactl" + (assoc-ref inputs "numactl"))) + (("Cmd\\(\"nvme") + (format #f "Cmd(\"~a/sbin/nvme" + (assoc-ref inputs "nvme-cli"))) + (("Cmd\\(\"opensc-tool") + (format #f "Cmd(\"~a/bin/opensc-tool" + (assoc-ref inputs "opensc"))) + #;(("Cmd\\(\"optirun") + (format #f "Cmd(\"~a/bin/optirun" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"pacman") + (format #f "Cmd(\"~a/bin/pacman" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"pstree") + (format #f "Cmd(\"~a/bin/pstree" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"rfkill") + (format #f "Cmd(\"~a/sbin/rfkill" + (assoc-ref inputs "util-linux"))) + (("Cmd\\(\"route") + (format #f "Cmd(\"~a/bin/route" + (assoc-ref inputs "net-tools"))) + (("Cmd\\(\"rpm") + (format #f "Cmd(\"~a/bin/rpm" + (assoc-ref inputs "rpm"))) + (("Cmd\\(\"sane-find-scanner") + (format #f "Cmd(\"~a/bin/sane-find-scanner" + (assoc-ref inputs "sane-backends"))) + (("Cmd\\(\"scanimage") + (format #f "Cmd(\"~a/bin/scanimage" + (assoc-ref inputs "sane-backends"))) + (("Cmd\\(\"sensors") + (format #f "Cmd(\"~a/bin/sensors" + (assoc-ref inputs "lm-sensors"))) + #;(("sha512sum") + (format #f "~a/bin/sha512sum" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"slabtop") + (format #f "Cmd(\"~a/bin/slabtop" + (assoc-ref inputs "procps"))) + #;(("sleep") + (format #f "~a/bin/sleep" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"smartctl") + (format #f "Cmd(\"~a/sbin/smartctl" + (assoc-ref inputs "smartmontools"))) + (("Cmd = \"smartctl") + (format #f "Cmd = \"~a/bin/smartctl" + (assoc-ref inputs "smartmontools"))) + #;(("sort") + (format #f "~a/bin/sort" + (assoc-ref inputs "coreutils"))) + #;(("split") + (format #f "~a/bin/split" + (assoc-ref inputs "coreutils"))) + #;(("= stat") + (format #f "= ~a/bin/stat" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"superiotool") + (format #f "Cmd(\"~a/bin/superiotool" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"swupd") + (format #f "Cmd(\"~a/bin/swupd" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"systemctl") + (format #f "Cmd(\"~a/bin/systemctl" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"systemd-analyze") + (format #f "Cmd(\"~a/bin/systemd-analyze" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"top") + (format #f "Cmd(\"~a/bin/top" + (assoc-ref inputs "procps"))) + (("Cmd\\(\"udevadm") + (format #f "Cmd(\"~a/bin/udevadm" + (assoc-ref inputs "eudev"))) + (("Cmd\\(\"uname") + (format #f "Cmd(\"~a/bin/uname" + (assoc-ref inputs "coreutils"))) + #;(("unlink") + (format #f "~a/bin/unlink" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"update-alternatives") + (format #f "Cmd(\"~a/bin/update-alternatives" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"upower") + (format #f "Cmd(\"~a/bin/upower" + (assoc-ref inputs "upower"))) + (("Cmd\\(\"uptime") + (format #f "Cmd(\"~a/bin/uptime" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"usb-devices") + (format #f "Cmd(\"~a/bin/usb-devices" + (assoc-ref inputs "usbutils"))) + (("Cmd\\(\"vainfo") + (format #f "Cmd(\"~a/bin/vainfo" + (assoc-ref inputs "libva-utils"))) + (("Cmd\\(\"vdpauinfo") + (format #f "Cmd(\"~a/bin/vdpauinfo" + (assoc-ref inputs "vdpauinfo"))) + (("Cmd\\(\"vulkaninfo") + (format #f "Cmd(\"~a/bin/vulkaninfo" + (assoc-ref inputs "vulkan-tools"))) + (("Cmd\\(\"xdpyinfo") + (format #f "Cmd(\"~a/bin/xdpyinfo" + (assoc-ref inputs "xdpyinfo"))) + (("Cmd\\(\"xinput") + (format #f "Cmd(\"~a/bin/xinput" + (assoc-ref inputs "xinput"))) + (("Cmd\\(\"xrandr") + (format #f "Cmd(\"~a/bin/xrandr" + (assoc-ref inputs "xrandr"))) + (("Cmd\\(\"xvinfo") + (format #f "Cmd(\"~a/bin/xvinfo" + (assoc-ref inputs "xvinfo")))))) + (delete 'configure) + (add-after 'install 'wrap-programs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-dir (string-append out "/bin/")) + (perl-lib (getenv "PERL5LIB"))) + (for-each + (cut wrap-program <> + `("PERL5LIB" ":" prefix (,perl-lib))) + (find-files bin-dir)))))))) + (inputs + `(("acpi" ,acpi) + ("acpica" ,acpica) + ("alsa-utils" ,alsa-utils) + ("avahi" ,avahi) + ("coreutils" ,coreutils) + ("cpuid" ,cpuid) + ("cpupower" ,cpupower) + ("curl" ,curl) + ("dmidecode" ,dmidecode) + ("dpkg" ,dpkg) + ("edid-decode" ,edid-decode) + ("efibootmgr" ,efibootmgr) + ("efivar" ,efivar) + ("eudev" ,eudev) + ("findutils" ,findutils) + ("grep" ,grep) + ("hddtemp" ,hddtemp) + ("hdparm" ,hdparm) + ("hplip" ,hplip-minimal) + ("i2c-tools" ,i2c-tools) + ("inxi" ,inxi) + ("iproute" ,iproute) + ("libva-utils" ,libva-utils) + ("lm-sensors" ,lm-sensors) + ("mcelog" ,mcelog) + ("memtester" ,memtester) + ("mesa-utils" ,mesa-utils) + ("modem-manager" ,modem-manager) + ("module-init-tools" ,module-init-tools) + ("net-tools" ,net-tools) + ("network-manager" ,network-manager) + ("numactl" ,numactl) + ("nvme-cli" ,nvme-cli) + ("opensc" ,opensc) + ("pciutils" ,pciutils) + ("perl-data-dumper" ,perl-data-dumper) + ("perl-digest-sha" ,perl-digest-sha) + ("perl-libwww" ,perl-libwww) + ;; ("pnputils" ,pnputils) + ("procps" ,procps) + ("rpm" ,rpm) + ("sane-backends" ,sane-backends) + ("smartmontools" ,smartmontools) + ("sysstat" ,sysstat) + ("upower" ,upower) + ("usbutils" ,usbutils) + ("util-linux" ,util-linux) + ("vdpauinfo" ,vdpauinfo) + ("vulkan-tools" ,vulkan-tools) + ("xdpyinfo" ,xdpyinfo) + ("xinput" ,xinput) + ("xrandr" ,xrandr) + ("xvinfo" ,xvinfo))) + (propagated-inputs + `(("hwinfo" ,hwinfo))) + (home-page "https://linux-hardware.org") + (synopsis "Hardware Probe") + (description "Hardware Probe is a tool to probe for hardware, check its +operability and find drivers.") + (license license:lgpl2.1+))) + (define-public hwinfo (package (name "hwinfo") -- 2.33.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 01 19:26:50 2021 Received: (at 49934) by debbugs.gnu.org; 1 Oct 2021 23:26:50 +0000 Received: from localhost ([127.0.0.1]:57577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWRvV-0005Ik-Tu for submit@debbugs.gnu.org; Fri, 01 Oct 2021 19:26:50 -0400 Received: from out1.migadu.com ([91.121.223.63]:27755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWRvT-0005Ib-DN for 49934@debbugs.gnu.org; Fri, 01 Oct 2021 19:26:48 -0400 To: 49934@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1633130805; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=IMXv/tfTx5tociC0xOIoCya7k0e+7oo26sAZsY9xjWg=; b=J6porXF72rAVcFyOgtFvnbdNamUP8ePsbSBBUxvrAu6LmOy8iO7eiO2zZIHFK1blPDzyVt p2Wbvh8DPQIR+Qzu3t+05LL93RdjapkfyWxZUvMcB+1lSBuVXtMnkWrjio6CqdgyOFVgVe xgHP1l49MKX1+ndwtAn7vAfOzex/ReYP2JBvaqyDkyPXsqhxFmnQilQYcMAtJEVp6jPvhG EXvaMF7H5D32NP20MkMCEMprW/ZRa1+T5lfZcacpDzXxtDH6R03j/iMtngYrJJ/S5tRNP1 f5lMIjolSUeg65JZEwqZTchMFhNrjzBLprQql86NgQEzNTxU2QJM2PwMqafXlg== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Subject: Re: HwInfo Message-ID: <3fa3d74e-ac03-e14b-ae5c-9ebe3cfca674@raghavgururajan.name> Date: Fri, 1 Oct 2021 19:26:42 -0400 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PsTTveT6pYYXdyKSeoTzdg9A7E8g8bpkM" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49934 Cc: phodina , "pelzflorian \(Florian Pelz\)" 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: -1.7 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --PsTTveT6pYYXdyKSeoTzdg9A7E8g8bpkM Content-Type: multipart/mixed; boundary="ciXNjaac2zL5huxgBlf8GS7pJE8p6L9VZ"; protected-headers="v1" From: Raghav Gururajan To: 49934@debbugs.gnu.org Cc: phodina , "pelzflorian (Florian Pelz)" Message-ID: <3fa3d74e-ac03-e14b-ae5c-9ebe3cfca674@raghavgururajan.name> Subject: Re: HwInfo --ciXNjaac2zL5huxgBlf8GS7pJE8p6L9VZ Content-Type: multipart/mixed; boundary="------------6E7F29DFC3E8CA1C3E815CBC" Content-Language: en-CA This is a multi-part message in MIME format. --------------6E7F29DFC3E8CA1C3E815CBC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi, I have sent a patch for hw-probe (https://issues.guix.gnu.org/49934#9),=20 which requires some refinements. [1] Some programs in the script are not patched, hence doesn't work in=20 pure environment. [2] Synopsis and description has to be revised. [3] Finding a way to avoid propagation of hw-info. @phodina, Would you be able to hack on the above. Regards, RG. --------------6E7F29DFC3E8CA1C3E815CBC Content-Type: application/pgp-keys; name="OpenPGP_0x5F5816647F8BE551.asc" Content-Transfer-Encoding: quoted-printable Content-Description: OpenPGP public key Content-Disposition: attachment; filename="OpenPGP_0x5F5816647F8BE551.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX2ZCJBYJKwYBBAHaRw8BAQdAdiUK33kml2dYjrWidlr4/v0pmjpUv7hOsBN/oSl5wx7NL= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJHKSA8cmdAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpMEExYIADsFC= wkI BwIGFQoJCAsCBBYCAwECHgECF4ACGQEWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYRS1pwIbI= wAK CRBfWBZkf4vlUbYYAQCe+UaQKTg+iaEL0XAuhyZgiMNpjoqrvlZCAb8ahNLe3AEA1/v+k2EjE= ap/ lfeUSxuzy4MvYXxRRJMZ1C+qJs7MIgPNPVJhZ2hhdiBHdXJ1cmFqYW4gKEVkdWNhdGlvbikgP= GVk dWNhdGlvbkByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpjMs32pHWsF9YF= mR/ i+VRBQJgE0xGAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i+VRQcQBALNRe= 1V/ 5DKN8ZxyVQlzt4TdGUyNom7xJ6r23ANtcygxAQDBjw6NLXV3aYGDMVVmQPbdAnFiB/x1rpJsA= wB/ 1BSBDc05UmFnaGF2IEd1cnVyYWphbiAoRmluYW5jZSkgPGZpbmFuY2VAcmFnaGF2Z3VydXJha= mFu Lm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNMbwIbAwULCQgHAgYVC= gkI CwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUWnLAP914hb0IzSCiaj+XrcEBaIt/Q+KjRn2fj5A7= V6Z ucJJqwEA64eks7xjLBS3mpTpaGwdDtluJcR7G8XZJJdbdK2YyQ/NN1JhZ2hhdiBHdXJ1cmFqY= W4g KEhlYWx0aCkgPGhlYWx0aEByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpj= Ms3 2pHWsF9YFmR/i+VRBQJgE0yhAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i= +VR xdcA/3YxFzlKKHrTguDxE1tBWD31BUYlXWl351j6MB/U+tWdAPwJB8QD8janaddv3U5ZGzswf= hQv GGzx6SLcX0E253uNC80/UmFnaGF2IEd1cnVyYWphbiAoT2NjdXBhdGlvbikgPG9jY3VwYXRpb= 25A cmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCY= BNM ugIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUSrlAP0VJw8frvWHAGd6l= Zdy x1v+relUGB4DToqDgIMBQyG58gD+NU5t4h0IY6YaiQ+FPyJzdV62k15d9IDvTMYPvcWIpQPNP= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJlY3JlYXRpb24pIDxyZWNyZWF0aW9uQHJhZ2hhdmd1cnVyYWphb= i5u YW1lPsKQBBMWCAA4FiEEzS1eqqmMyzfakdawX1gWZH+L5VEFAmATTNkCGwMFCwkIBwIGFQoJC= AsC BBYCAwECHgECF4AACgkQX1gWZH+L5VHhbQD/b6jXWdQfxi+xzrs1+A0lvnihfUgQ0H/r5U2bO= w9d FIkA/0nCh0VJKX+YrySJhWugL7e8ItqwKADh0v05vO6qtlkAzTdSYWdoYXYgR3VydXJhamFuI= ChT b2NpYWwpIDxzb2NpYWxAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN= 9qR 1rBfWBZkf4vlUQUCYBNM8AIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlU= dtv AQCKMxBdxwMUJdyigGWqrTuJUaLVL2dgvqGa0k39nsQA8gD+PH3LsQAaJ98xREKxYXMAszNnJ= RJR xYa9trfixyQbrw7NNVJhZ2hhdiBHdXJ1cmFqYW4gKFRyYWRlKSA8dHJhZGVAcmFnaGF2Z3Vyd= XJh amFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNNHQIbAwULCQgHA= gYV CgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUQ+9AP0S/6S5PLshS/vz7ezRO2HokruaRiDhg= w0t yRM3LAefSQEA7rEBw9sSUsDgRILGKUi1ZzQq5AJ0F77KOXyurVqnywXOOARfZkIkEgorBgEEA= ZdV AQUBAQdAZgiqc2NhH/myrCCan9x7gKI6QBPZ/1b+Bz/f3n95ozkDAQgHwngEGBYIACAWIQTNL= V6q qYzLN9qR1rBfWBZkf4vlUQUCX2ZCJAIbDAAKCRBfWBZkf4vlUV/OAQD+tMNgmddPSchLpaDPp= sdD hpvra2uTonNUmnfbTvPgpQD/dG72NCT8hBUVqtzxwQmBrXY/nPEUxctYuvu3unUmzQU=3D =3DooAX -----END PGP PUBLIC KEY BLOCK----- --------------6E7F29DFC3E8CA1C3E815CBC-- --ciXNjaac2zL5huxgBlf8GS7pJE8p6L9VZ-- --PsTTveT6pYYXdyKSeoTzdg9A7E8g8bpkM Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYVeZMgUDAAAAAAAKCRBfWBZkf4vlUSGG AQCrhezvdXQIQeV/KWWoMKKR6g9aTFy29QXUzWKRmdA69gEAhOictq4jS/dadVZ6s5vsCVVW8Jed Ed7te+YBi+ZiEgo= =LzSg -----END PGP SIGNATURE----- --PsTTveT6pYYXdyKSeoTzdg9A7E8g8bpkM-- From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 02 05:58:33 2021 Received: (at 49934) by debbugs.gnu.org; 2 Oct 2021 09:58:33 +0000 Received: from localhost ([127.0.0.1]:57889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWbmr-0006qV-6n for submit@debbugs.gnu.org; Sat, 02 Oct 2021 05:58:33 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:41030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWbmo-0006qL-MY for 49934@debbugs.gnu.org; Sat, 02 Oct 2021 05:58:31 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by xavier.telenet-ops.be with bizsmtp id 0xyU260050mfAB401xyUEC; Sat, 02 Oct 2021 11:58:28 +0200 Message-ID: <69104171347919696433d1cd0fe4040f0999c648.camel@telenet.be> Subject: Re: [bug#49934] [PATCH] gnu: Add hw-probe. From: Maxime Devos To: Raghav Gururajan , 49934@debbugs.gnu.org Date: Sat, 02 Oct 2021 11:58:21 +0200 In-Reply-To: <20211001231901.24230-1-rg@raghavgururajan.name> References: <20211001231901.24230-1-rg@raghavgururajan.name> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-CmsS1TPp2qjy7Q/wGgsg" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1633168708; bh=Nnv47QfjRCsz628eaCL/GxN9SU7Kq0uahlFzP3uscoU=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=K7B+m0T8eXWsCWBCBFaJ9JobGmU85ultDmfpeCIWFE17nY5pGF6M3JWH1tEzwY6zw 22buBVbBUTHc8+ufJ8GLTd1PHvzyLkfSKsyTrue64UMXuINNbMRiqJcrmRTrFpToJk bDG7Fu852kA291IWeZtx3zP3b7DZzT7cr2myYegzlNypY620BPOY57FnZ1tc15pVfK Kp9qqDmraDNhgXxkzbfY2VHOdLX/7GFdn2FwdhrjOCDD0ZKKJD1gIy3Zx9ylNB+U7+ /dEFcesvWydpgJOd8mPdVOuUp72pl49olB4sNOeFm0y39HUTSGRWsTcULb1youg/Kf tFV5NPANWS1Rg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49934 Cc: pelzflorian@pelzflorian.de, Petr Hodina 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: -1.7 (-) --=-CmsS1TPp2qjy7Q/wGgsg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Raghav Gururajan via Guix-patches via schreef op vr 01-10-2021 om 19:19 [-0= 400]: > [...] > + (for-each > + (cut wrap-program <> > + `("PERL5LIB" ":" prefix (,perl-lib))) > + (find-files bin-dir)))))))) > + (inputs > + `(("acpi" ,acpi) > + ("acpica" ,acpica) > + ("alsa-utils" ,alsa-utils) > + ("avahi" ,avahi) 'wrap-program' is used, but 'bash-minimal' is not in 'inputs'. "./pre-inst-env guix lint" should warn about this. Greetings, Maxime --=-CmsS1TPp2qjy7Q/wGgsg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYVgtPhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7uUzAQCXYkQnssm3KIFWjaGgc18ygvtc J2v+dYkR+Xdk+vYniwD/e+4b5Dfa7/zuWf61JKWhPyzmVR2Qa0z8BDTzDi+xowk= =r/D6 -----END PGP SIGNATURE----- --=-CmsS1TPp2qjy7Q/wGgsg-- From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 06:51:40 2021 Received: (at 49934) by debbugs.gnu.org; 9 Dec 2021 11:51:40 +0000 Received: from localhost ([127.0.0.1]:42608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvHxb-0004HP-45 for submit@debbugs.gnu.org; Thu, 09 Dec 2021 06:51:40 -0500 Received: from out1.migadu.com ([91.121.223.63]:25995) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvHxY-0004HF-NW for 49934@debbugs.gnu.org; Thu, 09 Dec 2021 06:51:38 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639050694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=1WIYRN1+v6OMudsIpSOuBqAhEFVxTvRYAkpAsxVp7rQ=; b=I0XqFFQwo1B6JjTVPsNspw7jctC9uqAtulMaDJ2PVY14sYwls6URzYU7z4gIPw8gcxYuzB K6z8KUYH5z5pDTWPYOHj7srrQAoArO/BBIKZuPiVM17wpUpGf6CR+tAVBwI2x6YnGou9Zw sLFlapky8zwnAmF+Hg0Y+/Dd5nnMAf0tUC3b42SVTD0SPFdk+S6wD8QHID2IhXaVtB1sJ3 vVY9IUIPmwLVw9Vm411Rf0BjDn5Leu4aNJMrE6eAA+6dqYxK8+lmsAwCbcR25OuJcQ8DFC Jj0eq+EEWAG7SiQF9ERYvCWw20Rywn8XArspegH08PJs1yZ5H9aUNdpE1OHtjA== From: Raghav Gururajan To: 49934@debbugs.gnu.org Subject: [PATCH v2] gnu: Add hw-probe. Date: Thu, 9 Dec 2021 06:51:30 -0500 Message-Id: <20211209115130.30786-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49934 Cc: Raghav Gururajan , maximedevos@telenet.be, Petr Hodina 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: -1.7 (-) * gnu/packages/hardware.scm (hw-probe): New variable. Co-authored-by: Petr Hodina --- gnu/packages/hardware.scm | 494 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 494 insertions(+) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 46ac96d679..90c23af90b 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -27,20 +27,29 @@ (define-module (gnu packages hardware) #:use-module (gnu packages admin) #:use-module (gnu packages autotools) + #:use-module (gnu packages avahi) + #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages compression) #:use-module (gnu packages check) #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) + #:use-module (gnu packages cups) #:use-module (gnu packages curl) + #:use-module (gnu packages debian) + #:use-module (gnu packages disk) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) + #:use-module (gnu packages gl) #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) + #:use-module (gnu packages package-management) #:use-module (gnu packages ncurses) #:use-module (gnu packages openldap) #:use-module (gnu packages pciutils) @@ -52,8 +61,12 @@ (define-module (gnu packages hardware) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) + #:use-module (gnu packages scanner) + #:use-module (gnu packages security-token) #:use-module (gnu packages tls) + #:use-module (gnu packages video) #:use-module (gnu packages virtualization) + #:use-module (gnu packages vulkan) #:use-module (gnu packages web) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) @@ -61,6 +74,7 @@ (define-module (gnu packages hardware) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) + #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module (guix download) #:use-module (guix git-download) @@ -72,6 +86,486 @@ (define-module (gnu packages hardware) ;; This is a module for packages related to physical hardware that don't (yet) ;; have a more specific home like gps.scm, security-token.scm, &c. +;; NOTE: The program will lack some functionalities, +;; until all reffered programs in 'hw-probe.pl' are packaged and patched. +(define-public hw-probe + (package + (name "hw-probe") + (version "1.5") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/linuxhw/hw-probe") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zyaardfw6r9nwxbkbb68hyl8719xn8sxpbgm7czkvsbjrim11n8")))) + (build-system perl-build-system) + (arguments + `(#:tests? #f ;no test target + #:imported-modules + (,@%perl-build-system-modules) + #:modules + ((guix build perl-build-system) + (guix build utils) + (srfi srfi-26)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + ;; Correct install prefix. + (substitute* "Makefile" + (("/usr") out))) + ;; Use absolute paths to referenced programs. + (substitute* "hw-probe.pl" + (("Cmd\\(\"acpi") + (format #f "Cmd(\"~a/bin/acpi" + (assoc-ref inputs "acpi"))) + (("Cmd\\(\"acpidump") + (format #f "Cmd(\"~a/bin/acpidump" + (assoc-ref inputs "acpica"))) + (("Cmd\\(\"acpixtract") + (format #f "Cmd(\"~a/bin/acpixtract" + (assoc-ref inputs "acpica"))) + (("Cmd\\(\"alsactl") + (format #f "Cmd(\"~a/bin/alsactl" + (assoc-ref inputs "alsa-utils"))) + #;(("Cmd\\(\"amdconfig") + (format #f "Cmd(\"~a/bin/amdconfig" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"amixer") + (format #f "Cmd(\"~a/bin/amixer" + (assoc-ref inputs "alsa-utils"))) + #;(("Cmd\\(\"apk") + (format #f "Cmd(\"~a/bin/apk" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"aplay") + (format #f "Cmd(\"~a/bin/aplay" + (assoc-ref inputs "alsa-utils"))) + #;(("Cmd\\(\"arcconf") + (format #f "Cmd(\"~a/bin/arcconf" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"arecord") + (format #f "Cmd(\"~a/bin/arecord" + (assoc-ref inputs "alsa-utils"))) + (("Cmd\\(\"avahi-browse") + (format #f "Cmd(\"~a/bin/avahi-browse" + (assoc-ref inputs "avahi"))) + (("Cmd\\(\"biosdecode") + (format #f "Cmd(\"~a/sbin/biosdecode" + (assoc-ref inputs "dmidecode"))) + (("=cat") + (format #f "=~a/bin/cat" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"chmod") + (format #f "Cmd(\"~a/bin/chmod" + (assoc-ref inputs "coreutils"))) + (("\"chmod\"") + (format #f "\"~a/bin/chmod\"" + (assoc-ref inputs "coreutils"))) + (("\"chown\"") + (format #f "\"~a/bin/chown\"" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"cpuid") + (format #f "Cmd(\"~a/bin/cpuid" + (assoc-ref inputs "cpuid"))) + (("Cmd\\(\"cpupower") + (format #f "Cmd(\"~a/bin/cpupower" + (assoc-ref inputs "cpupower"))) + (("Cmd\\(\"curl") + (format #f "Cmd(\"~a/bin/curl" + (assoc-ref inputs "curl"))) + (("Cmd = \"curl") + (format #f "Cmd = \"~a/bin/curl" + (assoc-ref inputs "curl"))) + (("Cmd = \\(\"curl") + (format #f "Cmd = (\"~a/bin/curl" + (assoc-ref inputs "curl"))) + (("\"date\"") + (format #f "\"~a/bin/date\"" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"dd") + (format #f "Cmd(\"~a/bin/dd" + (assoc-ref inputs "coreutils"))) + (("\"dd ") + (format #f "\"~a/bin/dd " + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"df") + (format #f "Cmd(\"~a/bin/df" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"dkms") + (format #f "Cmd(\"~a/bin/dkms" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"dmesg") + (format #f "Cmd(\"~a/bin/dmesg" + (assoc-ref inputs "util-linux"))) + (("Cmd\\(\"dmidecode") + (format #f "Cmd(\"~a/sbin/dmidecode" + (assoc-ref inputs "dmidecode"))) + (("Cmd\\(\"dpkg") + (format #f "Cmd(\"~a/bin/dpkg" + (assoc-ref inputs "dpkg"))) + #;(("echo") + (format #f "~a/bin/echo" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"edid-decode") + (format #f "Cmd(\"~a/bin/edid-decode" + (assoc-ref inputs "edid-decode"))) + (("Cmd\\(\"efibootmgr") + (format #f "Cmd(\"~a/sbin/efibootmgr" + (assoc-ref inputs "efibootmgr"))) + (("Cmd\\(\"efivar") + (format #f "Cmd(\"~a/bin/efivar" + (assoc-ref inputs "efivar"))) + #;(("Cmd\\(\"eopkg") + (format #f "Cmd(\"~a/bin/eopkg" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"ethtool") + (format #f "Cmd(\"~a/sbin/ethtool" + (assoc-ref inputs "ethtool"))) + (("Cmd\\(\".*ethtool") + (format #f "Cmd(\"~a/sbin/ethtool" + (assoc-ref inputs "ethtool"))) + (("Cmd\\(\"fdisk") + (format #f "Cmd(\"~a/sbin/fdisk" + (assoc-ref inputs "util-linux"))) + #;(("Cmd\\(\"fglrxinfo") + (format #f "Cmd(\"~a/bin/fglrxinfo" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"find") + (format #f "Cmd(\"~a/bin/find" + (assoc-ref inputs "findutils"))) + (("Cmd\\(\"findmnt") + (format #f "Cmd(\"~a/bin/findmnt" + (assoc-ref inputs "util-linux"))) + (("Cmd = \"findmnt") + (format #f "Cmd = \"~a/bin/findmnt" + (assoc-ref inputs "util-linux"))) + (("Cmd\\(\"glxgears") + (format #f "Cmd(\"~a/bin/glxgears" + (assoc-ref inputs "mesa-utils"))) + (("Cmd\\(\"glxinfo") + (format #f "Cmd(\"~a/bin/glxinfo" + (assoc-ref inputs "mesa-utils"))) + #;(("grep") + (format #f "~a/bin/grep" + (assoc-ref inputs "grep"))) + (("`head") + (format #f "`~a/bin/head" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"hciconfig") + (format #f "Cmd(\"~a/bin/hciconfig" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"hcitool") + (format #f "Cmd(\"~a/bin/hcitool" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"hddtemp") + (format #f "Cmd(\"~a/sbin/hddtemp" + (assoc-ref inputs "hddtemp"))) + (("Cmd\\(\"hdparm") + (format #f "Cmd(\"~a/sbin/hdparm" + (assoc-ref inputs "hdparm"))) + (("Cmd = \"hdparm") + (format #f "Cmd = \"~a/bin/hdparm" + (assoc-ref inputs "hdparm"))) + #;(("Cmd\\(\"hp-probe") + (format #f "Cmd(\"~a/bin/hp-probe" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"hwinfo") + (format #f "Cmd(\"~a/bin/hwinfo" + (assoc-ref inputs "hwinfo"))) + #;(("Cmd = \"hwinfo") + (format #f "Cmd = \"~a/bin/hwinfo" + (assoc-ref inputs "hwinfo"))) + (("Cmd\\(\"i2cdetect") + (format #f "Cmd(\"~a/sbin/i2cdetect" + (assoc-ref inputs "i2c-tools"))) + (("Cmd\\(\"iasl") + (format #f "Cmd(\"~a/bin/iasl" + (assoc-ref inputs "acpica"))) + (("Cmd\\(\"ifconfig") + (format #f "Cmd(\"~a/bin/ifconfig" + (assoc-ref inputs "net-tools"))) + (("Cmd\\(\"inxi") + (format #f "Cmd(\"~a/bin/inxi" + (assoc-ref inputs "inxi"))) + (("Cmd\\(\"iostat") + (format #f "Cmd(\"~a/bin/iostat" + (assoc-ref inputs "sysstat"))) + (("Cmd\\(\"ip") + (format #f "Cmd(\"~a/sbin/ip" + (assoc-ref inputs "iproute2"))) + (("Cmd\\(\".*ip") + (format #f "Cmd(\"~a/sbin/ip" + (assoc-ref inputs "iproute2"))) + (("Cmd\\(\"iw") + (format #f "Cmd(\"~a/sbin/iw" + (assoc-ref inputs "iw"))) + (("Cmd\\(\".*iw") + (format #f "Cmd(\"~a/sbin/iw" + (assoc-ref inputs "iw"))) + #;(("Cmd\\(\"iwconfig") + (format #f "Cmd(\"~a/bin/iwconfig" + (assoc-ref inputs "foobar"))) + #;(("join") + (format #f "~a/bin/join" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"journalctl") + (format #f "Cmd(\"~a/bin/journalctl" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"ls") + (format #f "Cmd(\"~a/bin/ls" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"lsb_release") + (format #f "Cmd(\"~a/bin/lsb_release" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"lsblk") + (format #f "Cmd(\"~a/bin/lsblk" + (assoc-ref inputs "util-linux"))) + (("Cmd = \"lsblk") + (format #f "Cmd = \"~a/bin/lsblk" + (assoc-ref inputs "util-linux"))) + (("Cmd\\(\"lscpu") + (format #f "Cmd(\"~a/bin/lscpu" + (assoc-ref inputs "util-linux"))) + #;(("Cmd\\(\"lsinitrd") + (format #f "Cmd(\"~a/bin/lsinitrd" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"lsmod") + (format #f "Cmd(\"~a/bin/lsmod" + (assoc-ref inputs "module-init-tools"))) + (("Cmd\\(\"lspci") + (format #f "Cmd(\"~a/sbin/lspci" + (assoc-ref inputs "pciutils"))) + #;(("Cmd\\(\"lspnp") + (format #f "Cmd(\"~a/bin/lspnp" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"lsusb") + (format #f "Cmd(\"~a/bin/lsusb" + (assoc-ref inputs "usbutils"))) + (("Cmd\\(\"mcelog") + (format #f "Cmd(\"~a/sbin/mcelog" + (assoc-ref inputs "mcelog"))) + (("Cmd\\(\"md5sum") + (format #f "Cmd(\"~a/bin/md5sum" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"megactl") + (format #f "Cmd(\"~a/bin/megactl" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"memtester") + (format #f "Cmd(\"~a/bin/memtester" + (assoc-ref inputs "memtester"))) + (("Cmd\\(\"mmcli") + (format #f "Cmd(\"~a/bin/mmcli" + (assoc-ref inputs "modem-manager"))) + (("Cmd\\(\"modinfo") + (format #f "Cmd(\"~a/sbin/modinfo" + (assoc-ref inputs "module-init-tools"))) + #;(("Cmd\\(\"monitor-get-edid") + (format #f "Cmd(\"~a/bin/monitor-get-edid" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"mount") + (format #f "Cmd(\"~a/bin/mount" + (assoc-ref inputs "util-linux"))) + #;(("Cmd\\(\"nm-tool") + (format #f "Cmd(\"~a/bin/nm-tool" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"nmcli") + (format #f "Cmd(\"~a/bin/nmcli" + (assoc-ref inputs "network-manager"))) + (("Cmd\\(\"numactl") + (format #f "Cmd(\"~a/bin/numactl" + (assoc-ref inputs "numactl"))) + (("Cmd\\(\"nvme") + (format #f "Cmd(\"~a/sbin/nvme" + (assoc-ref inputs "nvme-cli"))) + (("Cmd\\(\"opensc-tool") + (format #f "Cmd(\"~a/bin/opensc-tool" + (assoc-ref inputs "opensc"))) + #;(("Cmd\\(\"optirun") + (format #f "Cmd(\"~a/bin/optirun" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"pacman") + (format #f "Cmd(\"~a/bin/pacman" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"pstree") + (format #f "Cmd(\"~a/bin/pstree" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"rfkill") + (format #f "Cmd(\"~a/sbin/rfkill" + (assoc-ref inputs "util-linux"))) + (("Cmd\\(\"route") + (format #f "Cmd(\"~a/bin/route" + (assoc-ref inputs "net-tools"))) + (("Cmd\\(\"rpm") + (format #f "Cmd(\"~a/bin/rpm" + (assoc-ref inputs "rpm"))) + (("Cmd\\(\"sane-find-scanner") + (format #f "Cmd(\"~a/bin/sane-find-scanner" + (assoc-ref inputs "sane-backends"))) + (("Cmd\\(\"scanimage") + (format #f "Cmd(\"~a/bin/scanimage" + (assoc-ref inputs "sane-backends"))) + (("Cmd\\(\"sensors") + (format #f "Cmd(\"~a/bin/sensors" + (assoc-ref inputs "lm-sensors"))) + #;(("sha512sum") + (format #f "~a/bin/sha512sum" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"slabtop") + (format #f "Cmd(\"~a/bin/slabtop" + (assoc-ref inputs "procps"))) + #;(("sleep") + (format #f "~a/bin/sleep" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"smartctl") + (format #f "Cmd(\"~a/sbin/smartctl" + (assoc-ref inputs "smartmontools"))) + (("Cmd = \"smartctl") + (format #f "Cmd = \"~a/bin/smartctl" + (assoc-ref inputs "smartmontools"))) + #;(("sort") + (format #f "~a/bin/sort" + (assoc-ref inputs "coreutils"))) + #;(("split") + (format #f "~a/bin/split" + (assoc-ref inputs "coreutils"))) + #;(("= stat") + (format #f "= ~a/bin/stat" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"superiotool") + (format #f "Cmd(\"~a/bin/superiotool" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"swupd") + (format #f "Cmd(\"~a/bin/swupd" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"systemctl") + (format #f "Cmd(\"~a/bin/systemctl" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"systemd-analyze") + (format #f "Cmd(\"~a/bin/systemd-analyze" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"top") + (format #f "Cmd(\"~a/bin/top" + (assoc-ref inputs "procps"))) + (("Cmd\\(\"udevadm") + (format #f "Cmd(\"~a/bin/udevadm" + (assoc-ref inputs "eudev"))) + (("Cmd\\(\"uname") + (format #f "Cmd(\"~a/bin/uname" + (assoc-ref inputs "coreutils"))) + #;(("unlink") + (format #f "~a/bin/unlink" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"update-alternatives") + (format #f "Cmd(\"~a/bin/update-alternatives" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"upower") + (format #f "Cmd(\"~a/bin/upower" + (assoc-ref inputs "upower"))) + (("Cmd\\(\"uptime") + (format #f "Cmd(\"~a/bin/uptime" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"usb-devices") + (format #f "Cmd(\"~a/bin/usb-devices" + (assoc-ref inputs "usbutils"))) + (("Cmd\\(\"vainfo") + (format #f "Cmd(\"~a/bin/vainfo" + (assoc-ref inputs "libva-utils"))) + (("Cmd\\(\"vdpauinfo") + (format #f "Cmd(\"~a/bin/vdpauinfo" + (assoc-ref inputs "vdpauinfo"))) + (("Cmd\\(\"vulkaninfo") + (format #f "Cmd(\"~a/bin/vulkaninfo" + (assoc-ref inputs "vulkan-tools"))) + (("Cmd\\(\"xdpyinfo") + (format #f "Cmd(\"~a/bin/xdpyinfo" + (assoc-ref inputs "xdpyinfo"))) + (("Cmd\\(\"xinput") + (format #f "Cmd(\"~a/bin/xinput" + (assoc-ref inputs "xinput"))) + (("Cmd\\(\"xrandr") + (format #f "Cmd(\"~a/bin/xrandr" + (assoc-ref inputs "xrandr"))) + (("Cmd\\(\"xvinfo") + (format #f "Cmd(\"~a/bin/xvinfo" + (assoc-ref inputs "xvinfo")))))) + (delete 'configure) + (add-after 'install 'wrap-programs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-dir (string-append out "/bin/")) + (perl-lib (getenv "PERL5LIB"))) + (for-each + (cut wrap-program <> + `("PERL5LIB" ":" prefix (,perl-lib))) + (find-files bin-dir)))))))) + (inputs + `(("acpi" ,acpi) + ("acpica" ,acpica) + ("alsa-utils" ,alsa-utils) + ("avahi" ,avahi) + ("bash-minimal" ,bash-minimal) + ("coreutils" ,coreutils) + ("cpuid" ,cpuid) + ("cpupower" ,cpupower) + ("curl" ,curl) + ("dmidecode" ,dmidecode) + ("dpkg" ,dpkg) + ("edid-decode" ,edid-decode) + ("efibootmgr" ,efibootmgr) + ("efivar" ,efivar) + ("eudev" ,eudev) + ("findutils" ,findutils) + ("grep" ,grep) + ("hddtemp" ,hddtemp) + ("hdparm" ,hdparm) + ("hplip" ,hplip-minimal) + ("i2c-tools" ,i2c-tools) + ("inxi" ,inxi) + ("iproute" ,iproute) + ("libva-utils" ,libva-utils) + ("lm-sensors" ,lm-sensors) + ("mcelog" ,mcelog) + ("memtester" ,memtester) + ("mesa-utils" ,mesa-utils) + ("modem-manager" ,modem-manager) + ("module-init-tools" ,module-init-tools) + ("net-tools" ,net-tools) + ("network-manager" ,network-manager) + ("numactl" ,numactl) + ("nvme-cli" ,nvme-cli) + ("opensc" ,opensc) + ("pciutils" ,pciutils) + ("perl-data-dumper" ,perl-data-dumper) + ("perl-digest-sha" ,perl-digest-sha) + ("perl-libwww" ,perl-libwww) + ;; ("pnputils" ,pnputils) + ("procps" ,procps) + ("rpm" ,rpm) + ("sane-backends" ,sane-backends) + ("smartmontools" ,smartmontools) + ("sysstat" ,sysstat) + ("upower" ,upower) + ("usbutils" ,usbutils) + ("util-linux" ,util-linux) + ("vdpauinfo" ,vdpauinfo) + ("vulkan-tools" ,vulkan-tools) + ("xdpyinfo" ,xdpyinfo) + ("xinput" ,xinput) + ("xrandr" ,xrandr) + ("xvinfo" ,xvinfo))) + (propagated-inputs + `(("hwinfo" ,hwinfo))) + (home-page "https://linux-hardware.org") + (synopsis "Hardware Probe") + (description "Hardware Probe is a tool to probe for hardware, check its +operability and find drivers.") + (license license:lgpl2.1+))) + (define-public hwinfo (package (name "hwinfo") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 09 07:18:13 2021 Received: (at 49934) by debbugs.gnu.org; 9 Dec 2021 12:18:13 +0000 Received: from localhost ([127.0.0.1]:42707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvINI-0007Dz-MD for submit@debbugs.gnu.org; Thu, 09 Dec 2021 07:18:13 -0500 Received: from out2.migadu.com ([188.165.223.204]:52814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvINE-0007Dp-HS for 49934@debbugs.gnu.org; Thu, 09 Dec 2021 07:18:12 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639052287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=FiXTVzdlzzEtOaWC1MCFZp4xoQUpqaXWGTNgxl0DDxY=; b=TvwVviscF420Rbe/fcdHJ1cP9PrSSo808wHn94lyN+pwJNBU+XKYWhw6eeZSw0Y3iIPWvV qshtMU+L/stjZVLukiofkUT/Ddt+xN5bvFAOMhFDbgyk95TBNxEEgVY/ae8xSfLKFzFwtE y7p3vPDKTU6gYt/OrzgsQpBOvkhNTNZkDN9cGS7wlZ0WRdSNFF85+bUDRwfFpfBYXpjoUp a/6qHb8dfHGpKoIOKp3WTJgxlpOBB8jFKDIxb4XQ1Fmmkk4RLqaaXWNVGiIjvnxRxpAehf Pl+S79iDK/N20dcGkWFGyv8ss/x6GMLBrB78yhgySDb0ZdmjQOtGgUY1tQMXgA== From: Raghav Gururajan To: 49934@debbugs.gnu.org Subject: [PATCH v3] gnu: Add hw-probe. Date: Thu, 9 Dec 2021 07:18:02 -0500 Message-Id: <20211209121802.952-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49934 Cc: Raghav Gururajan , maximedevos@telenet.be, Petr Hodina 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: -1.0 (-) * gnu/packages/hardware.scm (hw-probe): New variable. Co-authored-by: Petr Hodina --- gnu/packages/hardware.scm | 495 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 495 insertions(+) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 46ac96d679..a56405c319 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -27,20 +27,29 @@ (define-module (gnu packages hardware) #:use-module (gnu packages admin) #:use-module (gnu packages autotools) + #:use-module (gnu packages avahi) + #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages compression) #:use-module (gnu packages check) #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) + #:use-module (gnu packages cups) #:use-module (gnu packages curl) + #:use-module (gnu packages debian) + #:use-module (gnu packages disk) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) + #:use-module (gnu packages gl) #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) + #:use-module (gnu packages package-management) #:use-module (gnu packages ncurses) #:use-module (gnu packages openldap) #:use-module (gnu packages pciutils) @@ -52,8 +61,12 @@ (define-module (gnu packages hardware) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) + #:use-module (gnu packages scanner) + #:use-module (gnu packages security-token) #:use-module (gnu packages tls) + #:use-module (gnu packages video) #:use-module (gnu packages virtualization) + #:use-module (gnu packages vulkan) #:use-module (gnu packages web) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) @@ -61,6 +74,7 @@ (define-module (gnu packages hardware) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) + #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module (guix download) #:use-module (guix git-download) @@ -72,6 +86,487 @@ (define-module (gnu packages hardware) ;; This is a module for packages related to physical hardware that don't (yet) ;; have a more specific home like gps.scm, security-token.scm, &c. +(define-public hw-probe + (package + (name "hw-probe") + (version "1.5") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/linuxhw/hw-probe") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zyaardfw6r9nwxbkbb68hyl8719xn8sxpbgm7czkvsbjrim11n8")))) + (build-system perl-build-system) + (arguments + `(#:tests? #f ;no test target + #:imported-modules + (,@%perl-build-system-modules) + #:modules + ((guix build perl-build-system) + (guix build utils) + (srfi srfi-26)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + ;; Correct install prefix. + (substitute* "Makefile" + (("/usr") out))) + ;; Use absolute paths to referenced programs. + ;; FIXME: Some programs are to be patched successfully, + ;; and some other programs are to be packaged in Guix. + (substitute* "hw-probe.pl" + (("Cmd\\(\"acpi") + (format #f "Cmd(\"~a/bin/acpi" + (assoc-ref inputs "acpi"))) + (("Cmd\\(\"acpidump") + (format #f "Cmd(\"~a/bin/acpidump" + (assoc-ref inputs "acpica"))) + (("Cmd\\(\"acpixtract") + (format #f "Cmd(\"~a/bin/acpixtract" + (assoc-ref inputs "acpica"))) + (("Cmd\\(\"alsactl") + (format #f "Cmd(\"~a/bin/alsactl" + (assoc-ref inputs "alsa-utils"))) + #;(("Cmd\\(\"amdconfig") + (format #f "Cmd(\"~a/bin/amdconfig" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"amixer") + (format #f "Cmd(\"~a/bin/amixer" + (assoc-ref inputs "alsa-utils"))) + #;(("Cmd\\(\"apk") + (format #f "Cmd(\"~a/bin/apk" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"aplay") + (format #f "Cmd(\"~a/bin/aplay" + (assoc-ref inputs "alsa-utils"))) + #;(("Cmd\\(\"arcconf") + (format #f "Cmd(\"~a/bin/arcconf" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"arecord") + (format #f "Cmd(\"~a/bin/arecord" + (assoc-ref inputs "alsa-utils"))) + (("Cmd\\(\"avahi-browse") + (format #f "Cmd(\"~a/bin/avahi-browse" + (assoc-ref inputs "avahi"))) + (("Cmd\\(\"biosdecode") + (format #f "Cmd(\"~a/sbin/biosdecode" + (assoc-ref inputs "dmidecode"))) + (("=cat") + (format #f "=~a/bin/cat" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"chmod") + (format #f "Cmd(\"~a/bin/chmod" + (assoc-ref inputs "coreutils"))) + (("\"chmod\"") + (format #f "\"~a/bin/chmod\"" + (assoc-ref inputs "coreutils"))) + (("\"chown\"") + (format #f "\"~a/bin/chown\"" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"cpuid") + (format #f "Cmd(\"~a/bin/cpuid" + (assoc-ref inputs "cpuid"))) + (("Cmd\\(\"cpupower") + (format #f "Cmd(\"~a/bin/cpupower" + (assoc-ref inputs "cpupower"))) + (("Cmd\\(\"curl") + (format #f "Cmd(\"~a/bin/curl" + (assoc-ref inputs "curl"))) + (("Cmd = \"curl") + (format #f "Cmd = \"~a/bin/curl" + (assoc-ref inputs "curl"))) + (("Cmd = \\(\"curl") + (format #f "Cmd = (\"~a/bin/curl" + (assoc-ref inputs "curl"))) + (("\"date\"") + (format #f "\"~a/bin/date\"" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"dd") + (format #f "Cmd(\"~a/bin/dd" + (assoc-ref inputs "coreutils"))) + (("\"dd ") + (format #f "\"~a/bin/dd " + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"df") + (format #f "Cmd(\"~a/bin/df" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"dkms") + (format #f "Cmd(\"~a/bin/dkms" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"dmesg") + (format #f "Cmd(\"~a/bin/dmesg" + (assoc-ref inputs "util-linux"))) + (("Cmd\\(\"dmidecode") + (format #f "Cmd(\"~a/sbin/dmidecode" + (assoc-ref inputs "dmidecode"))) + (("Cmd\\(\"dpkg") + (format #f "Cmd(\"~a/bin/dpkg" + (assoc-ref inputs "dpkg"))) + #;(("echo") + (format #f "~a/bin/echo" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"edid-decode") + (format #f "Cmd(\"~a/bin/edid-decode" + (assoc-ref inputs "edid-decode"))) + (("Cmd\\(\"efibootmgr") + (format #f "Cmd(\"~a/sbin/efibootmgr" + (assoc-ref inputs "efibootmgr"))) + (("Cmd\\(\"efivar") + (format #f "Cmd(\"~a/bin/efivar" + (assoc-ref inputs "efivar"))) + #;(("Cmd\\(\"eopkg") + (format #f "Cmd(\"~a/bin/eopkg" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"ethtool") + (format #f "Cmd(\"~a/sbin/ethtool" + (assoc-ref inputs "ethtool"))) + (("Cmd\\(\".*ethtool") + (format #f "Cmd(\"~a/sbin/ethtool" + (assoc-ref inputs "ethtool"))) + (("Cmd\\(\"fdisk") + (format #f "Cmd(\"~a/sbin/fdisk" + (assoc-ref inputs "util-linux"))) + #;(("Cmd\\(\"fglrxinfo") + (format #f "Cmd(\"~a/bin/fglrxinfo" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"find") + (format #f "Cmd(\"~a/bin/find" + (assoc-ref inputs "findutils"))) + (("Cmd\\(\"findmnt") + (format #f "Cmd(\"~a/bin/findmnt" + (assoc-ref inputs "util-linux"))) + (("Cmd = \"findmnt") + (format #f "Cmd = \"~a/bin/findmnt" + (assoc-ref inputs "util-linux"))) + (("Cmd\\(\"glxgears") + (format #f "Cmd(\"~a/bin/glxgears" + (assoc-ref inputs "mesa-utils"))) + (("Cmd\\(\"glxinfo") + (format #f "Cmd(\"~a/bin/glxinfo" + (assoc-ref inputs "mesa-utils"))) + #;(("grep") + (format #f "~a/bin/grep" + (assoc-ref inputs "grep"))) + (("`head") + (format #f "`~a/bin/head" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"hciconfig") + (format #f "Cmd(\"~a/bin/hciconfig" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"hcitool") + (format #f "Cmd(\"~a/bin/hcitool" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"hddtemp") + (format #f "Cmd(\"~a/sbin/hddtemp" + (assoc-ref inputs "hddtemp"))) + (("Cmd\\(\"hdparm") + (format #f "Cmd(\"~a/sbin/hdparm" + (assoc-ref inputs "hdparm"))) + (("Cmd = \"hdparm") + (format #f "Cmd = \"~a/bin/hdparm" + (assoc-ref inputs "hdparm"))) + #;(("Cmd\\(\"hp-probe") + (format #f "Cmd(\"~a/bin/hp-probe" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"hwinfo") + (format #f "Cmd(\"~a/bin/hwinfo" + (assoc-ref inputs "hwinfo"))) + #;(("Cmd = \"hwinfo") + (format #f "Cmd = \"~a/bin/hwinfo" + (assoc-ref inputs "hwinfo"))) + (("Cmd\\(\"i2cdetect") + (format #f "Cmd(\"~a/sbin/i2cdetect" + (assoc-ref inputs "i2c-tools"))) + (("Cmd\\(\"iasl") + (format #f "Cmd(\"~a/bin/iasl" + (assoc-ref inputs "acpica"))) + (("Cmd\\(\"ifconfig") + (format #f "Cmd(\"~a/bin/ifconfig" + (assoc-ref inputs "net-tools"))) + (("Cmd\\(\"inxi") + (format #f "Cmd(\"~a/bin/inxi" + (assoc-ref inputs "inxi"))) + (("Cmd\\(\"iostat") + (format #f "Cmd(\"~a/bin/iostat" + (assoc-ref inputs "sysstat"))) + (("Cmd\\(\"ip") + (format #f "Cmd(\"~a/sbin/ip" + (assoc-ref inputs "iproute2"))) + (("Cmd\\(\".*ip") + (format #f "Cmd(\"~a/sbin/ip" + (assoc-ref inputs "iproute2"))) + (("Cmd\\(\"iw") + (format #f "Cmd(\"~a/sbin/iw" + (assoc-ref inputs "iw"))) + (("Cmd\\(\".*iw") + (format #f "Cmd(\"~a/sbin/iw" + (assoc-ref inputs "iw"))) + #;(("Cmd\\(\"iwconfig") + (format #f "Cmd(\"~a/bin/iwconfig" + (assoc-ref inputs "foobar"))) + #;(("join") + (format #f "~a/bin/join" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"journalctl") + (format #f "Cmd(\"~a/bin/journalctl" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"ls") + (format #f "Cmd(\"~a/bin/ls" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"lsb_release") + (format #f "Cmd(\"~a/bin/lsb_release" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"lsblk") + (format #f "Cmd(\"~a/bin/lsblk" + (assoc-ref inputs "util-linux"))) + (("Cmd = \"lsblk") + (format #f "Cmd = \"~a/bin/lsblk" + (assoc-ref inputs "util-linux"))) + (("Cmd\\(\"lscpu") + (format #f "Cmd(\"~a/bin/lscpu" + (assoc-ref inputs "util-linux"))) + #;(("Cmd\\(\"lsinitrd") + (format #f "Cmd(\"~a/bin/lsinitrd" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"lsmod") + (format #f "Cmd(\"~a/bin/lsmod" + (assoc-ref inputs "module-init-tools"))) + (("Cmd\\(\"lspci") + (format #f "Cmd(\"~a/sbin/lspci" + (assoc-ref inputs "pciutils"))) + #;(("Cmd\\(\"lspnp") + (format #f "Cmd(\"~a/bin/lspnp" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"lsusb") + (format #f "Cmd(\"~a/bin/lsusb" + (assoc-ref inputs "usbutils"))) + (("Cmd\\(\"mcelog") + (format #f "Cmd(\"~a/sbin/mcelog" + (assoc-ref inputs "mcelog"))) + (("Cmd\\(\"md5sum") + (format #f "Cmd(\"~a/bin/md5sum" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"megactl") + (format #f "Cmd(\"~a/bin/megactl" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"memtester") + (format #f "Cmd(\"~a/bin/memtester" + (assoc-ref inputs "memtester"))) + (("Cmd\\(\"mmcli") + (format #f "Cmd(\"~a/bin/mmcli" + (assoc-ref inputs "modem-manager"))) + (("Cmd\\(\"modinfo") + (format #f "Cmd(\"~a/sbin/modinfo" + (assoc-ref inputs "module-init-tools"))) + #;(("Cmd\\(\"monitor-get-edid") + (format #f "Cmd(\"~a/bin/monitor-get-edid" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"mount") + (format #f "Cmd(\"~a/bin/mount" + (assoc-ref inputs "util-linux"))) + #;(("Cmd\\(\"nm-tool") + (format #f "Cmd(\"~a/bin/nm-tool" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"nmcli") + (format #f "Cmd(\"~a/bin/nmcli" + (assoc-ref inputs "network-manager"))) + (("Cmd\\(\"numactl") + (format #f "Cmd(\"~a/bin/numactl" + (assoc-ref inputs "numactl"))) + (("Cmd\\(\"nvme") + (format #f "Cmd(\"~a/sbin/nvme" + (assoc-ref inputs "nvme-cli"))) + (("Cmd\\(\"opensc-tool") + (format #f "Cmd(\"~a/bin/opensc-tool" + (assoc-ref inputs "opensc"))) + #;(("Cmd\\(\"optirun") + (format #f "Cmd(\"~a/bin/optirun" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"pacman") + (format #f "Cmd(\"~a/bin/pacman" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"pstree") + (format #f "Cmd(\"~a/bin/pstree" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"rfkill") + (format #f "Cmd(\"~a/sbin/rfkill" + (assoc-ref inputs "util-linux"))) + (("Cmd\\(\"route") + (format #f "Cmd(\"~a/bin/route" + (assoc-ref inputs "net-tools"))) + (("Cmd\\(\"rpm") + (format #f "Cmd(\"~a/bin/rpm" + (assoc-ref inputs "rpm"))) + (("Cmd\\(\"sane-find-scanner") + (format #f "Cmd(\"~a/bin/sane-find-scanner" + (assoc-ref inputs "sane-backends"))) + (("Cmd\\(\"scanimage") + (format #f "Cmd(\"~a/bin/scanimage" + (assoc-ref inputs "sane-backends"))) + (("Cmd\\(\"sensors") + (format #f "Cmd(\"~a/bin/sensors" + (assoc-ref inputs "lm-sensors"))) + #;(("sha512sum") + (format #f "~a/bin/sha512sum" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"slabtop") + (format #f "Cmd(\"~a/bin/slabtop" + (assoc-ref inputs "procps"))) + #;(("sleep") + (format #f "~a/bin/sleep" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"smartctl") + (format #f "Cmd(\"~a/sbin/smartctl" + (assoc-ref inputs "smartmontools"))) + (("Cmd = \"smartctl") + (format #f "Cmd = \"~a/bin/smartctl" + (assoc-ref inputs "smartmontools"))) + #;(("sort") + (format #f "~a/bin/sort" + (assoc-ref inputs "coreutils"))) + #;(("split") + (format #f "~a/bin/split" + (assoc-ref inputs "coreutils"))) + #;(("= stat") + (format #f "= ~a/bin/stat" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"superiotool") + (format #f "Cmd(\"~a/bin/superiotool" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"swupd") + (format #f "Cmd(\"~a/bin/swupd" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"systemctl") + (format #f "Cmd(\"~a/bin/systemctl" + (assoc-ref inputs "foobar"))) + #;(("Cmd\\(\"systemd-analyze") + (format #f "Cmd(\"~a/bin/systemd-analyze" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"top") + (format #f "Cmd(\"~a/bin/top" + (assoc-ref inputs "procps"))) + (("Cmd\\(\"udevadm") + (format #f "Cmd(\"~a/bin/udevadm" + (assoc-ref inputs "eudev"))) + (("Cmd\\(\"uname") + (format #f "Cmd(\"~a/bin/uname" + (assoc-ref inputs "coreutils"))) + #;(("unlink") + (format #f "~a/bin/unlink" + (assoc-ref inputs "coreutils"))) + #;(("Cmd\\(\"update-alternatives") + (format #f "Cmd(\"~a/bin/update-alternatives" + (assoc-ref inputs "foobar"))) + (("Cmd\\(\"upower") + (format #f "Cmd(\"~a/bin/upower" + (assoc-ref inputs "upower"))) + (("Cmd\\(\"uptime") + (format #f "Cmd(\"~a/bin/uptime" + (assoc-ref inputs "coreutils"))) + (("Cmd\\(\"usb-devices") + (format #f "Cmd(\"~a/bin/usb-devices" + (assoc-ref inputs "usbutils"))) + (("Cmd\\(\"vainfo") + (format #f "Cmd(\"~a/bin/vainfo" + (assoc-ref inputs "libva-utils"))) + (("Cmd\\(\"vdpauinfo") + (format #f "Cmd(\"~a/bin/vdpauinfo" + (assoc-ref inputs "vdpauinfo"))) + (("Cmd\\(\"vulkaninfo") + (format #f "Cmd(\"~a/bin/vulkaninfo" + (assoc-ref inputs "vulkan-tools"))) + (("Cmd\\(\"xdpyinfo") + (format #f "Cmd(\"~a/bin/xdpyinfo" + (assoc-ref inputs "xdpyinfo"))) + (("Cmd\\(\"xinput") + (format #f "Cmd(\"~a/bin/xinput" + (assoc-ref inputs "xinput"))) + (("Cmd\\(\"xrandr") + (format #f "Cmd(\"~a/bin/xrandr" + (assoc-ref inputs "xrandr"))) + (("Cmd\\(\"xvinfo") + (format #f "Cmd(\"~a/bin/xvinfo" + (assoc-ref inputs "xvinfo")))))) + (delete 'configure) + (add-after 'install 'wrap-programs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-dir (string-append out "/bin/")) + (perl-lib (getenv "PERL5LIB"))) + (for-each + (cut wrap-program <> + `("PERL5LIB" ":" prefix (,perl-lib))) + (find-files bin-dir)))))))) + (inputs + `(("acpi" ,acpi) + ("acpica" ,acpica) + ("alsa-utils" ,alsa-utils) + ("avahi" ,avahi) + ("bash-minimal" ,bash-minimal) + ("coreutils" ,coreutils) + ("cpuid" ,cpuid) + ("cpupower" ,cpupower) + ("curl" ,curl) + ("dmidecode" ,dmidecode) + ("dpkg" ,dpkg) + ("edid-decode" ,edid-decode) + ("efibootmgr" ,efibootmgr) + ("efivar" ,efivar) + ("eudev" ,eudev) + ("findutils" ,findutils) + ("grep" ,grep) + ("hddtemp" ,hddtemp) + ("hdparm" ,hdparm) + ("hplip" ,hplip-minimal) + ("i2c-tools" ,i2c-tools) + ("inxi" ,inxi) + ("iproute" ,iproute) + ("libva-utils" ,libva-utils) + ("lm-sensors" ,lm-sensors) + ("mcelog" ,mcelog) + ("memtester" ,memtester) + ("mesa-utils" ,mesa-utils) + ("modem-manager" ,modem-manager) + ("module-init-tools" ,module-init-tools) + ("net-tools" ,net-tools) + ("network-manager" ,network-manager) + ("numactl" ,numactl) + ("nvme-cli" ,nvme-cli) + ("opensc" ,opensc) + ("pciutils" ,pciutils) + ("perl-data-dumper" ,perl-data-dumper) + ("perl-digest-sha" ,perl-digest-sha) + ("perl-libwww" ,perl-libwww) + ;; ("pnputils" ,pnputils) + ("procps" ,procps) + ("rpm" ,rpm) + ("sane-backends" ,sane-backends) + ("smartmontools" ,smartmontools) + ("sysstat" ,sysstat) + ("upower" ,upower) + ("usbutils" ,usbutils) + ("util-linux" ,util-linux) + ("vdpauinfo" ,vdpauinfo) + ("vulkan-tools" ,vulkan-tools) + ("xdpyinfo" ,xdpyinfo) + ("xinput" ,xinput) + ("xrandr" ,xrandr) + ("xvinfo" ,xvinfo))) + (propagated-inputs + ;; FIXME: HwInfo needs to be patched in 'hw-probe.el'. + `(("hwinfo" ,hwinfo))) + (home-page "https://linux-hardware.org") + (synopsis "Hardware Probe") + (description "Hardware Probe is a tool to probe for hardware, check its +operability and find drivers.") + (license license:lgpl2.1+))) + (define-public hwinfo (package (name "hwinfo") -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 16 01:01:16 2021 Received: (at 49934) by debbugs.gnu.org; 16 Dec 2021 06:01:16 +0000 Received: from localhost ([127.0.0.1]:34279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxjpL-0005l5-UZ for submit@debbugs.gnu.org; Thu, 16 Dec 2021 01:01:16 -0500 Received: from sender3-of-o52.zoho.com ([136.143.184.52]:21831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxjpF-0005kj-Q0 for 49934@debbugs.gnu.org; Thu, 16 Dec 2021 01:01:14 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1639634467; cv=none; d=zohomail.com; s=zohoarc; b=WmJH9LSc8a1YVibivEktV/q8q2c0+CI9Du14dFN/wok25AfDyvTcPCYfVJCr8juKuawRhL6T2qST+Nz0Y1e2O438+WErWUdVyKh8EcyGIblyDou5kRewX+802LAlR8JRVQdja6yAXnGKkAfry5vWV5D3CJlba6MVaSOwt8yn5/M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639634467; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=A1RwcHe7KGKWGKeV3hv2u+IREDzAND26IASdhHxdel4=; b=ZRTti2uihINSjyXAo8vjxcBJ3r5sFYs4fYO2pDKrmGIXuz2VjsLqp9dsZfu6kZiN1ZbmAL+f6sHsl2Ihasur3Idvxivhkfvu7Ne9EfcitxSOGnYQvGpdjlkPCxTrmuQMT7Ur0cRGve7MYZxgY6Yst//4GSm9H+w51ull64y0qqY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1639634467; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=A1RwcHe7KGKWGKeV3hv2u+IREDzAND26IASdhHxdel4=; b=f5LJZJFrqURMKrlwqxtFqwHEkrjLkGxSQxjfgUucYqBoY8fYAhugMgmIatubVz4f 2Y2J81JCWX7tBFRud34sMBp9do9Yv5W0/3B0AkdfUoLokeRlUdVQFKP5DB7FWFMQUFG Q98sdpO1G4JIRStN3K165QlhbbYPrRwYkgU8XuLg= Received: from localhost (p54ad4c3a.dip0.t-ipconnect.de [84.173.76.58]) by mx.zohomail.com with SMTPS id 1639634466895430.8922175497937; Wed, 15 Dec 2021 22:01:06 -0800 (PST) User-agent: mu4e 1.6.10; emacs 28.0.50 From: Ricardo Wurmus To: 49934@debbugs.gnu.org Subject: Hw-Probe Date: Thu, 16 Dec 2021 06:53:22 +0100 X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87bl1hks0w.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49934 Cc: Raghav Gururajan 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: -1.0 (-) Thanks for the patch! I=E2=80=99m afraid the 'patch build phase is much too repetitive. You can greatly simplify it by doing a substitution like this: --8<---------------cut here---------------start------------->8--- (substitute* "hw-probe.pl" (("Cmd\\(\"([^\"]+)" _ command) (string-append "Cmd(\"" (which command)))) --8<---------------cut here---------------end--------------->8--- The regular expression has a sub-group that matches everything after the opening double quote until it hits another double quote. That group is captured as =E2=80=9Ccommand=E2=80=9D. We then look up that string in the = build environment with =E2=80=9Cwhich=E2=80=9D (not the executable of the same na= me), which returns the absolute file name corresponding to the command. --=20 Ricardo From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 25 16:17:40 2021 Received: (at 49934) by debbugs.gnu.org; 25 Dec 2021 21:17:40 +0000 Received: from localhost ([127.0.0.1]:39968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1EQ8-0006Hn-0d for submit@debbugs.gnu.org; Sat, 25 Dec 2021 16:17:40 -0500 Received: from out0.migadu.com ([94.23.1.103]:12320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1EQ5-0006He-DK for 49934@debbugs.gnu.org; Sat, 25 Dec 2021 16:17:38 -0500 Message-ID: <314e6ff0-aae0-1af8-cb85-f74b222c6228@raghavgururajan.name> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1640467055; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RXqkTeW2tp78/YTCpy+Lh5TjRSovh2PYuXKPKlEEH2I=; b=udvq8dSwOfufHSrvsd5Dc14ZeIvMYpHKGs/TsFGELIQSW/sG8j5U16PLAnHUATRpD/poTj 7Kuhq3pvgH4gVFyOceC4dzhyGun5pqaRjLHaf2Y/1zB4iukZotCwn0d3GRjo3aLqOwFo7O aLeMvo/YeWFVWVpfhjwX7C8FcSbY8KS5ONQD0ft+gIuiJpuS88UQ5XDSsRjyN/VTXitZ8k PD0j89q1fXwxeBdQGakYRWv5LHr0IC9W3LkSVwi0rMjapPJodC7rWDkT/zeTlHdEnW21Fd aBtm9oUkt4Ci75+SRb+N5wIc/nmqWhOpX0efQgKK2uha7690TyFbVeU8PjYh0Q== Date: Sat, 25 Dec 2021 16:17:32 -0500 MIME-Version: 1.0 Content-Language: en-CA To: Ricardo Wurmus , 49934@debbugs.gnu.org References: <87bl1hks0w.fsf@elephly.net> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Subject: Re: Hw-Probe In-Reply-To: <87bl1hks0w.fsf@elephly.net> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------t0EDxBn13HZIgSeZDieMo5RU" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: raghavgururajan.name X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49934 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: -1.7 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------t0EDxBn13HZIgSeZDieMo5RU Content-Type: multipart/mixed; boundary="------------frZ3M6yCSwXdFwBCmA6jjQqy"; protected-headers="v1" From: Raghav Gururajan To: Ricardo Wurmus , 49934@debbugs.gnu.org Message-ID: <314e6ff0-aae0-1af8-cb85-f74b222c6228@raghavgururajan.name> Subject: Re: Hw-Probe References: <87bl1hks0w.fsf@elephly.net> In-Reply-To: <87bl1hks0w.fsf@elephly.net> --------------frZ3M6yCSwXdFwBCmA6jjQqy Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 SGkgUmljYXJkbyENCg0KPiAtLTg8LS0tLS0tLS0tLS0tLS0tY3V0IGhlcmUtLS0tLS0tLS0t LS0tLS1zdGFydC0tLS0tLS0tLS0tLS0+OC0tLQ0KPiAoc3Vic3RpdHV0ZSogImh3LXByb2Jl LnBsIg0KPiAgICAoKCJDbWRcXChcIihbXlwiXSspIiBfIGNvbW1hbmQpDQo+ICAgICAoc3Ry aW5nLWFwcGVuZCAiQ21kKFwiIiAod2hpY2ggY29tbWFuZCkpKSkNCj4gLS04PC0tLS0tLS0t LS0tLS0tLWN1dCBoZXJlLS0tLS0tLS0tLS0tLS0tZW5kLS0tLS0tLS0tLS0tLS0tPjgtLS0N Cg0KVGhhbmtzIGZvciB0aGUgc25pcHBldCBhbmQgZXhwbGFuYXRpb24uDQoNCkkgYW0gd29u ZGVyaW5nIHRoZXNlLA0KWzFdIERvZXMgcmVxdWlyZSBpbXBvcnQgb2Ygc3BlY2lmaWMgbW9k dWxlcz8NClsyXSBJZiBgKHdoaWNoIGNvbW1hbmQpYCdzIG91dHB1dCBpcyBlbXB0eSwgd2ls bCBpdCByZXR1cm4gI2Y/DQoNClJlZ2FyZHMsDQpSRy4NCg== --------------frZ3M6yCSwXdFwBCmA6jjQqy-- --------------t0EDxBn13HZIgSeZDieMo5RU Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYceKbAUDAAAAAAAKCRBfWBZkf4vlUfnY AQDzr18N/UKbID3kd/Y70YXPyajwHXAKfWqTXlM1UhP7GgD9EjOnVukP1AXxZz5+djK4TvNYx/t5 SjRu46qWDwXuNgM= =DYEy -----END PGP SIGNATURE----- --------------t0EDxBn13HZIgSeZDieMo5RU-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 27 05:00:21 2021 Received: (at 49934) by debbugs.gnu.org; 27 Dec 2021 10:00:21 +0000 Received: from localhost ([127.0.0.1]:42201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1mnl-0006YN-9B for submit@debbugs.gnu.org; Mon, 27 Dec 2021 05:00:21 -0500 Received: from flashner.co.il ([178.62.234.194]:56906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1mnf-0006Xt-RP for 49934@debbugs.gnu.org; Mon, 27 Dec 2021 05:00:19 -0500 Received: from localhost (unknown [141.226.10.247]) by flashner.co.il (Postfix) with ESMTPSA id 6FC30402D2; Mon, 27 Dec 2021 10:00:09 +0000 (UTC) Date: Mon, 27 Dec 2021 11:59:37 +0200 From: Efraim Flashner To: Raghav Gururajan Subject: Re: Hw-Probe Message-ID: Mail-Followup-To: Efraim Flashner , Raghav Gururajan , Ricardo Wurmus , 49934@debbugs.gnu.org References: <87bl1hks0w.fsf@elephly.net> <314e6ff0-aae0-1af8-cb85-f74b222c6228@raghavgururajan.name> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SiSniCZiWlD6GI7J" Content-Disposition: inline In-Reply-To: <314e6ff0-aae0-1af8-cb85-f74b222c6228@raghavgururajan.name> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49934 Cc: Ricardo Wurmus , 49934@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: -1.0 (-) --SiSniCZiWlD6GI7J Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 25, 2021 at 04:17:32PM -0500, Raghav Gururajan via Guix-patches= via wrote: > Hi Ricardo! >=20 > > --8<---------------cut here---------------start------------->8--- > > (substitute* "hw-probe.pl" > > (("Cmd\\(\"([^\"]+)" _ command) > > (string-append "Cmd(\"" (which command)))) > > --8<---------------cut here---------------end--------------->8--- >=20 > Thanks for the snippet and explanation. >=20 > I am wondering these, > [1] Does require import of specific modules? > [2] If `(which command)`'s output is empty, will it return #f? For 2, looks like yes (ins)efraim@3900XT ~$ which -a svn which: no svn in (/home/efraim/Applications/.bin:/gnu/store/4iyar3w7k30b5j1= 3v9cf5gmiz5livkyj-enlightenment-0.24.2/bin:/run/setuid-programs:/home/efrai= m/.config/guix/current/bin:/home/efraim/.guix-profile/bin:/home/efraim/.gui= x-profile/sbin:/run/current-system/profile/bin:/run/current-system/profile/= sbin) (ins)efraim@3900XT ~$ guile GNU Guile 3.0.7 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. (ins)scheme@(guile-user)> (use-modules (guix build utils)) (ins)scheme@(guile-user)> (which "svn") $1 =3D #f (ins)scheme@(guile-user)> --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --SiSniCZiWlD6GI7J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmHJjoYACgkQQarn3Mo9 g1GHFxAAwfVKVYCaHBn1NG2pulQXbR2JXEPlBbZRHnud7cQRWVLU/+BFdwK/qpep 8IG7uW6GqZ/UiXHaSC1jxlBOgd68e0VGCKEy9JEsAeQakMaMj8ELyOIwIFaZKd0H FGOa8zjeGS/KXAr31xZnKegOxQlAf791HQ+Lcbcp8QLJf2SYoVG8i9VZxbvZDdyu ZwzP6DftFpoIjyfLhgip1gvPVuvXb5iOZNolvyW3JoXIzSXRW37VS4pPW2m9JmoK 0dWQJS3BTqqL5ZKVRGyJccrQ2EAUlVuYNjbOvxUcosAQQkdbm3lukyhLsxm2SWpu DVaKo/pcC9XynBAX73iOJ+WsocrRX61OC9lx7ggSXsoUQLh5rdvzyjG1VBYw+6b/ TaK+0mJvBVj66qU4Aq1wlWKtT+rHb3pBP+vrlVXWW4F0v+0C5sGN2o29yE5szbHv M/FYpPm8IZQscDhcRgigS8hBdt/AILhrp/wniumsDPlYYImphzU/89qoww8LaLwR CafMPpVR8CH3xo86g960O1FY6BMRw8ST+8Mh2AFLHyT773V9UxXR8OgUxqv1Bgbt hc3MtOa1HzU/MeFEuwlfxZqasFIK4pZ5ynC9dOcUsxNpLCbemuaIFDVT+W5AFMI3 apA4mM9A8y9Pdh3g7lY9EH7tfmWMES+D2yntXxF2jP0B9+4DwfA= =5M6s -----END PGP SIGNATURE----- --SiSniCZiWlD6GI7J-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 23 11:35:15 2022 Received: (at 49934-done) by debbugs.gnu.org; 23 Jun 2022 15:35:15 +0000 Received: from localhost ([127.0.0.1]:39614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4OrT-0004Yg-6O for submit@debbugs.gnu.org; Thu, 23 Jun 2022 11:35:15 -0400 Received: from mail-qv1-f45.google.com ([209.85.219.45]:45923) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4OrP-0004YJ-Id; Thu, 23 Jun 2022 11:35:13 -0400 Received: by mail-qv1-f45.google.com with SMTP id n15so26434654qvh.12; Thu, 23 Jun 2022 08:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=pciV5X2xNLkTa5S7w12QynvqxP7VCLktsl9WUQ3pKkY=; b=KEWJj98e7NcTQMZDZ3wQtqZRaBnqkQU286/btCQOf1CNSmGSgMTr5tm7GE5/f1zBFQ 4pEGbx287fmIN8Zd5ZW9ARDFtB+Xb63nMVyg8bDr4oCVOak/dFIx9EHzuSkMisQ0x07X ai7FzDCoZSP+H20Si1Ww3CNHfRs1dFMgkvH6MhkaOpkD5XbUYlToRGJ3BTrYeTkhNxrN 5JpLgg1kR7Cgf1zIeQTH1xf7A23XgoLq0Fix/rpTMcny7+UP4dGmALQtrh+92LKlp4uc y8KkTmzMFQCZYtEt9rCWmEcp4gb0GkIA6DONaJJCJs6LCys8UkmY4UmojMDT6UuGRQxl GWTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=pciV5X2xNLkTa5S7w12QynvqxP7VCLktsl9WUQ3pKkY=; b=Tfd1CrEmsBzgIPVFYRktJX/c4LvVrkJ3qi3NLTBQR/uzHu7hfaYLavztbDqS/DGjLB 97sGKuhblwJGrg4tTAOFpE6h7nsO8bo1/w2Nv2FuNZMlf23OuqwF+O/6Rnc0SGszS21z 2S8J4H4zwyqK7/g4cYhctR1AYg3EyiuEZLPHFnv1sGQ/w/WiQLJjjvmPK/biVZx/iGh+ wJ6d9rGsqFAm1vQYNtNi+t6qwEAQyGD2trh/XYsIVdUv1fR6Jprfj6ScKW1x9GKSaSpj nysn3bEbS1abWVBUXrFHBSQ1xBSJQr/lNQMhx+4+wMHGYoKCeKEA9kzNzN8JgwM3Km/J mtzw== X-Gm-Message-State: AJIora+sJRi9k5PrUqNy93br9ro6+krJlwYuao2U3Ny7RMX5QgKJW21+ 3T5aeMoFkzevlrH/RCgejEiOvBBj0+2lMrpg X-Google-Smtp-Source: AGRyM1vzewyxDSI81zoanL7ct3ctjvWpxnASR6ONTCsp1L2XiTzcaf66LbFP9rirh7HGOomoIj1RWw== X-Received: by 2002:a05:622a:1715:b0:304:f325:5562 with SMTP id h21-20020a05622a171500b00304f3255562mr8505942qtk.573.1655998505580; Thu, 23 Jun 2022 08:35:05 -0700 (PDT) Received: from hurd (dsl-158-129.b2b2c.ca. [66.158.158.129]) by smtp.gmail.com with ESMTPSA id x67-20020a37ae46000000b006aee8a5fa4bsm2554595qke.43.2022.06.23.08.35.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 08:35:05 -0700 (PDT) From: Maxim Cournoyer To: Raghav Gururajan Subject: Re: bug#50283: HwInfo References: <87bl1hks0w.fsf@elephly.net> <314e6ff0-aae0-1af8-cb85-f74b222c6228@raghavgururajan.name> Date: Thu, 23 Jun 2022 11:35:04 -0400 In-Reply-To: <314e6ff0-aae0-1af8-cb85-f74b222c6228@raghavgururajan.name> (Raghav Gururajan's message of "Sat, 25 Dec 2021 16:17:32 -0500") Message-ID: <878rpn4clz.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49934-done Cc: Ricardo Wurmus , 49934-done@debbugs.gnu.org, 50283-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: -1.0 (-) Hi, Raghav Gururajan writes: > Hi Ricardo! > >> --8<---------------cut here---------------start------------->8--- >> (substitute* "hw-probe.pl" >> (("Cmd\\(\"([^\"]+)" _ command) >> (string-append "Cmd(\"" (which command)))) >> --8<---------------cut here---------------end--------------->8--- > > Thanks for the snippet and explanation. > > I am wondering these, > [1] Does require import of specific modules? No. `which', the Scheme procedure, is part of (guix build utils). > [2] If `(which command)`'s output is empty, will it return #f? Yes, and I agree that's a problem. Fortunately, the recently added search-input-file more usefully raises an error when the file it is looking for doesn't exist, so I used that. It was a bit painful to hunt all the commands but in the end it works beautifully! I pushed the result as 3611f99affc4d2edcf4141e3022dd0d2a0b04068. Closing, thanks! Maxim From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 24 04:32:07 2022 Received: (at 49934-done) by debbugs.gnu.org; 24 Jun 2022 08:32:07 +0000 Received: from localhost ([127.0.0.1]:40806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4ejW-0001Ou-Tp for submit@debbugs.gnu.org; Fri, 24 Jun 2022 04:32:07 -0400 Received: from out2.migadu.com ([188.165.223.204]:59104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4ejR-0001ON-5r; Fri, 24 Jun 2022 04:32:05 -0400 Message-ID: <25ac7888-1971-269c-f451-951d3a55cf4f@raghavgururajan.name> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1656059519; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bnemV0aBsZtD0hxYc3ISWKthHgM4mPP3EFi10HBJn2k=; b=avLFUZNeNcpmsremhMrgfue8dI2lfxEmpe0xvsFuJvo21iH1smtbgXeG4jGDNdSdIj7pg9 IXDC851eN8CamHz+4joa/r1vq5u3ru4Ypda49vcd/4j0XkXhgZpRFi1fWcLKCGLOjDl/js ldJYTvRd6pDLlTVyxCxPEWgudShtcRQImKEYpaRaoJqr8AO8/cPnRiRZfVEsVtq9SqJoY4 Qz8Lt22RmyiCYcFxYSWyTe/ZWlGHV9EO/aLL19L2oU8P1mlLE905fDC8mQaZCZvsI2ci6j WMzgfp7bJ5gNYx2KCsX50TBnqnoWfq1k5MiixxfNuIcK4svv9m+9GiGQUlHh/w== Date: Fri, 24 Jun 2022 04:31:50 -0400 MIME-Version: 1.0 Subject: Re: bug#50283: HwInfo Content-Language: en-CA To: Maxim Cournoyer References: <87bl1hks0w.fsf@elephly.net> <314e6ff0-aae0-1af8-cb85-f74b222c6228@raghavgururajan.name> <878rpn4clz.fsf_-_@gmail.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan In-Reply-To: <878rpn4clz.fsf_-_@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------s4fCSJMDD2RwcqLTeKdLTxma" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: raghavgururajan.name X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49934-done Cc: Ricardo Wurmus , 49934-done@debbugs.gnu.org, 50283-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: -1.0 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------s4fCSJMDD2RwcqLTeKdLTxma Content-Type: multipart/mixed; boundary="------------3r3o0RSXYvDLhUEV5txftpVG"; protected-headers="v1" From: Raghav Gururajan To: Maxim Cournoyer Cc: Ricardo Wurmus , 49934-done@debbugs.gnu.org, 50283-done@debbugs.gnu.org Message-ID: <25ac7888-1971-269c-f451-951d3a55cf4f@raghavgururajan.name> Subject: Re: bug#50283: HwInfo References: <87bl1hks0w.fsf@elephly.net> <314e6ff0-aae0-1af8-cb85-f74b222c6228@raghavgururajan.name> <878rpn4clz.fsf_-_@gmail.com> In-Reply-To: <878rpn4clz.fsf_-_@gmail.com> --------------3r3o0RSXYvDLhUEV5txftpVG Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 TWF4aW0sDQoNCj4gWWVzLCBhbmQgSSBhZ3JlZSB0aGF0J3MgYSBwcm9ibGVtLg0KPiANCj4g Rm9ydHVuYXRlbHksIHRoZSByZWNlbnRseSBhZGRlZCBzZWFyY2gtaW5wdXQtZmlsZSBtb3Jl IHVzZWZ1bGx5IHJhaXNlcw0KPiBhbiBlcnJvciB3aGVuIHRoZSBmaWxlIGl0IGlzIGxvb2tp bmcgZm9yIGRvZXNuJ3QgZXhpc3QsIHNvIEkgdXNlZCB0aGF0Lg0KPiANCj4gSXQgd2FzIGEg Yml0IHBhaW5mdWwgdG8gaHVudCBhbGwgdGhlIGNvbW1hbmRzIGJ1dCBpbiB0aGUgZW5kIGl0 IHdvcmtzDQo+IGJlYXV0aWZ1bGx5ISAgSSBwdXNoZWQgdGhlIHJlc3VsdCBhcw0KPiAzNjEx Zjk5YWZmYzRkMmVkY2Y0MTQxZTMwMjJkZDBkMmEwYjA0MDY4Lg0KPiANCj4gQ2xvc2luZywg dGhhbmtzIQ0KDQpUaGFuayBhIGxvdC4NCg0KUmVnYXJkcywNClJHLg0K --------------3r3o0RSXYvDLhUEV5txftpVG-- --------------s4fCSJMDD2RwcqLTeKdLTxma Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYrV2dgUDAAAAAAAKCRBfWBZkf4vlUX9a AQCzOVtN+9In1XJPEedfvFOD3ZKm1vXpGIW7MLbWOQKvvAEA7dVoSd3pyGgAav35+MvSO2jdFM4B 3edKdkK/w0W2Ywo= =PsUE -----END PGP SIGNATURE----- --------------s4fCSJMDD2RwcqLTeKdLTxma-- From unknown Mon Aug 18 02:37:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 22 Jul 2022 11:24:09 +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