*** empty log message ***
[bpt/emacs.git] / admin / notes / copyright
CommitLineData
b05db979 1Copyright (C) 2007 Free Software Foundation, Inc.
e3e14128 2See the end of the file for license conditions.
b05db979
GM
3
4
571975c0
GM
5NOTES ON COPYRIGHTS AND LICENSES
6
7Some terminology:
8
9A "copyright notice" consists of one or a few lines of this format:
10"Copyright (C) 2006, 2007 Free Software Foundation, Inc."
11
12A "license notice" is a statement of permissions, and is usually much
13longer, eg the text "GNU Emacs is free software...".
14
15
71428fe7
GM
16Summary for the impatient:
17
181. Don't add a file to Emacs written by someone other than yourself
19without thinking about the legal aspect (make sure they have an
b83813ec
GM
20assignment, adjust the copyright statements in the file). NB the
21ChangeLog entry should be in the name of the author of the code, not
22the person who installs it.
71428fe7
GM
23
242. With images, add the legal info to a README file in the directory
25containing the image.
26
273. If you add a lot of text to a previously trivial file that had no
28legal notices, consider if you should add a copyright statement.
29
f199f76c
GM
304. Please don't just add an FSF copyright without checking that is the
31right thing to do.
32
71428fe7 33
571975c0
GM
34Every non-trivial file distributed through the Emacs CVS should be
35self-explanatory in terms of copyright and license. This includes
36files that are not distributed in Emacs releases (for example, the
37admin/ directory), because the whole Emacs CVS is publicly
38available.
39
40The definition of triviality is a little vague, but a rule of thumb is
41that any file with less than 15 lines of actual content is trivial. If
42a file is auto-generated (eg ldefs-boot.el) from another one in the
43CVS, then it does not really matter about adding a copyright statement
44to the generated file.
45
d502a3da
GM
46Legal advice says that we could, if we wished, put a license notice
47even in trivial files, because copyright law in general looks at the
48overall work as a whole. It is not _necessary_ to do so, and rms
49prefers that we do not. This means one needs to take care that trivial
50files do not grow and become non-trivial without having a license
51added. NB consequently, if you add a lot of text to a small file,
52consider whether your changes have made the file worthy of a copyright
53notice, and if so, please add one.
c320d3b8 54
9bfceb2b
GM
55It can be helpful to put a reminder comment at the start of a trivial
56file, eg: "add a license notice if this grows to > 10 lines of code".
57
571975c0
GM
58The years in the copyright notice should be updated every year (see
59file "years" in this directory). The PS versions of refcards etc
60should display copyright notices (an exception to the rule about
61"generated" files), but these can just display the latest year. The
62full list of years should be kept in comments in the source file. If
63these are distributed in CVS, check in a regenerated version when the
64tex files are updated.
65
66Copyright changes should be propagated to any associated repositories
67(eg Gnus, MH-E), but I think in every case this happens automatically
68(?).
69
e3e14128
GM
70All README (and other such text files) that are non-trivial should
71contain copyright statements and GPL license notices, exactly as .el
bf5e9393 72files do (see e.g. README in the top-level directory). Before 2007,
e3e14128
GM
73we used a simple, short statement permitting copying and modification
74provided legal notices were retained. In Feb 2007 we switched to the
bf5e9393
GM
75standard GPL text, on legal advice. Some older text files in etc/
76should, however, keep their current licenses (see below for list).
571975c0 77
e3e14128
GM
78For image files, the copyright and license details should be recorded
79in a README file in each directory with images. (Legal advice says
80that we need not add notices to each image file individually, if they
5aa27cc9
GM
81allow for that.). It is recommended to use the word "convert" to
82describe the automatic process of changing an image from one format to
83another (http://lists.gnu.org/archive/html/emacs-devel/2007-02/msg00618.html).
84
571975c0
GM
85
86When installing a file with an "unusual" license (after checking first
87it is ok), put a copy of the copyright and license in the file (if
88possible. It's ok if this makes the file incompatible with its
89original format, if it can still be used by Emacs), or in a README
90file in the relevant directory.
91
92The vast majority of files are copyright FSF and distributed under the
93GPL. A few files (mainly related to language and charset support) are
94copyright AIST alone, or both AIST and FSF. (Contact Kenichi Handa
95with questions about legal issues in such files.) In all these cases,
96the copyright years in each file should be updated each year.
97
98There are some exceptions to the points in the previous paragraph, and
99these are listed below for reference, together with any files where
100the copyright needs to be updated in "unusual" ways.
101
102If you find any other such cases, please consult to check they are ok,
103and note them in this file. This includes missing copyright notices,
104and "odd" copyright holders. In most cases, individual authors should
105not appear in copyright statements. Either the copyright has been
106assigned (check copyright.list) to the FSF (in which case the original
107author should be removed and the year(s) transferred to the FSF); or
108else it is possible the file should not be in Emacs at all (please
109report!).
110
c14dd816
GM
111Note that it seems painfully clear that one cannot rely on CVS logs,
112or even ChangeLogs, for older changes. People often installed changes
113from others, without recording the true authorship.
114
571975c0
GM
115[For reference, most of these points were established via email with
116rms, 2007/1, "Copyright years".]
117
118
b05db979
GM
119lib-src/etags.c # print_version
120lib-src/rcs2log # Copyright
121lisp/calc/calc-help.el # calc-full-help
122lisp/startup.el # fancy-splash-tail
123mac/Emacs.app/Contents/Resources/English.lproj/InfoPlist.strings
124mac/src/Emacs.r # resource 'vers'
125src/emacs.c
126 - remember to change the latest copyright year in the --version output.
127 [Post-release, will automate this like set-version does for version.]
128
571975c0
GM
129<top-level>/install-sh
130lispintro/install-sh
131 - this file is copyright MIT, which is OK. Leave the copyright alone.
132
c320d3b8 133src/m/news-r6.h
5aa27cc9
GM
134 public domain, leave alone.
135
571975c0
GM
136etc/edt-user.doc
137 - update BOTH notices in this file
138
d502a3da
GM
139etc/emacs.csh
140 - keep simple license for this simple file
141
fb89a85b
GM
142etc/future-bug
143 - doesn't need a humourless disclaimer, because Karl Fogel says we
144 can consider it part of Emacs, and he has a blanker disclaimer for
145 Emacs changes. (email to rgm "[Emacs-commit] emacs/etc future-bug",
146 2007028)
147
5aa27cc9 148etc/letter.pbm,letter.xpm
c14dd816 149 - trivial, no notice needed.
5aa27cc9
GM
150<http://lists.gnu.org/archive/html/emacs-devel/2007-02/msg00324.html>
151
c320d3b8
GM
152etc/FTP, ORDERS
153 - trivial (at time of writing), no license needed
154
5aa27cc9
GM
155etc/GNU, INTERVIEW, LINUX-GNU, MOTIVATION, SERVICE, THE-GNU-PROJECT,
156WHY-FREE
157 rms: "These are statements of opinion or testimony. Their licenses
158 should permit verbatim copying only. Please don't change the
159 licenses that they have. They are distributed with Emacs but they
160 are not part of Emacs."
161
162etc/MAILINGLISTS
163 rms: simple license is fine for this file
c14dd816 164
d4c2a0cc
GM
165leim/CXTERM-DIC/4Corner.tit, ARRAY30.tit, CCDOSPY.tit, ECDICT.tit,
166ETZY.tit, PY-b5.tit, Punct-b5.tit, Punct.tit, QJ-b5.tit, QJ.tit,
167SW.tit, TONEPY.tit, ZOZY.tit
571975c0
GM
168 - leave the copyrights alone.
169
170leim/MISC-DIC/CTLau-b5.html, CTLau.html, cangjie-table.b5, cangjie-table.cns,
d4c2a0cc 171pinyin.map, ziranma.cin
571975c0 172 - leave the copyright alone.
fb89a85b
GM
173Note that pinyin.map, ziranma.cin (and hence the generated
174leim/quail/PY.el, ZIRANMA.el) are under GPLv1 or later.
571975c0
GM
175
176leim/SKK-DIC/SKK-JISYO.L
177ja-dic/ja-dic.el
178 (the latter is auto-generated from the former). Leave the copyright alone.
179
180lib-src/etags.c
f199f76c
GM
181 Copyright information is duplicated in etc/ETAGS.README. Update that
182 file too.
183
184 Until 2007 etags.c was described as being copyright FSF and Ken Arnold.
185 After some investigation in Feb 2007, then to the best of our
186 knowledge we believe that the original 1984 Emacs version was based
187 on the version in BSD4.2. See for example this 1985 post from Ken Arnold:
188 <http://groups.google.com/group/mod.sources/browse_thread/thread/ffe5c55845a640a9>
189 I have received enough requests for the current source to ctags
190 to post it. Here is the latest version (what will go out with
191 4.3, modulo any bugs fixed during the beta period). It is the
192 4.2 ctags with recognition of yacc and lex tags added.
193
194 See also a 1984 version of ctags (no copyright) posted to net.sources:
195 <http://groups.google.com/group/net.sources/msg/a21b6c21be12a98d>
196 Version of etags.c in emacs-16.56 duplicates comment typos.
197
198 Accordingly, in Feb 2007 we added a 1984 copyright for the
199 University of California and a revised BSD license. The terms of
200 this require that the full license details be available in binary
201 distributions - hence the file etc/ETAGS.README.
571975c0
GM
202
203lib-src/getopt1.c, getopt_int.h
204 - these are from the GNU C library. Leave the copyrights alone.
205
1fbfb0b5
GM
206lisp/play/tetris.el
207 - no special rules about the copyright. We note here that we believe
208 (2007/1) there is no problem with our use of the name "tetris" or
209 the concept.
210 rms: "My understanding is that game rules as such are not copyrightable."
211 <http://lists.gnu.org/archive/html/emacs-devel/2007-01/msg00960.html>
212
571975c0
GM
213lispref/doclicense.texi
214man/doclicense.texi
215 - leave the copyright alone in this imported file.
216
217lisp/net/tramp.el
218 - there are also copyrights in the body of the file. Update these too.
219
f199f76c 220
59098cd6
GM
221lwlib/
222rms (2007/02/17): "lwlib is not assigned to the FSF; we don't consider
223it part of Emacs. [...] Therefore non-FSF copyrights are ok in lwlib."
224
f199f76c
GM
225FSF copyrights should only appear in files which have undergone
226non-trivial cumulative changes from the original versions in the Lucid
227Widget Library. NB this means that if you make non-trivial changes to
228a file with no FSF copyright, you should add one. Also, if changes are
229reverted to the extent that a file becomes basically the same as the
230original version, the FSF copyright should be removed.
231
232In my (rgm) opinion, as of Feb 2007, all the non-trivial files differ
233significantly from the original versions, with the exception of
234lwlib-Xm.h. Most of the changes that were made to this file have
235subsequently been reverted. Therefore I removed the FSF copyright from
236this file (which is arguably too trivial to merit a notice anyway). I
237added FSF copyright to the following files which did not have them
238already: Makefile.in, lwlib-Xaw.c, lwlib-int.h (borderline),
239lwlib-utils.c (borderline), lwlib.c, lwlib.h.
240
241Copyright years before the advent of public CVS in 2001 were those
242when I judged (from the CVS logs) that non-trivial amounts of change
243had taken place. I also adjusted the existing FSF years in xlwmenu.c,
244xlwmenu.h, and xlwmenuP.h on the same basis.
245
246Note that until Feb 2007, the following files in lwlib were lacking
247notices: lwlib-int.h, lwlib.h, lwlib-Xaw.h, lwlib-Xlw.h, lwlib-utils.h
248
249The following files did not list a Lucid copyright: xlwmenu.h,
250xlwmenuP.h.
251
252To the best of our knowledge, all the code files in lwlib were
253originally part of the Lucid Widget Library, even if they did not say
254so explicitly. For example, they were all present in Lucid Emacs 19.1
255in 1992. The exceptions are the two Xaw files, which did not appear
256till Lucid Emacs 19.9 in 1994. The file lwlib-Xaw.h is too trivial to
257merit a copyright notice, but would presumably have the same one as
258lwlib-Xaw.c. We have been unable to find a true standalone version of
259LWL, if there was such a thing, to check definitively.
260
261To clarify the situation, in Feb 2007 we added Lucid copyrights and
262GPL notices to those files lacking either that were non-trivial,
263namely: lwlib-int.h, lwlib.h, xlwmenu.h, xlwmenuP.h. This represents
264our best understanding of the legal status of these files. We also
265clarified the notices in Makefile.in, which was originally the
266Makefile auto-generated from Lucid's Imakefile.
267
268As of Feb 2007, the following files are considered too trivial for
269notices: lwlib-Xaw.h, lwlib-Xlw.h, lwlib-utils.h.
270
271
571975c0
GM
272msdos/is_exec.c, sigaction.c
273 - these files are copyright DJ Delorie. Leave the copyrights alone.
e496f32f
GM
274 Leave the Eli Zaretskii copyright in is_exec.c alone. See the
275 msdos/README file for the legal history of these files.
571975c0 276
f199f76c
GM
277
278oldXMenu/
279 Keep the "copyright.h" method used by X11, rather than moving the
280 licenses into the files. Note that the original X10.h did not use
281 copyright.h, but had an explicit notice, which we retain.
282
283If you make non-trivial changes to a file which does not have an FSF
284notice, add one and a GPL notice (as per Activate.c). If changes to a
285file are reverted such that it becomes essentially the same as the
286original X11 version, remove the FSF notice and GPL.
287
288Only the files which differ significantly from the original X11
289versions should have FSF copyright and GPL notices. At time of writing
290(Feb 2007), this is: Activate.c, Create.c, Internal.c. I (rgm)
291established this by diff'ing the current files against those in X11R1,
292and when I found significant differences looking in the ChangeLog for
293the years they originated (the CVS logs are truncated before 1999). I
294therefore removed the FSF notices (added in 200x) from the other
295files. There are some borderline cases IMO: AddSel.c, InsSel.c,
296XMakeAssoc.c, XMenu.h. For these I erred on the side of NOT adding FSF
297notices.
298
299With regards to whether the files we have changed should have GPL
300added or not, rms says (2007-02-25, "oldXmenu issues"):
301
302 It does not make much difference, because oldXmenu is obsolete
303 except for use in Emacs (and it is not normally used in Emacs any
304 more either).
305
306 So, to make things simple, please put our changes under the GPL.
307
308insque.c had no copyright notice until 2005. The version of insque.c
309added to Emacs 1992-01-27 is essentially the same as insremque.c added
310to glic three days later by Roland McGrath, with an FSF copyright and
311GPL, but no ChangeLog entry:
312<http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/libc/misc/insremque.c?\
313rev=1.1&cvsroot=glibc>
314To the best of his recollection, McGrath (who has a copyright
315assignment) was the author of this file (email from roland at frob.com
316to rms, 2007-02-23, "Where did insque.c come from?"). The FSF
317copyright and GPL in this file are therefore correct as far as we
318understand it.
319
320Imakefile had no legal info in Feb 2007, but was obviously based on
321the X11 version (which also had no explicit legal info). As it was
322unused, I removed it. It would have the same MIT copyright as
323Makefile.in does now.
324
325
571975c0 326src/gmalloc.c
d4c2a0cc
GM
327 - contains numerous copyrights from the GNU C library. Leave them alone.
328
448adfb9 329src/acldef.h, chpdef.h, ndir.h
f5f4e20d
GM
330 - see comments below. These files are OK to be released with Emacs
331 22, but we may want to revisit them afterwards.
332
42285fc4 333[src/unexhp9k800.c - removed 2007/1/27]
d4c2a0cc
GM
334[src/m/sr2k.h - removed 2007/1/27]
335 - First file removed due to legal uncertainties; second file removed
336 due to dependency on first. Note that src/m/hp800.h is still needed on
337 hp800 arch.
d881944f
GM
338 NB we would like to re-add this file if we can. Please let us know
339 if you can clarify its legal status.
571975c0 340
571975c0 341
c320d3b8
GM
342** Some notes on resolved issues, for historical information only
343
bf5e9393
GM
344lisp/term/README
345 - had no copyright notice till Feb 2007. ChangeLog.3 suggests it was
346 written by Eric Raymond. When asked by rms on 14 Feb 2007 he said:
347
348 I don't remember writing it, but it reads like my prose and I believe
349 I wrote the feature(s) it's describing. So I would have been the
350 likeliest person to write it.
351
352 Odds are that I did, but I'm not certain.
353
354 Accordingly, FSF copyright was added.
355
c320d3b8 356
1354eff6
GM
357** Issues that are "fixed" for the release of Emacs 22, but we may
358 wish to revisit later in more detail
359
360
474d2d60
GM
361admin/check-doc-strings
362 File says it's in the public domain, but that might not make it so.
363
364
b83813ec 365etc/e/eterm-color.ti
1354eff6
GM
366src/acldef.h, chpdef.h, ndir.h
367 On legal advice from Matt Norwood, the following comment was added
368 to these files in Feb 2007:
369
370 The code here is forced by the interface, and is not subject to
371 copyright, constituting the only possible expression of the
372 algorithm in this format.
373
374 With the addition of this notice, these files are OK for the
375 upcoming Emacs-22 release. Post-release, we can revisit this issue
376 and possibly add a list of all authors who have changed these files.
377 (details in email from Matt Norwood to rms, 2007/02/03).
378
379
380src/m/mips4.h, news-risc.h, pmax.h
381src/s/aix3-2.h, bsd386.h, hpux8.h, hpux9.h, irix4-0.h, irix5-0.h,
382isc2-2.h, netbsd.h, osf1.h, sol2-3.h, sunos4-0.h, usg5-4-2.h
383 - all these (not obviously trivial) files were missing copyrights
384 till Feb 2007, when FSF copyright was added. Matt Norwood advised:
385
386 For now, I think the best policy is to assume that we do have
387 assignments from the authors (I recall many of these header files
388 as having been originally written by rms), and to attach an FSF
389 copyright with GPL notice. We can amend this if and when we
390 complete the code audit. Any additions to these files by
391 non-assigned authors are arguably "de minimis" contributions to
392 Emacs: small changes or suggestions to a work that are subsumed in
393 the main authors' copyright in the entire work.
394
395Here is my (rgm) take on the details of the above files:
396
397mips4.h
398 might be trivial? started trivial, been added to in tiny changes by
399 those with FSF assignment, often result of email suggestions by others.
400
401news-risc.h
402 started trivial. Grown by tiny additions, plus chunk
403 from mips.h, which was and is Copyright FSF
404
405pmax.h
406 started trivial. grown in tiny changes, except for maybe Jim Wilson's
407 comment.
408
409? irix4-0.h
410 I would say started non-trivial (1992, rms). only tiny changes since
411 installed.
412
413? irix5-0.h
414 I would say started non-trivial (1993, jimb, heavily based
415 on irix4-0.h). A few borderline non-tiny changes since.
416
417? isc2-2.h
418 started trivial. 2 non-tiny change, in 1993. looks to
419 be made up of several small tweaks from various sources. maybe
420 non-tiny total changes from Karl Berry (no emacs assignment).
421
422osf1.h
423 started trivial. grown in tiny changes (one borderline tiny change
424 by fx in 2000, but most code was later removed). non-tiny addition
425 in 2002 from m/alpha.h, but that was and is copyright FSF.
426
427usg5-4-2.h
428 started non-trivial, but was heavily based on usg5-4.h, which was and is
429 copyright FSF. only tiny changes since installed.
430
431sol2-3.h
432 started trivial. only non-tiny change (1994) incorporated code from
433 usg5-4.h, which was and is copyright FSF.
434
435aix3-2.h, bsd386.h, hpux8.h, hpux9.h, netbsd.h, sunos4-0.h
436 started trivial, grown in tiny changes.
437
d502a3da
GM
438netbsd.h:
439Roland McGrath said to rms (2007/02/17): "I don't really remember
440anything about it. If I put it in without other comment, then probably
441I wrote it myself."
442
1354eff6 443
6ce26337
GM
444Someone might want to tweak the copyright years (for dates before
4452001) that I used in all these files.
446
447Note: erring on the side of caution, I also added notices to some
448files I thought might be considered non-trivial (if one includes
449comment) in s/:
450 aix4-1.h hiuxmpp.h hiuxwe2.h hpux10.h irix6-0.h irix6-5.h isc3-0.h
451 ptx4.h sol2.h sunos4-0.h
452
453(everything with > 30 non-blank lines, which at least is _some_ kind of
454system)
455
456
f5f4e20d
GM
457*** These are copyright issues that need not be fixed until after
458 Emacs 22 is released (though if they can be fixed before, that is
459 obviously good):
05630abe 460
f199f76c
GM
461Maybe some relevant comments here?
462<http://groups.google.com/group/linux.debian.legal/browse_thread/thread/123547ea95437a1f>
463
05630abe 464
d4c2a0cc
GM
465Is it OK to just `cvs remove' a file for legal reasons, or is
466something more drastic needed? A removed file is still available from
f5f4e20d
GM
467CVS, if suitable options are applied. (This CVS issue obviously does
468not affect a release).
42285fc4 469 rms: will ask lawyer
d4c2a0cc
GM
470
471
5aa27cc9
GM
472Make sure that all files with non-standard copyrights or licenses are
473noted in this file.
474
475
c320d3b8
GM
476etc/BABYL
477 File says it was written in 1983 by Eugene Ciccarelli, who has no
478 assignment. RMS: "The lawyer said we can keep BABYL."
479
480
0971f887
GM
481REMOVED etc/gnu.xpm, nt/icons/emacs21.ico, nt/icons/sink.ico
482 - Restore if find legal info. emacs21.ico is not due to Davenport.
474d2d60
GM
483 Voelker could not immediately recall anything, but will check and
484 let us know if he finds anything.
485
0971f887 486
c14dd816
GM
487etc/images
488 Image files from GTK, Gnome are under GPLv2 (no "or later"?). RMS will
489 contact image authors in regards to future switch to v3.
490
f5f4e20d 491
f5f4e20d
GM
492REMOVED src/unexhp9k800.c
493 - we would like to re-add this file if possible. Please let us know
494 if you can clarify its legal status.
495 http://lists.gnu.org/archive/html/emacs-devel/2007-02/msg00138.html
496
f5f4e20d
GM
497
498*** These are copyright issues still to be addressed:
499
c320d3b8
GM
500NB apart from switching the TUTORIALs to GPL, I think there is nothing
501here that anyone can work on without further input from rms.
502
f5f4e20d 503
5aa27cc9
GM
504etc/gnus-logo.eps, gnus-booklet.ps, gnus-refcard.ps
505 just to be safe, papers are on the way for the "Gnus logo", even
506 though it is very similar to the already-assigned "Emacs logo".
507
508
571975c0 509etc/ms-kermit - no copyright, but ms-7bkermit has one
571975c0 510
571975c0 511
c14693e3
GM
512etc/TUTORIAL* (translations)
513 switch to GPL (see english TUTORIAL)
514 rms: "We can leave the TUTORIAL translations alone until their
515 maintainers update them."
0971f887 516 Can adapt short license text from end of GPL translations at:
dafb4070 517 http://www.gnu.org/licenses/translations.html
0971f887
GM
518 Only a few sentences around the license notice need changing from
519 previous version.
520Done: TUTORIAL.eo
5aa27cc9 521
571975c0 522
fb89a85b 523lwlib/*
7073bb78 524 should it be under GPLv1 or later, or v2 or later, or some mixture?
fb89a85b
GM
525
526
e3e14128
GM
527\f
528This file is part of GNU Emacs.
529
530GNU Emacs is free software; you can redistribute it and/or modify
531it under the terms of the GNU General Public License as published by
532the Free Software Foundation; either version 2, or (at your option)
533any later version.
534
535GNU Emacs is distributed in the hope that it will be useful,
536but WITHOUT ANY WARRANTY; without even the implied warranty of
537MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
538GNU General Public License for more details.
539
540You should have received a copy of the GNU General Public License
541along with GNU Emacs; see the file COPYING. If not, write to the
542Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
543Boston, MA 02110-1301, USA.