GNU logs - #50578, boring messages


Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#50578] [PATCH] gnu: Add minipro
Resent-From: Thomas Albers <thomas@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Tue, 14 Sep 2021 10:58:01 +0000
Resent-Message-ID: <handler.50578.B.163161703420858 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 50578
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 50578 <at> debbugs.gnu.org
Cc: Thomas Albers <thomas@HIDDEN>
X-Debbugs-Original-To: guix-patches@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.163161703420858
          (code B ref -1); Tue, 14 Sep 2021 10:58:01 +0000
Received: (at submit) by debbugs.gnu.org; 14 Sep 2021 10:57:14 +0000
Received: from localhost ([127.0.0.1]:47698 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mQ67h-0005QG-CO
	for submit <at> debbugs.gnu.org; Tue, 14 Sep 2021 06:57:14 -0400
Received: from lists.gnu.org ([209.51.188.17]:55744)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <thomas@HIDDEN>) id 1mQ67f-0005Q9-Sb
 for submit <at> debbugs.gnu.org; Tue, 14 Sep 2021 06:57:08 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:58036)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <thomas@HIDDEN>)
 id 1mQ67f-0004TO-Jz
 for guix-patches@HIDDEN; Tue, 14 Sep 2021 06:57:07 -0400
Received: from vmd69031.contaboserver.net ([161.97.172.214]:48104
 helo=mail.thomaslabs.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <thomas@HIDDEN>)
 id 1mQ67Z-0004Ib-HB
 for guix-patches@HIDDEN; Tue, 14 Sep 2021 06:57:07 -0400
Received: from localhost.localdomain (ip2505fce3.dynamic.kabel-deutschland.de
 [37.5.252.227])
 by mail.thomaslabs.org (Postfix) with ESMTPSA id 3B9EA9C001F;
 Tue, 14 Sep 2021 12:56:57 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thomaslabs.org;
 s=mail; t=1631617017;
 bh=1DI1ZXpGoOscaTzQqLlNb35ZpetqfliBoRhzhWa8gfM=;
 h=From:To:Cc:Subject:Date:From;
 b=UuJS+8iXDHiREvdWWSzglI1ZU+AgvyMtSTMpjtGqbVl0Q1rm+SOO0dcLH8iggjSmW
 4F+0tb90cK2oo6idmKDlcZkmb0VnWgrAShJI8ck9sFdFEkl/l1FUGirKsmbH+22+eV
 KXba8AkIkzDttAQh3GViivh/5JZnopy2zcj9RK5lUZ1yDpFhPkLivZd7/Wq4P3LdQw
 xNzXCFLdbUeXZUUA35nUURTvItuOvqJDTCgyH++VRhemDux4E8OzW64VGgu6VugpWj
 pnYxwYbP6DXrel0bi6MszfWtMNfAMUEcSx7NJmogM54pbB8ni2OUjFXXikkof7lcFz
 HJ/QPzopa8nTw==
From: Thomas Albers <thomas@HIDDEN>
Date: Tue, 14 Sep 2021 12:56:01 +0200
Message-Id: <20210914105601.12562-1-thomas@HIDDEN>
X-Mailer: git-send-email 2.33.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=161.97.172.214;
 envelope-from=thomas@HIDDEN; helo=mail.thomaslabs.org
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, SPF_HELO_NONE=0.001,
 T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

---
 gnu/packages/electronics.scm | 66 ++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm
index 0e985c9750..e6abdc6562 100644
--- a/gnu/packages/electronics.scm
+++ b/gnu/packages/electronics.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2019 Clément Lassieur <clement@HIDDEN>
 ;;; Copyright © 2021 Efraim Flashner <efraim@HIDDEN>
 ;;; Copyright © 2021 Leo Famulari <leo@HIDDEN>
+;;; Copyright © 2021 Thomas Albers Raviola <thomas@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -24,6 +25,7 @@
   #:use-module (guix utils)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system cmake)
@@ -333,3 +335,67 @@ from ALSA, ESD, and COMEDI sources.  This package currently does not include
 support for ESD sources.")
     (home-page "http://xoscope.sourceforge.net/")
     (license license:gpl2+)))
+
+(define-public minipro
+  ;; Information needed to fix Makefile
+  (let* ((commit "0774b071361366c866ec97302ec02972379418b0")
+         (commit-short (substring commit 0 8))
+         ;; git show -s --format="%ci"
+         (date "2021-08-05 07:54:42 +0300")
+         (revision "1"))
+    (package
+      (name "minipro")
+      (version (git-version "0.5" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://gitlab.com/DavidGriffith/minipro.git")
+               (commit commit)))
+         (sha256
+          (base32 "174m2dwgpxwkm1yrf54p6k5skihgpcd1iblxivg2f6xbdrsz8b18"))))
+      (native-inputs
+       `(("pkg-config" ,pkg-config)
+         ("which" ,which)
+         ("sed" ,sed)))
+      (inputs
+       `(("libusb" ,libusb)))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (delete 'configure)
+           (delete 'check)
+           (add-before 'build 'fix-makefile
+             (lambda* (#:key outputs #:allow-other-keys)
+               ;; Modify the makefile so that its 'PREFIX' variable points to
+               ;; "out".
+               ;; Also fix the folder to where the udev rules are installed and
+               ;; some git related variables that minipro expects.
+               (let ((out (assoc-ref outputs "out")))
+                 (substitute* "Makefile"
+                   (("PREFIX \\?= .*")
+                    (string-append "PREFIX ?= " out "\n" ))
+                   (("UDEV_DIR=.*")
+                    (string-append "UDEV_DIR=" out "/lib/udev/\n"))
+                   (("GIT_BRANCH = .*")
+                    (string-append "GIT_BRANCH = \"master\"\n"))
+                   (("GIT_HASH = .*")
+                    (string-append "GIT_HASH = \"" ,commit "\"\n"))
+                   (("GIT_HASH_SHORT = .*")
+                    (string-append "GIT_HASH_SHORT = \"" ,commit-short "\"\n"))
+                   (("GIT_DATE = .*")
+                    (string-append "GIT_DATE = \"" ,date "\"\n"))))
+               #t)))))
+      (synopsis "Controls the TL866xx series of chip programmers")
+      (description "minipro is designed to program or read the contents of
+chips supported by the TL866xx series of programmers.  This includes many
+microcontrollers, ROMs, EEPROMs and PLDs.
+
+To use this program without root privileges you must install the necessary udev
+rules.  This can be done by extending @code{udev-service-type} in your
+@code{operating-system} configuration with this package.  E.g.:
+@code{(udev-rules-service 'minipro minipro #:groups '(\"plugdev\")}.
+Additionally your user must be member of the @code{plugdev} group.")
+      (home-page "https://gitlab.com/DavidGriffith/minipro")
+      (license license:gpl3+))))
-- 
2.33.0





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Thomas Albers <thomas@HIDDEN>
Subject: bug#50578: Acknowledgement ([PATCH] gnu: Add minipro)
Message-ID: <handler.50578.B.163161703420858.ack <at> debbugs.gnu.org>
References: <20210914105601.12562-1-thomas@HIDDEN>
X-Gnu-PR-Message: ack 50578
X-Gnu-PR-Package: guix-patches
X-Gnu-PR-Keywords: patch
Reply-To: 50578 <at> debbugs.gnu.org
Date: Tue, 14 Sep 2021 10:58:01 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 guix-patches@HIDDEN

If you wish to submit further information on this problem, please
send it to 50578 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
50578: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D50578
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



Last modified: Tue, 14 Sep 2021 11:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.