Summary: | media-gfx/xsane-0.997 (and 0.996) fail to compile against libpng-1.5 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stuart Longland (RETIRED) <redhatter> |
Component: | New packages | Assignee: | Gentoo Graphics Project <graphics+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | pacho, phosphan, printing |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 354479 | ||
Attachments: |
xsane-0.996 build log (0.997 fails the same way)
Updated ebuild for xsane-0.997 |
Created attachment 281795 [details]
Updated ebuild for xsane-0.997
added to 0.998 |
Created attachment 281789 [details] xsane-0.996 build log (0.997 fails the same way) xsane fails to build against libpng-1.5, as it tries to access the jmpbuf member of the png_info struct. The fix is easily patched with a simple sed one-liner in src_compile: ebegin "Patching ${S}/src/xsane-save.c for libpng-1.5" sed -i -e 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' \ "${S}/src/xsane-save.c" eend $? I'll attach an updated ebuild shortly. I can confirm this fix works, at least for 0.997. Should work for 0.996 too.