Source: libidn
Version: 1.28-1
Severity: wishlist
Tags: patch

In the process of bootstrapping Debian, libidn is needed before gcj is 
available.  (What I'm looking at now that brings it in is: libwww-perl Depends 
on liblwp-protocol-https-perl, which Build-Depends on libio-socket-ssl-perl, 
which Build-Depends on libnet-libidn-perl.)  So, here's a patch to let the 
package build without gcj available.
-- 
Daniel Schepler
diff -urN libidn-1.28.old/debian/rules libidn-1.28/debian/rules
--- libidn-1.28.old/debian/rules	2013-07-10 06:31:48.000000000 -0700
+++ libidn-1.28/debian/rules	2014-02-07 19:26:55.718678086 -0800
@@ -6,7 +6,9 @@
 # Don't build libidn11-java on platforms that doesn't have gcj.
 NO_JAVA_ARCHES := arm hppa hurd-i386
 DEB_HOST_ARCH  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-ifeq (,$(filter $(DEB_HOST_ARCH),$(NO_JAVA_ARCHES)))
+ifneq (,$(filter stage1,$(DEB_BUILD_PROFILES)))
+  export DH_OPTIONS=-Nlibidn11-java
+else ifeq (,$(filter $(DEB_HOST_ARCH),$(NO_JAVA_ARCHES)))
   ENABLE_JAVA := --enable-java
 else
   export DH_OPTIONS=-Nlibidn11-java

Reply via email to