[meta-freescale] [RFC][PATCH] openssl-qoriq: add RREPLACES and RCONFLICTS to solve the conflict of openssl provided by poky
Luo Zhenhua
zhenhua.luo at freescale.com
Tue Sep 15 22:32:48 PDT 2015
The purpose of this patch is to resolve the following conflict of openssl-qoriq and openssl in poky, the test result indicates that the variable definitions doesn't take effect.
ERROR: Multiple .bb files are due to be built which each provide openssl
(.../meta-freescale/recipes-connectivity/openssl/openssl-qoriq_1.0.1i.bb
/poky/meta/recipes-connectivity/openssl/openssl_1.0.2d.bb). This usually
means one provides something the other doesn't and should.
The following definition in bb file can resolve above issue.
RPROVIDES_${PN}-engines += "openssl-engines"
RCONFLICTS_${PN}-engines += "openssl-engines"
RREPLACES_${PN}-engines += "openssl-engines"
RPROVIDES_${PN}-engines-dbg += "openssl-engines-dbg"
RCONFLICTS_${PN}-engines-dbg += "openssl-engines-dbg"
RREPLACES_${PN}-engines-dbg += "openssl-engines-dbg"
RPROVIDES_${PN}-misc += "openssl-misc"
RCONFLICTS_${PN}-misc += "openssl-misc"
RREPLACES_${PN}-misc += "openssl-misc"
RPROVIDES_${PN}-dbg += "openssl-dbg"
RCONFLICTS_${PN}-dbg += "openssl-dbg"
RREPLACES_${PN}-dbg += "openssl-dbg"
RPROVIDES_${PN}-staticdev += "openssl-staticdev"
RCONFLICTS_${PN}-staticdev += "openssl-staticdev"
RREPLACES_${PN}-staticdev += "openssl-staticdev"
RPROVIDES_${PN}-dev += "openssl-dev"
RCONFLICTS_${PN}-dev += "openssl-dev"
RREPLACES_${PN}-dev += "openssl-dev"
RPROVIDES_${PN}-doc += "openssl-doc"
RCONFLICTS_${PN}-doc += "openssl-doc"
RREPLACES_${PN}-doc += "openssl-doc"
RPROVIDES_${PN}-locale += "openssl-locale"
RCONFLICTS_${PN}-locale += "openssl-locale"
RREPLACES_${PN}-locale += "openssl-locale"
RPROVIDES_${PN} += "openssl"
RCONFLICTS_${PN} += "openssl"
RREPLACES_${PN} += "openssl"
Best Regards,
Zhenhua
> -----Original Message-----
> From: Zhenhua Luo [mailto:zhenhua.luo at freescale.com]
> Sent: Wednesday, September 16, 2015 1:34 PM
> To: meta-freescale at yoctoproject.org
> Cc: Luo Zhenhua-B19537 <zhenhua.luo at freescale.com>
> Subject: [RFC][meta-freescale][PATCH] openssl-qoriq: add RREPLACES and
> RCONFLICTS to solve the conflict of openssl provided by poky
>
> fix the following parse error:
> ERROR: Multiple .bb files are due to be built which each provide openssl
> (.../meta-freescale/recipes-connectivity/openssl/openssl-qoriq_1.0.1i.bb
> /poky/meta/recipes-connectivity/openssl/openssl_1.0.2d.bb). This usually
> means one provides something the other doesn't and should.
>
> Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>
> ---
> recipes-connectivity/openssl/openssl-qoriq.inc | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/recipes-connectivity/openssl/openssl-qoriq.inc b/recipes-
> connectivity/openssl/openssl-qoriq.inc
> index ee02fb7..471ad57 100644
> --- a/recipes-connectivity/openssl/openssl-qoriq.inc
> +++ b/recipes-connectivity/openssl/openssl-qoriq.inc
> @@ -8,6 +8,18 @@ SECTION = "libs/network"
> LICENSE = "openssl"
> LIC_FILES_CHKSUM =
> "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
>
> +python() {
> + d.appendVar("RPROVIDES_${PN}", "openssl")
> + d.appendVar("RREPLACES_${PN}", "openssl")
> + d.appendVar("RCONFLICTS_${PN}", "openssl")
> +
> + pkgs = ["engines", "engines-dbg", "misc", "dbg", "staticdev", "dev", "doc",
> "locale"]
> + for pkg in pkgs:
> + d.appendVar("RPROVIDES_${PN}_%s" % pkg, "openssl-%s" % pkg)
> + d.appendVar("RREPLACES_${PN}_%s" % pkg, "openssl-%s" % pkg)
> + d.appendVar("RCONFLICTS_${PN}_%s" % pkg, "openssl-%s" % pkg) }
> +
> DEPENDS = "perl-native-runtime"
>
> SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
> --
> 2.4.3
More information about the meta-freescale
mailing list