require ${PN}_${PV}.inc

DEPENDS += "mariadb-native"

PROVIDES += "mysql5"

RPROVIDES_${PN}-client = "mysql5-client"
RREPLACES_${PN}-client = "mysql5-client"
RCONFLICTS_${PN}-client = "mysql5-client"

RPROVIDES_${PN}-server = "mysql5-server"
RREPLACES_${PN}-server = "mysql5-server"
RCONFLICTS_${PN}-server = "mysql5-server"


require ${PN}_${PV}.inc

DEPENDS += "mariadb-native"

PROVIDES += "mysql5"

RPROVIDES_${PN} += "mysql5"
RREPLACES_${PN} += "mysql5"
RCONFLICTS_${PN} += "mysql5"

RPROVIDES_${PN}-dbg += "mysql5-dbg"
RREPLACES_${PN}-dbg += "mysql5-dbg"
RCONFLICTS_${PN}-dbg += "mysql5-dbg"

RPROVIDES_${PN}-leftovers += "mysql5-leftovers"
RREPLACES_${PN}-leftovers += "mysql5-leftovers"
RCONFLICTS_${PN}-leftovers += "mysql5-leftovers"

RPROVIDES_${PN}-client += "mysql5-client"
RREPLACES_${PN}-client += "mysql5-client"
RCONFLICTS_${PN}-client += "mysql5-client"

RPROVIDES_${PN}-server += "mysql5-server"
RREPLACES_${PN}-server += "mysql5-server"
RCONFLICTS_${PN}-server += "mysql5-server"


Add mysql5 to RPROVIDES for backwards compatibility
mariadb: Add mysql5 to RPROVIDES for backwards compatibility

It failed to build image while IMAGE_INSTALL += "mysql5"
For backwards compatibility:
- Add mysql5 to RPROVIDES_${PN}
- Add mysql5-dbg to RPROVIDES_${PN}-dbg
- Add mysql5-leftovers to RPROVIDES_${PN}-leftovers
- Use "+=" instead of "=" in  RPROVIDES_${PN}-client and
  RPROVIDES_${PN}-server

The same to RREPLACES and RCONFLICTS.

Signed-off-by: Hongxu Jia <d55095dfc8448df446bb9592fdc085838a3794a7@windriver.com>
Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>
