aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-02-15 10:35:58 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2011-02-21 00:29:08 +0100
commit2eca738f47bbb86144b40373e0fa1359e9c79185 (patch)
tree3880ef0ef6c262b5e1d9a64558670e71b2bce927 /classes
parentc44ecf1ff38e3e3b2b1ea25f8d7121b5a1923223 (diff)
downloadopenembedded-2eca738f47bbb86144b40373e0fa1359e9c79185.tar.gz
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>
Diffstat (limited to 'classes')
-rw-r--r--classes/debian.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/classes/debian.bbclass b/classes/debian.bbclass
index 1a2c7da441..7cdb6d2274 100644
--- a/classes/debian.bbclass
+++ b/classes/debian.bbclass
@@ -101,7 +101,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)
}