Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219215 - sys-apps/file-4.24 missing magic info - does not recognise .ogg for example
Summary: sys-apps/file-4.24 missing magic info - does not recognise .ogg for example
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 224403 226859 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-24 22:36 UTC by Alan McKinnon
Modified: 2008-07-17 20:06 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan McKinnon 2008-04-24 22:36:10 UTC
sys-apps/file-4.24 does not identify .ogg files (possibly others):
alan@nazgul ~ $ eix -e file
[I] sys-apps/file
     Available versions:  4.21-r1 4.23 (~)4.24 {python}
     Installed versions:  4.24(11:15:43 PM 04/01/2008)(python)

alan@nazgul ~ $ file /home/alan/music/A/ABC/The\ Lexicon\ of\ Love/01\ -\ Show\ me.ogg
/home/alan/music/A/ABC/The Lexicon of Love/01 - Show me.ogg: data

sys-apps/file-4.23 recognises these files correctly:
alan@nazgul ~ $ eix -e file
[I] sys-apps/file
     Available versions:  4.21-r1 4.23 [m](~)4.24 {python}
     Installed versions:  4.23(12:17:46 AM 04/25/2008)(python)

alan@nazgul ~ $ file /home/alan/music/A/ABC/The\ Lexicon\ of\ Love/01\ -\ Show\ me.ogg
/home/alan/music/A/ABC/The Lexicon of Love/01 - Show me.ogg: Ogg data, Vorbis audio, stereo, 44100 Hz, ~160000 bps, created by: Xiph.Org libVorbis I (1.1.0 RC1)

4.24 has only /usr/share/misc/file/magic.mgc as a magic file

4.23 installs more files:
alan@nazgul ~/temp $ ls -al /usr/share/misc/file/
total 1602
drwxr-xr-x 2 root root     168 2008-04-25 00:17 ./
drwxr-xr-x 3 root root     640 2008-04-15 18:51 ../
-rw-r--r-- 1 root root  484372 2008-04-25 00:17 magic
-rw-r--r-- 1 root root 1062400 2008-04-25 00:17 magic.mgc
-rw-r--r-- 1 root root   33539 2008-04-25 00:17 magic.mime
-rw-r--r-- 1 root root   46208 2008-04-25 00:17 magic.mime.mgc


Reproducible: Always

Steps to Reproduce:
1. emerge =sys-apps/file-4.24
2. file /path/to/an/ogg/file

Actual Results:  
file-4.24 says .ogg files are type "data"

Expected Results:  
file-4.24 should say .ogg files are "Ogg data, Vorbis audio..." etc

Confirmed by Neil Bothwick on gentoo-user@lists.gentoo.org:
Message-ID: <20080424225938.1918d808@zaphod.digimed.co.uk>
Comment 1 Joerg Plate 2008-05-22 12:57:28 UTC
makeself 2.15 fails, because file doesn't recognize the unpacked file as ".gz".

Comment 2 Arun Raghavan (RETIRED) gentoo-dev 2008-05-27 17:45:13 UTC
(In reply to comment #1)
> makeself 2.15 fails, because file doesn't recognize the unpacked file as ".gz".

I can confirm this. makeself-2.1.5 installs fine with file-4.23 but fails with 4.24 because the data blob is not recognised as a tarball.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-29 14:56:11 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > makeself 2.15 fails, because file doesn't recognize the unpacked file as ".gz".
> 
> I can confirm this. makeself-2.1.5 installs fine with file-4.23 but fails with
> 4.24 because the data blob is not recognised as a tarball.

See bug #215499 Comment #3

Comment 4 SpanKY gentoo-dev 2008-05-31 06:39:31 UTC
this is from upstream and should fix things:
#0              search/1000     OggS            Ogg data
0               string  OggS            Ogg data
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-02 02:43:40 UTC
*** Bug 224403 has been marked as a duplicate of this bug. ***
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-16 17:52:24 UTC
*** Bug 226859 has been marked as a duplicate of this bug. ***
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-07-17 19:34:49 UTC
(In reply to comment #0)
> 4.24 has only /usr/share/misc/file/magic.mgc as a magic file
> 
> 4.23 installs more files:
> alan@nazgul ~/temp $ ls -al /usr/share/misc/file/
> total 1602
> drwxr-xr-x 2 root root     168 2008-04-25 00:17 ./
> drwxr-xr-x 3 root root     640 2008-04-15 18:51 ../
> -rw-r--r-- 1 root root  484372 2008-04-25 00:17 magic
> -rw-r--r-- 1 root root 1062400 2008-04-25 00:17 magic.mgc
> -rw-r--r-- 1 root root   33539 2008-04-25 00:17 magic.mime
> -rw-r--r-- 1 root root   46208 2008-04-25 00:17 magic.mime.mgc

SpanKY: What do you think about the above? I would like to fix up file-4.24. Thanks.
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2008-07-17 20:06:39 UTC
We could still patch this for 4.24-r1 to make a newer stable. But I just bumped it to 4.25 where the issue is fixed.