Re: Advice regarding Java packages for SimpleITK
On 10.08.2017 09:09, tony mancill wrote:
> Java bindings to the GDCM DICOM library. It allows developers to use
> GDCM from Java environment.
> drwxr-xr-x root/root 0 2017-08-07 07:28 ./
> drwxr-xr-x root/root 0 2017-08-07 07:28 ./usr/
> drwxr-xr-x root/root 0 2017-08-07 07:28 ./usr/lib/
> drwxr-xr-x root/root 0 2017-08-07 07:28 ./usr/lib/x86_64-linux-gnu/
> drwxr-xr-x root/root 0 2017-08-07 07:28 ./usr/lib/x86_64-linux-gnu/jni/
> -rw-r--r-- root/root 862712 2017-08-07 07:28 ./usr/lib/x86_64-linux-gnu/jni/libgdcmjni.so
> drwxr-xr-x root/root 0 2017-08-07 07:28 ./usr/share/
> drwxr-xr-x root/root 0 2017-08-07 07:28 ./usr/share/doc/
> drwxr-xr-x root/root 0 2017-08-07 07:28 ./usr/share/doc/libgdcm-java/
> -rw-r--r-- root/root 7698 2017-08-07 07:28 ./usr/share/doc/libgdcm-java/changelog.Debian.gz
> -rw-r--r-- root/root 24031 2017-08-07 07:28 ./usr/share/doc/libgdcm-java/copyright
> drwxr-xr-x root/root 0 2017-08-07 07:28 ./usr/share/java/
> -rw-r--r-- root/root 330154 2017-08-07 07:28 ./usr/share/java/gdcm.jar
>
>
> This has the result of building a separate .deb for every architecture
> [0], which will function as expected up until the time that a user needs
> multi-arch, at which point the libgdcm-java:amd64 and libgdcm-java:i386
> (or whatever arch) packages will fail to co-install because they both
> contain the same JAR file in /usr/share/java/.
no, if the package is marked M-A: same and the gdcm.jar is bit-by-bit identical
across architectures, then the package can be installed. However I'm not sure
that we enforce such jar archives.
> That is, this approach "works" in the non-multi-arch case, but should be
> avoided.
>
> Cheers,
> tony
>
> [0] https://packages.debian.org/unstable/libgdcm-java
>
Reply to: