Bug 468989

Summary: arch-independent-package-contains-binary-or-object for MinGW packages
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: rpmlintAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 10CC: manuel.wolfshant, tmz, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-09 15:41:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2008-10-29 11:49:50 UTC
MinGW packaging guidelines were recently approved for Fedora:

http://fedoraproject.org/wiki/Packaging/MinGW

Most MinGW packages are 'noarch'.  The reason is that although
they contain Windows binary code for Windows/i386, they are noarch
from the point of view of the build architecture
(Fedora/i386/ppc/whatever).

Thus it is OK for these packages to contain, for example, *.a,
*.dll and *.exe Windows binary files.

Example:

mingw32-gdbm.noarch: E: arch-independent-package-contains-binary-or-object /usr/i686-pc-mingw32/sys-root/mingw/lib/libgdbm.dll.a
(bug 467391)

If you wanted to be really specific here, it's OK for them
to contain only Windows COFF files:

$ file /usr/i686-pc-mingw32/sys-root/mingw/lib/libgdbm.dll.a 
/usr/i686-pc-mingw32/sys-root/mingw/lib/libgdbm.dll.a: current ar archive
$ cd /tmp
$ mkdir unpack
$ cd unpack/
$ ar x /usr/i686-pc-mingw32/sys-root/mingw/lib/libgdbm.dll.a 
$ file *
d000000.o: 80386 COFF executable not stripped - version 24932
d000001.o: 80386 COFF executable not stripped - version 30821
[...]

If a MinGW noarch package contained Fedora native binaries then
that shouldn't happen and it would be a bug.

Comment 1 Bug Zapper 2008-11-26 04:25:22 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Richard W.M. Jones 2009-09-09 15:41:26 UTC
Closing - rpmlint no longer reports this as a problem.