Package: src:zabbix Version: 1:2.4.7+dfsg-1 User: sanv...@debian.org Usertags: binary-indep Severity: important
Dear maintainer: I tried to build this package with "dpkg-buildpackage -A" (i.e. only architecture-independent packages), and it failed: -------------------------------------------------------------------------------- [...] debian/rules build-indep DEB_BUILD_OPTIONS=parallel=1 I: zabbix_2.4.7+dfsg ## build zabbix-java-gateway.jar ## override_jh_build: JAVA_HOME=/usr/lib/jvm/default-java \ CLASSPATH=/usr/share/java/json.jar:/usr/share/java/logback-core.jar:/usr/share/java/logback-classic.jar:/usr/share/java/slf4j-api.jar \ jh_build --no-javadoc --main=com.zabbix.gateway.JavaGateway debian/tmp-build-MYSQL/src/zabbix_java/zabbix-java-gateway.jar src/zabbix_java/src/com find src/zabbix_java/src/com -name *.java -and -type f -print0 | xargs -s 512000 -0 /usr/lib/jvm/default-java/bin/javac -g -cp /usr/share/java/json.jar:/usr/share/java/logback-core.jar:/usr/share/java/logback-classic.jar:/usr/share/java/slf4j-api.jar:debian/_jh_build.zabbix-java-gateway -d debian/_jh_build.zabbix-java-gateway -source 1.5 -target 1.5 warning: [options] bootstrap class path not set in conjunction with -source 1.5 1 warning touch: cannot touch 'debian/tmp-build-MYSQL/src/zabbix_java/zabbix-java-gateway.jar': No such file or directory debian/rules:115: recipe for target 'build-indep' failed make: *** [build-indep] Error 1 dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2 -------------------------------------------------------------------------------- Sorry not to have a fix, as I am reporting many bugs similar to this one. The common hints are: * If the only architecture-independent packages are dummy transitional ones and they were released with jessie, the easy fix is to drop them now. * When using "dh", it is allowed to use (independently) optional targets override_dh_foo-arch and override_dh_foo-indep (for several values of "foo"). Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work properly, the package would be suitable to be uploaded in source-only form if you wish. Thanks.