Support setting custom lib version suffixes.#28
Support setting custom lib version suffixes.#280xd34df00d wants to merge 1 commit intolastfm:masterfrom 0xd34df00d:master
Conversation
|
How will this change in suffix than be propagated to reverse deps? |
|
@xhochy I would expect distros to provide pkgconfig for respective libraries. Moreover, opensuse (if I'm not mislead by my opensuse maintainer :)) already packaged liblastfm-1.0.8 with suffixes -qt4 and -qt5 respectively, so this change allows to maintain the same library names. |
|
As Up&Downstream developer I see this a bit problematic as liblastfm does not provide by default a pkg-config file (yet) and so the reverse dependencies search by library name. E.g. in https://github.com/tomahawk-player/tomahawk/ we search for (lib)lastfm(.so/dll) for Qt4 and (lib)lastfm5(.so/dll) for Qt5, other programs will do this respectively. You will have to patch each of them to pick up the correct shared object. Adding a pkg-config or a CMakeConfig will make it easier for future releases but reverse dependcies will still have to look for a while for the library name to support older releases. Not that I oppose this patch but using custom suffixes means a lot of overhead for packages in distros that will depend on liblastfm. Probably it would be better to first include pkg-config and CMakeConfig generation to better handle these suffixes and then let the reverse deps switch to relying on them (and only use the library name as a fallback). This will certainly reduce the number of patches in distros for them. |
Using a custom suffix would allow to gradually switch from any other naming
|
|
On 11/10/14 21:11, Georg Rudoy wrote:
From my own Gentoo experience I can tell that you will most likely not As already mentioned: The better solution here would be to add also Furthermore: Upstream your distribution patches as early as possible to
Sure this is optional and I'm not speaking here against merging it but
|
|
Is this still desired? We have complete "coinstall" support by now. |
|
Unsure if this patch is still relevant? It's a very simple looking patch, so I can't see it hurting, but further opinions welcome |
Different distros may wish to set custom library suffixes depending on their own considerations. For example, it may be desirable to have
-qt4and-qt5suffixes respectively. This PR adds this via a customCUSTOM_LASTFM_LIB_VERSION_SUFFIXparameter, like this:The default behavior isn't changed.