Package: libdevil1 Version: 1.6.7-4 Severity: normal Tags: patch Hi!
While working with ogre3d in an amd64 I came across a problem reading png files. I tracked it down to devil and found a patch on a forum. After aplying the patch and rebuilding devil everything ran smoothly. I'm attaching the patch. Thanks! K. -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.10-1-k7 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages libdevil1 depends on: ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libjpeg62 6b-10 The Independent JPEG Group's JPEG ii libmng1 1.0.8-1 Multiple-image Network Graphics li ii libpng12-0 1.2.8rel-1 PNG library - runtime ii libsdl1.2debian 1.2.7+1.2.8cvs20041007-5 Simple DirectMedia Layer ii libtiff4 3.7.2-3 Tag Image File Format (TIFF) libra ii xlibmesa-glu [l 4.3.0.dfsg.1-14 Mesa OpenGL utility library [XFree ii zlib1g 1:1.2.2-4 compression library - runtime -- no debconf information -- Lucas Wall <[EMAIL PROTECTED]> .''`. Buenos Aires, Argentina : :� Debian GNU/Linux http://www.kadath.com.ar `. `' http://www.debian.org PGP: 1024D/84FB46D6 `- 5D25 528A 83AB 489B 356A http://people.debian.org/~lwall 4087 BC9B 4733 84FB 46D6 mailto:[EMAIL PROTECTED]
--- devil-1.6.7.orig/src-IL/src/il_png.c +++ devil-1.6.7/src-IL/src/il_png.c @@ -282,11 +282,10 @@ ILboolean readpng_get_image(ILdouble display_exponent) { - ILuint i; png_bytepp row_pointers = NULL; - ILuint width, height, channels; - ILdouble screen_gamma = 1.0, image_gamma; - ILuint bit_depth; + png_uint_32 width, height; + ILuint i, channels, bit_depth; + ILdouble screen_gamma = 1.0, image_gamma; /* setjmp() must be called in every function that calls a PNG-reading
signature.asc
Description: Digital signature