Difference between revisions of "Debian Packaging"

From Free Pascal wiki
Jump to navigationJump to search
Line 13: Line 13:
 
  make deb DEBDIR=<some path to debian dir>
 
  make deb DEBDIR=<some path to debian dir>
 
Or use a particular libgdb version
 
Or use a particular libgdb version
  make deb GDBLIBDIR=<some path to libgdb dir>
+
  make deb GDBLIBDIR=<path/${OS_TARGET}/${CPU_TARGET}>
  
 
=== How it works ===
 
=== How it works ===

Revision as of 22:05, 21 May 2008

Debian Packaging

This page aims to explain how to create debian packages for FPC.

Getting sources

FPC sources are managed using SVN. The most covignent was to get sources in order to build a release is using the svn export command :

svn export http://svn.freepascal.org/svn/fpcbuild/tags/release_x_y_z fpcbuild-x.y.z

Building packages

For general knowledge about building FPC release packages, plese refer to Release engineering page.

The top make file of the fpcbuild-x.y.z supports the deb target which is intended to build Debian packages from sources.

make deb

However, user may want to use his 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