summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2018-03-28lib/bs4: Fix imports from html5lib >= 0.9999999/1.0b81.26Daniel Lublin
As of html5lib 0.9999999/1.0b8 (released on July 14, 2016), some modules have moved from _base to base. Handle this, while staying compatible with earlier versions. Signed-off-by: Daniel Lublin <daniel@lublin.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-17bitbake-user-manual: Fixed porno hack for hello world exampleScott Rifenbark
Someone hacked the http://hambedded site or it was moved and some links to that site in the BB manual had been hijacked to point to an entry portal for a pornography site. Replaced the link with an archived version that restores the integrity of the links. Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
2016-05-09tests/fetch: ensure fetch tests preserve current dirPaul Eggleton
The fetcher calls os.chdir() in a number of places, which can affect other tests (since the directory it changes into gets deleted) - let's just put the current directory back to where it was when we're done. (This fixes bb.tests.Path.test_unsafe_delete_path failing if it was run as part of a full bitbake-selftest run, where the fetcher tests get to run before it.) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-09bb/tests/fetch: Update cups urlRichard Purdie
Update the upstream url used for testing cups versions after upstream website changes. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-12-18toaster: Rework mimetype guessing to fix artifact downloadsElliot Smith
Artifact download links were broken because the function to get the mimetype for the artifact was incorrectly using the underlying mimetype library. The function was also attached to the build environment controller, which was unnecessary, as we only support local controllers anyway. Remove the mimetype getter on the build environment and use the one in the view code instead. This prevents the download error from occurring. (Backport of dd957fe0f261db6481882fee0413f459425000c2 and dd957fe0f261db6481882fee0413f459425000c2 from master to Yocto 1.8) [YOCTO #8472] Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-10-24toaster: buildinfohelper Skip packages we have no build info aboutPaul Barker
If there are more packages listed as installed than we know about from bitbake, and therefore have insufficient information to be able to create a Toaster Package object then skip it. Also handle the case where a dependency references such a package. Also clarify the error logging. Signed-off-by: Paul Barker <paul.barker@commagility.com> Cc: Michael Wood <michael.g.wood@intel.com> Cc: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-09-01bitbake: cooker: properly fix bitbake.lock handlingRichard Purdie
If the PR server or indeed any other child process takes some time to exit (which it sometimes does when saving its database), it can end up holding bitbake.lock after the UI exits, which led to errors if you ran bitbake commands successively - we saw this when running the PR server oe-selftest tests in OE-Core. The recent attempt to fix this wasn't quite right and ended up breaking memory resident bitbake. This time we close the lock file when cooker shuts down (inside the UI process) instead of unlocking it, and this is done in the cooker code rather than the actual UI code so it doesn't matter which UI is in use. Additionally we report that we're waiting for the lock to be released, using lsof or fuser if available to list the processes with the lock open. The 'magic' in the locking is due to all spawned subprocesses of bitbake holding an open file descriptor to the bitbake.lock. It is automatically unlocked when all those fds close the file (as all the processes terminate). We close the UI copy of the lock explicitly, then close the server process copy, any remaining open copy is therefore some proess exiting. (The reproducer for the problem is to set PRSERV_HOST = "localhost:0" and add a call to time.sleep(20) after self.server_close() in lib/prserv/serv.py, then run "bitbake -p; bitbake -p" ). Cleanup work done by Paul Eggleton <paul.eggleton@linux.intel.com>. This reverts bitbake commit 69ecd15aece54753154950c55d7af42f85ad8606 and e97a9f1528d77503b5c93e48e3de9933fbb9f3cd. (Bitbake rev: a29780bd43f74b7326fe788dbd65177b86806fcf) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Conflicts: bitbake/lib/bb/tinfoil.py
2015-09-01runqueue: Add message to explain the problem if diffsigs multiple tasks ↵Richard Purdie
don't exist Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-06-29cooker: Fire BuildCompleted before finishing the commandRichard Purdie
Some handlers hook on BuildComplete so it avoids certain event races to finish the command after the BuildComplete event is sent out. This means the UI is available to handle events until the command completes. What appears to be a race on one of the sanity tests for event handlers triggered this change although the failure is hard to reproduce. [YOCTO #7921] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-06-28bitbake-diffsigs: consider the situation where sigdata and siginfo files ↵Chen Qi
having the same hash values For now, `bitbake-diffsigs -t <recipe> <task>' doesn't work. It always outputs nothing. The problem is that bitbake-diffsigs are comparing sigdata and siginfo files that have the same hash value. This is not what we want. These two files are actually duplicates considering the purpose of bitbake-diffsigs. So we need to remove one of them so that bitbake-diffsigs could actually compare the correct signature files. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-06-28fetch/git: Fix uri in git checkstatusMarcin Smoczyński
Pass proper repository url without arguments after a semicolon. Executing checkuri on a rule with git repository in SRC_URI does not report errors when working offline because wrong repository url is passed to the ls-remote command. For example "bitbake -c checkuri glibc" command executes: "git -c core.fsyncobjectfiles=0 ls-remote git://sourceware.org/git/glibc.git;branch=release/2.21/master" command in a shell subprocess to determine if url is valid. Shell subprocess executes in fact 2 commands: "git -c core.fsyncobjectfiles=0 ls-remote git://sourceware.org/git/glibc.git" and "branch=release/2.21/master" First one returns 127 or 128 depending on error but second one returns 0 because it is just env variable setup. Therefore we're not catching connection error. [YOCTO #7558] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-05-23lib/bb/utils: fix several bugs in edit_metadata_file()Paul Eggleton
* Fix unchanged assignments being dropped if other lines changed * Fix not passing variable name from single-line assignments to the function * Fix not trimming the trailing quote from values (Bitbake master rev: 0b0c82f49cf2de887967d305768cbd95314bb171) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-05-23lib/bb/utils: add function to get layer containing a filePaul Eggleton
In certain contexts it can be useful to find the layer that a file (e.g. a recipe) appears in. Implements [YOCTO #7723]. (Bitbake master rev: 3bf9c8830c5d5eea5502230d5af84ebd87ad5849) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-05-15bitbake-layers: ensure non-extended recipe name is preferredRichard Purdie
In show-recipes and show-overlayed, we only list one variant of each recipe where multiple exist, therefore we should show the main one (e.g. in OpenEmbedded, we now show openssl and not nativesdk-openssl which would otherwise sort first.) Fixes [YOCTO #7514]. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-05-15runqueue: pass finalized metadata to scenequeue callbacksChristopher Larson
This ensures that _append, _prepend, overrides, etc are functional when used on sstate variables (e.g. SSTATE_DIR). [YOCTO #7564] Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-04-22lib/bb/utils: add safeguard against recursively deleting things we shouldn'tPaul Eggleton
Add some very basic safeguard against recursively deleting paths such as / and /home in the event of bugs or user mistakes. Addresses [YOCTO #7620]. (Bitbake master rev: 56cddeb9e1e4d249f84ccd6ef65db245636e38ea) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-04-22fetch/git: Remove a possible trailing '/' in subpathAnders Darander
If the subpath parameter to the git fetcher ends with a trailing '/', bb.utils.prunedir() will be called on '/'... Fixes [YOCTO #7620]. (Bitbake master rev: 380a3fb372c8b0a53dd7528562e6e7a222dc76ef) Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-31bin/image-writer: Add ext4 as a deployable image typeyocto-1.82015-04-fido1.26.0Richard Purdie
This is particularly problematic since qemu images switched to ext4 by default and now cannot work properly with UIs like hob. This patch adds in ext4 to the appropriate variable fixing this. [YOCTO #7426] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-31cooker: Ensure bbappend files are processed in a determistic orderRichard Purdie
self.appendlist is a dict and as such unordered. This can lead to cases where appends with different names (e.g. x_%.bbappend vs. x_123.bbappend) can be reordered in application which in turn reorders the variables that those bbappend files might touch. Reorderd variables changes the sstate cache signatures causing real world issues. To avoid this, use a list for the append files instead. This patch is conservative and just adds a new data structure alongside the existing one and uses it to resolve the core issue. Later patches (post release) can handle some of the wider but less problematic ones (e.g. issues in bitbake-layers flatten). [YOCTO #7511] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-31Revert "toaster: machine not searchable in all builds/projects"Alexandru DAMIAN
This reverts commit 1a86ed8f95649c5f5a3a66984ce36978d93b0e01. Bug [YOCTO #7334] was incompletly fixed, and the proper fix is not straightfoward. Consequently we revert the partial fix, as a incomplete fix is worse than no fix. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-31toastergui: add ext4 option for IMAGE_FSTYPESAlexandru DAMIAN
This patch adds "ext4" as a selectable option in IMAGE_FSTYPES, to keep in sync with the OE-Core capabilities. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-31toasterui: rename 'targets' to 'recipes'Belen Barros Pena
A recent round of informal user feedback has revealed that the term 'target' is quite problematic. For all the users we spoke to the word refers to the target arch. In Toaster, it refers to the software you build. This patch replaces the word 'target' with 'recipe' across the Toaster interface. This is by no means self-explanatory, but at least it cannot be confused with target hardware, and it is also consistent with the terminology we use in the analysis portion of the interface. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-31toastergui: prevent error on empty build listAlexandru DAMIAN
This patch prevents errors being thrown on date limit computations if the build list is empty. [YOCTO #7513] Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-25Update to version 1.26.0Richard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-24toasterui: enable sanity checkerAlexandru DAMIAN
Since toasterui acts as the user-facing UI, we need to run sanity checks in order to let the GUI display proper warnings and stop the build if something is wrong. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2015-03-24toaster: most-build-targets bug fixesDave Lerner
Fixes for the following for the "Most built targets" section of the project page: 1) limit the number of most built targets to 5, 2) order the list of most built targets by build count, 3) select only those builds that had build status of 'fail', 'success', or a BuildRequest of 'failed', 4) if there are no layers in the project then (on refresh) all of the checkboxes in the 'Most built targets' list are disabled. Note that per agreement with UI designer, the only sort on the most target list is build count as described in (3) above; secondary sorting is random. [YOCTO #7177] Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
2015-03-24toaster: PACKAGE_CLASSES variable does not show current value when editingDavid Reyna
A typo in some element selectors caused the package_rpm setup to break. [YOCTO #7448] Signed-off-by: David Reyna <David.Reyna@windriver.com>
2015-03-24toasterui: small changes to empty statesBelen Barros Pena
This commit: * Makes some changes to the layout and styles of the landing.html template * Adds the empty state to layers.html * Changes the message of the empty state of machines.html to use the same wording used in all other pages * Adds the project name and the right styles to the empty state of the project.html template * Makes small changes in style and wording to the empty state of targets.html * Updates all "configure a layer source" links to point to the new Toaster manual. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2015-03-24toasterui: hide right column if emptyBelen Barros Pena
In the layer details page, if the background information about the layer that shows in the right hand column is completely empty, remove it altogether. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
2015-03-24toasterui: Improve messaging for empty layer detailsBelen Barros Pena
Explain that, if information is found during the build process, it will appear in the layer details page. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
2015-03-24toasterui: hide release when only one existsBelen Barros Pena
If only one release has been set up in Toaster, any project you create defaults to that release, and we simply don't show the release selection menu when creating projects. However, we were still showing the release information in the project page, which would leave users wondering what that release thing is since they never were exposed to it. This patch hides the release information in the project page when only one release has been set up in Toaster. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
2015-03-24toasterui: update links to Toaster manualBelen Barros Pena
Set the links to the Toaster manual in the base.html and landing_not_managed.html templates to the URL of the new Toaster manual. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
2015-03-24toastergui: changes to release change notificationsBelen Barros Pena
* Remove the branch name from the list of the layers deleted (it does not apply). * In the modal dialog that warns you before layer deletion, use the release description instead of the release name Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2015-03-24toaster: alert fixes for project release changeDave Lerner
When a project release changes, if there are layers included with the project, then show the release branch name in the layer list. If there aren't any layers in the project, then suppress the statement on the changed layers. [YOCTO # 7168] Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
2015-03-24toaster: build date range selectionsDavid Reyna
Enable date range selections for build start and build complete in all builds page for both managed and interactive mode. Disable the filter counts. [YOCTO #6040] [YOCTO #7249] [YOCTO #7461] Signed-off-by: David Reyna <David.Reyna@windriver.com>
2015-03-24toaster: build date range selections static sourcesDavid Reyna
Add the static resources from jquery-ui needed for datepicker The static files are licensed MIT and produced by jQuery foundation under the jQueryUI project. [YOCTO #6040] [YOCTO #7249] Signed-off-by: David Reyna <David.Reyna@windriver.com>
2015-03-24toaster: machine not searchable in all builds/projectsDavid Reyna
Add "build__machine" to searchable fields. [YOCTO #7334] Signed-off-by: David Reyna <David.Reyna@windriver.com>
2015-03-24toastergui: changes to the all projects tableBelen Barros Pena
The 'Last build' column in the all projects table was supposed to provide the completion time stamp of the latest project build. Instead, it is showing the time stamp of the latest project activity, which includes: * when the project was created and * when the last build started but not when you make a change to the configuration. The result is that the column and the sorting are very misleading. The template is set so that the time stamp only shows when the project has builds (if 0 builds, no time stamp is shown). But of course the sorting still happens according to the value, even if it doesn't display. The result is that, when you sort by the 'Last build' column, projects with no builds appear listed between projects with builds, and you have no idea why. This patch: * changes the column label * its position in the table * makes sure the time stamp always displays * and adds help text to reflect what the data actually means. It also makes some small changes to other table headings. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2015-03-24toaster: Project page fix targets url and tooltip placementMichael Wood
Make sure we point to the all targets page for the notification links. Also fix the tooltip placements and a minor typo on the targets page. [YOCTO #7480] Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-24toaster: layer-relative paths for config filesDave Lerner
Change bitbake variables table to show the path to the file in which the variable was defined using a layer-relative path instead of the full path to the file. The layer-relative path is found by matching on the full defining file path with entries in a list of layer names, sorted in descending order, and with 'meta' appended as a built-in layer to the end of the list. Additional filters are used to reduce false matches, although even if there is a false match, the actual path to the defining file will be obvious and not misleading. [YOCTO #7414] Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
2015-03-24toastergui: give button nice rounded cornersBelen Barros Pena
In the 'add variable' form, the submit button had a class applied that gave it straight corners on the left, and rounded corners on the right. Remove the class so that we have 4 nicely rounded corners. The patch also removes the unncessary inline styles in the same button. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2015-03-24uievent: catch and log exceptions in receiving eventsAlexandru DAMIAN
This patch prevents tracebacks and instead logs exceptions that may happen during event processing. [YOCTO #7216] Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2015-03-24bin/bitbake: Create bitbake_main APIEd Bartosh
Moved most of functionality of bin/bitbake to lib/bb/main.py to be able to call bitbake from python code. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-21toaster: insure IMAGE_INSTALL_append values have a space prefixDavid Reyna
When the IMAGE_INSTALL_append value is not empty, it must have a space prefix in order for the "append" operator to concatenate the values correctly, so we enforce it in this variable's submit javascript. [YOCTO #7394] Signed-off-by: David Reyna <David.Reyna@windriver.com>
2015-03-21toaster: display machine and project values in input fieldsDavid Reyna
Explicitly preset the machine and project values in their respective input fields. [YOCTO #7170] Signed-off-by: David Reyna <David.Reyna@windriver.com>
2015-03-21toaster: tasks trigger the select related tables before orderingMichael Wood
In two of the cases the data is changed from a QuerySet to a sorted list so we aren't able to use the QuerySet api at this point, moving it before the data type is changed fixes this. [YOCTO #7404] Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-21toaster: Add cancel build to latest build sectionMichael Wood
Add this functionality to the common managed_mrb_section Make sure we are using the correct version of this template in the projects template and remove now redundant code. [YOCTO #7351] Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-21toaster: Incorrect breadcrumb behaviour in the project pageDavid Reyna
The last item in the breadcrumb for the project page should not be a link. [YOCTO #7157] Signed-off-by: David Reyna <David.Reyna@windriver.com>
2015-03-21toaster: leave cancel enabled for release changeDave Lerner
When you click the 'change' icon to edit the project release, the "cancel" button, should always be enabled so that the user can return to the 'not editable' state at any time. [YOCTO #7151] Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
2015-03-21toastergui: recipe and layer identificationAlexandru DAMIAN
This patch fixes the recipe and layer identification by path when Toaster uses relative paths. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>