[oe] [PATCH 03/12] libnl: add RREPLACES libnl2 for upgradable path

Martin Jansa martin.jansa at gmail.com
Fri Mar 18 14:18:12 UTC 2011


On Fri, Mar 18, 2011 at 03:00:20PM +0100, Martin Jansa wrote:
> Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> ---
>  recipes/libnl/libnl_2.0.bb |    7 +++++++
>  recipes/libnl/libnl_git.bb |    7 +++++++
>  2 files changed, 14 insertions(+), 0 deletions(-)

This one is probably not needed (don't have libnl1 installed here to test)

I've PATCHv2 with this:

+# for upgradable path from libnl_1.0 to libnl_2.0
+# old libnl2_2.0 already had same names so RREPLACES isn't needed
+# libnl2_2.0/libnl_2.0 with debian naming produces ie libnl-route2
+RREPLACES_${PN} = "libnl1"
+RREPLACES_${PN}-route = "libnl1"
+RREPLACES_${PN}-nf = "libnl1"
+RREPLACES_${PN}-genl = "libnl1"
+RREPLACES_${PN}-cli = "libnl1"

but still it looks like only libnl2-dev and libnl-dev have conflicting
files, so maybe RCONFLICTS will be better to let user to remove old
libnl1 before upgrade to libnl2?

> diff --git a/recipes/libnl/libnl_2.0.bb b/recipes/libnl/libnl_2.0.bb
> index 8b77d07..6614478 100644
> --- a/recipes/libnl/libnl_2.0.bb
> +++ b/recipes/libnl/libnl_2.0.bb
> @@ -23,3 +23,10 @@ FILES_${PN}-route = "${libdir}/libnl-route.so.*"
>  FILES_${PN}-nf    = "${libdir}/libnl-nf.so.*"
>  FILES_${PN}-genl  = "${libdir}/libnl-genl.so.*"
>  FILES_${PN}-cli   = "${libdir}/libnl-cli.so.*"
> +
> +# for upgradable path from libnl2_2.0 to libnl_2.0
> +RREPLACES_${PN} = "${PN}2"
> +RREPLACES_${PN}-route = "${PN}2-route"
> +RREPLACES_${PN}-nf = "${PN}2-nf"
> +RREPLACES_${PN}-genl = "${PN}2-genl"
> +RREPLACES_${PN}-cli = "${PN}2-cli"
> diff --git a/recipes/libnl/libnl_git.bb b/recipes/libnl/libnl_git.bb
> index b3bb749..b844bdd 100644
> --- a/recipes/libnl/libnl_git.bb
> +++ b/recipes/libnl/libnl_git.bb
> @@ -23,3 +23,10 @@ FILES_${PN}-route = "${libdir}/libnl-route.so.*"
>  FILES_${PN}-nf    = "${libdir}/libnl-nf.so.*"
>  FILES_${PN}-genl  = "${libdir}/libnl-genl.so.*"
>  FILES_${PN}-cli   = "${libdir}/libnl-cli.so.*"
> +
> +# for upgradable path from libnl2_2.0 to libnl_2.0
> +RREPLACES_${PN} = "${PN}2"
> +RREPLACES_${PN}-route = "${PN}2-route"
> +RREPLACES_${PN}-nf = "${PN}2-nf"
> +RREPLACES_${PN}-genl = "${PN}2-genl"
> +RREPLACES_${PN}-cli = "${PN}2-cli"
> -- 
> 1.7.4.1
> 

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20110318/5d5a78a5/attachment-0002.sig>


More information about the Openembedded-devel mailing list