← Back to team overview

kicad-developers team mailing list archive

Re: PPA: library packages modifications

 

Hi,

> In terms of Debian and Ubuntu there is only Recommends and Suggests
> available. The difference between both is simple that a Suggests will
> never be installed automatically, a Recommends will be installed unless
> the user is turning this globally off (default in on) or while calling
> 'apt install' by the option '--no-install-recommends'.
> There is no strong or soft recommending.
Yes, "strong" is my own comment to explain the difference between
Recommends and Suggests. The dependency I put is "Recommends" of course.


> 
> I suggested to use 'kicad-libraries' as the package name and make
> 'kicad-library' a transitional package
Originally I prefer to keep the same package name. But changing the
package name could be a good option also. If you use "kicad-libraries"
in debian I will follow you, no problem.

> 
>> The version of this package will be prefixed with a "1:" to put it on
>> the front of older version of kicad-library.
> 
> This is not needed in my eyes. The sense of a epoch version is something
> different [1]. As long as the new version number for
> 'kicad-libra[y|ies]' is greater than the previous one the update will
> work as wanted, the new version is overwriting the old package.
> But I haven't looked at the existing PPA packages from Jean-Samuel in
> detail until now.
I use "epoch notation" (1:) because I want to avoid files conflict. If I
change page name (to kicad-libraries), I can discard this (and mark
kicad-library as "Conflicts" instead of "kicad-library << 1:0.1")


> 
>> kicad-library-packages3d own all 3D. This package have a large size (~
>> 330M, 4G on disk) . It will have a recommended dependency to
>> kicad-library-footprint
>>
>> kicad-library-footprints own all footprints
>> kicad-library-symbols same with symbols
>> kicad-library-templates same with ... templates ;)
>>
>> All kicad-library-* packages have a conflict constraint to
>> kicad-library << 1:0.1 and kicad-common (as before).
>> There is also a recommended dependency to kicad-library >= 1:0.1.
>>
>> This last point will avoid cross installation between kicad-library
>> version since those packages are be incompatible (shared files...).
> 
> As written, not needed as long the new version is greater than the old
> one, and this is a hard requirement. If you use epoch you allow some
> smaller version explicitly.
>
In my case, I use epoch to avoid renaming. But as you suggest, using
"kicad-libraries" as package name can avoid this.

> 
>> *Migration*
>>
>> No specific action are required. Update will do his jobs automatically.
>> Anyway you can now install only one package if you want limit disk
>> space/download time...
>>
>> If you experience any errors, please let me know ! Main error that can
>> be found is one file in two packages (file conflict)...
> 
> Ubuntu has no piuparts testing? In Debian there exists piuparts which is
> testing several constellations of possible upgrading a package.
Not sure that it exist for PPA as it's not "official" archive ?



References