Sabine Sagner-Weigl a écrit :
> Hi!
> 
> When starting a client I get the error message:
>  ! Can't find pngnq (using "pngnq")
>  
> But pngnq is installed:
> pngnq is /usr/bin/pngnq
> 
> During processing the tile I get error messages like:
> [#7  76% tile] ColorQuantizing tile_14_9820_6531.png with "pngnq" failed  
> or      
> [#1  48% maplint] ColorQuantizing maplint_16_34842_22407.png with "pngnq" 
> failed 

Hi,

For Debian/Ubuntu users affeted by the pngnq bug, I propose this little
patch. I prefer to patch tahconfig than install a non-official debian
package.

I'm ok to commit directly the patch but I need an account to do it.

Regards,


-- 
Rodolphe Quiédeville - Artisan Logiciel Libre
http://rodolphe.quiedeville.org/
Travaillons Libre - http://fr.lolix.org/
Index: tahconfig.pm
===================================================================
--- tahconfig.pm	(revision 9373)
+++ tahconfig.pm	(working copy)
@@ -288,6 +288,15 @@
     {
         $cmd=$Config->get("pngnq");
         my $PngnqV=`\"$cmd\" -V 2>&1`;
+	
+	# Deal with Debian/Ubuntu bug in pngnq V 0.5
+	if ($PngnqV =~ /pngnq.+\(null\)/) {
+	    my $dpkg = "/usr/bin/dpkg";
+	    if (-x $dpkg) {
+		$PngnqV=`\"$dpkg\" -l pngnq 2>&1` ;
+	    }
+	}
+
         if ($PngnqV !~ /pngnq.+(\d+\.\d+)/)
         {
             print "! Can't find pngnq (using \"".$Config->get("pngnq")."\")\n";

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Tilesathome mailing list
[email protected]
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/tilesathome

Reply via email to