Index: comms/rxtx/Makefile =================================================================== --- comms/rxtx/Makefile (revision 420316) +++ comms/rxtx/Makefile (working copy) @@ -14,7 +14,6 @@ COMMENT= Native interface to serial ports in Java USES= gmake libtool zip -USE_LINUX= c6 USE_JAVA= yes JAVA_VERSION= 1.6+ I tested the code without this flag also uninstall all linux packages, arduino still works well. The change will avoid install Linux package when not necessary.
Hi Howard, I believe from memory that there is a dependency on certain components for all of RxTx functions to operate as expected. Give me a few days to have a look into this in detail, and I'll post my findings back here. Is this causing a functional issue for you? Kind regards, James
(In reply to JamesElstone from comment #1) I would love to know the details of issues and I can fix. There are lots of places in the code of rxtx use "#if FREEBSD" to support FreeBSD already. it doesn't make sense that enable Linux while building rxtx for FreeBSD. It doesn't sound correct to me. Based on my testing, it works fine with Arduino.
> Give me a few days to have a look into this in detail, and I'll post my findings back here. Quite a few days have passed. Any news?
Hi Howard, Sorry for my tardy response; I have been on the receiving end of a car accident. Have had a look at the code base today, and it maybe possible to reduce this requirement, and fully understand your point. linux-c6 was added in to meet a required missing dependancy last year. I am also mindful that while it compiles, I want to make sure it functionally works in all known scenarios, as right now it is working. I will have access to a bare metal system this weekend to functionally check that 32-bit and 64-bit systems are OK with the ommission. RxTx is used beyond those defined in the ports tree and don't want to interupt functionality for the existing Arduino userbase. I will comment further at the weekend; Was there specific areas of the java code that you thought needed attention beyond the update in the Makefile? Kr, James
Ping again
Right, oddly cannot find reference for any Linux c6 component. Want to make very sure that any changes doesn't fluff it up, but have a very distinct memory the c6 dependancy had to be added to handle an unfullfilled reference somewhere!! To make very sure, am going to spin up four x11 installations from bare metal on 10.3-STABLE and 11.0-STABLE for both i386 and amd64 to double check, all is OK, and it is not my desktop machine causing my confusion... Currently X11 installing on 11.0-STABLE on two nodes, and 10.3-STABLE installing on to bear metal for another two. Will try to commit time to this over the comming week.
Months have passed. Ping?
Confirmed Linux linkage is only in JAR file provided initially with Arduino IDE v1.0.6, of which are removed during installation of the "devel/arduino" port and linked to the ones herein. Dependencies are correct. Portlint reports 13 warnings of regarding generation of patch files, and no errors. The port patches without error as intended. Poudriere log attached for reference. Diff file attached for committal when someone with a commit bit has time please. Tested with Arduino / Genuino I have here using 11.0-RELEASE-p5 (r310098) on ports tree (r428598). Upload works fine. Once added permissions to non-root user to dialer group behaved as expected. Information about dialer group requirements contained in Arduino pkg_info message. (P.S. I had forgotten how much duration it takes to get a X window system running from cold metal, and thus finding the time to support this was a challenge).
Created attachment 178252 [details] Portlint output
Created attachment 178253 [details] svn diff file for "Makefile" This file is to be committed when possible please.
(Re-running Poudriere due to human error in copying the log from my build system; will attach ASAP).
A commit references this bug: Author: amdmi3 Date: Sun Dec 25 13:37:17 UTC 2016 New revision: 429423 URL: https://svnweb.freebsd.org/changeset/ports/429423 Log: - Remove unneeded depend on linux emulation PR: 212037 Submitted by: james@elstone.net (maintainer) Reported by: howard0su@gmail.com Changes: head/comms/rxtx/Makefile