From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 27 09:54:08 2020 Received: (at submit) by debbugs.gnu.org; 27 Jan 2020 14:54:09 +0000 Received: from localhost ([127.0.0.1]:57967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iw5mC-0004j1-Nm for submit@debbugs.gnu.org; Mon, 27 Jan 2020 09:54:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:35736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iw5mB-0004it-Lx for submit@debbugs.gnu.org; Mon, 27 Jan 2020 09:54:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40341) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw5mA-00079k-LJ for guix-patches@gnu.org; Mon, 27 Jan 2020 09:54:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iw5mA-0001Ur-IA for guix-patches@gnu.org; Mon, 27 Jan 2020 09:54:06 -0500 Received: from cs-auth-dc-129-97-60-198.dynamic.uwaterloo.ca ([129.97.60.198]:58804 helo=chaman.uwaterloo.ca) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iw5m9-0002Ra-VP; Mon, 27 Jan 2020 09:54:06 -0500 From: Amin Bandali To: guix-patches@gnu.org Subject: [PATCH] gnu: Install the udev rules for light to its output. Date: Mon, 27 Jan 2020 09:52:47 -0500 Message-Id: <20200127145247.4327-1-mab@gnu.org> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: submit Cc: Amin Bandali 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/linux.scm (light): Add install-udev-rules phase to copy the 90-backlight.rules file from the root of the repository to the special lib/udev/rules.d/ directory of the out output. --- gnu/packages/linux.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 9b0dfd8eb7..dfbe2f88bd 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -5042,6 +5042,15 @@ monitoring tools for Linux. These include @code{mpstat}, @code{iostat}, (base32 "0zrjipd392bzjvxx0rjrb0cgi0ix1d83fwgw1mcy8kc4d16cgyjg")) (file-name (git-file-name name version)))) (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'install-udev-rules + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (install-file + "90-backlight.rules" (string-append out "/lib/udev/rules.d")) + #t)))))) (native-inputs `(("autoconf" ,autoconf) ("automake" ,automake))) -- 2.25.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 27 12:54:42 2020 Received: (at 39308) by debbugs.gnu.org; 27 Jan 2020 17:54:42 +0000 Received: from localhost ([127.0.0.1]:58921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iw8aw-0000o4-7L for submit@debbugs.gnu.org; Mon, 27 Jan 2020 12:54:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iw8au-0000np-KV for 39308@debbugs.gnu.org; Mon, 27 Jan 2020 12:54:40 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iw8ap-0000ha-B4 for 39308@debbugs.gnu.org; Mon, 27 Jan 2020 12:54:35 -0500 Received: from cs-auth-dc-129-97-60-198.dynamic.uwaterloo.ca ([129.97.60.198]:38388 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iw8ao-0005qV-S1 for 39308@debbugs.gnu.org; Mon, 27 Jan 2020 12:54:35 -0500 From: Amin Bandali To: 39308@debbugs.gnu.org Subject: Re: [PATCH] gnu: Install the udev rules for light to its output. Organization: GNU References: <20200127145247.4327-1-mab@gnu.org> Date: Mon, 27 Jan 2020 12:54:33 -0500 In-Reply-To: <20200127145247.4327-1-mab@gnu.org> Message-ID: <87a768kco6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39308 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 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Please find v2 attached below, fixing my oversight of forgetting to substitute in the correct paths for chgrp and chmod. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Install-udev-rules-for-light-to-allow-sudo-less-.patch Content-Transfer-Encoding: quoted-printable From=203f9beb0385c03d5c6d34cde76ad7bf2bc2e0c465 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 27 Jan 2020 09:33:37 -0500 Subject: [PATCH v2] gnu: Install udev rules for light to allow sudo-less invocations. * gnu/packages/linux.scm (light): Substitute out the absolute paths of chgrp and chmod in 90-backlight.rules, and install the rules file to the special lib/udev/rules.d/ directory of the out output. This allows for any member = of the video group to set brightness using light without using sudo. =2D-- gnu/packages/linux.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 9b0dfd8eb7..5162dfff18 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -5042,6 +5042,21 @@ monitoring tools for Linux. These include @code{mps= tat}, @code{iostat}, (base32 "0zrjipd392bzjvxx0rjrb0cgi0ix1d83fwgw1mcy8kc4d16cgyjg")) (file-name (git-file-name name version)))) (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-udev-rules-absolute-path-bins + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "90-backlight.rules" + (("/bin/chgrp") (which "chgrp")) + (("/bin/chmod") (which "chmod"))) + #t)) + (add-after 'install 'install-udev-rules + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (install-file + "90-backlight.rules" (string-append out "/lib/udev/rules.d= ")) + #t)))))) (native-inputs `(("autoconf" ,autoconf) ("automake" ,automake))) =2D-=20 2.25.0 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable The patch works fine for me after adding light to udev-service-type in my system configuration, as suggested in the manual, like so: (simple-service 'light-udev-rules udev-service-type (list light)) =2D-=20 Amin Bandali Free Software activist | GNU maintainer & webmaster GPG: BE62 7373 8E61 6D6D 1B3A 08E8 A21A 0202 4881 6103 https://bandali.eu.org --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEObM8jZRIDS3cwqSYi0Sgzce5VvIFAl4vI9kACgkQi0Sgzce5 VvKVRQ//co4d2G4lYy6GjAyJkqsL+YqKEdx2wyx9ssNnNBwe3NRATDuiv87CkttQ 0c/jKRXjYE/33YmzPhDPmL8zFD6+tKVHIMAXIjOp1WBFty4Kb3mHmVYAKTHnk04J m1ptaegbVT37qVCpvxbAEd/HBUmDzaQsw5F8ZNfB5tuIB/Yn/CasZ9s8bFOhX2yQ QZ9UAtOfRrcaBRppDN9OhXh2Y+thEuk9ChWyMtiiE6Ljkg7NjlTEFcixclIQUItk /9X3gwYWuirryfLhzyJbx4/UAdNvbnXxhM5apNGc2V4kXH1RCdYsCWFG6dfaotCR eh2KH/3P9IUKhga03xcFvfWT5O9K8tDQAvv2H2E3P1BZgZ9bUuCxEkOczSEqeagV Mnvv4AZ/+dlZXaT/lXzLhhN8hukNgvDWR6SD+cAI1V9KSodwyXuzRXBH8flRsBWm aA/sTf6qtf46OnNBndDd4BisCoYWC+91UsAI8PGGVVmkUXQW3unkEgs7YuD7OrTU TthYwYsJVweo2QfNRpLdNBTZjvsTJrH1iBZvDMh1aYKDic28GtYK3aDO7qf5CFaV ljq2GjAyDxXb0zdhQv2Guo7t5FgMe7foMtYeoH8DZRSC7aRXoHuAEOASLrgiKU3d 4BRP9/51WWyw3WFV3pt5dkwOSPW1WV49cLIWuMrU5uHdJJ5qOhg= =JbOz -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 27 13:02:17 2020 Received: (at 39308-done) by debbugs.gnu.org; 27 Jan 2020 18:02:17 +0000 Received: from localhost ([127.0.0.1]:58927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iw8iH-00010n-1v for submit@debbugs.gnu.org; Mon, 27 Jan 2020 13:02:17 -0500 Received: from flashner.co.il ([178.62.234.194]:53934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iw8iF-00010a-Gw for 39308-done@debbugs.gnu.org; Mon, 27 Jan 2020 13:02:16 -0500 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id 98167402E6; Mon, 27 Jan 2020 18:02:09 +0000 (UTC) Date: Mon, 27 Jan 2020 20:01:38 +0200 From: Efraim Flashner To: Amin Bandali Subject: Re: [bug#39308] [PATCH] gnu: Install the udev rules for light to its output. Message-ID: <20200127180138.GV1603@E5400> References: <20200127145247.4327-1-mab@gnu.org> <87a768kco6.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XQSDX3NWE02rtiZq" Content-Disposition: inline In-Reply-To: <87a768kco6.fsf@gnu.org> 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: 39308-done Cc: 39308-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 (-) --XQSDX3NWE02rtiZq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Looks good to me! Patch pushed. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --XQSDX3NWE02rtiZq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl4vJYIACgkQQarn3Mo9 g1FdyBAAwNPtjE+I7gwmJF47VtFs3OEU62LQfZkiGXxLujLm0NalsEfnAd6JuRg1 RgW4RSMzaK5BVyPJOx4UVsWgDsdtnPRjWxBiJ1LdFGHpgoSbKCP/kDAHYz2i5V1v DMOrzxVv45j+ETgNpp/VDrzu1y3uH8jknEUMMYhzxB8vdt2qYSwdaNtMCGo5LkTL 2DtKWLCr4acyS/lMIQhNt0MbTm+fXUnyI1EfuG1pQpfzSfOIvFAHfkXxGrLmhnW3 zWnBwQb33QO8R20xKZaYDxQ4+zkfYDTTn6fh/6I8LNWNuk22h0zYI9Bvm+l7zuq9 pq8FEktdxOJb81v9awlAjYV5R3owNBlzt2minBLxexunCwrKOEYXVAuqyaLdRh/d wXT9LjLte4j70htY9dZXX7FDM+su1y9frx3JGqqp3c2StHCvd9se/NVX/Flm3pjb h3hBz1upHejsAcQkJxheAHMTRJVwKOyq8eRoACm7mBSsz3naYRzcPcSOWfDE3OFb 4KOLQIKUFJCvPSMEQDKPIxgVmtY78DJauNevcCJE4E8Z017kRBh4+CfImb0VMKgZ BUtv9nmXwrGfuJRVF3eTk2DvqPk3DNArsvVP3IlQYur8pHwkgbm4w0Ptehh5d9vW SNJePiETcDp+HeMs718Yf4PA7axEBlRC9NIi8+vHj6dHkNBQFPA= =De7Z -----END PGP SIGNATURE----- --XQSDX3NWE02rtiZq-- From unknown Sat Jun 14 03:55:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 25 Feb 2020 12:24:04 +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