[libvirt] Release of libvirt-java-0.5.0

With a bit of delay, the release needed by Wido is finally available, it is tagged in git and I have pushed tarball, jar and rpms to the FTP: ftp://libvirt.org/libvirt/java/ Wido maybe you can push to Maven, I'm unsure how to do this and last time I tried I made a mess :-) I bumped the intermediate release number as this release includes more improvements and fixes than the previous ones and deprecates a couple of things: Portability: - Fix the rpm build (Daniel Veillard) - Explicitly set includeAntRuntime to false for javac tasks. (Claudio Bley) - Fix build with jna >= 3.5.0 (Jiri Denemark) Bug Fixes: - Fixed broken dates in Changelog (Daniel Veillard) - Fix memory leaks for libvirt functions returning newly allocated memory. (Claudio Bley) - Fix memory leak for virDomainGetSchedulerType. (Claudio Bley) Improvements: - Implement and use virDomainMigrateToURI2 by overloading migrateToUri (Wido den Hollander) - Implement virDomainMigrate2 and use it for a new migrate method. (Wido den Hollander) - Overload Domain.snapshotCreateXML with a method that has an argument for flags (Wido den Hollander) - Overload Domain.snapshotListNames with a method that has an additional flags argument. (Wido den Hollander) - Implement virDomainUndefineFlags by overloading the existing undefine method (Wido den Hollander) - Implement virStorageVolResize by adding resize to StorageVol (Wido den Hollander) - Implement virDomainBlockResize (Wido den Hollander) - Avoid creating new Arrays and Lists on every struct instantiation (Claudio Bley) - Make the build fail if any of the JUnit tests have errors or failures (Claudio Bley) - Avoid unnecessary copying and calling virResetLastError. (Claudio Bley) - Split "build" target and automatically rebuild out of date files. (Claudio Bley) - Split JUnit tests and use a fixture for Connect. (Claudio Bley) - Call processError only if a libvirt function indicates an error. (Claudio Bley) - Change visibility of class members to private to enforce encapsulation. (Claudio Bley) - Make finalize() methods protected. (Claudio Bley) - Add findbugs build file for ant. (Claudio Bley) - Introduce a javac.debug property. (Claudio Bley) - maint: correct name for license file (Eric Blake) - Add Javadoc and Source JARs to Maven repo (Wido den Hollander) - Fix the Maven build system with Ant (Wido den Hollander) Cleanups: - trivial remove unused imports (Stefan Majer) - Remove unused imports (Stefan Majer) - Remove functions not intended to be used by libvirt bindings. (Claudio Bley) - Remove the libvirt instance attribute from all classes. (Claudio Bley) - Mark virConnCopyLastError and virConnGetLastError as deprecated. (Claudio Bley) - Remove redundant public modifier from Libvirt interface methods. (Claudio Bley) Thanks Claudio, Wido and everybody else who contributed ! Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library http://libvirt.org/

On Fri, Sep 13, 2013 at 2:51 AM, Daniel Veillard <veillard@redhat.com>wrote:
With a bit of delay, the release needed by Wido is finally available, it is tagged in git and I have pushed tarball, jar and rpms to the FTP:
ftp://libvirt.org/libvirt/java/
Wido maybe you can push to Maven, I'm unsure how to do this and last time I tried I made a mess :-)
I bumped the intermediate release number as this release includes more improvements and fixes than the previous ones and deprecates a couple of things:
Any ideas with this build issue for FreeBSD update of libvirt-java? I do have jna (jna-3.2.7_1) installed. build: [javac] Compiling 64 source files to /usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/target/classes [javac] /usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/src/main/java/org/libvirt/Library.java:41: cannot find symbol [javac] symbol : method free(long) [javac] location: class com.sun.jna.Native [javac] Native.free(Pointer.nativeValue(ptr)); [javac] ^ [javac] 1 error -jgh -- Jason Helfman | FreeBSD Committer jgh@FreeBSD.org | http://people.freebsd.org/~jgh | The Power to Serve

On Mon, Sep 16, 2013 at 03:19:32PM -0700, Jason Helfman wrote:
On Fri, Sep 13, 2013 at 2:51 AM, Daniel Veillard <veillard@redhat.com>wrote:
With a bit of delay, the release needed by Wido is finally available, it is tagged in git and I have pushed tarball, jar and rpms to the FTP:
ftp://libvirt.org/libvirt/java/
Wido maybe you can push to Maven, I'm unsure how to do this and last time I tried I made a mess :-)
I bumped the intermediate release number as this release includes more improvements and fixes than the previous ones and deprecates a couple of things:
Any ideas with this build issue for FreeBSD update of libvirt-java? I do have jna (jna-3.2.7_1) installed.
build: [javac] Compiling 64 source files to /usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/target/classes [javac] /usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/src/main/java/org/libvirt/Library.java:41: cannot find symbol [javac] symbol : method free(long) [javac] location: class com.sun.jna.Native [javac] Native.free(Pointer.nativeValue(ptr));
Wido said the requirement for jna had to be bumped to 3.5.0 that might be the reason ! Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library http://libvirt.org/

Hi. At Tue, 17 Sep 2013 10:18:52 +0800, Daniel Veillard wrote:
Any ideas with this build issue for FreeBSD update of libvirt-java? I do have jna (jna-3.2.7_1) installed.
Your JNA version is too old. Before version 3.3.0 JNA lacked a function to free malloc'd memory.
build: [javac] Compiling 64 source files to /usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/target/classes [javac] /usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/src/main/java/org/libvirt/Library.java:41: cannot find symbol [javac] symbol : method free(long) [javac] location: class com.sun.jna.Native [javac] Native.free(Pointer.nativeValue(ptr));
Wido said the requirement for jna had to be bumped to 3.5.0 that might be the reason !
The code still only requires at least JNA 3.3.0 - although I'd recommend using a more recent version. We could even express this in the POM using a version range, like <dependency> <groupId>net.java.dev.jna</groupId> <artifactId>jna</artifactId> <scope>provided</scope> <version>[3.3,4.0)</version> </dependency> Claudio -- AV-Test GmbH, Henricistraße 20, 04155 Leipzig, Germany Phone: +49 341 265 310 19 Web:<http://www.av-test.org> Eingetragen am / Registered at: Amtsgericht Stendal (HRB 114076) Geschaeftsfuehrer (CEO): Andreas Marx, Guido Habicht, Maik Morgenstern

On Tue, Sep 17, 2013 at 09:18:02AM +0200, Claudio Bley wrote:
Hi.
At Tue, 17 Sep 2013 10:18:52 +0800, Daniel Veillard wrote:
Any ideas with this build issue for FreeBSD update of libvirt-java? I do have jna (jna-3.2.7_1) installed.
Your JNA version is too old. Before version 3.3.0 JNA lacked a function to free malloc'd memory.
build: [javac] Compiling 64 source files to /usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/target/classes [javac] /usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/src/main/java/org/libvirt/Library.java:41: cannot find symbol [javac] symbol : method free(long) [javac] location: class com.sun.jna.Native [javac] Native.free(Pointer.nativeValue(ptr));
Wido said the requirement for jna had to be bumped to 3.5.0 that might be the reason !
The code still only requires at least JNA 3.3.0 - although I'd recommend using a more recent version.
We could even express this in the POM using a version range, like
<dependency> <groupId>net.java.dev.jna</groupId> <artifactId>jna</artifactId> <scope>provided</scope> <version>[3.3,4.0)</version> </dependency>
please provide a patch :-) Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library http://libvirt.org/

On Tue, Sep 17, 2013 at 12:24 AM, Daniel Veillard <veillard@redhat.com>wrote:
On Tue, Sep 17, 2013 at 09:18:02AM +0200, Claudio Bley wrote:
Hi.
At Tue, 17 Sep 2013 10:18:52 +0800, Daniel Veillard wrote:
Any ideas with this build issue for FreeBSD update of libvirt-java?
I do
have jna (jna-3.2.7_1) installed.
Your JNA version is too old. Before version 3.3.0 JNA lacked a function to free malloc'd memory.
build: [javac] Compiling 64 source files to
/usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/target/classes
[javac]
/usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/src/main/java/org/libvirt/Library.java:41:
cannot find symbol [javac] symbol : method free(long) [javac] location: class com.sun.jna.Native [javac] Native.free(Pointer.nativeValue(ptr));
Wido said the requirement for jna had to be bumped to 3.5.0 that might be the reason !
The code still only requires at least JNA 3.3.0 - although I'd recommend using a more recent version.
We could even express this in the POM using a version range, like
<dependency> <groupId>net.java.dev.jna</groupId> <artifactId>jna</artifactId> <scope>provided</scope> <version>[3.3,4.0)</version> </dependency>
please provide a patch :-)
Daniel
-- Daniel Veillard | Open Source and Standards, Red Hat veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library http://libvirt.org/
I was able to update FreeBSD version to 4.0 of jna, and will put to the community and port maintainer for testing. With this update, I was able to build successfully. -jgh -- Jason Helfman | FreeBSD Committer jgh@FreeBSD.org | http://people.freebsd.org/~jgh | The Power to Serve

On Tue, Sep 17, 2013 at 12:28:13AM -0700, Jason Helfman wrote:
On Tue, Sep 17, 2013 at 12:24 AM, Daniel Veillard <veillard@redhat.com>wrote:
On Tue, Sep 17, 2013 at 09:18:02AM +0200, Claudio Bley wrote:
Hi.
At Tue, 17 Sep 2013 10:18:52 +0800, Daniel Veillard wrote:
Any ideas with this build issue for FreeBSD update of libvirt-java?
I do
have jna (jna-3.2.7_1) installed.
Your JNA version is too old. Before version 3.3.0 JNA lacked a function to free malloc'd memory.
build: [javac] Compiling 64 source files to
/usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/target/classes
[javac]
/usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/src/main/java/org/libvirt/Library.java:41:
cannot find symbol [javac] symbol : method free(long) [javac] location: class com.sun.jna.Native [javac] Native.free(Pointer.nativeValue(ptr));
Wido said the requirement for jna had to be bumped to 3.5.0 that might be the reason !
The code still only requires at least JNA 3.3.0 - although I'd recommend using a more recent version.
We could even express this in the POM using a version range, like
<dependency> <groupId>net.java.dev.jna</groupId> <artifactId>jna</artifactId> <scope>provided</scope> <version>[3.3,4.0)</version> </dependency>
please provide a patch :-) [...] I was able to update FreeBSD version to 4.0 of jna, and will put to the community and port maintainer for testing. With this update, I was able to build successfully.
Ah, thanks for confirming Jason ! Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library http://libvirt.org/
participants (3)
-
Claudio Bley
-
Daniel Veillard
-
Jason Helfman