Package: hsqldb
Version: 1.8.0.7-3
Severity: wishlist
Tags: patch

Hi,

please build with java-gcj-compat-dev and add a -gcj subpackage.
Patch (taken from Ubuntu and asapted to fix the build-dep) is as follows:

diff -pruN 1.8.0.7-3/debian/control 1.8.0.7-3ubuntu1/debian/control
--- 1.8.0.7-3/debian/control    2007-05-23 17:21:01.000000000 +0100
+++ 1.8.0.7-3ubuntu1/debian/control     2007-05-23 17:20:41.000000000 +0100
@@ -1,15 +1,15 @@
 Source: hsqldb
 Section: libs
 Priority: optional
 Maintainer: Peter Eisentraut <[EMAIL PROTECTED]>
-Build-Depends: cdbs (>= 0.4.39), debhelper (>= 5), kaffe, jikes, ant, 
libservlet2.4-java
+Build-Depends: cdbs (>= 0.4.39), debhelper (>= 5), java-gcj-compat-dev (>= 
1.0.69) , ant, libservlet2.4-java
 Standards-Version: 3.7.2
 
 Package: libhsqldb-java
 Section: libs
 Architecture: all
-Depends: kaffe | java2-runtime, libservlet2.4-java
-Suggests: java-virtual-machine, libhsqldb-java-doc
+Depends: gij | java-gcj-compat | java2-runtime, libservlet2.4-java
+Suggests: java-virtual-machine, libhsqldb-java-doc, libhsqldb-java-gcj
 Description: Java SQL database engine
  HSQLDB is an SQL relational database engine written in Java.  It has a
  JDBC driver and supports a rich subset of SQL-92 (BNF tree format) plus
@@ -21,6 +22,22 @@ Description: Java SQL database engine
  .
  Web site: http://hsqldb.org/
 
+Package: libhsqldb-java-gcj
+Section: libs
+Architecture: any
+Depends: libhsqldb-java (>= ${source:Version}), ${misc:Depends}, 
${shlibs:Depends}
+Suggests: java-virtual-machine, libhsqldb-java-doc
+Description: Java SQL database engine (native code)
+ HSQLDB is an SQL relational database engine written in Java.  It has a
+ JDBC driver and supports a rich subset of SQL-92 (BNF tree format) plus
+ SQL:1999 and SQL:2003 enhancements.  It offers a small, fast database
+ engine that offers both in-memory and disk-based tables.  Embedded and
+ server modes are available.  Additionally, it includes tools such as a
+ minimal web server, in-memory query and management tools (can be run as
+ applets), and a number of demonstration examples.
+ .
+ This package contains the natively compiled code for use by gij.
+
 Package: libhsqldb-java-doc
 Section: doc
 Architecture: all
diff -pruN 1.8.0.7-3/debian/rules 1.8.0.7-3ubuntu1/debian/rules
--- 1.8.0.7-3/debian/rules      2007-05-23 17:21:01.000000000 +0100
+++ 1.8.0.7-3ubuntu1/debian/rules       2007-05-23 17:20:41.000000000 +0100
@@ -4,11 +4,14 @@ include /usr/share/cdbs/1/rules/debhelpe
 include /usr/share/cdbs/1/class/ant.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
-JAVA_HOME = /usr/lib/kaffe
+JAVA_HOME = /usr/lib/jvm/java-gcj
 DEB_JARS = servlet-api
 DEB_ANT_BUILDFILE = build/build.xml
 DEB_ANT_BUILD_TARGET = hsqldb hsqldbutil
-DEB_ANT_COMPILER = jikes
+DEB_ANT_COMPILER = org.eclipse.jdt.core.JDTCompilerAdapter
+ifneq (,$(findstring eclipse,$(DEB_ANT_COMPILER)))
+    DEB_JARS += ecj.jar
+endif
 
 DEB_INSTALL_DOCS_ALL = -X .cvsignore
 DEB_INSTALL_CHANGELOGS_ALL = changelog.combined
@@ -54,6 +57,8 @@ install/libhsqldb-java::
        install -m 755 debian/bin/hsqldb-* $(DEB_FINALDIR)/usr/bin/
        install -m 644 -D debian/bin/hsqldb.xpm 
$(DEB_FINALDIR)/usr/share/pixmaps/hsqldb.xpm
 
+install/libhsqldb-java-gcj:: install-indep
+       dh_nativejava -plibhsqldb-java-gcj
 
 clean::
        rm -f lib/hsqldb*.jar

Regards,

Rene

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.21-2-powerpc
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Attachment: signature.asc
Description: Digital signature

Reply via email to