Comments
Patch
@@ -206,6 +206,23 @@ python do_package_deb () {
import re, copy
import textwrap
+ def deb_explode_dep_ver(varname):
+ # Remove markers from string so they won't get handled as version numbers
+ depstr = localdata.getVar(varname, True) or ""
+ start = depstr.find("(")
+ while start != -1:
+ # We are not searching ")" from full string in case it's malformed in a way
+ # that first ")" is before first "("
+ endstr = depstr[start:len(depstr)]
+ end = endstr.find(")")
+ if (end == len(endstr) - 1) or (end == -1):
+ tmpstr = depstr[0:start]
+ else:
+ tmpstr = depstr[0:start] + depstr[start+end+1:len(depstr)]
+ depstr = tmpstr
+ start = depstr.find("(")
+ return bb.utils.explode_dep_versions(depstr)
+
workdir = d.getVar('WORKDIR', True)
if not workdir:
bb.error("WORKDIR not defined, unable to package")
@@ -341,7 +358,7 @@ python do_package_deb () {
if '*' in dep:
del rrecommends[dep]
rsuggests = bb.utils.explode_dep_versions(localdata.getVar("RSUGGESTS", True) or "")
- rprovides = bb.utils.explode_dep_versions(localdata.getVar("RPROVIDES", True) or "")
+ rprovides = deb_explode_dep_ver("RPROVIDES")
rreplaces = bb.utils.explode_dep_versions(localdata.getVar("RREPLACES", True) or "")
rconflicts = bb.utils.explode_dep_versions(localdata.getVar("RCONFLICTS", True) or "")
if rdepends: