-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support setting custom lib version suffixes. #28
base: master
Are you sure you want to change the base?
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
-qt4
and-qt5
suffixes respectively. This PR adds this via a customCUSTOM_LASTFM_LIB_VERSION_SUFFIX
parameter, like this:The default behavior isn't changed.