mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
debian.bbclass: merge DEBIANNAME support from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3904 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
# before building the current package to make the packages runtime
|
# before building the current package to make the packages runtime
|
||||||
# depends are correct
|
# 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
|
# Better expressed as ensure all RDEPENDS package before we package
|
||||||
# This means we can't have circular RDEPENDS/RRECOMMENDS
|
# This means we can't have circular RDEPENDS/RRECOMMENDS
|
||||||
do_package_write_ipk[rdeptask] = "do_package"
|
do_package_write_ipk[rdeptask] = "do_package"
|
||||||
@@ -88,7 +91,10 @@ python debian_package_name_hook () {
|
|||||||
for pkg in packages.split():
|
for pkg in packages.split():
|
||||||
if (bb.data.getVar('PKG_' + pkg, d) or bb.data.getVar('DEBIAN_NOAUTONAME_' + pkg, d)):
|
if (bb.data.getVar('PKG_' + pkg, d) or bb.data.getVar('DEBIAN_NOAUTONAME_' + pkg, d)):
|
||||||
continue
|
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
|
newpkg = pkgname
|
||||||
else:
|
else:
|
||||||
newpkg = pkg.replace(orig_pkg, devname, 1)
|
newpkg = pkg.replace(orig_pkg, devname, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user