From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 21 15:03:23 2017 Received: (at submit) by debbugs.gnu.org; 21 Oct 2017 19:03:24 +0000 Received: from localhost ([127.0.0.1]:54565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5z3L-0006tz-MZ for submit@debbugs.gnu.org; Sat, 21 Oct 2017 15:03:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5z3J-0006tn-II for submit@debbugs.gnu.org; Sat, 21 Oct 2017 15:03:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5z3D-0003rS-8F for submit@debbugs.gnu.org; Sat, 21 Oct 2017 15:03:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44192) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e5z3D-0003rH-5Y for submit@debbugs.gnu.org; Sat, 21 Oct 2017 15:03:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5z3B-0002hZ-Qj for guix-patches@gnu.org; Sat, 21 Oct 2017 15:03:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5z38-0003jp-LF for guix-patches@gnu.org; Sat, 21 Oct 2017 15:03:13 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:49264) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e5z38-0003go-EX for guix-patches@gnu.org; Sat, 21 Oct 2017 15:03:10 -0400 Received: from dayas.3.home (77.118.130.154.wireless.dyn.drei.com [77.118.130.154]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 3ED771CA102C; Sat, 21 Oct 2017 21:03:06 +0200 (CEST) From: Danny Milosavljevic To: guix-patches@gnu.org Subject: [PATCH] gnu: Add python2-libmpsse. Date: Sat, 21 Oct 2017 21:03:03 +0200 Message-Id: <20171021190303.30463-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.14.0 Tags: patch X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: Danny Milosavljevic 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: -5.0 (-----) * gnu/packages/embedded.scm: Add imports. (python2-libmpsse): New variable. --- gnu/packages/embedded.scm | 64 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index e89f5570b..e74db51ed 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -42,6 +42,8 @@ #:use-module (gnu packages libusb) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages swig) #:use-module (gnu packages texinfo) #:use-module (srfi srfi-1)) @@ -867,3 +869,65 @@ the Raspberry Pi chip.") (synopsis "GCC for VC4") (description "This package provides @code{gcc} for VideoCore IV, the Raspberry Pi chip.")))) + +(define-public python2-libmpsse + (package + (name "python2-libmpsse") + (version "1.3") + (source + (origin + (method url-fetch) + (uri (string-append "https://storage.googleapis.com/" + "google-code-archive-downloads/v2/" + "code.google.com/libmpsse/" + "libmpsse-" version ".tar.gz")) + (sha256 + (base32 + "0jq7nhqq3na8675jnpfcar3pd3dp3adhhc4lw900swkla01a1wh8")))) + (build-system gnu-build-system) + (inputs + `(("libftdi" ,libftdi) + ("python" ,python-2))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("swig" ,swig) + ("which" ,base:which))) + (arguments + `(#:tests? #f ; No tests exist. + #:make-flags + (list (string-append "CFLAGS=-Wall -fPIC -fno-strict-aliasing -g -O2 " + "$(shell pkg-config --cflags libftdi1)")) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'set-environment-up + (lambda* (#:key inputs outputs #:allow-other-keys) + (chdir "src") + (setenv "PYDEV" (string-append (assoc-ref inputs "python") + "/include/python2.7")) + #t)) + (add-after 'unpack 'patch-global-variable + (lambda _ + ;; fast_rw_buf was defined in a header file which was making + ;; the build not reproducible. + (substitute* "src/fast.c" + (("^int fast_build_block_buffer") " + +unsigned char fast_rw_buf[SPI_RW_SIZE + CMD_SIZE]; +int fast_build_block_buffer")) + (substitute* "src/mpsse.h" + (("unsigned char fast_rw_buf.*") " +")) + #t)) + (replace 'install + (lambda* (#:key outputs make-flags #:allow-other-keys #:rest args) + (let* ((out (assoc-ref outputs "out")) + (out-python (string-append out + "/lib/python2.7/site-packages")) + (install (assoc-ref %standard-phases 'install))) + (install #:make-flags (cons (string-append "PYLIB=" out-python) + make-flags)))))))) + (home-page "https://code.google.com/archive/p/libmpsse/") + (synopsis "Python library for MPSSE SPI I2C JTAG adapter by FTDI") + (description "This package provides a library in order to support the +MPSSE adapter by FTDI that can do SPI, I2C, JTAG.") + (license license:gpl2+))) From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 22 18:42:44 2017 Received: (at 28928) by debbugs.gnu.org; 22 Oct 2017 22:42:44 +0000 Received: from localhost ([127.0.0.1]:56368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6OxA-0007f6-8F for submit@debbugs.gnu.org; Sun, 22 Oct 2017 18:42:44 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:45172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6Ox9-0007ey-Ae for 28928@debbugs.gnu.org; Sun, 22 Oct 2017 18:42:43 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 01522F426; Mon, 23 Oct 2017 00:42:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X_APUSNHqlaZ; Mon, 23 Oct 2017 00:42:42 +0200 (CEST) Received: from ribbon (node-1w7jr9qobvji5c0ihz5evfepf.ipv6.telus.net [IPv6:2001:569:7790:ff00:462c:3ad:a691:7f33]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 5847CE275; Mon, 23 Oct 2017 00:42:38 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Re: [bug#28928] [PATCH] gnu: Add python2-libmpsse. References: <20171021190303.30463-1-dannym@scratchpost.org> Date: Sun, 22 Oct 2017 15:42:33 -0700 In-Reply-To: <20171021190303.30463-1-dannym@scratchpost.org> (Danny Milosavljevic's message of "Sat, 21 Oct 2017 21:03:03 +0200") Message-ID: <87d15eyfc6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 28928 Cc: 28928@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 (+) Hello Danny, Danny Milosavljevic skribis: > * gnu/packages/embedded.scm: Add imports. > (python2-libmpsse): New variable. [...] > + (home-page "https://code.google.com/archive/p/libmpsse/") > + (synopsis "Python library for MPSSE SPI I2C JTAG adapter by FTDI") > + (description "This package provides a library in order to support the > +MPSSE adapter by FTDI that can do SPI, I2C, JTAG.") Could you, at least in the description, expand at =E2=80=9CMPSSE=E2=80=9D a= nd/or give a bit of context? Otherwise LGTM, thank you! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 13:12:47 2017 Received: (at control) by debbugs.gnu.org; 23 Oct 2017 17:12:47 +0000 Received: from localhost ([127.0.0.1]:57942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6gHP-0007Me-0u for submit@debbugs.gnu.org; Mon, 23 Oct 2017 13:12:47 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:52968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6gHM-0007MS-7M for control@debbugs.gnu.org; Mon, 23 Oct 2017 13:12:45 -0400 Received: from localhost (77.118.130.154.wireless.dyn.drei.com [77.118.130.154]) by dd1012.kasserver.com (Postfix) with ESMTPSA id DC2A51CA00D7 for ; Mon, 23 Oct 2017 19:12:42 +0200 (CEST) Date: Mon, 23 Oct 2017 19:12:39 +0200 From: Danny Milosavljevic To: Message-ID: <20171023191239.5d3435d3@scratchpost.org> X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 28928 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.128.8 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control 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.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 28928 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.128.8 listed in list.dnswl.org] 0.0 TVD_SPACE_RATIO No description available. 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject close 28928 From unknown Tue Jun 24 01:42:12 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, 21 Nov 2017 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