Patchwork libc-common: Apply Debian-naming to libc debug symbols too

login
register
mail settings
Submitter Mike Crowe
Date March 20, 2012, 5:27 p.m.
Message ID <1332264463-24439-1-git-send-email-mac@mcrowe.com>
Download mbox | patch
Permalink /patch/23913/
State Accepted
Commit e338607f36fcad89af7d796b2e9f3a31f11e54d6
Headers show

Comments

Mike Crowe - March 20, 2012, 5:27 p.m.
Ensure that the eglibc-dbg package follows Debian naming too if
enabled. Retain backward compatibility with old libc-dbg naming.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
---
 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(-)

Patch

diff --git a/meta/classes/libc-common.bbclass b/meta/classes/libc-common.bbclass
index 962f205..9b91f0a 100644
--- a/meta/classes/libc-common.bbclass
+++ b/meta/classes/libc-common.bbclass
@@ -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')
 }
diff --git a/meta/recipes-core/eglibc/eglibc_2.13.bb b/meta/recipes-core/eglibc/eglibc_2.13.bb
index e718a1f..a4f59b6 100644
--- a/meta/recipes-core/eglibc/eglibc_2.13.bb
+++ b/meta/recipes-core/eglibc/eglibc_2.13.bb
@@ -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"
diff --git a/meta/recipes-core/eglibc/eglibc_2.15.bb b/meta/recipes-core/eglibc/eglibc_2.15.bb
index b4c1ea5..3820f5a 100644
--- a/meta/recipes-core/eglibc/eglibc_2.15.bb
+++ b/meta/recipes-core/eglibc/eglibc_2.15.bb
@@ -3,6 +3,7 @@  require eglibc.inc
 SRCREV = "16540"
 
 DEPENDS += "gperf-native"
+PR = "r1"
 PR_append = "+svnr${SRCPV}"
 
 EGLIBC_BRANCH="eglibc-2_15"