[meta-freescale] [PATCH 14/20] openssl-qoriq should provide the same output packages as poky openssl

Luo Zhenhua zhenhua.luo at freescale.com
Sun Sep 6 00:06:42 PDT 2015


> -----Original Message-----
> From: Otavio Salvador [mailto:otavio.salvador at ossystems.com.br]
> Sent: Thursday, September 03, 2015 12:49 AM
>> On Wed, Sep 2, 2015 at 6:02 AM, Luo Zhenhua <zhenhua.luo at freescale.com>
>> wrote:
> >> From: Otavio Salvador [mailto:otavio.salvador at ossystems.com.br]
> >> You seem to be lacking
> >>
> >> RCONFLICTS
> >> RREPLACES
> >>
> >> and this can be done using an annonymous python.
> > [Luo Zhenhua-B19537] Per my understanding, RCONFLICTS and RREPLACES
> are used when same output packages are provided by different packages. For
> openssl-qoriq build, some output packages are provided poky openssl, which
> should be provided by openssl-qoriq as well, can those two variables solve the
> problem?
> >
> > I add the following lines in openssl-qoriq bb file, the issue still exists.
> > RCONFLICTS_${PN} = "openssl"
> > RREPLACES_${PN} = "openssl"
> 
> You need to set this using python for all packages and use the counterpart of
> openssl one.
[Luo Zhenhua-B19537] I try to use the following python function, the parse issue persists. If I define the variables in bb file. The parse issue goes away, any comment? 

The following python function doesn't work. 
python() {
    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)
 
    d.appendVar("RPROVIDES_${PN}", "openssl")
    d.appendVar("RREPLACES_${PN}", "openssl")
    d.appendVar("RCONFLICTS_${PN}", "openssl")
}

Below definition work. 
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


More information about the meta-freescale mailing list