Bug 1614674

Summary: Synergy 1 is replaced by incompatible version when running "dnf update"
Product: [Fedora] Fedora Reporter: Sidney Sedlak <dev>
Component: synergyAssignee: Christian Krause <chkr>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 29CC: antti.nilakari, chkr, dchen, orion0205, pgagne
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: synergy-1.10.2-1.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 00:01:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sidney Sedlak 2018-08-10 08:05:26 UTC
Description of problem:
Synergy 2 has been marked as beta by their creators (see https://symless.com/blog/synergy-2-back-beta) and that means Synergy 1.10 should be used. In Fedora 28, there is a synergy package which contains Synergy 2. The package name is the same as the Synergy 1 provided by Symless. 

After installing the stable version 1 manually, it gets updated to Synergy 2 after running "dnf update". It is possible to exclude the synergy package, but for a better user experience would be better to have a system solution.

Version-Release number of selected component (if applicable):
synergy-1.10.0-40 (Symless)
synergy-2.0.0-3.fc28 (Fedora official repo)

How reproducible:
Always

Steps to Reproduce:
1. Install Synergy 1 by dnf install path/to/synergy-1.10.0-40*
2. Run dnf update
3. Synergy gets updated to version 2.0.0-3

Actual results:
Synergy gets updated to an incompatible version

Expected results:
Synergy won't get updated

Additional info:
I would propose to have two packages, synergy and synerge2, which are mutually exclusive, so the "synergy" package will deploy version 1.x and synergy2 will deploy version 2.x

Comment 1 Perry Gagne 2018-08-22 15:09:14 UTC
Yes please. 100 times this. Not everyone is ready to switch to the more cloud based synergy 2. 

As for the user experience, the Software Update tool uses PackageKit which does not honor dnf excludes, and there doesn't seem to be anyway to exclude it with PackageKit.

Comment 2 orion0205 2018-09-28 17:59:55 UTC
It looks like this issue was already dealt with in F26 and F27 in Bug 1542286.  The same clearly needs to be done for F28 here.

Comment 3 Perry Gagne 2019-01-04 20:20:08 UTC
Seems that Synergy 2 is now considered Beta and unstable, an the 1.x versions are the only stable ones, see this thread:
https://symless.com/forums/topic/5884-are-you-using-synergy-2/

Comment 4 Antti Nilakari 2019-03-14 10:00:53 UTC
Synergy 1 and 2 are incompatible license-wise and should be considered two separate pieces of software.

Comment 5 Perry Gagne 2019-08-09 20:37:42 UTC
Workaround for this that seems to work with PackageKit in Fedora 30

You need to add:

exclude=synergy

to the [updates] section in /etc/yum.repos.d/fedora-updates.repo AND [fedora] section in /etc/yum.repos.d/fedora.repo 

To get DNF to ignore the 2.x version and only use the 1.x. Also this appears to work with tools like GNOME Software which uses packagekit (you may need to do something like `pkcon refresh`)

See BZ 1256108 for more info

Comment 6 Ding-Yi Chen 2019-09-04 04:05:51 UTC
This is addressed in master branch and epel8.

Comment 7 Fedora Update System 2019-09-04 05:39:50 UTC
FEDORA-2019-11001aa636 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-11001aa636

Comment 8 Fedora Update System 2019-09-04 10:51:42 UTC
synergy-1.10.2-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-11001aa636

Comment 9 Fedora Update System 2019-09-21 00:01:23 UTC
synergy-1.10.2-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.