* [rocko][PATCH] Record PE value for shlib dependencies
@ 2018-01-11 15:34 Böszörményi Zoltán
2018-01-11 16:08 ` ✗ patchtest: failure for Record PE value for shlib dependencies (rev2) Patchwork
0 siblings, 1 reply; 2+ messages in thread
From: Böszörményi Zoltán @ 2018-01-11 15:34 UTC (permalink / raw)
To: openembedded-core
When downgrading a package or using a substitute with lower version,
the way to do it is adding or increasing PE. But it didn't help
dependant packages because the shlib records didn't contain PE, only PV.
Let's add the PE value into these records for packages where it's set.
The in-memory variables storing the versions 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
these shlib records. Use # instead in the files, so the file format
doesn't change. Conversion occurs on reading/writing the package.list
files.
Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
---
meta/classes/package.bbclass | 6 +++++-
meta/lib/oe/package.py | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 2053d46395..8904b8091a 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1669,6 +1669,10 @@ python package_do_shlibs() {
if not pkgver:
pkgver = ver
+ pkgpe = d.getVar('PE')
+ if pkgpe:
+ pkgver = pkgpe + ':' + pkgver
+
needed[pkg] = []
sonames = list()
renames = list()
@@ -1697,7 +1701,7 @@ python package_do_shlibs() {
if old_pkg != pkg:
bb.warn('%s-%s was registered as shlib provider for %s, changing it to %s-%s because it was built later' % (old_pkg, old_pkgver, s[0], pkg, pkgver))
bb.debug(1, 'registering %s-%s as shlib provider for %s' % (pkg, pkgver, s[0]))
- fd.write(s[0] + ':' + s[1] + ':' + s[2] + '\n')
+ fd.write(s[0] + ':' + s[1] + ':' + s[2].replace(':', '#', 1) + '\n')
if s[0] not in shlib_provider:
shlib_provider[s[0]] = {}
shlib_provider[s[0]][s[1]] = (pkg, pkgver)
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index 1e5c3aa8e1..d19fe7312d 100644
--- a/meta/lib/oe/package.py
+++ b/meta/lib/oe/package.py
@@ -258,7 +258,7 @@ def read_shlib_providers(d):
s = l.strip().split(":")
if s[0] not in shlib_provider:
shlib_provider[s[0]] = {}
- shlib_provider[s[0]][s[1]] = (dep_pkg, s[2])
+ shlib_provider[s[0]][s[1]] = (dep_pkg, s[2].replace('#', ':', 1))
return shlib_provider
--
2.14.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* ✗ patchtest: failure for Record PE value for shlib dependencies (rev2)
2018-01-11 15:34 [rocko][PATCH] Record PE value for shlib dependencies Böszörményi Zoltán
@ 2018-01-11 16:08 ` Patchwork
0 siblings, 0 replies; 2+ messages in thread
From: Patchwork @ 2018-01-11 16:08 UTC (permalink / raw)
To: Boszormenyi Zoltan; +Cc: openembedded-core
== Series Details ==
Series: Record PE value for shlib dependencies (rev2)
Revision: 2
URL : https://patchwork.openembedded.org/series/10497/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:
* Patch [rocko] Record PE value for shlib dependencies
Issue Shortlog does not follow expected format [test_shortlog_format]
Suggested fix Commit shortlog (first line of commit message) should follow the format "<target>: <summary>"
If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-11 16:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-11 15:34 [rocko][PATCH] Record PE value for shlib dependencies Böszörményi Zoltán
2018-01-11 16:08 ` ✗ patchtest: failure for Record PE value for shlib dependencies (rev2) Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox