Created attachment 181930 [details] ouput from make It fails with this.... compile: [mkdir] Created dir: /usr/obj/ARC/src/FreeBSD/ports/head/devel/arduino18/work/Arduino-1.8.2/arduino-core/bin [javac] Compiling 134 source files to /usr/obj/ARC/src/FreeBSD/ports/head/devel/arduino18/work/Arduino-1.8.2/arduino-core/bin [javac] javac: invalid target release: 1.8 [javac] Usage: javac <options> <source files> [javac] use -help for a list of possible options BUILD FAILED /usr/obj/ARC/src/FreeBSD/ports/head/devel/arduino18/work/Arduino-1.8.2/build/build.xml:103: The following error occurred while executing this line: /usr/obj/ARC/src/FreeBSD/ports/head/devel/arduino18/work/Arduino-1.8.2/build/build.xml:150: The following error occurred while executing this line: /usr/obj/ARC/src/FreeBSD/ports/head/devel/arduino18/work/Arduino-1.8.2/arduino-core/build.xml:41: Compile failed; see the compiler error output for details. For the full make output, see the attached file.
Created attachment 181937 [details] svn(1) diff of devel/arduino18 Hi, Please try the attached patch. It will likely force you to pull in java/openjdk8 because I was not previously specifying required Java version =(. Thanks, Kyle Evans
It builds and installs now, but is not usable. [kitsune@vixen42]/home/kitsune% arduino Picked up JAVA_TOOL_OPTIONS: java.lang.NullPointerException at processing.app.BaseNoGui.createToolPreferences(BaseNoGui.java:703) at processing.app.BaseNoGui.initPackages(BaseNoGui.java:501) at processing.app.Base.<init>(Base.java:257) at processing.app.Base.main(Base.java:140) Exit 255
Created attachment 181957 [details] svn(1) diff of devel/arduino-core Hi, Apologies for the breakage -- the attached patch to devel/arduino-core and a rebuild of that should fix it. If you want to try it without rebuilding, this is the end result of that patch to /usr/local/arduino/hardware/package_index_bundled.json: --- package_index_bundled.json.orig 2017-04-20 13:40:17.586096000 -0500 +++ package_index_bundled.json 2017-04-20 13:40:28.961958000 -0500 @@ -85,36 +85,36 @@ "name": "avrdude", "version": "6.3.0-arduino9", "systems": [ { - "host": "-freebsd12" + "host": "amd64-freebsd12" } ] }, { "name": "avr-gcc", "version": "4.9.2-atmel3.5.4-arduino2", "systems": [ { - "host": "-freebsd12" + "host": "amd64-freebsd12" } ] }, { "name": "bossac", "version": "1.7.0", "systems": [ { - "host": "-freebsd12" + "host": "amd64-freebsd12" } ] }, { "name": "arduinoOTA", "version": "1.1.1", "systems": [ { - "host": "-freebsd12" + "host": "amd64-freebsd12" } ] } ]
Hi bsam@, Can you please pick up these two patches, one to devel/arduino18 and the other to devel/arduino-core? arduino18 shouldn't need a PORTREVISION bump because this just fixes breakage for those that didn't previously have java/openjdk8 installed. arduino-core gets a PORTREVISION bump since it's entirely possibly people (such as Zane here) have already installed the broken-ness. I really wish upstream would make this a little bit easier, forego the platform checks and just let us specify a path to a working version, but my previous discussion with them on it didn't seem to go anywhere. =(
Take.
> arduino18 shouldn't need a PORTREVISION bump because this just fixes breakage for those that didn't previously have java/openjdk8 installed. Hm, package dependencies would change. I'll bump PORTREVISION there too.
(In reply to Boris Samorodov from comment #6) I suppose that's true- fair enough. =) Thanks!
A commit references this bug: Author: bsam Date: Thu Apr 20 19:55:58 UTC 2017 New revision: 438992 URL: https://svnweb.freebsd.org/changeset/ports/438992 Log: devel/arduino-core: fix ARCH name reintplacement. PR: 218770 Submitted by: Zane C. Bowers-Hadley <vvelox@vvelox.net> Patched by: Kyle Evans <bsdports@kyle-evans.net> (maintainer) Changes: head/devel/arduino-core/Makefile
A commit references this bug: Author: bsam Date: Thu Apr 20 19:58:08 UTC 2017 New revision: 438993 URL: https://svnweb.freebsd.org/changeset/ports/438993 Log: devel/arduino18: Java 1.8+ is needed. PR: 218770 Submitted by: Zane C. Bowers-Hadley <vvelox@vvelox.net> Reported by: Kyle Evans <bsdports@kyle-evans.net> (maintainer)) Changes: head/devel/arduino18/Makefile
Committed, thanks!
Tested and it all works now. Thanks ya'll!