Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #9869

Re: Advice regarding Java packages for SimpleITK

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Ghislain Vaillant <ghisvail@gmail.com>
Newsgroups linux.debian.maint.java
Subject Re: Advice regarding Java packages for SimpleITK
Date Thu, 10 Aug 2017 11:20:01 +0200
Message-ID <ucRNf-3Bi-13@gated-at.bofh.it> (permalink)
References <ub2ts-2k5-1@gated-at.bofh.it> <ucl10-6pZ-7@gated-at.bofh.it>
X-Original-To Emmanuel Bourg <ebourg@apache.org>, debian-java@lists.debian.org
X-Mailbox-Line From debian-java-request@lists.debian.org Thu Aug 10 09:18:41 2017
Old-Return-Path <ghisvail@gmail.com>
X-Amavis-Spam-Status No, score=-6.999 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, MURPHY_SCAM1=0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -7
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=mqRvQaYmaZ8W35KblHSFDxpD3SLwTs2yx8TdVWw7wnI=; b=YuLkTU4roJVPmE65ng5jWLBT9OFGn+ZnjQqOF5Smzy5YaHhWkgxVI5oDeWCao6cZ/l YpuvnPaigA1pYjCCfKolDFl1TKm/kXRAd2bdzxI+q1M8udUgZd1G9w73RTriZfrhCEkw Eluv3ykyakRTOEsgfB2mQl0ZA/oyMyizswW6RQBdJkRcAZzX//MY4kRwAlHO6ofl3O+7 abd6a0tcbE1QsakXWbdrdF5kUPpe68H59gK4iBKAwPu5YXYm6xQyX2Vw4aSaZP7fqh1a fDmaC3YGL0qBwY5i9FV6PBg2ulYTDoTS6eKDAW5iT0cmDKwn1JWf3gT3pS+vhI+EMo5i U1nw==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mqRvQaYmaZ8W35KblHSFDxpD3SLwTs2yx8TdVWw7wnI=; b=HaZ2tgPdrCvEgWlBDLPN6oMIO0XR0sfR9/Hj3jhjLWVzErhHt2XMj90gFzUjJgo6lk SG0BYcybaC4qFghs/AkB5NXo/zy0JTUFLFAE9b1vhe1oqMs6+nCR3YPyAimrPMs5x5LN ZhXzGchFO5pVCIj7LeayhXfF68Wd3SjXwjUBvoXnjzxpm1NgQfDCwzhK3aBCtAxVjTHl YAhcPct6xlp50UtftMrnQk+6/eAkCEjvEK+lzoKfpcJG/oyevV9xUBJMU3Mbe5L1GbuF XAulsJQAeHP/r8FV23BB89X6IRATBLvoFsOCiTP1p+lC5fqx7hj7hWp9t7KkyRBUbf4W fklQ==
X-Gm-Message-State AHYfb5g2s9kTF4YqSdO/x5cqGEwWxZTzuEF0nLEqWLOx75DRxqJP+Une 5hceT5Rx0RcG89g1WQc=
X-Received by 10.223.154.183 with SMTP id a52mr7964612wrc.47.1502356706150; Thu, 10 Aug 2017 02:18:26 -0700 (PDT)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Language en-GB
Content-Transfer-Encoding 7bit
X-Mailing-List <debian-java@lists.debian.org> archive/latest/20233
List-ID <debian-java.lists.debian.org>
List-URL <https://lists.debian.org/debian-java/>
List-Archive https://lists.debian.org/msgid-search/611bbfab-8e31-6969-c338-60206d8f65cc@gmail.com
Approved robomod@news.nic.it
Lines 39
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 10 Aug 2017 10:18:24 +0100
X-Original-Message-ID <611bbfab-8e31-6969-c338-60206d8f65cc@gmail.com>
X-Original-References <17ff953d-d484-9f3f-7b0f-461d6b5525b4@gmail.com> <53937acf-b10b-581d-a1c6-c082c6ae15c0@apache.org>
Xref csiph.com linux.debian.maint.java:9869

Show key headers only | View raw


On 08/08/17 21:56, Emmanuel Bourg wrote:
> On 08/05/2017 10:16 AM, Ghislain Vaillant wrote:
> 
>> I was wondering which files should be installed (and to which location)
>> to produce corresponding Java packages which are policy compliant.
> 
> Hi Ghislain,
> 
> As I understand you'll need two binary packages for the Java bindings:
> 
> * libsimpleitk-java (arch: all), with simpleitk-1.0.1.jar installed in
> /usr/share/java and a versionless symlink in the same directory (I
> suggest using a javahelper debian/*.jlibs file to handle this operation).

Ack, I'll look into javahelper. I have only dealt with maven-based 
packaging so far.

> * libsimpleitk-jni (arch: any), with libSimpleITKJava.so in a multiarch
> path (for example /usr/lib/x86_64-linux-gnu/jni/)

Ack.

> You'll have to ensure the .so file isn't included in the jar, this may
> require some tweaking of the library loading code.

I am not sure what you mean here, though that might be because of my 
personal ignorance of how JNI works. Could you be a bit more explicit 
please?

I have also looked at similar packages using swig to generate Java 
bindings. src:vtk6 [1] does provide separate java and jni packages as 
you are proposing, but src:gdcm [2] does not. I have got to say, I am a 
bit confused.

[1] https://packages.debian.org/source/sid/vtk6
[2] https://packages.debian.org/source/sid/gdcm

Cheers,
Ghis

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Advice regarding Java packages for SimpleITK Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-05 10:20 +0200
  Re: Advice regarding Java packages for SimpleITK Emmanuel Bourg <ebourg@apache.org> - 2017-08-09 00:20 +0200
    Re: Advice regarding Java packages for SimpleITK Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-10 11:20 +0200
      Re: Advice regarding Java packages for SimpleITK tony mancill <tmancill@debian.org> - 2017-08-10 15:10 +0200
        Re: Advice regarding Java packages for SimpleITK Emmanuel Bourg <ebourg@apache.org> - 2017-08-10 22:30 +0200
        Re: Advice regarding Java packages for SimpleITK Matthias Klose <doko@debian.org> - 2017-08-11 00:20 +0200
          Re: Advice regarding Java packages for SimpleITK tony mancill <tmancill@debian.org> - 2017-08-11 00:50 +0200
      Re: Advice regarding Java packages for SimpleITK Emmanuel Bourg <ebourg@apache.org> - 2017-08-10 22:40 +0200

csiph-web