[Bug 1564571] Re: cmake 3.5.1 no longer passes -soname to linker reliably
MichaĆ Sawicz
michal.sawicz at canonical.com
Fri Apr 1 11:02:53 UTC 2016
OK then, my environment must've gotten weird by the time I've noticed
the -soname missing.
It is a fact, though, that new cmake caused something to change since
this was working before. I can't currently say what that is.
And it's not a change in how the test is invoked - below's a diff between the last passing and failing runs (http://autopkgtest.ubuntu.com/packages/u/unity8/xenial/amd64/) - 3.5 did add another LD_LIBRARY_PATH (I suppose that's an issue in our cmake module), but they actually both have the same value, and I've verified this doesn't even matter anyway, since the link is done via a relative path, so LD_LIBRARY_PATH doesn't really matter at all...
http://pastebin.ubuntu.com/15575765/
It's not about the library path after all, but rather about
QML2_IMPORT_PATH - it's fine if it's using the locally built one - fails
if using the installed one.
FWIW we *did* want to use the installed ones in autopkgtest (a local one
shouldn't even be built - our issue).
As for SONAME being set in the .so - I believe the problem only appears
after you've packaged the file and it was stripped. And SHARED or MODULE
doesn't seem to make a difference now.
I've now compared the output from objdump for libUbuntuGestures.so as
installed from
https://launchpad.net/ubuntu/+source/unity8/8.12+16.04.20160323.2-0ubuntu1
and
https://launchpad.net/ubuntu/+source/unity8/8.12+16.04.20160330-0ubuntu1
And here's the twist: the previous one, built with cmake 3.2, does have
the SONAME, while the new one, built with cmake 3.5.1, does not. So I
think this might actually be fallout of both building the packages *and*
using cmake 3.5.1 during testing...
TBH I'm quite lost with this. Am looking more into what's happening.
In the mean time, we're skipping this test to unblock things.
--
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to cmake in Ubuntu.
https://bugs.launchpad.net/bugs/1564571
Title:
cmake 3.5.1 no longer passes -soname to linker reliably
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1564571/+subscriptions
More information about the kubuntu-bugs
mailing list