tree_magic
tree_magic copied to clipboard
Contains sources licensed under the GNU GPL
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
Thanks for flagging this! This is extremely important when packaging for debian.
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