Package: arduino / 2:1.8.19+dfsg1-3

debian-hacks/Use-system-library-astylej.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Scott Howard <showard@debian.org>
Date: Wed, 28 Mar 2018 15:52:22 -0300
Subject: Use system library astylej

Forwarded: not-needed
---
 app/src/cc/arduino/packages/formatter/AStyleInterface.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/src/cc/arduino/packages/formatter/AStyleInterface.java b/app/src/cc/arduino/packages/formatter/AStyleInterface.java
index 4224bf1..fa92506 100644
--- a/app/src/cc/arduino/packages/formatter/AStyleInterface.java
+++ b/app/src/cc/arduino/packages/formatter/AStyleInterface.java
@@ -41,7 +41,7 @@ public class AStyleInterface {
       loadLib(Base.getContentFile(System.mapLibraryName("msvcp100")));
       loadLib(Base.getContentFile(System.mapLibraryName("msvcr100")));
     }
-    loadLib(new File(Base.getContentFile("lib"), System.mapLibraryName("astylej")));
+    System.loadLibrary("astylej");
   }
 
   private static void loadLib(File lib) {