From unknown Fri Sep 19 21:29:44 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#66794] [PATCH] gnu: beep: Add phase install-rules. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 28 Oct 2023 14:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66794 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66794@debbugs.gnu.org Cc: ngraves@ngraves.fr X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16985026657270 (code B ref -1); Sat, 28 Oct 2023 14:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Oct 2023 14:17:45 +0000 Received: from localhost ([127.0.0.1]:39325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwk8G-0001tC-IZ for submit@debbugs.gnu.org; Sat, 28 Oct 2023 10:17:44 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwk8A-0001sh-NE for submit@debbugs.gnu.org; Sat, 28 Oct 2023 10:17:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwk7Z-0002D8-EB for guix-patches@gnu.org; Sat, 28 Oct 2023 10:17:01 -0400 Received: from 3.mo575.mail-out.ovh.net ([46.105.58.60]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwk7W-0001dq-TC for guix-patches@gnu.org; Sat, 28 Oct 2023 10:17:01 -0400 Received: from director5.ghost.mail-out.ovh.net (unknown [10.109.156.142]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id C069C26625 for ; Sat, 28 Oct 2023 14:16:54 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-dnfcn (unknown [10.110.103.249]) by director5.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 70D861FD5C; Sat, 28 Oct 2023 14:16:54 +0000 (UTC) Received: from ngraves.fr ([37.59.142.102]) by ghost-submission-6684bf9d7b-dnfcn with ESMTPSA id 9RiXGNYXPWXcCAAA34lJGQ (envelope-from ); Sat, 28 Oct 2023 14:16:54 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-102R004a5c96483-00d3-4ca3-9073-c2557259ca7f, 8DB9E9997241180CBE7678A9122BA2DE6553C070) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.140.142 From: Nicolas Graves Date: Sat, 28 Oct 2023 16:16:46 +0200 Message-ID: <20231028141652.5940-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 1717560309878416098 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrleeigdehtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofggtgfgsehtkeertdertdejnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepteevheffvedvgfdttdehvdfhgeeugfegffetteeuleeivdfhhfejgeduheelgeehnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugedtrddugedvpdefjedrheelrddugedvrddutddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopehguhhigidqphgrthgthhgvshesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheejhedpmhhouggvpehsmhhtphhouhht Received-SPF: pass client-ip=46.105.58.60; envelope-from=ngraves@ngraves.fr; helo=3.mo575.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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.0 (/) * gnu/packages/terminals.scm (beep): Add phase install-rules. --- gnu/packages/terminals.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index c5cecfa6db..b3f17c7ed2 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -584,7 +584,18 @@ (define-public beep ;; The build environment lacks /dev/{console,tty*}. ;; In fact, even nckx's regular Guix System lacks ttyS1… ((": Permission denied") - ": No such file or directory"))))))) + ": No such file or directory")))) + (add-before 'install 'install-rules + (lambda _ + (mkdir-p (string-append #$output "/etc/udev/rules.d")) + (with-output-to-file + (string-append #$output + "/etc/udev/rules.d/70-pcspkr-beep.rules") + (lambda _ + (display (string-append "\ +ACTION==\"add\", SUBSYSTEM==\"input\", ATTRS{name}==\"PC Speaker\", " + "ENV{DEVNAME}!=\"\", " + "TAG+=\"uaccess\""))))))))) (synopsis "Linux command-line utility to control the PC speaker") (description "beep allows the user to control the PC speaker with precision, allowing different sounds to indicate different events. While it can be run -- 2.41.0 From unknown Fri Sep 19 21:29:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nicolas Graves Subject: bug#66794: closed (Re: [bug#66794] [PATCH] gnu: beep: Add phase install-rules.) Message-ID: References: <87bkb5n0sk.fsf@gnu.org> <20231028141652.5940-1-ngraves@ngraves.fr> X-Gnu-PR-Message: they-closed 66794 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 66794@debbugs.gnu.org Date: Mon, 04 Dec 2023 20:59:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1701723542-9220-1" This is a multi-part message in MIME format... ------------=_1701723542-9220-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #66794: [PATCH] gnu: beep: Add phase install-rules. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 66794@debbugs.gnu.org. --=20 66794: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D66794 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1701723542-9220-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 66794-done) by debbugs.gnu.org; 4 Dec 2023 20:58:03 +0000 Received: from localhost ([127.0.0.1]:35855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAG0w-0002NS-R8 for submit@debbugs.gnu.org; Mon, 04 Dec 2023 15:58:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAG0v-0002Mq-79 for 66794-done@debbugs.gnu.org; Mon, 04 Dec 2023 15:58:01 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAG0e-00050f-Tt; Mon, 04 Dec 2023 15:57:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=/l0AoN6iNt1Gx9I9zd9bVMm7ovGPKtqAKZ8DXqB+ymE=; b=c2CcFkL22mDnJPvkvKnM q/58iTi3Q38+Hk1USFf/Gv4UFDDehCx+go4s5OSqvwKQhaqq5Y8rdbWI7zyOUtQr5a6EbOMr8hn5p b/tMnFnl2ihay779dUndFCEDldmtd7TA43W+hlFaSoc48EC7Nxk7oLsGJHwmJoUuKVzRzYEEzxAKJ sqjRBjdgZHOfBm2L7EdSt0+vubvFLvA4OEaTjlFcjil/P/Jr2wh3/Je7sSIB0ewf7CJJLiNo2HFQp bHTxMevl9+4nSLOb44N4ILsaWrkUHXq7Y4b5GmrcVRu+ksMCuTqvfgP1LMsR+QejSQXL41uhgXK+2 ibRSJ29D/jXNAQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Nicolas Graves Subject: Re: [bug#66794] [PATCH] gnu: beep: Add phase install-rules. In-Reply-To: <20231028141652.5940-1-ngraves@ngraves.fr> (Nicolas Graves's message of "Sat, 28 Oct 2023 16:16:46 +0200") References: <20231028141652.5940-1-ngraves@ngraves.fr> Date: Mon, 04 Dec 2023 21:57:31 +0100 Message-ID: <87bkb5n0sk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66794-done Cc: 66794-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Nicolas Graves skribis: > * gnu/packages/terminals.scm (beep): Add phase install-rules. Applied, thanks! ------------=_1701723542-9220-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Oct 2023 14:17:45 +0000 Received: from localhost ([127.0.0.1]:39325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwk8G-0001tC-IZ for submit@debbugs.gnu.org; Sat, 28 Oct 2023 10:17:44 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwk8A-0001sh-NE for submit@debbugs.gnu.org; Sat, 28 Oct 2023 10:17:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwk7Z-0002D8-EB for guix-patches@gnu.org; Sat, 28 Oct 2023 10:17:01 -0400 Received: from 3.mo575.mail-out.ovh.net ([46.105.58.60]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwk7W-0001dq-TC for guix-patches@gnu.org; Sat, 28 Oct 2023 10:17:01 -0400 Received: from director5.ghost.mail-out.ovh.net (unknown [10.109.156.142]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id C069C26625 for ; Sat, 28 Oct 2023 14:16:54 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-dnfcn (unknown [10.110.103.249]) by director5.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 70D861FD5C; Sat, 28 Oct 2023 14:16:54 +0000 (UTC) Received: from ngraves.fr ([37.59.142.102]) by ghost-submission-6684bf9d7b-dnfcn with ESMTPSA id 9RiXGNYXPWXcCAAA34lJGQ (envelope-from ); Sat, 28 Oct 2023 14:16:54 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-102R004a5c96483-00d3-4ca3-9073-c2557259ca7f, 8DB9E9997241180CBE7678A9122BA2DE6553C070) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.140.142 From: Nicolas Graves To: guix-patches@gnu.org Subject: [PATCH] gnu: beep: Add phase install-rules. Date: Sat, 28 Oct 2023 16:16:46 +0200 Message-ID: <20231028141652.5940-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 1717560309878416098 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrleeigdehtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofggtgfgsehtkeertdertdejnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepteevheffvedvgfdttdehvdfhgeeugfegffetteeuleeivdfhhfejgeduheelgeehnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugedtrddugedvpdefjedrheelrddugedvrddutddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopehguhhigidqphgrthgthhgvshesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheejhedpmhhouggvpehsmhhtphhouhht Received-SPF: pass client-ip=46.105.58.60; envelope-from=ngraves@ngraves.fr; helo=3.mo575.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: ngraves@ngraves.fr 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.0 (/) * gnu/packages/terminals.scm (beep): Add phase install-rules. --- gnu/packages/terminals.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index c5cecfa6db..b3f17c7ed2 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -584,7 +584,18 @@ (define-public beep ;; The build environment lacks /dev/{console,tty*}. ;; In fact, even nckx's regular Guix System lacks ttyS1… ((": Permission denied") - ": No such file or directory"))))))) + ": No such file or directory")))) + (add-before 'install 'install-rules + (lambda _ + (mkdir-p (string-append #$output "/etc/udev/rules.d")) + (with-output-to-file + (string-append #$output + "/etc/udev/rules.d/70-pcspkr-beep.rules") + (lambda _ + (display (string-append "\ +ACTION==\"add\", SUBSYSTEM==\"input\", ATTRS{name}==\"PC Speaker\", " + "ENV{DEVNAME}!=\"\", " + "TAG+=\"uaccess\""))))))))) (synopsis "Linux command-line utility to control the PC speaker") (description "beep allows the user to control the PC speaker with precision, allowing different sounds to indicate different events. While it can be run -- 2.41.0 ------------=_1701723542-9220-1--