Bug 84707

Summary: [EFL] Resolve CMake warnings on overlapping search paths for EFL jhbuild-enabled build
Product: WebKit Reporter: Dominik Röttsches (drott) <d-r>
Component: Tools / TestsAssignee: Dominik Röttsches (drott) <d-r>
Status: RESOLVED FIXED    
Severity: Normal CC: dpranke, gustavo, rakuco, rwlbuis, tmpsantos, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 95320    
Bug Blocks: 95237    
Attachments:
Description Flags
CMake warnings
none
Patch
none
Patch v2, prefix needed on 64bit only.
none
Patch v3, keep prefix path definition on 32bit.
none
Patch gustavo: review+

Description Dominik Röttsches (drott) 2012-04-24 04:33:36 PDT
CMake lists a couple of warning on unreliable library overlaps.
Comment 1 Dominik Röttsches (drott) 2012-04-24 04:34:19 PDT
Created attachment 138536 [details]
CMake warnings
Comment 2 Dominik Röttsches (drott) 2012-04-24 04:35:26 PDT
Do you have any idea on this Raphael? I looked around and found this post about using CMAKE_PREFIX_PATH and I remember you had a bug filed for this, is that right?
Comment 3 Dominik Röttsches (drott) 2012-04-24 04:37:55 PDT
Found it - it was bug 81491 - but apparently that didn't fully resolve the issue.
Comment 4 Raphael Kubo da Costa (:rakuco) 2012-04-25 10:45:57 PDT
I don't get these warnings here, but had libcairo.so and libgio.so depending on wrong versions of a few libraries.

The problem in libcairo was solved by rebuilding it (I haven't rebuilt glib to see if its problems go away yet). From the CMakeCache.txt you posted to me earlier today, CMake is finding the right headers for cairo but the wrong library -- can you double check libcairo.so is properly installed in your Root/lib directory and, if it is, remove your CMakeCache.txt and try again?
Comment 5 Dominik Röttsches (drott) 2012-04-26 00:32:51 PDT
http://build.webkit.org/builders/EFL%20Linux%20Debug/builds/671/steps/compile-webkit/logs/stdio
is a completely fresh build, Dependencies and Debug folders deleted - that means, there wasn't an old CMakeCache.txt there either. Issue persists.
Comment 6 Dominik Röttsches (drott) 2012-06-12 03:39:21 PDT
Created attachment 147045 [details]
Patch
Comment 7 Dominik Röttsches (drott) 2012-06-12 03:59:34 PDT
Created attachment 147048 [details]
Patch v2, prefix needed on 64bit only.
Comment 8 Dominik Röttsches (drott) 2012-06-12 04:04:27 PDT
Created attachment 147050 [details]
Patch v3, keep prefix path definition on 32bit.
Comment 9 Dominik Röttsches (drott) 2012-06-12 05:22:37 PDT
(In reply to comment #8)
> Created an attachment (id=147050) [details]
> Patch v3, keep prefix path definition on 32bit.

This was successfully tested on 64bit and 32bit machines. Kindly requesting cq+.
Comment 10 WebKit Review Bot 2012-06-12 13:38:23 PDT
Comment on attachment 147050 [details]
Patch v3, keep prefix path definition on 32bit.

Clearing flags on attachment: 147050

Committed r120113: <http://trac.webkit.org/changeset/120113>
Comment 11 WebKit Review Bot 2012-06-12 13:38:29 PDT
All reviewed patches have been landed.  Closing bug.
Comment 12 Raphael Kubo da Costa (:rakuco) 2012-08-29 04:07:12 PDT
Time to revisit this: the fix does not look OK, as CMake uses the value of $CMAKE_PREFIX_PATH as a root directory for FIND_PATH(), FIND_LIBRARY() and FIND_EXECUTABLE(). If it is set to /somewhere/lib64, it will not work as expected. This is causing problems with bug 95237.

I've talked to Dominik on IRC, and we have agreed to roll this patch out for now to see if the warnings persist now that most Find modules have been rewritten. If they do, I'll try to fix them ASAP.
Comment 13 WebKit Review Bot 2012-08-29 04:09:12 PDT
Re-opened since this is blocked by 95320
Comment 14 Dominik Röttsches (drott) 2012-08-29 05:20:32 PDT
Warnings are back after the rollout:
http://build.webkit.org/builders/EFL%20Linux%2064-bit%20Debug%20WK2/builds/2348/steps/compile-webkit/logs/stdio

Showing that system fontconfig is used :-(
Comment 15 Raphael Kubo da Costa (:rakuco) 2012-08-29 05:36:47 PDT
Alright, so now we get a different warning according to <http://build.webkit.org/builders/EFL%20Linux%2064-bit%20Debug%20WK2/builds/2348/steps/compile-webkit/logs/stdio>

Which means my rewrites of the Find modules have worked in this regard :-)

FindFontconfig.cmake itself is not in a very good shape, but should work. I'll send a patch here that should make its detection work fine, and hopefully fix the EWS errors in bug 95237 as well.
Comment 16 Raphael Kubo da Costa (:rakuco) 2012-08-29 08:06:25 PDT
Created attachment 161227 [details]
Patch
Comment 17 Raphael Kubo da Costa (:rakuco) 2012-08-29 09:06:14 PDT
Committed r127003: <http://trac.webkit.org/changeset/127003>