Re: Maybe make jna-4 optional, jna-3 is preferred here

2021-02-01 Thread Dr. Arne Babenhauserheide

Dennis Nezic  writes:

> Why are we forced to use JNA-4? (Looks like it was introduced in 1486?
> [1])

There was a problem with the update of Java on Windows which would have
broken all Windows nodes with the old JNA.

> In my distro, it pulls in a whole bunch of X11 stuff, starting with
> libXt, none of which I need since it's a headless server. JNA-3 doesn't
> have such dependencies.
>
> Things compile and work fine here with jna-3.4.1 if I get rid of one
> "isAndroid()" call in src/freenet/support/JVMVersion.java[2] ... it
> seems like that's the only JNA-4 specific code?

You could easily patch that out — the patch looks good for desktop.

> If JNA-4 really is needed for some people, perhaps there can be a
> config compile-time option for this?

It is needed on Windows and on Android.

> [1] https://freenetproject.org/freenet-build-1486-released.html
> [2] https://754990.bugs.gentoo.org/attachment.cgi?id=671710

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken


signature.asc
Description: PGP signature


Re: Maybe make jna-4 optional, jna-3 is preferred here

2021-01-01 Thread Dennis Nezic
Nevermind, jna-4 did not actually need libXt or any X11 stuff (with a
headless configuration). Woops. Carry on.