Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 754990

Summary: net-p2p/freenet-0.7.5_p1488 should try to avoid pulling in X11 deps via jna:4
Product: Gentoo Linux Reporter: Dennis Nezic <dennisn>
Component: Current packagesAssignee: Thomas Sachau <tommy>
Status: RESOLVED INVALID    
Severity: normal CC: jstein, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: diff to ebuild to avoid using jna:4
slight change to source code to avoid jna:4

Description Dennis Nezic 2020-11-17 03:26:25 UTC
Created attachment 671707 [details, diff]
diff to ebuild to avoid using jna:4

net-p2p/freenet-0.7.5_p1488 does not _really_ seem to depend on dev-java/jna:4, does it?

I really don't feel like installing it, since it pulls in a bunch of X11 dependencies (starting with x11-libs/libXt), that I have no need for on my headless server! (Unlike the other jna-3.4.1 in the portage tree.)

I tried getting rid of the 3 mentions of jna-4 in the 1488 ebuild (diff is attached), and the only compile time error was about some dumb "isAndroid" function which I was also easily able to get rid of from two lines in src/freenet/support/JVMVersion.java, diff is attached.

[javac] /var/tmp/portage/net-p2p/freenet-0.7.5_p1488/work/fred-build01488/src/freenet/support/JVMVersion.java:3: error: cannot find symbol
    [javac] import static com.sun.jna.Platform.isAndroid;
    [javac] ^
    [javac]   symbol:   static isAndroid
Comment 1 Dennis Nezic 2020-11-17 03:27:05 UTC
Created attachment 671710 [details, diff]
slight change to source code to avoid jna:4
Comment 2 Thomas Sachau gentoo-dev 2020-12-28 10:30:03 UTC
Please send a request to upstream to either change the code to not use that function from jna-4 or have an optional switch that avoids this dependency.
Comment 3 Dennis Nezic 2021-01-01 16:10:18 UTC
Hmmm, apparently jna-4 did not need libXt! I will file another bug report about that. This bug report can be closed.
Comment 4 Thomas Sachau gentoo-dev 2021-03-28 09:18:28 UTC
Closing bug as requested.