Source: sed Version: 4.3-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
Hi Clint, your 4.3-1 upload of sed broke cross compilation, because sed started building its manual page from source using help2man. help2man is well known for frequently breaking cross compilation. You asked me to skip regenerating the manual page during cross builds and that's what the attached patch does. Please consider applying it soonish. Helmut
diff --minimal -Nru sed-4.3/debian/changelog sed-4.3/debian/changelog --- sed-4.3/debian/changelog 2017-01-05 02:45:59.000000000 +0100 +++ sed-4.3/debian/changelog 2017-01-05 21:47:53.000000000 +0100 @@ -1,3 +1,10 @@ +sed (4.3-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Skip help2man during cross builds. closes: #-1. + + -- Helmut Grohne <hel...@subdivi.de> Thu, 05 Jan 2017 21:47:53 +0100 + sed (4.3-1) unstable; urgency=medium * New upstream version 4.3 diff --minimal -Nru sed-4.3/debian/patches/cross.patch sed-4.3/debian/patches/cross.patch --- sed-4.3/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ sed-4.3/debian/patches/cross.patch 2017-01-05 21:47:53.000000000 +0100 @@ -0,0 +1,32 @@ +From: Helmut Grohne <hel...@subdivi.de> +Subject: skip help2man during cross builds + +Index: sed-4.3/configure.ac +=================================================================== +--- sed-4.3.orig/configure.ac ++++ sed-4.3/configure.ac +@@ -28,6 +28,7 @@ + + AC_PROG_CC_STDC + AM_PROG_CC_C_O ++AM_CONDITIONAL([cross_compiling],[test x$cross_compiling = xyes]) + gl_EARLY + gl_INIT + gl_DISABLE_THREADS +Index: sed-4.3/doc/local.mk +=================================================================== +--- sed-4.3.orig/doc/local.mk ++++ sed-4.3/doc/local.mk +@@ -22,6 +22,7 @@ + + AM_MAKEINFOHTMLFLAGS = --no-split + ++if !cross_compiling + doc/sed.1: sed/sed$(EXEEXT) .version $(srcdir)/doc/sed.x + $(AM_V_GEN)$(MKDIR_P) doc + $(AM_V_at)rm -rf $@ $@-t +@@ -31,3 +32,4 @@ + -o $@-t $(SEDBIN) \ + && chmod a-w $@-t \ + && mv $@-t $@ ++endif diff --minimal -Nru sed-4.3/debian/patches/series sed-4.3/debian/patches/series --- sed-4.3/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ sed-4.3/debian/patches/series 2017-01-05 21:46:37.000000000 +0100 @@ -0,0 +1 @@ +cross.patch