[Lazarus] Debian Packager released

Anthony Walter sysrpl at gmail.com
Tue Nov 10 03:25:26 CET 2015


More information:

https://en.wikipedia.org/wiki/Ldd_(Unix)

ldd (List Dynamic Dependencies) is a *nix utility that prints the shared
libraries required by each program or shared library specified on the
command line.[1]

Here's and example using my program colormix:

user at home ~/ $ ldd colormix
linux-vdso.so.1 =>  (0x00007ffc1eef8000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007fb3f9d43000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb3f997e000)
   ... snip a few lines
libcairo.so.2 => /usr/lib/x86_64-linux-gnu/libcairo.so.2
(0x00007fb3f7a7d000)
libpangocairo-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0
(0x00007fb3f764e000)
   ... more lines follow

then pick a dependency which is under /usr/lib  ...

user at home ~/ $ dpkg -S /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0
libpangocairo-1.0-0:amd64: /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0

and finally check the package to verify the version ...

user at home ~/ $ dpkg -s libpangocairo-1.0-0
Package: libpangocairo-1.0-0
Status: install ok installed
Priority: optional
Section: libs
Version: 1.36.3-1ubuntu1.1

which then creates in the control file ...

Depends:  libpangocairo-1.0-0 (>= 1.36.3)

I am quite confident that this is a valid approach to building a dependency
list. If you want lower version numbers, try making the deb in an older OS
(12.04) and see if the version numbers are lower there. I wouldn't know how
to look up depends versions any other way, other than say googling each
package and trying random lower version numbers.

With regards to linking to dependencies you feel are not needed, try
copying just the application to another system without using the deb. See
if you get an error when running the app due to missing libraries. i.e.
Your other test computer doesn't have
"/usr/lib/nvidia-346/xorg/libglx.so.346.96" and the program fails because
of this reason.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151109/f141b13b/attachment-0003.html>


More information about the Lazarus mailing list