On 8/15/22 03:31, Dr. Thomas Orgis wrote:
Hi all, I just noticed that file as installed by pkgsrc does not report the MIME for XZ files. Linux: $ /usr/bin/file adwaita-icon-theme-41.0.tar.xz adwaita-icon-theme-41.0.tar.xz: XZ compressed data, checksum CRC64 $ /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 adwaita-icon-theme-41.0.tar.xz adwaita-icon-theme-41.0.tar.xz: XZ compressed data, checksum CRC64 $ /stuff/pkg/bin/file -i adwaita-icon-theme-41.0.tar.xz adwaita-icon-theme-41.0.tar.xz: application/octet-stream; charset=binary I don't see something special in my Linux build about hacking in XZ MIME … so I wonder if it is consinstent that pkgsrc's file doesn't return application/x-xz and then, why that — and if we can fix it;-) Alrighty then, Thomas
What Linux are you running? A RHEL 7 derivative maybe?NetBSD netbsd9.acadix bacon ~ 1013: (pkgsrc): which file /home/bacon/Pkgsrc/pkg/bin/file
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
NetBSD netbsd9.acadix bacon ~ 1015: (pkgsrc): /usr/bin/file /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: XZ compressed data
Darwin abalone.acadix bacon ~ 1003: (pkgsrc): which file /Users/bacon/Pkgsrc/pkg/bin/file
Darwin abalone.acadix bacon ~ 1004: (pkgsrc): file ~/Pkgsrc/pkgsrc/distfiles/adwaita-icon-theme-40.1.1.tar.xz /Users/bacon/Pkgsrc/pkgsrc/distfiles/adwaita-icon-theme-40.1.1.tar.xz: XZ compressed data, checksum CRC64
Linux alma8.localdomain bacon ~ 1011: (pkgsrc): which file /home/bacon/Pkgsrc/pkg/bin/file
Linux alma8.localdomain bacon ~ 1012: (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