Source: readline6
Version: 6.2+dfsg-0.1
Severity: wishlist
Tags: patch

The readline6 is involved in a dependency cycle: readline6 Build-Depends on 
texinfo, which Depends on libxml-libxml-perl, which Build-Depends on libxml2, 
which Build-Depends on libreadline-dev.  So, here's a patch to allow 
bootstrapping readline6 without texinfo; and also it allows building without 
multilib compilers and libraries which aren't available until much later in 
the bootstrapping process.
-- 
Daniel Schepler
diff -urN readline6-6.2+dfsg.old/debian/rules readline6-6.2+dfsg/debian/rules
--- readline6-6.2+dfsg.old/debian/rules	2012-12-30 14:27:34.000000000 -0800
+++ readline6-6.2+dfsg/debian/rules	2013-05-26 07:28:45.068203220 -0700
@@ -17,6 +17,12 @@
 CROSS=gcc
 endif
 
+ifeq ($(DEB_BUILD_PROFILE),stage1)
+
+bootstrap_dh_flags = -N$(p_rl32) -N$(p_rld32) -N$(p_rl64) -N$(p_rld64)
+
+else
+
 ifneq (,$(findstring /$(DEB_HOST_ARCH)/,/i386/powerpc/sparc/s390/))
   build64 = yes
   CC64 = $(CROSS) -m64
@@ -57,6 +63,8 @@
   endif
 endif
 
+endif
+
 CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
 CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
 LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
@@ -166,7 +174,9 @@
 	    SHLIB_LIBS="-ltinfo"
 	    SHLIB_XLDFLAGS='-soname,`echo $$@ | sed s/\\..$$$$//`'
 endif
+ifneq ($(DEB_BUILD_PROFILE),stage1)
 	$(MAKE) -C $(builddir)/doc info
+endif
 
 	touch build-stamp
 
@@ -432,10 +442,10 @@
 	-ls -l $(d_rld)/usr/share/doc/$(p_rl)
 endif
 
-	dh_installdeb -s
-	dh_gencontrol -s $(gencontrol_flags)
-	dh_md5sums -s
-	dh_builddeb -s
+	dh_installdeb -s $(bootstrap_dh_flags)
+	dh_gencontrol -s $(gencontrol_flags) $(bootstrap_dh_flags)
+	dh_md5sums -s $(bootstrap_dh_flags)
+	dh_builddeb -s $(bootstrap_dh_flags)
 
 binary:		binary-indep binary-arch
 

Reply via email to