Code

Disable the netlink plugin, as it does not compile anyways
[pkg-collectd.git] / debian / rules
index 0e2d9752debd20231ef7bbdd423192dc5aa2fdb8..c9955ae63cc9fa24b8128ac737f8ff70aba1a0aa 100755 (executable)
@@ -37,7 +37,7 @@ JAVA_ARCHDIR = $(shell /usr/share/javahelper/java-arch.sh $(DEB_BUILD_ARCH))
 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
@@ -98,6 +98,9 @@ confflags += \
 # 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.