14

Using open-source code such as GPL in products: Open-source it per the license or switch licenses — don’t treat this as “no one cares”

Grade BMedium benefitMoneyFreeLittle timeSome willpower

Copyright infringement requires you to compensate the copyright holder based on their actual losses or the profits you earned from the infringement. If you commit infringement intentionally and under aggravating circumstances, you may be ordered to pay damages ranging from 1 to 5 times the original amount. One company hired a former employee of a competitor and developed software that was substantially similar to the competitor’s product. The company argued that since the competitor’s software used GPLv2, it was required to be open-source anyway. The Supreme People’s Court ruled that whether a developer complies with GPLv2 or not has no bearing on their copyright rights, and ordered the company to cease infringement and pay 500,000 yuan in damages.

Cost
There is no cost involved. Before using someone else’s open-source code, check its license for any stated usage terms. The GPL family of licenses requires that any product built using it must also have its source code released, which conflicts with selling the product as closed-source software for profit. If such a conflict exists, you must switch to another license. The hard part is giving up a library you’ve already grown comfortable using.
Benefit
Copyright infringement demands compensation based on the rights holder’s actual losses or the infringer’s profits. If neither of these can be accurately calculated, damages are determined by how much it would cost to obtain a proper license for the same software. Intentional and aggravated infringement can also result in 1 to 5 times the standard compensation amount. If the infringement harms public interests, any illegal profits may be confiscated and fines imposed. A relevant official case is Supreme People’s Court Civil Appeal No. 51 of 2021. In this case, a defendant hired a former employee of a plaintiff and developed gateway software that was substantially similar to the plaintiff’s product. The defendant claimed the plaintiff’s software used GPLv2 and thus should have been open-source. The Supreme People’s Court reiterated that compliance with GPLv2 and copyright ownership are two separate issues, and ordered the defendant to cease infringement and pay 500,000 yuan in damages nationwide.
Notes
This case makes it clear that “the other party used GPL code” cannot serve as justification for copying their software. Conversely, there are already effective court rulings in China where GPL authors successfully sue commercial entities that fail to release source code. No original text of these rulings could be found on the Supreme People’s Court website, so they are not cited here. This item is graded B because compliance with open-source licenses is governed only by general contract and copyright laws, without any specific legal provisions dedicated to this area.
Sources · 2
  1. 全国人大常委会 (2020). 著作权法(2020 年修正,第五十三、五十四条). npc.gov.cn/npc/c2/c30834/202011/t20201119_308…
  2. 最高人民法院知识产权法庭 (2022). 涉「开源软件」著作权侵权案((2021)最高法知民终 51 号). ipc.court.gov.cn/zh-cn/news/view-3042.html

← Read the whole chapter: 11. Common legal pitfalls for programmers and tech professionals

Keyboard shortcuts

Typing any letter opens search, so commands use Option ⌥ + Shift ⇧ + a key (Windows: Alt + Shift + key). / and ? still work on their own.

/ / Ctrl K
Open search
a–z
Type any letter (not a shortcut) to start searching
Esc
Close dialog, menu or sidebar
?
Show these shortcuts
↓ / ↑
Next item
AltShift
Next item
AltShift
Previous item
AltShift
Next chapter / next item on item pages
AltShift
Previous chapter / previous item
AltShift
Mark the current item done
AltShift
Save the current item
AltShift
Listen to the current item
AltShift
Random item
AltShift
Toggle dark mode
AltShift
Show/hide sidebar
AltShift
Open filters
AltShift
Go home
AltShift
Open tools
AltShift
Open self-check
AltShift
Toggle live edit (admin)
AltShift
Bigger / smaller / default text (+)
AltShift
Bigger / smaller / default text (−)
AltShift
Bigger / smaller / default text (0)

Appearance and colors

Sign in

Sign in to carry what you saved, did and read to every device. No password: enter your Gmail, get a 6-digit code or a link, and you are in.