diff -Naur db4.2-4.2.52/debian/control db4.2-4.2.52-patched/debian/control
--- db4.2-4.2.52/debian/control	2005-06-15 09:59:36.927517731 +0300
+++ db4.2-4.2.52-patched/debian/control	2005-06-15 10:00:44.471751224 +0300
@@ -4,7 +4,7 @@
 Maintainer: Debian Berkeley DB Maintainers <pkg-db-devel@lists.alioth.debian.org>
 Uploaders: Clint Adams <schizo@debian.org>, Matthew Wilcox <willy@debian.org>, Andreas Barth <aba@not.so.argh.org>
 Standards-Version: 3.6.1
-Build-Depends: tcl8.4-dev, procps [!hurd-i386], gcj (>= 3:3.2.2-0) [!hppa !mips !mipsel !hurd-i386], fastjar [!hppa !mips !mipsel !hurd-i386], sablevm [!hppa !mips !mipsel !hurd-i386], libgcj4-dev [!hppa !mips !mipsel !hurd-i386]
+Build-Depends: tcl8.4-dev, procps [!hurd-i386]
 
 Package: db4.2-doc
 Architecture: all
diff -Naur db4.2-4.2.52/debian/rules db4.2-4.2.52-patched/debian/rules
--- db4.2-4.2.52/debian/rules	2005-06-15 09:59:36.927517731 +0300
+++ db4.2-4.2.52-patched/debian/rules	2005-06-15 10:00:32.343684409 +0300
@@ -19,8 +19,8 @@
 DEB_BUILD_GNU_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
 DEB_BUILD_GNU_SYSTEM ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
 
-JAVA_UNSUPPORTED_CPUS = zhppaz zmipsz zmipselz
-JAVA_UNSUPPORTED_SYSTEMS = zgnuz zkfreebsd-gnuz zknetbsd-gnuz
+JAVA_UNSUPPORTED_CPUS = zhppaz zmipsz zmipselz z$(DEB_BUILD_GNU_CPU)z
+JAVA_UNSUPPORTED_SYSTEMS = zgnuz zkfreebsd-gnuz zknetbsd-gnuz z$(DEB_BUILD_GNU_SYSTEM)z
 
 CONFIGURE_VARS =  CFLAGS="$(CFLAGS)" CPPFLAGS="-I/usr/include/tcl8.4" 
 CONFIGURE_SWITCHES =    --prefix=/usr \

