Bug 1396848 - file conflict prevents upgrade
Summary: file conflict prevents upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sagemath
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paulo Andrade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1402165 (view as bug list)
Depends On: 1406533
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-20 21:53 UTC by Przemek Klosowski
Modified: 2017-01-02 19:51 UTC (History)
3 users (show)

Fixed In Version: sagemath-7.3-7.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-02 19:51:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Complete list of packages to be removed by workaround (40.55 KB, text/plain)
2016-12-17 15:48 UTC, Heiko Reese
no flags Details

Description Przemek Klosowski 2016-11-20 21:53:18 UTC
Description of problem:
Two file conflicts prevent upgrade, block upgrade to f25. I am reporting against sagemath because the Component: field in Bugzilla didn't let me select sagemath-doc or sagemath-notebook

Version-Release number of selected component (if applicable):
sagemath-doc-7.3-6.fc25.x86_64
sagemath-notebook-7.3-6.fc25.x86_64 

How reproducible: very

Steps to Reproduce:
1. fedup download --releasever 25

Actual results:
file /usr/share/doc/sagemath/output from install of sagemath-doc-7.3-6.fc25.x86_64 conflicts with file from package sagemath-doc-6.5-13.fc23.noarch

file /usr/lib64/python2.7/site-packages/sagenb/data/mathjax from install of sagemath-notebook-7.3-6.fc25.x86_64 conflicts with file from package sagemath-notebook-6.5-13.fc23.x86_64

Expected results: successful update

Comment 1 Przemek Klosowski 2016-11-24 14:17:30 UTC
A workaround is to delete the offending packages, which essentially unistalls sagemath for the duration of Fedora upgrade:
dnf remove sagemath sagemath-doc

Comment 2 Przemek Klosowski 2016-11-24 19:10:33 UTC
BTW, after the upgrade to F25, I was able to reinstall sagemath and sagemath-doc without problems with 
> dnf install sagemath sagemath-doc

Comment 3 Kevin Kofler 2016-12-05 23:46:13 UTC
Why are there file conflicts between 2 different versions of the SAME package? Only one should be installed at a time. This sounds like a DNF bug to me.

Comment 4 Heiko Reese 2016-12-17 15:48:03 UTC
I have the same problem. The suggested workaround would remove 256 packages, some of which look pretty “unrelated” to me: texinfo, rlwrap, zeromq and pyserial for example (see attached file for a complete list). I would really like to avoid having to decide which of those I need to reinstall after upgrading.

Getting the dependencies right seem like a better fix, at least for me :-)

Comment 5 Heiko Reese 2016-12-17 15:48:52 UTC
Created attachment 1232887 [details]
Complete list of packages to be removed by workaround

Comment 6 Przemek Klosowski 2016-12-19 15:56:48 UTC
I opened bug 1404897 against DNF on this issue: people there blame packaging errors---but I agree with Kevin that if it's the same file in the same package, DNF should not throw an error.

Comment 7 Paulo Andrade 2016-12-20 18:19:29 UTC
Sorry for the long delay to respond.
This was caused by not properly testing updates.

The issue was due to inheriting some changes from upstream,
with directories replaced by symlinks or vice-versa.

But indeed, the case of debuginfo is more complicated, as
it is an automatically generated package.

Some information about it:

https://fedorahosted.org/fpc/ticket/385
[workarounds for rpm symlink <-> directory issue]

https://fedoraproject.org/wiki/Packaging:Directory_Replacement

Comment 9 Paulo Andrade 2016-12-21 17:10:58 UTC
*** Bug 1402165 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2016-12-23 11:16:04 UTC
sagemath-7.3-7.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f67bf04062

Comment 11 Fedora Update System 2016-12-25 04:21:47 UTC
sagemath-7.3-7.fc25 has been pushed to the Fedora 25 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-2016-f67bf04062

Comment 12 Fedora Update System 2017-01-02 19:51:13 UTC
sagemath-7.3-7.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.