[Gambas-user] Update ide Package module for shared libraries, Make installation packages to have preinst and postinst scripts

Brian G brian at westwoodsvcs.com
Tue Feb 25 17:59:29 CET 2020


The problem is that the name of the package changes like this
westwood-testexec_7.14.9-0ubuntu1_all.deb
westwood-testexec_7.14.8-0ubuntu1_all.deb
westwood-testexec_4.14.7-0ubuntu1_all.deb
etc

The package name is only considered to the first _ and the rest is versioning

So no mater what major(also considered interface version for shared libraries), minor, release number
Debian deletes all older versions and replaces it with the newer version. Applications depending on the older version of the interface will now fail.
If you try to install the older version, it will tell you that the newest is already installed.
I would like to propose that the major version number become part of a library name as this

westwood-testexec4_4.14.7-0ubuntu1_all.deb

This allows the Major/Inteface number to control the package name for libraries and therefore allow the development and implementation in a production environment of newer versions of the interface. and the slow adoption for older applications to the new interface.

This change for Libraries to the naming

  sPackageName = FormatDebPackageName($sUnsafePackageName)
  If Project.type = Project.TYPE_LIBRARY Then
    sPackageName &= Split($sVersion, ".", "", True)[0]
  Endif

Will allow the major version or Interface version to manage the way shared libraries are updated

This would be very helpful for developers
Brian G

----- Original Message -----
From: "Benoît Minisini" <g4mba5 at gmail.com>
To: "Gambas mailing list" <user at lists.gambas-basic.org>
Sent: Tuesday, February 25, 2020 8:30:22 AM
Subject: Re: [Gambas-user] Update ide Package module for shared libraries, Make installation packages to have preinst and postinst scripts

Le 25/02/2020 à 17:01, Brian G a écrit :
> Will try to find another way of doing this.
> 
> When the dependency for gambas  is created for the install, does that 
> imply that the scripter will be available?
> 
> 
> Brian G

I don't really understand your problem.

When you create a package of a library, then the library version is put 
in the package name.

So normally, for two versions of the same library, you get two packages 
with different names, and these packages should be able to be both 
installed at the same time. Provided that the release number (the third 
number in the version) is different, as the Gambas executable only 
includes the major and the minor.

As for gbs, I want it to be fully optional. Nothing should require it in 
Gambas.

REgards,

-- 
Benoît Minisini

----[ http://gambaswiki.org/wiki/doc/netiquette ]----


More information about the User mailing list