diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2011-03-03 22:46:09 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2011-03-08 20:43:53 -0800 |
commit | 6f0bbe463204d377f92140b6540d9d518d5c6d6b (patch) | |
tree | 410ad17ff2567068f5869f2e31ec329052d1e218 /meta/classes/debian.bbclass | |
parent | 94b36524550ff2c94a5f8d82a9bc2073c06d418a (diff) | |
download | openembedded-core-6f0bbe463204d377f92140b6540d9d518d5c6d6b.tar.gz openembedded-core-6f0bbe463204d377f92140b6540d9d518d5c6d6b.tar.bz2 openembedded-core-6f0bbe463204d377f92140b6540d9d518d5c6d6b.tar.xz openembedded-core-6f0bbe463204d377f92140b6540d9d518d5c6d6b.zip |
debian.bbclass: call auto_libname in reverse sorted AUTO_LIBNAME_PKGS
* see comment for reason why we need this
* more info:
http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-February/029877.html
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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 d35882fa4..46a9d089c 100644 --- a/meta/classes/debian.bbclass +++ b/meta/classes/debian.bbclass @@ -107,7 +107,13 @@ python debian_package_name_hook () { if newpkg != pkg: bb.data.setVar('PKG_' + pkg, newpkg, d) - for pkg in (bb.data.getVar('AUTO_LIBNAME_PKGS', d, 1) or "").split(): + # reversed sort is needed when some package is substring of another + # ie in ncurses we get without reverse sort: + # DEBUG: LIBNAMES: pkgname libtic5 devname libtic pkg ncurses-libtic orig_pkg ncurses-libtic debian_pn None newpkg libtic5 + # and later + # DEBUG: LIBNAMES: pkgname libtic5 devname libtic pkg ncurses-libticw orig_pkg ncurses-libtic debian_pn None newpkg libticw + # so we need to handle ncurses-libticw->libticw5 before ncurses-libtic->libtic5 + for pkg in sorted((bb.data.getVar('AUTO_LIBNAME_PKGS', d, 1) or "").split(), reverse=True): auto_libname(packages, pkg) } |