summaryrefslogtreecommitdiffstats
path: root/meta/classes/debian.bbclass
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2011-03-03 22:46:09 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-10 18:14:20 -0800
commit1697ae6ee225f55057883031cd666f7c3153be2f (patch)
tree3d91f71ad276081075b6080f1f8f040977c811e9 /meta/classes/debian.bbclass
parenta54f4b69190a5001f9a06365118a6915a751138c (diff)
downloadpoky-1697ae6ee225f55057883031cd666f7c3153be2f.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 (From OE-Core rev: 6f0bbe463204d377f92140b6540d9d518d5c6d6b) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/debian.bbclass')
-rw-r--r--meta/classes/debian.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass
index d35882fa44..46a9d089c2 100644
--- a/meta/classes/debian.bbclass
+++ b/meta/classes/debian.bbclass
@@ -107,7 +107,13 @@ python debian_package_name_hook () {
107 if newpkg != pkg: 107 if newpkg != pkg:
108 bb.data.setVar('PKG_' + pkg, newpkg, d) 108 bb.data.setVar('PKG_' + pkg, newpkg, d)
109 109
110 for pkg in (bb.data.getVar('AUTO_LIBNAME_PKGS', d, 1) or "").split(): 110 # reversed sort is needed when some package is substring of another
111 # ie in ncurses we get without reverse sort:
112 # DEBUG: LIBNAMES: pkgname libtic5 devname libtic pkg ncurses-libtic orig_pkg ncurses-libtic debian_pn None newpkg libtic5
113 # and later
114 # DEBUG: LIBNAMES: pkgname libtic5 devname libtic pkg ncurses-libticw orig_pkg ncurses-libtic debian_pn None newpkg libticw
115 # so we need to handle ncurses-libticw->libticw5 before ncurses-libtic->libtic5
116 for pkg in sorted((bb.data.getVar('AUTO_LIBNAME_PKGS', d, 1) or "").split(), reverse=True):
111 auto_libname(packages, pkg) 117 auto_libname(packages, pkg)
112} 118}
113 119