Bug 1564906

Summary: /usr/share/licenses/kernel-core/COPYING conflict between current and incoming kernel packages
Product: [Fedora] Fedora Reporter: George R. Goffe <grgoffe>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rawhideCC: airlied, besser82, bruno, bskeggs, contribs, cruz, dhill, ewk, flast, gryt2, hdegoede, ichavero, itamar, jarodwilson, jforbes, jglisse, john.j5live, jonathan, josef, jpokorny, kernel-maint, kparal, linville, mchehab, mcrha, mjg59, pkubat, ppisar, recalcitrantowl, robatino, samuel-rhbugs, steved, tomek
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-04-16 11:42:34 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-04-08 19:50:53 UTC
Description of problem:
  file /usr/share/licenses/kernel-core/COPYING from install of kernel-core-4.17.0-0.rc0.git4.1.fc29.x86_64 conflicts with file from package kernel-core-4.16.0-0.rc7.git1.1.fc29.x86_64


Version-Release number of selected component (if applicable):

see above
How reproducible:
always

Steps to Reproduce:
1.dnf upgrade
2.
3.

Actual results:
see above

Expected results:
clean and successful system upgrade

Additional info:

Comment 1 stan 2018-04-08 20:06:25 UTC
François Cami <fcami> has found the source of the issue.  I found your bug when I was going to open a new one, so will put the information here.

The conflict existed before:
# rpm -qf /usr/share/licenses/kernel-core/COPYING
kernel-core-4.15.13-300.fc27.x86_64
kernel-core-4.15.15-300.fc27.x86_64
AFAICT the files were identical, but the content changed between f27:
d7810fab7487fb0aad327b76f1be7cd7  /usr/share/licenses/kernel-core/COPYING
and f29:
bbea815ee2795b2f4230826c0c6b8814  ./usr/share/licenses/kernel-core/COPYING
(in fact the file is completely different).

This can be traced to upstream's commit "COPYING: use the new text
with points to the license files" from 2018-03-23:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/COPYING?id=bf02d491237eea10290bd379bf7fc8c37ac6c3b4

Comment 2 Hayden 2018-04-08 23:17:28 UTC
I am experiencing this issue too.

Here is the error message:

Total                                           2.9 MB/s |  15 MB     00:05     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
file /usr/share/licenses/kernel-core/COPYING from install of kernel-core-4.17.0-0.rc0.git4.1.fc29.x86_64 conflicts with file from package kernel-core-4.16.0-0.rc7.git1.1.fc29.x86_64

Here is discussion of this issue on fedora-kernel:

https://www.spinics.net/linux/fedora/fedora-kernel/msg07127.html

Comment 3 Justin M. Forbes 2018-04-09 13:29:57 UTC
Yes, it is a known issue, just trying to figure out how to best handle it. This file changes *rarely* last change was in 2005.

Comment 4 Laura Abbott 2018-04-09 15:45:00 UTC
*** Bug 1564910 has been marked as a duplicate of this bug. ***

Comment 5 Bruno Wolff III 2018-04-09 16:03:37 UTC
*** Bug 1564745 has been marked as a duplicate of this bug. ***

Comment 6 Laura Abbott 2018-04-11 17:22:08 UTC
*** Bug 1566167 has been marked as a duplicate of this bug. ***

Comment 7 Bruno Wolff III 2018-04-12 04:33:15 UTC
This appears to be fixed in kernel-4.17.0-0.rc0.git7.1.fc29.