Created attachment 154291 [details]
patch to be applied in /usr/ports, modifying files in emulators/virtualbox-ose
The VirtualBox sources contain some png files containing color profile data which (lib)png-1.6.16 complains about. This fix uses ImageMagick's "convert" command to remove these profiles (they are not strictly needed). Because the png files are compiled into the binary, the fix works as a post-patch.
The attached patch should be applied in /usr/ports; it modifies emulators/virtualbox-ose/Makefile and adds emulators/virtualbox-ose/files/profile-strip.
Comment from Ralf Nolden (kde), so: testbuild@work
I have checked that with Virtualbox and witout the patch I get the messages:
Qt WARNING: libpng warning: iCCP: known incorrect sRGB profile
due to wrong png files, which the patch fixes.
I applied the patch from the PR and rebuild virtualbox, then retried. The
errors are away now.
More info on the underlying issue is found here:
Error detection in some chunks has improved; in particular the iCCP chunk
reader now does pretty complete validation of the basic format. Some bad
profiles that were previously accepted are now rejected, in particular the
very old broken Microsoft/HP sRGB profile. The PNG spec requirement that
only grayscale profiles may appear in images with color type 0 or 4 and that
even if the image only contains gray pixels, only RGB profiles may appear
in images with color type 2, 3, or 6, is now enforced. The sRGB chunk
is allowed to appear in images with any color type.