aboutsummaryrefslogtreecommitdiffstats
path: root/classes/debian.bbclass
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2008-01-24 10:57:32 +0000
committerGraeme Gregory <dp@xora.org.uk>2008-01-24 10:57:32 +0000
commitea78cc0130bd9106754c72041ee9ec82b7b15431 (patch)
tree5c08320805309d141f795e4a964bbfaf940073ba /classes/debian.bbclass
parente4e79dc599387fd145e5aaeb01cc0c3a75f1ef5b (diff)
downloadopenembedded-ea78cc0130bd9106754c72041ee9ec82b7b15431.tar.gz
debian.bbclass : altered version of the patch in #3383, this allows us
to change the debian renaming of a package without resorting to python in the recipe. Makes recipes cleaner and is overrideable in distros that need different renaming. Original patch from Robert Schuster
Diffstat (limited to 'classes/debian.bbclass')
-rw-r--r--classes/debian.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/classes/debian.bbclass b/classes/debian.bbclass
index dd0789adae..0afe9fcc39 100644
--- a/classes/debian.bbclass
+++ b/classes/debian.bbclass
@@ -3,6 +3,9 @@
# before building the current package to make the packages runtime
# depends are correct
#
+# Custom library package names can be defined setting
+# DEBIANNAME_ + pkgname to the desired name.
+#
# Better expressed as ensure all RDEPENDS package before we package
# This means we can't have circular RDEPENDS/RRECOMMENDS
do_package_write_ipk[rdeptask] = "do_package"
@@ -88,7 +91,10 @@ python debian_package_name_hook () {
for pkg in packages.split():
if (bb.data.getVar('PKG_' + pkg, d) or bb.data.getVar('DEBIAN_NOAUTONAME_' + pkg, d)):
continue
- if pkg == orig_pkg:
+ debian_pn = bb.data.getVar('DEBIANNAME_' + pkg, d)
+ if debian_pn:
+ newpkg = debian_pn
+ elif pkg == orig_pkg:
newpkg = pkgname
else:
newpkg = pkg.replace(orig_pkg, devname, 1)