All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Page <james.page@ubuntu.com>
To: Sage Weil <sage@inktank.com>
Cc: gcs@debian.hu, Noah Watkins <jayhawk@cs.ucsc.edu>,
	Joe Buck <buck@soe.ucsc.edu>,
	ceph-devel <ceph-devel@vger.kernel.org>
Subject: Re: [GIT PULL v5] java: add libcephfs Java bindings
Date: Thu, 04 Oct 2012 21:24:59 +0100	[thread overview]
Message-ID: <506DF09B.20505@ubuntu.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1210031238300.23173@cobra.newdream.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 03/10/12 20:39, Sage Weil wrote:
> On Wed, 3 Oct 2012, Noah Watkins wrote:
>>> Hi Sage,
>>> 
>>> I wanted to touch base on this Java bindings patch series to
>>> make sure this can become a solid foundation for the Hadoop
>>> shim clean-up. Were there any specific issues with this, other
>>> than not yet having a major consumer?
> From my perspective it's ready.  I was hoping that Laszlo could
> look at the packaging bits before I merged, but then I lost track
> of it.
> 
> Laszlo, do you have a minute to take a look?

Laszlo - hope you don't mind me jumping in but Java packaging is
something I have quite a bit of experience with.

A few bits of feedback:

1) Split of Java bytecode and native JNI code

Inline with
http://www.debian.org/doc/packaging-manuals/java-policy/x104.html, the
native JNI code should be in a separate, arch-specific, package to the
Java bytecode (which ideally should be arch: all).

  libceph-java Depends -> libceph-jni

The only reason I could think of to not do this would be to exclude
architectures in Debian for which ceph does not build from having a
Java arch: all package which is un-installable.

2) libceph1-java naming

As ceph is the only source package likely to produce this code the
version is really not required as this is simply to prevent conflicts
when multiple versions of a Java library are required - libceph-java
is just fine.

3) jar files in /usr/share/java

Java policy dictates a versioned and unversioned jar in /usr/share/java:

/usr/share/java/ceph-0.48.2.jar
/usr/share/java/ceph.jar -> ceph-0.48.2.jar

Tools such as javahelper can do this for you - which I see on the BD's.

Use debian/libceph-java.jlibs + plumb jh_installlibs into debian/rules
and javahelper will do this for you.

4) src/java/build.xml

Please set the source/target version of Java to something sensible
during the build process - ideally 1.5 (as 1.6 introduced no new
language features).  Ubuntu quantal's default-jdk is OpenJDK7 -
without this it will build code which is not backwards compatible.

And openjdk-6/oracle java 6 is still available...

HTH

Cheers

James

- -- 
James Page
Ubuntu Core Developer
Debian Maintainer
james.page@ubuntu.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBCAAGBQJQbfCbAAoJEL/srsug59jDt0AP/RNkUopLnHuumgyfvaqoH3EI
1FYGlwBb4x5KqaBF0gfzSOl4TlLtQlNUMjScsIaFQmIzVuQxyj/JrtmSyLO1nAu2
udNg0kBFErYbf6oxvJPo3bFBqsRzIQnpLtjjLXl39h83Iw7YhNnxwORD8C7ofrBG
yzt3ugXE5lmJYb/TPWompJZiVKi2G7XXJuO3psv4Qp4I0DKwjNQc0nHK1EA7vwFB
eMyVCzK0kfvNSpoLI3/N9U7k3Hpgx0i72pKNzF0aZj13dqJx8WXgbfoXRSmd68Ut
4Ao/UWsxHakYs6DwvHY5MD9OZuLbLtfey9nNi+sciEdolq4tO9Halpu4sUJlCrQg
iGDq8SF+yg2oulM09rxbUBhs9hU7DdPFPNibH7M7nsRKjI8SVAoT8RVtzY9kAZOd
x0GluRa++IsRwyw2I9xYvcHVg0+TeMHEsGeNOHQ9OjfSXWIG45J9htL3BE8w6vXp
PsLRerW/k6DDXffKL9EJSstsJ5oRc3T/FMmnswB8eEugZ/4hKoE9lWwFqkwJp/WV
7HB7DlC9JEMNCf4Wvr7RYQs8JcSh94ERq0LCX2L/BWjwHdqUU8votrKGnHbjBA/o
N1eK++qVqdKRc6CyauYuo33VsR6wrCyo5GZeUiH389nJ/P+ov+v7T7dFrcqzLyaP
PCRKRQ09ADFakFOVx+Qv
=ZkNY
-----END PGP SIGNATURE-----

  parent reply	other threads:[~2012-10-04 20:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-06  3:26 [GIT PULL v5] java: add libcephfs Java bindings Noah Watkins
2012-09-06 15:42 ` Sage Weil
2012-09-06 18:02   ` Noah Watkins
2012-10-03 19:34     ` Noah Watkins
2012-10-03 19:39       ` Sage Weil
2012-10-04  4:23         ` Laszlo Boszormenyi (GCS)
2012-10-04 20:24         ` James Page [this message]
2012-10-04 22:00           ` Laszlo Boszormenyi (GCS)
2012-10-05 12:13             ` Noah Watkins
2012-10-10 22:00               ` Noah Watkins
2012-10-11  0:53                 ` Laszlo Boszormenyi (GCS)
2012-10-11  1:36                   ` Noah Watkins
2012-10-17 22:45                     ` Sage Weil
2012-10-19 17:27                       ` Noah Watkins
2012-10-05  7:10           ` James Page
2012-10-03 21:26       ` Gregory Farnum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=506DF09B.20505@ubuntu.com \
    --to=james.page@ubuntu.com \
    --cc=buck@soe.ucsc.edu \
    --cc=ceph-devel@vger.kernel.org \
    --cc=gcs@debian.hu \
    --cc=jayhawk@cs.ucsc.edu \
    --cc=sage@inktank.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.