Package: discount
Version: 2.2.2-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap
Control: affects -1 + src:unpaper

unpaper fails to cross build from source, because running discount fails
with:

| /usr/bin/markdown: 1: /usr/bin/markdown: Syntax error: word unexpected 
(expecting ")")

A shell is trying to interpret markdown after failing to execute it with
-ENOEXEC. It needs the build architecture discount rather than the host
architecture discount. This can either be achieved by annotating the
discount dependency with :native or by marking discount Multi-Arch:
foreign. Since discount only contains command line utilities and it
looks like their output does not depend on the architecture discount was
compiled for, the latter looks correct to me. Please consider applying
the attached patch.

Helmut
diff --minimal -Nru discount-2.2.2/debian/changelog 
discount-2.2.2/debian/changelog
--- discount-2.2.2/debian/changelog     2017-01-19 23:42:00.000000000 +0100
+++ discount-2.2.2/debian/changelog     2017-09-15 20:35:33.000000000 +0200
@@ -1,3 +1,10 @@
+discount (2.2.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Mark discount binary package Multi-Arch: foreign (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 15 Sep 2017 20:35:33 +0200
+
 discount (2.2.2-1) unstable; urgency=medium
 
   * New upstream release
diff --minimal -Nru discount-2.2.2/debian/control discount-2.2.2/debian/control
--- discount-2.2.2/debian/control       2017-01-19 23:42:00.000000000 +0100
+++ discount-2.2.2/debian/control       2017-09-15 20:35:12.000000000 +0200
@@ -10,6 +10,7 @@
 
 Package: discount
 Architecture: any
+Multi-Arch: foreign
 Depends: ${shlibs:Depends}, ${misc:Depends}, libmarkdown2 (= ${binary:Version})
 Conflicts: markdown, libtext-markdown-perl
 Description: implementation of the Markdown markup language in C

Reply via email to