Bug#841754: sonic FTCBFS: executes host arch javac during build
Source: sonic
Version: 0.2.0-4
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap
sonic fails to cross build from source, because it executes the host
architecture javac during build. Looking closer, one recognizes that the
java stuff is only needed for an architecture-independent package.
Indeed, removing any java compilation from the binary-arch build makes
the cross build succeed. I also verified that native arch-only,
indep-only and full builds keep working after applying the attached
patch. Please consider using it.
Helmut
diff --minimal -Nru sonic-0.2.0/debian/changelog sonic-0.2.0/debian/changelog
--- sonic-0.2.0/debian/changelog 2016-09-04 18:53:35.000000000 +0200
+++ sonic-0.2.0/debian/changelog 2016-10-23 08:06:50.000000000 +0200
@@ -1,3 +1,10 @@
+sonic (0.2.0-4.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Do not build java stuff during arch-only build. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Sun, 23 Oct 2016 08:06:49 +0200
+
sonic (0.2.0-4) unstable; urgency=medium
* compat: Bump to 9.
diff --minimal -Nru sonic-0.2.0/debian/control sonic-0.2.0/debian/control
--- sonic-0.2.0/debian/control 2016-05-22 21:05:49.000000000 +0200
+++ sonic-0.2.0/debian/control 2016-10-23 08:08:07.000000000 +0200
@@ -3,7 +3,8 @@
Priority: extra
Maintainer: Debian Accessibility Team <debian-accessibility@lists.debian.org>
Uploaders: Bill Cox <waywardgeek@gmail.com>, Samuel Thibault <sthibault@debian.org>
-Build-Depends: debhelper (>= 9), default-jdk
+Build-Depends: debhelper (>= 9)
+Build-Depends-Indep: default-jdk
Standards-Version: 3.9.8
Homepage: https://github.com/waywardgeek/sonic
Vcs-Browser: http://git.debian.org/?p=pkg-a11y/sonic.git;a=summary
diff --minimal -Nru sonic-0.2.0/debian/rules sonic-0.2.0/debian/rules
--- sonic-0.2.0/debian/rules 2016-09-04 17:19:14.000000000 +0200
+++ sonic-0.2.0/debian/rules 2016-10-23 08:19:28.000000000 +0200
@@ -20,16 +20,17 @@
sonic.jar: sonic/Sonic.class
jar -cf $@ $^
-override_dh_auto_build: sonic.jar
- dh_auto_build
+override_dh_auto_build-indep: sonic.jar
override_dh_auto_clean:
dh_auto_clean
rm -f Sonic.class
rm -f sonic.jar
-override_dh_auto_install:
+override_dh_auto_install-arch:
mkdir -p $(CURDIR)/debian/tmp
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
+
+override_dh_auto_install-indep:
mkdir -p $(CURDIR)/debian/tmp/usr/share/java
cp sonic.jar $(CURDIR)/debian/tmp/usr/share/java
Reply to: