[Lazarus] Multiple versions of the same package and its dependencies?
Luca Olivetti
luca at wetron.es
Tue Jun 4 16:01:47 CEST 2024
El 4/6/24 a les 15:17, Michael Van Canneyt via lazarus ha escrit:
>> Shouldn't lazarus already know the different versions of all the
>> packages?
>> This is with lazarus 3.2 btw, I didn't yet try 3.4
>
> The zeos packages themselves need to indicate the min/max versions of the
> packages they depend on. Then, if lazarus needs to decide the dependencies,
> it will select the correct ones if it knows them.
Yes, they do, they specify a min/max corresponding to the version, i.e.:
zcomponent 7.1.4 requires
zplain >=7.1 <=7.1
zparsesql >=7.1 <=7.1
zdbc >=7.1 <=7.1
zcore >=7.1 <=7.1
zplain requires
zcore >=7.1 <=7.1
zparsesql requires
zcore >=7.1 <=7.1
zdbc requires
zplain >=7.1 <=7.1
zparsesql >=7.1 <=7.1
zcore >=7.1 <=7.1
but I have to open the lpk of all the packages every time I want to
switch from 7.1.4 to 7.2.12 and viceversa otherwise lazarus complains
about missing packages.
> I used the versioning extensively, and it works fine, but every package
> must
> "play nice" before it can work correctly.
Maybe the problem is because the packages only specify major/minor
instead of major/minor/revision?
Another question is, my projects using zeos automatically acquired the
version I used when I wrote them (e.g. zcomponent >=6.5), since both 7.1
and 7.2 (and 8.0) satisfy the requirement, which version will the
project actually use? The last one I opened the lpk, the one installed
in the ide or the higher version available?
Bye
--
Luca Olivetti
Wetron Automation Technology https://wetron.es/
Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007
More information about the lazarus
mailing list