From: Mark Hatle Date: Fri, 30 Nov 2012 02:53:29 +0000 (-0600) Subject: package_deb: Dependencies with a ( or ) in them are invalid in debs X-Git-Tag: rev_ivi_2015_02_04~14692 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=108e4e00ba581a10d91e91a243066e54f4ecb8d7;p=scm%2Fbb%2Ftizen-distro.git package_deb: Dependencies with a ( or ) in them are invalid in debs Replace ( or ) with __. This allows RPM style dependencies to be satisfied in deb style packages. (From OE-Core rev: 12acb6bb00ba665571fcfbdb0ef4668ca0a98d5b) Signed-off-by: Mark Hatle Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index d273cb0..eed9b8a 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass @@ -335,12 +335,22 @@ python do_package_deb () { mapping_rename_hook(localdata) def debian_cmp_remap(var): + # dpkg does not allow for '(' or ')' in a dependency name + # replace these instances with '__' and '__' + # # In debian '>' and '<' do not mean what it appears they mean # '<' = less or equal # '>' = greater or equal # adjust these to the '<<' and '>>' equivalents # for dep in var: + if '(' in dep: + newdep = dep.replace('(', '__') + newdep = newdep.replace(')', '__') + if newdep != dep: + var[newdep] = var[dep] + del var[dep] + for dep in var: for i, v in enumerate(var[dep]): if (v or "").startswith("< "): var[dep][i] = var[dep][i].replace("< ", "<< ")