Debian Packaging

This page explains how to create Debian packages for the FPC compiler itself.

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

edit

FPC 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

edit

The 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

edit

To be continued...