Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-08

Making a debian package from FPC

6 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik

Hi,

I tried to do the following:

make deb

But the Makefile does not have any rules for a "deb" section. I looked for some documentation on the subject but I could not find any.

Can someone please explain to me how can I make deb packages using the make script ?

Thanks,

Ido

Reply by email

Daniël Mantione
to ik

Op Wed, 30 Aug 2006, schreef ik:

Show quoted text 11 lines
Hi, I tried to do the following: make deb But the Makefile does not have any rules for a "deb" section. I looked for some documentation on the subject but I could not find any. Can someone please explain to me how can I make deb packages using the make script ?

You need to check out the fpcbuild repository, not the fpc repository. FPCbuild contains the infrastructure to build deb files.

Daniël

Reply by email

ik
to Daniël Mantione

Thanks.

I do have one problem when I try to compile it though: /bin/cp: cannot stat `fpcsrc/libgdb': No such file or directory

I'm using Linux ubuntu 64bit ...

I can't find any libgdb, so I guess it's a third party library ?

Ido

Daniël Mantione wrote 27 lines
Op Wed, 30 Aug 2006, schreef ik: > Hi, > > I tried to do the following: > > make deb > > But the Makefile does not have any rules for a "deb" section. I looked > for some documentation on the subject but I could not find any. > > Can someone please explain to me how can I make deb packages using the > make script ? You need to check out the fpcbuild repository, not the fpc repository. FPCbuild contains the infrastructure to build deb files. Daniël _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

ik
to Daniël Mantione

Thanks again :)

I compiled gdb from sources, and copied the libgdb.a to the fpcsrc and symlink it as libgdb and it worked.

(Just to make it index for others to have that using search engines :))

Now another question is, can I cross compile to make an i386 deb packages as well ?

Ido

Daniël Mantione wrote 24 lines
Op Thu, 31 Aug 2006, schreef ik: > Thanks. > I do have one problem when I try to compile it though: > /bin/cp: cannot stat `fpcsrc/libgdb': No such file or directory > > I'm using Linux ubuntu 64bit ... > > I can't find any libgdb, so I guess it's a third party library ? Download it from: ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb See also http://www.freepascal.org/wiki/index.php/Release_engineering Daniël _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Daniël Mantione
to ik

Op Thu, 31 Aug 2006, schreef ik:

Show quoted text 8 lines
Thanks again :) I compiled gdb from sources, and copied the libgdb.a to the fpcsrc and symlink it as libgdb and it worked. (Just to make it index for others to have that using search engines :)) Now another question is, can I cross compile to make an i386 deb packages as well ?

Generally, yes, but there can be a few surprises:
* The compiler expects 32-bit libraries in /lib
* Bootstrap compilers <=2.0.2 need you to set GNUTARGET and LDEMULATION to instruct the binutils to generate 32-bit binaries.
* Allhtough building works, I'm not sure of .deb-building.

Daniël

Reply by email