[Lazarus] Deployment tool: make deb

JuuS JuuS at mykolab.ch
Thu Nov 5 18:28:00 CET 2015



On 10/31/2015 02:21 PM, Anthony Walter wrote:

> Okay if anyone wants to TEST this program, 

Done!

>I've uploaded a 64bit version
> which you can download below. A 32bit version will be coming soon if you
> should need it.


> 
> http://cache.getlazarus.org/debs/makedeb_1.0-1-x86_64.deb
> 
> To install either double click the deb and use your package manager
> program (Software Center on Ubuntu) and press install. 
> Or type "sudo dpkg -i makedeb_1.0-1-x86_64.deb"
> 
> If you don't already have apt-file installed, installing this deb should
> also install apt-file. The apt-file program  is required to look up
> package names of your application's dependencies. It should build the
> cache when installed, but if you need to do it manually (I don't believe
> you do) the command would be "sudo apt-file update".

It turns out that you do need to do this, at least on my system (Kub
14.04 VM). It does install apt-file but immediately one gets a
notification that it needs to be "updated" and raises a dialog to allow
you to do so. The first few go rounds I ran the dialog, it opens a
terminal, runs and then hangs at the end.

After googling and trying things what one needs to do is IGNORE/CANCEL
that update notification because it runs with only user permissions!
Then do the "sudo apt-file update" manually, that works properly.

And thanks for the instructions you provided in private email, all
worked great, I paste an important bit here for others if they get a
missing libxml2.so message (from what I understand this is fixed now in
later build of Deb Packager):

Fix the problem by creating a symlink to libxml2.so.2 in /usr/lib/ folder.

Eg:
find /usr/lib -name libxml2*
Lists:
/usr/lib/x86_64-linux-gnu/libxml2.so.2
Fix:
sudo ln -s /usr/lib/x86_64-linux-gnu/libxml2.so.2
/usr/lib/x86_64-linux-gnu/libxml2.so


To keep this reply short I post my test findings at:

https://www.timepirate.org/downloads/DebPackagerTestResults.txt


How will this work with updates, transparently or will we need to do
something special?

Thanks for doing this! Looks like it is going to be very very handy,
easy, convenient, and quick. Is this open to dev on git or svn?

Julius



> 
> To run the application type makedeb in any terminal, or search for
> Debian Packager in the dash (Ubuntu).
> 
> Usage should be self explanatory. You either type of the path to you
> application, or press the button with the green plus and choose your
> application. Fill out the fields and press build. 
> 
> A few tips:
> 
> You can pick the desktop icon by clicking the big image in the top left
> and picking a graphic file.
> The caption value is what will appear in the dash or if you pin the icon
> somewhere.
> Search for you program using with apt-cache search or aptitude search
> using the package name.
> Your short description will appear next to the package name when searching.
> Versions should be formatted majorver.minorver-packagever eg. 0.9-1
> Author should be in the form of Your Name <you at example.com
> <mailto:you at example.com>>
> 
> 
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> 




More information about the Lazarus mailing list