This page explains how to create Debian packages for the FPC compiler itself.
- for more general information about FPC release, see Release engineering page.
- for information on creating Debian packages for any application, see Debian package structure.
An editor has declared this article to be a stub, meaning that it needs more information. Can you help out and add some? If you have some useful information, you can help the Free Pascal Wiki by clicking on the edit box on the left and expanding this page.
Getting sources
editFPC sources are currently being managed using git. To export sources without the .git metadata library do:
git archive fixes_3_2 | tar -x -C /somewhere/else
If you don't have a suitable version of tar, or unreliable piping, you can create a ZIP using
git archive --format zip --output /full/path fixes_3_2
Repeat this for the various repositories (fpcbuild, source and documentation).
Then, while extracting the zips
# extract the fpcbuild repository first
# put the contents of the source repository in the fpcbuild/fpcsrc directory
# put the contents of the documentation repository in the fpcbuild/fpcdocs directory
Building packages
editThe top make file of the fpcbuild-x.y.z branch supports the deb target which is intended to build Debian packages from source.
make deb
However, users may want to use their own packeging rules file
make deb DEBDIR=<some path to debian dir>
Or use a particular libgdb version
make deb GDBLIBDIR=<path/${OS_TARGET}/${CPU_TARGET}>
How it works
editTo be continued...