| 1 |
All you need to know when hacking (modifying) GNU clisp or when building |
| 2 |
it off the git repository. |
| 3 |
|
| 4 |
|
| 5 |
Requirements |
| 6 |
============ |
| 7 |
|
| 8 |
You will need reasonably recent versions of the build tools: |
| 9 |
|
| 10 |
* A C compiler; for the 'debug_gcsafety' build also a C++ compiler. |
| 11 |
Such as GNU GCC. |
| 12 |
+ Homepage: |
| 13 |
http://gcc.gnu.org/ |
| 14 |
|
| 15 |
* GNU automake |
| 16 |
+ Homepage: |
| 17 |
http://www.gnu.org/software/automake/ |
| 18 |
|
| 19 |
* GNU autoconf |
| 20 |
+ Homepage: |
| 21 |
http://www.gnu.org/software/autoconf/ |
| 22 |
|
| 23 |
* GNU m4 |
| 24 |
+ Homepage: |
| 25 |
http://www.gnu.org/software/m4/ |
| 26 |
|
| 27 |
* Either an internet connection or a recent copy of GNU gnulib. |
| 28 |
+ Homepage: |
| 29 |
http://www.gnu.org/software/gnulib/ |
| 30 |
|
| 31 |
* GNU tar (for creating distributable tarballs) |
| 32 |
+ Homepage: |
| 33 |
http://www.gnu.org/software/tar/ |
| 34 |
|
| 35 |
* GNU Wget |
| 36 |
+ Homepage: |
| 37 |
https://www.gnu.org/software/wget/ |
| 38 |
|
| 39 |
And, of course, the packages listed in the DEPENDENCIES file. |
| 40 |
|
| 41 |
|
| 42 |
Building off the git repository |
| 43 |
=============================== |
| 44 |
|
| 45 |
Checkout for users of GNU clisp |
| 46 |
------------------------------- |
| 47 |
|
| 48 |
If you don't intend to contribute to GNU clisp, only to grab the source and |
| 49 |
build it, start with |
| 50 |
$ git clone https://gitlab.com/gnu-clisp/clisp.git |
| 51 |
|
| 52 |
Checkout for contributors of GNU clisp |
| 53 |
-------------------------------------- |
| 54 |
|
| 55 |
If you intend to contribute to GNU clisp, you need to (once) |
| 56 |
1. create a user account on gitlab.com, |
| 57 |
2. upload an SSH key of yours (see <https://gitlab.com/help/ssh/README>). |
| 58 |
|
| 59 |
Then start with |
| 60 |
$ git clone [email protected]:gnu-clisp/clisp.git |
| 61 |
|
| 62 |
I also recommend |
| 63 |
$ git config user.name ... |
| 64 |
$ git config user.email ... |
| 65 |
(see <https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup>) |
| 66 |
and, since we don't want merge commits on the 'master' branch: |
| 67 |
$ git config pull.rebase true |
| 68 |
|
| 69 |
For rebasing the ChangeLog file automatically, I invite you to install |
| 70 |
git-merge-changelog |
| 71 |
<http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/git-merge-changelog.c> |
| 72 |
and configure it by adding lines such as these to clisp/.git/config: |
| 73 |
[merge "merge-changelog"] |
| 74 |
name = GNU-style ChangeLog merge driver |
| 75 |
driver = /home/me/bin/git-merge-changelog %O %A %B |
| 76 |
|
| 77 |
After the checkout |
| 78 |
------------------ |
| 79 |
|
| 80 |
The repository contains a pre-built 'configure' script, therefore |
| 81 |
you can proceed with the usual "./configure" immediately. |
| 82 |
|
| 83 |
|
| 84 |
Submitting patches |
| 85 |
================== |
| 86 |
|
| 87 |
Patches should be submitted at https://sourceforge.net/p/clisp/patches/ . |
| 88 |
|
| 89 |
To produce a sequence of patch files, you can use a shell command like |
| 90 |
$ git format-patch -3 |
| 91 |
|
| 92 |
For the style of a ChangeLog entry, see the "Change Logs" section of |
| 93 |
the GNU coding standards: |
| 94 |
|
| 95 |
http://www.gnu.org/prep/standards/html_node/Change-Logs.html |