Debian Packaging: what changed
Revision 4 to 5. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | This page explains how to create Debian packages for the [[FPC]] compiler itself. | |
| 2 | 2 | ||
| 3 | 3 | - for more general information about [[FPC]] release, see [[Release engineering]] page. | |
| 4 | 4 | - for information on creating Debian packages for any application, see [[Debian package structure]]. | |
| 5 | 5 | ||
| 6 | 6 | ### Getting sources | |
| 7 | 7 | ||
| 8 | 8 | FPC sources are managed using SVN. The most convenient way to get sources in order to build a release is using the svn export command : | |
| 9 | 9 | ||
| 10 | - | ||
| 10 | + | ```text | |
| 11 | + | svn export http://svn.freepascal.org/svn/fpcbuild/tags/release_x_y_z fpcbuild-x.y.z | |
| 12 | + | ``` | |
| 11 | 13 | ||
| 12 | 14 | ### Building packages | |
| 13 | 15 | ||
| 14 | 16 | The top make file of the fpcbuild-x.y.z branch supports the deb target which is intended to build Debian packages from source. | |
| 15 | 17 | ||
| 16 | - | ||
| 18 | + | ```text | |
| 19 | + | make deb | |
| 20 | + | ``` | |
| 17 | 21 | ||
| 18 | 22 | However, users may want to use their own packeging rules file | |
| 19 | 23 | ||
| 20 | - | ||
| 24 | + | ```text | |
| 25 | + | make deb DEBDIR=<some path to debian dir> | |
| 26 | + | ``` | |
| 21 | 27 | ||
| 22 | 28 | Or use a particular libgdb version | |
| 23 | 29 | ||
| 24 | - | ||
| 30 | + | ```text | |
| 31 | + | make deb GDBLIBDIR=<path/${OS_TARGET}/${CPU_TARGET}> | |
| 32 | + | ``` | |
| 25 | 33 | ||
| 26 | 34 | ### How it works | |
| 27 | 35 | ||
| 28 | 36 | **To be continued...** | |
| 29 | 37 | ||
| 30 | 38 | --- | |
| 31 | 39 | *From the Free Pascal wiki, page "Debian Packaging", as it stood on 2020-08-26 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 32 | 40 | Category: FPC | |
| 33 | 41 | Category: FPC development | |
| 34 | 42 | Category: Linux | |
| 35 | 43 | Category: Release engineering |
