Bug 515767 - multilib: file /usr/share/misc/magic.mgc conflicts
Summary: multilib: file /usr/share/misc/magic.mgc conflicts
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: file
Version: rawhide
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Novotny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 540836
TreeView+ depends on / blocked
 
Reported: 2009-08-05 16:49 UTC by Jan Kratochvil
Modified: 2009-12-01 04:20 UTC (History)
2 users (show)

Fixed In Version: 5.03-12.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 540836 (view as bug list)
Environment:
Last Closed: 2009-08-25 11:17:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch for compilation of magic.mgc (458 bytes, patch)
2009-08-25 11:03 UTC, Daniel Novotny
no flags Details | Diff
new patch (1.16 KB, patch)
2009-11-30 11:30 UTC, Daniel Novotny
no flags Details | Diff

Description Jan Kratochvil 2009-08-05 16:49:26 UTC
Description of problem:
file-libs is a multilib package (required by rpm-libs which are required by gdb in my case which I develop for both arches on x86_64 although gdb is not multilib itself).

Version-Release number of selected component (if applicable):
file-libs-5.03-7.fc12.x86_64
file-libs-5.03-7.fc12.i686

How reproducible:
Always.

Steps to Reproduce:
mock -v -r fedora-rawhide-x86_64 update

Actual results:
Transaction Check Error:
  file /usr/share/misc/magic.mgc conflicts between attempted installs of file-libs-5.03-7.fc12.x86_64 and file-libs-5.03-7.fc12.i686

Expected results:
Update mock root.

Additional info:
$ cmp */usr/share/misc/magic.mgc
file-libs-5.03-7.fc12.i686/usr/share/misc/magic.mgc file-libs-5.03-7.fc12.x86_64/usr/share/misc/magic.mgc differ: byte 221, line 1

Comment 1 Daniel Novotny 2009-08-06 09:52:23 UTC
> Additional info:
> $ cmp */usr/share/misc/magic.mgc
> file-libs-5.03-7.fc12.i686/usr/share/misc/magic.mgc
> file-libs-5.03-7.fc12.x86_64/usr/share/misc/magic.mgc differ: byte 221, line 1  

this is strange, because those files should be the same. I examined the 7.fc12 build and it was a "F12 mass rebuild", I don't know what strange thing happened during that, but it's the only build where file sizes differ.  

Today when I did a scratch build myself (because of this bug), the magic.mgc files were the same in i686 and x86_64 packages

see http://koji.fedoraproject.org/koji/taskinfo?taskID=1585857

to fix this, I will do another "normal" rebuild 8.fc12 for the file package, let me know if it was OK

Comment 2 Daniel Novotny 2009-08-06 10:02:32 UTC
OK, so file-5.03-8.fc12 is out

http://koji.fedoraproject.org/koji/taskinfo?taskID=1585947

see if it helps your conflict

Comment 3 Jan Kratochvil 2009-08-06 10:37:50 UTC
I guess you could test it yourself.  Anyway the problem is the same.
wget http://kojipkgs.fedoraproject.org/packages/file/5.03/8.fc12/i686/file-libs-5.03-8.fc12.i686.rpm http://kojipkgs.fedoraproject.org/packages/file/5.03/8.fc12/x86_64/file-5.03-8.fc12.x86_64.rpm http://kojipkgs.fedoraproject.org/packages/file/5.03/8.fc12/x86_64/file-libs-5.03-8.fc12.x86_64.rpm; for i in i686 x86_64;do mkdir $i;cd $i;rpm2cpio ../file-libs-5.03-8.fc12.$i.rpm|cpio -id;cd ..;done;cmp */usr/share/misc/magic.mgc
4711 blocks
4707 blocks
i686/usr/share/misc/magic.mgc x86_64/usr/share/misc/magic.mgc differ: byte 221, line 1

and also:
rpm -r /var/lib/mock/fedora-rawhide-x86_64/root/ -U file-*
	file /usr/share/misc/magic.mgc conflicts between attempted installs of file-libs-5.03-8.fc12.i686 and file-libs-5.03-8.fc12.x86_64

Comment 4 Michel Lind 2009-08-23 23:26:00 UTC
This bug is preventing rpm-libs.i686 from being installed, meaning some visible end-user apps like Adobe AIR (32-bit only) does not work on x86_64.

Comment 5 Daniel Novotny 2009-08-25 10:58:15 UTC
seems the text magic files are passed to "file -C" (compilation of magic.mgc file) in different order on i686 versus x86_64

I will analyze this and make them the same

both files, although they differ, both function the same way, the order of magic is just different

Comment 6 Daniel Novotny 2009-08-25 11:03:16 UTC
Created attachment 358552 [details]
patch for compilation of magic.mgc

this patch ensures the same order of magic files used for compilation of magic.mgc

Comment 7 Daniel Novotny 2009-08-25 11:17:57 UTC
fixed in file-5.03-9.fc12

Comment 8 Fedora Update System 2009-11-30 11:28:54 UTC
file-5.03-12.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/file-5.03-12.fc12

Comment 9 Daniel Novotny 2009-11-30 11:30:33 UTC
Created attachment 374731 [details]
new patch

I had to rethink the problem again, this is the new patch: cat-ing all the magic files together and compiling the result ensures the compiled magic file is allways the same

Comment 10 Fedora Update System 2009-12-01 04:20:07 UTC
file-5.03-12.fc12 has been pushed to the Fedora 12 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.