**** BEGIN LOGGING AT Sat Apr 09 02:59:58 2016 Apr 09 15:41:06 hey all, I've got a case were I'm building a library that needs to be linked to another target and the pkgconfig that its installing seems to be host-specific (e.g. /usr/lib/libqpid-proton.so for its library, rather than an absolute path to where the file is in the sysroot) Apr 09 15:41:50 should the cmake.bbclass be appending that path to whatever path it finds? Apr 09 15:41:59 appending the sysroot that is Apr 09 17:11:18 * nerdboy noticing the xorg-server fail on master... Apr 09 17:13:55 sorry, wrong build - oe-core jethro Apr 09 17:15:13 xorg-server-1.17.2/hw/xfree86/drivers/modesetting/drmmode_display.c <= Werror implicit declaration Apr 09 18:03:11 mbroadst: we export PKG_CONFIG_SYSROOT so pkg-config should be prepending that to paths in cflags and libs. if that path is in a different variable in the .pc, though, it won't be automatically prefixed, and you'd need to patch the configure.{ac,in} to prefix it with that variable Apr 09 18:03:37 so basically you need to look at how cmake is calling pkg-config, afaict Apr 09 18:03:46 for that particular project Apr 09 18:14:36 kergoth: I haven't really been able to figure out what's going on Apr 09 18:15:10 I was taking a look at their cmake module to find the proton lib, and it does so via pkgconfig Apr 09 18:15:39 the pkgconfig is in the sysroot, and retuning values like a libdir of /usr/lib Apr 09 18:15:53 the build is failing because it can't find /usr/lib/libqpid-proton.so Apr 09 18:17:20 kergoth: its getting that all set here: https://github.com/apache/qpid/blob/trunk/qpid/cpp/CMakeModules/FindProton.cmake#L60 Apr 09 18:17:48 all I can really think of its trying to manually patch that to prepend the sysroot since it seems otherwise its not quite working Apr 09 18:21:20 pkg_check_modules and find_library should both be calling pkg-config in the correct ways to obey PKG_CONFIG_SYSROOT, i doubt the problem lies there Apr 09 18:24:42 so you would lean towards the cmake module in this library not looking it up properly? Apr 09 18:30:47 kergoth: or rather than going through the huge testing cycle I have right now, is it your understanding that if everything "went right" that Proton_LIBRARIES there should be ${PKG_CONFIG_SYSROOT}/usr/lib/libqpid-proton.so ? Apr 09 19:30:10 kergoth: yeah I can confirm that the values that make it into the CMakeCache.txt are just plain `/usr/lib` etc Apr 09 19:30:26 I also can confirm that this is being run as the pkg-config: /build/build/tmp-glibc/sysroots/x86_64-linux/usr/bin/pkg-config, so the correct pkg-config Apr 09 19:31:14 man I've been working on this since 8am hah Apr 09 20:51:42 kergoth: ah jeez what a pain, the proton library was installing a custom .cmake file which was overriding the pkg-config data Apr 09 20:51:50 remove the .cmake file, pkg-config works Apr 09 20:52:14 ugh, lame. nicely spotted, though Apr 09 20:56:59 hey what are saturdays for :) **** ENDING LOGGING AT Sun Apr 10 02:59:58 2016