Any opinions on this issue would be highly appreciated.

On Mon, Jan 3, 2011 at 4:10 PM, Rahul Gundecha <[email protected]>wrote:

> Hi,
>
> I am using bitbake 1.10.1 for building OE packages. However bitbake fails
> to compile packages where the package name contains some special character,
> packages like 'libstdc++'.
> To handle this problem, I added a patch to bitbake where the special
> characters in the package name are preceded with the escape character. Now
> with this pat
> ch, the package libstdc++ gets compiled correctly.
>
> Anyone faced the similar problem? Is there any other better workaround for
> this problem?
>
> Thanks,
> Rahul
>
>
>
> Error log:
>
> NOTE: Handling BitBake files: \ (0355/0355) [100 %]
> Parsing of 355 .bb files complete (0 cached, 355 parsed). 390 targets, 6
> skipped, 0 masked, 0 errors.
> Command execution failed: Traceback (most recent call last):
>   File "<my_dir>/oe/bitbake/lib/bb/command.py", line 88, in runAsyncCommand
>     commandmethod(self.cmds_async, self, options)
>   File "<my_dir>/oe/bitbake/lib/bb/command.py", line 174, in buildTargets
>     command.cooker.buildTargets(pkgs_to_build, task)
>   File "<my_dir>/oe/bitbake/lib/bb/cooker.py", line 782, in buildTargets
>     taskdata.add_provider(localdata, self.status, k)
>   File "<my_dir>/oe/bitbake/lib/bb/taskdata.py", line 354, in add_provider
>     self.add_provider_internal(cfgData, dataCache, item)
>   File "<my_dir>/oe/bitbake/lib/bb/taskdata.py", line 374, in
> add_provider_internal
>     if re_match_strings(item, dataCache.ignored_dependencies):
>   File "<my_dir>/oe/bitbake/lib/bb/taskdata.py", line 37, in
> re_match_strings
>     re.search(name,target)!=None):
>   File "/usr/lib/python2.6/re.py", line 142, in search
>     return _compile(pattern, flags).search(string)
>   File "/usr/lib/python2.6/re.py", line 243, in _compile
>     raise error, v # invalid expression
> error: multiple repeat
>
>
> Patch for appending escape character in front of special characters in
> package name
>
> diff -Naur bitbake-1.10.1_orig/lib/bb/taskdata.py
> bitbake-1.10.1/lib/bb/taskdata.py
> --- bitbake-1.10.1_orig/lib/bb/taskdata.py      2010-10-15
> 06:15:07.000000000 +0530
> +++ bitbake-1.10.1/lib/bb/taskdata.py   2011-01-03 11:19:10.000000000 +0530
> @@ -33,6 +33,7 @@
>      import re
>
>      for name in strings:
> +         name = name.replace("+","\+");
>          if (name==target or
>                  re.search(name,target)!=None):
>              return True
>
>
>
_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to