[From nobody Sun Nov  1 11:53:07 2026
Received: (at submit) by bugs.debian.org; 13 Dec 2018 06:20:31 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
 (2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-10.7 required=4.0 tests=BAYES_00, MURPHY_DRUGS_REL8, 
 RCVD_IN_DNSWL_NONE,TXREP autolearn=ham autolearn_force=no
 version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 12; hammy, 150; neutral, 67; spammy,
 0. spammytokens: hammytokens:0.000-+--Grohne, 0.000-+--grohne,
 0.000-+--H*u:1.10.1, 0.000-+--H*UA:1.10.1, 0.000-+--H*u:2018-07-13
Return-path: &lt;helmut@subdivi.de&gt;
Received: from isilmar-4.linta.de ([136.243.71.142])
 by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from &lt;helmut@subdivi.de&gt;) id 1gXKMI-0002qm-Nq
 for submit@bugs.debian.org; Thu, 13 Dec 2018 06:20:30 +0000
Received: from isilmar-4.linta.de (isilmar.linta [10.0.0.1])
 by isilmar-4.linta.de (Postfix) with ESMTP id DA792200541
 for &lt;submit@bugs.debian.org&gt;; Thu, 13 Dec 2018 06:20:27 +0000 (UTC)
Date: Thu, 13 Dec 2018 07:20:12 +0100
From: Helmut Grohne &lt;helmut@subdivi.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: pngmeta FTCBFS: builds for the wrong architecture
Message-ID: &lt;20181213062010.GA8846@alf.mars&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;sdtB3X0nJg68CQEu&quot;
Content-Disposition: inline
X-Reportbug-Version: 7.5.1
User-Agent: Mutt/1.10.1 (2018-07-13)
Delivered-To: submit@bugs.debian.org


--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: pngmeta
Version: 1.11-9
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

pngmeta fails to cross build from source, because it configures for the
build architecture. The packaging does pass the relevant --host flag to
./configure, but ./configure is too old to recognize it. One should pass
a suitable CC here instead. Please consider applying the attached patch.

Helmut

--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=&quot;pngmeta_1.11-9.1.debdiff&quot;

diff -u pngmeta-1.11/debian/changelog pngmeta-1.11/debian/changelog
--- pngmeta-1.11/debian/changelog
+++ pngmeta-1.11/debian/changelog
@@ -1,3 +1,10 @@
+pngmeta (1.11-9.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass CC to ./configure rather than --host. (Closes: #-1)
+
+ -- Helmut Grohne &lt;helmut@subdivi.de&gt;  Thu, 13 Dec 2018 07:17:18 +0100
+
 pngmeta (1.11-9) unstable; urgency=medium
 
   * QA upload.
diff -u pngmeta-1.11/debian/rules pngmeta-1.11/debian/rules
--- pngmeta-1.11/debian/rules
+++ pngmeta-1.11/debian/rules
@@ -1,19 +1,13 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE=1
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
+-include /usr/share/dpkg/buildtools.mk
 
 config.status: configure
 	dh_testdir
-	./configure \
-		--host=$(DEB_HOST_GNU_TYPE) \
-		--build=$(DEB_BUILD_GNU_TYPE) \
+	CC=$(CC) ./configure \
 		--prefix=/usr --mandir=\$${prefix}/share/man \
 		--infodir=\$${prefix}/share/info
 

--sdtB3X0nJg68CQEu--
]