Recent

Author Topic: Creating .deb packages for Lazarus applications?  (Read 36954 times)

metis

  • Sr. Member
  • ****
  • Posts: 300
Re: Creating .deb packages for Lazarus applications?
« Reply #60 on: February 22, 2023, 02:50:47 pm »
Also found two programs to make Debian packages. I haven't tested them - Link #2
Has anyone had any experience with the Debian Packager, in the meantime ?
« Last Edit: February 22, 2023, 02:58:10 pm by metis »
Life could be so easy, if there weren't those f*** Details.
My FFmpeg4Lazarus = FFPlay4Laz + FFGrab4Laz + FFInfo4Laz

dbannon

  • Hero Member
  • *****
  • Posts: 3215
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Creating .deb packages for Lazarus applications?
« Reply #61 on: February 24, 2023, 12:10:11 am »
No, I have not, but I suggest that a "one size fits all" approach is going to be harder that you imagine. Especially if you are compiling with FPC, have extra units you need, want to make a src package....

Making a binary is easy, in very simplified terms, you build a directory (I call it BUILD) containing the things you want to appear on the user's system. You then run something like -

fakeroot dpkg-deb -b BUILD/. myapp_amd64.deb <enter>

In practice that will probably have a lot of lintian errors but will probably work fine.

Building a SRC package to submit to debian is a bit harder, it has to (later) build (from src package to binary package) with make and those lintian errors I mentioned will have the debian people shaking their heads. But all that can be fixed and scripted if you are willing to put a bit of effort in.

Here is my script to build debian and rpm binary packages for amd64, i386 and raspi (along with a kit to package a windows installer) - https://github.com/tomboy-notes/tomboy-ng/blob/master/package/package.bash

Its probably far more complicated that you need initially but look into the methods inside.

Here is a my doc of my method of building a SRC a package that I routinely submit to Debian (v0.36 accepted into unstable today) - https://github.com/tomboy-notes/tomboy-ng/blob/master/prepare.md

In both cases, most certainly NOT scripts you can use because they are setup for my particular project. But you can easily pick out the bits you want, modify them accordingly and discard the remainder.

Davo


Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

metis

  • Sr. Member
  • ****
  • Posts: 300
Re: Creating .deb packages for Lazarus applications?
« Reply #62 on: September 17, 2023, 05:15:22 pm »
@dbannon
Thank You for Your detailed Reply - Phew, sounds pretty complicated.

Quote
Making a binary is easy ...
Should be as shown here for FFmpeg.

What about Debreate ?
What about the Debian Package Maker ?

Anybody any experience with them ?
Life could be so easy, if there weren't those f*** Details.
My FFmpeg4Lazarus = FFPlay4Laz + FFGrab4Laz + FFInfo4Laz

maurobio

  • Hero Member
  • *****
  • Posts: 623
  • Ecology is everything.
    • GitHub
Re: Creating .deb packages for Lazarus applications?
« Reply #63 on: September 17, 2023, 05:27:50 pm »
Hi!

I have done this for years now. I use Debreate fof creating distribution packsges fof both 32-bits and 64-bits Linux applications without any hassles or complications

The trick is just adding the required list of dependencies in the package, but they are pretty stable.from an application to the other.

With warmest regards,
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 2.0.12 - FPC 3.2.0 on GNU/Linux Mint 19.1, Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home

 

TinyPortal © 2005-2018