From 124f0226fd1639b7a7d25c00b05131c9096c503e Mon Sep 17 00:00:00 2001 From: Chunrong Guo Date: Mon, 28 May 2018 13:54:49 +0800 Subject: ptpd-qoriq: Add RREPLACE/RPROVIDES/RCONFLICTS for ptpd-qoriq instead of ptpd Signed-off-by: Chunrong Guo Signed-off-by: Otavio Salvador --- recipes-daemons/ptpd/ptpd-qoriq.bb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/recipes-daemons/ptpd/ptpd-qoriq.bb b/recipes-daemons/ptpd/ptpd-qoriq.bb index df3787b2..f3a7f0ce 100644 --- a/recipes-daemons/ptpd/ptpd-qoriq.bb +++ b/recipes-daemons/ptpd/ptpd-qoriq.bb @@ -14,6 +14,15 @@ PROVIDES = "ptpd" inherit autotools pkgconfig systemd +python() { + pkgs = d.getVar('PACKAGES', True).split() + for p in pkgs: + if 'ptpd-qoriq' in p: + d.appendVar("RPROVIDES_%s" % p, p.replace('ptpd-qoriq', 'ptpd')) + d.appendVar("RCONFLICTS_%s" % p, p.replace('ptpd-qoriq', 'ptpd')) + d.appendVar("RREPLACES_%s" % p, p.replace('ptpd-qoriq', 'ptpd')) +} + # return something like '1.2.3' or '1.2.3/rc1' # def get_sub(d): -- cgit v1.2.3-54-g00ecf