Created attachment 278907 [details, diff] partial fix for libpng-1.5, exhibits missing blue channel app-office/dia-0.97.1 fails to build against libpng-1.5 due to dia accessing members of libpng structs directly. Build typically fails with the following compiler error: export_png.c: In function ‘export_png_ok’: export_png.c:181: error: dereferencing pointer to incomplete type make: *** [export_png.lo] Error 1 Attached is a partial fix to the issue, however a second issue has appeared, namely, the blue channel in the output is absent. I am investigating this now and will post an updated patch if I figure out what's going on.
Comment on attachment 278907 [details, diff] partial fix for libpng-1.5, exhibits missing blue channel Better plan, use upstream's patch, see bug URL.
+ 07 Aug 2011; Samuli Suominen <ssuominen@gentoo.org> dia-0.97.1.ebuild, + +files/dia-0.97.1-libpng15.patch: + Fix building with libpng15 wrt #373871 by Stuart Longland. Remove automagic + USE="png zlib" and always depend on libpng and zlib.