Bug 47774 - Salut should install plugin libraries to a private directory
Summary: Salut should install plugin libraries to a private directory
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: salut (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: Telepathy bugs list
URL:
Whiteboard: review+
Keywords: patch
Depends on:
Blocks:
 
Reported: 2012-03-23 08:22 UTC by Simon McVittie
Modified: 2012-05-30 05:00 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
[1/4] Avoid Wocky trying to install into --prefix=NONE (1.15 KB, patch)
2012-03-23 08:23 UTC, Simon McVittie
Details | Splinter Review
[2/4] Avoid non-portable use of += in configure.ac (1.33 KB, patch)
2012-03-23 08:23 UTC, Simon McVittie
Details | Splinter Review
[3/4] Install non-ABI-stable libraries used by plugins to a private directory (3.65 KB, patch)
2012-03-23 08:23 UTC, Simon McVittie
Details | Splinter Review
[4/4] Replace plugindir with an AC_ARG_VAR so it can be passed to configure (3.37 KB, patch)
2012-03-23 08:23 UTC, Simon McVittie
Details | Splinter Review
Compile everything before we test it (803 bytes, patch)
2012-03-26 04:40 UTC, Simon McVittie
Details | Splinter Review

Description Simon McVittie 2012-03-23 08:22:20 UTC
Like in Gabble's Bug #46417, Salut should install its non-ABI-stable libraries into a private directory (preventing conflicts over the libwocky.so symlink if Gabble and Salut have incompatible versions of Wocky).

With the patches I'll attach here, you can still do something like this:

    ./configure pluginexeclibdir=/usr/lib/telepathy-android \
         pluginexecdir=/usr/lib/telepathy-android/salut

if you have a controlled environment where Gabble and Salut are carefully kept in sync.

I also fixed a couple of nits in configure.ac which I fixed in Gabble earlier.
Comment 1 Simon McVittie 2012-03-23 08:23:00 UTC
Created attachment 58935 [details] [review]
[1/4] Avoid Wocky trying to install into --prefix=NONE
Comment 2 Simon McVittie 2012-03-23 08:23:13 UTC
Created attachment 58936 [details] [review]
[2/4] Avoid non-portable use of += in configure.ac
Comment 3 Simon McVittie 2012-03-23 08:23:29 UTC
Created attachment 58937 [details] [review]
[3/4] Install non-ABI-stable libraries used by plugins to a  private directory
Comment 4 Simon McVittie 2012-03-23 08:23:44 UTC
Created attachment 58938 [details] [review]
[4/4] Replace plugindir with an AC_ARG_VAR so it can be passed  to configure
Comment 5 Jonny Lamb 2012-03-23 10:18:42 UTC
Yes!
Comment 6 Simon McVittie 2012-03-26 04:40:31 UTC
Created attachment 59058 [details] [review]
Compile everything before we test it

(In reply to comment #5)
> Yes!

Fixed in git for 0.7.2. Tests pass, except avahi/tubes/two-muc-stream-tubes.py and avahi/file-transfer/receive-file-ipv6.py which hang and need to be interrupted (but that doesn't seem to be a regression, they were already broken).

Here's another patch for something that broke while I was testing.

I also had to fix some whitespace to get it to pass tests, but I pushed that unreviewed. I don't like what this says about whether people are even bothering to *try* make check...
Comment 7 Jonny Lamb 2012-03-26 08:58:05 UTC
(In reply to comment #6)
> Created attachment 59058 [details] [review] [review]
> Compile everything before we test it

Looks good.

> I also had to fix some whitespace to get it to pass tests, but I pushed that
> unreviewed. I don't like what this says about whether people are even bothering
> to *try* make check...

:-(
Comment 8 Simon McVittie 2012-05-30 05:00:17 UTC
(In reply to comment #7)
> > Compile everything before we test it
> Looks good.

Fixed in 0.8.0


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.