summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2012-11-19hob: warnings during the build should be displayed in the Issues tabCristiana Voicu
Any issues encountered during the build (fatal or not) is displayed in the Issues tab, and the total number of issues is changed. [YOCTO #3376] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-19runqueue: Allow partial setscene task coverageRichard Purdie
When the setscene code was originally written it was thought that we'd allow "partial" coverage. For example, if we just want to build the target "bash:do_populate_sysroot" and its available from sstate, it makes no sense to install gcc-cross's sstate package as its simply not needed. Due to various other issues in the codebase, this functionality was disabled/removed to allow the setscene code and sstate to stabilise and allow us to concentrate on other problems. The time has now come to enable "partial" coverage. There are two major changes in this patch: a) Creation of an unskippable list. This lists direct dependencies of build targets and hence things that cannot be skipped. b) Addition of a handler which looks at a given setscene target and what depends on it and then decides whether its necessary. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-19parse/cache/cooker: Preserve order in the file inclusion listRichard Purdie
The data returned by get_file_depends() may me used in contexts like checksums where order is important. The current usage of sets means that some of the checksums can change in circumstances they should not. This patch changes to use lists, thereby removing the problem. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-14knotty: kill duplicated import of 'time'Christopher Larson
The duplicated import could result in an UnboundLocalError. Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-13print clear message for "bitbake -e ASSUME_PROVIDED"Robert Yang
"bitbake -e ASSUME_PROVIDED" should fail, but the error message wasn't clear enough in the past: $ bitbake -e bzip2-native [snip] ERROR: Command execution failed: Traceback (most recent call last): File "/buildarea/lyang1/poky/bitbake/lib/bb/command.py", line 94, in runAsyncCommand commandmethod(self.cmds_async, self, options) File "/buildarea/lyang1/poky/bitbake/lib/bb/command.py", line 323, in showEnvironmentTarget command.cooker.showEnvironment(None, pkg) File "/buildarea/lyang1/poky/bitbake/lib/bb/cooker.py", line 325, in showEnvironment fnid = taskdata.build_targets[targetid][0] KeyError: 0 [snip] With this patch, the massage will be: [snip] ERROR: bzip2-native is in ASSUME_PROVIDED ERROR: Command execution failed: Exited with 1 Summary: There were 2 ERROR messages shown, returning a non-zero exit code. [YOCTO #3392] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-13hob: hob was freezing because it doesn't receives well the log fileCristiana Voicu
-after pressing "build image" button, hob was freezing because it didn't receive well the log file [YOCTO #3398] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-01command: add error to return of runCommandChristopher Larson
Currently, command.py can return an error message from runCommand, due to being unable to run the command, yet few of our UIs (just hob) can handle it today. This can result in seeing a TypeError with traceback in certain rare circumstances. To resolve this, we need a clean way to get errors back from runCommand, without having to isinstance() the return value. This implements such a thing by making runCommand also return an error (or None if no error occurred). As runCommand now has a method of returning errors, we can also alter the getCmdLineAction bits such that the returned value is just the action, not an additional message. If a sync command wants to return an error, it raises CommandError(message), and the message will be passed to the caller appropriately. Example Usage: result, error = server.runCommand(...) if error: log.error('Unable to run command: %s' % error) return 1 Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-01hob: providing details about process state through porgress barCristiana Voicu
-small changes to the text of the progress bar when parsing recipes [YOCTO #3282] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-30bitbake/server: Remove dead console log codeRichard Purdie
This code is dead and doesn't do anything so lets remove it. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-30cooker.py: Don't dump the environment into the console log fileRichard Purdie
Dumping the environment data into the console log files directory is invariably not what the user wants or expects and leads to confusion when looking at the log directory. This change forces the logs to be disabled by default when using the -e option. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-30uihelper: Set update flag when start event encounteredRichard Purdie
Its a minor correctness detail but the update flag should be set when Start events are encountered. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-30knotty: Ensure last tasks are disaplyed correctly in the footerRichard Purdie
There was an issue where the last tasks run by bitbake would not correctly get displayed in the knotty footer. This was due to the total count including active tasks. This change ensures the footer is displayed if the are any running tasks. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-27hob: reordering the layers in the Hob Layers dialogCristiana Voicu
-since the order of the layers can potentially impact the build outcome, users should be able to reorder the layers within the layers dialog; -used TreeView Drag and Drop [YOCTO #3270] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-27hob/hig: Hob doesn't save properly proxy settingsCristian Iorga
User introduced proxy settings were not saved when a proxy details input dialog was opened. The proxy settings were lost upon return, and restored from the previously stored one. Also: Code cleanup: details_cb() function duplicate definition removed Fixes [YOCTO #3240] Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-27hob: during recipe parsing, progress bar text provides details about the ↵Cristiana Voicu
process state - indicating on progress bar that hob has gone from parsing recipes to "Generating dependency tree"; this will provide some visibility of what has caused the "stop" button state to change [YOCTO #3282] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-27hob: add a progress indicator when you select 'view log'Cristiana Voicu
- created a new file named "hobthreads.py", defining a thread for opening the log file in a subprocess using subprocess module; in the future I think we will add some other threads here, to implement some other performance issues - on "builddetailspage", "packageselectionpage" and "imagedetailspage" I have changed the manner for opening the log file; it uses the thread to open the file, and on main thread it creates a dialog to show a progress bar, which pulses till the file is open - this was added because when the log file is big, it takes time to be opened; on the dialog you can use "Cancel" button to terminate the process initiated to open the file [YOCTO #2997] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-25bitbake: hob/builder: Hob crashes because of bad initCristian Iorga
Image selection is not properly initialized to none, and it used before having a chance to have a value. Due to dynamic nature of Python, variable is used before it exists, in this case. This causes a crash. Bug introduced during the fix of [YOCTO #3228] Fixes [YOCTO #3334] Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-24hob/settings: add a scroll bar for the box with mirrorsCristiana Voicu
- added a scroll bar in the shared state tab from settings - added a signal on it, so when you add a new mirror, it will auto-scroll to the end of the list [YOCTO #3229] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-24bitbake: hob/builder: Image selection is remembered while changing adv settingsCristian Iorga
Image selection is remembered correctly even after advanced settings have been changed. Selected image was reset even when it was not the case. Fixes [YOCTO #3228] Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-24hob/builddetailspage: set "Log" page as defaultCristiana Voicu
- when you do a build you should see "Log" page, not "Build configuration" page [YOCTO #2569] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-24hob/imageconfigurationpage: progress bar shows when recipe parsing is stoppedCristiana Voicu
-when the recipe parsing process is stopped, the progress bar shows "Stopping recipe parsing" [YOCTO #3259] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-24bitbake: hob/hobwidget: "Brought in by" column is now displayed correctlyCristian Iorga
In "Edit Recipes" and "Edit packages" pages, the "Brought in by" column is displayed correctly, with the right number of additional packages and a proper title. Fixes [YOCTO #2195]. Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-24hob: stop build without percentage shownAndrei Dinu
added a method in progressbar.py that doesn't update the percentage in the progress bar shown in hob. the call of the method is done in builder.py. Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-24hob: change behavior for "cancel" button from the Recipe selection pageCristiana Voicu
-when returned to the Image configuration page, after canceling on the Recipe selection page, the image selected previously is now shown corectly [YOCTO #3205} Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-24hob: image size displayed wrong size in edit packages screenAndrei Dinu
size_str = '%.1f' % (size*1.0/(1024*1024)) + ' MB' from /bitbake/lib/bb/ui/crumbs/hobpages.py file transformed the size in MB. In our file it was again multiplied by 1024 instead of doing a division by 1024, which brought a faulty size on the edit packages screen. Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-11event/hob: Add a button for network tests in the proxy settingsBogdan Marinescu
This patch allows the user to check the network connectivity in the "Proxy" page ("Settings" dialog) by adding a button which provides this functionality. It also disables retrigerring sanity checks if the proxy values are changed, since now the proxy checks are explicit. Note that this patch depends on a patch in oe-core ("sanity.bbclass: trigger network tests explicitly"). It will not work properly if the patch in oe-core is not merged. [YOCTO #3026] Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-09hob-toolchain: task-core-standalone-sdk-target renamed to ↵Andrei Dinu
packagegroup-core-standalone-sdk-target This change also applies to task-core-standalone-sdk-target-dbg and resolves build failures caused by the missing packages. Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-08hob/imageconfigurationpage: a 'hob-image' appears listed in the base image ↵Cristiana Voicu
combo box -remove this image from image combo box [YOCTO #3230] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-08hob/hobeventhandler: Describe the runCommand failure exceptionConstantin Musca
[YOCTO #1245] Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-04hob/hobeventhandler: Throw an exception if runCommand failsConstantin Musca
- throw a Hob exception if runCommand returns 'Busy' or 'No such command' [YOCTO #1245] Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-03hob/imagedetailspage: disable the deploy tool for qemu machinesConstantin Musca
- qemu images cannot be deployed to hardware, even if live images (hddimg and iso) files are created [YOCTO #3196] Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-03hob/settings: alignment and spacing fixes on "Shared state" tabCristiana Voicu
-alignment and separation on vertical and horizontal axis -change controls width [YOCTO #3188] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-03hob/image_details/run_image: Kernel must be setIoana Grigoropol
- when displaying image details, even if the kernel information is not shown, the kernel value must be set (if dealing with qemu) otherwise running the image will throw an error Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-03fetch2: raise an exception if user specifies protocol=git with http://Paul Eggleton
It is a common mistake to use http:// and protocol=git when attempting to fetch from a git repository using the http protocol; if this is detected then throw an error explaining that you need to use git:// with protocol=http instead. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-03providers.py: Fix PREFERRED_VERSION containing epochsRichard Purdie
For some reason the code calls int() on the epoch component of any PREFERRED_VERSION. Since this is compared against strings, the comparison would always fail. This removes the stray cast and allows epochs in preferred_version to work correctly. [YOCTO #3187] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02hob/hobpages: Generate the title label every timeConstantin Musca
- the title label is destroyed at page switching (that's why we need to generate it every time) [YOCTO #3195] Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02hob: Improved behavior for error reporting windowCristian Iorga
Scrollbars have now an automatic behavior, depending on the error's text size and error window size. Fixes [YOCTO #2983] Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02Update version to 1.16.01.16.0Richard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02hob: Further improvements to hob dialogsBogdan Marinescu
1. Replace some labels in the "Build environment" tab 2. 'defaultsetup' changed to 'Default' in the "Image types" tab 3. Fixed the moving icon in the "Output" tab For more details: https://bugzilla.yoctoproject.org/show_bug.cgi?id=2162 [Yocto #2162] Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02hob: Fix 'User selected' tag functionalityConstantin Musca
- the 'User selected' tag is only used when the user selects a package - fix hob to remember which packages are 'User selected' - if the package is already brought in by some other package, it should not appear as 'User selected' [YOCTO #3108] Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02hob/settings: Change the 'Delete' button behaviour in the shared state ↵Cristiana Voicu
settings tab -the tab shows an empty mirror row when no mirror is configured -able to delete the mirror row even if it's not empty(if it's not the first mirror) [YOCTO #3189] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02hob/image_details: Remove kernel info from detailsIoana Grigoropol
- removed kernel information from image details [Yocto #3002] Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02tests/utils: Add test for explode_dep_versions2Richard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02utils: Add explode_dep_versions2 to replace explode_dep_versionsRichard Purdie
The API for explode_dep_versions is flawed since there can only be one version constraint against any given dependency. This adds a new function with an API without this limitation. explode_dep_versions() is maintained with a warning printed when its used in a situation where information is lost. This should allow a simple transition to the new API to fix the lost dependency information. join_deps() is updated to deal with data in either format. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02utils.py: Allow explode_dep_versions comparisons to have arbitrary whitespaceMark Hatle
Refactor the explode_dep_versions to be more lenient on whitespace values. The required format is: foo (= 1.10) foo (=1.10) foo ( = 1.10) foo ( =1.10) foo ( = 1.10 ) foo ( =1.10 ) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02utils.py: Check for duplicate dependency entriesMark Hatle
explode_dep_versions is not able to have duplicate entries. Previously duplicate entries ended up with the last item being the one returned to the caller. We now detect a collision. We do allow an empty item to have a comparison added to it, or a duplicate with the same comparison without error. When a collision is detected a ValueError exception is thrown. Allowed: foo foo (= 1.12) foo Invalid: foo (= 1.12) foo (= 1.13) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-28Fix bad merge of #2162Bogdan Marinescu
This patch fixes the bad merge of #2162 fixes on master. Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-28hob: Error reports are done in a clearer wayCristian Iorga
For long errors (bigger than 200 letters), the text box is scrollable and resizable and text is selectable. Additionaly, all message dialogs are modal. Otherwise, a user could still interact with hob even in an error case, leading to potential problems. See design details in related bugs. Fixes [YOCTO #2960], [YOCTO #2983] Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-28hob/builddetailspage: fix failure_primary_action_button_clicked_cbConstantin Musca
[YOCTO #3194] Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-28hob/builddetailspage: remove "back" buttonCristiana Voicu
When a build fails, there should not be a back button on the screen. All available actions are provided within the failure notification, so no back button is needed. [YOCTO #3104] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>