diff --git a/debian/rules b/debian/rules
index 0e2d9752debd20231ef7bbdd423192dc5aa2fdb8..c9955ae63cc9fa24b8128ac737f8ff70aba1a0aa 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
ifeq (,$(JAVA_ARCHDIR))
JAVA_ARCHDIR = $(DEB_BUILD_ARCH)
endif
-JAVA_HOME = /usr/lib/jvm/java-6-openjdk-$(DEB_BUILD_ARCH)
+JAVA_HOME = /usr/lib/jvm/java-6-openjdk
JAVA_LIBDIR = $(JAVA_HOME)/jre/lib/$(JAVA_ARCHDIR)/server
JAVAC = $(JAVA_HOME)/bin/javac
# architectures (see bugs #358637, #419684 and #524593 for more details).
ifneq (,$(filter alpha amd64 hppa ia64 ppc64 mips mipsel, $(DEB_BUILD_ARCH)))
confflags += --disable-netlink
+else
+# disable netlink on all archs, as the API in debian/stable is different
+ confflags += --disable-netlink
endif
# These plugins are Linux-specific.