summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2011-01-04Allow %20 in a file name in the SRC_URI1.10C Michael Sundius
Signed-off-by: C Michael Sundius <msundius@sundius.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-04vercmp: don't choke on empty first version componentsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-04Don't show tracebacks for SystemExit or KeyboardInterruptChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-04Fix exit code display for task failureChris Larson
Per the python documentation, os.waitpid returns the exitcode shifted up by 8 bits, and we weren't compensating, resulting in a display of 'failed with 256' when a worker process exits with a code of 1. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-04bitbake/server: Raise a shutdown event if we're seeing exceptionsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-23Prepare for 1.10.21.10.2Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-19cooker: fix UnboundLocalErrorChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-04Fix GraphViz .dot output for rdepends and rrecsChris Larson
Use bb.utils.explode_deps to break up the rdepends and rrecommends strings. This fixes the same issue which was fixed by a number of patches floating around, but uses explode_deps rather than regular expressions. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-21bitbake: lib/bb/fetch/hg: fix fetching from a mercurial repositoryEric BENARD
* without this fix, we get : updating working directory 74 files updated, 0 files merged, 0 files removed, 0 files unresolved abort: There is no Mercurial repository here (.hg not found)! Signed-off-by: Eric Bénard <eric@eukrea.com> Tested-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-14Add 1.10.1 entry to ChangeLog1.10.1Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-12fetch: if mirror fetching fails, ensure exception is raisedJoshua Lock
We catch any exception raised by the fetchers go() method and attempt to work around it by trying any (post) mirrors which are configured. However, should the mirrors fail the exception is lost and the fetch is assumed to have completed successfully. Instead, save the exception and if the local file does not exist after trying the mirrors re-raise the exception. Fixes poky [BUGID #362] Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-30Switch the debug_level dictionary to a defaultdictChris Larson
This already exists in master, but in a different form. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-30create cooker object after cleaning the environmentJeff Dike
Previously, the cooker object was created before the environment was cleaned, saving everything that was in the environment and dumping into the run scripts. The patch ensures that the cooker gets a cleaned environment when it's created. (From Poky rev: 6418d0492a60ed37d13e1060c2e8c09cd127c450) Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-19Fix IndexError encountered when a 'depends' flag references a nonexistant taskChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-13Add 1.10.0 entry to ChangeLog1.10.0Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-07-26Fix handling of empty variables in local config filesRichard Purdie
(From Poky rev: dbd9308) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-26Gross hack to fix packaged-staging with BBCLASSEXTEND packagesRichard Purdie
(From Poky rev: 589df80ca1b825afd138531bb796aa8617ed0991) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-06-04Search up the directory tree for bblayers.confChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-04Add a hack to avoid the req that all vars using LAYERDIR be immediately expandedChris Larson
See the comment in the code for details. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-04Move the unset BBPATH sanity check after the bblayers processingChris Larson
This way we can fully utilize bblayers, you can do everything in bblayers.conf and avoid setting any environment variables at all. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-04Make the file not found error actually useable.Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-15Bump version from 1.9.0 to 1.10.0Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Made '-b' work with BBCLASSEXTENDEnrico Scholz
When BBCLASSEXTEND is set, '-b' builds usually failed with messages like | ERROR: Parsing error data_fn virtual:native:<recipe>.bb and fn <recipe>.bb don't match | | File ".../bb/providers.py", line 47, in sortPriorities | priority = dataCache.bbfile_priority[f] | KeyError: 'virtual:native:<recipe>.bb' This patch fixes it and allows to specify the alternative class in a way like | ./bitbake -b virtual:native:<recipe>.bb This patch was written to be so minimal as possible; variables should be probably renamed to reflect their new meaning. Signed-off-by: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
2010-04-06Resurrect the old bb.vercmp as bb.utils.vercmp, and its depsChris Larson
This is just for compatibility. We may drop it in the future, or rewrite it, as it's not particularly pythonic. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-06Pass the config metadata into the Cache constructor rather than the cookerChris Larson
Cache only uses the config metadata from the cooker, no need for the cooker itself. Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-03-31Resurrect merged anonfunc executionChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-31Add & utilize a simple_exec utility functionChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-30Consolidate the exec/eval bits, switch anonfunc to better_exec, etcChris Larson
The methodpool, ${@} expansions, anonymous python functions, event handlers now all run with the same global context, ensuring a consistent environment for them. Added a bb.utils.better_eval function which does an eval() with the same globals as better_exec. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-30Pass an empty locals dict in expansion, since list comprehensions apparently ↵Chris Larson
leak their '_' helper variable Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-30Two minor changes to the way python snippet expansion happensChris Larson
- Use a single dictionary for the context, both global & local, since for some reason it chokes wanting a global "d" rather than a local in the metadata. - First compile the string into a code object before running eval, so we can include the variable name in an evaluation error. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-25bitbake/event.py: Run class eventhandlers in the task context but ensure UI ↵Richard Purdie
handlers run in the server context (From Poky rev: d3d36d9f440288fa8bc0901ebefe875fc92409c4) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-25bitbake/cooker.py: Finishing the command needs to happen after the ↵Richard Purdie
BuildCompleted event else the cooker can shutdown first (From Poky rev: 871f731e5733c27664c4a341cf4b6b0770cb1909) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-25cache.py: Bump the cache version after the BBVERSIONS updateRichard Purdie
(From Poky rev: fb245be03d8e3327165033045245f5f853c0b0d4) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-25bb.manifest: Drop, its unused and obsolete. No point in having dead code aroundRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-24BBFILES: use a set to remove duplicates when collecting.Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24bb/command was importing bb and accessing some of its own classes indirectly ↵Chris Larson
as bb.command.<class> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24Why is bb/__init__.py importing bb?Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24data_smart: be explicit about what we make available to eval'd python codeChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24Fix 7 references to undefined variables, as spotted by pyflakesChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24bb.utils: remove old portage remnantsChris Larson
The following utility functions were removed. Note that in this particular case we're bypassing a proper deprecation process, as these functions are clearly not utilized, are obvious remnants of old ways of doing things, and some of which do not even function properly. - tokenize - evaluate - flatten - relparse - ververify - isjustname - isspecific - catpkgsplit - pkgsplit - pkgcmp - dep_parenreduce - dep_opconvert Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24bb.utils: utilize string.letters and string.digitsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24bb.which: fix broken direction/reverse argumentChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-23crumbs: fix hassattr typoChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-23Implement BBVERSIONSChris Larson
This implements a feature similar to BBCLASSEXTEND, but for generating multiple versions of a given recipe. For example: BBVERSIONS = "1.0 2.0 git". In addition to the above, one can utilize [a-b] style patterns, and can have a :<basever> postfix, which allows you to essentially name the range of versions. Both the current version and the basever end up in OVERRIDES, and the basever gets placed into the BPV variable. The default BPV, if none is specified, is the original PV of the recipe, before bbversions processing. In this way, you can do things like: BBVERSIONS = "1.0.[0-6]:1.0.0+ 1.0.[7-9]:1.0.7+" SRC_URI_append_1.0.7+ = "file://some_extra_patch.patch;patch=1" Or you can create a recipe per range, and name the recipe file as such: nano_1.0.7+.bb. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-23utils: improve wording of error messageBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-03-23Expand PREMIRRORSEnrico Scholz
When not expanding PREMIRRORS, the functions fails/does not work correctly when PREMIRRORS is not a plain string (e.g. contains ${...} or a ${@...} statements). Signed-off-by: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-03-22usermanual.xml: Add documentation on bblayers.confRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-22cooker.py: Add support for a bblayers.conf fileRichard Purdie
(From Poky rev: 666c753) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-08cooker: bail out early if no files to buildBernhard Reutner-Fischer
This prevents a misleading backtrace: ERROR: no files to build. Command execution failed: Traceback (most recent call last): File ".../bitbake/build/lib/bb/command.py", line 83, in runAsyncCommand self.cooker.updateCache() File ".../bitbake/build/lib/bb/cooker.py", line 779, in updateCache if not self.parser.parse_next(): File ".../bitbake/build/lib/bb/cooker.py", line 969, in parse_next cooker.bb_cache.sync() UnboundLocalError: local variable 'cooker' referenced before assignment Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-03-01Fix issues with BBCLASSEXTEND set by anonymous python, and rename some ↵Chris Larson
variables to improve code clarity Signed-off-by: Chris Larson <clarson@kergoth.com>