bitbake.git
8 years agohob: ensure error message text is properly escaped
Paul Eggleton [Mon, 10 Sep 2012 17:11:17 +0000 (18:11 +0100)]
hob: ensure error message text is properly escaped

Our poor implementation of markup escaping was causing invalid
markup, leading to the error dialog being blank. Use the glib markup
escaping function provided by PyGTK+ to do this properly and avoid the
blank error dialogs.

Partial fix for [YOCTO #2983].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob: use correct semantics for dealing with pkgdata
Paul Eggleton [Mon, 10 Sep 2012 14:36:29 +0000 (15:36 +0100)]
hob: use correct semantics for dealing with pkgdata

Some of these values may or may not be overridden on a per-package
basis, so handle them accordingly.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotinfoil: Add file inadvertently not committed
Richard Purdie [Mon, 10 Sep 2012 20:50:34 +0000 (21:50 +0100)]
tinfoil: Add file inadvertently not committed

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocooker: fix handling of exceptions during exception handling
Paul Eggleton [Fri, 7 Sep 2012 15:22:54 +0000 (16:22 +0100)]
cooker: fix handling of exceptions during exception handling

If an exception occurs during handling another exception we were
getting a useless traceback such as the following, after which
BitBake froze:

ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/user/poky/poky/bitbake/lib/bb/command.py", line 84, in runAsyncCommand
    self.cooker.updateCache()
  File "/home/user/poky/poky/bitbake/lib/bb/cooker.py", line 1207, in updateCache
    if not self.parser.parse_next():
  File "/home/user/poky/poky/bitbake/lib/bb/cooker.py", line 1694, in parse_next
    logger.error('Unable to parse %s', value.recipe,
AttributeError: 'exceptions.TypeError' object has no attribute 'recipe'

Fix this to print an actual traceback of the exception and exit
gracefully (well, as gracefully as possible under the circumstances).

The general fix for [YOCTO #2977].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2: fix malformed URL causing a useless traceback
Paul Eggleton [Fri, 7 Sep 2012 15:22:53 +0000 (16:22 +0100)]
fetch2: fix malformed URL causing a useless traceback

The implementation of NoMethodError and MalformedUrl was broken - if you
just set self.args in an exception class to a string it treats it as a
list and then fails later on with a TypeError due to the number of
arguments not matching up.

This nasty exception during exception handling was breaking the normal
exception flow (fixed separately), which meant that if you had a
malformed URL or invalid protocol in SRC_URI you would get the
following:

ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/user/poky/poky/bitbake/lib/bb/command.py", line 84, in runAsyncCommand
    self.cooker.updateCache()
  File "/home/user/poky/poky/bitbake/lib/bb/cooker.py", line 1207, in updateCache
    if not self.parser.parse_next():
  File "/home/user/poky/poky/bitbake/lib/bb/cooker.py", line 1694, in parse_next
    logger.error('Unable to parse %s', value.recipe,
AttributeError: 'exceptions.TypeError' object has no attribute 'recipe'

A specific fix for [YOCTO #2977].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob/imageconfigurationpage: remove or_label reference
Cristiana Voicu [Mon, 10 Sep 2012 08:49:27 +0000 (11:49 +0300)]
hob/imageconfigurationpage: remove or_label reference

When or_label was removed, I forgot to remove also the references to it.

[YOCTO #3010]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2: replace double slashes in paths in encodeurl()
Paul Eggleton [Fri, 7 Sep 2012 13:34:35 +0000 (14:34 +0100)]
fetch2: replace double slashes in paths in encodeurl()

This ensures that if all a MIRRORS entry does is add a slash, this does
not result in a circular loop.

Fixes [YOCTO #3073].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob: print message when DISPLAY is not set
Cristiana Voicu [Fri, 7 Sep 2012 12:00:11 +0000 (15:00 +0300)]
hob: print message when DISPLAY is not set

If DISPLAY wasn't set, launching hob has printed a traceback
difficult to understand. Now, the exception is caught and it
shows a human message.

[YOCTO #2596]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: change view of 'recipes' and 'packages' tables as ui design
Liming An [Wed, 5 Sep 2012 11:13:48 +0000 (19:13 +0800)]
Hob: change view of 'recipes' and 'packages' tables as ui design

changed the order of task tables,
cancel the 'description' column,
add the binb total number indicator, and so on

[YOCTO 2195]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake-diffsigs: allow specifying task & follow deps recursively
Paul Eggleton [Mon, 27 Aug 2012 20:44:35 +0000 (21:44 +0100)]
bitbake-diffsigs: allow specifying task & follow deps recursively

Add the ability to compare the two most recent runs of a specified task,
and follow dependent hash changes recursively. This enables you to trace
back and find exactly why a task was re-run after the fact.

Note that this relies on the metadata providing a function, hooked in
as bb.siggen.find_siginfo, which allows searching in the appropriate
places to find signature data files.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/bb/siggen.py: make signature dump/compare functions return a list
Paul Eggleton [Mon, 27 Aug 2012 20:44:34 +0000 (21:44 +0100)]
lib/bb/siggen.py: make signature dump/compare functions return a list

These functions become a little bit more reusable if they return a list
containing the output rather than just printing it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/bb/siggen.py: insert a colon between class and recipe name
Paul Eggleton [Mon, 27 Aug 2012 20:44:33 +0000 (21:44 +0100)]
lib/bb/siggen.py: insert a colon between class and recipe name

before:
  virtual:nativeautomake_1.12.1.bb.do_compile
after:
  virtual:native:automake_1.12.1.bb.do_compile

This separation ensures that the key is readable, and if necessary,
parsable.

Unfortunately this invalidates previous native sstate signatures with
OE-Core - not much that can be done about that; however that occurs
frequently during the development cycle so it's par for the course.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/bb/siggen: replace tabs with spaces
Paul Eggleton [Mon, 27 Aug 2012 20:44:32 +0000 (21:44 +0100)]
lib/bb/siggen: replace tabs with spaces

We had one section of the code mixing tabs with spaces, which is
particularly undesirable with python code.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotinfoil: create simple interface for bitbake-based utilities
Paul Eggleton [Mon, 27 Aug 2012 20:44:31 +0000 (21:44 +0100)]
tinfoil: create simple interface for bitbake-based utilities

The code to initialise BitBake within bitbake-layers should be useful
for other utilities that need to query configuration or recipe
information, so refactor it out into its own class, "Tinfoil" (to
continue with our cooking metaphor).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocrumbs/hig: Save toolchain in settings
Bogdan Marinescu [Wed, 5 Sep 2012 10:11:25 +0000 (13:11 +0300)]
crumbs/hig: Save toolchain in settings

Toolchain was not saved in the settings dialog ("Output" tab).

[YOCTO #2695]

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob: The 'run image' and 'deploy image' dialogs text and alignment corrections
Cristiana Voicu [Wed, 5 Sep 2012 07:50:33 +0000 (10:50 +0300)]
hob: The 'run image' and 'deploy image' dialogs text and alignment corrections

-changed the text shown by both dialogs text
-make small tweaks to alignment

[YOCTO #2999]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob/imagedetailspage: "Image ready" icon appers only after the image was generated
Cristiana Voicu [Mon, 3 Sep 2012 11:22:04 +0000 (14:22 +0300)]
hob/imagedetailspage: "Image ready" icon appers only after the image was generated

Now, "Your image is ready" icon doesn't appear when you come back on Imagedetails
page. It appears only after the image was generated.

[YOCTO #2984]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohobwidget: Button theme is taken from host, fix
Ioana Grigoropol [Mon, 3 Sep 2012 09:51:06 +0000 (12:51 +0300)]
hobwidget: Button theme is taken from host, fix

- All buttons in the interface inherit a BaseHobButton that
  use the gtk settings for buttons from the host;
- Removed 'or' label between actions on image details page

[Yocto #3011]

Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2: unpack rpm, ipk and deb binary package
Robert Yang [Sun, 2 Sep 2012 04:08:51 +0000 (12:08 +0800)]
fetch2: unpack rpm, ipk and deb binary package

* Unpack the ".rpm" binary package (only .src.rpm in the past)

* Unpack the .deb and .ipk binary package, their unpack commands are the same.

* This is useful for binary package recipe.

[YOCTO #1592]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob/recipe&packageselectionpage: Change "Back" button to "Cancel" button
Cristiana Voicu [Fri, 31 Aug 2012 14:10:11 +0000 (17:10 +0300)]
hob/recipe&packageselectionpage: Change "Back" button to "Cancel" button

"Back" button placed on RecipeSelectionPage and PackageSelectionPage
was changed to "Cancel" button to avoid any confusion.
Also, it was placed next to the other buttons on the page.

[YOCTO #3012]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob/imageconfigurationpage: Set secondary action for "Edit image" button
Cristiana Voicu [Fri, 31 Aug 2012 11:37:58 +0000 (14:37 +0300)]
hob/imageconfigurationpage: Set secondary action for "Edit image" button

The image configuration screen should have only one primary action.
"Edit image" button has now secondary action, and also I have removed
"or" label.

[YOCTO #3010]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob/packageselectionpage: Add tooltips to 'Included' and 'All packages' tab and ...
Cristiana Voicu [Fri, 31 Aug 2012 08:48:23 +0000 (11:48 +0300)]
hob/packageselectionpage: Add tooltips to 'Included' and 'All packages' tab and 'Search' field

For the 'Included' tab: "The packages currently included for your image"
For the 'All packages' tab: "All packages that have been built"
For the 'Search' field: "Enter a package name to find it"

[YOCTO #2322]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob/packageselectionpage: Correctly restore previously selected packages
Cristiana Voicu [Fri, 31 Aug 2012 07:00:47 +0000 (10:00 +0300)]
hob/packageselectionpage: Correctly restore previously selected packages

"Back" button from "Packageselection" page now restores correctly previously
selected packages list. Till now "Back" button was implemented just to switch
pages, not to cancel changes you have made to packages list.

[YOCTO #2984]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob2: remove class hcc
Kang Kai [Tue, 28 Aug 2012 02:47:20 +0000 (10:47 +0800)]
hob2: remove class hcc

Because class hcc is useless, remove it.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob2: remove the hard-coded images map
Kang Kai [Tue, 28 Aug 2012 02:47:19 +0000 (10:47 +0800)]
hob2: remove the hard-coded images map

[Yocto #2795]

When a new image type added, the hob will crash because the new type is
not in the hard-coded image dictionary.

For most of the image types, they are same with the image file's
extension name. So use variable "IMAGE_EXTENSION_difftype" to map the
image type which is diff with the image file extension name, such as
type "live". And the variable(s) will be set in image_types.bbclass.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotaskdata: Don't add dependencies on tasks that don't exist
Richard Purdie [Tue, 28 Aug 2012 15:11:34 +0000 (08:11 -0700)]
taskdata: Don't add dependencies on tasks that don't exist

"bitbake meta-toolchain" with qemu image testing enabled causes problems
since it adds a task after do_rootfs which doesn't exist in this case.

We should simply ignore these extra dependencies rather than adding
them in which is what this patch does (adding a debug message when this
happens).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobin/bitbake: Clarify wording in help output for -s
Trevor Woerner [Sat, 25 Aug 2012 23:26:45 +0000 (19:26 -0400)]
bin/bitbake: Clarify wording in help output for -s

The '-s' option shows (input) recipes, not (built/output) packages. Clarify
the help wording for this option so it is consistent with how bitbake defines
recipes and packages.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoast: Store anonymous python function contents in the datstore
Richard Purdie [Wed, 22 Aug 2012 19:01:55 +0000 (20:01 +0100)]
ast: Store anonymous python function contents in the datstore

This is useful if we need to disable part of one during a backtrace
for debugging purposes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoast: Extract text variable in PythonMethodNode
Richard Purdie [Wed, 22 Aug 2012 12:54:47 +0000 (13:54 +0100)]
ast: Extract text variable in PythonMethodNode

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoast: Rename PythonMethodNode define variable to modulename
Richard Purdie [Wed, 22 Aug 2012 12:54:01 +0000 (13:54 +0100)]
ast: Rename PythonMethodNode define variable to modulename

It was hard for me to understand what the define variable was, modulename
is hopefully a bit better.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomethodpool: Clean up the parsed module list handling to be slightly less insane
Richard Purdie [Wed, 22 Aug 2012 12:53:11 +0000 (13:53 +0100)]
methodpool: Clean up the parsed module list handling to be slightly less insane

This removes some dubious functions and replaces them with a simpler, cleaner
API which better describes what the code is doing. Unused code/variables are
removed and comments tweaked.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomethodpool: Remove unused check_insert_method function
Richard Purdie [Wed, 22 Aug 2012 12:52:24 +0000 (13:52 +0100)]
methodpool: Remove unused check_insert_method function

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocooker: Add explict handling of BBHandledException for parsing failures
Richard Purdie [Wed, 22 Aug 2012 21:40:14 +0000 (22:40 +0100)]
cooker: Add explict handling of BBHandledException for parsing failures

This removes some unnecessary tracebacks

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocooker: Ensure parsing failures stop the build
Richard Purdie [Wed, 22 Aug 2012 19:33:39 +0000 (20:33 +0100)]
cooker: Ensure parsing failures stop the build

Currently parsing failures still allow bitbake to continue on and try
and execute a build. This is clearly a bad idea and this patch adds in
more correct error handling and stops the build.

The use of sys.exit is nasty but this patches other usage in this function
so is at least consisent and its better than the current situation of
trying to execure a half parsed set of recipes. There are probably better
ways this could be improved to use to stop the build.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutils.py: Once we've printed errors messages, suppress the backtrace
Richard Purdie [Wed, 22 Aug 2012 19:02:39 +0000 (20:02 +0100)]
utils.py: Once we've printed errors messages, suppress the backtrace

Adding a generic backtrace to better_compile and better_exec is pointless,
therefore reraise the exception as a bb.BBHandledException so the
generic code doesn't confuse the user even more.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutils.py: Try harder to extract good traceback information by querying the datastore
Richard Purdie [Wed, 22 Aug 2012 19:01:12 +0000 (20:01 +0100)]
utils.py: Try harder to extract good traceback information by querying the datastore

Currently as soon as execution passes outside the code fragment being
executed by better_exec, we don't get any good traceback information,
just a likely obscure reference to some function name which may
or may not be identifiable.

This patch adds code to query the datastore if present, allowing a more
meaningful back trace to be displayed in many cases.

[YOCTO #2981]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocooker: fix traceback when using -b with skipped recipe
Paul Eggleton [Wed, 22 Aug 2012 15:14:38 +0000 (16:14 +0100)]
cooker: fix traceback when using -b with skipped recipe

If a recipe is skipped during parsing for whatever reason, check and
report this as an error rather than trying to use the data that is sent
back and failing.

Fixes [YOCTO #2976].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoevent/ast: Use better_exec instead of simple_exec
Richard Purdie [Tue, 21 Aug 2012 16:25:07 +0000 (16:25 +0000)]
event/ast: Use better_exec instead of simple_exec

This improves the stacktraces dumped by bitbake when for example anonymous
python functions fail.

Also default to passing code strings to better_exec to match the behaviour of
simple_exec to aid the transition.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoui: Improve error message if bitbake cannot import python curses module
Konrad Scherer [Tue, 21 Aug 2012 21:05:58 +0000 (16:05 -0500)]
ui: Improve error message if bitbake cannot import python curses module

On some SuSE systems, the curses python module is not installed by default.
Instead of a python failure, we want a nicer error message.

(On SuSE systems the package is typically python-curses.)

Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Reword commit message, rebase to latest bitbake.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake-layers: use parsable title for show-appends
Paul Eggleton [Tue, 21 Aug 2012 17:11:47 +0000 (18:11 +0100)]
bitbake-layers: use parsable title for show-appends

Print title text surrounded by === as we do with other subcommands so
that you can filter it out in scripts. (You will also want to filter out
lines starting with "WARNING:" if you just want the list).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake-layers: avoid full parse for show-layers subcommand
Paul Eggleton [Tue, 21 Aug 2012 17:11:46 +0000 (18:11 +0100)]
bitbake-layers: avoid full parse for show-layers subcommand

We don't actually need to parse all recipes just to show the configured
layers, so just parse the configuration instead.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/cooker: minor refactor of parseConfiguration()
Paul Eggleton [Tue, 21 Aug 2012 17:11:45 +0000 (18:11 +0100)]
bitbake/cooker: minor refactor of parseConfiguration()

All calls to parseConfiguration set self.status and call
self.handleCollections() afterwards, so just do this inside
parseConfiguration() itself.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodata_smart: skip all interal (underscored) flags in getVarFlags
Ross Burton [Tue, 21 Aug 2012 16:16:26 +0000 (17:16 +0100)]
data_smart: skip all interal (underscored) flags in getVarFlags

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodata-smart: rename the 'content' internal variable to '_content'
Ross Burton [Tue, 21 Aug 2012 16:16:25 +0000 (17:16 +0100)]
data-smart: rename the 'content' internal variable to '_content'

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob wizard-like reorganization
Cristian Iorga [Tue, 21 Aug 2012 15:21:23 +0000 (18:21 +0300)]
Hob wizard-like reorganization

Hob is now more context-sensitive regarding
user changes/options. Also, the workflow have been
streamlined and resembles more of a wizard.
Beautified some hardcoded values.
Fixed typo.
New streamlined Image Configuration page.
Build and/or Edit image buttons presence
is context sensitive.
Recipes and packages tabs selected automatically
based on custom image or pre-defined target image
(included or all).
Context sensitive Back button.

Fixes [YOCTO 2165]

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: hob: create console log directory before writing
Paul Eggleton [Tue, 21 Aug 2012 15:07:37 +0000 (16:07 +0100)]
bitbake: hob: create console log directory before writing

The default value of BB_CONSOLELOG in OE-Core now points to a directory
that might not exist prior to the first build, so ensure it is created
first.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild.py: Correct package to recipe in TaskBase events to use consistent terminology
Richard Purdie [Fri, 17 Aug 2012 13:53:16 +0000 (14:53 +0100)]
build.py: Correct package to recipe in TaskBase events to use consistent terminology

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/git: Work around git confusion between foo.git and foo repositories
Richard Purdie [Sat, 18 Aug 2012 15:15:18 +0000 (15:15 +0000)]
fetch2/git: Work around git confusion between foo.git and foo repositories

If you have foo and foo.git in GITDIR, the two can end up being confused
by git with some horrible union of the two being cloned. This adds
a workaround to avoid this happening until git 1.7.9.2 onwards is
common enough for this to be removed. We use a symlink to hide
the directories we don't want git to know about.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoreally remove knotty2
Richard Purdie [Fri, 17 Aug 2012 13:52:40 +0000 (14:52 +0100)]
really remove knotty2

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobin/bitbake: Remove knotty2 from the list of valid interfaces
Richard Purdie [Thu, 16 Aug 2012 14:15:49 +0000 (15:15 +0100)]
bin/bitbake: Remove knotty2 from the list of valid interfaces

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: build.py: Add stampdir argument to cached_mtime_noerror
Andrei Gherzan [Thu, 16 Aug 2012 11:21:33 +0000 (14:21 +0300)]
bitbake: build.py: Add stampdir argument to cached_mtime_noerror

After commit 2718537b4b04eb3d80ab4d74171b58e7b8dd68b8 (bitbake:
build.py: Only execute mkdirhier if stampdir doesn't exist) build
failes as cached_mtime_noerror needs an argument - stamp dir. This
argument was forgotten.

Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoknotty: Fold knotty2 into knotty and make it the default
Richard Purdie [Wed, 15 Aug 2012 16:50:22 +0000 (17:50 +0100)]
knotty: Fold knotty2 into knotty and make it the default

There is no good reason knotty2 shouldn't be the default now. If you need
the old behaviour, just pipe the output through cat as non-interactive
terminals get the old output.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoknotty2: Handle long lines of text and terminal window size changes
Richard Purdie [Wed, 15 Aug 2012 16:00:40 +0000 (17:00 +0100)]
knotty2: Handle long lines of text and terminal window size changes

Long lines of text which wrapped on the terminal corrupted the output shown by
knotty2. This patch catches such errors by becomming aware of the terminal size.

It also catches terminal window size change events and adapting to those
changes using a signal handler.

Based on a patch from Jason Wessel with several tweaks and enhancements
such as use of chained signal handlers and covering all output messages.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild.py: Only execute mkdirhier if stampdir doesn't exist
Richard Purdie [Wed, 15 Aug 2012 15:57:47 +0000 (16:57 +0100)]
build.py: Only execute mkdirhier if stampdir doesn't exist

I noticed this was showing up on profile logs as a sigificant time user
in "bitbake bash" when bash was already built. It reduces the time from
5.2 to 4.5 seconds in my test environment.

We make use of the parser's mtime cache as once a directory exists,
we can assume it continues to exist and this avoids syscalls.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobb/ui/uihelper.py: Ensure task current and total numbers are updated for setscene...
Richard Purdie [Wed, 15 Aug 2012 15:59:57 +0000 (16:59 +0100)]
bb/ui/uihelper.py: Ensure task current and total numbers are updated for setscene events too

This avoids task (0 of 0) type messages being displayed during setscene by knotty2.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoknotty: Chain the WINCH signal handler in progressbar so any other handler is preserv...
Richard Purdie [Wed, 15 Aug 2012 15:58:46 +0000 (16:58 +0100)]
knotty: Chain the WINCH signal handler in progressbar so any other handler is preserved and called

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodata_smart: Fix unanchored regexp causing strange parsing issue
Richard Purdie [Fri, 3 Aug 2012 09:24:32 +0000 (10:24 +0100)]
data_smart: Fix unanchored regexp causing strange parsing issue

If this regular expression is unanchored, it would accept strings like:

do_install_append1
do_install_appendsomelongstring

and treat them like they were do_install_append. Clearly this isn't desirable.
Only one instance of this type of issue was found in OE-Core and has been fixed
so correcting the regexp should be safe to do.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoFix script location after mishandled merge
Richard Purdie [Fri, 3 Aug 2012 08:04:07 +0000 (09:04 +0100)]
Fix script location after mishandled merge

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocooker: fix OVERRIDES in BB_SIGNATURE_HANDLER (to override value from DISTRO.conf...
Martin Jansa [Thu, 2 Aug 2012 16:52:15 +0000 (18:52 +0200)]
cooker: fix OVERRIDES in BB_SIGNATURE_HANDLER (to override value from DISTRO.conf from local.conf)

We really need to pass the finalised data store into the parser init function
(and hence the siggen init function). This ensures any value changes get
passed into the correct code.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/local: Add search paths to the debug log to improve log usefullness
Richard Purdie [Thu, 2 Aug 2012 20:48:31 +0000 (20:48 +0000)]
fetch2/local: Add search paths to the debug log to improve log usefullness

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/local.py: Provide better debug output when fetch of a local file fails
Richard Purdie [Thu, 2 Aug 2012 20:41:02 +0000 (20:41 +0000)]
fetch2/local.py: Provide better debug output when fetch of a local file fails

When a fetch failure occurs for a local file, this patch ensures we print the
locations searched making it easier for the user to debug the problem.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqueue.py: Clean up runqueue exception catching in the normal task failure case
Richard Purdie [Thu, 2 Aug 2012 20:40:36 +0000 (20:40 +0000)]
runqueue.py: Clean up runqueue exception catching in the normal task failure case

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocontrib/dump_cache.py: dump recipe -> packages mapping from bb_cache.dat
Robert Yang [Wed, 1 Aug 2012 07:18:18 +0000 (15:18 +0800)]
contrib/dump_cache.py: dump recipe -> packages mapping from bb_cache.dat

Add the dump_cache.py to dump the "recipe -> packages" mapping for
target recipes form bb_cache.dat:

* Usage:
  dump_cache.py bb_cache.dat

* The format is:
    recipe_path pn pv packages
  For example:
    /path/to/gzip_1.5.bb gzip 1.5 gzip-dbg gzip-staticdev gzip-dev gzip-doc gzip-locale gzip

* Only save the mapping for the target recipe

* We can extend this to dump other informations when needed.

* Put this script to bitbake/contrib/ (not to oe-core) is because it
  needs the bb.cache.

[YOCTO #2741]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake-layers: fix help for show-overlayed to match behaviour
Paul Eggleton [Tue, 24 Jul 2012 11:41:24 +0000 (12:41 +0100)]
bitbake-layers: fix help for show-overlayed to match behaviour

show-overlayed actually lists the same recipe in multiple layers
regardless of priority, so change the help description to match.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: change the Build failure scenario as ui design
Liming An [Thu, 2 Aug 2012 11:06:02 +0000 (19:06 +0800)]
Hob: change the Build failure scenario as ui design

As ui design 'build-fail-spec.pdf' to change the GUI

[YOCTO #2183]

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoHob: log for Hob and allow users to show logs after successful build
Liming An [Thu, 2 Aug 2012 11:06:01 +0000 (19:06 +0800)]
Hob: log for Hob and allow users to show logs after successful build

If users build images in Hob, record logs and allow users to retrieve the lo
after successful build.

The logs are generated if and only if:
      - users do "just bake"
      - users do "build image" after "build packages"
      - users do "build packages" only

[YOCTO #1991]

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2: print checksums when they are different then expected
Martin Jansa [Tue, 31 Jul 2012 23:33:41 +0000 (01:33 +0200)]
fetch2: print checksums when they are different then expected

* in form which can be copied into a recipe without modification
* like oe-classic did since:
  http://git.openembedded.org/openembedded/commit/?id=68abc465559a68e9201c9525be3c4acc6297eaed
* it shows them in right form when they are missing completely, but in
  more verbose form when different
* it needs to print that only when checksums were requested, e.g.
  fetching from sstate mirror sets both md5mismatch and sha256mismatch,
  but your checksums shouldn't be shown

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2: handle broken symlinks in local mirror handling
Christopher Larson [Tue, 31 Jul 2012 22:20:14 +0000 (15:20 -0700)]
fetch2: handle broken symlinks in local mirror handling

If a file:// mirror is being used, the fetcher will create a symlink to the
local file. However, if the local file gets removed, that link will be dead,
and os.path.exists() returns False in that case, so it tries and fails to
recreate the link. Now we unlink such a dead link if it exists.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoknotty: ensure that directory for BB_CONSOLELOG exists before using it
Martin Jansa [Mon, 30 Jul 2012 11:11:46 +0000 (13:11 +0200)]
knotty: ensure that directory for BB_CONSOLELOG exists before using it

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/__init__.py: Add NoChecksumError exception
Mark Hatle [Sat, 28 Jul 2012 01:26:38 +0000 (20:26 -0500)]
fetch2/__init__.py: Add NoChecksumError exception

Without the new exception, when the system is configured to use premirrors,
but not allow network access (via BB_NO_NETWORK), when a recipe was lacking a
checksum the wrong error message(s) were being generated.

Instead of complaining about trying to perform network access, if the system
was able to find the item in the premirror, it should inform the user of the
lack of checksums, and the two SRC_URI fields they should use to update their
recipe.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob: deal event DiskFull
Kang Kai [Fri, 27 Jul 2012 08:38:03 +0000 (16:38 +0800)]
hob: deal event DiskFull

Part of [Yocto #2168]

When bitbake runqueue is teminated by disk monitor, it will send event
DiskFull. Update to handle it.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomonitordisk: fire event DISKFULL when terminate build
Kang Kai [Fri, 27 Jul 2012 08:38:02 +0000 (16:38 +0800)]
monitordisk: fire event DISKFULL when terminate build

Part of [Yocto #2168]

Add a event DiskFull to descript the termination by disk monitor.

Update check() to fire the event DiskFull when terminates the build.
This could help UIs to deal this scenario and show more information to
end user.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch/local: Allow preservation of path components in relative file:// urls
Richard Purdie [Wed, 25 Jul 2012 19:04:45 +0000 (19:04 +0000)]
fetch/local: Allow preservation of path components in relative file:// urls

This enhances the fetcher to allow preservation of the path component in urls
like: file://xxx/yyy/somefile.patch.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqueue.py: Wipe out the stamp cache between setscene and main task execution
Richard Purdie [Wed, 25 Jul 2012 19:03:44 +0000 (19:03 +0000)]
runqueue.py: Wipe out the stamp cache between setscene and main task execution

The stamp files can change during setscene and the cache should be cleared to
account for this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqueue.py: Allow the setsceneverify function to have a list of tasks that are inval...
Richard Purdie [Wed, 25 Jul 2012 18:58:06 +0000 (18:58 +0000)]
runqueue.py: Allow the setsceneverify function to have a list of tasks that are invalid and need to run

There was some odd behaviour if some task was run from setcene whilst there were
existing valid stamps for a depepdency. For example, do_populate_sysroot might
be installed at setscene time but if there were other tasks not installed from
setscene such as do_populate_lic which depend on do_configure, the setsceneverify
function would think that do_configure needed to be rerun and would hence void the
do_populate_sysroot and force that to rerun too.

The setsceneverify function needs to know which tasks are going to be rerun, not just
what the overall task list is and what setscene functions have run. This patch adds
that information and maintains backwards compatibility in a slightly ugly but effective
way. The metadata needs updating to take advantage of this change.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqueue.py: Ensure one setscene function doesn't mask out another which needs to run
Richard Purdie [Wed, 25 Jul 2012 18:56:00 +0000 (18:56 +0000)]
runqueue.py: Ensure one setscene function doesn't mask out another which needs to run

The scenequeue code could result in one setscene function masking out another
which had been marked as notcovered. This change ensures the notcovered list
is taken into account when deciding which tasks need to be run, ensuring
that tasks that should be run do get run.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqueue.py: Optimise the hashvalidate call to only process tasks we may actually...
Richard Purdie [Wed, 25 Jul 2012 18:48:41 +0000 (18:48 +0000)]
runqueue.py: Optimise the hashvalidate call to only process tasks we may actually want

Currently we call the hashvalidate for anything without a valid setscene stamp.
This improves the code to account for existing stamp files so that we only process
setscene hashes for things we might actually end up using. This avoids hash processing
and makes things slightly more efficient and the logs less confusing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqueue.py: Gracefully exit if an exception occurs in the runqueue execution code
Richard Purdie [Wed, 25 Jul 2012 18:43:53 +0000 (18:43 +0000)]
runqueue.py: Gracefully exit if an exception occurs in the runqueue execution code

There was a bug where an exception in the runqueue code would cause an infinite loop
of debug messages. The exception would get reported but would loop since runqueue was
still registered as an idle handler.

This patch adds an exception handler to ensure in the case of errors, the system
more gracefully shuts down and doesn't loop.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqueue.py: Fix a stamp comparision bug
Richard Purdie [Wed, 25 Jul 2012 18:40:38 +0000 (18:40 +0000)]
runqueue.py: Fix a stamp comparision bug

We check the stamp cache before comparing t2 and t3 which means that we can miss
a level in the stamp file chains. The result of this is that a stamp can be accepted
as valid when in fact it isn't. Some weird behaviour alerted me to this in a local
build.

This patch also fixes to only uses the cache in recurse mode, there was a corner
case where stamps not in recurse mode could get added to the cache which could cause
an issue potentially.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake wget fetcher: add parameter: downloadfilename
Nitin A Kamble [Thu, 19 Jul 2012 00:39:18 +0000 (17:39 -0700)]
bitbake wget fetcher: add parameter: downloadfilename

this allows wget fetcher to store the downloaded file in a specified custom filename in ${DL_DIR}

Exmaple:
SRC_URI = "https://edc.intel.com/Download.aspx?id=6190;downloadfilename=LIN_IEMGD_1_14_GOLD_2443.tgz"

This fixes bug:
[YOCTO #2570]

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoChange bzr fetcher to use branch instead of co. Fixes: bzr: ERROR: No pull location...
Martin Ertsaas [Thu, 19 Jul 2012 11:26:25 +0000 (13:26 +0200)]
Change bzr fetcher to use branch instead of co. Fixes: bzr: ERROR: No pull location known or specified.

This problem occurs when fetching a different revision of the same source. Which mean every time you update a bzr package.
Using branch sets the pull location, and are the preferred way of cloning/branching a repository in bzr.

Signed-off-by: Martin Ertsaas <mertsas@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocooker.py: Ensure we track parser errors and only show bbappend issues on complete...
Richard Purdie [Mon, 23 Jul 2012 16:26:06 +0000 (16:26 +0000)]
cooker.py: Ensure we track parser errors and only show bbappend issues on complete parse

Currently if any parsing failure occurs, there can be a long list of
bbappends that are "dangling" based on the fact that recipes were not
parsed. This change firstly ensures the error counter is incremented
and secondly that the bbappends list is only shown on a completed
parse list.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoUpdate version to 1.15.3 1.15.3
Richard Purdie [Thu, 19 Jul 2012 08:54:13 +0000 (09:54 +0100)]
Update version to 1.15.3

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: Warn upon finding tab indentation in python functions
Richard Purdie [Wed, 18 Jul 2012 11:35:11 +0000 (11:35 +0000)]
bitbake: Warn upon finding tab indentation in python functions

Mixed spacing in python functions can cause subtle issues and
generally confuses users. We've standardised on 4 space indentation,
adding this warning helps ensure consistency and avoid bugs. It
also makes _prepend and _append operations on python functions slightly
less risky.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/svn.py: Use protocol parameter to get the protocol
Martin Jansa [Tue, 17 Jul 2012 22:38:19 +0000 (00:38 +0200)]
fetch2/svn.py: Use protocol parameter to get the protocol

* it was send in v1 of proto -> protocol changes but then wasn't in V2
  http://patchwork.openembedded.org/patch/31617/
  where warning about proto= was moved to shared __init__

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohob2: add elf to hcc supported image types
Kang Kai [Tue, 17 Jul 2012 06:58:52 +0000 (14:58 +0800)]
hob2: add elf to hcc supported image types

[Yocto #2709]

OE Core Commit c9b01af84b64edba056f959c349895e0698324e6 add elf image
type. This will cause hob build image failed.
Add elf to hcc supoorted image types to fix this issue.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosiggen.py: Insure .siginfo files writes into shared sstate cache are atomic
Jeffrey C Honig [Tue, 17 Jul 2012 00:48:57 +0000 (20:48 -0400)]
siggen.py: Insure .siginfo files writes into shared sstate cache are atomic

   Use tempfile.mkstemp to create a temporary file in the sstate dir and move it
   into place after closing.  The previous code would fail in the chmod() if two
   users were running jobs that touched the same signature file.

Signed-off-by: Jeffrey C Honig <jeffrey.honig@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqueue.py: Improve error output to be more useful when non-existent tasks are found
Richard Purdie [Mon, 16 Jul 2012 14:57:22 +0000 (15:57 +0100)]
runqueue.py: Improve error output to be more useful when non-existent tasks are found

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/__init__.py: Warn user if SRC_URI is using "proto" and not "protocol"
Andrei Gherzan [Tue, 10 Jul 2012 21:34:17 +0000 (00:34 +0300)]
fetch2/__init__.py: Warn user if SRC_URI is using "proto" and not "protocol"

As well, if "proto" is used, get the associated value as "protocol"

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/bzr.py: Use "protocol" parameter to get the protocol
Andrei Gherzan [Tue, 10 Jul 2012 21:34:16 +0000 (00:34 +0300)]
fetch2/bzr.py: Use "protocol" parameter to get the protocol

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/hg.py: Use "protocol" parameter to get the protocol
Andrei Gherzan [Tue, 10 Jul 2012 21:34:15 +0000 (00:34 +0300)]
fetch2/hg.py: Use "protocol" parameter to get the protocol

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/osc.py: Use "protocol" parameter to get the protocol
Andrei Gherzan [Tue, 10 Jul 2012 21:34:14 +0000 (00:34 +0300)]
fetch2/osc.py: Use "protocol" parameter to get the protocol

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: Abort build if runtime dependency conflict
Wenzong Fan [Wed, 11 Jul 2012 03:28:11 +0000 (11:28 +0800)]
bitbake: Abort build if runtime dependency conflict

Currently if there are multiple preferred providers available for
a runtime dependency, bitbake will print an Error message and let
the build go on. Anyways the build should abort while any Errors
occured.

[YOCTO #2734]

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/wget: Use FETCHCMD_wget to provide the commandline and options
Richard Purdie [Mon, 9 Jul 2012 16:44:08 +0000 (16:44 +0000)]
fetch2/wget: Use FETCHCMD_wget to provide the commandline and options

This also changes to use  -t 2 -T 30 as the defaults which are more sane for
a modern fetcher and already specified in OpenEmbedded metadata.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/cvs.py: Switch to use FETCHCMD_cvs and handle parameters in the fetcher itself
Richard Purdie [Mon, 9 Jul 2012 16:43:27 +0000 (16:43 +0000)]
fetch2/cvs.py: Switch to use FETCHCMD_cvs and handle parameters in the fetcher itself

This brings the cvs fetcher more into line with the others and allows consistent usage
of the FETCHCMD variable and option handling.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake/cooker: Print which pkgs would be built in -g output
Robert Yang [Thu, 21 Jun 2012 02:28:54 +0000 (10:28 +0800)]
bitbake/cooker: Print which pkgs would be built in -g output

This is for giving the user a clear list to show which pkg would be
built, we have the "bitbake -g", but it is not easy to read for people,
it is for "dot". Improve the "bitbake -g" to also save a pn-buildlist:

$ bitbake -g core-image-sato
...
NOTE: PN build list saved to 'pn-buildlist'
[snip]

The contents of pn-buildlist:

busybox
shadow-native
pth
sysfsutils
qemu-helper-native
curl-native
ncurses-native
gdbm
xserver-xorg
linux-libc-headers
[snip]

[YOCTO #2404]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agousermanual: Fix missing markup
Robert P. J. Day [Thu, 5 Jul 2012 23:58:52 +0000 (19:58 -0400)]
usermanual: Fix missing markup

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodata_smart: Fix multiple override interaction with append and prepend operators
Richard Purdie [Wed, 4 Jul 2012 15:47:52 +0000 (15:47 +0000)]
data_smart: Fix multiple override interaction with append and prepend operators

Variables which used multiple overrides and the append/prepend operators were
not functioning correctly. This change fixes that.

This fixes the testcase:

OVERRIDES = "linux:x86"
TESTVAR = "original"
TESTVAR_append_x86 = " x86"
TESTVAR_append_x86_linux = " x86+linux"
TESTVAR_append_linux_x86 = " linux+x86"

[YOCTO #2672]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqueue.py: Fix recursive task pruning to only prune self referencing tasks
Richard Purdie [Wed, 4 Jul 2012 16:39:11 +0000 (16:39 +0000)]
runqueue.py: Fix recursive task pruning to only prune self referencing tasks

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofetch2/svn: Enhance to cope with subversion 1.7 upgrade
Richard Purdie [Mon, 2 Jul 2012 20:23:04 +0000 (21:23 +0100)]
fetch2/svn: Enhance to cope with subversion 1.7 upgrade

svn changed working checkout formats between 1.6 and 1.7. Its convoluted to
detect what format a given working copy is in so the simplest solution is simply
to run "svn upgrade" within the working copy.

The base svn command variable is relocated slightly to enable this new code to
work effectively.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>