Bug 384279 - No co installation possible of KMyMoney5 with KMymoney4
Summary: No co installation possible of KMyMoney5 with KMymoney4
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.8.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-02 08:40 UTC by Ralf Habacker
Modified: 2022-12-15 17:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2017-09-02 08:40:36 UTC
On opensuse I tried to install kmymoney5 from https://build.opensuse.org/package/show/KDE:Unstable:Extra/kmymoney5 along with kmymoney4 for comparing the implementation but it fails because kmymoney5 tries to install files into the same location as kmymoney4.  

How to reproduce:
1. Add repo http://download.opensuse.org/repositories/KDE:/Unstable:/Extra/KDE_Unstable_Frameworks_openSUSE_Factory/
2. run  zypper install kmymoney5

What happens ?
zypper complains about file conflicts

Preparing...                          ################################# [100%]
        file /usr/bin/kmymoney from install of kmymoney5-4.99.40-113.1.x86_64 conflicts with file from package kmymoney-4.8.0-21.1.x86_64
        file /usr/lib64/libkmm_mymoney.so.4 from install of kmymoney5-4.99.40-113.1.x86_64 conflicts with file from package kmymoney-4.8.0-21.1.x86_64
        file /usr/lib64/libkmm_plugin.so.4 from install of kmymoney5-4.99.40-113.1.x86_64 conflicts with file from package kmymoney-4.8.0-21.1.x86_64
        file /usr/lib64/libkmm_widgets.so.4 from install of kmymoney5-4.99.40-113.1.x86_64 conflicts with file from package kmymoney-4.8.0-21.1.x86_64
        file /usr/lib64/libpayeeidentifier_iban_bic.so.4 from install of kmymoney5-4.99.40-113.1.x86_64 conflicts with file from package kmymoney-4.8.0-21.1.x86_64
        file /usr/lib64/libpayeeidentifier_iban_bic_widgets.so.4 from install of kmymoney5-4.99.40-113.1.x86_64 conflicts with file from package kmymoney-4.8.0-21.1.x86_64
        file /usr/lib64/libpayeeidentifier_nationalAccount.so.4 from install of kmymoney5-4.99.40-113.1.x86_64 conflicts with file from package kmymoney-4.8.0-21.1.x86_64
        file /usr/share/icons/hicolor/32x32/apps/kmymoney.png from install of kmymoney5-4.99.40-113.1.x86_64 conflicts with file from package kmymoney-4.8.0-21.1.x86_64

What is expected ?
KMymoney5 should be installable along with kmymoney4 to let people be able to compare both versions
Comment 1 Jack 2017-09-02 14:50:55 UTC
This is a known issue with KDE.  Because many files actually used while running KMM are found by the libraries/frameworks based on environment variables and caches, there is no way to have two versions (especially a KDE4 and Frameworks version) installed at the same time.  I once discussed this with some core KDE library developers, and that was the conclusion.  I'll have to see if I still have any of those emails around.

The only way to have two versions is for at least one of them to be manually installed outside the main system.  I recently posted instructions for this on the mailing list, but would be happy to add as a comment here, if desired.

Every distribution's package manager will run into the same issue, unless we name things differently for different versions, such as adding a "5" to all programs and library files, and folders for things like icons and docs.  I would argue against doing that, since you then either have to use a new number for every major change, or have to rename things after completing a switch to a new version.
Comment 2 Jack 2018-09-20 21:39:28 UTC
Ralf, I'd be tempted to close this as UNSUPPORTED or UPSTREAM, as it is not just KMyMoney, but there are some of the KDE libraries which cannot have the KDE4 and KF5 versions installed at the same time.  It is possible to have more than one version of KMM (both KDE4 or both KF5) installed at the same time - but not the distro versions, they have to be installed to different prefixes (for example, one to /usr or /usr/local, and the other to /home/user/install) and there is some handwaving to set some environment variables so KDE and QT find the correct versions of the libraries and plugins.  (I believe that type of dual install does work for one 4 and one 5 version, but only if there are no conflicts between the required KDE libraries.  From distant memory, I think this only became possible when KMM5 made the requirement for one of the KDE-PIM libraries optional, but it may have been something else.
Comment 3 Justin Zobel 2022-11-30 05:28:19 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-12-15 05:13:23 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Jack 2022-12-15 17:57:23 UTC
Given the time, I'm going to close this, since I don't know of any reason to still run 4.8.