summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2012-09-27hob/recipeselectionpage: recipes should not be shown brought in by themselvesCristiana Voicu
[YOCTO #3107] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-27fetch2: add "-d" option to cpioRobert Yang
Add "-d" option to cpio since it is useful: -d --make-directories Create leading directories where needed. [YOCTO #3137] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-27Multiple user interface fixes in settingsBogdan Marinescu
1. Move the "Others" tab from advanced settings to simple settings 2. Organize content of tabs into headings 3. Match various labels in the settings with the design 4. Clean up config_md5 in both simple and advanced settings This patch implements a part of the changes requested by Belen in the settings dialogs. The second version of the patch addresses all the UI changes requested by Belen (more details are in the bug description): alphabetical ordering of the image types and warnings if no image type is selected. [YOCTO #2162] Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-27hob/runningbuild: Add missing logging level argumentConstantin Musca
[YOCTO #3170] Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-27Add sanity check progress screenBogdan Marinescu
This patch adds a sanity check progress screen to hob. The screen is displayed when Hob executes the sanity check procedure. The screen is displayed for at least 5 seconds. If a network error is detected, a special dialog is displayed which lets the user open the proxy configuration page directly. Note that currently bitbake triggers the network tests only when the value of its TMPDIR variable changes, which happens fairly rare on my system. This is the subject of another bug (#3026). Version 2 of the patch splits the changes in two parts (sanity.bbclass belongs to oe-core). [YOCTO #3025] Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-27hob/builddetailspage: change branch fieldCristiana Voicu
When a user makes a build from a tarball, it shows fatal error in branch field. Now it not complains as a fatal error. It is a normal message. [YOCTO #3114] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-27hob: Buttons width and height are taken for hostIoana Grigoropol
- removed all set_size_request calls for buttons in order to: - force autosizing of buttons with regard to the text length - use host theme default height for buttons - modified buttons on image details page to have the same height (default host one) and the width of the button with the largest text - modified Stop button on build details page to have the default height by directly attaching it to the containing table instead of hbox Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-27hob/settings: implement a new tab in settings dialog to show SSTATE_MIRRORSCristiana Voicu
Add a new tab to show correctly SSTATE_MIRRORS variable. Now you can add new mirrors or delete mirror. "info" image was also changed( it is smaller, so it can be next to labels). >From "Build environment" tab, SSTATE_DIR and SSTATE_MIRRORS vars were removed. [YOCTO #2893] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-25fetch2/git: Don't use deprecated APIRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-25hob/packageselectionpage:cancel button should redirect to Image conf screenCristiana Voicu
Cancel button brings you to Image configuration page. [YOCTO #3105] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-25hob/builddetailspage: change tooltips and remove a dialog from "Build ↵Cristiana Voicu
stopped" message When you stop a build, a "Build stopped" message appears. I have changed 2 tooltips and also eliminate the alert that comes up when you click 'Edit packages'. [YOCTO #3160] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24event.py, knotty.py, ncurses.py, runningbuild.py: Add support for LogExecTTY ↵Jason Wessel
event The LogExecTTY even is intended to provide the ability to spawn a task on a the controlling tty, if a tty is availble. When a controlling tty is not availble the previous behavior is preserved where a warning is issued about the action an end user must execute. All the available UI's were tested against the new event type. This feature is primarily intended for hooking up a screen client session automatically on the controlling tty to allow for a more streamlined end user experience when using a pure command line driven environment. The changes that send the LogExecTTY event are in the oe-core side. Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24progress.py: Fix traceback when running goggle uiJason Wessel
The following traceback appears when running the following command after the devshell is exited. bitbake -u goggle -c devshell busybox -- traceback -- Traceback (most recent call last): File "/work/bitbake/lib/bb/ui/goggle.py", line 35, in event_handle_idle_func build.handle_event (event, pbar) File "/work/bitbake/lib/bb/ui/crumbs/runningbuild.py", line 299, in handle_event pbar.set_text(event.msg) AttributeError: 'ProgressBar' object has no attribute 'set_text' Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24runqueue: Add --no-setscene to skip all setscene tasksJason Wessel
Mainly intended for the purpose of debugging or forcing builds from source, the --no-setscene will prevent any setscene tasks from running. Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24fetch2/git: Add missing mkdirRichard Purdie
bitbake-selftest is failing due to directories not being created. This adds in an appropriate mkdir so the tests can complete. Presumably in general OE use, something else is ensuring the parent directory is created. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24fetch2: improve error output for checksum failuresPaul Eggleton
* Don't print the full exception in the initial warning - if we later succeed in fetching the file from a mirror, we won't usually need the details (which are in the fetch log if they are needed); otherwise the full error will be printed when the fetch operation fails. Also adjust the conditional block so that we don't print another warning just mentioning we're going to try mirrors. * Call logger.error() so that with knotty the full log is not printed * Provide an explanation around the lines we print for easily updating the checksums in the recipe. We don't want users to be just blindly updating the recipe in case of a transient failure or deliberately altered remote file. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24fetch2: make fetch failure errors more readablePaul Eggleton
Most of the time we don't need to see the fetch command; the fetch log includes the command as a debug message in any case, so omit it. Also adjust the way command output is printed (we don't need stderr/stdout labelled, and print "no output" instead of "output:\nNone" when there is no output. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24lib/bb/runqueue.py: fix exceptions with -k and failed targetsPaul Eggleton
If a target dependency is marked as failed and yet we are continuing on because -k has been specified, don't try to access the dependency's data in taskData.build_targets since it will have been removed. This fixes "IndexError: list index out of range" errors in this situation. Also, do not print the "unhandled exception" message when SystemExit is raised since we will have reported the actual error already in this case (e.g. when -k has been specified and some targets failed). Fixes [YOCTO #3133]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24hob: fix Gtk-WARNINGs due to invalid markup on Back buttonPaul Eggleton
You can't use markup characters (e.g '<' or '>') in the labels for many widgets - you must use the appropriate entities instead. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24hob: remove confirmation dialog on closePaul Eggleton
This is not necessary for modern applications - instead we just need to check if we're in the middle of a build and if so, do the same thing as pressing the "Stop" button. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24hob: allow configuring default machine using HOB_MACHINEPaul Eggleton
Allow specifying HOB_MACHINE in local.conf to set the initially selected machine. With this set, Hob will select the specified machine and then jump straight into parsing recipes. If you do wish to change the selected machine with HOB_MACHINE set you still can - you just need to stop the parsing process first. Fixes [YOCTO #3148]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24hob: don't show error dialog for errors during buildingPaul Eggleton
During building we already report errors in a special tab and indicate when the build has failed; bringing up a dialog was a regression introduced in bitbake revision 5bab81b124087d63d6eb62a861e1241714fcd483. Fixes [YOCTO #3151]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24hob: The title of the packages screen depends on the screen you arrive fromConstantin Musca
- If you arrive to the packages screen from the recipes screen, the title should say: 'Step 2 of 2: Edit packages' - If you arrive to the packages screen from the image details screen, the title should say: 'Edit packages' - The title of the recipes screen should say 'Step 1 of 2: Edit recipes' [YOCTO #2982] Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20hob: Don't set busy cursor on the root window, just our windowRoss Burton
[ YOCTO #3127 ] Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20hob: add a top bar when building process is stoppedCristiana Voicu
When a build was stopped, it wasn't obvious what to do next. Now, on the page it appers a top bar with 3 buttons: "edit image", "open log", "build new image" [YOCTO #2537] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20cooker: Clarify package/recipe wordingTrevor Woerner
When the '-s' option is run, change the heading above the list of recipes to say "Recipe Name" instead of "Package Name". Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20hob/packageselectionpage: "Cancel" button returns to "Image configuration" ↵Cristiana Voicu
screen Once package building completes, you can customise the list of packages that will go into the final image. Once you have made the changes you need, you can either build your image, or you can exit the process and go back to the 'Image configuration' screen by selecting 'Cancel'. [YOCTO #3105] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20hob: report event handler failuresPaul Eggleton
If an event handler failed we were not recieving an error message - parsing just "froze" at 99%. This is because we were expecting a CommandFailure event and this never happened in the case of RequestPackageInfo which is where the failure was occurring. This also required tweaking the error formatting slightly, taking the return value of the format function rather than the message property since the latter only seems to contain the first line without the traceback in the case of event handler failure. Other error cases were tested and their message formatting is unaffected by this change. Final part of the fix for [YOCTO #2651]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20hob/settings: Remove stray "distro" combobox from simple settingsBogdan Marinescu
The "distro" combobox was moved to advanced settings, but it was also present in simple settings. This patch removed it from simple settings. Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20build/siggen: Add support for stamp 'clean' masksRichard Purdie
Currently when we execute a task, we don't remove other potentially stale stamps. This can mean if you switch between two different versions of a recipe without a clean, the build can get very confused. This patch adds in functionality to allow a wildcard expression of stamp files to be removed when creating a new stamp file. This patch adds in the core of the code to enable this but it also requires metadata support to enable it. When writing this improvement I went through several different options but this was the only way I could find to allow things like noexec tasks to function correctly (where stamps need to be created without the data store). [YOCTO #2961] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20fetch2/cvs: Fix parameter spacingRichard Purdie
Add in misssing space between the parameters. Reported by Jate Sujjavanich <Jate.Sujjavanich@myfuelmaster.com>. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20fetch2/cvs: Clean up various data store referencesRichard Purdie
The code in the CVS fetcher is elderly and there are simpler ways of using the data store. This updates to use the modern APIs. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20fetch2/cvs: Fix localdata variable referenceRichard Purdie
The localdata variable was removed, fix up a lost reference to this. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20hob: Fix settings dialog issuesBogdan Marinescu
Fix some issues with the settings dialog that were introduced as a result of merging the fix for #2162. [YOCTO #3117] Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20hob: rename 'View log' to 'Open log'Constantin Musca
Rename all the 'View log' buttons to 'Open log' for consistency. [YOCTO #3045] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20compat, event: use OrderedDict from py2.7 for the event handlersChristopher Larson
This ensures that our event handlers get run in registration order, making the behavior more deterministic. I pulled in the python2.7 OrderedDict to avoid essentially reimplementing a version of it ourselves, figuring we can drop it when we bump our required python version next. Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-14Implement 'settings' dialog as designedValentin Popa
[YOCTO #2162] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-14cooker: Fix priority for virtual recipesRichard Purdie
When making filename comparisons for recipes for priority calculations, we need to split off any virtual prefix. Without this, BBCLASSEXTEND version of recipes don't follow the priority settings they should. [YOCTO #2933] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-14hob/builddetailspage: Add tooltips to the build failed notificationConstantin Musca
[YOCTO #3046] Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-14lib/bb/event: improve handling of event queue on exitPaul Eggleton
If BitBake exits before a UI handler (server) has been registered, we print the event queue; if there are any errors or other non-debug messages just print these and suppress the rest of the message queue. This improves the output when sanity check failures occur with OE-Core by avoiding printing a long stream of uninformative debug messages. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-14hob: format error messages properlyPaul Eggleton
Error messages that use arguments need to be formatted properly, or we don't get the full message. Use a formatter to do this when an error occurs. Partial fix for [YOCTO #2983]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-14hob/imagedetailspage: change "FileCreated" label to "Files created"Cristiana Voicu
[YOCTO #2998] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-14Fixed hob proxy tab tooltip text per review suggestions [YOCTO #2499]Jessica Zhang
Signed-off-by: Jessica Zhang <jessica.zhang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-14hob: sort base image drop-down listPaul Eggleton
Sort the list of base images to make it easier to find a specific image in the list. Note that "Create your own image" still remains the last item in the list. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-14lib/bb/command.py: ensure setVariable only sets values as stringsPaul Eggleton
This is the interface Hob uses to set variable values in many instances, and at the moment it is possible that some of the values it passes are not strings. If a non-string value gets into the datastore it can trigger exceptions during parsing when we attempt to expand the variable and substitute in the non-string value. This fixes using the meta-ti layer within Hob - it currently has a reference to BB_NUMBER_THREADS within a shell function and since this is a variable that Hob was setting from its configuration as an integer, due to the above this was triggering an ExpansionError. Fixes [YOCTO #2875]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-14hob: don't reorder layers listPaul Eggleton
We cannot reorder this list - it must stay in the order shown in the dialog (which may in future be configurable by the user). Fixes [YOCTO #2649]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-10hob/packageselectionpage: restore selected packagesCristiana Voicu
After "Cancel" action, selected packages are restored to default. [YOCTO #2984] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-10hob: rename task -> packagegroup in recipe selectionPaul Eggleton
This changes the filtering to use the inheritance of packagegroup.bbclass to determine if a recipe is a package group. Also makes the tab tooltip text generic; these recipes could come from any enabled layer, not just the default ones. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-10hob: ensure error message text is properly escapedPaul Eggleton
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>
2012-09-10hob: use correct semantics for dealing with pkgdataPaul Eggleton
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>