[oe-commits] org.oe.dev debian.bbclass : altered version of the patch in #3383, this allows us

xora commit openembedded-commits at lists.openembedded.org
Thu Jan 24 11:36:46 UTC 2008


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

Author: xora at openembedded.org
Branch: org.openembedded.dev
Revision: ab8b1c1e6684a1adf48542f7920da11e352243cb
ViewMTN: http://monotone.openembedded.org/revision/info/ab8b1c1e6684a1adf48542f7920da11e352243cb
Files:
1
classes/debian.bbclass
Diffs:

#
# mt diff -r3c66d6b1436025179ec2cdb5566fae553bb5d632 -rab8b1c1e6684a1adf48542f7920da11e352243cb
#
# 
# 
# patch "classes/debian.bbclass"
#  from [2a365d85a6678f446949df94f9e76dad1677e376]
#    to [a83f52e8f361ddfc20c5cd874c5cd5c013e1bf8d]
# 
============================================================
--- classes/debian.bbclass	2a365d85a6678f446949df94f9e76dad1677e376
+++ classes/debian.bbclass	a83f52e8f361ddfc20c5cd874c5cd5c013e1bf8d
@@ -1,8 +1,11 @@
 # Debian package renaming only occurs when a package is built
 # We therefore have to make sure we build all runtime packages
 # 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)






More information about the Openembedded-commits mailing list