<2022-02-22 周二>
Apache License, Version 2.0
协议下的源代码(二)接着“如何重新发布修改后的 Apache License, Version 2.0 协议下的源代码(一)”中的内容,在那里提到的是:将源文件拷贝过来修改再发布的处理方式,但是如果想借用并修改了其它开源协议下的某个函数呢?我想我可以参考:“GraphicsMagick Copyrights and Licenses”的做法,比如GraphicsMagick
的源代码magick/pixel_cache.c
的:
/*
% Copyright (C) 2003 - 2019 GraphicsMagick Group
% Copyright (C) 2002 ImageMagick Studio
%
% This program is covered by multiple licenses, which are described in
% Copyright.txt. You should have received a copy of Copyright.txt with this
% package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
%
% (此处略去了一部分)
*/
又比如magick/utility.c
的:
/*
% Copyright (C) 2003-2020 GraphicsMagick Group
% Copyright (c) 2000 Markus Friedl. All rights reserved.
% Copyright (C) 2002 ImageMagick Studio
% Copyright 1991-1999 E. I. du Pont de Nemours and Company
%
% This program is covered by multiple licenses, which are described in
% Copyright.txt. You should have received a copy of Copyright.txt with this
% package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
%
% (此处略去了一部分)
*/
很明显上述的做法就是声明这个文件中使用了多个开源协议,其中提到的Copyright.txt
中有更详细的包括某个函数的开源协议声明,有兴趣可以细读一个这个Copyright.txt
文件。
上面附的两个例子,主要是针对Apache License, Version 2.0
的Section 4.c
和Section 4.b
的情况,而关于Section 4.a
我有点困惑,如果我将Apache License, Version 2.0
的协议副本添加在我修改的GM
中,那原来的GM
协议怎么办?
我觉得这里的讨论更全面:“How does one combine differently licensed code in one open source program?”。
我的困惑在这里解决了,搬个截图过来: