libsignon-plugins is not a dynamic library

Bug #1212705 reported by dobey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
signon (Ubuntu)
New
Undecided
Unassigned

Bug Description

In order to write a signon plug-in to provide integration with a new authentication method, one must use the libsignon-plugins library, which provides some interfaces that must be used. However, this library is currently built and installed as a static library only, which means every plug-in that links to it, includes the entire library within the plug-in. This causes an increase in size of of the plug-ins, and requires that they all must be rebuilt, in the event a security issue is discovered and fixed, in the library.

This library needs to be built and packaged as a dynamic library instead.

Related branches

Revision history for this message
dobey (dobey) wrote :

This results in it also being impossible to write tests for a plug-in one is writing, as it seems to result in nasty errors from ld:

/usr/bin/ld: test-signon-plugin: local symbol `_ZN19AuthPluginInterface11qt_metacallEN11QMetaObject4CallEiPPv' in /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsignon-plugins.a(moc_authpluginif.o) is referenced by DSO
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

This is happening when attempting to build lp:~dobey/ubuntuone-credentials/signon-tests

I see there are tests in signon-plugin-oauth2 though. I wonder how it is they would be avoiding this problem.

Revision history for this message
Alberto Mardegan (mardy) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.