poppler-0.20.5 fails to build with freetype-2.4.11-r1 Reproducible: Always Steps to Reproduce: 1. on ~amd64 (~other_arch?) 2. emerge poppler 3. Actual Results: fails Expected Results: build and install downgrading media-libs/freetype to 2.4.11 fixes the problem
Created attachment 340246 [details] build log
Created attachment 340270 [details, diff] workaround patch
Created attachment 340300 [details, diff] workaround patch
Created attachment 340304 [details, diff] poppler-0.20.5.ebuild.diff
Created attachment 341570 [details] app-text/poppler-0.22.1 build log app-text/poppler-0.22.1 is also affected.
*** Bug 461334 has been marked as a duplicate of this bug. ***
Created attachment 341800 [details] poppler-0.22.2 build.log app-text/poppler-0.22.2 is also affected.
Btw, Alphat's patch (attachment 340304 [details, diff]) still works fine.
As expected, poppler-0.22.2 builds fine with media-libs/freetype-2.4.11-r2 , as per bug 459352 comment 9.
Added the patch to poppler-0.22.2. Will get stable soon anyway.
I have to say I don't like this patch. Looks like FindFreetype.cmake (from cmake) should be patched for multilib support instead.
(In reply to Maciej Mrozowski from comment #11) > I have to say I don't like this patch. Looks like FindFreetype.cmake (from > cmake) should be patched for multilib support instead. OK adapting summary.
dev-utils/cmake-2.8.12.r1-r2 and up contain a patch to FindFreetype.cmake for this. My overlay is able to build multilib poppler without the FREETYPE_DIR hack that reavertm (Maciej) objects to above. So, I am just putting: # bug 495394 CMAKE_MIN_VERSION=2.8.12.1-r2 at the top of the ebuild, before the inherit clause, and dropping the FREETYPE_DIR business. I'd surmise that this should work for most ebuilds with similar problems.
(In reply to Greg Turner from comment #13) > dev-utils/cmake-2.8.12.r1-r2 and up contain a patch to FindFreetype.cmake > for this. My overlay is able to build multilib poppler without the > FREETYPE_DIR hack that reavertm (Maciej) objects to above. > > So, I am just putting: > > # bug 495394 > CMAKE_MIN_VERSION=2.8.12.1-r2 > > at the top of the ebuild, before the inherit clause, and dropping the > FREETYPE_DIR business. I'd surmise that this should work for most ebuilds > with similar problems. reavertm/dilfridge: can you please confirm and remove the hack from poppler ebuild?
Let's way for stabilization of that CMake. Then we can remove workaround from poppler altogether.
Thanks all. + 13 Jul 2014; Johannes Huber <johu@gentoo.org> -poppler-0.26.1.ebuild, + poppler-0.26.2.ebuild, poppler-9999.ebuild: + Remove workaround on freetype, this is fixed in current stable dev- + util/cmake-2.8.12.2, bug #459394.