Created attachment 422818 [details] build.log Tests pass with (stable) media-libs/giflib-4.1.6-r3. FAIL: pngio_reg ... FAIL: gifio_reg ======================= 2 of 58 tests failed (10 tests were not run) See prog/test-suite.log ======================= Makefile:3107: recipe for target 'test-suite.log' failed make[3]: *** [test-suite.log] Error 1 make[3]: Leaving directory '/var/tmp/portage/media-libs/leptonica-1.72-r2/work/leptonica-1.72-abi_x86_64.amd64/prog' Makefile:3185: recipe for target 'check-TESTS' failed make[2]: *** [check-TESTS] Error 2 make[2]: Leaving directory '/var/tmp/portage/media-libs/leptonica-1.72-r2/work/leptonica-1.72-abi_x86_64.amd64/prog' Makefile:3409: recipe for target 'check-am' failed make[1]: *** [check-am] Error 2 make[1]: Leaving directory '/var/tmp/portage/media-libs/leptonica-1.72-r2/work/leptonica-1.72-abi_x86_64.amd64/prog' Makefile:366: recipe for target 'check-recursive' failed make: *** [check-recursive] Error 1 * ERROR: media-libs/leptonica-1.72-r2::gentoo failed (test phase): * emake failed
Created attachment 422832 [details] test-suite.log
You may have reported this just in time! After a 9 month wait, 1.73 is actually due out today. Unfortunately I was able to reproduce this against the preview of that version. I am in close contact with upstream and have let them know.
Upstream looked at this for 2 hours and eventually concluded that 5.1.2 must be buggy. I trust Dan's judgement on this but I'm seeking clarification on what he's going to do about it.
5.1.1 works fine so Dan is going to disable GIF reading if 5.1.2 is used, which is awkward from a packaging perspective. I could do <media-libs/giflib-5.1.2 but this could be annoying for users as there aren't any other 5.x versions currently keyworded. This seems like a serious bug that probably affects more than just Leptonica and it's been reported upstream so perhaps graphics team should mask 5.1.2 and keyword 5.1.1. http://sourceforge.net/p/giflib/bugs/80/
Meant to reassign this to graphics team. Guys, please read above.
esr has confirmed that there is an issue and has fixed it in tip. This should go out in 5.1.3 but there's no indicator of when that might be. In the meantime, I suggest that you either mask or patch 5.1.2.
I have now bumped Leptonica to 1.73 anyway on the basis that it will probably do no worse than the earlier versions. esr said he would release giflib 5.1.3 early this week but no sign of it yet. I will push to get it in the tree ASAP when that happens.
=media-libs/giflib-5.1.3 has been added to the tree. Does this fix the issue described here?
(In reply to Lars Wendler (Polynomial-C) from comment #8) > =media-libs/giflib-5.1.3 has been added to the tree. Does this fix the issue > described here? It does indeed. Tested and closing. :)