On 8-Oct-14, at 9:29 AM, Andreas Tille wrote:

since the package is team maintained I really don't mind if you push a
change and upload the package to fix this problem.  If yo do not like
this I'll need at least a patch to fix this.

Attached is patch.

Build log is here:
http://buildd.debian-ports.org/status/fetch.php?pkg=pngquant&ver=2.3.0-1%2Bb1&arch=hppa&stamp=1412811473

Dave
--
John David Anglin       dave.ang...@bell.net


Description: Fix compiler check in configure
 Using '-o /dev/null' in the command fails when the compiler uses collect2
 to generate the final link.  Change to using default a.out.

 pngquant (2.3.0-1) unstable; urgency=medium
 .
   * New upstream version
   * configure:  Use a.out for compiler check.
Author: John David Anglin <dave.ang...@bell.net>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- pngquant-2.3.0.orig/configure
+++ pngquant-2.3.0/configure
@@ -221,9 +221,10 @@ error() {
 echo
 
 # basic check
-if ! "$CC" -xc -std=c99 <(echo "int main(){}") -o /dev/null &> /dev/null; then
-    error "Compiler" "$CC is no C compiler"
+if ! "$CC" -xc -std=c99 <(echo "int main(){}") &> /dev/null; then
+    error "Compiler" "$CC is not a C compiler"
 fi
+rm -rf a.out
 
 status "Compiler" "$CC"
 

Reply via email to