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. -- Martin
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: https://forum.qt.io/topic/58638/solved-libpng-warning-iccp-known-incorrect-srgb-profile-drive-me-nuts http://www.libpng.org/pub/png/libpng-manual.txt 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.
Maintainer feedback?
Is this still relevant?
Comment on attachment 154291 [details] patch to be applied in /usr/ports, modifying files in emulators/virtualbox-ose I run VirtualBox 6.1.50 in console and don't see this warning.
Probably this fixed in VurtialBox or libpng or Qt or ??? upstream