GNOME Bugzilla – Bug 300436
evolution fails to compile from CVS using pkg-config >= 0.16's pkg.m4
Last modified: 2005-04-20 03:42:44 UTC
Please describe the problem: The PKG_CHECK_MODULES() macro distributed with the new releases of pkg-config is set up to cache pkg-config results between runs, based on the variable prefix passed as the first argument. The EVO_SET_COMPILE_FLAGS() macro always passes "EVOLUTION" as the variable prefix, which triggers the incorrect return of cached values. Steps to reproduce: 1. install pkg-config >= 0.16 (the newest release is 0.17.1) 2. check out evolution from CVS and run autogen.sh 3. build evolution Actual results: build fails, because the various *_CFLAGS and *_LIBS variables are set wrong. Expected results: build succeeds. Does this happen every time? yes Other information: This problem, and its fix is identical to bug 300435 (filed on evolution-data-server). I'll attach a patch shortly (which will be quite similar to the e-d-s patch).
Created attachment 45202 [details] [review] evolution-new-pkgconfig.patch The equivalent fix for evolution to the one in bug 300435
Thanks again James. Got this patch, applied it and solved the compile error. I'm not familiar with pkg-config, but it seems that this new feature is doing more harm than good. I recommend that JHBUILD use the older version of pkg-config until this new feature is removed or fixed. Any ideas?
JP: does this patch look okay for you? I can apply it if you think it's okay. I am quite confident that the change is correct :)
Looks good. Please commit with appropriate ChangeLog entry.
checked into the gnome-2-10 and HEAD branches.