Why does the MIT license need a copyright statement when all other licenses do not?
=> More informations about this toot | More toots from tippfehlr@fosstodon.org
@tippfehlr they all do - in the file header (which is too often forgotten, but essential for legal certainity). Because the MIT license is so short, it is often enough used as the license header.
GPLs have a provision in the license that all files and the output of a program should contain this header (GPLv3):
Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
=> More informations about this toot | More toots from csdummi@babka.social
@tippfehlr
https://www.gnu.org/licenses/gpl-3.0.txt, see last section: "How to Apply These Terms to Your New Programs"
=> More informations about this toot | More toots from csdummi@babka.social
@csdummi that is funny. I have SPDX style license identifiers but I guess I will need to change it to this. I guess it is helpful to actually read the thing
=> More informations about this toot | More toots from tippfehlr@fosstodon.org
@tippfehlr the REUSE tool by @fsfe is the probably the best tool to ensure your code has the correct license headers.
https://reuse.software/
It also supports multiple licenses within a project.
=> More informations about this toot | More toots from csdummi@babka.social
@tippfehlr pyou can see why MIT does not need this header - the GPL header is as long as the entire MIT license.
=> More informations about this toot | More toots from csdummi@babka.social This content has been proxied by September (3851b).Proxy Information
text/gemini