Bug#458247: Please provide a package with native code for GCJ/GIJ

Michael Koch konqueror at gmx.de
Sun Dec 30 23:41:40 UTC 2007


On Sat, Dec 29, 2007 at 10:05:52PM +0100, Michael Koch wrote:
> On Sat, Dec 29, 2007 at 09:44:05PM +0100, Daniel Leidert wrote:
> > Package: libsaxon-java
> > Version: 1:6.5.5-1.1
> > Severity: wishlist
> > 
> > I would like to ask you, if you could/would be so kind to provide a
> > package with native code for GCJ/GIJ. This would help me a lot to speed
> > up the building of the docbook-defguide package.
> > 
> > http://www.wgdd.de/?p=32
> > http://www.wgdd.de/?p=31
> > 
> > I prepared such packages locally, so the debdiff is attached. However,
> > I prepared the package just as a proof-of-concept, so I might have
> > missed necessary changes.
> 
> I will take care of this. Thanks for the initial patch.
 
I have uploaded 6.5.5-2 as a cleanup version for the current package. I
attached a debdiff to -3 that adds a -gcj package. Please test it and
give feedback about the improvements (timings).


Cheers,
Michael
-------------- next part --------------
diff -u libsaxon-java-6.5.5/debian/rules libsaxon-java-6.5.5/debian/rules
--- libsaxon-java-6.5.5/debian/rules
+++ libsaxon-java-6.5.5/debian/rules
@@ -16,6 +16,11 @@
 UPSTREAM_VERSION = 6.5.5
 CLASSPATH = /usr/share/java/jdom1.jar
 
+include /usr/share/gcj/debian_defaults
+ifneq (,$(filter $(DEB_HOST_ARCH), $(gcj_native_archs)))
+  with_gcj_native := yes
+endif
+
 configure: configure-stamp
 configure-stamp:
 	dh_testdir
@@ -71,7 +76,22 @@
 	dh_builddeb -i
 
 binary-arch: build install
-# We have nothing to do by default.
+	dh_testdir -a
+	dh_testroot -a
+	dh_installchangelogs -a
+	dh_installdocs -a
+ifeq ($(with_gcj_native),yes)
+	[ -d debian/libsaxon-ava/usr/share/java ] || dh_install -plibsaxon-java
+	dh_nativejava -plibsaxon-java-gcj
+endif
+	dh_strip -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
 
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install configure
diff -u libsaxon-java-6.5.5/debian/control libsaxon-java-6.5.5/debian/control
--- libsaxon-java-6.5.5/debian/control
+++ libsaxon-java-6.5.5/debian/control
@@ -21,6 +21,17 @@
  with the DocBook XSL Stylesheets. Related packages make the process
  straightforward.
 
+Package: libsaxon-java-gcj
+Architecture: any
+Depends: libsaxon-java (>= ${source:Version}), ${misc:Depends}, ${shlibs:Depends}
+Description: The Saxon XSLT Processor (native code)
+ The saxon package is a collection of tools for processing XML documents and
+ implements the XSLT 1.0 recommendation, including XPath 1.0, in its entirety.
+ .
+ Saxon is known to work well for processing DocBook XML documents
+ with the DocBook XSL Stylesheets. Related packages make the process
+ straightforward.
+
 Package: libsaxon-java-doc
 Section: doc
 Architecture: all
diff -u libsaxon-java-6.5.5/debian/changelog libsaxon-java-6.5.5/debian/changelog
--- libsaxon-java-6.5.5/debian/changelog
+++ libsaxon-java-6.5.5/debian/changelog
@@ -1,3 +1,9 @@
+libsaxon-java (1:6.5.5-3) unstable; urgency=low
+
+  * Build -gcj package. Closes: #458247.
+
+ -- Michael Koch <konqueror at gmx.de>  Sat, 29 Dec 2007 23:14:56 +0100
+
 libsaxon-java (1:6.5.5-2) unstable; urgency=low
 
   * (Build-)Depends on java-gcj-compat(-dev).


More information about the pkg-java-maintainers mailing list