[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1029448: alire in Debian; dependencies of the package



Hi Ludovic,

On 23/01/2023 19:51, Ludovic Brenta wrote:
Here is what I get with dpkg --info alire_1.2.1-2_amd64.deb after building it:

  new Debian package, version 2.0.
  size 3434464 bytes: control archive=1560 bytes.
      476 bytes,    13 lines      control
     2386 bytes,    35 lines      md5sums
  Package: alire
  Version: 1.2.1-2
  Architecture: amd64
  Maintainer: Stephane Carrez <Stephane.Carrez@gmail.com>
  Installed-Size: 17740
  Depends: libc6 (>= 2.35)
  Section: devel
  Priority: optional
  Homepage: https://github.com/alire-project
  Description: Ada package manager.
   A catalog of ready-to-use Ada libraries plus a command-line tool
   (`alr`) to obtain, build, and incorporate them into your own projects.
   It aims to fulfill a similar role to Rust's `cargo` or OCaml's `opam`.

As you can see, it does not depend on libgnat-12 and does not even recommend gnat.  This
seems suspicious to me.  Could you please check that the dependencies are generated
correctly?


Yes, I think this comes from the way they build Alire by default to reduce dependencies
on the GNAT compiler and other shared libraries.

$ ldd bin/alr
        linux-vdso.so.1 (0x00007ffc555ed000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f152fe1f000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f1531205000)

By not depending on the GNAT compiler installed, you can use Alire with several newer
or older compiler as you wish.

I think this comes from the definition in alire_common.gpr:

   package Binder is
      for Switches ("Ada") use ("-Es", "-g", "-static");
   end Binder;


Reply to: