NetBSD Problem Report #53772

From www@NetBSD.org  Mon Dec 10 16:16:27 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8600B7A183
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 10 Dec 2018 16:16:27 +0000 (UTC)
Message-Id: <20181210161626.094BD7A20B@mollari.NetBSD.org>
Date: Mon, 10 Dec 2018 16:16:26 +0000 (UTC)
From: alexwgarvin@gmail.com
Reply-To: alexwgarvin@gmail.com
To: gnats-bugs@NetBSD.org
Subject: gtk2 fails to recognize png file during build
X-Send-Pr-Version: www-1.0

>Number:         53772
>Category:       pkg
>Synopsis:       gtk2 fails to recognize png file during build
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 10 16:20:00 +0000 2018
>Closed-Date:    
>Last-Modified:  Tue Dec 22 21:58:33 +0000 2020
>Originator:     Alexander Garvin
>Release:        pkgsrc-current 2018-12-10
>Organization:
>Environment:
Linux -- 4.19.5-300.fc29.x86_64 #1 SMP Tue Nov 27 19:29:23 UTC 2018 x86_64 GNU/Linux
>Description:
gtk2 fails to recognize file format for apple-red.png. Possibly the same issue as:
http://mail-index.netbsd.org/pkgsrc-bugs/2009/08/28/msg033613.html
I tried updating/rebuilding libpng (graphics/png) but still ran into the same issue.


Making all in demos
make[2]: Entering directory '/usr/pkgsrc/x11/gtk2/work/gtk+-2.24.32/demos'
/usr/pkg/bin/gdk-pixbuf-csource --raw --build-list		\
        apple_red  ./apple-red.png	\
                gnome_foot ./gnome-foot.png	\
        > test-inline-pixbufs.h				\
|| (rm -f test-inline-pixbufs.h && false)
failed to load "./apple-red.png": Couldn’t recognize the image file format for file “./apple-red.png”
Makefile:1018: recipe for target 'test-inline-pixbufs.h' failed
make[2]: *** [test-inline-pixbufs.h] Error 1
make[2]: Leaving directory '/usr/pkgsrc/x11/gtk2/work/gtk+-2.24.32/demos'
Makefile:733: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/pkgsrc/x11/gtk2/work/gtk+-2.24.32'
Makefile:625: recipe for target 'all' failed
make: *** [all] Error 2
*** Error code 2

>How-To-Repeat:
cd /usr/pkgsrc/x11/gtk2 && bmake install
>Fix:

>Release-Note:

>Audit-Trail:
From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53772: gtk2 fails to recognize png file during build
Date: Mon, 10 Dec 2018 19:32:29 +0100

 Hello Alexander,

 alexwgarvin@gmail.com writes:
 > [...]
 > >Environment:
 > Linux -- 4.19.5-300.fc29.x86_64 #1 SMP Tue Nov 27 19:29:23 UTC 2018 x86_64 GNU/Linux
 > >Description:
 > gtk2 fails to recognize file format for apple-red.png. Possibly the same issue as:
 > http://mail-index.netbsd.org/pkgsrc-bugs/2009/08/28/msg033613.html
 > I tried updating/rebuilding libpng (graphics/png) but still ran into the same issue.
 >
 >
 > Making all in demos
 > make[2]: Entering directory '/usr/pkgsrc/x11/gtk2/work/gtk+-2.24.32/demos'
 > /usr/pkg/bin/gdk-pixbuf-csource --raw --build-list		\
 >         apple_red  ./apple-red.png	\
 >                 gnome_foot ./gnome-foot.png	\
 >         > test-inline-pixbufs.h				\
 > || (rm -f test-inline-pixbufs.h && false)
 > failed to load "./apple-red.png": Couldn’t recognize the image file format for file “./apple-red.png”
 > Makefile:1018: recipe for target 'test-inline-pixbufs.h' failed
 > make[2]: *** [test-inline-pixbufs.h] Error 1
 > make[2]: Leaving directory '/usr/pkgsrc/x11/gtk2/work/gtk+-2.24.32/demos'
 > Makefile:733: recipe for target 'all-recursive' failed
 > make[1]: *** [all-recursive] Error 1
 > make[1]: Leaving directory '/usr/pkgsrc/x11/gtk2/work/gtk+-2.24.32'
 > Makefile:625: recipe for target 'all' failed
 > make: *** [all] Error 2
 > *** Error code 2
 > [...]

 From a quick (and maybe incorrect!) grep-ing it seems that x11/gtk2
 does not directly need png... However, graphics/gdk-pixbuf2 needs
 it and from your error log it seems that the error comes from it.

 Can you please try a `bmake configure' of graphics/gdk-pixbuf2 and
 share config.log line regarding `png'?


 Thank you!

State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Mon, 10 Dec 2018 20:10:26 +0000
State-Changed-Why:
Feedback requested (just a question but maybe it can help to
restrict the issue!)


From: Alexander Garvin <alexwgarvin@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53772: gtk2 fails to recognize png file during build
Date: Mon, 10 Dec 2018 18:27:14 -0500

 Sure!

 $: cat work/gdk-pixbuf-2.36.12/config.log  | grep png
 configure:18942: checking for libpng16
 GDK_PIXBUF_DEP_CFLAGS='-I/usr/pkg/include/glib/glib-2.0 
 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -pthread 
 -I/usr/pkg/include/libpng16  '
 GDK_PIXBUF_DEP_LIBS='-L/usr/pkg/lib -lgmodule-2.0 -pthread -lpthread 
 -lrt -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpng16 -Wl,-R/usr/pkg/lib -lz -lm'
 LIBPNG='-L/usr/pkg/lib -lpng16 -Wl,-R/usr/pkg/lib -lz '
 PNG_DEP_CFLAGS_PACKAGES='libpng16'



 On 12/10/18 1:35 PM, Leonardo Taccari wrote:
 > The following reply was made to PR pkg/53772; it has been noted by GNATS.
 >
 > From: Leonardo Taccari <leot@NetBSD.org>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: pkg/53772: gtk2 fails to recognize png file during build
 > Date: Mon, 10 Dec 2018 19:32:29 +0100
 >
 >   Hello Alexander,
 >   
 >   alexwgarvin@gmail.com writes:
 >   > [...]
 >   > >Environment:
 >   > Linux -- 4.19.5-300.fc29.x86_64 #1 SMP Tue Nov 27 19:29:23 UTC 2018 x86_64 GNU/Linux
 >   > >Description:
 >   > gtk2 fails to recognize file format for apple-red.png. Possibly the same issue as:
 >   > http://mail-index.netbsd.org/pkgsrc-bugs/2009/08/28/msg033613.html
 >   > I tried updating/rebuilding libpng (graphics/png) but still ran into the same issue.
 >   >
 >   >
 >   > Making all in demos
 >   > make[2]: Entering directory '/usr/pkgsrc/x11/gtk2/work/gtk+-2.24.32/demos'
 >   > /usr/pkg/bin/gdk-pixbuf-csource --raw --build-list		\
 >   >         apple_red  ./apple-red.png	\
 >   >                 gnome_foot ./gnome-foot.png	\
 >   >         > test-inline-pixbufs.h				\
 >   > || (rm -f test-inline-pixbufs.h && false)
 >   > failed to load "./apple-red.png": Couldn’t recognize the image file format for file “./apple-red.png”
 >   > Makefile:1018: recipe for target 'test-inline-pixbufs.h' failed
 >   > make[2]: *** [test-inline-pixbufs.h] Error 1
 >   > make[2]: Leaving directory '/usr/pkgsrc/x11/gtk2/work/gtk+-2.24.32/demos'
 >   > Makefile:733: recipe for target 'all-recursive' failed
 >   > make[1]: *** [all-recursive] Error 1
 >   > make[1]: Leaving directory '/usr/pkgsrc/x11/gtk2/work/gtk+-2.24.32'
 >   > Makefile:625: recipe for target 'all' failed
 >   > make: *** [all] Error 2
 >   > *** Error code 2
 >   > [...]
 >   
 >   From a quick (and maybe incorrect!) grep-ing it seems that x11/gtk2
 >   does not directly need png... However, graphics/gdk-pixbuf2 needs
 >   it and from your error log it seems that the error comes from it.
 >   
 >   Can you please try a `bmake configure' of graphics/gdk-pixbuf2 and
 >   share config.log line regarding `png'?
 >   
 >   
 >   Thank you!
 >   

State-Changed-From-To: feedback->open
State-Changed-By: leot@NetBSD.org
State-Changed-When: Tue, 11 Dec 2018 15:35:18 +0000
State-Changed-Why:
Feedback provided.
It seems that gdk-pixbuf-2 is built with png support,
probably something else is going wrong.


State-Changed-From-To: open->feedback
State-Changed-By: prlw1@NetBSD.org
State-Changed-When: Tue, 22 Dec 2020 21:58:33 +0000
State-Changed-Why:
In the

http://mail-index.netbsd.org/pkgsrc-bugs/2009/08/28/msg033613.html

thread you quote, Martin writes that the problem disappeared after
cleaning out the work directories. Does it build after you try that?
(Problem simply disappeared in intervening time?)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.