Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751562 - dev-embedded/arduino-1.8.13: Needs patched astyle for source code formatting
Summary: dev-embedded/arduino-1.8.13: Needs patched astyle for source code formatting
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
Depends on:
Reported: 2020-10-28 08:57 UTC by Jan Seeger
Modified: 2020-10-28 16:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Jan Seeger 2020-10-28 08:57:48 UTC
Apparently, the arduino project requires a patched astyle to work correctly. The correct patches are available at [1], but I don't know how to make the patched version available for arduino only. Maybe with an extended java.library.path?


Reproducible: Always

Steps to Reproduce:
1. emerge arduino
2. run 'arduino'
3. Press Ctrl+T

Actual Results:  
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: cc.arduino.packages.formatter.AStyleInterface.AStyleMain(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	at cc.arduino.packages.formatter.AStyleInterface.AStyleMain(Native Method)
	at java.awt.event.InvocationEvent.dispatch(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$500(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Expected Results:  
Formatted source code.
Comment 1 Jan Seeger 2020-10-28 09:27:18 UTC
I have built the astyle from the included link, and can confirm that source code formatting works using these patches. If someone could advise me on how to build a "special" version of astyle for arduino, I could probably write an ebuild.