[Bug 1050970] New: zypper dup --no-recommends removes installed lang packages
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970 Bug ID: 1050970 Summary: zypper dup --no-recommends removes installed lang packages Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@forge.provo.novell.com Reporter: w01dnick@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- ( By result of discussion in opensuse-factory: https://lists.opensuse.org/opensuse-factory/2017-07/msg00479.html Start of discussion: https://lists.opensuse.org/opensuse-factory/2017-07/msg00414.html ) When using to update openSUSE Tumbleweed this command zypper dup --no-recommends some lang packages are going to be removed. This happens not only for KDE lang packages (at least gstreamer-lang was noticed as candidate for removing), but it happens frequently for them. One example was shown in that discussion: 1. We have installed kio (5.35.0), kio-lang (5.35.0), bundle-lang-kde-en (for some reason there is no bundle-lang-kde-uk for Ukrainian). 2. Doing update via "zypper dup --no-recommends" Expected results: Updating kio to 5.36.0, kio-lang to 5.36.0 and bundle-lang-kde-en to 13.2-48.2. Actual results: Updateing kio to 5.36.0, bundle-lang-kde-en to 13.2-48.2 and removing kio- lang. Current example Installed state: zypper se -s akonadi-contact ... S | Name | Type | Version | Arch | Repository ---+-----------------------+---------+-------------+--------+-------------------- i+ | akonadi-contact | package | 17.04.2-1.2 | x86_64 | (System Packages) v | akonadi-contact | package | 17.04.3-1.1 | x86_64 | openSUSE-20170510-0 v | akonadi-contact | package | 17.04.2-1.2 | i586 | openSUSE-20170510-0 ... i+ | akonadi-contact-lang | package | 17.04.2-1.2 | noarch | (System Packages) v | akonadi-contact-lang | package | 17.04.3-1.1 | noarch | openSUSE-20170510-0 zypper se -s bundle-lang-kde ... S | Name | Type | Version | Arch | Repository ---+--------------------+---------+-----------+--------+-------------------- ... | bundle-lang-kde-el | package | 13.2-48.3 | noarch | openSUSE-20170510-0 i+ | bundle-lang-kde-en | package | 13.2-48.2 | noarch | (System Packages) v | bundle-lang-kde-en | package | 13.2-48.3 | noarch | openSUSE-20170510-0 | bundle-lang-kde-es | package | 13.2-48.3 | noarch | openSUSE-20170510-0 ... Running zypper dup --no-recommends trying to remove this and some other KDE packages: The following 76 packages are going to be REMOVED: akonadi-contact-lang akonadi-mime-lang akonadi-notes-lang ... spectacle-lang systemsettings5-lang Full logs here: http://paste.opensuse.org/26973391 I'll try not to update for couple of days if some extra info is needed. In my opinion this is a bug as --no-recommends should prevent installing of new packages but not updating of already installed ones. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c1
Michael Andres
# zypper dup --no-recommends --debug-solver ... Generating solver test case... Solver test case generated successfully at /var/log/zypper.solverTestCase. Then pack the output directory together with /var/log/zypper.log and attach it to the bugreport.
(or via paste.opensuse.org) In case the testcase exceeds the 10MB limit for bugzilla uploads, you can use 'split' to divide the file into smaller pieces:
$ cd /tmp $ tar cvjf zypper.solverTestCase.tar.bz2 /var/log/zypper.solverTestCase/ $ split -b 10M --additional-suffix=-zypper.solverTestCase.tar.bz2 \ zypper.solverTestCase.tar.bz2 The created pieces will be named like this: xaa-zypper.solverTestCase.tar.bz2 xab-zypper.solverTestCase.tar.bz2 xac-zypper.solverTestCase.tar.bz2 ...
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c2
Mykola Krachkovsky
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c3
Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c4
Mykola Krachkovsky
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c5
Michael Andres
dontinstallrecommended=1, addalreadyrecommended=0
install akonadi-contact-17.04.3-1.1.x86_64[openSUSE-20170510-0] update akonadi-contact-17.04.2-1.2.x86_64 delete akonadi-contact-lang-17.04.2-1.2.noarch
dontinstallrecommended=0, addalreadyrecommended=0
install akonadi-contact-17.04.3-1.1.x86_64[openSUSE-20170510-0] install akonadi-contact-lang-17.04.3-1.1.noarch[openSUSE-20170510-0] update akonadi-contact-17.04.2-1.2.x86_64 update akonadi-contact-lang-17.04.2-1.2.noarch
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c6
--- Comment #6 from Mykola Krachkovsky
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c7
Michael Andres
akonadi-contact-lang-17.04.2-1.2.noarch (99)@System akonadi-contact-lang-17.04.3-1.1.noarch (99)openSUSE-20170510-0
akonadi-contact-lang-17.04.2 is installed, a newer version 17.04.3 is available, but
bundle-lang-kde-en-13.2-48.3.noarch (99)openSUSE-20170510-0 pro: akonadi-contact-lang = 17.04.3 obs: akonadi-contact-lang < 17.04.3
bundle-lang-kde-en also claims to be an update candidate for akonadi-contact-lang. bundle-lang-kde-en is installed, thus it needs to be updated and so it provides the update for akonadi-contact-lang too. We'll try to improve zypper to show this as a 'REPLACED/RENAMED' case in the summary, rather than 'REMOVED'. If you dup WITH recommends, the update situation is basically the same, but
akonadi-contact-lang-17.04.3-1.1.noarch (99)openSUSE-20170510-0 sup: (bundle-lang-other and akonadi-contact)
akonadi-contact-lang contains a supplements (aka reverse-recommends), which wants to install akonadi-contact-lang if bundle-lang-other and akonadi-contact are installed too; and they are. So it is not the update that chooses akonadi-contact-lang, but the supplements. It is a bit strange, that bundle-lang-kde- packages on the on hand claims to replace the individual -lang packages, but on the other hand allows installing them in parallel again. An 'obs: akonadi-contact-lang <= 17.04.3' (LE!) to prevent installing the -lang packages in parallel could solve this. Forwarding it to KDE maintainers to decide whether this is appropriate. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c8
--- Comment #8 from Mykola Krachkovsky
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c9
--- Comment #9 from Mykola Krachkovsky
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c10
--- Comment #10 from Mykola Krachkovsky
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c11
--- Comment #11 from Michael Andres
So, I've deleted bundle-lang-kde-en to test what will happened and `zypper dup --no-recommends` still trying to remove kde lang packages. Here is new zypper.log & solver test case.
It does not change the situation. Maybe my wording suggested that bundle-lang-kde-en needs to be installed, but this is not the case. The core is, that the _new_ bundle-lang-kde-en claims to be a replacement for akonadi-contact-lang (and others) by providing/obsoleting them. So bundle-lang-kde-en is a valid (and preferred) update candidate for all installed lang packages it provides/obsolets. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c12
--- Comment #12 from Mykola Krachkovsky
It does not change the situation. Maybe my wording suggested that bundle-lang-kde-en needs to be installed, but this is not the case.
The core is, that the _new_ bundle-lang-kde-en claims to be a replacement for akonadi-contact-lang (and others) by providing/obsoleting them.
Yes, I've understood that. What I've missed that bundle-lang-kde-xx going to be installed on `zypper dup --no-recommends`. BTW, why? So I've blocked all of them and now kde lang packages are going to be updated ok. Off-topic but related question: it's incorrect to install bundle-lang-kde-en on non-English installation, isn't it? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c13
Dominique Leuenberger
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c14
Mykola Krachkovsky
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c15
Mykola Krachkovsky
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c16
Dominique Leuenberger
Well, not exactly. This problem has more to language bundles than to specific kde language bundles. And why kde3? KDE3 was removed but there are still bundle-lang-kde-* bundles present. I've removed all of bundles and locked them. But that's workaround, not a solution.
I believe current "Component" just invalid, it was set to KDE3. Should it be changed to "Translation"?
By now actually all the bundle-lang-* have been removed too. Each package brings its own -lang package which is supposedly recommended. Installing without recommends would mean they don't get installed which in turn works as expected -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970
http://bugzilla.opensuse.org/show_bug.cgi?id=1050970#c17
--- Comment #17 from Mykola Krachkovsky
By now actually all the bundle-lang-* have been removed too. Blocked them and missed that. Thanks!
-- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com