NetBSD Problem Report #29054

From kim@tac.nyc.ny.us  Sun Jan 23 19:17:33 2005
Return-Path: <kim@tac.nyc.ny.us>
Received: from hrothgar.gw.com (hrothgar.gw.com [204.80.150.33])
	by narn.netbsd.org (Postfix) with ESMTP id 740A663B843
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 23 Jan 2005 19:17:29 +0000 (UTC)
Message-Id: <20050123191728.A51CE6B43B@hrothgar.gw.com>
Date: Sun, 23 Jan 2005 14:17:28 -0500 (EST)
From: kim@tac.nyc.ny.us (Kimmo Suominen)
To: gnats-bugs@netbsd.org
Subject: imlib2 (p5-Image-Imlib2) fails to load images
X-Send-Pr-Version: 3.95

>Number:         29054
>Category:       pkg
>Synopsis:       imlib2 (p5-Image-Imlib2) fails to load images
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 23 19:18:00 +0000 2005
>Closed-Date:    Mon Apr 11 05:42:13 +0000 2005
>Last-Modified:  Mon Apr 11 05:42:13 +0000 2005
>Originator:     Kimmo Suominen
>Release:        NetBSD 2.99.12 / pkgsrc HEAD 2005-01-22
>Organization:
<A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>
>Environment:
System: NetBSD hrothgar.gw.com 2.99.12 NetBSD 2.99.12 (GW-GENERIC) #99: Sat Jan 15 10:04:29 EST 2005 kim@hrothgar.gw.com:/usr/src/sys/arch/i386/compile/GW-GENERIC i386
Architecture: i386
Machine: i386
>Description:

The load() method in Image::Imlib2 fails to load jpg files.  (I have not
tested with other formats.) The files load successfully with earlier
versions of p5-Image-Imlib2 and imlib2.

Based on this thread [http://www.nowhere.dk/A::G/msg00878.html] it seems
the problem is not NetBSD- or pkgsrc-specific.  Note that I am not seeing
the error message quoted in that thread -- I only get the error that the
sample perl script below has in it when the load() method fails.

I can provide a valid JPEG file for reproducing the problem:

    % identify hannu.jpg
    hannu.jpg JPEG 1600x1200 DirectClass 501kb 1.370u 0:02

    ftp://ftp.gw.com/pub/people/kim/pri/hannu.jpg

However, as I mentioned, this happens with other JPEG files, too.

>How-To-Repeat:

use Image::Imlib2;
my $infile = 'hannu.jpg';
my $image = Image::Imlib2->load($infile)
    or warn("Unable to open file $infile, $!");

>Fix:

My current workaround is to downgrade to imlib2-1.1.2nb3 and
p5-Image-Imlib2-1.03nb3.

>Release-Note:

>Audit-Trail:
From: Kimmo Suominen <kim@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: adam@netbsd.org, rh@netbsd.org
Subject: Re: pkg/29054: imlib2 (p5-Image-Imlib2) fails to load images
Date: Sun, 23 Jan 2005 14:24:01 -0500

 I should have mentoned the problematic versions in the PR:

     imlib2-1.2.0
     p5-Image-Imlib2-1.03nb3

 Now that I notice the versions don't match (not even in
 up-to-this-minute HEAD), maybe p5-Image-Imlib2 should have
 been upgraded when imlib2 was upgraded?

 Regards,
 + Kim
 -- 
 <A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/29054 CVS commit: pkgsrc/graphics/p5-Image-Imlib2
Date: Mon, 14 Mar 2005 15:46:47 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Mon Mar 14 15:46:47 UTC 2005

 Modified Files:
 	pkgsrc/graphics/p5-Image-Imlib2: Makefile PLIST distinfo
 Removed Files:
 	pkgsrc/graphics/p5-Image-Imlib2/patches: patch-aa

 Log Message:
 Update to 1.04:
 1.04 Thu Feb  3 15:27:41 GMT 2005
 	- Imlib2 1.1.2 broke our tests as it doesn't enable alpha by
           default (for optimisation purposes). The module now enables
           alpha by default when you create an image, but you can turn
           it off with has_alpha (thanks to Don Armstrong)
 	- tested with Imlib2 1.2.0

 Might fix PR 29054.


 To generate a diff of this commit:
 cvs rdiff -r1.10 -r1.11 pkgsrc/graphics/p5-Image-Imlib2/Makefile
 cvs rdiff -r1.2 -r1.3 pkgsrc/graphics/p5-Image-Imlib2/PLIST
 cvs rdiff -r1.3 -r1.4 pkgsrc/graphics/p5-Image-Imlib2/distinfo
 cvs rdiff -r1.2 -r0 pkgsrc/graphics/p5-Image-Imlib2/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: wiz@netbsd.org
State-Changed-When: Mon, 14 Mar 2005 15:48:33 +0000
State-Changed-Why:
Updated the package to 1.04, which is supposed to work with imlib2-1.2.0.
The self tests work. Could you please check if it works for you?


From: Charlie Allom <charlie@rubberduck.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: re: pkg/29054
Date: Sun, 10 Apr 2005 05:08:22 +1000

 I am still experiencing this with p5-Image-Imlib2-1.04

   C.
 -- 
  hail eris
  http://rubberduck.com/

From: Charlie Allom <charlie@rubberduck.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/29054
Date: Sun, 10 Apr 2005 06:13:42 +1000

 I can confirm that this patch..

 	'http://bugs.debian.org/cgi-bin/bugreport.cgi/imlib2_293815.diff?bug=293815&msg=30&att=1'

 once munged for our code will fix the issue: see

 	http://gallery.rubberduck.com/

   C.
 -- 
  hail eris
  http://rubberduck.com/

From: Kimmo Suominen <kim@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/29054 CVS commit: pkgsrc/graphics/imlib2
Date: Mon, 11 Apr 2005 05:29:15 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	kim
 Date:		Mon Apr 11 05:29:15 UTC 2005

 Modified Files:
 	pkgsrc/graphics/imlib2: Makefile distinfo
 Added Files:
 	pkgsrc/graphics/imlib2/patches: patch-ba patch-bb patch-bc patch-bd

 Log Message:
 Fix imlib2 use through dlopen.  Patch pointer provided by Charlie Allom.
 Closes PR 29054.


 To generate a diff of this commit:
 cvs rdiff -r1.29 -r1.30 pkgsrc/graphics/imlib2/Makefile
 cvs rdiff -r1.11 -r1.12 pkgsrc/graphics/imlib2/distinfo
 cvs rdiff -r0 -r1.1 pkgsrc/graphics/imlib2/patches/patch-ba \
     pkgsrc/graphics/imlib2/patches/patch-bb \
     pkgsrc/graphics/imlib2/patches/patch-bc \
     pkgsrc/graphics/imlib2/patches/patch-bd

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Kimmo Suominen <kim@tac.nyc.ny.us>
To: gnats-bugs@netbsd.org
Cc: Charlie Allom <charlie@rubberduck.com>
Subject: Re: pkg/29054 imlib2 fails to load images
Date: Mon, 11 Apr 2005 01:34:14 -0400

 I applied the patch Charlie Allom pointed out to imlib2.

 Thanks for the detective work, Charlie!

 Regards,
 + Kim
 -- 
 <A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>

State-Changed-From-To: feedback->closed
State-Changed-By: kim@netbsd.org
State-Changed-When: Mon, 11 Apr 2005 05:42:13 +0000
State-Changed-Why:
Fixed by patching imlib2.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.