Re: Alire version statique et diff Debian vs Ubuntu
"Stephane Carrez" (via ada-france Mailing List) <[email protected]> Sun, 10 Dec 2023 11:14:48 +0100
| Newsgroups | gmane.comp.lang.ada.france |
|---|---|
| Message-ID | <[email protected]> |
Hello,
Pour info, il y a un paquet alire officiel dans Debian 12 (correspondant à Alire 1.2.1).
https://packages.debian.org/bookworm/alire
La politique Debian Ada fait qu'ils ne veulent pas d'une compilation statique.
Il dépend donc de libgnatcoll, xmlezout, libgnat.
Stephane
On 06/12/2023 18:02, Sowebio - Développement (via ada-france Mailing List) wrote:
>
> Quand on prend une version buildée sur le github qui gaze sur Ubuntu 22.04 LTS et qu'on la copie sur une Debian 11 :
>
> root@i188c1 ~ >alr search --list
> alr: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by alr)
> alr: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by alr)
> alr: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by alr)
>
> Par défaut alr n'est pas compilé en statique. Mais rien de méchant vu le peu de dépendances :
>
> root@i188c1 🎱 (1) /usr/local/bin >ldd alr
> ./alr: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./alr)
> ./alr: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./alr)
> ./alr: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./alr)
> linux-vdso.so.1 (0x00007ffe43bad000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007faf09a54000)
> /lib64/ld-linux-x86-64.so.2 (0x00007faf09c32000)
>
> Récup les sources et ajouter dans le bas de alr.gpr :
>
> package linker is
> for Default_Switches ("ada") use ("-static");
> end linker;
>
> puis :
>
> sr@ro6 🍀 dev/build.sh
>
> Constater que builder Alire est un bonheur, puis vérifier :
>
> sr@ro6 🍀 ldd bin/alr
> n'est pas un exécutable dynamique
>
> Un alr tout chaud qui passera partout.
>
> alr statique 38 Mo
> alr dynamique 34 Mo
>
> Contrôle OK sur Debian 11 :
>
> root@i188c1 🎱 (130) /usr/local/bin >alr search --list
> ◷ Searching... Loading indexes... Cloning into '/root/.config/alire/indexes/community/repo'...
> remote: Enumerating objects: 9278, done.
> remote: Counting objects: 100% (1789/1789), done.
> remote: Compressing objects: 100% (486/486), done.
> remote: Total 9278 (delta 1370), reused 1519 (delta 1280), pack-reused 7489
> Receiving objects: 100% (9278/9278), 1.65 MiB | 7.69 MiB/s, done.
> Resolving deltas: 100% (5001/5001), done.
> NAME STATUS VERSION DESCRIPTION
> aaa 0.2.6 Alex's Ada Assortment (of miscellaneous utilities)
> ada_fuse 1.0.1 Ada bindings for Fuse (Filesystem in Userspace)
> .../...
>
> Autre étrangeté Debian 11 vs Ubuntu 22.04 LTS, le lien libcurl.so manque dans Debian...
>
> cd /usr/lib/x86_64-linux-gnu
> ln -s libcurl.so.4.7.0 libcurl.so
>
> --
> Sowebio Développement
> [email protected]
> Sowebio <http://www.soweb.io>
> www.soweb.io <http://www.soweb.io>
> [email protected]
> +33 (0) 5 46 85 58 40
>
>
>
> _______________________________________________
> Ada-france mailing list
> [email protected]
_______________________________________________
Ada-france mailing list
[email protected]