[OE-core] [PATCH v2] package: Record PE and PR values for shlib dependencies

Richard Purdie richard.purdie at linuxfoundation.org
Sun Jan 14 11:27:21 UTC 2018


On Fri, 2018-01-12 at 14:46 +0100, Böszörményi Zoltán wrote:
> When downgrading a package or using a substitute with lower version,
> the way to do it is adding or increasing PE and there may be other
> reasons to set PE.
> 
> But it doesn't directly help dependant packages because the shlib
> records only contain PV.
> 
> Let's add the PE value into the shlib records for packages where
> it's set.
> 
> The in-memory variables storing the versions now use the PE:PV
> notation but the on-disk files must use something else because
> the : character is already used as field delimiter in the
> package.list
> files storing the shlib records. Use # instead in the files,
> so the file format doesn't change. Conversion occurs on reading
> and writing the package.list files.

Can you explain a bit more about why/how this causes a problem?

PE is needed to maintain consistency of package feeds but the shlibs
code is primarily used for build time dependency analysis to figure out
which packages need to depend upon what and ensure runtime dependencies
are met. I'm not sure that should care about PE.

For PR, again its primarily for package feeds so that updates are
detected and I'm not sure why the shlibs code should need to care about
it.

Perhaps if you explain more about the issues you're having which this
fixes I'll better understand the problem/need.

Cheers,

Richard




More information about the Openembedded-core mailing list