After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 649296 - Folks backend files shouldn't begin with "lib"
Folks backend files shouldn't begin with "lib"
Status: RESOLVED FIXED
Product: folks
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: folks-0.6.0
Assigned To: folks-maint
folks-maint
Depends on:
Blocks: 655911
 
 
Reported: 2011-05-03 16:37 UTC by Travis Reitter
Modified: 2011-08-04 00:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove the common prefix from backend library filenames (8.64 KB, patch)
2011-08-02 22:06 UTC, Philip Withnall
committed Details | Review
Also update some references to the backend libraries used by some tests (1.99 KB, patch)
2011-08-03 15:53 UTC, Travis Reitter
committed Details | Review

Description Travis Reitter 2011-05-03 16:37:57 UTC
The existing Folks backend files are named like:

${libdir}/folks/${SO_CURRENT}/backends/${BACKEND_NAME}/
    libfolks-backend-${BACKEND_NAME}.so

But these are meant to be loaded dynamically, not linked against. So they shouldn't begin with "lib". While we're at it, we should probably cut the module name down to ${BACKEND_NAME}.so. It's still a bit of overkill to have it in its own directory with the same name (${BACKEND_NAME}/${BACKEND_NAME}.so), so we might want to remove the per-backend dirs below ${SO_CURRENT}/backends/
Comment 1 Philip Withnall 2011-06-12 19:39:16 UTC
(In reply to comment #0)
> The existing Folks backend files are named like:
> 
> ${libdir}/folks/${SO_CURRENT}/backends/${BACKEND_NAME}/
>     libfolks-backend-${BACKEND_NAME}.so
> 
> But these are meant to be loaded dynamically, not linked against. So they
> shouldn't begin with "lib". While we're at it, we should probably cut the
> module name down to ${BACKEND_NAME}.so. It's still a bit of overkill to have it
> in its own directory with the same name (${BACKEND_NAME}/${BACKEND_NAME}.so),
> so we might want to remove the per-backend dirs below ${SO_CURRENT}/backends/

Dropping the “lib” sounds reasonable (though are there official conventions for library naming written out somewhere?), but I don't see the point in removing the sub-directories. They do no harm, and we might need them in the future.
Comment 2 Travis Reitter 2011-06-20 22:50:00 UTC
We should make sure to do this in our next release that breaks API to avoid multiple instances of the same backend (with different names) in <sonumber>/backends/ directory.
Comment 3 Philip Withnall 2011-08-02 22:06:50 UTC
Created attachment 193108 [details] [review]
Remove the common prefix from backend library filenames

https://www.gitorious.org/folks/folks/commits/649296-library-filenames
Comment 4 Philip Withnall 2011-08-02 22:23:27 UTC
Whoops, forgot a NEWS entry. I'll add one before committing.
Comment 5 Travis Reitter 2011-08-03 15:53:31 UTC
Created attachment 193189 [details] [review]
Also update some references to the backend libraries used by some tests
Comment 6 Travis Reitter 2011-08-03 15:55:03 UTC
Review of attachment 193108 [details] [review]:

Generally looks good, with a minor exception. See the new attachment.

Squash my new patch onto this, update NEWS, and please merge.
Comment 7 Philip Withnall 2011-08-03 21:37:26 UTC
Comment on attachment 193189 [details] [review]
Also update some references to the backend libraries used by some tests

Squashed and merged, thanks.

commit ca19d32918f94dc4280a3d7a28680f8fecb41cc5
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Tue Aug 2 23:04:58 2011 +0100

    Bug 649296 — Folks backend files shouldn't begin with "lib"
    
    Rename the backend library files from “libfolks-backend-${BACKEND_NAME}.so”
    to “${BACKEND_NAME}.so”.
    
    Closes: bgo#649296

 NEWS                              |    1 +
 backends/eds/Makefile.am          |   18 +++++++++---------
 backends/key-file/Makefile.am     |   16 ++++++++--------
 backends/libsocialweb/Makefile.am |   18 +++++++++---------
 backends/telepathy/Makefile.am    |   18 +++++++++---------
 backends/tracker/Makefile.am      |   18 +++++++++---------
 configure.ac                      |   12 ++++++------
 7 files changed, 51 insertions(+), 50 deletions(-)