LinuxGem
此处为老的 LinuxGem,新版 LinuxGem 请移步 www.linuxgem.org

常见开源协议简介

galeki posted @ 2008年2月29日 05:10 in 与技术无关的话题 with tags lgpl gpl bsd , 3395 阅读

每天都在使用着各式各样的开源软件,他们基于的协议也不尽相同,下面这篇文章对常见的几种开源协议进行了简单的介绍。

在网上搜到了此文的无数个拷贝,不知道哪个是原版,作者要是看到了通知我下,我注上来源


开源在今天的软件业已经很普遍,但开源是否意味着使用者可以对开源后的代码为所欲为呢?答案是否定的。开源运动同样有自己的游戏规则和道德准则。不遵行这些规则不但损害开源运动的健康发展,也会对违规者造成名誉和市场上的损失,更可能陷入法律纠纷和赔偿。

现今存在的开源协议很多,而经过 Open Source Initiative 组织通过 批准的开源协议

目前有58种。我们在常见的开源协议如BSD, GPL, LGPL,MIT等都是OSI批准的协议。如果要开源自己的代码,最好也是选择这些被批准的开源协议。

这里我们来看四种最常用的开源协议及它们的适用范围,供那些准备开源或者使用开源产品的开发人员/厂家参考。

Mozilla Public License

  MPL License,允许免费重发布、免费修改,但要求修改后的代码版权归软件的发起者。这种授权维护了商业软件的利益,,它要求基于这种软件得修改无偿贡献 版权给该软件。这样,围绕该软件得所有代码得版权都集中在发起开发人得手中。但MPL是允许修改,无偿使用得。MPL软件对链接没有要求。

BSD开源协议

BSD开源协议是一个给于使用者很大自由的协议。基本上使用者可以”为所欲为”,可以自由的使用,修改源代码,也可以将修改后的代码作为开源或者专有软件再发布。


但”为所欲为”的前提当你发布使用了BSD协议的代码,或则以BSD协议代码为基础做二次开发自己的产品时,需要满足三个条件:

1. 如果再发布的产品中包含源代码,则在源代码中必须带有原来代码中的BSD协议。

2. 如果再发布的只是二进制类库/软件,则需要在类库/软件的文档和版权声明中包含原来代码中的BSD协议。

3. 不可以用开源代码的作者/机构名字和原来产品的名字做市场推广。

BSD 代码鼓励代码共享,但需要尊重代码作者的著作权。BSD由于允许使用者修改和重新发布代码,也允许使用或在BSD代码上开发商业软件发布和销售,因此是对 商业集成很友好的协议。而很多的公司企业在选用开源产品的时候都首选BSD协议,因为可以完全控制这些第三方的代码,在必要的时候可以修改或者二次开发。

Apache Licence 2.0

Apache Licence是著名的非盈利开源组织Apache采用的协议。该协议和BSD类似,同样鼓励代码共享和尊重原作者的著作权,同样允许代码修改,再发布(作为开源或商业软件)。需要满足的条件也和BSD类似:

1.需要给代码的用户一份Apache Licence

2.如果你修改了代码,需要再被修改的文件中说明。

3.在延伸的代码中(修改和有源代码衍生的代码中)需要带有原来代码中的协议,商标,专利声明和其他原来作者规定需要包含的说明。

4. 如果再发布的产品中包含一个Notice文件,则在Notice文件中需要带有Apache Licence。你可以在Notice中增加自己的许可,但不可以表现为对Apache Licence构成更改。

Apache Licence也是对商业应用友好的许可。使用者也可以在需要的时候修改代码来满足需要并作为开源或商业产品发布/销售。

GPL

我们很熟悉的Linux就是采用了GPL。GPL协议和BSD, Apache Licence等鼓励代码重用的许可很不一样。GPL的出发点是代码的开源/免费使用和引用/修改/衍生代码的开源/免费使用,但不允许修改后和衍生的代 码做为闭源的商业软件发布和销售。这也就是为什么我们能用免费的各种linux,包括商业公司的linux和linux上各种各样的由个人,组织,以及商 业软件公司开发的免费软件了。

GPL协议的主要内容是只要在一个软件中使用(“使用”指类库引用,修改后的代码或者衍生代码)GPL协议的产品,则该软件产品必须也采用GPL 协议,既必须也是开源和免费。这就是所谓的”传染性”。GPL协议的产品作为一个单独的产品使用没有任何问题,还可以享受免费的优势。

由于GPL严格要求使用了GPL类库的软件产品必须使用GPL协议,对于使用GPL协议的开源代码,商业软件或者对代码有保密要求的部门就不适合集成/采用作为类库和二次开发的基础。

其它细节如再发布的时候需要伴随GPL协议等和BSD/Apache等类似。

LGPL

LGPL 是GPL的一个为主要为类库使用设计的开源协议。和GPL要求任何使用/修改/衍生之GPL类库的的软件必须采用GPL协议不同。LGPL允许商业软件通 过类库引用(link)方式使用LGPL类库而不需要开源商业软件的代码。这使得采用LGPL协议的开源代码可以被商业软件作为类库引用并发布和销售。

但是如果修改LGPL协议的代码或者衍生,则所有修改的代码,涉及修改部分的额外代码和衍生的代码都必须采用LGPL协议。因此LGPL协议的开 源代码很适合作为第三方类库被商业软件引用,但不适合希望以LGPL协议代码为基础,通过修改和衍生的方式做二次开发的商业软件采用。


GPL/LGPL都保障原作者的知识产权,避免有人利用开源代码复制并开发类似的产品。

  • 无匹配
mumonitor 说:
2008年2月29日 17:31 学习,但是有点疑问,GPL下的软件必须是免费的吗?GPL只是倡导开源应不是必须免费吧?
silence 说:
2008年2月29日 19:48 @ mumonitor: 这篇文章对 GPL 的那些说法很不正确。实际上 GPL 协议所倡导的既非开源也非免费,而是自由。 很多人别有用心,就把 free 翻译成“免费”。因为商人们不愿意听到 “免费” 这个词,所以又有一些别有用心的人造出 “开源” 这个词。
mumonitor 说:
2008年2月29日 22:20 严重同意silence的观点,此free非彼free。所以我提出了异议^_^
princelai 说:
2008年3月01日 05:46 free software和freeware是不一样的
forex market 说:
2023年8月16日 17:37

Oh my goodness! an excellent write-up dude. Thanks a ton Even so We’re experiencing problem with ur rss . Do not know why Cannot sign up for it. Is there any person obtaining identical rss dilemma? Anyone who knows kindly respond. Thnkx vintage floral curtains

kashif 说:
2023年8月16日 21:22

I do accept as true with all the ideas you have introduced on your post. They are very convincing and can definitely work. Nonetheless, the posts are too quick for newbies. May just you please lengthen them a bit from subsequent time? Thanks for the post. openai

forex market 说:
2023年8月21日 00:41

Intimately, the post is in reality the greatest on that worthy topic. I fit in with your conclusions and can thirstily look forward to your forthcoming updates. Saying thanks will not simply just be enough, for the perfect lucidity in your writing. I will certainly perfect away grab your rss feed to stay privy of any updates. Authentic work and much success in your business endeavors! UFABETแทงบอลบนมือถือ

haider 说:
2023年8月21日 19:28

I’m impressed, I have to admit. Actually rarely do you encounter a blog that’s both educative and entertaining, and let me tell you, you could have hit the nail around the head. Your notion is outstanding; the pain is a thing that too little folks are speaking intelligently about. I’m very happy that we came across this inside my hunt for something with this. แทงใบเหลืองใบแดงUFABET

forex market 说:
2023年8月22日 00:22

I and my buddies came taking note of the nice advice found on your web blog and then suddenly developed an awful suspicion I never expressed respect to you for those techniques. The men were happy to learn them and have in effect actually been having fun with those things. We appreciate you really being really thoughtful and then for making a choice on variety of magnificent tips millions of individuals are really desirous to know about. Our own sincere apologies for not saying thanks to you sooner. UFABETแทงบอลทายผลผู้ชนะ

forex market 说:
2023年8月23日 22:47

Hello Internet web site owner. I seriously love this writing and also your webpage all in all! That write-up is very clearly written and also without difficulty understandable. Your WordPress design is wonderful as well! Would definitely be excellent to discover where I can get that. Be sure to hold up the excellent work. We all need much more this sort of internet owners such as you online and much less spammers. Exceptional mate! 안전놀이터

haider 说:
2023年8月23日 23:14

I’m writing to make you know of the fabulous encounter my wife’s child undergone going through the blog. She realized a good number of things, not to mention what it’s like to have an excellent giving spirit to make certain people just learn certain extremely tough subject areas. You undoubtedly surpassed readers’ desires. Many thanks for presenting the useful, trustworthy, revealing and as well as easy tips about this topic to Sandra. เว็บพนันบอลออนไลน์อันดับ1

forex market 说:
2023年8月24日 19:24

I discovered your blog post web site on the internet and appearance some of your early posts. Always maintain within the good operate. I just extra the Feed to my MSN News Reader. Looking for toward reading much more on your part down the line!… UFABET เว็บพนันแตกง่าย

haider 说:
2023年8月24日 19:25

I am not certain if I agree with all of this. That being said, your blog is very informative, and many people will walk away from this post feeling more educated than when they arrived. Overall, you have done a superb job. เว็บบอลออนไลน์UFA

haider 说:
2023年8月25日 14:09

This is the right blog for anybody who wants to search out out about this topic. You realize a lot its virtually arduous to argue with you (not that I actually would need…HaHa). You positively put a new spin on a topic thats been written about for years. Nice stuff, just nice! สมัครแทงบอลฟรี

forex market 说:
2023年8月26日 13:49

I have to say i am very impressed with the way you efficiently site and your posts are so informative. You have really have managed to catch the attention of many it seems, keep it up! เว็บพนันออนไลน์UFA

haider 说:
2023年8月27日 18:49

Hello! I just now would choose to make a massive thumbs up for any great info you’ve got here with this post. I am returning to your blog site for further soon. 메이저사이트

haider 说:
2023年8月30日 17:34

Woah this is just an insane amount of information, must of taken ages to compile so thank you so much for just sharing it with all of us. If your ever in any need of related info, perhaps a bit of coaching, seduction techniques or just general tips, just check out my own site! 메이저사이트

haider 说:
2023年9月04日 14:18

Hello! I just now would choose to make a massive thumbs up for any great info you’ve got here with this post. I am returning to your blog site for further soon. 안전놀이터

forex market 说:
2023年9月05日 14:02

Well a lot of them sample isaac hayes and Maceo Parker. . Try the link below in the sources to see a list of a few that sample isaac hayes salingsilang

sdsds 说:
2023年9月08日 23:01

Well a lot of them sample isaac hayes and Maceo Parker. . Try the link below in the sources to see a list of a few that sample isaac hayes custom tactical hawaiian shirt

haider 说:
2023年9月08日 23:35

You will have not intended to do so, but I think you’ve managed to express the state of mind that quite a lot of consumers are in. The sense of wanting to assistance, but not knowing how or where, is one thing a lot of us are going via. filmyzilla 2023

haider 说:
2023年9月14日 21:56

I’ve been exploring for a bit for any high-quality articles or weblog posts in this kind of house . Exploring in Yahoo I eventually stumbled upon this web site. Studying this information So i’m satisfied to show that I have an incredibly just right uncanny feeling I found out exactly what I needed. I most for sure will make certain to do not disregard this website and provides it a look a relentless basis. สล็อต

haider 说:
2023年9月20日 14:16

Can I just say what a relief to seek out someone who actually is aware of what theyre talking about on the internet. You undoubtedly know the way to bring an issue to light and make it important. More folks have to read this and understand this aspect of croc birthday

jmaes 说:
2023年9月24日 14:49

Can I just say what a relief to discover somebody that truly knows what theyre speaking about online. You certainly discover how to bring a difficulty to light making it crucial. Workout . should ought to see this and understand why side of the story. I cant believe youre not more well-liked since you also certainly develop the gift. shillong teer common number

jmaes 说:
2023年10月03日 00:00

What I wouldnt give to have a debate with you about this. You just say so many things that come from nowhere that Im fairly positive Id have a fair shot. Your blog is terrific visually, I mean people wont be bored. But others who can see past the videos and the layout wont be so impressed with your generic understanding of this subject. Kalaastar song lyrics

ds 说:
2023年10月12日 19:29

I am interested in types write-up. It really is good for uncover individuals explain in words about the heart along with knowing in this substantial style is generally merely found. Gutter Cleaning Poole

ds 说:
2023年10月21日 14:29

You produced some decent points there. I looked on the net for any issue and found most people goes as well as with the site. แทงบอลเงินสด

james 说:
2023年11月04日 00:01

That appears to be certainly great. Most of these teeny specifics are designed having great deal of track record expertise. I'm keen on the item lots https://sky888.win/

WonderWrks 说:
2023年11月09日 19:14

That can feel totally proper. Each one of more compact factors have been developed by means of several document schooling. I enjoy the application form lots. https://hb88a.win/


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter