Bug 1625015

Summary: conflicting ownership of files between python2-jedi and python3-jedi
Product: [Fedora] Fedora Reporter: George R. Goffe <grgoffe>
Component: python-jediAssignee: Carl George 🤠 <carlwgeorge>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: bkabrda, carlwgeorge, cstratak, dmalcolm, mcyprian, mhroncok, phracek, pviktori, rkuska, tomspur, torsava
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 15:29:27 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 George R. Goffe 2018-09-04 00:33:57 UTC
Description of problem:
Attempting to upgrade this system and got messages about conflict of ownership (see below) between the two jedi packages.

Version-Release number of selected component (if applicable):
python2-jedi-0.12.0-4.fc29.noarch
python3-jedi-0.12.0-4.fc29.noarch

How reproducible:
always

Steps to Reproduce:
1.see below
2.
3.

Actual results:
see below

Expected results:


Additional info:

Error: Transaction check error:
  file /usr/share/doc/python-jedi/AUTHORS.txt from install of python2-jedi-0.12.1-1.fc30.noarch conflicts with file from package python3-jedi-0.12.0-4.fc29.noarch
  file /usr/share/doc/python-jedi/CHANGELOG.rst from install of python2-jedi-0.12.1-1.fc30.noarch conflicts with file from package python3-jedi-0.12.0-4.fc29.noarch

Error Summary
-------------

Error: Transaction check error:
  file /usr/share/doc/python-jedi/AUTHORS.txt from install of python3-jedi-0.12.1-1.fc30.noarch conflicts with file from package python2-jedi-0.12.0-4.fc29.noarch
  file /usr/share/doc/python-jedi/CHANGELOG.rst from install of python3-jedi-0.12.1-1.fc30.noarch conflicts with file from package python2-jedi-0.12.0-4.fc29.noarch

Error Summary
-------------

Comment 1 Miro Hrončok 2018-09-04 07:43:29 UTC
George, thanks for the report. This is a python-jedi bug.

Comment 2 Carl George 🤠 2018-09-04 14:46:25 UTC
The spec file currently contains this macro:

    %global _docdir_fmt %{name}

That causes all subpackages to share the same documentation directory.  The benefit of that is that python2-jedi and python3-jedi share the AUTHORS.txt and CHANGELOG.rst files, avoiding duplication.  The drawback is what you observed, which is conflict errors if those files have changed in an update and you aren't updating the packages at the same time.

This only happens if you try to update just one of the packages.  If you update them both at the same time it works.  Do that to fix it for now, and I'll get the spec file updated to remove that macro to prevent this error from being possible.

Comment 4 George R. Goffe 2018-09-04 16:56:34 UTC
Carl,

Thanks for this information. I've been upgrading separately due to the prevalence of this kind of problem with other packages. Sigh...

Thanks again,

George...