在已经给出的答案中,没有任何补充说明,但是这里是有关如何调整源文件头(source)的说明:
2.2将GPL修改添加到许可文件
当开发人员对开发人员将其合并到GPL程序中的许可许可文件进行版权更改时,会发生更为复杂的情况。在这种情况下,开发人员通常将GPL应用于他们的修改。(但是,开发人员可以改用许可性条款来贡献新代码,例如管理未修改文件的许可性许可。我们将在第2.3节中讨论这种情况。)
即使外部项目的许可许可证授予了将该项目的代码合并到GPL's项目中的法律许可,但GPL'd项目的开发人员仍必须遵守许可许可证中的通知保留要求。在使用逐个文件方法的项目中,对许可许可文件进行版权修改的开发人员应在现有文件之前放置新的版权声明和许可声明,并应明确开发人员已修改文件。然后,文件顶部将显示如下:
/*
* Copyright (c) 2007 GPL Project Developer Who Made Changes
*
* This file is free software: you may copy, redistribute and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 2 of the License, or (at your
* option) any later version.
*
* This file 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 .
*
* This file incorporates work covered by the following copyright and
* permission notice:
*
* Copyright (c) YEARS_LIST, Permissive Contributor1
* Copyright (c) YEARS_LIST, Permissive Contributor2
*
* Permission to use, copy, modify, and/or distribute this software
* for any purpose with or without fee is hereby granted, provided
* that the above copyright notice and this permission notice appear
* in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
根据许可许可的要求,开发人员必须保留原始代码中出现的全部版权声明,许可声明和保修免责声明,这一点非常重要。有时我们会看到GPL通知与许可许可通知混在一起,这是一种令人困惑的做法,使代码的来源和通知中列出的各个版权所有者所授予的确切许可都变得模糊。当不同的版权所有者以不同的条款发布其贡献时,应指定每个人对自己的特定贡献所使用的条款。我们建议按照上面的示例进行清楚的分离并使用缩进。
这种在文件中组织通知的方式使开发人员可以方便地选择是根据许可条款还是根据GPL进行贡献。如果他们希望在宽松的条件下提供捐款,则可以将版权声明添加到下一组。如果他们希望根据GPL做出贡献,则可以在顶部添加版权声明。但是请注意,在单个源文件中,要确定此类文件的哪些部分被允许的术语覆盖通常是非常困难的,并且通常是完全不可行的。如果目标是仅在许可条款下提供附加代码,则应使用第2.3节中描述的方法。