*** empty log message ***
[bpt/guile.git] / HACKING
1 Here are some guidelines for working on the Guile source tree at GNU.
2
3 - We use CVS to manage the Guile sources. The repository lives on
4 totoro.red-bean.com, in /u/src/master; you will need an account on
5 that machine to access the repository. I recommend using the cvs
6 pserver protocol; thus, you should use the following as your CVS root:
7
8 :pserver:USER@guile-cvs.red-bean.com:/u/src/master
9
10 Either set your CVSROOT environment variable to that, or give it as
11 the value of the global -d option to CVS when you check out a working
12 directory.
13
14 If you want to use SSH for security, set your CVS_RSH environment
15 variable to ssh, and then use the following as your CVS root:
16
17 :ext:guile-cvs.red-bean.com:/u/src/master
18
19 The Guile sources live in several modules:
20
21 - guile-core --- the interpreter, QuickThreads, and ice-9
22 - guile-doc --- documentation in progress. When complete, this will
23 be incorporated into guile-core.
24 - guile-tcltk --- the Guile/Tk interface
25 - guile-tk --- the new Guile/Tk interface, based on STk's modified Tk
26 - guile-rgx-ctax --- the Guile/Rx interface, and the ctax implementation
27 - guile-scsh --- the port of SCSH to guile, talk to Gary Houston
28 - guile-comp --- the Hobbit compiler (talk to mdj)
29 - guile-emacs --- Guile/Emacs interface (talk to mdj)
30 - guile-oops --- The Guile Object-Oriented Programming System (talk to mdj)
31 - guile-www --- A Guile module for making HTTP requests.
32
33 - As for any part of Project GNU, changes to Guile should follow the
34 GNU coding standards. The standards are available via anonymous FTP
35 from prep.ai.mit.edu, as /pub/gnu/standards/standards.texi and
36 make-stds.texi.
37
38 - Check Makefile.in and configure files into CVS, as well as any files
39 used to create them (Makefile.am, configure.in); don't check in
40 Makefiles or header files generated by configuration scripts. The
41 general rule is that you should be able to check out a working
42 directory of Guile from CVS, and then type "configure" and "make".
43
44 - Make sure your changes compile and work, at least on your own
45 machine, before checking them into the main branch of the Guile
46 repository. If you really need to check in untested changes, make a
47 branch.
48
49 - When you make a user-visible change (i.e. one that should be
50 documented, and appear in NEWS, put an asterisk in column zero of the
51 start of the ChangeLog entry, like so:
52
53 Sat Aug 3 01:27:14 1996 Gary Houston <ghouston@actrix.gen.nz>
54
55 * * fports.c (scm_open_file): don't return #f, throw error.
56
57 When you've written a NEWS entry and updated the documentation, go
58 ahead and remove the asterisk. I will use the asterisks to find and
59 document changes that haven't been dealt with before a release.
60
61 - Include each log entry in both the ChangeLog and in the CVS logs.
62 If you're using Emacs, the pcl-cvs interface to CVS has features to
63 make this easier; it checks the ChangeLog, and generates good default
64 CVS log entries from that.
65
66 - There's no need to keep a change log for documentation files. This
67 is because documentation is not susceptible to bugs that are hard to
68 fix. Documentation does not consist of parts that must interact in a
69 precisely engineered fashion; to correct an error, you need not know
70 the history of the erroneous passage. (This is copied from the GNU
71 coding standards.)
72
73 - If you add or remove files, don't forget to update the appropriate
74 part of the relevant Makefile.am files, and regenerate the
75 Makefile.in. If you forget this, the snapshot and distribution
76 processes will not work.
77
78 - Make sure you have papers from people before integrating their
79 changes or contributions. This is very frustrating, but very
80 important to do right. From maintain.texi, "Information for
81 Maintainers of GNU Software":
82
83 When incorporating changes from other people, make sure to follow the
84 correct procedures. Doing this ensures that the FSF has the legal
85 right to distribute and defend GNU software.
86
87 For the sake of registering the copyright on later versions ofthe
88 software you need to keep track of each person who makes significant
89 changes. A change of ten lines or so, or a few such changes, in a
90 large program is not significant.
91
92 *Before* incorporating significant changes, make sure that the person
93 has signed copyright papers, and that the Free Software Foundation has
94 received them.
95
96 If you receive contributions you want to use from someone, let me know
97 and I'll take care of the administrivia. Put the contributions aside
98 until we have the necessary papers.
99
100 - When you make substantial changes to a file, add the current year to
101 the list of years in the copyright notice at the top of the file.
102
103 - [From Mikael Djurfeldt] When working on the Guile internals, it is
104 quite often practical to implement a scheme-level procedure which
105 helps you examine the feature you're working on.
106
107 Examples of such procedures are: pt-size, debug-hand and
108 current-pstate.
109
110 I've now put #ifdef GUILE_DEBUG around all such procedures, so that
111 they are not compiled into the "normal" Guile library. Please do the
112 same when you add new procedures/C functions for debugging purpose.
113
114 You can define the GUILE_DEBUG flag by passing --enable-guile-debug to
115 the configure script.
116
117
118 Jim Blandy