From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MF5IBsXsB2KDMwEAgWs5BA (envelope-from ) for ; Sat, 12 Feb 2022 18:22:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sBeFA8XsB2KEiwAA9RJhRA (envelope-from ) for ; Sat, 12 Feb 2022 18:22:13 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8050428A0D for ; Sat, 12 Feb 2022 18:22:12 +0100 (CET) Received: from localhost ([::1]:34860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIw67-0001ZZ-7C for larch@yhetil.org; Sat, 12 Feb 2022 12:22:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIw5y-0001Yw-Jz for guix-patches@gnu.org; Sat, 12 Feb 2022 12:22:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIw5y-0003RD-A9 for guix-patches@gnu.org; Sat, 12 Feb 2022 12:22:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIw5y-00072F-75 for guix-patches@gnu.org; Sat, 12 Feb 2022 12:22:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53953] [PATCH v2] gnu: Add acpilight. References: <20220212104432.22611-1-brice@waegenei.re> In-Reply-To: <20220212104432.22611-1-brice@waegenei.re> Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Feb 2022 17:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53953 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: maximedevos@telenet.be Cc: 53953@debbugs.gnu.org Received: via spool by 53953-submit@debbugs.gnu.org id=B53953.164468649726984 (code B ref 53953); Sat, 12 Feb 2022 17:22:02 +0000 Received: (at 53953) by debbugs.gnu.org; 12 Feb 2022 17:21:37 +0000 Received: from localhost ([127.0.0.1]:35559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIw5Z-00071A-8i for submit@debbugs.gnu.org; Sat, 12 Feb 2022 12:21:37 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:48129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIw5W-00070u-OF for 53953@debbugs.gnu.org; Sat, 12 Feb 2022 12:21:36 -0500 Received: (Authenticated sender: brice@waegenei.re) by mail.gandi.net (Postfix) with ESMTPSA id 29B1320002; Sat, 12 Feb 2022 17:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=waegenei.re; s=gm1; t=1644686488; 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: content-transfer-encoding:content-transfer-encoding; bh=1YZZMfmTB6PdLZ4C4p5cb+t4gXcFGQLcqOQj/5cLJWQ=; b=iGZ3VaU5ZZwReUL0/PsZ6ra/d85YjHO5pg1ThjBx56f6LPfJgLxRHXbHyPyQOB9/eZazkn eHycikh46hfvl84FVrLTI9dxzBX88qTnaLJ5N1+f00G4bZvHcFo2Y8VMCYAflOSaO/sWmk 7vKrZ8UxKLB7PeVO1VKWYfZ4Sr7bX9+ZWSM6dD7t/oVOKofVA01Xtv6n99StgMz/qIHE5D rNRf+pcUHdB+vOM1MnILrEKyFBJ7Kse8NU8m5PJ4mIEhBwAHGygLhSOElZO2ifbQopQUwH yMcLZkJH0qe81iapLzyNO8T0c70+c8oK4ssY7Q9Mliqji7fWtFt82Nn00+Z9vQ== From: Brice Waegeneire Date: Sat, 12 Feb 2022 18:21:25 +0100 Message-Id: <20220212172125.3648-1-brice@waegenei.re> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644686532; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1YZZMfmTB6PdLZ4C4p5cb+t4gXcFGQLcqOQj/5cLJWQ=; b=YZABx/xbU2ImJTfY8qrgCfF81o8x62g3ODFxY+xjzUfQTonVHNG/53M8bfj1oLIahiQgub JJKuUnHt0bhXr9n7r9mu33SngTBnBx7C7zuz5yuRV2ibPpjQ7v7/ft36ptTIqvJWiGsok+ +Wsbm/w7JyRIRd5aHMITt9nserdOkbfQ7F9GMjctRPNJGlONvbs36o1EndNFN5fHw6r+Tp wcwA82Bf2SyHaf6UeP6LnT4nmGjpPXCdAcfMhVshitG2LXOQoMd4R1jlic+6BalNjFSeb1 faipgIu+G2s46PMd2ckfGduE/fyo53gkxWvwTKCwdb6gbyBe+0PMYvjTiSUabw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644686532; a=rsa-sha256; cv=none; b=GiwAIo7j+9bTz1s496bYyk8Z+Ar8FXUmBBFbvVKxw2aknHHh2jDuGA2LqchR8ul7ZnCFML 1ZZMpyuoT3DnCJtktc9zcBUD7U4LO3ztxJgkLOI49gaKeBkjEMYisC7V2QOA8cxlou6OO0 vRhng6LdC7AUPkcf/UWQDTdqm7TIvcOSgGelXgTPvm4pkSmRBpUvZ+PofH153pN5eKxsmH xRrIcyYIaTcrmzbxHzwTyZGvwq5ZLEcOsyRIgEpBbE67k0DYoYCU5WTF3cKWX2V7w0/xiN eOBEnbA6ep31EvVtiuLq8Fl1AhVYo8KfbvkVee0dgf53cbsA+/6RNOGepWL/6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=waegenei.re header.s=gm1 header.b=iGZ3VaU5; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=waegenei.re header.s=gm1 header.b=iGZ3VaU5; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8050428A0D X-Spam-Score: -1.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: G3rjl7Erm5/E * gnu/packages/linux.scm (acpilight): New variable. --- Maxime, Thanks for the review. I should have re-read this old package more throughly, I have fixed what you pointed out: - using gexp in arguments field - don't returning #t in phases - adding coreutils-minimal to inputs As for the odd make-flags, this is because of the uncanonical Makefile¹ of acpilight, It don't build with an empty DESTDIR. ¹ https://gitlab.com/wavexx/acpilight/-/blob/master/Makefile Cheers, - Brice gnu/packages/linux.scm | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index bcbaa2166d..fe88d9ad26 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -35,7 +35,7 @@ ;;; Copyright © 2019 Tim Gesthuizen ;;; Copyright © 2019, 2020, 2021 Maxim Cournoyer ;;; Copyright © 2019 Stefan Stefanović -;;; Copyright © 2019, 2020, 2021 Brice Waegeneire +;;; Copyright © 2019-2022 Brice Waegeneire ;;; Copyright © 2019 Kei Kebreau ;;; Copyright © 2020, 2021 Oleg Pykhalov ;;; Copyright © 2020 Pierre Neidhardt @@ -8806,3 +8806,41 @@ (define-public libgpiod (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public acpilight + (package + (name "acpilight") + (version "1.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/wavexx/acpilight.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1r0r3nx6x6vkpal6vci0zaa1n9dfacypldf6k8fxg7919vzxdn1w")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;no tests + #:make-flags #~(list "prefix=" + (string-append "DESTDIR=" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'patch + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Makefile" + (("udevadm") "true")) + (substitute* "90-backlight.rules" + (("/bin") + (string-append (assoc-ref inputs "coreutils-minimal") "/bin")))))))) + (inputs + (list python coreutils-minimal)) + (home-page "https://gitlab.com/wavexx/acpilight") + (synopsis "Backward-compatibile xbacklight replacement") + (description "acpilight is a backward-compatibile replacement for +xbacklight that uses the ACPI interface to set the display +brightness. On modern laptops acpilight can control both display and +keyboard backlight uniformly on either X11, the console or Wayland.") + (license license:gpl3+))) base-commit: e641d707e1ec8de2bfc658dcd1757360300aa509 -- 2.34.0