tech-pkg archive

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

Re: Is it normal for file from pkgsrc not to recognize MIME for application/x-xz?



Am Mon, 15 Aug 2022 08:04:07 -0500
schrieb Jason Bacon <jtocino%gmx.com@localhost>:

> > Linux:
> > 
> > $ /usr/bin/file -i adwaita-icon-theme-41.0.tar.xz
> > /var/spool/sorcery/adwaita-icon-theme-41.0.tar.xz: application/x-xz; charset=binary
> > 
> > pkgsrc:
> > 
> > $ /stuff/pkg/bin/file -i adwaita-icon-theme-41.0.tar.xz
> > adwaita-icon-theme-41.0.tar.xz: application/octet-stream; charset=binary

> What Linux are you running?  A RHEL 7 derivative maybe?

I tested on three variants: CentOS 7, Source Mage, Ubuntu 20.

> NetBSD netbsd9.acadix  bacon ~ 1014: (pkgsrc): file 
> ~/Pkgsrc/pkgsrc/distfiles/adwaita-icon-theme-40.1.1.tar.xz
> /home/bacon/Pkgsrc/pkgsrc/distfiles/adwaita-icon-theme-40.1.1.tar.xz: XZ 
> compressed data, checksum CRC64

What does your `file -i` say about that file? I get 'XZ compressed
data' just fine with any instance of 'file', but the MIME type matching
doesn't seem to work for XZ (works for others!) with it being installed
from pkgsrc.

Specifically, on Source Mage, where I got file 5.40 from both sources,
I get this (the 'file' tool is from pkgsrc here):

$ file -m /usr/share/misc/misc/magic  -i adwaita-icon-theme-42.0.tar.xz 
adwaita-icon-theme-42.0.tar.xz: application/x-xz; charset=binary
$ file -m /stuff/pkg/share/misc/magic -i adwaita-icon-theme-42.0.tar.xz 
adwaita-icon-theme-42.0.tar.xz: application/octet-stream; charset=binary

The magic database makes a difference. It seems slightly less useful
when installed with pkgsrc.


Alrighty then,

Thomas

-- 
Dr. Thomas Orgis
HPC @ Universität Hamburg


Home | Main Index | Thread Index | Old Index