aahancoc / tree_magic

Determines the MIME type of a file by traversing a filetype tree.
MIT License
75 stars 19 forks source link

Contains sources licensed under the GNU GPL #23

Open mbrubeck opened 3 years ago

mbrubeck commented 3 years ago

Filing this issue mainly for awareness, since it may be important to some users of this crate: This package lists its license as “MIT,” but the database files in the builtin directory were released by the FreeDesktop project under the GNU GPL. Developers should be careful to avoid violating the GPL when distributing programs that include this crate.

The tree_magic_mini fork of this crate offers an option to build without the GPLed database files. For details, see: https://github.com/mbrubeck/tree_magic/pull/1

alexanderkjall commented 2 years ago

Thanks for flagging this! This is extremely important when packaging for debian.

maxdeviant commented 2 years ago

Is it possible to use an alternative magic database?

AFAICT file is open-sourced under a BSD license and can generate magic files: https://github.com/file/file/tree/edd157a719a0cdb3739b7ca946fe40610118f3dd/magic