Re: Fedora ARM is so strong

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24.02.2014 23:52, Ed Greshko wrote:
> On 02/25/14 01:02, poma wrote:
>> $ file *
>> autocorr-en-4.2.1.1-1.fc20.noarch.rpm:                  RPM v3.0 bin ARM
>> autocorr-en-1:4.2.1.1-1.fc20
>> libcmis-0.4.1-2.fc20.x86_64.rpm:                        RPM v3.0 bin
>> i386/x86_64 libcmis-0.4.1-2.fc20
>> libreoffice-4.2.1.1-1.fc20.x86_64.rpm:                  RPM v3.0 bin
>> i386/x86_64 libreoffice-1:4.2.1.1-1.fc20
>> libreoffice-appdata-4.2.1.1-1.fc20.noarch.rpm:          RPM v3.0 bin ARM
>> libreoffice-appdata-1:4.2.1.1-1.fc20
>>
>> Has anyone noticed something oddly in this list? :)
>>
>>
>> poma
> 
> So, file a bz against "file".
> 
> 


Actually this is not the 'file' bug.
The 'file' correctly "reads" rpms.

$ wc -l noarch.update-7416sum\=1965noarch+5451ARM.txt
7416 noarch.update-7416sum=1965noarch+5451ARM.txt

$ grep ARM noarch.update-7416sum\=1965noarch+5451ARM.txt | wc -l
5451

$ grep -v ARM noarch.update-7416sum\=1965noarch+5451ARM.txt | wc -l
1965

'noarch.update-7416sum\=1965noarch+5451ARM.txt'
http://goo.gl/O2T79S


e.g. "RPM v3.0 bin"
- hexedit:
  00000000   ED AB EE DB  03 00 00 00  ...
- file/magic/Magdir/rpm:
   - ED AB EE DB == RPM
     0	belong		0xedabeedb	RPM
   - 03 == v3
     >4	byte		x		v%d
   - 00 == .0
     >5	byte		x		\b.%d
   - 00 == bin
     >6	beshort		0		bin


e.g. 'noarch' -> OK!
$ file -b kdenetwork-devel-4.12.2-1.fc20.noarch.rpm
... noarch ...
- hexedit:
  ...  00 FF ...
- file/magic/Magdir/rpm:
  >>8	beshort		255		noarch
i.e. dec 255 == hex FF


e.g. 'ARM' -> WTF!?
$ file -b mdds-devel-0.10.2-1.fc20.noarch.rpm
... ARM ...
- hexedit:
  ...  00 0C ...
- file/magic/Magdir/rpm:
  >>8	beshort		12		ARM
i.e. dec 12 == hex C


'file' - rpm
https://raw.github.com/glensc/file/master/magic/Magdir/rpm


Now to whom/where to send this?


poma

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux