From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KKSIBRDx8WQNUAEAauVa8A:P1 (envelope-from ) for ; Fri, 01 Sep 2023 16:11:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KKSIBRDx8WQNUAEAauVa8A (envelope-from ) for ; Fri, 01 Sep 2023 16:11:28 +0200 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 9306D463A5 for ; Fri, 1 Sep 2023 16:11:27 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=jsePiCkp; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693577488; 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-to: 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=iRy78QK42I/ST9o3DEguaX9b9F8uC3YmtCuOTTDcxTA=; b=D0P9jvFxcTwdpvYb6VpSfda/pXdquHquFuu2LyHL6bsL2zvauRWPY+g9L2pqgruVvaUSm1 9Hcns9lEM+/ex0gCJ5M9OF9XKzX1iJ7OInSJCcSCkMgUXifyMcy42/ELSZobzUe1yYL5p8 2yhmWPbKAyMdy85iABAwOeXp6naOT5rCR0d2ots0lskhRuYPMjqdsx1j7CBy+vuve3ptN+ 9HDCDDI0+BzKwj445GO0AqFpcHE+/4Wo/cj7Cnd1ouqV0kAJVG6b1Z+3CtJrGIXhpz+wMj Re2tO0sHjoQrZ8Jm3h08mWNO/bR+Pa5xr9VEyePkuHpvyyFZb+AIgmRD9d3K1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=jsePiCkp; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693577488; a=rsa-sha256; cv=none; b=XTugs8ABA7e2lthqUHybM3XIAu84MEltFuOF5MaOhSWLJzTScnyR/yTXqZr7BGJ31HFEZP q6qBS+a/yXG/Q8ISJhCXG2glH6Xth7nmDSPEqBmC2cX9ooEzsMOVUy+Iui+Te1fxzJ1LLn OpD5u6PSMMf3ILRwBu7707aS8G5WZPGe8eUxyojiKY1EXYVo8QYgrD+wSwmiBA0P6KSjUN bcZwv5oIFO7NIk2IaVpv4sW55mphQoVBlWJ7O5Y/sPZAgRFEpjQI2qQauVzoh43Wtd2Yyw uMBur0nobewBGUQpADx3UOO7+hqbB2QFr68ioLfI9mhNWoVFeuZBh+hFug613Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qc4rR-0007qw-MX; Fri, 01 Sep 2023 10:10:57 -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 1qc4rP-0007qB-Aa for guix-patches@gnu.org; Fri, 01 Sep 2023 10:10:55 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qc4rO-0000S1-GM for guix-patches@gnu.org; Fri, 01 Sep 2023 10:10:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qc4rW-00079d-L6 for guix-patches@gnu.org; Fri, 01 Sep 2023 10:11:02 -0400 Subject: bug#63211: [PATCH] gnu: Add usbrelay. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Fri, 01 Sep 2023 14:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 63211 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Evgeny Pisemsky Cc: 63211-done@debbugs.gnu.org Mail-Followup-To: 63211@debbugs.gnu.org, maxim.cournoyer@gmail.com, evgeny@pisemsky.com Received: via spool by 63211-done@debbugs.gnu.org id=D63211.169357742827456 (code D ref 63211); Fri, 01 Sep 2023 14:11:02 +0000 Received: (at 63211-done) by debbugs.gnu.org; 1 Sep 2023 14:10:28 +0000 Received: from localhost ([127.0.0.1]:33547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qc4qx-00078l-Pz for submit@debbugs.gnu.org; Fri, 01 Sep 2023 10:10:28 -0400 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]:57474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qc4qu-00078V-Jn for 63211-done@debbugs.gnu.org; Fri, 01 Sep 2023 10:10:26 -0400 Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-4121130e7afso11465641cf.2 for <63211-done@debbugs.gnu.org>; Fri, 01 Sep 2023 07:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693577409; x=1694182209; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=iRy78QK42I/ST9o3DEguaX9b9F8uC3YmtCuOTTDcxTA=; b=jsePiCkpGMe17QdG1Pd1daHeDGVY6fAmOjVOFZb1IkmS9geFoqSmnkWMWC4Zl9wV9L 5I64xtHHWJd2Wk0NZ4NWrhDv/TW53hmJWoAYSrWOnqiEwKY5hQif9HOsiddb00T9sbR3 G7xTC/CUg6gTHT9TNbooxbuiRyv+M2QJBeM/5YvnSIlXHLnRtnazfpprbcZ9EKu+ZXwu zJ4dZsu6eCO3froqOwlHCFZMSoVwfbgPFYdZrmZrS1+E5sPSRkwn51oGXWupZkjzvrNK ceawlWqx1yo2mW4mioqS66vyHCBe3Zg/HHZNkaK88rYJPdYrnM06Pr+sEGCOPzw9ojPJ iXWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693577409; x=1694182209; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=iRy78QK42I/ST9o3DEguaX9b9F8uC3YmtCuOTTDcxTA=; b=HorbgyOSD66Tt0a+3ISp7bA00yVGRKjZCFAlkHa+KviuAnpBZQcnJU5eUGpyp+0PgX xj4XZ/+Jj4WM2WTDQr/R5xev6bNmmvXNIX7EXJSm0C7aqC9c2jjH+l71K3rmGN+CaQZK tq9fcxu1S7IOip7JISrZzpFtcI3S1Y/Y9q5PHxZQPkSJO+eABOriqgBdVoNUm1aaFEut 6FdwukoUxyHGc2zz2SVyO81JcvAFkjPmE2xHDxFb6HBv9SQDlTorVAy2Ri3aQOVJUetr U5sTDrubwF6/HVmoSgaQNMGQGqZA9lMviV1XpRRUTalJz/E53U78qVCGUHL8CwSLhbEa A4iw== X-Gm-Message-State: AOJu0YzQHd3wFIFwVeAurhTGX7iBX3ltJTgwLDt4G3brX6vGcsW6K8n0 eBNUBlqfxrY5M2NCxemu/QoQQEILncI8sw== X-Google-Smtp-Source: AGHT+IGYkgYUHvDL3F0eTp+ZPQV3HHIaTbkr2QqkBD3KqUZJOWznSN0vrXnYoVCJSgqdg8Cta+JErw== X-Received: by 2002:a0c:f1ca:0:b0:63d:1573:c29e with SMTP id u10-20020a0cf1ca000000b0063d1573c29emr1990388qvl.64.1693577409131; Fri, 01 Sep 2023 07:10:09 -0700 (PDT) Received: from hurd (dsl-154-228.b2b2c.ca. [66.158.154.228]) by smtp.gmail.com with ESMTPSA id b19-20020a0cf053000000b0063d0159e1f6sm1431060qvl.109.2023.09.01.07.10.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Sep 2023 07:10:08 -0700 (PDT) From: Maxim Cournoyer References: <87pm7j6h91.fsf@pisemsky.com> Date: Fri, 01 Sep 2023 10:10:07 -0400 In-Reply-To: <87pm7j6h91.fsf@pisemsky.com> (Evgeny Pisemsky's message of "Mon, 01 May 2023 21:25:46 +0300") Message-ID: <87zg262dds.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.77 X-Spam-Score: 2.77 X-Migadu-Queue-Id: 9306D463A5 X-Migadu-Scanner: mx0.migadu.com X-TUID: T3azkIogRnHh Hi! Evgeny Pisemsky writes: >>>From dacf7010defa351fae323786a5112904215b5478 Mon Sep 17 00:00:00 2001 > From: Evgeny Pisemsky > Date: Mon, 1 May 2023 21:09:42 +0300 > Subject: [PATCH] gnu: Add usbrelay. > > * gnu/packages/hardware.scm (usbrelay): New variable. > --- > gnu/packages/hardware.scm | 36 +++++++++++++++++++++++++++++++++++- > 1 file changed, 35 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm > index 5b85ad9b2e..365fb88ae0 100644 > --- a/gnu/packages/hardware.scm > +++ b/gnu/packages/hardware.scm > @@ -2,7 +2,7 @@ > ;;; Copyright =C2=A9 2018=E2=80=932022 Tobias Geerinckx-Rice > ;;; Copyright =C2=A9 2020 Jan (janneke) Nieuwenhuizen > ;;; Copyright =C2=A9 2020 Brice Waegeneire > -;;; Copyright =C2=A9 2021 Evgeny Pisemsky > +;;; Copyright =C2=A9 2021, 2023 Evgeny Pisemsky > ;;; Copyright =C2=A9 2021 L=C3=A9o Le Bouter > ;;; Copyright =C2=A9 2021 Denis Carikli > ;;; Copyright =C2=A9 2021, 2022 Petr Hodina > @@ -1438,3 +1438,37 @@ (define-public lxi-tools > on the LXI Consortium standard which defines the communication protocols= for > modern instrumentation and data acquision systems using Ethernet.") > (license license:bsd-3))) > + > +(define-public usbrelay > + (package > + (name "usbrelay") > + (version "1.2") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/darrylb123/usbrelay") > + (commit version))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "0fr3wglr2c6myg4k6ai2p5z38prclcnk2ngik15sq16fnp6qg750"))= )) > + (build-system gnu-build-system) > + (arguments > + `(#:phases (modify-phases %standard-phases > + (delete 'configure)) > + #:make-flags (let* ((out (assoc-ref %outputs "out")) > + (lib (string-append out "/lib"))) > + (list (string-append "CC=3D" ,(cc-for-target)) > + (string-append "PREFIX=3D" out) > + (string-append "LDFLAGS=3D-Wl,-rpath=3D" lib) > + "LDCONFIG=3Dtrue" > + "USBMAJOR=3D$(USBLIBVER)")) > + #:tests? #f)) > + (inputs (list hidapi)) > + (home-page "https://github.com/darrylb123/usbrelay") > + (synopsis "Control USB relay modules") > + (description > + "This is a Linux driver based on hidapi for a variety of inexpensive > +HID compatible USB relay modules available with different number of > +output relays.") > + (license license:gpl2+))) I've made the following changes, to use the more modern gexp approach, and added comments next to the configure phase deletion and disabling of tests: --8<---------------cut here---------------start------------->8--- modified gnu/packages/hardware.scm @@ -1475,16 +1475,16 @@ (define-public usbrelay "0fr3wglr2c6myg4k6ai2p5z38prclcnk2ngik15sq16fnp6qg750")))) (build-system gnu-build-system) (arguments - `(#:phases (modify-phases %standard-phases - (delete 'configure)) - #:make-flags (let* ((out (assoc-ref %outputs "out")) - (lib (string-append out "/lib"))) - (list (string-append "CC=3D" ,(cc-for-target)) - (string-append "PREFIX=3D" out) - (string-append "LDFLAGS=3D-Wl,-rpath=3D" lib) - "LDCONFIG=3Dtrue" - "USBMAJOR=3D$(USBLIBVER)")) - #:tests? #f)) + (list + #:phases #~(modify-phases %standard-phases + (delete 'configure)) ;no configure script + #:make-flags #~(list (string-append "CC=3D" #$(cc-for-target)) + (string-append "PREFIX=3D" #$output) + (string-append "LDFLAGS=3D-Wl,-rpath=3D" + (string-append #$output "/lib")) + "LDCONFIG=3Dtrue" + "USBMAJOR=3D$(USBLIBVER)") + #:tests? #f)) ;no test suite (inputs (list hidapi)) (home-page "https://github.com/darrylb123/usbrelay") (synopsis "Control USB relay modules") --8<---------------cut here---------------end--------------->8--- Will install shortly, thank you. --=20 Thanks, Maxim