> > ... wasn't the whole idea of Java to be arch independent?
> That's true, but Tuxguitar comes with some audio modules written in C/C++ 
> (see 
> build-scripts/native-modules/).
> I was able to cross compile them with aarch64-linux-gnu-gcc etc. on amd64. 
> Next I will try to cross-build the whole package with sbuild (thanks for the 
> links, Lourisvaldo).
sbuild works fine for native builds on amd64, but fails for cross-builds 
(sbuild --host=arm64) with the following error:

The following packages have unmet dependencies:
 sbuild-build-depends-main-dummy:arm64 : Depends: debhelper-compat:arm64 (= 13)
                                         Depends: maven-debian-helper:arm64 (>= 
2.6) but it is not installable
                                         Depends: 
libmaven-antrun-plugin-java:arm64 but it is not installable
                                         Depends: 
libmaven-compiler-plugin-java:arm64 but it is not installable
                                         Depends: 
libmaven-dependency-plugin-java:arm64 but it is not installable
                                         Depends: 
libmaven-jar-plugin-java:arm64 but it is not installable
                                         Depends: default-jdk:arm64 but it is 
not going to be installed
                                         Depends: docbook-to-man:arm64
                                         Depends: libswt-gtk-4-java:arm64 but 
it is not going to be installed
                                         Depends: libitext5-java:arm64 but it 
is not installable
                                         Depends: libasound2-dev:arm64 but it 
is not going to be installed
                                         Depends: libjack-jackd2-dev:arm64 but 
it is not going to be installed
                                         Depends: libfluidsynth-dev:arm64 but 
it is not going to be installed
                                         Depends: liblilv-dev:arm64 but it is 
not going to be installed
                                         Depends: libsuil-dev:arm64 but it is 
not going to be installed
                                         Depends: qtbase5-dev:arm64 but it is 
not going to be installed
                                         Depends: 
crossbuild-essential-arm64:amd64
                                         Depends: libc-dev:arm64
                                         Depends: libstdc++-dev:arm64
E: External solver failed with: The following packages have unmet dependencies:
apt-get failed.
E: Package installation failed

I get the same error message when i try to cross-build other Java packages like 
tuxguitar-1.2 or pdfsam-4.3.4 from the Debian sources.
The same happens with 'pdebuild -- --host-arch arm64'.

It seems that the dependency resolver tries to install <package>:arm64, but 
fails because the package is architecture-independent <package>:all.

The package inetutils-2.4 builds fine with 'sbuild --host=arm64', probably 
because it does not build-depend on any architecture-independent package.

Of course, cross-compiling pure Java packages is not very useful, but packages 
that contain Java and architecture-dependent code cannot be cross-compiled 
either.


> > The package is marked as UNRELEASED in the changelog, thus explicitly not
> > for upload.  I'll leave further review to someone with a clue about Java
> > and Maven...
> The main reason for marking the package as UNRELEASED is the unclear license 
> of the included "Magic Sound Font v2.0"; see the discussion in #819332.
> I have tried to contact the author by mail, but have not yet received a 
> reply. 
> I will try again, but if it is not possible to resolve this issue, we could 
> omit the file. Tuxguitar also works with other soundbanks already included in 
> Debian.
I have now marked the package as unstable and assume that the MagicSFver2.sf2 
file can be redistributed under the LGPL-2.1+ license. I'm not sure if this is 
legitimate; please advice.

Reply via email to