GNU bug report logs - #32923
[PATCH 0/3] Add Arduino basics.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Danny Milosavljevic <dannym@HIDDEN>; Keywords: patch; dated Wed, 3 Oct 2018 19:43:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 32923 <at> debbugs.gnu.org:


Received: (at 32923) by debbugs.gnu.org; 9 Oct 2018 20:42:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 09 16:42:52 2018
Received: from localhost ([127.0.0.1]:42614 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g9yqC-0004jZ-D5
	for submit <at> debbugs.gnu.org; Tue, 09 Oct 2018 16:42:52 -0400
Received: from m4s11.vlinux.de ([83.151.27.109]:32784 helo=bjoernhoefling.de)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bjoern.hoefling@HIDDEN>)
 id 1g9yqA-0004jQ-9j
 for 32923 <at> debbugs.gnu.org; Tue, 09 Oct 2018 16:42:51 -0400
Received: from alma-ubu (p57B52D3E.dip0.t-ipconnect.de [87.181.45.62])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by bjoernhoefling.de (Postfix) with ESMTPSA id C5F25400FF;
 Tue,  9 Oct 2018 22:42:48 +0200 (CEST)
Date: Tue, 9 Oct 2018 22:42:47 +0200
From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= <bjoern.hoefling@HIDDEN>
To: Danny Milosavljevic <dannym@HIDDEN>
Subject: Re: [bug#32923] [PATCH 0/3] Add Arduino basics.
Message-ID: <20181009224247.1420d6e9@alma-ubu>
In-Reply-To: <20181009172628.38d19f63@HIDDEN>
References: <20181003194205.3627-1-dannym@HIDDEN>
 <20181009094414.38cde83b@alma-ubu>
 <20181009172628.38d19f63@HIDDEN>
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
 boundary="Sig_/6iIpY1ZmSSeCCpW_qmTKYD+"; protocol="application/pgp-signature"
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 32923
Cc: 32923 <at> debbugs.gnu.org
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: -0.9 (/)

--Sig_/6iIpY1ZmSSeCCpW_qmTKYD+
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Tue, 9 Oct 2018 17:26:28 +0200
Danny Milosavljevic <dannym@HIDDEN> wrote:

> Hi Bj=C3=B6rn,
>=20
> On Tue, 9 Oct 2018 09:44:14 +0200
> Bj=C3=B6rn H=C3=B6fling <bjoern.hoefling@HIDDEN> wrote:
>=20
> > I haven't looked into the package definitions, just:
> >=20
> > There is already a file avr.scm. Is there any reason you are not
> > adding to this file? =20
>=20
> Newer arduino versions support other platforms, not just avr.  They
> are an IDE and development environment, with only the "arduinocore-"
> packages differing.
>=20
> So in light of this I wouldn't put it into "avr.scm".

OK. Thanks for clarification. I thought that "AVR" and "Arduino" are
somehow synonyms.


> The newer arduino versions require batik, so packages for batik have
> to be finished first.
> That requires xalan, so that has to be finished first.
> And that requires java-cup which cannot be bootstrapped without
> binaries.

I see. CUP requires at least cup.jar and jflex.jar. jfex.jar uses
jflex.jar...=20

I took a quick look: Jflex 1.4.1's LexParse.java:

https://github.com/jflex-de/jflex/blob/release_1_4_1/jflex/src/JFlex/LexPar=
se.java

was generated by CUPS v0.10.k.

And if you download that:

http://www2.cs.tum.edu/projects/cup/releases/

the 0.10.k's parser.java was generated by CUP v0.10k...

And that doesn't look like it counts as source code:

  /** Production table. */
  protected static final short _production_table[][] =3D=20
    unpackFromStrings(new String[] {
    "\000\153\000\002\002\004\000\002\055\002\000\002\003" +
    "\012\000\002\003\007\000\002\056\002\000\002\004\006" +
    "\000\002\004\003\000\002\005\004\000\002\005\003\000" +
[..]

Is it that what you meant by bootstrapping from binaries?

It would be so simple, if one just wouldn't care ...

Bj=C3=B6rn

--Sig_/6iIpY1ZmSSeCCpW_qmTKYD+
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlu9EsgACgkQvyhstlk+X/2dYgCgpecDRZeO+1l5RyGYN7YEbkUs
X8MAn1qQ61VFMS8siHl/DuSmh2OWdCPy
=SuGG
-----END PGP SIGNATURE-----

--Sig_/6iIpY1ZmSSeCCpW_qmTKYD+--




Information forwarded to guix-patches@HIDDEN:
bug#32923; Package guix-patches. Full text available.

Message received at 32923 <at> debbugs.gnu.org:


Received: (at 32923) by debbugs.gnu.org; 9 Oct 2018 15:26:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 09 11:26:40 2018
Received: from localhost ([127.0.0.1]:42487 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g9tuC-0003YJ-2p
	for submit <at> debbugs.gnu.org; Tue, 09 Oct 2018 11:26:40 -0400
Received: from dd26836.kasserver.com ([85.13.145.193]:50144)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1g9tuA-0003Y9-HE
 for 32923 <at> debbugs.gnu.org; Tue, 09 Oct 2018 11:26:39 -0400
Received: from localhost (unknown [46.125.250.86])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id BCA7733603CF;
 Tue,  9 Oct 2018 17:26:36 +0200 (CEST)
Date: Tue, 9 Oct 2018 17:26:28 +0200
From: Danny Milosavljevic <dannym@HIDDEN>
To: =?ISO-8859-1?Q?Bj=F6rn_H=F6fling?= <bjoern.hoefling@HIDDEN>
Subject: Re: [bug#32923] [PATCH 0/3] Add Arduino basics.
Message-ID: <20181009172628.38d19f63@HIDDEN>
In-Reply-To: <20181009094414.38cde83b@alma-ubu>
References: <20181003194205.3627-1-dannym@HIDDEN>
 <20181009094414.38cde83b@alma-ubu>
X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 boundary="Sig_/H6z==RMM/dVdlLQg1nXM.fU"; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 32923
Cc: 32923 <at> debbugs.gnu.org
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: -1.7 (-)

--Sig_/H6z==RMM/dVdlLQg1nXM.fU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Bj=C3=B6rn,

On Tue, 9 Oct 2018 09:44:14 +0200
Bj=C3=B6rn H=C3=B6fling <bjoern.hoefling@HIDDEN> wrote:

> I haven't looked into the package definitions, just:
>=20
> There is already a file avr.scm. Is there any reason you are not adding
> to this file?

Newer arduino versions support other platforms, not just avr.  They are an
IDE and development environment, with only the "arduinocore-" packages
differing.

So in light of this I wouldn't put it into "avr.scm".

The newer arduino versions require batik, so packages for batik have to be
finished first.
That requires xalan, so that has to be finished first.
And that requires java-cup which cannot be bootstrapped without binaries.

So a newer arduino version is going to take a while.

> If you stick with the arduino.scm, you should add it to gnu/local.mk.

Thanks!

--Sig_/H6z==RMM/dVdlLQg1nXM.fU
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlu8yKQACgkQ5xo1VCww
uqU1kQgAjlh9yVxI4YAWMLcFo+p66LOqKzHRqe/L2987Az27G8GQZmfsj77DTgwl
6RWLKYQGq33Bl+XH81M/pp6+++paKN51tUg0Mb4hpwIIDfOtNVtvTbl7mXNJ3NnS
OowC0vmBeSV0h5SZqzqBO1G/9rheZF+x6aKD9w2tRnS35Wwt1YoM2bQT+PHZJ2PJ
XwgpkmPeQKkaPAURifHzVg6Lzy/1Q8l65MUxEh+bpNpO68vqkIf6wP48FFnEMsUh
RzcSkK/wBMdZsjGhjKureTYigRFqBkA4ZFy03vfGnV+qVL4zH6zmXU6rLgZw41LE
PbmbjsR5cvGRWq+yqOy8QHF9GzxhfA==
=RcVd
-----END PGP SIGNATURE-----

--Sig_/H6z==RMM/dVdlLQg1nXM.fU--




Information forwarded to guix-patches@HIDDEN:
bug#32923; Package guix-patches. Full text available.

Message received at 32923 <at> debbugs.gnu.org:


Received: (at 32923) by debbugs.gnu.org; 9 Oct 2018 07:44:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 09 03:44:30 2018
Received: from localhost ([127.0.0.1]:41136 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g9mgv-0000hk-PA
	for submit <at> debbugs.gnu.org; Tue, 09 Oct 2018 03:44:29 -0400
Received: from m4s11.vlinux.de ([83.151.27.109]:60954 helo=bjoernhoefling.de)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bjoern.hoefling@HIDDEN>)
 id 1g9mgu-0000hc-8y
 for 32923 <at> debbugs.gnu.org; Tue, 09 Oct 2018 03:44:28 -0400
Received: from alma-ubu (p57B52D3E.dip0.t-ipconnect.de [87.181.45.62])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by bjoernhoefling.de (Postfix) with ESMTPSA id A879240249;
 Tue,  9 Oct 2018 09:44:26 +0200 (CEST)
Date: Tue, 9 Oct 2018 09:44:14 +0200
From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= <bjoern.hoefling@HIDDEN>
To: Danny Milosavljevic <dannym@HIDDEN>
Subject: Re: [bug#32923] [PATCH 0/3] Add Arduino basics.
Message-ID: <20181009094414.38cde83b@alma-ubu>
In-Reply-To: <20181003194205.3627-1-dannym@HIDDEN>
References: <20181003194205.3627-1-dannym@HIDDEN>
X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
 boundary="Sig_/f297U8NoI8uyJJMgsiHn=tf"; protocol="application/pgp-signature"
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 32923
Cc: 32923 <at> debbugs.gnu.org
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: -0.9 (/)

--Sig_/f297U8NoI8uyJJMgsiHn=tf
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Wed,  3 Oct 2018 21:42:05 +0200
Danny Milosavljevic <dannym@HIDDEN> wrote:

> Danny Milosavljevic (3):
>   gnu: Add arduino-hardware.
>   gnu: Add arduino-libraries.
>   gnu: Add arduino-makefile.
>=20
>  gnu/packages/arduino.scm | 207
> +++++++++++++++++++++++++++++++++++++++ 1 file changed, 207
> insertions(+) create mode 100644 gnu/packages/arduino.scm
>=20
>=20
>=20

Hi Danny,

I haven't looked into the package definitions, just:

There is already a file avr.scm. Is there any reason you are not adding
to this file?

If you stick with the arduino.scm, you should add it to gnu/local.mk.

Bj=C3=B6rn

--Sig_/f297U8NoI8uyJJMgsiHn=tf
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlu8XE8ACgkQvyhstlk+X/0hZACeIL3r0P3MuuJEawSQNgvK/BjW
prQAniUn+K749tei4grKWJL1Wqxukv/2
=kg2/
-----END PGP SIGNATURE-----

--Sig_/f297U8NoI8uyJJMgsiHn=tf--




Information forwarded to guix-patches@HIDDEN:
bug#32923; Package guix-patches. Full text available.

Message received at 32923 <at> debbugs.gnu.org:


Received: (at 32923) by debbugs.gnu.org; 3 Oct 2018 19:44:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 03 15:44:23 2018
Received: from localhost ([127.0.0.1]:36075 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g7n4F-0002qE-TL
	for submit <at> debbugs.gnu.org; Wed, 03 Oct 2018 15:44:23 -0400
Received: from dd26836.kasserver.com ([85.13.145.193]:49462)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1g7n4D-0002ps-V9
 for 32923 <at> debbugs.gnu.org; Wed, 03 Oct 2018 15:44:18 -0400
Received: from localhost.localdomain (84-113-15-225.cable.dynamic.surfer.at
 [84.113.15.225])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 400EB33677AF;
 Wed,  3 Oct 2018 21:44:17 +0200 (CEST)
From: Danny Milosavljevic <dannym@HIDDEN>
To: 32923 <at> debbugs.gnu.org
Subject: [PATCH 3/3] gnu: Add arduino-makefile.
Date: Wed,  3 Oct 2018 21:44:13 +0200
Message-Id: <20181003194413.3696-3-dannym@HIDDEN>
X-Mailer: git-send-email 2.19.0
In-Reply-To: <20181003194413.3696-1-dannym@HIDDEN>
References: <20181003194205.3627-1-dannym@HIDDEN>
 <20181003194413.3696-1-dannym@HIDDEN>
MIME-Version: 1.0
Tags: patch
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 32923
Cc: Danny Milosavljevic <dannym@HIDDEN>
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: -1.7 (-)

* gnu/packages/arduino.scm (arduino-makefile): Add variable.
---
 gnu/packages/arduino.scm | 83 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 83 insertions(+)

diff --git a/gnu/packages/arduino.scm b/gnu/packages/arduino.scm
index 369ca68a7..f976a197e 100644
--- a/gnu/packages/arduino.scm
+++ b/gnu/packages/arduino.scm
@@ -122,3 +122,86 @@
               (replace 'install ,(arduino-installer "libraries"))))))
     ;; Note: Some parts are BSD and ASL-2.0 licensed.
     (license (list license:lgpl2.1+ license:gpl3+))))
+
+(define-public arduino-makefile
+  (package
+    (name "arduino-makefile")
+    (version "1.6.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/sudar/Arduino-Makefile.git")
+                    (commit version)))
+              (sha256
+               (base32
+                "0flpl97d2231gp51n3y4qvf3y1l8xzafi1sgpwc305vwc2h4dl2x"))
+              (file-name (string-append name "-" version ".tar.gz"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f ; no tests exist
+       #:phases
+        (modify-phases %standard-phases
+          (delete 'configure)
+          (add-after 'unpack 'patch-paths
+            (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((avr-gcc (assoc-ref inputs "avr-toolchain-5")))
+              (substitute* "bin/ard-reset-arduino"
+                (("#!/usr/bin/env python") "#!/usr/bin/python3"))
+              (substitute* "Arduino.mk"
+                (("#    => ARDUINO_DIR.*")
+                   (string-append "ARDUINO_DIR = "
+                                  (assoc-ref %build-inputs "arduino-libraries")
+                                  "/share/arduino\n"))
+                ; ; defaults to "hardware/tools/avr"
+                (("#    => AVR_TOOLS_DIR.*")
+                   (string-append "AVR_TOOLS_DIR = "
+                                  (assoc-ref %build-inputs "avrdude")
+                                  "\n"))
+                (("#    => ARDMK_DIR.*")
+                   (string-append "ARDMK_DIR = "
+                                  (assoc-ref %outputs "out")
+                                  "/share/arduino\n"))
+                (("CC_NAME[ ]*=.*")
+                   (string-append "CC_NAME = " avr-gcc "/bin/avr-gcc\n"))
+                (("CXX_NAME[ ]*=.*")
+                   (string-append "CXX_NAME = " avr-gcc "/bin/avr-g++\n"))
+                (("OBJCOPY_NAME[ ]*=.*")
+                   (string-append "OBJCOPY_NAME = " avr-gcc "/bin/avr-objcopy\n"))
+                (("OBJDUMP_NAME[ ]*=.*")
+                   (string-append "OBJDUMP_NAME = " avr-gcc "/bin/avr-objdump\n"))
+                (("AR_NAME[ ]*=.*")
+                   (string-append "AR_NAME = " avr-gcc "/bin/avr-ar\n"))
+                (("SIZE_NAME[ ]*=.*")
+                   (string-append "SIZE_NAME = " avr-gcc "/bin/avr-size\n"))
+                (("NM_NAME[ ]*=.*")
+                   (string-append "NM_NAME = " avr-gcc "/bin/avr-nm\n"))))))
+          (delete 'build)
+          (replace 'install
+            (lambda* (#:key outputs #:allow-other-keys)
+              (let* ((out (assoc-ref outputs "out"))
+                     (out-mk (string-append out "/share/arduino"))
+                     (out-doc (string-append out "/share/doc"))
+                     (out-bin (string-append out "/bin"))
+                     (out-man (string-append out "/share/man/man1")))
+                    (mkdir-p out-mk)
+                    (for-each (lambda (name)
+                                (copy-file name (string-append out-mk "/" name)))
+                              '("Arduino.mk" "arduino-mk-vars.md" "chipKIT.mk" "Common.mk"))
+                    (mkdir-p out-doc)
+                    (copy-recursively "examples" out-doc)
+                    (mkdir-p out-bin)
+                    (copy-file "bin/ard-reset-arduino"
+                               (string-append out-bin "/ard-reset-arduino"))
+                    (mkdir-p out-man)
+                    (copy-file "ard-reset-arduino.1"
+                               (string-append out-man "/ard-reset-arduino.1"))))))))
+    (inputs
+     `(("python" ,python)
+       ("python-pyserial" ,python-pyserial)
+       ("arduino-libraries" ,arduino-libraries)
+       ("avrdude" ,avrdude)
+       ("avr-toolchain-5" ,avr-toolchain-5)))
+    (synopsis "Arduino Makefile Include Files")
+    (description "Allows you to build Arduino sketches using a very tiny Makefile")
+    (home-page "https://github.com/sudar/Arduino-Makefile")
+    (license license:lgpl2.1)))




Information forwarded to guix-patches@HIDDEN:
bug#32923; Package guix-patches. Full text available.

Message received at 32923 <at> debbugs.gnu.org:


Received: (at 32923) by debbugs.gnu.org; 3 Oct 2018 19:44:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 03 15:44:18 2018
Received: from localhost ([127.0.0.1]:36073 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g7n4E-0002pw-J4
	for submit <at> debbugs.gnu.org; Wed, 03 Oct 2018 15:44:18 -0400
Received: from dd26836.kasserver.com ([85.13.145.193]:49448)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1g7n4C-0002pg-Fq
 for 32923 <at> debbugs.gnu.org; Wed, 03 Oct 2018 15:44:16 -0400
Received: from localhost.localdomain (84-113-15-225.cable.dynamic.surfer.at
 [84.113.15.225])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id C31C43367840;
 Wed,  3 Oct 2018 21:44:15 +0200 (CEST)
From: Danny Milosavljevic <dannym@HIDDEN>
To: 32923 <at> debbugs.gnu.org
Subject: [PATCH 2/3] gnu: Add arduino-libraries.
Date: Wed,  3 Oct 2018 21:44:12 +0200
Message-Id: <20181003194413.3696-2-dannym@HIDDEN>
X-Mailer: git-send-email 2.19.0
In-Reply-To: <20181003194413.3696-1-dannym@HIDDEN>
References: <20181003194205.3627-1-dannym@HIDDEN>
 <20181003194413.3696-1-dannym@HIDDEN>
MIME-Version: 1.0
Tags: patch
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 32923
Cc: Danny Milosavljevic <dannym@HIDDEN>
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: -1.7 (-)

* gnu/packages/arduino.scm (arduino-libraries): New variable.
---
 gnu/packages/arduino.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/arduino.scm b/gnu/packages/arduino.scm
index 24f109ecd..369ca68a7 100644
--- a/gnu/packages/arduino.scm
+++ b/gnu/packages/arduino.scm
@@ -104,3 +104,21 @@
 (boards.txt etc).")
     ;; GPL covers the main body ("app", "core").  LGPL covers the remainder.
     (license (list license:lgpl2.1+ license:gpl3+))))
+
+(define-public arduino-libraries
+  (package (inherit arduino-hardware)
+    (name "arduino-libraries")
+    (inputs
+     `(("arduino-hardware" ,arduino-hardware)))
+    (arguments
+      (substitute-keyword-arguments
+        (package-arguments arduino-hardware)
+        ((#:phases phases)
+            `(modify-phases ,phases
+              (replace 'chdir
+                (lambda _
+                  (chdir "libraries")
+                  #t))
+              (replace 'install ,(arduino-installer "libraries"))))))
+    ;; Note: Some parts are BSD and ASL-2.0 licensed.
+    (license (list license:lgpl2.1+ license:gpl3+))))




Information forwarded to guix-patches@HIDDEN:
bug#32923; Package guix-patches. Full text available.

Message received at 32923 <at> debbugs.gnu.org:


Received: (at 32923) by debbugs.gnu.org; 3 Oct 2018 19:44:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 03 15:44:18 2018
Received: from localhost ([127.0.0.1]:36070 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g7n4D-0002pt-TR
	for submit <at> debbugs.gnu.org; Wed, 03 Oct 2018 15:44:18 -0400
Received: from dd26836.kasserver.com ([85.13.145.193]:49440)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1g7n4B-0002pc-UG
 for 32923 <at> debbugs.gnu.org; Wed, 03 Oct 2018 15:44:16 -0400
Received: from localhost.localdomain (84-113-15-225.cable.dynamic.surfer.at
 [84.113.15.225])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id B606D33677AF;
 Wed,  3 Oct 2018 21:44:14 +0200 (CEST)
From: Danny Milosavljevic <dannym@HIDDEN>
To: 32923 <at> debbugs.gnu.org
Subject: [PATCH 1/3] gnu: Add arduino-hardware.
Date: Wed,  3 Oct 2018 21:44:11 +0200
Message-Id: <20181003194413.3696-1-dannym@HIDDEN>
X-Mailer: git-send-email 2.19.0
In-Reply-To: <20181003194205.3627-1-dannym@HIDDEN>
References: <20181003194205.3627-1-dannym@HIDDEN>
MIME-Version: 1.0
Tags: patch
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 32923
Cc: Danny Milosavljevic <dannym@HIDDEN>
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: -1.7 (-)

* gnu/packages/arduino.scm (arduino-installer): New procedure.
(arduino-hardware): New variable.
---
 gnu/packages/arduino.scm | 106 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 106 insertions(+)
 create mode 100644 gnu/packages/arduino.scm

diff --git a/gnu/packages/arduino.scm b/gnu/packages/arduino.scm
new file mode 100644
index 000000000..24f109ecd
--- /dev/null
+++ b/gnu/packages/arduino.scm
@@ -0,0 +1,106 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2016 Danny Milosavljevic <dannym@HIDDEN>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages arduino)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix utils)
+  #:use-module (guix download)
+  #:use-module (guix git-download)
+  #:use-module (guix packages)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix build-system python)
+  #:use-module (guix build-system ant)
+  #:use-module (gnu packages)
+  #:use-module (gnu packages avr)
+  #:use-module (gnu packages flashing-tools)
+  #:use-module (gnu packages java)
+  #:use-module (gnu packages python))
+
+(define (arduino-installer filename)
+  `(lambda* (#:key outputs #:allow-other-keys)
+    (let* ((out (assoc-ref outputs "out"))
+           (out-share (string-append out "/share/arduino"))
+           (out-share-part (string-append out-share "/" ,filename)))
+     (mkdir-p out-share)
+     (copy-recursively ,filename out-share-part))))
+
+(define-public arduino-hardware
+  (package
+    (name "arduino-hardware")
+    (version "1.8.7")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/arduino/Arduino.git")
+                    (commit version)))
+              (sha256
+               (base32
+                "0cp502jf3xsrisadkrmxzylds48x60vparxm5lfcrzw27hw0qxgq"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  ;; Delete bundled jar archives.
+                  (for-each delete-file (find-files "." "\\.jar$"))
+                  #t))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f                      ; No tests exist
+       #:modules ((guix build utils) (ice-9 match)
+                  (guix build gnu-build-system))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (delete 'build)
+         (add-after 'unpack 'prepare-dependencies
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             ;; This is intended to just prepare arduino inputs where its
+             ;; build system expects them.
+             (for-each (match-lambda
+                         ((key . value)
+                          (let* ((out-dir (assoc-ref outputs "out"))
+                                 (destination-dir
+                                  (string-append out-dir "/share/arduino")))
+                            (if (string-prefix? "arduino-" key)
+                                (let* ((basename
+                                        (string-drop key
+                                                     (string-length "arduino-")))
+                                       (target-outdir (assoc-ref inputs key))
+                                       (target-dir
+                                        (string-append target-outdir
+                                                       "/share/arduino"))
+                                       (target (string-append target-dir
+                                                              "/" basename))
+                                       (destination
+                                        (string-append destination-dir "/"
+                                                       basename)))
+                                  (mkdir-p destination-dir)
+                                  (symlink target destination)
+                                  #t)))))
+                       inputs)
+             #t))
+         (add-before 'build 'chdir
+           (lambda _
+             (chdir "hardware")
+             #t))
+         (replace 'install ,(arduino-installer "hardware")))))
+    (home-page "https://www.arduino.cc/")
+    (synopsis "Arduino Hardware Spec Files")
+    (description "@code{arduino-hardware} contains Arduino Hardware Spec Files
+(boards.txt etc).")
+    ;; GPL covers the main body ("app", "core").  LGPL covers the remainder.
+    (license (list license:lgpl2.1+ license:gpl3+))))




Information forwarded to guix-patches@HIDDEN:
bug#32923; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Oct 2018 19:42:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 03 15:42:36 2018
Received: from localhost ([127.0.0.1]:36059 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g7n2a-0002mT-6c
	for submit <at> debbugs.gnu.org; Wed, 03 Oct 2018 15:42:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50792)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1g7n2Y-0002mD-76
 for submit <at> debbugs.gnu.org; Wed, 03 Oct 2018 15:42:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dannym@HIDDEN>) id 1g7n2R-0003R5-Sj
 for submit <at> debbugs.gnu.org; Wed, 03 Oct 2018 15:42:28 -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]:60641)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <dannym@HIDDEN>)
 id 1g7n2R-0003QR-CJ
 for submit <at> debbugs.gnu.org; Wed, 03 Oct 2018 15:42:27 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60349)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dannym@HIDDEN>) id 1g7n2Q-0003Va-Cq
 for guix-patches@HIDDEN; Wed, 03 Oct 2018 15:42:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dannym@HIDDEN>) id 1g7n2M-0003M7-J4
 for guix-patches@HIDDEN; Wed, 03 Oct 2018 15:42:26 -0400
Received: from dd26836.kasserver.com ([85.13.145.193]:36328)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <dannym@HIDDEN>)
 id 1g7n2K-0003Dk-7f
 for guix-patches@HIDDEN; Wed, 03 Oct 2018 15:42:22 -0400
Received: from localhost.localdomain (84-113-15-225.cable.dynamic.surfer.at
 [84.113.15.225])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 7AB793367793;
 Wed,  3 Oct 2018 21:42:07 +0200 (CEST)
From: Danny Milosavljevic <dannym@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH 0/3] Add Arduino basics.
Date: Wed,  3 Oct 2018 21:42:05 +0200
Message-Id: <20181003194205.3627-1-dannym@HIDDEN>
X-Mailer: git-send-email 2.19.0
MIME-Version: 1.0
Tags: patch
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
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 <dannym@HIDDEN>
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: -6.0 (------)

Danny Milosavljevic (3):
  gnu: Add arduino-hardware.
  gnu: Add arduino-libraries.
  gnu: Add arduino-makefile.

 gnu/packages/arduino.scm | 207 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 207 insertions(+)
 create mode 100644 gnu/packages/arduino.scm





Acknowledgement sent to Danny Milosavljevic <dannym@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#32923; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 9 Oct 2018 20:45:02 UTC

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