[Gambas-user] getting Gambas version info across devices

Bruce Steers bsteers4 at gmail.com
Tue Mar 23 12:51:41 CET 2021


On Mon, 22 Mar 2021 at 23:17, Bruce <adamnt42 at gmail.com> wrote:

> On 23/3/21 9:22 am, Benoît Minisini wrote:
> > Le 22/03/2021 à 23:37, Bruce Steers a écrit :
> >> What about that env arg that sets libdir, would that work?
> >>
> >> Cheers
> >> BruceS
> >>
> >
> > Normally 'chroot' should be enough, has 'gbc3' depends on the following
> > libs only:
> >
> > linux-vdso.so.1 (0x00007ffee277d000)
> > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa6a6e86000)
> > libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa6a6d37000)
> > /lib64/ld-linux-x86-64.so.2 (0x00007fa6a70f1000)
> >
> > you can hardly use less.
> >
>
> Even atthat low a level I don;t think you can get a guarantee that
> "that" version library works properly on "this" kernel. Also, if "that"
> version changes (distro glibc upgrade) then possible instability can ensue.
>
> It's probably a waste of your time, B, but there is documentation of the
> ELF file header around which could give you an offset into the file
> where the version is stored. Sadly though there is no guarantee that all
> distros use the suggested convention.
>
> b
>

so far using chroot and env GB_DIR all fails to work for manjaro.

your second suggestion there i think was my thinking, the version info is
in that file somewhere, i gotta be able to find it somehow.
I'll look into it.

If the only option is the "load a VM" way then i think i'll just stick with
my "luck" method as 9 out of 10 is pretty darn lucky ;)

Thanks bruce, Ben

Well wishes
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210323/66bc9cf3/attachment.htm>


More information about the User mailing list