Content deleted Content added
Cedelmwood (talk | contribs) Tags: Mobile edit Mobile web edit |
m →Etymology: HTTP to HTTPS for SourceForge |
||
(30 intermediate revisions by 23 users not shown) | |||
Line 1:
{{
{{redirect|Fork (software)|the operation whereby a process creates a copy of itself|fork (system call)}}
[[File:Linux Distribution Timeline.svg|thumb|upright|A timeline chart of how [[Linux distribution]]s have forked]]▼
▲[[File:Linux Distribution Timeline.svg|thumb|upright|A timeline chart
In [[software development]], a '''fork''' is a [[codebase]] that is created by duplicating an existing codebase and, generally, is subsequently modified independently of the original. [[Software]] [[software build|built]] from a fork initially has identical behavior as software built from the original code, but as the [[source code]] is increasingly modified, the resulting software tends to have increasingly different behavior compared to the original.{{Example needed|date=June 2024}} A fork is a form of [[branching (revision control)|branching]], but generally involves storing the forked files separately from the original; not in the [[software repository|repository]]. Reasons for forking a codebase include user preference, stagnated or discontinued development of the original software or a [[schism]] in the developer community.<ref>"Schism", with its connotations, is a common usage, e.g.
* [http://www.jwz.org/doc/lemacs.html "the Lemacs/FSFmacs schism"] {{Webarchive|url=https://web.archive.org/web/20091130093142/http://www.jwz.org/doc/lemacs.html|date=30 November 2009}} ([[Jamie Zawinski]], 2000)
* [https://lwn.net/Articles/419822/ "Behind the KOffice split"] {{webarchive|url=https://web.archive.org/web/20130706094238/http://lwn.net/Articles/419822/|date=6 July 2013}} (Joe Brockmeier, ''Linux Weekly News'', 2010-12-14)
* [http://www.h-online.com/open/features/Copyright-assignment-Once-bitten-twice-shy-1049631.html "Copyright assignment – once bitten, twice shy"] {{webarchive|url=https://web.archive.org/web/20120330153250/http://www.h-online.com/open/features/Copyright-assignment-Once-bitten-twice-shy-1049631.html|date=30 March 2012}} (Richard Hillesley, ''H-Online'', 2010-08-06)
* [http://dashes.com/anil/2010/09/forking-is-a-feature.html "Forking is a feature"] {{webarchive|url=https://web.archive.org/web/20120229032536/http://dashes.com/anil/2010/09/forking-is-a-feature.html|date=29 February 2012}} ([[Anil Dash]], 2010-09-10)
* [http://www.linuxjournal.com/node/1000101 "The Great Software Schism"] {{webarchive|url=https://web.archive.org/web/20120106065841/http://www.linuxjournal.com/node/1000101|date=6 January 2012}} ([[Glyn Moody]], ''Linux Journal'', 2006-09-28)
* [http://mako.cc/writing/to_fork_or_not_to_fork.html "To Fork Or Not To Fork: Lessons From Ubuntu and Debian"] {{webarchive|url=https://web.archive.org/web/20120226160810/http://mako.cc/writing/to_fork_or_not_to_fork.html|date=26 February 2012}} ([[Benjamin Mako Hill]], 2005).</ref> Forking proprietary software (such as [[Unix]]) is prohibited by [[copyright]] law without explicit permission, but [[free and open-source software]], by definition, may be forked without permission.
== Etymology ==
The word
In the context of software development,
{{quotation|Creating a branch "forks off" a version of the program.}}
Line 14 ⟶ 20:
The term was in use on [[Usenet]] by 1983 for the process of creating a subgroup to move topics of discussion to.<ref>[https://groups.google.com/group/net.misc/browse_thread/thread/b0e9f8531558b7e9/1cc726d9e9e05ebd?q=fork#1cc726d9e9e05ebd Can somebody fork off a "net.philosophy"?] ([[John Gilmore (activist)|John Gilmore]], net.misc, 18 January 1983)</ref>
The word is used similarly for the [[Fork (system call)|fork() system call]] which causes a running [[Process (computing)|process]] to split in two {{endash}} typically, to allow them to perform different tasks in parallel.<ref>"The term fork is derived from the POSIX standard for operating systems: the system call used so that a process generates a copy of itself is called fork()." {{cite conference|url=http://flosshub.org/sites/flosshub.org/files/paper_0.pdf|title=A Comprehensive Study of Software Forks: Dates, Reasons and Outcomes|first1=Gregorio|last1=Robles|first2=Jesús M.|last2=González-Barahona|conference=OSS 2012 The Eighth International Conference on Open Source Systems|year=2012|access-date=20 October 2012|url-status=live|archive-url=https://web.archive.org/web/20131202221721/http://flosshub.org/sites/flosshub.org/files/paper_0.pdf|archive-date=2 December 2013|doi=10.1007/978-3-642-33442-9_1|doi-access=free}}</ref>
==Forking of free and open-source software==
Free and [[open-source software]] may be legally forked without prior approval of those currently developing, managing, or distributing the software per both [[The Free Software Definition]] and [[The Open Source Definition]]:<ref name=wheeler/>
{{quotation|The freedom to distribute copies of your modified versions to others (freedom 3). By doing this, you can give the whole community a chance to benefit from your changes. Access to the source code is a precondition for this.|[[The Free Software Definition]]<ref>{{cite web
|url = https://www.gnu.org/philosophy/free-sw.html
Line 28 ⟶ 36:
|archive-url = https://web.archive.org/web/20131014132149/http://www.gnu.org/philosophy/free-sw.html
|archive-date = 14 October 2013
}}</ref>}}
{{quotation|3. Derived Works: The license must allow modifications and derived works, and must allow them to be distributed under the same terms as the license of the original software.|[[The Open Source Definition]]<ref>{{cite web|url=http://opensource.org/docs/osd|title=The Open Source Definition|date=7 July 2006 |publisher=The Open Source Initiative|access-date=15 October 2013|url-status=live|archive-url=https://web.archive.org/web/20131015144021/http://opensource.org/docs/osd|archive-date=15 October 2013
In free software, forks often result from a schism over different goals or personality clashes. In a fork, both parties assume nearly identical code bases, but typically only the larger group, or whoever controls the
[[Eric S. Raymond]], in his essay ''[[Homesteading the Noosphere]]'',<ref>{{cite web |last=Raymond |first=Eric S. |author-link=Eric S. Raymond |date=15 August 2002 |title=Promiscuous Theory, Puritan Practice |url=http://www.catb.org/~esr/writings/cathedral-bazaar/homesteading/ar01s03.html
{{quotation|Forking is considered a Bad Thing—not merely because it implies a lot of wasted effort in the future, but because forks tend to be accompanied by a great deal of strife and acrimony between the successor groups over issues of legitimacy, succession, and design direction. There is serious social pressure against forking. As a result, major forks (such as the [[GNU Emacs|Gnu-Emacs]]/[[XEmacs]] split, the fissioning of the [[386BSD]] group into three daughter projects, and the short-lived GCC/EGCS split) are rare enough that they are remembered individually in hacker folklore.}}
Line 41 ⟶ 48:
# The death of the fork. This is by far the most common case. It is easy to declare a fork, but considerable effort to continue independent development and support.
# A re-merging of the fork (''e.g.'', [[egcs]] becoming "blessed" as the new version of [[GNU Compiler Collection
# The death of the original (''e.g.'' the [[X.Org Server]] succeeding and [[XFree86]] dying.)
# Successful branching, typically with differentiation (''e.g.'', [[OpenBSD]] and [[NetBSD]].)
[[Distributed revision control]] (DVCS) tools have popularised a less emotive use of the term "fork", blurring the distinction with "branch".<ref>''e.g.'' {{cite web|url=https://lwn.net/Articles/628527/|title=An "open governance" fork of Node.js|first=Nathan|last=Willis|work=LWN.net|date=15 January 2015|access-date=15 January 2015|quote=Forks are a natural part of the open development model—so much so that GitHub famously plasters a "fork your own copy" button on almost every page.|url-status=live|archive-url=https://web.archive.org/web/20150421055059/http://lwn.net/Articles/628527/|archive-date=21 April 2015
Forks often restart version numbering from numbers typically used for initial versions of programs like 0.0.1, 0.1, or 1.0 even if the original software was at another version such as 3.0, 4.0, or 5.0. An exception is sometimes made when the forked software is designed to be a drop-in replacement for the original project, ''e.g.'' [[MariaDB]] for [[MySQL]]<ref>[http://programmers.stackexchange.com/questions/31551/forked-a-project-where-do-my-version-numbers-start Forked a project, where do my version numbers start?] {{webarchive|url=https://web.archive.org/web/20110826152252/http://programmers.stackexchange.com/questions/31551/forked-a-project-where-do-my-version-numbers-start |date=26 August 2011 }}</ref> or [[LibreOffice]] for [[OpenOffice.org]].
The [[BSD licenses]] permit forks to become proprietary software, and [[copyleft]] proponents say that commercial incentives thus make proprietisation almost inevitable. (Copyleft licenses can, however, be circumvented via dual-licensing with a proprietary grant in the form of a [[Contributor License Agreement]].) Examples include [[macOS]] (based on the proprietary [[NeXTSTEP]] and the open source [[FreeBSD]]), [[Cedega (software)|Cedega]] and [[CrossOver]] (proprietary forks of [[Wine (software)|Wine]], though CrossOver tracks Wine and contributes considerably), EnterpriseDB (a fork of [[PostgreSQL]], adding Oracle compatibility features<ref>[http://www.enterprisedb.com EnterpriseDB] {{webarchive|url=https://web.archive.org/web/20061113052033/http://www.enterprisedb.com/ |date=13 November 2006 }}</ref>), Supported PostgreSQL with their proprietary ESM storage system,<ref>[http://www.fastware.com.au/docs/FujitsuSupportedPostreSQLWhitePaperV1_02.pdf Fujitsu Supported PostgreSQL] {{webarchive|url=https://web.archive.org/web/20060820144738/http://fastware.com.au/docs/FujitsuSupportedPostreSQLWhitePaperV1_02.pdf |date=20 August 2006 }}</ref> and Netezza's<ref>[http://www.netezza.com/media/2004/Weblog.htm Netezza] {{webarchive|url=https://web.archive.org/web/20061113210650/http://www.netezza.com/media/2004/Weblog.htm |date=13 November 2006 }}</ref> proprietary highly scalable derivative of PostgreSQL. Some of these vendors contribute back changes to the community project, while some keep their changes as their own competitive advantages.▼
==Forking proprietary software==
In [[proprietary software]], the copyright is usually held by the employing entity, not by the individual software developers. Proprietary code is thus more commonly forked when the owner needs to develop two or more versions, such as a [[Window (computing)|windowed]] version and a [[
A notable proprietary fork not of this kind is the many varieties of proprietary [[Unix]]—almost all derived from AT&T Unix under license and all called "Unix", but increasingly mutually incompatible.<ref name=moen>[http://linuxmafia.com/faq/Licensing_and_Law/forking.html Fear of forking] {{webarchive|url=https://web.archive.org/web/20121217044712/http://linuxmafia.com/faq/Licensing_and_Law/forking.html |date=17 December 2012 }}
▲The [[BSD licenses]] permit forks to become proprietary software, and [[copyleft]] proponents say that commercial incentives thus make proprietisation almost inevitable. (Copyleft licenses can, however, be circumvented via dual-licensing with a proprietary grant in the form of a [[Contributor License Agreement]].) Examples include [[macOS]] (based on the proprietary [[NeXTSTEP]] and the open source [[FreeBSD]]), [[Cedega (software)|Cedega]] and [[CrossOver]] (proprietary forks of [[Wine (software)|Wine]], though CrossOver tracks Wine and contributes considerably), EnterpriseDB (a fork of [[PostgreSQL]], adding Oracle compatibility features<ref>[http://www.enterprisedb.com EnterpriseDB] {{webarchive|url=https://web.archive.org/web/20061113052033/http://www.enterprisedb.com/ |date=13 November 2006 }}</ref>), Supported PostgreSQL with their proprietary ESM storage system,<ref>[http://www.fastware.com.au/docs/FujitsuSupportedPostreSQLWhitePaperV1_02.pdf Fujitsu Supported PostgreSQL] {{webarchive|url=https://web.archive.org/web/20060820144738/http://fastware.com.au/docs/FujitsuSupportedPostreSQLWhitePaperV1_02.pdf |date=20 August 2006 }}</ref> and Netezza's<ref>[http://www.netezza.com/media/2004/Weblog.htm Netezza] {{webarchive|url=https://web.archive.org/web/20061113210650/http://www.netezza.com/media/2004/Weblog.htm |date=13 November 2006 }}</ref> proprietary highly scalable derivative of PostgreSQL. Some of these vendors contribute back changes to the community project, while some keep their changes as their own competitive advantages.
==See also==
*
* [[Source port]]▼
▲* [[Downstream (software development)]]
* {{Annotated link|Group decision-making}}
* {{Annotated link|List of software forks}}
* [[Modular programming]]▼
*
* [[Team effectiveness]]▼
▲** [[Duplicate code]]
▲* [[ROM hacking|ROM Hacking]]
==References==
{{Reflist
==External links==
* [http://meatballwiki.org/wiki/RightToFork Right to Fork] at [[Meatball Wiki]]
* A PhD examining forking: [http://helda.helsinki.fi/handle/10138/153135 (Nyman, 2015)] {{Webarchive|url=https://web.archive.org/web/20230716095029/http://helda.helsinki.fi/handle/10138/153135 |date=16 July 2023 }} "Understanding Code Forking in Open Source Software
{{FOSS}}
{{Version control software}}
▲{{Use dmy dates|date=January 2013}}
{{DEFAULTSORT:Fork (Software Development)}}
|