diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-03-04 16:45:02 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-03-04 16:45:02 +0000 |
commit | dfb52cedd076c66c12644b1b09b3750772bd93bc (patch) | |
tree | 5a4969d5bf6a86d858ecb22c4292f1decafa1f83 /meta/classes/debian.bbclass | |
parent | 68e4dbb0ebd1a6ca420cb98ff25db7c01030624c (diff) | |
download | poky-dfb52cedd076c66c12644b1b09b3750772bd93bc.tar.gz |
debian.bbclass: merge DEBIANNAME support from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3904 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/debian.bbclass')
-rw-r--r-- | meta/classes/debian.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass index dd0789adae..0afe9fcc39 100644 --- a/meta/classes/debian.bbclass +++ b/meta/classes/debian.bbclass | |||
@@ -3,6 +3,9 @@ | |||
3 | # before building the current package to make the packages runtime | 3 | # before building the current package to make the packages runtime |
4 | # depends are correct | 4 | # depends are correct |
5 | # | 5 | # |
6 | # Custom library package names can be defined setting | ||
7 | # DEBIANNAME_ + pkgname to the desired name. | ||
8 | # | ||
6 | # Better expressed as ensure all RDEPENDS package before we package | 9 | # Better expressed as ensure all RDEPENDS package before we package |
7 | # This means we can't have circular RDEPENDS/RRECOMMENDS | 10 | # This means we can't have circular RDEPENDS/RRECOMMENDS |
8 | do_package_write_ipk[rdeptask] = "do_package" | 11 | do_package_write_ipk[rdeptask] = "do_package" |
@@ -88,7 +91,10 @@ python debian_package_name_hook () { | |||
88 | for pkg in packages.split(): | 91 | for pkg in packages.split(): |
89 | if (bb.data.getVar('PKG_' + pkg, d) or bb.data.getVar('DEBIAN_NOAUTONAME_' + pkg, d)): | 92 | if (bb.data.getVar('PKG_' + pkg, d) or bb.data.getVar('DEBIAN_NOAUTONAME_' + pkg, d)): |
90 | continue | 93 | continue |
91 | if pkg == orig_pkg: | 94 | debian_pn = bb.data.getVar('DEBIANNAME_' + pkg, d) |
95 | if debian_pn: | ||
96 | newpkg = debian_pn | ||
97 | elif pkg == orig_pkg: | ||
92 | newpkg = pkgname | 98 | newpkg = pkgname |
93 | else: | 99 | else: |
94 | newpkg = pkg.replace(orig_pkg, devname, 1) | 100 | newpkg = pkg.replace(orig_pkg, devname, 1) |