Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#49125 - [file] 5.26 is buggy

Attached to Project: Arch Linux
Opened by Adrián López (adrianlzt) - Thursday, 28 April 2016, 15:08 GMT
Last edited by Sébastien Luttringer (seblu) - Saturday, 14 May 2016, 12:52 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
file version 5.26 has a bug related to recognising compressed files.


Branch master of the code (https://github.com/file/file) it's fixed.

This error breaks also rpmbuild, because it uses the compress flag: https://github.com/rpm-software-management/rpm/blob/rpm-4.12.0-release/build/rpmfc.c#L910

It's possible to maintain version 5.25 in the core and testing until next version of file?


Additional info:
* package version: file-5.26-2


Steps to reproduce:
$ echo "a" > test
$ file test
test: ASCII text
$ file -z test
test: ERROR: (null)
$ file --version
file-5.26
magic file from /usr/share/file/misc/magic
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Saturday, 14 May 2016, 12:52 GMT
Reason for closing:  Upstream
Additional comments about closing:  5.27 is in testing
Comment by Sébastien Luttringer (seblu) - Sunday, 01 May 2016, 01:10 GMT
5.26-1 is in core since 23/4, 5 days before your bug report was opened, so I can't stick it in testing.

rpm is not in the arch repos, so I don't really care. Is there a good reason to include this patch before the next release of file?

Could even point a commit which could be backported.
Comment by Adrián López (adrianlzt) - Tuesday, 03 May 2016, 07:37 GMT
Apart from rpmbuild, I don't know if other software uses libmagic to identify files and could be broken.

Loading...