tree_magic icon indicating copy to clipboard operation
tree_magic copied to clipboard

Contains sources licensed under the GNU GPL

Open mbrubeck opened this issue 2 years ago • 2 comments

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

mbrubeck avatar Oct 29 '21 00:10 mbrubeck

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

alexanderkjall avatar Jan 01 '22 14:01 alexanderkjall

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

maxdeviant avatar Jun 27 '22 02:06 maxdeviant