robo9k / rust-magic-sys

Rust declarations crate for the `libmagic` C library
Apache License 2.0
10 stars 6 forks source link

New requirements for `libmagic`, `pkg-config`, `brew` & `vcpkg` #36

Open robo9k opened 1 year ago

robo9k commented 1 year ago

Check which OS versions would become (un)supported by switching to pkg-config / vcpkg and libmagic >= 5.39, see #1 and #35

Badge legend:

Packaging status

robo9k commented 1 year ago

Debian

https://tracker.debian.org/pkg/file

stable / 12 / bookworm

https://packages.debian.org/bookworm/amd64/libmagic-dev/filelist 5.44 ✔️ libmagic.a, libmagic.so ✔️ libmagic.pc ✔️

oldstable / 11 / bullseye

https://packages.debian.org/bullseye/amd64/libmagic-dev/filelist 5.39 ✔️ libmagic.a, libmagic.so ✔️ libmagic.pc ✔️

Ubuntu

https://launchpad.net/ubuntu/+source/file

22.04.2 LTS Jammy Jellyfish

https://packages.ubuntu.com/jammy/amd64/libmagic-dev/filelist 5.41 ✔️ libmagic.a, libmagic.so ✔️ libmagic.pc ✔️ ~ 2022-04-02

20.04.6 LTS Focal Fossa

https://packages.ubuntu.com/focal/amd64/libmagic-dev/filelist 5.38 ❌ libmagic.a, libmagic.so ✔️ libmagic.pc ❌ ~ 2020-01-28

robo9k commented 1 year ago

macOS

Homebrew

https://formulae.brew.sh/formula/libmagic#default 5.45 ✔️ libmagic.a, libmagic.dylib ✔️ libmagic.pc ✔️ ~ 2023-07-28

grafik

robo9k commented 1 year ago

Windows

vcpkg

https://vcpkg.link/ports/libmagic 5.40 ✔️ I think it supports all vcpkg triplets, but not sure ~ 2023-04-01

MSYS2

https://packages.msys2.org/base/mingw-w64-file 5.39 ✔️ libmagic.a, libmagic.dll.a ✔️ libmagic.pc ✔️

robo9k commented 1 year ago

Assuming libmagic >= 5.39, the following features can be dropped (see #16):

Iirc the API didn't change in .39, so v5-40 is the first one to keep. Looking at the supported versions, the lower bound is .38, so default feature wouldn't change.