From: Danny Milosavljevic <dannym@scratchpost.org>
To: Eric Bavier <ericbavier@openmailbox.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 5/5] gnu: Add arduino-makefile.
Date: Wed, 17 Aug 2016 11:03:52 +0200 [thread overview]
Message-ID: <20160817110352.3011e442@scratchpost.org> (raw)
In-Reply-To: <20160817000228.116a0d10@openmailbox.org>
> Should this not point to /gnu/store/...-python-3...? If not, it could
> probably be left alone, since any package built with it will presumably
> have its shebangs patched.
It's just that Python 3 is incompatible with Python 2 but the source code has no marker in the file - so patch-shebang would have to use a crystal ball, tea leaves or whatever to find out it is indeed Python 3. I expect that patch-shebang will then see python3 and correct it - and it does.
> You can use 'install-file' from (guix build utils) here to remove much
> of the repitition.
Ah, nice!
> > + ;(supported-systems '("avr"))
>
> You can remove this comment.
I wouldn't. It's nice to see that it's for AVR even if we don't use the whole target machinery (I tried invoking "guix build --target=avr" before and it rebuilt half the universe - not sure why. There are not many non-native inputs and the native inputs are... native).
> I don't have an arduino to test this package on. Can anyone else help
> with this?
You can still test the compilation and linkage.
My Makefile to test this looks like this:
ARCHITECTURE = avr
BOARD_TAG = uno
# shouldn't be necessary but is
CPPFLAGS += -I${HOME}/.guix-profile/avr/include
# shouldn't be necessary but is. The "-L" flag order matters.
LDFLAGS += -L${HOME}/.guix-profile/avr/lib/avr5 -L${HOME}/.guix-profile/avr/lib -B${HOME}/.guix-profile/avr/lib
include /gnu/store/k21m6b7c8bmzxk5x73zqm0qaz769lx2d-arduino-makefile-1.5.1/share/arduino/Arduino.mk
Then create a file Blink.ino in the same directory which contains:
void setup() {
}
void loop() {
}
Then run
$ make
next prev parent reply other threads:[~2016-08-17 9:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-16 18:36 [PATCH 0/5] gnu: Add Arduino tools Danny Milosavljevic
2016-08-16 18:36 ` [PATCH 1/5] gnu: Add "arduino" module Danny Milosavljevic
2016-08-16 22:40 ` Eric Bavier
2016-08-16 18:36 ` [PATCH 2/5] gnu: arduino: Add "arduino-installer" helper Danny Milosavljevic
2016-08-16 18:36 ` [PATCH 3/5] gnu: arduino: Add arduino-hardware Danny Milosavljevic
2016-08-16 22:53 ` Eric Bavier
2016-08-16 18:36 ` [PATCH 4/5] gnu: arduino: Add arduino-libraries Danny Milosavljevic
2016-08-16 22:56 ` Eric Bavier
2016-08-16 23:23 ` Danny Milosavljevic
2016-08-16 18:36 ` [PATCH 5/5] gnu: Add arduino-makefile Danny Milosavljevic
2016-08-17 5:02 ` Eric Bavier
2016-08-17 9:03 ` Danny Milosavljevic [this message]
2016-08-16 18:49 ` Maven Danny Milosavljevic
2016-08-17 6:16 ` Maven Ricardo Wurmus
2016-08-30 9:21 ` [PATCH 0/5] gnu: Add Arduino tools Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160817110352.3011e442@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=ericbavier@openmailbox.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.