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?



On 8/15/22 16:47, Dr. Thomas Orgis wrote:
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


Ooops, too tired...  With -i:

NetBSD netbsd9.acadix  bacon ~ 1001: (pkgsrc): which file
        /home/bacon/Pkgsrc/pkg/bin/file

NetBSD netbsd9.acadix  bacon ~ 1002: (pkgsrc): /usr/bin/file -i
/home/bacon/Pkgsrc/pkgsrc/distfiles/adwaita-icon-theme-40.1.1.tar.xz
/home/bacon/Pkgsrc/pkgsrc/distfiles/adwaita-icon-theme-40.1.1.tar.xz:
application/x-xz; charset=binary

NetBSD netbsd9.acadix  bacon ~ 1003: (pkgsrc): file -i
/home/bacon/Pkgsrc/pkgsrc/distfiles/adwaita-icon-theme-40.1.1.tar.xz
/home/bacon/Pkgsrc/pkgsrc/distfiles/adwaita-icon-theme-40.1.1.tar.xz:
application/octet-stream; charset=binary

Darwin abalone.acadix  bacon ~ 1001: (pkgsrc): which file
        /Users/bacon/Pkgsrc/pkg/bin/file

Darwin abalone.acadix  bacon ~ 1002: (pkgsrc): /usr/bin/file -i
~/Pkgsrc/pkgsrc/distfiles/adwaita-icon-theme-40.1.1.tar.xz
/Users/bacon/Pkgsrc/pkgsrc/distfiles/adwaita-icon-theme-40.1.1.tar.xz:
regular file

Darwin abalone.acadix  bacon ~ 1003: (pkgsrc): file -i
~/Pkgsrc/pkgsrc/distfiles/adwaita-icon-theme-40.1.1.tar.xz
/Users/bacon/Pkgsrc/pkgsrc/distfiles/adwaita-icon-theme-40.1.1.tar.xz:
application/octet-stream; charset=binary

FreeBSD moray.acadix  bacon ~ 1004: file -i adwaita-icon-theme-40.1.1.tar.xz
adwaita-icon-theme-40.1.1.tar.xz: application/x-xz; charset=binary

Looks like pkgsrc file command could be an upgrade for Darwin users with
this little glitch fixed.


Home | Main Index | Thread Index | Old Index