libc-common: Apply Debian-naming to libc debug symbols too
PATCH 1/1 libc-common: Apply Debian-naming to libc debug symbols too
The magic in rootfs_ipk.bbclass expects to generate debug package names by just appending '-dbg'. This breaks for eglibc because whilst the binary package has been renamed to libc6 the debug package is still called libc-dbg. This patch ensures that the debug package is renamed too.
--- meta/classes/libc-common.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
meta/classes/libc-common.bbclass +1 -0
@@ -27,4 +27,5 @@ python populate_packages_prepend () { bpn = d.getVar('BPN', True) d.setVar('PKG_'+bpn, 'libc6') d.setVar('PKG_'+bpn+'-dev', 'libc6-dev') + d.setVar('PKG_'+bpn+'-dbg', 'libc6-dbg') }
Signature · 1 line
1.7.9
Op 16 mrt. 2012, om 17:32 heeft Mike Crowe het volgende geschreven:
Quoted 14 lines
The magic in rootfs_ipk.bbclass expects to generate debug package names by just appending '-dbg'. This breaks for eglibc because whilst the binary package has been renamed to libc6 the debug package is still called libc-dbg. This patch ensures that the debug package is renamed too.
---
meta/classes/libc-common.bbclass | 1 +1 files changed, 1 insertions(+), 0 deletions(-)meta/classes/libc-common.bbclass +0
-0
meta/classes/libc-common.bbclass python populate_packages_prepend () { · line 31
Quoted 5 lines
meta/classes/libc-common.bbclass +1
-0@@ -27,4 +27,5 @@ python populate_packages_prepend () { bpn = d.getVar('BPN', True) d.setVar('PKG_'+bpn, 'libc6') d.setVar('PKG_'+bpn+'-dev', 'libc6-dev') + d.setVar('PKG_'+bpn+'-dbg', 'libc6-dbg') }
Missing PR bump and broken upgrade path.
Op 16 mrt. 2012, om 17:32 heeft Mike Crowe het volgende geschreven:
Quoted 2 lines
Quoted 2 lines
The magic in rootfs_ipk.bbclass expects to generate debug package names by just appending '-dbg'.
It turns out that the above was a local change so that statement was incorrect. Nevertheless the change probably makes sense anyway.
Quoted 18 lines
Quoted 18 lines
This breaks for eglibc because whilst
the binary package has been renamed to libc6 the debug package is still called libc-dbg. This patch ensures that the debug package is renamed too.
---
meta/classes/libc-common.bbclass | 1 +1 files changed, 1 insertions(+), 0 deletions(-)meta/classes/libc-common.bbclass +1
-0@@ -27,4 +27,5 @@ python populate_packages_prepend () { bpn = d.getVar('BPN', True) d.setVar('PKG_'+bpn, 'libc6') d.setVar('PKG_'+bpn+'-dev', 'libc6-dev') + d.setVar('PKG_'+bpn+'-dbg', 'libc6-dbg') }
Quoted 1 line · Koen Kooi
Missing PR bump
On eglibc?
Quoted 1 line
and broken upgrade path.
I'm having trouble coming up with a way to solve that. I think the libc6-dbg package needs to RPROVIDE, RREPLACE and RCONFLICT with libc-dbg but if I add the following:
d.setVar('RPROVIDES_' + bpn + '-dbg', bpn + '-dbg') d.setVar('RCONFLICTS_' + bpn + '-dbg', bpn + '-dbg') d.setVar('RREPLACES_' + bpn + '-dbg', bpn + '-dbg')
Then the package names undergo translation and I get:
Provides: libc6-dbg
Replaces: libc6-dbg
Conflicts: libc6-dbg
Which is clearly wrong. :(
How would you recommend I provide backward compatibility for this change (assuming it is still seen as desirable?)
Thanks for your comments.
Mike.
Op 19 mrt. 2012, om 12:52 heeft Mike Crowe het volgende geschreven:
Quoted 27 lines
Op 16 mrt. 2012, om 17:32 heeft Mike Crowe het volgende geschreven:
Quoted 2 lines
Quoted 2 lines
The magic in rootfs_ipk.bbclass expects to generate debug package names by just appending '-dbg'.
It turns out that the above was a local change so that statement was incorrect. Nevertheless the change probably makes sense anyway.
Quoted 8 lines
Quoted 8 lines
This breaks for eglibc because whilst
the binary package has been renamed to libc6 the debug package is still called libc-dbg. This patch ensures that the debug package is renamed too.
---
meta/classes/libc-common.bbclass | 1 +1 files changed, 1 insertions(+), 0 deletions(-)Quoted 10 lines
meta/classes/libc-common.bbclass python populate_packages_prepend () { · line 31
Quoted 10 lines
meta/classes/libc-common.bbclass +1
-0@@ -27,4 +27,5 @@ python populate_packages_prepend () { bpn = d.getVar('BPN', True) d.setVar('PKG_'+bpn, 'libc6') d.setVar('PKG_'+bpn+'-dev', 'libc6-dev') + d.setVar('PKG_'+bpn+'-dbg', 'libc6-dbg') }On Fri, Mar 16, 2012 at 08:39:00PM +0100, Koen Kooi wrote:
Quoted 3 lines
Quoted 1 line
Missing PR bump
On eglibc?
On everything that uses that class.
Quoted 10 lines
Quoted 2 lines
and broken upgrade path.
I'm having trouble coming up with a way to solve that. I think the libc6-dbg package needs to RPROVIDE, RREPLACE and RCONFLICT with libc-dbg but if I add the following:
d.setVar('RPROVIDES_' + bpn + '-dbg', bpn + '-dbg')d.setVar('RCONFLICTS_' + bpn + '-dbg', bpn + '-dbg')d.setVar('RREPLACES_' + bpn + '-dbg', bpn + '-dbg')
Does d.setVar('RREPLACES_' + bpn + '-dbg', 'libc-dbg') work?
regards,
Koen
Quoted 20 lines
Then the package names undergo translation and I get:
Provides: libc6-dbg
Replaces: libc6-dbg
Conflicts: libc6-dbgWhich is clearly wrong. :(
How would you recommend I provide backward compatibility for this change (assuming it is still seen as desirable?)
Thanks for your comments.
Mike.
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Op 16 mrt. 2012, om 17:32 heeft Mike Crowe het volgende geschreven:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
meta/classes/libc-common.bbclass +1
-0@@ -27,4 +27,5 @@ python populate_packages_prepend () { bpn = d.getVar('BPN', True) d.setVar('PKG_'+bpn, 'libc6') d.setVar('PKG_'+bpn+'-dev', 'libc6-dev') + d.setVar('PKG_'+bpn+'-dbg', 'libc6-dbg') }
Quoted 1 line · Koen Kooi
Quoted 1 line
Quoted 1 line
Missing PR bump
Op 19 mrt. 2012, om 12:52 heeft Mike Crowe het volgende geschreven:
Quoted 1 line
Quoted 1 line
On eglibc?
Quoted 1 line · Koen Kooi
On everything that uses that class.
OK.
Quoted 11 lines
Quoted 9 lines
Quoted 1 line
and broken upgrade path.
I'm having trouble coming up with a way to solve that. I think the libc6-dbg package needs to RPROVIDE, RREPLACE and RCONFLICT with libc-dbg but if I add the following:
d.setVar('RPROVIDES_' + bpn + '-dbg', bpn + '-dbg')d.setVar('RCONFLICTS_' + bpn + '-dbg', bpn + '-dbg')d.setVar('RREPLACES_' + bpn + '-dbg', bpn + '-dbg')Does
d.setVar('RREPLACES_' + bpn + '-dbg', 'libc-dbg')work?
It seems to. Do I just need to set RREPLACES or all three?
Thanks.
Mike.
PATCH 1/1 libc-common: Apply Debian-naming to libc debug symbols too
Ensure that the eglibc-dbg package follows Debian naming too if enabled. Retain backward compatibility with old libc-dbg naming.
--- meta/classes/libc-common.bbclass | 5 +++++ meta/recipes-core/eglibc/eglibc_2.13.bb | 2 +- meta/recipes-core/eglibc/eglibc_2.15.bb | 1 + 3 files changed, 7 insertions(+), 1 deletions(-)
meta/classes/libc-common.bbclass +5 -0
@@ -27,4 +27,9 @@ python populate_packages_prepend () { bpn = d.getVar('BPN', True) d.setVar('PKG_'+bpn, 'libc6') d.setVar('PKG_'+bpn+'-dev', 'libc6-dev') + d.setVar('PKG_'+bpn+'-dbg', 'libc6-dbg') + # For backward compatibility with old -dbg package + d.setVar('RPROVIDES_' + bpn + '-dbg', 'libc-dbg') + d.setVar('RCONFLICTS_' + bpn + '-dbg', 'libc-dbg') + d.setVar('RREPLACES_' + bpn + '-dbg', 'libc-dbg') }
meta/recipes-core/eglibc/eglibc_2.13.bb +1 -1
@@ -3,7 +3,7 @@ require eglibc.inc SRCREV = "15508" DEPENDS += "gperf-native" -PR = "r20" +PR = "r21" PR_append = "+svnr${SRCPV}" EGLIBC_BRANCH="eglibc-2_13"
meta/recipes-core/eglibc/eglibc_2.15.bb +1 -0
@@ -3,6 +3,7 @@ require eglibc.inc SRCREV = "16540" DEPENDS += "gperf-native" +PR = "r1" PR_append = "+svnr${SRCPV}" EGLIBC_BRANCH="eglibc-2_15"
Signature · 1 line
1.7.9
Quoted 33 lines · Mike Crowe
Op 16 mrt. 2012, om 17:32 heeft Mike Crowe het volgende geschreven:
Quoted 2 lines
Quoted 2 lines
The magic in rootfs_ipk.bbclass expects to generate debug package names by just appending '-dbg'.
It turns out that the above was a local change so that statement was incorrect. Nevertheless the change probably makes sense anyway.
Quoted 18 lines
Quoted 18 lines
This breaks for eglibc because whilst
the binary package has been renamed to libc6 the debug package is still called libc-dbg. This patch ensures that the debug package is renamed too.
---
meta/classes/libc-common.bbclass | 1 +1 files changed, 1 insertions(+), 0 deletions(-)meta/classes/libc-common.bbclass +1
-0@@ -27,4 +27,5 @@ python populate_packages_prepend () { bpn = d.getVar('BPN', True) d.setVar('PKG_'+bpn, 'libc6') d.setVar('PKG_'+bpn+'-dev', 'libc6-dev') + d.setVar('PKG_'+bpn+'-dbg', 'libc6-dbg') }Quoted 1 line · Koen Kooi
Missing PR bump
On eglibc?
Quoted 1 line
and broken upgrade path.
Quoted 7 lines
I'm having trouble coming up with a way to solve that. I think the libc6-dbg package needs to RPROVIDE, RREPLACE and RCONFLICT with libc-dbg but if I add the following:
d.setVar('RPROVIDES_' + bpn + '-dbg', bpn + '-dbg')d.setVar('RCONFLICTS_' + bpn + '-dbg', bpn + '-dbg')d.setVar('RREPLACES_' + bpn + '-dbg', bpn + '-dbg')
try to hardcode "libc" instead of bpn in value if you want
Provides: libc-dbg
Replaces: libc-dbg
Conflicts: libc-dbg
Quoted 20 lines
Then the package names undergo translation and I get:
Provides: libc6-dbg
Replaces: libc6-dbg
Conflicts: libc6-dbgWhich is clearly wrong. :(
How would you recommend I provide backward compatibility for this change (assuming it is still seen as desirable?)
Thanks for your comments.
Mike.
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]