[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cross-building java bindings





On 2/21/22 17:14, IOhannes m zmölnig (Debian GNU|Linux) wrote:

hi,

one of my packages (csound) provides java-bindings.
for this, it B-Ds on "default-jdk".

Unfortunately, "default-jdk" pulls in the HOST binaries of `javac`, which of course doesn't work when cross-building.

i wonder: is the correct solution to B-D on "default-jdk:native", or to set the default-jdk's (and probably it's dependencies that actually implement the "Default JDK"'s) Multi-Arch field to "foreign" (or something else)?

i see that "openjdk-11-jdk-headless" (which is what "default-jdk" ultimately installs today) is marked "Multi-Arch: same".

this probably only shows that i am still utterly confused when it comes to Multi-Arch hints.


otoh, on re-reading https://wiki.ubuntu.com/MultiarchSpec

it is obvious that if the JDK is co-installable (which i think it is, given that all binary files are installed into arch-triplet paths), then the only proper value is "Multi-Arch: same".

so i return to field#1 and set B-D on "default-jdk:native" ?

mdfasdre
IOhannes

Attachment: OpenPGP_0xB65019C47F7A36F8.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: