Bug 1309935

Summary: Automatic package update is impossible
Product: [Fedora] Fedora Reporter: Tim Landscheidt <tim>
Component: emacs-luaAssignee: Tim Niemueller <tim>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: tim
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 18:50:07 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 Tim Landscheidt 2016-02-19 02:37:11 UTC
On Fedora 23:

| [tim@passepartout ~]$ sudo dnf upgrade
| Last metadata expiration check performed 2:46:16 ago on Thu Feb 18 23:31:31 2016.
| Dependencies resolved.
| ========================================================================================================================================================================
|  Package                                 Arch                                 Version                                       Repository                             Size
| ========================================================================================================================================================================
| Skipping packages with broken dependencies:
|  emacs-lua                               noarch                               20151025-1.fc23                               updates                                42 k

| Transaction Summary
| ========================================================================================================================================================================
| Skip  1 Package

| Nothing to do.
| Complete!
| [tim@passepartout ~]$

This is apparently due to emacs-lua-el-20130419-5.fc23.noarch being installed on this system which requires "emacs-lua = 20130419-5.fc23" which cannot be fulfilled after an update:

| [tim@passepartout ~]$ sudo rpm -Uvh emacs-lua-20151025-1.fc23.noarch.rpm 
| error: Failed dependencies:
|         emacs-lua = 20130419-5.fc23 is needed by (installed) emacs-lua-el-20130419-5.fc23.noarch
| [tim@passepartout ~]$

But the new emacs-lua has a correct "Obsoletes" field (even though the source spec incorrectly (?) says "Obsoletes:      emacs-%{pkg}-el <= 20130419-5"):

| [tim@passepartout ~]$ rpm -qp emacs-lua-20151025-1.fc23.noarch.rpm --qf '[%{obsoletes}\n]'
| emacs-lua-el
| [tim@passepartout ~]$

So some magic sauce seems to be missing to automatically upgrade from emacs-lua-{,el-}20130419-5 to emacs-lua-20151025-1.

Comment 1 Tim Landscheidt 2016-02-20 17:00:21 UTC
I have confirmed that this is due to the field:

| Obsoletes:      emacs-%{pkg}-el <= 20130419-5

in the .spec.  If that is replaced with:

| Obsoletes:      emacs-%{pkg}-el

the update works fine.

I similarly assume that:

| Provides:       emacs-%{pkg}-el <= 20130419-5

should be changed to:

| Provides:       emacs-%{pkg}-el

Comment 2 Fedora End Of Life 2016-11-24 15:38:23 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2016-12-20 18:50:07 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.