Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 2010 19:44:10 GMT
From:      Barbara <barbara.xxx1975@libero.it>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/145180: graphics/imlib2: fix build for png-1.4.1
Message-ID:  <201003291944.o2TJiA3e048930@www.freebsd.org>
Resent-Message-ID: <201003291950.o2TJo2pn007126@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>Number:         145180
>Category:       misc
>Synopsis:       graphics/imlib2: fix build for png-1.4.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 29 19:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Barbara
>Release:        
>Organization:
>Environment:
FreeBSD satanasso.local.net 7.3-STABLE FreeBSD 7.3-STABLE #0: Thu Mar 25 09:52:40 CET 2010 root@satanasso.local.net:/usr/obj/usr/src/sys/SATANASSO i386
>Description:
Fix the build after png update.
Successfully tested using graphics/feh under fluxbox with the following command:
    feh --bg-scale /path/to/a/file.png
With the last committed I was getting:
    No Imlib2 loader for that file format
    feh ERROR: Couldn't load image in order to set bg

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- files/patch-loader_png.c.orig	2010-03-29 14:22:41.000000000 +0200
+++ files/patch-loader_png.c	2010-03-29 21:36:48.000000000 +0200
@@ -5,7 +5,7 @@
          /* if we haven't read the header before, set the header data */
          fread(buf, 1, PNG_BYTES_TO_CHECK, f);
 -        if (!png_check_sig(buf, PNG_BYTES_TO_CHECK))
-+        if (png_check_sig(buf, 0, PNG_BYTES_TO_CHECK) != 0)
++        if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
            {
               fclose(f);
               return 0;


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003291944.o2TJiA3e048930>