From b6411fe41ad8b341abf1c179616f7f91e4ce85c4 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Wed, 28 Feb 2018 20:52:27 -0500 Subject: [PATCH] remove poky subtree, going to replace with submodule --- poky/.gitignore | 27 - poky/.templateconf | 2 - poky/LICENSE | 14 - poky/README.LSB | 25 - poky/README.hardware | 1 - poky/README.poky | 1 - poky/README.qemu | 15 - poky/bitbake/AUTHORS | 10 - poky/bitbake/COPYING | 339 - poky/bitbake/ChangeLog | 317 - poky/bitbake/HEADER | 19 - poky/bitbake/LICENSE | 19 - poky/bitbake/README | 35 - poky/bitbake/bin/bitbake | 56 - poky/bitbake/bin/bitbake-diffsigs | 183 - poky/bitbake/bin/bitbake-dumpsig | 94 - poky/bitbake/bin/bitbake-layers | 110 - poky/bitbake/bin/bitbake-prserv | 55 - poky/bitbake/bin/bitbake-selftest | 73 - poky/bitbake/bin/bitbake-worker | 501 - poky/bitbake/bin/bitdoc | 531 - poky/bitbake/bin/git-make-shallow | 165 - poky/bitbake/bin/toaster | 305 - poky/bitbake/bin/toaster-eventreplay | 126 - poky/bitbake/contrib/README | 1 - poky/bitbake/contrib/bbdev.sh | 31 - poky/bitbake/contrib/dump_cache.py | 68 - poky/bitbake/contrib/vim/ftdetect/bitbake.vim | 24 - poky/bitbake/contrib/vim/ftplugin/bitbake.vim | 2 - poky/bitbake/contrib/vim/plugin/newbb.vim | 84 - poky/bitbake/contrib/vim/syntax/bitbake.vim | 126 - poky/bitbake/doc/COPYING.GPL | 339 - poky/bitbake/doc/COPYING.MIT | 17 - poky/bitbake/doc/Makefile | 91 - poky/bitbake/doc/README | 39 - .../bitbake-user-manual-customization.xsl | 29 - .../bitbake-user-manual-execution.xml | 932 - .../bitbake-user-manual-fetching.xml | 823 - .../bitbake-user-manual-hello.xml | 495 - .../bitbake-user-manual-intro.xml | 721 - .../bitbake-user-manual-metadata.xml | 2697 -- .../bitbake-user-manual-ref-variables.xml | 2373 -- .../bitbake-user-manual-style.css | 984 - .../bitbake-user-manual.xml | 88 - .../figures/bitbake-title.png | Bin 5086 -> 0 bytes poky/bitbake/doc/bitbake-user-manual/html.css | 281 - poky/bitbake/doc/bitbake.1 | 142 - poky/bitbake/doc/poky.ent | 59 - poky/bitbake/doc/template/Vera.ttf | Bin 65932 -> 0 bytes poky/bitbake/doc/template/Vera.xml | 1 - poky/bitbake/doc/template/VeraMoBd.ttf | Bin 49052 -> 0 bytes poky/bitbake/doc/template/VeraMoBd.xml | 1 - poky/bitbake/doc/template/VeraMono.ttf | Bin 49224 -> 0 bytes poky/bitbake/doc/template/VeraMono.xml | 1 - poky/bitbake/doc/template/component.title.xsl | 39 - poky/bitbake/doc/template/db-pdf.xsl | 64 - poky/bitbake/doc/template/division.title.xsl | 25 - poky/bitbake/doc/template/draft.png | Bin 24847 -> 0 bytes poky/bitbake/doc/template/fop-config.xml | 58 - .../doc/template/formal.object.heading.xsl | 21 - .../bitbake/doc/template/gloss-permalinks.xsl | 14 - poky/bitbake/doc/template/permalinks.xsl | 25 - poky/bitbake/doc/template/section.title.xsl | 55 - .../doc/template/titlepage.templates.xml | 1259 - poky/bitbake/doc/tools/docbook-to-pdf | 51 - poky/bitbake/lib/bb/COW.py | 319 - poky/bitbake/lib/bb/__init__.py | 144 - poky/bitbake/lib/bb/build.py | 907 - poky/bitbake/lib/bb/cache.py | 888 - poky/bitbake/lib/bb/cache_extra.py | 75 - poky/bitbake/lib/bb/checksum.py | 134 - poky/bitbake/lib/bb/codeparser.py | 476 - poky/bitbake/lib/bb/command.py | 765 - poky/bitbake/lib/bb/compat.py | 6 - poky/bitbake/lib/bb/cooker.py | 2157 -- poky/bitbake/lib/bb/cookerdata.py | 431 - poky/bitbake/lib/bb/daemonize.py | 82 - poky/bitbake/lib/bb/data.py | 403 - poky/bitbake/lib/bb/data_smart.py | 1037 - poky/bitbake/lib/bb/event.py | 840 - poky/bitbake/lib/bb/exceptions.py | 91 - poky/bitbake/lib/bb/fetch2/__init__.py | 1862 -- poky/bitbake/lib/bb/fetch2/bzr.py | 139 - poky/bitbake/lib/bb/fetch2/clearcase.py | 260 - poky/bitbake/lib/bb/fetch2/cvs.py | 172 - poky/bitbake/lib/bb/fetch2/git.py | 659 - poky/bitbake/lib/bb/fetch2/gitannex.py | 91 - poky/bitbake/lib/bb/fetch2/gitsm.py | 135 - poky/bitbake/lib/bb/fetch2/hg.py | 270 - poky/bitbake/lib/bb/fetch2/local.py | 119 - poky/bitbake/lib/bb/fetch2/npm.py | 307 - poky/bitbake/lib/bb/fetch2/osc.py | 132 - poky/bitbake/lib/bb/fetch2/perforce.py | 209 - poky/bitbake/lib/bb/fetch2/repo.py | 97 - poky/bitbake/lib/bb/fetch2/s3.py | 98 - poky/bitbake/lib/bb/fetch2/sftp.py | 125 - poky/bitbake/lib/bb/fetch2/ssh.py | 125 - poky/bitbake/lib/bb/fetch2/svn.py | 193 - poky/bitbake/lib/bb/fetch2/wget.py | 626 - poky/bitbake/lib/bb/main.py | 504 - poky/bitbake/lib/bb/methodpool.py | 40 - poky/bitbake/lib/bb/monitordisk.py | 268 - poky/bitbake/lib/bb/msg.py | 225 - poky/bitbake/lib/bb/namedtuple_with_abc.py | 255 - poky/bitbake/lib/bb/parse/__init__.py | 174 - poky/bitbake/lib/bb/parse/ast.py | 439 - .../lib/bb/parse/parse_py/BBHandler.py | 254 - .../lib/bb/parse/parse_py/ConfHandler.py | 213 - .../bitbake/lib/bb/parse/parse_py/__init__.py | 33 - poky/bitbake/lib/bb/persist_data.py | 214 - poky/bitbake/lib/bb/process.py | 179 - poky/bitbake/lib/bb/progress.py | 276 - poky/bitbake/lib/bb/providers.py | 430 - poky/bitbake/lib/bb/pysh/__init__.py | 0 poky/bitbake/lib/bb/pysh/builtin.py | 710 - poky/bitbake/lib/bb/pysh/interp.py | 1367 - poky/bitbake/lib/bb/pysh/lsprof.py | 116 - poky/bitbake/lib/bb/pysh/pysh.py | 167 - poky/bitbake/lib/bb/pysh/pyshlex.py | 888 - poky/bitbake/lib/bb/pysh/pyshyacc.py | 779 - poky/bitbake/lib/bb/pysh/sherrors.py | 41 - poky/bitbake/lib/bb/pysh/subprocess_fix.py | 77 - poky/bitbake/lib/bb/remotedata.py | 116 - poky/bitbake/lib/bb/runqueue.py | 2612 -- poky/bitbake/lib/bb/server/__init__.py | 21 - poky/bitbake/lib/bb/server/process.py | 622 - poky/bitbake/lib/bb/server/xmlrpcclient.py | 154 - poky/bitbake/lib/bb/server/xmlrpcserver.py | 158 - poky/bitbake/lib/bb/shell.py | 820 - poky/bitbake/lib/bb/siggen.py | 729 - poky/bitbake/lib/bb/taskdata.py | 578 - poky/bitbake/lib/bb/tests/__init__.py | 0 poky/bitbake/lib/bb/tests/codeparser.py | 428 - poky/bitbake/lib/bb/tests/cow.py | 136 - poky/bitbake/lib/bb/tests/data.py | 607 - poky/bitbake/lib/bb/tests/event.py | 377 - poky/bitbake/lib/bb/tests/fetch.py | 1472 -- poky/bitbake/lib/bb/tests/parse.py | 185 - poky/bitbake/lib/bb/tests/utils.py | 603 - poky/bitbake/lib/bb/tinfoil.py | 900 - poky/bitbake/lib/bb/ui/__init__.py | 17 - poky/bitbake/lib/bb/ui/buildinfohelper.py | 1998 -- .../lib/bb/ui/icons/images/images_display.png | Bin 6898 -> 0 bytes .../lib/bb/ui/icons/images/images_hover.png | Bin 7051 -> 0 bytes .../lib/bb/ui/icons/indicators/add-hover.png | Bin 1212 -> 0 bytes .../lib/bb/ui/icons/indicators/add.png | Bin 1176 -> 0 bytes .../lib/bb/ui/icons/indicators/alert.png | Bin 3954 -> 0 bytes .../bb/ui/icons/indicators/confirmation.png | Bin 5789 -> 0 bytes .../lib/bb/ui/icons/indicators/denied.png | Bin 3955 -> 0 bytes .../lib/bb/ui/icons/indicators/error.png | Bin 6482 -> 0 bytes .../lib/bb/ui/icons/indicators/info.png | Bin 3311 -> 0 bytes .../lib/bb/ui/icons/indicators/issues.png | Bin 4549 -> 0 bytes .../lib/bb/ui/icons/indicators/refresh.png | Bin 5250 -> 0 bytes .../bb/ui/icons/indicators/remove-hover.png | Bin 2809 -> 0 bytes .../lib/bb/ui/icons/indicators/remove.png | Bin 1971 -> 0 bytes .../lib/bb/ui/icons/indicators/tick.png | Bin 4563 -> 0 bytes .../lib/bb/ui/icons/info/info_display.png | Bin 4117 -> 0 bytes .../lib/bb/ui/icons/info/info_hover.png | Bin 4167 -> 0 bytes .../lib/bb/ui/icons/layers/layers_display.png | Bin 4840 -> 0 bytes .../lib/bb/ui/icons/layers/layers_hover.png | Bin 5257 -> 0 bytes .../bb/ui/icons/packages/packages_display.png | Bin 7011 -> 0 bytes .../bb/ui/icons/packages/packages_hover.png | Bin 7121 -> 0 bytes .../lib/bb/ui/icons/recipe/recipe_display.png | Bin 4723 -> 0 bytes .../lib/bb/ui/icons/recipe/recipe_hover.png | Bin 4866 -> 0 bytes .../bb/ui/icons/settings/settings_display.png | Bin 6076 -> 0 bytes .../bb/ui/icons/settings/settings_hover.png | Bin 6269 -> 0 bytes .../ui/icons/templates/templates_display.png | Bin 5651 -> 0 bytes .../bb/ui/icons/templates/templates_hover.png | Bin 5791 -> 0 bytes poky/bitbake/lib/bb/ui/knotty.py | 728 - poky/bitbake/lib/bb/ui/ncurses.py | 373 - poky/bitbake/lib/bb/ui/taskexp.py | 328 - poky/bitbake/lib/bb/ui/toasterui.py | 487 - poky/bitbake/lib/bb/ui/uievent.py | 161 - poky/bitbake/lib/bb/ui/uihelper.py | 70 - poky/bitbake/lib/bb/utils.py | 1538 -- poky/bitbake/lib/bblayers/__init__.py | 2 - poky/bitbake/lib/bblayers/action.py | 256 - poky/bitbake/lib/bblayers/common.py | 33 - poky/bitbake/lib/bblayers/layerindex.py | 271 - poky/bitbake/lib/bblayers/query.py | 501 - poky/bitbake/lib/bs4/AUTHORS.txt | 43 - poky/bitbake/lib/bs4/COPYING.txt | 26 - poky/bitbake/lib/bs4/NEWS.txt | 1066 - poky/bitbake/lib/bs4/__init__.py | 468 - poky/bitbake/lib/bs4/builder/__init__.py | 324 - poky/bitbake/lib/bs4/builder/_html5lib.py | 339 - poky/bitbake/lib/bs4/builder/_htmlparser.py | 262 - poky/bitbake/lib/bs4/builder/_lxml.py | 248 - poky/bitbake/lib/bs4/dammit.py | 840 - poky/bitbake/lib/bs4/diagnose.py | 216 - poky/bitbake/lib/bs4/element.py | 1725 -- poky/bitbake/lib/bs4/testing.py | 687 - poky/bitbake/lib/bs4/tests/__init__.py | 1 - .../lib/bs4/tests/test_builder_registry.py | 147 - poky/bitbake/lib/bs4/tests/test_docs.py | 36 - poky/bitbake/lib/bs4/tests/test_html5lib.py | 98 - poky/bitbake/lib/bs4/tests/test_htmlparser.py | 32 - poky/bitbake/lib/bs4/tests/test_lxml.py | 76 - poky/bitbake/lib/bs4/tests/test_soup.py | 483 - poky/bitbake/lib/bs4/tests/test_tree.py | 2011 -- poky/bitbake/lib/codegen.py | 570 - poky/bitbake/lib/ply/__init__.py | 4 - poky/bitbake/lib/ply/lex.py | 1058 - poky/bitbake/lib/ply/yacc.py | 3278 --- poky/bitbake/lib/progressbar/LICENSE.txt | 52 - poky/bitbake/lib/progressbar/__init__.py | 49 - poky/bitbake/lib/progressbar/compat.py | 44 - poky/bitbake/lib/progressbar/progressbar.py | 315 - poky/bitbake/lib/progressbar/widgets.py | 391 - poky/bitbake/lib/prserv/__init__.py | 14 - poky/bitbake/lib/prserv/db.py | 276 - poky/bitbake/lib/prserv/serv.py | 504 - poky/bitbake/lib/pyinotify.py | 2362 -- poky/bitbake/lib/simplediff/LICENSE | 22 - poky/bitbake/lib/simplediff/__init__.py | 198 - poky/bitbake/lib/toaster/__init__.py | 0 .../lib/toaster/bldcollector/__init__.py | 0 .../bitbake/lib/toaster/bldcollector/admin.py | 33 - poky/bitbake/lib/toaster/bldcollector/urls.py | 27 - .../bitbake/lib/toaster/bldcollector/views.py | 62 - .../lib/toaster/bldcontrol/__init__.py | 0 poky/bitbake/lib/toaster/bldcontrol/admin.py | 8 - .../lib/toaster/bldcontrol/bbcontroller.py | 142 - .../bldcontrol/localhostbecontroller.py | 391 - .../toaster/bldcontrol/management/__init__.py | 0 .../management/commands/__init__.py | 0 .../management/commands/checksettings.py | 164 - .../management/commands/runbuilds.py | 192 - .../bldcontrol/migrations/0001_initial.py | 113 - .../migrations/0002_auto_20160120_1250.py | 19 - .../migrations/0003_add_cancelling_state.py | 19 - .../migrations/0004_auto_20160523_1446.py | 34 - .../0005_reorder_buildrequest_states.py | 19 - .../0006_brlayer_local_source_dir.py | 19 - .../0007_brlayers_optional_gitinfo.py | 29 - .../toaster/bldcontrol/migrations/__init__.py | 0 poky/bitbake/lib/toaster/bldcontrol/models.py | 162 - poky/bitbake/lib/toaster/bldcontrol/views.py | 1 - poky/bitbake/lib/toaster/manage.py | 10 - poky/bitbake/lib/toaster/orm/__init__.py | 0 poky/bitbake/lib/toaster/orm/fixtures/README | 30 - .../fixtures/custom_toaster_append.sh_sample | 49 - .../lib/toaster/orm/fixtures/oe-core.xml | 81 - .../bitbake/lib/toaster/orm/fixtures/poky.xml | 188 - .../lib/toaster/orm/fixtures/settings.xml | 33 - .../lib/toaster/orm/management/__init__.py | 0 .../orm/management/commands/__init__.py | 0 .../orm/management/commands/lsupdates.py | 337 - .../toaster/orm/migrations/0001_initial.py | 504 - .../orm/migrations/0002_customimagerecipe.py | 24 - .../orm/migrations/0003_customimagepackage.py | 24 - .../toaster/orm/migrations/0004_provides.py | 27 - .../migrations/0005_task_field_separation.py | 48 - .../migrations/0006_add_cancelled_state.py | 19 - .../orm/migrations/0007_auto_20160523_1446.py | 89 - .../0008_refactor_artifact_models.py | 39 - .../0009_target_package_manifest_path.py | 19 - .../0010_delete_layer_source_references.py | 118 - .../orm/migrations/0011_delete_layersource.py | 17 - .../0012_use_release_instead_of_up_branch.py | 62 - .../0013_recipe_parse_progress_fields.py | 24 - .../migrations/0014_allow_empty_buildname.py | 19 - .../migrations/0015_layer_local_source_dir.py | 19 - .../orm/migrations/0016_clone_progress.py | 24 - .../orm/migrations/0017_distro_clone.py | 25 - .../lib/toaster/orm/migrations/__init__.py | 0 poky/bitbake/lib/toaster/orm/models.py | 1832 -- poky/bitbake/lib/toaster/tests/__init__.py | 0 poky/bitbake/lib/toaster/tests/browser/README | 74 - .../lib/toaster/tests/browser/__init__.py | 0 .../toaster/tests/browser/selenium_helpers.py | 34 - .../tests/browser/selenium_helpers_base.py | 227 - .../tests/browser/test_all_builds_page.py | 233 - .../tests/browser/test_all_projects_page.py | 217 - .../tests/browser/test_builddashboard_page.py | 347 - .../test_builddashboard_page_artifacts.py | 222 - .../test_builddashboard_page_recipes.py | 66 - .../browser/test_builddashboard_page_tasks.py | 65 - .../tests/browser/test_js_unit_tests.py | 57 - .../tests/browser/test_landing_page.py | 108 - .../tests/browser/test_layerdetails_page.py | 216 - .../browser/test_most_recent_builds_states.py | 211 - .../browser/test_new_custom_image_page.py | 161 - .../tests/browser/test_new_project_page.py | 113 - .../tests/browser/test_project_builds_page.py | 168 - .../tests/browser/test_project_config_page.py | 231 - .../tests/browser/test_project_page.py | 59 - .../lib/toaster/tests/browser/test_sample.py | 41 - .../toaster/tests/browser/test_task_page.py | 76 - .../tests/browser/test_toastertable_ui.py | 160 - poky/bitbake/lib/toaster/tests/builds/README | 14 - .../lib/toaster/tests/builds/__init__.py | 0 .../lib/toaster/tests/builds/buildtest.py | 169 - .../tests/builds/test_core_image_min.py | 386 - .../lib/toaster/tests/commands/__init__.py | 0 .../toaster/tests/commands/test_loaddata.py | 61 - .../toaster/tests/commands/test_lsupdates.py | 45 - .../toaster/tests/commands/test_runbuilds.py | 88 - poky/bitbake/lib/toaster/tests/db/__init__.py | 0 poky/bitbake/lib/toaster/tests/db/test_db.py | 55 - .../lib/toaster/tests/eventreplay/README | 22 - .../lib/toaster/tests/eventreplay/__init__.py | 97 - .../lib/toaster/tests/functional/README | 0 .../lib/toaster/tests/functional/__init__.py | 0 .../tests/functional/functional_helpers.py | 122 - .../tests/functional/test_functional_basic.py | 243 - .../tests/toaster-tests-requirements.txt | 1 - poky/bitbake/lib/toaster/tests/views/README | 4 - .../lib/toaster/tests/views/__init__.py | 0 .../lib/toaster/tests/views/test_views.py | 540 - .../lib/toaster/toastergui/__init__.py | 0 poky/bitbake/lib/toaster/toastergui/api.py | 1056 - .../lib/toaster/toastergui/buildtables.py | 609 - .../fixtures/toastergui-unittest-data.xml | 459 - .../toastergui/static/css/bootstrap.css | 6760 ----- .../toastergui/static/css/bootstrap.css.map | 1 - .../toastergui/static/css/bootstrap.min.css | 6 - .../static/css/bootstrap.min.css.map | 1 - .../static/css/bootstrap3-transition.css | 238 - .../toaster/toastergui/static/css/default.css | 369 - .../static/css/font-awesome.min.css | 33 - .../ui-bg_diagonals-thick_18_b81900_40x40.png | Bin 418 -> 0 bytes .../ui-bg_diagonals-thick_20_666666_40x40.png | Bin 312 -> 0 bytes .../images/ui-bg_flat_10_000000_40x100.png | Bin 205 -> 0 bytes .../images/ui-bg_glass_100_f6f6f6_1x400.png | Bin 262 -> 0 bytes .../images/ui-bg_glass_100_fdf5ce_1x400.png | Bin 348 -> 0 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 207 -> 0 bytes .../ui-bg_gloss-wave_35_f6a828_500x100.png | Bin 5815 -> 0 bytes .../ui-bg_highlight-soft_100_eeeeee_1x100.png | Bin 278 -> 0 bytes .../ui-bg_highlight-soft_75_ffe45c_1x100.png | Bin 328 -> 0 bytes .../css/images/ui-icons_222222_256x240.png | Bin 6922 -> 0 bytes .../css/images/ui-icons_228ef1_256x240.png | Bin 4549 -> 0 bytes .../css/images/ui-icons_ef8c08_256x240.png | Bin 4549 -> 0 bytes .../css/images/ui-icons_ffd27a_256x240.png | Bin 4549 -> 0 bytes .../css/images/ui-icons_ffffff_256x240.png | Bin 6299 -> 0 bytes .../toastergui/static/css/jquery-ui.min.css | 7 - .../static/css/jquery-ui.structure.min.css | 5 - .../static/css/jquery-ui.theme.min.css | 5 - .../static/css/jquery.treetable.css | 28 - .../css/jquery.treetable.theme.default.css | 64 - .../css/jquery.treetable.theme.toaster.css | 38 - .../toastergui/static/css/qunit-1.18.0.css | 1 - .../toaster/toastergui/static/css/screen.css | 28 - .../toastergui/static/fonts/FontAwesome.otf | Bin 48748 -> 0 bytes .../static/fonts/fontawesome-webfont.eot | Bin 25395 -> 0 bytes .../static/fonts/fontawesome-webfont.svg | 284 - .../static/fonts/fontawesome-webfont.ttf | Bin 55096 -> 0 bytes .../static/fonts/fontawesome-webfont.woff | Bin 29380 -> 0 bytes .../fonts/glyphicons-halflings-regular.eot | Bin 20127 -> 0 bytes .../fonts/glyphicons-halflings-regular.svg | 288 - .../fonts/glyphicons-halflings-regular.ttf | Bin 45404 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 23424 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff2 | Bin 18028 -> 0 bytes .../static/html/layer_deps_modal.html | 21 - .../toaster/toastergui/static/img/logo.png | Bin 3020 -> 0 bytes .../toastergui/static/img/toaster_bw.png | Bin 140514 -> 0 bytes .../jquery-treetable-license/GPL-LICENSE.txt | 278 - .../jquery-treetable-license/MIT-LICENSE.txt | 20 - .../static/jquery-treetable-license/README.md | 20 - .../static/jquery.treetable.theme.toaster.css | 66 - .../toaster/toastergui/static/js/.jshintrc | 11 - .../toaster/toastergui/static/js/bootstrap.js | 2363 -- .../toastergui/static/js/bootstrap.min.js | 7 - .../toastergui/static/js/customrecipe.js | 322 - .../toastergui/static/js/filtersnippet.js | 94 - .../toastergui/static/js/highlight.pack.js | 2 - .../toastergui/static/js/importlayer.js | 447 - .../toastergui/static/js/jquery-2.0.3.min.js | 6 - .../toastergui/static/js/jquery-2.0.3.min.map | 1 - .../toastergui/static/js/jquery-ui.min.js | 7 - .../toastergui/static/js/jquery.cookie.js | 117 - .../toastergui/static/js/jquery.treetable.js | 620 - .../toastergui/static/js/jsrender.min.js | 4 - .../toaster/toastergui/static/js/layerBtn.js | 83 - .../toastergui/static/js/layerDepsModal.js | 98 - .../toastergui/static/js/layerdetails.js | 521 - .../toastergui/static/js/libtoaster.js | 735 - .../toastergui/static/js/mrbsection.js | 150 - .../static/js/newcustomimage_modal.js | 199 - .../toastergui/static/js/projectpage.js | 390 - .../toastergui/static/js/projecttopbar.js | 97 - .../toastergui/static/js/qunit-1.18.0.js | 347 - .../toastergui/static/js/recipedetails.js | 51 - .../lib/toaster/toastergui/static/js/table.js | 857 - .../toastergui/static/js/tests/test.js | 177 - .../toastergui/static/js/typeahead.jquery.js | 1551 -- .../static/js/ui-bootstrap-tpls-0.11.0.js | 10 - .../static/js/ui-bootstrap-tpls-0.11.0.min.js | 10 - .../lib/toaster/toastergui/tablefilter.py | 292 - poky/bitbake/lib/toaster/toastergui/tables.py | 1629 -- .../toaster/toastergui/templates/base.html | 140 - .../templates/basebuilddetailpage.html | 31 - .../toastergui/templates/basebuildpage.html | 234 - .../templates/baseprojectbuildspage.html | 15 - .../toastergui/templates/baseprojectpage.html | 52 - .../templates/basetable_bottom.html | 94 - .../toastergui/templates/basetable_top.html | 256 - .../templates/basetable_top_layers.html | 5 - .../toaster/toastergui/templates/bfile.html | 24 - .../toastergui/templates/brtargets.html | 20 - .../toastergui/templates/builddashboard.html | 319 - .../templates/buildinfo-toastertable.html | 25 - .../templates/builds-toastertable.html | 52 - .../toastergui/templates/configuration.html | 85 - .../toastergui/templates/configvars.html | 145 - .../toastergui/templates/cpuusage.html | 4 - .../toastergui/templates/customise_btn.html | 15 - .../toastergui/templates/customrecipe.html | 268 - .../templates/detail_pagination_bottom.html | 57 - .../templates/detail_search_header.html | 72 - .../templates/detail_sorted_header.html | 25 - .../toaster/toastergui/templates/dirinfo.html | 245 - .../toaster/toastergui/templates/diskio.html | 4 - .../toastergui/templates/distro_btn.html | 20 - .../templates/editcustomimage_modal.html | 88 - .../toastergui/templates/filtersnippet.html | 72 - .../templates/generic-toastertable-page.html | 17 - .../toaster/toastergui/templates/health.html | 6 - .../toastergui/templates/importlayer.html | 170 - .../toastergui/templates/js-unit-tests.html | 47 - .../toaster/toastergui/templates/landing.html | 59 - .../templates/landing_not_managed.html | 34 - .../toastergui/templates/layer_btn.html | 26 - .../toastergui/templates/layerdetails.html | 373 - .../toastergui/templates/machine_btn.html | 21 - .../toastergui/templates/mrb_section.html | 301 - .../toastergui/templates/newcustomimage.html | 21 - .../templates/newcustomimage_modal.html | 60 - .../toastergui/templates/newproject.html | 138 - .../templates/package_built_dependencies.html | 99 - .../templates/package_built_detail.html | 65 - .../templates/package_detail_base.html | 169 - .../package_included_dependencies.html | 110 - .../templates/package_included_detail.html | 44 - ...package_included_reverse_dependencies.html | 50 - .../templates/package_included_tabs.html | 33 - .../toastergui/templates/pkg_add_rm_btn.html | 34 - .../toaster/toastergui/templates/project.html | 161 - .../templates/projectbuilds-toastertable.html | 65 - .../toastergui/templates/projectbuilds.html | 118 - .../toastergui/templates/projectconf.html | 1042 - .../templates/projects-toastertable.html | 42 - .../toastergui/templates/projecttopbar.html | 79 - .../toaster/toastergui/templates/recipe.html | 320 - .../toastergui/templates/recipe_btn.html | 23 - .../toastergui/templates/recipe_packages.html | 135 - .../toastergui/templates/recipedetails.html | 175 - .../templates/snippets/gitrev_popover.html | 8 - .../snippets/pkg_dependencies_popover.html | 38 - .../snippets/pkg_revdependencies_popover.html | 38 - .../toastergui/templates/tablesort.html | 38 - .../toaster/toastergui/templates/target.html | 56 - .../toaster/toastergui/templates/task.html | 348 - .../templates/toastertable-filter.html | 24 - .../templates/toastertable-simple.html | 100 - .../toastergui/templates/toastertable.html | 125 - .../templates/unavailable_artifact.html | 18 - .../toastergui/templatetags/__init__.py | 0 .../templatetags/field_values_filter.py | 18 - .../objects_to_dictionaries_filter.py | 35 - .../templatetags/project_url_tag.py | 34 - .../toastergui/templatetags/projecttags.py | 299 - .../lib/toaster/toastergui/typeaheads.py | 211 - poky/bitbake/lib/toaster/toastergui/urls.py | 254 - poky/bitbake/lib/toaster/toastergui/views.py | 1780 -- .../bitbake/lib/toaster/toastergui/widgets.py | 573 - .../lib/toaster/toastermain/__init__.py | 0 .../toastermain/management/__init__.py | 0 .../management/commands/__init__.py | 0 .../management/commands/builddelete.py | 54 - .../management/commands/buildslist.py | 13 - .../management/commands/checksocket.py | 69 - .../toastermain/management/commands/perf.py | 58 - .../lib/toaster/toastermain/settings.py | 369 - .../settings_production_example.py | 58 - .../lib/toaster/toastermain/settings_test.py | 41 - poky/bitbake/lib/toaster/toastermain/urls.py | 93 - poky/bitbake/lib/toaster/toastermain/wsgi.py | 35 - poky/bitbake/toaster-requirements.txt | 3 - poky/documentation/Makefile | 465 - poky/documentation/README | 93 - poky/documentation/adt-manual/adt-command.xml | 265 - poky/documentation/adt-manual/adt-intro.xml | 180 - .../adt-manual/adt-manual-customization.xsl | 27 - .../adt-manual-eclipse-customization.xsl | 35 - .../adt-manual/adt-manual-intro.xml | 33 - poky/documentation/adt-manual/adt-manual.xml | 140 - poky/documentation/adt-manual/adt-package.xml | 102 - poky/documentation/adt-manual/adt-prepare.xml | 999 - poky/documentation/adt-manual/adt-style.css | 984 - .../adt-manual/figures/adt-title.png | Bin 13498 -> 0 bytes .../figures/using-a-pre-built-image.png | Bin 12733 -> 0 bytes .../bsp-guide/bsp-guide-customization.xsl | 27 - .../bsp-guide-eclipse-customization.xsl | 35 - poky/documentation/bsp-guide/bsp-guide.xml | 178 - poky/documentation/bsp-guide/bsp-style.css | 984 - poky/documentation/bsp-guide/bsp.xml | 1921 -- .../bsp-guide/figures/bsp-dev-flow.png | Bin 63266 -> 0 bytes .../bsp-guide/figures/bsp-title.png | Bin 17388 -> 0 bytes .../dev-manual/dev-manual-common-tasks.xml | 10755 -------- .../dev-manual/dev-manual-customization.xsl | 27 - .../dev-manual-eclipse-customization.xsl | 35 - .../dev-manual/dev-manual-intro.xml | 105 - .../dev-manual/dev-manual-newbie.xml | 989 - .../dev-manual/dev-manual-qemu.xml | 309 - .../dev-manual/dev-manual-start.xml | 751 - poky/documentation/dev-manual/dev-manual.xml | 168 - poky/documentation/dev-manual/dev-style.css | 988 - .../dev-manual/figures/bitbake-build-flow.png | Bin 50338 -> 0 bytes .../dev-manual/figures/dev-title.png | Bin 15950 -> 0 bytes .../dev-manual/figures/recipe-workflow.png | Bin 48276 -> 0 bytes .../figures/kernel-architecture-overview.png | Bin 40748 -> 0 bytes .../kernel-dev/figures/kernel-dev-flow.png | Bin 53197 -> 0 bytes .../kernel-dev/figures/kernel-dev-title.png | Bin 13453 -> 0 bytes .../figures/kernel-overview-2-generic.png | Bin 49230 -> 0 bytes .../kernel-dev/kernel-dev-advanced.xml | 1251 - .../kernel-dev/kernel-dev-common.xml | 2717 -- .../kernel-dev/kernel-dev-concepts-appx.xml | 621 - .../kernel-dev/kernel-dev-customization.xsl | 26 - .../kernel-dev-eclipse-customization.xsl | 35 - .../kernel-dev/kernel-dev-faq.xml | 142 - .../kernel-dev/kernel-dev-intro.xml | 268 - .../kernel-dev/kernel-dev-maint-appx.xml | 352 - .../kernel-dev/kernel-dev-style.css | 988 - poky/documentation/kernel-dev/kernel-dev.xml | 158 - .../mega-manual/figures/YP-flow-diagram.png | Bin 185562 -> 0 bytes .../mega-manual/figures/add-variable.png | Bin 110712 -> 0 bytes .../analysis-for-package-splitting.png | Bin 63291 -> 0 bytes .../mega-manual/figures/bash-oecore.png | Bin 138198 -> 0 bytes .../figures/bitbake-build-flow.png | Bin 49242 -> 0 bytes .../mega-manual/figures/bsp-dev-flow.png | Bin 63266 -> 0 bytes .../mega-manual/figures/bsp-title.png | Bin 17388 -> 0 bytes .../figures/build-workspace-directory.png | Bin 29627 -> 0 bytes .../mega-manual/figures/buildhistory-web.png | Bin 49966 -> 0 bytes .../mega-manual/figures/buildhistory.png | Bin 44900 -> 0 bytes .../mega-manual/figures/building-an-image.png | Bin 14891 -> 0 bytes .../mega-manual/figures/compatible-layers.png | Bin 163081 -> 0 bytes .../configuration-compile-autoreconf.png | Bin 46080 -> 0 bytes .../figures/cross-development-toolchains.png | Bin 59275 -> 0 bytes .../mega-manual/figures/define-generic.png | Bin 623 -> 0 bytes .../mega-manual/figures/dev-title.png | Bin 15950 -> 0 bytes .../mega-manual/figures/git-workflow.png | Bin 26586 -> 0 bytes .../mega-manual/figures/hosted-service.png | Bin 13552 -> 0 bytes .../mega-manual/figures/image-generation.png | Bin 112991 -> 0 bytes .../mega-manual/figures/images.png | Bin 22926 -> 0 bytes .../mega-manual/figures/import-layer.png | Bin 139108 -> 0 bytes .../mega-manual/figures/index-downloads.png | Bin 36362 -> 0 bytes .../figures/kernel-architecture-overview.png | Bin 40748 -> 0 bytes .../mega-manual/figures/kernel-dev-flow.png | Bin 53197 -> 0 bytes .../mega-manual/figures/kernel-dev-title.png | Bin 13453 -> 0 bytes .../mega-manual/figures/kernel-overview-1.png | Bin 35839 -> 0 bytes .../figures/kernel-overview-2-generic.png | Bin 49230 -> 0 bytes .../mega-manual/figures/kernel-title.png | Bin 13970 -> 0 bytes .../mega-manual/figures/kernelshark-all.png | Bin 89316 -> 0 bytes .../figures/kernelshark-choose-events.png | Bin 57372 -> 0 bytes .../figures/kernelshark-i915-display.png | Bin 98765 -> 0 bytes .../figures/kernelshark-output-display.png | Bin 204454 -> 0 bytes .../mega-manual/figures/layer-input.png | Bin 45856 -> 0 bytes .../mega-manual/figures/lttngmain0.png | Bin 120581 -> 0 bytes .../mega-manual/figures/mega-title.png | Bin 10536 -> 0 bytes .../mega-manual/figures/new-project.png | Bin 73760 -> 0 bytes .../figures/oprofileui-busybox.png | Bin 98334 -> 0 bytes .../figures/oprofileui-copy-to-user.png | Bin 105661 -> 0 bytes .../figures/oprofileui-downloading.png | Bin 37301 -> 0 bytes .../figures/oprofileui-processes.png | Bin 95741 -> 0 bytes .../mega-manual/figures/package-feeds.png | Bin 30112 -> 0 bytes .../mega-manual/figures/patching.png | Bin 42523 -> 0 bytes .../figures/perf-probe-do_fork-profile.png | Bin 59078 -> 0 bytes .../figures/perf-report-cycles-u.png | Bin 171368 -> 0 bytes .../figures/perf-systemwide-libc.png | Bin 136826 -> 0 bytes .../mega-manual/figures/perf-systemwide.png | Bin 140616 -> 0 bytes .../perf-wget-busybox-annotate-menu.png | Bin 22364 -> 0 bytes .../perf-wget-busybox-annotate-udhcpc.png | Bin 171529 -> 0 bytes .../figures/perf-wget-busybox-debuginfo.png | Bin 174971 -> 0 bytes .../perf-wget-busybox-dso-zoom-menu.png | Bin 23735 -> 0 bytes .../figures/perf-wget-busybox-dso-zoom.png | Bin 101685 -> 0 bytes .../perf-wget-busybox-expanded-stripped.png | Bin 95140 -> 0 bytes .../figures/perf-wget-flat-stripped.png | Bin 178919 -> 0 bytes ...get-g-copy-from-user-expanded-stripped.png | Bin 138550 -> 0 bytes ...wget-g-copy-to-user-expanded-debuginfo.png | Bin 102790 -> 0 bytes ...er-expanded-stripped-unresolved-hidden.png | Bin 110101 -> 0 bytes ...-wget-g-copy-to-user-expanded-stripped.png | Bin 102812 -> 0 bytes .../mega-manual/figures/poky-title.png | Bin 11592 -> 0 bytes .../mega-manual/figures/profile-title.png | Bin 12799 -> 0 bytes .../figures/pybootchartgui-linux-yocto.png | Bin 36366 -> 0 bytes .../pychart-linux-yocto-rpm-nostrip.png | Bin 98053 -> 0 bytes .../figures/pychart-linux-yocto-rpm.png | Bin 81053 -> 0 bytes .../mega-manual/figures/recipe-workflow.png | Bin 48276 -> 0 bytes .../figures/sched-wakeup-profile.png | Bin 123810 -> 0 bytes .../figures/sdk-devtool-add-flow.png | Bin 179361 -> 0 bytes .../figures/sdk-devtool-modify-flow.png | Bin 146467 -> 0 bytes .../figures/sdk-devtool-upgrade-flow.png | Bin 139827 -> 0 bytes .../figures/sdk-eclipse-dev-flow.png | Bin 62626 -> 0 bytes .../mega-manual/figures/sdk-environment.png | Bin 42098 -> 0 bytes .../mega-manual/figures/sdk-generation.png | Bin 115643 -> 0 bytes ...sdk-installed-extensible-sdk-directory.png | Bin 42892 -> 0 bytes .../sdk-installed-standard-sdk-directory.png | Bin 56096 -> 0 bytes .../mega-manual/figures/sdk-title.png | Bin 52702 -> 0 bytes .../documentation/mega-manual/figures/sdk.png | Bin 67478 -> 0 bytes .../mega-manual/figures/set-variable.png | Bin 111430 -> 0 bytes .../figures/simple-configuration.png | Bin 10789 -> 0 bytes .../mega-manual/figures/source-fetching.png | Bin 38860 -> 0 bytes .../mega-manual/figures/source-input.png | Bin 39872 -> 0 bytes .../mega-manual/figures/source-repos.png | Bin 167009 -> 0 bytes .../mega-manual/figures/sysprof-callers.png | Bin 145043 -> 0 bytes .../figures/sysprof-copy-from-user.png | Bin 132976 -> 0 bytes .../figures/sysprof-copy-to-user.png | Bin 132074 -> 0 bytes .../mega-manual/figures/toaster-title.png | Bin 9277 -> 0 bytes .../figures/user-configuration.png | Bin 74109 -> 0 bytes .../figures/using-a-pre-built-image.png | Bin 12733 -> 0 bytes .../mega-manual/figures/variable-added.png | Bin 112163 -> 0 bytes .../figures/yocto-environment-ref.png | Bin 83206 -> 0 bytes .../figures/yocto-project-transp.png | Bin 8626 -> 0 bytes .../mega-manual/figures/yp-download.png | Bin 230971 -> 0 bytes .../mega-manual/mega-manual-customization.xsl | 42 - .../documentation/mega-manual/mega-manual.xml | 293 - poky/documentation/mega-manual/mega-style.css | 989 - poky/documentation/poky.ent | 81 - .../figures/kernelshark-all.png | Bin 89316 -> 0 bytes .../figures/kernelshark-choose-events.png | Bin 57372 -> 0 bytes .../figures/kernelshark-i915-display.png | Bin 98765 -> 0 bytes .../figures/kernelshark-output-display.png | Bin 204454 -> 0 bytes .../profile-manual/figures/lttngmain0.png | Bin 120581 -> 0 bytes .../figures/oprofileui-busybox.png | Bin 98334 -> 0 bytes .../figures/oprofileui-copy-to-user.png | Bin 105661 -> 0 bytes .../figures/oprofileui-downloading.png | Bin 37301 -> 0 bytes .../figures/oprofileui-processes.png | Bin 95741 -> 0 bytes .../figures/perf-probe-do_fork-profile.png | Bin 59078 -> 0 bytes .../figures/perf-report-cycles-u.png | Bin 171368 -> 0 bytes .../figures/perf-systemwide-libc.png | Bin 136826 -> 0 bytes .../figures/perf-systemwide.png | Bin 140616 -> 0 bytes .../perf-wget-busybox-annotate-menu.png | Bin 22364 -> 0 bytes .../perf-wget-busybox-annotate-udhcpc.png | Bin 171529 -> 0 bytes .../figures/perf-wget-busybox-debuginfo.png | Bin 174971 -> 0 bytes .../perf-wget-busybox-dso-zoom-menu.png | Bin 23735 -> 0 bytes .../figures/perf-wget-busybox-dso-zoom.png | Bin 101685 -> 0 bytes .../perf-wget-busybox-expanded-stripped.png | Bin 95140 -> 0 bytes .../figures/perf-wget-flat-stripped.png | Bin 178919 -> 0 bytes ...get-g-copy-from-user-expanded-stripped.png | Bin 138550 -> 0 bytes ...wget-g-copy-to-user-expanded-debuginfo.png | Bin 102790 -> 0 bytes ...er-expanded-stripped-unresolved-hidden.png | Bin 110101 -> 0 bytes ...-wget-g-copy-to-user-expanded-stripped.png | Bin 102812 -> 0 bytes .../profile-manual/figures/profile-title.png | Bin 12799 -> 0 bytes .../figures/pybootchartgui-linux-yocto.png | Bin 36366 -> 0 bytes .../pychart-linux-yocto-rpm-nostrip.png | Bin 98053 -> 0 bytes .../figures/pychart-linux-yocto-rpm.png | Bin 81053 -> 0 bytes .../figures/sched-wakeup-profile.png | Bin 123810 -> 0 bytes .../figures/sysprof-callers.png | Bin 145043 -> 0 bytes .../figures/sysprof-copy-from-user.png | Bin 132976 -> 0 bytes .../figures/sysprof-copy-to-user.png | Bin 132074 -> 0 bytes .../profile-manual/profile-manual-arch.xml | 45 - .../profile-manual-customization.xsl | 27 - .../profile-manual-eclipse-customization.xsl | 35 - .../profile-manual-examples.xml | 39 - .../profile-manual/profile-manual-intro.xml | 104 - .../profile-manual/profile-manual-style.css | 984 - .../profile-manual/profile-manual-usage.xml | 3163 --- .../profile-manual/profile-manual.xml | 151 - poky/documentation/ref-manual/TODO | 11 - .../examples/hello-autotools/hello_2.3.bb | 8 - .../examples/hello-single/files/helloworld.c | 8 - .../ref-manual/examples/hello-single/hello.bb | 17 - .../examples/libxpm/libxpm_3.5.6.bb | 14 - .../examples/mtd-makefile/mtd-utils_1.0.0.bb | 15 - poky/documentation/ref-manual/faq.xml | 834 - .../ref-manual/figures/YP-flow-diagram.png | Bin 190715 -> 0 bytes .../analysis-for-package-splitting.png | Bin 63291 -> 0 bytes .../figures/build-workspace-directory.png | Bin 29627 -> 0 bytes .../ref-manual/figures/buildhistory-web.png | Bin 49966 -> 0 bytes .../ref-manual/figures/buildhistory.png | Bin 44900 -> 0 bytes .../ref-manual/figures/building-an-image.png | Bin 14891 -> 0 bytes .../configuration-compile-autoreconf.png | Bin 46080 -> 0 bytes .../figures/cross-development-toolchains.png | Bin 59275 -> 0 bytes .../ref-manual/figures/define-generic.png | Bin 623 -> 0 bytes .../ref-manual/figures/git-workflow.png | Bin 26586 -> 0 bytes .../ref-manual/figures/image-generation.png | Bin 112991 -> 0 bytes .../ref-manual/figures/images.png | Bin 22926 -> 0 bytes .../ref-manual/figures/index-downloads.png | Bin 36362 -> 0 bytes .../ref-manual/figures/layer-input.png | Bin 45856 -> 0 bytes .../ref-manual/figures/package-feeds.png | Bin 30112 -> 0 bytes .../ref-manual/figures/patching.png | Bin 42523 -> 0 bytes .../ref-manual/figures/poky-title.png | Bin 11592 -> 0 bytes .../ref-manual/figures/sdk-generation.png | Bin 115643 -> 0 bytes poky/documentation/ref-manual/figures/sdk.png | Bin 67478 -> 0 bytes .../ref-manual/figures/source-fetching.png | Bin 38860 -> 0 bytes .../ref-manual/figures/source-input.png | Bin 39872 -> 0 bytes .../ref-manual/figures/source-repos.png | Bin 167009 -> 0 bytes .../ref-manual/figures/user-configuration.png | Bin 74109 -> 0 bytes .../figures/yocto-environment-ref.png | Bin 83206 -> 0 bytes .../ref-manual/figures/yp-download.png | Bin 230971 -> 0 bytes .../documentation/ref-manual/introduction.xml | 1074 - poky/documentation/ref-manual/migration.xml | 5244 ---- poky/documentation/ref-manual/ref-bitbake.xml | 477 - poky/documentation/ref-manual/ref-classes.xml | 3889 --- .../ref-development-environment.xml | 2760 -- .../ref-manual/ref-devtool-reference.xml | 700 - .../documentation/ref-manual/ref-features.xml | 482 - poky/documentation/ref-manual/ref-images.xml | 164 - .../ref-manual/ref-kickstart.xml | 284 - .../ref-manual/ref-manual-customization.xsl | 29 - .../ref-manual-eclipse-customization.xsl | 35 - poky/documentation/ref-manual/ref-manual.xml | 213 - .../ref-manual/ref-qa-checks.xml | 1199 - .../ref-manual/ref-release-process.xml | 255 - .../ref-manual/ref-structure.xml | 1124 - poky/documentation/ref-manual/ref-style.css | 1032 - poky/documentation/ref-manual/ref-tasks.xml | 1092 - .../ref-manual/ref-variables.xml | 16373 ------------ .../ref-manual/ref-varlocality.xml | 198 - poky/documentation/ref-manual/resources.xml | 276 - .../ref-manual/technical-details.xml | 2042 -- poky/documentation/ref-manual/usingpoky.xml | 2091 -- .../figures/sdk-devtool-add-flow.png | Bin 177945 -> 0 bytes .../figures/sdk-devtool-modify-flow.png | Bin 164192 -> 0 bytes .../figures/sdk-devtool-upgrade-flow.png | Bin 139827 -> 0 bytes .../figures/sdk-eclipse-dev-flow.png | Bin 62626 -> 0 bytes .../sdk-manual/figures/sdk-environment.png | Bin 42098 -> 0 bytes ...sdk-installed-extensible-sdk-directory.png | Bin 42892 -> 0 bytes .../sdk-installed-standard-sdk-directory.png | Bin 56096 -> 0 bytes .../sdk-manual/figures/sdk-title.png | Bin 31039 -> 0 bytes .../sdk-appendix-customizing-standard.xml | 58 - .../sdk-manual/sdk-appendix-customizing.xml | 397 - .../sdk-manual/sdk-appendix-mars.xml | 916 - .../sdk-manual/sdk-appendix-obtain.xml | 429 - .../sdk-manual/sdk-eclipse-project.xml | 1211 - .../sdk-manual/sdk-extensible.xml | 1645 -- poky/documentation/sdk-manual/sdk-intro.xml | 404 - .../sdk-manual/sdk-manual-customization.xsl | 26 - .../sdk-manual-eclipse-customization.xsl | 35 - poky/documentation/sdk-manual/sdk-manual.xml | 130 - poky/documentation/sdk-manual/sdk-style.css | 988 - poky/documentation/sdk-manual/sdk-using.xml | 205 - .../sdk-manual/sdk-working-projects.xml | 283 - poky/documentation/template/Vera.ttf | Bin 65932 -> 0 bytes poky/documentation/template/Vera.xml | 1 - poky/documentation/template/VeraMoBd.ttf | Bin 49052 -> 0 bytes poky/documentation/template/VeraMoBd.xml | 1 - poky/documentation/template/VeraMono.ttf | Bin 49224 -> 0 bytes poky/documentation/template/VeraMono.xml | 1 - .../template/component.title.xsl | 39 - .../documentation/template/division.title.xsl | 24 - poky/documentation/template/draft.png | Bin 24847 -> 0 bytes .../documentation/template/embedded_video.xsl | 22 - poky/documentation/template/fop-config.xml | 58 - .../template/formal.object.heading.xsl | 21 - .../template/gloss-permalinks.xsl | 14 - poky/documentation/template/ohand-color.svg | 150 - poky/documentation/template/permalinks.xsl | 25 - poky/documentation/template/poky-db-pdf.xsl | 64 - .../template/poky-ref-manual.png | Bin 32145 -> 0 bytes poky/documentation/template/poky.svg | 163 - .../template/qa-code-permalinks.xsl | 23 - poky/documentation/template/section.title.xsl | 55 - .../template/titlepage.templates.xml | 1227 - .../template/yocto-project-qs.png | Bin 17829 -> 0 bytes .../toaster-manual/figures/add-variable.png | Bin 110712 -> 0 bytes .../toaster-manual/figures/bash-oecore.png | Bin 138198 -> 0 bytes .../figures/compatible-layers.png | Bin 163081 -> 0 bytes .../toaster-manual/figures/hosted-service.png | Bin 13552 -> 0 bytes .../toaster-manual/figures/import-layer.png | Bin 139108 -> 0 bytes .../toaster-manual/figures/new-project.png | Bin 73760 -> 0 bytes .../toaster-manual/figures/set-variable.png | Bin 111430 -> 0 bytes .../figures/simple-configuration.png | Bin 10789 -> 0 bytes .../toaster-manual/figures/toaster-title.png | Bin 9277 -> 0 bytes .../toaster-manual/figures/variable-added.png | Bin 112163 -> 0 bytes .../toaster-manual-customization.xsl | 28 - .../toaster-manual/toaster-manual-intro.xml | 164 - .../toaster-manual-reference.xml | 835 - .../toaster-manual-setup-and-use.xml | 768 - .../toaster-manual/toaster-manual-start.xml | 116 - .../toaster-manual/toaster-manual-style.css | 984 - .../toaster-manual/toaster-manual.xml | 125 - poky/documentation/tools/eclipse-help.sed | 18 - poky/documentation/tools/mega-manual.sed | 33 - poky/documentation/tools/poky-docbook-to-pdf | 51 - .../tools/update-documentation-conf | 168 - .../figures/yocto-project-transp.png | Bin 8626 -> 0 bytes .../yocto-project-qs/qs-style.css | 988 - .../yocto-project-qs-customization.xsl | 24 - ...yocto-project-qs-eclipse-customization.xsl | 34 - .../yocto-project-qs-titlepage.xsl | 3820 --- .../yocto-project-qs/yocto-project-qs.xml | 1065 - poky/meta-poky/README.poky | 58 - poky/meta-poky/classes/poky-sanity.bbclass | 46 - poky/meta-poky/conf/bblayers.conf.sample | 12 - poky/meta-poky/conf/conf-notes.txt | 12 - .../include/poky-floating-revisions.inc | 58 - .../distro/include/poky-world-exclude.inc | 4 - poky/meta-poky/conf/distro/poky-bleeding.conf | 11 - poky/meta-poky/conf/distro/poky-lsb.conf | 15 - poky/meta-poky/conf/distro/poky-tiny.conf | 132 - poky/meta-poky/conf/distro/poky.conf | 101 - poky/meta-poky/conf/layer.conf | 20 - poky/meta-poky/conf/local.conf.sample | 236 - .../meta-poky/conf/local.conf.sample.extended | 394 - poky/meta-poky/conf/site.conf.sample | 31 - .../busybox/busybox/poky-tiny/defconfig | 1009 - .../recipes-core/busybox/busybox_%.bbappend | 2 - .../psplash/files/psplash-poky-img.h | 914 - .../recipes-core/psplash/psplash_git.bbappend | 2 - .../recipes-core/tiny-init/files/init | 26 - .../tiny-init/files/rc.local.sample | 23 - .../recipes-core/tiny-init/tiny-init.bb | 30 - poky/meta-selftest/COPYING.MIT | 17 - poky/meta-selftest/README | 3 - .../meta-selftest/classes/test_events.bbclass | 16 - poky/meta-selftest/conf/layer.conf | 12 - .../conf/machine/qemux86copy.conf | 3 - .../files/signing/key.passphrase | 1 - poky/meta-selftest/files/signing/key.pub | 30 - poky/meta-selftest/files/signing/key.secret | 59 - poky/meta-selftest/files/static-group | 14 - poky/meta-selftest/files/static-passwd | 11 - poky/meta-selftest/lib/devtool/__init__.py | 0 poky/meta-selftest/lib/devtool/bbpath.py | 44 - poky/meta-selftest/lib/devtool/test.py | 11 - .../lib/oeqa/runtime/cases/dnf_runtime.py | 47 - .../lib/oeqa/runtime/cases/selftest.json | 6 - .../lib/oeqa/runtime/cases/selftest.py | 31 - .../lib/oeqa/selftest/cases/external-layer.py | 16 - poky/meta-selftest/lib/recipetool/bbpath.py | 41 - .../recipes-test/aspell/aspell_0.0.0.1.bb | 32 - .../aspell/aspell_0.60.6.1.bbappend | 2 - .../container-image-testpkg.bb | 8 - .../container-image/container-test-image.bb | 8 - .../devtool/devtool-test-localonly.bb | 7 - .../devtool/devtool-test-localonly/file1 | 1 - .../devtool/devtool-test-localonly/file2 | 1 - .../devtool/devtool-test-patch-gz.bb | 18 - .../devtool-test-patch-gz/readme.patch.gz | Bin 449 -> 0 bytes .../devtool/devtool-test-subdir.bb | 9 - .../devtool-test-subdir.tar.gz | Bin 181 -> 0 bytes .../devtool/devtool-test-subdir/testfile | 1 - ...d-a-note-line-to-the-quick-reference.patch | 25 - .../devtool/devtool-upgrade-test1_1.5.3.bb | 20 - .../devtool-upgrade-test1_1.5.3.bb.upgraded | 18 - .../devtool/devtool-upgrade-test2_git.bb | 22 - .../devtool-upgrade-test2_git.bb.upgraded | 21 - .../recipes-test/emptytest/emptytest.bb | 7 - .../meta-selftest/recipes-test/error/error.bb | 10 - .../recipes-test/images/error-image.bb | 8 - .../recipes-test/images/oe-selftest-image.bb | 9 - .../recipes-test/images/test-empty-image.bb | 6 - .../recipes-test/images/wic-image-minimal.bb | 15 - .../recipes-test/images/wic-image-minimal.wks | 9 - .../recipes-test/m4/m4_%.bbappend | 2 - .../recipes-test/man/man/man-1.5h1-make.patch | 16 - .../recipes-test/man/man_1.6g.bbappend | 2 - .../recipes-test/postinst/postinst_1.0.bb | 70 - .../recipetool/files/add-file.patch | 8 - .../recipes-test/recipetool/files/file1 | 2 - .../recipetool/files/installscript.sh | 3 - .../files/selftest-replaceme-inst-func | 1 - .../files/selftest-replaceme-inst-globfile | 1 - .../selftest-replaceme-inst-todir-globfile | 1 - .../recipetool/files/selftest-replaceme-orig | 1 - .../files/selftest-replaceme-src-globfile | 1 - .../recipetool/files/selftest-replaceme-todir | 1 - .../recipetool/files/subdir/fileinsubdir | 1 - .../selftest-recipetool-appendfile.bb | 44 - .../selftest-ed/selftest-ed_0.5.bb | 22 - .../selftest-ed/selftest-ed_1.14.1.bb | 35 - .../xcursor-transparent-theme_%.bbappend | 2 - .../wic/test_rawcopy_plugin.wks.in | 6 - poky/meta-selftest/wic/wictestdisk.wks | 7 - poky/meta-skeleton/COPYING.MIT | 17 - poky/meta-skeleton/conf/layer.conf | 17 - poky/meta-skeleton/conf/multilib-example.conf | 13 - .../meta-skeleton/conf/multilib-example2.conf | 13 - .../busybox/busybox/no_rfkill.cfg | 1 - .../recipes-core/busybox/busybox_%.bbappend | 12 - .../recipes-kernel/hello-mod/files/COPYING | 340 - .../recipes-kernel/hello-mod/files/Makefile | 14 - .../recipes-kernel/hello-mod/files/hello.c | 33 - .../recipes-kernel/hello-mod/hello-mod_0.1.bb | 15 - .../linux/linux-yocto-custom.bb | 71 - .../0001-linux-version-tweak.patch | 29 - .../linux/linux-yocto-custom/feature.scc | 1 - .../linux/linux-yocto-custom/smp.cfg | 1 - .../images/core-image-multilib-example.bb | 13 - .../service/service/COPYRIGHT | 15 - .../recipes-skeleton/service/service/skeleton | 193 - .../service/service/skeleton_test.c | 12 - .../recipes-skeleton/service/service_0.1.bb | 31 - .../useradd/useradd-example.bb | 77 - .../useradd/useradd-example/file1 | 0 .../useradd/useradd-example/file2 | 0 .../useradd/useradd-example/file3 | 0 .../useradd/useradd-example/file4 | 0 poky/meta-yocto-bsp/README.hardware | 407 - poky/meta-yocto-bsp/conf/layer.conf | 12 - .../conf/machine/beaglebone-yocto.conf | 40 - .../conf/machine/edgerouter.conf | 26 - .../conf/machine/genericx86-64.conf | 10 - .../conf/machine/genericx86.conf | 10 - .../machine/include/genericx86-common.inc | 25 - .../conf/machine/mpc8315e-rdb.conf | 35 - .../lib/oeqa/controllers/__init__.py | 0 .../lib/oeqa/controllers/beaglebonetarget.py | 98 - .../lib/oeqa/controllers/edgeroutertarget.py | 90 - .../lib/oeqa/controllers/grubtarget.py | 71 - .../lib/oeqa/selftest/cases/systemd_boot.py | 98 - .../formfactor/beaglebone-yocto/machconfig | 3 - .../formfactor/genericx86-64/machconfig | 6 - .../formfactor/genericx86/machconfig | 6 - .../formfactor/formfactor_0.0.bbappend | 1 - .../gma500-gfx-check/gma500-gfx-check.conf | 2 - .../gma500-gfx-check/gma500-gfx-check.sh | 15 - .../gma500-gfx-check/gma500-gfx-check_1.0.bb | 18 - .../beaglebone-yocto/xorg.conf | 20 - .../genericx86-64/xorg.conf | 0 .../xserver-xf86-config/genericx86/xorg.conf | 0 .../xserver-xf86-config_0.1.bbappend | 1 - .../linux/linux-yocto_4.10.bbappend | 27 - .../linux/linux-yocto_4.12.bbappend | 28 - .../linux/linux-yocto_4.4.bbappend | 27 - .../linux/linux-yocto_4.9.bbappend | 27 - poky/meta-yocto-bsp/wic/beaglebone-yocto.wks | 6 - poky/meta-yocto-bsp/wic/edgerouter.wks | 4 - poky/meta-yocto-bsp/wic/genericx86.wks | 7 - poky/meta-yocto-bsp/wic/mpc8315e-rdb.wks | 4 - poky/meta/COPYING.GPLv2 | 339 - poky/meta/COPYING.MIT | 17 - poky/meta/classes/allarch.bbclass | 51 - poky/meta/classes/archiver.bbclass | 472 - poky/meta/classes/autotools-brokensep.bbclass | 5 - poky/meta/classes/autotools.bbclass | 255 - poky/meta/classes/base.bbclass | 709 - poky/meta/classes/bash-completion.bbclass | 7 - poky/meta/classes/bin_package.bbclass | 39 - poky/meta/classes/binconfig-disabled.bbclass | 30 - poky/meta/classes/binconfig.bbclass | 63 - poky/meta/classes/blacklist.bbclass | 20 - poky/meta/classes/bluetooth.bbclass | 14 - poky/meta/classes/bugzilla.bbclass | 187 - poky/meta/classes/buildhistory.bbclass | 944 - poky/meta/classes/buildstats-summary.bbclass | 40 - poky/meta/classes/buildstats.bbclass | 219 - poky/meta/classes/ccache.bbclass | 11 - poky/meta/classes/chrpath.bbclass | 123 - poky/meta/classes/clutter.bbclass | 22 - poky/meta/classes/cmake.bbclass | 150 - poky/meta/classes/cml1.bbclass | 79 - poky/meta/classes/compress_doc.bbclass | 260 - poky/meta/classes/copyleft_compliance.bbclass | 64 - poky/meta/classes/copyleft_filter.bbclass | 79 - poky/meta/classes/core-image.bbclass | 72 - poky/meta/classes/cpan-base.bbclass | 18 - poky/meta/classes/cpan.bbclass | 55 - poky/meta/classes/cpan_build.bbclass | 40 - poky/meta/classes/cross-canadian.bbclass | 194 - poky/meta/classes/cross.bbclass | 99 - poky/meta/classes/crosssdk.bbclass | 44 - poky/meta/classes/cve-check.bbclass | 290 - poky/meta/classes/debian.bbclass | 141 - poky/meta/classes/deploy.bbclass | 11 - poky/meta/classes/devshell.bbclass | 155 - poky/meta/classes/devtool-source.bbclass | 221 - poky/meta/classes/devupstream.bbclass | 48 - .../classes/distro_features_check.bbclass | 37 - poky/meta/classes/distrodata.bbclass | 458 - poky/meta/classes/distrooverrides.bbclass | 32 - poky/meta/classes/distutils-base.bbclass | 4 - .../classes/distutils-common-base.bbclass | 13 - poky/meta/classes/distutils-tools.bbclass | 73 - poky/meta/classes/distutils.bbclass | 82 - poky/meta/classes/distutils3-base.bbclass | 5 - poky/meta/classes/distutils3.bbclass | 76 - poky/meta/classes/externalsrc.bbclass | 235 - poky/meta/classes/extrausers.bbclass | 69 - poky/meta/classes/fontcache.bbclass | 56 - poky/meta/classes/fs-uuid.bbclass | 24 - poky/meta/classes/gconf.bbclass | 71 - poky/meta/classes/gettext.bbclass | 24 - poky/meta/classes/gio-module-cache.bbclass | 37 - poky/meta/classes/gnome.bbclass | 1 - poky/meta/classes/gnomebase.bbclass | 29 - poky/meta/classes/go.bbclass | 182 - poky/meta/classes/goarch.bbclass | 86 - .../gobject-introspection-data.bbclass | 7 - .../classes/gobject-introspection.bbclass | 43 - poky/meta/classes/grub-efi.bbclass | 159 - poky/meta/classes/gsettings.bbclass | 38 - poky/meta/classes/gtk-doc.bbclass | 70 - poky/meta/classes/gtk-icon-cache.bbclass | 66 - poky/meta/classes/gtk-immodules-cache.bbclass | 89 - poky/meta/classes/icecc.bbclass | 340 - poky/meta/classes/image-buildinfo.bbclass | 85 - poky/meta/classes/image-container.bbclass | 21 - poky/meta/classes/image-live.bbclass | 279 - poky/meta/classes/image-mklibs.bbclass | 56 - poky/meta/classes/image-prelink.bbclass | 64 - poky/meta/classes/image.bbclass | 664 - poky/meta/classes/image_types.bbclass | 320 - poky/meta/classes/image_types_wic.bbclass | 125 - poky/meta/classes/insane.bbclass | 1312 - poky/meta/classes/kernel-arch.bbclass | 64 - poky/meta/classes/kernel-devicetree.bbclass | 112 - poky/meta/classes/kernel-fitimage.bbclass | 482 - poky/meta/classes/kernel-grub.bbclass | 105 - poky/meta/classes/kernel-module-split.bbclass | 155 - poky/meta/classes/kernel-uboot.bbclass | 26 - poky/meta/classes/kernel-uimage.bbclass | 35 - poky/meta/classes/kernel-yocto.bbclass | 391 - poky/meta/classes/kernel.bbclass | 667 - poky/meta/classes/kernelsrc.bbclass | 10 - poky/meta/classes/lib_package.bbclass | 7 - poky/meta/classes/libc-common.bbclass | 41 - poky/meta/classes/libc-package.bbclass | 380 - poky/meta/classes/license.bbclass | 686 - poky/meta/classes/linux-kernel-base.bbclass | 41 - poky/meta/classes/linuxloader.bbclass | 70 - poky/meta/classes/live-vm-common.bbclass | 64 - poky/meta/classes/logging.bbclass | 101 - poky/meta/classes/manpages.bbclass | 5 - poky/meta/classes/meta.bbclass | 4 - poky/meta/classes/metadata_scm.bbclass | 82 - poky/meta/classes/migrate_localcount.bbclass | 46 - poky/meta/classes/mime.bbclass | 57 - poky/meta/classes/mirrors.bbclass | 75 - poky/meta/classes/module-base.bbclass | 27 - poky/meta/classes/module.bbclass | 77 - poky/meta/classes/multilib.bbclass | 155 - poky/meta/classes/multilib_global.bbclass | 176 - poky/meta/classes/multilib_header.bbclass | 52 - poky/meta/classes/native.bbclass | 194 - poky/meta/classes/nativesdk.bbclass | 109 - poky/meta/classes/nopackages.bbclass | 12 - poky/meta/classes/npm.bbclass | 81 - poky/meta/classes/oelint.bbclass | 84 - poky/meta/classes/own-mirrors.bbclass | 13 - poky/meta/classes/package.bbclass | 2200 -- poky/meta/classes/package_deb.bbclass | 368 - poky/meta/classes/package_ipk.bbclass | 328 - poky/meta/classes/package_rpm.bbclass | 735 - poky/meta/classes/package_tar.bbclass | 73 - poky/meta/classes/packagedata.bbclass | 34 - .../classes/packagefeed-stability.bbclass | 252 - poky/meta/classes/packagegroup.bbclass | 58 - poky/meta/classes/patch.bbclass | 145 - poky/meta/classes/perl-version.bbclass | 24 - poky/meta/classes/perlnative.bbclass | 3 - poky/meta/classes/pixbufcache.bbclass | 64 - poky/meta/classes/pkgconfig.bbclass | 2 - poky/meta/classes/populate_sdk.bbclass | 7 - poky/meta/classes/populate_sdk_base.bbclass | 301 - poky/meta/classes/populate_sdk_ext.bbclass | 727 - poky/meta/classes/prexport.bbclass | 59 - poky/meta/classes/primport.bbclass | 21 - poky/meta/classes/ptest-gnome.bbclass | 8 - poky/meta/classes/ptest.bbclass | 67 - poky/meta/classes/python-dir.bbclass | 5 - poky/meta/classes/python3-dir.bbclass | 5 - poky/meta/classes/python3native.bbclass | 16 - poky/meta/classes/pythonnative.bbclass | 19 - poky/meta/classes/qemu.bbclass | 64 - poky/meta/classes/qemuboot.bbclass | 124 - poky/meta/classes/recipe_sanity.bbclass | 149 - poky/meta/classes/relative_symlinks.bbclass | 5 - poky/meta/classes/relocatable.bbclass | 18 - poky/meta/classes/remove-libtool.bbclass | 11 - poky/meta/classes/report-error.bbclass | 109 - poky/meta/classes/rm_work.bbclass | 185 - .../classes/rm_work_and_downloads.bbclass | 33 - poky/meta/classes/rootfs-postcommands.bbclass | 322 - poky/meta/classes/rootfs_deb.bbclass | 34 - poky/meta/classes/rootfs_ipk.bbclass | 37 - poky/meta/classes/rootfs_rpm.bbclass | 39 - poky/meta/classes/rootfsdebugfiles.bbclass | 41 - poky/meta/classes/sanity.bbclass | 953 - poky/meta/classes/scons.bbclass | 17 - poky/meta/classes/setuptools.bbclass | 8 - poky/meta/classes/setuptools3.bbclass | 8 - poky/meta/classes/sign_ipk.bbclass | 52 - poky/meta/classes/sign_package_feed.bbclass | 46 - poky/meta/classes/sign_rpm.bbclass | 75 - poky/meta/classes/siteconfig.bbclass | 33 - poky/meta/classes/siteinfo.bbclass | 191 - poky/meta/classes/spdx.bbclass | 364 - poky/meta/classes/sstate.bbclass | 1058 - poky/meta/classes/staging.bbclass | 617 - poky/meta/classes/syslinux.bbclass | 198 - poky/meta/classes/systemd-boot.bbclass | 128 - poky/meta/classes/systemd.bbclass | 210 - poky/meta/classes/terminal.bbclass | 105 - poky/meta/classes/testexport.bbclass | 177 - poky/meta/classes/testimage-auto.bbclass | 23 - poky/meta/classes/testimage.bbclass | 373 - poky/meta/classes/testsdk.bbclass | 195 - poky/meta/classes/texinfo.bbclass | 18 - poky/meta/classes/tinderclient.bbclass | 368 - poky/meta/classes/toaster.bbclass | 380 - .../classes/toolchain-scripts-base.bbclass | 11 - poky/meta/classes/toolchain-scripts.bbclass | 162 - poky/meta/classes/typecheck.bbclass | 12 - poky/meta/classes/uboot-config.bbclass | 57 - .../classes/uboot-extlinux-config.bbclass | 152 - poky/meta/classes/uboot-sign.bbclass | 95 - poky/meta/classes/uninative.bbclass | 140 - poky/meta/classes/update-alternatives.bbclass | 277 - poky/meta/classes/update-rc.d.bbclass | 142 - .../classes/upstream-version-is-even.bbclass | 5 - poky/meta/classes/useradd-staticids.bbclass | 311 - poky/meta/classes/useradd.bbclass | 252 - poky/meta/classes/useradd_base.bbclass | 147 - poky/meta/classes/utility-tasks.bbclass | 66 - poky/meta/classes/utils.bbclass | 445 - poky/meta/classes/vala.bbclass | 24 - poky/meta/classes/waf.bbclass | 40 - poky/meta/conf/abi_version.conf | 7 - poky/meta/conf/bitbake.conf | 877 - poky/meta/conf/conf-notes.txt | 12 - poky/meta/conf/distro/defaultsetup.conf | 24 - poky/meta/conf/distro/include/as-needed.inc | 13 - .../distro/include/default-distrovars.inc | 48 - .../conf/distro/include/default-providers.inc | 57 - .../conf/distro/include/default-versions.inc | 7 - .../meta/conf/distro/include/distro_alias.inc | 453 - poky/meta/conf/distro/include/maintainers.inc | 825 - .../conf/distro/include/no-static-libs.inc | 42 - .../conf/distro/include/security_flags.inc | 73 - .../conf/distro/include/tclibc-baremetal.inc | 32 - .../meta/conf/distro/include/tclibc-glibc.inc | 40 - poky/meta/conf/distro/include/tclibc-musl.inc | 29 - .../conf/distro/include/tcmode-default.inc | 72 - .../conf/distro/include/uninative-flags.inc | 7 - .../conf/distro/include/upstream_tracking.inc | 24 - .../meta/conf/distro/include/world-broken.inc | 31 - .../conf/distro/include/yocto-uninative.inc | 11 - poky/meta/conf/documentation.conf | 463 - poky/meta/conf/layer.conf | 73 - poky/meta/conf/licenses.conf | 192 - poky/meta/conf/machine-sdk/i586.conf | 4 - poky/meta/conf/machine-sdk/i686.conf | 3 - poky/meta/conf/machine-sdk/x86_64.conf | 2 - poky/meta/conf/machine/include/README | 100 - poky/meta/conf/machine/include/arm/README | 40 - .../conf/machine/include/arm/arch-arm.inc | 16 - .../conf/machine/include/arm/arch-arm64.inc | 36 - .../conf/machine/include/arm/arch-armv4.inc | 34 - .../machine/include/arm/arch-armv5-dsp.inc | 52 - .../conf/machine/include/arm/arch-armv5.inc | 57 - .../conf/machine/include/arm/arch-armv6.inc | 50 - .../conf/machine/include/arm/arch-armv7a.inc | 141 - .../conf/machine/include/arm/arch-armv7ve.inc | 140 - .../conf/machine/include/arm/arch-armv8.inc | 1 - .../machine/include/arm/feature-arm-neon.inc | 18 - .../machine/include/arm/feature-arm-thumb.inc | 30 - .../machine/include/arm/feature-arm-vfp.inc | 14 - poky/meta/conf/machine/include/mips/README | 56 - .../conf/machine/include/mips/arch-mips.inc | 151 - .../include/mips/feature-mips-mips16e.inc | 17 - .../machine/include/mips/tune-mips-24k.inc | 51 - poky/meta/conf/machine/include/powerpc/README | 17 - .../machine/include/powerpc/arch-powerpc.inc | 34 - .../include/powerpc/arch-powerpc64.inc | 17 - poky/meta/conf/machine/include/qemu.inc | 30 - .../conf/machine/include/qemuboot-mips.inc | 8 - .../conf/machine/include/qemuboot-x86.inc | 17 - poky/meta/conf/machine/include/sh/README | 11 - poky/meta/conf/machine/include/sh/arch-sh.inc | 9 - poky/meta/conf/machine/include/soc-family.inc | 3 - .../conf/machine/include/tune-arm1136jf-s.inc | 11 - .../conf/machine/include/tune-arm920t.inc | 11 - .../conf/machine/include/tune-arm926ejs.inc | 11 - .../conf/machine/include/tune-arm9tdmi.inc | 11 - poky/meta/conf/machine/include/tune-atom.inc | 2 - poky/meta/conf/machine/include/tune-c3.inc | 12 - poky/meta/conf/machine/include/tune-core2.inc | 38 - .../meta/conf/machine/include/tune-corei7.inc | 39 - .../conf/machine/include/tune-cortexa15.inc | 48 - .../conf/machine/include/tune-cortexa17.inc | 48 - .../conf/machine/include/tune-cortexa5.inc | 36 - .../conf/machine/include/tune-cortexa7.inc | 48 - .../conf/machine/include/tune-cortexa8.inc | 36 - .../conf/machine/include/tune-cortexa9.inc | 51 - .../meta/conf/machine/include/tune-ep9312.inc | 12 - .../conf/machine/include/tune-i586-nlp.inc | 19 - poky/meta/conf/machine/include/tune-i586.inc | 14 - .../meta/conf/machine/include/tune-iwmmxt.inc | 14 - .../meta/conf/machine/include/tune-mips32.inc | 29 - .../conf/machine/include/tune-mips32r2.inc | 29 - .../conf/machine/include/tune-mips32r6.inc | 29 - .../meta/conf/machine/include/tune-mips64.inc | 3 - .../conf/machine/include/tune-mips64r2.inc | 84 - .../conf/machine/include/tune-mips64r6.inc | 58 - .../meta/conf/machine/include/tune-octeon.inc | 32 - .../meta/conf/machine/include/tune-power5.inc | 21 - .../meta/conf/machine/include/tune-power6.inc | 21 - .../meta/conf/machine/include/tune-power7.inc | 21 - .../meta/conf/machine/include/tune-ppc476.inc | 14 - .../conf/machine/include/tune-ppc603e.inc | 14 - .../conf/machine/include/tune-ppc7400.inc | 14 - .../conf/machine/include/tune-ppce300c2.inc | 11 - .../conf/machine/include/tune-ppce300c3.inc | 23 - .../conf/machine/include/tune-ppce500.inc | 20 - .../conf/machine/include/tune-ppce500mc.inc | 17 - .../conf/machine/include/tune-ppce500v2.inc | 20 - .../conf/machine/include/tune-ppce5500.inc | 23 - .../conf/machine/include/tune-ppce6500.inc | 24 - poky/meta/conf/machine/include/tune-sh3.inc | 17 - poky/meta/conf/machine/include/tune-sh4.inc | 34 - .../machine/include/tune-strongarm1100.inc | 11 - .../conf/machine/include/tune-supersparc.inc | 4 - .../conf/machine/include/tune-thunderx.inc | 19 - .../meta/conf/machine/include/tune-xscale.inc | 16 - poky/meta/conf/machine/include/x86-base.inc | 49 - poky/meta/conf/machine/include/x86/README | 24 - .../conf/machine/include/x86/arch-x86.inc | 54 - poky/meta/conf/machine/qemuarm.conf | 20 - poky/meta/conf/machine/qemuarm64.conf | 24 - poky/meta/conf/machine/qemumips.conf | 14 - poky/meta/conf/machine/qemumips64.conf | 14 - poky/meta/conf/machine/qemuppc.conf | 21 - poky/meta/conf/machine/qemux86-64.conf | 37 - poky/meta/conf/machine/qemux86.conf | 36 - poky/meta/conf/migrate_localcount.conf | 1 - poky/meta/conf/multiconfig/default.conf | 0 poky/meta/conf/multilib.conf | 28 - poky/meta/conf/prexport.conf | 1 - poky/meta/conf/primport.conf | 1 - poky/meta/conf/sanity.conf | 16 - poky/meta/files/common-licenses/AAL | 51 - poky/meta/files/common-licenses/AFL-1.2 | 123 - poky/meta/files/common-licenses/AFL-2.0 | 48 - poky/meta/files/common-licenses/AFL-2.1 | 50 - poky/meta/files/common-licenses/AFL-3.0 | 27 - poky/meta/files/common-licenses/AGPL-3.0 | 661 - poky/meta/files/common-licenses/ANTLR-PD | 32 - poky/meta/files/common-licenses/APL-1.0 | 218 - poky/meta/files/common-licenses/APSL-1.0 | 372 - poky/meta/files/common-licenses/APSL-1.1 | 374 - poky/meta/files/common-licenses/APSL-1.2 | 105 - poky/meta/files/common-licenses/APSL-2.0 | 102 - poky/meta/files/common-licenses/Adobe | 14 - poky/meta/files/common-licenses/Apache-1.0 | 61 - poky/meta/files/common-licenses/Apache-1.1 | 60 - poky/meta/files/common-licenses/Apache-2.0 | 204 - poky/meta/files/common-licenses/Artistic-1.0 | 50 - poky/meta/files/common-licenses/Artistic-2.0 | 203 - poky/meta/files/common-licenses/BSD | 26 - poky/meta/files/common-licenses/BSD-0-Clause | 12 - poky/meta/files/common-licenses/BSD-2-Clause | 13 - poky/meta/files/common-licenses/BSD-3-Clause | 11 - poky/meta/files/common-licenses/BSD-4-Clause | 29 - poky/meta/files/common-licenses/BSL-1.0 | 25 - poky/meta/files/common-licenses/BitstreamVera | 160 - poky/meta/files/common-licenses/CATOSL-1.1 | 116 - poky/meta/files/common-licenses/CC-BY-1.0 | 60 - poky/meta/files/common-licenses/CC-BY-2.0 | 63 - poky/meta/files/common-licenses/CC-BY-2.5 | 63 - poky/meta/files/common-licenses/CC-BY-3.0 | 70 - poky/meta/files/common-licenses/CC-BY-NC-1.0 | 63 - poky/meta/files/common-licenses/CC-BY-NC-2.0 | 66 - poky/meta/files/common-licenses/CC-BY-NC-2.5 | 66 - poky/meta/files/common-licenses/CC-BY-NC-3.0 | 72 - .../files/common-licenses/CC-BY-NC-ND-1.0 | 5 - .../files/common-licenses/CC-BY-NC-ND-2.0 | 63 - .../files/common-licenses/CC-BY-NC-ND-2.5 | 63 - .../files/common-licenses/CC-BY-NC-ND-3.0 | 69 - .../files/common-licenses/CC-BY-NC-SA-1.0 | 64 - .../files/common-licenses/CC-BY-NC-SA-2.0 | 68 - .../files/common-licenses/CC-BY-NC-SA-2.5 | 68 - .../files/common-licenses/CC-BY-NC-SA-3.0 | 74 - poky/meta/files/common-licenses/CC-BY-ND-1.0 | 59 - poky/meta/files/common-licenses/CC-BY-ND-2.0 | 62 - poky/meta/files/common-licenses/CC-BY-ND-2.5 | 62 - poky/meta/files/common-licenses/CC-BY-ND-3.0 | 68 - poky/meta/files/common-licenses/CC-BY-SA-1.0 | 63 - poky/meta/files/common-licenses/CC-BY-SA-2.0 | 67 - poky/meta/files/common-licenses/CC-BY-SA-2.5 | 67 - poky/meta/files/common-licenses/CC-BY-SA-3.0 | 74 - poky/meta/files/common-licenses/CC0-1.0 | 32 - poky/meta/files/common-licenses/CDDL-1.0 | 131 - poky/meta/files/common-licenses/CECILL-1.0 | 242 - poky/meta/files/common-licenses/CECILL-2.0 | 243 - poky/meta/files/common-licenses/CECILL-B | 247 - poky/meta/files/common-licenses/CECILL-C | 241 - poky/meta/files/common-licenses/CPAL-1.0 | 109 - poky/meta/files/common-licenses/CPL-1.0 | 215 - poky/meta/files/common-licenses/CUA-OPL-1.0 | 471 - poky/meta/files/common-licenses/ClArtistic | 138 - poky/meta/files/common-licenses/DSSSL | 49 - poky/meta/files/common-licenses/ECL-1.0 | 55 - poky/meta/files/common-licenses/ECL-2.0 | 99 - poky/meta/files/common-licenses/EDL-1.0 | 13 - poky/meta/files/common-licenses/EFL-1.0 | 25 - poky/meta/files/common-licenses/EFL-2.0 | 12 - poky/meta/files/common-licenses/EPL-1.0 | 72 - poky/meta/files/common-licenses/EUDatagrid | 29 - poky/meta/files/common-licenses/EUPL-1.0 | 184 - poky/meta/files/common-licenses/EUPL-1.1 | 204 - .../files/common-licenses/Elfutils-Exception | 12 - poky/meta/files/common-licenses/Entessa | 20 - poky/meta/files/common-licenses/ErlPL-1.1 | 288 - poky/meta/files/common-licenses/FSF-Unlimited | 4 - poky/meta/files/common-licenses/Fair | 11 - poky/meta/files/common-licenses/Frameworx-1.0 | 69 - poky/meta/files/common-licenses/FreeType | 170 - poky/meta/files/common-licenses/GFDL-1.1 | 355 - poky/meta/files/common-licenses/GFDL-1.2 | 399 - poky/meta/files/common-licenses/GFDL-1.3 | 453 - poky/meta/files/common-licenses/GPL-1.0 | 252 - .../GPL-2-with-bison-exception | 7 - poky/meta/files/common-licenses/GPL-2.0 | 132 - .../GPL-2.0-with-GCC-exception | 17 - .../GPL-2.0-with-OpenSSL-exception | 285 - .../GPL-2.0-with-autoconf-exception | 6 - .../GPL-2.0-with-classpath-exception | 7 - .../GPL-2.0-with-font-exception | 18 - poky/meta/files/common-licenses/GPL-3.0 | 225 - .../GPL-3.0-with-GCC-exception | 27 - .../GPL-3.0-with-autoconf-exception | 28 - poky/meta/files/common-licenses/HPND | 11 - poky/meta/files/common-licenses/ICU | 13 - poky/meta/files/common-licenses/IPA | 95 - poky/meta/files/common-licenses/IPL-1.0 | 213 - poky/meta/files/common-licenses/ISC | 10 - poky/meta/files/common-licenses/LGPL-2.0 | 342 - poky/meta/files/common-licenses/LGPL-2.1 | 176 - poky/meta/files/common-licenses/LGPL-3.0 | 65 - poky/meta/files/common-licenses/LPL-1.02 | 76 - poky/meta/files/common-licenses/LPPL-1.0 | 213 - poky/meta/files/common-licenses/LPPL-1.1 | 316 - poky/meta/files/common-licenses/LPPL-1.2 | 320 - poky/meta/files/common-licenses/LPPL-1.3c | 418 - poky/meta/files/common-licenses/Libpng | 112 - poky/meta/files/common-licenses/MIT | 23 - poky/meta/files/common-licenses/MPL-1.0 | 109 - poky/meta/files/common-licenses/MPL-1.1 | 185 - poky/meta/files/common-licenses/MPL-2.0 | 373 - poky/meta/files/common-licenses/MS-PL | 19 - poky/meta/files/common-licenses/MS-RL | 23 - poky/meta/files/common-licenses/MirOS | 58 - poky/meta/files/common-licenses/Motosoto | 422 - poky/meta/files/common-licenses/Multics | 40 - poky/meta/files/common-licenses/NASA-1.3 | 79 - poky/meta/files/common-licenses/NCSA | 34 - poky/meta/files/common-licenses/NGPL | 45 - poky/meta/files/common-licenses/NPOSL-3.0 | 61 - poky/meta/files/common-licenses/NTP | 7 - poky/meta/files/common-licenses/Nauman | 50 - poky/meta/files/common-licenses/Nokia | 423 - poky/meta/files/common-licenses/OASIS | 13 - poky/meta/files/common-licenses/OCLC-2.0 | 78 - poky/meta/files/common-licenses/ODbL-1.0 | 543 - poky/meta/files/common-licenses/OFL-1.1 | 88 - poky/meta/files/common-licenses/OGTSL | 120 - poky/meta/files/common-licenses/OLDAP-2.8 | 49 - poky/meta/files/common-licenses/OSL-1.0 | 164 - poky/meta/files/common-licenses/OSL-2.0 | 48 - poky/meta/files/common-licenses/OSL-3.0 | 27 - poky/meta/files/common-licenses/OpenSSL | 107 - poky/meta/files/common-licenses/PD | 1 - poky/meta/files/common-licenses/PHP-3.0 | 70 - .../files/common-licenses/ParaTypeFFL-1.3 | 44 - poky/meta/files/common-licenses/PostgreSQL | 14 - poky/meta/files/common-licenses/Proprietary | 1 - poky/meta/files/common-licenses/Python-2.0 | 192 - poky/meta/files/common-licenses/QPL-1.0 | 48 - poky/meta/files/common-licenses/RHeCos-1 | 401 - poky/meta/files/common-licenses/RHeCos-1.1 | 151 - poky/meta/files/common-licenses/RPL-1.5 | 546 - poky/meta/files/common-licenses/RPSL-1.0 | 182 - poky/meta/files/common-licenses/RSCPL | 193 - poky/meta/files/common-licenses/Ruby | 60 - poky/meta/files/common-licenses/SAX-PD | 33 - poky/meta/files/common-licenses/SGI-1 | 36 - poky/meta/files/common-licenses/SMAIL_GPL | 164 - poky/meta/files/common-licenses/SPL-1.0 | 507 - poky/meta/files/common-licenses/Simple-2.0 | 27 - poky/meta/files/common-licenses/Sleepycat | 90 - poky/meta/files/common-licenses/SugarCRM-1 | 431 - .../meta/files/common-licenses/SugarCRM-1.1.3 | 160 - poky/meta/files/common-licenses/UCB | 26 - poky/meta/files/common-licenses/VSL-1.0 | 49 - poky/meta/files/common-licenses/W3C | 17 - poky/meta/files/common-licenses/WXwindows | 55 - poky/meta/files/common-licenses/Watcom-1.0 | 140 - poky/meta/files/common-licenses/XFree86-1.0 | 22 - poky/meta/files/common-licenses/XFree86-1.1 | 18 - poky/meta/files/common-licenses/XSL | 48 - poky/meta/files/common-licenses/Xnet | 27 - poky/meta/files/common-licenses/YPL-1.1 | 30 - poky/meta/files/common-licenses/ZPL-1.1 | 28 - poky/meta/files/common-licenses/ZPL-2.0 | 61 - poky/meta/files/common-licenses/ZPL-2.1 | 18 - poky/meta/files/common-licenses/Zimbra-1.3 | 30 - poky/meta/files/common-licenses/Zlib | 21 - poky/meta/files/common-licenses/bzip2 | 41 - poky/meta/files/common-licenses/eCos-2.0 | 18 - poky/meta/files/common-licenses/gSOAP-1 | 380 - poky/meta/files/common-licenses/gSOAP-1.3b | 157 - poky/meta/files/common-licenses/pkgconf | 10 - poky/meta/files/common-licenses/tcl | 40 - poky/meta/files/common-licenses/unfs3 | 24 - poky/meta/files/device_table-minimal.txt | 35 - poky/meta/files/ext-sdk-prepare.py | 74 - poky/meta/files/fs-perms-persistent-log.txt | 66 - poky/meta/files/fs-perms.txt | 67 - poky/meta/files/toolchain-shar-extract.sh | 270 - poky/meta/files/toolchain-shar-relocate.sh | 79 - poky/meta/lib/bblayers/create.py | 66 - poky/meta/lib/bblayers/templates/README | 41 - poky/meta/lib/bblayers/templates/example.bb | 11 - poky/meta/lib/bblayers/templates/layer.conf | 10 - poky/meta/lib/buildstats.py | 158 - poky/meta/lib/oe/__init__.py | 2 - poky/meta/lib/oe/buildhistory_analysis.py | 624 - poky/meta/lib/oe/cachedpath.py | 233 - poky/meta/lib/oe/classextend.py | 122 - poky/meta/lib/oe/classutils.py | 44 - poky/meta/lib/oe/copy_buildsystem.py | 262 - poky/meta/lib/oe/data.py | 47 - poky/meta/lib/oe/distro_check.py | 308 - poky/meta/lib/oe/gpg_sign.py | 124 - poky/meta/lib/oe/license.py | 243 - poky/meta/lib/oe/lsb.py | 117 - poky/meta/lib/oe/maketype.py | 102 - poky/meta/lib/oe/manifest.py | 344 - poky/meta/lib/oe/package.py | 295 - poky/meta/lib/oe/package_manager.py | 1595 -- poky/meta/lib/oe/packagedata.py | 95 - poky/meta/lib/oe/packagegroup.py | 36 - poky/meta/lib/oe/patch.py | 878 - poky/meta/lib/oe/path.py | 239 - poky/meta/lib/oe/prservice.py | 126 - poky/meta/lib/oe/qa.py | 171 - poky/meta/lib/oe/recipeutils.py | 971 - poky/meta/lib/oe/rootfs.py | 1039 - poky/meta/lib/oe/sdk.py | 401 - poky/meta/lib/oe/sstatesig.py | 370 - poky/meta/lib/oe/terminal.py | 308 - poky/meta/lib/oe/types.py | 153 - poky/meta/lib/oe/useradd.py | 68 - poky/meta/lib/oe/utils.py | 370 - poky/meta/lib/oeqa/buildperf/__init__.py | 19 - poky/meta/lib/oeqa/buildperf/base.py | 511 - poky/meta/lib/oeqa/buildperf/test_basic.py | 127 - poky/meta/lib/oeqa/controllers/__init__.py | 3 - poky/meta/lib/oeqa/controllers/masterimage.py | 239 - .../lib/oeqa/controllers/testtargetloader.py | 68 - poky/meta/lib/oeqa/core/README | 76 - poky/meta/lib/oeqa/core/__init__.py | 0 poky/meta/lib/oeqa/core/case.py | 46 - poky/meta/lib/oeqa/core/cases/__init__.py | 0 .../lib/oeqa/core/cases/example/data.json | 1 - .../lib/oeqa/core/cases/example/test_basic.py | 20 - poky/meta/lib/oeqa/core/context.py | 191 - poky/meta/lib/oeqa/core/decorator/__init__.py | 71 - poky/meta/lib/oeqa/core/decorator/data.py | 98 - poky/meta/lib/oeqa/core/decorator/depends.py | 100 - poky/meta/lib/oeqa/core/decorator/oeid.py | 23 - poky/meta/lib/oeqa/core/decorator/oetag.py | 24 - .../meta/lib/oeqa/core/decorator/oetimeout.py | 45 - poky/meta/lib/oeqa/core/exception.py | 23 - poky/meta/lib/oeqa/core/loader.py | 355 - poky/meta/lib/oeqa/core/runner.py | 277 - poky/meta/lib/oeqa/core/target/__init__.py | 33 - poky/meta/lib/oeqa/core/target/qemu.py | 45 - poky/meta/lib/oeqa/core/target/ssh.py | 267 - poky/meta/lib/oeqa/core/tests/__init__.py | 0 poky/meta/lib/oeqa/core/tests/cases/data.py | 20 - .../meta/lib/oeqa/core/tests/cases/depends.py | 38 - .../core/tests/cases/loader/invalid/oeid.py | 15 - .../tests/cases/loader/threaded/threaded.py | 12 - .../cases/loader/threaded/threaded_alone.py | 8 - .../cases/loader/threaded/threaded_depends.py | 10 - .../cases/loader/threaded/threaded_module.py | 12 - .../core/tests/cases/loader/valid/another.py | 9 - poky/meta/lib/oeqa/core/tests/cases/oeid.py | 18 - poky/meta/lib/oeqa/core/tests/cases/oetag.py | 18 - .../meta/lib/oeqa/core/tests/cases/timeout.py | 18 - poky/meta/lib/oeqa/core/tests/common.py | 45 - poky/meta/lib/oeqa/core/tests/test_data.py | 51 - .../lib/oeqa/core/tests/test_decorators.py | 147 - poky/meta/lib/oeqa/core/tests/test_loader.py | 114 - poky/meta/lib/oeqa/core/tests/test_runner.py | 38 - poky/meta/lib/oeqa/core/threaded.py | 275 - poky/meta/lib/oeqa/core/utils/__init__.py | 0 poky/meta/lib/oeqa/core/utils/misc.py | 44 - poky/meta/lib/oeqa/core/utils/path.py | 19 - poky/meta/lib/oeqa/core/utils/test.py | 86 - poky/meta/lib/oeqa/files/test.c | 26 - poky/meta/lib/oeqa/files/test.cpp | 3 - poky/meta/lib/oeqa/files/test.pl | 2 - poky/meta/lib/oeqa/files/test.py | 6 - poky/meta/lib/oeqa/oetest.py | 616 - poky/meta/lib/oeqa/runexported.py | 153 - poky/meta/lib/oeqa/runtime/case.py | 17 - poky/meta/lib/oeqa/runtime/cases/_qemutiny.py | 8 - poky/meta/lib/oeqa/runtime/cases/buildcpio.py | 30 - .../lib/oeqa/runtime/cases/buildgalculator.py | 28 - poky/meta/lib/oeqa/runtime/cases/buildlzip.py | 34 - poky/meta/lib/oeqa/runtime/cases/connman.py | 30 - poky/meta/lib/oeqa/runtime/cases/date.py | 38 - poky/meta/lib/oeqa/runtime/cases/df.py | 13 - poky/meta/lib/oeqa/runtime/cases/dnf.py | 123 - poky/meta/lib/oeqa/runtime/cases/gcc.py | 73 - .../lib/oeqa/runtime/cases/kernelmodule.py | 40 - poky/meta/lib/oeqa/runtime/cases/ldd.py | 25 - poky/meta/lib/oeqa/runtime/cases/logrotate.py | 42 - poky/meta/lib/oeqa/runtime/cases/multilib.py | 41 - poky/meta/lib/oeqa/runtime/cases/oe_syslog.py | 66 - poky/meta/lib/oeqa/runtime/cases/pam.py | 33 - poky/meta/lib/oeqa/runtime/cases/parselogs.py | 363 - poky/meta/lib/oeqa/runtime/cases/perl.py | 37 - poky/meta/lib/oeqa/runtime/cases/ping.py | 24 - poky/meta/lib/oeqa/runtime/cases/ptest.py | 82 - poky/meta/lib/oeqa/runtime/cases/python.py | 43 - poky/meta/lib/oeqa/runtime/cases/rpm.py | 142 - poky/meta/lib/oeqa/runtime/cases/scanelf.py | 26 - poky/meta/lib/oeqa/runtime/cases/scp.py | 33 - .../lib/oeqa/runtime/cases/skeletoninit.py | 33 - poky/meta/lib/oeqa/runtime/cases/ssh.py | 15 - poky/meta/lib/oeqa/runtime/cases/systemd.py | 181 - poky/meta/lib/oeqa/runtime/cases/x32lib.py | 19 - poky/meta/lib/oeqa/runtime/cases/xorg.py | 17 - poky/meta/lib/oeqa/runtime/context.py | 226 - .../lib/oeqa/runtime/decorator/package.py | 53 - poky/meta/lib/oeqa/runtime/files/hellomod.c | 19 - .../lib/oeqa/runtime/files/hellomod_makefile | 8 - poky/meta/lib/oeqa/runtime/files/testmakefile | 5 - poky/meta/lib/oeqa/runtime/loader.py | 16 - poky/meta/lib/oeqa/runtime/utils/__init__.py | 0 .../oeqa/runtime/utils/targetbuildproject.py | 39 - poky/meta/lib/oeqa/sdk/__init__.py | 0 poky/meta/lib/oeqa/sdk/case.py | 12 - poky/meta/lib/oeqa/sdk/cases/buildcpio.py | 33 - .../lib/oeqa/sdk/cases/buildgalculator.py | 35 - poky/meta/lib/oeqa/sdk/cases/buildlzip.py | 36 - poky/meta/lib/oeqa/sdk/cases/gcc.py | 43 - poky/meta/lib/oeqa/sdk/cases/perl.py | 28 - poky/meta/lib/oeqa/sdk/cases/python.py | 32 - poky/meta/lib/oeqa/sdk/context.py | 134 - poky/meta/lib/oeqa/sdk/files/testsdkmakefile | 5 - poky/meta/lib/oeqa/sdk/utils/__init__.py | 0 .../lib/oeqa/sdk/utils/sdkbuildproject.py | 45 - poky/meta/lib/oeqa/sdkext/__init__.py | 0 poky/meta/lib/oeqa/sdkext/case.py | 21 - poky/meta/lib/oeqa/sdkext/cases/devtool.py | 129 - poky/meta/lib/oeqa/sdkext/context.py | 29 - .../meta/lib/oeqa/sdkext/files/myapp/Makefile | 10 - poky/meta/lib/oeqa/sdkext/files/myapp/myapp.c | 9 - .../sdkext/files/myapp_cmake/CMakeLists.txt | 11 - .../lib/oeqa/sdkext/files/myapp_cmake/myapp.c | 9 - poky/meta/lib/oeqa/selftest/case.py | 278 - .../selftest/cases/_sstatetests_noauto.py | 92 - poky/meta/lib/oeqa/selftest/cases/archiver.py | 118 - poky/meta/lib/oeqa/selftest/cases/bblayers.py | 97 - poky/meta/lib/oeqa/selftest/cases/bbtests.py | 279 - .../lib/oeqa/selftest/cases/buildhistory.py | 46 - .../lib/oeqa/selftest/cases/buildoptions.py | 166 - .../lib/oeqa/selftest/cases/containerimage.py | 85 - poky/meta/lib/oeqa/selftest/cases/devtool.py | 1711 -- .../lib/oeqa/selftest/cases/distrodata.py | 42 - poky/meta/lib/oeqa/selftest/cases/eSDK.py | 111 - .../lib/oeqa/selftest/cases/gotoolchain.py | 67 - .../lib/oeqa/selftest/cases/image_typedep.py | 53 - .../lib/oeqa/selftest/cases/imagefeatures.py | 240 - .../lib/oeqa/selftest/cases/layerappend.py | 95 - poky/meta/lib/oeqa/selftest/cases/liboe.py | 102 - .../lib/oeqa/selftest/cases/lic_checksum.py | 35 - poky/meta/lib/oeqa/selftest/cases/manifest.py | 166 - .../lib/oeqa/selftest/cases/oelib/__init__.py | 0 .../oeqa/selftest/cases/oelib/buildhistory.py | 99 - .../meta/lib/oeqa/selftest/cases/oelib/elf.py | 21 - .../lib/oeqa/selftest/cases/oelib/license.py | 99 - .../lib/oeqa/selftest/cases/oelib/path.py | 89 - .../lib/oeqa/selftest/cases/oelib/types.py | 50 - .../lib/oeqa/selftest/cases/oelib/utils.py | 51 - .../meta/lib/oeqa/selftest/cases/oescripts.py | 15 - poky/meta/lib/oeqa/selftest/cases/package.py | 86 - poky/meta/lib/oeqa/selftest/cases/pkgdata.py | 224 - .../meta/lib/oeqa/selftest/cases/prservice.py | 131 - .../lib/oeqa/selftest/cases/recipetool.py | 698 - poky/meta/lib/oeqa/selftest/cases/runcmd.py | 134 - poky/meta/lib/oeqa/selftest/cases/runqemu.py | 138 - .../lib/oeqa/selftest/cases/runtime_test.py | 223 - poky/meta/lib/oeqa/selftest/cases/selftest.py | 51 - poky/meta/lib/oeqa/selftest/cases/signing.py | 187 - poky/meta/lib/oeqa/selftest/cases/sstate.py | 63 - .../lib/oeqa/selftest/cases/sstatetests.py | 496 - poky/meta/lib/oeqa/selftest/cases/tinfoil.py | 231 - poky/meta/lib/oeqa/selftest/cases/wic.py | 1063 - poky/meta/lib/oeqa/selftest/context.py | 279 - poky/meta/lib/oeqa/targetcontrol.py | 230 - poky/meta/lib/oeqa/utils/__init__.py | 103 - poky/meta/lib/oeqa/utils/buildproject.py | 55 - poky/meta/lib/oeqa/utils/commands.py | 357 - poky/meta/lib/oeqa/utils/decorators.py | 295 - poky/meta/lib/oeqa/utils/dump.py | 91 - poky/meta/lib/oeqa/utils/ftools.py | 46 - poky/meta/lib/oeqa/utils/git.py | 80 - poky/meta/lib/oeqa/utils/httpserver.py | 36 - poky/meta/lib/oeqa/utils/logparser.py | 126 - poky/meta/lib/oeqa/utils/metadata.py | 108 - poky/meta/lib/oeqa/utils/network.py | 8 - poky/meta/lib/oeqa/utils/package_manager.py | 210 - poky/meta/lib/oeqa/utils/qemurunner.py | 579 - poky/meta/lib/oeqa/utils/qemutinyrunner.py | 176 - poky/meta/lib/oeqa/utils/sshcontrol.py | 242 - poky/meta/lib/oeqa/utils/subprocesstweak.py | 19 - poky/meta/lib/oeqa/utils/targetbuild.py | 139 - poky/meta/lib/oeqa/utils/testexport.py | 263 - poky/meta/lib/rootfspostcommands.py | 56 - poky/meta/recipes-bsp/acpid/acpid.inc | 32 - .../recipes-bsp/acpid/acpid/acpid.service | 10 - poky/meta/recipes-bsp/acpid/acpid/init | 31 - poky/meta/recipes-bsp/acpid/acpid_2.0.28.bb | 7 - .../meta/recipes-bsp/alsa-state/alsa-state.bb | 68 - .../alsa-state/alsa-state/alsa-state-init | 39 - .../alsa-state/alsa-state/asound.conf | 1 - .../alsa-state/alsa-state/asound.state | 1 - poky/meta/recipes-bsp/apmd/apmd/apmd.service | 7 - poky/meta/recipes-bsp/apmd/apmd/apmd_proxy | 91 - .../recipes-bsp/apmd/apmd/apmd_proxy.conf | 16 - poky/meta/recipes-bsp/apmd/apmd/default | 8 - poky/meta/recipes-bsp/apmd/apmd/init | 51 - poky/meta/recipes-bsp/apmd/apmd/legacy.patch | 133 - poky/meta/recipes-bsp/apmd/apmd/libtool.patch | 33 - poky/meta/recipes-bsp/apmd/apmd/linkage.patch | 53 - poky/meta/recipes-bsp/apmd/apmd/unlinux.patch | 25 - .../recipes-bsp/apmd/apmd/wexitcode.patch | 26 - poky/meta/recipes-bsp/apmd/apmd_3.2.2-15.bb | 85 - .../eee-acpi-scripts/eee-acpi-scripts_git.bb | 39 - .../eee-acpi-scripts/files/policy-funcs | 8 - .../eee-acpi-scripts/files/powerbtn.patch | 22 - .../files/remove-doc-check.patch | 60 - poky/meta/recipes-bsp/formfactor/files/config | 50 - .../recipes-bsp/formfactor/files/machconfig | 0 .../formfactor/files/qemuarm/machconfig | 10 - .../formfactor/files/qemuarmv6/machconfig | 10 - .../formfactor/files/qemuarmv7/machconfig | 10 - .../formfactor/files/qemumips/machconfig | 10 - .../formfactor/files/qemumips64/machconfig | 10 - .../formfactor/files/qemuppc/machconfig | 10 - .../formfactor/files/qemux86-64/machconfig | 10 - .../formfactor/files/qemux86/machconfig | 10 - .../recipes-bsp/formfactor/formfactor_0.0.bb | 20 - .../gnu-efi/gnu-efi/gcc46-compatibility.patch | 35 - .../lib-Makefile-fix-parallel-issue.patch | 38 - .../gnu-efi/parallel-make-archives.patch | 54 - .../meta/recipes-bsp/gnu-efi/gnu-efi_3.0.6.bb | 71 - ...ath-sse-as-well-when-SSE-is-disabled.patch | 46 - ...charset_alias-when-building-for-musl.patch | 30 - ...b.d-10_linux.in-add-oe-s-kernel-name.patch | 56 - .../grub/files/autogen.sh-exclude-pc.patch | 34 - poky/meta/recipes-bsp/grub/files/cfg | 2 - .../grub/files/fix.build.with.gcc-7.patch | 39 - ...icitly-keeps-symbole-.module_license.patch | 61 - poky/meta/recipes-bsp/grub/grub-efi_2.02.bb | 81 - poky/meta/recipes-bsp/grub/grub2.inc | 72 - poky/meta/recipes-bsp/grub/grub_2.02.bb | 21 - .../recipes-bsp/keymaps/files/GPLv2.patch | 347 - poky/meta/recipes-bsp/keymaps/files/keymap.sh | 16 - poky/meta/recipes-bsp/keymaps/keymaps_1.0.bb | 50 - .../recipes-bsp/libacpi/files/ldflags.patch | 41 - .../libacpi/files/libacpi_fix_for_x32.patch | 47 - .../libacpi/files/makefile-fix.patch | 47 - ...e_correct_strip_in_cross_environment.patch | 23 - poky/meta/recipes-bsp/libacpi/libacpi_0.2.bb | 32 - .../lrzsz/lrzsz-0.12.20/acdefine.patch | 19 - .../lrzsz/lrzsz-0.12.20/autotools.patch | 39 - .../lrzsz/lrzsz-0.12.20/gettext.patch | 21884 ---------------- .../lrzsz-0.12.20/lrzsz-check-locale.h.patch | 32 - .../lrzsz_fix_for_automake-1.12.patch | 49 - .../lrzsz/lrzsz-0.12.20/makefile.patch | 22 - poky/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb | 48 - .../pciutils/pciutils/configure.patch | 81 - .../recipes-bsp/pciutils/pciutils_3.5.5.bb | 58 - .../pcmciautils-018/lex_sys_types.patch | 21 - .../pcmciautils-018/makefile_fix.patch | 101 - .../pcmciautils-018/makefile_race.patch | 43 - .../recipes-bsp/pcmciautils/pcmciautils.inc | 34 - .../pcmciautils/pcmciautils_018.bb | 11 - .../recipes-bsp/pm-utils/pm-utils_1.4.1.bb | 27 - .../setserial/setserial/add_stdlib.patch | 18 - .../setserial/setserial/ldflags.patch | 24 - .../recipes-bsp/setserial/setserial_2.17.bb | 29 - .../files/10m50-update-device-tree.patch | 28 - .../files/MPC8315ERDB-enable-DHCP.patch | 19 - .../u-boot/u-boot-common_2017.11.inc | 17 - .../u-boot/u-boot-fw-utils_2017.11.bb | 34 - .../u-boot/u-boot-mkimage_2017.11.bb | 27 - poky/meta/recipes-bsp/u-boot/u-boot.inc | 307 - .../meta/recipes-bsp/u-boot/u-boot_2017.11.bb | 4 - poky/meta/recipes-bsp/usbinit/usbinit.bb | 21 - .../recipes-bsp/usbinit/usbinit/COPYING.GPL | 339 - .../recipes-bsp/usbinit/usbinit/usb-gether | 23 - .../usbutils/Fix-NULL-pointer-crash.patch | 28 - ...usb-devices-avoid-dependency-on-bash.patch | 30 - .../meta/recipes-bsp/usbutils/usbutils_008.bb | 24 - .../v86d/v86d/Update-x86emu-from-X.org.patch | 21766 --------------- .../recipes-bsp/v86d/v86d/aarch64-host.patch | 18 - .../recipes-bsp/v86d/v86d/ar-from-env.patch | 33 - poky/meta/recipes-bsp/v86d/v86d_0.1.10.bb | 35 - .../avahi/avahi-ui_0.6.32.bb | 64 - .../meta/recipes-connectivity/avahi/avahi.inc | 150 - .../avahi/avahi_0.6.32.bb | 22 - ...tall-GtkBuilder-interface-files-for-.patch | 29 - .../avahi/files/00avahi-autoipd | 10 - .../avahi/files/99avahi-autoipd | 10 - .../files/avahi-fix-resource-unavaiable.patch | 30 - .../avahi/files/initscript.patch | 41 - ...build-use-pkg-config-to-find-libxml2.patch | 54 - ...c-extend-DIRNAMESIZE-from-256-to-512.patch | 25 - ...001-lib-dns-gen.c-fix-too-long-error.patch | 34 - .../bind/bind-confgen-build-unix.o-once.patch | 48 - ...ching-for-json-headers-searches-sysr.patch | 49 - .../meta/recipes-connectivity/bind/bind/bind9 | 2 - .../recipes-connectivity/bind/bind/conf.patch | 330 - .../bind/bind/dont-test-on-host.patch | 17 - .../bind/bind/generate-rndc-key.sh | 8 - ...t.d-add-support-for-read-only-rootfs.patch | 65 - .../bind/make-etc-initd-bind-stop-work.patch | 42 - .../bind/bind/named.service | 22 - ...use-python3-and-fix-install-lib-path.patch | 36 - .../recipes-connectivity/bind/bind_9.10.6.bb | 123 - .../recipes-connectivity/bluez5/bluez5.inc | 147 - ...d-without-systemd-in-the-user-sessio.patch | 63 - ...et-for-building-tests-without-runnin.patch | 28 - .../recipes-connectivity/bluez5/bluez5/init | 65 - .../bluez5/bluez5/out-of-tree.patch | 26 - .../bluez5/bluez5/run-ptest | 31 - .../bluez5/bluez5_5.47.bb | 69 - .../connman/connman-conf.bb | 36 - .../qemuall/wired-connection.service | 10 - .../connman/connman-conf/qemuall/wired-setup | 16 - .../connman/connman-conf/qemuall/wired.config | 9 - .../connman-gnome/0001-Port-to-Gtk3.patch | 277 - ...icon-from-connman-gnome-about-applet.patch | 35 - ...onnman-gnome-fix-dbus-interface-name.patch | 187 - .../images/connman-signal-01.png | Bin 490 -> 0 bytes .../images/connman-signal-02.png | Bin 496 -> 0 bytes .../images/connman-signal-03.png | Bin 492 -> 0 bytes .../images/connman-signal-04.png | Bin 470 -> 0 bytes .../images/connman-signal-05.png | Bin 419 -> 0 bytes .../null_check_for_ipv4_config.patch | 36 - .../connman/connman-gnome_0.7.bb | 30 - .../recipes-connectivity/connman/connman.inc | 219 - ...stop-systemd-resolved-when-we-use-co.patch | 29 - ...visibility-to-default-for-debug-symb.patch | 35 - ...ve-musl-does-not-implement-res_ninit.patch | 77 - .../connman/connman/connman | 83 - .../connman/connman/includes.patch | 423 - .../connman/connman/no-version-scripts.patch | 27 - .../connman/connman_1.35.bb | 16 - poky/meta/recipes-connectivity/dhcp/dhcp.inc | 143 - ...TH_DHCPD_CONF-and-_PATH_DHCLIENT_CON.patch | 30 - .../dhcp/dhcp/0002-dhclient-dbus.patch | 117 - .../dhcp/dhcp/0003-link-with-lcrypto.patch | 38 - .../dhcp/0004-Fix-out-of-tree-builds.patch | 100 - ...invoke-dhclient-script-failed-on-Rea.patch | 36 - .../0006-site.h-enable-gentle-shutdown.patch | 30 - ...gument-to-make-the-libxml2-dependenc.patch | 42 - .../0008-tweak-to-support-external-bind.patch | 117 - ...move-dhclient-script-bash-dependency.patch | 28 - .../dhcp/dhcp/0010-build-shared-libs.patch | 208 - ...o-isc_app_ctxstart-to-not-get-signal.patch | 81 - ...ct-the-intention-for-xml2-lib-search.patch | 37 - .../recipes-connectivity/dhcp/dhcp_4.3.6.bb | 21 - .../dhcp/files/default-relay | 12 - .../dhcp/files/default-server | 7 - .../dhcp/files/dhclient-systemd-wrapper | 39 - .../dhcp/files/dhclient.conf | 50 - .../dhcp/files/dhclient.service | 13 - .../dhcp/files/dhcpd.conf | 108 - .../dhcp/files/dhcpd.service | 15 - .../dhcp/files/dhcpd6.service | 15 - .../dhcp/files/dhcrelay.service | 10 - .../dhcp/files/init-relay | 44 - .../dhcp/files/init-server | 44 - .../iproute2/iproute2.inc | 52 - .../0001-ip-Remove-unneed-header.patch | 30 - .../0001-iproute2-de-bash-scripts.patch | 63 - ...01-libc-compat.h-add-musl-workaround.patch | 41 - .../iproute2/iproute2/configure-cross.patch | 32 - .../iproute2/iproute2_4.13.0.bb | 15 - .../irda-utils/irda-utils-0.9.18/init | 78 - .../irda-utils-0.9.18/ldflags.patch | 75 - .../irda-utils/irda-utils-0.9.18/musl.patch | 29 - .../irda-utils/irda-utils_0.9.18.bb | 51 - ...on-t-use-git-describe-for-versioning.patch | 41 - .../iw/iw/separate-objdir.patch | 35 - poky/meta/recipes-connectivity/iw/iw_4.9.bb | 33 - .../libnss-mdns/0001-check-for-nss.h.patch | 56 - .../libnss-mdns/libnss-mdns_0.10.bb | 40 - .../recipes-connectivity/libpcap/libpcap.inc | 42 - ...te_t.ai-usage-when-INET6-is-not-defi.patch | 41 - ...d-missing-compiler_state_t-parameter.patch | 67 - .../libpcap/libpcap/disable-remote.patch | 36 - .../libpcap/libpcap/fix-grammar-deps.patch | 29 - .../libpcap/libpcap-pkgconfig-support.patch | 73 - .../libpcap/libpcap_1.8.1.bb | 31 - .../mobile-broadband-provider-info_git.bb | 13 - ...Add-header-dependency-to-nciattach.o.patch | 35 - .../Makefile.am-do-not-ship-version.h.patch | 36 - .../Makefile.am-fix-parallel-issue.patch | 33 - .../recipes-connectivity/neard/neard/neard.in | 54 - .../recipes-connectivity/neard/neard_0.16.bb | 50 - .../bugfix-adjust-statd-service-name.patch | 34 - .../nfs-utils-debianize-start-statd.patch | 42 - ...-sys-types.h-for-getting-u_-typedefs.patch | 27 - .../libnfsidmap/Set_nobody_user_group.patch | 18 - .../nfs-utils/libnfsidmap/fix-ac-prereq.patch | 13 - .../nfs-utils/libnfsidmap_0.25.bb | 27 - ...Allow-to-explicitly-disable-nfsidmap.patch | 43 - ...e-stdint.h-for-UINT16_MAX-definition.patch | 27 - .../nfs-utils/nfs-utils/nfs-mountd.service | 15 - .../nfs-utils/nfs-utils/nfs-server.service | 24 - .../nfs-utils/nfs-utils/nfs-statd.service | 13 - .../nfs-utils-1.2.3-sm-notify-res_init.patch | 36 - ...ot-pass-CFLAGS-to-gcc-while-building.patch | 42 - .../nfs-utils/nfs-utils/nfs-utils.conf | 35 - .../nfs-utils/nfs-utils/nfscommon | 63 - .../nfs-utils/nfs-utils/nfsserver | 130 - .../nfs-utils/nfs-utils/proc-fs-nfsd.mount | 8 - .../nfs-utils/nfs-utils_2.1.1.bb | 150 - .../meta/recipes-connectivity/ofono/ofono.inc | 42 - .../recipes-connectivity/ofono/ofono/ofono | 42 - .../recipes-connectivity/ofono/ofono_1.21.bb | 8 - ...0001-openssh-Fix-syntax-error-on-x32.patch | 33 - .../add-test-support-for-busybox.patch | 47 - ...igned-overflow-in-pointer-arithmatic.patch | 99 - .../recipes-connectivity/openssh/openssh/init | 90 - .../openssh/openssh/run-ptest | 44 - .../openssh/openssh/ssh_config | 48 - .../recipes-connectivity/openssh/openssh/sshd | 10 - .../openssh/openssh/sshd.socket | 10 - .../openssh/openssh/sshd@.service | 13 - .../openssh/openssh/sshd_check_keys | 90 - .../openssh/openssh/sshd_config | 132 - .../openssh/openssh/sshdgenkeys.service | 8 - .../openssh/openssh/volatiles.99_sshd | 2 - .../openssh/openssh_7.6p1.bb | 165 - ...-with-clang-using-external-assembler.patch | 45 - ...armv7-sha256-armv4-.pl-make-it-work-.patch | 100 - ...l-force-soft-link-to-avoid-rare-race.patch | 46 - .../openssl-1.0.2m/Makefiles-ptest.patch | 77 - ...Use-SHA256-not-MD5-as-default-digest.patch | 69 - .../configure-musl-target.patch | 25 - .../openssl-1.0.2m/configure-targets.patch | 35 - .../debian/c_rehash-compat.patch | 71 - .../openssl/openssl-1.0.2m/debian/ca.patch | 22 - .../debian/debian-targets.patch | 73 - .../openssl-1.0.2m/debian/man-dir.patch | 15 - .../openssl-1.0.2m/debian/man-section.patch | 34 - .../openssl-1.0.2m/debian/no-rpath.patch | 15 - .../openssl-1.0.2m/debian/no-symbolic.patch | 15 - .../openssl/openssl-1.0.2m/debian/pic.patch | 177 - .../debian/version-script.patch | 4666 ---- .../debian1.0.2/block_digicert_malaysia.patch | 29 - .../debian1.0.2/block_diginotar.patch | 68 - .../openssl-1.0.2m/debian1.0.2/soname.patch | 15 - .../debian1.0.2/version-script.patch | 4658 ---- .../engines-install-in-libdir-ssl.patch | 64 - .../openssl/openssl-1.0.2m/find.pl | 54 - .../openssl/openssl-1.0.2m/oe-ldflags.patch | 24 - .../openssl-1.0.2a-x32-asm.patch | 46 - .../openssl-1.0.2m/openssl-c_rehash.sh | 222 - .../openssl-fix-des.pod-error.patch | 19 - .../openssl-util-perlpath.pl-cwd.patch | 34 - .../openssl-1.0.2m/openssl_fix_for_x32.patch | 39 - .../openssl/openssl-1.0.2m/parallel.patch | 337 - .../openssl/openssl-1.0.2m/ptest-deps.patch | 34 - .../openssl-1.0.2m/ptest_makefile_deps.patch | 248 - .../openssl/openssl-1.0.2m/run-ptest | 2 - .../openssl/openssl-1.0.2m/shared-libs.patch | 41 - ...st-that-requires-running-as-non-root.patch | 49 - ...e-linking-flags-from-LDFLAGS-env-var.patch | 43 - ...4-bsaes-armv7-.pl-make-it-work-with-.patch | 88 - .../openssl/openssl/openssl-c_rehash.sh | 222 - .../openssl/openssl/run-ptest | 4 - .../openssl/openssl10.inc | 275 - .../openssl/openssl_1.0.2m.bb | 61 - .../openssl/openssl_1.1.0g.bb | 162 - .../ppp-dialin/files/host-peer | 11 - .../ppp-dialin/files/ppp-dialin | 3 - .../ppp-dialin/ppp-dialin_0.1.bb | 27 - .../ppp/ppp/0001-Fix-build-with-musl.patch | 163 - ...p-Fix-compilation-errors-in-Makefile.patch | 30 - .../0001-ppp-Remove-unneeded-include.patch | 43 - ...clude-netinet-in.h-before-linux-in.h.patch | 54 - .../recipes-connectivity/ppp/ppp/08setupdns | 12 - .../recipes-connectivity/ppp/ppp/92removedns | 5 - .../ppp/ppp/cifdefroute.patch | 292 - .../recipes-connectivity/ppp/ppp/copts.patch | 21 - .../ppp/ppp/fix-CVE-2015-3310.patch | 30 - poky/meta/recipes-connectivity/ppp/ppp/init | 57 - .../meta/recipes-connectivity/ppp/ppp/ip-down | 43 - poky/meta/recipes-connectivity/ppp/ppp/ip-up | 44 - .../makefile-remove-hard-usr-reference.patch | 37 - .../ppp/ppp/makefile.patch | 95 - poky/meta/recipes-connectivity/ppp/ppp/pap | 22 - poky/meta/recipes-connectivity/ppp/ppp/poff | 26 - poky/meta/recipes-connectivity/ppp/ppp/pon | 9 - .../recipes-connectivity/ppp/ppp/ppp@.service | 9 - .../recipes-connectivity/ppp/ppp/ppp_on_boot | 21 - .../ppp/ppp/pppd-resolv-varrun.patch | 45 - .../recipes-connectivity/ppp/ppp/provider | 35 - .../recipes-connectivity/ppp/ppp_2.4.7.bb | 101 - .../resolvconf/resolvconf/99_resolvconf | 4 - .../resolvconf/fix-path-for-busybox.patch | 20 - .../resolvconf/resolvconf_1.79.bb | 67 - ...ccess-c_ispeed-and-c_ospeed-via-APIs.patch | 52 - ...NETDB_INTERNAL-to-1-if-not-available.patch | 32 - .../Makefile.in-fix-for-parallel-build.patch | 35 - .../socat/socat_1.7.3.2.bb | 41 - .../wireless-tools/avoid_strip.patch | 21 - .../wireless-tools/ldflags.patch | 22 - .../wireless-tools/wireless-tools/man.patch | 15 - .../wireless-tools/remove.ldconfig.call.patch | 19 - .../wireless-tools/wireless-tools_30.pre9.bb | 50 - .../wpa-supplicant/99_wpa_supplicant | 1 - .../wpa-supplicant/wpa-supplicant/defconfig | 552 - .../key-replay-cve-multiple.patch | 1025 - .../wpa-supplicant/wpa-supplicant.sh | 86 - .../wpa-supplicant/wpa_supplicant.conf | 690 - .../wpa-supplicant/wpa_supplicant.conf-sane | 7 - .../wpa-supplicant/wpa-supplicant_2.6.bb | 111 - .../base-files/base-files/filesystems | 8 - .../recipes-core/base-files/base-files/fstab | 11 - .../base-files/base-files/host.conf | 2 - .../recipes-core/base-files/base-files/issue | 0 .../base-files/base-files/issue.net | 0 .../base-files/base-files/licenses/GPL-2 | 340 - .../recipes-core/base-files/base-files/motd | 0 .../base-files/base-files/nsswitch.conf | 19 - .../base-files/base-files/profile | 34 - .../base-files/base-files/rotation | 1 - .../base-files/base-files/share/dot.bashrc | 16 - .../base-files/base-files/share/dot.profile | 11 - .../recipes-core/base-files/base-files/shells | 2 - .../recipes-core/base-files/base-files/usbd | 0 .../base-files/base-files_3.0.14.bb | 176 - .../base-passwd/add_shutdown.patch | 19 - .../base-passwd/disable-docs.patch | 24 - .../base-passwd/base-passwd/input.patch | 22 - .../base-passwd/base-passwd/nobash.patch | 15 - .../base-passwd/base-passwd/noshadow.patch | 14 - .../base-passwd/base-passwd_3.5.29.bb | 115 - .../recipes-core/bsd-headers/bsd-headers.bb | 31 - .../bsd-headers/bsd-headers/sys-cdefs.h | 26 - .../bsd-headers/bsd-headers/sys-queue.h | 846 - .../bsd-headers/bsd-headers/sys-tree.h | 761 - poky/meta/recipes-core/busybox/busybox.inc | 449 - ...ing-instead-of-LD-and-use-CFLAGS-and.patch | 114 - .../busybox/busybox/CVE-2011-5325.patch | 481 - .../busybox/busybox-cross-menuconfig.patch | 71 - .../busybox/busybox-udhcpc-no_deconfig.patch | 137 - .../recipes-core/busybox/busybox/defconfig | 1149 - .../busybox/busybox/fail_on_no_media.patch | 32 - .../recipes-core/busybox/busybox/getopts.cfg | 3 - .../recipes-core/busybox/busybox/init.cfg | 3 - .../busybox/busybox/login-utilities.cfg | 13 - .../busybox/busybox/makefile-libbb-race.patch | 34 - .../recipes-core/busybox/busybox/mdev.cfg | 11 - .../busybox/busybox/mount-via-label.cfg | 9 - .../recipes-core/busybox/busybox/musl.cfg | 12 - .../busybox/busybox/recognize_connmand.patch | 21 - .../recipes-core/busybox/busybox/resize.cfg | 2 - .../recipes-core/busybox/busybox/sha1sum.cfg | 1 - .../busybox/busybox/sha256sum.cfg | 1 - .../recipes-core/busybox/busybox/syslog.cfg | 11 - .../recipes-core/busybox/busybox_1.27.2.bb | 50 - .../recipes-core/busybox/files/busybox-cron | 39 - .../recipes-core/busybox/files/busybox-httpd | 44 - .../busybox/files/busybox-klogd.service.in | 8 - .../busybox/files/busybox-syslog.default | 25 - .../busybox/files/busybox-syslog.service.in | 13 - .../recipes-core/busybox/files/busybox-udhcpd | 43 - .../recipes-core/busybox/files/default.script | 4 - .../busybox/files/find-touchscreen.sh | 6 - .../recipes-core/busybox/files/hwclock.sh | 83 - poky/meta/recipes-core/busybox/files/inetd | 33 - .../recipes-core/busybox/files/inetd.conf | 20 - poky/meta/recipes-core/busybox/files/inittab | 24 - poky/meta/recipes-core/busybox/files/mdev | 21 - .../recipes-core/busybox/files/mdev-mount.sh | 63 - .../meta/recipes-core/busybox/files/mdev.conf | 44 - .../recipes-core/busybox/files/mount.busybox | 3 - poky/meta/recipes-core/busybox/files/rcK | 26 - poky/meta/recipes-core/busybox/files/rcS | 27 - .../meta/recipes-core/busybox/files/run-ptest | 7 - poky/meta/recipes-core/busybox/files/runlevel | 11 - .../recipes-core/busybox/files/simple.script | 88 - poky/meta/recipes-core/busybox/files/syslog | 77 - .../busybox/files/syslog-startup.conf | 13 - .../recipes-core/busybox/files/syslog.conf | 1 - .../recipes-core/busybox/files/umount.busybox | 3 - .../0001-Cover-the-else-with-__GLIBC__.patch | 51 - ...ix-format-security-compilation-error.patch | 57 - ...-sys-types.h-for-u_char-and-u_short-.patch | 44 - .../console-tools-0.3.2/Makevars | 41 - .../console-tools-0.3.2/codepage.patch | 17 - .../console-tools-0.3.2/compile.patch | 12 - .../console-tools-0.3.2/configure.patch | 29 - .../fix-libconsole-linking.patch | 56 - .../console-tools-0.3.2/kbdrate.patch | 75 - .../console-tools-0.3.2/lcmessage.m4 | 24 - .../console-tools-0.3.2/no-dep-on-libfl.patch | 19 - .../console-tools-0.3.2/nodocs.patch | 22 - .../console-tools-0.3.2/uclibc-fileno.patch | 49 - .../console-tools/console-tools_0.3.2.bb | 45 - ...charset_alias-when-building-for-musl.patch | 33 - ...local.mk-fix-cross-compiling-problem.patch | 26 - ...ort-processor-and-hardware-correctly.patch | 64 - .../coreutils/disable-ls-output-quoting.patch | 49 - .../coreutils/fix-selinux-flask.patch | 39 - .../man-decouple-manpages-from-build.patch | 27 - .../remove-usr-local-lib-from-m4.patch | 31 - .../recipes-core/coreutils/coreutils_8.27.bb | 142 - .../recipes-core/dbus-wait/dbus-wait_git.bb | 18 - poky/meta/recipes-core/dbus/dbus-glib.inc | 39 - .../dbus/dbus-glib/no-examples.patch | 15 - .../dbus-glib/test-install-makefile.patch | 57 - .../meta/recipes-core/dbus/dbus-glib_0.108.bb | 4 - .../recipes-core/dbus/dbus-test_1.10.20.bb | 58 - ...figure.ac-explicitely-check-stdint.h.patch | 38 - ...from_server-if-send_negotiate_unix_f.patch | 104 - poky/meta/recipes-core/dbus/dbus/dbus-1.init | 123 - .../meta/recipes-core/dbus/dbus/os-test.patch | 35 - .../dbus/dbus/python-config.patch | 34 - poky/meta/recipes-core/dbus/dbus/run-ptest | 10 - poky/meta/recipes-core/dbus/dbus/tmpdir.patch | 44 - poky/meta/recipes-core/dbus/dbus_1.10.20.bb | 180 - poky/meta/recipes-core/dropbear/dropbear.inc | 107 - ...1-urandom-xauth-changes-to-options.h.patch | 23 - .../dropbear/dropbear/0003-configure.patch | 43 - .../dropbear/dropbear/0004-fix-2kb-keys.patch | 22 - .../dropbear/0005-dropbear-enable-pam.patch | 36 - .../0006-dropbear-configuration-file.patch | 22 - .../0007-dropbear-fix-for-x32-abi.patch | 140 - .../recipes-core/dropbear/dropbear/dropbear | 4 - .../dropbear/dropbear/dropbear.socket | 10 - .../dropbear/dropbear/dropbear@.service | 12 - .../dropbear/dropbear/dropbearkey.service | 13 - .../fix-libtomcrypt-libtommath-ordering.patch | 49 - poky/meta/recipes-core/dropbear/dropbear/init | 89 - .../recipes-core/dropbear/dropbear_2017.75.bb | 5 - poky/meta/recipes-core/expat/expat.inc | 25 - .../recipes-core/expat/expat/autotools.patch | 24 - .../expat/expat/libtool-tag.patch | 30 - .../expat/expat/no_getrandom.patch | 23 - poky/meta/recipes-core/expat/expat_2.2.5.bb | 4 - poky/meta/recipes-core/fts/fts.bb | 22 - .../add-with-bisonlocaledir.patch | 58 - ...nt.c-timsort.h-fix-formatting-issues.patch | 87 - .../gettext/gettext-0.19.8.1/parallel.patch | 23 - ...H-Disable-the-test-to-convert-euc-jp.patch | 38 - .../gettext/gettext-minimal-0.19.8.1/COPYING | 4 - .../gettext-minimal-0.19.8.1/Makefile.in.in | 483 - .../gettext-minimal-0.19.8.1/aclocal.tgz | Bin 40014 -> 0 bytes .../gettext-minimal-0.19.8.1/config.rpath | 684 - .../remove-potcdate.sin | 19 - .../gettext-minimal-native_0.19.8.1.bb | 31 - .../recipes-core/gettext/gettext_0.19.8.1.bb | 120 - ...-Do-not-ignore-return-value-of-write.patch | 42 - ...-gio-querymodules-as-libexec_PROGRAM.patch | 31 - ...ng-about-deprecated-paths-in-schemas.patch | 43 - ...r-pthread_getname_np-before-using-it.patch | 70 - ...dcode-python-path-into-various-tools.patch | 46 - ...ble-more-tests-while-cross-compiling.patch | 85 - ...dia-sdX-drive-mount-if-username-root.patch | 39 - .../glib-2.0/glib-2.0/configure-libtool.patch | 44 - .../glib-2.0/glib-2.0/ptest-paths.patch | 30 - .../glib-2.0/glib-2.0/relocate-modules.patch | 47 - .../recipes-core/glib-2.0/glib-2.0/run-ptest | 5 - .../glib-2.0/uclibc_musl_translation.patch | 22 - .../recipes-core/glib-2.0/glib-2.0_2.54.2.bb | 24 - poky/meta/recipes-core/glib-2.0/glib.inc | 143 - .../glib-networking/glib-networking_2.54.1.bb | 29 - .../glibc/cross-localedef-native_2.26.bb | 51 - .../recipes-core/glibc/glibc-collateral.inc | 21 - poky/meta/recipes-core/glibc/glibc-common.inc | 10 - .../meta/recipes-core/glibc/glibc-initial.inc | 57 - .../recipes-core/glibc/glibc-initial_2.26.bb | 9 - poky/meta/recipes-core/glibc/glibc-ld.inc | 48 - poky/meta/recipes-core/glibc/glibc-locale.inc | 99 - .../recipes-core/glibc/glibc-locale_2.26.bb | 1 - poky/meta/recipes-core/glibc/glibc-mtrace.inc | 13 - .../recipes-core/glibc/glibc-mtrace_2.26.bb | 1 - .../meta/recipes-core/glibc/glibc-package.inc | 227 - .../meta/recipes-core/glibc/glibc-scripts.inc | 20 - .../recipes-core/glibc/glibc-scripts_2.26.bb | 1 - .../meta/recipes-core/glibc/glibc-testing.inc | 95 - poky/meta/recipes-core/glibc/glibc.inc | 84 - ...Look-for-host-system-ld.so.cache-as-.patch | 69 - ...Fix-buffer-overrun-with-a-relocated-.patch | 50 - ...Raise-the-size-of-arrays-containing-.patch | 140 - ...k-glibc-Allow-64-bit-atomics-for-x86.patch | 34 - ...5500-e6500-603e-fsqrt-implementation.patch | 1584 -- ...RE_KNOWN_INTERPRETER_NAMES-to-known-.patch | 33 - ...undefined-reference-to-__sqrt_finite.patch | 208 - ...-are-now-inline-functions-and-call-o.patch | 387 - ...443-which-explains-what-the-patch-do.patch | 62 - ...m-err-tab.pl-with-specific-dirs-in-S.patch | 36 - ...-are-now-inline-functions-and-call-o.patch | 61 - ...igure.ac-handle-correctly-libc_cv_ro.patch | 42 - .../glibc/0013-Add-unused-attribute.patch | 34 - ...the-path-sets-wrong-config-variables.patch | 263 - ...zone-re-written-tzselect-as-posix-sh.patch | 45 - ...bash-dependency-for-nscd-init-script.patch | 75 - ...ss-building-and-testing-instructions.patch | 619 - ...glibc-Help-bootstrap-cross-toolchain.patch | 100 - ...9-eglibc-Clear-cache-lines-on-ppc8xx.patch | 83 - ...eglibc-Resolve-__fpscr_values-on-SH4.patch | 56 - .../0021-eglibc-Install-PIC-archives.patch | 123 - ...port-cross-locale-generation-support.patch | 566 - ...Define-DUMMY_LOCALE_T-if-not-defined.patch | 32 - ...ke-_dl_build_local_scope-breadth-fir.patch | 56 - ...le-fix-hard-coded-reference-to-gcc-E.patch | 38 - ...pedantic-warning-caused-by-statement.patch | 90 - ...set-dl-load-write-lock-after-forking.patch | 37 - ...8-Bug-4578-add-ld.so-lock-while-fork.patch | 57 - .../recipes-core/glibc/glibc/etc/ld.so.conf | 0 .../glibc/glibc/generate-supported.mk | 11 - poky/meta/recipes-core/glibc/glibc_2.26.bb | 145 - .../ldconfig-native-2.12.1/32and64bit.patch | 331 - .../glibc/ldconfig-native-2.12.1/README | 8 - .../add-64-bit-flag-for-ELF64-entries.patch | 116 - .../endian-ness_handling.patch | 454 - .../endian-ness_handling_fix.patch | 47 - .../endianess-header.patch | 113 - .../ldconfig-native-2.12.1/flag_fix.patch | 24 - ...dconfig-default-to-all-multilib-dirs.patch | 37 - .../ldconfig-native-2.12.1.tar.bz2 | Bin 21491 -> 0 bytes .../ldconfig-native-2.12.1/ldconfig.patch | 471 - .../ldconfig_aux-cache_path_fix.patch | 36 - .../glibc/ldconfig-native_2.12.1.bb | 34 - .../meta/recipes-core/glibc/site_config/funcs | 474 - .../recipes-core/glibc/site_config/headers | 156 - .../meta/recipes-core/glibc/site_config/types | 21 - .../recipes-core/ifupdown/files/99_network | 1 - ...t-rely-on-dpkg-architecture-to-set-a.patch | 57 - ...efn-fix-inverted-checks-for-loopback.patch | 422 - .../recipes-core/ifupdown/ifupdown_0.8.16.bb | 46 - .../README_VirtualBox_Guest_Additions.txt | 75 - .../README_VirtualBox_Toaster.txt | 78 - .../Yocto_Build_Appliance.vmx | 46 - .../Yocto_Build_Appliance.vmxf | 8 - .../images/build-appliance-image_15.0.0.bb | 136 - .../recipes-core/images/core-image-base.bb | 8 - .../images/core-image-minimal-dev.bb | 7 - .../images/core-image-minimal-initramfs.bb | 25 - .../images/core-image-minimal-mtdutils.bb | 7 - .../recipes-core/images/core-image-minimal.bb | 12 - .../images/core-image-tiny-initramfs.bb | 43 - .../init-ifupdown/init-ifupdown-1.0/copyright | 11 - .../init-ifupdown/init-ifupdown-1.0/init | 90 - .../init-ifupdown-1.0/interfaces | 31 - .../init-ifupdown/init-ifupdown-1.0/nfsroot | 39 - .../init-ifupdown-1.0/qemuarm/interfaces | 5 - .../init-ifupdown-1.0/qemuarm64/interfaces | 5 - .../init-ifupdown-1.0/qemuarmv6/interfaces | 5 - .../init-ifupdown-1.0/qemuarmv7/interfaces | 5 - .../init-ifupdown-1.0/qemumips/interfaces | 8 - .../init-ifupdown-1.0/qemumips64/interfaces | 8 - .../init-ifupdown-1.0/qemuppc/interfaces | 8 - .../init-ifupdown-1.0/qemush4/interfaces | 8 - .../init-ifupdown-1.0/qemux86-64/interfaces | 8 - .../init-ifupdown-1.0/qemux86/interfaces | 8 - .../init-ifupdown/init-ifupdown_1.0.bb | 41 - .../initrdscripts/files/init-boot.sh | 10 - .../files/init-install-efi-testfs.sh | 199 - .../initrdscripts/files/init-install-efi.sh | 283 - .../files/init-install-testfs.sh | 220 - .../initrdscripts/files/init-install.sh | 299 - .../initrdscripts/files/init-live.sh | 236 - .../initrdscripts/initramfs-boot_1.0.bb | 16 - .../initrdscripts/initramfs-framework/debug | 82 - .../initrdscripts/initramfs-framework/e2fs | 28 - .../initrdscripts/initramfs-framework/finish | 27 - .../initrdscripts/initramfs-framework/init | 145 - .../initrdscripts/initramfs-framework/mdev | 30 - .../initrdscripts/initramfs-framework/rootfs | 62 - .../initramfs-framework/setup-live | 64 - .../initrdscripts/initramfs-framework/udev | 46 - .../initrdscripts/initramfs-framework_1.0.bb | 83 - .../initramfs-live-boot-tiny_1.0.bb | 21 - .../initrdscripts/initramfs-live-boot_1.0.bb | 21 - .../initramfs-live-install-efi-testfs_1.0.bb | 16 - .../initramfs-live-install-efi_1.0.bb | 24 - .../initramfs-live-install-testfs_1.0.bb | 16 - .../initramfs-live-install_1.0.bb | 24 - .../initramfs-module-install-efi_1.0.bb | 20 - .../initramfs-module-install_1.0.bb | 20 - .../initramfs-module-setup-live_1.0.bb | 20 - .../initscripts/initscripts-1.0/GPLv2.patch | 347 - .../initscripts-1.0/arm/alignment.sh | 13 - .../initscripts/initscripts-1.0/banner.sh | 24 - .../initscripts/initscripts-1.0/bootmisc.sh | 81 - .../initscripts/initscripts-1.0/checkfs.sh | 50 - .../initscripts/initscripts-1.0/checkroot.sh | 148 - .../initscripts/initscripts-1.0/devpts | 5 - .../initscripts/initscripts-1.0/devpts.sh | 28 - .../initscripts/initscripts-1.0/dmesg.sh | 17 - .../initscripts/initscripts-1.0/functions | 91 - .../initscripts/initscripts-1.0/halt | 29 - .../initscripts/initscripts-1.0/hostname.sh | 22 - .../initscripts-1.0/logrotate-dmesg.conf | 9 - .../initscripts/initscripts-1.0/mountall.sh | 39 - .../initscripts/initscripts-1.0/mountnfs.sh | 88 - .../initscripts-1.0/populate-volatile.sh | 244 - .../initscripts-1.0/read-only-rootfs-hook.sh | 38 - .../initscripts/initscripts-1.0/reboot | 15 - .../initscripts/initscripts-1.0/rmnologin.sh | 20 - .../initscripts/initscripts-1.0/save-rtc.sh | 13 - .../initscripts/initscripts-1.0/sendsigs | 21 - .../initscripts/initscripts-1.0/single | 24 - .../initscripts/initscripts-1.0/sushell | 5 - .../initscripts/initscripts-1.0/sysfs.sh | 31 - .../initscripts/initscripts-1.0/umountfs | 24 - .../initscripts/initscripts-1.0/umountnfs.sh | 33 - .../initscripts/initscripts-1.0/urandom | 49 - .../initscripts/initscripts-1.0/volatiles | 37 - .../initscripts/initscripts_1.0.bb | 186 - poky/meta/recipes-core/kbd/kbd/run-ptest | 4 - .../kbd/set-proper-path-of-resources.patch | 56 - poky/meta/recipes-core/kbd/kbd_2.0.4.bb | 54 - .../libcgroup/musl-decls-compat.patch | 235 - .../recipes-core/libcgroup/libcgroup_0.41.bb | 44 - ...he-python-tests-if-python-is-enabled.patch | 99 - .../libxml/libxml2/ansidecl.patch | 25 - .../libxml/libxml2/libxml-64bit.patch | 22 - .../libxml2/libxml-m4-use-pkgconfig.patch | 204 - .../libxml2/python-sitepackages-dir.patch | 30 - .../recipes-core/libxml/libxml2/run-ptest | 4 - .../recipes-core/libxml/libxml2/runtest.patch | 817 - .../meta/recipes-core/libxml/libxml2_2.9.7.bb | 104 - poky/meta/recipes-core/meta/build-sysroots.bb | 38 - .../recipes-core/meta/buildtools-tarball.bb | 84 - .../meta/meta-environment-extsdk.bb | 12 - .../recipes-core/meta/meta-environment.bb | 76 - .../meta/meta-extsdk-toolchain.bb | 26 - .../recipes-core/meta/meta-go-toolchain.bb | 12 - .../recipes-core/meta/meta-ide-support.bb | 15 - poky/meta/recipes-core/meta/meta-toolchain.bb | 6 - .../recipes-core/meta/meta-world-pkgdata.bb | 51 - .../meta/nativesdk-buildtools-perl-dummy.bb | 26 - poky/meta/recipes-core/meta/package-index.bb | 25 - poky/meta/recipes-core/meta/signing-keys.bb | 81 - .../recipes-core/meta/testexport-tarball.bb | 56 - .../recipes-core/meta/uninative-tarball.bb | 65 - poky/meta/recipes-core/meta/wic-tools.bb | 26 - ...ic-linker-a-relative-symlink-to-libc.patch | 76 - poky/meta/recipes-core/musl/musl.inc | 28 - poky/meta/recipes-core/musl/musl_git.bb | 71 - .../ncurses/files/0001-tic-hang.patch | 43 - .../files/0002-configure-reproducible.patch | 35 - ...-13729-CVE-2017-13728-CVE-2017-13731.patch | 541 - .../recipes-core/ncurses/files/config.cache | 4 - poky/meta/recipes-core/ncurses/ncurses.inc | 314 - .../ncurses/ncurses_6.0+20170715.bb | 12 - .../recipes-core/ncurses/site_config/headers | 5 - poky/meta/recipes-core/netbase/netbase/hosts | 8 - ...se-add-rpcbind-as-an-alias-to-sunrpc.patch | 48 - poky/meta/recipes-core/netbase/netbase_5.4.bb | 25 - .../recipes-core/os-release/os-release.bb | 47 - .../recipes-core/ovmf/ovmf-shell-image.bb | 20 - .../ovmf/ovmf/0001-ia32-Dont-use-pie.patch | 46 - ...ovmf-update-path-to-native-BaseTools.patch | 33 - ...ile-adjust-to-build-in-under-bitbake.patch | 39 - .../0004-ovmf-enable-long-path-file.patch | 18 - ...faultKeys-application-for-enrolling-.patch | 1124 - ...frCompile-increase-path-length-limit.patch | 33 - .../ovmf/no-stack-protector-all-archs.patch | 20 - .../ovmf/ovmf/ovmf-shell-image.wks | 4 - poky/meta/recipes-core/ovmf/ovmf_git.bb | 248 - .../nativesdk-packagegroup-sdk-host.bb | 34 - .../packagegroups/packagegroup-base.bb | 366 - .../packagegroups/packagegroup-core-boot.bb | 46 - .../packagegroup-core-buildessential.bb | 28 - .../packagegroup-core-eclipse-debug.bb | 9 - .../packagegroups/packagegroup-core-nfs.bb | 20 - .../packagegroups/packagegroup-core-sdk.bb | 81 - .../packagegroup-core-ssh-dropbear.bb | 6 - .../packagegroup-core-ssh-openssh.bb | 6 - ...packagegroup-core-standalone-sdk-target.bb | 19 - .../packagegroup-core-tools-debug.bb | 19 - .../packagegroup-core-tools-profile.bb | 72 - .../packagegroup-core-tools-testapps.bb | 49 - .../packagegroup-cross-canadian.bb | 18 - .../packagegroup-go-cross-canadian.bb | 12 - .../packagegroup-go-sdk-target.bb | 8 - .../packagegroups/packagegroup-self-hosted.bb | 197 - .../recipes-core/psplash/files/psplash-init | 35 - .../psplash/files/psplash-poky-img.h | 1259 - poky/meta/recipes-core/psplash/psplash_git.bb | 122 - poky/meta/recipes-core/readline/files/inputrc | 61 - .../readline/readline-7.0/configure-fix.patch | 35 - .../readline/readline-7.0/norpath.patch | 21 - poky/meta/recipes-core/readline/readline.inc | 45 - .../recipes-core/readline/readline_7.0.bb | 7 - .../obsolete_automake_macros.patch | 15 - .../sysfsutils-2.1.0/separatebuild.patch | 65 - .../sysfsutils-2.0.0-class-dup.patch | 23 - .../sysfsutils/sysfsutils_2.1.0.bb | 33 - .../recipes-core/systemd/systemd-boot_234.bb | 43 - .../systemd/systemd-compat-units.bb | 47 - .../systemd/systemd-machine-units_1.0.bb | 13 - .../systemd/systemd-serialgetty.bb | 52 - .../systemd-serialgetty/serial-getty@.service | 37 - .../systemd/systemd-systemctl-native.bb | 17 - .../systemd/systemd-systemctl/systemctl | 195 - poky/meta/recipes-core/systemd/systemd.inc | 21 - .../systemd/systemd/00-create-volatile.conf | 7 - ...WTMPX-and-_PATH_UTMPX-if-not-defined.patch | 43 - ...01-Use-uintmax_t-for-handling-rlim_t.patch | 89 - ...k-parse_printf_format-implementation.patch | 433 - ...ange-the-default-device-timeout-to-2.patch | 34 - ...missing.h-check-for-missing-strndupa.patch | 104 - ...OB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch | 157 - ...en-secure-versions-are-not-available.patch | 30 - ...g.h-check-for-missing-__compar_fn_t-.patch | 47 - ...tall-dependency-links-at-install-tim.patch | 74 - .../0006-Include-netinet-if_ether.h.patch | 86 - ...k-for-missing-canonicalize_file_name.patch | 63 - ...instead-of-looking-for-relative-opti.patch | 40 - .../0008-Do-not-enable-nss-tests.patch | 35 - ...ct.c-Include-missing.h-form-strndupa.patch | 27 - ...implment-systemd-sysv-install-for-OE.patch | 43 - ...sable-tests-for-missing-typedefs-in-.patch | 49 - ...011-don-t-use-glibc-specific-qsort_r.patch | 105 - ...uild-conditionally-when-HAVE_MYHOSTN.patch | 38 - ...T_SYMLINK_NOFOLLOW-flag-to-faccessat.patch | 99 - .../0012-rules-whitelist-hd-devices.patch | 34 - ...e-root-s-home-directory-configurable.patch | 155 - ...is-glibc-specific-use-raw-signature-.patch | 31 - ...-rules-remove-firmware-loading-rules.patch | 28 - ...ve-userspace-firmware-loading-suppor.patch | 351 - ...017-remove-duplicate-include-uchar.h.patch | 41 - .../0018-check-for-uchar.h-in-configure.patch | 44 - ...n-t-fail-if-libc-doesn-t-support-IDN.patch | 37 - ...atch-metadata-changes-in-ide-devices.patch | 43 - poky/meta/recipes-core/systemd/systemd/init | 104 - .../recipes-core/systemd/systemd/run-ptest | 6 - .../systemd/systemd/touchscreen.rules | 18 - poky/meta/recipes-core/systemd/systemd_234.bb | 640 - .../sysvinit/sysvinit-2.88dsf/crypt-lib.patch | 25 - .../sysvinit/sysvinit-2.88dsf/install.patch | 83 - .../sysvinit-2.88dsf/pidof-add-m-option.patch | 189 - .../sysvinit/sysvinit-inittab/inittab | 30 - .../sysvinit/sysvinit-inittab/start_getty | 43 - .../sysvinit/sysvinit-inittab_2.88dsf.bb | 90 - ...sue-that-clang-reports-about-mutlipl.patch | 52 - .../sysvinit/sysvinit/01_bootlogd | 1 - .../sysvinit/sysvinit/bootlogd.init | 98 - poky/meta/recipes-core/sysvinit/sysvinit/rc | 182 - poky/meta/recipes-core/sysvinit/sysvinit/rcS | 34 - .../sysvinit/sysvinit/rcS-default | 29 - .../sysvinit/sysvinit/realpath.patch | 78 - .../recipes-core/sysvinit/sysvinit_2.88dsf.bb | 112 - .../0001-rules-whitelist-hd-devices.patch | 33 - .../udev/eudev/0002-rules-update.patch | 196 - ...atch-metadata-changes-in-ide-devices.patch | 43 - ...-rules-remove-firmware-loading-rules.patch | 28 - ...ve-userspace-firmware-loading-suppor.patch | 364 - .../recipes-core/udev/eudev/devfs-udev.rules | 108 - poky/meta/recipes-core/udev/eudev/init | 93 - poky/meta/recipes-core/udev/eudev/links.conf | 21 - poky/meta/recipes-core/udev/eudev/local.rules | 19 - .../recipes-core/udev/eudev/permissions.rules | 131 - poky/meta/recipes-core/udev/eudev/run.rules | 14 - poky/meta/recipes-core/udev/eudev/udev.rules | 116 - poky/meta/recipes-core/udev/eudev_3.2.2.bb | 98 - .../udev/udev-extraconf/automount.rules | 19 - .../udev/udev-extraconf/autonet.rules | 19 - .../udev/udev-extraconf/localextra.rules | 23 - .../udev/udev-extraconf/mount.blacklist | 5 - .../recipes-core/udev/udev-extraconf/mount.sh | 90 - .../udev/udev-extraconf/network.sh | 54 - .../recipes-core/udev/udev-extraconf_1.1.bb | 42 - .../update-rc.d/update-rc.d/add-verbose.patch | 49 - .../check-if-symlinks-are-valid.patch | 59 - ...to-handle-priority-numbers-correctly.patch | 28 - .../update-rc.d/update-rc.d_0.7.bb | 33 - .../recipes-core/util-linux/util-linux.inc | 337 - .../util-linux/avoid_parallel_tests.patch | 19 - .../util-linux/configure-sbindir.patch | 23 - .../display_testname_for_subtest.patch | 25 - .../util-linux/util-linux/no_getrandom.patch | 21 - .../util-linux/util-linux/ptest.patch | 23 - .../util-linux/util-linux/run-ptest | 25 - .../util-linux/util-linux/runuser-l.pamd | 3 - .../util-linux/util-linux/runuser.pamd | 4 - .../util-linux/util-linux-native-qsort.patch | 33 - .../util-linux/util-linux_2.31.bb | 31 - .../volatile-binds/files/COPYING.MIT | 17 - .../volatile-binds/files/mount-copybind | 34 - .../files/volatile-binds.service.in | 19 - .../volatile-binds/volatile-binds.bb | 80 - .../recipes-core/zlib/site_config/headers | 1 - .../zlib/zlib-1.2.11/Makefile-runtests.patch | 38 - .../zlib/zlib-1.2.11/ldflags-tests.patch | 45 - .../zlib-1.2.11/remove.ldconfig.call.patch | 20 - .../recipes-core/zlib/zlib-1.2.11/run-ptest | 2 - poky/meta/recipes-core/zlib/zlib_1.2.11.bb | 67 - poky/meta/recipes-devtools/apt/apt-native.inc | 70 - .../recipes-devtools/apt/apt-native_1.2.24.bb | 7 - .../meta/recipes-devtools/apt/apt-package.inc | 93 - poky/meta/recipes-devtools/apt/apt.inc | 35 - ...n-dpkg-configure-a-at-the-end-of-our.patch | 126 - .../apt/0001-apt-1.2.12-Fix-musl-build.patch | 50 - ...musl-based-systems-can-generate-shar.patch | 29 - .../apt/0001-fix-the-gcc-version-check.patch | 74 - ...emove-Wsuggest-attribute-from-CFLAGS.patch | 43 - .../apt/disable-configure-in-makefile.patch | 18 - .../apt/apt/disable-test.patch | 75 - .../apt/fix-gcc-4.6-null-not-defined.patch | 12 - ...nging-the-global-LC_TIME-for-Release.patch | 80 - ...caled-std-put_time-instead-rolling-o.patch | 46 - ...ntrib-strutl.cc-Include-array-header.patch | 33 - .../recipes-devtools/apt/apt/makerace.patch | 23 - .../apt/apt/no-nls-dpkg.patch | 26 - .../apt/apt/noconfigure.patch | 37 - .../meta/recipes-devtools/apt/apt/nodoc.patch | 18 - .../apt/apt/truncate-filename.patch | 35 - .../recipes-devtools/apt/apt/use-host.patch | 15 - poky/meta/recipes-devtools/apt/apt_1.2.24.bb | 20 - poky/meta/recipes-devtools/apt/files/apt.conf | 42 - .../apt/files/db_linking_hack.patch | 29 - .../apt/files/environment.patch | 15 - .../recipes-devtools/apt/files/no-curl.patch | 54 - .../autoconf-archive_2016.09.16.bb | 18 - .../recipes-devtools/autoconf/autoconf.inc | 49 - .../AC_HEADER_MAJOR-port-to-glibc-2.25.patch | 162 - .../autoconf/autoconf/add_musl_config.patch | 26 - ...in-shebangs-with-modern-use-warnings.patch | 120 - .../autoconf/autoreconf-exclude.patch | 139 - .../autoconf/autoreconf-gnuconfigize.patch | 38 - .../autotest-automake-result-format.patch | 136 - .../check-automake-cross-warning.patch | 34 - .../autoconf/autoconf/config_site.patch | 40 - .../autoconf/autoconf/fix_path_xtra.patch | 120 - .../autoconf/autoconf/performance.patch | 60 - .../autoconf/autoconf/preferbash.patch | 25 - .../autoconf/autoconf/program_prefix.patch | 20 - .../remove-usr-local-lib-from-m4.patch | 29 - .../autoconf/autoconf_2.69.bb | 28 - .../recipes-devtools/automake/automake.inc | 21 - ...ke-Add-default-libtool_tag-to-cppasm.patch | 27 - ...in-shebangs-with-modern-use-warnings.patch | 99 - .../automake/automake/buildtest.patch | 33 - .../new_rt_path_for_test-driver.patch | 36 - .../automake/automake/performance.patch | 73 - .../automake/automake/python-libdir.patch | 91 - .../automake/automake_1.15.1.bb | 43 - .../binutils/binutils-2.29.inc | 42 - .../binutils/binutils-cross-canadian.inc | 32 - .../binutils/binutils-cross-canadian_2.29.bb | 3 - .../binutils/binutils-cross.inc | 38 - .../binutils/binutils-cross_2.29.bb | 3 - .../binutils/binutils-crosssdk_2.29.bb | 13 - .../recipes-devtools/binutils/binutils.inc | 162 - ...s-crosssdk-Generate-relocatable-SDKs.patch | 62 - ...o-not-generate-linker-script-directo.patch | 61 - ...iden-the-regexp-for-SH-architectures.patch | 47 - ...004-Point-scripts-location-to-libdir.patch | 42 - ...-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch | 41 - .../binutils/0006-Use-libtool-2.4.patch | 21157 --------------- ...-the-armv5e-architecture-to-binutils.patch | 35 - ...stro-compiler-point-to-the-wrong-ins.patch | 35 - ...-system-directories-when-cross-linki.patch | 273 - ...h-in-libtool-when-sysroot-is-enabled.patch | 52 - ...e-default-emulation-for-mips64-linux.patch | 59 - .../0012-Add-support-for-Netlogic-XLP.patch | 393 - ...ect-assembling-for-ppc-wait-mnemonic.patch | 36 - .../0014-Detect-64-bit-MIPS-targets.patch | 50 - .../0015-sync-with-OE-libtool-changes.patch | 89 - .../binutils/binutils_2.29.bb | 49 - ...charset_alias-when-building-for-musl.patch | 33 - ...0001-src-local.mk-fix-parallel-issue.patch | 34 - .../bison/bison/add-with-bisonlocaledir.patch | 58 - .../bison/dont-depend-on-help2man.patch.patch | 46 - .../recipes-devtools/bison/bison/m4.patch | 414 - .../recipes-devtools/bison/bison_3.0.4.bb | 39 - ...ssing-default-value-for-BOOTLOG_DEST.patch | 30 - ...or-Allocate-space-on-heap-for-chunks.patch | 45 - .../bootchart2/bootchart2/bootchartd_stop.sh | 18 - .../bootchart2/bootchart2_0.14.8.bb | 156 - ...usl-missing-header-include-for-dev_t.patch | 26 - ...file-build-mktables-using-native-gcc.patch | 30 - .../btrfs-tools/btrfs-tools_4.13.3.bb | 36 - .../build-compare/build-compare_git.bb | 39 - ...dd-support-for-deb-and-ipk-packaging.patch | 64 - .../files/Ignore-DWARF-sections.patch | 40 - .../Rename-rpm-check.sh-to-pkg-diff.sh.patch | 1599 -- ...ions.sh-improve-deb-and-ipk-checking.patch | 117 - .../functions.sh-remove-space-at-head.patch | 41 - ...ns.sh-run-rpm-once-to-make-it-faster.patch | 361 - ...kg-diff.sh-check-for-fifo-named-pipe.patch | 35 - ...k_single_file-return-at-once-when-sa.patch | 37 - ...sh-remove-space-in-the-end-for-ftype.patch | 32 - poky/meta/recipes-devtools/ccache/ccache.inc | 16 - .../recipes-devtools/ccache/ccache_3.3.4.bb | 12 - ...002-dev.mk.in-fix-file-name-too-long.patch | 32 - ...n-page-in-the-make-install-from-git-.patch | 33 - .../cdrtools/cdrtools-native_3.01.bb | 30 - .../chrpath/chrpath/standarddoc.patch | 32 - .../recipes-devtools/chrpath/chrpath_0.16.bb | 27 - .../cmake/cmake-native_3.9.5.bb | 38 - poky/meta/recipes-devtools/cmake/cmake.inc | 50 - ...d_program-if-find_host_program-is-no.patch | 40 - .../cmake/cmake/OEToolchainConfig.cmake | 22 - .../cmake/cmlibarchive-disable-ext2fs.patch | 26 - .../cmake/cmake/environment.d-cmake.sh | 1 - .../cmake/cmake/qt4-fail-silent.patch | 77 - .../cmake/support-oe-qt4-tools-names.patch | 54 - .../recipes-devtools/cmake/cmake_3.9.5.bb | 50 - ...Correctly-install-the-shared-library.patch | 28 - ...PYTHON_INSTALL_DIR-by-running-python.patch | 27 - .../createrepo-c/createrepo-c_git.bb | 31 - .../cve-check-tool/cve-check-tool_5.6.4.bb | 61 - ...x-freeing-memory-allocated-by-sqlite.patch | 50 - ...erriding-default-CA-certificate-file.patch | 215 - ...s-in-percent-when-downloading-CVE-db.patch | 135 - ...omputed-vs-expected-sha256-digit-str.patch | 52 - ...heck-for-malloc_trim-before-using-it.patch | 51 - .../desktop-file-utils-native_0.23.bb | 18 - .../devel-config/distcc-config.bb | 22 - .../devel-config/distcc-config/distcc.sh | 4 - .../devel-config/nfs-export-root.bb | 17 - .../devel-config/nfs-export-root/exports | 1 - .../diffstat/diffstat/run-ptest | 5 - .../diffstat/diffstat_1.61.bb | 27 - .../recipes-devtools/distcc/distcc_3.2.bb | 68 - .../files/0001-zeroconf-Include-fcntl.h.patch | 29 - .../recipes-devtools/distcc/files/default | 24 - .../meta/recipes-devtools/distcc/files/distcc | 119 - .../distcc/files/distcc.service | 11 - .../distcc/files/distccmon-gnome.desktop | 12 - .../distcc/files/separatebuilddir.patch | 21 - .../dmidecode/dmidecode_3.1.bb | 23 - ...onf.releasever-instead-of-releasever.patch | 31 - ...tly-install-tmpfiles.d-configuration.patch | 21 - ...ode-etc-and-systemd-unit-directories.patch | 29 - ...Do-not-prepend-installroot-to-logdir.patch | 31 - ...PYTHON_INSTALL_DIR-by-running-python.patch | 27 - .../0030-Run-python-scripts-using-env.patch | 37 - poky/meta/recipes-devtools/dnf/dnf_2.6.3.bb | 52 - .../docbook-xml-dtd4/LICENSE-OASIS | 16 - .../docbook-xml-update-catalog.xml.patch | 515 - .../docbook-xml-dtd4/docbook-xml.xml | 68 - .../docbook-xml/docbook-xml-dtd4_4.5.bb | 55 - ...esheets-no-bashism-in-docbook-xsl-up.patch | 24 - .../docbook-xsl-stylesheets/docbook-xsl.xml | 6 - .../docbook-xsl-stylesheets_1.79.1.bb | 63 - .../dosfstools/dosfstools_4.1.bb | 25 - poky/meta/recipes-devtools/dpkg/dpkg.inc | 101 - .../0001-dpkg-Support-muslx32-build.patch | 41 - ...rs-kernel-version-which-has-characte.patch | 38 - ...s-expect-D-to-be-set-when-running-in.patch | 75 - ...tion-doesn-t-work-properly-for-all-s.patch | 31 - .../0005-dpkg-compiler.m4-remove-Wvla.patch | 36 - ...add-musleabi-to-known-target-tripets.patch | 41 - ...c-Remove-usage-of-clamp-mtime-in-tar.patch | 39 - .../dpkg/dpkg/add_armeb_triplet_entry.patch | 48 - .../recipes-devtools/dpkg/dpkg/arch_pm.patch | 29 - .../dpkg/dpkg/dpkg-configure.service | 17 - .../dpkg/dpkg/glibc2.5-sync_file_range.patch | 86 - .../recipes-devtools/dpkg/dpkg/noman.patch | 22 - .../dpkg/dpkg/remove-tar-no-timestamp.patch | 17 - .../recipes-devtools/dpkg/dpkg_1.18.24.bb | 21 - .../recipes-devtools/e2fsprogs/e2fsprogs.inc | 27 - ...ate_inode.c-set-dir-s-mode-correctly.patch | 41 - ...able-the-metadata_csum-and-64bit-fea.patch | 36 - ...-missing-check-for-permission-denied.patch | 32 - .../e2fsprogs/e2fsprogs/mkdir_p.patch | 20 - .../e2fsprogs/e2fsprogs/ptest.patch | 82 - .../e2fsprogs/e2fsprogs/quiet-debugfs.patch | 19 - .../e2fsprogs/remove.ldconfig.call.patch | 44 - .../e2fsprogs/e2fsprogs/run-ptest | 10 - .../e2fsprogs/e2fsprogs_1.43.7.bb | 111 - .../elfutils/elfutils_0.170.bb | 79 - .../elfutils/files/0001-dso-link-change.patch | 52 - ...libasm-may-link-with-libbz2-if-found.patch | 39 - ...cvt_gunhash-if-dest-and-src-are-same.patch | 42 - .../elfutils/files/0003-fixheadercheck.patch | 40 - ...4-Disable-the-test-to-convert-euc-jp.patch | 44 - .../0005-fix-a-stack-usage-warning.patch | 35 - .../0006-Fix-build-on-aarch64-musl.patch | 61 - ...-where-we-have-str-as-uninitialized-.patch | 45 - ...ternatives-for-glibc-assumptions-hel.patch | 1031 - ...ces-between-mips-machine-identifiers.patch | 35 - ...ort-for-mips64-abis-in-mips_retval.c.patch | 171 - ...-Add-mips-n64-relocation-format-hack.patch | 229 - .../elfutils/files/debian/arm_backend.diff | 603 - .../elfutils/files/debian/fallthrough.patch | 36 - .../elfutils/files/debian/hppa_backend.diff | 802 - .../elfutils/files/debian/mips_backend.patch | 715 - .../files/debian/mips_readelf_w.patch | 25 - ...001-Resolve-string-formatting-issues.patch | 29 - .../expect/expect/0001-configure.in.patch | 108 - ...ults-if-Tcl-is-built-with-stubs-and-.patch | 91 - ...cripts-without-using-the-fixline1-tc.patch | 34 - .../expect/expect/0002-tcl.m4.patch | 17 - .../expect/expect/01-example-shebang.patch | 144 - .../recipes-devtools/expect/expect_5.45.3.bb | 76 - .../recipes-devtools/fdisk/gptfdisk_1.0.3.bb | 26 - .../0001-Add-P-prompt-into-Usage-info.patch | 39 - .../file/file/debian-742262.patch | 27 - poky/meta/recipes-devtools/file/file_5.32.bb | 48 - ...et-for-building-tests-without-runnin.patch | 28 - ...-comments-in-c-code-fails-with-gcc-6.patch | 64 - .../flex/flex/CVE-2016-6354.patch | 59 - .../flex/flex/disable-tests.patch | 19 - .../flex/flex/do_not_create_pdf_doc.patch | 17 - .../meta/recipes-devtools/flex/flex/run-ptest | 5 - poky/meta/recipes-devtools/flex/flex_2.6.0.bb | 66 - poky/meta/recipes-devtools/gcc/gcc-6.4.inc | 131 - ...0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 - .../gcc/gcc-6.4/0008-missing-execinfo_h.patch | 28 - .../gcc/gcc-6.4/0009-c99-snprintf.patch | 28 - .../0010-gcc-poison-system-directories.patch | 192 - .../gcc-6.4/0011-gcc-poison-dir-extend.patch | 39 - ...-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 - .../gcc-6.4/0013-64-bit-multilib-hack.patch | 85 - .../gcc/gcc-6.4/0014-optional-libstdc.patch | 125 - ...gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch | 59 - .../gcc-6.4/0016-COLLECT_GCC_OPTIONS.patch | 38 - ...ts.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 - .../0018-fortran-cross-compile-hack.patch | 46 - .../gcc/gcc-6.4/0019-cpp-honor-sysroot.patch | 54 - .../0020-MIPS64-Default-to-N64-ABI.patch | 57 - ...AMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 234 - ...gcc-Fix-argument-list-too-long-error.patch | 40 - .../gcc/gcc-6.4/0023-Disable-sdt.patch | 113 - .../gcc/gcc-6.4/0024-libtool.patch | 42 - ...s-fix-v4bx-to-linker-to-support-EABI.patch | 43 - ...-config-files-from-B-instead-of-usin.patch | 102 - ...ir-from-.la-which-usually-points-to-.patch | 31 - .../gcc/gcc-6.4/0028-export-CPP.patch | 53 - ...ec-generation-on-powepc-linux-target.patch | 56 - ...ILIB_OSDIRNAMES-and-other-multilib-o.patch | 42 - ...e-target-gcc-headers-can-be-included.patch | 98 - ...ild-with-disable-dependency-tracking.patch | 54 - ...t-directory-during-relink-if-inst_pr.patch | 38 - ...IR-replacement-instead-of-hardcoding.patch | 29 - ...35-aarch64-Add-support-for-musl-ldso.patch | 28 - ...-fix-libcc1-s-install-path-and-rpath.patch | 54 - ...le-sysroot-support-for-nativesdk-gcc.patch | 213 - ...sroot-gcc-version-specific-dirs-with.patch | 102 - ...ous-_FOR_BUILD-and-related-variables.patch | 137 - ...040-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 - .../gcc/gcc-6.4/0041-ssp_nonshared.patch | 28 - ...cpp-support-ffile-prefix-map-old-new.patch | 292 - ...efix-map-to-replace-ffile-prefix-map.patch | 43 - ...ug-prefix-map-support-to-remap-sourc.patch | 54 - ...bgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 125 - ...using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 - ...as-for-__cpu_indicator_init-instead-.patch | 85 - .../0048-sync-gcc-stddef.h-with-musl.patch | 91 - .../gcc-6.4/0054_all_nopie-all-flags.patch | 22 - .../gcc/gcc-6.4/0055-unwind_h-glibc26.patch | 139 - ...x-the-restriction-on-subreg-reload-f.patch | 51 - ...press-32-bit-aligned-ldrd-strd-peeph.patch | 194 - .../gcc/gcc-6.4/backport/CVE-2016-6131.patch | 223 - poky/meta/recipes-devtools/gcc/gcc-7.2.inc | 130 - .../0001-PR-rtl-optimization-81803.patch | 52 - ...0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 - .../gcc/gcc-7.2/0008-c99-snprintf.patch | 28 - .../0009-gcc-poison-system-directories.patch | 192 - .../gcc-7.2/0010-gcc-poison-dir-extend.patch | 39 - ...-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 - .../gcc-7.2/0012-64-bit-multilib-hack.patch | 85 - .../gcc/gcc-7.2/0013-optional-libstdc.patch | 125 - ...gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch | 59 - .../gcc-7.2/0015-COLLECT_GCC_OPTIONS.patch | 38 - ...ts.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 - .../0017-fortran-cross-compile-hack.patch | 46 - .../gcc/gcc-7.2/0018-cpp-honor-sysroot.patch | 54 - .../0019-MIPS64-Default-to-N64-ABI.patch | 57 - ...AMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 234 - ...gcc-Fix-argument-list-too-long-error.patch | 40 - .../gcc/gcc-7.2/0022-Disable-sdt.patch | 113 - .../gcc/gcc-7.2/0023-libtool.patch | 42 - ...s-fix-v4bx-to-linker-to-support-EABI.patch | 43 - ...-config-files-from-B-instead-of-usin.patch | 102 - ...ir-from-.la-which-usually-points-to-.patch | 31 - .../gcc/gcc-7.2/0027-export-CPP.patch | 53 - ...ec-generation-on-powepc-linux-target.patch | 56 - ...ILIB_OSDIRNAMES-and-other-multilib-o.patch | 42 - ...e-target-gcc-headers-can-be-included.patch | 98 - ...ild-with-disable-dependency-tracking.patch | 54 - ...t-directory-during-relink-if-inst_pr.patch | 38 - ...IR-replacement-instead-of-hardcoding.patch | 29 - ...34-aarch64-Add-support-for-musl-ldso.patch | 28 - ...-fix-libcc1-s-install-path-and-rpath.patch | 54 - ...le-sysroot-support-for-nativesdk-gcc.patch | 213 - ...sroot-gcc-version-specific-dirs-with.patch | 102 - ...ous-_FOR_BUILD-and-related-variables.patch | 137 - ...039-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 - ...d-to-link-commandline-for-musl-targe.patch | 87 - ...cpp-support-ffile-prefix-map-old-new.patch | 284 - ...efix-map-to-replace-ffile-prefix-map.patch | 43 - ...ug-prefix-map-support-to-remap-sourc.patch | 54 - ...bgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 124 - ...using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 - ...as-for-__cpu_indicator_init-instead-.patch | 85 - .../0047-sync-gcc-stddef.h-with-musl.patch | 91 - .../gcc-7.2/0048-gcc-Enable-static-PIE.patch | 37 - ...n-legitimate-address-in-riscv_legiti.patch | 51 - ...press-32-bit-aligned-ldrd-strd-peeph.patch | 194 - ...x-segmentation-fault-precompiled-hdr.patch | 49 - poky/meta/recipes-devtools/gcc/gcc-common.inc | 118 - .../gcc/gcc-configure-common.inc | 123 - .../gcc/gcc-cross-canadian.inc | 173 - .../gcc/gcc-cross-canadian_6.4.bb | 5 - .../gcc/gcc-cross-canadian_7.2.bb | 5 - .../gcc/gcc-cross-initial.inc | 89 - .../gcc/gcc-cross-initial_6.4.bb | 2 - .../gcc/gcc-cross-initial_7.2.bb | 2 - poky/meta/recipes-devtools/gcc/gcc-cross.inc | 218 - .../recipes-devtools/gcc/gcc-cross_6.4.bb | 3 - .../recipes-devtools/gcc/gcc-cross_7.2.bb | 3 - .../gcc/gcc-crosssdk-initial.inc | 10 - .../gcc/gcc-crosssdk-initial_6.4.bb | 3 - .../gcc/gcc-crosssdk-initial_7.2.bb | 3 - .../recipes-devtools/gcc/gcc-crosssdk.inc | 12 - .../recipes-devtools/gcc/gcc-crosssdk_6.4.bb | 2 - .../recipes-devtools/gcc/gcc-crosssdk_7.2.bb | 2 - .../gcc/gcc-multilib-config.inc | 235 - .../meta/recipes-devtools/gcc/gcc-runtime.inc | 279 - .../recipes-devtools/gcc/gcc-runtime_6.4.bb | 7 - .../recipes-devtools/gcc/gcc-runtime_7.2.bb | 7 - .../recipes-devtools/gcc/gcc-sanitizers.inc | 104 - .../gcc/gcc-sanitizers_6.4.bb | 2 - .../gcc/gcc-sanitizers_7.2.bb | 2 - .../gcc/gcc-shared-source.inc | 11 - poky/meta/recipes-devtools/gcc/gcc-source.inc | 39 - .../recipes-devtools/gcc/gcc-source_6.4.bb | 4 - .../recipes-devtools/gcc/gcc-source_7.2.bb | 4 - poky/meta/recipes-devtools/gcc/gcc-target.inc | 237 - poky/meta/recipes-devtools/gcc/gcc_6.4.bb | 9 - poky/meta/recipes-devtools/gcc/gcc_7.2.bb | 10 - .../recipes-devtools/gcc/libgcc-common.inc | 155 - .../recipes-devtools/gcc/libgcc-initial.inc | 20 - .../gcc/libgcc-initial_6.4.bb | 2 - .../gcc/libgcc-initial_7.2.bb | 2 - poky/meta/recipes-devtools/gcc/libgcc.inc | 42 - poky/meta/recipes-devtools/gcc/libgcc_6.4.bb | 2 - poky/meta/recipes-devtools/gcc/libgcc_7.2.bb | 2 - .../meta/recipes-devtools/gcc/libgfortran.inc | 71 - .../recipes-devtools/gcc/libgfortran_6.4.bb | 3 - .../recipes-devtools/gcc/libgfortran_7.2.bb | 3 - poky/meta/recipes-devtools/gdb/gdb-8.0.inc | 22 - poky/meta/recipes-devtools/gdb/gdb-common.inc | 60 - .../gdb/gdb-cross-canadian.inc | 43 - .../gdb/gdb-cross-canadian_8.0.bb | 3 - poky/meta/recipes-devtools/gdb/gdb-cross.inc | 30 - .../recipes-devtools/gdb/gdb-cross_8.0.bb | 2 - poky/meta/recipes-devtools/gdb/gdb.inc | 10 - .../0001-include-sys-types.h-for-mode_t.patch | 30 - ...make-man-install-relative-to-DESTDIR.patch | 28 - ...ux-nat-Define-_ABIO32-if-not-defined.patch | 37 - ...e-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 53 - ...port-for-Renesas-SH-sh4-architecture.patch | 922 - ...readline.a-when-using-disable-static.patch | 50 - .../gdb/gdb/0007-use-asm-sgidefs.h.patch | 36 - ...-Use-exorted-definitions-of-SIGRTMIN.patch | 50 - .../gdb/gdb/0009-Change-order-of-CFLAGS.patch | 30 - ...10-resolve-restrict-keyword-conflict.patch | 48 - ...patches_120-sigprocmask-invalid-call.patch | 45 - poky/meta/recipes-devtools/gdb/gdb_8.0.bb | 27 - poky/meta/recipes-devtools/git/git.inc | 143 - poky/meta/recipes-devtools/git/git_2.15.0.bb | 11 - .../gnu-config/gnu-config/gnu-configize.in | 267 - .../gnu-config/gnu-config/musl-support.patch | 25 - .../gnu-config/gnu-config_20120814.bb | 40 - .../gnu-config/gnu-config_git.bb | 40 - poky/meta/recipes-devtools/go/go-1.9.inc | 23 - .../0001-make.bash-quote-CC_FOR_TARGET.patch | 32 - ...d-CXX-environment-variable-construct.patch | 67 - ...tter-separate-host-and-target-builds.patch | 92 - ...OOLDIR-to-be-overridden-in-the-envir.patch | 68 - ...d-go-make-GOROOT-precious-by-default.patch | 41 - ...TOOLDIR_BOOTSTRAP-environment-variab.patch | 36 - ...7-ld-add-soname-to-shareable-objects.patch | 46 - ...HOSTxx-indirection-for-cross-canadia.patch | 33 - ...-pie-forces-external-linking-mode-on.patch | 47 - ...de-CC-when-building-dist-and-go_boot.patch | 43 - .../go/go-1.9/set-external-linker.patch | 111 - poky/meta/recipes-devtools/go/go-common.inc | 26 - .../recipes-devtools/go/go-cross-canadian.inc | 62 - .../go/go-cross-canadian_1.9.bb | 2 - poky/meta/recipes-devtools/go/go-cross.inc | 62 - poky/meta/recipes-devtools/go/go-cross_1.9.bb | 2 - poky/meta/recipes-devtools/go/go-crosssdk.inc | 54 - .../recipes-devtools/go/go-crosssdk_1.9.bb | 2 - .../0001-Add-support-for-mips-mips64.patch | 54 - ...nstant-that-hopefully-works-the-same.patch | 33 - poky/meta/recipes-devtools/go/go-dep_0.3.1.bb | 19 - poky/meta/recipes-devtools/go/go-native.inc | 62 - .../meta/recipes-devtools/go/go-native_1.9.bb | 2 - poky/meta/recipes-devtools/go/go-runtime.inc | 98 - .../recipes-devtools/go/go-runtime_1.9.bb | 2 - poky/meta/recipes-devtools/go/go-target.inc | 61 - poky/meta/recipes-devtools/go/go_1.9.bb | 2 - .../help2man/help2man-native_1.47.4.bb | 25 - .../i2c-tools/files/Module.mk | 72 - .../i2c-tools/i2c-tools_3.1.2.bb | 36 - .../icecc-create-env-native_0.1.bb | 36 - .../icecc-create-env/icecc-create-env | 192 - .../icon-naming-utils_0.8.90.bb | 30 - .../intltool/intltool/intltool-nowarn.patch | 42 - .../intltool/intltool/noperlcheck.patch | 40 - .../intltool/perl-522-deprecations.patch | 55 - .../intltool/intltool/remove-perl-check.patch | 45 - .../intltool/intltool_0.51.0.bb | 37 - ...THRU-comment-to-handle-GCC7-warnings.patch | 74 - .../recipes-devtools/json-c/json-c_0.12.1.bb | 32 - ...PYTHON_INSTALL_DIR-by-running-python.patch | 41 - ...-__comps_objmrtree_all-static-inline.patch | 35 - ...-library-installation-path-correctly.patch | 27 - .../recipes-devtools/libcomps/libcomps_git.bb | 24 - ...-drop-the-requirement-for-GTKDOC_SCA.patch | 31 - ...or-both-libsolv-and-libsolvext-libdn.patch | 29 - ...oot-path-to-introspection-tools-path.patch | 36 - ...ary-installation-directory-correctly.patch | 29 - ...ables-with-pkg-config-cmake-s-own-mo.patch | 30 - .../recipes-devtools/libdnf/libdnf_0.9.3.bb | 28 - ...t-the-library-installation-directory.patch | 28 - ...tain-PYTHON_INSTALL_DIR-by-running-p.patch | 41 - ...-when-deleting-temporary-directories.patch | 41 - ...les-with-pkg-config-not-with-cmake-m.patch | 29 - ...-LRO_SSLVERIFYHOST-with-CURLOPT_SSL_.patch | 40 - .../recipes-devtools/librepo/librepo_git.bb | 25 - .../libtool/libtool-2.4.6.inc | 48 - .../libtool/libtool-cross_2.4.6.bb | 40 - .../libtool/libtool-native_2.4.6.bb | 22 - ...tool-Fix-support-for-NIOS2-processor.patch | 68 - .../libtool/dont-depend-on-help2man.patch | 30 - .../libtool/libtool/fix-final-rpath.patch | 50 - .../libtool/fix-resolve-lt-sysroot.patch | 42 - .../libtool/libtool/fix-rpath.patch | 65 - .../libtool/libtool/fixinstall.patch | 102 - .../libtool/libtool/nohardcodepaths.patch | 29 - .../libtool/libtool/norm-rpath.patch | 38 - .../libtool/libtool/prefix.patch | 98 - .../libtool/libtool/rename-with-sysroot.patch | 166 - .../libtool/libtool/trailingslash.patch | 35 - .../libtool/libtool/unwind-opt-parsing.patch | 179 - .../libtool/use-sysroot-in-libpath.patch | 22 - .../recipes-devtools/libtool/libtool_2.4.6.bb | 28 - .../libtool/nativesdk-libtool_2.4.6.bb | 31 - ...ryInfo-Undefine-libc-functions-if-th.patch | 93 - ...-llvm-allow-env-override-of-exe-path.patch | 39 - poky/meta/recipes-devtools/llvm/llvm_git.bb | 185 - poky/meta/recipes-devtools/m4/m4-1.4.18.inc | 22 - .../recipes-devtools/m4/m4-native_1.4.18.bb | 14 - poky/meta/recipes-devtools/m4/m4.inc | 10 - ...charset_alias-when-building-for-musl.patch | 33 - .../m4/m4/ac_config_links.patch | 30 - .../recipes-devtools/m4/m4/remove-gets.patch | 24 - poky/meta/recipes-devtools/m4/m4_1.4.18.bb | 3 - poky/meta/recipes-devtools/make/make.inc | 12 - poky/meta/recipes-devtools/make/make_4.2.1.bb | 12 - .../makedevs/makedevs/COPYING.patch | 346 - .../makedevs/makedevs/makedevs.c | 589 - .../makedevs/makedevs_1.0.1.bb | 26 - .../mkelfimage/mkelfimage/convert.bin.c | 348 - .../mkelfimage/mkelfimage/cross-compile.patch | 106 - .../fix-makefile-to-find-libz.patch | 33 - .../mkelfimage/mkelfimage_git.bb | 48 - .../mklibs/files/ac_init_fix.patch | 19 - ...re-on-symbol-provided-by-application.patch | 102 - .../mklibs/files/fix_STT_GNU_IFUNC.patch | 26 - .../mklibs/files/fix_cross_compile.patch | 81 - ...U-unique-symbols-as-provided-symbols.patch | 34 - .../mklibs/files/sysrooted-ldso.patch | 18 - .../mklibs/mklibs-native_0.1.43.bb | 24 - .../recipes-devtools/mmc/mmc-utils_git.bb | 23 - .../mtd-utils/0001-Fix-build-with-musl.patch | 28 - .../mtd/mtd-utils/010-fix-rpmatch.patch | 63 - .../add-exclusion-to-mkfs-jffs2-git-2.patch | 103 - .../mtd-utils/fix-armv7-neon-alignment.patch | 55 - ...anmarker-with-flash_erase--j-command.patch | 137 - .../recipes-devtools/mtd/mtd-utils_git.bb | 52 - ...-fs-size-is-not-divisible-by-sectors.patch | 34 - .../mtools/disable-hardcoded-configs.patch | 23 - .../mtools/mtools/mtools-makeinfo.patch | 65 - .../mtools/mtools/no-x11.gplv3.patch | 18 - .../recipes-devtools/mtools/mtools_4.0.18.bb | 51 - .../recipes-devtools/nasm/nasm_2.13.01.bb | 28 - .../recipes-devtools/ninja/ninja_1.7.2.bb | 30 - ...Switch-all-scripts-to-use-Python-3.x.patch | 112 - .../opkg-utils/tar_ignore_error.patch | 47 - .../opkg-utils/opkg-utils_0.3.5.bb | 64 - .../opkg/opkg-arch-config_1.0.bb | 35 - .../opkg/opkg-keyrings_1.0.bb | 48 - ...-opkg.lock-in-run-instead-of-var-run.patch | 34 - .../opkg/opkg/opkg-configure.service | 17 - .../meta/recipes-devtools/opkg/opkg/opkg.conf | 28 - poky/meta/recipes-devtools/opkg/opkg_0.3.5.bb | 75 - poky/meta/recipes-devtools/orc/orc_0.4.27.bb | 27 - .../ossp-uuid/0001-Change-library-name.patch | 119 - ...m-option-status-in-v-option-handling.patch | 62 - .../ossp-uuid/0003-Fix-whatis-entries.patch | 58 - .../0004-fix-data-uuid-from-string.patch | 43 - .../ossp-uuid/ossp-uuid/install-pc.patch | 19 - .../ossp-uuid/ossp-uuid/ldflags.patch | 26 - .../ossp-uuid/ossp-uuid/libtool-tag.patch | 21 - .../ossp-uuid/ossp-uuid/uuid-libtool.patch | 27 - .../ossp-uuid/ossp-uuid/uuid-nostrip.patch | 19 - .../ossp-uuid/ossp-uuid_1.6.2.bb | 66 - .../packagegroup-core-device-devel.bb | 16 - poky/meta/recipes-devtools/patch/patch.inc | 14 - ...charset_alias-when-building-for-musl.patch | 33 - .../recipes-devtools/patch/patch_2.7.5.bb | 15 - .../patchelf/Increase-maxSize-to-64MB.patch | 46 - .../Skip-empty-section-fixes-66.patch | 30 - .../patchelf/patchelf/avoidholes.patch | 163 - .../patchelf/fix-adjusting-startPage.patch | 38 - .../patchelf/handle-read-only-files.patch | 53 - .../recipes-devtools/patchelf/patchelf_0.9.bb | 19 - .../pax-utils/pax-utils_1.2.2.bb | 40 - .../perl/liberror-perl_0.17025.bb | 28 - .../recipes-devtools/perl/liburi-perl_1.72.bb | 30 - .../perl/libxml-parser-perl_2.44.bb | 37 - .../recipes-devtools/perl/libxml-perl_0.08.bb | 28 - .../perl/libxml-simple-perl_2.24.bb | 24 - .../perl/perl-native_5.24.1.bb | 136 - .../meta/recipes-devtools/perl/perl-ptest.inc | 45 - .../perl/perl-rdepends_5.24.1.inc | 2575 -- poky/meta/recipes-devtools/perl/perl.inc | 10 - ...-fstack-protector-strong-for-native-.patch | 103 - .../perl/perl/Configure-multilib.patch | 17 - .../perl/perl/MM_Unix.pm.patch | 22 - .../perl/perl/Makefile.SH.patch | 385 - .../recipes-devtools/perl/perl/Makefile.patch | 58 - .../meta/recipes-devtools/perl/perl/config.sh | 1249 - .../recipes-devtools/perl/perl/config.sh-32 | 38 - .../perl/perl/config.sh-32-be | 1 - .../perl/perl/config.sh-32-le | 1 - .../recipes-devtools/perl/perl/config.sh-64 | 38 - .../perl/perl/config.sh-64-be | 1 - .../perl/perl/config.sh-64-le | 1 - .../perl/perl/cross-generate_uudmap.patch | 15 - .../perl/debian/cpan-missing-site-dirs.diff | 63 - .../perl/perl/debian/cpan_definstalldirs.diff | 38 - .../perl/perl/debian/db_file_ver.diff | 35 - .../perl/perl/debian/deprecate-with-apt.diff | 57 - .../perl/perl/debian/doc_info.diff | 36 - .../perl/perl/debian/enc2xs_inc.diff | 71 - .../perl/perl/debian/errno_ver.diff | 37 - .../debian/extutils_set_libperl_path.diff | 38 - .../perl/perl/debian/fakeroot.diff | 43 - .../perl/perl/debian/find_html2text.diff | 36 - .../fixes/document_makemaker_ccflags.diff | 32 - .../debian/fixes/memoize_storable_nstore.diff | 111 - .../perl/perl/debian/fixes/net_smtp_docs.diff | 26 - .../perl/perl/debian/fixes/perl-Cnn.diff | 74 - .../fixes/pod_man_reproducible_date.diff | 171 - .../perl/debian/fixes/podman-empty-date.diff | 52 - .../perl/perl/debian/fixes/podman-pipe.diff | 110 - .../perl/debian/fixes/podman-utc-docs.diff | 87 - .../perl/perl/debian/fixes/podman-utc.diff | 34 - .../perl/perl/debian/fixes/respect_umask.diff | 154 - .../perl/perl/debian/instmodsh_doc.diff | 28 - .../perl/perl/debian/ld_run_path.diff | 25 - .../perl/perl/debian/libnet_config_path.diff | 38 - .../perl/perl/debian/libperl_embed_doc.diff | 27 - .../perl/perl/debian/locale-robustness.diff | 53 - .../perl/perl/debian/makemaker-pasthru.diff | 31 - .../perl/debian/makemaker_customized.diff | 43 - .../perl/perl/debian/mod_paths.diff | 100 - .../perl/debian/no_packlist_perllocal.diff | 93 - .../perl/perl/debian/patchlevel.diff | 31 - .../debian/perl5db-x-terminal-emulator.patch | 30 - .../perl/perl/debian/perlivp.diff | 40 - .../perl/perl/debian/pod2man-customized.diff | 24 - .../perl/perl/debian/prefix_changes.diff | 119 - .../perl/perl/debian/prune_libs.diff | 43 - .../perl/perl/debian/regen-skip.diff | 28 - .../perl/perl/debian/skip-kfreebsd-crash.diff | 41 - .../perl/debian/skip-upstream-git-tests.diff | 29 - .../perl/debian/squelch-locale-warnings.diff | 57 - .../perl/perl/debian/writable_site_dirs.diff | 37 - .../perl/perl/dynaloaderhack.patch | 35 - ...e-hints-linux.pl-link-libgdbm_compat.patch | 35 - ...odbm.t-fix-the-path-of-dbmt_common.p.patch | 33 - .../perl/perl/fix_bad_rpath.patch | 24 - .../perl/perl/generate-sh.patch | 56 - .../perl/perl/installperl.patch | 17 - .../perl/perl/letgcc-find-errno.patch | 46 - ...regenerate-makefile-failed-while-cc-.patch | 30 - .../perl/perl/native-nopacklist.patch | 91 - .../perl/perl/native-perlinc.patch | 26 - ...Tools-don-t-filter-out-blib-from-INC.patch | 33 - .../perl/perl/perl-archlib-exp.patch | 40 - .../perl/perl/perl-configpm-switch.patch | 47 - .../perl/perl/perl-configure.sh | 43 - .../perl/perl/perl-dynloader.patch | 34 - .../perl/perl/perl-enable-gdbm.patch | 19 - .../perl/perl-errno-generation-gcc5.patch | 37 - ...ix-conflict-between-skip_all-and-END.patch | 181 - .../perl/perl/perl-moreconfig.patch | 18 - .../perl/perl/perl-test-customized.patch | 86 - .../meta/recipes-devtools/perl/perl/run-ptest | 2 - .../perl/t-run-switches.t-perl5-perl.patch | 30 - ...st-threads-t-join.t-adjust-ps-option.patch | 38 - ...-DynaLoader.t-fix-calling-dl_findfil.patch | 26 - .../meta/recipes-devtools/perl/perl_5.24.1.bb | 336 - ...tweaks-to-compile-with-Visual-C-2015.patch | 224 - .../0001-stdinc.h-fix-build-with-mingw.patch | 48 - .../pkgconf/pkgconf/pkg-config-esdk.in | 24 - .../pkgconf/pkgconf/pkg-config-native.in | 6 - .../pkgconf/pkgconf/pkg-config-wrapper | 16 - .../recipes-devtools/pkgconf/pkgconf_1.3.7.bb | 73 - ...Update-AM_GLIB_GNU_GETTEXT-to-match-.patch | 41 - .../fix-glib-configure-libtool-usage.patch | 45 - .../pkgconfig/pkgconfig/pkg-config-esdk.in | 24 - .../pkgconfig/pkgconfig/pkg-config-native.in | 7 - .../pkgconfig/pkgconfig_git.bb | 73 - .../nativesdk-postinst-intercept_1.0.bb | 18 - .../prelink/prelink/macros.prelink | 5 - .../prelink/prelink/prelink.conf | 18 - .../prelink/prelink/prelink.cron.daily | 40 - .../prelink/prelink/prelink.default | 22 - .../recipes-devtools/prelink/prelink_git.bb | 178 - .../files/0001-Use-epoll-API-on-Linux.patch | 292 - .../0001-configure-Prune-PIE-flags.patch | 44 - ...8db896f9963558334aff7fca61adde4ec10f.patch | 48 - ...be279901006f939cd357ccee47b651c786da.patch | 99 - .../pseudo/files/fallback-group | 3 - .../pseudo/files/fallback-passwd | 3 - .../pseudo/files/fastopreply.patch | 76 - .../pseudo/files/moreretries.patch | 19 - .../pseudo/files/toomanyfiles.patch | 59 - poky/meta/recipes-devtools/pseudo/pseudo.inc | 142 - .../recipes-devtools/pseudo/pseudo_1.8.2.bb | 16 - .../recipes-devtools/pseudo/pseudo_git.bb | 15 - ...-loop-when-creating-np.pad-on-an-emp.patch | 45 - ...-and-so-on-for-libraries-by-default-.patch | 74 - .../python-numpy/files/aarch64/_numpyconfig.h | 32 - .../python-numpy/files/aarch64/config.h | 139 - .../python-numpy/files/arm/config.h | 21 - .../python-numpy/files/arm/numpyconfig.h | 17 - .../python-numpy/files/armeb/config.h | 21 - .../python-numpy/files/armeb/numpyconfig.h | 17 - .../python-numpy/files/fix_shebang_f2py.patch | 29 - .../files/mipsarchn32eb/_numpyconfig.h | 31 - .../python-numpy/files/mipsarchn32eb/config.h | 139 - .../files/mipsarchn32el/_numpyconfig.h | 31 - .../python-numpy/files/mipsarchn32el/config.h | 138 - .../files/mipsarchn64eb/_numpyconfig.h | 32 - .../python-numpy/files/mipsarchn64eb/config.h | 139 - .../files/mipsarchn64el/_numpyconfig.h | 32 - .../python-numpy/files/mipsarchn64el/config.h | 138 - .../files/mipsarcho32eb/_numpyconfig.h | 32 - .../python-numpy/files/mipsarcho32eb/config.h | 139 - .../python-numpy/files/mipsarcho32el/config.h | 21 - .../files/mipsarcho32el/numpyconfig.h | 18 - .../python-numpy/files/powerpc/_numpyconfig.h | 32 - .../python-numpy/files/powerpc/config.h | 139 - .../files/powerpc64/_numpyconfig.h | 32 - .../python-numpy/files/powerpc64/config.h | 139 - .../files/remove-build-path-in-comments.patch | 30 - .../python-numpy/files/x86-64/_numpyconfig.h | 32 - .../python-numpy/files/x86-64/config.h | 139 - .../python-numpy/files/x86/config.h | 108 - .../python-numpy/files/x86/numpyconfig.h | 24 - .../python-numpy/python-numpy_1.13.1.bb | 114 - .../python-numpy/python3-numpy_1.13.3.bb | 114 - .../python/python-2.7-manifest.inc | 287 - .../python/python-3.5-manifest.inc | 283 - .../recipes-devtools/python/python-async.inc | 15 - .../recipes-devtools/python/python-git.inc | 21 - .../recipes-devtools/python/python-gitdb.inc | 16 - .../recipes-devtools/python/python-mako.inc | 16 - .../python/python-native-2.7-manifest.inc | 9 - .../python/python-native-3.5-manifest.inc | 10 - .../10-distutils-fix-swig-parameter.patch | 18 - ...-distutils-never-modify-shebang-line.patch | 20 - .../python/python-native/debug.patch | 32 - .../python/python-native/multilib.patch | 235 - .../python/python-native/nohostlibs.patch | 54 - .../revert_use_of_sysconfigdata.patch | 86 - .../python/python-native/unixccompiler.patch | 20 - .../python/python-native_2.7.13.bb | 61 - .../python/python-nose_1.3.7.bb | 25 - .../python/python-scons-native_3.0.0.bb | 8 - ...ipt-Support-python2-print-statements.patch | 38 - .../python/python-scons_3.0.0.bb | 28 - .../python/python-setuptools.inc | 21 - .../python/python-setuptools_36.5.0.bb | 38 - .../recipes-devtools/python/python-six.inc | 16 - .../recipes-devtools/python/python-smmap.inc | 19 - poky/meta/recipes-devtools/python/python.inc | 40 - ...e-prefix-to-be-inside-staging-direct.patch | 51 - .../01-use-proper-tools-for-cross-build.patch | 97 - .../python/03-fix-tkinter-detection.patch | 46 - .../python/05-enable-ctypes-cross-build.patch | 27 - ...void_usr_lib_termcap_path_in_linking.patch | 35 - .../Don-t-use-getentropy-on-Linux.patch | 41 - ...CROSSPYTHONPATH-for-PYTHON_FOR_BUILD.patch | 28 - .../python/python/add-md5module-support.patch | 18 - .../python/avoid_warning_about_tkinter.patch | 39 - ...id_warning_for_sunos_specific_module.patch | 23 - .../python/python/builddir.patch | 46 - .../python/python/cgi_py.patch | 23 - .../check-if-target-is-64b-not-host.patch | 57 - .../python/fix-makefile-for-ptest.patch | 33 - .../fix_for_using_different_libdir.patch | 77 - .../python/host_include_contamination.patch | 28 - .../python/python/multilib.patch | 296 - .../parallel-makeinst-create-bindir.patch | 19 - ...ssing-libraries-to-Extension-for-mul.patch | 82 - .../python-2.7.3-remove-bsdb-rpath.patch | 28 - .../recipes-devtools/python/python/run-ptest | 5 - ...h_db_h_in_inc_dirs_and_avoid_warning.patch | 35 - .../setup_py_skip_cross_import_check.patch | 27 - .../python/python/setuptweaks.patch | 57 - .../python/python/sitecustomize.py | 45 - ..._SOURCE_DATE_EPOCH_in_py_compile_2.7.patch | 34 - .../use_sysroot_ncurses_instead_of_host.patch | 21 - .../python/python3-async_0.6.2.bb | 6 - .../python/python3-dbus_1.2.4.bb | 23 - .../python/python3-docutils_0.14.bb | 18 - .../python/python3-git_2.1.7.bb | 7 - .../python/python3-gitdb_0.6.4.bb | 7 - .../0001-Add-python-3-compatibility.patch | 552 - .../python/python3-iniparse_0.4.bb | 20 - .../python/python3-mako_1.0.7.bb | 11 - .../python/python3-native_3.5.3.bb | 84 - .../python/python3-nose_1.3.7.bb | 28 - .../python/python3-pip_9.0.1.bb | 56 - .../python/python3-pycairo_1.15.3.bb | 31 - ...ure.ac-Don-t-use-gnome-common-macros.patch | 33 - ...-sysroot-path-to-GI_DATADIR-don-t-se.patch | 41 - .../python/python3-pygobject_3.26.0.bb | 30 - .../python/python3-setuptools_36.5.0.bb | 38 - .../python/python3-six_1.11.0.bb | 4 - .../python/python3-smmap_0.9.0.bb | 5 - ...hell-version-of-python-config-that-w.patch | 38 - ..._sysconfigdata.py-to-initialize-dist.patch | 66 - .../python3/0001-cross-compile-support.patch | 93 - ...3032-where-it-fails-with-UnicodeDeco.patch | 37 - .../python3/03-fix-tkinter-detection.patch | 42 - .../python3/030-fixup-include-dirs.patch | 33 - .../python3/070-dont-clean-ipkg-install.patch | 36 - .../080-distutils-dont_adjust_files.patch | 92 - ...tutils-prefix-is-inside-staging-area.patch | 57 - .../python/python3/130-readline-setup.patch | 55 - .../python/python3/150-fix-setupterm.patch | 17 - ...f-spewing-exceptions-during-interp-f.patch | 56 - .../python3/avoid-ncursesw-include-path.patch | 21 - .../python3/avoid_warning_about_tkinter.patch | 39 - .../python/python3/cgi_py.patch | 23 - .../python3/configure.ac-fix-LIBPL.patch | 30 - .../fix_for_using_different_libdir.patch | 54 - .../python3/host_include_contamination.patch | 28 - ...ssing-libraries-to-Extension-for-mul.patch | 82 - .../python/python3/python-3.3-multilib.patch | 361 - .../python/python3/python-config.patch | 46 - ...CROSSPYTHONPATH-for-PYTHON_FOR_BUILD.patch | 28 - ...check-cross_compiling-when-get-FLAGS.patch | 50 - .../python/python3/setuptweaks.patch | 57 - .../python3/shutil-follow-symlink-fix.patch | 17 - .../python/python3/sitecustomize.py | 37 - ...port_SOURCE_DATE_EPOCH_in_py_compile.patch | 97 - ...sysconfig.py-add-_PYTHON_PROJECT_SRC.patch | 54 - .../python3/sysroot-include-headers.patch | 35 - ...k-MULTIARCH-for-powerpc-linux-gnuspe.patch | 52 - .../python/python3/unixccompiler.patch | 35 - .../python3/upstream-random-fixes.patch | 703 - .../recipes-devtools/python/python3_3.5.3.bb | 225 - .../recipes-devtools/python/python_2.7.13.bb | 195 - .../qemu/nativesdk-qemu-helper_1.0.bb | 37 - .../qemu/qemu-helper-native_1.0.bb | 24 - .../qemu/qemu-helper/tunctl.c | 156 - .../recipes-devtools/qemu/qemu-targets.inc | 22 - poky/meta/recipes-devtools/qemu/qemu.inc | 119 - ...001-Provide-support-for-the-CUSE-TPM.patch | 870 - ...ion-to-notify-waiters-of-completed-c.patch | 86 - ...tion-in-TPM-backend-for-notification.patch | 79 - ...r-VM-suspend-resume-for-TPM-TIS-v2.9.patch | 719 - .../qemu/qemu/add-ptest-in-makefile-v10.patch | 28 - .../qemu/apic-fixup-fallthrough-to-PIC.patch | 46 - ...pus.c-qemu_cpu_kick_thread_debugging.patch | 76 - .../qemu/qemu/disable-grabs.patch | 72 - ...lude-some-arm-EABI-obsolete-syscalls.patch | 87 - ...x-libcap-header-issue-on-some-distro.patch | 84 - .../qemu/qemu/glibc-2.25.patch | 74 - .../qemu/qemu/no-valgrind.patch | 19 - .../qemu/qemu/pathlimit.patch | 137 - .../qemu/qemu/powerpc_rom.bin | Bin 4096 -> 0 bytes .../qemu/qemu/ppc_locking.patch | 105 - .../qemu/qemu/qemu-2.5.0-cflags.patch | 15 - .../qemu/qemu-enlarge-env-entry-size.patch | 31 - .../meta/recipes-devtools/qemu/qemu/run-ptest | 10 - .../recipes-devtools/qemu/qemu/wacom.patch | 130 - .../meta/recipes-devtools/qemu/qemu_2.10.1.bb | 59 - .../qemu/qemuwrapper-cross_1.0.bb | 50 - .../recipes-devtools/quilt/quilt-native.inc | 18 - .../quilt/quilt-native_0.65.bb | 2 - poky/meta/recipes-devtools/quilt/quilt.inc | 77 - ...tests-Allow-different-output-from-mv.patch | 29 - .../recipes-devtools/quilt/quilt/Makefile | 13 - .../quilt/quilt/aclocal.patch | 128 - .../quilt/gnu_patch_test_fix_target.patch | 26 - .../recipes-devtools/quilt/quilt/run-ptest | 8 - .../meta/recipes-devtools/quilt/quilt/test.sh | 1 - .../meta/recipes-devtools/quilt/quilt_0.65.bb | 6 - ...-when-searching-for-python-libraries.patch | 30 - ...olor-setting-for-mips64_n32-binaries.patch | 40 - ...satisfiable-dependency-when-building.patch | 33 - ...lib-rpm-as-the-installation-path-for.patch | 61 - ...1-Do-not-read-config-files-from-HOME.patch | 38 - ...-PATH-environment-variable-before-ru.patch | 30 - .../0001-Fix-build-with-musl-C-library.patch | 74 - ...kage-building-into-a-separate-functi.patch | 84 - ...lling-execute-package-scriptlets-wit.patch | 37 - ...cannot-be-reset-issue-a-notice-inste.patch | 31 - .../files/0001-perl-disable-auto-reqs.patch | 32 - ...prefixing-etc-from-RPM_ETCCONFIGDIR-.patch | 72 - ...ry-package-creation-via-thread-pools.patch | 127 - ...e-operations-over-string-pools-threa.patch | 207 - ...ove-static-local-variables-from-buil.patch | 337 - ...hat-ELF-binaries-are-executable-to-b.patch | 32 - ...ional-to-access-_docdir-in-macros.in.patch | 36 - ...-Add-a-new-option-alldeps-to-rpmdeps.patch | 152 - poky/meta/recipes-devtools/rpm/rpm_git.bb | 138 - .../rsync/files/makefile-no-rebuild.patch | 69 - .../recipes-devtools/rsync/files/rsyncd.conf | 15 - poky/meta/recipes-devtools/rsync/rsync.inc | 20 - .../recipes-devtools/rsync/rsync_3.1.2.bb | 32 - poky/meta/recipes-devtools/ruby/ruby.inc | 40 - ...Obey-LDFLAGS-for-the-link-of-libruby.patch | 28 - .../recipes-devtools/ruby/ruby/extmk.patch | 14 - .../ruby/ruby/ruby-CVE-2017-9224.patch | 41 - .../ruby/ruby/ruby-CVE-2017-9226.patch | 41 - .../ruby/ruby/ruby-CVE-2017-9227.patch | 32 - .../ruby/ruby/ruby-CVE-2017-9228.patch | 34 - .../ruby/ruby/ruby-CVE-2017-9229.patch | 59 - poky/meta/recipes-devtools/ruby/ruby_2.4.2.bb | 52 - .../run-postinsts/run-postinsts/run-postinsts | 97 - .../run-postinsts/run-postinsts.init | 3 - .../run-postinsts/run-postinsts.service | 16 - .../run-postinsts/run-postinsts_1.0.bb | 44 - ...c-get-inline-functions-work-with-C99.patch | 154 - .../squashfs-tools/fix-compat.patch | 63 - .../squashfs-tools-4.3-sysmacros.patch | 32 - .../squashfs-tools/squashfs-tools_git.bb | 41 - ...sing-non-glibc-libc-implementation-o.patch | 36 - ...0001-caps-abbrev.awk-fix-gawk-s-path.patch | 49 - ...Check-for-mips-and-alpha-before-usin.patch | 37 - .../strace/strace/Makefile-ptest.patch | 54 - .../strace/disable-git-version-gen.patch | 20 - .../strace/strace/mips-SIGEMT.patch | 24 - ...st-test-for-m32-mx32-compile-support.patch | 46 - .../recipes-devtools/strace/strace/run-ptest | 2 - .../strace/strace/update-gawk-paths.patch | 126 - .../recipes-devtools/strace/strace_4.19.bb | 59 - ...001-Fix-libtool-name-in-configure.ac.patch | 29 - .../subversion/subversion/CVE-2017-9800.patch | 136 - .../subversion/subversion/disable_macos.patch | 68 - ...4-Regex-modified-to-allow-D-in-paths.patch | 32 - .../subversion/subversion/serfmacro.patch | 22 - .../subversion/subversion_1.9.6.bb | 56 - poky/meta/recipes-devtools/swig/swig.inc | 62 - ...e-for-swig-swiglib-on-non-Win32-plat.patch | 69 - ...re-use-pkg-config-for-pcre-detection.patch | 64 - .../meta/recipes-devtools/swig/swig_3.0.12.bb | 8 - ...nux-syslinux-support-ext2-3-4-device.patch | 84 - ...inux-syslinux-implement-open_ext2_fs.patch | 141 - ...x-syslinux-implement-install_to_ext2.patch | 116 - ...add-ext_file_read-and-ext_file_write.patch | 91 - ...syslinux-implement-handle_adv_on_ext.patch | 127 - ...mplement-write_to_ext-and-add-syslin.patch | 215 - ...x-implement-ext_construct_sectmap_fs.patch | 84 - ...linuxext-implement-syslinux_patch_bo.patch | 427 - ...syslinux-implement-install_bootblock.patch | 50 - .../syslinux/0010-gcc46-compatibility.patch | 37 - ...1-mk-MMD-does-not-take-any-arguments.patch | 33 - .../syslinux/syslinux-6.03-sysmacros.patch | 45 - ...syslinux-fix-parallel-building-issue.patch | 35 - .../syslinux-libupload-depend-lib.patch | 34 - .../syslinux-remove-clean-script.patch | 17 - .../syslinux/syslinux_6.03.bb | 90 - .../0001-parse-util-Don-t-use-xlocale.h.patch | 32 - .../systemd-bootchart_231.bb | 31 - ...alize_file_name-is-specific-to-glibc.patch | 46 - .../tcf-agent/tcf-agent/fix_ranlib.patch | 14 - .../tcf-agent/tcf-agent/ldflags.patch | 28 - .../tcf-agent/tcf-agent/tcf-agent.init | 65 - .../tcf-agent/tcf-agent/tcf-agent.service | 12 - .../tcf-agent/tcf-agent_git.bb | 58 - .../tcltk/tcl/alter-includedir.patch | 76 - .../tcl/fix_issue_with_old_distro_glibc.patch | 39 - .../tcl/fix_non_native_build_issue.patch | 64 - .../tcltk/tcl/no_packages.patch | 53 - .../meta/recipes-devtools/tcltk/tcl/run-ptest | 8 - .../tcltk/tcl/tcl-add-soname.patch | 46 - .../tcl-remove-hardcoded-install-path.patch | 47 - poky/meta/recipes-devtools/tcltk/tcl_8.6.7.bb | 101 - .../unfs3/unfs3/alternate_rpc_ports.patch | 158 - .../unfs3/unfs3/fix_compile_warning.patch | 25 - ...fix_pid_race_parent_writes_child_pid.patch | 61 - .../unfs3/relative_max_socket_path_len.patch | 74 - .../unfs3/unfs3/rename_fh_cache.patch | 64 - .../unfs3/unfs3/tcp_no_delay.patch | 56 - .../unfs3/unfs3/unfs3_parallel_build.patch | 37 - .../unfs3/unfs3_0.9.22.r497.bb | 42 - .../recipes-devtools/unifdef/unifdef_2.11.bb | 19 - poky/meta/recipes-devtools/vala/vala.inc | 57 - .../vala/vala/0001-Disable-valadoc.patch | 32 - ...don-t-append-dirty-if-we-re-not-in-g.patch | 55 - ...apigen.m4-use-PKG_CONFIG_SYSROOT_DIR.patch | 38 - .../vala/vala/disable-graphviz.patch | 223 - .../meta/recipes-devtools/vala/vala_0.38.2.bb | 10 - ...t-fail-to-build-on-some-PPC32-config.patch | 51 - ...etting-mcpu-to-cortex-a8-on-arm-arch.patch | 108 - ...efine-__THROW-if-not-already-defined.patch | 32 - ...se-ucontext_t-instead-of-struct-ucon.patch | 30 - ...ame-_sifields-to-__si_fields-on-musl.patch | 31 - ...ster.c-Limit-rawmemchr-test-to-glibc.patch | 39 - ...ntext-APIs-are-not-available-on-musl.patch | 49 - ...ck-x86-Define-__THROW-if-not-defined.patch | 32 - .../valgrind/valgrind/0002-remove-rpath.patch | 35 - ...-include-directive-path-for-config.h.patch | 45 - ...de-Replace-__modify_ldt-with-syscall.patch | 68 - .../0004-Fix-out-of-tree-builds.patch | 183 - ..._atfork1.c-Define-error-API-for-musl.patch | 37 - ...est-wrapper-to-support-PTEST-formats.patch | 252 - ...wrap.c-Fake-__GLIBC_PREREQ-with-musl.patch | 30 - ...Dereference-pthread_t-before-adding-.patch | 32 - ...t-for-PPC-instructions-mfatbu-mfatbl.patch | 96 - ...n-for-targets-which-don-t-support-it.patch | 33 - .../valgrind/valgrind/fixed-perl-path.patch | 78 - .../valgrind/valgrind/link-gz-tests.patch | 27 - .../valgrind/valgrind/ppc-headers.patch | 87 - .../valgrind/valgrind/run-ptest | 25 - ...te-march-mcpu-mfpu-for-ARM-test-apps.patch | 44 - ...-ld-XXX.so-strlen-intercept-optional.patch | 45 - .../valgrind/valgrind_3.13.0.bb | 153 - .../recipes-devtools/xmlto/files/catalog.xml | 19 - ...rop-the-test-of-xmllint-and-xsltproc.patch | 30 - .../recipes-devtools/xmlto/xmlto_0.0.28.bb | 41 - poky/meta/recipes-devtools/yasm/yasm_1.3.0.bb | 16 - .../zisofs-tools/zisofs-tools-native_1.0.8.bb | 20 - .../acpica/acpica_20170303.bb | 54 - .../manipulate-fds-instead-of-FILE.patch | 72 - .../acpica/files/no-werror.patch | 32 - .../rename-yy_scan_string-manually.patch | 64 - .../asciidoc/asciidoc_8.6.9.bb | 24 - .../at/at/0001-remove-glibc-assumption.patch | 59 - poky/meta/recipes-extended/at/at/atd.init | 45 - poky/meta/recipes-extended/at/at/atd.service | 9 - .../at/at/configure-add-enable-pam.patch | 25 - .../at/at/file_replacement_with_gplv2.patch | 30 - .../at/at/fix_parallel_build_error.patch | 35 - .../at/at/makefile-fix-parallel.patch | 35 - .../recipes-extended/at/at/pam.conf.patch | 27 - poky/meta/recipes-extended/at/at/posixtm.c | 328 - poky/meta/recipes-extended/at/at/posixtm.h | 37 - poky/meta/recipes-extended/at/at_3.1.20.bb | 72 - poky/meta/recipes-extended/bash/bash.inc | 98 - ...p-fix-printf-format-security-warning.patch | 35 - ...eak-bug-fix-for-builtin-command-read.patch | 35 - .../bash/bash/build-tests.patch | 55 - .../bash/bash/execute_cmd.patch | 17 - .../bash/bash/fix-run-builtins.patch | 33 - ...un-heredoc-run-execscript-run-test-f.patch | 45 - .../bash/bash/mkbuiltins_have_stringize.patch | 26 - .../meta/recipes-extended/bash/bash/run-ptest | 22 - .../bash/bash/test-output.patch | 42 - poky/meta/recipes-extended/bash/bash_4.4.bb | 59 - poky/meta/recipes-extended/bc/bc_1.06.bb | 26 - .../bc/files/fix-segment-fault.patch | 28 - .../blktool/0001-fix-typos-in-manpage.patch | 40 - .../blktool/0002-fix-string-error.patch | 31 - ...nt-for-BLKROSET-it-must-be-const-int.patch | 78 - .../recipes-extended/blktool/blktool_4-7.bb | 28 - .../bzip2/bzip2-1.0.6/CVE-2016-3189.patch | 18 - .../bzip2/bzip2-1.0.6/Makefile.am | 73 - .../bzip2/bzip2-1.0.6/configure.ac | 11 - ...p2-qt-returns-0-for-corrupt-archives.patch | 55 - .../bzip2/bzip2-1.0.6/run-ptest | 2 - .../recipes-extended/bzip2/bzip2_1.0.6.bb | 44 - .../chkconfig-alternatives-native_1.3.59.bb | 44 - .../chkconfig/chkconfig/replace_caddr_t.patch | 33 - .../chkconfig/chkconfig_1.3.58.bb | 71 - .../cpio-2.12/0001-Fix-CVE-2015-1197.patch | 178 - ...charset_alias-when-building-for-musl.patch | 30 - poky/meta/recipes-extended/cpio/cpio_2.12.bb | 12 - poky/meta/recipes-extended/cpio/cpio_v2.inc | 43 - ...001-Apply-patch-to-fix-CVE-2016-6318.patch | 105 - ...port-dictionary-byte-order-dependent.patch | 339 - ...aklib-fix-testnum-and-teststr-failed.patch | 53 - .../cracklib/cracklib_2.9.5.bb | 29 - .../recipes-extended/cronie/cronie/crond.init | 58 - .../cronie/cronie/crond.service | 11 - .../cronie/cronie/crond_pam_config.patch | 22 - .../recipes-extended/cronie/cronie/crontab | 14 - .../recipes-extended/cronie/cronie_1.5.1.bb | 83 - poky/meta/recipes-extended/cups/cups.inc | 110 - ...-don-t-try-to-run-generated-binaries.patch | 69 - .../cups/cups/cups_serverbin.patch | 32 - .../cups/cups/use_echo_only_in_init.patch | 15 - poky/meta/recipes-extended/cups/cups_2.2.6.bb | 6 - .../cwautomacros/cwautomacros_20110201.bb | 22 - ...charset_alias-when-building-for-musl.patch | 33 - ...-explicitly-disable-replacing-getopt.patch | 30 - .../diffutils/diffutils-3.6/run-ptest | 3 - .../recipes-extended/diffutils/diffutils.inc | 12 - .../diffutils/diffutils_3.6.bb | 39 - poky/meta/recipes-extended/ed/ed_1.14.2.bb | 35 - .../ethtool/avoid_parallel_tests.patch | 19 - .../ethtool/ethtool/run-ptest | 2 - .../recipes-extended/ethtool/ethtool_4.13.bb | 30 - .../recipes-extended/findutils/findutils.inc | 16 - ...charset_alias-when-building-for-musl.patch | 30 - .../findutils/findutils_4.6.0.bb | 17 - .../CVE-2015-8327.patch | 23 - .../CVE-2015-8560.patch | 23 - .../foomatic/foomatic-filters_4.0.17.bb | 44 - .../meta/recipes-extended/gawk/gawk/run-ptest | 10 - poky/meta/recipes-extended/gawk/gawk_4.2.0.bb | 48 - .../do-not-check-local-libpng-source.patch | 38 - .../ghostscript/CVE-2016-7977.patch | 33 - .../ghostscript/CVE-2017-11714.patch | 61 - .../ghostscript/CVE-2017-5951.patch | 44 - .../ghostscript/CVE-2017-7207.patch | 39 - .../ghostscript/CVE-2017-7975.patch | 37 - .../ghostscript/CVE-2017-9216.patch | 36 - .../ghostscript/CVE-2017-9611.patch | 34 - .../ghostscript/CVE-2017-9612.patch | 35 - .../ghostscript/CVE-2017-9726.patch | 33 - .../ghostscript/CVE-2017-9727.patch | 35 - .../ghostscript/CVE-2017-9739.patch | 37 - .../ghostscript/CVE-2017-9835.patch | 125 - .../ghostscript/ghostscript/aarch64/objarch.h | 40 - .../ghostscript/ghostscript/arm/objarch.h | 40 - .../ghostscript/ghostscript/armeb/objarch.h | 40 - .../avoid-host-contamination.patch | 19 - ...-a-preprocessor-define-to-allow-fope.patch | 36 - .../ghostscript/cups-no-gcrypt.patch | 31 - .../ghostscript-9.02-genarch.patch | 28 - .../ghostscript-9.15-parallel-make.patch | 40 - .../ghostscript-9.16-Werror-return-type.patch | 30 - ...21-native-fix-disable-system-libtiff.patch | 37 - ...ghostscript-9.21-prevent_recompiling.patch | 96 - .../ghostscript/ghostscript/i586/objarch.h | 41 - .../ghostscript/ghostscript/i686 | 1 - .../ghostscript/microblazeeb/objarch.h | 40 - .../ghostscript/microblazeel/objarch.h | 40 - .../ghostscript/mipsarchn32eb/objarch.h | 40 - .../ghostscript/mipsarchn32el/objarch.h | 40 - .../ghostscript/mipsarchn64eb/objarch.h | 40 - .../ghostscript/mipsarchn64el/objarch.h | 40 - .../ghostscript/mipsarcho32eb/objarch.h | 40 - .../ghostscript/mipsarcho32el/objarch.h | 40 - .../ghostscript/ghostscript/mkdir-p.patch | 36 - .../ghostscript/ghostscript/nios2/objarch.h | 40 - .../ghostscript/ghostscript/powerpc/objarch.h | 40 - .../ghostscript/powerpc64/objarch.h | 40 - .../ghostscript/ghostscript/x86-64/objarch.h | 40 - .../ghostscript/ghostscript_9.21.bb | 137 - .../go-examples/go-helloworld_0.1.bb | 20 - poky/meta/recipes-extended/gperf/gperf.inc | 22 - poky/meta/recipes-extended/gperf/gperf_3.1.bb | 5 - ...charset_alias-when-building-for-musl.patch | 33 - poky/meta/recipes-extended/grep/grep_3.1.bb | 46 - ...charset_alias-when-building-for-musl.patch | 30 - ...001-replace-perl-w-with-use-warnings.patch | 102 - ....22.2-correct-man.local-install-path.patch | 34 - .../recipes-extended/groff/groff_1.22.3.bb | 84 - ...001-gzip-port-zdiff-zless-to-Busybox.patch | 59 - .../recipes-extended/gzip/files/run-ptest | 6 - .../gzip/gzip-1.8/wrong-path-fix.patch | 29 - poky/meta/recipes-extended/gzip/gzip.inc | 33 - poky/meta/recipes-extended/gzip/gzip_1.8.bb | 39 - .../recipes-extended/hdparm/hdparm_9.52.bb | 41 - .../images/core-image-full-cmdline.bb | 12 - .../images/core-image-kernel-dev.bb | 20 - .../images/core-image-lsb-dev.bb | 7 - .../images/core-image-lsb-sdk.bb | 12 - .../recipes-extended/images/core-image-lsb.bb | 14 - .../images/core-image-testmaster-initramfs.bb | 23 - .../images/core-image-testmaster.bb | 18 - ...ption-to-enable-disable-libnfnetlink.patch | 47 - .../iptables/0001-fix-build-with-musl.patch | 46 - ...-conntrack-when-libnfnetlink-enabled.patch | 51 - ...ines-that-are-required-for-if_packet.patch | 49 - .../iptables/iptables_1.6.1.bb | 49 - .../0001-Fix-header-inclusion-for-musl.patch | 92 - ...01-Intialize-struct-elements-by-name.patch | 52 - ...ix-arping-hang-if-SIGALRM-is-blocked.patch | 44 - .../iputils/files/debian/targets.diff | 15 - .../files/debian/use_gethostbyname2.diff | 31 - .../iputils/files/nsgmls-path-fix.patch | 27 - .../iputils/iputils_s20151218.bb | 72 - poky/meta/recipes-extended/less/less_527.bb | 42 - .../libaio/libaio/00_arches.patch | 607 - .../libaio/libaio/destdir.patch | 17 - ...-arch-dectection-for-padding-defines.patch | 65 - .../libaio/libaio_fix_for_mips_syscalls.patch | 62 - .../libaio/libaio/libaio_fix_for_x32.patch | 61 - .../libaio/libaio/system-linkage.patch | 37 - .../recipes-extended/libaio/libaio_0.3.110.bb | 26 - .../libarchive/CVE-2017-14166.patch | 37 - .../libarchive/CVE-2017-14502.patch | 37 - .../libarchive/libarchive/bug929.patch | 38 - .../non-recursive-extract-and-list.patch | 153 - .../libarchive/libarchive_3.3.2.bb | 71 - ...-fix-printf-format-security-warnings.patch | 694 - .../0001-idn-format-security-warnings.patch | 181 - ...R_P_warning_error_with_automake_1.12.patch | 25 - .../libidn/dont-depend-on-help2man.patch | 23 - .../libidn/libidn/gcc7-compatibility.patch | 334 - .../libidn/libidn_fix_for_automake-1.12.patch | 26 - .../recipes-extended/libidn/libidn_1.33.bb | 44 - .../recipes-extended/libmnl/libmnl_1.0.4.bb | 15 - .../0001-include-sys-cdefs.h-explicitly.patch | 68 - ...de-stdint.h-for-uintptr_t-definition.patch | 27 - .../0002-Define-glibc-specific-macros.patch | 57 - .../recipes-extended/libnsl/libnsl2_git.bb | 37 - ...-fallback-fopencookie-implementation.patch | 250 - ...crease-MAX_HDR_CNT-and-MAX_HDR_DSIZE.patch | 35 - ...-internal-fopencookie-implementation.patch | 104 - .../libsolv/libsolv_0.6.29.bb | 32 - .../0001-include-stdint.h-for-uintptr_t.patch | 32 - ...0001-replace-__bzero-with-memset-API.patch | 30 - .../libtirpc/Use-netbsd-queue.h.patch | 878 - .../export_key_secretkey_is_set.patch | 24 - .../libtirpc/libtirpc_1.0.2.bb | 38 - .../libuser/0001-Check-for-issetugid.patch | 62 - ...parse_field-fix-string-formating-in-.patch | 34 - .../0002-remove-unused-execinfo.h.patch | 27 - .../recipes-extended/libuser/libuser_0.62.bb | 32 - ...or-pcre-dependency-instead-of-config.patch | 42 - .../lighttpd/lighttpd/index.html.lighttpd | 1 - .../lighttpd/lighttpd/lighttpd | 34 - .../lighttpd/lighttpd/lighttpd.conf | 331 - .../lighttpd/lighttpd/lighttpd.service | 12 - .../lighttpd/lighttpd_1.4.48.bb | 85 - .../logrotate/act-as-mv-when-rotate.patch | 151 - .../disable-check-different-filesystems.patch | 32 - .../logrotate/update-the-manual.patch | 38 - .../logrotate/logrotate_3.13.0.bb | 85 - ...e-to-work-with-busybox-head-and-find.patch | 38 - .../recipes-extended/lsb/lsb/init-functions | 44 - .../recipes-extended/lsb/lsb/lsb_killproc | 6 - .../recipes-extended/lsb/lsb/lsb_log_message | 27 - .../recipes-extended/lsb/lsb/lsb_pidofproc | 6 - .../recipes-extended/lsb/lsb/lsb_start_daemon | 45 - poky/meta/recipes-extended/lsb/lsb_4.1.bb | 135 - ...exit-1-which-causes-init-scripts-to-.patch | 24 - .../lsb/lsbinitscripts/functions.patch | 32 - .../lsb/lsbinitscripts_9.72.bb | 30 - .../recipes-extended/lsb/lsbtest/LSB_Test.sh | 525 - .../lsb/lsbtest/packages_list | 49 - .../meta/recipes-extended/lsb/lsbtest/session | 185 - poky/meta/recipes-extended/lsb/lsbtest_1.0.bb | 50 - .../files/lsof-remove-host-information.patch | 76 - poky/meta/recipes-extended/lsof/lsof_4.89.bb | 64 - ...01-add-_GNU_SOURCE-to-pec_listener.c.patch | 39 - ...rol-whether-numa-support-should-be-c.patch | 44 - ...03-Add-knob-to-control-tirpc-support.patch | 46 - ...option-to-select-libc-implementation.patch | 148 - ...rs-Link-with-libfts-explicitly-on-mu.patch | 46 - ...E-undeclared-when-building-with-musl.patch | 31 - ...BC_PREREQ-is-defined-before-using-it.patch | 283 - ...-of-struct-msgbuf-error-building-wit.patch | 36 - ...eplace-__BEGIN_DECLS-and-__END_DECLS.patch | 75 - ...11-Rename-sigset-variable-to-sigset1.patch | 139 - .../0018-guard-mallocopt-with-__GLIBC__.patch | 33 - ...e-getdents-getdents64-only-for-glibc.patch | 50 - ...SOURCE-for-MREMAP_MAYMOVE-definition.patch | 73 - ...int-instead-of-enum-__ptrace_request.patch | 50 - ...on-rt_sigprocmark-Define-_GNU_SOURCE.patch | 70 - .../0025-mc_gethost-include-sys-types.h.patch | 30 - .../ltp/0026-crash01-Define-_GNU_SOURCE.patch | 31 - ...01-Use-_SC_2_C_VERSION-conditionally.patch | 32 - ...se-sighandler_t-instead-of-__sighand.patch | 48 - ...MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch | 35 - ...er-GNU-specific-code-under-__USE_GNU.patch | 41 - .../ltp/ltp/0034-periodic_output.patch | 55 - .../ltp/0035-fix-test_proc_kill-hang.patch | 32 - ...k-nfsv4-acl-acl1.c-Security-fix-on-s.patch | 41 - .../0037-ltp-fix-format-security-error.patch | 36 - .../ltp/0038-generate-reproducible-gzip.patch | 20 - .../meta/recipes-extended/ltp/ltp_20170929.bb | 123 - poky/meta/recipes-extended/lzip/lzip_1.19.bb | 41 - .../man-pages/man-pages_4.11.bb | 31 - .../man/man/configure_sed.patch | 32 - .../man/man/man-1.5g-nonrootbuild.patch | 16 - .../man/man/man-1.5h1-gencat.patch | 14 - .../man/man/man-1.5h1-make.patch | 17 - .../man/man/man-1.5i2-initial.patch | 19 - .../man/man/man-1.5i2-newline.patch | 15 - .../man/man/man-1.5i2-overflow.patch | 16 - .../man/man/man-1.5j-i18n.patch | 16 - .../man/man/man-1.5j-nocache.patch | 16 - .../man/man/man-1.5j-utf8.patch | 61 - .../man/man/man-1.5k-confpath.patch | 15 - .../man/man/man-1.5k-nonascii.patch | 18 - .../man/man/man-1.5k-sofix.patch | 24 - .../man/man/man-1.5m2-bug11621.patch | 15 - .../man/man/man-1.5m2-buildroot.patch | 52 - .../man/man-1.5m2-no-color-for-printing.patch | 15 - .../man/man/man-1.5m2-sigpipe.patch | 30 - .../man/man/man-1.6e-i18n_whatis.patch | 145 - .../man/man/man-1.6e-mandirs.patch | 31 - .../man/man/man-1.6e-new_sections.patch | 15 - .../man/man/man-1.6e-ro_usr.patch | 33 - .../man/man/man-1.6e-security.patch | 62 - .../man-1.6e-use_i18n_vars_in_a_std_way.patch | 160 - .../man/man/man-1.6e-whatis2.patch | 59 - .../man/man/man-1.6g-compile-warnings.patch | 105 - .../man/man/man-1.6g-configure.patch | 68 - .../man/man/man-1.6g-parallel.patch | 30 - .../man/man/man-1.6g-whatis3.patch | 20 - poky/meta/recipes-extended/man/man/man.1.gz | Bin 12323 -> 0 bytes poky/meta/recipes-extended/man/man/man.7.gz | Bin 6192 -> 0 bytes poky/meta/recipes-extended/man/man/man.conf | 141 - .../recipes-extended/man/man/manpath.5.gz | Bin 2133 -> 0 bytes poky/meta/recipes-extended/man/man_1.6g.bb | 86 - ...-mc-replace-perl-w-with-use-warnings.patch | 129 - ...tty_init-unify-curses-initialization.patch | 66 - poky/meta/recipes-extended/mc/mc_4.8.19.bb | 50 - ...-corosync-and-dlm-header-files-check.patch | 44 - ...for-implicit-fallthrough-warning-sup.patch | 31 - ...smacros.h-for-major-minor-defintions.patch | 48 - ...-Wimplicit-fallthrough-0-in-Makefile.patch | 37 - ...h-Undefine-dprintf-before-redefining.patch | 43 - ...y-enough-length-when-write-to-buffer.patch | 75 - ...-with-strncpy-at-some-places-to-avoi.patch | 59 - ...-type-conversion-to-avoid-truncation.patch | 33 - ...omment-to-indicate-valid-fallthrough.patch | 128 - .../mdadm/files/gcc-4.9.patch | 22 - .../files/mdadm-3.3.2_x32_abi_time_t.patch | 25 - .../files/mdadm-fix-ptest-build-errors.patch | 45 - .../recipes-extended/mdadm/files/run-ptest | 10 - poky/meta/recipes-extended/mdadm/mdadm_4.0.bb | 78 - .../mingetty/mingetty_1.08.bb | 28 - ...Fix-build-issus-surfaced-due-to-musl.patch | 47 - ...ix-minicom-h-v-return-value-is-not-0.patch | 35 - .../minicom/allow.to.disable.lockdev.patch | 21 - .../recipes-extended/minicom/minicom_2.7.1.bb | 29 - .../mktemp/files/disable-strip.patch | 15 - .../mktemp/files/fix-parallel-make.patch | 24 - .../recipes-extended/mktemp/mktemp_1.7.bb | 36 - .../recipes-extended/msmtp/msmtp_1.6.6.bb | 30 - ...inet6.c-INET6_rresolve-various-fixes.patch | 87 - ...ce-0-del-IP-will-remove-the-aliased-.patch | 32 - .../net-tools/net-tools/musl-fixes.patch | 100 - .../net-tools/net-tools-1.60-sctp1.patch | 638 - .../net-tools-1.60-sctp2-quiet.patch | 28 - .../net-tools-1.60-sctp3-addrs.patch | 363 - .../net-tools/net-tools/net-tools-config.h | 75 - .../net-tools/net-tools/net-tools-config.make | 36 - ...et-tools-fix-building-with-linux-4.8.patch | 52 - .../net-tools/net-tools_1.60-26.bb | 122 - .../0001-detect-gold-as-GNU-linker-too.patch | 31 - ...tinfo-library-to-the-linking-librari.patch | 26 - .../newt/files/cross_ar.patch | 58 - .../newt/files/fix_SHAREDDIR.patch | 37 - .../newt/files/pie-flags.patch | 36 - .../newt/libnewt-python_0.52.20.bb | 28 - .../recipes-extended/newt/libnewt_0.52.20.bb | 54 - .../packagegroup-core-full-cmdline.bb | 158 - .../packagegroups/packagegroup-core-lsb.bb | 240 - ...t-for-defining-missing-funcitonality.patch | 68 - poky/meta/recipes-extended/pam/libpam/99_pam | 1 - .../pam/libpam/crypt_configure.patch | 40 - .../pam/libpam/fixsepbuild.patch | 24 - .../pam/libpam/include_paths_header.patch | 59 - ...libpam-xtests-remove-bash-dependency.patch | 226 - .../pam/libpam/libpam-xtests.patch | 35 - ...security-abstract-securetty-handling.patch | 200 - .../pam/libpam/pam-unix-nullok-secure.patch | 195 - .../pam/libpam/pam.d/common-account | 25 - .../pam/libpam/pam.d/common-auth | 18 - .../pam/libpam/pam.d/common-password | 26 - .../pam/libpam/pam.d/common-session | 19 - .../pam.d/common-session-noninteractive | 19 - .../recipes-extended/pam/libpam/pam.d/other | 24 - .../meta/recipes-extended/pam/libpam_1.3.0.bb | 167 - ...1-Include-fcntl.h-in-platform_defs.h.patch | 29 - ...er-scripts-used-only-in-tests-to-Pyt.patch | 44 - ...charset_alias-when-building-for-musl.patch | 33 - ...ad-only-when-probing-devices-on-linu.patch | 224 - ...ize-link-against-libuuid-explicitly-.patch | 34 - .../recipes-extended/parted/files/Makefile | 285 - .../files/fix-compile-failure-while-dis.patch | 57 - .../parted/files/fix-doc-mandir.patch | 20 - .../parted/files/no_check.patch | 20 - .../recipes-extended/parted/files/run-ptest | 3 - .../parted/files/syscalls.patch | 55 - .../parted/parted/parted-3.2-sysmacros.patch | 32 - .../recipes-extended/parted/parted_3.2.bb | 50 - .../0001-Add-a-comment-for-fallthrough.patch | 38 - .../pax/pax/0001-Fix-build-with-musl.patch | 1287 - ...macros.h-for-major-minor-definitions.patch | 65 - .../0001-use-strtoll-instead-of-strtoq.patch | 33 - .../pax/fix_for_compile_with_gcc-4.6.0.patch | 25 - .../pax/pax/pax-3.4_fix_for_x32.patch | 185 - poky/meta/recipes-extended/pax/pax_3.4.bb | 31 - .../recipes-extended/pbzip2/pbzip2_1.1.13.bb | 28 - .../perl/libconvert-asn1-perl_0.27.bb | 17 - .../perl/libtimedate-perl_2.30.bb | 20 - .../libxml-namespacesupport-perl_1.12.9.bb | 35 - .../perl/libxml-sax-base-perl_1.09.bb | 24 - .../perl/libxml-sax-perl_0.99.bb | 28 - poky/meta/recipes-extended/pigz/pigz.inc | 39 - poky/meta/recipes-extended/pigz/pigz_2.3.4.bb | 11 - ...ure-Detect-headers-before-using-them.patch | 51 - ...macro-bswap_64-instead-of-__bswap_64.patch | 47 - ...8068ae19d95260d3058f41dd6cf718101cd6.patch | 68 - poky/meta/recipes-extended/pixz/pixz_1.0.6.bb | 25 - .../procps/procps/sysctl.conf | 64 - .../recipes-extended/procps/procps_3.3.12.bb | 67 - ...ypo-in-fuser-makes-M-on-all-the-time.patch | 46 - .../0002-Include-limits.h-for-PATH_MAX.patch | 29 - poky/meta/recipes-extended/psmisc/psmisc.inc | 48 - ...se-UINTPTR_MAX-instead-of-__WORDSIZE.patch | 51 - .../recipes-extended/psmisc/psmisc_22.21.bb | 12 - .../recipes-extended/quota/quota/fcntl.patch | 85 - .../quota/quota/remove_non_posix_types.patch | 198 - .../quota/replace_getrpcbynumber_r.patch | 32 - .../meta/recipes-extended/quota/quota_4.04.bb | 38 - ...-svc_getargs-calls-with-svc_freeargs.patch | 221 - .../recipes-extended/rpcbind/rpcbind/init.d | 87 - .../rpcbind/rpcbind/rpcbind.conf | 3 - .../rpcbind/rpcbind/rpcbind.service | 12 - .../rpcbind/rpcbind/rpcbind.socket | 8 - .../recipes-extended/rpcbind/rpcbind_0.2.4.bb | 63 - ...-configure-failed-while-build-dir-ha.patch | 109 - .../screen/0001-fix-for-multijob-build.patch | 58 - .../0002-comm.h-now-depends-on-term.h.patch | 33 - ...void-mis-identifying-systems-as-SVR4.patch | 57 - ...-compile-alternatives-for-AC_TRY_RUN.patch | 137 - ...ove-redundant-compiler-sanity-checks.patch | 65 - ...e-system-checks-when-cross-compiling.patch | 135 - .../recipes-extended/screen/screen/screen.pam | 2 - .../recipes-extended/screen/screen_4.6.1.bb | 52 - ...charset_alias-when-building-for-musl.patch | 33 - .../recipes-extended/sed/sed-4.2.2/run-ptest | 3 - .../sed/sed-4.2.2/sed-add-ptest.patch | 66 - poky/meta/recipes-extended/sed/sed_4.2.2.bb | 47 - ...01-Disable-use-of-syslog-for-sysroot.patch | 124 - ...-read-login.defs-before-doing-chroot.patch | 46 - .../shadow/files/0001-shadow-CVE-2017-12424 | 46 - ...add-copy-extended-attributes-of-home.patch | 47 - ...te-parent-directories-when-necessary.patch | 115 - ...w-for-setting-password-in-clear-text.patch | 201 - ...id_t_and_gid_t_using_AC_CHECK_SIZEOF.patch | 41 - ...nexpected-open-failure-in-chroot-env.patch | 46 - ...llation-failure-with-subids-disabled.patch | 28 - .../shadow/files/login.defs_shadow-sysroot | 386 - .../shadow/files/login_defs_pam.sed | 32 - .../recipes-extended/shadow/files/pam.d/chfn | 14 - .../shadow/files/pam.d/chpasswd | 4 - .../recipes-extended/shadow/files/pam.d/chsh | 19 - .../recipes-extended/shadow/files/pam.d/login | 81 - .../shadow/files/pam.d/newusers | 4 - .../shadow/files/pam.d/passwd | 5 - .../recipes-extended/shadow/files/pam.d/su | 57 - .../recipes-extended/shadow/files/securetty | 238 - .../shadow-4.1.3-dots-in-usernames.patch | 27 - .../files/shadow-relaxed-usernames.patch | 100 - .../shadow/files/shadow-update-pam-conf.patch | 91 - ...ilation-failure-with-subids-disabled.patch | 33 - .../shadow/shadow-securetty_4.2.1.bb | 38 - .../shadow/shadow-sysroot_4.2.1.bb | 32 - poky/meta/recipes-extended/shadow/shadow.inc | 202 - .../recipes-extended/shadow/shadow_4.2.1.bb | 10 - .../slang/slang/dont-link-to-host.patch | 16 - .../recipes-extended/slang/slang/no-x.patch | 18 - .../recipes-extended/slang/slang/run-ptest | 3 - .../slang/slang/terminfo_fixes.patch | 148 - ...output-in-the-format-result-testname.patch | 30 - .../recipes-extended/slang/slang_2.3.1a.bb | 81 - .../stat/stat-3.3/fix-error-return.patch | 16 - .../stat/stat-3.3/fix-security-format.patch | 68 - poky/meta/recipes-extended/stat/stat_3.3.bb | 35 - .../stress/files/texinfo.patch | 80 - .../recipes-extended/stress/stress_1.0.4.bb | 15 - .../meta/recipes-extended/sudo/files/sudo.pam | 6 - poky/meta/recipes-extended/sudo/sudo.inc | 46 - ...lude-sys-types.h-for-id_t-definition.patch | 34 - .../recipes-extended/sudo/sudo_1.8.21p2.bb | 36 - .../files/0001-Fix-build-with-musl.patch | 132 - ...t-causes-a-segmentation-fault-under-.patch | 28 - ...or-respecting-flags-from-environment.patch | 35 - .../sysklogd/files/klogd.service | 13 - .../sysklogd/files/no-strip-install.patch | 17 - .../sysklogd/files/no-vectorization.patch | 20 - .../recipes-extended/sysklogd/files/sysklogd | 151 - .../sysklogd/files/syslog.conf | 71 - .../sysklogd/files/syslogd.service | 14 - .../sysklogd/files/tmpfiles.sysklogd.conf | 1 - .../recipes-extended/sysklogd/sysklogd.inc | 72 - .../sysklogd/sysklogd_1.5.1.bb | 4 - .../meta/recipes-extended/sysstat/sysstat.inc | 65 - ...01-Include-needed-headers-explicitly.patch | 62 - .../sysstat/sysstat/99_sysstat | 1 - .../sysstat/sysstat/sysstat.service | 12 - .../sysstat/sysstat_11.6.1.bb | 8 - poky/meta/recipes-extended/tar/tar.inc | 52 - .../tar/tar/CVE-2016-6321.patch | 66 - .../tar/tar/musl_dirent.patch | 19 - .../tar/tar/remove-gets.patch | 29 - poky/meta/recipes-extended/tar/tar_1.29.bb | 19 - .../tcp-wrappers-7.6/00_man_quoting.diff | 77 - .../tcp-wrappers-7.6/01_man_portability.patch | 250 - .../05_wildcard_matching.patch | 105 - .../06_fix_gethostbyname.patch | 32 - .../tcp-wrappers-7.6/10_usagi-ipv6.patch | 1255 - .../tcp-wrappers-7.6/11_tcpd_blacklist.patch | 153 - .../tcp-wrappers-7.6/11_usagi_fix.patch | 47 - .../tcp-wrappers-7.6/12_makefile_config.patch | 83 - .../tcp-wrappers-7.6/13_shlib_weaksym.patch | 255 - .../tcp-wrappers-7.6/14_cidr_support.patch | 68 - .../tcp-wrappers-7.6/15_match_clarify.patch | 14 - .../tcp-wrappers-7.6/expand_remote_port.patch | 73 - .../tcp-wrappers-7.6/have_strerror.patch | 21 - .../tcp-wrappers-7.6/ldflags.patch | 45 - .../makefile-fix-parallel.patch | 54 - .../tcp-wrappers-7.6/man_fromhost.patch | 23 - .../tcp-wrappers-7.6/musl-decls.patch | 31 - .../rename_strings_variable.patch | 35 - .../tcp-wrappers-7.6/restore_sigalarm.patch | 39 - .../tcp-wrappers/tcp-wrappers-7.6/rfc931.diff | 41 - .../tcp-wrappers-7.6/safe_finger.8 | 34 - .../tcp-wrappers-7.6/safe_finger.patch | 31 - .../tcp-wrappers-7.6/sig_fix.patch | 36 - .../tcp-wrappers-7.6/siglongjmp.patch | 32 - .../tcp-wrappers-7.6/socklen_t.patch | 59 - .../tcp-wrappers-7.6/tcpdchk_libwrapped.patch | 41 - .../tcp-wrappers/tcp-wrappers-7.6/try-from.8 | 28 - .../tcp-wrappers/tcp-wrappers_7.6.bb | 132 - .../0001-Allow-compiling-out-of-source.patch | 39 - .../texi2html/texi2html_5.0.bb | 31 - .../texinfo-dummy-native.bb | 30 - .../texinfo-dummy/COPYING | 19 - .../texinfo-dummy/template.py | 122 - ...charset_alias-when-building-for-musl.patch | 30 - .../texinfo/disable-native-tools.patch | 43 - .../texinfo/dont-depend-on-help2man.patch | 65 - .../texinfo/texinfo/link-zip.patch | 16 - .../texinfo/texinfo/texinfo-4.12-zlib.patch | 256 - .../texinfo/texinfo/use_host_makedoc.patch | 17 - .../recipes-extended/texinfo/texinfo_6.5.bb | 90 - .../time/time-1.7/debian.patch | 1301 - poky/meta/recipes-extended/time/time.inc | 14 - poky/meta/recipes-extended/time/time_1.7.bb | 11 - .../files/0001-Fix-Makefile-quoting-bug.patch | 174 - .../0002-Port-zdump-to-C90-snprintf.patch | 115 - .../tzcode/tzcode-native_2017c.bb | 31 - .../recipes-extended/tzdata/tzdata_2017c.bb | 215 - ...unzip60-alt-iconv-utf8_CVE-2015-1315.patch | 403 - .../unzip/09-cve-2014-8139-crc-overflow.patch | 53 - .../10-cve-2014-8140-test-compr-eb.patch | 34 - .../unzip/11-cve-2014-8141-getzip64data.patch | 145 - ...-cve-2014-9913-unzip-buffer-overflow.patch | 33 - ...ve-2016-9844-zipinfo-buffer-overflow.patch | 32 - .../unzip/unzip/CVE-2015-7696.patch | 39 - .../unzip/unzip/CVE-2015-7697.patch | 32 - .../unzip/unzip/avoid-strip.patch | 50 - .../unzip/unzip/cve-2014-9636.patch | 46 - .../unzip/unzip/define-ldflags.patch | 18 - .../unzip/unzip/fix-security-format.patch | 97 - poky/meta/recipes-extended/unzip/unzip_6.0.bb | 61 - .../watchdog/watchdog-config.bb | 20 - .../watchdog/watchdog-config/watchdog.conf | 42 - .../watchdog/watchdog-config/watchdog.default | 2 - ...param.h-for-EXEC_PAGESIZE-definition.patch | 32 - .../watchdog/watchdog/watchdog-conf.patch | 14 - .../watchdog/watchdog/watchdog-init.patch | 56 - .../watchdog/watchdog/wd_keepalive.init | 121 - .../watchdog/watchdog_5.15.bb | 65 - poky/meta/recipes-extended/wget/wget.inc | 28 - ...charset_alias-when-building-for-musl.patch | 30 - .../meta/recipes-extended/wget/wget_1.19.2.bb | 8 - .../which/which-2.21/automake.patch | 19 - .../meta/recipes-extended/which/which_2.21.bb | 35 - ...001-Don-t-build-the-in-script-manual.patch | 30 - .../0001-Reinstate-xdg-terminal.patch | 29 - .../xdg-utils/xdg-utils_1.1.2.bb | 37 - ...VE_SYS_RESOURCE_H-to-guard-sys-resou.patch | 100 - ...-from-inetd.conf-if-a-service-with-t.patch | 86 - ...s-fixes-from-the-previous-maintainer.patch | 79 - .../xinetd/xinetd/xinetd-CVE-2013-4342.patch | 34 - ...e-able-to-listen-on-IPv6-even-in-ine.patch | 112 - .../xinetd/xinetd/xinetd.conf | 11 - .../xinetd/xinetd/xinetd.default | 12 - .../xinetd/xinetd/xinetd.init | 64 - .../xinetd/xinetd/xinetd.service | 13 - .../recipes-extended/xinetd/xinetd_2.3.15.bb | 78 - poky/meta/recipes-extended/xz/xz_5.2.3.bb | 36 - .../zip/zip-3.0/fix-security-format.patch | 42 - poky/meta/recipes-extended/zip/zip_3.0.bb | 43 - .../recipes-gnome/epiphany/epiphany_3.24.3.bb | 25 - ...arks-Check-for-return-value-of-fread.patch | 32 - ...1-yelp.m4-drop-the-check-for-itstool.patch | 33 - ...cr-add-missing-dependencies-for-vapi.patch | 51 - poky/meta/recipes-gnome/gcr/gcr_3.20.0.bb | 26 - ...without-libtiff-not-having-an-effect.patch | 27 - ...nd-thumbnailer-cross-compile-failure.patch | 47 - .../extending-libinstall-dependencies.patch | 42 - .../gdk-pixbuf/gdk-pixbuf/fatal-loader.patch | 92 - .../gdk-pixbuf/hardcoded_libtool.patch | 33 - .../gdk-pixbuf/gdk-pixbuf/run-ptest | 3 - .../gdk-pixbuf/gdk-pixbuf_2.36.11.bb | 102 - ...ibseccomp-sycall-filtering-mechanism.patch | 38 - ...e.ac-Remove-gnome-common-macro-calls.patch | 33 - ...umbnail-don-t-convert-time_t-to-long.patch | 73 - .../gnome-desktop/gnome-desktop3_3.26.2.bb | 29 - .../0001-Don-t-use-AC_CANONICAL_HOST.patch | 30 - ...-installation-commands-as-shell-jobs.patch | 82 - .../gnome/adwaita-icon-theme_3.26.0.bb | 44 - ...ve_plus_from_invalid_characters_list.patch | 19 - .../gnome/gconf/unable-connect-dbus.patch | 95 - poky/meta/recipes-gnome/gnome/gconf_3.2.6.bb | 54 - ...Update-AM_GLIB_GNU_GETTEXT-to-match-.patch | 40 - .../gnome/gnome-themes-standard_3.22.3.bb | 46 - .../libart_lgpl-2.3.21-crosscompile.patch | 84 - .../recipes-gnome/gnome/libart-lgpl_2.3.21.bb | 22 - ...lete-upstream-attempt-at-cross-compi.patch | 50 - ...-host-gi-gi-cross-wrapper-gi-ldd-wra.patch | 203 - ...canner-add-use-binary-wrapper-option.patch | 51 - ...scanner-add-a-use-ldd-wrapper-option.patch | 47 - ...g-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch | 96 - .../gobject-introspection_1.52.1.bb | 188 - .../gsettings-desktop-schemas_3.24.1.bb | 13 - poky/meta/recipes-gnome/gtk+/gtk+.inc | 103 - .../recipes-gnome/gtk+/gtk+/doc-fixes.patch | 22 - .../gtk+/gtk+/hardcoded_libtool.patch | 35 - .../gtk+/gtk+/strict-prototypes.patch | 24 - .../recipes-gnome/gtk+/gtk+/toggle-font.diff | 102 - .../recipes-gnome/gtk+/gtk+/xsettings.patch | 20 - poky/meta/recipes-gnome/gtk+/gtk+3.inc | 130 - .../gtk+/gtk+3/0001-Hardcoded-libtool.patch | 47 - ...t-try-to-initialize-GL-without-libGL.patch | 60 - ...-Add-disable-opengl-configure-option.patch | 847 - ...figure.ac-Fix-wayland-protocols-path.patch | 36 - poky/meta/recipes-gnome/gtk+/gtk+3_3.22.24.bb | 19 - poky/meta/recipes-gnome/gtk+/gtk+_2.24.31.bb | 34 - .../gtk+/gtk-icon-utils-native_3.22.17.bb | 63 - ...endency-from-gtk-encode-symbolic-svg.patch | 102 - ...-if-perl-is-not-found-or-its-version.patch | 40 - ...t-error-out-if-xsltproc-is-not-found.patch | 31 - ...code-paths-to-perl-python-in-scripts.patch | 139 - .../gtk-doc/files/conditionaltests.patch | 34 - .../gtk-doc/files/pkg-config-native.patch | 34 - .../recipes-gnome/gtk-doc/gtk-doc_1.25.bb | 54 - .../hicolor-icon-theme_0.17.bb | 14 - .../json-glib/json-glib_1.2.8.bb | 20 - .../recipes-gnome/libgudev/libgudev_232.bb | 18 - .../libnotify/libnotify_0.7.7.bb | 21 - .../librsvg/librsvg/gtk-option.patch | 60 - .../recipes-gnome/librsvg/librsvg_2.40.19.bb | 44 - .../libsecret/libsecret_0.18.5.bb | 20 - .../recipes-graphics/builder/builder_0.1.bb | 31 - .../builder/files/builder_session.sh | 33 - .../meta/recipes-graphics/cairo/cairo-fpu.inc | 6 - poky/meta/recipes-graphics/cairo/cairo.inc | 48 - .../cairo/0001-cairo-Fix-CVE-2017-9814.patch | 45 - ...tmap_surface-bsc1036789-CVE-2017-7475.diff | 22 - .../recipes-graphics/cairo/cairo_1.14.10.bb | 46 - .../cantarell-fonts/cantarell-fonts_git.bb | 25 - .../recipes-graphics/clutter/clutter-1.0.inc | 46 - ...ypes-as-it-is-build-configuration-sp.patch | 143 - .../clutter-1.0/install-examples.patch | 18 - .../run-installed-tests-with-tap-output.patch | 32 - .../clutter/clutter-1.0/run-ptest | 3 - .../clutter/clutter-1.0_1.26.2.bb | 10 - .../clutter/clutter-gst-3.0.inc | 21 - ...binary-needed-for-core-image-clutter.patch | 33 - .../clutter/clutter-gst-3.0_3.0.24.bb | 7 - .../clutter/clutter-gtk-1.0.inc | 15 - .../clutter/clutter-gtk-1.0_1.8.4.bb | 6 - poky/meta/recipes-graphics/cogl/cogl-1.0.inc | 77 - ...n-incorrect-preprocessor-conditional.patch | 32 - ...lling.c-fix-may-be-used-uninitialize.patch | 35 - .../recipes-graphics/cogl/cogl-1.0_1.22.2.bb | 8 - ...low-explicit-enabling-of-cunit-tests.patch | 56 - .../drm/libdrm/fix_O_CLOEXEC_undeclared.patch | 24 - .../drm/libdrm/installtests.patch | 25 - .../recipes-graphics/drm/libdrm_2.4.88.bb | 51 - .../eglinfo/eglinfo-fb_1.0.0.bb | 6 - .../eglinfo/eglinfo-x11_1.0.0.bb | 13 - .../meta/recipes-graphics/eglinfo/eglinfo.inc | 33 - ...INCDIR-to-searchpath-for-egl-headers.patch | 34 - ...cxml.c-avoid-double-free-of-filename.patch | 28 - .../fontconfig/revert-static-pkgconfig.patch | 20 - .../fontconfig/fontconfig_2.12.6.bb | 57 - .../freetype/freetype/use-right-libtool.patch | 14 - .../freetype/freetype_2.8.1.bb | 49 - .../recipes-graphics/fstests/fstests_git.bb | 19 - .../recipes-graphics/glew/glew/no-strip.patch | 12 - poky/meta/recipes-graphics/glew/glew_2.1.0.bb | 44 - .../harfbuzz/harfbuzz_1.7.0.bb | 39 - .../images/core-image-clutter.bb | 13 - .../images/core-image-weston.bb | 12 - .../recipes-graphics/images/core-image-x11.bb | 9 - .../jpeg/libjpeg-turbo_1.5.2.bb | 51 - .../recipes-graphics/kmscube/kmscube_git.bb | 17 - ...Add-fallback-definition-for-EGL-CAST.patch | 33 - .../libepoxy/libepoxy_1.4.3.bb | 22 - .../libfakekey/libfakekey_git.bb | 23 - .../libmatchbox/libmatchbox_1.12.bb | 28 - ...-tag-CC-explictly-when-using-libtool.patch | 73 - .../libsdl-1.2.15/libsdl-1.2.15-xdata32.patch | 19 - .../libsdl/libsdl-1.2.15/pkgconfig.patch | 187 - .../recipes-graphics/libsdl/libsdl_1.2.15.bb | 72 - .../recipes-graphics/libsdl2/libsdl2_2.0.7.bb | 65 - .../libva/libva-utils_1.8.3.bb | 33 - .../recipes-graphics/libva/libva_1.8.3.bb | 51 - .../matchbox-session/matchbox-session | 24 - .../matchbox-session/matchbox-session_0.1.bb | 25 - .../matchbox-wm/matchbox-wm/kbdconfig | 42 - .../matchbox-wm/matchbox-wm_1.2.2.bb | 39 - .../menu-cache/menu-cache_1.0.2.bb | 18 - ...am-explictly-add-lib-expat-to-intel-.patch | 45 - ...0001-Use-wayland-scanner-in-the-path.patch | 37 - ...-configure.ac-Always-check-for-expat.patch | 51 - ...-winsys-svga-drm-Include-sys-types.h.patch | 34 - .../mesa/files/0002-hardware-gloat.patch | 51 - .../mesa/files/disable-asm-on-non-gcc.patch | 29 - .../mesa/files/llvm-config-version.patch | 32 - .../replace_glibc_check_with_linux.patch | 26 - .../mesa/files/vulkan-mkdir.patch | 37 - .../recipes-graphics/mesa/libglu_9.0.0.bb | 30 - ...01-mesa-demos-Add-missing-data-files.patch | 624 - ...to-disable-demos-which-require-GLEW-.patch | 377 - ...-DEMOS_DATA_DIR-to-locate-data-files.patch | 234 - .../0007-Install-few-more-test-programs.patch | 45 - ...w-missing-.glsl-.vert-.frag-files-to.patch | 101 - ...perf-Install-.glsl-.vert-.frag-files.patch | 73 - ...G-demos-with-single-frame-need-eglSw.patch | 44 - .../0013-only-build-GLX-demos-if-needed.patch | 62 - .../recipes-graphics/mesa/mesa-demos_8.3.0.bb | 59 - .../recipes-graphics/mesa/mesa-gl_17.2.5.bb | 9 - poky/meta/recipes-graphics/mesa/mesa.inc | 219 - .../meta/recipes-graphics/mesa/mesa_17.2.5.bb | 24 - .../mini-x-session/files/mini-x-session | 39 - .../mini-x-session/mini-x-session_0.1.bb | 27 - .../mx/mx-1.0/fix-test-includes.patch | 20 - poky/meta/recipes-graphics/mx/mx-1.0_1.4.7.bb | 16 - poky/meta/recipes-graphics/mx/mx.inc | 21 - .../packagegroup-core-clutter.bb | 22 - .../packagegroup-core-x11-base.bb | 17 - .../packagegroup-core-x11-xserver.bb | 20 - .../packagegroups/packagegroup-core-x11.bb | 36 - ...trospection-macros-from-acinclude.m4.patch | 121 - ...on-of-docs-pango.types-it-is-build-c.patch | 147 - .../recipes-graphics/pango/pango/run-ptest | 3 - .../recipes-graphics/pango/pango_1.40.12.bb | 52 - ...-bash-completions-in-the-right-place.patch | 35 - ...UPWARD-only-if-its-defined-in-fenv.h.patch | 54 - .../recipes-graphics/piglit/piglit_git.bb | 54 - .../pong-clock/pong-clock-no-flicker.c | 410 - .../pong-clock/pong-clock_1.0.bb | 22 - .../obsolete_automake_macros.patch | 15 - .../startup-notification_0.12.bb | 29 - .../30-liberation-aliases.conf | 17 - .../ttf-fonts/liberation-fonts_2.00.1.bb | 39 - .../ttf-fonts/ttf-bitstream-vera_1.10.bb | 38 - .../recipes-graphics/vulkan/assimp_4.0.1.bb | 22 - ...emos-with-questionably-licensed-data.patch | 91 - .../vulkan-demos/0001-Fix-build-on-x86.patch | 41 - ...ing-demos-support-out-of-tree-builds.patch | 85 - .../vulkan/vulkan-demos_git.bb | 41 - .../demos-Don-t-build-tri-or-cube.patch | 106 - .../vulkan/vulkan_1.0.61.1.bb | 36 - ...ads-Use-PTHREAD_MUTEX_RECURSIVE-by-d.patch | 54 - .../recipes-graphics/waffle/waffle_1.5.2.bb | 40 - .../wayland/libinput_1.8.4.bb | 29 - .../recipes-graphics/wayland/mtdev_1.1.5.bb | 18 - .../wayland/wayland-protocols_1.11.bb | 20 - .../wayland/wayland/fixpathinpcfiles.patch | 33 - .../wayland/wayland_1.14.0.bb | 42 - .../recipes-graphics/wayland/weston-init.bb | 31 - .../recipes-graphics/wayland/weston-init/init | 53 - .../wayland/weston-init/weston-start | 69 - .../wayland/weston-init/weston.service | 12 - ...figure.ac-Fix-wayland-protocols-path.patch | 29 - .../weston/0001-make-error-portable.patch | 70 - ...ovide-a-default-version-that-doesn-t.patch | 174 - .../wayland/weston/fix-missing-header.patch | 30 - ...ch-correctly-for-subsampled-textures.patch | 55 - .../wayland/weston/weston.desktop | 9 - .../wayland/weston/weston.png | Bin 2383 -> 0 bytes .../wayland/weston/xwayland.weston-start | 7 - .../recipes-graphics/wayland/weston_3.0.0.bb | 114 - .../x11-common/xserver-nodm-init/X11/Xsession | 38 - .../X11/Xsession.d/13xdgbasedirs.sh | 13 - .../X11/Xsession.d/89xdgautostart.sh | 7 - .../X11/Xsession.d/90XWindowManager.sh | 7 - .../x11-common/xserver-nodm-init/Xserver | 25 - .../xserver-nodm-init/gplv2-license.patch | 355 - .../x11-common/xserver-nodm-init/xserver-nodm | 67 - .../xserver-nodm-init/xserver-nodm.conf.in | 7 - .../xserver-nodm-init/xserver-nodm.service.in | 10 - .../x11-common/xserver-nodm-init_3.0.bb | 69 - .../xcursor-transparent-theme_git.bb | 20 - .../pointercal-xinput/pointercal.xinput | 1 - .../qemuall/pointercal.xinput | 2 - .../pointercal-xinput_0.0.bb | 20 - .../xinput-calibrator/30xinput_calibrate.sh | 7 - ...ibrator_pointercal.sh-to-be-run-as-n.patch | 66 - .../xinput-calibrator_git.bb | 37 - .../xorg-app/mkfontdir_1.0.7.bb | 22 - .../xorg-app/mkfontscale_1.1.2.bb | 18 - .../recipes-graphics/xorg-app/rgb_1.0.6.bb | 16 - .../xorg-app/x11perf_1.6.0.bb | 23 - .../recipes-graphics/xorg-app/xauth_1.0.10.bb | 15 - .../xorg-app/xdpyinfo/disable-xkb.patch | 22 - .../xorg-app/xdpyinfo_1.3.2.bb | 20 - .../xorg-app/xev/diet-x11.patch | 82 - .../recipes-graphics/xorg-app/xev_1.2.2.bb | 18 - .../recipes-graphics/xorg-app/xeyes_1.1.1.bb | 14 - .../recipes-graphics/xorg-app/xhost_1.0.7.bb | 20 - .../recipes-graphics/xorg-app/xinit_1.3.4.bb | 20 - .../recipes-graphics/xorg-app/xinput_1.6.2.bb | 12 - .../xorg-app/xkbcomp_1.4.0.bb | 19 - .../xorg-app/xmodmap_1.0.9.bb | 17 - .../xorg-app/xorg-app-common.inc | 17 - .../recipes-graphics/xorg-app/xprop_1.2.2.bb | 18 - .../recipes-graphics/xorg-app/xrandr_1.5.0.bb | 15 - .../xorg-app/xset/disable-xkb.patch | 26 - .../recipes-graphics/xorg-app/xset_1.2.3.bb | 19 - .../recipes-graphics/xorg-app/xvinfo_1.1.3.bb | 14 - .../xorg-app/xwininfo_1.1.3.bb | 15 - .../xorg-driver/xf86-input-evdev_2.10.5.bb | 21 - .../xorg-driver/xf86-input-keyboard_1.9.0.bb | 13 - .../xorg-driver/xf86-input-libinput_0.26.0.bb | 11 - .../xorg-driver/xf86-input-mouse_1.9.2.bb | 14 - .../xorg-driver/xf86-input-synaptics_1.9.0.bb | 16 - .../xorg-driver/xf86-input-vmmouse_13.1.0.bb | 26 - .../xorg-driver/xf86-video-cirrus_1.5.3.bb | 13 - .../xorg-driver/xf86-video-fbdev_0.4.4.bb | 9 - .../always_include_xorg_server.h.patch | 24 - .../xf86-video-intel/disable-x11-dri3.patch | 17 - .../xorg-driver/xf86-video-intel_git.bb | 44 - .../xorg-driver/xf86-video-omap_0.4.5.bb | 41 - ...from-from-crashing-when-pixelclock-o.patch | 37 - ...ge-CRTC-upper-limit-to-not-prune-lar.patch | 41 - ...al-size-when-configuring-framebuffer.patch | 32 - .../0003-force-plain-mode.patch | 31 - .../0004-blacklist-tv-out.patch | 33 - .../0005-Attempt-to-fix-VRFB.patch | 325 - ...omapfb-port-to-new-xserver-video-API.patch | 272 - .../0007-always_include_xorg_server.h.patch | 48 - .../xorg-driver/xf86-video-omapfb_git.bb | 37 - .../xorg-driver/xf86-video-vesa_2.3.4.bb | 21 - .../0002-add-option-for-vmwgfx.patch | 103 - .../xorg-driver/xf86-video-vmware_13.2.1.bb | 19 - .../xorg-driver/xorg-driver-common.inc | 40 - .../xorg-driver/xorg-driver-input.inc | 12 - .../xorg-driver/xorg-driver-video.inc | 8 - .../xorg-font/encodings/nocompiler.patch | 33 - .../xorg-font/encodings_1.0.4.bb | 22 - .../font-alias-1.0.3/nocompiler.patch | 32 - .../xorg-font/font-alias_1.0.3.bb | 24 - .../xorg-font/font-util_1.3.1.bb | 22 - .../xorg-font/xorg-font-common.inc | 43 - .../xorg-font/xorg-minimal-fonts.bb | 32 - .../misc/6x13-ISO8859-1.pcf.gz | Bin 4637 -> 0 bytes .../misc/6x13-ISO8859-10.pcf.gz | Bin 4551 -> 0 bytes .../misc/6x13-ISO8859-11.pcf.gz | Bin 4409 -> 0 bytes .../misc/6x13-ISO8859-13.pcf.gz | Bin 4689 -> 0 bytes .../misc/6x13-ISO8859-14.pcf.gz | Bin 4502 -> 0 bytes .../misc/6x13-ISO8859-15.pcf.gz | Bin 4614 -> 0 bytes .../misc/6x13-ISO8859-16.pcf.gz | Bin 4547 -> 0 bytes .../misc/6x13-ISO8859-2.pcf.gz | Bin 4519 -> 0 bytes .../misc/6x13-ISO8859-3.pcf.gz | Bin 4418 -> 0 bytes .../misc/6x13-ISO8859-4.pcf.gz | Bin 4572 -> 0 bytes .../misc/6x13-ISO8859-5.pcf.gz | Bin 4541 -> 0 bytes .../misc/6x13-ISO8859-7.pcf.gz | Bin 4550 -> 0 bytes .../misc/6x13-ISO8859-8.pcf.gz | Bin 4035 -> 0 bytes .../misc/6x13-ISO8859-9.pcf.gz | Bin 4645 -> 0 bytes .../misc/6x13-KOI8-R.pcf.gz | Bin 5057 -> 0 bytes .../xorg-minimal-fonts/misc/6x13.pcf.gz | Bin 76746 -> 0 bytes .../misc/6x13B-ISO8859-1.pcf.gz | Bin 4643 -> 0 bytes .../misc/6x13B-ISO8859-10.pcf.gz | Bin 4569 -> 0 bytes .../misc/6x13B-ISO8859-13.pcf.gz | Bin 4700 -> 0 bytes .../misc/6x13B-ISO8859-14.pcf.gz | Bin 4494 -> 0 bytes .../misc/6x13B-ISO8859-15.pcf.gz | Bin 4638 -> 0 bytes .../misc/6x13B-ISO8859-16.pcf.gz | Bin 4539 -> 0 bytes .../misc/6x13B-ISO8859-2.pcf.gz | Bin 4498 -> 0 bytes .../misc/6x13B-ISO8859-3.pcf.gz | Bin 4362 -> 0 bytes .../misc/6x13B-ISO8859-4.pcf.gz | Bin 4584 -> 0 bytes .../misc/6x13B-ISO8859-5.pcf.gz | Bin 4500 -> 0 bytes .../misc/6x13B-ISO8859-7.pcf.gz | Bin 4529 -> 0 bytes .../misc/6x13B-ISO8859-8.pcf.gz | Bin 4008 -> 0 bytes .../misc/6x13B-ISO8859-9.pcf.gz | Bin 4653 -> 0 bytes .../xorg-minimal-fonts/misc/6x13B.pcf.gz | Bin 23787 -> 0 bytes .../misc/6x13O-ISO8859-1.pcf.gz | Bin 4219 -> 0 bytes .../misc/6x13O-ISO8859-10.pcf.gz | Bin 4152 -> 0 bytes .../misc/6x13O-ISO8859-13.pcf.gz | Bin 4275 -> 0 bytes .../misc/6x13O-ISO8859-14.pcf.gz | Bin 4083 -> 0 bytes .../misc/6x13O-ISO8859-15.pcf.gz | Bin 4209 -> 0 bytes .../misc/6x13O-ISO8859-16.pcf.gz | Bin 4111 -> 0 bytes .../misc/6x13O-ISO8859-2.pcf.gz | Bin 4115 -> 0 bytes .../misc/6x13O-ISO8859-3.pcf.gz | Bin 3959 -> 0 bytes .../misc/6x13O-ISO8859-4.pcf.gz | Bin 4154 -> 0 bytes .../misc/6x13O-ISO8859-5.pcf.gz | Bin 4075 -> 0 bytes .../misc/6x13O-ISO8859-7.pcf.gz | Bin 4124 -> 0 bytes .../misc/6x13O-ISO8859-9.pcf.gz | Bin 4206 -> 0 bytes .../xorg-minimal-fonts/misc/6x13O.pcf.gz | Bin 15495 -> 0 bytes .../xorg-minimal-fonts/misc/cursor.pcf.gz | Bin 5225 -> 0 bytes .../xorg-minimal-fonts/misc/fonts.dir | 410 - .../recipes-graphics/xorg-lib/libdmx_1.1.3.bb | 20 - .../xorg-lib/libfontenc_1.1.3.bb | 17 - .../recipes-graphics/xorg-lib/libice_1.0.9.bb | 28 - .../0004-Don-t-include-sys-io.h-on-arm.patch | 28 - .../xorg-lib/libpciaccess_0.14.bb | 18 - .../xorg-lib/libpthread-stubs_0.4.bb | 25 - .../recipes-graphics/xorg-lib/libsm_1.2.2.bb | 31 - .../xorg-lib/libx11-diet_1.6.5.bb | 19 - .../meta/recipes-graphics/xorg-lib/libx11.inc | 41 - .../libx11/Fix-hanging-issue-in-_XReply.patch | 60 - .../xorg-lib/libx11/X18NCMSstubs.diff | 520 - .../xorg-lib/libx11/disable_tests.patch | 22 - .../xorg-lib/libx11/fix-disable-xlocale.diff | 17 - .../libx11/fix-utf8-wrong-define.patch | 19 - .../recipes-graphics/xorg-lib/libx11_1.6.5.bb | 14 - .../recipes-graphics/xorg-lib/libxau_1.0.8.bb | 24 - .../xorg-lib/libxcalibrate/fix-xcb.patch | 29 - .../xorg-lib/libxcalibrate_git.bb | 23 - ...x-inconsistent-use-of-tabs-vs.-space.patch | 62 - .../xorg-lib/libxcb/disable-check.patch | 25 - .../gcc-mips-pr68302-mips-workaround.patch | 22 - .../xorg-lib/libxcb/xcbincludedir.patch | 28 - .../recipes-graphics/xorg-lib/libxcb_1.12.bb | 39 - .../libxcomposite/change-include-order.patch | 18 - .../xorg-lib/libxcomposite_0.4.4.bb | 28 - .../xorg-lib/libxcursor_1.1.14.bb | 22 - .../xorg-lib/libxdamage_1.1.4.bb | 28 - .../xorg-lib/libxdmcp_1.1.2.bb | 29 - .../xorg-lib/libxext_1.3.3.bb | 26 - .../xorg-lib/libxfixes_5.0.3.bb | 23 - .../xorg-lib/libxfont2_2.0.2.bb | 22 - .../xorg-lib/libxfont_1.5.3.bb | 25 - .../recipes-graphics/xorg-lib/libxft_2.3.2.bb | 33 - .../recipes-graphics/xorg-lib/libxi_1.7.9.bb | 22 - .../xorg-lib/libxinerama_1.1.3.bb | 22 - .../xorg-lib/libxkbcommon_0.7.2.bb | 22 - .../xorg-lib/libxkbfile_1.0.9.bb | 18 - .../recipes-graphics/xorg-lib/libxmu_1.1.2.bb | 35 - .../xorg-lib/libxpm_3.5.12.bb | 27 - .../xorg-lib/libxrandr_1.5.1.bb | 23 - .../xorg-lib/libxrender_0.9.10.bb | 24 - .../xorg-lib/libxres_1.2.0.bb | 20 - .../xorg-lib/libxscrnsaver_1.2.2.bb | 23 - .../xorg-lib/libxshmfence_1.2.bb | 17 - ...n-t-link-makestrs-with-target-cflags.patch | 33 - .../xorg-lib/libxt/libxt_fix_for_x32.patch | 19 - .../recipes-graphics/xorg-lib/libxt_1.1.5.bb | 35 - .../xorg-lib/libxtst_1.2.3.bb | 21 - .../recipes-graphics/xorg-lib/libxv_1.0.11.bb | 19 - .../xorg-lib/libxvmc_1.0.10.bb | 19 - .../xorg-lib/libxxf86dga_1.1.4.bb | 19 - .../xorg-lib/libxxf86misc_1.0.3.bb | 20 - .../xorg-lib/libxxf86vm_1.1.4.bb | 20 - ...-workarounds-in-cpu-features-detecti.patch | 144 - ...-for-FE_INVALID-definition-before-us.patch | 33 - .../xorg-lib/pixman/asm_include.patch | 29 - .../xorg-lib/pixman_0.34.0.bb | 41 - .../xorg-lib/xcb-util-image/clang.patch | 24 - .../xorg-lib/xcb-util-image_0.4.0.bb | 13 - .../xorg-lib/xcb-util-keysyms_0.4.0.bb | 9 - .../xorg-lib/xcb-util-renderutil_0.3.9.bb | 10 - .../xorg-lib/xcb-util-wm_0.4.1.bb | 11 - .../recipes-graphics/xorg-lib/xcb-util.inc | 23 - .../xorg-lib/xcb-util_0.4.0.bb | 8 - .../xorg-lib/xkeyboard-config_2.22.bb | 32 - .../xorg-lib/xorg-lib-common.inc | 27 - .../recipes-graphics/xorg-lib/xtrans_1.3.5.bb | 24 - .../xorg-proto/bigreqsproto_1.1.2.bb | 16 - .../xorg-proto/calibrateproto/fix.patch | 42 - .../xorg-proto/calibrateproto_git.bb | 21 - .../xorg-proto/compositeproto_0.4.2.bb | 21 - .../xorg-proto/damageproto_1.2.1.bb | 20 - .../xorg-proto/dmxproto_2.3.1.bb | 18 - .../xorg-proto/dri2proto_2.8.bb | 15 - .../xorg-proto/dri3proto_1.0.bb | 14 - .../xorg-proto/fixesproto_5.0.bb | 22 - .../xorg-proto/fontsproto_2.1.3.bb | 18 - .../xorg-proto/glproto_1.4.17.bb | 18 - .../xorg-proto/inputproto_2.3.2.bb | 22 - .../xorg-proto/kbproto_1.0.7.bb | 18 - .../xorg-proto/presentproto_git.bb | 22 - .../xorg-proto/randrproto_1.5.0.bb | 19 - .../xorg-proto/recordproto_1.14.2.bb | 18 - .../xorg-proto/renderproto_0.11.1.bb | 21 - .../xorg-proto/resourceproto_1.2.0.bb | 19 - .../xorg-proto/scrnsaverproto_1.2.2.bb | 19 - .../xorg-proto/videoproto_2.3.3.bb | 14 - .../0001-Make-whitespace-use-consistent.patch | 215 - ...-is-a-function-and-needs-parentheses.patch | 75 - .../xcb-proto/no-python-native.patch | 27 - .../xorg-proto/xcb-proto_1.12.bb | 40 - .../xorg-proto/xcmiscproto_1.2.2.bb | 17 - .../xorg-proto/xextproto_7.3.0.bb | 24 - .../xorg-proto/xf86dgaproto_2.1.bb | 18 - .../xorg-proto/xf86driproto_2.1.1.bb | 17 - .../xorg-proto/xf86miscproto_0.9.3.bb | 17 - .../xorg-proto/xf86vidmodeproto_2.3.1.bb | 18 - .../xorg-proto/xineramaproto_1.2.1.bb | 19 - .../xorg-proto/xorg-proto-common.inc | 26 - .../xproto/xproto_fix_for_x32.patch | 22 - .../xorg-proto/xproto_7.0.31.bb | 19 - .../xorg-util/gccmakedep_1.0.3.bb | 21 - .../xorg-util/makedepend_1.0.5.bb | 21 - .../xorg-util/util-macros_1.19.1.bb | 19 - .../xorg-util/xorg-util-common.inc | 13 - .../xserver-xf86-config/qemuarm/xorg.conf | 38 - .../xserver-xf86-config/qemumips/xorg.conf | 39 - .../xserver-xf86-config/qemumips64/xorg.conf | 38 - .../xserver-xf86-config/qemuppc/xorg.conf | 38 - .../xserver-xf86-config/qemush4/xorg.conf | 38 - .../xserver-xf86-config/qemux86-64/xorg.conf | 33 - .../xserver-xf86-config/qemux86/xorg.conf | 33 - .../xserver-xf86-config/xorg.conf | 0 .../xorg-xserver/xserver-xf86-config_0.1.bb | 23 - .../xorg-xserver/xserver-xorg.inc | 180 - ...ure.ac-Fix-check-for-CLOCK_MONOTONIC.patch | 61 - ...-wayland-scanner-and-protocols-locat.patch | 38 - ...003-Remove-check-for-useSIGIO-option.patch | 47 - ...odesetting-Fix-16-bit-depth-bpp-mode.patch | 46 - .../xserver-xorg/macro_tweak.patch | 25 - .../xserver-xorg/musl-arm-inb-outb.patch | 18 - .../xorg-xserver/xserver-xorg_1.19.5.bb | 32 - .../recipes-graphics/xrestop/xrestop_0.4.bb | 24 - .../xvideo-tests/xvideo-tests_git.bb | 18 - ...ude-sys-types.h-for-dev_t-definition.patch | 30 - .../blktrace/blktrace/ldflags.patch | 106 - .../recipes-kernel/blktrace/blktrace_git.bb | 42 - .../cryptodev/cryptodev-linux_1.9.bb | 13 - .../cryptodev/cryptodev-module_1.9.bb | 17 - .../cryptodev/cryptodev-tests_1.9.bb | 21 - .../recipes-kernel/cryptodev/cryptodev.inc | 13 - ...and-install-rules-for-cryptodev-test.patch | 66 - ...ng-header-file-provided-by-another-p.patch | 24 - poky/meta/recipes-kernel/dtc/dtc.inc | 25 - ...se-proper-format-modifier-for-size_t.patch | 43 - .../recipes-kernel/dtc/dtc/make_install.patch | 17 - poky/meta/recipes-kernel/dtc/dtc_1.4.5.bb | 10 - .../kern-tools/kern-tools-native_git.bb | 24 - .../meta/recipes-kernel/kexec/kexec-tools.inc | 38 - .../0001-Disable-PIE-during-link.patch | 31 - ...-purgatory-Pass-r-directly-to-linker.patch | 32 - ...powerpc-change-the-memory-size-limit.patch | 35 - ...Fix-add_buffer_phys_virt-align-issue.patch | 52 - .../recipes-kernel/kexec/kexec-tools/kdump | 145 - .../kexec/kexec-tools/kdump.conf | 14 - .../kexec/kexec-tools/kdump.service | 12 - .../kexec/kexec-tools/kexec-aarch64.patch | 801 - .../kexec/kexec-tools/kexec-x32.patch | 88 - .../kexec/kexec-tools_2.0.15.bb | 52 - .../kmod/depmodwrapper-cross_1.0.bb | 48 - .../recipes-kernel/kmod/kmod-native_git.bb | 18 - poky/meta/recipes-kernel/kmod/kmod.inc | 44 - ...g-bswap_-instead-of-htobe-and-be-toh.patch | 39 - .../kmod/kmod/avoid_parallel_tests.patch | 29 - .../kmod/kmod/depmod-search.conf | 6 - .../kmod/kmod/fix-O_CLOEXEC.patch | 38 - .../meta/recipes-kernel/kmod/kmod/ptest.patch | 25 - poky/meta/recipes-kernel/kmod/kmod/run-ptest | 5 - poky/meta/recipes-kernel/kmod/kmod_git.bb | 62 - ...tion-signatures-to-fix-prototype-mis.patch | 64 - .../latencytop-0.5/latencytop-fsync.patch | 49 - .../latencytop-0.5/latencytop-makefile.patch | 43 - .../latencytop/latencytop_0.5.bb | 32 - .../linux-firmware/linux-firmware_git.bb | 780 - .../linux-libc-headers/linux-libc-headers.inc | 91 - ...h-fix-some-issues-arising-from-in6.h.patch | 90 - ...sl-_does_-define-IFF_LOWER_UP-DORMAN.patch | 46 - ...revent-redefinition-of-struct-ethhdr.patch | 56 - ...e-inclusion-of-sysinfo.h-in-kernel.h.patch | 29 - .../linux-libc-headers_4.12.bb | 11 - .../recipes-kernel/linux/kernel-devsrc.bb | 79 - poky/meta/recipes-kernel/linux/linux-dtb.inc | 3 - poky/meta/recipes-kernel/linux/linux-dummy.bb | 60 - .../linux/linux-dummy/COPYING.GPL | 339 - .../recipes-kernel/linux/linux-yocto-dev.bb | 47 - .../linux/linux-yocto-rt_4.10.bb | 38 - .../linux/linux-yocto-rt_4.12.bb | 38 - .../linux/linux-yocto-rt_4.4.bb | 36 - .../linux/linux-yocto-rt_4.9.bb | 38 - .../linux/linux-yocto-tiny_4.10.bb | 25 - .../linux/linux-yocto-tiny_4.12.bb | 25 - .../linux/linux-yocto-tiny_4.4.bb | 23 - .../linux/linux-yocto-tiny_4.9.bb | 25 - .../meta/recipes-kernel/linux/linux-yocto.inc | 69 - .../recipes-kernel/linux/linux-yocto_4.10.bb | 44 - .../recipes-kernel/linux/linux-yocto_4.12.bb | 44 - .../recipes-kernel/linux/linux-yocto_4.4.bb | 42 - .../recipes-kernel/linux/linux-yocto_4.9.bb | 44 - .../recipes-kernel/lttng/babeltrace_1.5.3.bb | 19 - .../BUILD_RUNTIME_BUG_ON-vs-gcc7.patch | 43 - ...fail-if-CONFIG_TRACEPOINTS-is-not-en.patch | 49 - .../lttng/lttng-modules_2.9.5.bb | 34 - .../lttng/lttng-tools/run-ptest | 6 - .../lttng/lttng-tools/x32.patch | 16 - .../recipes-kernel/lttng/lttng-tools_2.9.5.bb | 122 - .../lttng-ust-doc-examples-disable.patch | 18 - .../recipes-kernel/lttng/lttng-ust_2.9.1.bb | 37 - .../modutils-initscripts/files/PD.patch | 8 - .../modutils-initscripts/files/modutils.sh | 52 - .../modutils-initscripts.bb | 33 - poky/meta/recipes-kernel/perf/perf.bb | 233 - .../recipes-kernel/powertop/powertop_2.9.bb | 33 - .../files/0001-Avoid-building-docs.patch | 42 - ...0001-Disable-check-for-polkit-for-UI.patch | 32 - ...-Add-option-to-enable-disable-polkit.patch | 41 - .../files/define-NT_GNU_BUILD_ID.patch | 22 - .../recipes-kernel/sysprof/sysprof_3.26.1.bb | 34 - .../systemtap/systemtap-native_git.bb | 6 - .../systemtap/systemtap-uprobes_git.bb | 40 - ...gure-write-a-python-location-into-th.patch | 25 - ...ython-modules-to-correct-library-dir.patch | 36 - ...-remove-quotes-around-I-include-line.patch | 38 - ...-don-t-support-installing-a-non-root.patch | 62 - .../configure-allow-to-disable-libvirt.patch | 39 - .../systemtap/systemtap/monitor-option.patch | 40 - .../systemtap/systemtap/no-msgfmt-check.patch | 33 - .../systemtap/system_map_location.patch | 23 - .../systemtap/systemtap/x32_abi_time.patch | 34 - .../recipes-kernel/systemtap/systemtap_git.bb | 29 - .../systemtap/systemtap_git.inc | 28 - .../trace-cmd/kernelshark_git.bb | 33 - .../recipes-kernel/trace-cmd/trace-cmd.inc | 13 - ...-so-that-PATH_MAX-is-defined-an-issu.patch | 27 - .../blktrace-api-compatibility.patch | 29 - .../recipes-kernel/trace-cmd/trace-cmd_git.bb | 34 - .../meta/recipes-multimedia/alsa/alsa-fpu.inc | 4 - ...eck-if-wordexp-function-is-supported.patch | 51 - .../avoid-including-sys-poll.h-directly.patch | 183 - .../alsa/alsa-lib_1.1.4.1.bb | 43 - .../alsa/alsa-plugins_1.1.4.bb | 103 - ...-Make-output_tram_line-static-inline.patch | 31 - .../alsa/alsa-tools/autotools.patch | 32 - .../alsa-tools/gitcompile_hdajacksensetest | 13 - .../alsa/alsa-tools/makefile_no_gtk.patch | 29 - .../alsa/alsa-tools_1.1.3.bb | 41 - .../alsa/alsa-utils-scripts_1.1.4.bb | 25 - ...t-systemd-unit-restore-the-volume-wh.patch | 56 - .../alsa/alsa-utils_1.1.4.bb | 109 - .../ffmpeg/0001-build-fix-for-mips.patch | 44 - .../ffmpeg/ffmpeg/mips64_cpu_detection.patch | 32 - .../recipes-multimedia/ffmpeg/ffmpeg_3.3.4.bb | 153 - .../recipes-multimedia/flac/flac_1.3.2.bb | 44 - ...-prefix-pkgconfig-paths-with-PKG_CON.patch | 42 - .../gstreamer/gst-player/gst-player.desktop | 10 - .../gstreamer/gst-player_git.bb | 34 - .../gstreamer/gst-plugins-package.inc | 56 - .../gstreamer/gstreamer1.0-libav.inc | 51 - ...ble-yasm-for-libav-when-disable-yasm.patch | 33 - ...-configure-check-for-armv7ve-variant.patch | 35 - ...ix-build-by-Including-libavcodec-hev.patch | 33 - .../mips64_cpu_detection.patch | 32 - ...to-build-gst-libav-for-i586-with-gcc.patch | 26 - .../gstreamer/gstreamer1.0-libav_1.12.3.bb | 21 - .../gstreamer/gstreamer1.0-meta-base.bb | 68 - .../gstreamer/gstreamer1.0-omx.inc | 49 - .../gstreamer/gstreamer1.0-omx_1.12.3.bb | 11 - .../gstreamer/gstreamer1.0-plugins-bad.inc | 147 - ...t-hardcode-libtool-name-when-running.patch | 74 - ...FIG_SYSROOT_DIR-to-pkg-config-output.patch | 38 - ....in-don-t-append-GL_CFLAGS-to-CFLAGS.patch | 29 - ...-ifdef-for-platform-specific-defines.patch | 37 - ...-the-generated-version-of-vkconfig.h.patch | 64 - ...009-glimagesink-Downrank-to-marginal.patch | 32 - .../avoid-including-sys-poll.h-directly.patch | 30 - .../configure-allow-to-disable-libssh2.patch | 64 - ...-sentinels-for-gst_structure_get-etc.patch | 85 - ...ized-warnings-when-compiling-with-Os.patch | 28 - .../link-with-libvchostif.patch | 35 - .../gstreamer1.0-plugins-bad_1.12.3.bb | 25 - .../gstreamer/gstreamer1.0-plugins-base.inc | 50 - ...t-hardcode-libtool-name-when-running.patch | 168 - ...ix-calls-to-pkg-config-with-PKG_CONF.patch | 298 - ...-include-directories-when-calling-in.patch | 28 - ...parse-enhance-SSA-text-lines-parsing.patch | 225 - ...ect-reference-to-gstreamer-sdp-in-Ma.patch | 27 - ...d_segment-after-sink-pad-received-GS.patch | 69 - ...et-caps-from-src-pad-when-query-caps.patch | 44 - ...gio_unix_2_0-dependency-configurable.patch | 47 - .../gstreamer1.0-plugins-base_1.12.3.bb | 18 - .../gstreamer/gstreamer1.0-plugins-good.inc | 52 - ...t-dafault-value-for-MPEG4-without-co.patch | 62 - .../avoid-including-sys-poll.h-directly.patch | 44 - ...valid-sentinel-for-gst_structure_get.patch | 40 - .../gstreamer1.0-plugins-good_1.12.3.bb | 20 - .../gstreamer/gstreamer1.0-plugins-ugly.inc | 31 - .../gstreamer1.0-plugins-ugly_1.12.3.bb | 13 - .../gstreamer/gstreamer1.0-plugins.inc | 54 - .../gstreamer/gstreamer1.0-python.inc | 33 - .../gstreamer/gstreamer1.0-python_1.12.3.bb | 7 - .../gstreamer/gstreamer1.0-rtsp-server.inc | 40 - ...ibtool-name-when-using-introspection.patch | 27 - .../gstreamer1.0-rtsp-server_1.12.3.bb | 6 - .../gstreamer/gstreamer1.0-vaapi.inc | 46 - .../gstreamer/gstreamer1.0-vaapi_1.12.3.bb | 5 - .../gstreamer/gstreamer1.0.inc | 71 - .../gstreamer/gstreamer1.0_1.12.3.bb | 12 - .../lame/lame/CVE-2017-13712.patch | 309 - .../lame-3.99.5_fix_for_automake-1.12.x.patch | 59 - .../lame/lame/no-gtk1.patch | 20 - .../recipes-multimedia/lame/lame_3.99.5.bb | 32 - .../liba52/liba52/buildcleanup.patch | 89 - .../recipes-multimedia/liba52/liba52_0.7.4.bb | 26 - .../0001-Fix-gperf-3.1-incompatibility.patch | 40 - .../libid3tag/libid3tag/addpkgconfig.patch | 43 - .../libid3tag/obsolete_automake_macros.patch | 15 - .../libid3tag/libid3tag_0.15.1b.bb | 25 - .../recipes-multimedia/libogg/libogg_1.3.3.bb | 17 - .../libomxil-0.9.3/configure-fix.patch | 58 - .../disable-so-versioning.patch | 36 - .../dynamicloader-linking.patch | 20 - .../libomxil-0.9.3/makefile-docdir-fix.patch | 19 - .../libomxil-0.9.3/parallel-make.patch | 18 - .../libomxil/libomxil_0.9.3.bb | 37 - .../libpng/libpng_1.6.32.bb | 28 - ...1-configure.ac-improve-alsa-handling.patch | 62 - .../libsamplerate/libsamplerate0_0.1.9.bb | 28 - .../libsndfile1/CVE-2017-6892.patch | 34 - .../libsndfile1/CVE-2017-8361-8365.patch | 73 - .../libsndfile1/CVE-2017-8362.patch | 59 - .../libsndfile1/CVE-2017-8363.patch | 37 - .../libsndfile/libsndfile1_1.0.28.bb | 33 - .../libtheora/libtheora-1.1.1/no-docs.patch | 15 - .../libtheora/libtheora_1.1.1.bb | 22 - .../libtiff/files/CVE-2017-10688.patch | 91 - .../libtiff/files/CVE-2017-11335.patch | 54 - .../libtiff/files/CVE-2017-13726.patch | 54 - .../libtiff/files/CVE-2017-13727.patch | 65 - .../libtiff/files/CVE-2017-9147.patch | 206 - .../libtiff/files/CVE-2017-9936.patch | 49 - .../libtiff/files/libtool2.patch | 19 - .../recipes-multimedia/libtiff/tiff_4.0.8.bb | 54 - .../0001-configure-Check-for-clang.patch | 56 - .../libvorbis/libvorbis_1.3.5.bb | 19 - ...heck-for-available-arm-optimizations.patch | 55 - ...f-global-symbols-used-in-ARM-specifi.patch | 63 - .../mpeg2dec/files/altivec_h_needed.patch | 43 - .../mpeg2dec/mpeg2dec_0.5.1.bb | 45 - .../mpg123/mpg123_1.25.7.bb | 51 - .../pulseaudio/pulseaudio.inc | 272 - ...nt-conf-Add-allow-autospawn-for-root.patch | 97 - .../0001-padsp-Make-it-compile-on-musl.patch | 70 - ...t-use-variable-length-array-in-union.patch | 59 - .../pulseaudio/pulseaudio/volatiles.04_pulse | 2 - .../pulseaudio/pulseaudio_10.0.bb | 15 - poky/meta/recipes-multimedia/sbc/sbc_1.3.bb | 23 - .../recipes-multimedia/speex/speex_1.2.0.bb | 20 - ...n-HAVE_STDINT_H-et-al.-being-defined.patch | 63 - .../speex/speexdsp_1.2rc3.bb | 39 - .../recipes-multimedia/webp/libwebp_0.6.0.bb | 54 - .../x264/Fix-X32-build-by-disabling-asm.patch | 53 - ...don-t-default-to-cortex-a9-with-neon.patch | 20 - poky/meta/recipes-multimedia/x264/x264_git.bb | 53 - poky/meta/recipes-rt/README | 13 - .../recipes-rt/images/core-image-rt-sdk.bb | 20 - poky/meta/recipes-rt/images/core-image-rt.bb | 17 - .../recipes-rt/rt-tests/files/rt_bmark.py | 412 - poky/meta/recipes-rt/rt-tests/files/run-ptest | 3 - .../recipes-rt/rt-tests/hwlatdetect_1.1.bb | 26 - poky/meta/recipes-rt/rt-tests/rt-tests.inc | 10 - poky/meta/recipes-rt/rt-tests/rt-tests_1.1.bb | 31 - .../images/core-image-sato-dev.bb | 7 - .../images/core-image-sato-sdk-ptest.bb | 11 - .../images/core-image-sato-sdk.bb | 11 - .../recipes-sato/images/core-image-sato.bb | 12 - poky/meta/recipes-sato/l3afpad/l3afpad_git.bb | 25 - .../matchbox-config-gtk/files/no-handed.patch | 39 - .../matchbox-config-gtk_0.2.bb | 23 - .../files/vfolders/All.directory | 5 - .../files/vfolders/Applications.directory | 6 - .../files/vfolders/Games.directory | 9 - .../files/vfolders/Root.order | 4 - .../files/vfolders/Settings.directory | 8 - .../matchbox-desktop/matchbox-desktop_2.2.bb | 33 - ...file-Hide-the-keyboard-from-app-list.patch | 33 - .../files/80matchboxkeyboard.sh | 21 - .../matchbox-keyboard_0.1.1.bb | 59 - ...ts-systray-Allow-icons-to-be-smaller.patch | 34 - .../matchbox-panel-2/matchbox-panel-2_2.11.bb | 40 - .../matchbox-session-sato/index.theme | 7 - .../matchbox-session-sato/session | 28 - .../matchbox-session-sato_0.1.bb | 56 - .../matchbox-terminal_0.1.bb | 21 - .../matchbox-theme-sato.inc | 16 - .../matchbox-theme-sato_0.2.bb | 8 - .../packagegroup-core-x11-sato.bb | 59 - .../pcmanfm/files/emblem-symbolic-link.png | Bin 999 -> 0 bytes .../pcmanfm/files/gnome-fs-directory.png | Bin 2044 -> 0 bytes .../pcmanfm/files/gnome-fs-regular.png | Bin 3220 -> 0 bytes .../pcmanfm/files/gnome-mime-text-plain.png | Bin 2855 -> 0 bytes .../pcmanfm/files/no-desktop.patch | 15 - .../recipes-sato/pcmanfm/pcmanfm_1.2.5.bb | 43 - .../pulseaudio-client-conf-sato/50-sato.conf | 7 - .../pulseaudio-client-conf-sato_1.bb | 17 - ...-conditions-to-avoid-compiler-errors.patch | 48 - ...rmat-overflow-if-the-compiler-suppor.patch | 32 - .../files/0001-Use-labs-instead-of-abs.patch | 46 - ...isade-Fix-warnings-with-clang-on-arm.patch | 72 - ...ix-compiling-failure-with-option-g-O.patch | 43 - poky/meta/recipes-sato/puzzles/puzzles_git.bb | 77 - .../rxvt-unicode/rxvt-unicode.inc | 58 - .../rxvt-unicode/rxvt-unicode/rxvt.desktop | 9 - .../rxvt-unicode/rxvt-unicode/rxvt.png | Bin 2847 -> 0 bytes .../rxvt-unicode/rxvt-unicode/xwc.patch | 26 - .../rxvt-unicode/rxvt-unicode_9.22.bb | 8 - .../sato-screenshot/sato-screenshot_0.3.bb | 28 - .../files/70settings-daemon.sh | 1 - .../settings-daemon/files/addsoundkeys.patch | 49 - .../settings-daemon/settings-daemon_0.0.2.bb | 30 - .../shutdown-desktop/shutdown-desktop.bb | 24 - .../shutdown-desktop/shutdown.desktop | 10 - ...spection.cmake-prefix-variables-obta.patch | 27 - ...cy-parallel-build-of-WebKit2-4.0.gir.patch | 48 - ...-drop-the-hardcoded-introspection-gt.patch | 34 - ...tings-so-that-gtkdoc-generation-work.patch | 49 - ...acros-Append-to-I-and-not-to-isystem.patch | 170 - ...trospection-files-add-CMAKE_C_FLAGS-.patch | 37 - .../webkit/webkitgtk/cross-compile.patch | 23 - .../detect-atomics-during-configure.patch | 34 - .../recipes-sato/webkit/webkitgtk/gcc7.patch | 23 - .../webkit/webkitgtk/musl-fixes.patch | 48 - .../webkit/webkitgtk/ppc-musl-fix.patch | 26 - .../webkit/webkitgtk/x32_support.patch | 21 - .../recipes-sato/webkit/webkitgtk_2.16.6.bb | 119 - .../apr/apr-util/configfix.patch | 51 - .../apr/apr-util/configure_fixes.patch | 31 - .../recipes-support/apr/apr-util/run-ptest | 6 - .../recipes-support/apr/apr-util_1.6.0.bb | 95 - ...ze-doesn-t-match-in-glibc-when-cross.patch | 78 - ...libapr-against-phtread-to-make-gold-.patch | 50 - .../Fix-packet-discards-HTTP-redirect.patch | 32 - .../recipes-support/apr/apr/cleanup.patch | 43 - .../recipes-support/apr/apr/configfix.patch | 53 - ...-LTFLAGS-to-make-it-work-with-ccache.patch | 36 - .../apr/apr/configure_fixes.patch | 68 - poky/meta/recipes-support/apr/apr/run-ptest | 6 - .../apr/apr/upgrade-and-fix-1.5.1.patch | 45 - poky/meta/recipes-support/apr/apr_1.6.2.bb | 114 - .../argp-standalone/argp-standalone_1.3.bb | 32 - .../files/0001-throw-in-funcdef.patch | 84 - .../argp-standalone/files/0002-isprint.patch | 51 - .../files/out_of_tree_build.patch | 19 - .../recipes-support/aspell/aspell/gcc7.patch | 40 - .../recipes-support/aspell/aspell_0.60.6.1.bb | 31 - .../recipes-support/atk/at-spi2-atk_2.26.0.bb | 22 - ...01-build-Add-with-systemduserunitdir.patch | 52 - .../atk/at-spi2-core_2.26.0.bb | 29 - poky/meta/recipes-support/atk/atk_2.26.0.bb | 19 - ...file-libacl-should-depend-on-include.patch | 51 - ...-order-of-expected-output-of-getfacl.patch | 198 - .../recipes-support/attr/acl/configure.ac | 49 - poky/meta/recipes-support/attr/acl/run-ptest | 64 - .../acl/test-fix-directory-permissions.patch | 37 - .../test-fix-insufficient-quoting-of.patch | 108 - ...-SELinux-machines-for-root-testcases.patch | 84 - poky/meta/recipes-support/attr/acl_2.2.52.bb | 55 - poky/meta/recipes-support/attr/attr.inc | 45 - .../0001-Use-stdint-types-consistently.patch | 69 - .../attr/attr/attr-Missing-configure.ac.patch | 63 - .../attr/attr/dont-use-decl-macros.patch | 56 - poky/meta/recipes-support/attr/attr_2.4.47.bb | 15 - poky/meta/recipes-support/attr/ea-acl.inc | 49 - ...option-to-enable-disable-static-libr.patch | 70 - ...e-attr.5-man-page-moved-to-man-pages.patch | 240 - .../Remove-the-section-2-man-pages.patch | 666 - .../attr/files/relative-libdir.patch | 25 - .../meta/recipes-support/attr/files/run-ptest | 5 - .../bash-completion/bash-completion_2.7.bb | 42 - .../beecrypt/add-option-dev-dsp.patch | 34 - .../beecrypt-enable-ptest-support.patch | 37 - .../beecrypt/beecrypt/disable-icu-check.patch | 43 - .../beecrypt/beecrypt/fix-for-gcc-4.7.patch | 39 - .../beecrypt/beecrypt/fix-security.patch | 47 - .../beecrypt/beecrypt/run-ptest | 5 - .../beecrypt/beecrypt_4.2.1.bb | 48 - .../bmap-tools/bmap-tools_3.4.bb | 22 - .../boost/bjam-native_1.65.1.bb | 19 - .../recipes-support/boost/boost-1.65.1.inc | 21 - poky/meta/recipes-support/boost/boost.inc | 222 - ...y-boost-1.62.0-no-forced-flags.patch.patch | 100 - ...ich-appeared-when-compiling-non-c-co.patch | 28 - ...-set-up-m32-m64-we-do-that-ourselves.patch | 97 - ...h-instruction-set-flags-we-do-that-o.patch | 143 - .../boost/boost/arm-intrinsics.patch | 55 - .../boost/boost/boost-CVE-2012-2677.patch | 112 - .../boost-math-disable-pch-for-gcc.patch | 31 - .../recipes-support/boost/boost_1.65.1.bb | 12 - ...sert-typo-how-was-this-released-with.patch | 37 - .../files/bjam-native-build-bjam.debug.patch | 50 - ...icates-don-t-use-Debianisms-in-run-p.patch | 34 - ...2-update-ca-certificates-use-SYSROOT.patch | 46 - .../ca-certificates/default-sysroot.patch | 50 - .../ca-certificates/sbindir.patch | 20 - ...pdate-ca-certificates-support-Toybox.patch | 34 - .../ca-certificates_20170717.bb | 85 - .../add-polkit-configure-argument.patch | 33 - .../consolekit/consolekit/sepbuildfix.patch | 19 - .../consolekit/consolekit_0.4.6.bb | 49 - ...-replace-krb5-config-with-pkg-config.patch | 43 - .../curl/curl/CVE-2017-1000099.patch | 41 - .../curl/curl/CVE-2017-1000100.patch | 51 - .../curl/curl/CVE-2017-1000101.patch | 99 - .../curl/curl/CVE-2017-1000254.patch | 138 - .../curl/curl/configure_ac.patch | 13 - .../curl/curl/reproducible-mkhelp.patch | 32 - poky/meta/recipes-support/curl/curl_7.54.1.bb | 87 - ...cal-__atomic_compare_exchange-to-avo.patch | 45 - ...plicit-tag-options-to-libtool-invoca.patch | 42 - .../db/db/arm-thumb-mutex_db5.patch | 50 - .../db/db/fix-parallel-build.patch | 21 - .../recipes-support/db/db/sequence-type.patch | 59 - poky/meta/recipes-support/db/db_5.3.28.bb | 120 - .../debianutils/debianutils_4.8.1.1.bb | 55 - .../recipes-support/enchant/enchant_1.6.0.bb | 34 - .../recipes-support/gdbm/files/ptest.patch | 50 - .../meta/recipes-support/gdbm/files/run-ptest | 7 - poky/meta/recipes-support/gdbm/gdbm_1.13.bb | 43 - ...provided-flags-to-the-auto-detected-.patch | 61 - ...-Believe-the-cflags-from-environment.patch | 52 - .../recipes-support/gmp/gmp-6.1.2/amd64.patch | 18 - .../gmp/gmp-6.1.2/use-includedir.patch | 15 - poky/meta/recipes-support/gmp/gmp.inc | 12 - poky/meta/recipes-support/gmp/gmp_6.1.2.bb | 41 - ...ss.c-Enable-GNU-extensions-in-system.patch | 35 - .../update-output-syntax.patch | 27 - .../gnome-desktop-testing_2014.1.bb | 22 - ...ig-to-find-pth-instead-of-pth-config.patch | 105 - ...use-pkgconfig-instead-of-npth-config.patch | 85 - .../0003-dirmngr-uses-libgpg-error.patch | 32 - ...h-fix-find-version-for-beta-checking.patch | 34 - .../meta/recipes-support/gnupg/gnupg_2.2.0.bb | 46 - poky/meta/recipes-support/gnutls/gnutls.inc | 59 - .../0001-configure.ac-fix-sed-command.patch | 32 - .../gnutls/gnutls/arm_eabi.patch | 19 - .../recipes-support/gnutls/gnutls_3.6.1.bb | 9 - ...roduce-GNULIB_OVERRIDES_WINT_T-check.patch | 63 - .../gnutls/libtasn1/CVE-2017-10790.patch | 63 - .../libtasn1/dont-depend-on-help2man.patch | 14 - .../recipes-support/gnutls/libtasn1_4.12.bb | 24 - .../gpgme/gpgme/0001-pkgconfig.patch | 303 - ...n-gpg-error-config-should-not-be-use.patch | 65 - ...003-Correctly-install-python-modules.patch | 30 - .../gpgme/gpgme/0004-python-import.patch | 34 - ...p-all-lib-or-usr-lib-directories-in-.patch | 31 - .../meta/recipes-support/gpgme/gpgme_1.9.0.bb | 77 - poky/meta/recipes-support/icu/icu.inc | 57 - .../0001-Disable-LDFLAGSICUDT-for-Linux.patch | 28 - .../0001-i18n-Drop-include-xlocale.h.patch | 33 - .../icu/icu/fix-install-manx.patch | 57 - .../icu/icu/icu-pkgdata-large-cmd.patch | 49 - poky/meta/recipes-support/icu/icu_60.1.bb | 29 - .../iso-codes/iso-codes_3.76.bb | 15 - .../libassuan-add-pkgconfig-support.patch | 159 - .../libassuan/libassuan_2.4.4.bb | 32 - ...d-initial-nios2-architecture-support.patch | 70 - .../libatomic-ops/libatomic-ops_7.6.0.bb | 20 - ...eplace-__BEGIN_DECLS-and-__END_DECLS.patch | 363 - ...ay.pc.in-Set-Cflags-to-use-I-instead.patch | 33 - .../libbsd/libbsd/0002-Remove-funopen.patch | 52 - .../recipes-support/libbsd/libbsd_0.8.6.bb | 50 - .../libcap-ng/libcap-ng/python.patch | 58 - .../libcap-ng/libcap-ng_0.7.8.bb | 37 - .../files/0001-Fix-build-with-gperf-3.1.patch | 41 - ..._NAME_CAPS-is-defined-when-it-is-use.patch | 32 - .../recipes-support/libcap/libcap_2.25.bb | 74 - .../libcheck/libcheck_0.12.0.bb | 23 - .../libcroco/libcroco_0.6.12.bb | 20 - .../libdaemon/libdaemon/fix-includes.patch | 20 - .../libdaemon/libdaemon_0.14.bb | 18 - .../libevdev/libevdev_1.5.7.bb | 14 - .../libevent/Makefile-missing-test-dir.patch | 27 - .../libevent/libevent/run-ptest | 18 - .../libevent/libevent_2.1.8.bb | 42 - .../recipes-support/libexif/libexif_0.6.21.bb | 17 - .../0001-libffi-Support-musl-x32-build.patch | 30 - ...e-compiler-internal-define-for-linux.patch | 32 - ...-mips-fix-MIPS-softfloat-build-issue.patch | 177 - .../libffi/libffi/not-win32.patch | 22 - .../recipes-support/libffi/libffi_3.2.1.bb | 34 - ...001-nls.m4-Take-it-from-gettext-0.15.patch | 54 - .../libfm/libfm-extra_1.2.5.bb | 23 - ...the-stamp-file-that-indicates-if-we-.patch | 28 - .../meta/recipes-support/libfm/libfm_1.2.5.bb | 40 - ...config-for-libgcrypt-instead-of-conf.patch | 183 - ...ilding-error-with-O2-in-sysroot-path.patch | 41 - ...e.c-workaround-ICE-failure-on-mips-w.patch | 79 - ...m-fix-undefined-reference-to-pthread.patch | 28 - ...ch32-CE-implementations-when-target-.patch | 96 - .../libgcrypt/libgcrypt_1.8.1.bb | 53 - .../libgpg-error/libgpg-error/pkgconfig.patch | 150 - .../libgpg-error/libgpg-error_1.27.bb | 61 - ...ibical.pc.in-fix-iculibs-remove-full.patch | 44 - .../libical/Remove-cmake-check-for-Perl.patch | 33 - .../recipes-support/libical/libical_2.0.0.bb | 21 - .../libksba/ksba-add-pkgconfig-support.patch | 152 - .../recipes-support/libksba/libksba_1.3.5.bb | 26 - poky/meta/recipes-support/libmpc/libmpc.inc | 7 - .../recipes-support/libmpc/libmpc_1.0.3.bb | 15 - .../libnl/libnl/fix-pc-file.patch | 17 - .../libnl/fix-pktloc_syntax_h-race.patch | 36 - .../recipes-support/libnl/libnl_3.2.29.bb | 45 - .../recipes-support/libpcre/libpcre/Makefile | 183 - .../libpcre/fix-pcre-name-collision.patch | 41 - .../libpcre/libpcre/pcre-cross.patch | 48 - .../recipes-support/libpcre/libpcre/run-ptest | 3 - .../libpcre/libpcre2/pcre-cross.patch | 65 - .../recipes-support/libpcre/libpcre2_10.30.bb | 58 - .../recipes-support/libpcre/libpcre_8.41.bb | 83 - .../libproxy/libproxy_0.4.15.bb | 37 - .../libsoup/libsoup-2.4_2.60.2.bb | 35 - ...charset_alias-when-building-for-musl.patch | 30 - ...m4-remove-the-test-to-convert-euc-jp.patch | 40 - .../libunistring/libunistring_0.9.7.bb | 30 - .../recipes-support/libunwind/libunwind.inc | 18 - .../0001-Fix-build-on-mips-musl.patch | 81 - ...01-add-knobs-to-disable-enable-tests.patch | 69 - ...trace-Use-only-with-glibc-and-uclibc.patch | 45 - ...context-mismatches-between-glibc-and.patch | 248 - .../0001-x86-Stub-out-x86_local_resume.patch | 54 - ...O_REQUIRE_CAS-to-fix-build-on-ARM-v6.patch | 62 - .../libunwind/libunwind/fix-mips.patch | 134 - .../libunwind/libunwind-1.1-x32.patch | 31 - .../libunwind/musl-header-conflict.patch | 37 - .../libunwind/libunwind_1.2.bb | 24 - .../recipes-support/liburcu/liburcu_0.10.0.bb | 17 - .../0001-usb.h-Include-sys-types.h.patch | 30 - .../libusb/libusb-compat_0.1.5.bb | 42 - .../libusb/libusb1/no-dll.patch | 19 - .../recipes-support/libusb/libusb1_1.0.21.bb | 35 - .../libxslt/libxslt/pkgconfig_fix.patch | 24 - .../recipes-support/libxslt/libxslt_1.1.32.bb | 49 - .../recipes-support/libyaml/libyaml_0.1.7.bb | 20 - ...akefile-don-t-use-LIBDIR-as-variable.patch | 82 - poky/meta/recipes-support/lz4/files/run-ptest | 43 - poky/meta/recipes-support/lz4/lz4_1.7.4.bb | 35 - ...onfigdir-to-solve-the-undefine-error.patch | 27 - ...Use-memcpy-instead-of-reinventing-it.patch | 70 - .../meta/recipes-support/lzo/lzo/acinclude.m4 | 358 - poky/meta/recipes-support/lzo/lzo/run-ptest | 33 - poky/meta/recipes-support/lzo/lzo_2.10.bb | 36 - ...es-as-the-external-inline-definition.patch | 100 - .../recipes-support/lzop/lzop/acinclude.m4 | 390 - .../lzop/lzop/lzop-1.03-gcc6.patch | 37 - .../lzop/lzop/x32_abi_miniacc_h.patch | 36 - poky/meta/recipes-support/lzop/lzop_1.03.bb | 29 - poky/meta/recipes-support/mpfr/mpfr.inc | 6 - .../mpfr/mpfr/long-long-thumb.patch | 39 - poky/meta/recipes-support/mpfr/mpfr_3.1.5.bb | 18 - ...get-to-only-build-tests-not-run-them.patch | 38 - ...der-files-of-openssl-only-if-enable_.patch | 36 - .../nettle/nettle-3.4/dlopen-test.patch | 20 - .../nettle/nettle-3.4/run-ptest | 36 - .../meta/recipes-support/nettle/nettle_3.4.bb | 51 - .../recipes-support/npth/npth/pkgconfig.patch | 49 - poky/meta/recipes-support/npth/npth_1.5.bb | 21 - ...-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch | 30 - .../nspr/0001-md-Fix-build-with-musl.patch | 31 - .../nspr/nspr/0002-Add-nios2-support.patch | 105 - .../nspr/nspr/fix-build-on-x86_64.patch | 52 - .../meta/recipes-support/nspr/nspr/nspr.pc.in | 11 - .../nspr/nspr/remove-rpath-from-tests.patch | 26 - .../remove-srcdir-from-configure-in.patch | 19 - poky/meta/recipes-support/nspr/nspr_4.17.bb | 191 - ...-Check-for-nss.h-presense-before-use.patch | 53 - .../nss-myhostname/nss-myhostname_0.3.bb | 31 - ...0001-nss-fix-support-cross-compiling.patch | 48 - .../nss/nss/Fix-compilation-for-X32.patch | 33 - .../nss/nss/disable-Wvarargs-with-clang.patch | 33 - .../nss-fix-incorrect-shebang-of-perl.patch | 110 - .../nss/nss/nss-fix-nsinstall-build.patch | 36 - .../nss-no-rpath-for-cross-compiling.patch | 26 - poky/meta/recipes-support/nss/nss/nss.pc.in | 11 - .../nss/nss/pqg.c-ULL_addend.patch | 23 - poky/meta/recipes-support/nss/nss/signlibs.sh | 20 - poky/meta/recipes-support/nss/nss_3.34.bb | 253 - .../recipes-support/p11-kit/p11-kit_0.22.1.bb | 41 - .../pinentry-1.0.0/gpg-error_pkconf.patch | 100 - .../pinentry-1.0.0/libassuan_pkgconf.patch | 153 - .../pinentry/pinentry_1.0.0.bb | 36 - .../popt/popt/disable_tests.patch | 21 - .../popt/popt/pkgconfig_fix.patch | 15 - .../popt/popt_fix_for_automake-1.12.patch | 21 - poky/meta/recipes-support/popt/popt_1.16.bb | 22 - .../ptest-runner/ptest-runner_2.1.bb | 26 - .../recipes-support/re2c/re2c/mkdir.patch | 36 - poky/meta/recipes-support/re2c/re2c_0.16.bb | 15 - ...the-libc-is-lacking-argp-use-libargp.patch | 60 - ...nt-to-control-the-libargp-dependency.patch | 92 - .../rng-tools/rng-tools/default | 2 - .../recipes-support/rng-tools/rng-tools/init | 49 - .../rng-tools-5-fix-textrels-on-PIC-x86.patch | 103 - .../rng-tools/rng-tools/rngd.service | 9 - .../rng-tools/rng-tools/underquote.patch | 33 - .../recipes-support/rng-tools/rng-tools_5.bb | 54 - poky/meta/recipes-support/serf/serf/env.patch | 28 - .../recipes-support/serf/serf/norpath.patch | 42 - poky/meta/recipes-support/serf/serf_1.3.9.bb | 26 - .../shared-mime-info/shared-mime-info.inc | 35 - .../shared-mime-info/install-data-hook.patch | 23 - .../shared-mime-info/parallelmake.patch | 33 - .../shared-mime-info/shared-mime-info_1.9.bb | 7 - ....pc.in-do-not-add-Boost-s-libraries-.patch | 30 - .../source-highlight_3.1.8.bb | 28 - poky/meta/recipes-support/sqlite/sqlite3.inc | 57 - .../recipes-support/sqlite/sqlite3_3.21.0.bb | 10 - .../taglib/taglib/CVE-2017-12678.patch | 40 - .../recipes-support/taglib/taglib_1.11.1.bb | 43 - .../user-creation/files/system-xuser.conf | 11 - .../user-creation/xuser-account_0.1.bb | 28 - .../vte/vte/0001-Add-m4-vapigen.m4.patch | 119 - ...t-enable-stack-protection-by-default.patch | 29 - poky/meta/recipes-support/vte/vte_0.50.1.bb | 48 - poky/meta/recipes.txt | 14 - poky/meta/site/arm-32 | 47 - poky/meta/site/arm-64 | 46 - poky/meta/site/arm-common | 153 - poky/meta/site/arm-darwin | 11 - poky/meta/site/arm-darwin8 | 11 - poky/meta/site/arm-linux | 159 - poky/meta/site/armeb-linux | 43 - poky/meta/site/common | 21 - poky/meta/site/common-darwin | 2 - poky/meta/site/common-glibc | 86 - poky/meta/site/common-linux | 66 - poky/meta/site/common-mingw | 2 - poky/meta/site/common-musl | 52 - poky/meta/site/endian-big | 8 - poky/meta/site/endian-little | 8 - poky/meta/site/ix86-common | 225 - poky/meta/site/microblaze-linux | 54 - poky/meta/site/mips-common | 53 - poky/meta/site/mips-linux | 79 - poky/meta/site/mips64-linux | 83 - poky/meta/site/mips64el-linux | 83 - poky/meta/site/mipsel-linux | 79 - poky/meta/site/mipsisa32r6-linux | 79 - poky/meta/site/mipsisa32r6el-linux | 79 - poky/meta/site/mipsisa64r6-linux | 83 - poky/meta/site/mipsisa64r6el-linux | 83 - poky/meta/site/native | 1 - poky/meta/site/nios2-linux | 389 - poky/meta/site/powerpc-common | 14 - poky/meta/site/powerpc-darwin | 7 - poky/meta/site/powerpc-linux | 16 - poky/meta/site/powerpc32-linux | 272 - poky/meta/site/powerpc64-linux | 39 - poky/meta/site/riscv32-linux | 4 - poky/meta/site/riscv64-linux | 4 - poky/meta/site/sh-common | 234 - poky/meta/site/sparc-linux | 48 - poky/meta/site/x32-linux | 8 - poky/meta/site/x86_64-linux | 134 - poky/oe-init-build-env | 59 - poky/scripts/README | 1 - poky/scripts/bitbake-prserv-tool | 112 - poky/scripts/bitbake-whatchanged | 330 - poky/scripts/buildhistory-collect-srcrevs | 117 - poky/scripts/buildhistory-diff | 134 - poky/scripts/buildstats-diff | 306 - poky/scripts/combo-layer | 1376 - poky/scripts/combo-layer-hook-default.sh | 20 - poky/scripts/combo-layer.conf.example | 93 - .../scripts/contrib/bb-perf/bb-matrix-plot.sh | 137 - poky/scripts/contrib/bb-perf/bb-matrix.sh | 79 - .../contrib/bb-perf/buildstats-plot.sh | 157 - poky/scripts/contrib/bb-perf/buildstats.sh | 155 - poky/scripts/contrib/bbvars.py | 180 - .../contrib/build-perf-test-wrapper.sh | 239 - poky/scripts/contrib/build-perf-test.sh | 400 - poky/scripts/contrib/ddimage | 108 - poky/scripts/contrib/devtool-stress.py | 256 - poky/scripts/contrib/dialog-power-control | 53 - poky/scripts/contrib/documentation-audit.sh | 94 - poky/scripts/contrib/graph-tool | 91 - .../contrib/list-packageconfig-flags.py | 178 - poky/scripts/contrib/mkefidisk.sh | 464 - .../contrib/oe-build-perf-report-email.py | 282 - poky/scripts/contrib/patchreview.py | 211 - poky/scripts/contrib/patchtest.sh | 118 - .../contrib/python/generate-manifest-2.7.py | 421 - .../contrib/python/generate-manifest-3.5.py | 433 - poky/scripts/contrib/serdevtry | 60 - poky/scripts/contrib/test_build_time.sh | 237 - .../scripts/contrib/test_build_time_worker.sh | 37 - poky/scripts/contrib/uncovered | 39 - poky/scripts/contrib/verify-homepage.py | 62 - .../contrib/yocto-bsp-kernel-update.sh | 60 - poky/scripts/cp-noerror | 52 - poky/scripts/create-pull-request | 303 - poky/scripts/crosstap | 155 - poky/scripts/devtool | 347 - poky/scripts/gen-lockedsig-cache | 74 - poky/scripts/gen-site-config | 53 - poky/scripts/lib/argparse_oe.py | 176 - poky/scripts/lib/build_perf/__init__.py | 31 - poky/scripts/lib/build_perf/html.py | 19 - .../build_perf/html/measurement_chart.html | 50 - poky/scripts/lib/build_perf/html/report.html | 286 - poky/scripts/lib/build_perf/report.py | 345 - .../lib/build_perf/scrape-html-report.js | 56 - poky/scripts/lib/buildstats.py | 349 - poky/scripts/lib/checklayer/__init__.py | 392 - poky/scripts/lib/checklayer/case.py | 7 - poky/scripts/lib/checklayer/cases/__init__.py | 0 poky/scripts/lib/checklayer/cases/bsp.py | 204 - poky/scripts/lib/checklayer/cases/common.py | 53 - poky/scripts/lib/checklayer/cases/distro.py | 26 - poky/scripts/lib/checklayer/context.py | 15 - poky/scripts/lib/devtool/__init__.py | 369 - poky/scripts/lib/devtool/build.py | 86 - poky/scripts/lib/devtool/build_image.py | 174 - poky/scripts/lib/devtool/build_sdk.py | 65 - poky/scripts/lib/devtool/deploy.py | 354 - poky/scripts/lib/devtool/export.py | 119 - poky/scripts/lib/devtool/import.py | 144 - poky/scripts/lib/devtool/package.py | 60 - poky/scripts/lib/devtool/runqemu.py | 74 - poky/scripts/lib/devtool/sdk.py | 336 - poky/scripts/lib/devtool/search.py | 88 - poky/scripts/lib/devtool/standard.py | 2153 -- poky/scripts/lib/devtool/upgrade.py | 521 - poky/scripts/lib/devtool/utilcmds.py | 252 - poky/scripts/lib/recipetool/__init__.py | 0 poky/scripts/lib/recipetool/append.py | 457 - poky/scripts/lib/recipetool/create.py | 1327 - .../scripts/lib/recipetool/create_buildsys.py | 893 - .../lib/recipetool/create_buildsys_python.py | 719 - poky/scripts/lib/recipetool/create_kernel.py | 99 - poky/scripts/lib/recipetool/create_kmod.py | 152 - poky/scripts/lib/recipetool/create_npm.py | 329 - poky/scripts/lib/recipetool/newappend.py | 89 - poky/scripts/lib/recipetool/setvar.py | 75 - poky/scripts/lib/scriptpath.py | 42 - poky/scripts/lib/scriptutils.py | 241 - poky/scripts/lib/wic/__init__.py | 20 - .../scripts/lib/wic/canned-wks/common.wks.inc | 3 - .../directdisk-bootloader-config.cfg | 27 - .../directdisk-bootloader-config.wks | 8 - .../lib/wic/canned-wks/directdisk-gpt.wks | 10 - .../canned-wks/directdisk-multi-rootfs.wks | 23 - .../scripts/lib/wic/canned-wks/directdisk.wks | 8 - poky/scripts/lib/wic/canned-wks/mkefidisk.wks | 11 - .../lib/wic/canned-wks/mkhybridiso.wks | 7 - .../lib/wic/canned-wks/qemux86-directdisk.wks | 8 - .../lib/wic/canned-wks/sdimage-bootpart.wks | 6 - .../lib/wic/canned-wks/systemd-bootdisk.wks | 11 - poky/scripts/lib/wic/engine.py | 565 - poky/scripts/lib/wic/filemap.py | 592 - poky/scripts/lib/wic/help.py | 1043 - poky/scripts/lib/wic/ksparser.py | 229 - poky/scripts/lib/wic/misc.py | 263 - poky/scripts/lib/wic/partition.py | 420 - poky/scripts/lib/wic/pluginbase.py | 139 - poky/scripts/lib/wic/plugins/imager/direct.py | 589 - .../lib/wic/plugins/source/bootimg-efi.py | 257 - .../wic/plugins/source/bootimg-partition.py | 132 - .../lib/wic/plugins/source/bootimg-pcbios.py | 206 - .../wic/plugins/source/isoimage-isohybrid.py | 466 - .../scripts/lib/wic/plugins/source/rawcopy.py | 69 - poky/scripts/lib/wic/plugins/source/rootfs.py | 126 - poky/scripts/lnr | 21 - poky/scripts/multilib_header_wrapper.h | 61 - poky/scripts/native-intercept/chown | 2 - poky/scripts/oe-build-perf-report | 664 - poky/scripts/oe-build-perf-test | 223 - poky/scripts/oe-buildenv-internal | 139 - poky/scripts/oe-check-sstate | 121 - poky/scripts/oe-find-native-sysroot | 115 - poky/scripts/oe-git-archive | 271 - poky/scripts/oe-git-proxy | 181 - poky/scripts/oe-gnome-terminal-phonehome | 10 - poky/scripts/oe-pkgdata-util | 603 - poky/scripts/oe-publish-sdk | 155 - poky/scripts/oe-run-native | 68 - poky/scripts/oe-selftest | 75 - poky/scripts/oe-setup-builddir | 140 - poky/scripts/oe-setup-rpmrepo | 103 - poky/scripts/oe-test | 81 - poky/scripts/oe-trim-schemas | 58 - poky/scripts/oepydevshell-internal.py | 97 - poky/scripts/opkg-query-helper.py | 85 - .../postinst-intercepts/postinst_intercept | 56 - .../postinst-intercepts/update_font_cache | 7 - .../update_gio_module_cache | 9 - .../postinst-intercepts/update_icon_cache | 13 - .../postinst-intercepts/update_pixbuf_cache | 11 - poky/scripts/pybootchartgui/AUTHORS | 11 - poky/scripts/pybootchartgui/COPYING | 340 - poky/scripts/pybootchartgui/MAINTAINERS | 3 - poky/scripts/pybootchartgui/NEWS | 204 - .../scripts/pybootchartgui/README.pybootchart | 37 - poky/scripts/pybootchartgui/pybootchartgui.py | 23 - .../pybootchartgui/pybootchartgui/__init__.py | 0 .../pybootchartgui/pybootchartgui/batch.py | 46 - .../pybootchartgui/pybootchartgui/draw.py | 968 - .../pybootchartgui/pybootchartgui/gui.py | 350 - .../pybootchartgui/pybootchartgui/main.py | 1 - .../pybootchartgui/pybootchartgui/main.py.in | 183 - .../pybootchartgui/pybootchartgui/parsing.py | 821 - .../pybootchartgui/process_tree.py | 292 - .../pybootchartgui/pybootchartgui/samples.py | 178 - .../pybootchartgui/tests/parser_test.py | 105 - .../pybootchartgui/tests/process_tree_test.py | 92 - poky/scripts/pythondeps | 250 - poky/scripts/recipetool | 126 - poky/scripts/relocate_sdk.py | 266 - poky/scripts/rootfs_rpm-extract-postinst.awk | 11 - poky/scripts/rpm2cpio.sh | 55 - poky/scripts/runqemu | 1302 - poky/scripts/runqemu-addptable2image | 51 - poky/scripts/runqemu-export-rootfs | 156 - poky/scripts/runqemu-extract-sdk | 104 - poky/scripts/runqemu-gen-tapdevs | 108 - poky/scripts/runqemu-ifdown | 66 - poky/scripts/runqemu-ifup | 121 - poky/scripts/runqemu.README | 42 - poky/scripts/send-error-report | 200 - poky/scripts/send-pull-request | 184 - poky/scripts/sstate-cache-management.sh | 469 - poky/scripts/sstate-diff-machines.sh | 172 - poky/scripts/sstate-sysroot-cruft.sh | 199 - poky/scripts/sysroot-relativelinks.py | 31 - poky/scripts/task-time | 132 - poky/scripts/test-dependencies.sh | 286 - poky/scripts/test-reexec | 123 - poky/scripts/test-remote-image | 357 - poky/scripts/tiny/dirsize.py | 89 - poky/scripts/tiny/ksize.py | 170 - poky/scripts/tiny/ksum.py | 168 - poky/scripts/verify-bashisms | 155 - poky/scripts/wic | 529 - poky/scripts/yocto-check-layer | 208 - poky/scripts/yocto-check-layer-wrapper | 43 - 5141 files changed, 625466 deletions(-) delete mode 100644 poky/.gitignore delete mode 100644 poky/.templateconf delete mode 100644 poky/LICENSE delete mode 100644 poky/README.LSB delete mode 120000 poky/README.hardware delete mode 120000 poky/README.poky delete mode 100644 poky/README.qemu delete mode 100644 poky/bitbake/AUTHORS delete mode 100644 poky/bitbake/COPYING delete mode 100644 poky/bitbake/ChangeLog delete mode 100644 poky/bitbake/HEADER delete mode 100644 poky/bitbake/LICENSE delete mode 100644 poky/bitbake/README delete mode 100755 poky/bitbake/bin/bitbake delete mode 100755 poky/bitbake/bin/bitbake-diffsigs delete mode 100755 poky/bitbake/bin/bitbake-dumpsig delete mode 100755 poky/bitbake/bin/bitbake-layers delete mode 100755 poky/bitbake/bin/bitbake-prserv delete mode 100755 poky/bitbake/bin/bitbake-selftest delete mode 100755 poky/bitbake/bin/bitbake-worker delete mode 100755 poky/bitbake/bin/bitdoc delete mode 100755 poky/bitbake/bin/git-make-shallow delete mode 100755 poky/bitbake/bin/toaster delete mode 100755 poky/bitbake/bin/toaster-eventreplay delete mode 100644 poky/bitbake/contrib/README delete mode 100644 poky/bitbake/contrib/bbdev.sh delete mode 100755 poky/bitbake/contrib/dump_cache.py delete mode 100644 poky/bitbake/contrib/vim/ftdetect/bitbake.vim delete mode 100644 poky/bitbake/contrib/vim/ftplugin/bitbake.vim delete mode 100755 poky/bitbake/contrib/vim/plugin/newbb.vim delete mode 100644 poky/bitbake/contrib/vim/syntax/bitbake.vim delete mode 100644 poky/bitbake/doc/COPYING.GPL delete mode 100644 poky/bitbake/doc/COPYING.MIT delete mode 100644 poky/bitbake/doc/Makefile delete mode 100644 poky/bitbake/doc/README delete mode 100644 poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-customization.xsl delete mode 100644 poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-execution.xml delete mode 100644 poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml delete mode 100644 poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml delete mode 100644 poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.xml delete mode 100644 poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml delete mode 100644 poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml delete mode 100644 poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-style.css delete mode 100644 poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual.xml delete mode 100644 poky/bitbake/doc/bitbake-user-manual/figures/bitbake-title.png delete mode 100644 poky/bitbake/doc/bitbake-user-manual/html.css delete mode 100644 poky/bitbake/doc/bitbake.1 delete mode 100644 poky/bitbake/doc/poky.ent delete mode 100644 poky/bitbake/doc/template/Vera.ttf delete mode 100644 poky/bitbake/doc/template/Vera.xml delete mode 100644 poky/bitbake/doc/template/VeraMoBd.ttf delete mode 100644 poky/bitbake/doc/template/VeraMoBd.xml delete mode 100644 poky/bitbake/doc/template/VeraMono.ttf delete mode 100644 poky/bitbake/doc/template/VeraMono.xml delete mode 100644 poky/bitbake/doc/template/component.title.xsl delete mode 100644 poky/bitbake/doc/template/db-pdf.xsl delete mode 100644 poky/bitbake/doc/template/division.title.xsl delete mode 100644 poky/bitbake/doc/template/draft.png delete mode 100644 poky/bitbake/doc/template/fop-config.xml delete mode 100644 poky/bitbake/doc/template/formal.object.heading.xsl delete mode 100644 poky/bitbake/doc/template/gloss-permalinks.xsl delete mode 100644 poky/bitbake/doc/template/permalinks.xsl delete mode 100644 poky/bitbake/doc/template/section.title.xsl delete mode 100644 poky/bitbake/doc/template/titlepage.templates.xml delete mode 100755 poky/bitbake/doc/tools/docbook-to-pdf delete mode 100644 poky/bitbake/lib/bb/COW.py delete mode 100644 poky/bitbake/lib/bb/__init__.py delete mode 100644 poky/bitbake/lib/bb/build.py delete mode 100644 poky/bitbake/lib/bb/cache.py delete mode 100644 poky/bitbake/lib/bb/cache_extra.py delete mode 100644 poky/bitbake/lib/bb/checksum.py delete mode 100644 poky/bitbake/lib/bb/codeparser.py delete mode 100644 poky/bitbake/lib/bb/command.py delete mode 100644 poky/bitbake/lib/bb/compat.py delete mode 100644 poky/bitbake/lib/bb/cooker.py delete mode 100644 poky/bitbake/lib/bb/cookerdata.py delete mode 100644 poky/bitbake/lib/bb/daemonize.py delete mode 100644 poky/bitbake/lib/bb/data.py delete mode 100644 poky/bitbake/lib/bb/data_smart.py delete mode 100644 poky/bitbake/lib/bb/event.py delete mode 100644 poky/bitbake/lib/bb/exceptions.py delete mode 100644 poky/bitbake/lib/bb/fetch2/__init__.py delete mode 100644 poky/bitbake/lib/bb/fetch2/bzr.py delete mode 100644 poky/bitbake/lib/bb/fetch2/clearcase.py delete mode 100644 poky/bitbake/lib/bb/fetch2/cvs.py delete mode 100644 poky/bitbake/lib/bb/fetch2/git.py delete mode 100644 poky/bitbake/lib/bb/fetch2/gitannex.py delete mode 100644 poky/bitbake/lib/bb/fetch2/gitsm.py delete mode 100644 poky/bitbake/lib/bb/fetch2/hg.py delete mode 100644 poky/bitbake/lib/bb/fetch2/local.py delete mode 100644 poky/bitbake/lib/bb/fetch2/npm.py delete mode 100644 poky/bitbake/lib/bb/fetch2/osc.py delete mode 100644 poky/bitbake/lib/bb/fetch2/perforce.py delete mode 100644 poky/bitbake/lib/bb/fetch2/repo.py delete mode 100644 poky/bitbake/lib/bb/fetch2/s3.py delete mode 100644 poky/bitbake/lib/bb/fetch2/sftp.py delete mode 100644 poky/bitbake/lib/bb/fetch2/ssh.py delete mode 100644 poky/bitbake/lib/bb/fetch2/svn.py delete mode 100644 poky/bitbake/lib/bb/fetch2/wget.py delete mode 100755 poky/bitbake/lib/bb/main.py delete mode 100644 poky/bitbake/lib/bb/methodpool.py delete mode 100644 poky/bitbake/lib/bb/monitordisk.py delete mode 100644 poky/bitbake/lib/bb/msg.py delete mode 100644 poky/bitbake/lib/bb/namedtuple_with_abc.py delete mode 100644 poky/bitbake/lib/bb/parse/__init__.py delete mode 100644 poky/bitbake/lib/bb/parse/ast.py delete mode 100644 poky/bitbake/lib/bb/parse/parse_py/BBHandler.py delete mode 100644 poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py delete mode 100644 poky/bitbake/lib/bb/parse/parse_py/__init__.py delete mode 100644 poky/bitbake/lib/bb/persist_data.py delete mode 100644 poky/bitbake/lib/bb/process.py delete mode 100644 poky/bitbake/lib/bb/progress.py delete mode 100644 poky/bitbake/lib/bb/providers.py delete mode 100644 poky/bitbake/lib/bb/pysh/__init__.py delete mode 100644 poky/bitbake/lib/bb/pysh/builtin.py delete mode 100644 poky/bitbake/lib/bb/pysh/interp.py delete mode 100644 poky/bitbake/lib/bb/pysh/lsprof.py delete mode 100644 poky/bitbake/lib/bb/pysh/pysh.py delete mode 100644 poky/bitbake/lib/bb/pysh/pyshlex.py delete mode 100644 poky/bitbake/lib/bb/pysh/pyshyacc.py delete mode 100644 poky/bitbake/lib/bb/pysh/sherrors.py delete mode 100644 poky/bitbake/lib/bb/pysh/subprocess_fix.py delete mode 100644 poky/bitbake/lib/bb/remotedata.py delete mode 100644 poky/bitbake/lib/bb/runqueue.py delete mode 100644 poky/bitbake/lib/bb/server/__init__.py delete mode 100644 poky/bitbake/lib/bb/server/process.py delete mode 100644 poky/bitbake/lib/bb/server/xmlrpcclient.py delete mode 100644 poky/bitbake/lib/bb/server/xmlrpcserver.py delete mode 100644 poky/bitbake/lib/bb/shell.py delete mode 100644 poky/bitbake/lib/bb/siggen.py delete mode 100644 poky/bitbake/lib/bb/taskdata.py delete mode 100644 poky/bitbake/lib/bb/tests/__init__.py delete mode 100644 poky/bitbake/lib/bb/tests/codeparser.py delete mode 100644 poky/bitbake/lib/bb/tests/cow.py delete mode 100644 poky/bitbake/lib/bb/tests/data.py delete mode 100644 poky/bitbake/lib/bb/tests/event.py delete mode 100644 poky/bitbake/lib/bb/tests/fetch.py delete mode 100644 poky/bitbake/lib/bb/tests/parse.py delete mode 100644 poky/bitbake/lib/bb/tests/utils.py delete mode 100644 poky/bitbake/lib/bb/tinfoil.py delete mode 100644 poky/bitbake/lib/bb/ui/__init__.py delete mode 100644 poky/bitbake/lib/bb/ui/buildinfohelper.py delete mode 100644 poky/bitbake/lib/bb/ui/icons/images/images_display.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/images/images_hover.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/indicators/add-hover.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/indicators/add.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/indicators/alert.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/indicators/confirmation.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/indicators/denied.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/indicators/error.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/indicators/info.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/indicators/issues.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/indicators/refresh.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/indicators/remove-hover.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/indicators/remove.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/indicators/tick.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/info/info_display.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/info/info_hover.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/layers/layers_display.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/layers/layers_hover.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/packages/packages_display.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/packages/packages_hover.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/recipe/recipe_display.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/recipe/recipe_hover.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/settings/settings_display.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/settings/settings_hover.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/templates/templates_display.png delete mode 100644 poky/bitbake/lib/bb/ui/icons/templates/templates_hover.png delete mode 100644 poky/bitbake/lib/bb/ui/knotty.py delete mode 100644 poky/bitbake/lib/bb/ui/ncurses.py delete mode 100644 poky/bitbake/lib/bb/ui/taskexp.py delete mode 100644 poky/bitbake/lib/bb/ui/toasterui.py delete mode 100644 poky/bitbake/lib/bb/ui/uievent.py delete mode 100644 poky/bitbake/lib/bb/ui/uihelper.py delete mode 100644 poky/bitbake/lib/bb/utils.py delete mode 100644 poky/bitbake/lib/bblayers/__init__.py delete mode 100644 poky/bitbake/lib/bblayers/action.py delete mode 100644 poky/bitbake/lib/bblayers/common.py delete mode 100644 poky/bitbake/lib/bblayers/layerindex.py delete mode 100644 poky/bitbake/lib/bblayers/query.py delete mode 100644 poky/bitbake/lib/bs4/AUTHORS.txt delete mode 100644 poky/bitbake/lib/bs4/COPYING.txt delete mode 100644 poky/bitbake/lib/bs4/NEWS.txt delete mode 100644 poky/bitbake/lib/bs4/__init__.py delete mode 100644 poky/bitbake/lib/bs4/builder/__init__.py delete mode 100644 poky/bitbake/lib/bs4/builder/_html5lib.py delete mode 100644 poky/bitbake/lib/bs4/builder/_htmlparser.py delete mode 100644 poky/bitbake/lib/bs4/builder/_lxml.py delete mode 100644 poky/bitbake/lib/bs4/dammit.py delete mode 100644 poky/bitbake/lib/bs4/diagnose.py delete mode 100644 poky/bitbake/lib/bs4/element.py delete mode 100644 poky/bitbake/lib/bs4/testing.py delete mode 100644 poky/bitbake/lib/bs4/tests/__init__.py delete mode 100644 poky/bitbake/lib/bs4/tests/test_builder_registry.py delete mode 100644 poky/bitbake/lib/bs4/tests/test_docs.py delete mode 100644 poky/bitbake/lib/bs4/tests/test_html5lib.py delete mode 100644 poky/bitbake/lib/bs4/tests/test_htmlparser.py delete mode 100644 poky/bitbake/lib/bs4/tests/test_lxml.py delete mode 100644 poky/bitbake/lib/bs4/tests/test_soup.py delete mode 100644 poky/bitbake/lib/bs4/tests/test_tree.py delete mode 100644 poky/bitbake/lib/codegen.py delete mode 100644 poky/bitbake/lib/ply/__init__.py delete mode 100644 poky/bitbake/lib/ply/lex.py delete mode 100644 poky/bitbake/lib/ply/yacc.py delete mode 100644 poky/bitbake/lib/progressbar/LICENSE.txt delete mode 100644 poky/bitbake/lib/progressbar/__init__.py delete mode 100644 poky/bitbake/lib/progressbar/compat.py delete mode 100644 poky/bitbake/lib/progressbar/progressbar.py delete mode 100644 poky/bitbake/lib/progressbar/widgets.py delete mode 100644 poky/bitbake/lib/prserv/__init__.py delete mode 100644 poky/bitbake/lib/prserv/db.py delete mode 100644 poky/bitbake/lib/prserv/serv.py delete mode 100644 poky/bitbake/lib/pyinotify.py delete mode 100644 poky/bitbake/lib/simplediff/LICENSE delete mode 100644 poky/bitbake/lib/simplediff/__init__.py delete mode 100644 poky/bitbake/lib/toaster/__init__.py delete mode 100644 poky/bitbake/lib/toaster/bldcollector/__init__.py delete mode 100644 poky/bitbake/lib/toaster/bldcollector/admin.py delete mode 100644 poky/bitbake/lib/toaster/bldcollector/urls.py delete mode 100644 poky/bitbake/lib/toaster/bldcollector/views.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/__init__.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/admin.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/bbcontroller.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/management/__init__.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/management/commands/__init__.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/migrations/0001_initial.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/migrations/0002_auto_20160120_1250.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/migrations/0003_add_cancelling_state.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/migrations/0004_auto_20160523_1446.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/migrations/0005_reorder_buildrequest_states.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/migrations/0006_brlayer_local_source_dir.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/migrations/0007_brlayers_optional_gitinfo.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/migrations/__init__.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/models.py delete mode 100644 poky/bitbake/lib/toaster/bldcontrol/views.py delete mode 100755 poky/bitbake/lib/toaster/manage.py delete mode 100644 poky/bitbake/lib/toaster/orm/__init__.py delete mode 100644 poky/bitbake/lib/toaster/orm/fixtures/README delete mode 100755 poky/bitbake/lib/toaster/orm/fixtures/custom_toaster_append.sh_sample delete mode 100644 poky/bitbake/lib/toaster/orm/fixtures/oe-core.xml delete mode 100644 poky/bitbake/lib/toaster/orm/fixtures/poky.xml delete mode 100644 poky/bitbake/lib/toaster/orm/fixtures/settings.xml delete mode 100644 poky/bitbake/lib/toaster/orm/management/__init__.py delete mode 100644 poky/bitbake/lib/toaster/orm/management/commands/__init__.py delete mode 100644 poky/bitbake/lib/toaster/orm/management/commands/lsupdates.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0001_initial.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0002_customimagerecipe.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0003_customimagepackage.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0004_provides.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0005_task_field_separation.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0006_add_cancelled_state.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0007_auto_20160523_1446.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0008_refactor_artifact_models.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0009_target_package_manifest_path.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0010_delete_layer_source_references.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0011_delete_layersource.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0012_use_release_instead_of_up_branch.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0013_recipe_parse_progress_fields.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0014_allow_empty_buildname.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0015_layer_local_source_dir.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0016_clone_progress.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/0017_distro_clone.py delete mode 100644 poky/bitbake/lib/toaster/orm/migrations/__init__.py delete mode 100644 poky/bitbake/lib/toaster/orm/models.py delete mode 100644 poky/bitbake/lib/toaster/tests/__init__.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/README delete mode 100644 poky/bitbake/lib/toaster/tests/browser/__init__.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/selenium_helpers.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/selenium_helpers_base.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_all_builds_page.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_all_projects_page.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_builddashboard_page.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_builddashboard_page_recipes.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_builddashboard_page_tasks.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_js_unit_tests.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_landing_page.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_layerdetails_page.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_most_recent_builds_states.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_new_project_page.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_project_builds_page.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_project_config_page.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_project_page.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_sample.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_task_page.py delete mode 100644 poky/bitbake/lib/toaster/tests/browser/test_toastertable_ui.py delete mode 100644 poky/bitbake/lib/toaster/tests/builds/README delete mode 100644 poky/bitbake/lib/toaster/tests/builds/__init__.py delete mode 100644 poky/bitbake/lib/toaster/tests/builds/buildtest.py delete mode 100644 poky/bitbake/lib/toaster/tests/builds/test_core_image_min.py delete mode 100644 poky/bitbake/lib/toaster/tests/commands/__init__.py delete mode 100644 poky/bitbake/lib/toaster/tests/commands/test_loaddata.py delete mode 100644 poky/bitbake/lib/toaster/tests/commands/test_lsupdates.py delete mode 100644 poky/bitbake/lib/toaster/tests/commands/test_runbuilds.py delete mode 100644 poky/bitbake/lib/toaster/tests/db/__init__.py delete mode 100644 poky/bitbake/lib/toaster/tests/db/test_db.py delete mode 100644 poky/bitbake/lib/toaster/tests/eventreplay/README delete mode 100644 poky/bitbake/lib/toaster/tests/eventreplay/__init__.py delete mode 100644 poky/bitbake/lib/toaster/tests/functional/README delete mode 100644 poky/bitbake/lib/toaster/tests/functional/__init__.py delete mode 100644 poky/bitbake/lib/toaster/tests/functional/functional_helpers.py delete mode 100644 poky/bitbake/lib/toaster/tests/functional/test_functional_basic.py delete mode 100644 poky/bitbake/lib/toaster/tests/toaster-tests-requirements.txt delete mode 100644 poky/bitbake/lib/toaster/tests/views/README delete mode 100644 poky/bitbake/lib/toaster/tests/views/__init__.py delete mode 100644 poky/bitbake/lib/toaster/tests/views/test_views.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/__init__.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/api.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/buildtables.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/fixtures/toastergui-unittest-data.xml delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/bootstrap.css delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/bootstrap.css.map delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/bootstrap.min.css delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/bootstrap.min.css.map delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/default.css delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/font-awesome.min.css delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-bg_diagonals-thick_20_666666_40x40.png delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-bg_flat_10_000000_40x100.png delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-bg_glass_100_f6f6f6_1x400.png delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-bg_glass_100_fdf5ce_1x400.png delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-bg_glass_65_ffffff_1x400.png delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-icons_222222_256x240.png delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-icons_228ef1_256x240.png delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-icons_ef8c08_256x240.png delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-icons_ffd27a_256x240.png delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/images/ui-icons_ffffff_256x240.png delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/jquery-ui.min.css delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/jquery-ui.structure.min.css delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/css/jquery-ui.theme.min.css delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/jquery.treetable.css delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/jquery.treetable.theme.default.css delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/jquery.treetable.theme.toaster.css delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/qunit-1.18.0.css delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/css/screen.css delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/fonts/FontAwesome.otf delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/fonts/fontawesome-webfont.eot delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/fonts/fontawesome-webfont.svg delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/fonts/fontawesome-webfont.ttf delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/fonts/fontawesome-webfont.woff delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/fonts/glyphicons-halflings-regular.eot delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/fonts/glyphicons-halflings-regular.svg delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/fonts/glyphicons-halflings-regular.ttf delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/fonts/glyphicons-halflings-regular.woff delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/fonts/glyphicons-halflings-regular.woff2 delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/html/layer_deps_modal.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/img/logo.png delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/img/toaster_bw.png delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/jquery-treetable-license/GPL-LICENSE.txt delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/jquery-treetable-license/MIT-LICENSE.txt delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/jquery-treetable-license/README.md delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/jquery.treetable.theme.toaster.css delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/.jshintrc delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/bootstrap.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/bootstrap.min.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/customrecipe.js delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/js/filtersnippet.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/highlight.pack.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/importlayer.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/jquery-2.0.3.min.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/jquery-2.0.3.min.map delete mode 100755 poky/bitbake/lib/toaster/toastergui/static/js/jquery-ui.min.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/jquery.cookie.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/jquery.treetable.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/jsrender.min.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/layerBtn.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/layerDepsModal.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/layerdetails.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/libtoaster.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/mrbsection.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/newcustomimage_modal.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/projectpage.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/qunit-1.18.0.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/recipedetails.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/table.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/tests/test.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/typeahead.jquery.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/ui-bootstrap-tpls-0.11.0.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/static/js/ui-bootstrap-tpls-0.11.0.min.js delete mode 100644 poky/bitbake/lib/toaster/toastergui/tablefilter.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/tables.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/base.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/basebuildpage.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/baseprojectbuildspage.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/basetable_top.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/basetable_top_layers.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/bfile.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/brtargets.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/builddashboard.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/buildinfo-toastertable.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/configuration.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/configvars.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/cpuusage.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/customise_btn.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/customrecipe.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/detail_search_header.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/dirinfo.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/diskio.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/distro_btn.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/editcustomimage_modal.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/filtersnippet.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/generic-toastertable-page.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/health.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/importlayer.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/js-unit-tests.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/landing.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/landing_not_managed.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/layer_btn.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/layerdetails.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/machine_btn.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/mrb_section.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/newcustomimage.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/newproject.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/package_built_detail.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/package_detail_base.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/package_included_detail.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/package_included_tabs.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/pkg_add_rm_btn.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/project.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/projectbuilds.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/projectconf.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/projects-toastertable.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/projecttopbar.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/recipe.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/recipe_btn.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/recipe_packages.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/recipedetails.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/snippets/gitrev_popover.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/snippets/pkg_revdependencies_popover.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/tablesort.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/target.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/task.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/toastertable-filter.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/toastertable-simple.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/toastertable.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templates/unavailable_artifact.html delete mode 100644 poky/bitbake/lib/toaster/toastergui/templatetags/__init__.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/templatetags/field_values_filter.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/templatetags/objects_to_dictionaries_filter.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/templatetags/project_url_tag.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/templatetags/projecttags.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/typeaheads.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/urls.py delete mode 100755 poky/bitbake/lib/toaster/toastergui/views.py delete mode 100644 poky/bitbake/lib/toaster/toastergui/widgets.py delete mode 100644 poky/bitbake/lib/toaster/toastermain/__init__.py delete mode 100644 poky/bitbake/lib/toaster/toastermain/management/__init__.py delete mode 100644 poky/bitbake/lib/toaster/toastermain/management/commands/__init__.py delete mode 100644 poky/bitbake/lib/toaster/toastermain/management/commands/builddelete.py delete mode 100644 poky/bitbake/lib/toaster/toastermain/management/commands/buildslist.py delete mode 100644 poky/bitbake/lib/toaster/toastermain/management/commands/checksocket.py delete mode 100644 poky/bitbake/lib/toaster/toastermain/management/commands/perf.py delete mode 100644 poky/bitbake/lib/toaster/toastermain/settings.py delete mode 100644 poky/bitbake/lib/toaster/toastermain/settings_production_example.py delete mode 100644 poky/bitbake/lib/toaster/toastermain/settings_test.py delete mode 100644 poky/bitbake/lib/toaster/toastermain/urls.py delete mode 100644 poky/bitbake/lib/toaster/toastermain/wsgi.py delete mode 100644 poky/bitbake/toaster-requirements.txt delete mode 100644 poky/documentation/Makefile delete mode 100644 poky/documentation/README delete mode 100644 poky/documentation/adt-manual/adt-command.xml delete mode 100644 poky/documentation/adt-manual/adt-intro.xml delete mode 100644 poky/documentation/adt-manual/adt-manual-customization.xsl delete mode 100644 poky/documentation/adt-manual/adt-manual-eclipse-customization.xsl delete mode 100644 poky/documentation/adt-manual/adt-manual-intro.xml delete mode 100644 poky/documentation/adt-manual/adt-manual.xml delete mode 100644 poky/documentation/adt-manual/adt-package.xml delete mode 100644 poky/documentation/adt-manual/adt-prepare.xml delete mode 100644 poky/documentation/adt-manual/adt-style.css delete mode 100644 poky/documentation/adt-manual/figures/adt-title.png delete mode 100644 poky/documentation/adt-manual/figures/using-a-pre-built-image.png delete mode 100644 poky/documentation/bsp-guide/bsp-guide-customization.xsl delete mode 100644 poky/documentation/bsp-guide/bsp-guide-eclipse-customization.xsl delete mode 100644 poky/documentation/bsp-guide/bsp-guide.xml delete mode 100644 poky/documentation/bsp-guide/bsp-style.css delete mode 100644 poky/documentation/bsp-guide/bsp.xml delete mode 100644 poky/documentation/bsp-guide/figures/bsp-dev-flow.png delete mode 100644 poky/documentation/bsp-guide/figures/bsp-title.png delete mode 100644 poky/documentation/dev-manual/dev-manual-common-tasks.xml delete mode 100644 poky/documentation/dev-manual/dev-manual-customization.xsl delete mode 100644 poky/documentation/dev-manual/dev-manual-eclipse-customization.xsl delete mode 100644 poky/documentation/dev-manual/dev-manual-intro.xml delete mode 100644 poky/documentation/dev-manual/dev-manual-newbie.xml delete mode 100644 poky/documentation/dev-manual/dev-manual-qemu.xml delete mode 100644 poky/documentation/dev-manual/dev-manual-start.xml delete mode 100644 poky/documentation/dev-manual/dev-manual.xml delete mode 100644 poky/documentation/dev-manual/dev-style.css delete mode 100644 poky/documentation/dev-manual/figures/bitbake-build-flow.png delete mode 100644 poky/documentation/dev-manual/figures/dev-title.png delete mode 100644 poky/documentation/dev-manual/figures/recipe-workflow.png delete mode 100755 poky/documentation/kernel-dev/figures/kernel-architecture-overview.png delete mode 100644 poky/documentation/kernel-dev/figures/kernel-dev-flow.png delete mode 100644 poky/documentation/kernel-dev/figures/kernel-dev-title.png delete mode 100644 poky/documentation/kernel-dev/figures/kernel-overview-2-generic.png delete mode 100644 poky/documentation/kernel-dev/kernel-dev-advanced.xml delete mode 100644 poky/documentation/kernel-dev/kernel-dev-common.xml delete mode 100644 poky/documentation/kernel-dev/kernel-dev-concepts-appx.xml delete mode 100644 poky/documentation/kernel-dev/kernel-dev-customization.xsl delete mode 100644 poky/documentation/kernel-dev/kernel-dev-eclipse-customization.xsl delete mode 100644 poky/documentation/kernel-dev/kernel-dev-faq.xml delete mode 100644 poky/documentation/kernel-dev/kernel-dev-intro.xml delete mode 100644 poky/documentation/kernel-dev/kernel-dev-maint-appx.xml delete mode 100644 poky/documentation/kernel-dev/kernel-dev-style.css delete mode 100644 poky/documentation/kernel-dev/kernel-dev.xml delete mode 100644 poky/documentation/mega-manual/figures/YP-flow-diagram.png delete mode 100644 poky/documentation/mega-manual/figures/add-variable.png delete mode 100644 poky/documentation/mega-manual/figures/analysis-for-package-splitting.png delete mode 100644 poky/documentation/mega-manual/figures/bash-oecore.png delete mode 100644 poky/documentation/mega-manual/figures/bitbake-build-flow.png delete mode 100644 poky/documentation/mega-manual/figures/bsp-dev-flow.png delete mode 100644 poky/documentation/mega-manual/figures/bsp-title.png delete mode 100644 poky/documentation/mega-manual/figures/build-workspace-directory.png delete mode 100644 poky/documentation/mega-manual/figures/buildhistory-web.png delete mode 100644 poky/documentation/mega-manual/figures/buildhistory.png delete mode 100755 poky/documentation/mega-manual/figures/building-an-image.png delete mode 100644 poky/documentation/mega-manual/figures/compatible-layers.png delete mode 100644 poky/documentation/mega-manual/figures/configuration-compile-autoreconf.png delete mode 100644 poky/documentation/mega-manual/figures/cross-development-toolchains.png delete mode 100644 poky/documentation/mega-manual/figures/define-generic.png delete mode 100644 poky/documentation/mega-manual/figures/dev-title.png delete mode 100644 poky/documentation/mega-manual/figures/git-workflow.png delete mode 100644 poky/documentation/mega-manual/figures/hosted-service.png delete mode 100644 poky/documentation/mega-manual/figures/image-generation.png delete mode 100644 poky/documentation/mega-manual/figures/images.png delete mode 100644 poky/documentation/mega-manual/figures/import-layer.png delete mode 100644 poky/documentation/mega-manual/figures/index-downloads.png delete mode 100755 poky/documentation/mega-manual/figures/kernel-architecture-overview.png delete mode 100644 poky/documentation/mega-manual/figures/kernel-dev-flow.png delete mode 100644 poky/documentation/mega-manual/figures/kernel-dev-title.png delete mode 100644 poky/documentation/mega-manual/figures/kernel-overview-1.png delete mode 100644 poky/documentation/mega-manual/figures/kernel-overview-2-generic.png delete mode 100644 poky/documentation/mega-manual/figures/kernel-title.png delete mode 100644 poky/documentation/mega-manual/figures/kernelshark-all.png delete mode 100644 poky/documentation/mega-manual/figures/kernelshark-choose-events.png delete mode 100644 poky/documentation/mega-manual/figures/kernelshark-i915-display.png delete mode 100644 poky/documentation/mega-manual/figures/kernelshark-output-display.png delete mode 100644 poky/documentation/mega-manual/figures/layer-input.png delete mode 100644 poky/documentation/mega-manual/figures/lttngmain0.png delete mode 100644 poky/documentation/mega-manual/figures/mega-title.png delete mode 100644 poky/documentation/mega-manual/figures/new-project.png delete mode 100644 poky/documentation/mega-manual/figures/oprofileui-busybox.png delete mode 100644 poky/documentation/mega-manual/figures/oprofileui-copy-to-user.png delete mode 100644 poky/documentation/mega-manual/figures/oprofileui-downloading.png delete mode 100644 poky/documentation/mega-manual/figures/oprofileui-processes.png delete mode 100644 poky/documentation/mega-manual/figures/package-feeds.png delete mode 100644 poky/documentation/mega-manual/figures/patching.png delete mode 100644 poky/documentation/mega-manual/figures/perf-probe-do_fork-profile.png delete mode 100644 poky/documentation/mega-manual/figures/perf-report-cycles-u.png delete mode 100644 poky/documentation/mega-manual/figures/perf-systemwide-libc.png delete mode 100644 poky/documentation/mega-manual/figures/perf-systemwide.png delete mode 100644 poky/documentation/mega-manual/figures/perf-wget-busybox-annotate-menu.png delete mode 100644 poky/documentation/mega-manual/figures/perf-wget-busybox-annotate-udhcpc.png delete mode 100644 poky/documentation/mega-manual/figures/perf-wget-busybox-debuginfo.png delete mode 100644 poky/documentation/mega-manual/figures/perf-wget-busybox-dso-zoom-menu.png delete mode 100644 poky/documentation/mega-manual/figures/perf-wget-busybox-dso-zoom.png delete mode 100644 poky/documentation/mega-manual/figures/perf-wget-busybox-expanded-stripped.png delete mode 100644 poky/documentation/mega-manual/figures/perf-wget-flat-stripped.png delete mode 100644 poky/documentation/mega-manual/figures/perf-wget-g-copy-from-user-expanded-stripped.png delete mode 100644 poky/documentation/mega-manual/figures/perf-wget-g-copy-to-user-expanded-debuginfo.png delete mode 100644 poky/documentation/mega-manual/figures/perf-wget-g-copy-to-user-expanded-stripped-unresolved-hidden.png delete mode 100644 poky/documentation/mega-manual/figures/perf-wget-g-copy-to-user-expanded-stripped.png delete mode 100644 poky/documentation/mega-manual/figures/poky-title.png delete mode 100644 poky/documentation/mega-manual/figures/profile-title.png delete mode 100644 poky/documentation/mega-manual/figures/pybootchartgui-linux-yocto.png delete mode 100644 poky/documentation/mega-manual/figures/pychart-linux-yocto-rpm-nostrip.png delete mode 100644 poky/documentation/mega-manual/figures/pychart-linux-yocto-rpm.png delete mode 100644 poky/documentation/mega-manual/figures/recipe-workflow.png delete mode 100644 poky/documentation/mega-manual/figures/sched-wakeup-profile.png delete mode 100644 poky/documentation/mega-manual/figures/sdk-devtool-add-flow.png delete mode 100644 poky/documentation/mega-manual/figures/sdk-devtool-modify-flow.png delete mode 100644 poky/documentation/mega-manual/figures/sdk-devtool-upgrade-flow.png delete mode 100644 poky/documentation/mega-manual/figures/sdk-eclipse-dev-flow.png delete mode 100644 poky/documentation/mega-manual/figures/sdk-environment.png delete mode 100755 poky/documentation/mega-manual/figures/sdk-generation.png delete mode 100644 poky/documentation/mega-manual/figures/sdk-installed-extensible-sdk-directory.png delete mode 100644 poky/documentation/mega-manual/figures/sdk-installed-standard-sdk-directory.png delete mode 100644 poky/documentation/mega-manual/figures/sdk-title.png delete mode 100644 poky/documentation/mega-manual/figures/sdk.png delete mode 100644 poky/documentation/mega-manual/figures/set-variable.png delete mode 100644 poky/documentation/mega-manual/figures/simple-configuration.png delete mode 100644 poky/documentation/mega-manual/figures/source-fetching.png delete mode 100644 poky/documentation/mega-manual/figures/source-input.png delete mode 100644 poky/documentation/mega-manual/figures/source-repos.png delete mode 100644 poky/documentation/mega-manual/figures/sysprof-callers.png delete mode 100644 poky/documentation/mega-manual/figures/sysprof-copy-from-user.png delete mode 100644 poky/documentation/mega-manual/figures/sysprof-copy-to-user.png delete mode 100644 poky/documentation/mega-manual/figures/toaster-title.png delete mode 100755 poky/documentation/mega-manual/figures/user-configuration.png delete mode 100644 poky/documentation/mega-manual/figures/using-a-pre-built-image.png delete mode 100644 poky/documentation/mega-manual/figures/variable-added.png delete mode 100644 poky/documentation/mega-manual/figures/yocto-environment-ref.png delete mode 100755 poky/documentation/mega-manual/figures/yocto-project-transp.png delete mode 100644 poky/documentation/mega-manual/figures/yp-download.png delete mode 100644 poky/documentation/mega-manual/mega-manual-customization.xsl delete mode 100644 poky/documentation/mega-manual/mega-manual.xml delete mode 100644 poky/documentation/mega-manual/mega-style.css delete mode 100644 poky/documentation/poky.ent delete mode 100644 poky/documentation/profile-manual/figures/kernelshark-all.png delete mode 100644 poky/documentation/profile-manual/figures/kernelshark-choose-events.png delete mode 100644 poky/documentation/profile-manual/figures/kernelshark-i915-display.png delete mode 100644 poky/documentation/profile-manual/figures/kernelshark-output-display.png delete mode 100644 poky/documentation/profile-manual/figures/lttngmain0.png delete mode 100644 poky/documentation/profile-manual/figures/oprofileui-busybox.png delete mode 100644 poky/documentation/profile-manual/figures/oprofileui-copy-to-user.png delete mode 100644 poky/documentation/profile-manual/figures/oprofileui-downloading.png delete mode 100644 poky/documentation/profile-manual/figures/oprofileui-processes.png delete mode 100644 poky/documentation/profile-manual/figures/perf-probe-do_fork-profile.png delete mode 100644 poky/documentation/profile-manual/figures/perf-report-cycles-u.png delete mode 100644 poky/documentation/profile-manual/figures/perf-systemwide-libc.png delete mode 100644 poky/documentation/profile-manual/figures/perf-systemwide.png delete mode 100644 poky/documentation/profile-manual/figures/perf-wget-busybox-annotate-menu.png delete mode 100644 poky/documentation/profile-manual/figures/perf-wget-busybox-annotate-udhcpc.png delete mode 100644 poky/documentation/profile-manual/figures/perf-wget-busybox-debuginfo.png delete mode 100644 poky/documentation/profile-manual/figures/perf-wget-busybox-dso-zoom-menu.png delete mode 100644 poky/documentation/profile-manual/figures/perf-wget-busybox-dso-zoom.png delete mode 100644 poky/documentation/profile-manual/figures/perf-wget-busybox-expanded-stripped.png delete mode 100644 poky/documentation/profile-manual/figures/perf-wget-flat-stripped.png delete mode 100644 poky/documentation/profile-manual/figures/perf-wget-g-copy-from-user-expanded-stripped.png delete mode 100644 poky/documentation/profile-manual/figures/perf-wget-g-copy-to-user-expanded-debuginfo.png delete mode 100644 poky/documentation/profile-manual/figures/perf-wget-g-copy-to-user-expanded-stripped-unresolved-hidden.png delete mode 100644 poky/documentation/profile-manual/figures/perf-wget-g-copy-to-user-expanded-stripped.png delete mode 100644 poky/documentation/profile-manual/figures/profile-title.png delete mode 100644 poky/documentation/profile-manual/figures/pybootchartgui-linux-yocto.png delete mode 100644 poky/documentation/profile-manual/figures/pychart-linux-yocto-rpm-nostrip.png delete mode 100644 poky/documentation/profile-manual/figures/pychart-linux-yocto-rpm.png delete mode 100644 poky/documentation/profile-manual/figures/sched-wakeup-profile.png delete mode 100644 poky/documentation/profile-manual/figures/sysprof-callers.png delete mode 100644 poky/documentation/profile-manual/figures/sysprof-copy-from-user.png delete mode 100644 poky/documentation/profile-manual/figures/sysprof-copy-to-user.png delete mode 100644 poky/documentation/profile-manual/profile-manual-arch.xml delete mode 100644 poky/documentation/profile-manual/profile-manual-customization.xsl delete mode 100644 poky/documentation/profile-manual/profile-manual-eclipse-customization.xsl delete mode 100644 poky/documentation/profile-manual/profile-manual-examples.xml delete mode 100644 poky/documentation/profile-manual/profile-manual-intro.xml delete mode 100644 poky/documentation/profile-manual/profile-manual-style.css delete mode 100644 poky/documentation/profile-manual/profile-manual-usage.xml delete mode 100644 poky/documentation/profile-manual/profile-manual.xml delete mode 100644 poky/documentation/ref-manual/TODO delete mode 100644 poky/documentation/ref-manual/examples/hello-autotools/hello_2.3.bb delete mode 100644 poky/documentation/ref-manual/examples/hello-single/files/helloworld.c delete mode 100644 poky/documentation/ref-manual/examples/hello-single/hello.bb delete mode 100644 poky/documentation/ref-manual/examples/libxpm/libxpm_3.5.6.bb delete mode 100644 poky/documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb delete mode 100644 poky/documentation/ref-manual/faq.xml delete mode 100644 poky/documentation/ref-manual/figures/YP-flow-diagram.png delete mode 100644 poky/documentation/ref-manual/figures/analysis-for-package-splitting.png delete mode 100644 poky/documentation/ref-manual/figures/build-workspace-directory.png delete mode 100644 poky/documentation/ref-manual/figures/buildhistory-web.png delete mode 100644 poky/documentation/ref-manual/figures/buildhistory.png delete mode 100755 poky/documentation/ref-manual/figures/building-an-image.png delete mode 100644 poky/documentation/ref-manual/figures/configuration-compile-autoreconf.png delete mode 100644 poky/documentation/ref-manual/figures/cross-development-toolchains.png delete mode 100644 poky/documentation/ref-manual/figures/define-generic.png delete mode 100644 poky/documentation/ref-manual/figures/git-workflow.png delete mode 100644 poky/documentation/ref-manual/figures/image-generation.png delete mode 100644 poky/documentation/ref-manual/figures/images.png delete mode 100644 poky/documentation/ref-manual/figures/index-downloads.png delete mode 100644 poky/documentation/ref-manual/figures/layer-input.png delete mode 100644 poky/documentation/ref-manual/figures/package-feeds.png delete mode 100644 poky/documentation/ref-manual/figures/patching.png delete mode 100644 poky/documentation/ref-manual/figures/poky-title.png delete mode 100755 poky/documentation/ref-manual/figures/sdk-generation.png delete mode 100644 poky/documentation/ref-manual/figures/sdk.png delete mode 100644 poky/documentation/ref-manual/figures/source-fetching.png delete mode 100644 poky/documentation/ref-manual/figures/source-input.png delete mode 100644 poky/documentation/ref-manual/figures/source-repos.png delete mode 100755 poky/documentation/ref-manual/figures/user-configuration.png delete mode 100644 poky/documentation/ref-manual/figures/yocto-environment-ref.png delete mode 100644 poky/documentation/ref-manual/figures/yp-download.png delete mode 100644 poky/documentation/ref-manual/introduction.xml delete mode 100644 poky/documentation/ref-manual/migration.xml delete mode 100644 poky/documentation/ref-manual/ref-bitbake.xml delete mode 100644 poky/documentation/ref-manual/ref-classes.xml delete mode 100644 poky/documentation/ref-manual/ref-development-environment.xml delete mode 100644 poky/documentation/ref-manual/ref-devtool-reference.xml delete mode 100644 poky/documentation/ref-manual/ref-features.xml delete mode 100644 poky/documentation/ref-manual/ref-images.xml delete mode 100644 poky/documentation/ref-manual/ref-kickstart.xml delete mode 100644 poky/documentation/ref-manual/ref-manual-customization.xsl delete mode 100644 poky/documentation/ref-manual/ref-manual-eclipse-customization.xsl delete mode 100644 poky/documentation/ref-manual/ref-manual.xml delete mode 100644 poky/documentation/ref-manual/ref-qa-checks.xml delete mode 100644 poky/documentation/ref-manual/ref-release-process.xml delete mode 100644 poky/documentation/ref-manual/ref-structure.xml delete mode 100644 poky/documentation/ref-manual/ref-style.css delete mode 100644 poky/documentation/ref-manual/ref-tasks.xml delete mode 100644 poky/documentation/ref-manual/ref-variables.xml delete mode 100644 poky/documentation/ref-manual/ref-varlocality.xml delete mode 100644 poky/documentation/ref-manual/resources.xml delete mode 100644 poky/documentation/ref-manual/technical-details.xml delete mode 100644 poky/documentation/ref-manual/usingpoky.xml delete mode 100644 poky/documentation/sdk-manual/figures/sdk-devtool-add-flow.png delete mode 100644 poky/documentation/sdk-manual/figures/sdk-devtool-modify-flow.png delete mode 100644 poky/documentation/sdk-manual/figures/sdk-devtool-upgrade-flow.png delete mode 100644 poky/documentation/sdk-manual/figures/sdk-eclipse-dev-flow.png delete mode 100644 poky/documentation/sdk-manual/figures/sdk-environment.png delete mode 100644 poky/documentation/sdk-manual/figures/sdk-installed-extensible-sdk-directory.png delete mode 100644 poky/documentation/sdk-manual/figures/sdk-installed-standard-sdk-directory.png delete mode 100644 poky/documentation/sdk-manual/figures/sdk-title.png delete mode 100644 poky/documentation/sdk-manual/sdk-appendix-customizing-standard.xml delete mode 100644 poky/documentation/sdk-manual/sdk-appendix-customizing.xml delete mode 100644 poky/documentation/sdk-manual/sdk-appendix-mars.xml delete mode 100644 poky/documentation/sdk-manual/sdk-appendix-obtain.xml delete mode 100644 poky/documentation/sdk-manual/sdk-eclipse-project.xml delete mode 100644 poky/documentation/sdk-manual/sdk-extensible.xml delete mode 100644 poky/documentation/sdk-manual/sdk-intro.xml delete mode 100644 poky/documentation/sdk-manual/sdk-manual-customization.xsl delete mode 100644 poky/documentation/sdk-manual/sdk-manual-eclipse-customization.xsl delete mode 100644 poky/documentation/sdk-manual/sdk-manual.xml delete mode 100644 poky/documentation/sdk-manual/sdk-style.css delete mode 100644 poky/documentation/sdk-manual/sdk-using.xml delete mode 100644 poky/documentation/sdk-manual/sdk-working-projects.xml delete mode 100644 poky/documentation/template/Vera.ttf delete mode 100644 poky/documentation/template/Vera.xml delete mode 100644 poky/documentation/template/VeraMoBd.ttf delete mode 100644 poky/documentation/template/VeraMoBd.xml delete mode 100644 poky/documentation/template/VeraMono.ttf delete mode 100644 poky/documentation/template/VeraMono.xml delete mode 100644 poky/documentation/template/component.title.xsl delete mode 100644 poky/documentation/template/division.title.xsl delete mode 100644 poky/documentation/template/draft.png delete mode 100644 poky/documentation/template/embedded_video.xsl delete mode 100644 poky/documentation/template/fop-config.xml delete mode 100644 poky/documentation/template/formal.object.heading.xsl delete mode 100644 poky/documentation/template/gloss-permalinks.xsl delete mode 100644 poky/documentation/template/ohand-color.svg delete mode 100644 poky/documentation/template/permalinks.xsl delete mode 100644 poky/documentation/template/poky-db-pdf.xsl delete mode 100644 poky/documentation/template/poky-ref-manual.png delete mode 100644 poky/documentation/template/poky.svg delete mode 100644 poky/documentation/template/qa-code-permalinks.xsl delete mode 100644 poky/documentation/template/section.title.xsl delete mode 100644 poky/documentation/template/titlepage.templates.xml delete mode 100644 poky/documentation/template/yocto-project-qs.png delete mode 100644 poky/documentation/toaster-manual/figures/add-variable.png delete mode 100644 poky/documentation/toaster-manual/figures/bash-oecore.png delete mode 100644 poky/documentation/toaster-manual/figures/compatible-layers.png delete mode 100644 poky/documentation/toaster-manual/figures/hosted-service.png delete mode 100644 poky/documentation/toaster-manual/figures/import-layer.png delete mode 100644 poky/documentation/toaster-manual/figures/new-project.png delete mode 100644 poky/documentation/toaster-manual/figures/set-variable.png delete mode 100644 poky/documentation/toaster-manual/figures/simple-configuration.png delete mode 100644 poky/documentation/toaster-manual/figures/toaster-title.png delete mode 100644 poky/documentation/toaster-manual/figures/variable-added.png delete mode 100644 poky/documentation/toaster-manual/toaster-manual-customization.xsl delete mode 100644 poky/documentation/toaster-manual/toaster-manual-intro.xml delete mode 100644 poky/documentation/toaster-manual/toaster-manual-reference.xml delete mode 100644 poky/documentation/toaster-manual/toaster-manual-setup-and-use.xml delete mode 100644 poky/documentation/toaster-manual/toaster-manual-start.xml delete mode 100644 poky/documentation/toaster-manual/toaster-manual-style.css delete mode 100644 poky/documentation/toaster-manual/toaster-manual.xml delete mode 100644 poky/documentation/tools/eclipse-help.sed delete mode 100644 poky/documentation/tools/mega-manual.sed delete mode 100755 poky/documentation/tools/poky-docbook-to-pdf delete mode 100644 poky/documentation/tools/update-documentation-conf delete mode 100755 poky/documentation/yocto-project-qs/figures/yocto-project-transp.png delete mode 100644 poky/documentation/yocto-project-qs/qs-style.css delete mode 100644 poky/documentation/yocto-project-qs/yocto-project-qs-customization.xsl delete mode 100644 poky/documentation/yocto-project-qs/yocto-project-qs-eclipse-customization.xsl delete mode 100644 poky/documentation/yocto-project-qs/yocto-project-qs-titlepage.xsl delete mode 100644 poky/documentation/yocto-project-qs/yocto-project-qs.xml delete mode 100644 poky/meta-poky/README.poky delete mode 100644 poky/meta-poky/classes/poky-sanity.bbclass delete mode 100644 poky/meta-poky/conf/bblayers.conf.sample delete mode 100644 poky/meta-poky/conf/conf-notes.txt delete mode 100644 poky/meta-poky/conf/distro/include/poky-floating-revisions.inc delete mode 100644 poky/meta-poky/conf/distro/include/poky-world-exclude.inc delete mode 100644 poky/meta-poky/conf/distro/poky-bleeding.conf delete mode 100644 poky/meta-poky/conf/distro/poky-lsb.conf delete mode 100644 poky/meta-poky/conf/distro/poky-tiny.conf delete mode 100644 poky/meta-poky/conf/distro/poky.conf delete mode 100644 poky/meta-poky/conf/layer.conf delete mode 100644 poky/meta-poky/conf/local.conf.sample delete mode 100644 poky/meta-poky/conf/local.conf.sample.extended delete mode 100644 poky/meta-poky/conf/site.conf.sample delete mode 100644 poky/meta-poky/recipes-core/busybox/busybox/poky-tiny/defconfig delete mode 100644 poky/meta-poky/recipes-core/busybox/busybox_%.bbappend delete mode 100644 poky/meta-poky/recipes-core/psplash/files/psplash-poky-img.h delete mode 100644 poky/meta-poky/recipes-core/psplash/psplash_git.bbappend delete mode 100644 poky/meta-poky/recipes-core/tiny-init/files/init delete mode 100644 poky/meta-poky/recipes-core/tiny-init/files/rc.local.sample delete mode 100644 poky/meta-poky/recipes-core/tiny-init/tiny-init.bb delete mode 100644 poky/meta-selftest/COPYING.MIT delete mode 100644 poky/meta-selftest/README delete mode 100644 poky/meta-selftest/classes/test_events.bbclass delete mode 100644 poky/meta-selftest/conf/layer.conf delete mode 100644 poky/meta-selftest/conf/machine/qemux86copy.conf delete mode 100644 poky/meta-selftest/files/signing/key.passphrase delete mode 100644 poky/meta-selftest/files/signing/key.pub delete mode 100644 poky/meta-selftest/files/signing/key.secret delete mode 100644 poky/meta-selftest/files/static-group delete mode 100644 poky/meta-selftest/files/static-passwd delete mode 100644 poky/meta-selftest/lib/devtool/__init__.py delete mode 100644 poky/meta-selftest/lib/devtool/bbpath.py delete mode 100644 poky/meta-selftest/lib/devtool/test.py delete mode 100644 poky/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py delete mode 100644 poky/meta-selftest/lib/oeqa/runtime/cases/selftest.json delete mode 100644 poky/meta-selftest/lib/oeqa/runtime/cases/selftest.py delete mode 100644 poky/meta-selftest/lib/oeqa/selftest/cases/external-layer.py delete mode 100644 poky/meta-selftest/lib/recipetool/bbpath.py delete mode 100644 poky/meta-selftest/recipes-test/aspell/aspell_0.0.0.1.bb delete mode 100644 poky/meta-selftest/recipes-test/aspell/aspell_0.60.6.1.bbappend delete mode 100644 poky/meta-selftest/recipes-test/container-image/container-image-testpkg.bb delete mode 100644 poky/meta-selftest/recipes-test/container-image/container-test-image.bb delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-test-localonly.bb delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-test-localonly/file1 delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-test-localonly/file2 delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-test-patch-gz.bb delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-test-patch-gz/readme.patch.gz delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-test-subdir.bb delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-test-subdir/devtool-test-subdir.tar.gz delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-test-subdir/testfile delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/0001-Add-a-note-line-to-the-quick-reference.patch delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb delete mode 100644 poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb.upgraded delete mode 100644 poky/meta-selftest/recipes-test/emptytest/emptytest.bb delete mode 100644 poky/meta-selftest/recipes-test/error/error.bb delete mode 100644 poky/meta-selftest/recipes-test/images/error-image.bb delete mode 100644 poky/meta-selftest/recipes-test/images/oe-selftest-image.bb delete mode 100644 poky/meta-selftest/recipes-test/images/test-empty-image.bb delete mode 100644 poky/meta-selftest/recipes-test/images/wic-image-minimal.bb delete mode 100644 poky/meta-selftest/recipes-test/images/wic-image-minimal.wks delete mode 100644 poky/meta-selftest/recipes-test/m4/m4_%.bbappend delete mode 100644 poky/meta-selftest/recipes-test/man/man/man-1.5h1-make.patch delete mode 100644 poky/meta-selftest/recipes-test/man/man_1.6g.bbappend delete mode 100644 poky/meta-selftest/recipes-test/postinst/postinst_1.0.bb delete mode 100644 poky/meta-selftest/recipes-test/recipetool/files/add-file.patch delete mode 100644 poky/meta-selftest/recipes-test/recipetool/files/file1 delete mode 100644 poky/meta-selftest/recipes-test/recipetool/files/installscript.sh delete mode 100644 poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-func delete mode 100644 poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-globfile delete mode 100644 poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-todir-globfile delete mode 100644 poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-orig delete mode 100644 poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-src-globfile delete mode 100644 poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-todir delete mode 100644 poky/meta-selftest/recipes-test/recipetool/files/subdir/fileinsubdir delete mode 100644 poky/meta-selftest/recipes-test/recipetool/selftest-recipetool-appendfile.bb delete mode 100644 poky/meta-selftest/recipes-test/selftest-ed/selftest-ed_0.5.bb delete mode 100644 poky/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.14.1.bb delete mode 100644 poky/meta-selftest/recipes-test/xcursor-transparent-theme/xcursor-transparent-theme_%.bbappend delete mode 100644 poky/meta-selftest/wic/test_rawcopy_plugin.wks.in delete mode 100644 poky/meta-selftest/wic/wictestdisk.wks delete mode 100644 poky/meta-skeleton/COPYING.MIT delete mode 100644 poky/meta-skeleton/conf/layer.conf delete mode 100644 poky/meta-skeleton/conf/multilib-example.conf delete mode 100644 poky/meta-skeleton/conf/multilib-example2.conf delete mode 100644 poky/meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg delete mode 100644 poky/meta-skeleton/recipes-core/busybox/busybox_%.bbappend delete mode 100644 poky/meta-skeleton/recipes-kernel/hello-mod/files/COPYING delete mode 100644 poky/meta-skeleton/recipes-kernel/hello-mod/files/Makefile delete mode 100644 poky/meta-skeleton/recipes-kernel/hello-mod/files/hello.c delete mode 100644 poky/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb delete mode 100644 poky/meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb delete mode 100644 poky/meta-skeleton/recipes-kernel/linux/linux-yocto-custom/0001-linux-version-tweak.patch delete mode 100644 poky/meta-skeleton/recipes-kernel/linux/linux-yocto-custom/feature.scc delete mode 100644 poky/meta-skeleton/recipes-kernel/linux/linux-yocto-custom/smp.cfg delete mode 100644 poky/meta-skeleton/recipes-multilib/images/core-image-multilib-example.bb delete mode 100644 poky/meta-skeleton/recipes-skeleton/service/service/COPYRIGHT delete mode 100644 poky/meta-skeleton/recipes-skeleton/service/service/skeleton delete mode 100644 poky/meta-skeleton/recipes-skeleton/service/service/skeleton_test.c delete mode 100644 poky/meta-skeleton/recipes-skeleton/service/service_0.1.bb delete mode 100644 poky/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb delete mode 100644 poky/meta-skeleton/recipes-skeleton/useradd/useradd-example/file1 delete mode 100644 poky/meta-skeleton/recipes-skeleton/useradd/useradd-example/file2 delete mode 100644 poky/meta-skeleton/recipes-skeleton/useradd/useradd-example/file3 delete mode 100644 poky/meta-skeleton/recipes-skeleton/useradd/useradd-example/file4 delete mode 100644 poky/meta-yocto-bsp/README.hardware delete mode 100644 poky/meta-yocto-bsp/conf/layer.conf delete mode 100644 poky/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf delete mode 100644 poky/meta-yocto-bsp/conf/machine/edgerouter.conf delete mode 100644 poky/meta-yocto-bsp/conf/machine/genericx86-64.conf delete mode 100644 poky/meta-yocto-bsp/conf/machine/genericx86.conf delete mode 100644 poky/meta-yocto-bsp/conf/machine/include/genericx86-common.inc delete mode 100644 poky/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf delete mode 100644 poky/meta-yocto-bsp/lib/oeqa/controllers/__init__.py delete mode 100644 poky/meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py delete mode 100644 poky/meta-yocto-bsp/lib/oeqa/controllers/edgeroutertarget.py delete mode 100644 poky/meta-yocto-bsp/lib/oeqa/controllers/grubtarget.py delete mode 100644 poky/meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py delete mode 100644 poky/meta-yocto-bsp/recipes-bsp/formfactor/formfactor/beaglebone-yocto/machconfig delete mode 100644 poky/meta-yocto-bsp/recipes-bsp/formfactor/formfactor/genericx86-64/machconfig delete mode 100644 poky/meta-yocto-bsp/recipes-bsp/formfactor/formfactor/genericx86/machconfig delete mode 100644 poky/meta-yocto-bsp/recipes-bsp/formfactor/formfactor_0.0.bbappend delete mode 100644 poky/meta-yocto-bsp/recipes-bsp/gma500-gfx-check/gma500-gfx-check/gma500-gfx-check.conf delete mode 100644 poky/meta-yocto-bsp/recipes-bsp/gma500-gfx-check/gma500-gfx-check/gma500-gfx-check.sh delete mode 100644 poky/meta-yocto-bsp/recipes-bsp/gma500-gfx-check/gma500-gfx-check_1.0.bb delete mode 100644 poky/meta-yocto-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config/beaglebone-yocto/xorg.conf delete mode 100644 poky/meta-yocto-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config/genericx86-64/xorg.conf delete mode 100644 poky/meta-yocto-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config/genericx86/xorg.conf delete mode 100644 poky/meta-yocto-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend delete mode 100644 poky/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.10.bbappend delete mode 100644 poky/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.12.bbappend delete mode 100644 poky/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.4.bbappend delete mode 100644 poky/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.9.bbappend delete mode 100644 poky/meta-yocto-bsp/wic/beaglebone-yocto.wks delete mode 100644 poky/meta-yocto-bsp/wic/edgerouter.wks delete mode 100644 poky/meta-yocto-bsp/wic/genericx86.wks delete mode 100644 poky/meta-yocto-bsp/wic/mpc8315e-rdb.wks delete mode 100644 poky/meta/COPYING.GPLv2 delete mode 100644 poky/meta/COPYING.MIT delete mode 100644 poky/meta/classes/allarch.bbclass delete mode 100644 poky/meta/classes/archiver.bbclass delete mode 100644 poky/meta/classes/autotools-brokensep.bbclass delete mode 100644 poky/meta/classes/autotools.bbclass delete mode 100644 poky/meta/classes/base.bbclass delete mode 100644 poky/meta/classes/bash-completion.bbclass delete mode 100644 poky/meta/classes/bin_package.bbclass delete mode 100644 poky/meta/classes/binconfig-disabled.bbclass delete mode 100644 poky/meta/classes/binconfig.bbclass delete mode 100644 poky/meta/classes/blacklist.bbclass delete mode 100644 poky/meta/classes/bluetooth.bbclass delete mode 100644 poky/meta/classes/bugzilla.bbclass delete mode 100644 poky/meta/classes/buildhistory.bbclass delete mode 100644 poky/meta/classes/buildstats-summary.bbclass delete mode 100644 poky/meta/classes/buildstats.bbclass delete mode 100644 poky/meta/classes/ccache.bbclass delete mode 100644 poky/meta/classes/chrpath.bbclass delete mode 100644 poky/meta/classes/clutter.bbclass delete mode 100644 poky/meta/classes/cmake.bbclass delete mode 100644 poky/meta/classes/cml1.bbclass delete mode 100644 poky/meta/classes/compress_doc.bbclass delete mode 100644 poky/meta/classes/copyleft_compliance.bbclass delete mode 100644 poky/meta/classes/copyleft_filter.bbclass delete mode 100644 poky/meta/classes/core-image.bbclass delete mode 100644 poky/meta/classes/cpan-base.bbclass delete mode 100644 poky/meta/classes/cpan.bbclass delete mode 100644 poky/meta/classes/cpan_build.bbclass delete mode 100644 poky/meta/classes/cross-canadian.bbclass delete mode 100644 poky/meta/classes/cross.bbclass delete mode 100644 poky/meta/classes/crosssdk.bbclass delete mode 100644 poky/meta/classes/cve-check.bbclass delete mode 100644 poky/meta/classes/debian.bbclass delete mode 100644 poky/meta/classes/deploy.bbclass delete mode 100644 poky/meta/classes/devshell.bbclass delete mode 100644 poky/meta/classes/devtool-source.bbclass delete mode 100644 poky/meta/classes/devupstream.bbclass delete mode 100644 poky/meta/classes/distro_features_check.bbclass delete mode 100644 poky/meta/classes/distrodata.bbclass delete mode 100644 poky/meta/classes/distrooverrides.bbclass delete mode 100644 poky/meta/classes/distutils-base.bbclass delete mode 100644 poky/meta/classes/distutils-common-base.bbclass delete mode 100644 poky/meta/classes/distutils-tools.bbclass delete mode 100644 poky/meta/classes/distutils.bbclass delete mode 100644 poky/meta/classes/distutils3-base.bbclass delete mode 100644 poky/meta/classes/distutils3.bbclass delete mode 100644 poky/meta/classes/externalsrc.bbclass delete mode 100644 poky/meta/classes/extrausers.bbclass delete mode 100644 poky/meta/classes/fontcache.bbclass delete mode 100644 poky/meta/classes/fs-uuid.bbclass delete mode 100644 poky/meta/classes/gconf.bbclass delete mode 100644 poky/meta/classes/gettext.bbclass delete mode 100644 poky/meta/classes/gio-module-cache.bbclass delete mode 100644 poky/meta/classes/gnome.bbclass delete mode 100644 poky/meta/classes/gnomebase.bbclass delete mode 100644 poky/meta/classes/go.bbclass delete mode 100644 poky/meta/classes/goarch.bbclass delete mode 100644 poky/meta/classes/gobject-introspection-data.bbclass delete mode 100644 poky/meta/classes/gobject-introspection.bbclass delete mode 100644 poky/meta/classes/grub-efi.bbclass delete mode 100644 poky/meta/classes/gsettings.bbclass delete mode 100644 poky/meta/classes/gtk-doc.bbclass delete mode 100644 poky/meta/classes/gtk-icon-cache.bbclass delete mode 100644 poky/meta/classes/gtk-immodules-cache.bbclass delete mode 100644 poky/meta/classes/icecc.bbclass delete mode 100644 poky/meta/classes/image-buildinfo.bbclass delete mode 100644 poky/meta/classes/image-container.bbclass delete mode 100644 poky/meta/classes/image-live.bbclass delete mode 100644 poky/meta/classes/image-mklibs.bbclass delete mode 100644 poky/meta/classes/image-prelink.bbclass delete mode 100644 poky/meta/classes/image.bbclass delete mode 100644 poky/meta/classes/image_types.bbclass delete mode 100644 poky/meta/classes/image_types_wic.bbclass delete mode 100644 poky/meta/classes/insane.bbclass delete mode 100644 poky/meta/classes/kernel-arch.bbclass delete mode 100644 poky/meta/classes/kernel-devicetree.bbclass delete mode 100644 poky/meta/classes/kernel-fitimage.bbclass delete mode 100644 poky/meta/classes/kernel-grub.bbclass delete mode 100644 poky/meta/classes/kernel-module-split.bbclass delete mode 100644 poky/meta/classes/kernel-uboot.bbclass delete mode 100644 poky/meta/classes/kernel-uimage.bbclass delete mode 100644 poky/meta/classes/kernel-yocto.bbclass delete mode 100644 poky/meta/classes/kernel.bbclass delete mode 100644 poky/meta/classes/kernelsrc.bbclass delete mode 100644 poky/meta/classes/lib_package.bbclass delete mode 100644 poky/meta/classes/libc-common.bbclass delete mode 100644 poky/meta/classes/libc-package.bbclass delete mode 100644 poky/meta/classes/license.bbclass delete mode 100644 poky/meta/classes/linux-kernel-base.bbclass delete mode 100644 poky/meta/classes/linuxloader.bbclass delete mode 100644 poky/meta/classes/live-vm-common.bbclass delete mode 100644 poky/meta/classes/logging.bbclass delete mode 100644 poky/meta/classes/manpages.bbclass delete mode 100644 poky/meta/classes/meta.bbclass delete mode 100644 poky/meta/classes/metadata_scm.bbclass delete mode 100644 poky/meta/classes/migrate_localcount.bbclass delete mode 100644 poky/meta/classes/mime.bbclass delete mode 100644 poky/meta/classes/mirrors.bbclass delete mode 100644 poky/meta/classes/module-base.bbclass delete mode 100644 poky/meta/classes/module.bbclass delete mode 100644 poky/meta/classes/multilib.bbclass delete mode 100644 poky/meta/classes/multilib_global.bbclass delete mode 100644 poky/meta/classes/multilib_header.bbclass delete mode 100644 poky/meta/classes/native.bbclass delete mode 100644 poky/meta/classes/nativesdk.bbclass delete mode 100644 poky/meta/classes/nopackages.bbclass delete mode 100644 poky/meta/classes/npm.bbclass delete mode 100644 poky/meta/classes/oelint.bbclass delete mode 100644 poky/meta/classes/own-mirrors.bbclass delete mode 100644 poky/meta/classes/package.bbclass delete mode 100644 poky/meta/classes/package_deb.bbclass delete mode 100644 poky/meta/classes/package_ipk.bbclass delete mode 100644 poky/meta/classes/package_rpm.bbclass delete mode 100644 poky/meta/classes/package_tar.bbclass delete mode 100644 poky/meta/classes/packagedata.bbclass delete mode 100644 poky/meta/classes/packagefeed-stability.bbclass delete mode 100644 poky/meta/classes/packagegroup.bbclass delete mode 100644 poky/meta/classes/patch.bbclass delete mode 100644 poky/meta/classes/perl-version.bbclass delete mode 100644 poky/meta/classes/perlnative.bbclass delete mode 100644 poky/meta/classes/pixbufcache.bbclass delete mode 100644 poky/meta/classes/pkgconfig.bbclass delete mode 100644 poky/meta/classes/populate_sdk.bbclass delete mode 100644 poky/meta/classes/populate_sdk_base.bbclass delete mode 100644 poky/meta/classes/populate_sdk_ext.bbclass delete mode 100644 poky/meta/classes/prexport.bbclass delete mode 100644 poky/meta/classes/primport.bbclass delete mode 100644 poky/meta/classes/ptest-gnome.bbclass delete mode 100644 poky/meta/classes/ptest.bbclass delete mode 100644 poky/meta/classes/python-dir.bbclass delete mode 100644 poky/meta/classes/python3-dir.bbclass delete mode 100644 poky/meta/classes/python3native.bbclass delete mode 100644 poky/meta/classes/pythonnative.bbclass delete mode 100644 poky/meta/classes/qemu.bbclass delete mode 100644 poky/meta/classes/qemuboot.bbclass delete mode 100644 poky/meta/classes/recipe_sanity.bbclass delete mode 100644 poky/meta/classes/relative_symlinks.bbclass delete mode 100644 poky/meta/classes/relocatable.bbclass delete mode 100644 poky/meta/classes/remove-libtool.bbclass delete mode 100644 poky/meta/classes/report-error.bbclass delete mode 100644 poky/meta/classes/rm_work.bbclass delete mode 100644 poky/meta/classes/rm_work_and_downloads.bbclass delete mode 100644 poky/meta/classes/rootfs-postcommands.bbclass delete mode 100644 poky/meta/classes/rootfs_deb.bbclass delete mode 100644 poky/meta/classes/rootfs_ipk.bbclass delete mode 100644 poky/meta/classes/rootfs_rpm.bbclass delete mode 100644 poky/meta/classes/rootfsdebugfiles.bbclass delete mode 100644 poky/meta/classes/sanity.bbclass delete mode 100644 poky/meta/classes/scons.bbclass delete mode 100644 poky/meta/classes/setuptools.bbclass delete mode 100644 poky/meta/classes/setuptools3.bbclass delete mode 100644 poky/meta/classes/sign_ipk.bbclass delete mode 100644 poky/meta/classes/sign_package_feed.bbclass delete mode 100644 poky/meta/classes/sign_rpm.bbclass delete mode 100644 poky/meta/classes/siteconfig.bbclass delete mode 100644 poky/meta/classes/siteinfo.bbclass delete mode 100644 poky/meta/classes/spdx.bbclass delete mode 100644 poky/meta/classes/sstate.bbclass delete mode 100644 poky/meta/classes/staging.bbclass delete mode 100644 poky/meta/classes/syslinux.bbclass delete mode 100644 poky/meta/classes/systemd-boot.bbclass delete mode 100644 poky/meta/classes/systemd.bbclass delete mode 100644 poky/meta/classes/terminal.bbclass delete mode 100644 poky/meta/classes/testexport.bbclass delete mode 100644 poky/meta/classes/testimage-auto.bbclass delete mode 100644 poky/meta/classes/testimage.bbclass delete mode 100644 poky/meta/classes/testsdk.bbclass delete mode 100644 poky/meta/classes/texinfo.bbclass delete mode 100644 poky/meta/classes/tinderclient.bbclass delete mode 100644 poky/meta/classes/toaster.bbclass delete mode 100644 poky/meta/classes/toolchain-scripts-base.bbclass delete mode 100644 poky/meta/classes/toolchain-scripts.bbclass delete mode 100644 poky/meta/classes/typecheck.bbclass delete mode 100644 poky/meta/classes/uboot-config.bbclass delete mode 100644 poky/meta/classes/uboot-extlinux-config.bbclass delete mode 100644 poky/meta/classes/uboot-sign.bbclass delete mode 100644 poky/meta/classes/uninative.bbclass delete mode 100644 poky/meta/classes/update-alternatives.bbclass delete mode 100644 poky/meta/classes/update-rc.d.bbclass delete mode 100644 poky/meta/classes/upstream-version-is-even.bbclass delete mode 100644 poky/meta/classes/useradd-staticids.bbclass delete mode 100644 poky/meta/classes/useradd.bbclass delete mode 100644 poky/meta/classes/useradd_base.bbclass delete mode 100644 poky/meta/classes/utility-tasks.bbclass delete mode 100644 poky/meta/classes/utils.bbclass delete mode 100644 poky/meta/classes/vala.bbclass delete mode 100644 poky/meta/classes/waf.bbclass delete mode 100644 poky/meta/conf/abi_version.conf delete mode 100644 poky/meta/conf/bitbake.conf delete mode 100644 poky/meta/conf/conf-notes.txt delete mode 100644 poky/meta/conf/distro/defaultsetup.conf delete mode 100644 poky/meta/conf/distro/include/as-needed.inc delete mode 100644 poky/meta/conf/distro/include/default-distrovars.inc delete mode 100644 poky/meta/conf/distro/include/default-providers.inc delete mode 100644 poky/meta/conf/distro/include/default-versions.inc delete mode 100644 poky/meta/conf/distro/include/distro_alias.inc delete mode 100644 poky/meta/conf/distro/include/maintainers.inc delete mode 100644 poky/meta/conf/distro/include/no-static-libs.inc delete mode 100644 poky/meta/conf/distro/include/security_flags.inc delete mode 100644 poky/meta/conf/distro/include/tclibc-baremetal.inc delete mode 100644 poky/meta/conf/distro/include/tclibc-glibc.inc delete mode 100644 poky/meta/conf/distro/include/tclibc-musl.inc delete mode 100644 poky/meta/conf/distro/include/tcmode-default.inc delete mode 100644 poky/meta/conf/distro/include/uninative-flags.inc delete mode 100644 poky/meta/conf/distro/include/upstream_tracking.inc delete mode 100644 poky/meta/conf/distro/include/world-broken.inc delete mode 100644 poky/meta/conf/distro/include/yocto-uninative.inc delete mode 100644 poky/meta/conf/documentation.conf delete mode 100644 poky/meta/conf/layer.conf delete mode 100644 poky/meta/conf/licenses.conf delete mode 100644 poky/meta/conf/machine-sdk/i586.conf delete mode 100644 poky/meta/conf/machine-sdk/i686.conf delete mode 100644 poky/meta/conf/machine-sdk/x86_64.conf delete mode 100644 poky/meta/conf/machine/include/README delete mode 100644 poky/meta/conf/machine/include/arm/README delete mode 100644 poky/meta/conf/machine/include/arm/arch-arm.inc delete mode 100644 poky/meta/conf/machine/include/arm/arch-arm64.inc delete mode 100644 poky/meta/conf/machine/include/arm/arch-armv4.inc delete mode 100644 poky/meta/conf/machine/include/arm/arch-armv5-dsp.inc delete mode 100644 poky/meta/conf/machine/include/arm/arch-armv5.inc delete mode 100644 poky/meta/conf/machine/include/arm/arch-armv6.inc delete mode 100644 poky/meta/conf/machine/include/arm/arch-armv7a.inc delete mode 100644 poky/meta/conf/machine/include/arm/arch-armv7ve.inc delete mode 100644 poky/meta/conf/machine/include/arm/arch-armv8.inc delete mode 100644 poky/meta/conf/machine/include/arm/feature-arm-neon.inc delete mode 100644 poky/meta/conf/machine/include/arm/feature-arm-thumb.inc delete mode 100644 poky/meta/conf/machine/include/arm/feature-arm-vfp.inc delete mode 100644 poky/meta/conf/machine/include/mips/README delete mode 100644 poky/meta/conf/machine/include/mips/arch-mips.inc delete mode 100644 poky/meta/conf/machine/include/mips/feature-mips-mips16e.inc delete mode 100644 poky/meta/conf/machine/include/mips/tune-mips-24k.inc delete mode 100644 poky/meta/conf/machine/include/powerpc/README delete mode 100644 poky/meta/conf/machine/include/powerpc/arch-powerpc.inc delete mode 100644 poky/meta/conf/machine/include/powerpc/arch-powerpc64.inc delete mode 100644 poky/meta/conf/machine/include/qemu.inc delete mode 100644 poky/meta/conf/machine/include/qemuboot-mips.inc delete mode 100644 poky/meta/conf/machine/include/qemuboot-x86.inc delete mode 100644 poky/meta/conf/machine/include/sh/README delete mode 100644 poky/meta/conf/machine/include/sh/arch-sh.inc delete mode 100644 poky/meta/conf/machine/include/soc-family.inc delete mode 100644 poky/meta/conf/machine/include/tune-arm1136jf-s.inc delete mode 100644 poky/meta/conf/machine/include/tune-arm920t.inc delete mode 100644 poky/meta/conf/machine/include/tune-arm926ejs.inc delete mode 100644 poky/meta/conf/machine/include/tune-arm9tdmi.inc delete mode 100644 poky/meta/conf/machine/include/tune-atom.inc delete mode 100644 poky/meta/conf/machine/include/tune-c3.inc delete mode 100644 poky/meta/conf/machine/include/tune-core2.inc delete mode 100644 poky/meta/conf/machine/include/tune-corei7.inc delete mode 100644 poky/meta/conf/machine/include/tune-cortexa15.inc delete mode 100644 poky/meta/conf/machine/include/tune-cortexa17.inc delete mode 100644 poky/meta/conf/machine/include/tune-cortexa5.inc delete mode 100644 poky/meta/conf/machine/include/tune-cortexa7.inc delete mode 100644 poky/meta/conf/machine/include/tune-cortexa8.inc delete mode 100644 poky/meta/conf/machine/include/tune-cortexa9.inc delete mode 100644 poky/meta/conf/machine/include/tune-ep9312.inc delete mode 100644 poky/meta/conf/machine/include/tune-i586-nlp.inc delete mode 100644 poky/meta/conf/machine/include/tune-i586.inc delete mode 100644 poky/meta/conf/machine/include/tune-iwmmxt.inc delete mode 100644 poky/meta/conf/machine/include/tune-mips32.inc delete mode 100644 poky/meta/conf/machine/include/tune-mips32r2.inc delete mode 100644 poky/meta/conf/machine/include/tune-mips32r6.inc delete mode 100644 poky/meta/conf/machine/include/tune-mips64.inc delete mode 100644 poky/meta/conf/machine/include/tune-mips64r2.inc delete mode 100644 poky/meta/conf/machine/include/tune-mips64r6.inc delete mode 100644 poky/meta/conf/machine/include/tune-octeon.inc delete mode 100644 poky/meta/conf/machine/include/tune-power5.inc delete mode 100644 poky/meta/conf/machine/include/tune-power6.inc delete mode 100644 poky/meta/conf/machine/include/tune-power7.inc delete mode 100644 poky/meta/conf/machine/include/tune-ppc476.inc delete mode 100644 poky/meta/conf/machine/include/tune-ppc603e.inc delete mode 100644 poky/meta/conf/machine/include/tune-ppc7400.inc delete mode 100644 poky/meta/conf/machine/include/tune-ppce300c2.inc delete mode 100644 poky/meta/conf/machine/include/tune-ppce300c3.inc delete mode 100644 poky/meta/conf/machine/include/tune-ppce500.inc delete mode 100644 poky/meta/conf/machine/include/tune-ppce500mc.inc delete mode 100644 poky/meta/conf/machine/include/tune-ppce500v2.inc delete mode 100644 poky/meta/conf/machine/include/tune-ppce5500.inc delete mode 100644 poky/meta/conf/machine/include/tune-ppce6500.inc delete mode 100644 poky/meta/conf/machine/include/tune-sh3.inc delete mode 100644 poky/meta/conf/machine/include/tune-sh4.inc delete mode 100644 poky/meta/conf/machine/include/tune-strongarm1100.inc delete mode 100644 poky/meta/conf/machine/include/tune-supersparc.inc delete mode 100644 poky/meta/conf/machine/include/tune-thunderx.inc delete mode 100644 poky/meta/conf/machine/include/tune-xscale.inc delete mode 100644 poky/meta/conf/machine/include/x86-base.inc delete mode 100644 poky/meta/conf/machine/include/x86/README delete mode 100644 poky/meta/conf/machine/include/x86/arch-x86.inc delete mode 100644 poky/meta/conf/machine/qemuarm.conf delete mode 100644 poky/meta/conf/machine/qemuarm64.conf delete mode 100644 poky/meta/conf/machine/qemumips.conf delete mode 100644 poky/meta/conf/machine/qemumips64.conf delete mode 100644 poky/meta/conf/machine/qemuppc.conf delete mode 100644 poky/meta/conf/machine/qemux86-64.conf delete mode 100644 poky/meta/conf/machine/qemux86.conf delete mode 100644 poky/meta/conf/migrate_localcount.conf delete mode 100644 poky/meta/conf/multiconfig/default.conf delete mode 100644 poky/meta/conf/multilib.conf delete mode 100644 poky/meta/conf/prexport.conf delete mode 100644 poky/meta/conf/primport.conf delete mode 100644 poky/meta/conf/sanity.conf delete mode 100644 poky/meta/files/common-licenses/AAL delete mode 100644 poky/meta/files/common-licenses/AFL-1.2 delete mode 100644 poky/meta/files/common-licenses/AFL-2.0 delete mode 100644 poky/meta/files/common-licenses/AFL-2.1 delete mode 100644 poky/meta/files/common-licenses/AFL-3.0 delete mode 100644 poky/meta/files/common-licenses/AGPL-3.0 delete mode 100644 poky/meta/files/common-licenses/ANTLR-PD delete mode 100644 poky/meta/files/common-licenses/APL-1.0 delete mode 100644 poky/meta/files/common-licenses/APSL-1.0 delete mode 100644 poky/meta/files/common-licenses/APSL-1.1 delete mode 100644 poky/meta/files/common-licenses/APSL-1.2 delete mode 100644 poky/meta/files/common-licenses/APSL-2.0 delete mode 100644 poky/meta/files/common-licenses/Adobe delete mode 100644 poky/meta/files/common-licenses/Apache-1.0 delete mode 100644 poky/meta/files/common-licenses/Apache-1.1 delete mode 100644 poky/meta/files/common-licenses/Apache-2.0 delete mode 100644 poky/meta/files/common-licenses/Artistic-1.0 delete mode 100644 poky/meta/files/common-licenses/Artistic-2.0 delete mode 100644 poky/meta/files/common-licenses/BSD delete mode 100644 poky/meta/files/common-licenses/BSD-0-Clause delete mode 100644 poky/meta/files/common-licenses/BSD-2-Clause delete mode 100644 poky/meta/files/common-licenses/BSD-3-Clause delete mode 100644 poky/meta/files/common-licenses/BSD-4-Clause delete mode 100644 poky/meta/files/common-licenses/BSL-1.0 delete mode 100644 poky/meta/files/common-licenses/BitstreamVera delete mode 100644 poky/meta/files/common-licenses/CATOSL-1.1 delete mode 100644 poky/meta/files/common-licenses/CC-BY-1.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-2.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-2.5 delete mode 100644 poky/meta/files/common-licenses/CC-BY-3.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-NC-1.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-NC-2.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-NC-2.5 delete mode 100644 poky/meta/files/common-licenses/CC-BY-NC-3.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-NC-ND-1.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-NC-ND-2.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-NC-ND-2.5 delete mode 100644 poky/meta/files/common-licenses/CC-BY-NC-ND-3.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-NC-SA-1.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-NC-SA-2.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-NC-SA-2.5 delete mode 100644 poky/meta/files/common-licenses/CC-BY-NC-SA-3.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-ND-1.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-ND-2.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-ND-2.5 delete mode 100644 poky/meta/files/common-licenses/CC-BY-ND-3.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-SA-1.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-SA-2.0 delete mode 100644 poky/meta/files/common-licenses/CC-BY-SA-2.5 delete mode 100644 poky/meta/files/common-licenses/CC-BY-SA-3.0 delete mode 100644 poky/meta/files/common-licenses/CC0-1.0 delete mode 100644 poky/meta/files/common-licenses/CDDL-1.0 delete mode 100644 poky/meta/files/common-licenses/CECILL-1.0 delete mode 100644 poky/meta/files/common-licenses/CECILL-2.0 delete mode 100644 poky/meta/files/common-licenses/CECILL-B delete mode 100644 poky/meta/files/common-licenses/CECILL-C delete mode 100644 poky/meta/files/common-licenses/CPAL-1.0 delete mode 100644 poky/meta/files/common-licenses/CPL-1.0 delete mode 100644 poky/meta/files/common-licenses/CUA-OPL-1.0 delete mode 100644 poky/meta/files/common-licenses/ClArtistic delete mode 100644 poky/meta/files/common-licenses/DSSSL delete mode 100644 poky/meta/files/common-licenses/ECL-1.0 delete mode 100644 poky/meta/files/common-licenses/ECL-2.0 delete mode 100644 poky/meta/files/common-licenses/EDL-1.0 delete mode 100644 poky/meta/files/common-licenses/EFL-1.0 delete mode 100644 poky/meta/files/common-licenses/EFL-2.0 delete mode 100644 poky/meta/files/common-licenses/EPL-1.0 delete mode 100644 poky/meta/files/common-licenses/EUDatagrid delete mode 100644 poky/meta/files/common-licenses/EUPL-1.0 delete mode 100644 poky/meta/files/common-licenses/EUPL-1.1 delete mode 100644 poky/meta/files/common-licenses/Elfutils-Exception delete mode 100644 poky/meta/files/common-licenses/Entessa delete mode 100644 poky/meta/files/common-licenses/ErlPL-1.1 delete mode 100644 poky/meta/files/common-licenses/FSF-Unlimited delete mode 100644 poky/meta/files/common-licenses/Fair delete mode 100644 poky/meta/files/common-licenses/Frameworx-1.0 delete mode 100644 poky/meta/files/common-licenses/FreeType delete mode 100644 poky/meta/files/common-licenses/GFDL-1.1 delete mode 100644 poky/meta/files/common-licenses/GFDL-1.2 delete mode 100644 poky/meta/files/common-licenses/GFDL-1.3 delete mode 100644 poky/meta/files/common-licenses/GPL-1.0 delete mode 100644 poky/meta/files/common-licenses/GPL-2-with-bison-exception delete mode 100644 poky/meta/files/common-licenses/GPL-2.0 delete mode 100644 poky/meta/files/common-licenses/GPL-2.0-with-GCC-exception delete mode 100644 poky/meta/files/common-licenses/GPL-2.0-with-OpenSSL-exception delete mode 100644 poky/meta/files/common-licenses/GPL-2.0-with-autoconf-exception delete mode 100644 poky/meta/files/common-licenses/GPL-2.0-with-classpath-exception delete mode 100644 poky/meta/files/common-licenses/GPL-2.0-with-font-exception delete mode 100644 poky/meta/files/common-licenses/GPL-3.0 delete mode 100644 poky/meta/files/common-licenses/GPL-3.0-with-GCC-exception delete mode 100644 poky/meta/files/common-licenses/GPL-3.0-with-autoconf-exception delete mode 100644 poky/meta/files/common-licenses/HPND delete mode 100644 poky/meta/files/common-licenses/ICU delete mode 100644 poky/meta/files/common-licenses/IPA delete mode 100644 poky/meta/files/common-licenses/IPL-1.0 delete mode 100644 poky/meta/files/common-licenses/ISC delete mode 100644 poky/meta/files/common-licenses/LGPL-2.0 delete mode 100644 poky/meta/files/common-licenses/LGPL-2.1 delete mode 100644 poky/meta/files/common-licenses/LGPL-3.0 delete mode 100644 poky/meta/files/common-licenses/LPL-1.02 delete mode 100644 poky/meta/files/common-licenses/LPPL-1.0 delete mode 100644 poky/meta/files/common-licenses/LPPL-1.1 delete mode 100644 poky/meta/files/common-licenses/LPPL-1.2 delete mode 100644 poky/meta/files/common-licenses/LPPL-1.3c delete mode 100644 poky/meta/files/common-licenses/Libpng delete mode 100644 poky/meta/files/common-licenses/MIT delete mode 100644 poky/meta/files/common-licenses/MPL-1.0 delete mode 100644 poky/meta/files/common-licenses/MPL-1.1 delete mode 100644 poky/meta/files/common-licenses/MPL-2.0 delete mode 100644 poky/meta/files/common-licenses/MS-PL delete mode 100644 poky/meta/files/common-licenses/MS-RL delete mode 100644 poky/meta/files/common-licenses/MirOS delete mode 100644 poky/meta/files/common-licenses/Motosoto delete mode 100644 poky/meta/files/common-licenses/Multics delete mode 100644 poky/meta/files/common-licenses/NASA-1.3 delete mode 100644 poky/meta/files/common-licenses/NCSA delete mode 100644 poky/meta/files/common-licenses/NGPL delete mode 100644 poky/meta/files/common-licenses/NPOSL-3.0 delete mode 100644 poky/meta/files/common-licenses/NTP delete mode 100644 poky/meta/files/common-licenses/Nauman delete mode 100644 poky/meta/files/common-licenses/Nokia delete mode 100644 poky/meta/files/common-licenses/OASIS delete mode 100644 poky/meta/files/common-licenses/OCLC-2.0 delete mode 100644 poky/meta/files/common-licenses/ODbL-1.0 delete mode 100644 poky/meta/files/common-licenses/OFL-1.1 delete mode 100644 poky/meta/files/common-licenses/OGTSL delete mode 100644 poky/meta/files/common-licenses/OLDAP-2.8 delete mode 100644 poky/meta/files/common-licenses/OSL-1.0 delete mode 100644 poky/meta/files/common-licenses/OSL-2.0 delete mode 100644 poky/meta/files/common-licenses/OSL-3.0 delete mode 100644 poky/meta/files/common-licenses/OpenSSL delete mode 100644 poky/meta/files/common-licenses/PD delete mode 100644 poky/meta/files/common-licenses/PHP-3.0 delete mode 100644 poky/meta/files/common-licenses/ParaTypeFFL-1.3 delete mode 100644 poky/meta/files/common-licenses/PostgreSQL delete mode 100644 poky/meta/files/common-licenses/Proprietary delete mode 100644 poky/meta/files/common-licenses/Python-2.0 delete mode 100644 poky/meta/files/common-licenses/QPL-1.0 delete mode 100644 poky/meta/files/common-licenses/RHeCos-1 delete mode 100644 poky/meta/files/common-licenses/RHeCos-1.1 delete mode 100644 poky/meta/files/common-licenses/RPL-1.5 delete mode 100644 poky/meta/files/common-licenses/RPSL-1.0 delete mode 100644 poky/meta/files/common-licenses/RSCPL delete mode 100644 poky/meta/files/common-licenses/Ruby delete mode 100644 poky/meta/files/common-licenses/SAX-PD delete mode 100644 poky/meta/files/common-licenses/SGI-1 delete mode 100644 poky/meta/files/common-licenses/SMAIL_GPL delete mode 100644 poky/meta/files/common-licenses/SPL-1.0 delete mode 100644 poky/meta/files/common-licenses/Simple-2.0 delete mode 100644 poky/meta/files/common-licenses/Sleepycat delete mode 100644 poky/meta/files/common-licenses/SugarCRM-1 delete mode 100644 poky/meta/files/common-licenses/SugarCRM-1.1.3 delete mode 100644 poky/meta/files/common-licenses/UCB delete mode 100644 poky/meta/files/common-licenses/VSL-1.0 delete mode 100644 poky/meta/files/common-licenses/W3C delete mode 100644 poky/meta/files/common-licenses/WXwindows delete mode 100644 poky/meta/files/common-licenses/Watcom-1.0 delete mode 100644 poky/meta/files/common-licenses/XFree86-1.0 delete mode 100644 poky/meta/files/common-licenses/XFree86-1.1 delete mode 100644 poky/meta/files/common-licenses/XSL delete mode 100644 poky/meta/files/common-licenses/Xnet delete mode 100644 poky/meta/files/common-licenses/YPL-1.1 delete mode 100644 poky/meta/files/common-licenses/ZPL-1.1 delete mode 100644 poky/meta/files/common-licenses/ZPL-2.0 delete mode 100644 poky/meta/files/common-licenses/ZPL-2.1 delete mode 100644 poky/meta/files/common-licenses/Zimbra-1.3 delete mode 100644 poky/meta/files/common-licenses/Zlib delete mode 100644 poky/meta/files/common-licenses/bzip2 delete mode 100644 poky/meta/files/common-licenses/eCos-2.0 delete mode 100644 poky/meta/files/common-licenses/gSOAP-1 delete mode 100644 poky/meta/files/common-licenses/gSOAP-1.3b delete mode 100644 poky/meta/files/common-licenses/pkgconf delete mode 100644 poky/meta/files/common-licenses/tcl delete mode 100644 poky/meta/files/common-licenses/unfs3 delete mode 100644 poky/meta/files/device_table-minimal.txt delete mode 100644 poky/meta/files/ext-sdk-prepare.py delete mode 100644 poky/meta/files/fs-perms-persistent-log.txt delete mode 100644 poky/meta/files/fs-perms.txt delete mode 100644 poky/meta/files/toolchain-shar-extract.sh delete mode 100644 poky/meta/files/toolchain-shar-relocate.sh delete mode 100644 poky/meta/lib/bblayers/create.py delete mode 100644 poky/meta/lib/bblayers/templates/README delete mode 100644 poky/meta/lib/bblayers/templates/example.bb delete mode 100644 poky/meta/lib/bblayers/templates/layer.conf delete mode 100644 poky/meta/lib/buildstats.py delete mode 100644 poky/meta/lib/oe/__init__.py delete mode 100644 poky/meta/lib/oe/buildhistory_analysis.py delete mode 100644 poky/meta/lib/oe/cachedpath.py delete mode 100644 poky/meta/lib/oe/classextend.py delete mode 100644 poky/meta/lib/oe/classutils.py delete mode 100644 poky/meta/lib/oe/copy_buildsystem.py delete mode 100644 poky/meta/lib/oe/data.py delete mode 100644 poky/meta/lib/oe/distro_check.py delete mode 100644 poky/meta/lib/oe/gpg_sign.py delete mode 100644 poky/meta/lib/oe/license.py delete mode 100644 poky/meta/lib/oe/lsb.py delete mode 100644 poky/meta/lib/oe/maketype.py delete mode 100644 poky/meta/lib/oe/manifest.py delete mode 100644 poky/meta/lib/oe/package.py delete mode 100644 poky/meta/lib/oe/package_manager.py delete mode 100644 poky/meta/lib/oe/packagedata.py delete mode 100644 poky/meta/lib/oe/packagegroup.py delete mode 100644 poky/meta/lib/oe/patch.py delete mode 100644 poky/meta/lib/oe/path.py delete mode 100644 poky/meta/lib/oe/prservice.py delete mode 100644 poky/meta/lib/oe/qa.py delete mode 100644 poky/meta/lib/oe/recipeutils.py delete mode 100644 poky/meta/lib/oe/rootfs.py delete mode 100644 poky/meta/lib/oe/sdk.py delete mode 100644 poky/meta/lib/oe/sstatesig.py delete mode 100644 poky/meta/lib/oe/terminal.py delete mode 100644 poky/meta/lib/oe/types.py delete mode 100644 poky/meta/lib/oe/useradd.py delete mode 100644 poky/meta/lib/oe/utils.py delete mode 100644 poky/meta/lib/oeqa/buildperf/__init__.py delete mode 100644 poky/meta/lib/oeqa/buildperf/base.py delete mode 100644 poky/meta/lib/oeqa/buildperf/test_basic.py delete mode 100644 poky/meta/lib/oeqa/controllers/__init__.py delete mode 100644 poky/meta/lib/oeqa/controllers/masterimage.py delete mode 100644 poky/meta/lib/oeqa/controllers/testtargetloader.py delete mode 100644 poky/meta/lib/oeqa/core/README delete mode 100644 poky/meta/lib/oeqa/core/__init__.py delete mode 100644 poky/meta/lib/oeqa/core/case.py delete mode 100644 poky/meta/lib/oeqa/core/cases/__init__.py delete mode 100644 poky/meta/lib/oeqa/core/cases/example/data.json delete mode 100644 poky/meta/lib/oeqa/core/cases/example/test_basic.py delete mode 100644 poky/meta/lib/oeqa/core/context.py delete mode 100644 poky/meta/lib/oeqa/core/decorator/__init__.py delete mode 100644 poky/meta/lib/oeqa/core/decorator/data.py delete mode 100644 poky/meta/lib/oeqa/core/decorator/depends.py delete mode 100644 poky/meta/lib/oeqa/core/decorator/oeid.py delete mode 100644 poky/meta/lib/oeqa/core/decorator/oetag.py delete mode 100644 poky/meta/lib/oeqa/core/decorator/oetimeout.py delete mode 100644 poky/meta/lib/oeqa/core/exception.py delete mode 100644 poky/meta/lib/oeqa/core/loader.py delete mode 100644 poky/meta/lib/oeqa/core/runner.py delete mode 100644 poky/meta/lib/oeqa/core/target/__init__.py delete mode 100644 poky/meta/lib/oeqa/core/target/qemu.py delete mode 100644 poky/meta/lib/oeqa/core/target/ssh.py delete mode 100644 poky/meta/lib/oeqa/core/tests/__init__.py delete mode 100644 poky/meta/lib/oeqa/core/tests/cases/data.py delete mode 100644 poky/meta/lib/oeqa/core/tests/cases/depends.py delete mode 100644 poky/meta/lib/oeqa/core/tests/cases/loader/invalid/oeid.py delete mode 100644 poky/meta/lib/oeqa/core/tests/cases/loader/threaded/threaded.py delete mode 100644 poky/meta/lib/oeqa/core/tests/cases/loader/threaded/threaded_alone.py delete mode 100644 poky/meta/lib/oeqa/core/tests/cases/loader/threaded/threaded_depends.py delete mode 100644 poky/meta/lib/oeqa/core/tests/cases/loader/threaded/threaded_module.py delete mode 100644 poky/meta/lib/oeqa/core/tests/cases/loader/valid/another.py delete mode 100644 poky/meta/lib/oeqa/core/tests/cases/oeid.py delete mode 100644 poky/meta/lib/oeqa/core/tests/cases/oetag.py delete mode 100644 poky/meta/lib/oeqa/core/tests/cases/timeout.py delete mode 100644 poky/meta/lib/oeqa/core/tests/common.py delete mode 100755 poky/meta/lib/oeqa/core/tests/test_data.py delete mode 100755 poky/meta/lib/oeqa/core/tests/test_decorators.py delete mode 100755 poky/meta/lib/oeqa/core/tests/test_loader.py delete mode 100755 poky/meta/lib/oeqa/core/tests/test_runner.py delete mode 100644 poky/meta/lib/oeqa/core/threaded.py delete mode 100644 poky/meta/lib/oeqa/core/utils/__init__.py delete mode 100644 poky/meta/lib/oeqa/core/utils/misc.py delete mode 100644 poky/meta/lib/oeqa/core/utils/path.py delete mode 100644 poky/meta/lib/oeqa/core/utils/test.py delete mode 100644 poky/meta/lib/oeqa/files/test.c delete mode 100644 poky/meta/lib/oeqa/files/test.cpp delete mode 100644 poky/meta/lib/oeqa/files/test.pl delete mode 100644 poky/meta/lib/oeqa/files/test.py delete mode 100644 poky/meta/lib/oeqa/oetest.py delete mode 100755 poky/meta/lib/oeqa/runexported.py delete mode 100644 poky/meta/lib/oeqa/runtime/case.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/_qemutiny.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/buildcpio.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/buildgalculator.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/buildlzip.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/connman.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/date.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/df.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/dnf.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/gcc.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/kernelmodule.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/ldd.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/logrotate.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/multilib.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/oe_syslog.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/pam.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/parselogs.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/perl.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/ping.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/ptest.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/python.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/rpm.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/scanelf.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/scp.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/skeletoninit.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/ssh.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/systemd.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/x32lib.py delete mode 100644 poky/meta/lib/oeqa/runtime/cases/xorg.py delete mode 100644 poky/meta/lib/oeqa/runtime/context.py delete mode 100644 poky/meta/lib/oeqa/runtime/decorator/package.py delete mode 100644 poky/meta/lib/oeqa/runtime/files/hellomod.c delete mode 100644 poky/meta/lib/oeqa/runtime/files/hellomod_makefile delete mode 100644 poky/meta/lib/oeqa/runtime/files/testmakefile delete mode 100644 poky/meta/lib/oeqa/runtime/loader.py delete mode 100644 poky/meta/lib/oeqa/runtime/utils/__init__.py delete mode 100644 poky/meta/lib/oeqa/runtime/utils/targetbuildproject.py delete mode 100644 poky/meta/lib/oeqa/sdk/__init__.py delete mode 100644 poky/meta/lib/oeqa/sdk/case.py delete mode 100644 poky/meta/lib/oeqa/sdk/cases/buildcpio.py delete mode 100644 poky/meta/lib/oeqa/sdk/cases/buildgalculator.py delete mode 100644 poky/meta/lib/oeqa/sdk/cases/buildlzip.py delete mode 100644 poky/meta/lib/oeqa/sdk/cases/gcc.py delete mode 100644 poky/meta/lib/oeqa/sdk/cases/perl.py delete mode 100644 poky/meta/lib/oeqa/sdk/cases/python.py delete mode 100644 poky/meta/lib/oeqa/sdk/context.py delete mode 100644 poky/meta/lib/oeqa/sdk/files/testsdkmakefile delete mode 100644 poky/meta/lib/oeqa/sdk/utils/__init__.py delete mode 100644 poky/meta/lib/oeqa/sdk/utils/sdkbuildproject.py delete mode 100644 poky/meta/lib/oeqa/sdkext/__init__.py delete mode 100644 poky/meta/lib/oeqa/sdkext/case.py delete mode 100644 poky/meta/lib/oeqa/sdkext/cases/devtool.py delete mode 100644 poky/meta/lib/oeqa/sdkext/context.py delete mode 100644 poky/meta/lib/oeqa/sdkext/files/myapp/Makefile delete mode 100644 poky/meta/lib/oeqa/sdkext/files/myapp/myapp.c delete mode 100644 poky/meta/lib/oeqa/sdkext/files/myapp_cmake/CMakeLists.txt delete mode 100644 poky/meta/lib/oeqa/sdkext/files/myapp_cmake/myapp.c delete mode 100644 poky/meta/lib/oeqa/selftest/case.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/_sstatetests_noauto.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/archiver.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/bblayers.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/bbtests.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/buildhistory.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/buildoptions.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/containerimage.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/devtool.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/distrodata.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/eSDK.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/gotoolchain.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/image_typedep.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/imagefeatures.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/layerappend.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/liboe.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/lic_checksum.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/manifest.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/oelib/__init__.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/oelib/elf.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/oelib/license.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/oelib/path.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/oelib/types.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/oelib/utils.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/oescripts.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/package.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/pkgdata.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/prservice.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/recipetool.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/runcmd.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/runqemu.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/runtime_test.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/selftest.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/signing.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/sstate.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/sstatetests.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/tinfoil.py delete mode 100644 poky/meta/lib/oeqa/selftest/cases/wic.py delete mode 100644 poky/meta/lib/oeqa/selftest/context.py delete mode 100644 poky/meta/lib/oeqa/targetcontrol.py delete mode 100644 poky/meta/lib/oeqa/utils/__init__.py delete mode 100644 poky/meta/lib/oeqa/utils/buildproject.py delete mode 100644 poky/meta/lib/oeqa/utils/commands.py delete mode 100644 poky/meta/lib/oeqa/utils/decorators.py delete mode 100644 poky/meta/lib/oeqa/utils/dump.py delete mode 100644 poky/meta/lib/oeqa/utils/ftools.py delete mode 100644 poky/meta/lib/oeqa/utils/git.py delete mode 100644 poky/meta/lib/oeqa/utils/httpserver.py delete mode 100644 poky/meta/lib/oeqa/utils/logparser.py delete mode 100644 poky/meta/lib/oeqa/utils/metadata.py delete mode 100644 poky/meta/lib/oeqa/utils/network.py delete mode 100644 poky/meta/lib/oeqa/utils/package_manager.py delete mode 100644 poky/meta/lib/oeqa/utils/qemurunner.py delete mode 100644 poky/meta/lib/oeqa/utils/qemutinyrunner.py delete mode 100644 poky/meta/lib/oeqa/utils/sshcontrol.py delete mode 100644 poky/meta/lib/oeqa/utils/subprocesstweak.py delete mode 100644 poky/meta/lib/oeqa/utils/targetbuild.py delete mode 100644 poky/meta/lib/oeqa/utils/testexport.py delete mode 100644 poky/meta/lib/rootfspostcommands.py delete mode 100644 poky/meta/recipes-bsp/acpid/acpid.inc delete mode 100644 poky/meta/recipes-bsp/acpid/acpid/acpid.service delete mode 100755 poky/meta/recipes-bsp/acpid/acpid/init delete mode 100644 poky/meta/recipes-bsp/acpid/acpid_2.0.28.bb delete mode 100644 poky/meta/recipes-bsp/alsa-state/alsa-state.bb delete mode 100755 poky/meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init delete mode 100644 poky/meta/recipes-bsp/alsa-state/alsa-state/asound.conf delete mode 100644 poky/meta/recipes-bsp/alsa-state/alsa-state/asound.state delete mode 100644 poky/meta/recipes-bsp/apmd/apmd/apmd.service delete mode 100644 poky/meta/recipes-bsp/apmd/apmd/apmd_proxy delete mode 100644 poky/meta/recipes-bsp/apmd/apmd/apmd_proxy.conf delete mode 100644 poky/meta/recipes-bsp/apmd/apmd/default delete mode 100755 poky/meta/recipes-bsp/apmd/apmd/init delete mode 100644 poky/meta/recipes-bsp/apmd/apmd/legacy.patch delete mode 100644 poky/meta/recipes-bsp/apmd/apmd/libtool.patch delete mode 100644 poky/meta/recipes-bsp/apmd/apmd/linkage.patch delete mode 100644 poky/meta/recipes-bsp/apmd/apmd/unlinux.patch delete mode 100644 poky/meta/recipes-bsp/apmd/apmd/wexitcode.patch delete mode 100644 poky/meta/recipes-bsp/apmd/apmd_3.2.2-15.bb delete mode 100644 poky/meta/recipes-bsp/eee-acpi-scripts/eee-acpi-scripts_git.bb delete mode 100644 poky/meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs delete mode 100644 poky/meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch delete mode 100644 poky/meta/recipes-bsp/eee-acpi-scripts/files/remove-doc-check.patch delete mode 100755 poky/meta/recipes-bsp/formfactor/files/config delete mode 100755 poky/meta/recipes-bsp/formfactor/files/machconfig delete mode 100755 poky/meta/recipes-bsp/formfactor/files/qemuarm/machconfig delete mode 100755 poky/meta/recipes-bsp/formfactor/files/qemuarmv6/machconfig delete mode 100755 poky/meta/recipes-bsp/formfactor/files/qemuarmv7/machconfig delete mode 100755 poky/meta/recipes-bsp/formfactor/files/qemumips/machconfig delete mode 100755 poky/meta/recipes-bsp/formfactor/files/qemumips64/machconfig delete mode 100755 poky/meta/recipes-bsp/formfactor/files/qemuppc/machconfig delete mode 100755 poky/meta/recipes-bsp/formfactor/files/qemux86-64/machconfig delete mode 100755 poky/meta/recipes-bsp/formfactor/files/qemux86/machconfig delete mode 100644 poky/meta/recipes-bsp/formfactor/formfactor_0.0.bb delete mode 100644 poky/meta/recipes-bsp/gnu-efi/gnu-efi/gcc46-compatibility.patch delete mode 100644 poky/meta/recipes-bsp/gnu-efi/gnu-efi/lib-Makefile-fix-parallel-issue.patch delete mode 100644 poky/meta/recipes-bsp/gnu-efi/gnu-efi/parallel-make-archives.patch delete mode 100644 poky/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.6.bb delete mode 100644 poky/meta/recipes-bsp/grub/files/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch delete mode 100644 poky/meta/recipes-bsp/grub/files/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-bsp/grub/files/0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch delete mode 100644 poky/meta/recipes-bsp/grub/files/autogen.sh-exclude-pc.patch delete mode 100644 poky/meta/recipes-bsp/grub/files/cfg delete mode 100644 poky/meta/recipes-bsp/grub/files/fix.build.with.gcc-7.patch delete mode 100644 poky/meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch delete mode 100644 poky/meta/recipes-bsp/grub/grub-efi_2.02.bb delete mode 100644 poky/meta/recipes-bsp/grub/grub2.inc delete mode 100644 poky/meta/recipes-bsp/grub/grub_2.02.bb delete mode 100644 poky/meta/recipes-bsp/keymaps/files/GPLv2.patch delete mode 100755 poky/meta/recipes-bsp/keymaps/files/keymap.sh delete mode 100644 poky/meta/recipes-bsp/keymaps/keymaps_1.0.bb delete mode 100644 poky/meta/recipes-bsp/libacpi/files/ldflags.patch delete mode 100644 poky/meta/recipes-bsp/libacpi/files/libacpi_fix_for_x32.patch delete mode 100644 poky/meta/recipes-bsp/libacpi/files/makefile-fix.patch delete mode 100644 poky/meta/recipes-bsp/libacpi/files/use_correct_strip_in_cross_environment.patch delete mode 100644 poky/meta/recipes-bsp/libacpi/libacpi_0.2.bb delete mode 100644 poky/meta/recipes-bsp/lrzsz/lrzsz-0.12.20/acdefine.patch delete mode 100644 poky/meta/recipes-bsp/lrzsz/lrzsz-0.12.20/autotools.patch delete mode 100644 poky/meta/recipes-bsp/lrzsz/lrzsz-0.12.20/gettext.patch delete mode 100644 poky/meta/recipes-bsp/lrzsz/lrzsz-0.12.20/lrzsz-check-locale.h.patch delete mode 100644 poky/meta/recipes-bsp/lrzsz/lrzsz-0.12.20/lrzsz_fix_for_automake-1.12.patch delete mode 100644 poky/meta/recipes-bsp/lrzsz/lrzsz-0.12.20/makefile.patch delete mode 100644 poky/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb delete mode 100644 poky/meta/recipes-bsp/pciutils/pciutils/configure.patch delete mode 100644 poky/meta/recipes-bsp/pciutils/pciutils_3.5.5.bb delete mode 100644 poky/meta/recipes-bsp/pcmciautils/pcmciautils-018/lex_sys_types.patch delete mode 100644 poky/meta/recipes-bsp/pcmciautils/pcmciautils-018/makefile_fix.patch delete mode 100644 poky/meta/recipes-bsp/pcmciautils/pcmciautils-018/makefile_race.patch delete mode 100644 poky/meta/recipes-bsp/pcmciautils/pcmciautils.inc delete mode 100644 poky/meta/recipes-bsp/pcmciautils/pcmciautils_018.bb delete mode 100644 poky/meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb delete mode 100644 poky/meta/recipes-bsp/setserial/setserial/add_stdlib.patch delete mode 100644 poky/meta/recipes-bsp/setserial/setserial/ldflags.patch delete mode 100644 poky/meta/recipes-bsp/setserial/setserial_2.17.bb delete mode 100644 poky/meta/recipes-bsp/u-boot/files/10m50-update-device-tree.patch delete mode 100644 poky/meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch delete mode 100644 poky/meta/recipes-bsp/u-boot/u-boot-common_2017.11.inc delete mode 100644 poky/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.11.bb delete mode 100644 poky/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.11.bb delete mode 100644 poky/meta/recipes-bsp/u-boot/u-boot.inc delete mode 100644 poky/meta/recipes-bsp/u-boot/u-boot_2017.11.bb delete mode 100644 poky/meta/recipes-bsp/usbinit/usbinit.bb delete mode 100644 poky/meta/recipes-bsp/usbinit/usbinit/COPYING.GPL delete mode 100755 poky/meta/recipes-bsp/usbinit/usbinit/usb-gether delete mode 100644 poky/meta/recipes-bsp/usbutils/usbutils/Fix-NULL-pointer-crash.patch delete mode 100644 poky/meta/recipes-bsp/usbutils/usbutils/usb-devices-avoid-dependency-on-bash.patch delete mode 100644 poky/meta/recipes-bsp/usbutils/usbutils_008.bb delete mode 100644 poky/meta/recipes-bsp/v86d/v86d/Update-x86emu-from-X.org.patch delete mode 100644 poky/meta/recipes-bsp/v86d/v86d/aarch64-host.patch delete mode 100644 poky/meta/recipes-bsp/v86d/v86d/ar-from-env.patch delete mode 100644 poky/meta/recipes-bsp/v86d/v86d_0.1.10.bb delete mode 100644 poky/meta/recipes-connectivity/avahi/avahi-ui_0.6.32.bb delete mode 100644 poky/meta/recipes-connectivity/avahi/avahi.inc delete mode 100644 poky/meta/recipes-connectivity/avahi/avahi_0.6.32.bb delete mode 100644 poky/meta/recipes-connectivity/avahi/files/0001-configure.ac-install-GtkBuilder-interface-files-for-.patch delete mode 100644 poky/meta/recipes-connectivity/avahi/files/00avahi-autoipd delete mode 100644 poky/meta/recipes-connectivity/avahi/files/99avahi-autoipd delete mode 100644 poky/meta/recipes-connectivity/avahi/files/avahi-fix-resource-unavaiable.patch delete mode 100644 poky/meta/recipes-connectivity/avahi/files/initscript.patch delete mode 100644 poky/meta/recipes-connectivity/bind/bind/0001-build-use-pkg-config-to-find-libxml2.patch delete mode 100644 poky/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch delete mode 100644 poky/meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch delete mode 100644 poky/meta/recipes-connectivity/bind/bind/bind-confgen-build-unix.o-once.patch delete mode 100644 poky/meta/recipes-connectivity/bind/bind/bind-ensure-searching-for-json-headers-searches-sysr.patch delete mode 100644 poky/meta/recipes-connectivity/bind/bind/bind9 delete mode 100644 poky/meta/recipes-connectivity/bind/bind/conf.patch delete mode 100644 poky/meta/recipes-connectivity/bind/bind/dont-test-on-host.patch delete mode 100644 poky/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh delete mode 100644 poky/meta/recipes-connectivity/bind/bind/init.d-add-support-for-read-only-rootfs.patch delete mode 100644 poky/meta/recipes-connectivity/bind/bind/make-etc-initd-bind-stop-work.patch delete mode 100644 poky/meta/recipes-connectivity/bind/bind/named.service delete mode 100644 poky/meta/recipes-connectivity/bind/bind/use-python3-and-fix-install-lib-path.patch delete mode 100644 poky/meta/recipes-connectivity/bind/bind_9.10.6.bb delete mode 100644 poky/meta/recipes-connectivity/bluez5/bluez5.inc delete mode 100644 poky/meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch delete mode 100644 poky/meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch delete mode 100644 poky/meta/recipes-connectivity/bluez5/bluez5/init delete mode 100644 poky/meta/recipes-connectivity/bluez5/bluez5/out-of-tree.patch delete mode 100644 poky/meta/recipes-connectivity/bluez5/bluez5/run-ptest delete mode 100644 poky/meta/recipes-connectivity/bluez5/bluez5_5.47.bb delete mode 100644 poky/meta/recipes-connectivity/connman/connman-conf.bb delete mode 100644 poky/meta/recipes-connectivity/connman/connman-conf/qemuall/wired-connection.service delete mode 100644 poky/meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup delete mode 100644 poky/meta/recipes-connectivity/connman/connman-conf/qemuall/wired.config delete mode 100644 poky/meta/recipes-connectivity/connman/connman-gnome/0001-Port-to-Gtk3.patch delete mode 100644 poky/meta/recipes-connectivity/connman/connman-gnome/0001-Removed-icon-from-connman-gnome-about-applet.patch delete mode 100644 poky/meta/recipes-connectivity/connman/connman-gnome/connman-gnome-fix-dbus-interface-name.patch delete mode 100644 poky/meta/recipes-connectivity/connman/connman-gnome/images/connman-signal-01.png delete mode 100644 poky/meta/recipes-connectivity/connman/connman-gnome/images/connman-signal-02.png delete mode 100644 poky/meta/recipes-connectivity/connman/connman-gnome/images/connman-signal-03.png delete mode 100644 poky/meta/recipes-connectivity/connman/connman-gnome/images/connman-signal-04.png delete mode 100644 poky/meta/recipes-connectivity/connman/connman-gnome/images/connman-signal-05.png delete mode 100644 poky/meta/recipes-connectivity/connman/connman-gnome/null_check_for_ipv4_config.patch delete mode 100644 poky/meta/recipes-connectivity/connman/connman-gnome_0.7.bb delete mode 100644 poky/meta/recipes-connectivity/connman/connman.inc delete mode 100644 poky/meta/recipes-connectivity/connman/connman/0001-connman.service-stop-systemd-resolved-when-we-use-co.patch delete mode 100644 poky/meta/recipes-connectivity/connman/connman/0001-plugin.h-Change-visibility-to-default-for-debug-symb.patch delete mode 100644 poky/meta/recipes-connectivity/connman/connman/0002-resolve-musl-does-not-implement-res_ninit.patch delete mode 100644 poky/meta/recipes-connectivity/connman/connman/connman delete mode 100644 poky/meta/recipes-connectivity/connman/connman/includes.patch delete mode 100644 poky/meta/recipes-connectivity/connman/connman/no-version-scripts.patch delete mode 100644 poky/meta/recipes-connectivity/connman/connman_1.35.bb delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp.inc delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp/0001-define-macro-_PATH_DHCPD_CONF-and-_PATH_DHCLIENT_CON.patch delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp/0002-dhclient-dbus.patch delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp/0003-link-with-lcrypto.patch delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp/0004-Fix-out-of-tree-builds.patch delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp/0005-dhcp-client-fix-invoke-dhclient-script-failed-on-Rea.patch delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp/0006-site.h-enable-gentle-shutdown.patch delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp/0007-Add-configure-argument-to-make-the-libxml2-dependenc.patch delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp/0008-tweak-to-support-external-bind.patch delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp/0009-remove-dhclient-script-bash-dependency.patch delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp/0010-build-shared-libs.patch delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp/0011-Moved-the-call-to-isc_app_ctxstart-to-not-get-signal.patch delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp/0012-dhcp-correct-the-intention-for-xml2-lib-search.patch delete mode 100644 poky/meta/recipes-connectivity/dhcp/dhcp_4.3.6.bb delete mode 100644 poky/meta/recipes-connectivity/dhcp/files/default-relay delete mode 100644 poky/meta/recipes-connectivity/dhcp/files/default-server delete mode 100644 poky/meta/recipes-connectivity/dhcp/files/dhclient-systemd-wrapper delete mode 100644 poky/meta/recipes-connectivity/dhcp/files/dhclient.conf delete mode 100644 poky/meta/recipes-connectivity/dhcp/files/dhclient.service delete mode 100644 poky/meta/recipes-connectivity/dhcp/files/dhcpd.conf delete mode 100644 poky/meta/recipes-connectivity/dhcp/files/dhcpd.service delete mode 100644 poky/meta/recipes-connectivity/dhcp/files/dhcpd6.service delete mode 100644 poky/meta/recipes-connectivity/dhcp/files/dhcrelay.service delete mode 100644 poky/meta/recipes-connectivity/dhcp/files/init-relay delete mode 100644 poky/meta/recipes-connectivity/dhcp/files/init-server delete mode 100644 poky/meta/recipes-connectivity/iproute2/iproute2.inc delete mode 100644 poky/meta/recipes-connectivity/iproute2/iproute2/0001-ip-Remove-unneed-header.patch delete mode 100644 poky/meta/recipes-connectivity/iproute2/iproute2/0001-iproute2-de-bash-scripts.patch delete mode 100644 poky/meta/recipes-connectivity/iproute2/iproute2/0001-libc-compat.h-add-musl-workaround.patch delete mode 100644 poky/meta/recipes-connectivity/iproute2/iproute2/configure-cross.patch delete mode 100644 poky/meta/recipes-connectivity/iproute2/iproute2_4.13.0.bb delete mode 100755 poky/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init delete mode 100644 poky/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/ldflags.patch delete mode 100644 poky/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/musl.patch delete mode 100644 poky/meta/recipes-connectivity/irda-utils/irda-utils_0.9.18.bb delete mode 100644 poky/meta/recipes-connectivity/iw/iw/0001-iw-version.sh-don-t-use-git-describe-for-versioning.patch delete mode 100644 poky/meta/recipes-connectivity/iw/iw/separate-objdir.patch delete mode 100644 poky/meta/recipes-connectivity/iw/iw_4.9.bb delete mode 100644 poky/meta/recipes-connectivity/libnss-mdns/libnss-mdns/0001-check-for-nss.h.patch delete mode 100644 poky/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb delete mode 100644 poky/meta/recipes-connectivity/libpcap/libpcap.inc delete mode 100644 poky/meta/recipes-connectivity/libpcap/libpcap/0001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch delete mode 100644 poky/meta/recipes-connectivity/libpcap/libpcap/0002-Add-missing-compiler_state_t-parameter.patch delete mode 100644 poky/meta/recipes-connectivity/libpcap/libpcap/disable-remote.patch delete mode 100644 poky/meta/recipes-connectivity/libpcap/libpcap/fix-grammar-deps.patch delete mode 100644 poky/meta/recipes-connectivity/libpcap/libpcap/libpcap-pkgconfig-support.patch delete mode 100644 poky/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb delete mode 100644 poky/meta/recipes-connectivity/mobile-broadband-provider-info/mobile-broadband-provider-info_git.bb delete mode 100644 poky/meta/recipes-connectivity/neard/neard/0001-Add-header-dependency-to-nciattach.o.patch delete mode 100644 poky/meta/recipes-connectivity/neard/neard/Makefile.am-do-not-ship-version.h.patch delete mode 100644 poky/meta/recipes-connectivity/neard/neard/Makefile.am-fix-parallel-issue.patch delete mode 100644 poky/meta/recipes-connectivity/neard/neard/neard.in delete mode 100644 poky/meta/recipes-connectivity/neard/neard_0.16.bb delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/files/bugfix-adjust-statd-service-name.patch delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/files/nfs-utils-debianize-start-statd.patch delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/libnfsidmap/0001-include-sys-types.h-for-getting-u_-typedefs.patch delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/libnfsidmap/Set_nobody_user_group.patch delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/libnfsidmap/fix-ac-prereq.patch delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/libnfsidmap_0.25.bb delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-configure-Allow-to-explicitly-disable-nfsidmap.patch delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-include-stdint.h-for-UINT16_MAX-definition.patch delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-utils-1.2.3-sm-notify-res_init.patch delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-utils.conf delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/nfs-utils/proc-fs-nfsd.mount delete mode 100644 poky/meta/recipes-connectivity/nfs-utils/nfs-utils_2.1.1.bb delete mode 100644 poky/meta/recipes-connectivity/ofono/ofono.inc delete mode 100644 poky/meta/recipes-connectivity/ofono/ofono/ofono delete mode 100644 poky/meta/recipes-connectivity/ofono/ofono_1.21.bb delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh/0001-openssh-Fix-syntax-error-on-x32.patch delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh/add-test-support-for-busybox.patch delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh/fix-potential-signed-overflow-in-pointer-arithmatic.patch delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh/init delete mode 100755 poky/meta/recipes-connectivity/openssh/openssh/run-ptest delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh/ssh_config delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh/sshd delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh/sshd.socket delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh/sshd@.service delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh/sshd_check_keys delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh/sshd_config delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh/volatiles.99_sshd delete mode 100644 poky/meta/recipes-connectivity/openssh/openssh_7.6p1.bb delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/0001-Fix-build-with-clang-using-external-assembler.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/0001-aes-armv4-bsaes-armv7-sha256-armv4-.pl-make-it-work-.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/0001-openssl-force-soft-link-to-avoid-rare-race.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/Makefiles-ptest.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/Use-SHA256-not-MD5-as-default-digest.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/configure-musl-target.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/configure-targets.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian/c_rehash-compat.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian/ca.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian/debian-targets.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian/man-dir.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian/man-section.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian/no-rpath.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian/no-symbolic.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian/pic.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian/version-script.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian1.0.2/block_digicert_malaysia.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian1.0.2/block_diginotar.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian1.0.2/soname.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/debian1.0.2/version-script.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/engines-install-in-libdir-ssl.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/find.pl delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/oe-ldflags.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/openssl-1.0.2a-x32-asm.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/openssl-c_rehash.sh delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/openssl-fix-des.pod-error.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/openssl-util-perlpath.pl-cwd.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/openssl_fix_for_x32.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/parallel.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/ptest-deps.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/ptest_makefile_deps.patch delete mode 100755 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/run-ptest delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl-1.0.2m/shared-libs.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl/0001-Remove-test-that-requires-running-as-non-root.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl/0001-Take-linking-flags-from-LDFLAGS-env-var.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl/0001-aes-asm-aes-armv4-bsaes-armv7-.pl-make-it-work-with-.patch delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl/openssl-c_rehash.sh delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl/run-ptest delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl10.inc delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl_1.0.2m.bb delete mode 100644 poky/meta/recipes-connectivity/openssl/openssl_1.1.0g.bb delete mode 100644 poky/meta/recipes-connectivity/ppp-dialin/files/host-peer delete mode 100644 poky/meta/recipes-connectivity/ppp-dialin/files/ppp-dialin delete mode 100644 poky/meta/recipes-connectivity/ppp-dialin/ppp-dialin_0.1.bb delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/0001-Fix-build-with-musl.patch delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/0001-ppp-Fix-compilation-errors-in-Makefile.patch delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/0001-ppp-Remove-unneeded-include.patch delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/0001-pppoe-include-netinet-in.h-before-linux-in.h.patch delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/08setupdns delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/92removedns delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/cifdefroute.patch delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/copts.patch delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/fix-CVE-2015-3310.patch delete mode 100755 poky/meta/recipes-connectivity/ppp/ppp/init delete mode 100755 poky/meta/recipes-connectivity/ppp/ppp/ip-down delete mode 100755 poky/meta/recipes-connectivity/ppp/ppp/ip-up delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/makefile-remove-hard-usr-reference.patch delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/makefile.patch delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/pap delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/poff delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/pon delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/ppp@.service delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/ppp_on_boot delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/pppd-resolv-varrun.patch delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp/provider delete mode 100644 poky/meta/recipes-connectivity/ppp/ppp_2.4.7.bb delete mode 100644 poky/meta/recipes-connectivity/resolvconf/resolvconf/99_resolvconf delete mode 100644 poky/meta/recipes-connectivity/resolvconf/resolvconf/fix-path-for-busybox.patch delete mode 100644 poky/meta/recipes-connectivity/resolvconf/resolvconf_1.79.bb delete mode 100644 poky/meta/recipes-connectivity/socat/socat/0001-Access-c_ispeed-and-c_ospeed-via-APIs.patch delete mode 100644 poky/meta/recipes-connectivity/socat/socat/0001-define-NETDB_INTERNAL-to-1-if-not-available.patch delete mode 100644 poky/meta/recipes-connectivity/socat/socat/Makefile.in-fix-for-parallel-build.patch delete mode 100644 poky/meta/recipes-connectivity/socat/socat_1.7.3.2.bb delete mode 100644 poky/meta/recipes-connectivity/wireless-tools/wireless-tools/avoid_strip.patch delete mode 100644 poky/meta/recipes-connectivity/wireless-tools/wireless-tools/ldflags.patch delete mode 100644 poky/meta/recipes-connectivity/wireless-tools/wireless-tools/man.patch delete mode 100644 poky/meta/recipes-connectivity/wireless-tools/wireless-tools/remove.ldconfig.call.patch delete mode 100644 poky/meta/recipes-connectivity/wireless-tools/wireless-tools_30.pre9.bb delete mode 100644 poky/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/99_wpa_supplicant delete mode 100644 poky/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/defconfig delete mode 100644 poky/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/key-replay-cve-multiple.patch delete mode 100644 poky/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa-supplicant.sh delete mode 100644 poky/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_supplicant.conf delete mode 100644 poky/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_supplicant.conf-sane delete mode 100644 poky/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb delete mode 100644 poky/meta/recipes-core/base-files/base-files/filesystems delete mode 100644 poky/meta/recipes-core/base-files/base-files/fstab delete mode 100644 poky/meta/recipes-core/base-files/base-files/host.conf delete mode 100644 poky/meta/recipes-core/base-files/base-files/issue delete mode 100644 poky/meta/recipes-core/base-files/base-files/issue.net delete mode 100644 poky/meta/recipes-core/base-files/base-files/licenses/GPL-2 delete mode 100644 poky/meta/recipes-core/base-files/base-files/motd delete mode 100644 poky/meta/recipes-core/base-files/base-files/nsswitch.conf delete mode 100644 poky/meta/recipes-core/base-files/base-files/profile delete mode 100644 poky/meta/recipes-core/base-files/base-files/rotation delete mode 100644 poky/meta/recipes-core/base-files/base-files/share/dot.bashrc delete mode 100644 poky/meta/recipes-core/base-files/base-files/share/dot.profile delete mode 100644 poky/meta/recipes-core/base-files/base-files/shells delete mode 100644 poky/meta/recipes-core/base-files/base-files/usbd delete mode 100644 poky/meta/recipes-core/base-files/base-files_3.0.14.bb delete mode 100644 poky/meta/recipes-core/base-passwd/base-passwd/add_shutdown.patch delete mode 100644 poky/meta/recipes-core/base-passwd/base-passwd/disable-docs.patch delete mode 100644 poky/meta/recipes-core/base-passwd/base-passwd/input.patch delete mode 100644 poky/meta/recipes-core/base-passwd/base-passwd/nobash.patch delete mode 100644 poky/meta/recipes-core/base-passwd/base-passwd/noshadow.patch delete mode 100644 poky/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb delete mode 100644 poky/meta/recipes-core/bsd-headers/bsd-headers.bb delete mode 100644 poky/meta/recipes-core/bsd-headers/bsd-headers/sys-cdefs.h delete mode 100644 poky/meta/recipes-core/bsd-headers/bsd-headers/sys-queue.h delete mode 100644 poky/meta/recipes-core/bsd-headers/bsd-headers/sys-tree.h delete mode 100644 poky/meta/recipes-core/busybox/busybox.inc delete mode 100644 poky/meta/recipes-core/busybox/busybox/0001-Use-CC-when-linking-instead-of-LD-and-use-CFLAGS-and.patch delete mode 100755 poky/meta/recipes-core/busybox/busybox/CVE-2011-5325.patch delete mode 100644 poky/meta/recipes-core/busybox/busybox/busybox-cross-menuconfig.patch delete mode 100644 poky/meta/recipes-core/busybox/busybox/busybox-udhcpc-no_deconfig.patch delete mode 100644 poky/meta/recipes-core/busybox/busybox/defconfig delete mode 100644 poky/meta/recipes-core/busybox/busybox/fail_on_no_media.patch delete mode 100644 poky/meta/recipes-core/busybox/busybox/getopts.cfg delete mode 100644 poky/meta/recipes-core/busybox/busybox/init.cfg delete mode 100644 poky/meta/recipes-core/busybox/busybox/login-utilities.cfg delete mode 100644 poky/meta/recipes-core/busybox/busybox/makefile-libbb-race.patch delete mode 100644 poky/meta/recipes-core/busybox/busybox/mdev.cfg delete mode 100644 poky/meta/recipes-core/busybox/busybox/mount-via-label.cfg delete mode 100644 poky/meta/recipes-core/busybox/busybox/musl.cfg delete mode 100644 poky/meta/recipes-core/busybox/busybox/recognize_connmand.patch delete mode 100644 poky/meta/recipes-core/busybox/busybox/resize.cfg delete mode 100644 poky/meta/recipes-core/busybox/busybox/sha1sum.cfg delete mode 100644 poky/meta/recipes-core/busybox/busybox/sha256sum.cfg delete mode 100644 poky/meta/recipes-core/busybox/busybox/syslog.cfg delete mode 100644 poky/meta/recipes-core/busybox/busybox_1.27.2.bb delete mode 100755 poky/meta/recipes-core/busybox/files/busybox-cron delete mode 100755 poky/meta/recipes-core/busybox/files/busybox-httpd delete mode 100644 poky/meta/recipes-core/busybox/files/busybox-klogd.service.in delete mode 100644 poky/meta/recipes-core/busybox/files/busybox-syslog.default delete mode 100644 poky/meta/recipes-core/busybox/files/busybox-syslog.service.in delete mode 100755 poky/meta/recipes-core/busybox/files/busybox-udhcpd delete mode 100644 poky/meta/recipes-core/busybox/files/default.script delete mode 100644 poky/meta/recipes-core/busybox/files/find-touchscreen.sh delete mode 100644 poky/meta/recipes-core/busybox/files/hwclock.sh delete mode 100644 poky/meta/recipes-core/busybox/files/inetd delete mode 100644 poky/meta/recipes-core/busybox/files/inetd.conf delete mode 100644 poky/meta/recipes-core/busybox/files/inittab delete mode 100755 poky/meta/recipes-core/busybox/files/mdev delete mode 100644 poky/meta/recipes-core/busybox/files/mdev-mount.sh delete mode 100644 poky/meta/recipes-core/busybox/files/mdev.conf delete mode 100755 poky/meta/recipes-core/busybox/files/mount.busybox delete mode 100644 poky/meta/recipes-core/busybox/files/rcK delete mode 100644 poky/meta/recipes-core/busybox/files/rcS delete mode 100644 poky/meta/recipes-core/busybox/files/run-ptest delete mode 100644 poky/meta/recipes-core/busybox/files/runlevel delete mode 100644 poky/meta/recipes-core/busybox/files/simple.script delete mode 100644 poky/meta/recipes-core/busybox/files/syslog delete mode 100644 poky/meta/recipes-core/busybox/files/syslog-startup.conf delete mode 100644 poky/meta/recipes-core/busybox/files/syslog.conf delete mode 100755 poky/meta/recipes-core/busybox/files/umount.busybox delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/0001-Cover-the-else-with-__GLIBC__.patch delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/0001-Fix-format-security-compilation-error.patch delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/0001-kbdtools-Include-sys-types.h-for-u_char-and-u_short-.patch delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/Makevars delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/codepage.patch delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/compile.patch delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/configure.patch delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/fix-libconsole-linking.patch delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/kbdrate.patch delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/lcmessage.m4 delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/no-dep-on-libfl.patch delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/nodocs.patch delete mode 100644 poky/meta/recipes-core/console-tools/console-tools-0.3.2/uclibc-fileno.patch delete mode 100644 poky/meta/recipes-core/console-tools/console-tools_0.3.2.bb delete mode 100644 poky/meta/recipes-core/coreutils/coreutils/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-core/coreutils/coreutils/0001-local.mk-fix-cross-compiling-problem.patch delete mode 100644 poky/meta/recipes-core/coreutils/coreutils/0001-uname-report-processor-and-hardware-correctly.patch delete mode 100644 poky/meta/recipes-core/coreutils/coreutils/disable-ls-output-quoting.patch delete mode 100644 poky/meta/recipes-core/coreutils/coreutils/fix-selinux-flask.patch delete mode 100644 poky/meta/recipes-core/coreutils/coreutils/man-decouple-manpages-from-build.patch delete mode 100644 poky/meta/recipes-core/coreutils/coreutils/remove-usr-local-lib-from-m4.patch delete mode 100644 poky/meta/recipes-core/coreutils/coreutils_8.27.bb delete mode 100644 poky/meta/recipes-core/dbus-wait/dbus-wait_git.bb delete mode 100644 poky/meta/recipes-core/dbus/dbus-glib.inc delete mode 100644 poky/meta/recipes-core/dbus/dbus-glib/no-examples.patch delete mode 100644 poky/meta/recipes-core/dbus/dbus-glib/test-install-makefile.patch delete mode 100644 poky/meta/recipes-core/dbus/dbus-glib_0.108.bb delete mode 100644 poky/meta/recipes-core/dbus/dbus-test_1.10.20.bb delete mode 100644 poky/meta/recipes-core/dbus/dbus/0001-configure.ac-explicitely-check-stdint.h.patch delete mode 100644 poky/meta/recipes-core/dbus/dbus/clear-guid_from_server-if-send_negotiate_unix_f.patch delete mode 100644 poky/meta/recipes-core/dbus/dbus/dbus-1.init delete mode 100644 poky/meta/recipes-core/dbus/dbus/os-test.patch delete mode 100644 poky/meta/recipes-core/dbus/dbus/python-config.patch delete mode 100755 poky/meta/recipes-core/dbus/dbus/run-ptest delete mode 100644 poky/meta/recipes-core/dbus/dbus/tmpdir.patch delete mode 100644 poky/meta/recipes-core/dbus/dbus_1.10.20.bb delete mode 100644 poky/meta/recipes-core/dropbear/dropbear.inc delete mode 100644 poky/meta/recipes-core/dropbear/dropbear/0001-urandom-xauth-changes-to-options.h.patch delete mode 100644 poky/meta/recipes-core/dropbear/dropbear/0003-configure.patch delete mode 100644 poky/meta/recipes-core/dropbear/dropbear/0004-fix-2kb-keys.patch delete mode 100644 poky/meta/recipes-core/dropbear/dropbear/0005-dropbear-enable-pam.patch delete mode 100644 poky/meta/recipes-core/dropbear/dropbear/0006-dropbear-configuration-file.patch delete mode 100644 poky/meta/recipes-core/dropbear/dropbear/0007-dropbear-fix-for-x32-abi.patch delete mode 100644 poky/meta/recipes-core/dropbear/dropbear/dropbear delete mode 100644 poky/meta/recipes-core/dropbear/dropbear/dropbear.socket delete mode 100644 poky/meta/recipes-core/dropbear/dropbear/dropbear@.service delete mode 100644 poky/meta/recipes-core/dropbear/dropbear/dropbearkey.service delete mode 100644 poky/meta/recipes-core/dropbear/dropbear/fix-libtomcrypt-libtommath-ordering.patch delete mode 100755 poky/meta/recipes-core/dropbear/dropbear/init delete mode 100644 poky/meta/recipes-core/dropbear/dropbear_2017.75.bb delete mode 100644 poky/meta/recipes-core/expat/expat.inc delete mode 100644 poky/meta/recipes-core/expat/expat/autotools.patch delete mode 100644 poky/meta/recipes-core/expat/expat/libtool-tag.patch delete mode 100644 poky/meta/recipes-core/expat/expat/no_getrandom.patch delete mode 100644 poky/meta/recipes-core/expat/expat_2.2.5.bb delete mode 100644 poky/meta/recipes-core/fts/fts.bb delete mode 100644 poky/meta/recipes-core/gettext/gettext-0.19.8.1/add-with-bisonlocaledir.patch delete mode 100644 poky/meta/recipes-core/gettext/gettext-0.19.8.1/cr-statement.c-timsort.h-fix-formatting-issues.patch delete mode 100644 poky/meta/recipes-core/gettext/gettext-0.19.8.1/parallel.patch delete mode 100644 poky/meta/recipes-core/gettext/gettext-minimal-0.19.8.1/0001-PATCH-Disable-the-test-to-convert-euc-jp.patch delete mode 100644 poky/meta/recipes-core/gettext/gettext-minimal-0.19.8.1/COPYING delete mode 100644 poky/meta/recipes-core/gettext/gettext-minimal-0.19.8.1/Makefile.in.in delete mode 100644 poky/meta/recipes-core/gettext/gettext-minimal-0.19.8.1/aclocal.tgz delete mode 100755 poky/meta/recipes-core/gettext/gettext-minimal-0.19.8.1/config.rpath delete mode 100644 poky/meta/recipes-core/gettext/gettext-minimal-0.19.8.1/remove-potcdate.sin delete mode 100644 poky/meta/recipes-core/gettext/gettext-minimal-native_0.19.8.1.bb delete mode 100644 poky/meta/recipes-core/gettext/gettext_0.19.8.1.bb delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0/0001-Do-not-ignore-return-value-of-write.patch delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0/0001-Install-gio-querymodules-as-libexec_PROGRAM.patch delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0/0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0/0001-Test-for-pthread_getname_np-before-using-it.patch delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0/0010-Do-not-hardcode-python-path-into-various-tools.patch delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0/Enable-more-tests-while-cross-compiling.patch delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0/allow-run-media-sdX-drive-mount-if-username-root.patch delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0/configure-libtool.patch delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0/ptest-paths.patch delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0/run-ptest delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0/uclibc_musl_translation.patch delete mode 100644 poky/meta/recipes-core/glib-2.0/glib-2.0_2.54.2.bb delete mode 100644 poky/meta/recipes-core/glib-2.0/glib.inc delete mode 100644 poky/meta/recipes-core/glib-networking/glib-networking_2.54.1.bb delete mode 100644 poky/meta/recipes-core/glibc/cross-localedef-native_2.26.bb delete mode 100644 poky/meta/recipes-core/glibc/glibc-collateral.inc delete mode 100644 poky/meta/recipes-core/glibc/glibc-common.inc delete mode 100644 poky/meta/recipes-core/glibc/glibc-initial.inc delete mode 100644 poky/meta/recipes-core/glibc/glibc-initial_2.26.bb delete mode 100644 poky/meta/recipes-core/glibc/glibc-ld.inc delete mode 100644 poky/meta/recipes-core/glibc/glibc-locale.inc delete mode 100644 poky/meta/recipes-core/glibc/glibc-locale_2.26.bb delete mode 100644 poky/meta/recipes-core/glibc/glibc-mtrace.inc delete mode 100644 poky/meta/recipes-core/glibc/glibc-mtrace_2.26.bb delete mode 100644 poky/meta/recipes-core/glibc/glibc-package.inc delete mode 100644 poky/meta/recipes-core/glibc/glibc-scripts.inc delete mode 100644 poky/meta/recipes-core/glibc/glibc-scripts_2.26.bb delete mode 100644 poky/meta/recipes-core/glibc/glibc-testing.inc delete mode 100644 poky/meta/recipes-core/glibc/glibc.inc delete mode 100644 poky/meta/recipes-core/glibc/glibc/0001-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0002-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0005-fsl-e500-e5500-e6500-603e-fsqrt-implementation.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0006-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0007-ppc-sqrt-Fix-undefined-reference-to-__sqrt_finite.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0008-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0009-Quote-from-bug-1443-which-explains-what-the-patch-do.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0010-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0011-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0012-sysdeps-gnu-configure.ac-handle-correctly-libc_cv_ro.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0013-Add-unused-attribute.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0014-yes-within-the-path-sets-wrong-config-variables.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0015-timezone-re-written-tzselect-as-posix-sh.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0016-Remove-bash-dependency-for-nscd-init-script.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0017-eglibc-Cross-building-and-testing-instructions.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0018-eglibc-Help-bootstrap-cross-toolchain.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0019-eglibc-Clear-cache-lines-on-ppc8xx.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0020-eglibc-Resolve-__fpscr_values-on-SH4.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0021-eglibc-Install-PIC-archives.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0022-eglibc-Forward-port-cross-locale-generation-support.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0023-Define-DUMMY_LOCALE_T-if-not-defined.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0024-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0025-locale-fix-hard-coded-reference-to-gcc-E.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0026-assert-Suppress-pedantic-warning-caused-by-statement.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0027-glibc-reset-dl-load-write-lock-after-forking.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/0028-Bug-4578-add-ld.so-lock-while-fork.patch delete mode 100644 poky/meta/recipes-core/glibc/glibc/etc/ld.so.conf delete mode 100644 poky/meta/recipes-core/glibc/glibc/generate-supported.mk delete mode 100644 poky/meta/recipes-core/glibc/glibc_2.26.bb delete mode 100644 poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/32and64bit.patch delete mode 100644 poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/README delete mode 100644 poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/add-64-bit-flag-for-ELF64-entries.patch delete mode 100644 poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/endian-ness_handling.patch delete mode 100644 poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/endian-ness_handling_fix.patch delete mode 100644 poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/endianess-header.patch delete mode 100644 poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/flag_fix.patch delete mode 100644 poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/ldconfig-default-to-all-multilib-dirs.patch delete mode 100644 poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/ldconfig-native-2.12.1.tar.bz2 delete mode 100644 poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/ldconfig.patch delete mode 100644 poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/ldconfig_aux-cache_path_fix.patch delete mode 100644 poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb delete mode 100644 poky/meta/recipes-core/glibc/site_config/funcs delete mode 100644 poky/meta/recipes-core/glibc/site_config/headers delete mode 100644 poky/meta/recipes-core/glibc/site_config/types delete mode 100644 poky/meta/recipes-core/ifupdown/files/99_network delete mode 100644 poky/meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch delete mode 100644 poky/meta/recipes-core/ifupdown/files/inet-6-.defn-fix-inverted-checks-for-loopback.patch delete mode 100644 poky/meta/recipes-core/ifupdown/ifupdown_0.8.16.bb delete mode 100644 poky/meta/recipes-core/images/build-appliance-image/README_VirtualBox_Guest_Additions.txt delete mode 100644 poky/meta/recipes-core/images/build-appliance-image/README_VirtualBox_Toaster.txt delete mode 100644 poky/meta/recipes-core/images/build-appliance-image/Yocto_Build_Appliance.vmx delete mode 100644 poky/meta/recipes-core/images/build-appliance-image/Yocto_Build_Appliance.vmxf delete mode 100644 poky/meta/recipes-core/images/build-appliance-image_15.0.0.bb delete mode 100644 poky/meta/recipes-core/images/core-image-base.bb delete mode 100644 poky/meta/recipes-core/images/core-image-minimal-dev.bb delete mode 100644 poky/meta/recipes-core/images/core-image-minimal-initramfs.bb delete mode 100644 poky/meta/recipes-core/images/core-image-minimal-mtdutils.bb delete mode 100644 poky/meta/recipes-core/images/core-image-minimal.bb delete mode 100644 poky/meta/recipes-core/images/core-image-tiny-initramfs.bb delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/copyright delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/init delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/nfsroot delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuarm/interfaces delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuarm64/interfaces delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuarmv6/interfaces delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuarmv7/interfaces delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemumips/interfaces delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemumips64/interfaces delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuppc/interfaces delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemush4/interfaces delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemux86-64/interfaces delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemux86/interfaces delete mode 100644 poky/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb delete mode 100644 poky/meta/recipes-core/initrdscripts/files/init-boot.sh delete mode 100644 poky/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh delete mode 100644 poky/meta/recipes-core/initrdscripts/files/init-install-efi.sh delete mode 100644 poky/meta/recipes-core/initrdscripts/files/init-install-testfs.sh delete mode 100644 poky/meta/recipes-core/initrdscripts/files/init-install.sh delete mode 100644 poky/meta/recipes-core/initrdscripts/files/init-live.sh delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-framework/debug delete mode 100755 poky/meta/recipes-core/initrdscripts/initramfs-framework/e2fs delete mode 100755 poky/meta/recipes-core/initrdscripts/initramfs-framework/finish delete mode 100755 poky/meta/recipes-core/initrdscripts/initramfs-framework/init delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-framework/mdev delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-framework/rootfs delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-framework/setup-live delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-framework/udev delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-live-boot-tiny_1.0.bb delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-live-install-efi-testfs_1.0.bb delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-live-install-efi_1.0.bb delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-live-install-testfs_1.0.bb delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-module-install-efi_1.0.bb delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-module-install_1.0.bb delete mode 100644 poky/meta/recipes-core/initrdscripts/initramfs-module-setup-live_1.0.bb delete mode 100644 poky/meta/recipes-core/initscripts/initscripts-1.0/GPLv2.patch delete mode 100644 poky/meta/recipes-core/initscripts/initscripts-1.0/arm/alignment.sh delete mode 100644 poky/meta/recipes-core/initscripts/initscripts-1.0/banner.sh delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/checkfs.sh delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh delete mode 100644 poky/meta/recipes-core/initscripts/initscripts-1.0/devpts delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/devpts.sh delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/functions delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/halt delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/hostname.sh delete mode 100644 poky/meta/recipes-core/initscripts/initscripts-1.0/logrotate-dmesg.conf delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/mountall.sh delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh delete mode 100644 poky/meta/recipes-core/initscripts/initscripts-1.0/read-only-rootfs-hook.sh delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/reboot delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/rmnologin.sh delete mode 100644 poky/meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/sendsigs delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/single delete mode 100644 poky/meta/recipes-core/initscripts/initscripts-1.0/sushell delete mode 100644 poky/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/umountfs delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh delete mode 100755 poky/meta/recipes-core/initscripts/initscripts-1.0/urandom delete mode 100644 poky/meta/recipes-core/initscripts/initscripts-1.0/volatiles delete mode 100644 poky/meta/recipes-core/initscripts/initscripts_1.0.bb delete mode 100644 poky/meta/recipes-core/kbd/kbd/run-ptest delete mode 100644 poky/meta/recipes-core/kbd/kbd/set-proper-path-of-resources.patch delete mode 100644 poky/meta/recipes-core/kbd/kbd_2.0.4.bb delete mode 100644 poky/meta/recipes-core/libcgroup/libcgroup/musl-decls-compat.patch delete mode 100644 poky/meta/recipes-core/libcgroup/libcgroup_0.41.bb delete mode 100644 poky/meta/recipes-core/libxml/libxml2/0001-Make-ptest-run-the-python-tests-if-python-is-enabled.patch delete mode 100644 poky/meta/recipes-core/libxml/libxml2/ansidecl.patch delete mode 100644 poky/meta/recipes-core/libxml/libxml2/libxml-64bit.patch delete mode 100644 poky/meta/recipes-core/libxml/libxml2/libxml-m4-use-pkgconfig.patch delete mode 100644 poky/meta/recipes-core/libxml/libxml2/python-sitepackages-dir.patch delete mode 100644 poky/meta/recipes-core/libxml/libxml2/run-ptest delete mode 100644 poky/meta/recipes-core/libxml/libxml2/runtest.patch delete mode 100644 poky/meta/recipes-core/libxml/libxml2_2.9.7.bb delete mode 100644 poky/meta/recipes-core/meta/build-sysroots.bb delete mode 100644 poky/meta/recipes-core/meta/buildtools-tarball.bb delete mode 100644 poky/meta/recipes-core/meta/meta-environment-extsdk.bb delete mode 100644 poky/meta/recipes-core/meta/meta-environment.bb delete mode 100644 poky/meta/recipes-core/meta/meta-extsdk-toolchain.bb delete mode 100644 poky/meta/recipes-core/meta/meta-go-toolchain.bb delete mode 100644 poky/meta/recipes-core/meta/meta-ide-support.bb delete mode 100644 poky/meta/recipes-core/meta/meta-toolchain.bb delete mode 100644 poky/meta/recipes-core/meta/meta-world-pkgdata.bb delete mode 100644 poky/meta/recipes-core/meta/nativesdk-buildtools-perl-dummy.bb delete mode 100644 poky/meta/recipes-core/meta/package-index.bb delete mode 100644 poky/meta/recipes-core/meta/signing-keys.bb delete mode 100644 poky/meta/recipes-core/meta/testexport-tarball.bb delete mode 100644 poky/meta/recipes-core/meta/uninative-tarball.bb delete mode 100644 poky/meta/recipes-core/meta/wic-tools.bb delete mode 100644 poky/meta/recipes-core/musl/files/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch delete mode 100644 poky/meta/recipes-core/musl/musl.inc delete mode 100644 poky/meta/recipes-core/musl/musl_git.bb delete mode 100644 poky/meta/recipes-core/ncurses/files/0001-tic-hang.patch delete mode 100644 poky/meta/recipes-core/ncurses/files/0002-configure-reproducible.patch delete mode 100644 poky/meta/recipes-core/ncurses/files/CVE-2017-13732-CVE-2017-13734-CVE-2017-13730-CVE-2017-13729-CVE-2017-13728-CVE-2017-13731.patch delete mode 100644 poky/meta/recipes-core/ncurses/files/config.cache delete mode 100644 poky/meta/recipes-core/ncurses/ncurses.inc delete mode 100644 poky/meta/recipes-core/ncurses/ncurses_6.0+20170715.bb delete mode 100644 poky/meta/recipes-core/ncurses/site_config/headers delete mode 100644 poky/meta/recipes-core/netbase/netbase/hosts delete mode 100644 poky/meta/recipes-core/netbase/netbase/netbase-add-rpcbind-as-an-alias-to-sunrpc.patch delete mode 100644 poky/meta/recipes-core/netbase/netbase_5.4.bb delete mode 100644 poky/meta/recipes-core/os-release/os-release.bb delete mode 100644 poky/meta/recipes-core/ovmf/ovmf-shell-image.bb delete mode 100644 poky/meta/recipes-core/ovmf/ovmf/0001-ia32-Dont-use-pie.patch delete mode 100644 poky/meta/recipes-core/ovmf/ovmf/0002-ovmf-update-path-to-native-BaseTools.patch delete mode 100644 poky/meta/recipes-core/ovmf/ovmf/0003-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch delete mode 100644 poky/meta/recipes-core/ovmf/ovmf/0004-ovmf-enable-long-path-file.patch delete mode 100644 poky/meta/recipes-core/ovmf/ovmf/0007-OvmfPkg-EnrollDefaultKeys-application-for-enrolling-.patch delete mode 100644 poky/meta/recipes-core/ovmf/ovmf/VfrCompile-increase-path-length-limit.patch delete mode 100644 poky/meta/recipes-core/ovmf/ovmf/no-stack-protector-all-archs.patch delete mode 100644 poky/meta/recipes-core/ovmf/ovmf/ovmf-shell-image.wks delete mode 100644 poky/meta/recipes-core/ovmf/ovmf_git.bb delete mode 100644 poky/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-base.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-core-boot.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-core-eclipse-debug.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-core-nfs.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-core-ssh-dropbear.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-core-ssh-openssh.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-core-tools-debug.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-go-cross-canadian.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb delete mode 100644 poky/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb delete mode 100755 poky/meta/recipes-core/psplash/files/psplash-init delete mode 100644 poky/meta/recipes-core/psplash/files/psplash-poky-img.h delete mode 100644 poky/meta/recipes-core/psplash/psplash_git.bb delete mode 100644 poky/meta/recipes-core/readline/files/inputrc delete mode 100644 poky/meta/recipes-core/readline/readline-7.0/configure-fix.patch delete mode 100644 poky/meta/recipes-core/readline/readline-7.0/norpath.patch delete mode 100644 poky/meta/recipes-core/readline/readline.inc delete mode 100644 poky/meta/recipes-core/readline/readline_7.0.bb delete mode 100644 poky/meta/recipes-core/sysfsutils/sysfsutils-2.1.0/obsolete_automake_macros.patch delete mode 100644 poky/meta/recipes-core/sysfsutils/sysfsutils-2.1.0/separatebuild.patch delete mode 100644 poky/meta/recipes-core/sysfsutils/sysfsutils-2.1.0/sysfsutils-2.0.0-class-dup.patch delete mode 100644 poky/meta/recipes-core/sysfsutils/sysfsutils_2.1.0.bb delete mode 100644 poky/meta/recipes-core/systemd/systemd-boot_234.bb delete mode 100644 poky/meta/recipes-core/systemd/systemd-compat-units.bb delete mode 100644 poky/meta/recipes-core/systemd/systemd-machine-units_1.0.bb delete mode 100644 poky/meta/recipes-core/systemd/systemd-serialgetty.bb delete mode 100644 poky/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service delete mode 100644 poky/meta/recipes-core/systemd/systemd-systemctl-native.bb delete mode 100755 poky/meta/recipes-core/systemd/systemd-systemctl/systemctl delete mode 100644 poky/meta/recipes-core/systemd/systemd.inc delete mode 100644 poky/meta/recipes-core/systemd/systemd/00-create-volatile.conf delete mode 100644 poky/meta/recipes-core/systemd/systemd/0001-Define-_PATH_WTMPX-and-_PATH_UTMPX-if-not-defined.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0001-Use-uintmax_t-for-handling-rlim_t.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0001-add-fallback-parse_printf_format-implementation.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0001-core-device.c-Change-the-default-device-timeout-to-2.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0002-src-basic-missing.h-check-for-missing-strndupa.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0003-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0004-Use-getenv-when-secure-versions-are-not-available.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0004-src-basic-missing.h-check-for-missing-__compar_fn_t-.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0005-binfmt-Don-t-install-dependency-links-at-install-tim.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0006-Include-netinet-if_ether.h.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0007-check-for-missing-canonicalize_file_name.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0007-use-lnr-wrapper-instead-of-looking-for-relative-opti.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0008-Do-not-enable-nss-tests.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0009-test-hexdecoct.c-Include-missing.h-form-strndupa.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0010-implment-systemd-sysv-install-for-OE.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0010-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0011-don-t-use-glibc-specific-qsort_r.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0011-nss-mymachines-Build-conditionally-when-HAVE_MYHOSTN.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0012-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0012-rules-whitelist-hd-devices.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0013-Make-root-s-home-directory-configurable.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0013-comparison_fn_t-is-glibc-specific-use-raw-signature-.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0014-Revert-rules-remove-firmware-loading-rules.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0015-Revert-udev-remove-userspace-firmware-loading-suppor.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0017-remove-duplicate-include-uchar.h.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0018-check-for-uchar.h-in-configure.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0019-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/0020-rules-watch-metadata-changes-in-ide-devices.patch delete mode 100644 poky/meta/recipes-core/systemd/systemd/init delete mode 100644 poky/meta/recipes-core/systemd/systemd/run-ptest delete mode 100644 poky/meta/recipes-core/systemd/systemd/touchscreen.rules delete mode 100644 poky/meta/recipes-core/systemd/systemd_234.bb delete mode 100644 poky/meta/recipes-core/sysvinit/sysvinit-2.88dsf/crypt-lib.patch delete mode 100644 poky/meta/recipes-core/sysvinit/sysvinit-2.88dsf/install.patch delete mode 100644 poky/meta/recipes-core/sysvinit/sysvinit-2.88dsf/pidof-add-m-option.patch delete mode 100644 poky/meta/recipes-core/sysvinit/sysvinit-inittab/inittab delete mode 100644 poky/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty delete mode 100644 poky/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb delete mode 100644 poky/meta/recipes-core/sysvinit/sysvinit/0001-This-fixes-an-issue-that-clang-reports-about-mutlipl.patch delete mode 100644 poky/meta/recipes-core/sysvinit/sysvinit/01_bootlogd delete mode 100755 poky/meta/recipes-core/sysvinit/sysvinit/bootlogd.init delete mode 100755 poky/meta/recipes-core/sysvinit/sysvinit/rc delete mode 100755 poky/meta/recipes-core/sysvinit/sysvinit/rcS delete mode 100644 poky/meta/recipes-core/sysvinit/sysvinit/rcS-default delete mode 100644 poky/meta/recipes-core/sysvinit/sysvinit/realpath.patch delete mode 100644 poky/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb delete mode 100644 poky/meta/recipes-core/udev/eudev/0001-rules-whitelist-hd-devices.patch delete mode 100644 poky/meta/recipes-core/udev/eudev/0002-rules-update.patch delete mode 100644 poky/meta/recipes-core/udev/eudev/0003-rules-watch-metadata-changes-in-ide-devices.patch delete mode 100644 poky/meta/recipes-core/udev/eudev/0014-Revert-rules-remove-firmware-loading-rules.patch delete mode 100644 poky/meta/recipes-core/udev/eudev/Revert-udev-remove-userspace-firmware-loading-suppor.patch delete mode 100644 poky/meta/recipes-core/udev/eudev/devfs-udev.rules delete mode 100644 poky/meta/recipes-core/udev/eudev/init delete mode 100644 poky/meta/recipes-core/udev/eudev/links.conf delete mode 100644 poky/meta/recipes-core/udev/eudev/local.rules delete mode 100644 poky/meta/recipes-core/udev/eudev/permissions.rules delete mode 100644 poky/meta/recipes-core/udev/eudev/run.rules delete mode 100644 poky/meta/recipes-core/udev/eudev/udev.rules delete mode 100644 poky/meta/recipes-core/udev/eudev_3.2.2.bb delete mode 100644 poky/meta/recipes-core/udev/udev-extraconf/automount.rules delete mode 100644 poky/meta/recipes-core/udev/udev-extraconf/autonet.rules delete mode 100644 poky/meta/recipes-core/udev/udev-extraconf/localextra.rules delete mode 100644 poky/meta/recipes-core/udev/udev-extraconf/mount.blacklist delete mode 100644 poky/meta/recipes-core/udev/udev-extraconf/mount.sh delete mode 100644 poky/meta/recipes-core/udev/udev-extraconf/network.sh delete mode 100644 poky/meta/recipes-core/udev/udev-extraconf_1.1.bb delete mode 100644 poky/meta/recipes-core/update-rc.d/update-rc.d/add-verbose.patch delete mode 100644 poky/meta/recipes-core/update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch delete mode 100644 poky/meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch delete mode 100644 poky/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb delete mode 100644 poky/meta/recipes-core/util-linux/util-linux.inc delete mode 100644 poky/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch delete mode 100644 poky/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch delete mode 100644 poky/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch delete mode 100644 poky/meta/recipes-core/util-linux/util-linux/no_getrandom.patch delete mode 100644 poky/meta/recipes-core/util-linux/util-linux/ptest.patch delete mode 100644 poky/meta/recipes-core/util-linux/util-linux/run-ptest delete mode 100644 poky/meta/recipes-core/util-linux/util-linux/runuser-l.pamd delete mode 100644 poky/meta/recipes-core/util-linux/util-linux/runuser.pamd delete mode 100644 poky/meta/recipes-core/util-linux/util-linux/util-linux-native-qsort.patch delete mode 100644 poky/meta/recipes-core/util-linux/util-linux_2.31.bb delete mode 100644 poky/meta/recipes-core/volatile-binds/files/COPYING.MIT delete mode 100755 poky/meta/recipes-core/volatile-binds/files/mount-copybind delete mode 100644 poky/meta/recipes-core/volatile-binds/files/volatile-binds.service.in delete mode 100644 poky/meta/recipes-core/volatile-binds/volatile-binds.bb delete mode 100644 poky/meta/recipes-core/zlib/site_config/headers delete mode 100644 poky/meta/recipes-core/zlib/zlib-1.2.11/Makefile-runtests.patch delete mode 100644 poky/meta/recipes-core/zlib/zlib-1.2.11/ldflags-tests.patch delete mode 100644 poky/meta/recipes-core/zlib/zlib-1.2.11/remove.ldconfig.call.patch delete mode 100644 poky/meta/recipes-core/zlib/zlib-1.2.11/run-ptest delete mode 100644 poky/meta/recipes-core/zlib/zlib_1.2.11.bb delete mode 100644 poky/meta/recipes-devtools/apt/apt-native.inc delete mode 100644 poky/meta/recipes-devtools/apt/apt-native_1.2.24.bb delete mode 100644 poky/meta/recipes-devtools/apt/apt-package.inc delete mode 100644 poky/meta/recipes-devtools/apt/apt.inc delete mode 100644 poky/meta/recipes-devtools/apt/apt/0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/0001-apt-1.2.12-Fix-musl-build.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/0001-environment.mak-musl-based-systems-can-generate-shar.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/0001-fix-the-gcc-version-check.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/0001-remove-Wsuggest-attribute-from-CFLAGS.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/disable-configure-in-makefile.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/disable-test.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/fix-gcc-4.6-null-not-defined.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/gcc_4.x_Revert-avoid-changing-the-global-LC_TIME-for-Release.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/gcc_4.x_Revert-use-de-localed-std-put_time-instead-rolling-o.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/gcc_4.x_apt-pkg-contrib-strutl.cc-Include-array-header.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/makerace.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/no-nls-dpkg.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/noconfigure.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/nodoc.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/truncate-filename.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt/use-host.patch delete mode 100644 poky/meta/recipes-devtools/apt/apt_1.2.24.bb delete mode 100644 poky/meta/recipes-devtools/apt/files/apt.conf delete mode 100644 poky/meta/recipes-devtools/apt/files/db_linking_hack.patch delete mode 100644 poky/meta/recipes-devtools/apt/files/environment.patch delete mode 100644 poky/meta/recipes-devtools/apt/files/no-curl.patch delete mode 100644 poky/meta/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf.inc delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/AC_HEADER_MAJOR-port-to-glibc-2.25.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/add_musl_config.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/autoconf-replace-w-option-in-shebangs-with-modern-use-warnings.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/autoreconf-exclude.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/autoreconf-gnuconfigize.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/autotest-automake-result-format.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/check-automake-cross-warning.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/config_site.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/fix_path_xtra.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/performance.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/preferbash.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/program_prefix.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf/remove-usr-local-lib-from-m4.patch delete mode 100644 poky/meta/recipes-devtools/autoconf/autoconf_2.69.bb delete mode 100644 poky/meta/recipes-devtools/automake/automake.inc delete mode 100644 poky/meta/recipes-devtools/automake/automake/0001-automake-Add-default-libtool_tag-to-cppasm.patch delete mode 100644 poky/meta/recipes-devtools/automake/automake/automake-replace-w-option-in-shebangs-with-modern-use-warnings.patch delete mode 100644 poky/meta/recipes-devtools/automake/automake/buildtest.patch delete mode 100644 poky/meta/recipes-devtools/automake/automake/new_rt_path_for_test-driver.patch delete mode 100644 poky/meta/recipes-devtools/automake/automake/performance.patch delete mode 100644 poky/meta/recipes-devtools/automake/automake/python-libdir.patch delete mode 100644 poky/meta/recipes-devtools/automake/automake_1.15.1.bb delete mode 100644 poky/meta/recipes-devtools/binutils/binutils-2.29.inc delete mode 100644 poky/meta/recipes-devtools/binutils/binutils-cross-canadian.inc delete mode 100644 poky/meta/recipes-devtools/binutils/binutils-cross-canadian_2.29.bb delete mode 100644 poky/meta/recipes-devtools/binutils/binutils-cross.inc delete mode 100644 poky/meta/recipes-devtools/binutils/binutils-cross_2.29.bb delete mode 100644 poky/meta/recipes-devtools/binutils/binutils-crosssdk_2.29.bb delete mode 100644 poky/meta/recipes-devtools/binutils/binutils.inc delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0003-configure-widen-the-regexp-for-SH-architectures.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0005-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0006-Use-libtool-2.4.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0007-Add-the-armv5e-architecture-to-binutils.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0009-warn-for-uses-of-system-directories-when-cross-linki.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0011-Change-default-emulation-for-mips64-linux.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0013-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0014-Detect-64-bit-MIPS-targets.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils/0015-sync-with-OE-libtool-changes.patch delete mode 100644 poky/meta/recipes-devtools/binutils/binutils_2.29.bb delete mode 100644 poky/meta/recipes-devtools/bison/bison/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-devtools/bison/bison/0001-src-local.mk-fix-parallel-issue.patch delete mode 100644 poky/meta/recipes-devtools/bison/bison/add-with-bisonlocaledir.patch delete mode 100644 poky/meta/recipes-devtools/bison/bison/dont-depend-on-help2man.patch.patch delete mode 100644 poky/meta/recipes-devtools/bison/bison/m4.patch delete mode 100644 poky/meta/recipes-devtools/bison/bison_3.0.4.bb delete mode 100644 poky/meta/recipes-devtools/bootchart2/bootchart2/0001-Fixed-Missing-default-value-for-BOOTLOG_DEST.patch delete mode 100644 poky/meta/recipes-devtools/bootchart2/bootchart2/0001-collector-Allocate-space-on-heap-for-chunks.patch delete mode 100644 poky/meta/recipes-devtools/bootchart2/bootchart2/bootchartd_stop.sh delete mode 100644 poky/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb delete mode 100644 poky/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Fix-build-with-musl-missing-header-include-for-dev_t.patch delete mode 100644 poky/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Makefile-build-mktables-using-native-gcc.patch delete mode 100644 poky/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.13.3.bb delete mode 100644 poky/meta/recipes-devtools/build-compare/build-compare_git.bb delete mode 100644 poky/meta/recipes-devtools/build-compare/files/0001-Add-support-for-deb-and-ipk-packaging.patch delete mode 100644 poky/meta/recipes-devtools/build-compare/files/Ignore-DWARF-sections.patch delete mode 100644 poky/meta/recipes-devtools/build-compare/files/Rename-rpm-check.sh-to-pkg-diff.sh.patch delete mode 100644 poky/meta/recipes-devtools/build-compare/files/functions.sh-improve-deb-and-ipk-checking.patch delete mode 100644 poky/meta/recipes-devtools/build-compare/files/functions.sh-remove-space-at-head.patch delete mode 100644 poky/meta/recipes-devtools/build-compare/files/functions.sh-run-rpm-once-to-make-it-faster.patch delete mode 100644 poky/meta/recipes-devtools/build-compare/files/pkg-diff.sh-check-for-fifo-named-pipe.patch delete mode 100644 poky/meta/recipes-devtools/build-compare/files/pkg-diff.sh-check_single_file-return-at-once-when-sa.patch delete mode 100644 poky/meta/recipes-devtools/build-compare/files/pkg-diff.sh-remove-space-in-the-end-for-ftype.patch delete mode 100644 poky/meta/recipes-devtools/ccache/ccache.inc delete mode 100644 poky/meta/recipes-devtools/ccache/ccache_3.3.4.bb delete mode 100644 poky/meta/recipes-devtools/ccache/files/0002-dev.mk.in-fix-file-name-too-long.patch delete mode 100644 poky/meta/recipes-devtools/ccache/files/Revert-Create-man-page-in-the-make-install-from-git-.patch delete mode 100644 poky/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb delete mode 100644 poky/meta/recipes-devtools/chrpath/chrpath/standarddoc.patch delete mode 100644 poky/meta/recipes-devtools/chrpath/chrpath_0.16.bb delete mode 100644 poky/meta/recipes-devtools/cmake/cmake-native_3.9.5.bb delete mode 100644 poky/meta/recipes-devtools/cmake/cmake.inc delete mode 100644 poky/meta/recipes-devtools/cmake/cmake/0001-FindCUDA-Use-find_program-if-find_host_program-is-no.patch delete mode 100644 poky/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake delete mode 100644 poky/meta/recipes-devtools/cmake/cmake/cmlibarchive-disable-ext2fs.patch delete mode 100644 poky/meta/recipes-devtools/cmake/cmake/environment.d-cmake.sh delete mode 100644 poky/meta/recipes-devtools/cmake/cmake/qt4-fail-silent.patch delete mode 100644 poky/meta/recipes-devtools/cmake/cmake/support-oe-qt4-tools-names.patch delete mode 100644 poky/meta/recipes-devtools/cmake/cmake_3.9.5.bb delete mode 100644 poky/meta/recipes-devtools/createrepo-c/createrepo-c/0001-Correctly-install-the-shared-library.patch delete mode 100644 poky/meta/recipes-devtools/createrepo-c/createrepo-c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch delete mode 100644 poky/meta/recipes-devtools/createrepo-c/createrepo-c_git.bb delete mode 100644 poky/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb delete mode 100644 poky/meta/recipes-devtools/cve-check-tool/files/0001-Fix-freeing-memory-allocated-by-sqlite.patch delete mode 100644 poky/meta/recipes-devtools/cve-check-tool/files/0001-curl-allow-overriding-default-CA-certificate-file.patch delete mode 100644 poky/meta/recipes-devtools/cve-check-tool/files/0001-print-progress-in-percent-when-downloading-CVE-db.patch delete mode 100644 poky/meta/recipes-devtools/cve-check-tool/files/0001-update-Compare-computed-vs-expected-sha256-digit-str.patch delete mode 100644 poky/meta/recipes-devtools/cve-check-tool/files/check-for-malloc_trim-before-using-it.patch delete mode 100644 poky/meta/recipes-devtools/desktop-file-utils/desktop-file-utils-native_0.23.bb delete mode 100644 poky/meta/recipes-devtools/devel-config/distcc-config.bb delete mode 100644 poky/meta/recipes-devtools/devel-config/distcc-config/distcc.sh delete mode 100644 poky/meta/recipes-devtools/devel-config/nfs-export-root.bb delete mode 100644 poky/meta/recipes-devtools/devel-config/nfs-export-root/exports delete mode 100644 poky/meta/recipes-devtools/diffstat/diffstat/run-ptest delete mode 100644 poky/meta/recipes-devtools/diffstat/diffstat_1.61.bb delete mode 100644 poky/meta/recipes-devtools/distcc/distcc_3.2.bb delete mode 100644 poky/meta/recipes-devtools/distcc/files/0001-zeroconf-Include-fcntl.h.patch delete mode 100644 poky/meta/recipes-devtools/distcc/files/default delete mode 100755 poky/meta/recipes-devtools/distcc/files/distcc delete mode 100644 poky/meta/recipes-devtools/distcc/files/distcc.service delete mode 100644 poky/meta/recipes-devtools/distcc/files/distccmon-gnome.desktop delete mode 100644 poky/meta/recipes-devtools/distcc/files/separatebuilddir.patch delete mode 100644 poky/meta/recipes-devtools/dmidecode/dmidecode_3.1.bb delete mode 100644 poky/meta/recipes-devtools/dnf/dnf/0001-Check-conf.releasever-instead-of-releasever.patch delete mode 100644 poky/meta/recipes-devtools/dnf/dnf/0001-Corretly-install-tmpfiles.d-configuration.patch delete mode 100644 poky/meta/recipes-devtools/dnf/dnf/0001-Do-not-hardcode-etc-and-systemd-unit-directories.patch delete mode 100644 poky/meta/recipes-devtools/dnf/dnf/0001-Do-not-prepend-installroot-to-logdir.patch delete mode 100644 poky/meta/recipes-devtools/dnf/dnf/0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch delete mode 100644 poky/meta/recipes-devtools/dnf/dnf/0030-Run-python-scripts-using-env.patch delete mode 100644 poky/meta/recipes-devtools/dnf/dnf_2.6.3.bb delete mode 100644 poky/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4/LICENSE-OASIS delete mode 100644 poky/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4/docbook-xml-update-catalog.xml.patch delete mode 100644 poky/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4/docbook-xml.xml delete mode 100644 poky/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb delete mode 100644 poky/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets/docbook-xsl-stylesheets-no-bashism-in-docbook-xsl-up.patch delete mode 100644 poky/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets/docbook-xsl.xml delete mode 100644 poky/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets_1.79.1.bb delete mode 100644 poky/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg.inc delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/0001-dpkg-Support-muslx32-build.patch delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/0002-Adapt-to-linux-wrs-kernel-version-which-has-characte.patch delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/0003-Our-pre-postinsts-expect-D-to-be-set-when-running-in.patch delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/0004-The-lutimes-function-doesn-t-work-properly-for-all-s.patch delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/0005-dpkg-compiler.m4-remove-Wvla.patch delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/0006-add-musleabi-to-known-target-tripets.patch delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/0007-dpkg-deb-build.c-Remove-usage-of-clamp-mtime-in-tar.patch delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/add_armeb_triplet_entry.patch delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/arch_pm.patch delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/dpkg-configure.service delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/glibc2.5-sync_file_range.patch delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/noman.patch delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg/remove-tar-no-timestamp.patch delete mode 100644 poky/meta/recipes-devtools/dpkg/dpkg_1.18.24.bb delete mode 100644 poky/meta/recipes-devtools/e2fsprogs/e2fsprogs.inc delete mode 100644 poky/meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-misc-create_inode.c-set-dir-s-mode-correctly.patch delete mode 100644 poky/meta/recipes-devtools/e2fsprogs/e2fsprogs/Revert-mke2fs-enable-the-metadata_csum-and-64bit-fea.patch delete mode 100644 poky/meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch delete mode 100644 poky/meta/recipes-devtools/e2fsprogs/e2fsprogs/mkdir_p.patch delete mode 100644 poky/meta/recipes-devtools/e2fsprogs/e2fsprogs/ptest.patch delete mode 100644 poky/meta/recipes-devtools/e2fsprogs/e2fsprogs/quiet-debugfs.patch delete mode 100644 poky/meta/recipes-devtools/e2fsprogs/e2fsprogs/remove.ldconfig.call.patch delete mode 100644 poky/meta/recipes-devtools/e2fsprogs/e2fsprogs/run-ptest delete mode 100644 poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.7.bb delete mode 100644 poky/meta/recipes-devtools/elfutils/elfutils_0.170.bb delete mode 100644 poky/meta/recipes-devtools/elfutils/files/0001-dso-link-change.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/0001-libasm-may-link-with-libbz2-if-found.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/0003-fixheadercheck.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/0004-Disable-the-test-to-convert-euc-jp.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/0005-fix-a-stack-usage-warning.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/0006-Fix-build-on-aarch64-musl.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/0007-Fix-control-path-where-we-have-str-as-uninitialized-.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/debian/0001-Ignore-differences-between-mips-machine-identifiers.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/debian/0002-Add-support-for-mips64-abis-in-mips_retval.c.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/debian/arm_backend.diff delete mode 100644 poky/meta/recipes-devtools/elfutils/files/debian/fallthrough.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/debian/hppa_backend.diff delete mode 100644 poky/meta/recipes-devtools/elfutils/files/debian/mips_backend.patch delete mode 100644 poky/meta/recipes-devtools/elfutils/files/debian/mips_readelf_w.patch delete mode 100644 poky/meta/recipes-devtools/expect/expect/0001-Resolve-string-formatting-issues.patch delete mode 100644 poky/meta/recipes-devtools/expect/expect/0001-configure.in.patch delete mode 100644 poky/meta/recipes-devtools/expect/expect/0001-expect-Fix-segfaults-if-Tcl-is-built-with-stubs-and-.patch delete mode 100644 poky/meta/recipes-devtools/expect/expect/0001-expect-install-scripts-without-using-the-fixline1-tc.patch delete mode 100644 poky/meta/recipes-devtools/expect/expect/0002-tcl.m4.patch delete mode 100644 poky/meta/recipes-devtools/expect/expect/01-example-shebang.patch delete mode 100644 poky/meta/recipes-devtools/expect/expect_5.45.3.bb delete mode 100644 poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.3.bb delete mode 100644 poky/meta/recipes-devtools/file/file/0001-Add-P-prompt-into-Usage-info.patch delete mode 100644 poky/meta/recipes-devtools/file/file/debian-742262.patch delete mode 100644 poky/meta/recipes-devtools/file/file_5.32.bb delete mode 100644 poky/meta/recipes-devtools/flex/flex/0001-tests-add-a-target-for-building-tests-without-runnin.patch delete mode 100644 poky/meta/recipes-devtools/flex/flex/0002-avoid-c-comments-in-c-code-fails-with-gcc-6.patch delete mode 100644 poky/meta/recipes-devtools/flex/flex/CVE-2016-6354.patch delete mode 100644 poky/meta/recipes-devtools/flex/flex/disable-tests.patch delete mode 100644 poky/meta/recipes-devtools/flex/flex/do_not_create_pdf_doc.patch delete mode 100755 poky/meta/recipes-devtools/flex/flex/run-ptest delete mode 100644 poky/meta/recipes-devtools/flex/flex_2.6.0.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0008-missing-execinfo_h.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0009-c99-snprintf.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0010-gcc-poison-system-directories.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0011-gcc-poison-dir-extend.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0012-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0013-64-bit-multilib-hack.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0014-optional-libstdc.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0015-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0016-COLLECT_GCC_OPTIONS.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0017-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0018-fortran-cross-compile-hack.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0019-cpp-honor-sysroot.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0020-MIPS64-Default-to-N64-ABI.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0021-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0022-gcc-Fix-argument-list-too-long-error.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0023-Disable-sdt.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0024-libtool.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0025-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0026-Use-the-multilib-config-files-from-B-instead-of-usin.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0027-Avoid-using-libdir-from-.la-which-usually-points-to-.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0028-export-CPP.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0029-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0030-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0031-Ensure-target-gcc-headers-can-be-included.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0032-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0033-Don-t-search-host-directory-during-relink-if-inst_pr.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0034-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0035-aarch64-Add-support-for-musl-ldso.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0036-libcc1-fix-libcc1-s-install-path-and-rpath.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0037-handle-sysroot-support-for-nativesdk-gcc.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0038-Search-target-sysroot-gcc-version-specific-dirs-with.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0039-Fix-various-_FOR_BUILD-and-related-variables.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0040-nios2-Define-MUSL_DYNAMIC_LINKER.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0041-ssp_nonshared.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0042-gcc-libcpp-support-ffile-prefix-map-old-new.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0043-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0044-gcc-final.c-fdebug-prefix-map-support-to-remap-sourc.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0045-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0046-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0047-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0048-sync-gcc-stddef.h-with-musl.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0054_all_nopie-all-flags.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0055-unwind_h-glibc26.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/0057-ARM-PR-82445-suppress-32-bit-aligned-ldrd-strd-peeph.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-6.4/backport/CVE-2016-6131.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0001-PR-rtl-optimization-81803.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0008-c99-snprintf.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0009-gcc-poison-system-directories.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0010-gcc-poison-dir-extend.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0011-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0012-64-bit-multilib-hack.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0013-optional-libstdc.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0014-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0015-COLLECT_GCC_OPTIONS.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0016-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0017-fortran-cross-compile-hack.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0018-cpp-honor-sysroot.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0019-MIPS64-Default-to-N64-ABI.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0020-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0021-gcc-Fix-argument-list-too-long-error.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0022-Disable-sdt.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0023-libtool.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0024-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0025-Use-the-multilib-config-files-from-B-instead-of-usin.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0026-Avoid-using-libdir-from-.la-which-usually-points-to-.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0027-export-CPP.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0028-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0029-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0030-Ensure-target-gcc-headers-can-be-included.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0031-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0032-Don-t-search-host-directory-during-relink-if-inst_pr.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0033-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0034-aarch64-Add-support-for-musl-ldso.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0035-libcc1-fix-libcc1-s-install-path-and-rpath.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0036-handle-sysroot-support-for-nativesdk-gcc.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0037-Search-target-sysroot-gcc-version-specific-dirs-with.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0038-Fix-various-_FOR_BUILD-and-related-variables.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0039-nios2-Define-MUSL_DYNAMIC_LINKER.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0040-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0041-gcc-libcpp-support-ffile-prefix-map-old-new.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0042-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0043-gcc-final.c-fdebug-prefix-map-support-to-remap-sourc.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0044-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0045-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0046-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0047-sync-gcc-stddef.h-with-musl.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0048-gcc-Enable-static-PIE.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0050-RISC-V-Handle-non-legitimate-address-in-riscv_legiti.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/0051-ARM-PR-82445-suppress-32-bit-aligned-ldrd-strd-peeph.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-7.2/fix-segmentation-fault-precompiled-hdr.patch delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-common.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-configure-common.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-cross-canadian.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-cross-canadian_6.4.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-cross-canadian_7.2.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-cross-initial.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-cross-initial_6.4.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-cross-initial_7.2.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-cross.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-cross_6.4.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-cross_7.2.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-crosssdk-initial.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-crosssdk-initial_6.4.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-crosssdk-initial_7.2.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-crosssdk.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-crosssdk_6.4.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-crosssdk_7.2.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-multilib-config.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-runtime.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-runtime_6.4.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-runtime_7.2.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-sanitizers.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-sanitizers_6.4.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-sanitizers_7.2.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-shared-source.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-source.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-source_6.4.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-source_7.2.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc-target.inc delete mode 100644 poky/meta/recipes-devtools/gcc/gcc_6.4.bb delete mode 100644 poky/meta/recipes-devtools/gcc/gcc_7.2.bb delete mode 100644 poky/meta/recipes-devtools/gcc/libgcc-common.inc delete mode 100644 poky/meta/recipes-devtools/gcc/libgcc-initial.inc delete mode 100644 poky/meta/recipes-devtools/gcc/libgcc-initial_6.4.bb delete mode 100644 poky/meta/recipes-devtools/gcc/libgcc-initial_7.2.bb delete mode 100644 poky/meta/recipes-devtools/gcc/libgcc.inc delete mode 100644 poky/meta/recipes-devtools/gcc/libgcc_6.4.bb delete mode 100644 poky/meta/recipes-devtools/gcc/libgcc_7.2.bb delete mode 100644 poky/meta/recipes-devtools/gcc/libgfortran.inc delete mode 100644 poky/meta/recipes-devtools/gcc/libgfortran_6.4.bb delete mode 100644 poky/meta/recipes-devtools/gcc/libgfortran_7.2.bb delete mode 100644 poky/meta/recipes-devtools/gdb/gdb-8.0.inc delete mode 100644 poky/meta/recipes-devtools/gdb/gdb-common.inc delete mode 100644 poky/meta/recipes-devtools/gdb/gdb-cross-canadian.inc delete mode 100644 poky/meta/recipes-devtools/gdb/gdb-cross-canadian_8.0.bb delete mode 100644 poky/meta/recipes-devtools/gdb/gdb-cross.inc delete mode 100644 poky/meta/recipes-devtools/gdb/gdb-cross_8.0.bb delete mode 100644 poky/meta/recipes-devtools/gdb/gdb.inc delete mode 100644 poky/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch delete mode 100644 poky/meta/recipes-devtools/gdb/gdb/0002-make-man-install-relative-to-DESTDIR.patch delete mode 100644 poky/meta/recipes-devtools/gdb/gdb/0003-mips-linux-nat-Define-_ABIO32-if-not-defined.patch delete mode 100644 poky/meta/recipes-devtools/gdb/gdb/0004-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch delete mode 100644 poky/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch delete mode 100644 poky/meta/recipes-devtools/gdb/gdb/0006-Dont-disable-libreadline.a-when-using-disable-static.patch delete mode 100644 poky/meta/recipes-devtools/gdb/gdb/0007-use-asm-sgidefs.h.patch delete mode 100644 poky/meta/recipes-devtools/gdb/gdb/0008-Use-exorted-definitions-of-SIGRTMIN.patch delete mode 100644 poky/meta/recipes-devtools/gdb/gdb/0009-Change-order-of-CFLAGS.patch delete mode 100644 poky/meta/recipes-devtools/gdb/gdb/0010-resolve-restrict-keyword-conflict.patch delete mode 100644 poky/meta/recipes-devtools/gdb/gdb/package_devel_gdb_patches_120-sigprocmask-invalid-call.patch delete mode 100644 poky/meta/recipes-devtools/gdb/gdb_8.0.bb delete mode 100644 poky/meta/recipes-devtools/git/git.inc delete mode 100644 poky/meta/recipes-devtools/git/git_2.15.0.bb delete mode 100755 poky/meta/recipes-devtools/gnu-config/gnu-config/gnu-configize.in delete mode 100644 poky/meta/recipes-devtools/gnu-config/gnu-config/musl-support.patch delete mode 100644 poky/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb delete mode 100644 poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb delete mode 100644 poky/meta/recipes-devtools/go/go-1.9.inc delete mode 100644 poky/meta/recipes-devtools/go/go-1.9/0001-make.bash-quote-CC_FOR_TARGET.patch delete mode 100644 poky/meta/recipes-devtools/go/go-1.9/0002-cmd-go-fix-CC-and-CXX-environment-variable-construct.patch delete mode 100644 poky/meta/recipes-devtools/go/go-1.9/0003-make.bash-better-separate-host-and-target-builds.patch delete mode 100644 poky/meta/recipes-devtools/go/go-1.9/0004-cmd-go-allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch delete mode 100644 poky/meta/recipes-devtools/go/go-1.9/0005-cmd-go-make-GOROOT-precious-by-default.patch delete mode 100644 poky/meta/recipes-devtools/go/go-1.9/0006-make.bash-add-GOTOOLDIR_BOOTSTRAP-environment-variab.patch delete mode 100644 poky/meta/recipes-devtools/go/go-1.9/0007-ld-add-soname-to-shareable-objects.patch delete mode 100644 poky/meta/recipes-devtools/go/go-1.9/0008-make.bash-add-GOHOSTxx-indirection-for-cross-canadia.patch delete mode 100644 poky/meta/recipes-devtools/go/go-1.9/0009-cmd-go-buildmode-pie-forces-external-linking-mode-on.patch delete mode 100644 poky/meta/recipes-devtools/go/go-1.9/0010-make.bash-override-CC-when-building-dist-and-go_boot.patch delete mode 100644 poky/meta/recipes-devtools/go/go-1.9/set-external-linker.patch delete mode 100644 poky/meta/recipes-devtools/go/go-common.inc delete mode 100644 poky/meta/recipes-devtools/go/go-cross-canadian.inc delete mode 100644 poky/meta/recipes-devtools/go/go-cross-canadian_1.9.bb delete mode 100644 poky/meta/recipes-devtools/go/go-cross.inc delete mode 100644 poky/meta/recipes-devtools/go/go-cross_1.9.bb delete mode 100644 poky/meta/recipes-devtools/go/go-crosssdk.inc delete mode 100644 poky/meta/recipes-devtools/go/go-crosssdk_1.9.bb delete mode 100644 poky/meta/recipes-devtools/go/go-dep/0001-Add-support-for-mips-mips64.patch delete mode 100644 poky/meta/recipes-devtools/go/go-dep/0001-use-a-smaller-constant-that-hopefully-works-the-same.patch delete mode 100644 poky/meta/recipes-devtools/go/go-dep_0.3.1.bb delete mode 100644 poky/meta/recipes-devtools/go/go-native.inc delete mode 100644 poky/meta/recipes-devtools/go/go-native_1.9.bb delete mode 100644 poky/meta/recipes-devtools/go/go-runtime.inc delete mode 100644 poky/meta/recipes-devtools/go/go-runtime_1.9.bb delete mode 100644 poky/meta/recipes-devtools/go/go-target.inc delete mode 100644 poky/meta/recipes-devtools/go/go_1.9.bb delete mode 100644 poky/meta/recipes-devtools/help2man/help2man-native_1.47.4.bb delete mode 100644 poky/meta/recipes-devtools/i2c-tools/files/Module.mk delete mode 100644 poky/meta/recipes-devtools/i2c-tools/i2c-tools_3.1.2.bb delete mode 100644 poky/meta/recipes-devtools/icecc-create-env/icecc-create-env-native_0.1.bb delete mode 100755 poky/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env delete mode 100644 poky/meta/recipes-devtools/icon-naming-utils/icon-naming-utils_0.8.90.bb delete mode 100644 poky/meta/recipes-devtools/intltool/intltool/intltool-nowarn.patch delete mode 100644 poky/meta/recipes-devtools/intltool/intltool/noperlcheck.patch delete mode 100644 poky/meta/recipes-devtools/intltool/intltool/perl-522-deprecations.patch delete mode 100644 poky/meta/recipes-devtools/intltool/intltool/remove-perl-check.patch delete mode 100644 poky/meta/recipes-devtools/intltool/intltool_0.51.0.bb delete mode 100644 poky/meta/recipes-devtools/json-c/json-c/0001-Add-FALLTHRU-comment-to-handle-GCC7-warnings.patch delete mode 100644 poky/meta/recipes-devtools/json-c/json-c_0.12.1.bb delete mode 100644 poky/meta/recipes-devtools/libcomps/libcomps/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch delete mode 100644 poky/meta/recipes-devtools/libcomps/libcomps/0001-Make-__comps_objmrtree_all-static-inline.patch delete mode 100644 poky/meta/recipes-devtools/libcomps/libcomps/0002-Set-library-installation-path-correctly.patch delete mode 100644 poky/meta/recipes-devtools/libcomps/libcomps_git.bb delete mode 100644 poky/meta/recipes-devtools/libdnf/libdnf/0001-FindGtkDoc.cmake-drop-the-requirement-for-GTKDOC_SCA.patch delete mode 100644 poky/meta/recipes-devtools/libdnf/libdnf/0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch delete mode 100644 poky/meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch delete mode 100644 poky/meta/recipes-devtools/libdnf/libdnf/0003-Set-the-library-installation-directory-correctly.patch delete mode 100644 poky/meta/recipes-devtools/libdnf/libdnf/0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch delete mode 100644 poky/meta/recipes-devtools/libdnf/libdnf_0.9.3.bb delete mode 100644 poky/meta/recipes-devtools/librepo/librepo/0001-Correctly-set-the-library-installation-directory.patch delete mode 100644 poky/meta/recipes-devtools/librepo/librepo/0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch delete mode 100644 poky/meta/recipes-devtools/librepo/librepo/0003-tests-fix-a-race-when-deleting-temporary-directories.patch delete mode 100644 poky/meta/recipes-devtools/librepo/librepo/0004-Set-gpgme-variables-with-pkg-config-not-with-cmake-m.patch delete mode 100644 poky/meta/recipes-devtools/librepo/librepo/0005-Fix-typo-correct-LRO_SSLVERIFYHOST-with-CURLOPT_SSL_.patch delete mode 100644 poky/meta/recipes-devtools/librepo/librepo_git.bb delete mode 100644 poky/meta/recipes-devtools/libtool/libtool-2.4.6.inc delete mode 100644 poky/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb delete mode 100644 poky/meta/recipes-devtools/libtool/libtool-native_2.4.6.bb delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/0001-libtool-Fix-support-for-NIOS2-processor.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/dont-depend-on-help2man.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/fix-final-rpath.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/fix-resolve-lt-sysroot.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/fix-rpath.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/fixinstall.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/nohardcodepaths.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/norm-rpath.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/prefix.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/rename-with-sysroot.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/trailingslash.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/unwind-opt-parsing.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool/use-sysroot-in-libpath.patch delete mode 100644 poky/meta/recipes-devtools/libtool/libtool_2.4.6.bb delete mode 100644 poky/meta/recipes-devtools/libtool/nativesdk-libtool_2.4.6.bb delete mode 100644 poky/meta/recipes-devtools/llvm/llvm/0001-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch delete mode 100644 poky/meta/recipes-devtools/llvm/llvm/0002-llvm-allow-env-override-of-exe-path.patch delete mode 100644 poky/meta/recipes-devtools/llvm/llvm_git.bb delete mode 100644 poky/meta/recipes-devtools/m4/m4-1.4.18.inc delete mode 100644 poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb delete mode 100644 poky/meta/recipes-devtools/m4/m4.inc delete mode 100644 poky/meta/recipes-devtools/m4/m4/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-devtools/m4/m4/ac_config_links.patch delete mode 100644 poky/meta/recipes-devtools/m4/m4/remove-gets.patch delete mode 100644 poky/meta/recipes-devtools/m4/m4_1.4.18.bb delete mode 100644 poky/meta/recipes-devtools/make/make.inc delete mode 100644 poky/meta/recipes-devtools/make/make_4.2.1.bb delete mode 100644 poky/meta/recipes-devtools/makedevs/makedevs/COPYING.patch delete mode 100644 poky/meta/recipes-devtools/makedevs/makedevs/makedevs.c delete mode 100644 poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb delete mode 100644 poky/meta/recipes-devtools/mkelfimage/mkelfimage/convert.bin.c delete mode 100644 poky/meta/recipes-devtools/mkelfimage/mkelfimage/cross-compile.patch delete mode 100644 poky/meta/recipes-devtools/mkelfimage/mkelfimage/fix-makefile-to-find-libz.patch delete mode 100644 poky/meta/recipes-devtools/mkelfimage/mkelfimage_git.bb delete mode 100644 poky/meta/recipes-devtools/mklibs/files/ac_init_fix.patch delete mode 100644 poky/meta/recipes-devtools/mklibs/files/avoid-failure-on-symbol-provided-by-application.patch delete mode 100644 poky/meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch delete mode 100644 poky/meta/recipes-devtools/mklibs/files/fix_cross_compile.patch delete mode 100644 poky/meta/recipes-devtools/mklibs/files/show-GNU-unique-symbols-as-provided-symbols.patch delete mode 100644 poky/meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch delete mode 100644 poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb delete mode 100644 poky/meta/recipes-devtools/mmc/mmc-utils_git.bb delete mode 100644 poky/meta/recipes-devtools/mtd/mtd-utils/0001-Fix-build-with-musl.patch delete mode 100644 poky/meta/recipes-devtools/mtd/mtd-utils/010-fix-rpmatch.patch delete mode 100644 poky/meta/recipes-devtools/mtd/mtd-utils/add-exclusion-to-mkfs-jffs2-git-2.patch delete mode 100644 poky/meta/recipes-devtools/mtd/mtd-utils/fix-armv7-neon-alignment.patch delete mode 100644 poky/meta/recipes-devtools/mtd/mtd-utils/mtd-utils-fix-corrupt-cleanmarker-with-flash_erase--j-command.patch delete mode 100644 poky/meta/recipes-devtools/mtd/mtd-utils_git.bb delete mode 100644 poky/meta/recipes-devtools/mtools/mtools/0001-Continue-even-if-fs-size-is-not-divisible-by-sectors.patch delete mode 100644 poky/meta/recipes-devtools/mtools/mtools/disable-hardcoded-configs.patch delete mode 100644 poky/meta/recipes-devtools/mtools/mtools/mtools-makeinfo.patch delete mode 100644 poky/meta/recipes-devtools/mtools/mtools/no-x11.gplv3.patch delete mode 100644 poky/meta/recipes-devtools/mtools/mtools_4.0.18.bb delete mode 100644 poky/meta/recipes-devtools/nasm/nasm_2.13.01.bb delete mode 100644 poky/meta/recipes-devtools/ninja/ninja_1.7.2.bb delete mode 100644 poky/meta/recipes-devtools/opkg-utils/opkg-utils/0001-Switch-all-scripts-to-use-Python-3.x.patch delete mode 100644 poky/meta/recipes-devtools/opkg-utils/opkg-utils/tar_ignore_error.patch delete mode 100644 poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.5.bb delete mode 100644 poky/meta/recipes-devtools/opkg/opkg-arch-config_1.0.bb delete mode 100644 poky/meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb delete mode 100644 poky/meta/recipes-devtools/opkg/opkg/0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch delete mode 100644 poky/meta/recipes-devtools/opkg/opkg/opkg-configure.service delete mode 100644 poky/meta/recipes-devtools/opkg/opkg/opkg.conf delete mode 100644 poky/meta/recipes-devtools/opkg/opkg_0.3.5.bb delete mode 100644 poky/meta/recipes-devtools/orc/orc_0.4.27.bb delete mode 100644 poky/meta/recipes-devtools/ossp-uuid/ossp-uuid/0001-Change-library-name.patch delete mode 100644 poky/meta/recipes-devtools/ossp-uuid/ossp-uuid/0002-uuid-preserve-m-option-status-in-v-option-handling.patch delete mode 100644 poky/meta/recipes-devtools/ossp-uuid/ossp-uuid/0003-Fix-whatis-entries.patch delete mode 100644 poky/meta/recipes-devtools/ossp-uuid/ossp-uuid/0004-fix-data-uuid-from-string.patch delete mode 100644 poky/meta/recipes-devtools/ossp-uuid/ossp-uuid/install-pc.patch delete mode 100644 poky/meta/recipes-devtools/ossp-uuid/ossp-uuid/ldflags.patch delete mode 100644 poky/meta/recipes-devtools/ossp-uuid/ossp-uuid/libtool-tag.patch delete mode 100644 poky/meta/recipes-devtools/ossp-uuid/ossp-uuid/uuid-libtool.patch delete mode 100644 poky/meta/recipes-devtools/ossp-uuid/ossp-uuid/uuid-nostrip.patch delete mode 100644 poky/meta/recipes-devtools/ossp-uuid/ossp-uuid_1.6.2.bb delete mode 100644 poky/meta/recipes-devtools/packagegroups/packagegroup-core-device-devel.bb delete mode 100644 poky/meta/recipes-devtools/patch/patch.inc delete mode 100644 poky/meta/recipes-devtools/patch/patch/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-devtools/patch/patch_2.7.5.bb delete mode 100644 poky/meta/recipes-devtools/patchelf/patchelf/Increase-maxSize-to-64MB.patch delete mode 100644 poky/meta/recipes-devtools/patchelf/patchelf/Skip-empty-section-fixes-66.patch delete mode 100644 poky/meta/recipes-devtools/patchelf/patchelf/avoidholes.patch delete mode 100644 poky/meta/recipes-devtools/patchelf/patchelf/fix-adjusting-startPage.patch delete mode 100644 poky/meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch delete mode 100644 poky/meta/recipes-devtools/patchelf/patchelf_0.9.bb delete mode 100644 poky/meta/recipes-devtools/pax-utils/pax-utils_1.2.2.bb delete mode 100644 poky/meta/recipes-devtools/perl/liberror-perl_0.17025.bb delete mode 100644 poky/meta/recipes-devtools/perl/liburi-perl_1.72.bb delete mode 100644 poky/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb delete mode 100644 poky/meta/recipes-devtools/perl/libxml-perl_0.08.bb delete mode 100644 poky/meta/recipes-devtools/perl/libxml-simple-perl_2.24.bb delete mode 100644 poky/meta/recipes-devtools/perl/perl-native_5.24.1.bb delete mode 100644 poky/meta/recipes-devtools/perl/perl-ptest.inc delete mode 100644 poky/meta/recipes-devtools/perl/perl-rdepends_5.24.1.inc delete mode 100644 poky/meta/recipes-devtools/perl/perl.inc delete mode 100644 poky/meta/recipes-devtools/perl/perl/0001-Configure-Remove-fstack-protector-strong-for-native-.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/Configure-multilib.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/MM_Unix.pm.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/Makefile.SH.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/Makefile.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/config.sh delete mode 100644 poky/meta/recipes-devtools/perl/perl/config.sh-32 delete mode 100644 poky/meta/recipes-devtools/perl/perl/config.sh-32-be delete mode 100644 poky/meta/recipes-devtools/perl/perl/config.sh-32-le delete mode 100644 poky/meta/recipes-devtools/perl/perl/config.sh-64 delete mode 100644 poky/meta/recipes-devtools/perl/perl/config.sh-64-be delete mode 100644 poky/meta/recipes-devtools/perl/perl/config.sh-64-le delete mode 100644 poky/meta/recipes-devtools/perl/perl/cross-generate_uudmap.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/cpan-missing-site-dirs.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/cpan_definstalldirs.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/db_file_ver.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/deprecate-with-apt.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/doc_info.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/enc2xs_inc.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/errno_ver.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/extutils_set_libperl_path.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/fakeroot.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/find_html2text.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/fixes/document_makemaker_ccflags.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/fixes/memoize_storable_nstore.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/fixes/net_smtp_docs.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/fixes/perl-Cnn.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/fixes/pod_man_reproducible_date.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/fixes/podman-empty-date.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/fixes/podman-pipe.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/fixes/podman-utc-docs.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/fixes/podman-utc.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/fixes/respect_umask.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/instmodsh_doc.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/ld_run_path.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/libnet_config_path.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/libperl_embed_doc.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/locale-robustness.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/makemaker-pasthru.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/makemaker_customized.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/mod_paths.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/no_packlist_perllocal.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/patchlevel.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/perl5db-x-terminal-emulator.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/perlivp.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/pod2man-customized.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/prefix_changes.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/prune_libs.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/regen-skip.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/skip-kfreebsd-crash.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/skip-upstream-git-tests.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/squelch-locale-warnings.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/debian/writable_site_dirs.diff delete mode 100644 poky/meta/recipes-devtools/perl/perl/dynaloaderhack.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/ext-ODBM_File-hints-linux.pl-link-libgdbm_compat.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/ext-ODBM_File-t-odbm.t-fix-the-path-of-dbmt_common.p.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/fix_bad_rpath.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/generate-sh.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/installperl.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/letgcc-find-errno.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/make_ext.pl-fix-regenerate-makefile-failed-while-cc-.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/native-nopacklist.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/native-perlinc.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/perl-PathTools-don-t-filter-out-blib-from-INC.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/perl-archlib-exp.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/perl-configpm-switch.patch delete mode 100755 poky/meta/recipes-devtools/perl/perl/perl-configure.sh delete mode 100644 poky/meta/recipes-devtools/perl/perl/perl-dynloader.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/perl-enable-gdbm.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/perl-errno-generation-gcc5.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/perl-fix-conflict-between-skip_all-and-END.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/perl-moreconfig.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/perl-test-customized.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/run-ptest delete mode 100644 poky/meta/recipes-devtools/perl/perl/t-run-switches.t-perl5-perl.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/test/dist-threads-t-join.t-adjust-ps-option.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl/test/ext-DynaLoader-t-DynaLoader.t-fix-calling-dl_findfil.patch delete mode 100644 poky/meta/recipes-devtools/perl/perl_5.24.1.bb delete mode 100644 poky/meta/recipes-devtools/pkgconf/pkgconf/0001-Minimal-tweaks-to-compile-with-Visual-C-2015.patch delete mode 100644 poky/meta/recipes-devtools/pkgconf/pkgconf/0001-stdinc.h-fix-build-with-mingw.patch delete mode 100644 poky/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in delete mode 100644 poky/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in delete mode 100755 poky/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper delete mode 100644 poky/meta/recipes-devtools/pkgconf/pkgconf_1.3.7.bb delete mode 100644 poky/meta/recipes-devtools/pkgconfig/pkgconfig/0001-glib-gettext.m4-Update-AM_GLIB_GNU_GETTEXT-to-match-.patch delete mode 100644 poky/meta/recipes-devtools/pkgconfig/pkgconfig/fix-glib-configure-libtool-usage.patch delete mode 100644 poky/meta/recipes-devtools/pkgconfig/pkgconfig/pkg-config-esdk.in delete mode 100644 poky/meta/recipes-devtools/pkgconfig/pkgconfig/pkg-config-native.in delete mode 100644 poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb delete mode 100644 poky/meta/recipes-devtools/postinst-intercept/nativesdk-postinst-intercept_1.0.bb delete mode 100644 poky/meta/recipes-devtools/prelink/prelink/macros.prelink delete mode 100644 poky/meta/recipes-devtools/prelink/prelink/prelink.conf delete mode 100644 poky/meta/recipes-devtools/prelink/prelink/prelink.cron.daily delete mode 100644 poky/meta/recipes-devtools/prelink/prelink/prelink.default delete mode 100644 poky/meta/recipes-devtools/prelink/prelink_git.bb delete mode 100644 poky/meta/recipes-devtools/pseudo/files/0001-Use-epoll-API-on-Linux.patch delete mode 100644 poky/meta/recipes-devtools/pseudo/files/0001-configure-Prune-PIE-flags.patch delete mode 100644 poky/meta/recipes-devtools/pseudo/files/b6b68db896f9963558334aff7fca61adde4ec10f.patch delete mode 100644 poky/meta/recipes-devtools/pseudo/files/efe0be279901006f939cd357ccee47b651c786da.patch delete mode 100644 poky/meta/recipes-devtools/pseudo/files/fallback-group delete mode 100644 poky/meta/recipes-devtools/pseudo/files/fallback-passwd delete mode 100644 poky/meta/recipes-devtools/pseudo/files/fastopreply.patch delete mode 100644 poky/meta/recipes-devtools/pseudo/files/moreretries.patch delete mode 100644 poky/meta/recipes-devtools/pseudo/files/toomanyfiles.patch delete mode 100644 poky/meta/recipes-devtools/pseudo/pseudo.inc delete mode 100644 poky/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb delete mode 100644 poky/meta/recipes-devtools/pseudo/pseudo_git.bb delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/0001-BUG-fix-infinite-loop-when-creating-np.pad-on-an-emp.patch delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/aarch64/_numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/aarch64/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/arm/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/arm/numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/armeb/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/armeb/numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/fix_shebang_f2py.patch delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/mipsarchn32eb/_numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/mipsarchn32eb/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/mipsarchn32el/_numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/mipsarchn32el/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/mipsarchn64eb/_numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/mipsarchn64eb/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/mipsarchn64el/_numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/mipsarchn64el/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/mipsarcho32eb/_numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/mipsarcho32eb/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/mipsarcho32el/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/mipsarcho32el/numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/powerpc/_numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/powerpc/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/powerpc64/_numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/powerpc64/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/remove-build-path-in-comments.patch delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/x86-64/_numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/x86-64/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/x86/config.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h delete mode 100644 poky/meta/recipes-devtools/python-numpy/python-numpy_1.13.1.bb delete mode 100644 poky/meta/recipes-devtools/python-numpy/python3-numpy_1.13.3.bb delete mode 100644 poky/meta/recipes-devtools/python/python-2.7-manifest.inc delete mode 100644 poky/meta/recipes-devtools/python/python-3.5-manifest.inc delete mode 100644 poky/meta/recipes-devtools/python/python-async.inc delete mode 100644 poky/meta/recipes-devtools/python/python-git.inc delete mode 100644 poky/meta/recipes-devtools/python/python-gitdb.inc delete mode 100644 poky/meta/recipes-devtools/python/python-mako.inc delete mode 100644 poky/meta/recipes-devtools/python/python-native-2.7-manifest.inc delete mode 100644 poky/meta/recipes-devtools/python/python-native-3.5-manifest.inc delete mode 100644 poky/meta/recipes-devtools/python/python-native/10-distutils-fix-swig-parameter.patch delete mode 100644 poky/meta/recipes-devtools/python/python-native/11-distutils-never-modify-shebang-line.patch delete mode 100644 poky/meta/recipes-devtools/python/python-native/debug.patch delete mode 100644 poky/meta/recipes-devtools/python/python-native/multilib.patch delete mode 100644 poky/meta/recipes-devtools/python/python-native/nohostlibs.patch delete mode 100644 poky/meta/recipes-devtools/python/python-native/revert_use_of_sysconfigdata.patch delete mode 100644 poky/meta/recipes-devtools/python/python-native/unixccompiler.patch delete mode 100644 poky/meta/recipes-devtools/python/python-native_2.7.13.bb delete mode 100644 poky/meta/recipes-devtools/python/python-nose_1.3.7.bb delete mode 100644 poky/meta/recipes-devtools/python/python-scons-native_3.0.0.bb delete mode 100644 poky/meta/recipes-devtools/python/python-scons/SConscript-Support-python2-print-statements.patch delete mode 100644 poky/meta/recipes-devtools/python/python-scons_3.0.0.bb delete mode 100644 poky/meta/recipes-devtools/python/python-setuptools.inc delete mode 100644 poky/meta/recipes-devtools/python/python-setuptools_36.5.0.bb delete mode 100644 poky/meta/recipes-devtools/python/python-six.inc delete mode 100644 poky/meta/recipes-devtools/python/python-smmap.inc delete mode 100644 poky/meta/recipes-devtools/python/python.inc delete mode 100644 poky/meta/recipes-devtools/python/python/0001-distutils-set-the-prefix-to-be-inside-staging-direct.patch delete mode 100644 poky/meta/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch delete mode 100644 poky/meta/recipes-devtools/python/python/03-fix-tkinter-detection.patch delete mode 100644 poky/meta/recipes-devtools/python/python/05-enable-ctypes-cross-build.patch delete mode 100644 poky/meta/recipes-devtools/python/python/06-avoid_usr_lib_termcap_path_in_linking.patch delete mode 100644 poky/meta/recipes-devtools/python/python/Don-t-use-getentropy-on-Linux.patch delete mode 100644 poky/meta/recipes-devtools/python/python/add-CROSSPYTHONPATH-for-PYTHON_FOR_BUILD.patch delete mode 100644 poky/meta/recipes-devtools/python/python/add-md5module-support.patch delete mode 100644 poky/meta/recipes-devtools/python/python/avoid_warning_about_tkinter.patch delete mode 100644 poky/meta/recipes-devtools/python/python/avoid_warning_for_sunos_specific_module.patch delete mode 100644 poky/meta/recipes-devtools/python/python/builddir.patch delete mode 100644 poky/meta/recipes-devtools/python/python/cgi_py.patch delete mode 100644 poky/meta/recipes-devtools/python/python/check-if-target-is-64b-not-host.patch delete mode 100644 poky/meta/recipes-devtools/python/python/fix-makefile-for-ptest.patch delete mode 100644 poky/meta/recipes-devtools/python/python/fix_for_using_different_libdir.patch delete mode 100644 poky/meta/recipes-devtools/python/python/host_include_contamination.patch delete mode 100644 poky/meta/recipes-devtools/python/python/multilib.patch delete mode 100644 poky/meta/recipes-devtools/python/python/parallel-makeinst-create-bindir.patch delete mode 100644 poky/meta/recipes-devtools/python/python/pass-missing-libraries-to-Extension-for-mul.patch delete mode 100644 poky/meta/recipes-devtools/python/python/python-2.7.3-remove-bsdb-rpath.patch delete mode 100644 poky/meta/recipes-devtools/python/python/run-ptest delete mode 100644 poky/meta/recipes-devtools/python/python/search_db_h_in_inc_dirs_and_avoid_warning.patch delete mode 100644 poky/meta/recipes-devtools/python/python/setup_py_skip_cross_import_check.patch delete mode 100644 poky/meta/recipes-devtools/python/python/setuptweaks.patch delete mode 100644 poky/meta/recipes-devtools/python/python/sitecustomize.py delete mode 100644 poky/meta/recipes-devtools/python/python/support_SOURCE_DATE_EPOCH_in_py_compile_2.7.patch delete mode 100644 poky/meta/recipes-devtools/python/python/use_sysroot_ncurses_instead_of_host.patch delete mode 100644 poky/meta/recipes-devtools/python/python3-async_0.6.2.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-dbus_1.2.4.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-docutils_0.14.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-git_2.1.7.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-gitdb_0.6.4.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-iniparse/0001-Add-python-3-compatibility.patch delete mode 100644 poky/meta/recipes-devtools/python/python3-iniparse_0.4.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-mako_1.0.7.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-native_3.5.3.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-nose_1.3.7.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-pip_9.0.1.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-pycairo_1.15.3.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-pygobject/0001-configure.ac-Don-t-use-gnome-common-macros.patch delete mode 100644 poky/meta/recipes-devtools/python/python3-pygobject/0001-configure.ac-add-sysroot-path-to-GI_DATADIR-don-t-se.patch delete mode 100644 poky/meta/recipes-devtools/python/python3-pygobject_3.26.0.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-setuptools_36.5.0.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-six_1.11.0.bb delete mode 100644 poky/meta/recipes-devtools/python/python3-smmap_0.9.0.bb delete mode 100644 poky/meta/recipes-devtools/python/python3/0001-Do-not-use-the-shell-version-of-python-config-that-w.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/0001-Issue-21272-Use-_sysconfigdata.py-to-initialize-dist.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/0001-cross-compile-support.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/0001-h2py-Fix-issue-13032-where-it-fails-with-UnicodeDeco.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/03-fix-tkinter-detection.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/030-fixup-include-dirs.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/070-dont-clean-ipkg-install.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/080-distutils-dont_adjust_files.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/12-distutils-prefix-is-inside-staging-area.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/130-readline-setup.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/150-fix-setupterm.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/Fix-29519-weakref-spewing-exceptions-during-interp-f.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/avoid-ncursesw-include-path.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/avoid_warning_about_tkinter.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/cgi_py.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/configure.ac-fix-LIBPL.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/fix_for_using_different_libdir.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/host_include_contamination.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/pass-missing-libraries-to-Extension-for-mul.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/python-3.3-multilib.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/python-config.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/python3-use-CROSSPYTHONPATH-for-PYTHON_FOR_BUILD.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/setup.py-check-cross_compiling-when-get-FLAGS.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/setuptweaks.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/shutil-follow-symlink-fix.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/sitecustomize.py delete mode 100644 poky/meta/recipes-devtools/python/python3/support_SOURCE_DATE_EPOCH_in_py_compile.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/sysconfig.py-add-_PYTHON_PROJECT_SRC.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/sysroot-include-headers.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/tweak-MULTIARCH-for-powerpc-linux-gnuspe.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/unixccompiler.patch delete mode 100644 poky/meta/recipes-devtools/python/python3/upstream-random-fixes.patch delete mode 100644 poky/meta/recipes-devtools/python/python3_3.5.3.bb delete mode 100644 poky/meta/recipes-devtools/python/python_2.7.13.bb delete mode 100644 poky/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb delete mode 100644 poky/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb delete mode 100644 poky/meta/recipes-devtools/qemu/qemu-helper/tunctl.c delete mode 100644 poky/meta/recipes-devtools/qemu/qemu-targets.inc delete mode 100644 poky/meta/recipes-devtools/qemu/qemu.inc delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/0001-Provide-support-for-the-CUSE-TPM.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/0002-Introduce-condition-to-notify-waiters-of-completed-c.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/0003-Introduce-condition-in-TPM-backend-for-notification.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/0004-Add-support-for-VM-suspend-resume-for-TPM-TIS-v2.9.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/add-ptest-in-makefile-v10.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/apic-fixup-fallthrough-to-PIC.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/cpus.c-qemu_cpu_kick_thread_debugging.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/disable-grabs.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/exclude-some-arm-EABI-obsolete-syscalls.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/fix-libcap-header-issue-on-some-distro.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/glibc-2.25.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/no-valgrind.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/pathlimit.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/powerpc_rom.bin delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/ppc_locking.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/qemu-2.5.0-cflags.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/qemu-enlarge-env-entry-size.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/run-ptest delete mode 100644 poky/meta/recipes-devtools/qemu/qemu/wacom.patch delete mode 100644 poky/meta/recipes-devtools/qemu/qemu_2.10.1.bb delete mode 100644 poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb delete mode 100644 poky/meta/recipes-devtools/quilt/quilt-native.inc delete mode 100644 poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb delete mode 100644 poky/meta/recipes-devtools/quilt/quilt.inc delete mode 100644 poky/meta/recipes-devtools/quilt/quilt/0001-tests-Allow-different-output-from-mv.patch delete mode 100644 poky/meta/recipes-devtools/quilt/quilt/Makefile delete mode 100644 poky/meta/recipes-devtools/quilt/quilt/aclocal.patch delete mode 100644 poky/meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix_target.patch delete mode 100755 poky/meta/recipes-devtools/quilt/quilt/run-ptest delete mode 100755 poky/meta/recipes-devtools/quilt/quilt/test.sh delete mode 100644 poky/meta/recipes-devtools/quilt/quilt_0.65.bb delete mode 100644 poky/meta/recipes-devtools/rpm/files/0001-Add-PYTHON_ABI-when-searching-for-python-libraries.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0001-Add-a-color-setting-for-mips64_n32-binaries.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0001-Do-not-add-an-unsatisfiable-dependency-when-building.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0001-Do-not-read-config-files-from-HOME.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0001-Do-not-reset-the-PATH-environment-variable-before-ru.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0001-Fix-build-with-musl-C-library.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0001-Split-binary-package-building-into-a-separate-functi.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0001-When-nice-value-cannot-be-reset-issue-a-notice-inste.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0001-perl-disable-auto-reqs.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0002-Run-binary-package-creation-via-thread-pools.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0003-rpmstrpool.c-make-operations-over-string-pools-threa.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0004-build-pack.c-remove-static-local-variables-from-buil.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0011-Do-not-require-that-ELF-binaries-are-executable-to-b.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0012-Use-conditional-to-access-_docdir-in-macros.in.patch delete mode 100644 poky/meta/recipes-devtools/rpm/files/0013-Add-a-new-option-alldeps-to-rpmdeps.patch delete mode 100644 poky/meta/recipes-devtools/rpm/rpm_git.bb delete mode 100644 poky/meta/recipes-devtools/rsync/files/makefile-no-rebuild.patch delete mode 100644 poky/meta/recipes-devtools/rsync/files/rsyncd.conf delete mode 100644 poky/meta/recipes-devtools/rsync/rsync.inc delete mode 100644 poky/meta/recipes-devtools/rsync/rsync_3.1.2.bb delete mode 100644 poky/meta/recipes-devtools/ruby/ruby.inc delete mode 100644 poky/meta/recipes-devtools/ruby/ruby/0002-Obey-LDFLAGS-for-the-link-of-libruby.patch delete mode 100644 poky/meta/recipes-devtools/ruby/ruby/extmk.patch delete mode 100644 poky/meta/recipes-devtools/ruby/ruby/ruby-CVE-2017-9224.patch delete mode 100644 poky/meta/recipes-devtools/ruby/ruby/ruby-CVE-2017-9226.patch delete mode 100644 poky/meta/recipes-devtools/ruby/ruby/ruby-CVE-2017-9227.patch delete mode 100644 poky/meta/recipes-devtools/ruby/ruby/ruby-CVE-2017-9228.patch delete mode 100644 poky/meta/recipes-devtools/ruby/ruby/ruby-CVE-2017-9229.patch delete mode 100644 poky/meta/recipes-devtools/ruby/ruby_2.4.2.bb delete mode 100755 poky/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts delete mode 100644 poky/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.init delete mode 100644 poky/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service delete mode 100644 poky/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb delete mode 100644 poky/meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch delete mode 100644 poky/meta/recipes-devtools/squashfs-tools/squashfs-tools/fix-compat.patch delete mode 100644 poky/meta/recipes-devtools/squashfs-tools/squashfs-tools/squashfs-tools-4.3-sysmacros.patch delete mode 100644 poky/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb delete mode 100644 poky/meta/recipes-devtools/strace/strace/0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch delete mode 100644 poky/meta/recipes-devtools/strace/strace/0001-caps-abbrev.awk-fix-gawk-s-path.patch delete mode 100644 poky/meta/recipes-devtools/strace/strace/0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch delete mode 100644 poky/meta/recipes-devtools/strace/strace/Makefile-ptest.patch delete mode 100644 poky/meta/recipes-devtools/strace/strace/disable-git-version-gen.patch delete mode 100644 poky/meta/recipes-devtools/strace/strace/mips-SIGEMT.patch delete mode 100644 poky/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch delete mode 100755 poky/meta/recipes-devtools/strace/strace/run-ptest delete mode 100644 poky/meta/recipes-devtools/strace/strace/update-gawk-paths.patch delete mode 100644 poky/meta/recipes-devtools/strace/strace_4.19.bb delete mode 100644 poky/meta/recipes-devtools/subversion/subversion/0001-Fix-libtool-name-in-configure.ac.patch delete mode 100644 poky/meta/recipes-devtools/subversion/subversion/CVE-2017-9800.patch delete mode 100644 poky/meta/recipes-devtools/subversion/subversion/disable_macos.patch delete mode 100644 poky/meta/recipes-devtools/subversion/subversion/serf.m4-Regex-modified-to-allow-D-in-paths.patch delete mode 100644 poky/meta/recipes-devtools/subversion/subversion/serfmacro.patch delete mode 100644 poky/meta/recipes-devtools/subversion/subversion_1.9.6.bb delete mode 100644 poky/meta/recipes-devtools/swig/swig.inc delete mode 100644 poky/meta/recipes-devtools/swig/swig/0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch delete mode 100644 poky/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch delete mode 100644 poky/meta/recipes-devtools/swig/swig_3.0.12.bb delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/0001-linux-syslinux-support-ext2-3-4-device.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/0002-linux-syslinux-implement-open_ext2_fs.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/0003-linux-syslinux-implement-install_to_ext2.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/0004-linux-syslinux-add-ext_file_read-and-ext_file_write.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/0005-linux-syslinux-implement-handle_adv_on_ext.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/0006-linux-syslinux-implement-write_to_ext-and-add-syslin.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/0007-linux-syslinux-implement-ext_construct_sectmap_fs.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/0009-linux-syslinux-implement-install_bootblock.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/0010-gcc46-compatibility.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/0011-mk-MMD-does-not-take-any-arguments.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/syslinux-6.03-sysmacros.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/syslinux-fix-parallel-building-issue.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/syslinux-libupload-depend-lib.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux/syslinux-remove-clean-script.patch delete mode 100644 poky/meta/recipes-devtools/syslinux/syslinux_6.03.bb delete mode 100644 poky/meta/recipes-devtools/systemd-bootchart/files/0001-parse-util-Don-t-use-xlocale.h.patch delete mode 100644 poky/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_231.bb delete mode 100644 poky/meta/recipes-devtools/tcf-agent/tcf-agent/0001-canonicalize_file_name-is-specific-to-glibc.patch delete mode 100644 poky/meta/recipes-devtools/tcf-agent/tcf-agent/fix_ranlib.patch delete mode 100644 poky/meta/recipes-devtools/tcf-agent/tcf-agent/ldflags.patch delete mode 100755 poky/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init delete mode 100644 poky/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service delete mode 100644 poky/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb delete mode 100644 poky/meta/recipes-devtools/tcltk/tcl/alter-includedir.patch delete mode 100644 poky/meta/recipes-devtools/tcltk/tcl/fix_issue_with_old_distro_glibc.patch delete mode 100644 poky/meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch delete mode 100644 poky/meta/recipes-devtools/tcltk/tcl/no_packages.patch delete mode 100644 poky/meta/recipes-devtools/tcltk/tcl/run-ptest delete mode 100644 poky/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch delete mode 100644 poky/meta/recipes-devtools/tcltk/tcl/tcl-remove-hardcoded-install-path.patch delete mode 100644 poky/meta/recipes-devtools/tcltk/tcl_8.6.7.bb delete mode 100644 poky/meta/recipes-devtools/unfs3/unfs3/alternate_rpc_ports.patch delete mode 100644 poky/meta/recipes-devtools/unfs3/unfs3/fix_compile_warning.patch delete mode 100644 poky/meta/recipes-devtools/unfs3/unfs3/fix_pid_race_parent_writes_child_pid.patch delete mode 100644 poky/meta/recipes-devtools/unfs3/unfs3/relative_max_socket_path_len.patch delete mode 100644 poky/meta/recipes-devtools/unfs3/unfs3/rename_fh_cache.patch delete mode 100644 poky/meta/recipes-devtools/unfs3/unfs3/tcp_no_delay.patch delete mode 100644 poky/meta/recipes-devtools/unfs3/unfs3/unfs3_parallel_build.patch delete mode 100644 poky/meta/recipes-devtools/unfs3/unfs3_0.9.22.r497.bb delete mode 100644 poky/meta/recipes-devtools/unifdef/unifdef_2.11.bb delete mode 100644 poky/meta/recipes-devtools/vala/vala.inc delete mode 100644 poky/meta/recipes-devtools/vala/vala/0001-Disable-valadoc.patch delete mode 100644 poky/meta/recipes-devtools/vala/vala/0001-git-version-gen-don-t-append-dirty-if-we-re-not-in-g.patch delete mode 100644 poky/meta/recipes-devtools/vala/vala/0001-vapigen.m4-use-PKG_CONFIG_SYSROOT_DIR.patch delete mode 100644 poky/meta/recipes-devtools/vala/vala/disable-graphviz.patch delete mode 100644 poky/meta/recipes-devtools/vala/vala_0.38.2.bb delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0001-Remove-tests-that-fail-to-build-on-some-PPC32-config.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0001-makefiles-Drop-setting-mcpu-to-cortex-a8-on-arm-arch.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0001-memcheck-arm64-Define-__THROW-if-not-already-defined.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0001-memcheck-tests-Use-ucontext_t-instead-of-struct-ucon.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0001-sigqueue-Rename-_sifields-to-__si_fields-on-musl.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0001-str_tester.c-Limit-rawmemchr-test-to-glibc.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0002-context-APIs-are-not-available-on-musl.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0002-memcheck-x86-Define-__THROW-if-not-defined.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0002-remove-rpath.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0003-correct-include-directive-path-for-config.h.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0003-tests-seg_override-Replace-__modify_ldt-with-syscall.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0004-Fix-out-of-tree-builds.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0004-pth_atfork1.c-Define-error-API-for-musl.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0005-tc20_verifywrap.c-Fake-__GLIBC_PREREQ-with-musl.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/0006-pth_detached3.c-Dereference-pthread_t-before-adding-.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/Added-support-for-PPC-instructions-mfatbu-mfatbl.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/avoid-neon-for-targets-which-don-t-support-it.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/fixed-perl-path.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/link-gz-tests.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/ppc-headers.patch delete mode 100755 poky/meta/recipes-devtools/valgrind/valgrind/run-ptest delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/use-appropriate-march-mcpu-mfpu-for-ARM-test-apps.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind/valgrind-make-ld-XXX.so-strlen-intercept-optional.patch delete mode 100644 poky/meta/recipes-devtools/valgrind/valgrind_3.13.0.bb delete mode 100644 poky/meta/recipes-devtools/xmlto/files/catalog.xml delete mode 100644 poky/meta/recipes-devtools/xmlto/xmlto-0.0.28/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch delete mode 100644 poky/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb delete mode 100644 poky/meta/recipes-devtools/yasm/yasm_1.3.0.bb delete mode 100644 poky/meta/recipes-devtools/zisofs-tools/zisofs-tools-native_1.0.8.bb delete mode 100644 poky/meta/recipes-extended/acpica/acpica_20170303.bb delete mode 100644 poky/meta/recipes-extended/acpica/files/manipulate-fds-instead-of-FILE.patch delete mode 100644 poky/meta/recipes-extended/acpica/files/no-werror.patch delete mode 100644 poky/meta/recipes-extended/acpica/files/rename-yy_scan_string-manually.patch delete mode 100644 poky/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb delete mode 100644 poky/meta/recipes-extended/at/at/0001-remove-glibc-assumption.patch delete mode 100644 poky/meta/recipes-extended/at/at/atd.init delete mode 100644 poky/meta/recipes-extended/at/at/atd.service delete mode 100644 poky/meta/recipes-extended/at/at/configure-add-enable-pam.patch delete mode 100644 poky/meta/recipes-extended/at/at/file_replacement_with_gplv2.patch delete mode 100644 poky/meta/recipes-extended/at/at/fix_parallel_build_error.patch delete mode 100644 poky/meta/recipes-extended/at/at/makefile-fix-parallel.patch delete mode 100644 poky/meta/recipes-extended/at/at/pam.conf.patch delete mode 100644 poky/meta/recipes-extended/at/at/posixtm.c delete mode 100644 poky/meta/recipes-extended/at/at/posixtm.h delete mode 100644 poky/meta/recipes-extended/at/at_3.1.20.bb delete mode 100644 poky/meta/recipes-extended/bash/bash.inc delete mode 100644 poky/meta/recipes-extended/bash/bash/0001-help-fix-printf-format-security-warning.patch delete mode 100644 poky/meta/recipes-extended/bash/bash/bash-memleak-bug-fix-for-builtin-command-read.patch delete mode 100644 poky/meta/recipes-extended/bash/bash/build-tests.patch delete mode 100644 poky/meta/recipes-extended/bash/bash/execute_cmd.patch delete mode 100644 poky/meta/recipes-extended/bash/bash/fix-run-builtins.patch delete mode 100644 poky/meta/recipes-extended/bash/bash/fix-run-coproc-run-heredoc-run-execscript-run-test-f.patch delete mode 100644 poky/meta/recipes-extended/bash/bash/mkbuiltins_have_stringize.patch delete mode 100644 poky/meta/recipes-extended/bash/bash/run-ptest delete mode 100644 poky/meta/recipes-extended/bash/bash/test-output.patch delete mode 100644 poky/meta/recipes-extended/bash/bash_4.4.bb delete mode 100644 poky/meta/recipes-extended/bc/bc_1.06.bb delete mode 100644 poky/meta/recipes-extended/bc/files/fix-segment-fault.patch delete mode 100644 poky/meta/recipes-extended/blktool/blktool/0001-fix-typos-in-manpage.patch delete mode 100644 poky/meta/recipes-extended/blktool/blktool/0002-fix-string-error.patch delete mode 100644 poky/meta/recipes-extended/blktool/blktool/0003-Fix-3-d-argument-for-BLKROSET-it-must-be-const-int.patch delete mode 100644 poky/meta/recipes-extended/blktool/blktool_4-7.bb delete mode 100644 poky/meta/recipes-extended/bzip2/bzip2-1.0.6/CVE-2016-3189.patch delete mode 100644 poky/meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am delete mode 100644 poky/meta/recipes-extended/bzip2/bzip2-1.0.6/configure.ac delete mode 100644 poky/meta/recipes-extended/bzip2/bzip2-1.0.6/fix-bunzip2-qt-returns-0-for-corrupt-archives.patch delete mode 100644 poky/meta/recipes-extended/bzip2/bzip2-1.0.6/run-ptest delete mode 100644 poky/meta/recipes-extended/bzip2/bzip2_1.0.6.bb delete mode 100644 poky/meta/recipes-extended/chkconfig/chkconfig-alternatives-native_1.3.59.bb delete mode 100644 poky/meta/recipes-extended/chkconfig/chkconfig/replace_caddr_t.patch delete mode 100644 poky/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb delete mode 100644 poky/meta/recipes-extended/cpio/cpio-2.12/0001-Fix-CVE-2015-1197.patch delete mode 100644 poky/meta/recipes-extended/cpio/cpio-2.12/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-extended/cpio/cpio_2.12.bb delete mode 100644 poky/meta/recipes-extended/cpio/cpio_v2.inc delete mode 100644 poky/meta/recipes-extended/cracklib/cracklib/0001-Apply-patch-to-fix-CVE-2016-6318.patch delete mode 100644 poky/meta/recipes-extended/cracklib/cracklib/0001-packlib.c-support-dictionary-byte-order-dependent.patch delete mode 100644 poky/meta/recipes-extended/cracklib/cracklib/0002-craklib-fix-testnum-and-teststr-failed.patch delete mode 100644 poky/meta/recipes-extended/cracklib/cracklib_2.9.5.bb delete mode 100755 poky/meta/recipes-extended/cronie/cronie/crond.init delete mode 100644 poky/meta/recipes-extended/cronie/cronie/crond.service delete mode 100644 poky/meta/recipes-extended/cronie/cronie/crond_pam_config.patch delete mode 100644 poky/meta/recipes-extended/cronie/cronie/crontab delete mode 100644 poky/meta/recipes-extended/cronie/cronie_1.5.1.bb delete mode 100644 poky/meta/recipes-extended/cups/cups.inc delete mode 100644 poky/meta/recipes-extended/cups/cups/0001-don-t-try-to-run-generated-binaries.patch delete mode 100644 poky/meta/recipes-extended/cups/cups/cups_serverbin.patch delete mode 100644 poky/meta/recipes-extended/cups/cups/use_echo_only_in_init.patch delete mode 100644 poky/meta/recipes-extended/cups/cups_2.2.6.bb delete mode 100644 poky/meta/recipes-extended/cwautomacros/cwautomacros_20110201.bb delete mode 100644 poky/meta/recipes-extended/diffutils/diffutils-3.6/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-extended/diffutils/diffutils-3.6/0001-explicitly-disable-replacing-getopt.patch delete mode 100644 poky/meta/recipes-extended/diffutils/diffutils-3.6/run-ptest delete mode 100644 poky/meta/recipes-extended/diffutils/diffutils.inc delete mode 100644 poky/meta/recipes-extended/diffutils/diffutils_3.6.bb delete mode 100644 poky/meta/recipes-extended/ed/ed_1.14.2.bb delete mode 100644 poky/meta/recipes-extended/ethtool/ethtool/avoid_parallel_tests.patch delete mode 100644 poky/meta/recipes-extended/ethtool/ethtool/run-ptest delete mode 100644 poky/meta/recipes-extended/ethtool/ethtool_4.13.bb delete mode 100644 poky/meta/recipes-extended/findutils/findutils.inc delete mode 100644 poky/meta/recipes-extended/findutils/findutils/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-extended/findutils/findutils_4.6.0.bb delete mode 100644 poky/meta/recipes-extended/foomatic/foomatic-filters-4.0.17/CVE-2015-8327.patch delete mode 100644 poky/meta/recipes-extended/foomatic/foomatic-filters-4.0.17/CVE-2015-8560.patch delete mode 100644 poky/meta/recipes-extended/foomatic/foomatic-filters_4.0.17.bb delete mode 100644 poky/meta/recipes-extended/gawk/gawk/run-ptest delete mode 100644 poky/meta/recipes-extended/gawk/gawk_4.2.0.bb delete mode 100644 poky/meta/recipes-extended/ghostscript/files/do-not-check-local-libpng-source.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7977.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-11714.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-5951.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-7207.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-7975.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-9216.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-9611.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-9612.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-9726.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-9727.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-9739.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-9835.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/aarch64/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/arm/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/armeb/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/avoid-host-contamination.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/base-genht.c-add-a-preprocessor-define-to-allow-fope.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/cups-no-gcrypt.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.02-genarch.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.15-parallel-make.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.16-Werror-return-type.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.21-native-fix-disable-system-libtiff.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.21-prevent_recompiling.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/i586/objarch.h delete mode 120000 poky/meta/recipes-extended/ghostscript/ghostscript/i686 delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/microblazeeb/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/microblazeel/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/mipsarchn32eb/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/mipsarchn32el/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/mipsarchn64eb/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/mipsarchn64el/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/mipsarcho32eb/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/mipsarcho32el/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/mkdir-p.patch delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/nios2/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/powerpc/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/powerpc64/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript/x86-64/objarch.h delete mode 100644 poky/meta/recipes-extended/ghostscript/ghostscript_9.21.bb delete mode 100644 poky/meta/recipes-extended/go-examples/go-helloworld_0.1.bb delete mode 100644 poky/meta/recipes-extended/gperf/gperf.inc delete mode 100644 poky/meta/recipes-extended/gperf/gperf_3.1.bb delete mode 100644 poky/meta/recipes-extended/grep/grep/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-extended/grep/grep_3.1.bb delete mode 100644 poky/meta/recipes-extended/groff/groff-1.22.3/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-extended/groff/groff-1.22.3/0001-replace-perl-w-with-use-warnings.patch delete mode 100644 poky/meta/recipes-extended/groff/groff-1.22.3/groff-1.22.2-correct-man.local-install-path.patch delete mode 100644 poky/meta/recipes-extended/groff/groff_1.22.3.bb delete mode 100644 poky/meta/recipes-extended/gzip/files/0001-gzip-port-zdiff-zless-to-Busybox.patch delete mode 100644 poky/meta/recipes-extended/gzip/files/run-ptest delete mode 100644 poky/meta/recipes-extended/gzip/gzip-1.8/wrong-path-fix.patch delete mode 100644 poky/meta/recipes-extended/gzip/gzip.inc delete mode 100644 poky/meta/recipes-extended/gzip/gzip_1.8.bb delete mode 100644 poky/meta/recipes-extended/hdparm/hdparm_9.52.bb delete mode 100644 poky/meta/recipes-extended/images/core-image-full-cmdline.bb delete mode 100644 poky/meta/recipes-extended/images/core-image-kernel-dev.bb delete mode 100644 poky/meta/recipes-extended/images/core-image-lsb-dev.bb delete mode 100644 poky/meta/recipes-extended/images/core-image-lsb-sdk.bb delete mode 100644 poky/meta/recipes-extended/images/core-image-lsb.bb delete mode 100644 poky/meta/recipes-extended/images/core-image-testmaster-initramfs.bb delete mode 100644 poky/meta/recipes-extended/images/core-image-testmaster.bb delete mode 100644 poky/meta/recipes-extended/iptables/iptables/0001-configure-Add-option-to-enable-disable-libnfnetlink.patch delete mode 100644 poky/meta/recipes-extended/iptables/iptables/0001-fix-build-with-musl.patch delete mode 100644 poky/meta/recipes-extended/iptables/iptables/0002-configure.ac-only-check-conntrack-when-libnfnetlink-enabled.patch delete mode 100644 poky/meta/recipes-extended/iptables/iptables/types.h-add-defines-that-are-required-for-if_packet.patch delete mode 100644 poky/meta/recipes-extended/iptables/iptables_1.6.1.bb delete mode 100644 poky/meta/recipes-extended/iputils/files/0001-Fix-header-inclusion-for-musl.patch delete mode 100644 poky/meta/recipes-extended/iputils/files/0001-Intialize-struct-elements-by-name.patch delete mode 100644 poky/meta/recipes-extended/iputils/files/arping-fix-arping-hang-if-SIGALRM-is-blocked.patch delete mode 100644 poky/meta/recipes-extended/iputils/files/debian/targets.diff delete mode 100644 poky/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff delete mode 100644 poky/meta/recipes-extended/iputils/files/nsgmls-path-fix.patch delete mode 100644 poky/meta/recipes-extended/iputils/iputils_s20151218.bb delete mode 100644 poky/meta/recipes-extended/less/less_527.bb delete mode 100644 poky/meta/recipes-extended/libaio/libaio/00_arches.patch delete mode 100644 poky/meta/recipes-extended/libaio/libaio/destdir.patch delete mode 100644 poky/meta/recipes-extended/libaio/libaio/generic-arch-dectection-for-padding-defines.patch delete mode 100644 poky/meta/recipes-extended/libaio/libaio/libaio_fix_for_mips_syscalls.patch delete mode 100644 poky/meta/recipes-extended/libaio/libaio/libaio_fix_for_x32.patch delete mode 100644 poky/meta/recipes-extended/libaio/libaio/system-linkage.patch delete mode 100644 poky/meta/recipes-extended/libaio/libaio_0.3.110.bb delete mode 100644 poky/meta/recipes-extended/libarchive/libarchive/CVE-2017-14166.patch delete mode 100644 poky/meta/recipes-extended/libarchive/libarchive/CVE-2017-14502.patch delete mode 100644 poky/meta/recipes-extended/libarchive/libarchive/bug929.patch delete mode 100644 poky/meta/recipes-extended/libarchive/libarchive/non-recursive-extract-and-list.patch delete mode 100644 poky/meta/recipes-extended/libarchive/libarchive_3.3.2.bb delete mode 100644 poky/meta/recipes-extended/libidn/libidn/0001-idn-fix-printf-format-security-warnings.patch delete mode 100644 poky/meta/recipes-extended/libidn/libidn/0001-idn-format-security-warnings.patch delete mode 100644 poky/meta/recipes-extended/libidn/libidn/avoid_AM_PROG_MKDIR_P_warning_error_with_automake_1.12.patch delete mode 100644 poky/meta/recipes-extended/libidn/libidn/dont-depend-on-help2man.patch delete mode 100644 poky/meta/recipes-extended/libidn/libidn/gcc7-compatibility.patch delete mode 100644 poky/meta/recipes-extended/libidn/libidn/libidn_fix_for_automake-1.12.patch delete mode 100644 poky/meta/recipes-extended/libidn/libidn_1.33.bb delete mode 100644 poky/meta/recipes-extended/libmnl/libmnl_1.0.4.bb delete mode 100644 poky/meta/recipes-extended/libnsl/libnsl2/0001-include-sys-cdefs.h-explicitly.patch delete mode 100644 poky/meta/recipes-extended/libnsl/libnsl2/0001-nis_call.c-Include-stdint.h-for-uintptr_t-definition.patch delete mode 100644 poky/meta/recipes-extended/libnsl/libnsl2/0002-Define-glibc-specific-macros.patch delete mode 100644 poky/meta/recipes-extended/libnsl/libnsl2_git.bb delete mode 100644 poky/meta/recipes-extended/libsolv/libsolv/0001-Add-fallback-fopencookie-implementation.patch delete mode 100644 poky/meta/recipes-extended/libsolv/libsolv/0001-repo_rpmdb.c-increase-MAX_HDR_CNT-and-MAX_HDR_DSIZE.patch delete mode 100644 poky/meta/recipes-extended/libsolv/libsolv/0002-Fixes-to-internal-fopencookie-implementation.patch delete mode 100644 poky/meta/recipes-extended/libsolv/libsolv_0.6.29.bb delete mode 100644 poky/meta/recipes-extended/libtirpc/libtirpc/0001-include-stdint.h-for-uintptr_t.patch delete mode 100644 poky/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch delete mode 100644 poky/meta/recipes-extended/libtirpc/libtirpc/Use-netbsd-queue.h.patch delete mode 100644 poky/meta/recipes-extended/libtirpc/libtirpc/export_key_secretkey_is_set.patch delete mode 100644 poky/meta/recipes-extended/libtirpc/libtirpc_1.0.2.bb delete mode 100644 poky/meta/recipes-extended/libuser/libuser/0001-Check-for-issetugid.patch delete mode 100644 poky/meta/recipes-extended/libuser/libuser/0001-modules-files.c-parse_field-fix-string-formating-in-.patch delete mode 100644 poky/meta/recipes-extended/libuser/libuser/0002-remove-unused-execinfo.h.patch delete mode 100644 poky/meta/recipes-extended/libuser/libuser_0.62.bb delete mode 100644 poky/meta/recipes-extended/lighttpd/lighttpd/0001-Use-pkg-config-for-pcre-dependency-instead-of-config.patch delete mode 100644 poky/meta/recipes-extended/lighttpd/lighttpd/index.html.lighttpd delete mode 100644 poky/meta/recipes-extended/lighttpd/lighttpd/lighttpd delete mode 100644 poky/meta/recipes-extended/lighttpd/lighttpd/lighttpd.conf delete mode 100644 poky/meta/recipes-extended/lighttpd/lighttpd/lighttpd.service delete mode 100644 poky/meta/recipes-extended/lighttpd/lighttpd_1.4.48.bb delete mode 100644 poky/meta/recipes-extended/logrotate/logrotate/act-as-mv-when-rotate.patch delete mode 100644 poky/meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch delete mode 100644 poky/meta/recipes-extended/logrotate/logrotate/update-the-manual.patch delete mode 100644 poky/meta/recipes-extended/logrotate/logrotate_3.13.0.bb delete mode 100644 poky/meta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch delete mode 100755 poky/meta/recipes-extended/lsb/lsb/init-functions delete mode 100755 poky/meta/recipes-extended/lsb/lsb/lsb_killproc delete mode 100755 poky/meta/recipes-extended/lsb/lsb/lsb_log_message delete mode 100755 poky/meta/recipes-extended/lsb/lsb/lsb_pidofproc delete mode 100755 poky/meta/recipes-extended/lsb/lsb/lsb_start_daemon delete mode 100644 poky/meta/recipes-extended/lsb/lsb_4.1.bb delete mode 100644 poky/meta/recipes-extended/lsb/lsbinitscripts/0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch delete mode 100644 poky/meta/recipes-extended/lsb/lsbinitscripts/functions.patch delete mode 100644 poky/meta/recipes-extended/lsb/lsbinitscripts_9.72.bb delete mode 100644 poky/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh delete mode 100644 poky/meta/recipes-extended/lsb/lsbtest/packages_list delete mode 100644 poky/meta/recipes-extended/lsb/lsbtest/session delete mode 100644 poky/meta/recipes-extended/lsb/lsbtest_1.0.bb delete mode 100644 poky/meta/recipes-extended/lsof/files/lsof-remove-host-information.patch delete mode 100644 poky/meta/recipes-extended/lsof/lsof_4.89.bb delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0001-add-_GNU_SOURCE-to-pec_listener.c.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0003-Add-knob-to-control-tirpc-support.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0004-build-Add-option-to-select-libc-implementation.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0007-fix-__WORDSIZE-undeclared-when-building-with-musl.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0009-fix-redefinition-of-struct-msgbuf-error-building-wit.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0010-replace-__BEGIN_DECLS-and-__END_DECLS.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0011-Rename-sigset-variable-to-sigset1.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0018-guard-mallocopt-with-__GLIBC__.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0020-getdents-define-getdents-getdents64-only-for-glibc.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0023-ptrace-Use-int-instead-of-enum-__ptrace_request.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0024-rt_sigaction-rt_sigprocmark-Define-_GNU_SOURCE.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0025-mc_gethost-include-sys-types.h.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0026-crash01-Define-_GNU_SOURCE.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0034-periodic_output.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0035-fix-test_proc_kill-hang.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch delete mode 100644 poky/meta/recipes-extended/ltp/ltp_20170929.bb delete mode 100644 poky/meta/recipes-extended/lzip/lzip_1.19.bb delete mode 100644 poky/meta/recipes-extended/man-pages/man-pages_4.11.bb delete mode 100644 poky/meta/recipes-extended/man/man/configure_sed.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5g-nonrootbuild.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5h1-gencat.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5h1-make.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5i2-initial.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5i2-newline.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5i2-overflow.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5j-i18n.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5j-nocache.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5j-utf8.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5k-confpath.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5k-nonascii.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5k-sofix.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5m2-bug11621.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5m2-buildroot.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5m2-no-color-for-printing.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.5m2-sigpipe.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.6e-i18n_whatis.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.6e-mandirs.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.6e-new_sections.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.6e-ro_usr.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.6e-security.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.6e-use_i18n_vars_in_a_std_way.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.6e-whatis2.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.6g-compile-warnings.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.6g-configure.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.6g-parallel.patch delete mode 100644 poky/meta/recipes-extended/man/man/man-1.6g-whatis3.patch delete mode 100644 poky/meta/recipes-extended/man/man/man.1.gz delete mode 100644 poky/meta/recipes-extended/man/man/man.7.gz delete mode 100644 poky/meta/recipes-extended/man/man/man.conf delete mode 100644 poky/meta/recipes-extended/man/man/manpath.5.gz delete mode 100644 poky/meta/recipes-extended/man/man_1.6g.bb delete mode 100644 poky/meta/recipes-extended/mc/files/0001-mc-replace-perl-w-with-use-warnings.patch delete mode 100644 poky/meta/recipes-extended/mc/files/0002-Ticket-3697-tty_init-unify-curses-initialization.patch delete mode 100644 poky/meta/recipes-extended/mc/mc_4.8.19.bb delete mode 100644 poky/meta/recipes-extended/mdadm/files/0001-Fix-the-path-of-corosync-and-dlm-header-files-check.patch delete mode 100644 poky/meta/recipes-extended/mdadm/files/0001-Use-CC-to-check-for-implicit-fallthrough-warning-sup.patch delete mode 100644 poky/meta/recipes-extended/mdadm/files/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch delete mode 100644 poky/meta/recipes-extended/mdadm/files/0001-mdadm-Add-Wimplicit-fallthrough-0-in-Makefile.patch delete mode 100644 poky/meta/recipes-extended/mdadm/files/0001-mdadm.h-Undefine-dprintf-before-redefining.patch delete mode 100644 poky/meta/recipes-extended/mdadm/files/0002-mdadm-Specify-enough-length-when-write-to-buffer.patch delete mode 100644 poky/meta/recipes-extended/mdadm/files/0003-Replace-snprintf-with-strncpy-at-some-places-to-avoi.patch delete mode 100644 poky/meta/recipes-extended/mdadm/files/0004-mdadm-Forced-type-conversion-to-avoid-truncation.patch delete mode 100644 poky/meta/recipes-extended/mdadm/files/0005-Add-a-comment-to-indicate-valid-fallthrough.patch delete mode 100644 poky/meta/recipes-extended/mdadm/files/gcc-4.9.patch delete mode 100644 poky/meta/recipes-extended/mdadm/files/mdadm-3.3.2_x32_abi_time_t.patch delete mode 100644 poky/meta/recipes-extended/mdadm/files/mdadm-fix-ptest-build-errors.patch delete mode 100644 poky/meta/recipes-extended/mdadm/files/run-ptest delete mode 100644 poky/meta/recipes-extended/mdadm/mdadm_4.0.bb delete mode 100644 poky/meta/recipes-extended/mingetty/mingetty_1.08.bb delete mode 100644 poky/meta/recipes-extended/minicom/minicom/0001-Fix-build-issus-surfaced-due-to-musl.patch delete mode 100644 poky/meta/recipes-extended/minicom/minicom/0001-fix-minicom-h-v-return-value-is-not-0.patch delete mode 100644 poky/meta/recipes-extended/minicom/minicom/allow.to.disable.lockdev.patch delete mode 100644 poky/meta/recipes-extended/minicom/minicom_2.7.1.bb delete mode 100644 poky/meta/recipes-extended/mktemp/files/disable-strip.patch delete mode 100644 poky/meta/recipes-extended/mktemp/files/fix-parallel-make.patch delete mode 100644 poky/meta/recipes-extended/mktemp/mktemp_1.7.bb delete mode 100644 poky/meta/recipes-extended/msmtp/msmtp_1.6.6.bb delete mode 100644 poky/meta/recipes-extended/net-tools/net-tools/0001-lib-inet6.c-INET6_rresolve-various-fixes.patch delete mode 100644 poky/meta/recipes-extended/net-tools/net-tools/ifconfig-interface-0-del-IP-will-remove-the-aliased-.patch delete mode 100644 poky/meta/recipes-extended/net-tools/net-tools/musl-fixes.patch delete mode 100644 poky/meta/recipes-extended/net-tools/net-tools/net-tools-1.60-sctp1.patch delete mode 100644 poky/meta/recipes-extended/net-tools/net-tools/net-tools-1.60-sctp2-quiet.patch delete mode 100644 poky/meta/recipes-extended/net-tools/net-tools/net-tools-1.60-sctp3-addrs.patch delete mode 100644 poky/meta/recipes-extended/net-tools/net-tools/net-tools-config.h delete mode 100644 poky/meta/recipes-extended/net-tools/net-tools/net-tools-config.make delete mode 100644 poky/meta/recipes-extended/net-tools/net-tools/net-tools-fix-building-with-linux-4.8.patch delete mode 100644 poky/meta/recipes-extended/net-tools/net-tools_1.60-26.bb delete mode 100644 poky/meta/recipes-extended/newt/files/0001-detect-gold-as-GNU-linker-too.patch delete mode 100644 poky/meta/recipes-extended/newt/files/Makefile.in-Add-tinfo-library-to-the-linking-librari.patch delete mode 100644 poky/meta/recipes-extended/newt/files/cross_ar.patch delete mode 100644 poky/meta/recipes-extended/newt/files/fix_SHAREDDIR.patch delete mode 100644 poky/meta/recipes-extended/newt/files/pie-flags.patch delete mode 100644 poky/meta/recipes-extended/newt/libnewt-python_0.52.20.bb delete mode 100644 poky/meta/recipes-extended/newt/libnewt_0.52.20.bb delete mode 100644 poky/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb delete mode 100644 poky/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb delete mode 100644 poky/meta/recipes-extended/pam/libpam/0001-Add-support-for-defining-missing-funcitonality.patch delete mode 100644 poky/meta/recipes-extended/pam/libpam/99_pam delete mode 100644 poky/meta/recipes-extended/pam/libpam/crypt_configure.patch delete mode 100644 poky/meta/recipes-extended/pam/libpam/fixsepbuild.patch delete mode 100644 poky/meta/recipes-extended/pam/libpam/include_paths_header.patch delete mode 100644 poky/meta/recipes-extended/pam/libpam/libpam-xtests-remove-bash-dependency.patch delete mode 100644 poky/meta/recipes-extended/pam/libpam/libpam-xtests.patch delete mode 100644 poky/meta/recipes-extended/pam/libpam/pam-security-abstract-securetty-handling.patch delete mode 100644 poky/meta/recipes-extended/pam/libpam/pam-unix-nullok-secure.patch delete mode 100644 poky/meta/recipes-extended/pam/libpam/pam.d/common-account delete mode 100644 poky/meta/recipes-extended/pam/libpam/pam.d/common-auth delete mode 100644 poky/meta/recipes-extended/pam/libpam/pam.d/common-password delete mode 100644 poky/meta/recipes-extended/pam/libpam/pam.d/common-session delete mode 100644 poky/meta/recipes-extended/pam/libpam/pam.d/common-session-noninteractive delete mode 100644 poky/meta/recipes-extended/pam/libpam/pam.d/other delete mode 100644 poky/meta/recipes-extended/pam/libpam_1.3.0.bb delete mode 100644 poky/meta/recipes-extended/parted/files/0001-Include-fcntl.h-in-platform_defs.h.patch delete mode 100644 poky/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch delete mode 100644 poky/meta/recipes-extended/parted/files/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-extended/parted/files/0001-libparted-Use-read-only-when-probing-devices-on-linu.patch delete mode 100644 poky/meta/recipes-extended/parted/files/0002-libparted_fs_resize-link-against-libuuid-explicitly-.patch delete mode 100644 poky/meta/recipes-extended/parted/files/Makefile delete mode 100644 poky/meta/recipes-extended/parted/files/fix-compile-failure-while-dis.patch delete mode 100644 poky/meta/recipes-extended/parted/files/fix-doc-mandir.patch delete mode 100644 poky/meta/recipes-extended/parted/files/no_check.patch delete mode 100644 poky/meta/recipes-extended/parted/files/run-ptest delete mode 100644 poky/meta/recipes-extended/parted/files/syscalls.patch delete mode 100644 poky/meta/recipes-extended/parted/parted/parted-3.2-sysmacros.patch delete mode 100644 poky/meta/recipes-extended/parted/parted_3.2.bb delete mode 100644 poky/meta/recipes-extended/pax/pax/0001-Add-a-comment-for-fallthrough.patch delete mode 100644 poky/meta/recipes-extended/pax/pax/0001-Fix-build-with-musl.patch delete mode 100644 poky/meta/recipes-extended/pax/pax/0001-include-sys-sysmacros.h-for-major-minor-definitions.patch delete mode 100644 poky/meta/recipes-extended/pax/pax/0001-use-strtoll-instead-of-strtoq.patch delete mode 100644 poky/meta/recipes-extended/pax/pax/fix_for_compile_with_gcc-4.6.0.patch delete mode 100644 poky/meta/recipes-extended/pax/pax/pax-3.4_fix_for_x32.patch delete mode 100644 poky/meta/recipes-extended/pax/pax_3.4.bb delete mode 100644 poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb delete mode 100644 poky/meta/recipes-extended/perl/libconvert-asn1-perl_0.27.bb delete mode 100644 poky/meta/recipes-extended/perl/libtimedate-perl_2.30.bb delete mode 100644 poky/meta/recipes-extended/perl/libxml-namespacesupport-perl_1.12.9.bb delete mode 100644 poky/meta/recipes-extended/perl/libxml-sax-base-perl_1.09.bb delete mode 100644 poky/meta/recipes-extended/perl/libxml-sax-perl_0.99.bb delete mode 100644 poky/meta/recipes-extended/pigz/pigz.inc delete mode 100644 poky/meta/recipes-extended/pigz/pigz_2.3.4.bb delete mode 100644 poky/meta/recipes-extended/pixz/pixz/0001-configure-Detect-headers-before-using-them.patch delete mode 100644 poky/meta/recipes-extended/pixz/pixz/0002-endian-Use-macro-bswap_64-instead-of-__bswap_64.patch delete mode 100644 poky/meta/recipes-extended/pixz/pixz/936d8068ae19d95260d3058f41dd6cf718101cd6.patch delete mode 100644 poky/meta/recipes-extended/pixz/pixz_1.0.6.bb delete mode 100644 poky/meta/recipes-extended/procps/procps/sysctl.conf delete mode 100644 poky/meta/recipes-extended/procps/procps_3.3.12.bb delete mode 100644 poky/meta/recipes-extended/psmisc/files/0001-Typo-in-fuser-makes-M-on-all-the-time.patch delete mode 100644 poky/meta/recipes-extended/psmisc/files/0002-Include-limits.h-for-PATH_MAX.patch delete mode 100644 poky/meta/recipes-extended/psmisc/psmisc.inc delete mode 100644 poky/meta/recipes-extended/psmisc/psmisc/0001-Use-UINTPTR_MAX-instead-of-__WORDSIZE.patch delete mode 100644 poky/meta/recipes-extended/psmisc/psmisc_22.21.bb delete mode 100644 poky/meta/recipes-extended/quota/quota/fcntl.patch delete mode 100644 poky/meta/recipes-extended/quota/quota/remove_non_posix_types.patch delete mode 100644 poky/meta/recipes-extended/quota/quota/replace_getrpcbynumber_r.patch delete mode 100644 poky/meta/recipes-extended/quota/quota_4.04.bb delete mode 100644 poky/meta/recipes-extended/rpcbind/rpcbind/0001-rpcbind-pair-all-svc_getargs-calls-with-svc_freeargs.patch delete mode 100644 poky/meta/recipes-extended/rpcbind/rpcbind/init.d delete mode 100644 poky/meta/recipes-extended/rpcbind/rpcbind/rpcbind.conf delete mode 100644 poky/meta/recipes-extended/rpcbind/rpcbind/rpcbind.service delete mode 100644 poky/meta/recipes-extended/rpcbind/rpcbind/rpcbind.socket delete mode 100644 poky/meta/recipes-extended/rpcbind/rpcbind_0.2.4.bb delete mode 100644 poky/meta/recipes-extended/screen/screen/0001-configure.ac-fix-configure-failed-while-build-dir-ha.patch delete mode 100644 poky/meta/recipes-extended/screen/screen/0001-fix-for-multijob-build.patch delete mode 100644 poky/meta/recipes-extended/screen/screen/0002-comm.h-now-depends-on-term.h.patch delete mode 100644 poky/meta/recipes-extended/screen/screen/Avoid-mis-identifying-systems-as-SVR4.patch delete mode 100644 poky/meta/recipes-extended/screen/screen/Provide-cross-compile-alternatives-for-AC_TRY_RUN.patch delete mode 100644 poky/meta/recipes-extended/screen/screen/Remove-redundant-compiler-sanity-checks.patch delete mode 100644 poky/meta/recipes-extended/screen/screen/Skip-host-file-system-checks-when-cross-compiling.patch delete mode 100644 poky/meta/recipes-extended/screen/screen/screen.pam delete mode 100644 poky/meta/recipes-extended/screen/screen_4.6.1.bb delete mode 100644 poky/meta/recipes-extended/sed/sed-4.2.2/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-extended/sed/sed-4.2.2/run-ptest delete mode 100644 poky/meta/recipes-extended/sed/sed-4.2.2/sed-add-ptest.patch delete mode 100644 poky/meta/recipes-extended/sed/sed_4.2.2.bb delete mode 100644 poky/meta/recipes-extended/shadow/files/0001-Disable-use-of-syslog-for-sysroot.patch delete mode 100644 poky/meta/recipes-extended/shadow/files/0001-Do-not-read-login.defs-before-doing-chroot.patch delete mode 100644 poky/meta/recipes-extended/shadow/files/0001-shadow-CVE-2017-12424 delete mode 100644 poky/meta/recipes-extended/shadow/files/0001-useradd-copy-extended-attributes-of-home.patch delete mode 100644 poky/meta/recipes-extended/shadow/files/0001-useradd.c-create-parent-directories-when-necessary.patch delete mode 100644 poky/meta/recipes-extended/shadow/files/allow-for-setting-password-in-clear-text.patch delete mode 100644 poky/meta/recipes-extended/shadow/files/check_size_of_uid_t_and_gid_t_using_AC_CHECK_SIZEOF.patch delete mode 100644 poky/meta/recipes-extended/shadow/files/commonio.c-fix-unexpected-open-failure-in-chroot-env.patch delete mode 100644 poky/meta/recipes-extended/shadow/files/fix-installation-failure-with-subids-disabled.patch delete mode 100644 poky/meta/recipes-extended/shadow/files/login.defs_shadow-sysroot delete mode 100644 poky/meta/recipes-extended/shadow/files/login_defs_pam.sed delete mode 100644 poky/meta/recipes-extended/shadow/files/pam.d/chfn delete mode 100644 poky/meta/recipes-extended/shadow/files/pam.d/chpasswd delete mode 100644 poky/meta/recipes-extended/shadow/files/pam.d/chsh delete mode 100644 poky/meta/recipes-extended/shadow/files/pam.d/login delete mode 100644 poky/meta/recipes-extended/shadow/files/pam.d/newusers delete mode 100644 poky/meta/recipes-extended/shadow/files/pam.d/passwd delete mode 100644 poky/meta/recipes-extended/shadow/files/pam.d/su delete mode 100644 poky/meta/recipes-extended/shadow/files/securetty delete mode 100644 poky/meta/recipes-extended/shadow/files/shadow-4.1.3-dots-in-usernames.patch delete mode 100644 poky/meta/recipes-extended/shadow/files/shadow-relaxed-usernames.patch delete mode 100644 poky/meta/recipes-extended/shadow/files/shadow-update-pam-conf.patch delete mode 100644 poky/meta/recipes-extended/shadow/files/usermod-fix-compilation-failure-with-subids-disabled.patch delete mode 100644 poky/meta/recipes-extended/shadow/shadow-securetty_4.2.1.bb delete mode 100644 poky/meta/recipes-extended/shadow/shadow-sysroot_4.2.1.bb delete mode 100644 poky/meta/recipes-extended/shadow/shadow.inc delete mode 100644 poky/meta/recipes-extended/shadow/shadow_4.2.1.bb delete mode 100644 poky/meta/recipes-extended/slang/slang/dont-link-to-host.patch delete mode 100644 poky/meta/recipes-extended/slang/slang/no-x.patch delete mode 100644 poky/meta/recipes-extended/slang/slang/run-ptest delete mode 100644 poky/meta/recipes-extended/slang/slang/terminfo_fixes.patch delete mode 100644 poky/meta/recipes-extended/slang/slang/test-add-output-in-the-format-result-testname.patch delete mode 100644 poky/meta/recipes-extended/slang/slang_2.3.1a.bb delete mode 100644 poky/meta/recipes-extended/stat/stat-3.3/fix-error-return.patch delete mode 100644 poky/meta/recipes-extended/stat/stat-3.3/fix-security-format.patch delete mode 100644 poky/meta/recipes-extended/stat/stat_3.3.bb delete mode 100644 poky/meta/recipes-extended/stress/files/texinfo.patch delete mode 100644 poky/meta/recipes-extended/stress/stress_1.0.4.bb delete mode 100644 poky/meta/recipes-extended/sudo/files/sudo.pam delete mode 100644 poky/meta/recipes-extended/sudo/sudo.inc delete mode 100644 poky/meta/recipes-extended/sudo/sudo/0001-Include-sys-types.h-for-id_t-definition.patch delete mode 100644 poky/meta/recipes-extended/sudo/sudo_1.8.21p2.bb delete mode 100644 poky/meta/recipes-extended/sysklogd/files/0001-Fix-build-with-musl.patch delete mode 100644 poky/meta/recipes-extended/sysklogd/files/0001-fix-problems-that-causes-a-segmentation-fault-under-.patch delete mode 100644 poky/meta/recipes-extended/sysklogd/files/0002-Make-way-for-respecting-flags-from-environment.patch delete mode 100644 poky/meta/recipes-extended/sysklogd/files/klogd.service delete mode 100644 poky/meta/recipes-extended/sysklogd/files/no-strip-install.patch delete mode 100644 poky/meta/recipes-extended/sysklogd/files/no-vectorization.patch delete mode 100755 poky/meta/recipes-extended/sysklogd/files/sysklogd delete mode 100644 poky/meta/recipes-extended/sysklogd/files/syslog.conf delete mode 100644 poky/meta/recipes-extended/sysklogd/files/syslogd.service delete mode 100644 poky/meta/recipes-extended/sysklogd/files/tmpfiles.sysklogd.conf delete mode 100644 poky/meta/recipes-extended/sysklogd/sysklogd.inc delete mode 100644 poky/meta/recipes-extended/sysklogd/sysklogd_1.5.1.bb delete mode 100644 poky/meta/recipes-extended/sysstat/sysstat.inc delete mode 100644 poky/meta/recipes-extended/sysstat/sysstat/0001-Include-needed-headers-explicitly.patch delete mode 100644 poky/meta/recipes-extended/sysstat/sysstat/99_sysstat delete mode 100644 poky/meta/recipes-extended/sysstat/sysstat/sysstat.service delete mode 100644 poky/meta/recipes-extended/sysstat/sysstat_11.6.1.bb delete mode 100644 poky/meta/recipes-extended/tar/tar.inc delete mode 100644 poky/meta/recipes-extended/tar/tar/CVE-2016-6321.patch delete mode 100644 poky/meta/recipes-extended/tar/tar/musl_dirent.patch delete mode 100644 poky/meta/recipes-extended/tar/tar/remove-gets.patch delete mode 100644 poky/meta/recipes-extended/tar/tar_1.29.bb delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/00_man_quoting.diff delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/01_man_portability.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/05_wildcard_matching.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/06_fix_gethostbyname.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/10_usagi-ipv6.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/11_tcpd_blacklist.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/11_usagi_fix.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/12_makefile_config.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/13_shlib_weaksym.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/14_cidr_support.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/15_match_clarify.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/expand_remote_port.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/have_strerror.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/ldflags.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/makefile-fix-parallel.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/man_fromhost.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/musl-decls.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/rename_strings_variable.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/restore_sigalarm.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/rfc931.diff delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/safe_finger.8 delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/safe_finger.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/sig_fix.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/siglongjmp.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/socklen_t.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/tcpdchk_libwrapped.patch delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/try-from.8 delete mode 100644 poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb delete mode 100644 poky/meta/recipes-extended/texi2html/files/0001-Allow-compiling-out-of-source.patch delete mode 100644 poky/meta/recipes-extended/texi2html/texi2html_5.0.bb delete mode 100644 poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb delete mode 100644 poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/COPYING delete mode 100644 poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py delete mode 100644 poky/meta/recipes-extended/texinfo/texinfo/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-extended/texinfo/texinfo/disable-native-tools.patch delete mode 100644 poky/meta/recipes-extended/texinfo/texinfo/dont-depend-on-help2man.patch delete mode 100644 poky/meta/recipes-extended/texinfo/texinfo/link-zip.patch delete mode 100644 poky/meta/recipes-extended/texinfo/texinfo/texinfo-4.12-zlib.patch delete mode 100644 poky/meta/recipes-extended/texinfo/texinfo/use_host_makedoc.patch delete mode 100644 poky/meta/recipes-extended/texinfo/texinfo_6.5.bb delete mode 100644 poky/meta/recipes-extended/time/time-1.7/debian.patch delete mode 100644 poky/meta/recipes-extended/time/time.inc delete mode 100644 poky/meta/recipes-extended/time/time_1.7.bb delete mode 100644 poky/meta/recipes-extended/tzcode/files/0001-Fix-Makefile-quoting-bug.patch delete mode 100644 poky/meta/recipes-extended/tzcode/files/0002-Port-zdump-to-C90-snprintf.patch delete mode 100644 poky/meta/recipes-extended/tzcode/tzcode-native_2017c.bb delete mode 100644 poky/meta/recipes-extended/tzdata/tzdata_2017c.bb delete mode 100644 poky/meta/recipes-extended/unzip/unzip/06-unzip60-alt-iconv-utf8_CVE-2015-1315.patch delete mode 100644 poky/meta/recipes-extended/unzip/unzip/09-cve-2014-8139-crc-overflow.patch delete mode 100644 poky/meta/recipes-extended/unzip/unzip/10-cve-2014-8140-test-compr-eb.patch delete mode 100644 poky/meta/recipes-extended/unzip/unzip/11-cve-2014-8141-getzip64data.patch delete mode 100644 poky/meta/recipes-extended/unzip/unzip/18-cve-2014-9913-unzip-buffer-overflow.patch delete mode 100644 poky/meta/recipes-extended/unzip/unzip/19-cve-2016-9844-zipinfo-buffer-overflow.patch delete mode 100644 poky/meta/recipes-extended/unzip/unzip/CVE-2015-7696.patch delete mode 100644 poky/meta/recipes-extended/unzip/unzip/CVE-2015-7697.patch delete mode 100644 poky/meta/recipes-extended/unzip/unzip/avoid-strip.patch delete mode 100644 poky/meta/recipes-extended/unzip/unzip/cve-2014-9636.patch delete mode 100644 poky/meta/recipes-extended/unzip/unzip/define-ldflags.patch delete mode 100644 poky/meta/recipes-extended/unzip/unzip/fix-security-format.patch delete mode 100644 poky/meta/recipes-extended/unzip/unzip_6.0.bb delete mode 100644 poky/meta/recipes-extended/watchdog/watchdog-config.bb delete mode 100644 poky/meta/recipes-extended/watchdog/watchdog-config/watchdog.conf delete mode 100644 poky/meta/recipes-extended/watchdog/watchdog-config/watchdog.default delete mode 100644 poky/meta/recipes-extended/watchdog/watchdog/0001-Include-linux-param.h-for-EXEC_PAGESIZE-definition.patch delete mode 100644 poky/meta/recipes-extended/watchdog/watchdog/watchdog-conf.patch delete mode 100644 poky/meta/recipes-extended/watchdog/watchdog/watchdog-init.patch delete mode 100644 poky/meta/recipes-extended/watchdog/watchdog/wd_keepalive.init delete mode 100644 poky/meta/recipes-extended/watchdog/watchdog_5.15.bb delete mode 100644 poky/meta/recipes-extended/wget/wget.inc delete mode 100644 poky/meta/recipes-extended/wget/wget/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-extended/wget/wget_1.19.2.bb delete mode 100644 poky/meta/recipes-extended/which/which-2.21/automake.patch delete mode 100644 poky/meta/recipes-extended/which/which_2.21.bb delete mode 100644 poky/meta/recipes-extended/xdg-utils/xdg-utils/0001-Don-t-build-the-in-script-manual.patch delete mode 100644 poky/meta/recipes-extended/xdg-utils/xdg-utils/0001-Reinstate-xdg-terminal.patch delete mode 100644 poky/meta/recipes-extended/xdg-utils/xdg-utils_1.1.2.bb delete mode 100644 poky/meta/recipes-extended/xinetd/xinetd/0001-configure-Use-HAVE_SYS_RESOURCE_H-to-guard-sys-resou.patch delete mode 100644 poky/meta/recipes-extended/xinetd/xinetd/Disable-services-from-inetd.conf-if-a-service-with-t.patch delete mode 100644 poky/meta/recipes-extended/xinetd/xinetd/Various-fixes-from-the-previous-maintainer.patch delete mode 100644 poky/meta/recipes-extended/xinetd/xinetd/xinetd-CVE-2013-4342.patch delete mode 100644 poky/meta/recipes-extended/xinetd/xinetd/xinetd-should-be-able-to-listen-on-IPv6-even-in-ine.patch delete mode 100644 poky/meta/recipes-extended/xinetd/xinetd/xinetd.conf delete mode 100644 poky/meta/recipes-extended/xinetd/xinetd/xinetd.default delete mode 100644 poky/meta/recipes-extended/xinetd/xinetd/xinetd.init delete mode 100644 poky/meta/recipes-extended/xinetd/xinetd/xinetd.service delete mode 100644 poky/meta/recipes-extended/xinetd/xinetd_2.3.15.bb delete mode 100644 poky/meta/recipes-extended/xz/xz_5.2.3.bb delete mode 100644 poky/meta/recipes-extended/zip/zip-3.0/fix-security-format.patch delete mode 100644 poky/meta/recipes-extended/zip/zip_3.0.bb delete mode 100644 poky/meta/recipes-gnome/epiphany/epiphany_3.24.3.bb delete mode 100644 poky/meta/recipes-gnome/epiphany/files/0001-bookmarks-Check-for-return-value-of-fread.patch delete mode 100644 poky/meta/recipes-gnome/epiphany/files/0001-yelp.m4-drop-the-check-for-itstool.patch delete mode 100644 poky/meta/recipes-gnome/gcr/files/gcr-add-missing-dependencies-for-vapi.patch delete mode 100644 poky/meta/recipes-gnome/gcr/gcr_3.20.0.bb delete mode 100644 poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-Fix-without-libtiff-not-having-an-effect.patch delete mode 100644 poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-Work-around-thumbnailer-cross-compile-failure.patch delete mode 100644 poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/extending-libinstall-dependencies.patch delete mode 100644 poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/fatal-loader.patch delete mode 100644 poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/hardcoded_libtool.patch delete mode 100644 poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/run-ptest delete mode 100644 poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.11.bb delete mode 100644 poky/meta/recipes-gnome/gnome-desktop/gnome-desktop/0001-Disable-libseccomp-sycall-filtering-mechanism.patch delete mode 100644 poky/meta/recipes-gnome/gnome-desktop/gnome-desktop/0001-configure.ac-Remove-gnome-common-macro-calls.patch delete mode 100644 poky/meta/recipes-gnome/gnome-desktop/gnome-desktop/gnome-desktop-thumbnail-don-t-convert-time_t-to-long.patch delete mode 100644 poky/meta/recipes-gnome/gnome-desktop/gnome-desktop3_3.26.2.bb delete mode 100644 poky/meta/recipes-gnome/gnome/adwaita-icon-theme/0001-Don-t-use-AC_CANONICAL_HOST.patch delete mode 100644 poky/meta/recipes-gnome/gnome/adwaita-icon-theme/0001-Run-installation-commands-as-shell-jobs.patch delete mode 100644 poky/meta/recipes-gnome/gnome/adwaita-icon-theme_3.26.0.bb delete mode 100644 poky/meta/recipes-gnome/gnome/gconf/remove_plus_from_invalid_characters_list.patch delete mode 100644 poky/meta/recipes-gnome/gnome/gconf/unable-connect-dbus.patch delete mode 100644 poky/meta/recipes-gnome/gnome/gconf_3.2.6.bb delete mode 100644 poky/meta/recipes-gnome/gnome/gnome-doc-utils/0001-glib-gettext.m4-Update-AM_GLIB_GNU_GETTEXT-to-match-.patch delete mode 100644 poky/meta/recipes-gnome/gnome/gnome-themes-standard_3.22.3.bb delete mode 100644 poky/meta/recipes-gnome/gnome/libart-lgpl/libart_lgpl-2.3.21-crosscompile.patch delete mode 100644 poky/meta/recipes-gnome/gnome/libart-lgpl_2.3.21.bb delete mode 100644 poky/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Revert-an-incomplete-upstream-attempt-at-cross-compi.patch delete mode 100644 poky/meta/recipes-gnome/gobject-introspection/gobject-introspection/0002-configure.ac-add-host-gi-gi-cross-wrapper-gi-ldd-wra.patch delete mode 100644 poky/meta/recipes-gnome/gobject-introspection/gobject-introspection/0003-giscanner-add-use-binary-wrapper-option.patch delete mode 100644 poky/meta/recipes-gnome/gobject-introspection/gobject-introspection/0004-giscanner-add-a-use-ldd-wrapper-option.patch delete mode 100644 poky/meta/recipes-gnome/gobject-introspection/gobject-introspection/0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch delete mode 100644 poky/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.52.1.bb delete mode 100644 poky/meta/recipes-gnome/gsettings-desktop-schemas/gsettings-desktop-schemas_3.24.1.bb delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+.inc delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+/doc-fixes.patch delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+/hardcoded_libtool.patch delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+/strict-prototypes.patch delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+/toggle-font.diff delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+/xsettings.patch delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+3.inc delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+3/0001-Hardcoded-libtool.patch delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+3/0002-Do-not-try-to-initialize-GL-without-libGL.patch delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+3/0003-Add-disable-opengl-configure-option.patch delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+3/0004-configure.ac-Fix-wayland-protocols-path.patch delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+3_3.22.24.bb delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk+_2.24.31.bb delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk-icon-utils-native_3.22.17.bb delete mode 100644 poky/meta/recipes-gnome/gtk+/gtk-icon-utils/Remove-Gdk-dependency-from-gtk-encode-symbolic-svg.patch delete mode 100644 poky/meta/recipes-gnome/gtk-doc/files/0001-Do-not-error-out-if-perl-is-not-found-or-its-version.patch delete mode 100644 poky/meta/recipes-gnome/gtk-doc/files/0001-Do-not-error-out-if-xsltproc-is-not-found.patch delete mode 100644 poky/meta/recipes-gnome/gtk-doc/files/0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch delete mode 100644 poky/meta/recipes-gnome/gtk-doc/files/conditionaltests.patch delete mode 100644 poky/meta/recipes-gnome/gtk-doc/files/pkg-config-native.patch delete mode 100644 poky/meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb delete mode 100644 poky/meta/recipes-gnome/hicolor-icon-theme/hicolor-icon-theme_0.17.bb delete mode 100644 poky/meta/recipes-gnome/json-glib/json-glib_1.2.8.bb delete mode 100644 poky/meta/recipes-gnome/libgudev/libgudev_232.bb delete mode 100644 poky/meta/recipes-gnome/libnotify/libnotify_0.7.7.bb delete mode 100644 poky/meta/recipes-gnome/librsvg/librsvg/gtk-option.patch delete mode 100644 poky/meta/recipes-gnome/librsvg/librsvg_2.40.19.bb delete mode 100644 poky/meta/recipes-gnome/libsecret/libsecret_0.18.5.bb delete mode 100644 poky/meta/recipes-graphics/builder/builder_0.1.bb delete mode 100644 poky/meta/recipes-graphics/builder/files/builder_session.sh delete mode 100644 poky/meta/recipes-graphics/cairo/cairo-fpu.inc delete mode 100644 poky/meta/recipes-graphics/cairo/cairo.inc delete mode 100644 poky/meta/recipes-graphics/cairo/cairo/0001-cairo-Fix-CVE-2017-9814.patch delete mode 100644 poky/meta/recipes-graphics/cairo/cairo/cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff delete mode 100644 poky/meta/recipes-graphics/cairo/cairo_1.14.10.bb delete mode 100644 poky/meta/recipes-graphics/cantarell-fonts/cantarell-fonts_git.bb delete mode 100644 poky/meta/recipes-graphics/clutter/clutter-1.0.inc delete mode 100644 poky/meta/recipes-graphics/clutter/clutter-1.0/0001-Remove-clutter.types-as-it-is-build-configuration-sp.patch delete mode 100644 poky/meta/recipes-graphics/clutter/clutter-1.0/install-examples.patch delete mode 100644 poky/meta/recipes-graphics/clutter/clutter-1.0/run-installed-tests-with-tap-output.patch delete mode 100644 poky/meta/recipes-graphics/clutter/clutter-1.0/run-ptest delete mode 100644 poky/meta/recipes-graphics/clutter/clutter-1.0_1.26.2.bb delete mode 100644 poky/meta/recipes-graphics/clutter/clutter-gst-3.0.inc delete mode 100644 poky/meta/recipes-graphics/clutter/clutter-gst-3.0/0001-Install-example-binary-needed-for-core-image-clutter.patch delete mode 100644 poky/meta/recipes-graphics/clutter/clutter-gst-3.0_3.0.24.bb delete mode 100644 poky/meta/recipes-graphics/clutter/clutter-gtk-1.0.inc delete mode 100644 poky/meta/recipes-graphics/clutter/clutter-gtk-1.0_1.8.4.bb delete mode 100644 poky/meta/recipes-graphics/cogl/cogl-1.0.inc delete mode 100644 poky/meta/recipes-graphics/cogl/cogl-1.0/0001-Fix-an-incorrect-preprocessor-conditional.patch delete mode 100644 poky/meta/recipes-graphics/cogl/cogl-1.0/test-backface-culling.c-fix-may-be-used-uninitialize.patch delete mode 100644 poky/meta/recipes-graphics/cogl/cogl-1.0_1.22.2.bb delete mode 100644 poky/meta/recipes-graphics/drm/libdrm/0001-configure.ac-Allow-explicit-enabling-of-cunit-tests.patch delete mode 100644 poky/meta/recipes-graphics/drm/libdrm/fix_O_CLOEXEC_undeclared.patch delete mode 100644 poky/meta/recipes-graphics/drm/libdrm/installtests.patch delete mode 100644 poky/meta/recipes-graphics/drm/libdrm_2.4.88.bb delete mode 100644 poky/meta/recipes-graphics/eglinfo/eglinfo-fb_1.0.0.bb delete mode 100644 poky/meta/recipes-graphics/eglinfo/eglinfo-x11_1.0.0.bb delete mode 100644 poky/meta/recipes-graphics/eglinfo/eglinfo.inc delete mode 100644 poky/meta/recipes-graphics/eglinfo/files/0001-Add-STAGING_INCDIR-to-searchpath-for-egl-headers.patch delete mode 100644 poky/meta/recipes-graphics/fontconfig/fontconfig/0001-src-fcxml.c-avoid-double-free-of-filename.patch delete mode 100644 poky/meta/recipes-graphics/fontconfig/fontconfig/revert-static-pkgconfig.patch delete mode 100644 poky/meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb delete mode 100644 poky/meta/recipes-graphics/freetype/freetype/use-right-libtool.patch delete mode 100644 poky/meta/recipes-graphics/freetype/freetype_2.8.1.bb delete mode 100644 poky/meta/recipes-graphics/fstests/fstests_git.bb delete mode 100644 poky/meta/recipes-graphics/glew/glew/no-strip.patch delete mode 100644 poky/meta/recipes-graphics/glew/glew_2.1.0.bb delete mode 100644 poky/meta/recipes-graphics/harfbuzz/harfbuzz_1.7.0.bb delete mode 100644 poky/meta/recipes-graphics/images/core-image-clutter.bb delete mode 100644 poky/meta/recipes-graphics/images/core-image-weston.bb delete mode 100644 poky/meta/recipes-graphics/images/core-image-x11.bb delete mode 100644 poky/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.2.bb delete mode 100644 poky/meta/recipes-graphics/kmscube/kmscube_git.bb delete mode 100644 poky/meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch delete mode 100644 poky/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb delete mode 100644 poky/meta/recipes-graphics/libfakekey/libfakekey_git.bb delete mode 100644 poky/meta/recipes-graphics/libmatchbox/libmatchbox_1.12.bb delete mode 100644 poky/meta/recipes-graphics/libsdl/libsdl-1.2.15/0001-build-Pass-tag-CC-explictly-when-using-libtool.patch delete mode 100644 poky/meta/recipes-graphics/libsdl/libsdl-1.2.15/libsdl-1.2.15-xdata32.patch delete mode 100644 poky/meta/recipes-graphics/libsdl/libsdl-1.2.15/pkgconfig.patch delete mode 100644 poky/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb delete mode 100644 poky/meta/recipes-graphics/libsdl2/libsdl2_2.0.7.bb delete mode 100644 poky/meta/recipes-graphics/libva/libva-utils_1.8.3.bb delete mode 100644 poky/meta/recipes-graphics/libva/libva_1.8.3.bb delete mode 100644 poky/meta/recipes-graphics/matchbox-session/matchbox-session/matchbox-session delete mode 100644 poky/meta/recipes-graphics/matchbox-session/matchbox-session_0.1.bb delete mode 100644 poky/meta/recipes-graphics/matchbox-wm/matchbox-wm/kbdconfig delete mode 100644 poky/meta/recipes-graphics/matchbox-wm/matchbox-wm_1.2.2.bb delete mode 100644 poky/meta/recipes-graphics/menu-cache/menu-cache_1.0.2.bb delete mode 100644 poky/meta/recipes-graphics/mesa/files/0001-Makefile.vulkan.am-explictly-add-lib-expat-to-intel-.patch delete mode 100644 poky/meta/recipes-graphics/mesa/files/0001-Use-wayland-scanner-in-the-path.patch delete mode 100644 poky/meta/recipes-graphics/mesa/files/0001-configure.ac-Always-check-for-expat.patch delete mode 100644 poky/meta/recipes-graphics/mesa/files/0001-winsys-svga-drm-Include-sys-types.h.patch delete mode 100644 poky/meta/recipes-graphics/mesa/files/0002-hardware-gloat.patch delete mode 100644 poky/meta/recipes-graphics/mesa/files/disable-asm-on-non-gcc.patch delete mode 100644 poky/meta/recipes-graphics/mesa/files/llvm-config-version.patch delete mode 100644 poky/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch delete mode 100644 poky/meta/recipes-graphics/mesa/files/vulkan-mkdir.patch delete mode 100644 poky/meta/recipes-graphics/mesa/libglu_9.0.0.bb delete mode 100644 poky/meta/recipes-graphics/mesa/mesa-demos/0001-mesa-demos-Add-missing-data-files.patch delete mode 100644 poky/meta/recipes-graphics/mesa/mesa-demos/0003-configure-Allow-to-disable-demos-which-require-GLEW-.patch delete mode 100644 poky/meta/recipes-graphics/mesa/mesa-demos/0004-Use-DEMOS_DATA_DIR-to-locate-data-files.patch delete mode 100644 poky/meta/recipes-graphics/mesa/mesa-demos/0007-Install-few-more-test-programs.patch delete mode 100644 poky/meta/recipes-graphics/mesa/mesa-demos/0008-glsl-perf-Add-few-missing-.glsl-.vert-.frag-files-to.patch delete mode 100644 poky/meta/recipes-graphics/mesa/mesa-demos/0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch delete mode 100644 poky/meta/recipes-graphics/mesa/mesa-demos/0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch delete mode 100644 poky/meta/recipes-graphics/mesa/mesa-demos/0013-only-build-GLX-demos-if-needed.patch delete mode 100644 poky/meta/recipes-graphics/mesa/mesa-demos_8.3.0.bb delete mode 100644 poky/meta/recipes-graphics/mesa/mesa-gl_17.2.5.bb delete mode 100644 poky/meta/recipes-graphics/mesa/mesa.inc delete mode 100644 poky/meta/recipes-graphics/mesa/mesa_17.2.5.bb delete mode 100644 poky/meta/recipes-graphics/mini-x-session/files/mini-x-session delete mode 100644 poky/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb delete mode 100644 poky/meta/recipes-graphics/mx/mx-1.0/fix-test-includes.patch delete mode 100644 poky/meta/recipes-graphics/mx/mx-1.0_1.4.7.bb delete mode 100644 poky/meta/recipes-graphics/mx/mx.inc delete mode 100644 poky/meta/recipes-graphics/packagegroups/packagegroup-core-clutter.bb delete mode 100644 poky/meta/recipes-graphics/packagegroups/packagegroup-core-x11-base.bb delete mode 100644 poky/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb delete mode 100644 poky/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb delete mode 100644 poky/meta/recipes-graphics/pango/pango/0001-Drop-introspection-macros-from-acinclude.m4.patch delete mode 100644 poky/meta/recipes-graphics/pango/pango/0001-Enforce-recreation-of-docs-pango.types-it-is-build-c.patch delete mode 100644 poky/meta/recipes-graphics/pango/pango/run-ptest delete mode 100644 poky/meta/recipes-graphics/pango/pango_1.40.12.bb delete mode 100644 poky/meta/recipes-graphics/piglit/piglit/0001-cmake-install-bash-completions-in-the-right-place.patch delete mode 100644 poky/meta/recipes-graphics/piglit/piglit/0001-tests-Use-FE_UPWARD-only-if-its-defined-in-fenv.h.patch delete mode 100644 poky/meta/recipes-graphics/piglit/piglit_git.bb delete mode 100644 poky/meta/recipes-graphics/pong-clock/pong-clock/pong-clock-no-flicker.c delete mode 100644 poky/meta/recipes-graphics/pong-clock/pong-clock_1.0.bb delete mode 100644 poky/meta/recipes-graphics/startup-notification/startup-notification-0.12/obsolete_automake_macros.patch delete mode 100644 poky/meta/recipes-graphics/startup-notification/startup-notification_0.12.bb delete mode 100644 poky/meta/recipes-graphics/ttf-fonts/liberation-fonts/30-liberation-aliases.conf delete mode 100644 poky/meta/recipes-graphics/ttf-fonts/liberation-fonts_2.00.1.bb delete mode 100644 poky/meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb delete mode 100644 poky/meta/recipes-graphics/vulkan/assimp_4.0.1.bb delete mode 100644 poky/meta/recipes-graphics/vulkan/vulkan-demos/0001-Don-t-build-demos-with-questionably-licensed-data.patch delete mode 100644 poky/meta/recipes-graphics/vulkan/vulkan-demos/0001-Fix-build-on-x86.patch delete mode 100644 poky/meta/recipes-graphics/vulkan/vulkan-demos/0001-Support-installing-demos-support-out-of-tree-builds.patch delete mode 100644 poky/meta/recipes-graphics/vulkan/vulkan-demos_git.bb delete mode 100644 poky/meta/recipes-graphics/vulkan/vulkan/demos-Don-t-build-tri-or-cube.patch delete mode 100644 poky/meta/recipes-graphics/vulkan/vulkan_1.0.61.1.bb delete mode 100644 poky/meta/recipes-graphics/waffle/waffle/0001-third_party-threads-Use-PTHREAD_MUTEX_RECURSIVE-by-d.patch delete mode 100644 poky/meta/recipes-graphics/waffle/waffle_1.5.2.bb delete mode 100644 poky/meta/recipes-graphics/wayland/libinput_1.8.4.bb delete mode 100644 poky/meta/recipes-graphics/wayland/mtdev_1.1.5.bb delete mode 100644 poky/meta/recipes-graphics/wayland/wayland-protocols_1.11.bb delete mode 100644 poky/meta/recipes-graphics/wayland/wayland/fixpathinpcfiles.patch delete mode 100644 poky/meta/recipes-graphics/wayland/wayland_1.14.0.bb delete mode 100644 poky/meta/recipes-graphics/wayland/weston-init.bb delete mode 100644 poky/meta/recipes-graphics/wayland/weston-init/init delete mode 100755 poky/meta/recipes-graphics/wayland/weston-init/weston-start delete mode 100644 poky/meta/recipes-graphics/wayland/weston-init/weston.service delete mode 100644 poky/meta/recipes-graphics/wayland/weston/0001-configure.ac-Fix-wayland-protocols-path.patch delete mode 100644 poky/meta/recipes-graphics/wayland/weston/0001-make-error-portable.patch delete mode 100644 poky/meta/recipes-graphics/wayland/weston/0001-weston-launch-Provide-a-default-version-that-doesn-t.patch delete mode 100644 poky/meta/recipes-graphics/wayland/weston/fix-missing-header.patch delete mode 100644 poky/meta/recipes-graphics/wayland/weston/weston-gl-renderer-Set-pitch-correctly-for-subsampled-textures.patch delete mode 100644 poky/meta/recipes-graphics/wayland/weston/weston.desktop delete mode 100644 poky/meta/recipes-graphics/wayland/weston/weston.png delete mode 100644 poky/meta/recipes-graphics/wayland/weston/xwayland.weston-start delete mode 100644 poky/meta/recipes-graphics/wayland/weston_3.0.0.bb delete mode 100644 poky/meta/recipes-graphics/x11-common/xserver-nodm-init/X11/Xsession delete mode 100644 poky/meta/recipes-graphics/x11-common/xserver-nodm-init/X11/Xsession.d/13xdgbasedirs.sh delete mode 100644 poky/meta/recipes-graphics/x11-common/xserver-nodm-init/X11/Xsession.d/89xdgautostart.sh delete mode 100644 poky/meta/recipes-graphics/x11-common/xserver-nodm-init/X11/Xsession.d/90XWindowManager.sh delete mode 100644 poky/meta/recipes-graphics/x11-common/xserver-nodm-init/Xserver delete mode 100644 poky/meta/recipes-graphics/x11-common/xserver-nodm-init/gplv2-license.patch delete mode 100755 poky/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm delete mode 100644 poky/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.conf.in delete mode 100644 poky/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.service.in delete mode 100644 poky/meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb delete mode 100644 poky/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme_git.bb delete mode 100644 poky/meta/recipes-graphics/xinput-calibrator/pointercal-xinput/pointercal.xinput delete mode 100644 poky/meta/recipes-graphics/xinput-calibrator/pointercal-xinput/qemuall/pointercal.xinput delete mode 100644 poky/meta/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bb delete mode 100644 poky/meta/recipes-graphics/xinput-calibrator/xinput-calibrator/30xinput_calibrate.sh delete mode 100644 poky/meta/recipes-graphics/xinput-calibrator/xinput-calibrator/Allow-xinput_calibrator_pointercal.sh-to-be-run-as-n.patch delete mode 100644 poky/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/mkfontdir_1.0.7.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/mkfontscale_1.1.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/rgb_1.0.6.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/x11perf_1.6.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xauth_1.0.10.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xdpyinfo/disable-xkb.patch delete mode 100644 poky/meta/recipes-graphics/xorg-app/xdpyinfo_1.3.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xev/diet-x11.patch delete mode 100644 poky/meta/recipes-graphics/xorg-app/xev_1.2.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xeyes_1.1.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xhost_1.0.7.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xinit_1.3.4.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xinput_1.6.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xkbcomp_1.4.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xmodmap_1.0.9.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xorg-app-common.inc delete mode 100644 poky/meta/recipes-graphics/xorg-app/xprop_1.2.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xrandr_1.5.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xset/disable-xkb.patch delete mode 100644 poky/meta/recipes-graphics/xorg-app/xset_1.2.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xvinfo_1.1.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-app/xwininfo_1.1.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.10.5.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-input-keyboard_1.9.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.26.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-input-mouse_1.9.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.9.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-input-vmmouse_13.1.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-cirrus_1.5.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-fbdev_0.4.4.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-intel/always_include_xorg_server.h.patch delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-intel/disable-x11-dri3.patch delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-omap_0.4.5.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-omapfb/0001-Prevents-omapfb-from-from-crashing-when-pixelclock-o.patch delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-omapfb/0001-Revert-Set-a-large-CRTC-upper-limit-to-not-prune-lar.patch delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-omapfb/0002-Revert-Set-virtual-size-when-configuring-framebuffer.patch delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-omapfb/0003-force-plain-mode.patch delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-omapfb/0004-blacklist-tv-out.patch delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-omapfb/0005-Attempt-to-fix-VRFB.patch delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-omapfb/0006-omapfb-port-to-new-xserver-video-API.patch delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-omapfb/0007-always_include_xorg_server.h.patch delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-omapfb_git.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-vesa_2.3.4.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-vmware/0002-add-option-for-vmwgfx.patch delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xf86-video-vmware_13.2.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xorg-driver-input.inc delete mode 100644 poky/meta/recipes-graphics/xorg-driver/xorg-driver-video.inc delete mode 100644 poky/meta/recipes-graphics/xorg-font/encodings/nocompiler.patch delete mode 100644 poky/meta/recipes-graphics/xorg-font/encodings_1.0.4.bb delete mode 100644 poky/meta/recipes-graphics/xorg-font/font-alias-1.0.3/nocompiler.patch delete mode 100644 poky/meta/recipes-graphics/xorg-font/font-alias_1.0.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-font/font-util_1.3.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-font-common.inc delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts.bb delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-1.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-10.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-11.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-13.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-14.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-15.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-16.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-2.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-3.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-4.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-5.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-7.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-8.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-9.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-KOI8-R.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-1.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-10.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-13.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-14.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-15.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-16.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-2.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-3.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-4.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-5.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-7.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-8.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-9.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-1.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-10.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-13.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-14.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-15.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-16.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-2.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-3.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-4.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-5.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-7.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-9.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/cursor.pcf.gz delete mode 100644 poky/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/fonts.dir delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libdmx_1.1.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libfontenc_1.1.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libice_1.0.9.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libpciaccess/0004-Don-t-include-sys-io.h-on-arm.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libpciaccess_0.14.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libpthread-stubs_0.4.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libsm_1.2.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libx11-diet_1.6.5.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libx11.inc delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libx11/Fix-hanging-issue-in-_XReply.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libx11/X18NCMSstubs.diff delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libx11/disable_tests.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libx11/fix-disable-xlocale.diff delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libx11/fix-utf8-wrong-define.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libx11_1.6.5.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxau_1.0.8.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxcalibrate/fix-xcb.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxcalibrate_git.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxcb/Fix-inconsistent-use-of-tabs-vs.-space.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxcb/disable-check.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxcb/gcc-mips-pr68302-mips-workaround.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxcb/xcbincludedir.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxcb_1.12.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxcomposite/change-include-order.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxcomposite_0.4.4.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxcursor_1.1.14.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxdamage_1.1.4.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxdmcp_1.1.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxext_1.3.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxfixes_5.0.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxfont2_2.0.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxfont_1.5.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxft_2.3.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxi_1.7.9.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxinerama_1.1.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxkbcommon_0.7.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxkbfile_1.0.9.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxmu_1.1.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxpm_3.5.12.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxrandr_1.5.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.10.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxres_1.2.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxscrnsaver_1.2.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxshmfence_1.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxt/0001-libXt-util-don-t-link-makestrs-with-target-cflags.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxt/libxt_fix_for_x32.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxt_1.1.5.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxtst_1.2.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxv_1.0.11.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxvmc_1.0.10.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxxf86dga_1.1.4.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxxf86misc_1.0.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/libxxf86vm_1.1.4.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/pixman/0001-ARM-qemu-related-workarounds-in-cpu-features-detecti.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/pixman/0001-test-utils-Check-for-FE_INVALID-definition-before-us.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/pixman/asm_include.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/pixman_0.34.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/xcb-util-image/clang.patch delete mode 100644 poky/meta/recipes-graphics/xorg-lib/xcb-util-image_0.4.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/xcb-util-keysyms_0.4.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/xcb-util-renderutil_0.3.9.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/xcb-util-wm_0.4.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/xcb-util.inc delete mode 100644 poky/meta/recipes-graphics/xorg-lib/xcb-util_0.4.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.22.bb delete mode 100644 poky/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc delete mode 100644 poky/meta/recipes-graphics/xorg-lib/xtrans_1.3.5.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/bigreqsproto_1.1.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/calibrateproto/fix.patch delete mode 100644 poky/meta/recipes-graphics/xorg-proto/calibrateproto_git.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/compositeproto_0.4.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/damageproto_1.2.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/dmxproto_2.3.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/dri2proto_2.8.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/dri3proto_1.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/fixesproto_5.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/fontsproto_2.1.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/glproto_1.4.17.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/inputproto_2.3.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/kbproto_1.0.7.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/presentproto_git.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/randrproto_1.5.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/recordproto_1.14.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/renderproto_0.11.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/resourceproto_1.2.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/scrnsaverproto_1.2.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/videoproto_2.3.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xcb-proto/0001-Make-whitespace-use-consistent.patch delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xcb-proto/0002-print-is-a-function-and-needs-parentheses.patch delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xcb-proto/no-python-native.patch delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xcmiscproto_1.2.2.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xextproto_7.3.0.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xf86dgaproto_2.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xf86driproto_2.1.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xf86miscproto_0.9.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xf86vidmodeproto_2.3.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xorg-proto-common.inc delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xproto/xproto_fix_for_x32.patch delete mode 100644 poky/meta/recipes-graphics/xorg-proto/xproto_7.0.31.bb delete mode 100644 poky/meta/recipes-graphics/xorg-util/gccmakedep_1.0.3.bb delete mode 100644 poky/meta/recipes-graphics/xorg-util/makedepend_1.0.5.bb delete mode 100644 poky/meta/recipes-graphics/xorg-util/util-macros_1.19.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-util/xorg-util-common.inc delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemuarm/xorg.conf delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemumips/xorg.conf delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemumips64/xorg.conf delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemuppc/xorg.conf delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemush4/xorg.conf delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86-64/xorg.conf delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-configure.ac-Fix-check-for-CLOCK_MONOTONIC.patch delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xorg/0002-configure.ac-Fix-wayland-scanner-and-protocols-locat.patch delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xorg/0003-Remove-check-for-useSIGIO-option.patch delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xorg/0003-modesetting-Fix-16-bit-depth-bpp-mode.patch delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xorg/macro_tweak.patch delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xorg/musl-arm-inb-outb.patch delete mode 100644 poky/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.19.5.bb delete mode 100644 poky/meta/recipes-graphics/xrestop/xrestop_0.4.bb delete mode 100644 poky/meta/recipes-graphics/xvideo-tests/xvideo-tests_git.bb delete mode 100644 poky/meta/recipes-kernel/blktrace/blktrace/0001-include-sys-types.h-for-dev_t-definition.patch delete mode 100644 poky/meta/recipes-kernel/blktrace/blktrace/ldflags.patch delete mode 100644 poky/meta/recipes-kernel/blktrace/blktrace_git.bb delete mode 100644 poky/meta/recipes-kernel/cryptodev/cryptodev-linux_1.9.bb delete mode 100644 poky/meta/recipes-kernel/cryptodev/cryptodev-module_1.9.bb delete mode 100644 poky/meta/recipes-kernel/cryptodev/cryptodev-tests_1.9.bb delete mode 100644 poky/meta/recipes-kernel/cryptodev/cryptodev.inc delete mode 100644 poky/meta/recipes-kernel/cryptodev/files/0001-Add-the-compile-and-install-rules-for-cryptodev-test.patch delete mode 100644 poky/meta/recipes-kernel/cryptodev/files/0001-Disable-installing-header-file-provided-by-another-p.patch delete mode 100644 poky/meta/recipes-kernel/dtc/dtc.inc delete mode 100644 poky/meta/recipes-kernel/dtc/dtc/0001-checks-Use-proper-format-modifier-for-size_t.patch delete mode 100644 poky/meta/recipes-kernel/dtc/dtc/make_install.patch delete mode 100644 poky/meta/recipes-kernel/dtc/dtc_1.4.5.bb delete mode 100644 poky/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb delete mode 100644 poky/meta/recipes-kernel/kexec/kexec-tools.inc delete mode 100644 poky/meta/recipes-kernel/kexec/kexec-tools/0001-Disable-PIE-during-link.patch delete mode 100644 poky/meta/recipes-kernel/kexec/kexec-tools/0001-purgatory-Pass-r-directly-to-linker.patch delete mode 100644 poky/meta/recipes-kernel/kexec/kexec-tools/0002-powerpc-change-the-memory-size-limit.patch delete mode 100644 poky/meta/recipes-kernel/kexec/kexec-tools/0010-kexec-ARM-Fix-add_buffer_phys_virt-align-issue.patch delete mode 100755 poky/meta/recipes-kernel/kexec/kexec-tools/kdump delete mode 100644 poky/meta/recipes-kernel/kexec/kexec-tools/kdump.conf delete mode 100644 poky/meta/recipes-kernel/kexec/kexec-tools/kdump.service delete mode 100644 poky/meta/recipes-kernel/kexec/kexec-tools/kexec-aarch64.patch delete mode 100644 poky/meta/recipes-kernel/kexec/kexec-tools/kexec-x32.patch delete mode 100644 poky/meta/recipes-kernel/kexec/kexec-tools_2.0.15.bb delete mode 100644 poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb delete mode 100644 poky/meta/recipes-kernel/kmod/kmod-native_git.bb delete mode 100644 poky/meta/recipes-kernel/kmod/kmod.inc delete mode 100644 poky/meta/recipes-kernel/kmod/kmod/Change-to-calling-bswap_-instead-of-htobe-and-be-toh.patch delete mode 100644 poky/meta/recipes-kernel/kmod/kmod/avoid_parallel_tests.patch delete mode 100644 poky/meta/recipes-kernel/kmod/kmod/depmod-search.conf delete mode 100644 poky/meta/recipes-kernel/kmod/kmod/fix-O_CLOEXEC.patch delete mode 100644 poky/meta/recipes-kernel/kmod/kmod/ptest.patch delete mode 100755 poky/meta/recipes-kernel/kmod/kmod/run-ptest delete mode 100644 poky/meta/recipes-kernel/kmod/kmod_git.bb delete mode 100644 poky/meta/recipes-kernel/latencytop/latencytop-0.5/0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch delete mode 100644 poky/meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-fsync.patch delete mode 100644 poky/meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-makefile.patch delete mode 100644 poky/meta/recipes-kernel/latencytop/latencytop_0.5.bb delete mode 100644 poky/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb delete mode 100644 poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc delete mode 100644 poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-libc-compat.h-fix-some-issues-arising-from-in6.h.patch delete mode 100644 poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-libc-compat.h-musl-_does_-define-IFF_LOWER_UP-DORMAN.patch delete mode 100644 poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0002-libc-compat.h-prevent-redefinition-of-struct-ethhdr.patch delete mode 100644 poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch delete mode 100644 poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.12.bb delete mode 100644 poky/meta/recipes-kernel/linux/kernel-devsrc.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-dtb.inc delete mode 100644 poky/meta/recipes-kernel/linux/linux-dummy.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-dummy/COPYING.GPL delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto-dev.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto-rt_4.10.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto-rt_4.12.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto-rt_4.4.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto-tiny_4.10.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto-tiny_4.12.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto-tiny_4.4.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto.inc delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto_4.10.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto_4.12.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto_4.4.bb delete mode 100644 poky/meta/recipes-kernel/linux/linux-yocto_4.9.bb delete mode 100644 poky/meta/recipes-kernel/lttng/babeltrace_1.5.3.bb delete mode 100644 poky/meta/recipes-kernel/lttng/lttng-modules/BUILD_RUNTIME_BUG_ON-vs-gcc7.patch delete mode 100644 poky/meta/recipes-kernel/lttng/lttng-modules/Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch delete mode 100644 poky/meta/recipes-kernel/lttng/lttng-modules_2.9.5.bb delete mode 100755 poky/meta/recipes-kernel/lttng/lttng-tools/run-ptest delete mode 100644 poky/meta/recipes-kernel/lttng/lttng-tools/x32.patch delete mode 100644 poky/meta/recipes-kernel/lttng/lttng-tools_2.9.5.bb delete mode 100644 poky/meta/recipes-kernel/lttng/lttng-ust/lttng-ust-doc-examples-disable.patch delete mode 100644 poky/meta/recipes-kernel/lttng/lttng-ust_2.9.1.bb delete mode 100644 poky/meta/recipes-kernel/modutils-initscripts/files/PD.patch delete mode 100755 poky/meta/recipes-kernel/modutils-initscripts/files/modutils.sh delete mode 100644 poky/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb delete mode 100644 poky/meta/recipes-kernel/perf/perf.bb delete mode 100644 poky/meta/recipes-kernel/powertop/powertop_2.9.bb delete mode 100644 poky/meta/recipes-kernel/sysprof/files/0001-Avoid-building-docs.patch delete mode 100644 poky/meta/recipes-kernel/sysprof/files/0001-Disable-check-for-polkit-for-UI.patch delete mode 100644 poky/meta/recipes-kernel/sysprof/files/0001-configure-Add-option-to-enable-disable-polkit.patch delete mode 100644 poky/meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch delete mode 100644 poky/meta/recipes-kernel/sysprof/sysprof_3.26.1.bb delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap-native_git.bb delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap/0001-Do-not-let-configure-write-a-python-location-into-th.patch delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap/0001-Install-python-modules-to-correct-library-dir.patch delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap/0001-buildrun-remove-quotes-around-I-include-line.patch delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap/0001-staprun-stapbpf-don-t-support-installing-a-non-root.patch delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap/configure-allow-to-disable-libvirt.patch delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap/monitor-option.patch delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap/no-msgfmt-check.patch delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap/system_map_location.patch delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap/x32_abi_time.patch delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap_git.bb delete mode 100644 poky/meta/recipes-kernel/systemtap/systemtap_git.inc delete mode 100644 poky/meta/recipes-kernel/trace-cmd/kernelshark_git.bb delete mode 100644 poky/meta/recipes-kernel/trace-cmd/trace-cmd.inc delete mode 100644 poky/meta/recipes-kernel/trace-cmd/trace-cmd/0001-Include-limits.h-so-that-PATH_MAX-is-defined-an-issu.patch delete mode 100644 poky/meta/recipes-kernel/trace-cmd/trace-cmd/blktrace-api-compatibility.patch delete mode 100644 poky/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb delete mode 100644 poky/meta/recipes-multimedia/alsa/alsa-fpu.inc delete mode 100644 poky/meta/recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch delete mode 100644 poky/meta/recipes-multimedia/alsa/alsa-lib/avoid-including-sys-poll.h-directly.patch delete mode 100644 poky/meta/recipes-multimedia/alsa/alsa-lib_1.1.4.1.bb delete mode 100644 poky/meta/recipes-multimedia/alsa/alsa-plugins_1.1.4.bb delete mode 100644 poky/meta/recipes-multimedia/alsa/alsa-tools/0001-as10k1-Make-output_tram_line-static-inline.patch delete mode 100644 poky/meta/recipes-multimedia/alsa/alsa-tools/autotools.patch delete mode 100755 poky/meta/recipes-multimedia/alsa/alsa-tools/gitcompile_hdajacksensetest delete mode 100644 poky/meta/recipes-multimedia/alsa/alsa-tools/makefile_no_gtk.patch delete mode 100644 poky/meta/recipes-multimedia/alsa/alsa-tools_1.1.3.bb delete mode 100644 poky/meta/recipes-multimedia/alsa/alsa-utils-scripts_1.1.4.bb delete mode 100644 poky/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch delete mode 100644 poky/meta/recipes-multimedia/alsa/alsa-utils_1.1.4.bb delete mode 100644 poky/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-build-fix-for-mips.patch delete mode 100644 poky/meta/recipes-multimedia/ffmpeg/ffmpeg/mips64_cpu_detection.patch delete mode 100644 poky/meta/recipes-multimedia/ffmpeg/ffmpeg_3.3.4.bb delete mode 100644 poky/meta/recipes-multimedia/flac/flac_1.3.2.bb delete mode 100644 poky/meta/recipes-multimedia/gstreamer/files/0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gst-player/gst-player.desktop delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gst-player_git.bb delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gst-plugins-package.inc delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav.inc delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/0001-Disable-yasm-for-libav-when-disable-yasm.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/0001-configure-check-for-armv7ve-variant.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/0001-hevcpred_msa.c-Fix-build-by-Including-libavcodec-hev.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/mips64_cpu_detection.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/workaround-to-build-gst-libav-for-i586-with-gcc.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.12.3.bb delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-omx.inc delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.12.3.bb delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad.inc delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-Prepend-PKG_CONFIG_SYSROOT_DIR-to-pkg-config-output.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-gstreamer-gl.pc.in-don-t-append-GL_CFLAGS-to-CFLAGS.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-vkdisplay-Use-ifdef-for-platform-specific-defines.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-vulkan-Use-the-generated-version-of-vkconfig.h.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0009-glimagesink-Downrank-to-marginal.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/avoid-including-sys-poll.h-directly.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/configure-allow-to-disable-libssh2.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/ensure-valid-sentinels-for-gst_structure_get-etc.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/link-with-libvchostif.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.3.bb delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base.inc delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-Makefile.am-prefix-calls-to-pkg-config-with-PKG_CONF.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-riff-add-missing-include-directories-when-calling-in.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-ssaparse-enhance-SSA-text-lines-parsing.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0004-rtsp-drop-incorrect-reference-to-gstreamer-sdp-in-Ma.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0004-subparse-set-need_segment-after-sink-pad-received-GS.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/get-caps-from-src-pad-when-query-caps.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/make-gio_unix_2_0-dependency-configurable.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.3.bb delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good.inc delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-gstrtpmp4gpay-set-dafault-value-for-MPEG4-without-co.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/avoid-including-sys-poll.h-directly.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/ensure-valid-sentinel-for-gst_structure_get.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.12.3.bb delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly.inc delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.12.3.bb delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-python.inc delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.12.3.bb delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server.inc delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server/0001-Don-t-hardcode-libtool-name-when-using-introspection.patch delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.12.3.bb delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi.inc delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.12.3.bb delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0.inc delete mode 100644 poky/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.12.3.bb delete mode 100644 poky/meta/recipes-multimedia/lame/lame/CVE-2017-13712.patch delete mode 100644 poky/meta/recipes-multimedia/lame/lame/lame-3.99.5_fix_for_automake-1.12.x.patch delete mode 100644 poky/meta/recipes-multimedia/lame/lame/no-gtk1.patch delete mode 100644 poky/meta/recipes-multimedia/lame/lame_3.99.5.bb delete mode 100644 poky/meta/recipes-multimedia/liba52/liba52/buildcleanup.patch delete mode 100644 poky/meta/recipes-multimedia/liba52/liba52_0.7.4.bb delete mode 100644 poky/meta/recipes-multimedia/libid3tag/libid3tag/0001-Fix-gperf-3.1-incompatibility.patch delete mode 100644 poky/meta/recipes-multimedia/libid3tag/libid3tag/addpkgconfig.patch delete mode 100644 poky/meta/recipes-multimedia/libid3tag/libid3tag/obsolete_automake_macros.patch delete mode 100644 poky/meta/recipes-multimedia/libid3tag/libid3tag_0.15.1b.bb delete mode 100644 poky/meta/recipes-multimedia/libogg/libogg_1.3.3.bb delete mode 100644 poky/meta/recipes-multimedia/libomxil/libomxil-0.9.3/configure-fix.patch delete mode 100644 poky/meta/recipes-multimedia/libomxil/libomxil-0.9.3/disable-so-versioning.patch delete mode 100644 poky/meta/recipes-multimedia/libomxil/libomxil-0.9.3/dynamicloader-linking.patch delete mode 100644 poky/meta/recipes-multimedia/libomxil/libomxil-0.9.3/makefile-docdir-fix.patch delete mode 100644 poky/meta/recipes-multimedia/libomxil/libomxil-0.9.3/parallel-make.patch delete mode 100644 poky/meta/recipes-multimedia/libomxil/libomxil_0.9.3.bb delete mode 100644 poky/meta/recipes-multimedia/libpng/libpng_1.6.32.bb delete mode 100644 poky/meta/recipes-multimedia/libsamplerate/libsamplerate0/0001-configure.ac-improve-alsa-handling.patch delete mode 100644 poky/meta/recipes-multimedia/libsamplerate/libsamplerate0_0.1.9.bb delete mode 100644 poky/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2017-6892.patch delete mode 100644 poky/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2017-8361-8365.patch delete mode 100644 poky/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2017-8362.patch delete mode 100644 poky/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2017-8363.patch delete mode 100644 poky/meta/recipes-multimedia/libsndfile/libsndfile1_1.0.28.bb delete mode 100644 poky/meta/recipes-multimedia/libtheora/libtheora-1.1.1/no-docs.patch delete mode 100644 poky/meta/recipes-multimedia/libtheora/libtheora_1.1.1.bb delete mode 100644 poky/meta/recipes-multimedia/libtiff/files/CVE-2017-10688.patch delete mode 100644 poky/meta/recipes-multimedia/libtiff/files/CVE-2017-11335.patch delete mode 100644 poky/meta/recipes-multimedia/libtiff/files/CVE-2017-13726.patch delete mode 100644 poky/meta/recipes-multimedia/libtiff/files/CVE-2017-13727.patch delete mode 100644 poky/meta/recipes-multimedia/libtiff/files/CVE-2017-9147.patch delete mode 100644 poky/meta/recipes-multimedia/libtiff/files/CVE-2017-9936.patch delete mode 100644 poky/meta/recipes-multimedia/libtiff/files/libtool2.patch delete mode 100644 poky/meta/recipes-multimedia/libtiff/tiff_4.0.8.bb delete mode 100644 poky/meta/recipes-multimedia/libvorbis/libvorbis/0001-configure-Check-for-clang.patch delete mode 100644 poky/meta/recipes-multimedia/libvorbis/libvorbis_1.3.5.bb delete mode 100644 poky/meta/recipes-multimedia/mpeg2dec/files/0001-check-for-available-arm-optimizations.patch delete mode 100644 poky/meta/recipes-multimedia/mpeg2dec/files/0002-Set-visibility-of-global-symbols-used-in-ARM-specifi.patch delete mode 100644 poky/meta/recipes-multimedia/mpeg2dec/files/altivec_h_needed.patch delete mode 100644 poky/meta/recipes-multimedia/mpeg2dec/mpeg2dec_0.5.1.bb delete mode 100644 poky/meta/recipes-multimedia/mpg123/mpg123_1.25.7.bb delete mode 100644 poky/meta/recipes-multimedia/pulseaudio/pulseaudio.inc delete mode 100644 poky/meta/recipes-multimedia/pulseaudio/pulseaudio/0001-client-conf-Add-allow-autospawn-for-root.patch delete mode 100644 poky/meta/recipes-multimedia/pulseaudio/pulseaudio/0001-padsp-Make-it-compile-on-musl.patch delete mode 100644 poky/meta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudio-discuss-iochannel-don-t-use-variable-length-array-in-union.patch delete mode 100644 poky/meta/recipes-multimedia/pulseaudio/pulseaudio/volatiles.04_pulse delete mode 100644 poky/meta/recipes-multimedia/pulseaudio/pulseaudio_10.0.bb delete mode 100644 poky/meta/recipes-multimedia/sbc/sbc_1.3.bb delete mode 100644 poky/meta/recipes-multimedia/speex/speex_1.2.0.bb delete mode 100644 poky/meta/recipes-multimedia/speex/speexdsp/0001-Don-t-rely-on-HAVE_STDINT_H-et-al.-being-defined.patch delete mode 100644 poky/meta/recipes-multimedia/speex/speexdsp_1.2rc3.bb delete mode 100644 poky/meta/recipes-multimedia/webp/libwebp_0.6.0.bb delete mode 100644 poky/meta/recipes-multimedia/x264/x264/Fix-X32-build-by-disabling-asm.patch delete mode 100644 poky/meta/recipes-multimedia/x264/x264/don-t-default-to-cortex-a9-with-neon.patch delete mode 100644 poky/meta/recipes-multimedia/x264/x264_git.bb delete mode 100644 poky/meta/recipes-rt/README delete mode 100644 poky/meta/recipes-rt/images/core-image-rt-sdk.bb delete mode 100644 poky/meta/recipes-rt/images/core-image-rt.bb delete mode 100755 poky/meta/recipes-rt/rt-tests/files/rt_bmark.py delete mode 100644 poky/meta/recipes-rt/rt-tests/files/run-ptest delete mode 100644 poky/meta/recipes-rt/rt-tests/hwlatdetect_1.1.bb delete mode 100644 poky/meta/recipes-rt/rt-tests/rt-tests.inc delete mode 100644 poky/meta/recipes-rt/rt-tests/rt-tests_1.1.bb delete mode 100644 poky/meta/recipes-sato/images/core-image-sato-dev.bb delete mode 100644 poky/meta/recipes-sato/images/core-image-sato-sdk-ptest.bb delete mode 100644 poky/meta/recipes-sato/images/core-image-sato-sdk.bb delete mode 100644 poky/meta/recipes-sato/images/core-image-sato.bb delete mode 100644 poky/meta/recipes-sato/l3afpad/l3afpad_git.bb delete mode 100644 poky/meta/recipes-sato/matchbox-config-gtk/files/no-handed.patch delete mode 100644 poky/meta/recipes-sato/matchbox-config-gtk/matchbox-config-gtk_0.2.bb delete mode 100644 poky/meta/recipes-sato/matchbox-desktop/files/vfolders/All.directory delete mode 100644 poky/meta/recipes-sato/matchbox-desktop/files/vfolders/Applications.directory delete mode 100644 poky/meta/recipes-sato/matchbox-desktop/files/vfolders/Games.directory delete mode 100644 poky/meta/recipes-sato/matchbox-desktop/files/vfolders/Root.order delete mode 100644 poky/meta/recipes-sato/matchbox-desktop/files/vfolders/Settings.directory delete mode 100644 poky/meta/recipes-sato/matchbox-desktop/matchbox-desktop_2.2.bb delete mode 100644 poky/meta/recipes-sato/matchbox-keyboard/files/0001-desktop-file-Hide-the-keyboard-from-app-list.patch delete mode 100644 poky/meta/recipes-sato/matchbox-keyboard/files/80matchboxkeyboard.sh delete mode 100644 poky/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_0.1.1.bb delete mode 100644 poky/meta/recipes-sato/matchbox-panel-2/files/0001-applets-systray-Allow-icons-to-be-smaller.patch delete mode 100644 poky/meta/recipes-sato/matchbox-panel-2/matchbox-panel-2_2.11.bb delete mode 100644 poky/meta/recipes-sato/matchbox-sato/matchbox-session-sato/index.theme delete mode 100644 poky/meta/recipes-sato/matchbox-sato/matchbox-session-sato/session delete mode 100644 poky/meta/recipes-sato/matchbox-sato/matchbox-session-sato_0.1.bb delete mode 100644 poky/meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.1.bb delete mode 100644 poky/meta/recipes-sato/matchbox-theme-sato/matchbox-theme-sato.inc delete mode 100644 poky/meta/recipes-sato/matchbox-theme-sato/matchbox-theme-sato_0.2.bb delete mode 100644 poky/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb delete mode 100644 poky/meta/recipes-sato/pcmanfm/files/emblem-symbolic-link.png delete mode 100644 poky/meta/recipes-sato/pcmanfm/files/gnome-fs-directory.png delete mode 100644 poky/meta/recipes-sato/pcmanfm/files/gnome-fs-regular.png delete mode 100644 poky/meta/recipes-sato/pcmanfm/files/gnome-mime-text-plain.png delete mode 100644 poky/meta/recipes-sato/pcmanfm/files/no-desktop.patch delete mode 100644 poky/meta/recipes-sato/pcmanfm/pcmanfm_1.2.5.bb delete mode 100644 poky/meta/recipes-sato/pulseaudio-sato/pulseaudio-client-conf-sato/50-sato.conf delete mode 100644 poky/meta/recipes-sato/pulseaudio-sato/pulseaudio-client-conf-sato_1.bb delete mode 100644 poky/meta/recipes-sato/puzzles/files/0001-Clarify-conditions-to-avoid-compiler-errors.patch delete mode 100644 poky/meta/recipes-sato/puzzles/files/0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch delete mode 100644 poky/meta/recipes-sato/puzzles/files/0001-Use-labs-instead-of-abs.patch delete mode 100644 poky/meta/recipes-sato/puzzles/files/0001-palisade-Fix-warnings-with-clang-on-arm.patch delete mode 100644 poky/meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch delete mode 100644 poky/meta/recipes-sato/puzzles/puzzles_git.bb delete mode 100644 poky/meta/recipes-sato/rxvt-unicode/rxvt-unicode.inc delete mode 100644 poky/meta/recipes-sato/rxvt-unicode/rxvt-unicode/rxvt.desktop delete mode 100644 poky/meta/recipes-sato/rxvt-unicode/rxvt-unicode/rxvt.png delete mode 100644 poky/meta/recipes-sato/rxvt-unicode/rxvt-unicode/xwc.patch delete mode 100644 poky/meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.22.bb delete mode 100644 poky/meta/recipes-sato/sato-screenshot/sato-screenshot_0.3.bb delete mode 100644 poky/meta/recipes-sato/settings-daemon/files/70settings-daemon.sh delete mode 100644 poky/meta/recipes-sato/settings-daemon/files/addsoundkeys.patch delete mode 100644 poky/meta/recipes-sato/settings-daemon/settings-daemon_0.0.2.bb delete mode 100644 poky/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb delete mode 100644 poky/meta/recipes-sato/shutdown-desktop/shutdown-desktop/shutdown.desktop delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk/0001-FindGObjectIntrospection.cmake-prefix-variables-obta.patch delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk/0001-Fix-racy-parallel-build-of-WebKit2-4.0.gir.patch delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk/0001-OptionsGTK.cmake-drop-the-hardcoded-introspection-gt.patch delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk/0001-Tweak-gtkdoc-settings-so-that-gtkdoc-generation-work.patch delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk/0001-WebKitMacros-Append-to-I-and-not-to-isystem.patch delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk/0001-When-building-introspection-files-add-CMAKE_C_FLAGS-.patch delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk/cross-compile.patch delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk/detect-atomics-during-configure.patch delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk/gcc7.patch delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk/musl-fixes.patch delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk/ppc-musl-fix.patch delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk/x32_support.patch delete mode 100644 poky/meta/recipes-sato/webkit/webkitgtk_2.16.6.bb delete mode 100644 poky/meta/recipes-support/apr/apr-util/configfix.patch delete mode 100644 poky/meta/recipes-support/apr/apr-util/configure_fixes.patch delete mode 100644 poky/meta/recipes-support/apr/apr-util/run-ptest delete mode 100644 poky/meta/recipes-support/apr/apr-util_1.6.0.bb delete mode 100644 poky/meta/recipes-support/apr/apr/0001-apr-fix-off_t-size-doesn-t-match-in-glibc-when-cross.patch delete mode 100644 poky/meta/recipes-support/apr/apr/0002-explicitly-link-libapr-against-phtread-to-make-gold-.patch delete mode 100644 poky/meta/recipes-support/apr/apr/Fix-packet-discards-HTTP-redirect.patch delete mode 100644 poky/meta/recipes-support/apr/apr/cleanup.patch delete mode 100644 poky/meta/recipes-support/apr/apr/configfix.patch delete mode 100644 poky/meta/recipes-support/apr/apr/configure.in-fix-LTFLAGS-to-make-it-work-with-ccache.patch delete mode 100644 poky/meta/recipes-support/apr/apr/configure_fixes.patch delete mode 100644 poky/meta/recipes-support/apr/apr/run-ptest delete mode 100644 poky/meta/recipes-support/apr/apr/upgrade-and-fix-1.5.1.patch delete mode 100644 poky/meta/recipes-support/apr/apr_1.6.2.bb delete mode 100644 poky/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb delete mode 100644 poky/meta/recipes-support/argp-standalone/files/0001-throw-in-funcdef.patch delete mode 100644 poky/meta/recipes-support/argp-standalone/files/0002-isprint.patch delete mode 100644 poky/meta/recipes-support/argp-standalone/files/out_of_tree_build.patch delete mode 100644 poky/meta/recipes-support/aspell/aspell/gcc7.patch delete mode 100644 poky/meta/recipes-support/aspell/aspell_0.60.6.1.bb delete mode 100644 poky/meta/recipes-support/atk/at-spi2-atk_2.26.0.bb delete mode 100644 poky/meta/recipes-support/atk/at-spi2-core/0001-build-Add-with-systemduserunitdir.patch delete mode 100644 poky/meta/recipes-support/atk/at-spi2-core_2.26.0.bb delete mode 100644 poky/meta/recipes-support/atk/atk_2.26.0.bb delete mode 100644 poky/meta/recipes-support/attr/acl/Makefile-libacl-should-depend-on-include.patch delete mode 100644 poky/meta/recipes-support/attr/acl/acl-fix-the-order-of-expected-output-of-getfacl.patch delete mode 100644 poky/meta/recipes-support/attr/acl/configure.ac delete mode 100644 poky/meta/recipes-support/attr/acl/run-ptest delete mode 100644 poky/meta/recipes-support/attr/acl/test-fix-directory-permissions.patch delete mode 100644 poky/meta/recipes-support/attr/acl/test-fix-insufficient-quoting-of.patch delete mode 100644 poky/meta/recipes-support/attr/acl/test-fixups-on-SELinux-machines-for-root-testcases.patch delete mode 100644 poky/meta/recipes-support/attr/acl_2.2.52.bb delete mode 100644 poky/meta/recipes-support/attr/attr.inc delete mode 100644 poky/meta/recipes-support/attr/attr/0001-Use-stdint-types-consistently.patch delete mode 100644 poky/meta/recipes-support/attr/attr/attr-Missing-configure.ac.patch delete mode 100644 poky/meta/recipes-support/attr/attr/dont-use-decl-macros.patch delete mode 100644 poky/meta/recipes-support/attr/attr_2.4.47.bb delete mode 100644 poky/meta/recipes-support/attr/ea-acl.inc delete mode 100644 poky/meta/recipes-support/attr/files/0001-Added-configure-option-to-enable-disable-static-libr.patch delete mode 100644 poky/meta/recipes-support/attr/files/Remove-the-attr.5-man-page-moved-to-man-pages.patch delete mode 100644 poky/meta/recipes-support/attr/files/Remove-the-section-2-man-pages.patch delete mode 100644 poky/meta/recipes-support/attr/files/relative-libdir.patch delete mode 100644 poky/meta/recipes-support/attr/files/run-ptest delete mode 100644 poky/meta/recipes-support/bash-completion/bash-completion_2.7.bb delete mode 100644 poky/meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch delete mode 100644 poky/meta/recipes-support/beecrypt/beecrypt/beecrypt-enable-ptest-support.patch delete mode 100644 poky/meta/recipes-support/beecrypt/beecrypt/disable-icu-check.patch delete mode 100644 poky/meta/recipes-support/beecrypt/beecrypt/fix-for-gcc-4.7.patch delete mode 100644 poky/meta/recipes-support/beecrypt/beecrypt/fix-security.patch delete mode 100644 poky/meta/recipes-support/beecrypt/beecrypt/run-ptest delete mode 100644 poky/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb delete mode 100644 poky/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb delete mode 100644 poky/meta/recipes-support/boost/bjam-native_1.65.1.bb delete mode 100644 poky/meta/recipes-support/boost/boost-1.65.1.inc delete mode 100644 poky/meta/recipes-support/boost/boost.inc delete mode 100644 poky/meta/recipes-support/boost/boost/0001-Apply-boost-1.62.0-no-forced-flags.patch.patch delete mode 100644 poky/meta/recipes-support/boost/boost/0001-correct-error-which-appeared-when-compiling-non-c-co.patch delete mode 100644 poky/meta/recipes-support/boost/boost/0002-Don-t-set-up-m32-m64-we-do-that-ourselves.patch delete mode 100644 poky/meta/recipes-support/boost/boost/0003-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch delete mode 100644 poky/meta/recipes-support/boost/boost/arm-intrinsics.patch delete mode 100644 poky/meta/recipes-support/boost/boost/boost-CVE-2012-2677.patch delete mode 100644 poky/meta/recipes-support/boost/boost/boost-math-disable-pch-for-gcc.patch delete mode 100644 poky/meta/recipes-support/boost/boost_1.65.1.bb delete mode 100644 poky/meta/recipes-support/boost/files/0001-Fix-a-strange-assert-typo-how-was-this-released-with.patch delete mode 100644 poky/meta/recipes-support/boost/files/bjam-native-build-bjam.debug.patch delete mode 100644 poky/meta/recipes-support/ca-certificates/ca-certificates/0001-update-ca-certificates-don-t-use-Debianisms-in-run-p.patch delete mode 100644 poky/meta/recipes-support/ca-certificates/ca-certificates/0002-update-ca-certificates-use-SYSROOT.patch delete mode 100644 poky/meta/recipes-support/ca-certificates/ca-certificates/default-sysroot.patch delete mode 100644 poky/meta/recipes-support/ca-certificates/ca-certificates/sbindir.patch delete mode 100644 poky/meta/recipes-support/ca-certificates/ca-certificates/update-ca-certificates-support-Toybox.patch delete mode 100644 poky/meta/recipes-support/ca-certificates/ca-certificates_20170717.bb delete mode 100644 poky/meta/recipes-support/consolekit/consolekit/add-polkit-configure-argument.patch delete mode 100644 poky/meta/recipes-support/consolekit/consolekit/sepbuildfix.patch delete mode 100644 poky/meta/recipes-support/consolekit/consolekit_0.4.6.bb delete mode 100644 poky/meta/recipes-support/curl/curl/0001-replace-krb5-config-with-pkg-config.patch delete mode 100644 poky/meta/recipes-support/curl/curl/CVE-2017-1000099.patch delete mode 100644 poky/meta/recipes-support/curl/curl/CVE-2017-1000100.patch delete mode 100644 poky/meta/recipes-support/curl/curl/CVE-2017-1000101.patch delete mode 100644 poky/meta/recipes-support/curl/curl/CVE-2017-1000254.patch delete mode 100644 poky/meta/recipes-support/curl/curl/configure_ac.patch delete mode 100644 poky/meta/recipes-support/curl/curl/reproducible-mkhelp.patch delete mode 100644 poky/meta/recipes-support/curl/curl_7.54.1.bb delete mode 100644 poky/meta/recipes-support/db/db/0001-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch delete mode 100644 poky/meta/recipes-support/db/db/0001-configure-Add-explicit-tag-options-to-libtool-invoca.patch delete mode 100644 poky/meta/recipes-support/db/db/arm-thumb-mutex_db5.patch delete mode 100644 poky/meta/recipes-support/db/db/fix-parallel-build.patch delete mode 100644 poky/meta/recipes-support/db/db/sequence-type.patch delete mode 100644 poky/meta/recipes-support/db/db_5.3.28.bb delete mode 100644 poky/meta/recipes-support/debianutils/debianutils_4.8.1.1.bb delete mode 100644 poky/meta/recipes-support/enchant/enchant_1.6.0.bb delete mode 100644 poky/meta/recipes-support/gdbm/files/ptest.patch delete mode 100755 poky/meta/recipes-support/gdbm/files/run-ptest delete mode 100644 poky/meta/recipes-support/gdbm/gdbm_1.13.bb delete mode 100644 poky/meta/recipes-support/gmp/gmp-6.1.2/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch delete mode 100644 poky/meta/recipes-support/gmp/gmp-6.1.2/0001-confiure.ac-Believe-the-cflags-from-environment.patch delete mode 100644 poky/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch delete mode 100644 poky/meta/recipes-support/gmp/gmp-6.1.2/use-includedir.patch delete mode 100644 poky/meta/recipes-support/gmp/gmp.inc delete mode 100644 poky/meta/recipes-support/gmp/gmp_6.1.2.bb delete mode 100644 poky/meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing/0001-gsystem-subprocess.c-Enable-GNU-extensions-in-system.patch delete mode 100644 poky/meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing/update-output-syntax.patch delete mode 100644 poky/meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing_2014.1.bb delete mode 100644 poky/meta/recipes-support/gnupg/gnupg/0001-Use-pkg-config-to-find-pth-instead-of-pth-config.patch delete mode 100644 poky/meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch delete mode 100644 poky/meta/recipes-support/gnupg/gnupg/0003-dirmngr-uses-libgpg-error.patch delete mode 100644 poky/meta/recipes-support/gnupg/gnupg/0004-autogen.sh-fix-find-version-for-beta-checking.patch delete mode 100644 poky/meta/recipes-support/gnupg/gnupg_2.2.0.bb delete mode 100644 poky/meta/recipes-support/gnutls/gnutls.inc delete mode 100644 poky/meta/recipes-support/gnutls/gnutls/0001-configure.ac-fix-sed-command.patch delete mode 100644 poky/meta/recipes-support/gnutls/gnutls/arm_eabi.patch delete mode 100644 poky/meta/recipes-support/gnutls/gnutls_3.6.1.bb delete mode 100644 poky/meta/recipes-support/gnutls/libtasn1/0001-stdint.m4-reintroduce-GNULIB_OVERRIDES_WINT_T-check.patch delete mode 100644 poky/meta/recipes-support/gnutls/libtasn1/CVE-2017-10790.patch delete mode 100644 poky/meta/recipes-support/gnutls/libtasn1/dont-depend-on-help2man.patch delete mode 100644 poky/meta/recipes-support/gnutls/libtasn1_4.12.bb delete mode 100644 poky/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch delete mode 100644 poky/meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch delete mode 100644 poky/meta/recipes-support/gpgme/gpgme/0003-Correctly-install-python-modules.patch delete mode 100644 poky/meta/recipes-support/gpgme/gpgme/0004-python-import.patch delete mode 100644 poky/meta/recipes-support/gpgme/gpgme/0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch delete mode 100644 poky/meta/recipes-support/gpgme/gpgme_1.9.0.bb delete mode 100644 poky/meta/recipes-support/icu/icu.inc delete mode 100644 poky/meta/recipes-support/icu/icu/0001-Disable-LDFLAGSICUDT-for-Linux.patch delete mode 100644 poky/meta/recipes-support/icu/icu/0001-i18n-Drop-include-xlocale.h.patch delete mode 100644 poky/meta/recipes-support/icu/icu/fix-install-manx.patch delete mode 100644 poky/meta/recipes-support/icu/icu/icu-pkgdata-large-cmd.patch delete mode 100644 poky/meta/recipes-support/icu/icu_60.1.bb delete mode 100644 poky/meta/recipes-support/iso-codes/iso-codes_3.76.bb delete mode 100644 poky/meta/recipes-support/libassuan/libassuan/libassuan-add-pkgconfig-support.patch delete mode 100644 poky/meta/recipes-support/libassuan/libassuan_2.4.4.bb delete mode 100644 poky/meta/recipes-support/libatomic-ops/libatomic-ops/0001-Add-initial-nios2-architecture-support.patch delete mode 100644 poky/meta/recipes-support/libatomic-ops/libatomic-ops_7.6.0.bb delete mode 100644 poky/meta/recipes-support/libbsd/libbsd/0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch delete mode 100644 poky/meta/recipes-support/libbsd/libbsd/0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch delete mode 100644 poky/meta/recipes-support/libbsd/libbsd/0002-Remove-funopen.patch delete mode 100644 poky/meta/recipes-support/libbsd/libbsd_0.8.6.bb delete mode 100644 poky/meta/recipes-support/libcap-ng/libcap-ng/python.patch delete mode 100644 poky/meta/recipes-support/libcap-ng/libcap-ng_0.7.8.bb delete mode 100644 poky/meta/recipes-support/libcap/files/0001-Fix-build-with-gperf-3.1.patch delete mode 100644 poky/meta/recipes-support/libcap/files/0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch delete mode 100644 poky/meta/recipes-support/libcap/libcap_2.25.bb delete mode 100644 poky/meta/recipes-support/libcheck/libcheck_0.12.0.bb delete mode 100644 poky/meta/recipes-support/libcroco/libcroco_0.6.12.bb delete mode 100644 poky/meta/recipes-support/libdaemon/libdaemon/fix-includes.patch delete mode 100644 poky/meta/recipes-support/libdaemon/libdaemon_0.14.bb delete mode 100644 poky/meta/recipes-support/libevdev/libevdev_1.5.7.bb delete mode 100644 poky/meta/recipes-support/libevent/libevent/Makefile-missing-test-dir.patch delete mode 100644 poky/meta/recipes-support/libevent/libevent/run-ptest delete mode 100644 poky/meta/recipes-support/libevent/libevent_2.1.8.bb delete mode 100644 poky/meta/recipes-support/libexif/libexif_0.6.21.bb delete mode 100644 poky/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch delete mode 100644 poky/meta/recipes-support/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch delete mode 100644 poky/meta/recipes-support/libffi/libffi/0001-mips-fix-MIPS-softfloat-build-issue.patch delete mode 100644 poky/meta/recipes-support/libffi/libffi/not-win32.patch delete mode 100644 poky/meta/recipes-support/libffi/libffi_3.2.1.bb delete mode 100644 poky/meta/recipes-support/libfm/libfm-extra/0001-nls.m4-Take-it-from-gettext-0.15.patch delete mode 100644 poky/meta/recipes-support/libfm/libfm-extra_1.2.5.bb delete mode 100644 poky/meta/recipes-support/libfm/libfm/0001-Correctly-check-the-stamp-file-that-indicates-if-we-.patch delete mode 100644 poky/meta/recipes-support/libfm/libfm_1.2.5.bb delete mode 100644 poky/meta/recipes-support/libgcrypt/files/0001-Add-and-use-pkg-config-for-libgcrypt-instead-of-conf.patch delete mode 100644 poky/meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch delete mode 100644 poky/meta/recipes-support/libgcrypt/files/0003-tests-bench-slope.c-workaround-ICE-failure-on-mips-w.patch delete mode 100644 poky/meta/recipes-support/libgcrypt/files/0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch delete mode 100644 poky/meta/recipes-support/libgcrypt/files/0006-Fix-building-AArch32-CE-implementations-when-target-.patch delete mode 100644 poky/meta/recipes-support/libgcrypt/libgcrypt_1.8.1.bb delete mode 100644 poky/meta/recipes-support/libgpg-error/libgpg-error/pkgconfig.patch delete mode 100644 poky/meta/recipes-support/libgpg-error/libgpg-error_1.27.bb delete mode 100644 poky/meta/recipes-support/libical/libical/0001-CMakeLists.txt-libical.pc.in-fix-iculibs-remove-full.patch delete mode 100644 poky/meta/recipes-support/libical/libical/Remove-cmake-check-for-Perl.patch delete mode 100644 poky/meta/recipes-support/libical/libical_2.0.0.bb delete mode 100644 poky/meta/recipes-support/libksba/libksba/ksba-add-pkgconfig-support.patch delete mode 100644 poky/meta/recipes-support/libksba/libksba_1.3.5.bb delete mode 100644 poky/meta/recipes-support/libmpc/libmpc.inc delete mode 100644 poky/meta/recipes-support/libmpc/libmpc_1.0.3.bb delete mode 100644 poky/meta/recipes-support/libnl/libnl/fix-pc-file.patch delete mode 100644 poky/meta/recipes-support/libnl/libnl/fix-pktloc_syntax_h-race.patch delete mode 100644 poky/meta/recipes-support/libnl/libnl_3.2.29.bb delete mode 100644 poky/meta/recipes-support/libpcre/libpcre/Makefile delete mode 100644 poky/meta/recipes-support/libpcre/libpcre/fix-pcre-name-collision.patch delete mode 100644 poky/meta/recipes-support/libpcre/libpcre/pcre-cross.patch delete mode 100644 poky/meta/recipes-support/libpcre/libpcre/run-ptest delete mode 100644 poky/meta/recipes-support/libpcre/libpcre2/pcre-cross.patch delete mode 100644 poky/meta/recipes-support/libpcre/libpcre2_10.30.bb delete mode 100644 poky/meta/recipes-support/libpcre/libpcre_8.41.bb delete mode 100644 poky/meta/recipes-support/libproxy/libproxy_0.4.15.bb delete mode 100644 poky/meta/recipes-support/libsoup/libsoup-2.4_2.60.2.bb delete mode 100644 poky/meta/recipes-support/libunistring/libunistring/0001-Unset-need_charset_alias-when-building-for-musl.patch delete mode 100644 poky/meta/recipes-support/libunistring/libunistring/iconv-m4-remove-the-test-to-convert-euc-jp.patch delete mode 100644 poky/meta/recipes-support/libunistring/libunistring_0.9.7.bb delete mode 100644 poky/meta/recipes-support/libunwind/libunwind.inc delete mode 100644 poky/meta/recipes-support/libunwind/libunwind/0001-Fix-build-on-mips-musl.patch delete mode 100644 poky/meta/recipes-support/libunwind/libunwind/0001-add-knobs-to-disable-enable-tests.patch delete mode 100644 poky/meta/recipes-support/libunwind/libunwind/0001-backtrace-Use-only-with-glibc-and-uclibc.patch delete mode 100644 poky/meta/recipes-support/libunwind/libunwind/0001-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch delete mode 100644 poky/meta/recipes-support/libunwind/libunwind/0001-x86-Stub-out-x86_local_resume.patch delete mode 100644 poky/meta/recipes-support/libunwind/libunwind/Add-AO_REQUIRE_CAS-to-fix-build-on-ARM-v6.patch delete mode 100644 poky/meta/recipes-support/libunwind/libunwind/fix-mips.patch delete mode 100644 poky/meta/recipes-support/libunwind/libunwind/libunwind-1.1-x32.patch delete mode 100644 poky/meta/recipes-support/libunwind/libunwind/musl-header-conflict.patch delete mode 100644 poky/meta/recipes-support/libunwind/libunwind_1.2.bb delete mode 100644 poky/meta/recipes-support/liburcu/liburcu_0.10.0.bb delete mode 100644 poky/meta/recipes-support/libusb/libusb-compat/0001-usb.h-Include-sys-types.h.patch delete mode 100644 poky/meta/recipes-support/libusb/libusb-compat_0.1.5.bb delete mode 100644 poky/meta/recipes-support/libusb/libusb1/no-dll.patch delete mode 100644 poky/meta/recipes-support/libusb/libusb1_1.0.21.bb delete mode 100644 poky/meta/recipes-support/libxslt/libxslt/pkgconfig_fix.patch delete mode 100644 poky/meta/recipes-support/libxslt/libxslt_1.1.32.bb delete mode 100644 poky/meta/recipes-support/libyaml/libyaml_0.1.7.bb delete mode 100644 poky/meta/recipes-support/lz4/files/0001-tests-Makefile-don-t-use-LIBDIR-as-variable.patch delete mode 100644 poky/meta/recipes-support/lz4/files/run-ptest delete mode 100644 poky/meta/recipes-support/lz4/lz4_1.7.4.bb delete mode 100644 poky/meta/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch delete mode 100644 poky/meta/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinventing-it.patch delete mode 100644 poky/meta/recipes-support/lzo/lzo/acinclude.m4 delete mode 100644 poky/meta/recipes-support/lzo/lzo/run-ptest delete mode 100644 poky/meta/recipes-support/lzo/lzo_2.10.bb delete mode 100644 poky/meta/recipes-support/lzop/lzop/0001-use-static-inlines-as-the-external-inline-definition.patch delete mode 100644 poky/meta/recipes-support/lzop/lzop/acinclude.m4 delete mode 100644 poky/meta/recipes-support/lzop/lzop/lzop-1.03-gcc6.patch delete mode 100644 poky/meta/recipes-support/lzop/lzop/x32_abi_miniacc_h.patch delete mode 100644 poky/meta/recipes-support/lzop/lzop_1.03.bb delete mode 100644 poky/meta/recipes-support/mpfr/mpfr.inc delete mode 100644 poky/meta/recipes-support/mpfr/mpfr/long-long-thumb.patch delete mode 100644 poky/meta/recipes-support/mpfr/mpfr_3.1.5.bb delete mode 100644 poky/meta/recipes-support/nettle/nettle-3.4/Add-target-to-only-build-tests-not-run-them.patch delete mode 100644 poky/meta/recipes-support/nettle/nettle-3.4/check-header-files-of-openssl-only-if-enable_.patch delete mode 100644 poky/meta/recipes-support/nettle/nettle-3.4/dlopen-test.patch delete mode 100644 poky/meta/recipes-support/nettle/nettle-3.4/run-ptest delete mode 100644 poky/meta/recipes-support/nettle/nettle_3.4.bb delete mode 100644 poky/meta/recipes-support/npth/npth/pkgconfig.patch delete mode 100644 poky/meta/recipes-support/npth/npth_1.5.bb delete mode 100644 poky/meta/recipes-support/nspr/nspr/0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch delete mode 100644 poky/meta/recipes-support/nspr/nspr/0001-md-Fix-build-with-musl.patch delete mode 100644 poky/meta/recipes-support/nspr/nspr/0002-Add-nios2-support.patch delete mode 100644 poky/meta/recipes-support/nspr/nspr/fix-build-on-x86_64.patch delete mode 100644 poky/meta/recipes-support/nspr/nspr/nspr.pc.in delete mode 100644 poky/meta/recipes-support/nspr/nspr/remove-rpath-from-tests.patch delete mode 100644 poky/meta/recipes-support/nspr/nspr/remove-srcdir-from-configure-in.patch delete mode 100644 poky/meta/recipes-support/nspr/nspr_4.17.bb delete mode 100644 poky/meta/recipes-support/nss-myhostname/nss-myhostname/0001-nss-myhostname-Check-for-nss.h-presense-before-use.patch delete mode 100644 poky/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb delete mode 100644 poky/meta/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch delete mode 100644 poky/meta/recipes-support/nss/nss/Fix-compilation-for-X32.patch delete mode 100644 poky/meta/recipes-support/nss/nss/disable-Wvarargs-with-clang.patch delete mode 100644 poky/meta/recipes-support/nss/nss/nss-fix-incorrect-shebang-of-perl.patch delete mode 100644 poky/meta/recipes-support/nss/nss/nss-fix-nsinstall-build.patch delete mode 100644 poky/meta/recipes-support/nss/nss/nss-no-rpath-for-cross-compiling.patch delete mode 100644 poky/meta/recipes-support/nss/nss/nss.pc.in delete mode 100644 poky/meta/recipes-support/nss/nss/pqg.c-ULL_addend.patch delete mode 100644 poky/meta/recipes-support/nss/nss/signlibs.sh delete mode 100644 poky/meta/recipes-support/nss/nss_3.34.bb delete mode 100644 poky/meta/recipes-support/p11-kit/p11-kit_0.22.1.bb delete mode 100644 poky/meta/recipes-support/pinentry/pinentry-1.0.0/gpg-error_pkconf.patch delete mode 100644 poky/meta/recipes-support/pinentry/pinentry-1.0.0/libassuan_pkgconf.patch delete mode 100644 poky/meta/recipes-support/pinentry/pinentry_1.0.0.bb delete mode 100644 poky/meta/recipes-support/popt/popt/disable_tests.patch delete mode 100644 poky/meta/recipes-support/popt/popt/pkgconfig_fix.patch delete mode 100644 poky/meta/recipes-support/popt/popt/popt_fix_for_automake-1.12.patch delete mode 100644 poky/meta/recipes-support/popt/popt_1.16.bb delete mode 100644 poky/meta/recipes-support/ptest-runner/ptest-runner_2.1.bb delete mode 100644 poky/meta/recipes-support/re2c/re2c/mkdir.patch delete mode 100644 poky/meta/recipes-support/re2c/re2c_0.16.bb delete mode 100644 poky/meta/recipes-support/rng-tools/rng-tools/0001-If-the-libc-is-lacking-argp-use-libargp.patch delete mode 100644 poky/meta/recipes-support/rng-tools/rng-tools/0002-Add-argument-to-control-the-libargp-dependency.patch delete mode 100644 poky/meta/recipes-support/rng-tools/rng-tools/default delete mode 100644 poky/meta/recipes-support/rng-tools/rng-tools/init delete mode 100644 poky/meta/recipes-support/rng-tools/rng-tools/rng-tools-5-fix-textrels-on-PIC-x86.patch delete mode 100644 poky/meta/recipes-support/rng-tools/rng-tools/rngd.service delete mode 100644 poky/meta/recipes-support/rng-tools/rng-tools/underquote.patch delete mode 100644 poky/meta/recipes-support/rng-tools/rng-tools_5.bb delete mode 100644 poky/meta/recipes-support/serf/serf/env.patch delete mode 100644 poky/meta/recipes-support/serf/serf/norpath.patch delete mode 100644 poky/meta/recipes-support/serf/serf_1.3.9.bb delete mode 100644 poky/meta/recipes-support/shared-mime-info/shared-mime-info.inc delete mode 100644 poky/meta/recipes-support/shared-mime-info/shared-mime-info/install-data-hook.patch delete mode 100644 poky/meta/recipes-support/shared-mime-info/shared-mime-info/parallelmake.patch delete mode 100644 poky/meta/recipes-support/shared-mime-info/shared-mime-info_1.9.bb delete mode 100644 poky/meta/recipes-support/source-highlight/files/0001-source-highlight.pc.in-do-not-add-Boost-s-libraries-.patch delete mode 100644 poky/meta/recipes-support/source-highlight/source-highlight_3.1.8.bb delete mode 100644 poky/meta/recipes-support/sqlite/sqlite3.inc delete mode 100644 poky/meta/recipes-support/sqlite/sqlite3_3.21.0.bb delete mode 100644 poky/meta/recipes-support/taglib/taglib/CVE-2017-12678.patch delete mode 100644 poky/meta/recipes-support/taglib/taglib_1.11.1.bb delete mode 100644 poky/meta/recipes-support/user-creation/files/system-xuser.conf delete mode 100644 poky/meta/recipes-support/user-creation/xuser-account_0.1.bb delete mode 100644 poky/meta/recipes-support/vte/vte/0001-Add-m4-vapigen.m4.patch delete mode 100644 poky/meta/recipes-support/vte/vte/0001-Don-t-enable-stack-protection-by-default.patch delete mode 100644 poky/meta/recipes-support/vte/vte_0.50.1.bb delete mode 100644 poky/meta/recipes.txt delete mode 100644 poky/meta/site/arm-32 delete mode 100644 poky/meta/site/arm-64 delete mode 100644 poky/meta/site/arm-common delete mode 100644 poky/meta/site/arm-darwin delete mode 100644 poky/meta/site/arm-darwin8 delete mode 100644 poky/meta/site/arm-linux delete mode 100644 poky/meta/site/armeb-linux delete mode 100644 poky/meta/site/common delete mode 100644 poky/meta/site/common-darwin delete mode 100644 poky/meta/site/common-glibc delete mode 100644 poky/meta/site/common-linux delete mode 100644 poky/meta/site/common-mingw delete mode 100644 poky/meta/site/common-musl delete mode 100644 poky/meta/site/endian-big delete mode 100644 poky/meta/site/endian-little delete mode 100644 poky/meta/site/ix86-common delete mode 100644 poky/meta/site/microblaze-linux delete mode 100644 poky/meta/site/mips-common delete mode 100644 poky/meta/site/mips-linux delete mode 100644 poky/meta/site/mips64-linux delete mode 100644 poky/meta/site/mips64el-linux delete mode 100644 poky/meta/site/mipsel-linux delete mode 100644 poky/meta/site/mipsisa32r6-linux delete mode 100644 poky/meta/site/mipsisa32r6el-linux delete mode 100644 poky/meta/site/mipsisa64r6-linux delete mode 100644 poky/meta/site/mipsisa64r6el-linux delete mode 100644 poky/meta/site/native delete mode 100644 poky/meta/site/nios2-linux delete mode 100644 poky/meta/site/powerpc-common delete mode 100644 poky/meta/site/powerpc-darwin delete mode 100644 poky/meta/site/powerpc-linux delete mode 100644 poky/meta/site/powerpc32-linux delete mode 100644 poky/meta/site/powerpc64-linux delete mode 100644 poky/meta/site/riscv32-linux delete mode 100644 poky/meta/site/riscv64-linux delete mode 100644 poky/meta/site/sh-common delete mode 100644 poky/meta/site/sparc-linux delete mode 100644 poky/meta/site/x32-linux delete mode 100644 poky/meta/site/x86_64-linux delete mode 100755 poky/oe-init-build-env delete mode 100644 poky/scripts/README delete mode 100755 poky/scripts/bitbake-prserv-tool delete mode 100755 poky/scripts/bitbake-whatchanged delete mode 100755 poky/scripts/buildhistory-collect-srcrevs delete mode 100755 poky/scripts/buildhistory-diff delete mode 100755 poky/scripts/buildstats-diff delete mode 100755 poky/scripts/combo-layer delete mode 100755 poky/scripts/combo-layer-hook-default.sh delete mode 100644 poky/scripts/combo-layer.conf.example delete mode 100755 poky/scripts/contrib/bb-perf/bb-matrix-plot.sh delete mode 100755 poky/scripts/contrib/bb-perf/bb-matrix.sh delete mode 100755 poky/scripts/contrib/bb-perf/buildstats-plot.sh delete mode 100755 poky/scripts/contrib/bb-perf/buildstats.sh delete mode 100755 poky/scripts/contrib/bbvars.py delete mode 100755 poky/scripts/contrib/build-perf-test-wrapper.sh delete mode 100755 poky/scripts/contrib/build-perf-test.sh delete mode 100755 poky/scripts/contrib/ddimage delete mode 100755 poky/scripts/contrib/devtool-stress.py delete mode 100755 poky/scripts/contrib/dialog-power-control delete mode 100755 poky/scripts/contrib/documentation-audit.sh delete mode 100755 poky/scripts/contrib/graph-tool delete mode 100755 poky/scripts/contrib/list-packageconfig-flags.py delete mode 100755 poky/scripts/contrib/mkefidisk.sh delete mode 100755 poky/scripts/contrib/oe-build-perf-report-email.py delete mode 100755 poky/scripts/contrib/patchreview.py delete mode 100755 poky/scripts/contrib/patchtest.sh delete mode 100755 poky/scripts/contrib/python/generate-manifest-2.7.py delete mode 100755 poky/scripts/contrib/python/generate-manifest-3.5.py delete mode 100755 poky/scripts/contrib/serdevtry delete mode 100755 poky/scripts/contrib/test_build_time.sh delete mode 100755 poky/scripts/contrib/test_build_time_worker.sh delete mode 100755 poky/scripts/contrib/uncovered delete mode 100755 poky/scripts/contrib/verify-homepage.py delete mode 100755 poky/scripts/contrib/yocto-bsp-kernel-update.sh delete mode 100755 poky/scripts/cp-noerror delete mode 100755 poky/scripts/create-pull-request delete mode 100755 poky/scripts/crosstap delete mode 100755 poky/scripts/devtool delete mode 100755 poky/scripts/gen-lockedsig-cache delete mode 100755 poky/scripts/gen-site-config delete mode 100644 poky/scripts/lib/argparse_oe.py delete mode 100644 poky/scripts/lib/build_perf/__init__.py delete mode 100644 poky/scripts/lib/build_perf/html.py delete mode 100644 poky/scripts/lib/build_perf/html/measurement_chart.html delete mode 100644 poky/scripts/lib/build_perf/html/report.html delete mode 100644 poky/scripts/lib/build_perf/report.py delete mode 100644 poky/scripts/lib/build_perf/scrape-html-report.js delete mode 100644 poky/scripts/lib/buildstats.py delete mode 100644 poky/scripts/lib/checklayer/__init__.py delete mode 100644 poky/scripts/lib/checklayer/case.py delete mode 100644 poky/scripts/lib/checklayer/cases/__init__.py delete mode 100644 poky/scripts/lib/checklayer/cases/bsp.py delete mode 100644 poky/scripts/lib/checklayer/cases/common.py delete mode 100644 poky/scripts/lib/checklayer/cases/distro.py delete mode 100644 poky/scripts/lib/checklayer/context.py delete mode 100644 poky/scripts/lib/devtool/__init__.py delete mode 100644 poky/scripts/lib/devtool/build.py delete mode 100644 poky/scripts/lib/devtool/build_image.py delete mode 100644 poky/scripts/lib/devtool/build_sdk.py delete mode 100644 poky/scripts/lib/devtool/deploy.py delete mode 100644 poky/scripts/lib/devtool/export.py delete mode 100644 poky/scripts/lib/devtool/import.py delete mode 100644 poky/scripts/lib/devtool/package.py delete mode 100644 poky/scripts/lib/devtool/runqemu.py delete mode 100644 poky/scripts/lib/devtool/sdk.py delete mode 100644 poky/scripts/lib/devtool/search.py delete mode 100644 poky/scripts/lib/devtool/standard.py delete mode 100644 poky/scripts/lib/devtool/upgrade.py delete mode 100644 poky/scripts/lib/devtool/utilcmds.py delete mode 100644 poky/scripts/lib/recipetool/__init__.py delete mode 100644 poky/scripts/lib/recipetool/append.py delete mode 100644 poky/scripts/lib/recipetool/create.py delete mode 100644 poky/scripts/lib/recipetool/create_buildsys.py delete mode 100644 poky/scripts/lib/recipetool/create_buildsys_python.py delete mode 100644 poky/scripts/lib/recipetool/create_kernel.py delete mode 100644 poky/scripts/lib/recipetool/create_kmod.py delete mode 100644 poky/scripts/lib/recipetool/create_npm.py delete mode 100644 poky/scripts/lib/recipetool/newappend.py delete mode 100644 poky/scripts/lib/recipetool/setvar.py delete mode 100644 poky/scripts/lib/scriptpath.py delete mode 100644 poky/scripts/lib/scriptutils.py delete mode 100644 poky/scripts/lib/wic/__init__.py delete mode 100644 poky/scripts/lib/wic/canned-wks/common.wks.inc delete mode 100644 poky/scripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg delete mode 100644 poky/scripts/lib/wic/canned-wks/directdisk-bootloader-config.wks delete mode 100644 poky/scripts/lib/wic/canned-wks/directdisk-gpt.wks delete mode 100644 poky/scripts/lib/wic/canned-wks/directdisk-multi-rootfs.wks delete mode 100644 poky/scripts/lib/wic/canned-wks/directdisk.wks delete mode 100644 poky/scripts/lib/wic/canned-wks/mkefidisk.wks delete mode 100644 poky/scripts/lib/wic/canned-wks/mkhybridiso.wks delete mode 100644 poky/scripts/lib/wic/canned-wks/qemux86-directdisk.wks delete mode 100644 poky/scripts/lib/wic/canned-wks/sdimage-bootpart.wks delete mode 100644 poky/scripts/lib/wic/canned-wks/systemd-bootdisk.wks delete mode 100644 poky/scripts/lib/wic/engine.py delete mode 100644 poky/scripts/lib/wic/filemap.py delete mode 100644 poky/scripts/lib/wic/help.py delete mode 100644 poky/scripts/lib/wic/ksparser.py delete mode 100644 poky/scripts/lib/wic/misc.py delete mode 100644 poky/scripts/lib/wic/partition.py delete mode 100644 poky/scripts/lib/wic/pluginbase.py delete mode 100644 poky/scripts/lib/wic/plugins/imager/direct.py delete mode 100644 poky/scripts/lib/wic/plugins/source/bootimg-efi.py delete mode 100644 poky/scripts/lib/wic/plugins/source/bootimg-partition.py delete mode 100644 poky/scripts/lib/wic/plugins/source/bootimg-pcbios.py delete mode 100644 poky/scripts/lib/wic/plugins/source/isoimage-isohybrid.py delete mode 100644 poky/scripts/lib/wic/plugins/source/rawcopy.py delete mode 100644 poky/scripts/lib/wic/plugins/source/rootfs.py delete mode 100755 poky/scripts/lnr delete mode 100644 poky/scripts/multilib_header_wrapper.h delete mode 100755 poky/scripts/native-intercept/chown delete mode 100755 poky/scripts/oe-build-perf-report delete mode 100755 poky/scripts/oe-build-perf-test delete mode 100755 poky/scripts/oe-buildenv-internal delete mode 100755 poky/scripts/oe-check-sstate delete mode 100755 poky/scripts/oe-find-native-sysroot delete mode 100755 poky/scripts/oe-git-archive delete mode 100755 poky/scripts/oe-git-proxy delete mode 100755 poky/scripts/oe-gnome-terminal-phonehome delete mode 100755 poky/scripts/oe-pkgdata-util delete mode 100755 poky/scripts/oe-publish-sdk delete mode 100755 poky/scripts/oe-run-native delete mode 100755 poky/scripts/oe-selftest delete mode 100755 poky/scripts/oe-setup-builddir delete mode 100755 poky/scripts/oe-setup-rpmrepo delete mode 100755 poky/scripts/oe-test delete mode 100755 poky/scripts/oe-trim-schemas delete mode 100755 poky/scripts/oepydevshell-internal.py delete mode 100755 poky/scripts/opkg-query-helper.py delete mode 100755 poky/scripts/postinst-intercepts/postinst_intercept delete mode 100644 poky/scripts/postinst-intercepts/update_font_cache delete mode 100644 poky/scripts/postinst-intercepts/update_gio_module_cache delete mode 100644 poky/scripts/postinst-intercepts/update_icon_cache delete mode 100644 poky/scripts/postinst-intercepts/update_pixbuf_cache delete mode 100644 poky/scripts/pybootchartgui/AUTHORS delete mode 100644 poky/scripts/pybootchartgui/COPYING delete mode 100644 poky/scripts/pybootchartgui/MAINTAINERS delete mode 100644 poky/scripts/pybootchartgui/NEWS delete mode 100644 poky/scripts/pybootchartgui/README.pybootchart delete mode 100755 poky/scripts/pybootchartgui/pybootchartgui.py delete mode 100644 poky/scripts/pybootchartgui/pybootchartgui/__init__.py delete mode 100644 poky/scripts/pybootchartgui/pybootchartgui/batch.py delete mode 100644 poky/scripts/pybootchartgui/pybootchartgui/draw.py delete mode 100644 poky/scripts/pybootchartgui/pybootchartgui/gui.py delete mode 120000 poky/scripts/pybootchartgui/pybootchartgui/main.py delete mode 100644 poky/scripts/pybootchartgui/pybootchartgui/main.py.in delete mode 100644 poky/scripts/pybootchartgui/pybootchartgui/parsing.py delete mode 100644 poky/scripts/pybootchartgui/pybootchartgui/process_tree.py delete mode 100644 poky/scripts/pybootchartgui/pybootchartgui/samples.py delete mode 100644 poky/scripts/pybootchartgui/pybootchartgui/tests/parser_test.py delete mode 100644 poky/scripts/pybootchartgui/pybootchartgui/tests/process_tree_test.py delete mode 100755 poky/scripts/pythondeps delete mode 100755 poky/scripts/recipetool delete mode 100755 poky/scripts/relocate_sdk.py delete mode 100644 poky/scripts/rootfs_rpm-extract-postinst.awk delete mode 100755 poky/scripts/rpm2cpio.sh delete mode 100755 poky/scripts/runqemu delete mode 100755 poky/scripts/runqemu-addptable2image delete mode 100755 poky/scripts/runqemu-export-rootfs delete mode 100755 poky/scripts/runqemu-extract-sdk delete mode 100755 poky/scripts/runqemu-gen-tapdevs delete mode 100755 poky/scripts/runqemu-ifdown delete mode 100755 poky/scripts/runqemu-ifup delete mode 100644 poky/scripts/runqemu.README delete mode 100755 poky/scripts/send-error-report delete mode 100755 poky/scripts/send-pull-request delete mode 100755 poky/scripts/sstate-cache-management.sh delete mode 100755 poky/scripts/sstate-diff-machines.sh delete mode 100755 poky/scripts/sstate-sysroot-cruft.sh delete mode 100755 poky/scripts/sysroot-relativelinks.py delete mode 100755 poky/scripts/task-time delete mode 100755 poky/scripts/test-dependencies.sh delete mode 100755 poky/scripts/test-reexec delete mode 100755 poky/scripts/test-remote-image delete mode 100755 poky/scripts/tiny/dirsize.py delete mode 100755 poky/scripts/tiny/ksize.py delete mode 100755 poky/scripts/tiny/ksum.py delete mode 100755 poky/scripts/verify-bashisms delete mode 100755 poky/scripts/wic delete mode 100755 poky/scripts/yocto-check-layer delete mode 100755 poky/scripts/yocto-check-layer-wrapper diff --git a/poky/.gitignore b/poky/.gitignore deleted file mode 100644 index 94894d4..0000000 --- a/poky/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -*.pyc -*.pyo -/*.patch -/build*/ -pyshtables.py -pstage/ -scripts/oe-git-proxy-socks -sources/ -meta-*/ -!meta-skeleton -!meta-selftest -hob-image-*.bb -*.swp -*.orig -*.rej -*~ -!meta-poky -!meta-yocto -!meta-yocto-bsp -!meta-yocto-imported -documentation/user-manual/user-manual.html -documentation/user-manual/user-manual.pdf -documentation/user-manual/user-manual.tgz -pull-*/ -bitbake/lib/toaster/contrib/tts/backlog.txt -bitbake/lib/toaster/contrib/tts/log/* -bitbake/lib/toaster/contrib/tts/.cache/* \ No newline at end of file diff --git a/poky/.templateconf b/poky/.templateconf deleted file mode 100644 index 0fe6f82..0000000 --- a/poky/.templateconf +++ /dev/null @@ -1,2 +0,0 @@ -# Template settings -TEMPLATECONF=${TEMPLATECONF:-meta-poky/conf} diff --git a/poky/LICENSE b/poky/LICENSE deleted file mode 100644 index 21fa6e6..0000000 --- a/poky/LICENSE +++ /dev/null @@ -1,14 +0,0 @@ -Different components of OpenEmbedded are under different licenses (a mix -of MIT and GPLv2). Please see: - -meta/COPYING.GPLv2 (GPLv2) -meta/COPYING.MIT (MIT) -meta-selftest/COPYING.MIT (MIT) -meta-skeleton/COPYING.MIT (MIT) - -All metadata is MIT licensed unless otherwise stated. Source code -included in tree for individual recipes is under the LICENSE stated in -the associated recipe (.bb file) unless otherwise stated. - -License information for any other files is either explicitly stated -or defaults to GPL version 2. diff --git a/poky/README.LSB b/poky/README.LSB deleted file mode 100644 index c9dca3f..0000000 --- a/poky/README.LSB +++ /dev/null @@ -1,25 +0,0 @@ -OE-Core aims to be able to provide basic LSB compatible images. There -are some challenges for OE as LSB isn't always 100% relevant to its -target embedded and IoT audiences. - -One challenge is that the LSB spec is no longer being actively -developed [https://github.com/LinuxStandardBase/lsb] and has -components which are end of life or significantly dated. OE -therefore provides compatibility with the following caveats: - -* Qt4 is provided by the separate meta-qt4 layer. Its noted that Qt4 - is end of life and this isn't something the core project regularly - tests any longer. Users are recommended to group together to support - maintenance of that layer. [http://git.yoctoproject.org/cgit/cgit.cgi/meta-qt4/] - -* mailx has been dropped since its no longer being developed upstream - and there are better, more modern replacements such as s-nail - (http://sdaoden.eu/code.html) or mailutils (http://mailutils.org/). - -* A few perl modules that were required by LSB 4.x aren't provided: - libclass-isa, libenv, libdumpvalue, libfile-checktree, - libi18n-collate, libpod-plainer. - -* libpng 1.2 isn't provided; oe-core includes the latest release of libpng - instead. - diff --git a/poky/README.hardware b/poky/README.hardware deleted file mode 120000 index 8b6258d..0000000 --- a/poky/README.hardware +++ /dev/null @@ -1 +0,0 @@ -meta-yocto-bsp/README.hardware \ No newline at end of file diff --git a/poky/README.poky b/poky/README.poky deleted file mode 120000 index 1877dca..0000000 --- a/poky/README.poky +++ /dev/null @@ -1 +0,0 @@ -meta-poky/README.poky \ No newline at end of file diff --git a/poky/README.qemu b/poky/README.qemu deleted file mode 100644 index 9f56b7d..0000000 --- a/poky/README.qemu +++ /dev/null @@ -1,15 +0,0 @@ -QEMU Emulation Targets -====================== - -To simplify development, the build system supports building images to -work with the QEMU emulator in system emulation mode. Several architectures -are currently supported in 32 and 64 bit variants: - - * ARM (qemuarm + qemuarm64) - * x86 (qemux86 + qemux86-64) - * PowerPC (qemuppc only) - * MIPS (qemumips + qemumips64) - -Use of the QEMU images is covered in the Yocto Project Reference Manual. -The appropriate MACHINE variable value corresponding to the target is given -in brackets. diff --git a/poky/bitbake/AUTHORS b/poky/bitbake/AUTHORS deleted file mode 100644 index 91fd78f..0000000 --- a/poky/bitbake/AUTHORS +++ /dev/null @@ -1,10 +0,0 @@ -Tim Ansell -Phil Blundell -Seb Frankengul -Holger Freyther -Marcin Juszkiewicz -Chris Larson -Ulrich Luckas -Mickey Lauer -Richard Purdie -Holger Schurig diff --git a/poky/bitbake/COPYING b/poky/bitbake/COPYING deleted file mode 100644 index d511905..0000000 --- a/poky/bitbake/COPYING +++ /dev/null @@ -1,339 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/poky/bitbake/ChangeLog b/poky/bitbake/ChangeLog deleted file mode 100644 index 4ac2a64..0000000 --- a/poky/bitbake/ChangeLog +++ /dev/null @@ -1,317 +0,0 @@ -Changes in Bitbake 1.9.x: - - Add PE (Package Epoch) support from Philipp Zabel (pH5) - - Treat python functions the same as shell functions for logging - - Use TMPDIR/anonfunc as a __anonfunc temp directory (T) - - Catch truncated cache file errors - - Allow operations other than assignment on flag variables - - Add code to handle inter-task dependencies - - Fix cache errors when generation dotGraphs - - Make sure __inherit_cache is updated before calling include() (from Michael Krelin) - - Fix bug when target was in ASSUME_PROVIDED (#2236) - - Raise ParseError for filenames with multiple underscores instead of infinitely looping (#2062) - - Fix invalid regexp in BBMASK error handling (missing import) (#1124) - - Promote certain warnings from debug to note 2 level - - Update manual - - Correctly redirect stdin when forking - - If parsing errors are found, exit, too many users miss the errors - - Remove supriours PREFERRED_PROVIDER warnings - - svn fetcher: Add _buildsvncommand function - - Improve certain error messages - - Rewrite svn fetcher to make adding extra operations easier - as part of future SRCDATE="now" fixes - (requires new FETCHCMD_svn definition in bitbake.conf) - - Change SVNDIR layout to be more unique (fixes #2644 and #2624) - - Add ConfigParsed Event after configuration parsing is complete - - Add SRCREV support for svn fetcher - - data.emit_var() - only call getVar if we need the variable - - Stop generating the A variable (seems to be legacy code) - - Make sure intertask depends get processed correcting in recursive depends - - Add pn-PN to overrides when evaluating PREFERRED_VERSION - - Improve the progress indicator by skipping tasks that have - already run before starting the build rather than during it - - Add profiling option (-P) - - Add BB_SRCREV_POLICY variable (clear or cache) to control SRCREV cache - - Add SRCREV_FORMAT support - - Fix local fetcher's localpath return values - - Apply OVERRIDES before performing immediate expansions - - Allow the -b -e option combination to take regular expressions - - Fix handling of variables with expansion in the name using _append/_prepend - e.g. RRECOMMENDS_${PN}_append_xyz = "abc" - - Add plain message function to bb.msg - - Sort the list of providers before processing so dependency problems are - reproducible rather than effectively random - - Fix/improve bitbake -s output - - Add locking for fetchers so only one tries to fetch a given file at a given time - - Fix int(0)/None confusion in runqueue.py which causes random gaps in dependency chains - - Expand data in addtasks - - Print the list of missing DEPENDS,RDEPENDS for the "No buildable providers available for required...." - error message. - - Rework add_task to be more efficient (6% speedup, 7% number of function calls reduction) - - Sort digraph output to make builds more reproducible - - Split expandKeys into two for loops to benefit from the expand_cache (12% speedup) - - runqueue.py: Fix idepends handling to avoid dependency errors - - Clear the terminal TOSTOP flag if set (and warn the user) - - Fix regression from r653 and make SRCDATE/CVSDATE work for packages again - - Fix a bug in bb.decodeurl where http://some.where.com/somefile.tgz decoded to host="" (#1530) - - Warn about malformed PREFERRED_PROVIDERS (#1072) - - Add support for BB_NICE_LEVEL option (#1627) - - Psyco is used only on x86 as there is no support for other architectures. - - Sort initial providers list by default preference (#1145, #2024) - - Improve provider sorting so prefered versions have preference over latest versions (#768) - - Detect builds of tasks with overlapping providers and warn (will become a fatal error) (#1359) - - Add MULTI_PROVIDER_WHITELIST variable to allow known safe multiple providers to be listed - - Handle paths in svn fetcher module parameter - - Support the syntax "export VARIABLE" - - Add bzr fetcher - - Add support for cleaning directories before a task in the form: - do_taskname[cleandirs] = "dir" - - bzr fetcher tweaks from Robert Schuster (#2913) - - Add mercurial (hg) fetcher from Robert Schuster (#2913) - - Don't add duplicates to BBPATH - - Fix preferred_version return values (providers.py) - - Fix 'depends' flag splitting - - Fix unexport handling (#3135) - - Add bb.copyfile function similar to bb.movefile (and improve movefile error reporting) - - Allow multiple options for deptask flag - - Use git-fetch instead of git-pull removing any need for merges when - fetching (we don't care about the index). Fixes fetch errors. - - Add BB_GENERATE_MIRROR_TARBALLS option, set to 0 to make git fetches - faster at the expense of not creating mirror tarballs. - - SRCREV handling updates, improvements and fixes from Poky - - Add bb.utils.lockfile() and bb.utils.unlockfile() from Poky - - Add support for task selfstamp and lockfiles flags - - Disable task number acceleration since it can allow the tasks to run - out of sequence - - Improve runqueue code comments - - Add task scheduler abstraction and some example schedulers - - Improve circular dependency chain debugging code and user feedback - - Don't give a stacktrace for invalid tasks, have a user friendly message (#3431) - - Add support for "-e target" (#3432) - - Fix shell showdata command (#3259) - - Fix shell data updating problems (#1880) - - Properly raise errors for invalid source URI protocols - - Change the wget fetcher failure handling to avoid lockfile problems - - Add support for branches in git fetcher (Otavio Salvador, Michael Lauer) - - Make taskdata and runqueue errors more user friendly - - Add norecurse and fullpath options to cvs fetcher - - Fix exit code for build failures in --continue mode - - Fix git branch tags fetching - - Change parseConfigurationFile so it works on real data, not a copy - - Handle 'base' inherit and all other INHERITs from parseConfigurationFile - instead of BBHandler - - Fix getVarFlags bug in data_smart - - Optmise cache handling by more quickly detecting an invalid cache, only - saving the cache when its changed, moving the cache validity check into - the parsing loop and factoring some getVar calls outside a for loop - - Cooker: Remove a debug message from the parsing loop to lower overhead - - Convert build.py exec_task to use getVarFlags - - Update shell to use cooker.buildFile - - Add StampUpdate event - - Convert -b option to use taskdata/runqueue - - Remove digraph and switch to new stamp checking code. exec_task no longer - honours dependencies - - Make fetcher timestamp updating non-fatal when permissions don't allow - updates - - Add BB_SCHEDULER variable/option ("completion" or "speed") controlling - the way bitbake schedules tasks - - Add BB_STAMP_POLICY variable/option ("perfile" or "full") controlling - how extensively stamps are looked at for validity - - When handling build target failures make sure idepends are checked and - failed where needed. Fixes --continue mode crashes. - - Fix -f (force) in conjunction with -b - - Fix problems with recrdeptask handling where some idepends weren't handled - correctly. - - Handle exit codes correctly (from pH5) - - Work around refs/HEAD issues with git over http (#3410) - - Add proxy support to the CVS fetcher (from Cyril Chemparathy) - - Improve runfetchcmd so errors are seen and various GIT variables are exported - - Add ability to fetchers to check URL validity without downloading - - Improve runtime PREFERRED_PROVIDERS warning message - - Add BB_STAMP_WHITELIST option which contains a list of stamps to ignore when - checking stamp dependencies and using a BB_STAMP_POLICY of "whitelist" - - No longer weight providers on the basis of a package being "already staged". This - leads to builds being non-deterministic. - - Flush stdout/stderr before forking to fix duplicate console output - - Make sure recrdeps tasks include all inter-task dependencies of a given fn - - Add bb.runqueue.check_stamp_fn() for use by packaged-staging - - Add PERSISTENT_DIR to store the PersistData in a persistent - directory != the cache dir. - - Add md5 and sha256 checksum generation functions to utils.py - - Correctly handle '-' characters in class names (#2958) - - Make sure expandKeys has been called on the data dictionary before running tasks - - Correctly add a task override in the form task-TASKNAME. - - Revert the '-' character fix in class names since it breaks things - - When a regexp fails to compile for PACKAGES_DYNAMIC, print a more useful error (#4444) - - Allow to checkout CVS by Date and Time. Just add HHmm to the SRCDATE. - - Move prunedir function to utils.py and add explode_dep_versions function - - Raise an exception if SRCREV == 'INVALID' - - Fix hg fetcher username/password handling and fix crash - - Fix PACKAGES_DYNAMIC handling of packages with '++' in the name - - Rename __depends to __base_depends after configuration parsing so we don't - recheck the validity of the config files time after time - - Add better environmental variable handling. By default it will now only pass certain - whitelisted variables into the data store. If BB_PRESERVE_ENV is set bitbake will use - all variable from the environment. If BB_ENV_WHITELIST is set, that whitelist will be - used instead of the internal bitbake one. Alternatively, BB_ENV_EXTRAWHITE can be used - to extend the internal whitelist. - - Perforce fetcher fix to use commandline options instead of being overriden by the environment - - bb.utils.prunedir can cope with symlinks to directoriees without exceptions - - use @rev when doing a svn checkout - - Add osc fetcher (from Joshua Lock in Poky) - - When SRCREV autorevisioning for a recipe is in use, don't cache the recipe - - Add tryaltconfigs option to control whether bitbake trys using alternative providers - to fulfil failed dependencies. It defaults to off, changing the default since this - behaviour confuses many users and isn't often useful. - - Improve lock file function error handling - - Add username handling to the git fetcher (Robert Bragg) - - Add support for HTTP_PROXY and HTTP_PROXY_IGNORE variables to the wget fetcher - - Export more variables to the fetcher commands to allow ssh checkouts and checkouts through - proxies to work better. (from Poky) - - Also allow user and pswd options in SRC_URIs globally (from Poky) - - Improve proxy handling when using mirrors (from Poky) - - Add bb.utils.prune_suffix function - - Fix hg checkouts of specific revisions (from Poky) - - Fix wget fetching of urls with parameters specified (from Poky) - - Add username handling to git fetcher (from Poky) - - Set HOME environmental variable when running fetcher commands (from Poky) - - Make sure allowed variables inherited from the environment are exported again (from Poky) - - When running a stage task in bbshell, run populate_staging, not the stage task (from Poky) - - Fix + character escaping from PACKAGES_DYNAMIC (thanks Otavio Salvador) - - Addition of BBCLASSEXTEND support for allowing one recipe to provide multiple targets (from Poky) - -Changes in Bitbake 1.8.0: - - Release 1.7.x as a stable series - -Changes in BitBake 1.7.x: - - Major updates of the dependency handling and execution - of tasks. Code from bin/bitbake replaced with runqueue.py - and taskdata.py - - New task execution code supports multithreading with a simplistic - threading algorithm controlled by BB_NUMBER_THREADS - - Change of the SVN Fetcher to keep the checkout around - courtsey of Paul Sokolovsky (#1367) - - PATH fix to bbimage (#1108) - - Allow debug domains to be specified on the commandline (-l) - - Allow 'interactive' tasks - - Logging message improvements - - Drop now uneeded BUILD_ALL_DEPS variable - - Add support for wildcards to -b option - - Major overhaul of the fetchers making a large amount of code common - including mirroring code - - Fetchers now touch md5 stamps upon access (to show activity) - - Fix -f force option when used without -b (long standing bug) - - Add expand_cache to data_cache.py, caching expanded data (speedup) - - Allow version field in DEPENDS (ignored for now) - - Add abort flag support to the shell - - Make inherit fail if the class doesn't exist (#1478) - - Fix data.emit_env() to expand keynames as well as values - - Add ssh fetcher - - Add perforce fetcher - - Make PREFERRED_PROVIDER_foobar defaults to foobar if available - - Share the parser's mtime_cache, reducing the number of stat syscalls - - Compile all anonfuncs at once! - *** Anonfuncs must now use common spacing format *** - - Memorise the list of handlers in __BBHANDLERS and tasks in __BBTASKS - This removes 2 million function calls resulting in a 5-10% speedup - - Add manpage - - Update generateDotGraph to use taskData/runQueue improving accuracy - and also adding a task dependency graph - - Fix/standardise on GPLv2 licence - - Move most functionality from bin/bitbake to cooker.py and split into - separate funcitons - - CVS fetcher: Added support for non-default port - - Add BBINCLUDELOGS_LINES, the number of lines to read from any logfile - - Drop shebangs from lib/bb scripts - -Changes in Bitbake 1.6.0: - - Better msg handling - - COW dict implementation from Tim Ansell (mithro) leading - to better performance - - Speed up of -s - -Changes in Bitbake 1.4.4: - - SRCDATE now handling courtsey Justin Patrin - - #1017 fix to work with rm_work - -Changes in BitBake 1.4.2: - - Send logs to oe.pastebin.com instead of pastebin.com - fixes #856 - - Copy the internal bitbake data before building the - dependency graph. This fixes nano not having a - virtual/libc dependency - - Allow multiple TARBALL_STASH entries - - Cache, check if the directory exists before changing - into it - - git speedup cloning by not doing a checkout - - allow to have spaces in filenames (.conf, .bb, .bbclass) - -Changes in BitBake 1.4.0: - - Fix to check both RDEPENDS and RDEPENDS_${PN} - - Fix a RDEPENDS parsing bug in utils:explode_deps() - - Update git fetcher behaviour to match git changes - - ASSUME_PROVIDED allowed to include runtime packages - - git fetcher cleanup and efficency improvements - - Change the format of the cache - - Update usermanual to document the Fetchers - - Major changes to caching with a new strategy - giving a major performance increase when reparsing - with few data changes - -Changes in BitBake 1.3.3: - - Create a new Fetcher module to ease the - development of new Fetchers. - Issue #438 fixed by rpurdie@openedhand.com - - Make the Subversion fetcher honor the SRC Date - (CVSDATE). - Issue #555 fixed by chris@openedhand.com - - Expand PREFERRED_PROVIDER properly - Issue #436 fixed by rprudie@openedhand.com - - Typo fix for Issue #531 by Philipp Zabel for the - BitBake Shell - - Introduce a new special variable SRCDATE as - a generic naming to replace CVSDATE. - - Introduce a new keyword 'required'. In contrast - to 'include' parsing will fail if a to be included - file can not be found. - - Remove hardcoding of the STAMP directory. Patch - courtsey pHilipp Zabel - - Track the RDEPENDS of each package (rpurdie@openedhand.com) - - Introduce BUILD_ALL_DEPS to build all RDEPENDS. E.g - this is used by the OpenEmbedded Meta Packages. - (rpurdie@openedhand.com). - -Changes in BitBake 1.3.2: - - reintegration of make.py into BitBake - - bbread is gone, use bitbake -e - - lots of shell updates and bugfixes - - Introduction of the .= and =. operator - - Sort variables, keys and groups in bitdoc - - Fix regression in the handling of BBCOLLECTIONS - - Update the bitbake usermanual - -Changes in BitBake 1.3.0: - - add bitbake interactive shell (bitbake -i) - - refactor bitbake utility in OO style - - kill default arguments in methods in the bb.data module - - kill default arguments in methods in the bb.fetch module - - the http/https/ftp fetcher will fail if the to be - downloaded file was not found in DL_DIR (this is needed - to avoid unpacking the sourceforge mirror page) - - Switch to a cow like data instance for persistent and non - persisting mode (called data_smart.py) - - Changed the callback of bb.make.collect_bbfiles to carry - additional parameters - - Drastically reduced the amount of needed RAM by not holding - each data instance in memory when using a cache/persistent - storage - -Changes in BitBake 1.2.1: - The 1.2.1 release is meant as a intermediate release to lay the - ground for more radical changes. The most notable changes are: - - - Do not hardcode {}, use bb.data.init() instead if you want to - get a instance of a data class - - bb.data.init() is a factory and the old bb.data methods are delegates - - Do not use deepcopy use bb.data.createCopy() instead. - - Removed default arguments in bb.fetch - diff --git a/poky/bitbake/HEADER b/poky/bitbake/HEADER deleted file mode 100644 index 9859255..0000000 --- a/poky/bitbake/HEADER +++ /dev/null @@ -1,19 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# -# Copyright (C) -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - diff --git a/poky/bitbake/LICENSE b/poky/bitbake/LICENSE deleted file mode 100644 index 7d4e5f4..0000000 --- a/poky/bitbake/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -BitBake is licensed under the GNU General Public License version 2.0. See COPYING for further details. - -The following external components are distributed with this software: - -* The Toaster Simple UI application is based upon the Django project template, the files of which are covered by the BSD license and are copyright (c) Django Software -Foundation and individual contributors. - -* Twitter Bootstrap (including Glyphicons), redistributed under the MIT license -* jQuery is redistributed under the MIT license. - -* Twitter typeahead.js redistributed under the MIT license. Note that the JS source has one small modification, so the full unminified file is currently included to make it obvious where this is. - -* jsrender is redistributed under the MIT license. - -* QUnit is redistributed under the MIT license. - -* Font Awesome fonts redistributed under the SIL Open Font License 1.1 - -* simplediff is distributed under the zlib license. diff --git a/poky/bitbake/README b/poky/bitbake/README deleted file mode 100644 index 479c376..0000000 --- a/poky/bitbake/README +++ /dev/null @@ -1,35 +0,0 @@ -Bitbake -======= - -BitBake is a generic task execution engine that allows shell and Python tasks to be run -efficiently and in parallel while working within complex inter-task dependency constraints. -One of BitBake's main users, OpenEmbedded, takes this core and builds embedded Linux software -stacks using a task-oriented approach. - -For information about Bitbake, see the OpenEmbedded website: - http://www.openembedded.org/ - -Bitbake plain documentation can be found under the doc directory or its integrated -html version at the Yocto Project website: - http://yoctoproject.org/documentation - -Contributing ------------- - -Please refer to -http://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded -for guidelines on how to submit patches, just note that the latter documentation is intended -for OpenEmbedded (and its core) not bitbake patches (bitbake-devel@lists.openembedded.org) -but in general main guidelines apply. Once the commit(s) have been created, the way to send -the patch is through git-send-email. For example, to send the last commit (HEAD) on current -branch, type: - - git send-email -M -1 --to bitbake-devel@lists.openembedded.org - -Mailing list: - - http://lists.openembedded.org/mailman/listinfo/bitbake-devel - -Source code: - - http://git.openembedded.org/bitbake/ diff --git a/poky/bitbake/bin/bitbake b/poky/bitbake/bin/bitbake deleted file mode 100755 index 95e4109..0000000 --- a/poky/bitbake/bin/bitbake +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env python3 -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2003, 2004 Phil Blundell -# Copyright (C) 2003 - 2005 Michael 'Mickey' Lauer -# Copyright (C) 2005 Holger Hans Peter Freyther -# Copyright (C) 2005 ROAD GmbH -# Copyright (C) 2006 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os -import sys - -sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), - 'lib')) -try: - import bb -except RuntimeError as exc: - sys.exit(str(exc)) - -from bb import cookerdata -from bb.main import bitbake_main, BitBakeConfigParameters, BBMainException - -if sys.getfilesystemencoding() != "utf-8": - sys.exit("Please use a locale setting which supports UTF-8 (such as LANG=en_US.UTF-8).\nPython can't change the filesystem locale after loading so we need a UTF-8 when Python starts or things won't work.") - -__version__ = "1.37.0" - -if __name__ == "__main__": - if __version__ != bb.__version__: - sys.exit("Bitbake core version and program version mismatch!") - try: - sys.exit(bitbake_main(BitBakeConfigParameters(sys.argv), - cookerdata.CookerConfiguration())) - except BBMainException as err: - sys.exit(err) - except bb.BBHandledException: - sys.exit(1) - except Exception: - import traceback - traceback.print_exc() - sys.exit(1) diff --git a/poky/bitbake/bin/bitbake-diffsigs b/poky/bitbake/bin/bitbake-diffsigs deleted file mode 100755 index 4e6bbdd..0000000 --- a/poky/bitbake/bin/bitbake-diffsigs +++ /dev/null @@ -1,183 +0,0 @@ -#!/usr/bin/env python3 - -# bitbake-diffsigs -# BitBake task signature data comparison utility -# -# Copyright (C) 2012-2013, 2017 Intel Corporation -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os -import sys -import warnings -import fnmatch -import argparse -import logging -import pickle - -sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) - -import bb.tinfoil -import bb.siggen -import bb.msg - -logger = bb.msg.logger_create('bitbake-diffsigs') - -def find_siginfo(tinfoil, pn, taskname, sigs=None): - result = None - tinfoil.set_event_mask(['bb.event.FindSigInfoResult', - 'logging.LogRecord', - 'bb.command.CommandCompleted', - 'bb.command.CommandFailed']) - ret = tinfoil.run_command('findSigInfo', pn, taskname, sigs) - if ret: - while True: - event = tinfoil.wait_event(1) - if event: - if isinstance(event, bb.command.CommandCompleted): - break - elif isinstance(event, bb.command.CommandFailed): - logger.error(str(event)) - sys.exit(2) - elif isinstance(event, bb.event.FindSigInfoResult): - result = event.result - elif isinstance(event, logging.LogRecord): - logger.handle(event) - else: - logger.error('No result returned from findSigInfo command') - sys.exit(2) - return result - -def find_compare_task(bbhandler, pn, taskname, sig1=None, sig2=None, color=False): - """ Find the most recent signature files for the specified PN/task and compare them """ - - if not taskname.startswith('do_'): - taskname = 'do_%s' % taskname - - if sig1 and sig2: - sigfiles = find_siginfo(bbhandler, pn, taskname, [sig1, sig2]) - if len(sigfiles) == 0: - logger.error('No sigdata files found matching %s %s matching either %s or %s' % (pn, taskname, sig1, sig2)) - sys.exit(1) - elif not sig1 in sigfiles: - logger.error('No sigdata files found matching %s %s with signature %s' % (pn, taskname, sig1)) - sys.exit(1) - elif not sig2 in sigfiles: - logger.error('No sigdata files found matching %s %s with signature %s' % (pn, taskname, sig2)) - sys.exit(1) - latestfiles = [sigfiles[sig1], sigfiles[sig2]] - else: - filedates = find_siginfo(bbhandler, pn, taskname) - latestfiles = sorted(filedates.keys(), key=lambda f: filedates[f])[-3:] - if not latestfiles: - logger.error('No sigdata files found matching %s %s' % (pn, taskname)) - sys.exit(1) - elif len(latestfiles) < 2: - logger.error('Only one matching sigdata file found for the specified task (%s %s)' % (pn, taskname)) - sys.exit(1) - - # Define recursion callback - def recursecb(key, hash1, hash2): - hashes = [hash1, hash2] - hashfiles = find_siginfo(bbhandler, key, None, hashes) - - recout = [] - if len(hashfiles) == 0: - recout.append("Unable to find matching sigdata for %s with hashes %s or %s" % (key, hash1, hash2)) - elif not hash1 in hashfiles: - recout.append("Unable to find matching sigdata for %s with hash %s" % (key, hash1)) - elif not hash2 in hashfiles: - recout.append("Unable to find matching sigdata for %s with hash %s" % (key, hash2)) - else: - out2 = bb.siggen.compare_sigfiles(hashfiles[hash1], hashfiles[hash2], recursecb, color=color) - for change in out2: - for line in change.splitlines(): - recout.append(' ' + line) - - return recout - - # Recurse into signature comparison - logger.debug("Signature file (previous): %s" % latestfiles[-2]) - logger.debug("Signature file (latest): %s" % latestfiles[-1]) - output = bb.siggen.compare_sigfiles(latestfiles[-2], latestfiles[-1], recursecb, color=color) - if output: - print('\n'.join(output)) - sys.exit(0) - - - -parser = argparse.ArgumentParser( - description="Compares siginfo/sigdata files written out by BitBake") - -parser.add_argument('-d', '--debug', - help='Enable debug output', - action='store_true') - -parser.add_argument('--color', - help='Colorize output (where %(metavar)s is %(choices)s)', - choices=['auto', 'always', 'never'], default='auto', metavar='color') - -parser.add_argument("-t", "--task", - help="find the signature data files for last two runs of the specified task and compare them", - action="store", dest="taskargs", nargs=2, metavar=('recipename', 'taskname')) - -parser.add_argument("-s", "--signature", - help="With -t/--task, specify the signatures to look for instead of taking the last two", - action="store", dest="sigargs", nargs=2, metavar=('fromsig', 'tosig')) - -parser.add_argument("sigdatafile1", - help="First signature file to compare (or signature file to dump, if second not specified). Not used when using -t/--task.", - action="store", nargs='?') - -parser.add_argument("sigdatafile2", - help="Second signature file to compare", - action="store", nargs='?') - - -options = parser.parse_args() - -if options.debug: - logger.setLevel(logging.DEBUG) - -color = (options.color == 'always' or (options.color == 'auto' and sys.stdout.isatty())) - -if options.taskargs: - with bb.tinfoil.Tinfoil() as tinfoil: - tinfoil.prepare(config_only=True) - if options.sigargs: - find_compare_task(tinfoil, options.taskargs[0], options.taskargs[1], options.sigargs[0], options.sigargs[1], color=color) - else: - find_compare_task(tinfoil, options.taskargs[0], options.taskargs[1], color=color) -else: - if options.sigargs: - logger.error('-s/--signature can only be used together with -t/--task') - sys.exit(1) - try: - if options.sigdatafile1 and options.sigdatafile2: - output = bb.siggen.compare_sigfiles(options.sigdatafile1, options.sigdatafile2, color=color) - elif options.sigdatafile1: - output = bb.siggen.dump_sigfile(options.sigdatafile1) - else: - logger.error('Must specify signature file(s) or -t/--task') - parser.print_help() - sys.exit(1) - except IOError as e: - logger.error(str(e)) - sys.exit(1) - except (pickle.UnpicklingError, EOFError): - logger.error('Invalid signature data - ensure you are specifying sigdata/siginfo files') - sys.exit(1) - - if output: - print('\n'.join(output)) diff --git a/poky/bitbake/bin/bitbake-dumpsig b/poky/bitbake/bin/bitbake-dumpsig deleted file mode 100755 index 95ebd93..0000000 --- a/poky/bitbake/bin/bitbake-dumpsig +++ /dev/null @@ -1,94 +0,0 @@ -#!/usr/bin/env python3 - -# bitbake-dumpsig -# BitBake task signature dump utility -# -# Copyright (C) 2013 Intel Corporation -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os -import sys -import warnings -import optparse -import logging -import pickle - -sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) - -import bb.tinfoil -import bb.siggen -import bb.msg - -logger = bb.msg.logger_create('bitbake-dumpsig') - -def find_siginfo_task(bbhandler, pn, taskname): - """ Find the most recent signature file for the specified PN/task """ - - if not hasattr(bb.siggen, 'find_siginfo'): - logger.error('Metadata does not support finding signature data files') - sys.exit(1) - - if not taskname.startswith('do_'): - taskname = 'do_%s' % taskname - - filedates = bb.siggen.find_siginfo(pn, taskname, None, bbhandler.config_data) - latestfiles = sorted(filedates.keys(), key=lambda f: filedates[f])[-1:] - if not latestfiles: - logger.error('No sigdata files found matching %s %s' % (pn, taskname)) - sys.exit(1) - - return latestfiles[0] - -parser = optparse.OptionParser( - description = "Dumps siginfo/sigdata files written out by BitBake", - usage = """ - %prog -t recipename taskname - %prog sigdatafile""") - -parser.add_option("-D", "--debug", - help = "enable debug", - action = "store_true", dest="debug", default = False) - -parser.add_option("-t", "--task", - help = "find the signature data file for the specified task", - action="store", dest="taskargs", nargs=2, metavar='recipename taskname') - -options, args = parser.parse_args(sys.argv) - -if options.debug: - logger.setLevel(logging.DEBUG) - -if options.taskargs: - tinfoil = bb.tinfoil.Tinfoil() - tinfoil.prepare(config_only = True) - file = find_siginfo_task(tinfoil, options.taskargs[0], options.taskargs[1]) - logger.debug("Signature file: %s" % file) -elif len(args) == 1: - parser.print_help() - sys.exit(0) -else: - file = args[1] - -try: - output = bb.siggen.dump_sigfile(file) -except IOError as e: - logger.error(str(e)) - sys.exit(1) -except (pickle.UnpicklingError, EOFError): - logger.error('Invalid signature data - ensure you are specifying a sigdata/siginfo file') - sys.exit(1) - -if output: - print('\n'.join(output)) diff --git a/poky/bitbake/bin/bitbake-layers b/poky/bitbake/bin/bitbake-layers deleted file mode 100755 index d184011..0000000 --- a/poky/bitbake/bin/bitbake-layers +++ /dev/null @@ -1,110 +0,0 @@ -#!/usr/bin/env python3 - -# This script has subcommands which operate against your bitbake layers, either -# displaying useful information, or acting against them. -# See the help output for details on available commands. - -# Copyright (C) 2011 Mentor Graphics Corporation -# Copyright (C) 2011-2015 Intel Corporation -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import logging -import os -import sys -import argparse -import signal - -bindir = os.path.dirname(__file__) -topdir = os.path.dirname(bindir) -sys.path[0:0] = [os.path.join(topdir, 'lib')] - -import bb.tinfoil -import bb.msg - -logger = bb.msg.logger_create('bitbake-layers', sys.stdout) - -def main(): - signal.signal(signal.SIGPIPE, signal.SIG_DFL) - parser = argparse.ArgumentParser( - description="BitBake layers utility", - epilog="Use %(prog)s --help to get help on a specific command", - add_help=False) - parser.add_argument('-d', '--debug', help='Enable debug output', action='store_true') - parser.add_argument('-q', '--quiet', help='Print only errors', action='store_true') - parser.add_argument('-F', '--force', help='Force add without recipe parse verification', action='store_true') - parser.add_argument('--color', choices=['auto', 'always', 'never'], default='auto', help='Colorize output (where %(metavar)s is %(choices)s)', metavar='COLOR') - - global_args, unparsed_args = parser.parse_known_args() - - # Help is added here rather than via add_help=True, as we don't want it to - # be handled by parse_known_args() - parser.add_argument('-h', '--help', action='help', default=argparse.SUPPRESS, - help='show this help message and exit') - subparsers = parser.add_subparsers(title='subcommands', metavar='') - subparsers.required = True - - if global_args.debug: - logger.setLevel(logging.DEBUG) - elif global_args.quiet: - logger.setLevel(logging.ERROR) - - # Need to re-run logger_create with color argument - # (will be the same logger since it has the same name) - bb.msg.logger_create('bitbake-layers', output=sys.stdout, color=global_args.color) - - plugins = [] - tinfoil = bb.tinfoil.Tinfoil(tracking=True) - tinfoil.logger.setLevel(logger.getEffectiveLevel()) - try: - tinfoil.prepare(True) - for path in ([topdir] + - tinfoil.config_data.getVar('BBPATH').split(':')): - pluginpath = os.path.join(path, 'lib', 'bblayers') - bb.utils.load_plugins(logger, plugins, pluginpath) - - registered = False - for plugin in plugins: - if hasattr(plugin, 'register_commands'): - registered = True - plugin.register_commands(subparsers) - if hasattr(plugin, 'tinfoil_init'): - plugin.tinfoil_init(tinfoil) - - if not registered: - logger.error("No commands registered - missing plugins?") - sys.exit(1) - - args = parser.parse_args(unparsed_args, namespace=global_args) - - if getattr(args, 'parserecipes', False): - tinfoil.config_data.disableTracking() - tinfoil.parse_recipes() - tinfoil.config_data.enableTracking() - - return args.func(args) - finally: - tinfoil.shutdown() - - -if __name__ == "__main__": - try: - ret = main() - except bb.BBHandledException: - ret = 1 - except Exception: - ret = 1 - import traceback - traceback.print_exc() - sys.exit(ret) diff --git a/poky/bitbake/bin/bitbake-prserv b/poky/bitbake/bin/bitbake-prserv deleted file mode 100755 index f38d2dd..0000000 --- a/poky/bitbake/bin/bitbake-prserv +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env python3 -import os -import sys,logging -import optparse - -sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)),'lib')) - -import prserv -import prserv.serv - -__version__="1.0.0" - -PRHOST_DEFAULT='0.0.0.0' -PRPORT_DEFAULT=8585 - -def main(): - parser = optparse.OptionParser( - version="Bitbake PR Service Core version %s, %%prog version %s" % (prserv.__version__, __version__), - usage = "%prog < --start | --stop > [options]") - - parser.add_option("-f", "--file", help="database filename(default: prserv.sqlite3)", action="store", - dest="dbfile", type="string", default="prserv.sqlite3") - parser.add_option("-l", "--log", help="log filename(default: prserv.log)", action="store", - dest="logfile", type="string", default="prserv.log") - parser.add_option("--loglevel", help="logging level, i.e. CRITICAL, ERROR, WARNING, INFO, DEBUG", - action = "store", type="string", dest="loglevel", default = "INFO") - parser.add_option("--start", help="start daemon", - action="store_true", dest="start") - parser.add_option("--stop", help="stop daemon", - action="store_true", dest="stop") - parser.add_option("--host", help="ip address to bind", action="store", - dest="host", type="string", default=PRHOST_DEFAULT) - parser.add_option("--port", help="port number(default: 8585)", action="store", - dest="port", type="int", default=PRPORT_DEFAULT) - - options, args = parser.parse_args(sys.argv) - prserv.init_logger(os.path.abspath(options.logfile),options.loglevel) - - if options.start: - ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile)) - elif options.stop: - ret=prserv.serv.stop_daemon(options.host, options.port) - else: - ret=parser.print_help() - return ret - -if __name__ == "__main__": - try: - ret = main() - except Exception: - ret = 1 - import traceback - traceback.print_exc() - sys.exit(ret) - diff --git a/poky/bitbake/bin/bitbake-selftest b/poky/bitbake/bin/bitbake-selftest deleted file mode 100755 index afe1603..0000000 --- a/poky/bitbake/bin/bitbake-selftest +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env python3 -# -# Copyright (C) 2012 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os -import sys, logging -sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib')) - -import unittest -try: - import bb -except RuntimeError as exc: - sys.exit(str(exc)) - -tests = ["bb.tests.codeparser", - "bb.tests.cow", - "bb.tests.data", - "bb.tests.event", - "bb.tests.fetch", - "bb.tests.parse", - "bb.tests.utils"] - -for t in tests: - t = '.'.join(t.split('.')[:3]) - __import__(t) - - -# Set-up logging -class StdoutStreamHandler(logging.StreamHandler): - """Special handler so that unittest is able to capture stdout""" - def __init__(self): - # Override __init__() because we don't want to set self.stream here - logging.Handler.__init__(self) - - @property - def stream(self): - # We want to dynamically write wherever sys.stdout is pointing to - return sys.stdout - - -handler = StdoutStreamHandler() -bb.logger.addHandler(handler) -bb.logger.setLevel(logging.DEBUG) - - -ENV_HELP = """\ -Environment variables: - BB_SKIP_NETTESTS set to 'yes' in order to skip tests using network - connection - BB_TMPDIR_NOCLEAN set to 'yes' to preserve test tmp directories -""" - -class main(unittest.main): - def _print_help(self, *args, **kwargs): - super(main, self)._print_help(*args, **kwargs) - print(ENV_HELP) - - -if __name__ == '__main__': - main(defaultTest=tests, buffer=True) diff --git a/poky/bitbake/bin/bitbake-worker b/poky/bitbake/bin/bitbake-worker deleted file mode 100755 index e925054..0000000 --- a/poky/bitbake/bin/bitbake-worker +++ /dev/null @@ -1,501 +0,0 @@ -#!/usr/bin/env python3 - -import os -import sys -import warnings -sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) -from bb import fetch2 -import logging -import bb -import select -import errno -import signal -import pickle -import traceback -import queue -from multiprocessing import Lock -from threading import Thread - -if sys.getfilesystemencoding() != "utf-8": - sys.exit("Please use a locale setting which supports UTF-8 (such as LANG=en_US.UTF-8).\nPython can't change the filesystem locale after loading so we need a UTF-8 when Python starts or things won't work.") - -# Users shouldn't be running this code directly -if len(sys.argv) != 2 or not sys.argv[1].startswith("decafbad"): - print("bitbake-worker is meant for internal execution by bitbake itself, please don't use it standalone.") - sys.exit(1) - -profiling = False -if sys.argv[1].startswith("decafbadbad"): - profiling = True - try: - import cProfile as profile - except: - import profile - -# Unbuffer stdout to avoid log truncation in the event -# of an unorderly exit as well as to provide timely -# updates to log files for use with tail -try: - if sys.stdout.name == '': - import fcntl - fl = fcntl.fcntl(sys.stdout.fileno(), fcntl.F_GETFL) - fl |= os.O_SYNC - fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL, fl) - #sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) -except: - pass - -logger = logging.getLogger("BitBake") - -worker_pipe = sys.stdout.fileno() -bb.utils.nonblockingfd(worker_pipe) -# Need to guard against multiprocessing being used in child processes -# and multiple processes trying to write to the parent at the same time -worker_pipe_lock = None - -handler = bb.event.LogHandler() -logger.addHandler(handler) - -if 0: - # Code to write out a log file of all events passing through the worker - logfilename = "/tmp/workerlogfile" - format_str = "%(levelname)s: %(message)s" - conlogformat = bb.msg.BBLogFormatter(format_str) - consolelog = logging.FileHandler(logfilename) - bb.msg.addDefaultlogFilter(consolelog) - consolelog.setFormatter(conlogformat) - logger.addHandler(consolelog) - -worker_queue = queue.Queue() - -def worker_fire(event, d): - data = b"" + pickle.dumps(event) + b"" - worker_fire_prepickled(data) - -def worker_fire_prepickled(event): - global worker_queue - - worker_queue.put(event) - -# -# We can end up with write contention with the cooker, it can be trying to send commands -# and we can be trying to send event data back. Therefore use a separate thread for writing -# back data to cooker. -# -worker_thread_exit = False - -def worker_flush(worker_queue): - worker_queue_int = b"" - global worker_pipe, worker_thread_exit - - while True: - try: - worker_queue_int = worker_queue_int + worker_queue.get(True, 1) - except queue.Empty: - pass - while (worker_queue_int or not worker_queue.empty()): - try: - (_, ready, _) = select.select([], [worker_pipe], [], 1) - if not worker_queue.empty(): - worker_queue_int = worker_queue_int + worker_queue.get() - written = os.write(worker_pipe, worker_queue_int) - worker_queue_int = worker_queue_int[written:] - except (IOError, OSError) as e: - if e.errno != errno.EAGAIN and e.errno != errno.EPIPE: - raise - if worker_thread_exit and worker_queue.empty() and not worker_queue_int: - return - -worker_thread = Thread(target=worker_flush, args=(worker_queue,)) -worker_thread.start() - -def worker_child_fire(event, d): - global worker_pipe - global worker_pipe_lock - - data = b"" + pickle.dumps(event) + b"" - try: - worker_pipe_lock.acquire() - worker_pipe.write(data) - worker_pipe_lock.release() - except IOError: - sigterm_handler(None, None) - raise - -bb.event.worker_fire = worker_fire - -lf = None -#lf = open("/tmp/workercommandlog", "w+") -def workerlog_write(msg): - if lf: - lf.write(msg) - lf.flush() - -def sigterm_handler(signum, frame): - signal.signal(signal.SIGTERM, signal.SIG_DFL) - os.killpg(0, signal.SIGTERM) - sys.exit() - -def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, appends, taskdepdata, extraconfigdata, quieterrors=False, dry_run_exec=False): - # We need to setup the environment BEFORE the fork, since - # a fork() or exec*() activates PSEUDO... - - envbackup = {} - fakeenv = {} - umask = None - - taskdep = workerdata["taskdeps"][fn] - if 'umask' in taskdep and taskname in taskdep['umask']: - # umask might come in as a number or text string.. - try: - umask = int(taskdep['umask'][taskname],8) - except TypeError: - umask = taskdep['umask'][taskname] - - dry_run = cfg.dry_run or dry_run_exec - - # We can't use the fakeroot environment in a dry run as it possibly hasn't been built - if 'fakeroot' in taskdep and taskname in taskdep['fakeroot'] and not dry_run: - envvars = (workerdata["fakerootenv"][fn] or "").split() - for key, value in (var.split('=') for var in envvars): - envbackup[key] = os.environ.get(key) - os.environ[key] = value - fakeenv[key] = value - - fakedirs = (workerdata["fakerootdirs"][fn] or "").split() - for p in fakedirs: - bb.utils.mkdirhier(p) - logger.debug(2, 'Running %s:%s under fakeroot, fakedirs: %s' % - (fn, taskname, ', '.join(fakedirs))) - else: - envvars = (workerdata["fakerootnoenv"][fn] or "").split() - for key, value in (var.split('=') for var in envvars): - envbackup[key] = os.environ.get(key) - os.environ[key] = value - fakeenv[key] = value - - sys.stdout.flush() - sys.stderr.flush() - - try: - pipein, pipeout = os.pipe() - pipein = os.fdopen(pipein, 'rb', 4096) - pipeout = os.fdopen(pipeout, 'wb', 0) - pid = os.fork() - except OSError as e: - logger.critical("fork failed: %d (%s)" % (e.errno, e.strerror)) - sys.exit(1) - - if pid == 0: - def child(): - global worker_pipe - global worker_pipe_lock - pipein.close() - - signal.signal(signal.SIGTERM, sigterm_handler) - # Let SIGHUP exit as SIGTERM - signal.signal(signal.SIGHUP, sigterm_handler) - bb.utils.signal_on_parent_exit("SIGTERM") - - # Save out the PID so that the event can include it the - # events - bb.event.worker_pid = os.getpid() - bb.event.worker_fire = worker_child_fire - worker_pipe = pipeout - worker_pipe_lock = Lock() - - # Make the child the process group leader and ensure no - # child process will be controlled by the current terminal - # This ensures signals sent to the controlling terminal like Ctrl+C - # don't stop the child processes. - os.setsid() - # No stdin - newsi = os.open(os.devnull, os.O_RDWR) - os.dup2(newsi, sys.stdin.fileno()) - - if umask: - os.umask(umask) - - try: - bb_cache = bb.cache.NoCache(databuilder) - (realfn, virtual, mc) = bb.cache.virtualfn2realfn(fn) - the_data = databuilder.mcdata[mc] - the_data.setVar("BB_WORKERCONTEXT", "1") - the_data.setVar("BB_TASKDEPDATA", taskdepdata) - if cfg.limited_deps: - the_data.setVar("BB_LIMITEDDEPS", "1") - the_data.setVar("BUILDNAME", workerdata["buildname"]) - the_data.setVar("DATE", workerdata["date"]) - the_data.setVar("TIME", workerdata["time"]) - for varname, value in extraconfigdata.items(): - the_data.setVar(varname, value) - - bb.parse.siggen.set_taskdata(workerdata["sigdata"]) - ret = 0 - - the_data = bb_cache.loadDataFull(fn, appends) - the_data.setVar('BB_TASKHASH', workerdata["runq_hash"][task]) - - bb.utils.set_process_name("%s:%s" % (the_data.getVar("PN"), taskname.replace("do_", ""))) - - # exported_vars() returns a generator which *cannot* be passed to os.environ.update() - # successfully. We also need to unset anything from the environment which shouldn't be there - exports = bb.data.exported_vars(the_data) - - bb.utils.empty_environment() - for e, v in exports: - os.environ[e] = v - - for e in fakeenv: - os.environ[e] = fakeenv[e] - the_data.setVar(e, fakeenv[e]) - the_data.setVarFlag(e, 'export', "1") - - task_exports = the_data.getVarFlag(taskname, 'exports') - if task_exports: - for e in task_exports.split(): - the_data.setVarFlag(e, 'export', '1') - v = the_data.getVar(e) - if v is not None: - os.environ[e] = v - - if quieterrors: - the_data.setVarFlag(taskname, "quieterrors", "1") - - except Exception: - if not quieterrors: - logger.critical(traceback.format_exc()) - os._exit(1) - try: - if dry_run: - return 0 - return bb.build.exec_task(fn, taskname, the_data, cfg.profile) - except: - os._exit(1) - if not profiling: - os._exit(child()) - else: - profname = "profile-%s.log" % (fn.replace("/", "-") + "-" + taskname) - prof = profile.Profile() - try: - ret = profile.Profile.runcall(prof, child) - finally: - prof.dump_stats(profname) - bb.utils.process_profilelog(profname) - os._exit(ret) - else: - for key, value in iter(envbackup.items()): - if value is None: - del os.environ[key] - else: - os.environ[key] = value - - return pid, pipein, pipeout - -class runQueueWorkerPipe(): - """ - Abstraction for a pipe between a worker thread and the worker server - """ - def __init__(self, pipein, pipeout): - self.input = pipein - if pipeout: - pipeout.close() - bb.utils.nonblockingfd(self.input) - self.queue = b"" - - def read(self): - start = len(self.queue) - try: - self.queue = self.queue + (self.input.read(102400) or b"") - except (OSError, IOError) as e: - if e.errno != errno.EAGAIN: - raise - - end = len(self.queue) - index = self.queue.find(b"") - while index != -1: - worker_fire_prepickled(self.queue[:index+8]) - self.queue = self.queue[index+8:] - index = self.queue.find(b"") - return (end > start) - - def close(self): - while self.read(): - continue - if len(self.queue) > 0: - print("Warning, worker child left partial message: %s" % self.queue) - self.input.close() - -normalexit = False - -class BitbakeWorker(object): - def __init__(self, din): - self.input = din - bb.utils.nonblockingfd(self.input) - self.queue = b"" - self.cookercfg = None - self.databuilder = None - self.data = None - self.extraconfigdata = None - self.build_pids = {} - self.build_pipes = {} - - signal.signal(signal.SIGTERM, self.sigterm_exception) - # Let SIGHUP exit as SIGTERM - signal.signal(signal.SIGHUP, self.sigterm_exception) - if "beef" in sys.argv[1]: - bb.utils.set_process_name("Worker (Fakeroot)") - else: - bb.utils.set_process_name("Worker") - - def sigterm_exception(self, signum, stackframe): - if signum == signal.SIGTERM: - bb.warn("Worker received SIGTERM, shutting down...") - elif signum == signal.SIGHUP: - bb.warn("Worker received SIGHUP, shutting down...") - self.handle_finishnow(None) - signal.signal(signal.SIGTERM, signal.SIG_DFL) - os.kill(os.getpid(), signal.SIGTERM) - - def serve(self): - while True: - (ready, _, _) = select.select([self.input] + [i.input for i in self.build_pipes.values()], [] , [], 1) - if self.input in ready: - try: - r = self.input.read() - if len(r) == 0: - # EOF on pipe, server must have terminated - self.sigterm_exception(signal.SIGTERM, None) - self.queue = self.queue + r - except (OSError, IOError): - pass - if len(self.queue): - self.handle_item(b"cookerconfig", self.handle_cookercfg) - self.handle_item(b"extraconfigdata", self.handle_extraconfigdata) - self.handle_item(b"workerdata", self.handle_workerdata) - self.handle_item(b"runtask", self.handle_runtask) - self.handle_item(b"finishnow", self.handle_finishnow) - self.handle_item(b"ping", self.handle_ping) - self.handle_item(b"quit", self.handle_quit) - - for pipe in self.build_pipes: - if self.build_pipes[pipe].input in ready: - self.build_pipes[pipe].read() - if len(self.build_pids): - while self.process_waitpid(): - continue - - - def handle_item(self, item, func): - if self.queue.startswith(b"<" + item + b">"): - index = self.queue.find(b"") - while index != -1: - func(self.queue[(len(item) + 2):index]) - self.queue = self.queue[(index + len(item) + 3):] - index = self.queue.find(b"") - - def handle_cookercfg(self, data): - self.cookercfg = pickle.loads(data) - self.databuilder = bb.cookerdata.CookerDataBuilder(self.cookercfg, worker=True) - self.databuilder.parseBaseConfiguration() - self.data = self.databuilder.data - - def handle_extraconfigdata(self, data): - self.extraconfigdata = pickle.loads(data) - - def handle_workerdata(self, data): - self.workerdata = pickle.loads(data) - bb.msg.loggerDefaultDebugLevel = self.workerdata["logdefaultdebug"] - bb.msg.loggerDefaultVerbose = self.workerdata["logdefaultverbose"] - bb.msg.loggerVerboseLogs = self.workerdata["logdefaultverboselogs"] - bb.msg.loggerDefaultDomains = self.workerdata["logdefaultdomain"] - for mc in self.databuilder.mcdata: - self.databuilder.mcdata[mc].setVar("PRSERV_HOST", self.workerdata["prhost"]) - - def handle_ping(self, _): - workerlog_write("Handling ping\n") - - logger.warning("Pong from bitbake-worker!") - - def handle_quit(self, data): - workerlog_write("Handling quit\n") - - global normalexit - normalexit = True - sys.exit(0) - - def handle_runtask(self, data): - fn, task, taskname, quieterrors, appends, taskdepdata, dry_run_exec = pickle.loads(data) - workerlog_write("Handling runtask %s %s %s\n" % (task, fn, taskname)) - - pid, pipein, pipeout = fork_off_task(self.cookercfg, self.data, self.databuilder, self.workerdata, fn, task, taskname, appends, taskdepdata, self.extraconfigdata, quieterrors, dry_run_exec) - - self.build_pids[pid] = task - self.build_pipes[pid] = runQueueWorkerPipe(pipein, pipeout) - - def process_waitpid(self): - """ - Return none is there are no processes awaiting result collection, otherwise - collect the process exit codes and close the information pipe. - """ - try: - pid, status = os.waitpid(-1, os.WNOHANG) - if pid == 0 or os.WIFSTOPPED(status): - return False - except OSError: - return False - - workerlog_write("Exit code of %s for pid %s\n" % (status, pid)) - - if os.WIFEXITED(status): - status = os.WEXITSTATUS(status) - elif os.WIFSIGNALED(status): - # Per shell conventions for $?, when a process exits due to - # a signal, we return an exit code of 128 + SIGNUM - status = 128 + os.WTERMSIG(status) - - task = self.build_pids[pid] - del self.build_pids[pid] - - self.build_pipes[pid].close() - del self.build_pipes[pid] - - worker_fire_prepickled(b"" + pickle.dumps((task, status)) + b"") - - return True - - def handle_finishnow(self, _): - if self.build_pids: - logger.info("Sending SIGTERM to remaining %s tasks", len(self.build_pids)) - for k, v in iter(self.build_pids.items()): - try: - os.kill(-k, signal.SIGTERM) - os.waitpid(-1, 0) - except: - pass - for pipe in self.build_pipes: - self.build_pipes[pipe].read() - -try: - worker = BitbakeWorker(os.fdopen(sys.stdin.fileno(), 'rb')) - if not profiling: - worker.serve() - else: - profname = "profile-worker.log" - prof = profile.Profile() - try: - profile.Profile.runcall(prof, worker.serve) - finally: - prof.dump_stats(profname) - bb.utils.process_profilelog(profname) -except BaseException as e: - if not normalexit: - import traceback - sys.stderr.write(traceback.format_exc()) - sys.stderr.write(str(e)) - -worker_thread_exit = True -worker_thread.join() - -workerlog_write("exitting") -sys.exit(0) diff --git a/poky/bitbake/bin/bitdoc b/poky/bitbake/bin/bitdoc deleted file mode 100755 index 2744678..0000000 --- a/poky/bitbake/bin/bitdoc +++ /dev/null @@ -1,531 +0,0 @@ -#!/usr/bin/env python3 -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# Copyright (C) 2005 Holger Hans Peter Freyther -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import optparse, os, sys - -# bitbake -sys.path.append(os.path.join(os.path.dirname(os.path.dirname(__file__), 'lib')) -import bb -import bb.parse -from string import split, join - -__version__ = "0.0.2" - -class HTMLFormatter: - """ - Simple class to help to generate some sort of HTML files. It is - quite inferior solution compared to docbook, gtkdoc, doxygen but it - should work for now. - We've a global introduction site (index.html) and then one site for - the list of keys (alphabetical sorted) and one for the list of groups, - one site for each key with links to the relations and groups. - - index.html - all_keys.html - all_groups.html - groupNAME.html - keyNAME.html - """ - - def replace(self, text, *pairs): - """ - From pydoc... almost identical at least - """ - while pairs: - (a, b) = pairs[0] - text = join(split(text, a), b) - pairs = pairs[1:] - return text - def escape(self, text): - """ - Escape string to be conform HTML - """ - return self.replace(text, - ('&', '&'), - ('<', '<' ), - ('>', '>' ) ) - def createNavigator(self): - """ - Create the navgiator - """ - return """ - - - - - -""" - - def relatedKeys(self, item): - """ - Create HTML to link to foreign keys - """ - - if len(item.related()) == 0: - return "" - - txt = "

See also:
" - txts = [] - for it in item.related(): - txts.append("""%(it)s""" % vars() ) - - return txt + ",".join(txts) - - def groups(self, item): - """ - Create HTML to link to related groups - """ - - if len(item.groups()) == 0: - return "" - - - txt = "

See also:
" - txts = [] - for group in item.groups(): - txts.append( """%s """ % (group, group) ) - - return txt + ",".join(txts) - - - def createKeySite(self, item): - """ - Create a site for a key. It contains the header/navigator, a heading, - the description, links to related keys and to the groups. - """ - - return """ -Key %s - - -%s -

%s

- -
-

Synopsis

-

-%s -

-
- -
-

Related Keys

-

-%s -

-
- -
-

Groups

-

-%s -

-
- - - -""" % (item.name(), self.createNavigator(), item.name(), - self.escape(item.description()), self.relatedKeys(item), self.groups(item)) - - def createGroupsSite(self, doc): - """ - Create the Group Overview site - """ - - groups = "" - sorted_groups = sorted(doc.groups()) - for group in sorted_groups: - groups += """%s
""" % (group, group) - - return """ -Group overview - - -%s -

Available Groups

-%s - -""" % (self.createNavigator(), groups) - - def createIndex(self): - """ - Create the index file - """ - - return """ -Bitbake Documentation - - -%s -

Documentation Entrance

-All available groups
-All available keys
- -""" % self.createNavigator() - - def createKeysSite(self, doc): - """ - Create Overview of all avilable keys - """ - keys = "" - sorted_keys = sorted(doc.doc_keys()) - for key in sorted_keys: - keys += """%s
""" % (key, key) - - return """ -Key overview - - -%s -

Available Keys

-%s - -""" % (self.createNavigator(), keys) - - def createGroupSite(self, gr, items, _description = None): - """ - Create a site for a group: - Group the name of the group, items contain the name of the keys - inside this group - """ - groups = "" - description = "" - - # create a section with the group descriptions - if _description: - description += "

" % gr - description += _description - - items.sort(lambda x, y:cmp(x.name(), y.name())) - for group in items: - groups += """%s
""" % (group.name(), group.name()) - - return """ -Group %s - - -%s -%s -
-

Keys in Group %s

-
-%s
-
-
- -""" % (gr, self.createNavigator(), description, gr, groups) - - - - def createCSS(self): - """ - Create the CSS file - """ - return """.synopsis, .classsynopsis -{ - background: #eeeeee; - border: solid 1px #aaaaaa; - padding: 0.5em; -} -.programlisting -{ - background: #eeeeff; - border: solid 1px #aaaaff; - padding: 0.5em; -} -.variablelist -{ - padding: 4px; - margin-left: 3em; -} -.variablelist td:first-child -{ - vertical-align: top; -} -table.navigation -{ - background: #ffeeee; - border: solid 1px #ffaaaa; - margin-top: 0.5em; - margin-bottom: 0.5em; -} -.navigation a -{ - color: #770000; -} -.navigation a:visited -{ - color: #550000; -} -.navigation .title -{ - font-size: 200%; -} -div.refnamediv -{ - margin-top: 2em; -} -div.gallery-float -{ - float: left; - padding: 10px; -} -div.gallery-float img -{ - border-style: none; -} -div.gallery-spacer -{ - clear: both; -} -a -{ - text-decoration: none; -} -a:hover -{ - text-decoration: underline; - color: #FF0000; -} -""" - - - -class DocumentationItem: - """ - A class to hold information about a configuration - item. It contains the key name, description, a list of related names, - and the group this item is contained in. - """ - - def __init__(self): - self._groups = [] - self._related = [] - self._name = "" - self._desc = "" - - def groups(self): - return self._groups - - def name(self): - return self._name - - def description(self): - return self._desc - - def related(self): - return self._related - - def setName(self, name): - self._name = name - - def setDescription(self, desc): - self._desc = desc - - def addGroup(self, group): - self._groups.append(group) - - def addRelation(self, relation): - self._related.append(relation) - - def sort(self): - self._related.sort() - self._groups.sort() - - -class Documentation: - """ - Holds the documentation... with mappings from key to items... - """ - - def __init__(self): - self.__keys = {} - self.__groups = {} - - def insert_doc_item(self, item): - """ - Insert the Doc Item into the internal list - of representation - """ - item.sort() - self.__keys[item.name()] = item - - for group in item.groups(): - if not group in self.__groups: - self.__groups[group] = [] - self.__groups[group].append(item) - self.__groups[group].sort() - - - def doc_item(self, key): - """ - Return the DocumentationInstance describing the key - """ - try: - return self.__keys[key] - except KeyError: - return None - - def doc_keys(self): - """ - Return the documented KEYS (names) - """ - return self.__keys.keys() - - def groups(self): - """ - Return the names of available groups - """ - return self.__groups.keys() - - def group_content(self, group_name): - """ - Return a list of keys/names that are in a specefic - group or the empty list - """ - try: - return self.__groups[group_name] - except KeyError: - return [] - - -def parse_cmdline(args): - """ - Parse the CMD line and return the result as a n-tuple - """ - - parser = optparse.OptionParser( version = "Bitbake Documentation Tool Core version %s, %%prog version %s" % (bb.__version__, __version__)) - usage = """%prog [options] - -Create a set of html pages (documentation) for a bitbake.conf.... -""" - - # Add the needed options - parser.add_option( "-c", "--config", help = "Use the specified configuration file as source", - action = "store", dest = "config", default = os.path.join("conf", "documentation.conf") ) - - parser.add_option( "-o", "--output", help = "Output directory for html files", - action = "store", dest = "output", default = "html/" ) - - parser.add_option( "-D", "--debug", help = "Increase the debug level", - action = "count", dest = "debug", default = 0 ) - - parser.add_option( "-v", "--verbose", help = "output more chit-char to the terminal", - action = "store_true", dest = "verbose", default = False ) - - options, args = parser.parse_args( sys.argv ) - - bb.msg.init_msgconfig(options.verbose, options.debug) - - return options.config, options.output - -def main(): - """ - The main Method - """ - - (config_file, output_dir) = parse_cmdline( sys.argv ) - - # right to let us load the file now - try: - documentation = bb.parse.handle( config_file, bb.data.init() ) - except IOError: - bb.fatal( "Unable to open %s" % config_file ) - except bb.parse.ParseError: - bb.fatal( "Unable to parse %s" % config_file ) - - if isinstance(documentation, dict): - documentation = documentation[""] - - # Assuming we've the file loaded now, we will initialize the 'tree' - doc = Documentation() - - # defined states - state_begin = 0 - state_see = 1 - state_group = 2 - - for key in bb.data.keys(documentation): - data = documentation.getVarFlag(key, "doc", False) - if not data: - continue - - # The Documentation now starts - doc_ins = DocumentationItem() - doc_ins.setName(key) - - - tokens = data.split(' ') - state = state_begin - string= "" - for token in tokens: - token = token.strip(',') - - if not state == state_see and token == "@see": - state = state_see - continue - elif not state == state_group and token == "@group": - state = state_group - continue - - if state == state_begin: - string += " %s" % token - elif state == state_see: - doc_ins.addRelation(token) - elif state == state_group: - doc_ins.addGroup(token) - - # set the description - doc_ins.setDescription(string) - doc.insert_doc_item(doc_ins) - - # let us create the HTML now - bb.utils.mkdirhier(output_dir) - os.chdir(output_dir) - - # Let us create the sites now. We do it in the following order - # Start with the index.html. It will point to sites explaining all - # keys and groups - html_slave = HTMLFormatter() - - f = file('style.css', 'w') - print >> f, html_slave.createCSS() - - f = file('index.html', 'w') - print >> f, html_slave.createIndex() - - f = file('all_groups.html', 'w') - print >> f, html_slave.createGroupsSite(doc) - - f = file('all_keys.html', 'w') - print >> f, html_slave.createKeysSite(doc) - - # now for each group create the site - for group in doc.groups(): - f = file('group%s.html' % group, 'w') - print >> f, html_slave.createGroupSite(group, doc.group_content(group)) - - # now for the keys - for key in doc.doc_keys(): - f = file('key%s.html' % doc.doc_item(key).name(), 'w') - print >> f, html_slave.createKeySite(doc.doc_item(key)) - - -if __name__ == "__main__": - main() diff --git a/poky/bitbake/bin/git-make-shallow b/poky/bitbake/bin/git-make-shallow deleted file mode 100755 index 296d3a3..0000000 --- a/poky/bitbake/bin/git-make-shallow +++ /dev/null @@ -1,165 +0,0 @@ -#!/usr/bin/env python3 -"""git-make-shallow: make the current git repository shallow - -Remove the history of the specified revisions, then optionally filter the -available refs to those specified. -""" - -import argparse -import collections -import errno -import itertools -import os -import subprocess -import sys - -version = 1.0 - - -def main(): - if sys.version_info < (3, 4, 0): - sys.exit('Python 3.4 or greater is required') - - git_dir = check_output(['git', 'rev-parse', '--git-dir']).rstrip() - shallow_file = os.path.join(git_dir, 'shallow') - if os.path.exists(shallow_file): - try: - check_output(['git', 'fetch', '--unshallow']) - except subprocess.CalledProcessError: - try: - os.unlink(shallow_file) - except OSError as exc: - if exc.errno != errno.ENOENT: - raise - - args = process_args() - revs = check_output(['git', 'rev-list'] + args.revisions).splitlines() - - make_shallow(shallow_file, args.revisions, args.refs) - - ref_revs = check_output(['git', 'rev-list'] + args.refs).splitlines() - remaining_history = set(revs) & set(ref_revs) - for rev in remaining_history: - if check_output(['git', 'rev-parse', '{}^@'.format(rev)]): - sys.exit('Error: %s was not made shallow' % rev) - - filter_refs(args.refs) - - if args.shrink: - shrink_repo(git_dir) - subprocess.check_call(['git', 'fsck', '--unreachable']) - - -def process_args(): - # TODO: add argument to automatically keep local-only refs, since they - # can't be easily restored with a git fetch. - parser = argparse.ArgumentParser(description='Remove the history of the specified revisions, then optionally filter the available refs to those specified.') - parser.add_argument('--ref', '-r', metavar='REF', action='append', dest='refs', help='remove all but the specified refs (cumulative)') - parser.add_argument('--shrink', '-s', action='store_true', help='shrink the git repository by repacking and pruning') - parser.add_argument('revisions', metavar='REVISION', nargs='+', help='a git revision/commit') - if len(sys.argv) < 2: - parser.print_help() - sys.exit(2) - - args = parser.parse_args() - - if args.refs: - args.refs = check_output(['git', 'rev-parse', '--symbolic-full-name'] + args.refs).splitlines() - else: - args.refs = get_all_refs(lambda r, t, tt: t == 'commit' or tt == 'commit') - - args.refs = list(filter(lambda r: not r.endswith('/HEAD'), args.refs)) - args.revisions = check_output(['git', 'rev-parse'] + ['%s^{}' % i for i in args.revisions]).splitlines() - return args - - -def check_output(cmd, input=None): - return subprocess.check_output(cmd, universal_newlines=True, input=input) - - -def make_shallow(shallow_file, revisions, refs): - """Remove the history of the specified revisions.""" - for rev in follow_history_intersections(revisions, refs): - print("Processing %s" % rev) - with open(shallow_file, 'a') as f: - f.write(rev + '\n') - - -def get_all_refs(ref_filter=None): - """Return all the existing refs in this repository, optionally filtering the refs.""" - ref_output = check_output(['git', 'for-each-ref', '--format=%(refname)\t%(objecttype)\t%(*objecttype)']) - ref_split = [tuple(iter_extend(l.rsplit('\t'), 3)) for l in ref_output.splitlines()] - if ref_filter: - ref_split = (e for e in ref_split if ref_filter(*e)) - refs = [r[0] for r in ref_split] - return refs - - -def iter_extend(iterable, length, obj=None): - """Ensure that iterable is the specified length by extending with obj.""" - return itertools.islice(itertools.chain(iterable, itertools.repeat(obj)), length) - - -def filter_refs(refs): - """Remove all but the specified refs from the git repository.""" - all_refs = get_all_refs() - to_remove = set(all_refs) - set(refs) - if to_remove: - check_output(['xargs', '-0', '-n', '1', 'git', 'update-ref', '-d', '--no-deref'], - input=''.join(l + '\0' for l in to_remove)) - - -def follow_history_intersections(revisions, refs): - """Determine all the points where the history of the specified revisions intersects the specified refs.""" - queue = collections.deque(revisions) - seen = set() - - for rev in iter_except(queue.popleft, IndexError): - if rev in seen: - continue - - parents = check_output(['git', 'rev-parse', '%s^@' % rev]).splitlines() - - yield rev - seen.add(rev) - - if not parents: - continue - - check_refs = check_output(['git', 'merge-base', '--independent'] + sorted(refs)).splitlines() - for parent in parents: - for ref in check_refs: - print("Checking %s vs %s" % (parent, ref)) - try: - merge_base = check_output(['git', 'merge-base', parent, ref]).rstrip() - except subprocess.CalledProcessError: - continue - else: - queue.append(merge_base) - - -def iter_except(func, exception, start=None): - """Yield a function repeatedly until it raises an exception.""" - try: - if start is not None: - yield start() - while True: - yield func() - except exception: - pass - - -def shrink_repo(git_dir): - """Shrink the newly shallow repository, removing the unreachable objects.""" - subprocess.check_call(['git', 'reflog', 'expire', '--expire-unreachable=now', '--all']) - subprocess.check_call(['git', 'repack', '-ad']) - try: - os.unlink(os.path.join(git_dir, 'objects', 'info', 'alternates')) - except OSError as exc: - if exc.errno != errno.ENOENT: - raise - subprocess.check_call(['git', 'prune', '--expire', 'now']) - - -if __name__ == '__main__': - main() diff --git a/poky/bitbake/bin/toaster b/poky/bitbake/bin/toaster deleted file mode 100755 index 762451d..0000000 --- a/poky/bitbake/bin/toaster +++ /dev/null @@ -1,305 +0,0 @@ -#!/bin/echo ERROR: This script needs to be sourced. Please run as . - -# toaster - shell script to start Toaster - -# Copyright (C) 2013-2015 Intel Corp. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. - -HELP=" -Usage: source toaster start|stop [webport=] [noweb] - Optional arguments: - [noweb] Setup the environment for building with toaster but don't start the development server - [webport] Set the development server (default: localhost:8000) -" - -custom_extention() -{ - custom_extension=$BBBASEDIR/lib/toaster/orm/fixtures/custom_toaster_append.sh - if [ -f $custom_extension ] ; then - $custom_extension $* - fi -} - -databaseCheck() -{ - retval=0 - # you can always add a superuser later via - # ../bitbake/lib/toaster/manage.py createsuperuser --username= - $MANAGE migrate --noinput || retval=1 - - if [ $retval -eq 1 ]; then - echo "Failed migrations, aborting system start" 1>&2 - return $retval - fi - # Make sure that checksettings can pick up any value for TEMPLATECONF - export TEMPLATECONF - $MANAGE checksettings --traceback || retval=1 - - if [ $retval -eq 1 ]; then - printf "\nError while checking settings; aborting\n" - return $retval - fi - - return $retval -} - -webserverKillAll() -{ - local pidfile - if [ -f ${BUILDDIR}/.toastermain.pid ] ; then - custom_extention web_stop_postpend - else - custom_extention noweb_stop_postpend - fi - for pidfile in ${BUILDDIR}/.toastermain.pid ${BUILDDIR}/.runbuilds.pid; do - if [ -f ${pidfile} ]; then - pid=`cat ${pidfile}` - while kill -0 $pid 2>/dev/null; do - kill -SIGTERM -$pid 2>/dev/null - sleep 1 - done - rm ${pidfile} - fi - done -} - -webserverStartAll() -{ - # do not start if toastermain points to a valid process - if ! cat "${BUILDDIR}/.toastermain.pid" 2>/dev/null | xargs -I{} kill -0 {} ; then - retval=1 - rm "${BUILDDIR}/.toastermain.pid" - fi - - retval=0 - - # check the database - databaseCheck || return 1 - - echo "Starting webserver..." - - $MANAGE runserver "$ADDR_PORT" \ - >${BUILDDIR}/toaster_web.log 2>&1 \ - & echo $! >${BUILDDIR}/.toastermain.pid - - sleep 1 - - if ! cat "${BUILDDIR}/.toastermain.pid" | xargs -I{} kill -0 {} ; then - retval=1 - rm "${BUILDDIR}/.toastermain.pid" - else - echo "Toaster development webserver started at http://$ADDR_PORT" - echo -e "\nYou can now run 'bitbake ' on the command line and monitor your build in Toaster.\nYou can also use a Toaster project to configure and run a build.\n" - custom_extention web_start_postpend $ADDR_PORT - fi - - return $retval -} - -INSTOPSYSTEM=0 - -# define the stop command -stop_system() -{ - # prevent reentry - if [ $INSTOPSYSTEM -eq 1 ]; then return; fi - INSTOPSYSTEM=1 - webserverKillAll - # unset exported variables - unset TOASTER_DIR - unset BITBAKE_UI - unset BBBASEDIR - trap - SIGHUP - #trap - SIGCHLD - INSTOPSYSTEM=0 -} - -verify_prereq() { - # Verify Django version - reqfile=$(python3 -c "import os; print(os.path.realpath('$BBBASEDIR/toaster-requirements.txt'))") - exp='s/Django\([><=]\+\)\([^,]\+\),\([><=]\+\)\(.\+\)/' - # expand version parts to 2 digits to support 1.10.x > 1.8 - # (note:helper functions hard to insert in-line) - exp=$exp'import sys,django;' - exp=$exp'version=["%02d" % int(n) for n in django.get_version().split(".")];' - exp=$exp'vmin=["%02d" % int(n) for n in "\2".split(".")];' - exp=$exp'vmax=["%02d" % int(n) for n in "\4".split(".")];' - exp=$exp'sys.exit(not (version \1 vmin and version \3 vmax))' - exp=$exp'/p' - if ! sed -n "$exp" $reqfile | python3 - ; then - req=`grep ^Django $reqfile` - echo "This program needs $req" - echo "Please install with pip3 install -r $reqfile" - return 2 - fi - - return 0 -} - -# read command line parameters -if [ -n "$BASH_SOURCE" ] ; then - TOASTER=${BASH_SOURCE} -elif [ -n "$ZSH_NAME" ] ; then - TOASTER=${(%):-%x} -else - TOASTER=$0 -fi - -export BBBASEDIR=`dirname $TOASTER`/.. -MANAGE="python3 $BBBASEDIR/lib/toaster/manage.py" -OE_ROOT=`dirname $TOASTER`/../.. - -# this is the configuraton file we are using for toaster -# we are using the same logic that oe-setup-builddir uses -# (based on TEMPLATECONF and .templateconf) to determine -# which toasterconf.json to use. -# note: There are a number of relative path assumptions -# in the local layers that currently make using an arbitrary -# toasterconf.json difficult. - -. $OE_ROOT/.templateconf -if [ -n "$TEMPLATECONF" ]; then - if [ ! -d "$TEMPLATECONF" ]; then - # Allow TEMPLATECONF=meta-xyz/conf as a shortcut - if [ -d "$OE_ROOT/$TEMPLATECONF" ]; then - TEMPLATECONF="$OE_ROOT/$TEMPLATECONF" - fi - fi -fi - -unset OE_ROOT - - -WEBSERVER=1 -ADDR_PORT="localhost:8000" -unset CMD -for param in $*; do - case $param in - noweb ) - WEBSERVER=0 - ;; - start ) - CMD=$param - ;; - stop ) - CMD=$param - ;; - webport=*) - ADDR_PORT="${param#*=}" - # Split the addr:port string - ADDR=`echo $ADDR_PORT | cut -f 1 -d ':'` - PORT=`echo $ADDR_PORT | cut -f 2 -d ':'` - # If only a port has been speified then set address to localhost. - if [ $ADDR = $PORT ] ; then - ADDR_PORT="localhost:$PORT" - fi - ;; - --help) - echo "$HELP" - return 0 - ;; - *) - echo "$HELP" - return 1 - ;; - - esac -done - -if [ `basename \"$0\"` = `basename \"${TOASTER}\"` ]; then - echo "Error: This script needs to be sourced. Please run as . $TOASTER" - return 1 -fi - -verify_prereq || return 1 - -# We make sure we're running in the current shell and in a good environment -if [ -z "$BUILDDIR" ] || ! which bitbake >/dev/null 2>&1 ; then - echo "Error: Build environment is not setup or bitbake is not in path." 1>&2 - return 2 -fi - -# this defines the dir toaster will use for -# 1) clones of layers (in _toaster_clones ) -# 2) the build dir (in build) -# 3) the sqlite db if that is being used. -# 4) pid's we need to clean up on exit/shutdown -export TOASTER_DIR=`dirname $BUILDDIR` -export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE TOASTER_DIR" - -# Determine the action. If specified by arguments, fine, if not, toggle it -if [ "$CMD" = "start" ] ; then - if [ -n "$BBSERVER" ]; then - echo " Toaster is already running. Exiting..." - return 1 -fi -elif [ "$CMD" = "" ]; then - echo "No command specified" - echo "$HELP" - return 1 -fi - -echo "The system will $CMD." - -# Execute the commands -custom_extention toaster_prepend $CMD $ADDR_PORT - -case $CMD in - start ) - # check if addr:port is not in use - if [ "$CMD" == 'start' ]; then - if [ $WEBSERVER -gt 0 ]; then - $MANAGE checksocket "$ADDR_PORT" || return 1 - fi - fi - - # Create configuration file - conf=${BUILDDIR}/conf/local.conf - line='INHERIT+="toaster buildhistory"' - grep -q "$line" $conf || echo $line >> $conf - - if [ $WEBSERVER -eq 0 ] ; then - # Do not update the database for "noweb" unless - # it does not yet exist - if [ ! -f "$TOASTER_DIR/toaster.sqlite" ] ; then - if ! databaseCheck; then - echo "Failed ${CMD}." - return 4 - fi - fi - custom_extention noweb_start_postpend $ADDR_PORT - fi - if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then - echo "Failed ${CMD}." - return 4 - fi - export BITBAKE_UI='toasterui' - $MANAGE runbuilds \ - >${BUILDDIR}/toaster_runbuilds.log 2>&1 \ - & echo $! >${BUILDDIR}/.runbuilds.pid - - # set fail safe stop system on terminal exit - trap stop_system SIGHUP - echo "Successful ${CMD}." - custom_extention toaster_postpend $CMD $ADDR_PORT - return 0 - ;; - stop ) - stop_system - echo "Successful ${CMD}." - ;; -esac -custom_extention toaster_postpend $CMD $ADDR_PORT - diff --git a/poky/bitbake/bin/toaster-eventreplay b/poky/bitbake/bin/toaster-eventreplay deleted file mode 100755 index 80967a0..0000000 --- a/poky/bitbake/bin/toaster-eventreplay +++ /dev/null @@ -1,126 +0,0 @@ -#!/usr/bin/env python3 -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# Copyright (C) 2014 Alex Damian -# -# This file re-uses code spread throughout other Bitbake source files. -# As such, all other copyrights belong to their own right holders. -# -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -""" -This command takes a filename as a single parameter. The filename is read -as a build eventlog, and the ToasterUI is used to process events in the file -and log data in the database -""" - -import os -import sys -import json -import pickle -import codecs - -from collections import namedtuple - -# mangle syspath to allow easy import of modules -from os.path import join, dirname, abspath -sys.path.insert(0, join(dirname(dirname(abspath(__file__))), 'lib')) - -import bb.cooker -from bb.ui import toasterui - -class EventPlayer: - """Emulate a connection to a bitbake server.""" - - def __init__(self, eventfile, variables): - self.eventfile = eventfile - self.variables = variables - self.eventmask = [] - - def waitEvent(self, _timeout): - """Read event from the file.""" - line = self.eventfile.readline().strip() - if not line: - return - try: - event_str = json.loads(line)['vars'].encode('utf-8') - event = pickle.loads(codecs.decode(event_str, 'base64')) - event_name = "%s.%s" % (event.__module__, event.__class__.__name__) - if event_name not in self.eventmask: - return - return event - except ValueError as err: - print("Failed loading ", line) - raise err - - def runCommand(self, command_line): - """Emulate running a command on the server.""" - name = command_line[0] - - if name == "getVariable": - var_name = command_line[1] - variable = self.variables.get(var_name) - if variable: - return variable['v'], None - return None, "Missing variable %s" % var_name - - elif name == "getAllKeysWithFlags": - dump = {} - flaglist = command_line[1] - for key, val in self.variables.items(): - try: - if not key.startswith("__"): - dump[key] = { - 'v': val['v'], - 'history' : val['history'], - } - for flag in flaglist: - dump[key][flag] = val[flag] - except Exception as err: - print(err) - return (dump, None) - - elif name == 'setEventMask': - self.eventmask = command_line[-1] - return True, None - - else: - raise Exception("Command %s not implemented" % command_line[0]) - - def getEventHandle(self): - """ - This method is called by toasterui. - The return value is passed to self.runCommand but not used there. - """ - pass - -def main(argv): - with open(argv[-1]) as eventfile: - # load variables from the first line - variables = json.loads(eventfile.readline().strip())['allvariables'] - - params = namedtuple('ConfigParams', ['observe_only'])(True) - player = EventPlayer(eventfile, variables) - - return toasterui.main(player, player, params) - -# run toaster ui on our mock bitbake class -if __name__ == "__main__": - if len(sys.argv) != 2: - print("Usage: %s " % os.path.basename(sys.argv[0])) - sys.exit(1) - - sys.exit(main(sys.argv)) diff --git a/poky/bitbake/contrib/README b/poky/bitbake/contrib/README deleted file mode 100644 index 25e5156..0000000 --- a/poky/bitbake/contrib/README +++ /dev/null @@ -1 +0,0 @@ -This directory is for additional contributed files which may be useful. diff --git a/poky/bitbake/contrib/bbdev.sh b/poky/bitbake/contrib/bbdev.sh deleted file mode 100644 index 33a7853..0000000 --- a/poky/bitbake/contrib/bbdev.sh +++ /dev/null @@ -1,31 +0,0 @@ -# This is a shell function to be sourced into your shell or placed in your .profile, -# which makes setting things up for BitBake a bit easier. -# -# The author disclaims copyright to the contents of this file and places it in the -# public domain. - -bbdev () { - local BBDIR PKGDIR BUILDDIR - if test x"$1" = "x--help"; then echo >&2 "syntax: bbdev [bbdir [pkgdir [builddir]]]"; return 1; fi - if test x"$1" = x; then BBDIR=`pwd`; else BBDIR=$1; fi - if test x"$2" = x; then PKGDIR=`pwd`; else PKGDIR=$2; fi - if test x"$3" = x; then BUILDDIR=`pwd`; else BUILDDIR=$3; fi - - BBDIR=`readlink -f $BBDIR` - PKGDIR=`readlink -f $PKGDIR` - BUILDDIR=`readlink -f $BUILDDIR` - if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then - echo >&2 "syntax: bbdev [bbdir [pkgdir [builddir]]]" - return 1 - fi - - PATH=$BBDIR/bin:$PATH - BBPATH=$BBDIR - if test x"$BBDIR" != x"$PKGDIR"; then - BBPATH=$PKGDIR:$BBPATH - fi - if test x"$PKGDIR" != x"$BUILDDIR"; then - BBPATH=$BUILDDIR:$BBPATH - fi - export BBPATH -} diff --git a/poky/bitbake/contrib/dump_cache.py b/poky/bitbake/contrib/dump_cache.py deleted file mode 100755 index f4d4c1b..0000000 --- a/poky/bitbake/contrib/dump_cache.py +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env python3 -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# Copyright (C) 2012 Wind River Systems, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -# -# This is used for dumping the bb_cache.dat, the output format is: -# recipe_path PN PV PACKAGES -# -import os -import sys -import warnings - -# For importing bb.cache -sys.path.insert(0, os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), '../lib')) -from bb.cache import CoreRecipeInfo - -import pickle as pickle - -def main(argv=None): - """ - Get the mapping for the target recipe. - """ - if len(argv) != 1: - print("Error, need one argument!", file=sys.stderr) - return 2 - - cachefile = argv[0] - - with open(cachefile, "rb") as cachefile: - pickled = pickle.Unpickler(cachefile) - while cachefile: - try: - key = pickled.load() - val = pickled.load() - except Exception: - break - if isinstance(val, CoreRecipeInfo) and (not val.skipped): - pn = val.pn - # Filter out the native recipes. - if key.startswith('virtual:native:') or pn.endswith("-native"): - continue - - # 1.0 is the default version for a no PV recipe. - if "pv" in val.__dict__: - pv = val.pv - else: - pv = "1.0" - - print("%s %s %s %s" % (key, pn, pv, ' '.join(val.packages))) - -if __name__ == "__main__": - sys.exit(main(sys.argv[1:])) - diff --git a/poky/bitbake/contrib/vim/ftdetect/bitbake.vim b/poky/bitbake/contrib/vim/ftdetect/bitbake.vim deleted file mode 100644 index 200f8ae..0000000 --- a/poky/bitbake/contrib/vim/ftdetect/bitbake.vim +++ /dev/null @@ -1,24 +0,0 @@ -" Vim filetype detection file -" Language: BitBake -" Author: Ricardo Salveti -" Copyright: Copyright (C) 2008 Ricardo Salveti -" Licence: You may redistribute this under the same terms as Vim itself -" -" This sets up the syntax highlighting for BitBake files, like .bb, .bbclass and .inc - -if &compatible || version < 600 - finish -endif - -" .bb, .bbappend and .bbclass -au BufNewFile,BufRead *.{bb,bbappend,bbclass} set filetype=bitbake - -" .inc -au BufNewFile,BufRead *.inc set filetype=bitbake - -" .conf -au BufNewFile,BufRead *.conf - \ if (match(expand("%:p:h"), "conf") > 0) | - \ set filetype=bitbake | - \ endif - diff --git a/poky/bitbake/contrib/vim/ftplugin/bitbake.vim b/poky/bitbake/contrib/vim/ftplugin/bitbake.vim deleted file mode 100644 index db0d753..0000000 --- a/poky/bitbake/contrib/vim/ftplugin/bitbake.vim +++ /dev/null @@ -1,2 +0,0 @@ -set sts=4 sw=4 et -set cms=#%s diff --git a/poky/bitbake/contrib/vim/plugin/newbb.vim b/poky/bitbake/contrib/vim/plugin/newbb.vim deleted file mode 100755 index 874e338..0000000 --- a/poky/bitbake/contrib/vim/plugin/newbb.vim +++ /dev/null @@ -1,84 +0,0 @@ -" Vim plugin file -" Purpose: Create a template for new bb files -" Author: Ricardo Salveti -" Copyright: Copyright (C) 2008 Ricardo Salveti -" -" This file is licensed under the MIT license, see COPYING.MIT in -" this source distribution for the terms. -" -" Based on the gentoo-syntax package -" -" Will try to use git to find the user name and email - -if &compatible || v:version < 600 - finish -endif - -fun! GetUserName() - let l:user_name = system("git config --get user.name") - if v:shell_error - return "Unknown User" - else - return substitute(l:user_name, "\n", "", "") -endfun - -fun! GetUserEmail() - let l:user_email = system("git config --get user.email") - if v:shell_error - return "unknow@user.org" - else - return substitute(l:user_email, "\n", "", "") -endfun - -fun! BBHeader() - let l:current_year = strftime("%Y") - let l:user_name = GetUserName() - let l:user_email = GetUserEmail() - 0 put ='# Copyright (C) ' . l:current_year . - \ ' ' . l:user_name . ' <' . l:user_email . '>' - put ='# Released under the MIT license (see COPYING.MIT for the terms)' - $ -endfun - -fun! NewBBTemplate() - let l:paste = &paste - set nopaste - - " Get the header - call BBHeader() - - " New the bb template - put ='DESCRIPTION = \"\"' - put ='HOMEPAGE = \"\"' - put ='LICENSE = \"\"' - put ='SECTION = \"\"' - put ='DEPENDS = \"\"' - put ='' - put ='SRC_URI = \"\"' - - " Go to the first place to edit - 0 - /^DESCRIPTION =/ - exec "normal 2f\"" - - if paste == 1 - set paste - endif -endfun - -if !exists("g:bb_create_on_empty") - let g:bb_create_on_empty = 1 -endif - -" disable in case of vimdiff -if v:progname =~ "vimdiff" - let g:bb_create_on_empty = 0 -endif - -augroup NewBB - au BufNewFile *.bb - \ if g:bb_create_on_empty | - \ call NewBBTemplate() | - \ endif -augroup END - diff --git a/poky/bitbake/contrib/vim/syntax/bitbake.vim b/poky/bitbake/contrib/vim/syntax/bitbake.vim deleted file mode 100644 index fb55f91..0000000 --- a/poky/bitbake/contrib/vim/syntax/bitbake.vim +++ /dev/null @@ -1,126 +0,0 @@ -" Vim syntax file -" Language: BitBake bb/bbclasses/inc -" Author: Chris Larson -" Ricardo Salveti -" Copyright: Copyright (C) 2004 Chris Larson -" Copyright (C) 2008 Ricardo Salveti -" -" This file is licensed under the MIT license, see COPYING.MIT in -" this source distribution for the terms. -" -" Syntax highlighting for bb, bbclasses and inc files. -" -" It's an entirely new type, just has specific syntax in shell and python code - -if &compatible || v:version < 600 - finish -endif -if exists("b:current_syntax") - finish -endif - -syn include @python syntax/python.vim -if exists("b:current_syntax") - unlet b:current_syntax -endif - -" BitBake syntax - -" Matching case -syn case match - -" Indicates the error when nothing is matched -syn match bbUnmatched "." - -" Comments -syn cluster bbCommentGroup contains=bbTodo,@Spell -syn keyword bbTodo COMBAK FIXME TODO XXX contained -syn match bbComment "#.*$" contains=@bbCommentGroup - -" String helpers -syn match bbQuote +['"]+ contained -syn match bbDelimiter "[(){}=]" contained -syn match bbArrayBrackets "[\[\]]" contained - -" BitBake strings -syn match bbContinue "\\$" -syn region bbString matchgroup=bbQuote start=+"+ skip=+\\$+ end=+"+ contained contains=bbTodo,bbContinue,bbVarDeref,bbVarPyValue,@Spell -syn region bbString matchgroup=bbQuote start=+'+ skip=+\\$+ end=+'+ contained contains=bbTodo,bbContinue,bbVarDeref,bbVarPyValue,@Spell - -" Vars definition -syn match bbExport "^export" nextgroup=bbIdentifier skipwhite -syn keyword bbExportFlag export contained nextgroup=bbIdentifier skipwhite -syn match bbIdentifier "[a-zA-Z0-9\-_\.\/\+]\+" display contained -syn match bbVarDeref "${[a-zA-Z0-9\-_\.\/\+]\+}" contained -syn match bbVarEq "\(:=\|+=\|=+\|\.=\|=\.\|?=\|??=\|=\)" contained nextgroup=bbVarValue -syn match bbVarDef "^\(export\s*\)\?\([a-zA-Z0-9\-_\.\/\+]\+\(_[${}a-zA-Z0-9\-_\.\/\+]\+\)\?\)\s*\(:=\|+=\|=+\|\.=\|=\.\|?=\|??=\|=\)\@=" contains=bbExportFlag,bbIdentifier,bbVarDeref nextgroup=bbVarEq -syn match bbVarValue ".*$" contained contains=bbString,bbVarDeref,bbVarPyValue -syn region bbVarPyValue start=+${@+ skip=+\\$+ end=+}+ contained contains=@python - -" Vars metadata flags -syn match bbVarFlagDef "^\([a-zA-Z0-9\-_\.]\+\)\(\[[a-zA-Z0-9\-_\.]\+\]\)\@=" contains=bbIdentifier nextgroup=bbVarFlagFlag -syn region bbVarFlagFlag matchgroup=bbArrayBrackets start="\[" end="\]\s*\(=\|+=\|=+\|?=\)\@=" contained contains=bbIdentifier nextgroup=bbVarEq - -" Includes and requires -syn keyword bbInclude inherit include require contained -syn match bbIncludeRest ".*$" contained contains=bbString,bbVarDeref -syn match bbIncludeLine "^\(inherit\|include\|require\)\s\+" contains=bbInclude nextgroup=bbIncludeRest - -" Add taks and similar -syn keyword bbStatement addtask addhandler after before EXPORT_FUNCTIONS contained -syn match bbStatementRest ".*$" skipwhite contained contains=bbStatement -syn match bbStatementLine "^\(addtask\|addhandler\|after\|before\|EXPORT_FUNCTIONS\)\s\+" contains=bbStatement nextgroup=bbStatementRest - -" OE Important Functions -syn keyword bbOEFunctions do_fetch do_unpack do_patch do_configure do_compile do_stage do_install do_package contained - -" Generic Functions -syn match bbFunction "\h[0-9A-Za-z_-]*" display contained contains=bbOEFunctions - -" BitBake shell metadata -syn include @shell syntax/sh.vim -if exists("b:current_syntax") - unlet b:current_syntax -endif -syn keyword bbShFakeRootFlag fakeroot contained -syn match bbShFuncDef "^\(fakeroot\s*\)\?\([0-9A-Za-z_${}-]\+\)\(python\)\@ - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/poky/bitbake/doc/COPYING.MIT b/poky/bitbake/doc/COPYING.MIT deleted file mode 100644 index 7e7d574..0000000 --- a/poky/bitbake/doc/COPYING.MIT +++ /dev/null @@ -1,17 +0,0 @@ -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/poky/bitbake/doc/Makefile b/poky/bitbake/doc/Makefile deleted file mode 100644 index 3c28f4b..0000000 --- a/poky/bitbake/doc/Makefile +++ /dev/null @@ -1,91 +0,0 @@ -# This is a single Makefile to handle all generated BitBake documents. -# The Makefile needs to live in the documentation directory and all figures used -# in any manuals must be .PNG files and live in the individual book's figures -# directory. -# -# The Makefile has these targets: -# -# pdf: generates a PDF version of a manual. -# html: generates an HTML version of a manual. -# tarball: creates a tarball for the doc files. -# validate: validates -# clean: removes files -# -# The Makefile generates an HTML version of every document. The -# variable DOC indicates the folder name for a given manual. -# -# To build a manual, you must invoke 'make' with the DOC argument. -# -# Examples: -# -# make DOC=bitbake-user-manual -# make pdf DOC=bitbake-user-manual -# -# The first example generates the HTML version of the User Manual. -# The second example generates the PDF version of the User Manual. -# - -ifeq ($(DOC),bitbake-user-manual) -XSLTOPTS = --stringparam html.stylesheet bitbake-user-manual-style.css \ - --stringparam chapter.autolabel 1 \ - --stringparam section.autolabel 1 \ - --stringparam section.label.includes.component.label 1 \ - --xinclude -ALLPREQ = html tarball -TARFILES = bitbake-user-manual-style.css bitbake-user-manual.html figures/bitbake-title.png -MANUALS = $(DOC)/$(DOC).html -FIGURES = figures -STYLESHEET = $(DOC)/*.css - -endif - -## -# These URI should be rewritten by your distribution's xml catalog to -# match your localy installed XSL stylesheets. -XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/current -XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl - -all: $(ALLPREQ) - -pdf: -ifeq ($(DOC),bitbake-user-manual) - @echo " " - @echo "********** Building."$(DOC) - @echo " " - cd $(DOC); ../tools/docbook-to-pdf $(DOC).xml ../template; cd .. -endif - -html: -ifeq ($(DOC),bitbake-user-manual) -# See http://www.sagehill.net/docbookxsl/HtmlOutput.html - @echo " " - @echo "******** Building "$(DOC) - @echo " " - cd $(DOC); xsltproc $(XSLTOPTS) -o $(DOC).html $(DOC)-customization.xsl $(DOC).xml; cd .. -endif - -tarball: html - @echo " " - @echo "******** Creating Tarball of document files" - @echo " " - cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd .. - -validate: - cd $(DOC); xmllint --postvalid --xinclude --noout $(DOC).xml; cd .. - -publish: - @if test -f $(DOC)/$(DOC).html; \ - then \ - echo " "; \ - echo "******** Publishing "$(DOC)".html"; \ - echo " "; \ - scp -r $(MANUALS) $(STYLESHEET) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \ - cd $(DOC); scp -r $(FIGURES) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \ - else \ - echo " "; \ - echo $(DOC)".html missing. Generate the file first then try again."; \ - echo " "; \ - fi - -clean: - rm -rf $(MANUALS); rm $(DOC)/$(DOC).tgz; diff --git a/poky/bitbake/doc/README b/poky/bitbake/doc/README deleted file mode 100644 index 303cf8e..0000000 --- a/poky/bitbake/doc/README +++ /dev/null @@ -1,39 +0,0 @@ -Documentation -============= - -This is the directory that contains the BitBake documentation. - -Manual Organization -=================== - -Folders exist for individual manuals as follows: - -* bitbake-user-manual - The BitBake User Manual - -Each folder is self-contained regarding content and figures. - -If you want to find HTML versions of the BitBake manuals on the web, -go to http://www.openembedded.org/wiki/Documentation. - -Makefile -======== - -The Makefile processes manual directories to create HTML, PDF, -tarballs, etc. Details on how the Makefile work are documented -inside the Makefile. See that file for more information. - -To build a manual, you run the make command and pass it the name -of the folder containing the manual's contents. -For example, the following command run from the documentation directory -creates an HTML and a PDF version of the BitBake User Manual. -The DOC variable specifies the manual you are making: - - $ make DOC=bitbake-user-manual - -template -======== -Contains various templates, fonts, and some old PNG files. - -tools -===== -Contains a tool to convert the DocBook files to PDF format. diff --git a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-customization.xsl b/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-customization.xsl deleted file mode 100644 index 5985ea7..0000000 --- a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-customization.xsl +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - A - - - - diff --git a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-execution.xml b/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-execution.xml deleted file mode 100644 index e4cc422..0000000 --- a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-execution.xml +++ /dev/null @@ -1,932 +0,0 @@ - - - - Execution - - - The primary purpose for running BitBake is to produce some kind - of output such as a single installable package, a kernel, a software - development kit, or even a full, board-specific bootable Linux image, - complete with bootloader, kernel, and root filesystem. - Of course, you can execute the bitbake - command with options that cause it to execute single tasks, - compile single recipe files, capture or clear data, or simply - return information about the execution environment. - - - - This chapter describes BitBake's execution process from start - to finish when you use it to create an image. - The execution process is launched using the following command - form: - - $ bitbake target - - For information on the BitBake command and its options, - see - "The BitBake Command" - section. - - - Prior to executing BitBake, you should take advantage of available - parallel thread execution on your build host by setting the - BB_NUMBER_THREADS - variable in your project's local.conf - configuration file. - - - - A common method to determine this value for your build host is to run - the following: - - $ grep processor /proc/cpuinfo - - This command returns the number of processors, which takes into - account hyper-threading. - Thus, a quad-core build host with hyper-threading most likely - shows eight processors, which is the value you would then assign to - BB_NUMBER_THREADS. - - - - A possibly simpler solution is that some Linux distributions - (e.g. Debian and Ubuntu) provide the ncpus command. - - - - -
- Parsing the Base Configuration Metadata - - - The first thing BitBake does is parse base configuration - metadata. - Base configuration metadata consists of your project's - bblayers.conf file to determine what - layers BitBake needs to recognize, all necessary - layer.conf files (one from each layer), - and bitbake.conf. - The data itself is of various types: - - Recipes: - Details about particular pieces of software. - - Class Data: - An abstraction of common build information - (e.g. how to build a Linux kernel). - - Configuration Data: - Machine-specific settings, policy decisions, - and so forth. - Configuration data acts as the glue to bind everything - together. - - - - - The layer.conf files are used to - construct key variables such as - BBPATH - and - BBFILES. - BBPATH is used to search for - configuration and class files under the - conf and classes - directories, respectively. - BBFILES is used to locate both recipe - and recipe append files - (.bb and .bbappend). - If there is no bblayers.conf file, - it is assumed the user has set the BBPATH - and BBFILES directly in the environment. - - - - Next, the bitbake.conf file is located - using the BBPATH variable that was - just constructed. - The bitbake.conf file may also include other - configuration files using the - include or - require directives. - - - - Prior to parsing configuration files, Bitbake looks - at certain variables, including: - - - BB_ENV_WHITELIST - - - BB_ENV_EXTRAWHITE - - - BB_PRESERVE_ENV - - - BB_ORIGENV - - - BITBAKE_UI - - - The first four variables in this list relate to how BitBake treats shell - environment variables during task execution. - By default, BitBake cleans the environment variables and provides tight - control over the shell execution environment. - However, through the use of these first four variables, you can - apply your control regarding the - environment variables allowed to be used by BitBake in the shell - during execution of tasks. - See the - "Passing Information Into the Build Task Environment" - section and the information about these variables in the - variable glossary for more information on how they work and - on how to use them. - - - - The base configuration metadata is global - and therefore affects all recipes and tasks that are executed. - - - - BitBake first searches the current working directory for an - optional conf/bblayers.conf configuration file. - This file is expected to contain a - BBLAYERS - variable that is a space-delimited list of 'layer' directories. - Recall that if BitBake cannot find a bblayers.conf - file, then it is assumed the user has set the BBPATH - and BBFILES variables directly in the environment. - - - - For each directory (layer) in this list, a conf/layer.conf - file is located and parsed with the - LAYERDIR - variable being set to the directory where the layer was found. - The idea is these files automatically set up - BBPATH - and other variables correctly for a given build directory. - - - - BitBake then expects to find the conf/bitbake.conf - file somewhere in the user-specified BBPATH. - That configuration file generally has include directives to pull - in any other metadata such as files specific to the architecture, - the machine, the local environment, and so forth. - - - - Only variable definitions and include directives are allowed - in BitBake .conf files. - Some variables directly influence BitBake's behavior. - These variables might have been set from the environment - depending on the environment variables previously - mentioned or set in the configuration files. - The - "Variables Glossary" - chapter presents a full list of variables. - - - - After parsing configuration files, BitBake uses its rudimentary - inheritance mechanism, which is through class files, to inherit - some standard classes. - BitBake parses a class when the inherit directive responsible - for getting that class is encountered. - - - - The base.bbclass file is always included. - Other classes that are specified in the configuration using the - INHERIT - variable are also included. - BitBake searches for class files in a - classes subdirectory under - the paths in BBPATH in the same way as - configuration files. - - - - A good way to get an idea of the configuration files and - the class files used in your execution environment is to - run the following BitBake command: - - $ bitbake -e > mybb.log - - Examining the top of the mybb.log - shows you the many configuration files and class files - used in your execution environment. - - - - - You need to be aware of how BitBake parses curly braces. - If a recipe uses a closing curly brace within the function and - the character has no leading spaces, BitBake produces a parsing - error. - If you use a pair of curly braces in a shell function, the - closing curly brace must not be located at the start of the line - without leading spaces. - - - - Here is an example that causes BitBake to produce a parsing - error: - - fakeroot create_shar() { - cat << "EOF" > ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh - usage() - { - echo "test" - ###### The following "}" at the start of the line causes a parsing error ###### - } - EOF - } - - Writing the recipe this way avoids the error: - - fakeroot create_shar() { - cat << "EOF" > ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh - usage() - { - echo "test" - ######The following "}" with a leading space at the start of the line avoids the error ###### - } - EOF - } - - - -
- -
- Locating and Parsing Recipes - - - During the configuration phase, BitBake will have set - BBFILES. - BitBake now uses it to construct a list of recipes to parse, - along with any append files (.bbappend) - to apply. - BBFILES is a space-separated list of - available files and supports wildcards. - An example would be: - - BBFILES = "/path/to/bbfiles/*.bb /path/to/appends/*.bbappend" - - BitBake parses each recipe and append file located - with BBFILES and stores the values of - various variables into the datastore. - - Append files are applied in the order they are encountered in - BBFILES. - - For each file, a fresh copy of the base configuration is - made, then the recipe is parsed line by line. - Any inherit statements cause BitBake to find and - then parse class files (.bbclass) - using - BBPATH - as the search path. - Finally, BitBake parses in order any append files found in - BBFILES. - - - - One common convention is to use the recipe filename to define - pieces of metadata. - For example, in bitbake.conf the recipe - name and version are used to set the variables - PN and - PV: - - PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}" - PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}" - - In this example, a recipe called "something_1.2.3.bb" would set - PN to "something" and - PV to "1.2.3". - - - - By the time parsing is complete for a recipe, BitBake - has a list of tasks that the recipe defines and a set of - data consisting of keys and values as well as - dependency information about the tasks. - - - - BitBake does not need all of this information. - It only needs a small subset of the information to make - decisions about the recipe. - Consequently, BitBake caches the values in which it is - interested and does not store the rest of the information. - Experience has shown it is faster to re-parse the metadata than to - try and write it out to the disk and then reload it. - - - - Where possible, subsequent BitBake commands reuse this cache of - recipe information. - The validity of this cache is determined by first computing a - checksum of the base configuration data (see - BB_HASHCONFIG_WHITELIST) - and then checking if the checksum matches. - If that checksum matches what is in the cache and the recipe - and class files have not changed, Bitbake is able to use - the cache. - BitBake then reloads the cached information about the recipe - instead of reparsing it from scratch. - - - - Recipe file collections exist to allow the user to - have multiple repositories of - .bb files that contain the same - exact package. - For example, one could easily use them to make one's - own local copy of an upstream repository, but with - custom modifications that one does not want upstream. - Here is an example: - - BBFILES = "/stuff/openembedded/*/*.bb /stuff/openembedded.modified/*/*.bb" - BBFILE_COLLECTIONS = "upstream local" - BBFILE_PATTERN_upstream = "^/stuff/openembedded/" - BBFILE_PATTERN_local = "^/stuff/openembedded.modified/" - BBFILE_PRIORITY_upstream = "5" - BBFILE_PRIORITY_local = "10" - - - The layers mechanism is now the preferred method of collecting - code. - While the collections code remains, its main use is to set layer - priorities and to deal with overlap (conflicts) between layers. - - -
- -
- Providers - - - Assuming BitBake has been instructed to execute a target - and that all the recipe files have been parsed, BitBake - starts to figure out how to build the target. - BitBake looks through the PROVIDES list - for each of the recipes. - A PROVIDES list is the list of names by which - the recipe can be known. - Each recipe's PROVIDES list is created - implicitly through the recipe's - PN variable - and explicitly through the recipe's - PROVIDES - variable, which is optional. - - - - When a recipe uses PROVIDES, that recipe's - functionality can be found under an alternative name or names other - than the implicit PN name. - As an example, suppose a recipe named keyboard_1.0.bb - contained the following: - - PROVIDES += "fullkeyboard" - - The PROVIDES list for this recipe becomes - "keyboard", which is implicit, and "fullkeyboard", which is explicit. - Consequently, the functionality found in - keyboard_1.0.bb can be found under two - different names. - -
- -
- Preferences - - - The PROVIDES list is only part of the solution - for figuring out a target's recipes. - Because targets might have multiple providers, BitBake needs - to prioritize providers by determining provider preferences. - - - - A common example in which a target has multiple providers - is "virtual/kernel", which is on the - PROVIDES list for each kernel recipe. - Each machine often selects the best kernel provider by using a - line similar to the following in the machine configuration file: - - PREFERRED_PROVIDER_virtual/kernel = "linux-yocto" - - The default - PREFERRED_PROVIDER - is the provider with the same name as the target. - Bitbake iterates through each target it needs to build and - resolves them and their dependencies using this process. - - - - Understanding how providers are chosen is made complicated by the fact - that multiple versions might exist for a given provider. - BitBake defaults to the highest version of a provider. - Version comparisons are made using the same method as Debian. - You can use the - PREFERRED_VERSION - variable to specify a particular version. - You can influence the order by using the - DEFAULT_PREFERENCE - variable. - - - - By default, files have a preference of "0". - Setting DEFAULT_PREFERENCE to "-1" makes the - recipe unlikely to be used unless it is explicitly referenced. - Setting DEFAULT_PREFERENCE to "1" makes it - likely the recipe is used. - PREFERRED_VERSION overrides any - DEFAULT_PREFERENCE setting. - DEFAULT_PREFERENCE is often used to mark newer - and more experimental recipe versions until they have undergone - sufficient testing to be considered stable. - - - - When there are multiple “versions†of a given recipe, - BitBake defaults to selecting the most recent - version, unless otherwise specified. - If the recipe in question has a - DEFAULT_PREFERENCE - set lower than the other recipes (default is 0), then - it will not be selected. - This allows the person or persons maintaining - the repository of recipe files to specify - their preference for the default selected version. - Additionally, the user can specify their preferred version. - - - - If the first recipe is named a_1.1.bb, then the - PN variable - will be set to “aâ€, and the - PV - variable will be set to 1.1. - - - - Thus, if a recipe named a_1.2.bb exists, BitBake - will choose 1.2 by default. - However, if you define the following variable in a - .conf file that BitBake parses, you - can change that preference: - - PREFERRED_VERSION_a = "1.1" - - - - - - It is common for a recipe to provide two versions -- a stable, - numbered (and preferred) version, and a version that is - automatically checked out from a source code repository that - is considered more "bleeding edge" but can be selected only - explicitly. - - - - For example, in the OpenEmbedded codebase, there is a standard, - versioned recipe file for BusyBox, - busybox_1.22.1.bb, - but there is also a Git-based version, - busybox_git.bb, which explicitly contains the line - - DEFAULT_PREFERENCE = "-1" - - to ensure that the numbered, stable version is always preferred - unless the developer selects otherwise. - - -
- -
- Dependencies - - - Each target BitBake builds consists of multiple tasks such as - fetch, unpack, - patch, configure, - and compile. - For best performance on multi-core systems, BitBake considers each - task as an independent - entity with its own set of dependencies. - - - - Dependencies are defined through several variables. - You can find information about variables BitBake uses in - the Variables Glossary - near the end of this manual. - At a basic level, it is sufficient to know that BitBake uses the - DEPENDS and - RDEPENDS variables when - calculating dependencies. - - - - For more information on how BitBake handles dependencies, see the - "Dependencies" section. - -
- -
- The Task List - - - Based on the generated list of providers and the dependency information, - BitBake can now calculate exactly what tasks it needs to run and in what - order it needs to run them. - The - "Executing Tasks" section has more - information on how BitBake chooses which task to execute next. - - - - The build now starts with BitBake forking off threads up to the limit set in the - BB_NUMBER_THREADS - variable. - BitBake continues to fork threads as long as there are tasks ready to run, - those tasks have all their dependencies met, and the thread threshold has not been - exceeded. - - - - It is worth noting that you can greatly speed up the build time by properly setting - the BB_NUMBER_THREADS variable. - - - - As each task completes, a timestamp is written to the directory specified by the - STAMP variable. - On subsequent runs, BitBake looks in the build directory within - tmp/stamps and does not rerun - tasks that are already completed unless a timestamp is found to be invalid. - Currently, invalid timestamps are only considered on a per - recipe file basis. - So, for example, if the configure stamp has a timestamp greater than the - compile timestamp for a given target, then the compile task would rerun. - Running the compile task again, however, has no effect on other providers - that depend on that target. - - - - The exact format of the stamps is partly configurable. - In modern versions of BitBake, a hash is appended to the - stamp so that if the configuration changes, the stamp becomes - invalid and the task is automatically rerun. - This hash, or signature used, is governed by the signature policy - that is configured (see the - "Checksums (Signatures)" - section for information). - It is also possible to append extra metadata to the stamp using - the [stamp-extra-info] task flag. - For example, OpenEmbedded uses this flag to make some tasks machine-specific. - - - - Some tasks are marked as "nostamp" tasks. - No timestamp file is created when these tasks are run. - Consequently, "nostamp" tasks are always rerun. - - - - For more information on tasks, see the - "Tasks" section. - -
- -
- Executing Tasks - - - Tasks can be either a shell task or a Python task. - For shell tasks, BitBake writes a shell script to - ${T}/run.do_taskname.pid - and then executes the script. - The generated shell script contains all the exported variables, - and the shell functions with all variables expanded. - Output from the shell script goes to the file - ${T}/log.do_taskname.pid. - Looking at the expanded shell functions in the run file and - the output in the log files is a useful debugging technique. - - - - For Python tasks, BitBake executes the task internally and logs - information to the controlling terminal. - Future versions of BitBake will write the functions to files - similar to the way shell tasks are handled. - Logging will be handled in a way similar to shell tasks as well. - - - - The order in which BitBake runs the tasks is controlled by its - task scheduler. - It is possible to configure the scheduler and define custom - implementations for specific use cases. - For more information, see these variables that control the - behavior: - - - BB_SCHEDULER - - - BB_SCHEDULERS - - - It is possible to have functions run before and after a task's main - function. - This is done using the [prefuncs] - and [postfuncs] flags of the task - that lists the functions to run. - -
- -
- Checksums (Signatures) - - - A checksum is a unique signature of a task's inputs. - The signature of a task can be used to determine if a task - needs to be run. - Because it is a change in a task's inputs that triggers running - the task, BitBake needs to detect all the inputs to a given task. - For shell tasks, this turns out to be fairly easy because - BitBake generates a "run" shell script for each task and - it is possible to create a checksum that gives you a good idea of when - the task's data changes. - - - - To complicate the problem, some things should not be included in - the checksum. - First, there is the actual specific build path of a given task - - the working directory. - It does not matter if the working directory changes because it should not - affect the output for target packages. - The simplistic approach for excluding the working directory is to set - it to some fixed value and create the checksum for the "run" script. - BitBake goes one step better and uses the - BB_HASHBASE_WHITELIST - variable to define a list of variables that should never be included - when generating the signatures. - - - - Another problem results from the "run" scripts containing functions that - might or might not get called. - The incremental build solution contains code that figures out dependencies - between shell functions. - This code is used to prune the "run" scripts down to the minimum set, - thereby alleviating this problem and making the "run" scripts much more - readable as a bonus. - - - - So far we have solutions for shell scripts. - What about Python tasks? - The same approach applies even though these tasks are more difficult. - The process needs to figure out what variables a Python function accesses - and what functions it calls. - Again, the incremental build solution contains code that first figures out - the variable and function dependencies, and then creates a checksum for the data - used as the input to the task. - - - - Like the working directory case, situations exist where dependencies - should be ignored. - For these cases, you can instruct the build process to ignore a dependency - by using a line like the following: - - PACKAGE_ARCHS[vardepsexclude] = "MACHINE" - - This example ensures that the PACKAGE_ARCHS variable does not - depend on the value of MACHINE, even if it does reference it. - - - - Equally, there are cases where we need to add dependencies BitBake - is not able to find. - You can accomplish this by using a line like the following: - - PACKAGE_ARCHS[vardeps] = "MACHINE" - - This example explicitly adds the MACHINE variable as a - dependency for PACKAGE_ARCHS. - - - - Consider a case with in-line Python, for example, where BitBake is not - able to figure out dependencies. - When running in debug mode (i.e. using -DDD), BitBake - produces output when it discovers something for which it cannot figure out - dependencies. - - - - Thus far, this section has limited discussion to the direct inputs into a task. - Information based on direct inputs is referred to as the "basehash" in the - code. - However, there is still the question of a task's indirect inputs - the - things that were already built and present in the build directory. - The checksum (or signature) for a particular task needs to add the hashes - of all the tasks on which the particular task depends. - Choosing which dependencies to add is a policy decision. - However, the effect is to generate a master checksum that combines the basehash - and the hashes of the task's dependencies. - - - - At the code level, there are a variety of ways both the basehash and the - dependent task hashes can be influenced. - Within the BitBake configuration file, we can give BitBake some extra information - to help it construct the basehash. - The following statement effectively results in a list of global variable - dependency excludes - variables never included in any checksum. - This example uses variables from OpenEmbedded to help illustrate - the concept: - - BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR \ - SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM \ - USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE PRSERV_HOST \ - PRSERV_DUMPDIR PRSERV_DUMPFILE PRSERV_LOCKDOWN PARALLEL_MAKE \ - CCACHE_DIR EXTERNAL_TOOLCHAIN CCACHE CCACHE_DISABLE LICENSE_PATH SDKPKGSUFFIX" - - The previous example excludes the work directory, which is part of - TMPDIR. - - - - The rules for deciding which hashes of dependent tasks to include through - dependency chains are more complex and are generally accomplished with a - Python function. - The code in meta/lib/oe/sstatesig.py shows two examples - of this and also illustrates how you can insert your own policy into the system - if so desired. - This file defines the two basic signature generators OpenEmbedded Core - uses: "OEBasic" and "OEBasicHash". - By default, there is a dummy "noop" signature handler enabled in BitBake. - This means that behavior is unchanged from previous versions. - OE-Core uses the "OEBasicHash" signature handler by default - through this setting in the bitbake.conf file: - - BB_SIGNATURE_HANDLER ?= "OEBasicHash" - - The "OEBasicHash" BB_SIGNATURE_HANDLER is the same as the - "OEBasic" version but adds the task hash to the stamp files. - This results in any metadata change that changes the task hash, automatically - causing the task to be run again. - This removes the need to bump - PR - values, and changes to metadata automatically ripple across the build. - - - - It is also worth noting that the end result of these signature generators is to - make some dependency and hash information available to the build. - This information includes: - - BB_BASEHASH_task-taskname: - The base hashes for each task in the recipe. - - BB_BASEHASH_filename:taskname: - The base hashes for each dependent task. - - BBHASHDEPS_filename:taskname: - The task dependencies for each task. - - BB_TASKHASH: - The hash of the currently running task. - - - - - - It is worth noting that BitBake's "-S" option lets you - debug Bitbake's processing of signatures. - The options passed to -S allow different debugging modes - to be used, either using BitBake's own debug functions - or possibly those defined in the metadata/signature handler - itself. - The simplest parameter to pass is "none", which causes a - set of signature information to be written out into - STAMPS_DIR - corresponding to the targets specified. - The other currently available parameter is "printdiff", - which causes BitBake to try to establish the closest - signature match it can (e.g. in the sstate cache) and then - run bitbake-diffsigs over the matches - to determine the stamps and delta where these two - stamp trees diverge. - - It is likely that future versions of BitBake will - provide other signature handlers triggered through - additional "-S" parameters. - - - - - You can find more information on checksum metadata in the - "Task Checksums and Setscene" - section. - -
- -
- Setscene - - - The setscene process enables BitBake to handle "pre-built" artifacts. - The ability to handle and reuse these artifacts allows BitBake - the luxury of not having to build something from scratch every time. - Instead, BitBake can use, when possible, existing build artifacts. - - - - BitBake needs to have reliable data indicating whether or not an - artifact is compatible. - Signatures, described in the previous section, provide an ideal - way of representing whether an artifact is compatible. - If a signature is the same, an object can be reused. - - - - If an object can be reused, the problem then becomes how to - replace a given task or set of tasks with the pre-built artifact. - BitBake solves the problem with the "setscene" process. - - - - When BitBake is asked to build a given target, before building anything, - it first asks whether cached information is available for any of the - targets it's building, or any of the intermediate targets. - If cached information is available, BitBake uses this information instead of - running the main tasks. - - - - BitBake first calls the function defined by the - BB_HASHCHECK_FUNCTION - variable with a list of tasks and corresponding - hashes it wants to build. - This function is designed to be fast and returns a list - of the tasks for which it believes in can obtain artifacts. - - - - Next, for each of the tasks that were returned as possibilities, - BitBake executes a setscene version of the task that the possible - artifact covers. - Setscene versions of a task have the string "_setscene" appended to the - task name. - So, for example, the task with the name xxx has - a setscene task named xxx_setscene. - The setscene version of the task executes and provides the necessary - artifacts returning either success or failure. - - - - As previously mentioned, an artifact can cover more than one task. - For example, it is pointless to obtain a compiler if you - already have the compiled binary. - To handle this, BitBake calls the - BB_SETSCENE_DEPVALID - function for each successful setscene task to know whether or not it needs - to obtain the dependencies of that task. - - - - Finally, after all the setscene tasks have executed, BitBake calls the - function listed in - BB_SETSCENE_VERIFY_FUNCTION2 - with the list of tasks BitBake thinks has been "covered". - The metadata can then ensure that this list is correct and can - inform BitBake that it wants specific tasks to be run regardless - of the setscene result. - - - - You can find more information on setscene metadata in the - "Task Checksums and Setscene" - section. - -
-
diff --git a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml b/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml deleted file mode 100644 index c721e86..0000000 --- a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml +++ /dev/null @@ -1,823 +0,0 @@ - - - -File Download Support - - - BitBake's fetch module is a standalone piece of library code - that deals with the intricacies of downloading source code - and files from remote systems. - Fetching source code is one of the cornerstones of building software. - As such, this module forms an important part of BitBake. - - - - The current fetch module is called "fetch2" and refers to the - fact that it is the second major version of the API. - The original version is obsolete and has been removed from the codebase. - Thus, in all cases, "fetch" refers to "fetch2" in this - manual. - - -
- The Download (Fetch) - - - BitBake takes several steps when fetching source code or files. - The fetcher codebase deals with two distinct processes in order: - obtaining the files from somewhere (cached or otherwise) - and then unpacking those files into a specific location and - perhaps in a specific way. - Getting and unpacking the files is often optionally followed - by patching. - Patching, however, is not covered by this module. - - - - The code to execute the first part of this process, a fetch, - looks something like the following: - - src_uri = (d.getVar('SRC_URI') or "").split() - fetcher = bb.fetch2.Fetch(src_uri, d) - fetcher.download() - - This code sets up an instance of the fetch class. - The instance uses a space-separated list of URLs from the - SRC_URI - variable and then calls the download - method to download the files. - - - - The instantiation of the fetch class is usually followed by: - - rootdir = l.getVar('WORKDIR') - fetcher.unpack(rootdir) - - This code unpacks the downloaded files to the - specified by WORKDIR. - - For convenience, the naming in these examples matches - the variables used by OpenEmbedded. - If you want to see the above code in action, examine - the OpenEmbedded class file base.bbclass. - - The SRC_URI and WORKDIR - variables are not hardcoded into the fetcher, since those fetcher - methods can be (and are) called with different variable names. - In OpenEmbedded for example, the shared state (sstate) code uses - the fetch module to fetch the sstate files. - - - - When the download() method is called, - BitBake tries to resolve the URLs by looking for source files - in a specific search order: - - Pre-mirror Sites: - BitBake first uses pre-mirrors to try and find source files. - These locations are defined using the - PREMIRRORS - variable. - - Source URI: - If pre-mirrors fail, BitBake uses the original URL (e.g from - SRC_URI). - - Mirror Sites: - If fetch failures occur, BitBake next uses mirror locations as - defined by the - MIRRORS - variable. - - - - - - For each URL passed to the fetcher, the fetcher - calls the submodule that handles that particular URL type. - This behavior can be the source of some confusion when you - are providing URLs for the SRC_URI - variable. - Consider the following two URLs: - - http://git.yoctoproject.org/git/poky;protocol=git - git://git.yoctoproject.org/git/poky;protocol=http - - In the former case, the URL is passed to the - wget fetcher, which does not - understand "git". - Therefore, the latter case is the correct form since the - Git fetcher does know how to use HTTP as a transport. - - - - Here are some examples that show commonly used mirror - definitions: - - PREMIRRORS ?= "\ - bzr://.*/.* http://somemirror.org/sources/ \n \ - cvs://.*/.* http://somemirror.org/sources/ \n \ - git://.*/.* http://somemirror.org/sources/ \n \ - hg://.*/.* http://somemirror.org/sources/ \n \ - osc://.*/.* http://somemirror.org/sources/ \n \ - p4://.*/.* http://somemirror.org/sources/ \n \ - svn://.*/.* http://somemirror.org/sources/ \n" - - MIRRORS =+ "\ - ftp://.*/.* http://somemirror.org/sources/ \n \ - http://.*/.* http://somemirror.org/sources/ \n \ - https://.*/.* http://somemirror.org/sources/ \n" - - It is useful to note that BitBake supports - cross-URLs. - It is possible to mirror a Git repository on an HTTP - server as a tarball. - This is what the git:// mapping in - the previous example does. - - - - Since network accesses are slow, Bitbake maintains a - cache of files downloaded from the network. - Any source files that are not local (i.e. - downloaded from the Internet) are placed into the download - directory, which is specified by the - DL_DIR - variable. - - - - File integrity is of key importance for reproducing builds. - For non-local archive downloads, the fetcher code can verify - SHA-256 and MD5 checksums to ensure the archives have been - downloaded correctly. - You can specify these checksums by using the - SRC_URI variable with the appropriate - varflags as follows: - - SRC_URI[md5sum] = "value" - SRC_URI[sha256sum] = "value" - - You can also specify the checksums as parameters on the - SRC_URI as shown below: - - SRC_URI = "http://example.com/foobar.tar.bz2;md5sum=4a8e0f237e961fd7785d19d07fdb994d" - - If multiple URIs exist, you can specify the checksums either - directly as in the previous example, or you can name the URLs. - The following syntax shows how you name the URIs: - - SRC_URI = "http://example.com/foobar.tar.bz2;name=foo" - SRC_URI[foo.md5sum] = 4a8e0f237e961fd7785d19d07fdb994d - - After a file has been downloaded and has had its checksum checked, - a ".done" stamp is placed in DL_DIR. - BitBake uses this stamp during subsequent builds to avoid - downloading or comparing a checksum for the file again. - - It is assumed that local storage is safe from data corruption. - If this were not the case, there would be bigger issues to worry about. - - - - - If - BB_STRICT_CHECKSUM - is set, any download without a checksum triggers an - error message. - The - BB_NO_NETWORK - variable can be used to make any attempted network access a fatal - error, which is useful for checking that mirrors are complete - as well as other things. - -
- -
- The Unpack - - - The unpack process usually immediately follows the download. - For all URLs except Git URLs, BitBake uses the common - unpack method. - - - - A number of parameters exist that you can specify within the - URL to govern the behavior of the unpack stage: - - unpack: - Controls whether the URL components are unpacked. - If set to "1", which is the default, the components - are unpacked. - If set to "0", the unpack stage leaves the file alone. - This parameter is useful when you want an archive to be - copied in and not be unpacked. - - dos: - Applies to .zip and - .jar files and specifies whether to - use DOS line ending conversion on text files. - - basepath: - Instructs the unpack stage to strip the specified - directories from the source path when unpacking. - - subdir: - Unpacks the specific URL to the specified subdirectory - within the root directory. - - - The unpack call automatically decompresses and extracts files - with ".Z", ".z", ".gz", ".xz", ".zip", ".jar", ".ipk", ".rpm". - ".srpm", ".deb" and ".bz2" extensions as well as various combinations - of tarball extensions. - - - - As mentioned, the Git fetcher has its own unpack method that - is optimized to work with Git trees. - Basically, this method works by cloning the tree into the final - directory. - The process is completed using references so that there is - only one central copy of the Git metadata needed. - -
- -
- Fetchers - - - As mentioned earlier, the URL prefix determines which - fetcher submodule BitBake uses. - Each submodule can support different URL parameters, - which are described in the following sections. - - -
- Local file fetcher (<filename>file://</filename>) - - - This submodule handles URLs that begin with - file://. - The filename you specify within the URL can be - either an absolute or relative path to a file. - If the filename is relative, the contents of the - FILESPATH - variable is used in the same way - PATH is used to find executables. - If the file cannot be found, it is assumed that it is available in - DL_DIR - by the time the download() method is called. - - - - If you specify a directory, the entire directory is - unpacked. - - - - Here are a couple of example URLs, the first relative and - the second absolute: - - SRC_URI = "file://relativefile.patch" - SRC_URI = "file:///Users/ich/very_important_software" - - -
- -
- HTTP/FTP wget fetcher (<filename>http://</filename>, <filename>ftp://</filename>, <filename>https://</filename>) - - - This fetcher obtains files from web and FTP servers. - Internally, the fetcher uses the wget utility. - - - - The executable and parameters used are specified by the - FETCHCMD_wget variable, which defaults - to sensible values. - The fetcher supports a parameter "downloadfilename" that - allows the name of the downloaded file to be specified. - Specifying the name of the downloaded file is useful - for avoiding collisions in - DL_DIR - when dealing with multiple files that have the same name. - - - - Some example URLs are as follows: - - SRC_URI = "http://oe.handhelds.org/not_there.aac" - SRC_URI = "ftp://oe.handhelds.org/not_there_as_well.aac" - SRC_URI = "ftp://you@oe.handhelds.org/home/you/secret.plan" - - - - Because URL parameters are delimited by semi-colons, this can - introduce ambiguity when parsing URLs that also contain semi-colons, - for example: - - SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47" - - Such URLs should should be modified by replacing semi-colons with '&' characters: - - SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47" - - In most cases this should work. Treating semi-colons and '&' in queries - identically is recommended by the World Wide Web Consortium (W3C). - Note that due to the nature of the URL, you may have to specify the name - of the downloaded file as well: - - SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47;downloadfilename=myfile.bz2" - - -
- -
- CVS fetcher (<filename>(cvs://</filename>) - - - This submodule handles checking out files from the - CVS version control system. - You can configure it using a number of different variables: - - FETCHCMD_cvs: - The name of the executable to use when running - the cvs command. - This name is usually "cvs". - - SRCDATE: - The date to use when fetching the CVS source code. - A special value of "now" causes the checkout to - be updated on every build. - - CVSDIR: - Specifies where a temporary checkout is saved. - The location is often DL_DIR/cvs. - - CVS_PROXY_HOST: - The name to use as a "proxy=" parameter to the - cvs command. - - CVS_PROXY_PORT: - The port number to use as a "proxyport=" parameter to - the cvs command. - - - As well as the standard username and password URL syntax, - you can also configure the fetcher with various URL parameters: - - - - The supported parameters are as follows: - - "method": - The protocol over which to communicate with the CVS - server. - By default, this protocol is "pserver". - If "method" is set to "ext", BitBake examines the - "rsh" parameter and sets CVS_RSH. - You can use "dir" for local directories. - - "module": - Specifies the module to check out. - You must supply this parameter. - - "tag": - Describes which CVS TAG should be used for - the checkout. - By default, the TAG is empty. - - "date": - Specifies a date. - If no "date" is specified, the - SRCDATE - of the configuration is used to checkout a specific date. - The special value of "now" causes the checkout to be - updated on every build. - - "localdir": - Used to rename the module. - Effectively, you are renaming the output directory - to which the module is unpacked. - You are forcing the module into a special - directory relative to - CVSDIR. - - "rsh" - Used in conjunction with the "method" parameter. - - "scmdata": - Causes the CVS metadata to be maintained in the tarball - the fetcher creates when set to "keep". - The tarball is expanded into the work directory. - By default, the CVS metadata is removed. - - "fullpath": - Controls whether the resulting checkout is at the - module level, which is the default, or is at deeper - paths. - - "norecurse": - Causes the fetcher to only checkout the specified - directory with no recurse into any subdirectories. - - "port": - The port to which the CVS server connects. - - - Some example URLs are as follows: - - SRC_URI = "cvs://CVSROOT;module=mymodule;tag=some-version;method=ext" - SRC_URI = "cvs://CVSROOT;module=mymodule;date=20060126;localdir=usethat" - - -
- -
- Subversion (SVN) Fetcher (<filename>svn://</filename>) - - - This fetcher submodule fetches code from the - Subversion source control system. - The executable used is specified by - FETCHCMD_svn, which defaults - to "svn". - The fetcher's temporary working directory is set by - SVNDIR, - which is usually DL_DIR/svn. - - - - The supported parameters are as follows: - - "module": - The name of the svn module to checkout. - You must provide this parameter. - You can think of this parameter as the top-level - directory of the repository data you want. - - "path_spec": - A specific directory in which to checkout the - specified svn module. - - "protocol": - The protocol to use, which defaults to "svn". - If "protocol" is set to "svn+ssh", the "ssh" - parameter is also used. - - "rev": - The revision of the source code to checkout. - - "scmdata": - Causes the “.svn†directories to be available during - compile-time when set to "keep". - By default, these directories are removed. - - "ssh": - An optional parameter used when "protocol" is set - to "svn+ssh". - You can use this parameter to specify the ssh - program used by svn. - - "transportuser": - When required, sets the username for the transport. - By default, this parameter is empty. - The transport username is different than the username - used in the main URL, which is passed to the subversion - command. - - - Following are three examples using svn: - - SRC_URI = "svn://myrepos/proj1;module=vip;protocol=http;rev=667" - SRC_URI = "svn://myrepos/proj1;module=opie;protocol=svn+ssh" - SRC_URI = "svn://myrepos/proj1;module=trunk;protocol=http;path_spec=${MY_DIR}/proj1" - - -
- -
- Git Fetcher (<filename>git://</filename>) - - - This fetcher submodule fetches code from the Git - source control system. - The fetcher works by creating a bare clone of the - remote into - GITDIR, - which is usually DL_DIR/git2. - This bare clone is then cloned into the work directory during the - unpack stage when a specific tree is checked out. - This is done using alternates and by reference to - minimize the amount of duplicate data on the disk and - make the unpack process fast. - The executable used can be set with - FETCHCMD_git. - - - - This fetcher supports the following parameters: - - "protocol": - The protocol used to fetch the files. - The default is "git" when a hostname is set. - If a hostname is not set, the Git protocol is "file". - You can also use "http", "https", "ssh" and "rsync". - - "nocheckout": - Tells the fetcher to not checkout source code when - unpacking when set to "1". - Set this option for the URL where there is a custom - routine to checkout code. - The default is "0". - - "rebaseable": - Indicates that the upstream Git repository can be rebased. - You should set this parameter to "1" if - revisions can become detached from branches. - In this case, the source mirror tarball is done per - revision, which has a loss of efficiency. - Rebasing the upstream Git repository could cause the - current revision to disappear from the upstream repository. - This option reminds the fetcher to preserve the local cache - carefully for future use. - The default value for this parameter is "0". - - "nobranch": - Tells the fetcher to not check the SHA validation - for the branch when set to "1". - The default is "0". - Set this option for the recipe that refers to - the commit that is valid for a tag instead of - the branch. - - "bareclone": - Tells the fetcher to clone a bare clone into the - destination directory without checking out a working tree. - Only the raw Git metadata is provided. - This parameter implies the "nocheckout" parameter as well. - - "branch": - The branch(es) of the Git tree to clone. - If unset, this is assumed to be "master". - The number of branch parameters much match the number of - name parameters. - - "rev": - The revision to use for the checkout. - The default is "master". - - "tag": - Specifies a tag to use for the checkout. - To correctly resolve tags, BitBake must access the - network. - For that reason, tags are often not used. - As far as Git is concerned, the "tag" parameter behaves - effectively the same as the "rev" parameter. - - "subpath": - Limits the checkout to a specific subpath of the tree. - By default, the whole tree is checked out. - - "destsuffix": - The name of the path in which to place the checkout. - By default, the path is git/. - - - Here are some example URLs: - - SRC_URI = "git://git.oe.handhelds.org/git/vip.git;tag=version-1" - SRC_URI = "git://git.oe.handhelds.org/git/vip.git;protocol=http" - - -
- -
- Git Submodule Fetcher (<filename>gitsm://</filename>) - - - This fetcher submodule inherits from the - Git fetcher and extends - that fetcher's behavior by fetching a repository's submodules. - SRC_URI - is passed to the Git fetcher as described in the - "Git Fetcher (git://)" - section. - - Notes and Warnings - - You must clean a recipe when switching between - 'git://' and - 'gitsm://' URLs. - - - - The Git Submodules fetcher is not a complete fetcher - implementation. - The fetcher has known issues where it does not use the - normal source mirroring infrastructure properly. Further, - the submodule sources it fetches are not visible to the - licensing and source archiving infrastructures. - - - -
- -
- ClearCase Fetcher (<filename>ccrc://</filename>) - - - This fetcher submodule fetches code from a - ClearCase - repository. - - - - To use this fetcher, make sure your recipe has proper - SRC_URI, - SRCREV, and - PV settings. - Here is an example: - - SRC_URI = "ccrc://cc.example.org/ccrc;vob=/example_vob;module=/example_module" - SRCREV = "EXAMPLE_CLEARCASE_TAG" - PV = "${@d.getVar("SRCREV", False).replace("/", "+")}" - - The fetcher uses the rcleartool or - cleartool remote client, depending on - which one is available. - - - - Following are options for the SRC_URI - statement: - - vob: - The name, which must include the - prepending "/" character, of the ClearCase VOB. - This option is required. - - module: - The module, which must include the - prepending "/" character, in the selected VOB. - - The module and vob - options are combined to create the load rule in - the view config spec. - As an example, consider the vob and - module values from the - SRC_URI statement at the start of this section. - Combining those values results in the following: - - load /example_vob/example_module - - - - proto: - The protocol, which can be either http or - https. - - - - - - By default, the fetcher creates a configuration specification. - If you want this specification written to an area other than the default, - use the CCASE_CUSTOM_CONFIG_SPEC variable - in your recipe to define where the specification is written. - - the SRCREV loses its functionality if you - specify this variable. - However, SRCREV is still used to label the - archive after a fetch even though it does not define what is - fetched. - - - - - Here are a couple of other behaviors worth mentioning: - - - When using cleartool, the login of - cleartool is handled by the system. - The login require no special steps. - - - In order to use rcleartool with authenticated - users, an "rcleartool login" is necessary before using the fetcher. - - - -
- -
- Perforce Fetcher (<filename>p4://</filename>) - - - This fetcher submodule fetches code from the - Perforce - source control system. - The executable used is specified by - FETCHCMD_p4, which defaults - to "p4". - The fetcher's temporary working directory is set by - P4DIR, - which defaults to "DL_DIR/p4". - - - - To use this fetcher, make sure your recipe has proper - SRC_URI, - SRCREV, and - PV values. - The p4 executable is able to use the config file defined by your - system's P4CONFIG environment variable in - order to define the Perforce server URL and port, username, and - password if you do not wish to keep those values in a recipe - itself. - If you choose not to use P4CONFIG, - or to explicitly set variables that P4CONFIG - can contain, you can specify the P4PORT value, - which is the server's URL and port number, and you can - specify a username and password directly in your recipe within - SRC_URI. - - - - Here is an example that relies on P4CONFIG - to specify the server URL and port, username, and password, and - fetches the Head Revision: - - SRC_URI = "p4://example-depot/main/source/..." - SRCREV = "${AUTOREV}" - PV = "p4-${SRCPV}" - S = "${WORKDIR}/p4" - - - - - Here is an example that specifies the server URL and port, - username, and password, and fetches a Revision based on a Label: - - P4PORT = "tcp:p4server.example.net:1666" - SRC_URI = "p4://user:passwd@example-depot/main/source/..." - SRCREV = "release-1.0" - PV = "p4-${SRCPV}" - S = "${WORKDIR}/p4" - - - You should always set S - to "${WORKDIR}/p4" in your recipe. - - -
- -
- Other Fetchers - - - Fetch submodules also exist for the following: - - - Bazaar (bzr://) - - - Trees using Git Annex (gitannex://) - - - Secure FTP (sftp://) - - - Secure Shell (ssh://) - - - Repo (repo://) - - - OSC (osc://) - - - Mercurial (hg://) - - - No documentation currently exists for these lesser used - fetcher submodules. - However, you might find the code helpful and readable. - -
-
- -
- Auto Revisions - - - We need to document AUTOREV and - SRCREV_FORMAT here. - -
-
diff --git a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml b/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml deleted file mode 100644 index 9253eaf..0000000 --- a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml +++ /dev/null @@ -1,495 +0,0 @@ - - - - Hello World Example - -
- BitBake Hello World - - - The simplest example commonly used to demonstrate any new - programming language or tool is the - "Hello World" - example. - This appendix demonstrates, in tutorial form, Hello - World within the context of BitBake. - The tutorial describes how to create a new project - and the applicable metadata files necessary to allow - BitBake to build it. - -
- -
- Obtaining BitBake - - - See the - "Obtaining BitBake" - section for information on how to obtain BitBake. - Once you have the source code on your machine, the BitBake directory - appears as follows: - - $ ls -al - total 100 - drwxrwxr-x. 9 wmat wmat 4096 Jan 31 13:44 . - drwxrwxr-x. 3 wmat wmat 4096 Feb 4 10:45 .. - -rw-rw-r--. 1 wmat wmat 365 Nov 26 04:55 AUTHORS - drwxrwxr-x. 2 wmat wmat 4096 Nov 26 04:55 bin - drwxrwxr-x. 4 wmat wmat 4096 Jan 31 13:44 build - -rw-rw-r--. 1 wmat wmat 16501 Nov 26 04:55 ChangeLog - drwxrwxr-x. 2 wmat wmat 4096 Nov 26 04:55 classes - drwxrwxr-x. 2 wmat wmat 4096 Nov 26 04:55 conf - drwxrwxr-x. 3 wmat wmat 4096 Nov 26 04:55 contrib - -rw-rw-r--. 1 wmat wmat 17987 Nov 26 04:55 COPYING - drwxrwxr-x. 3 wmat wmat 4096 Nov 26 04:55 doc - -rw-rw-r--. 1 wmat wmat 69 Nov 26 04:55 .gitignore - -rw-rw-r--. 1 wmat wmat 849 Nov 26 04:55 HEADER - drwxrwxr-x. 5 wmat wmat 4096 Jan 31 13:44 lib - -rw-rw-r--. 1 wmat wmat 195 Nov 26 04:55 MANIFEST.in - -rw-rw-r--. 1 wmat wmat 2887 Nov 26 04:55 TODO - - - - - At this point, you should have BitBake cloned to - a directory that matches the previous listing except for - dates and user names. - -
- -
- Setting Up the BitBake Environment - - - First, you need to be sure that you can run BitBake. - Set your working directory to where your local BitBake - files are and run the following command: - - $ ./bin/bitbake --version - BitBake Build Tool Core version 1.23.0, bitbake version 1.23.0 - - The console output tells you what version you are running. - - - - The recommended method to run BitBake is from a directory of your - choice. - To be able to run BitBake from any directory, you need to add the - executable binary to your binary to your shell's environment - PATH variable. - First, look at your current PATH variable - by entering the following: - - $ echo $PATH - - Next, add the directory location for the BitBake binary to the - PATH. - Here is an example that adds the - /home/scott-lenovo/bitbake/bin directory - to the front of the PATH variable: - - $ export PATH=/home/scott-lenovo/bitbake/bin:$PATH - - You should now be able to enter the bitbake - command from the command line while working from any directory. - -
- -
- The Hello World Example - - - The overall goal of this exercise is to build a - complete "Hello World" example utilizing task and layer - concepts. - Because this is how modern projects such as OpenEmbedded and - the Yocto Project utilize BitBake, the example - provides an excellent starting point for understanding - BitBake. - - - - To help you understand how to use BitBake to build targets, - the example starts with nothing but the bitbake - command, which causes BitBake to fail and report problems. - The example progresses by adding pieces to the build to - eventually conclude with a working, minimal "Hello World" - example. - - - - While every attempt is made to explain what is happening during - the example, the descriptions cannot cover everything. - You can find further information throughout this manual. - Also, you can actively participate in the - - discussion mailing list about the BitBake build tool. - - - - This example was inspired by and drew heavily from - Mailing List post - The BitBake equivalent of "Hello, World!". - - - - As stated earlier, the goal of this example - is to eventually compile "Hello World". - However, it is unknown what BitBake needs and what you have - to provide in order to achieve that goal. - Recall that BitBake utilizes three types of metadata files: - Configuration Files, - Classes, and - Recipes. - But where do they go? - How does BitBake find them? - BitBake's error messaging helps you answer these types of questions - and helps you better understand exactly what is going on. - - - - Following is the complete "Hello World" example. - - - - Create a Project Directory: - First, set up a directory for the "Hello World" project. - Here is how you can do so in your home directory: - - $ mkdir ~/hello - $ cd ~/hello - - This is the directory that BitBake will use to do all of - its work. - You can use this directory to keep all the metafiles needed - by BitBake. - Having a project directory is a good way to isolate your - project. - - Run Bitbake: - At this point, you have nothing but a project directory. - Run the bitbake command and see what - it does: - - $ bitbake - The BBPATH variable is not set and bitbake did not - find a conf/bblayers.conf file in the expected location. - Maybe you accidentally invoked bitbake from the wrong directory? - DEBUG: Removed the following variables from the environment: - GNOME_DESKTOP_SESSION_ID, XDG_CURRENT_DESKTOP, - GNOME_KEYRING_CONTROL, DISPLAY, SSH_AGENT_PID, LANG, no_proxy, - XDG_SESSION_PATH, XAUTHORITY, SESSION_MANAGER, SHLVL, - MANDATORY_PATH, COMPIZ_CONFIG_PROFILE, WINDOWID, EDITOR, - GPG_AGENT_INFO, SSH_AUTH_SOCK, GDMSESSION, GNOME_KEYRING_PID, - XDG_SEAT_PATH, XDG_CONFIG_DIRS, LESSOPEN, DBUS_SESSION_BUS_ADDRESS, - _, XDG_SESSION_COOKIE, DESKTOP_SESSION, LESSCLOSE, DEFAULTS_PATH, - UBUNTU_MENUPROXY, OLDPWD, XDG_DATA_DIRS, COLORTERM, LS_COLORS - - The majority of this output is specific to environment variables - that are not directly relevant to BitBake. - However, the very first message regarding the - BBPATH variable and the - conf/bblayers.conf file - is relevant. - - When you run BitBake, it begins looking for metadata files. - The - BBPATH - variable is what tells BitBake where to look for those files. - BBPATH is not set and you need to set it. - Without BBPATH, Bitbake cannot - find any configuration files (.conf) - or recipe files (.bb) at all. - BitBake also cannot find the bitbake.conf - file. - - Setting BBPATH: - For this example, you can set BBPATH - in the same manner that you set PATH - earlier in the appendix. - You should realize, though, that it is much more flexible to set the - BBPATH variable up in a configuration - file for each project. - From your shell, enter the following commands to set and - export the BBPATH variable: - - $ BBPATH="projectdirectory" - $ export BBPATH - - Use your actual project directory in the command. - BitBake uses that directory to find the metadata it needs for - your project. - - When specifying your project directory, do not use the - tilde ("~") character as BitBake does not expand that character - as the shell would. - - - Run Bitbake: - Now that you have BBPATH defined, run - the bitbake command again: - - $ bitbake - ERROR: Traceback (most recent call last): - File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 163, in wrapped - return func(fn, *args) - File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 173, in parse_config_file - return bb.parse.handle(fn, data, include) - File "/home/scott-lenovo/bitbake/lib/bb/parse/__init__.py", line 99, in handle - return h['handle'](fn, data, include) - File "/home/scott-lenovo/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 120, in handle - abs_fn = resolve_file(fn, data) - File "/home/scott-lenovo/bitbake/lib/bb/parse/__init__.py", line 117, in resolve_file - raise IOError("file %s not found in %s" % (fn, bbpath)) - IOError: file conf/bitbake.conf not found in /home/scott-lenovo/hello - - ERROR: Unable to parse conf/bitbake.conf: file conf/bitbake.conf not found in /home/scott-lenovo/hello - - This sample output shows that BitBake could not find the - conf/bitbake.conf file in the project - directory. - This file is the first thing BitBake must find in order - to build a target. - And, since the project directory for this example is - empty, you need to provide a conf/bitbake.conf - file. - - Creating conf/bitbake.conf: - The conf/bitbake.conf includes a number of - configuration variables BitBake uses for metadata and recipe - files. - For this example, you need to create the file in your project directory - and define some key BitBake variables. - For more information on the bitbake.conf, - see - . - - Use the following commands to create the conf - directory in the project directory: - - $ mkdir conf - - From within the conf directory, use - some editor to create the bitbake.conf - so that it contains the following: - - TMPDIR = "${TOPDIR}/tmp" - CACHE = "${TMPDIR}/cache" - STAMP = "${TMPDIR}/stamps" - T = "${TMPDIR}/work" - B = "${TMPDIR}" - - The TMPDIR variable establishes a directory - that BitBake uses for build output and intermediate files (other - than the cached information used by the - Setscene process. - Here, the TMPDIR directory is set to - hello/tmp. - Tip - You can always safely delete the tmp - directory in order to rebuild a BitBake target. - The build process creates the directory for you - when you run BitBake. - - For information about each of the other variables defined in this - example, click on the links to take you to the definitions in - the glossary. - - Run Bitbake: - After making sure that the conf/bitbake.conf - file exists, you can run the bitbake - command again: - -$ bitbake -ERROR: Traceback (most recent call last): - File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 163, in wrapped - return func(fn, *args) - File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 177, in _inherit - bb.parse.BBHandler.inherit(bbclass, "configuration INHERITs", 0, data) - File "/home/scott-lenovo/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 92, in inherit - include(fn, file, lineno, d, "inherit") - File "/home/scott-lenovo/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 100, in include - raise ParseError("Could not %(error_out)s file %(fn)s" % vars(), oldfn, lineno) -ParseError: ParseError in configuration INHERITs: Could not inherit file classes/base.bbclass - -ERROR: Unable to parse base: ParseError in configuration INHERITs: Could not inherit file classes/base.bbclass - - In the sample output, BitBake could not find the - classes/base.bbclass file. - You need to create that file next. - - Creating classes/base.bbclass: - BitBake uses class files to provide common code and functionality. - The minimally required class for BitBake is the - classes/base.bbclass file. - The base class is implicitly inherited by - every recipe. - BitBake looks for the class in the classes - directory of the project (i.e hello/classes - in this example). - - Create the classes directory as follows: - - $ cd $HOME/hello - $ mkdir classes - - Move to the classes directory and then - create the base.bbclass file by inserting - this single line: - - addtask build - - The minimal task that BitBake runs is the - do_build task. - This is all the example needs in order to build the project. - Of course, the base.bbclass can have much - more depending on which build environments BitBake is - supporting. - - Run Bitbake: - After making sure that the classes/base.bbclass - file exists, you can run the bitbake - command again: - - $ bitbake - Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information. - - BitBake is finally reporting no errors. - However, you can see that it really does not have anything - to do. - You need to create a recipe that gives BitBake something to do. - - Creating a Layer: - While it is not really necessary for such a small example, - it is good practice to create a layer in which to keep your - code separate from the general metadata used by BitBake. - Thus, this example creates and uses a layer called "mylayer". - - You can find additional information on layers at - . - - - Minimally, you need a recipe file and a layer configuration - file in your layer. - The configuration file needs to be in the conf - directory inside the layer. - Use these commands to set up the layer and the conf - directory: - - $ cd $HOME - $ mkdir mylayer - $ cd mylayer - $ mkdir conf - - Move to the conf directory and create a - layer.conf file that has the following: - - BBPATH .= ":${LAYERDIR}" - - BBFILES += "${LAYERDIR}/*.bb" - - BBFILE_COLLECTIONS += "mylayer" - BBFILE_PATTERN_mylayer := "^${LAYERDIR_RE}/" - - For information on these variables, click the links - to go to the definitions in the glossary. - You need to create the recipe file next. - Inside your layer at the top-level, use an editor and create - a recipe file named printhello.bb that - has the following: - - DESCRIPTION = "Prints Hello World" - PN = 'printhello' - PV = '1' - - python do_build() { - bb.plain("********************"); - bb.plain("* *"); - bb.plain("* Hello, World! *"); - bb.plain("* *"); - bb.plain("********************"); - } - - The recipe file simply provides a description of the - recipe, the name, version, and the do_build - task, which prints out "Hello World" to the console. - For more information on these variables, follow the links - to the glossary. - - Run Bitbake With a Target: - Now that a BitBake target exists, run the command and provide - that target: - - $ cd $HOME/hello - $ bitbake printhello - ERROR: no recipe files to build, check your BBPATH and BBFILES? - - Summary: There was 1 ERROR message shown, returning a non-zero exit code. - - We have created the layer with the recipe and the layer - configuration file but it still seems that BitBake cannot - find the recipe. - BitBake needs a conf/bblayers.conf that - lists the layers for the project. - Without this file, BitBake cannot find the recipe. - - Creating conf/bblayers.conf: - BitBake uses the conf/bblayers.conf file - to locate layers needed for the project. - This file must reside in the conf directory - of the project (i.e. hello/conf for this - example). - Set your working directory to the hello/conf - directory and then create the bblayers.conf - file so that it contains the following: - - BBLAYERS ?= " \ - /home/<you>/mylayer \ - " - - You need to provide your own information for - you in the file. - - Run Bitbake With a Target: - Now that you have supplied the bblayers.conf - file, run the bitbake command and provide - the target: - - $ bitbake printhello - Parsing recipes: 100% |##################################################################################| - Time: 00:00:00 - Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors. - NOTE: Resolving any missing task queue dependencies - NOTE: Preparing RunQueue - NOTE: Executing RunQueue Tasks - ******************** - * * - * Hello, World! * - * * - ******************** - NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded. - - BitBake finds the printhello recipe and - successfully runs the task. - - After the first execution, re-running - bitbake printhello again will not - result in a BitBake run that prints the same console - output. - The reason for this is that the first time the - printhello.bb recipe's - do_build task executes - successfully, BitBake writes a stamp file for the task. - Thus, the next time you attempt to run the task - using that same bitbake command, - BitBake notices the stamp and therefore determines - that the task does not need to be re-run. - If you delete the tmp directory - or run bitbake -c clean printhello - and then re-run the build, the "Hello, World!" message will - be printed again. - - - -
-
diff --git a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.xml b/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.xml deleted file mode 100644 index 08d9afd..0000000 --- a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.xml +++ /dev/null @@ -1,721 +0,0 @@ - - - - Overview - - - Welcome to the BitBake User Manual. - This manual provides information on the BitBake tool. - The information attempts to be as independent as possible regarding - systems that use BitBake, such as OpenEmbedded and the - Yocto Project. - In some cases, scenarios or examples within the context of - a build system are used in the manual to help with understanding. - For these cases, the manual clearly states the context. - - -
- Introduction - - - Fundamentally, BitBake is a generic task execution - engine that allows shell and Python tasks to be run - efficiently and in parallel while working within - complex inter-task dependency constraints. - One of BitBake's main users, OpenEmbedded, takes this core - and builds embedded Linux software stacks using - a task-oriented approach. - - - - Conceptually, BitBake is similar to GNU Make in - some regards but has significant differences: - - - BitBake executes tasks according to provided - metadata that builds up the tasks. - Metadata is stored in recipe (.bb) - and related recipe "append" (.bbappend) - files, configuration (.conf) and - underlying include (.inc) files, and - in class (.bbclass) files. - The metadata provides - BitBake with instructions on what tasks to run and - the dependencies between those tasks. - - - BitBake includes a fetcher library for obtaining source - code from various places such as local files, source control - systems, or websites. - - - The instructions for each unit to be built (e.g. a piece - of software) are known as "recipe" files and - contain all the information about the unit - (dependencies, source file locations, checksums, description - and so on). - - - BitBake includes a client/server abstraction and can - be used from a command line or used as a service over - XML-RPC and has several different user interfaces. - - - -
- -
- History and Goals - - - BitBake was originally a part of the OpenEmbedded project. - It was inspired by the Portage package management system - used by the Gentoo Linux distribution. - On December 7, 2004, OpenEmbedded project team member - Chris Larson split the project into two distinct pieces: - - BitBake, a generic task executor - OpenEmbedded, a metadata set utilized by - BitBake - - Today, BitBake is the primary basis of the - OpenEmbedded - project, which is being used to build and maintain Linux - distributions such as the - Angstrom Distribution, - and which is also being used as the build tool for Linux projects - such as the - Yocto Project. - - - - Prior to BitBake, no other build tool adequately met the needs of - an aspiring embedded Linux distribution. - All of the build systems used by traditional desktop Linux - distributions lacked important functionality, and none of the - ad hoc Buildroot-based systems, prevalent in the - embedded space, were scalable or maintainable. - - - - Some important original goals for BitBake were: - - - Handle cross-compilation. - - - Handle inter-package dependencies (build time on - target architecture, build time on native - architecture, and runtime). - - - Support running any number of tasks within a given - package, including, but not limited to, fetching - upstream sources, unpacking them, patching them, - configuring them, and so forth. - - - Be Linux distribution agnostic for both build and - target systems. - - - Be architecture agnostic. - - - Support multiple build and target operating systems - (e.g. Cygwin, the BSDs, and so forth). - - - Be self contained, rather than tightly - integrated into the build machine's root - filesystem. - - - Handle conditional metadata on the target architecture, - operating system, distribution, and machine. - - - Be easy to use the tools to supply local metadata and packages - against which to operate. - - - Be easy to use BitBake to collaborate between multiple - projects for their builds. - - - Provide an inheritance mechanism to share - common metadata between many packages. - - - Over time it became apparent that some further requirements - were necessary: - - - Handle variants of a base recipe (e.g. native, sdk, - and multilib). - - - Split metadata into layers and allow layers - to enhance or override other layers. - - - Allow representation of a given set of input variables - to a task as a checksum. - Based on that checksum, allow acceleration of builds - with prebuilt components. - - - BitBake satisfies all the original requirements and many more - with extensions being made to the basic functionality to - reflect the additional requirements. - Flexibility and power have always been the priorities. - BitBake is highly extensible and supports embedded Python code and - execution of any arbitrary tasks. - -
- -
- Concepts - - - BitBake is a program written in the Python language. - At the highest level, BitBake interprets metadata, decides - what tasks are required to run, and executes those tasks. - Similar to GNU Make, BitBake controls how software is - built. - GNU Make achieves its control through "makefiles", while - BitBake uses "recipes". - - - - BitBake extends the capabilities of a simple - tool like GNU Make by allowing for the definition of much more - complex tasks, such as assembling entire embedded Linux - distributions. - - - - The remainder of this section introduces several concepts - that should be understood in order to better leverage - the power of BitBake. - - -
- Recipes - - - BitBake Recipes, which are denoted by the file extension - .bb, are the most basic metadata files. - These recipe files provide BitBake with the following: - - Descriptive information about the - package (author, homepage, license, and so on) - The version of the recipe - Existing dependencies (both build - and runtime dependencies) - Where the source code resides and - how to fetch it - Whether the source code requires - any patches, where to find them, and how to apply - them - How to configure and compile the - source code - Where on the target machine to install the - package or packages created - - - - - Within the context of BitBake, or any project utilizing BitBake - as its build system, files with the .bb - extension are referred to as recipes. - - The term "package" is also commonly used to describe recipes. - However, since the same word is used to describe packaged - output from a project, it is best to maintain a single - descriptive term - "recipes". - Put another way, a single "recipe" file is quite capable - of generating a number of related but separately installable - "packages". - In fact, that ability is fairly common. - - -
- -
- Configuration Files - - - Configuration files, which are denoted by the - .conf extension, define - various configuration variables that govern the project's build - process. - These files fall into several areas that define - machine configuration options, distribution configuration - options, compiler tuning options, general common - configuration options, and user configuration options. - The main configuration file is the sample - bitbake.conf file, which is - located within the BitBake source tree - conf directory. - -
- -
- Classes - - - Class files, which are denoted by the - .bbclass extension, contain - information that is useful to share between metadata files. - The BitBake source tree currently comes with one class metadata file - called base.bbclass. - You can find this file in the - classes directory. - The base.bbclass class files is special since it - is always included automatically for all recipes - and classes. - This class contains definitions for standard basic tasks such - as fetching, unpacking, configuring (empty by default), - compiling (runs any Makefile present), installing (empty by - default) and packaging (empty by default). - These tasks are often overridden or extended by other classes - added during the project development process. - -
- -
- Layers - - - Layers allow you to isolate different types of - customizations from each other. - While you might find it tempting to keep everything in one layer - when working on a single project, the more modular you organize - your metadata, the easier it is to cope with future changes. - - - - To illustrate how you can use layers to keep things modular, - consider customizations you might make to support a specific target machine. - These types of customizations typically reside in a special layer, - rather than a general layer, called a Board Support Package (BSP) - Layer. - Furthermore, the machine customizations should be isolated from - recipes and metadata that support a new GUI environment, for - example. - This situation gives you a couple of layers: one for the machine - configurations and one for the GUI environment. - It is important to understand, however, that the BSP layer can still - make machine-specific additions to recipes within - the GUI environment layer without polluting the GUI layer itself - with those machine-specific changes. - You can accomplish this through a recipe that is a BitBake append - (.bbappend) file. - -
- -
- Append Files - - - Append files, which are files that have the - .bbappend file extension, extend or - override information in an existing recipe file. - - - - BitBake expects every append file to have a corresponding recipe file. - Furthermore, the append file and corresponding recipe file - must use the same root filename. - The filenames can differ only in the file type suffix used - (e.g. formfactor_0.0.bb and - formfactor_0.0.bbappend). - - - - Information in append files extends or - overrides the information in the underlying, - similarly-named recipe files. - - - - When you name an append file, you can use the - wildcard character (%) to allow for matching recipe names. - For example, suppose you have an append file named - as follows: - - busybox_1.21.%.bbappend - - That append file would match any busybox_1.21.x.bb - version of the recipe. - So, the append file would match the following recipe names: - - busybox_1.21.1.bb - busybox_1.21.2.bb - busybox_1.21.3.bb - - If the busybox recipe was updated to - busybox_1.3.0.bb, the append name would not - match. - However, if you named the append file - busybox_1.%.bbappend, then you would have a match. - - - - In the most general case, you could name the append file something as - simple as busybox_%.bbappend to be entirely - version independent. - -
-
- -
- Obtaining BitBake - - - You can obtain BitBake several different ways: - - Cloning BitBake: - Using Git to clone the BitBake source code repository - is the recommended method for obtaining BitBake. - Cloning the repository makes it easy to get bug fixes - and have access to stable branches and the master - branch. - Once you have cloned BitBake, you should use - the latest stable - branch for development since the master branch is for - BitBake development and might contain less stable changes. - - You usually need a version of BitBake - that matches the metadata you are using. - The metadata is generally backwards compatible but - not forward compatible. - Here is an example that clones the BitBake repository: - - $ git clone git://git.openembedded.org/bitbake - - This command clones the BitBake Git repository into a - directory called bitbake. - Alternatively, you can - designate a directory after the - git clone command - if you want to call the new directory something - other than bitbake. - Here is an example that names the directory - bbdev: - - $ git clone git://git.openembedded.org/bitbake bbdev - - Installation using your Distribution - Package Management System: - This method is not - recommended because the BitBake version that is - provided by your distribution, in most cases, - is several - releases behind a snapshot of the BitBake repository. - - Taking a snapshot of BitBake: - Downloading a snapshot of BitBake from the - source code repository gives you access to a known - branch or release of BitBake. - - Cloning the Git repository, as described earlier, - is the preferred method for getting BitBake. - Cloning the repository makes it easier to update as - patches are added to the stable branches. - - The following example downloads a snapshot of - BitBake version 1.17.0: - - $ wget http://git.openembedded.org/bitbake/snapshot/bitbake-1.17.0.tar.gz - $ tar zxpvf bitbake-1.17.0.tar.gz - - After extraction of the tarball using the tar utility, - you have a directory entitled - bitbake-1.17.0. - - Using the BitBake that Comes With Your - Build Checkout: - A final possibility for getting a copy of BitBake is that it - already comes with your checkout of a larger Bitbake-based build - system, such as Poky. - Rather than manually checking out individual layers and - gluing them together yourself, you can check - out an entire build system. - The checkout will already include a version of BitBake that - has been thoroughly tested for compatibility with the other - components. - For information on how to check out a particular BitBake-based - build system, consult that build system's supporting documentation. - - - -
- -
- The BitBake Command - - - The bitbake command is the primary interface - to the BitBake tool. - This section presents the BitBake command syntax and provides - several execution examples. - - -
- Usage and syntax - - - Following is the usage and syntax for BitBake: - - $ bitbake -h - Usage: bitbake [options] [recipename/target recipe:do_task ...] - - Executes the specified task (default is 'build') for a given set of target recipes (.bb files). - It is assumed there is a conf/bblayers.conf available in cwd or in BBPATH which - will provide the layer, BBFILES and other configuration information. - - Options: - --version show program's version number and exit - -h, --help show this help message and exit - -b BUILDFILE, --buildfile=BUILDFILE - Execute tasks from a specific .bb recipe directly. - WARNING: Does not handle any dependencies from other - recipes. - -k, --continue Continue as much as possible after an error. While the - target that failed and anything depending on it cannot - be built, as much as possible will be built before - stopping. - -a, --tryaltconfigs Continue with builds by trying to use alternative - providers where possible. - -f, --force Force the specified targets/task to run (invalidating - any existing stamp file). - -c CMD, --cmd=CMD Specify the task to execute. The exact options - available depend on the metadata. Some examples might - be 'compile' or 'populate_sysroot' or 'listtasks' may - give a list of the tasks available. - -C INVALIDATE_STAMP, --clear-stamp=INVALIDATE_STAMP - Invalidate the stamp for the specified task such as - 'compile' and then run the default task for the - specified target(s). - -r PREFILE, --read=PREFILE - Read the specified file before bitbake.conf. - -R POSTFILE, --postread=POSTFILE - Read the specified file after bitbake.conf. - -v, --verbose Enable tracing of shell tasks (with 'set -x'). - Also print bb.note(...) messages to stdout (in - addition to writing them to ${T}/log.do_<task>). - -D, --debug Increase the debug level. You can specify this - more than once. -D sets the debug level to 1, - where only bb.debug(1, ...) messages are printed - to stdout; -DD sets the debug level to 2, where - both bb.debug(1, ...) and bb.debug(2, ...) - messages are printed; etc. Without -D, no debug - messages are printed. Note that -D only affects - output to stdout. All debug messages are written - to ${T}/log.do_taskname, regardless of the debug - level. - -n, --dry-run Don't execute, just go through the motions. - -S SIGNATURE_HANDLER, --dump-signatures=SIGNATURE_HANDLER - Dump out the signature construction information, with - no task execution. The SIGNATURE_HANDLER parameter is - passed to the handler. Two common values are none and - printdiff but the handler may define more/less. none - means only dump the signature, printdiff means compare - the dumped signature with the cached one. - -p, --parse-only Quit after parsing the BB recipes. - -s, --show-versions Show current and preferred versions of all recipes. - -e, --environment Show the global or per-recipe environment complete - with information about where variables were - set/changed. - -g, --graphviz Save dependency tree information for the specified - targets in the dot syntax. - -I EXTRA_ASSUME_PROVIDED, --ignore-deps=EXTRA_ASSUME_PROVIDED - Assume these dependencies don't exist and are already - provided (equivalent to ASSUME_PROVIDED). Useful to - make dependency graphs more appealing - -l DEBUG_DOMAINS, --log-domains=DEBUG_DOMAINS - Show debug logging for the specified logging domains - -P, --profile Profile the command and save reports. - -u UI, --ui=UI The user interface to use (taskexp, knotty or - ncurses - default knotty). - -t SERVERTYPE, --servertype=SERVERTYPE - Choose which server type to use (process or xmlrpc - - default process). - --token=XMLRPCTOKEN Specify the connection token to be used when - connecting to a remote server. - --revisions-changed Set the exit code depending on whether upstream - floating revisions have changed or not. - --server-only Run bitbake without a UI, only starting a server - (cooker) process. - -B BIND, --bind=BIND The name/address for the bitbake server to bind to. - --no-setscene Do not run any setscene tasks. sstate will be ignored - and everything needed, built. - --setscene-only Only run setscene tasks, don't run any real tasks. - --remote-server=REMOTE_SERVER - Connect to the specified server. - -m, --kill-server Terminate the remote server. - --observe-only Connect to a server as an observing-only client. - --status-only Check the status of the remote bitbake server. - -w WRITEEVENTLOG, --write-log=WRITEEVENTLOG - Writes the event log of the build to a bitbake event - json file. Use '' (empty string) to assign the name - automatically. - - -
- -
- Examples - - - This section presents some examples showing how to use BitBake. - - -
- Executing a Task Against a Single Recipe - - - Executing tasks for a single recipe file is relatively simple. - You specify the file in question, and BitBake parses - it and executes the specified task. - If you do not specify a task, BitBake executes the default - task, which is "buildâ€. - BitBake obeys inter-task dependencies when doing - so. - - - - The following command runs the build task, which is - the default task, on the foo_1.0.bb - recipe file: - - $ bitbake -b foo_1.0.bb - - The following command runs the clean task on the - foo.bb recipe file: - - $ bitbake -b foo.bb -c clean - - - The "-b" option explicitly does not handle recipe - dependencies. - Other than for debugging purposes, it is instead - recommended that you use the syntax presented in the - next section. - - -
- -
- Executing Tasks Against a Set of Recipe Files - - - There are a number of additional complexities introduced - when one wants to manage multiple .bb - files. - Clearly there needs to be a way to tell BitBake what - files are available and, of those, which you - want to execute. - There also needs to be a way for each recipe - to express its dependencies, both for build-time and - runtime. - There must be a way for you to express recipe preferences - when multiple recipes provide the same functionality, or when - there are multiple versions of a recipe. - - - - The bitbake command, when not using - "--buildfile" or "-b" only accepts a "PROVIDES". - You cannot provide anything else. - By default, a recipe file generally "PROVIDES" its - "packagename" as shown in the following example: - - $ bitbake foo - - This next example "PROVIDES" the package name and also uses - the "-c" option to tell BitBake to just execute the - do_clean task: - - $ bitbake -c clean foo - - -
- -
- Executing a List of Task and Recipe Combinations - - - The BitBake command line supports specifying different - tasks for individual targets when you specify multiple - targets. - For example, suppose you had two targets (or recipes) - myfirstrecipe and - mysecondrecipe and you needed - BitBake to run taskA for the first - recipe and taskB for the second - recipe: - - $ bitbake myfirstrecipe:do_taskA mysecondrecipe:do_taskB - - -
- -
- Generating Dependency Graphs - - - BitBake is able to generate dependency graphs using - the dot syntax. - You can convert these graphs into images using the - dot tool from - Graphviz. - - - - When you generate a dependency graph, BitBake writes three files - to the current working directory: - - - recipe-depends.dot: - Shows dependencies between recipes (i.e. a collapsed version of - task-depends.dot). - - - task-depends.dot: - Shows dependencies between tasks. - These dependencies match BitBake's internal task execution list. - - - pn-buildlist: - Shows a simple list of targets that are to be built. - - - - - - To stop depending on common depends, use the "-I" depend - option and BitBake omits them from the graph. - Leaving this information out can produce more readable graphs. - This way, you can remove from the graph - DEPENDS from inherited classes - such as base.bbclass. - - - - Here are two examples that create dependency graphs. - The second example omits depends common in OpenEmbedded from - the graph: - - $ bitbake -g foo - - $ bitbake -g -I virtual/kernel -I eglibc foo - - -
-
-
-
diff --git a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml b/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml deleted file mode 100644 index 0cfa53d..0000000 --- a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml +++ /dev/null @@ -1,2697 +0,0 @@ - - - - Syntax and Operators - - - Bitbake files have their own syntax. - The syntax has similarities to several - other languages but also has some unique features. - This section describes the available syntax and operators - as well as provides examples. - - -
- Basic Syntax - - - This section provides some basic syntax examples. - - -
- Basic Variable Setting - - - The following example sets VARIABLE to - "value". - This assignment occurs immediately as the statement is parsed. - It is a "hard" assignment. - - VARIABLE = "value" - - As expected, if you include leading or trailing spaces as part of - an assignment, the spaces are retained: - - VARIABLE = " value" - VARIABLE = "value " - - Setting VARIABLE to "" sets it to an empty string, - while setting the variable to " " sets it to a blank space - (i.e. these are not the same values). - - VARIABLE = "" - VARIABLE = " " - - - - - You can use single quotes instead of double quotes - when setting a variable's value. - Doing so allows you to use values that contain the double - quote character: - - VARIABLE = 'I have a " in my value' - - - Unlike in Bourne shells, single quotes work identically - to double quotes in all other ways. - They do not suppress variable expansions. - - -
- -
- Line Joining - - - Outside of - functions, BitBake joins - any line ending in a backslash character ("\") - with the following line before parsing statements. - The most common use for the "\" character is to split variable - assignments over multiple lines, as in the following example: - - FOO = "bar \ - baz \ - qaz" - - Both the "\" character and the newline character - that follow it are removed when joining lines. - Thus, no newline characters end up in the value of - FOO. - - - - Consider this additional example where the two - assignments both assign "barbaz" to - FOO: - - FOO = "barbaz" - - FOO = "bar\ - baz" - - - BitBake does not interpret escape sequences like - "\n" in variable values. - For these to have an effect, the value must be passed - to some utility that interprets escape sequences, - such as printf or - echo -n. - - -
- -
- Variable Expansion - - - Variables can reference the contents of other variables - using a syntax that is similar to variable expansion in - Bourne shells. - The following assignments - result in A containing "aval" and B evaluating to "preavalpost". - - A = "aval" - B = "pre${A}post" - - - Unlike in Bourne shells, the curly braces are mandatory: - Only ${FOO} and not - $FOO is recognized as an expansion of - FOO. - - The "=" operator does not immediately expand variable - references in the right-hand side. - Instead, expansion is deferred until the variable assigned to - is actually used. - The result depends on the current values of the referenced - variables. - The following example should clarify this behavior: - - A = "${B} baz" - B = "${C} bar" - C = "foo" - *At this point, ${A} equals "foo bar baz"* - C = "qux" - *At this point, ${A} equals "qux bar baz"* - B = "norf" - *At this point, ${A} equals "norf baz"* - - Contrast this behavior with the - immediate variable expansion - operator (i.e. ":="). - - - - If the variable expansion syntax is used on a variable that - does not exist, the string is kept as is. - For example, given the following assignment, - BAR expands to the literal string - "${FOO}" as long as FOO does not exist. - - BAR = "${FOO}" - - -
- -
- Setting a default value (?=) - - - You can use the "?=" operator to achieve a "softer" assignment - for a variable. - This type of assignment allows you to define a variable if it - is undefined when the statement is parsed, but to leave the - value alone if the variable has a value. - Here is an example: - - A ?= "aval" - - If A is set at the time this statement is parsed, - the variable retains its value. - However, if A is not set, - the variable is set to "aval". - - This assignment is immediate. - Consequently, if multiple "?=" assignments - to a single variable exist, the first of those ends up getting - used. - - -
- -
- Setting a weak default value (??=) - - - It is possible to use a "weaker" assignment than in the - previous section by using the "??=" operator. - This assignment behaves identical to "?=" except that the - assignment is made at the end of the parsing process rather - than immediately. - Consequently, when multiple "??=" assignments exist, the last - one is used. - Also, any "=" or "?=" assignment will override the value set with - "??=". - Here is an example: - - A ??= "somevalue" - A ??= "someothervalue" - - If A is set before the above statements are parsed, - the variable retains its value. - If A is not set, - the variable is set to "someothervalue". - - - - Again, this assignment is a "lazy" or "weak" assignment - because it does not occur until the end - of the parsing process. - -
- -
- Immediate variable expansion (:=) - - - The ":=" operator results in a variable's - contents being expanded immediately, - rather than when the variable is actually used: - - T = "123" - A := "${B} ${A} test ${T}" - T = "456" - B = "${T} bval" - C = "cval" - C := "${C}append" - - In this example, A contains - "test 123" because ${B} and - ${A} at the time of parsing are undefined, - which leaves "test 123". - And, the variable C - contains "cvalappend" since ${C} immediately - expands to "cval". - -
- -
- Appending (+=) and prepending (=+) With Spaces - - - Appending and prepending values is common and can be accomplished - using the "+=" and "=+" operators. - These operators insert a space between the current - value and prepended or appended value. - - - - These operators take immediate effect during parsing. - Here are some examples: - - B = "bval" - B += "additionaldata" - C = "cval" - C =+ "test" - - The variable B contains - "bval additionaldata" and C - contains "test cval". - -
- -
- Appending (.=) and Prepending (=.) Without Spaces - - - If you want to append or prepend values without an - inserted space, use the ".=" and "=." operators. - - - - These operators take immediate effect during parsing. - Here are some examples: - - B = "bval" - B .= "additionaldata" - C = "cval" - C =. "test" - - The variable B contains - "bvaladditionaldata" and - C contains "testcval". - -
- -
- Appending and Prepending (Override Style Syntax) - - - You can also append and prepend a variable's value - using an override style syntax. - When you use this syntax, no spaces are inserted. - - - - These operators differ from the ":=", ".=", "=.", "+=", and "=+" - operators in that their effects are deferred - until after parsing completes rather than being immediately - applied. - Here are some examples: - - B = "bval" - B_append = " additional data" - C = "cval" - C_prepend = "additional data " - D = "dval" - D_append = "additional data" - - The variable B becomes - "bval additional data" and C becomes - "additional data cval". - The variable D becomes - "dvaladditional data". - - You must control all spacing when you use the - override syntax. - - - - - It is also possible to append and prepend to shell - functions and BitBake-style Python functions. - See the - "Shell Functions" and - "BitBake-Style Python Functions - sections for examples. - -
- -
- Removal (Override Style Syntax) - - - You can remove values from lists using the removal - override style syntax. - Specifying a value for removal causes all occurrences of that - value to be removed from the variable. - - - - When you use this syntax, BitBake expects one or more strings. - Surrounding spaces are removed as well. - Here is an example: - - FOO = "123 456 789 123456 123 456 123 456" - FOO_remove = "123" - FOO_remove = "456" - FOO2 = "abc def ghi abcdef abc def abc def" - FOO2_remove = "abc def" - - The variable FOO becomes - "789 123456" and FOO2 becomes - "ghi abcdef". - - - - Like "_append" and "_prepend", "_remove" - is deferred until after parsing completes. - -
- -
- Override Style Operation Advantages - - - An advantage of the override style operations - "_append", "_prepend", and "_remove" as compared to the - "+=" and "=+" operators is that the override style - operators provide guaranteed operations. - For example, consider a class foo.bbclass - that needs to add the value "val" to the variable - FOO, and a recipe that uses - foo.bbclass as follows: - - inherit foo - - FOO = "initial" - - If foo.bbclass uses the "+=" operator, - as follows, then the final value of FOO - will be "initial", which is not what is desired: - - FOO += "val" - - If, on the other hand, foo.bbclass - uses the "_append" operator, then the final value of - FOO will be "initial val", as intended: - - FOO_append = " val" - - - It is never necessary to use "+=" together with "_append". - The following sequence of assignments appends "barbaz" to - FOO: - - FOO_append = "bar" - FOO_append = "baz" - - The only effect of changing the second assignment in the - previous example to use "+=" would be to add a space before - "baz" in the appended value (due to how the "+=" operator - works). - - Another advantage of the override style operations is that - you can combine them with other overrides as described in the - "Conditional Syntax (Overrides)" - section. - -
- -
- Variable Flag Syntax - - - Variable flags are BitBake's implementation of variable properties - or attributes. - It is a way of tagging extra information onto a variable. - You can find more out about variable flags in general in the - "Variable Flags" - section. - - - - You can define, append, and prepend values to variable flags. - All the standard syntax operations previously mentioned work - for variable flags except for override style syntax - (i.e. "_prepend", "_append", and "_remove"). - - - - Here are some examples showing how to set variable flags: - - FOO[a] = "abc" - FOO[b] = "123" - FOO[a] += "456" - - The variable FOO has two flags: - [a] and [b]. - The flags are immediately set to "abc" and "123", respectively. - The [a] flag becomes "abc 456". - - - - No need exists to pre-define variable flags. - You can simply start using them. - One extremely common application - is to attach some brief documentation to a BitBake variable as - follows: - - CACHE[doc] = "The directory holding the cache of the metadata." - - -
- -
- Inline Python Variable Expansion - - - You can use inline Python variable expansion to - set variables. - Here is an example: - - DATE = "${@time.strftime('%Y%m%d',time.gmtime())}" - - This example results in the DATE - variable being set to the current date. - - - - Probably the most common use of this feature is to extract - the value of variables from BitBake's internal data dictionary, - d. - The following lines select the values of a package name - and its version number, respectively: - - PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}" - PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}" - - - Inline Python expressions work just like variable expansions - insofar as the "=" and ":=" operators are concerned. - Given the following assignment, foo() - is called each time FOO is expanded: - - FOO = "${@foo()}" - - Contrast this with the following immediate assignment, where - foo() is only called once, while the - assignment is parsed: - - FOO := "${@foo()}" - - - For a different way to set variables with Python code during - parsing, see the - "Anonymous Python Functions" - section. - -
- -
- Unseting variables - - - It is possible to completely remove a variable or a variable flag - from BitBake's internal data dictionary by using the "unset" keyword. - Here is an example: - - unset DATE - unset do_fetch[noexec] - - These two statements remove the DATE and the - do_fetch[noexec] flag. - - -
- -
- Providing Pathnames - - - When specifying pathnames for use with BitBake, - do not use the tilde ("~") character as a shortcut - for your home directory. - Doing so might cause BitBake to not recognize the - path since BitBake does not expand this character in - the same way a shell would. - - - - Instead, provide a fuller path as the following - example illustrates: - - BBLAYERS ?= " \ - /home/scott-lenovo/LayerA \ - " - - -
-
- -
- Exporting Variables to the Environment - - - You can export variables to the environment of running - tasks by using the export keyword. - For example, in the following example, the - do_foo task prints "value from - the environment" when run: - - export ENV_VARIABLE - ENV_VARIABLE = "value from the environment" - - do_foo() { - bbplain "$ENV_VARIABLE" - } - - - BitBake does not expand $ENV_VARIABLE - in this case because it lacks the obligatory - {}. - Rather, $ENV_VARIABLE is expanded - by the shell. - - It does not matter whether - export ENV_VARIABLE appears before or - after assignments to ENV_VARIABLE. - - - - It is also possible to combine export - with setting a value for the variable. - Here is an example: - - export ENV_VARIABLE = "variable-value" - - In the output of bitbake -e, variables - that are exported to the environment are preceded by "export". - - - - Among the variables commonly exported to the environment - are CC and CFLAGS, - which are picked up by many build systems. - -
- -
- Conditional Syntax (Overrides) - - - BitBake uses - OVERRIDES - to control what variables are overridden after BitBake - parses recipes and configuration files. - This section describes how you can use - OVERRIDES as conditional metadata, - talks about key expansion in relationship to - OVERRIDES, and provides some examples - to help with understanding. - - -
- Conditional Metadata - - - You can use OVERRIDES to conditionally select - a specific version of a variable and to conditionally - append or prepend the value of a variable. - - Overrides can only use lower-case characters. - Additionally, underscores are not permitted in override names - as they are used to separate overrides from each other and - from the variable name. - - - Selecting a Variable: - The OVERRIDES variable is - a colon-character-separated list that contains items - for which you want to satisfy conditions. - Thus, if you have a variable that is conditional on “armâ€, and “arm†- is in OVERRIDES, then the “armâ€-specific - version of the variable is used rather than the non-conditional - version. - Here is an example: - - OVERRIDES = "architecture:os:machine" - TEST = "default" - TEST_os = "osspecific" - TEST_nooverride = "othercondvalue" - - In this example, the OVERRIDES - variable lists three overrides: - "architecture", "os", and "machine". - The variable TEST by itself has a default - value of "default". - You select the os-specific version of the TEST - variable by appending the "os" override to the variable - (i.e.TEST_os). - - - - To better understand this, consider a practical example - that assumes an OpenEmbedded metadata-based Linux - kernel recipe file. - The following lines from the recipe file first set - the kernel branch variable KBRANCH - to a default value, then conditionally override that - value based on the architecture of the build: - - KBRANCH = "standard/base" - KBRANCH_qemuarm = "standard/arm-versatile-926ejs" - KBRANCH_qemumips = "standard/mti-malta32" - KBRANCH_qemuppc = "standard/qemuppc" - KBRANCH_qemux86 = "standard/common-pc/base" - KBRANCH_qemux86-64 = "standard/common-pc-64/base" - KBRANCH_qemumips64 = "standard/mti-malta64" - - - Appending and Prepending: - BitBake also supports append and prepend operations to - variable values based on whether a specific item is - listed in OVERRIDES. - Here is an example: - - DEPENDS = "glibc ncurses" - OVERRIDES = "machine:local" - DEPENDS_append_machine = " libmad" - - In this example, DEPENDS becomes - "glibc ncurses libmad". - - - - Again, using an OpenEmbedded metadata-based - kernel recipe file as an example, the - following lines will conditionally append to the - KERNEL_FEATURES variable based - on the architecture: - - KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}" - KERNEL_FEATURES_append_qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" - KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc" - - - Setting a Variable for a Single Task: - BitBake supports setting a variable just for the - duration of a single task. - Here is an example: - - FOO_task-configure = "val 1" - FOO_task-compile = "val 2" - - In the previous example, FOO - has the value "val 1" while the - do_configure task is executed, - and the value "val 2" while the - do_compile task is executed. - - - Internally, this is implemented by prepending - the task (e.g. "task-compile:") to the value of - OVERRIDES - for the local datastore of the do_compile - task. - - You can also use this syntax with other combinations - (e.g. "_prepend") as shown in the - following example: - - EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} " - - - - -
- -
- Key Expansion - - - Key expansion happens when the BitBake datastore is finalized - just before BitBake expands overrides. - To better understand this, consider the following example: - - A${B} = "X" - B = "2" - A2 = "Y" - - In this case, after all the parsing is complete, and - before any overrides are handled, BitBake expands - ${B} into "2". - This expansion causes A2, which was - set to "Y" before the expansion, to become "X". - -
- -
- Examples - - - Despite the previous explanations that show the different forms of - variable definitions, it can be hard to work - out exactly what happens when variable operators, conditional - overrides, and unconditional overrides are combined. - This section presents some common scenarios along - with explanations for variable interactions that - typically confuse users. - - - - There is often confusion concerning the order in which - overrides and various "append" operators take effect. - Recall that an append or prepend operation using "_append" - and "_prepend" does not result in an immediate assignment - as would "+=", ".=", "=+", or "=.". - Consider the following example: - - OVERRIDES = "foo" - A = "Z" - A_foo_append = "X" - - For this case, A is - unconditionally set to "Z" and "X" is - unconditionally and immediately appended to the variable - A_foo. - Because overrides have not been applied yet, - A_foo is set to "X" due to the append - and A simply equals "Z". - - - - Applying overrides, however, changes things. - Since "foo" is listed in OVERRIDES, - the conditional variable A is replaced - with the "foo" version, which is equal to "X". - So effectively, A_foo replaces A. - - - - This next example changes the order of the override and - the append: - - OVERRIDES = "foo" - A = "Z" - A_append_foo = "X" - - For this case, before overrides are handled, - A is set to "Z" and A_append_foo - is set to "X". - Once the override for "foo" is applied, however, - A gets appended with "X". - Consequently, A becomes "ZX". - Notice that spaces are not appended. - - - - This next example has the order of the appends and overrides reversed - back as in the first example: - - OVERRIDES = "foo" - A = "Y" - A_foo_append = "Z" - A_foo_append = "X" - - For this case, before any overrides are resolved, - A is set to "Y" using an immediate assignment. - After this immediate assignment, A_foo is set - to "Z", and then further appended with - "X" leaving the variable set to "ZX". - Finally, applying the override for "foo" results in the conditional - variable A becoming "ZX" (i.e. - A is replaced with A_foo). - - - - This final example mixes in some varying operators: - - A = "1" - A_append = "2" - A_append = "3" - A += "4" - A .= "5" - - For this case, the type of append operators are affecting the - order of assignments as BitBake passes through the code - multiple times. - Initially, A is set to "1 45" because - of the three statements that use immediate operators. - After these assignments are made, BitBake applies the - "_append" operations. - Those operations result in A becoming "1 4523". - -
-
- -
- Sharing Functionality - - - BitBake allows for metadata sharing through include files - (.inc) and class files - (.bbclass). - For example, suppose you have a piece of common functionality - such as a task definition that you want to share between - more than one recipe. - In this case, creating a .bbclass - file that contains the common functionality and then using - the inherit directive in your recipes to - inherit the class would be a common way to share the task. - - - - This section presents the mechanisms BitBake provides to - allow you to share functionality between recipes. - Specifically, the mechanisms include include, - inherit, INHERIT, and - require directives. - - -
- Locating Include and Class Files - - - BitBake uses the - BBPATH - variable to locate needed include and class files. - Additionally, BitBake searches the current directory for - include and require - directives. - - The BBPATH variable is analogous to - the environment variable PATH. - - - - - In order for include and class files to be found by BitBake, - they need to be located in a "classes" subdirectory that can - be found in BBPATH. - -
- -
- <filename>inherit</filename> Directive - - - When writing a recipe or class file, you can use the - inherit directive to inherit the - functionality of a class (.bbclass). - BitBake only supports this directive when used within recipe - and class files (i.e. .bb and - .bbclass). - - - - The inherit directive is a rudimentary - means of specifying functionality contained in class files - that your recipes require. - For example, you can easily abstract out the tasks involved in - building a package that uses Autoconf and Automake and put - those tasks into a class file and then have your recipe - inherit that class file. - - - - As an example, your recipes could use the following directive - to inherit an autotools.bbclass file. - The class file would contain common functionality for using - Autotools that could be shared across recipes: - - inherit autotools - - In this case, BitBake would search for the directory - classes/autotools.bbclass - in BBPATH. - - You can override any values and functions of the - inherited class within your recipe by doing so - after the "inherit" statement. - - If you want to use the directive to inherit - multiple classes, separate them with spaces. - The following example shows how to inherit both the - buildhistory and rm_work - classes: - - inherit buildhistory rm_work - - - - - An advantage with the inherit directive as compared to both - the - include and - require directives - is that you can inherit class files conditionally. - You can accomplish this by using a variable expression - after the inherit statement. - Here is an example: - - inherit ${VARNAME} - - If VARNAME is going to be set, it needs - to be set before the inherit statement - is parsed. - One way to achieve a conditional inherit in this case is to use - overrides: - - VARIABLE = "" - VARIABLE_someoverride = "myclass" - - - - - Another method is by using anonymous Python. - Here is an example: - - python () { - if condition == value: - d.setVar('VARIABLE', 'myclass') - else: - d.setVar('VARIABLE', '') - } - - - - - Alternatively, you could use an in-line Python expression - in the following form: - - inherit ${@'classname' if condition else ''} - inherit ${@functionname(params)} - - In all cases, if the expression evaluates to an empty - string, the statement does not trigger a syntax error - because it becomes a no-op. - -
- -
- <filename>include</filename> Directive - - - BitBake understands the include - directive. - This directive causes BitBake to parse whatever file you specify, - and to insert that file at that location. - The directive is much like its equivalent in Make except - that if the path specified on the include line is a relative - path, BitBake locates the first file it can find - within BBPATH. - - - - The include directive is a more generic method of including - functionality as compared to the - inherit directive, - which is restricted to class (i.e. .bbclass) - files. - The include directive is applicable for any other kind of - shared or encapsulated functionality or configuration that - does not suit a .bbclass file. - - - - As an example, suppose you needed a recipe to include some - self-test definitions: - - include test_defs.inc - - - The include directive does not - produce an error when the file cannot be found. - Consequently, it is recommended that if the file you - are including is expected to exist, you should use - require - instead of include. - Doing so makes sure that an error is produced if the - file cannot be found. - - -
- -
- <filename>require</filename> Directive - - - BitBake understands the require - directive. - This directive behaves just like the - include directive with the exception that - BitBake raises a parsing error if the file to be included cannot - be found. - Thus, any file you require is inserted into the file that is - being parsed at the location of the directive. - - - - The require directive, like the include directive previously - described, is a more generic method of including - functionality as compared to the - inherit directive, - which is restricted to class (i.e. .bbclass) - files. - The require directive is applicable for any other kind of - shared or encapsulated functionality or configuration that - does not suit a .bbclass file. - - - - Similar to how BitBake handles - include, - if the path specified - on the require line is a relative path, BitBake locates - the first file it can find within BBPATH. - - - - As an example, suppose you have two versions of a recipe - (e.g. foo_1.2.2.bb and - foo_2.0.0.bb) where - each version contains some identical functionality that could be - shared. - You could create an include file named foo.inc - that contains the common definitions needed to build "foo". - You need to be sure foo.inc is located in the - same directory as your two recipe files as well. - Once these conditions are set up, you can share the functionality - using a require directive from within each - recipe: - - require foo.inc - - -
- -
- <filename>INHERIT</filename> Configuration Directive - - - When creating a configuration file (.conf), - you can use the - INHERIT - configuration directive to inherit a class. - BitBake only supports this directive when used within - a configuration file. - - - - As an example, suppose you needed to inherit a class - file called abc.bbclass from a - configuration file as follows: - - INHERIT += "abc" - - This configuration directive causes the named - class to be inherited at the point of the directive - during parsing. - As with the inherit directive, the - .bbclass file must be located in a - "classes" subdirectory in one of the directories specified - in BBPATH. - - Because .conf files are parsed - first during BitBake's execution, using - INHERIT to inherit a class effectively - inherits the class globally (i.e. for all recipes). - - If you want to use the directive to inherit - multiple classes, you can provide them on the same line in the - local.conf file. - Use spaces to separate the classes. - The following example shows how to inherit both the - autotools and pkgconfig - classes: - - INHERIT += "autotools pkgconfig" - - -
-
- -
- Functions - - - As with most languages, functions are the building blocks that - are used to build up operations into tasks. - BitBake supports these types of functions: - - Shell Functions: - Functions written in shell script and executed either - directly as functions, tasks, or both. - They can also be called by other shell functions. - - BitBake-Style Python Functions: - Functions written in Python and executed by BitBake or other - Python functions using bb.build.exec_func(). - - Python Functions: - Functions written in Python and executed by Python. - - Anonymous Python Functions: - Python functions executed automatically during - parsing. - - - Regardless of the type of function, you can only - define them in class (.bbclass) - and recipe (.bb or .inc) - files. - - -
- Shell Functions - - - Functions written in shell script and executed either - directly as functions, tasks, or both. - They can also be called by other shell functions. - Here is an example shell function definition: - - some_function () { - echo "Hello World" - } - - When you create these types of functions in your recipe - or class files, you need to follow the shell programming - rules. - The scripts are executed by /bin/sh, - which may not be a bash shell but might be something - such as dash. - You should not use Bash-specific script (bashisms). - - - - Overrides and override-style operators like - _append and - _prepend can also be applied to - shell functions. - Most commonly, this application would be used in a - .bbappend file to modify functions in - the main recipe. - It can also be used to modify functions inherited from - classes. - - - - As an example, consider the following: - - do_foo() { - bbplain first - fn - } - - fn_prepend() { - bbplain second - } - - fn() { - bbplain third - } - - do_foo_append() { - bbplain fourth - } - - Running do_foo - prints the following: - - recipename do_foo: first - recipename do_foo: second - recipename do_foo: third - recipename do_foo: fourth - - - Overrides and override-style operators can - be applied to any shell function, not just - tasks. - - You can use the bitbake -e recipename - command to view the final assembled function - after all overrides have been applied. - -
- -
- BitBake-Style Python Functions - - - These functions are written in Python and executed by - BitBake or other Python functions using - bb.build.exec_func(). - - - - An example BitBake function is: - - python some_python_function () { - d.setVar("TEXT", "Hello World") - print d.getVar("TEXT") - } - - Because the Python "bb" and "os" modules are already - imported, you do not need to import these modules. - Also in these types of functions, the datastore ("d") - is a global variable and is always automatically - available. - - Variable expressions (e.g. ${X}) - are no longer expanded within Python functions. - This behavior is intentional in order to allow you - to freely set variable values to expandable expressions - without having them expanded prematurely. - If you do wish to expand a variable within a Python - function, use d.getVar("X"). - Or, for more complicated expressions, use - d.expand(). - - - - - Similar to shell functions, you can also apply overrides - and override-style operators to BitBake-style Python - functions. - - - - As an example, consider the following: - - python do_foo_prepend() { - bb.plain("first") - } - - python do_foo() { - bb.plain("second") - } - - python do_foo_append() { - bb.plain("third") - } - - Running do_foo prints - the following: - - recipename do_foo: first - recipename do_foo: second - recipename do_foo: third - - You can use the bitbake -e recipename - command to view the final assembled function - after all overrides have been applied. - -
- -
- Python Functions - - - These functions are written in Python and are executed by - other Python code. - Examples of Python functions are utility functions - that you intend to call from in-line Python or - from within other Python functions. - Here is an example: - - def get_depends(d): - if d.getVar('SOMECONDITION'): - return "dependencywithcond" - else: - return "dependency" - SOMECONDITION = "1" - DEPENDS = "${@get_depends(d)}" - - This would result in DEPENDS - containing dependencywithcond. - - - - Here are some things to know about Python functions: - - Python functions can take parameters. - - The BitBake datastore is not - automatically available. - Consequently, you must pass it in as a - parameter to the function. - - The "bb" and "os" Python modules are - automatically available. - You do not need to import them. - - - -
- -
- Bitbake-Style Python Functions Versus Python Functions - - - Following are some important differences between - BitBake-style Python functions and regular Python - functions defined with "def": - - - Only BitBake-style Python functions can be - tasks. - - - Overrides and override-style operators can only - be applied to BitBake-style Python functions. - - - Only regular Python functions can take arguments - and return values. - - - Variable flags - such as [dirs], - [cleandirs], and - [lockfiles] can be used - on BitBake-style Python functions, but not on - regular Python functions. - - - BitBake-style Python functions generate a separate - ${T}/run.function-name.pid - script that is executed to run the function, and also - generate a log file in - ${T}/log.function-name.pid - if they are executed as tasks. - - - Regular Python functions execute "inline" and do not - generate any files in ${T}. - - - Regular Python functions are called with the usual - Python syntax. - BitBake-style Python functions are usually tasks and - are called directly by BitBake, but can also be called - manually from Python code by using the - bb.build.exec_func() function. - Here is an example: - - bb.build.exec_func("my_bitbake_style_function", d) - - - bb.build.exec_func() can also - be used to run shell functions from Python code. - If you want to run a shell function before a Python - function within the same task, then you can use a - parent helper Python function that starts by running - the shell function with - bb.build.exec_func() and then - runs the Python code. - - - To detect errors from functions executed with - bb.build.exec_func(), you - can catch the bb.build.FuncFailed - exception. - - Functions in metadata (recipes and classes) should - not themselves raise - bb.build.FuncFailed. - Rather, bb.build.FuncFailed - should be viewed as a general indicator that the - called function failed by raising an exception. - For example, an exception raised by - bb.fatal() will be caught inside - bb.build.exec_func(), and a - bb.build.FuncFailed will be raised - in response. - - - - - - - Due to their simplicity, you should prefer regular Python functions - over BitBake-style Python functions unless you need a feature specific - to BitBake-style Python functions. - Regular Python functions in metadata are a more recent invention than - BitBake-style Python functions, and older code tends to use - bb.build.exec_func() more often. - -
- -
- Anonymous Python Functions - - - Sometimes it is useful to set variables or perform - other operations programmatically during parsing. - To do this, you can define special Python functions, - called anonymous Python functions, that run at the - end of parsing. - For example, the following conditionally sets a variable - based on the value of another variable: - - python () { - if d.getVar('SOMEVAR') == 'value': - d.setVar('ANOTHERVAR', 'value2') - } - - An equivalent way to mark a function as an anonymous - function is to give it the name "__anonymous", rather - than no name. - - - - Anonymous Python functions always run at the end - of parsing, regardless of where they are defined. - If a recipe contains many anonymous functions, they - run in the same order as they are defined within the - recipe. - As an example, consider the following snippet: - - python () { - d.setVar('FOO', 'foo 2') - } - - FOO = "foo 1" - - python () { - d.appendVar('BAR', ' bar 2') - } - - BAR = "bar 1" - - The previous example is conceptually equivalent to the - following snippet: - - FOO = "foo 1" - BAR = "bar 1" - FOO = "foo 2" - BAR += "bar 2" - - FOO ends up with the value "foo 2", - and BAR with the value "bar 1 bar 2". - Just as in the second snippet, the values set for the - variables within the anonymous functions become available - to tasks, which always run after parsing. - - - - Overrides and override-style operators such as - "_append" are applied before - anonymous functions run. - In the following example, FOO ends - up with the value "foo from anonymous": - - FOO = "foo" - FOO_append = " from outside" - - python () { - d.setVar("FOO", "foo from anonymous") - } - - For methods you can use with anonymous Python functions, - see the - "Functions You Can Call From Within Python" - section. - For a different method to run Python code during parsing, - see the - "Inline Python Variable Expansion" - section. - -
- -
- Flexible Inheritance for Class Functions - - - Through coding techniques and the use of - EXPORT_FUNCTIONS, BitBake supports - exporting a function from a class such that the - class function appears as the default implementation - of the function, but can still be called if a recipe - inheriting the class needs to define its own version of - the function. - - - - To understand the benefits of this feature, consider - the basic scenario where a class defines a task function - and your recipe inherits the class. - In this basic scenario, your recipe inherits the task - function as defined in the class. - If desired, your recipe can add to the start and end of the - function by using the "_prepend" or "_append" operations - respectively, or it can redefine the function completely. - However, if it redefines the function, there is - no means for it to call the class version of the function. - EXPORT_FUNCTIONS provides a mechanism - that enables the recipe's version of the function to call - the original version of the function. - - - - To make use of this technique, you need the following - things in place: - - - The class needs to define the function as follows: - - classname_functionname - - For example, if you have a class file - bar.bbclass and a function named - do_foo, the class must define the function - as follows: - - bar_do_foo - - - - The class needs to contain the EXPORT_FUNCTIONS - statement as follows: - - EXPORT_FUNCTIONS functionname - - For example, continuing with the same example, the - statement in the bar.bbclass would be - as follows: - - EXPORT_FUNCTIONS do_foo - - - - You need to call the function appropriately from within your - recipe. - Continuing with the same example, if your recipe - needs to call the class version of the function, - it should call bar_do_foo. - Assuming do_foo was a shell function - and EXPORT_FUNCTIONS was used as above, - the recipe's function could conditionally call the - class version of the function as follows: - - do_foo() { - if [ somecondition ] ; then - bar_do_foo - else - # Do something else - fi - } - - To call your modified version of the function as defined - in your recipe, call it as do_foo. - - - With these conditions met, your single recipe - can freely choose between the original function - as defined in the class file and the modified function in your recipe. - If you do not set up these conditions, you are limited to using one function - or the other. - -
-
- -
- Tasks - - - Tasks are BitBake execution units that make up the - steps that BitBake can run for a given recipe. - Tasks are only supported in recipes and classes - (i.e. in .bb files and files - included or inherited from .bb - files). - By convention, tasks have names that start with "do_". - - -
- Promoting a Function to a Task - - - Tasks are either - shell functions or - BitBake-style Python functions - that have been promoted to tasks by using the - addtask command. - The addtask command can also - optionally describe dependencies between the - task and other tasks. - Here is an example that shows how to define a task - and declare some dependencies: - - python do_printdate () { - import time - print time.strftime('%Y%m%d', time.gmtime()) - } - addtask printdate after do_fetch before do_build - - The first argument to addtask - is the name of the function to promote to - a task. - If the name does not start with "do_", "do_" is - implicitly added, which enforces the convention that - all task names start with "do_". - - - - In the previous example, the - do_printdate task becomes a - dependency of the do_build - task, which is the default task (i.e. the task run by - the bitbake command unless - another task is specified explicitly). - Additionally, the do_printdate - task becomes dependent upon the - do_fetch task. - Running the do_build task - results in the do_printdate - task running first. - - If you try out the previous example, you might see that - the do_printdate task is only run - the first time you build the recipe with - the bitbake command. - This is because BitBake considers the task "up-to-date" - after that initial run. - If you want to force the task to always be rerun for - experimentation purposes, you can make BitBake always - consider the task "out-of-date" by using the - [nostamp] - variable flag, as follows: - - do_printdate[nostamp] = "1" - - You can also explicitly run the task and provide the - -f option as follows: - - $ bitbake recipe -c printdate -f - - When manually selecting a task to run with the - bitbake recipe -c task - command, you can omit the "do_" prefix as part of the - task name. - - - - - You might wonder about the practical effects of using - addtask without specifying any - dependencies as is done in the following example: - - addtask printdate - - In this example, assuming dependencies have not been - added through some other means, the only way to run - the task is by explicitly selecting it with - bitbake recipe -c printdate. - You can use the - do_listtasks task to list all tasks - defined in a recipe as shown in the following example: - - $ bitbake recipe -c listtasks - - For more information on task dependencies, see the - "Dependencies" - section. - - - - See the - "Variable Flags" - section for information on variable flags you can use with - tasks. - -
- -
- Deleting a Task - - - As well as being able to add tasks, you can delete them. - Simply use the deltask command to - delete a task. - For example, to delete the example task used in the previous - sections, you would use: - - deltask printdate - - If you delete a task using the deltask - command and the task has dependencies, the dependencies are - not reconnected. - For example, suppose you have three tasks named - do_a, do_b, and - do_c. - Furthermore, do_c is dependent on - do_b, which in turn is dependent on - do_a. - Given this scenario, if you use deltask - to delete do_b, the implicit dependency - relationship between do_c and - do_a through do_b - no longer exists, and do_c dependencies - are not updated to include do_a. - Thus, do_c is free to run before - do_a. - - - - If you want dependencies such as these to remain intact, use - the [noexec] varflag to disable the task - instead of using the deltask command to - delete it: - - do_b[noexec] = "1" - - -
- -
- Passing Information Into the Build Task Environment - - - When running a task, BitBake tightly controls the shell execution - environment of the build tasks to make - sure unwanted contamination from the build machine cannot - influence the build. - - By default, BitBake cleans the environment to include only those - things exported or listed in its whitelist to ensure that the build - environment is reproducible and consistent. - You can prevent this "cleaning" by setting the - BB_PRESERVE_ENV - variable. - - Consequently, if you do want something to get passed into the - build task environment, you must take these two steps: - - - Tell BitBake to load what you want from the environment - into the datastore. - You can do so through the - BB_ENV_WHITELIST - and - BB_ENV_EXTRAWHITE - variables. - For example, assume you want to prevent the build system from - accessing your $HOME/.ccache - directory. - The following command "whitelists" the environment variable - CCACHE_DIR causing BitBack to allow that - variable into the datastore: - - export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE CCACHE_DIR" - - - Tell BitBake to export what you have loaded into the - datastore to the task environment of every running task. - Loading something from the environment into the datastore - (previous step) only makes it available in the datastore. - To export it to the task environment of every running task, - use a command similar to the following in your local configuration - file local.conf or your - distribution configuration file: - - export CCACHE_DIR - - - A side effect of the previous steps is that BitBake - records the variable as a dependency of the build process - in things like the setscene checksums. - If doing so results in unnecessary rebuilds of tasks, you can - whitelist the variable so that the setscene code - ignores the dependency when it creates checksums. - - - - - - Sometimes, it is useful to be able to obtain information - from the original execution environment. - Bitbake saves a copy of the original environment into - a special variable named - BB_ORIGENV. - - - - The BB_ORIGENV variable returns a datastore - object that can be queried using the standard datastore operators - such as getVar(, False). - The datastore object is useful, for example, to find the original - DISPLAY variable. - Here is an example: - - origenv = d.getVar("BB_ORIGENV", False) - bar = origenv.getVar("BAR", False) - - The previous example returns BAR from the original - execution environment. - -
-
- -
- Variable Flags - - - Variable flags (varflags) help control a task's functionality - and dependencies. - BitBake reads and writes varflags to the datastore using the following - command forms: - - variable = d.getVarFlags("variable") - self.d.setVarFlags("FOO", {"func": True}) - - - - - When working with varflags, the same syntax, with the exception of - overrides, applies. - In other words, you can set, append, and prepend varflags just like - variables. - See the - "Variable Flag Syntax" - section for details. - - - - BitBake has a defined set of varflags available for recipes and - classes. - Tasks support a number of these flags which control various - functionality of the task: - - [cleandirs]: - Empty directories that should be created before the - task runs. - Directories that already exist are removed and recreated - to empty them. - - [depends]: - Controls inter-task dependencies. - See the - DEPENDS - variable and the - "Inter-Task Dependencies" - section for more information. - - [deptask]: - Controls task build-time dependencies. - See the - DEPENDS - variable and the - "Build Dependencies" - section for more information. - - [dirs]: - Directories that should be created before the task runs. - Directories that already exist are left as is. - The last directory listed is used as the - current working directory for the task. - - [lockfiles]: - Specifies one or more lockfiles to lock while the task - executes. - Only one task may hold a lockfile, and any task that - attempts to lock an already locked file will block until - the lock is released. - You can use this variable flag to accomplish mutual - exclusion. - - [noexec]: - When set to "1", marks the task as being empty, with - no execution required. - You can use the [noexec] flag to set up - tasks as dependency placeholders, or to disable tasks defined - elsewhere that are not needed in a particular recipe. - - [nostamp]: - When set to "1", tells BitBake to not generate a stamp - file for a task, which implies the task should always - be executed. - Caution - Any task that depends (possibly indirectly) on a - [nostamp] task will always be - executed as well. - This can cause unnecessary rebuilding if you are - not careful. - - - [postfuncs]: - List of functions to call after the completion of the task. - - [prefuncs]: - List of functions to call before the task executes. - - [rdepends]: - Controls inter-task runtime dependencies. - See the - RDEPENDS - variable, the - RRECOMMENDS - variable, and the - "Inter-Task Dependencies" - section for more information. - - [rdeptask]: - Controls task runtime dependencies. - See the - RDEPENDS - variable, the - RRECOMMENDS - variable, and the - "Runtime Dependencies" - section for more information. - - [recideptask]: - When set in conjunction with - recrdeptask, specifies a task that - should be inspected for additional dependencies. - - [recrdeptask]: - Controls task recursive runtime dependencies. - See the - RDEPENDS - variable, the - RRECOMMENDS - variable, and the - "Recursive Dependencies" - section for more information. - - [stamp-extra-info]: - Extra stamp information to append to the task's stamp. - As an example, OpenEmbedded uses this flag to allow - machine-specific tasks. - - [umask]: - The umask to run the task under. - - - - - - Several varflags are useful for controlling how signatures are - calculated for variables. - For more information on this process, see the - "Checksums (Signatures)" - section. - - [vardeps]: - Specifies a space-separated list of additional - variables to add to a variable's dependencies - for the purposes of calculating its signature. - Adding variables to this list is useful, for example, when - a function refers to a variable in a manner that - does not allow BitBake to automatically determine - that the variable is referred to. - - [vardepsexclude]: - Specifies a space-separated list of variables - that should be excluded from a variable's dependencies - for the purposes of calculating its signature. - - [vardepvalue]: - If set, instructs BitBake to ignore the actual - value of the variable and instead use the specified - value when calculating the variable's signature. - - [vardepvalueexclude]: - Specifies a pipe-separated list of strings to exclude - from the variable's value when calculating the - variable's signature. - - - -
- -
- Events - - - BitBake allows installation of event handlers within recipe - and class files. - Events are triggered at certain points during operation, such - as the beginning of operation against a given recipe - (i.e. *.bb), the start of a given task, - a task failure, a task success, and so forth. - The intent is to make it easy to do things like email - notification on build failures. - - - - Following is an example event handler that prints the name - of the event and the content of the - FILE variable: - - addhandler myclass_eventhandler - python myclass_eventhandler() { - from bb.event import getName - print("The name of the Event is %s" % getName(e)) - print("The file we run for is %s" % d.getVar('FILE')) - } - myclass_eventhandler[eventmask] = "bb.event.BuildStarted bb.event.BuildCompleted" - - In the previous example, an eventmask has been set so that - the handler only sees the "BuildStarted" and "BuildCompleted" - events. - This event handler gets called every time an event matching - the eventmask is triggered. - A global variable "e" is defined, which represents the current - event. - With the getName(e) method, you can get - the name of the triggered event. - The global datastore is available as "d". - In legacy code, you might see "e.data" used to get the datastore. - However, realize that "e.data" is deprecated and you should use - "d" going forward. - - - - The context of the datastore is appropriate to the event - in question. - For example, "BuildStarted" and "BuildCompleted" events run - before any tasks are executed so would be in the global - configuration datastore namespace. - No recipe-specific metadata exists in that namespace. - The "BuildStarted" and "BuildCompleted" events also run in - the main cooker/server process rather than any worker context. - Thus, any changes made to the datastore would be seen by other - cooker/server events within the current build but not seen - outside of that build or in any worker context. - Task events run in the actual tasks in question consequently - have recipe-specific and task-specific contents. - These events run in the worker context and are discarded at - the end of task execution. - - - - During a standard build, the following common events might - occur. - The following events are the most common kinds of events that - most metadata might have an interest in viewing: - - - bb.event.ConfigParsed(): - Fired when the base configuration; which consists of - bitbake.conf, - base.bbclass and any global - INHERIT statements; has been parsed. - You can see multiple such events when each of the - workers parse the base configuration or if the server - changes configuration and reparses. - Any given datastore only has one such event executed - against it, however. - If - BB_INVALIDCONF - is set in the datastore by the event handler, the - configuration is reparsed and a new event triggered, - allowing the metadata to update configuration. - - - bb.event.HeartbeatEvent(): - Fires at regular time intervals of one second. - You can configure the interval time using the - BB_HEARTBEAT_EVENT variable. - The event's "time" attribute is the - time.time() value when the - event is triggered. - This event is useful for activities such as - system state monitoring. - - - bb.event.ParseStarted(): - Fired when BitBake is about to start parsing recipes. - This event's "total" attribute represents the number of - recipes BitBake plans to parse. - - - bb.event.ParseProgress(): - Fired as parsing progresses. - This event's "current" attribute is the number of - recipes parsed as well as the "total" attribute. - - - bb.event.ParseCompleted(): - Fired when parsing is complete. - This event's "cached", "parsed", "skipped", "virtuals", - "masked", and "errors" attributes provide statistics - for the parsing results. - - - bb.event.BuildStarted(): - Fired when a new build starts. - - - bb.build.TaskStarted(): - Fired when a task starts. - This event's "taskfile" attribute points to the recipe - from which the task originates. - The "taskname" attribute, which is the task's name, - includes the do_ prefix, and the - "logfile" attribute point to where the task's output is - stored. - Finally, the "time" attribute is the task's execution start - time. - - - bb.build.TaskInvalid(): - Fired if BitBake tries to execute a task that does not exist. - - - bb.build.TaskFailedSilent(): - Fired for setscene tasks that fail and should not be - presented to the user verbosely. - - - bb.build.TaskFailed(): - Fired for normal tasks that fail. - - - bb.build.TaskSucceeded(): - Fired when a task successfully completes. - - - bb.event.BuildCompleted(): - Fired when a build finishes. - - - bb.cooker.CookerExit(): - Fired when the BitBake server/cooker shuts down. - This event is usually only seen by the UIs as a - sign they should also shutdown. - - - - - - This next list of example events occur based on specific - requests to the server. - These events are often used to communicate larger pieces of - information from the BitBake server to other parts of - BitBake such as user interfaces: - - - bb.event.TreeDataPreparationStarted() - - - bb.event.TreeDataPreparationProgress() - - - bb.event.TreeDataPreparationCompleted() - - - bb.event.DepTreeGenerated() - - - bb.event.CoreBaseFilesFound() - - - bb.event.ConfigFilePathFound() - - - bb.event.FilesMatchingFound() - - - bb.event.ConfigFilesFound() - - - bb.event.TargetsTreeGenerated() - - - -
- -
- Variants - Class Extension Mechanism - - - BitBake supports two features that facilitate creating - from a single recipe file multiple incarnations of that - recipe file where all incarnations are buildable. - These features are enabled through the - BBCLASSEXTEND - and - BBVERSIONS - variables. - - The mechanism for this class extension is extremely - specific to the implementation. - Usually, the recipe's - PROVIDES, - PN, and - DEPENDS - variables would need to be modified by the extension class. - For specific examples, see the OE-Core - native, nativesdk, - and multilib classes. - - - BBCLASSEXTEND: - This variable is a space separated list of classes used to "extend" the - recipe for each variant. - Here is an example that results in a second incarnation of the current - recipe being available. - This second incarnation will have the "native" class inherited. - - BBCLASSEXTEND = "native" - - BBVERSIONS: - This variable allows a single recipe to build multiple versions of a - project from a single recipe file. - You can also specify conditional metadata - (using the - OVERRIDES - mechanism) for a single version, or an optionally named range of versions. - Here is an example: - - BBVERSIONS = "1.0 2.0 git" - SRC_URI_git = "git://someurl/somepath.git" - - BBVERSIONS = "1.0.[0-6]:1.0.0+ \ 1.0.[7-9]:1.0.7+" - SRC_URI_append_1.0.7+ = "file://some_patch_which_the_new_versions_need.patch;patch=1" - - The name of the range defaults to the original version of the - recipe. - For example, in OpenEmbedded, the recipe file - foo_1.0.0+.bb creates a default name range - of 1.0.0+. - This is useful because the range name is not only placed - into overrides, but it is also made available for the metadata to use - in the variable that defines the base recipe versions for use in - file:// search paths - (FILESPATH). - - - -
- -
- Dependencies - - - To allow for efficient parallel processing, BitBake handles - dependencies at the task level. - Dependencies can exist both between tasks within a single recipe - and between tasks in different recipes. - Following are examples of each: - - For tasks within a single recipe, a - recipe's do_configure - task might need to complete before its - do_compile task can run. - - For tasks in different recipes, one - recipe's do_configure - task might require another recipe's - do_populate_sysroot - task to finish first such that the libraries and headers - provided by the other recipe are available. - - - - - - This section describes several ways to declare dependencies. - Remember, even though dependencies are declared in different ways, they - are all simply dependencies between tasks. - - -
- Dependencies Internal to the <filename>.bb</filename> File - - - BitBake uses the addtask directive - to manage dependencies that are internal to a given recipe - file. - You can use the addtask directive to - indicate when a task is dependent on other tasks or when - other tasks depend on that recipe. - Here is an example: - - addtask printdate after do_fetch before do_build - - In this example, the do_printdate - task depends on the completion of the - do_fetch task, and the - do_build task depends on the - completion of the do_printdate - task. - - For a task to run, it must be a direct or indirect - dependency of some other task that is scheduled to - run. - - For illustration, here are some examples: - - - The directive - addtask mytask before do_configure - causes do_mytask to run before - do_configure runs. - Be aware that do_mytask still only - runs if its input checksum - has changed since the last time it was run. - Changes to the input checksum of - do_mytask also indirectly cause - do_configure to run. - - - The directive - addtask mytask after do_configure - by itself never causes do_mytask - to run. - do_mytask can still be run manually - as follows: - - $ bitbake recipe -c mytask - - Declaring do_mytask as a dependency - of some other task that is scheduled to run also causes - it to run. - Regardless, the task runs after - do_configure. - - - - -
- -
- Build Dependencies - - - BitBake uses the - DEPENDS - variable to manage build time dependencies. - The [deptask] varflag for tasks - signifies the task of each - item listed in DEPENDS that must - complete before that task can be executed. - Here is an example: - - do_configure[deptask] = "do_populate_sysroot" - - In this example, the do_populate_sysroot - task of each item in DEPENDS must complete before - do_configure can execute. - -
- -
- Runtime Dependencies - - - BitBake uses the - PACKAGES, - RDEPENDS, and - RRECOMMENDS - variables to manage runtime dependencies. - - - - The PACKAGES variable lists runtime - packages. - Each of those packages can have RDEPENDS and - RRECOMMENDS runtime dependencies. - The [rdeptask] flag for tasks is used to - signify the task of each - item runtime dependency which must have completed before that - task can be executed. - - do_package_qa[rdeptask] = "do_packagedata" - - In the previous example, the do_packagedata - task of each item in RDEPENDS must have - completed before do_package_qa can execute. - -
- -
- Recursive Dependencies - - - BitBake uses the [recrdeptask] flag to manage - recursive task dependencies. - BitBake looks through the build-time and runtime - dependencies of the current recipe, looks through - the task's inter-task - dependencies, and then adds dependencies for the - listed task. - Once BitBake has accomplished this, it recursively works through - the dependencies of those tasks. - Iterative passes continue until all dependencies are discovered - and added. - - - - The [recrdeptask] flag is most commonly - used in high-level - recipes that need to wait for some task to finish "globally". - For example, image.bbclass has the following: - - do_rootfs[recrdeptask] += "do_packagedata" - - This statement says that the do_packagedata - task of the current recipe and all recipes reachable - (by way of dependencies) from the - image recipe must run before the do_rootfs - task can run. - - - - You might want to not only have BitBake look for - dependencies of those tasks, but also have BitBake look - for build-time and runtime dependencies of the dependent - tasks as well. - If that is the case, you need to reference the task name - itself in the task list: - - do_a[recrdeptask] = "do_a do_b" - - -
- -
- Inter-Task Dependencies - - - BitBake uses the [depends] - flag in a more generic form - to manage inter-task dependencies. - This more generic form allows for inter-dependency - checks for specific tasks rather than checks for - the data in DEPENDS. - Here is an example: - - do_patch[depends] = "quilt-native:do_populate_sysroot" - - In this example, the do_populate_sysroot - task of the target quilt-native - must have completed before the - do_patch task can execute. - - - - The [rdepends] flag works in a similar - way but takes targets - in the runtime namespace instead of the build-time dependency - namespace. - -
-
- -
- Functions You Can Call From Within Python - - - BitBake provides many functions you can call from - within Python functions. - This section lists the most commonly used functions, - and mentions where to find others. - - -
- Functions for Accessing Datastore Variables - - - It is often necessary to access variables in the - BitBake datastore using Python functions. - The Bitbake datastore has an API that allows you this - access. - Here is a list of available operations: - - - - - - - - - - Operation - Description - - - - - d.getVar("X", expand) - Returns the value of variable "X". - Using "expand=True" expands the value. - Returns "None" if the variable "X" does not exist. - - - d.setVar("X", "value") - Sets the variable "X" to "value". - - - d.appendVar("X", "value") - Adds "value" to the end of the variable "X". - Acts like d.setVar("X", "value") - if the variable "X" does not exist. - - - d.prependVar("X", "value") - Adds "value" to the start of the variable "X". - Acts like d.setVar("X", "value") - if the variable "X" does not exist. - - - d.delVar("X") - Deletes the variable "X" from the datastore. - Does nothing if the variable "X" does not exist. - - - d.renameVar("X", "Y") - Renames the variable "X" to "Y". - Does nothing if the variable "X" does not exist. - - - d.getVarFlag("X", flag, expand) - Returns the value of variable "X". - Using "expand=True" expands the value. - Returns "None" if either the variable "X" or the named flag - does not exist. - - - d.setVarFlag("X", flag, "value") - Sets the named flag for variable "X" to "value". - - - d.appendVarFlag("X", flag, "value") - Appends "value" to the named flag on the - variable "X". - Acts like d.setVarFlag("X", flag, "value") - if the named flag does not exist. - - - d.prependVarFlag("X", flag, "value") - Prepends "value" to the named flag on - the variable "X". - Acts like d.setVarFlag("X", flag, "value") - if the named flag does not exist. - - - d.delVarFlag("X", flag) - Deletes the named flag on the variable - "X" from the datastore. - - - d.setVarFlags("X", flagsdict) - Sets the flags specified in - the flagsdict() parameter. - setVarFlags does not clear previous flags. - Think of this operation as addVarFlags. - - - d.getVarFlags("X") - Returns a flagsdict - of the flags for the variable "X". - Returns "None" if the variable "X" does not exist. - - - d.delVarFlags("X") - Deletes all the flags for the variable "X". - Does nothing if the variable "X" does not exist. - - - d.expand(expression) - Expands variable references in the specified - string expression. - References to variables that do not exist are left as is. - For example, d.expand("foo ${X}") - expands to the literal string "foo ${X}" if the - variable "X" does not exist. - - - - - -
- -
- Other Functions - - - You can find many other functions that can be called - from Python by looking at the source code of the - bb module, which is in - bitbake/lib/bb. - For example, - bitbake/lib/bb/utils.py includes - the commonly used functions - bb.utils.contains() and - bb.utils.mkdirhier(), which come - with docstrings. - -
-
- -
- Task Checksums and Setscene - - - BitBake uses checksums (or signatures) along with the setscene - to determine if a task needs to be run. - This section describes the process. - To help understand how BitBake does this, the section assumes an - OpenEmbedded metadata-based example. - - - - This list is a place holder of content existed from previous work - on the manual. - Some or all of it probably needs integrated into the subsections - that make up this section. - For now, I have just provided a short glossary-like description - for each variable. - Ultimately, this list goes away. - - STAMP: - The base path to create stamp files. - STAMPCLEAN - Again, the base path to create stamp files but can use wildcards - for matching a range of files for clean operations. - - BB_STAMP_WHITELIST - Lists stamp files that are looked at when the stamp policy - is "whitelist". - - BB_STAMP_POLICY - Defines the mode for comparing timestamps of stamp files. - - BB_HASHCHECK_FUNCTION - Specifies the name of the function to call during - the "setscene" part of the task's execution in order - to validate the list of task hashes. - - BB_SETSCENE_VERIFY_FUNCTION2 - Specifies a function to call that verifies the list of - planned task execution before the main task execution - happens. - - BB_SETSCENE_DEPVALID - Specifies a function BitBake calls that determines - whether BitBake requires a setscene dependency to - be met. - - BB_TASKHASH - Within an executing task, this variable holds the hash - of the task as returned by the currently enabled - signature generator. - - - -
-
diff --git a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml b/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml deleted file mode 100644 index d89e123..0000000 --- a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml +++ /dev/null @@ -1,2373 +0,0 @@ - %poky; ] > - - - - -Variables Glossary - - - This chapter lists common variables used by BitBake and gives an overview - of their function and contents. - - - - Following are some points regarding the variables listed in this glossary: - - The variables listed in this glossary - are specific to BitBake. - Consequently, the descriptions are limited to that context. - - Also, variables exist in other systems that use BitBake - (e.g. The Yocto Project and OpenEmbedded) that have names identical - to those found in this glossary. - For such cases, the variables in those systems extend the - functionality of the variable as it is described here in - this glossary. - - Finally, there are variables mentioned in this - glossary that do not appear in the BitBake glossary. - These other variables are variables used in systems that use - BitBake. - - - - - - - - A - B - C - D - E - F - G - H - - - - L - M - - O - P - - R - S - T - - - - - - - - - A - - ASSUME_PROVIDED - - - Lists recipe names - (PN - values) BitBake does not attempt to build. - Instead, BitBake assumes these recipes have already been - built. - - - - In OpenEmbedded Core, ASSUME_PROVIDED - mostly specifies native tools that should not be built. - An example is git-native, which - when specified allows for the Git binary from the host to - be used rather than building - git-native. - - - - - - - - B - - B - - - The directory in which BitBake executes functions - during a recipe's build process. - - - - - BB_ALLOWED_NETWORKS - - - Specifies a space-delimited list of hosts that the fetcher - is allowed to use to obtain the required source code. - Following are considerations surrounding this variable: - - - This host list is only used if - BB_NO_NETWORK - is either not set or set to "0". - - - Limited support for wildcard matching against the - beginning of host names exists. - For example, the following setting matches - git.gnu.org, - ftp.gnu.org, and - foo.git.gnu.org. - - BB_ALLOWED_NETWORKS = "*.gnu.org" - - - - Mirrors not in the host list are skipped and - logged in debug. - - - Attempts to access networks not in the host list - cause a failure. - - - Using BB_ALLOWED_NETWORKS in - conjunction with - PREMIRRORS - is very useful. - Adding the host you want to use to - PREMIRRORS results in the source code - being fetched from an allowed location and avoids raising - an error when a host that is not allowed is in a - SRC_URI - statement. - This is because the fetcher does not attempt to use the - host listed in SRC_URI after a - successful fetch from the - PREMIRRORS occurs. - - - - - BB_CONSOLELOG - - - Specifies the path to a log file into which BitBake's user - interface writes output during the build. - - - - - BB_CURRENTTASK - - - Contains the name of the currently running task. - The name does not include the - do_ prefix. - - - - - BB_DANGLINGAPPENDS_WARNONLY - - - Defines how BitBake handles situations where an append - file (.bbappend) has no - corresponding recipe file (.bb). - This condition often occurs when layers get out of sync - (e.g. oe-core bumps a - recipe version and the old recipe no longer exists and the - other layer has not been updated to the new version - of the recipe yet). - - - - The default fatal behavior is safest because it is - the sane reaction given something is out of sync. - It is important to realize when your changes are no longer - being applied. - - - - - BB_DEFAULT_TASK - - - The default task to use when none is specified (e.g. - with the -c command line option). - The task name specified should not include the - do_ prefix. - - - - - BB_DISKMON_DIRS - - - Monitors disk space and available inodes during the build - and allows you to control the build based on these - parameters. - - - - Disk space monitoring is disabled by default. - When setting this variable, use the following form: - - BB_DISKMON_DIRS = "<action>,<dir>,<threshold> [...]" - - where: - - <action> is: - ABORT: Immediately abort the build when - a threshold is broken. - STOPTASKS: Stop the build after the currently - executing tasks have finished when - a threshold is broken. - WARN: Issue a warning but continue the - build when a threshold is broken. - Subsequent warnings are issued as - defined by the - BB_DISKMON_WARNINTERVAL variable, - which must be defined. - - <dir> is: - Any directory you choose. You can specify one or - more directories to monitor by separating the - groupings with a space. If two directories are - on the same device, only the first directory - is monitored. - - <threshold> is: - Either the minimum available disk space, - the minimum number of free inodes, or - both. You must specify at least one. To - omit one or the other, simply omit the value. - Specify the threshold using G, M, K for Gbytes, - Mbytes, and Kbytes, respectively. If you do - not specify G, M, or K, Kbytes is assumed by - default. Do not use GB, MB, or KB. - - - - - Here are some examples: - - BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K" - BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G" - BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K" - - The first example works only if you also set - the BB_DISKMON_WARNINTERVAL variable. - This example causes the build system to immediately - abort when either the disk space in ${TMPDIR} drops - below 1 Gbyte or the available free inodes drops below - 100 Kbytes. - Because two directories are provided with the variable, the - build system also issues a - warning when the disk space in the - ${SSTATE_DIR} directory drops - below 1 Gbyte or the number of free inodes drops - below 100 Kbytes. - Subsequent warnings are issued during intervals as - defined by the BB_DISKMON_WARNINTERVAL - variable. - - - - The second example stops the build after all currently - executing tasks complete when the minimum disk space - in the ${TMPDIR} - directory drops below 1 Gbyte. - No disk monitoring occurs for the free inodes in this case. - - - - The final example immediately aborts the build when the - number of free inodes in the ${TMPDIR} directory - drops below 100 Kbytes. - No disk space monitoring for the directory itself occurs - in this case. - - - - - BB_DISKMON_WARNINTERVAL - - - Defines the disk space and free inode warning intervals. - - - - If you are going to use the - BB_DISKMON_WARNINTERVAL variable, you must - also use the - BB_DISKMON_DIRS variable - and define its action as "WARN". - During the build, subsequent warnings are issued each time - disk space or number of free inodes further reduces by - the respective interval. - - - - If you do not provide a BB_DISKMON_WARNINTERVAL - variable and you do use BB_DISKMON_DIRS with - the "WARN" action, the disk monitoring interval defaults to - the following: - - BB_DISKMON_WARNINTERVAL = "50M,5K" - - - - - When specifying the variable in your configuration file, - use the following form: - - BB_DISKMON_WARNINTERVAL = "<disk_space_interval>,<disk_inode_interval>" - - where: - - <disk_space_interval> is: - An interval of memory expressed in either - G, M, or K for Gbytes, Mbytes, or Kbytes, - respectively. You cannot use GB, MB, or KB. - - <disk_inode_interval> is: - An interval of free inodes expressed in either - G, M, or K for Gbytes, Mbytes, or Kbytes, - respectively. You cannot use GB, MB, or KB. - - - - - Here is an example: - - BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K" - BB_DISKMON_WARNINTERVAL = "50M,5K" - - These variables cause BitBake to - issue subsequent warnings each time the available - disk space further reduces by 50 Mbytes or the number - of free inodes further reduces by 5 Kbytes in the - ${SSTATE_DIR} directory. - Subsequent warnings based on the interval occur each time - a respective interval is reached beyond the initial warning - (i.e. 1 Gbytes and 100 Kbytes). - - - - - BB_ENV_WHITELIST - - - Specifies the internal whitelist of variables to allow - through from the external environment into BitBake's - datastore. - If the value of this variable is not specified - (which is the default), the following list is used: - BBPATH, - BB_PRESERVE_ENV, - BB_ENV_WHITELIST, - and - BB_ENV_EXTRAWHITE. - - You must set this variable in the external environment - in order for it to work. - - - - - - BB_ENV_EXTRAWHITE - - - Specifies an additional set of variables to allow through - (whitelist) from the external environment into BitBake's - datastore. - This list of variables are on top of the internal list - set in - BB_ENV_WHITELIST. - - You must set this variable in the external - environment in order for it to work. - - - - - - BB_FETCH_PREMIRRORONLY - - - When set to "1", causes BitBake's fetcher module to only - search - PREMIRRORS - for files. - BitBake will not search the main - SRC_URI - or - MIRRORS. - - - - - BB_FILENAME - - - Contains the filename of the recipe that owns the currently - running task. - For example, if the do_fetch task that - resides in the my-recipe.bb is - executing, the BB_FILENAME variable - contains "/foo/path/my-recipe.bb". - - - - - BB_GENERATE_MIRROR_TARBALLS - - - Causes tarballs of the Git repositories, including the - Git metadata, to be placed in the - DL_DIR - directory. - Anyone wishing to create a source mirror would want to - enable this variable. - - - - For performance reasons, creating and placing tarballs of - the Git repositories is not the default action by BitBake. - - BB_GENERATE_MIRROR_TARBALLS = "1" - - - - - - BB_HASHCONFIG_WHITELIST - - - Lists variables that are excluded from base configuration - checksum, which is used to determine if the cache can - be reused. - - - - One of the ways BitBake determines whether to re-parse the - main metadata is through checksums of the variables in the - datastore of the base configuration data. - There are variables that you typically want to exclude when - checking whether or not to re-parse and thus rebuild the - cache. - As an example, you would usually exclude - TIME and DATE - because these variables are always changing. - If you did not exclude them, BitBake would never reuse the - cache. - - - - - BB_HASHBASE_WHITELIST - - - Lists variables that are excluded from checksum and - dependency data. - Variables that are excluded can therefore change without - affecting the checksum mechanism. - A common example would be the variable for the path of - the build. - BitBake's output should not (and usually does not) depend - on the directory in which it was built. - - - - - BB_HASHCHECK_FUNCTION - - - Specifies the name of the function to call during the - "setscene" part of the task's execution in order to - validate the list of task hashes. - The function returns the list of setscene tasks that should - be executed. - - - - At this point in the execution of the code, the objective - is to quickly verify if a given setscene function is likely - to work or not. - It's easier to check the list of setscene functions in - one pass than to call many individual tasks. - The returned list need not be completely accurate. - A given setscene task can still later fail. - However, the more accurate the data returned, the more - efficient the build will be. - - - - - BB_INVALIDCONF - - - Used in combination with the - ConfigParsed event to trigger - re-parsing the base metadata (i.e. all the - recipes). - The ConfigParsed event can set the - variable to trigger the re-parse. - You must be careful to avoid recursive loops with this - functionality. - - - - - BB_LOGFMT - - - Specifies the name of the log files saved into - ${T}. - By default, the BB_LOGFMT variable - is undefined and the log file names get created using the - following form: - - log.{task}.{pid} - - If you want to force log files to take a specific name, - you can set this variable in a configuration file. - - - - - BB_NICE_LEVEL - - - Allows BitBake to run at a specific priority - (i.e. nice level). - System permissions usually mean that BitBake can reduce its - priority but not raise it again. - See - BB_TASK_NICE_LEVEL - for additional information. - - - - - BB_NO_NETWORK - - - Disables network access in the BitBake fetcher modules. - With this access disabled, any command that attempts to - access the network becomes an error. - - - - Disabling network access is useful for testing source - mirrors, running builds when not connected to the Internet, - and when operating in certain kinds of firewall - environments. - - - - - BB_NUMBER_THREADS - - - The maximum number of tasks BitBake should run in parallel - at any one time. - If your host development system supports multiple cores, - a good rule of thumb is to set this variable to twice the - number of cores. - - - - - BB_NUMBER_PARSE_THREADS - - - Sets the number of threads BitBake uses when parsing. - By default, the number of threads is equal to the number - of cores on the system. - - - - - BB_ORIGENV - - - Contains a copy of the original external environment in - which BitBake was run. - The copy is taken before any whitelisted variable values - are filtered into BitBake's datastore. - - The contents of this variable is a datastore object - that can be queried using the normal datastore - operations. - - - - - - BB_PRESERVE_ENV - - - Disables whitelisting and instead allows all variables - through from the external environment into BitBake's - datastore. - - You must set this variable in the external - environment in order for it to work. - - - - - - BB_RUNFMT - - - Specifies the name of the executable script files - (i.e. run files) saved into - ${T}. - By default, the BB_RUNFMT variable - is undefined and the run file names get created using the - following form: - - run.{task}.{pid} - - If you want to force run files to take a specific name, - you can set this variable in a configuration file. - - - - - BB_RUNTASK - - - Contains the name of the currently executing task. - The value does not include the "do_" prefix. - For example, if the currently executing task is - do_config, the value is - "config". - - - - - BB_SCHEDULER - - - Selects the name of the scheduler to use for the - scheduling of BitBake tasks. - Three options exist: - - basic - - The basic framework from which everything derives. - Using this option causes tasks to be ordered - numerically as they are parsed. - - speed - - Executes tasks first that have more tasks - depending on them. - The "speed" option is the default. - - completion - - Causes the scheduler to try to complete a given - recipe once its build has started. - - - - - - - BB_SCHEDULERS - - - Defines custom schedulers to import. - Custom schedulers need to be derived from the - RunQueueScheduler class. - - - - For information how to select a scheduler, see the - BB_SCHEDULER - variable. - - - - - BB_SETSCENE_DEPVALID - - - Specifies a function BitBake calls that determines - whether BitBake requires a setscene dependency to be met. - - - - When running a setscene task, BitBake needs to - know which dependencies of that setscene task also need - to be run. - Whether dependencies also need to be run is highly - dependent on the metadata. - The function specified by this variable returns a - "True" or "False" depending on whether the dependency needs - to be met. - - - - - BB_SETSCENE_VERIFY_FUNCTION2 - - - Specifies a function to call that verifies the list of - planned task execution before the main task execution - happens. - The function is called once BitBake has a list of setscene - tasks that have run and either succeeded or failed. - - - - The function allows for a task list check to see if they - make sense. - Even if BitBake was planning to skip a task, the - returned value of the function can force BitBake to run - the task, which is necessary under certain metadata - defined circumstances. - - - - - BB_SIGNATURE_EXCLUDE_FLAGS - - - Lists variable flags (varflags) - that can be safely excluded from checksum - and dependency data for keys in the datastore. - When generating checksum or dependency data for keys in the - datastore, the flags set against that key are normally - included in the checksum. - - - - For more information on varflags, see the - "Variable Flags" - section. - - - - - BB_SIGNATURE_HANDLER - - - Defines the name of the signature handler BitBake uses. - The signature handler defines the way stamp files are - created and handled, if and how the signature is - incorporated into the stamps, and how the signature - itself is generated. - - - - A new signature handler can be added by injecting a class - derived from the - SignatureGenerator class into the - global namespace. - - - - - BB_SRCREV_POLICY - - - Defines the behavior of the fetcher when it interacts with - source control systems and dynamic source revisions. - The BB_SRCREV_POLICY variable is - useful when working without a network. - - - - The variable can be set using one of two policies: - - cache - - Retains the value the system obtained previously - rather than querying the source control system - each time. - - clear - - Queries the source controls system every time. - With this policy, there is no cache. - The "clear" policy is the default. - - - - - - - BB_STAMP_POLICY - - - Defines the mode used for how timestamps of stamp files - are compared. - You can set the variable to one of the following modes: - - perfile - - Timestamp comparisons are only made - between timestamps of a specific recipe. - This is the default mode. - - full - - Timestamp comparisons are made for all - dependencies. - - whitelist - - Identical to "full" mode except timestamp - comparisons are made for recipes listed in the - BB_STAMP_WHITELIST - variable. - - - - Stamp policies are largely obsolete with the - introduction of setscene tasks. - - - - - - BB_STAMP_WHITELIST - - - Lists files whose stamp file timestamps are compared when - the stamp policy mode is set to "whitelist". - For information on stamp policies, see the - BB_STAMP_POLICY - variable. - - - - - BB_STRICT_CHECKSUM - - - Sets a more strict checksum mechanism for non-local URLs. - Setting this variable to a value causes BitBake - to report an error if it encounters a non-local URL - that does not have at least one checksum specified. - - - - - BB_TASK_IONICE_LEVEL - - - Allows adjustment of a task's Input/Output priority. - During Autobuilder testing, random failures can occur - for tasks due to I/O starvation. - These failures occur during various QEMU runtime timeouts. - You can use the BB_TASK_IONICE_LEVEL - variable to adjust the I/O priority of these tasks. - - This variable works similarly to the - BB_TASK_NICE_LEVEL - variable except with a task's I/O priorities. - - - - - Set the variable as follows: - - BB_TASK_IONICE_LEVEL = "class.prio" - - For class, the default value is - "2", which is a best effort. - You can use "1" for realtime and "3" for idle. - If you want to use realtime, you must have superuser - privileges. - - - - For prio, you can use any - value from "0", which is the highest priority, to "7", - which is the lowest. - The default value is "4". - You do not need any special privileges to use this range - of priority values. - - In order for your I/O priority settings to take effect, - you need the Completely Fair Queuing (CFQ) Scheduler - selected for the backing block device. - To select the scheduler, use the following command form - where device is the device - (e.g. sda, sdb, and so forth): - - $ sudo sh -c “echo cfq > /sys/block/device/queu/scheduler - - - - - - - BB_TASK_NICE_LEVEL - - - Allows specific tasks to change their priority - (i.e. nice level). - - - - You can use this variable in combination with task - overrides to raise or lower priorities of specific tasks. - For example, on the - Yocto Project - autobuilder, QEMU emulation in images is given a higher - priority as compared to build tasks to ensure that images - do not suffer timeouts on loaded systems. - - - - - BB_TASKHASH - - - Within an executing task, this variable holds the hash - of the task as returned by the currently enabled - signature generator. - - - - - BB_VERBOSE_LOGS - - - Controls how verbose BitBake is during builds. - If set, shell scripts echo commands and shell script output - appears on standard out (stdout). - - - - - BB_WORKERCONTEXT - - - Specifies if the current context is executing a task. - BitBake sets this variable to "1" when a task is - being executed. - The value is not set when the task is in server context - during parsing or event handling. - - - - - - BBCLASSEXTEND - - - Allows you to extend a recipe so that it builds variants - of the software. - Some examples of these variants for recipes from the - OpenEmbedded Core metadata are "natives" such as - quilt-native, which is a copy of - Quilt built to run on the build system; "crosses" such - as gcc-cross, which is a compiler - built to run on the build machine but produces binaries - that run on the target MACHINE; - "nativesdk", which targets the SDK machine instead of - MACHINE; and "mulitlibs" in the form - "multilib:multilib_name". - - - - To build a different variant of the recipe with a minimal - amount of code, it usually is as simple as adding the - variable to your recipe. - Here are two examples. - The "native" variants are from the OpenEmbedded Core - metadata: - - BBCLASSEXTEND =+ "native nativesdk" - BBCLASSEXTEND =+ "multilib:multilib_name" - - - - Internally, the BBCLASSEXTEND - mechanism generates recipe variants by rewriting - variable values and applying overrides such as - _class-native. - For example, to generate a native version of a recipe, - a - DEPENDS - on "foo" is rewritten to a DEPENDS - on "foo-native". - - - - Even when using BBCLASSEXTEND, the - recipe is only parsed once. - Parsing once adds some limitations. - For example, it is not possible to - include a different file depending on the variant, - since include statements are - processed when the recipe is parsed. - - - - - - - BBDEBUG - - - Sets the BitBake debug output level to a specific value - as incremented by the -D command line - option. - - You must set this variable in the external environment - in order for it to work. - - - - - - BBFILE_COLLECTIONS - - Lists the names of configured layers. - These names are used to find the other BBFILE_* - variables. - Typically, each layer appends its name to this variable in its - conf/layer.conf file. - - - - - BBFILE_PATTERN - - Variable that expands to match files from - BBFILES - in a particular layer. - This variable is used in the conf/layer.conf file and must - be suffixed with the name of the specific layer (e.g. - BBFILE_PATTERN_emenlow). - - - - BBFILE_PRIORITY - - Assigns the priority for recipe files in each layer. - This variable is useful in situations where the same recipe appears in - more than one layer. - Setting this variable allows you to prioritize a - layer against other layers that contain the same recipe - effectively - letting you control the precedence for the multiple layers. - The precedence established through this variable stands regardless of a - recipe's version - (PV variable). - For example, a layer that has a recipe with a higher PV value but for - which the BBFILE_PRIORITY is set to have a lower precedence still has a - lower precedence. - A larger value for the BBFILE_PRIORITY variable results in a higher - precedence. - For example, the value 6 has a higher precedence than the value 5. - If not specified, the BBFILE_PRIORITY variable is set based on layer - dependencies (see the - LAYERDEPENDS variable for - more information. - The default priority, if unspecified - for a layer with no dependencies, is the lowest defined priority + 1 - (or 1 if no priorities are defined). - - You can use the command bitbake-layers show-layers to list - all configured layers along with their priorities. - - - - - BBFILES - - List of recipe files BitBake uses to build software. - - - - BBINCLUDED - - - Contains a space-separated list of all of all files that - BitBake's parser included during parsing of the current - file. - - - - - BBINCLUDELOGS - - - If set to a value, enables printing the task log when - reporting a failed task. - - - - - BBINCLUDELOGS_LINES - - - If - BBINCLUDELOGS - is set, specifies the maximum number of lines from the - task log file to print when reporting a failed task. - If you do not set BBINCLUDELOGS_LINES, - the entire log is printed. - - - - - BBLAYERS - - Lists the layers to enable during the build. - This variable is defined in the bblayers.conf configuration - file in the build directory. - Here is an example: - - BBLAYERS = " \ - /home/scottrif/poky/meta \ - /home/scottrif/poky/meta-yocto \ - /home/scottrif/poky/meta-yocto-bsp \ - /home/scottrif/poky/meta-mykernel \ - " - - - This example enables four layers, one of which is a custom, user-defined layer - named meta-mykernel. - - - - - BBLAYERS_FETCH_DIR - - - Sets the base location where layers are stored. - This setting is used in conjunction with - bitbake-layers layerindex-fetch and - tells bitbake-layers where to place - the fetched layers. - - - - - BBMASK - - - Prevents BitBake from processing recipes and recipe - append files. - - - - You can use the BBMASK variable - to "hide" these .bb and - .bbappend files. - BitBake ignores any recipe or recipe append files that - match any of the expressions. - It is as if BitBake does not see them at all. - Consequently, matching files are not parsed or otherwise - used by BitBake. - - The values you provide are passed to Python's regular - expression compiler. - The expressions are compared against the full paths to - the files. - For complete syntax information, see Python's - documentation at - . - - - - The following example uses a complete regular expression - to tell BitBake to ignore all recipe and recipe append - files in the meta-ti/recipes-misc/ - directory: - - BBMASK = "meta-ti/recipes-misc/" - - If you want to mask out multiple directories or recipes, - you can specify multiple regular expression fragments. - This next example masks out multiple directories and - individual recipes: - - BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/" - BBMASK += "/meta-oe/recipes-support/" - BBMASK += "/meta-foo/.*/openldap" - BBMASK += "opencv.*\.bbappend" - BBMASK += "lzma" - - - When specifying a directory name, use the trailing - slash character to ensure you match just that directory - name. - - - - - - BBPATH - - - Used by BitBake to locate class - (.bbclass) and configuration - (.conf) files. - This variable is analogous to the - PATH variable. - - - - If you run BitBake from a directory outside of the - build directory, - you must be sure to set - BBPATH to point to the - build directory. - Set the variable as you would any environment variable - and then run BitBake: - - $ BBPATH="build_directory" - $ export BBPATH - $ bitbake target - - - - - - BBSERVER - - - Points to the server that runs memory-resident BitBake. - The variable is only used when you employ memory-resident - BitBake. - - - - - BBTARGETS - - - Allows you to use a configuration file to add to the list - of command-line target recipes you want to build. - - - - - BBVERSIONS - - - Allows a single recipe to build multiple versions of a - project from a single recipe file. - You also able to specify conditional metadata - using the - OVERRIDES - mechanism for a single version or for an optionally named - range of versions. - - - - For more information on BBVERSIONS, - see the - "Variants - Class Extension Mechanism" - section. - - - - - BITBAKE_UI - - - Used to specify the UI module to use when running BitBake. - Using this variable is equivalent to using the - -u command-line option. - - You must set this variable in the external environment - in order for it to work. - - - - - - BUILDNAME - - - A name assigned to the build. - The name defaults to a datetime stamp of when the build was - started but can be defined by the metadata. - - - - - BZRDIR - - - The directory in which files checked out of a Bazaar - system are stored. - - - - - - - C - - CACHE - - - Specifies the directory BitBake uses to store a cache - of the metadata so it does not need to be parsed every - time BitBake is started. - - - - - CVSDIR - - - The directory in which files checked out under the - CVS system are stored. - - - - - - - D - - DEFAULT_PREFERENCE - - - Specifies a weak bias for recipe selection priority. - - - The most common usage of this is variable is to set - it to "-1" within a recipe for a development version of a - piece of software. - Using the variable in this way causes the stable version - of the recipe to build by default in the absence of - PREFERRED_VERSION - being used to build the development version. - - - The bias provided by DEFAULT_PREFERENCE - is weak and is overridden by - BBFILE_PRIORITY - if that variable is different between two layers - that contain different versions of the same recipe. - - - - - DEPENDS - - - Lists a recipe's build-time dependencies - (i.e. other recipe files). - - - - Consider this simple example for two recipes named "a" and - "b" that produce similarly named packages. - In this example, the DEPENDS - statement appears in the "a" recipe: - - DEPENDS = "b" - - Here, the dependency is such that the - do_configure task for recipe "a" - depends on the do_populate_sysroot - task of recipe "b". - This means anything that recipe "b" puts into sysroot - is available when recipe "a" is configuring itself. - - - - For information on runtime dependencies, see the - RDEPENDS - variable. - - - - - DESCRIPTION - - - A long description for the recipe. - - - - - DL_DIR - - - The central download directory used by the build process to - store downloads. - By default, DL_DIR gets files - suitable for mirroring for everything except Git - repositories. - If you want tarballs of Git repositories, use the - BB_GENERATE_MIRROR_TARBALLS - variable. - - - - - - - E - - EXCLUDE_FROM_WORLD - - - Directs BitBake to exclude a recipe from world builds (i.e. - bitbake world). - During world builds, BitBake locates, parses and builds all - recipes found in every layer exposed in the - bblayers.conf configuration file. - - - - To exclude a recipe from a world build using this variable, - set the variable to "1" in the recipe. - - - - Recipes added to EXCLUDE_FROM_WORLD - may still be built during a world build in order to satisfy - dependencies of other recipes. - Adding a recipe to EXCLUDE_FROM_WORLD - only ensures that the recipe is not explicitly added - to the list of build targets in a world build. - - - - - - - F - - FAKEROOT - - - Contains the command to use when running a shell script - in a fakeroot environment. - The FAKEROOT variable is obsolete - and has been replaced by the other - FAKEROOT* variables. - See these entries in the glossary for more information. - - - - - FAKEROOTBASEENV - - - Lists environment variables to set when executing - the command defined by - FAKEROOTCMD - that starts the bitbake-worker process - in the fakeroot environment. - - - - - FAKEROOTCMD - - - Contains the command that starts the bitbake-worker - process in the fakeroot environment. - - - - - FAKEROOTDIRS - - - Lists directories to create before running a task in - the fakeroot environment. - - - - - FAKEROOTENV - - - Lists environment variables to set when running a task - in the fakeroot environment. - For additional information on environment variables and - the fakeroot environment, see the - FAKEROOTBASEENV - variable. - - - - - FAKEROOTNOENV - - - Lists environment variables to set when running a task - that is not in the fakeroot environment. - For additional information on environment variables and - the fakeroot environment, see the - FAKEROOTENV - variable. - - - - - FETCHCMD - - - Defines the command the BitBake fetcher module - executes when running fetch operations. - You need to use an override suffix when you use the - variable (e.g. FETCHCMD_git - or FETCHCMD_svn). - - - - - FILE - - - Points at the current file. - BitBake sets this variable during the parsing process - to identify the file being parsed. - BitBake also sets this variable when a recipe is being - executed to identify the recipe file. - - - - - FILESPATH - - - Specifies directories BitBake uses when searching for - patches and files. - The "local" fetcher module uses these directories when - handling file:// URLs. - The variable behaves like a shell PATH - environment variable. - The value is a colon-separated list of directories that - are searched left-to-right in order. - - - - - - - - G - - GITDIR - - - The directory in which a local copy of a Git repository - is stored when it is cloned. - - - - - - - - H - - HGDIR - - - The directory in which files checked out of a Mercurial - system are stored. - - - - - HOMEPAGE - - Website where more information about the software the recipe is building - can be found. - - - - - - I - - INHERIT - - - Causes the named class or classes to be inherited globally. - Anonymous functions in the class or classes - are not executed for the - base configuration and in each individual recipe. - The OpenEmbedded build system ignores changes to - INHERIT in individual recipes. - - - - For more information on INHERIT, see - the - "INHERIT Configuration Directive" - section. - - - - - - - - - L - - LAYERDEPENDS - - Lists the layers, separated by spaces, upon which this recipe depends. - Optionally, you can specify a specific layer version for a dependency - by adding it to the end of the layer name with a colon, (e.g. "anotherlayer:3" - to be compared against - LAYERVERSION_anotherlayer - in this case). - BitBake produces an error if any dependency is missing or - the version numbers do not match exactly (if specified). - - You use this variable in the conf/layer.conf file. - You must also use the specific layer name as a suffix - to the variable (e.g. LAYERDEPENDS_mylayer). - - - - LAYERDIR - - When used inside the layer.conf configuration - file, this variable provides the path of the current layer. - This variable is not available outside of layer.conf - and references are expanded immediately when parsing of the file completes. - - - - LAYERDIR_RE - - When used inside the layer.conf configuration - file, this variable provides the path of the current layer, - escaped for use in a regular expression - (BBFILE_PATTERN). - This variable is not available outside of layer.conf - and references are expanded immediately when parsing of the file completes. - - - - LAYERVERSION - - Optionally specifies the version of a layer as a single number. - You can use this variable within - LAYERDEPENDS - for another layer in order to depend on a specific version - of the layer. - - You use this variable in the conf/layer.conf file. - You must also use the specific layer name as a suffix - to the variable (e.g. LAYERDEPENDS_mylayer). - - - - LICENSE - - - The list of source licenses for the recipe. - - - - - - - M - - MIRRORS - - - Specifies additional paths from which BitBake gets source code. - When the build system searches for source code, it first - tries the local download directory. - If that location fails, the build system tries locations - defined by - PREMIRRORS, - the upstream source, and then locations specified by - MIRRORS in that order. - - - - - MULTI_PROVIDER_WHITELIST - - - Allows you to suppress BitBake warnings caused when - building two separate recipes that provide the same - output. - - - - Bitbake normally issues a warning when building two - different recipes where each provides the same output. - This scenario is usually something the user does not - want. - However, cases do exist where it makes sense, particularly - in the virtual/* namespace. - You can use this variable to suppress BitBake's warnings. - - - - To use the variable, list provider names (e.g. - recipe names, virtual/kernel, - and so forth). - - - - - - - - - O - - OVERRIDES - - - BitBake uses OVERRIDES to control - what variables are overridden after BitBake parses - recipes and configuration files. - - - - Following is a simple example that uses an overrides - list based on machine architectures: - - OVERRIDES = "arm:x86:mips:powerpc" - - You can find information on how to use - OVERRIDES in the - "Conditional Syntax (Overrides)" - section. - - - - - - P - - P4DIR - - - The directory in which a local copy of a Perforce depot - is stored when it is fetched. - - - - - PACKAGES - - The list of packages the recipe creates. - - - - - PACKAGES_DYNAMIC - - - A promise that your recipe satisfies runtime dependencies - for optional modules that are found in other recipes. - PACKAGES_DYNAMIC - does not actually satisfy the dependencies, it only states that - they should be satisfied. - For example, if a hard, runtime dependency - (RDEPENDS) - of another package is satisfied during the build - through the PACKAGES_DYNAMIC - variable, but a package with the module name is never actually - produced, then the other package will be broken. - - - - - PE - - - The epoch of the recipe. - By default, this variable is unset. - The variable is used to make upgrades possible when the - versioning scheme changes in some backwards incompatible - way. - - - - - PERSISTENT_DIR - - - Specifies the directory BitBake uses to store data that - should be preserved between builds. - In particular, the data stored is the data that uses - BitBake's persistent data API and the data used by the - PR Server and PR Service. - - - - - PF - - - Specifies the recipe or package name and includes all version and revision - numbers (i.e. eglibc-2.13-r20+svnr15508/ and - bash-4.2-r1/). - - - - - PN - - The recipe name. - - - - PR - - The revision of the recipe. - - - - - PREFERRED_PROVIDER - - - Determines which recipe should be given preference when - multiple recipes provide the same item. - You should always suffix the variable with the name of the - provided item, and you should set it to the - PN - of the recipe to which you want to give precedence. - Some examples: - - PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" - PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86" - PREFERRED_PROVIDER_virtual/libgl ?= "mesa" - - - - - - PREFERRED_PROVIDERS - - - Determines which recipe should be given preference for - cases where multiple recipes provide the same item. - Functionally, - PREFERRED_PROVIDERS is identical to - PREFERRED_PROVIDER. - However, the PREFERRED_PROVIDERS - variable lets you define preferences for multiple - situations using the following form: - - PREFERRED_PROVIDERS = "xxx:yyy aaa:bbb ..." - - This form is a convenient replacement for the following: - - PREFERRED_PROVIDER_xxx = "yyy" - PREFERRED_PROVIDER_aaa = "bbb" - - - - - - PREFERRED_VERSION - - - If there are multiple versions of recipes available, this - variable determines which recipe should be given preference. - You must always suffix the variable with the - PN - you want to select, and you should set - PV - accordingly for precedence. - You can use the "%" character as a - wildcard to match any number of characters, which can be - useful when specifying versions that contain long revision - numbers that could potentially change. - Here are two examples: - - PREFERRED_VERSION_python = "2.7.3" - PREFERRED_VERSION_linux-yocto = "4.12%" - - - - - - PREMIRRORS - - - Specifies additional paths from which BitBake gets source code. - When the build system searches for source code, it first - tries the local download directory. - If that location fails, the build system tries locations - defined by PREMIRRORS, the upstream - source, and then locations specified by - MIRRORS - in that order. - - - - Typically, you would add a specific server for the - build system to attempt before any others by adding - something like the following to your configuration: - - PREMIRRORS_prepend = "\ - git://.*/.* http://www.yoctoproject.org/sources/ \n \ - ftp://.*/.* http://www.yoctoproject.org/sources/ \n \ - http://.*/.* http://www.yoctoproject.org/sources/ \n \ - https://.*/.* http://www.yoctoproject.org/sources/ \n" - - These changes cause the build system to intercept - Git, FTP, HTTP, and HTTPS requests and direct them to - the http:// sources mirror. - You can use file:// URLs to point - to local directories or network shares as well. - - - - - PROVIDES - - - A list of aliases by which a particular recipe can be - known. - By default, a recipe's own - PN - is implicitly already in its PROVIDES - list. - If a recipe uses PROVIDES, the - additional aliases are synonyms for the recipe and can - be useful satisfying dependencies of other recipes during - the build as specified by - DEPENDS. - - - - Consider the following example - PROVIDES statement from a recipe - file libav_0.8.11.bb: - - PROVIDES += "libpostproc" - - The PROVIDES statement results in - the "libav" recipe also being known as "libpostproc". - - - - In addition to providing recipes under alternate names, - the PROVIDES mechanism is also used - to implement virtual targets. - A virtual target is a name that corresponds to some - particular functionality (e.g. a Linux kernel). - Recipes that provide the functionality in question list the - virtual target in PROVIDES. - Recipes that depend on the functionality in question can - include the virtual target in - DEPENDS - to leave the choice of provider open. - - - - Conventionally, virtual targets have names on the form - "virtual/function" (e.g. "virtual/kernel"). - The slash is simply part of the name and has no - syntactical significance. - - - - - PRSERV_HOST - - - The network based - PR - service host and port. - - - - Following is an example of how the PRSERV_HOST variable is - set: - - PRSERV_HOST = "localhost:0" - - You must set the variable if you want to automatically - start a local PR service. - You can set PRSERV_HOST to other - values to use a remote PR service. - - - - - PV - - The version of the recipe. - - - - - - - - - R - - RDEPENDS - - - Lists a package's runtime dependencies (i.e. other packages) - that must be installed in order for the built package to run - correctly. - If a package in this list cannot be found during the build, - you will get a build error. - - - - Because the RDEPENDS variable applies - to packages being built, you should always use the variable - in a form with an attached package name. - For example, suppose you are building a development package - that depends on the perl package. - In this case, you would use the following - RDEPENDS statement: - - RDEPENDS_${PN}-dev += "perl" - - In the example, the development package depends on - the perl package. - Thus, the RDEPENDS variable has the - ${PN}-dev package name as part of the - variable. - - - - BitBake supports specifying versioned dependencies. - Although the syntax varies depending on the packaging - format, BitBake hides these differences from you. - Here is the general syntax to specify versions with - the RDEPENDS variable: - - RDEPENDS_${PN} = "package (operator version)" - - For operator, you can specify the - following: - - = - < - > - <= - >= - - For example, the following sets up a dependency on version - 1.2 or greater of the package foo: - - RDEPENDS_${PN} = "foo (>= 1.2)" - - - - - For information on build-time dependencies, see the - DEPENDS - variable. - - - - - RPROVIDES - - - A list of package name aliases that a package also provides. - These aliases are useful for satisfying runtime dependencies - of other packages both during the build and on the target - (as specified by - RDEPENDS). - - - As with all package-controlling variables, you must always - use the variable in conjunction with a package name override. - Here is an example: - - RPROVIDES_${PN} = "widget-abi-2" - - - - - - RRECOMMENDS - - - A list of packages that extends the usability of a package - being built. - The package being built does not depend on this list of - packages in order to successfully build, but needs them for - the extended usability. - To specify runtime dependencies for packages, see the - RDEPENDS - variable. - - - - BitBake supports specifying versioned recommends. - Although the syntax varies depending on the packaging - format, BitBake hides these differences from you. - Here is the general syntax to specify versions with - the RRECOMMENDS variable: - - RRECOMMENDS_${PN} = "package (operator version)" - - For operator, you can specify the - following: - - = - < - > - <= - >= - - For example, the following sets up a recommend on version - 1.2 or greater of the package foo: - - RRECOMMENDS_${PN} = "foo (>= 1.2)" - - - - - - - - S - - SECTION - - The section in which packages should be categorized. - - - - SRC_URI - - - The list of source files - local or remote. - This variable tells BitBake which bits - to pull for the build and how to pull them. - For example, if the recipe or append file needs to - fetch a single tarball from the Internet, the recipe or - append file uses a SRC_URI - entry that specifies that tarball. - On the other hand, if the recipe or append file needs to - fetch a tarball and include a custom file, the recipe or - append file needs an SRC_URI variable - that specifies all those sources. - The following list explains the available URI protocols: - - file:// - - Fetches files, which are usually files shipped with - the metadata, - from the local machine. - The path is relative to the - FILESPATH - variable. - bzr:// - Fetches files from a - Bazaar revision control repository. - git:// - Fetches files from a - Git revision control repository. - osc:// - Fetches files from - an OSC (OpenSUSE Build service) revision control repository. - repo:// - Fetches files from - a repo (Git) repository. - http:// - Fetches files from - the Internet using HTTP. - https:// - Fetches files - from the Internet using HTTPS. - ftp:// - Fetches files - from the Internet using FTP. - cvs:// - Fetches files from - a CVS revision control repository. - hg:// - Fetches files from - a Mercurial (hg) revision control repository. - p4:// - Fetches files from - a Perforce (p4) revision control repository. - ssh:// - Fetches files from - a secure shell. - svn:// - Fetches files from - a Subversion (svn) revision control repository. - - - Here are some additional options worth mentioning: - - unpack - Controls - whether or not to unpack the file if it is an archive. - The default action is to unpack the file. - subdir - Places the file - (or extracts its contents) into the specified - subdirectory. - This option is useful for unusual tarballs or other archives that - do not have their files already in a subdirectory within the archive. - - name - Specifies a - name to be used for association with SRC_URI checksums - when you have more than one file specified in SRC_URI. - - downloadfilename - Specifies - the filename used when storing the downloaded file. - - - - - - SRCDATE - - - The date of the source code used to build the package. - This variable applies only if the source was fetched from a Source Code Manager (SCM). - - - - - SRCREV - - - The revision of the source code used to build the package. - This variable applies only when using Subversion, Git, Mercurial and Bazaar. - If you want to build a fixed revision and you want - to avoid performing a query on the remote repository every time - BitBake parses your recipe, you should specify a SRCREV that is a - full revision identifier and not just a tag. - - - - - SRCREV_FORMAT - - - Helps construct valid - SRCREV - values when multiple source controlled URLs are used in - SRC_URI. - - - - The system needs help constructing these values under these - circumstances. - Each component in the SRC_URI - is assigned a name and these are referenced - in the SRCREV_FORMAT variable. - Consider an example with URLs named "machine" and "meta". - In this case, SRCREV_FORMAT could look - like "machine_meta" and those names would have the SCM - versions substituted into each position. - Only one AUTOINC placeholder is added - and if needed. - And, this placeholder is placed at the start of the - returned string. - - - - - STAMP - - - Specifies the base path used to create recipe stamp files. - The path to an actual stamp file is constructed by evaluating this - string and then appending additional information. - - - - - STAMPCLEAN - - - Specifies the base path used to create recipe stamp files. - Unlike the - STAMP - variable, STAMPCLEAN can contain - wildcards to match the range of files a clean operation - should remove. - BitBake uses a clean operation to remove any other stamps - it should be removing when creating a new stamp. - - - - - SUMMARY - - - A short summary for the recipe, which is 72 characters or less. - - - - - SVNDIR - - - The directory in which files checked out of a Subversion - system are stored. - - - - - - - T - - T - - Points to a directory were BitBake places - temporary files, which consist mostly of task logs and - scripts, when building a particular recipe. - - - - - TOPDIR - - - Points to the build directory. - BitBake automatically sets this variable. - - - - - - - - - - - - diff --git a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-style.css b/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-style.css deleted file mode 100644 index 65da2a4..0000000 --- a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual-style.css +++ /dev/null @@ -1,984 +0,0 @@ -/* - Generic XHTML / DocBook XHTML CSS Stylesheet. - - Browser wrangling and typographic design by - Oyvind Kolas / pippin@gimp.org - - Customised for Poky by - Matthew Allum / mallum@o-hand.com - - Thanks to: - Liam R. E. Quin - William Skaggs - Jakub Steiner - - Structure - --------- - - The stylesheet is divided into the following sections: - - Positioning - Margins, paddings, width, font-size, clearing. - Decorations - Borders, style - Colors - Colors - Graphics - Graphical backgrounds - Nasty IE tweaks - Workarounds needed to make it work in internet explorer, - currently makes the stylesheet non validating, but up until - this point it is validating. - Mozilla extensions - Transparency for footer - Rounded corners on boxes - -*/ - - - /*************** / - / Positioning / -/ ***************/ - -body { - font-family: Verdana, Sans, sans-serif; - - min-width: 640px; - width: 80%; - margin: 0em auto; - padding: 2em 5em 5em 5em; - color: #333; -} - -h1,h2,h3,h4,h5,h6,h7 { - font-family: Arial, Sans; - color: #00557D; - clear: both; -} - -h1 { - font-size: 2em; - text-align: left; - padding: 0em 0em 0em 0em; - margin: 2em 0em 0em 0em; -} - -h2.subtitle { - margin: 0.10em 0em 3.0em 0em; - padding: 0em 0em 0em 0em; - font-size: 1.8em; - padding-left: 20%; - font-weight: normal; - font-style: italic; -} - -h2 { - margin: 2em 0em 0.66em 0em; - padding: 0.5em 0em 0em 0em; - font-size: 1.5em; - font-weight: bold; -} - -h3.subtitle { - margin: 0em 0em 1em 0em; - padding: 0em 0em 0em 0em; - font-size: 142.14%; - text-align: right; -} - -h3 { - margin: 1em 0em 0.5em 0em; - padding: 1em 0em 0em 0em; - font-size: 140%; - font-weight: bold; -} - -h4 { - margin: 1em 0em 0.5em 0em; - padding: 1em 0em 0em 0em; - font-size: 120%; - font-weight: bold; -} - -h5 { - margin: 1em 0em 0.5em 0em; - padding: 1em 0em 0em 0em; - font-size: 110%; - font-weight: bold; -} - -h6 { - margin: 1em 0em 0em 0em; - padding: 1em 0em 0em 0em; - font-size: 110%; - font-weight: bold; -} - -.authorgroup { - background-color: transparent; - background-repeat: no-repeat; - padding-top: 256px; - background-image: url("figures/bitbake-title.png"); - background-position: left top; - margin-top: -256px; - padding-right: 50px; - margin-left: 0px; - text-align: right; - width: 740px; -} - -h3.author { - margin: 0em 0me 0em 0em; - padding: 0em 0em 0em 0em; - font-weight: normal; - font-size: 100%; - color: #333; - clear: both; -} - -.author tt.email { - font-size: 66%; -} - -.titlepage hr { - width: 0em; - clear: both; -} - -.revhistory { - padding-top: 2em; - clear: both; -} - -.toc, -.list-of-tables, -.list-of-examples, -.list-of-figures { - padding: 1.33em 0em 2.5em 0em; - color: #00557D; -} - -.toc p, -.list-of-tables p, -.list-of-figures p, -.list-of-examples p { - padding: 0em 0em 0em 0em; - padding: 0em 0em 0.3em; - margin: 1.5em 0em 0em 0em; -} - -.toc p b, -.list-of-tables p b, -.list-of-figures p b, -.list-of-examples p b{ - font-size: 100.0%; - font-weight: bold; -} - -.toc dl, -.list-of-tables dl, -.list-of-figures dl, -.list-of-examples dl { - margin: 0em 0em 0.5em 0em; - padding: 0em 0em 0em 0em; -} - -.toc dt { - margin: 0em 0em 0em 0em; - padding: 0em 0em 0em 0em; -} - -.toc dd { - margin: 0em 0em 0em 2.6em; - padding: 0em 0em 0em 0em; -} - -div.glossary dl, -div.variablelist dl { -} - -.glossary dl dt, -.variablelist dl dt, -.variablelist dl dt span.term { - font-weight: normal; - width: 20em; - text-align: right; -} - -.variablelist dl dt { - margin-top: 0.5em; -} - -.glossary dl dd, -.variablelist dl dd { - margin-top: -1em; - margin-left: 25.5em; -} - -.glossary dd p, -.variablelist dd p { - margin-top: 0em; - margin-bottom: 1em; -} - - -div.calloutlist table td { - padding: 0em 0em 0em 0em; - margin: 0em 0em 0em 0em; -} - -div.calloutlist table td p { - margin-top: 0em; - margin-bottom: 1em; -} - -div p.copyright { - text-align: left; -} - -div.legalnotice p.legalnotice-title { - margin-bottom: 0em; -} - -p { - line-height: 1.5em; - margin-top: 0em; - -} - -dl { - padding-top: 0em; -} - -hr { - border: solid 1px; -} - - -.mediaobject, -.mediaobjectco { - text-align: center; -} - -img { - border: none; -} - -ul { - padding: 0em 0em 0em 1.5em; -} - -ul li { - padding: 0em 0em 0em 0em; -} - -ul li p { - text-align: left; -} - -table { - width :100%; -} - -th { - padding: 0.25em; - text-align: left; - font-weight: normal; - vertical-align: top; -} - -td { - padding: 0.25em; - vertical-align: top; -} - -p a[id] { - margin: 0px; - padding: 0px; - display: inline; - background-image: none; -} - -a { - text-decoration: underline; - color: #444; -} - -pre { - overflow: auto; -} - -a:hover { - text-decoration: underline; - /*font-weight: bold;*/ -} - -/* This style defines how the permalink character - appears by itself and when hovered over with - the mouse. */ - -[alt='Permalink'] { color: #eee; } -[alt='Permalink']:hover { color: black; } - - -div.informalfigure, -div.informalexample, -div.informaltable, -div.figure, -div.table, -div.example { - margin: 1em 0em; - padding: 1em; - page-break-inside: avoid; -} - - -div.informalfigure p.title b, -div.informalexample p.title b, -div.informaltable p.title b, -div.figure p.title b, -div.example p.title b, -div.table p.title b{ - padding-top: 0em; - margin-top: 0em; - font-size: 100%; - font-weight: normal; -} - -.mediaobject .caption, -.mediaobject .caption p { - text-align: center; - font-size: 80%; - padding-top: 0.5em; - padding-bottom: 0.5em; -} - -.epigraph { - padding-left: 55%; - margin-bottom: 1em; -} - -.epigraph p { - text-align: left; -} - -.epigraph .quote { - font-style: italic; -} -.epigraph .attribution { - font-style: normal; - text-align: right; -} - -span.application { - font-style: italic; -} - -.programlisting { - font-family: monospace; - font-size: 80%; - white-space: pre; - margin: 1.33em 0em; - padding: 1.33em; -} - -.tip, -.warning, -.caution, -.note { - margin-top: 1em; - margin-bottom: 1em; - -} - -/* force full width of table within div */ -.tip table, -.warning table, -.caution table, -.note table { - border: none; - width: 100%; -} - - -.tip table th, -.warning table th, -.caution table th, -.note table th { - padding: 0.8em 0.0em 0.0em 0.0em; - margin : 0em 0em 0em 0em; -} - -.tip p, -.warning p, -.caution p, -.note p { - margin-top: 0.5em; - margin-bottom: 0.5em; - padding-right: 1em; - text-align: left; -} - -.acronym { - text-transform: uppercase; -} - -b.keycap, -.keycap { - padding: 0.09em 0.3em; - margin: 0em; -} - -.itemizedlist li { - clear: none; -} - -.filename { - font-size: medium; - font-family: Courier, monospace; -} - - -div.navheader, div.heading{ - position: absolute; - left: 0em; - top: 0em; - width: 100%; - background-color: #cdf; - width: 100%; -} - -div.navfooter, div.footing{ - position: fixed; - left: 0em; - bottom: 0em; - background-color: #eee; - width: 100%; -} - - -div.navheader td, -div.navfooter td { - font-size: 66%; -} - -div.navheader table th { - /*font-family: Georgia, Times, serif;*/ - /*font-size: x-large;*/ - font-size: 80%; -} - -div.navheader table { - border-left: 0em; - border-right: 0em; - border-top: 0em; - width: 100%; -} - -div.navfooter table { - border-left: 0em; - border-right: 0em; - border-bottom: 0em; - width: 100%; -} - -div.navheader table td a, -div.navfooter table td a { - color: #777; - text-decoration: none; -} - -/* normal text in the footer */ -div.navfooter table td { - color: black; -} - -div.navheader table td a:visited, -div.navfooter table td a:visited { - color: #444; -} - - -/* links in header and footer */ -div.navheader table td a:hover, -div.navfooter table td a:hover { - text-decoration: underline; - background-color: transparent; - color: #33a; -} - -div.navheader hr, -div.navfooter hr { - display: none; -} - - -.qandaset tr.question td p { - margin: 0em 0em 1em 0em; - padding: 0em 0em 0em 0em; -} - -.qandaset tr.answer td p { - margin: 0em 0em 1em 0em; - padding: 0em 0em 0em 0em; -} -.answer td { - padding-bottom: 1.5em; -} - -.emphasis { - font-weight: bold; -} - - - /************* / - / decorations / -/ *************/ - -.titlepage { -} - -.part .title { -} - -.subtitle { - border: none; -} - -/* -h1 { - border: none; -} - -h2 { - border-top: solid 0.2em; - border-bottom: solid 0.06em; -} - -h3 { - border-top: 0em; - border-bottom: solid 0.06em; -} - -h4 { - border: 0em; - border-bottom: solid 0.06em; -} - -h5 { - border: 0em; -} -*/ - -.programlisting { - border: solid 1px; -} - -div.figure, -div.table, -div.informalfigure, -div.informaltable, -div.informalexample, -div.example { - border: 1px solid; -} - - - -.tip, -.warning, -.caution, -.note { - border: 1px solid; -} - -.tip table th, -.warning table th, -.caution table th, -.note table th { - border-bottom: 1px solid; -} - -.question td { - border-top: 1px solid black; -} - -.answer { -} - - -b.keycap, -.keycap { - border: 1px solid; -} - - -div.navheader, div.heading{ - border-bottom: 1px solid; -} - - -div.navfooter, div.footing{ - border-top: 1px solid; -} - - /********* / - / colors / -/ *********/ - -body { - color: #333; - background: white; -} - -a { - background: transparent; -} - -a:hover { - background-color: #dedede; -} - - -h1, -h2, -h3, -h4, -h5, -h6, -h7, -h8 { - background-color: transparent; -} - -hr { - border-color: #aaa; -} - - -.tip, .warning, .caution, .note { - border-color: #fff; -} - - -.tip table th, -.warning table th, -.caution table th, -.note table th { - border-bottom-color: #fff; -} - - -.warning { - background-color: #f0f0f2; -} - -.caution { - background-color: #f0f0f2; -} - -.tip { - background-color: #f0f0f2; -} - -.note { - background-color: #f0f0f2; -} - -.glossary dl dt, -.variablelist dl dt, -.variablelist dl dt span.term { - color: #044; -} - -div.figure, -div.table, -div.example, -div.informalfigure, -div.informaltable, -div.informalexample { - border-color: #aaa; -} - -pre.programlisting { - color: black; - background-color: #fff; - border-color: #aaa; - border-width: 2px; -} - -.guimenu, -.guilabel, -.guimenuitem { - background-color: #eee; -} - - -b.keycap, -.keycap { - background-color: #eee; - border-color: #999; -} - - -div.navheader { - border-color: black; -} - - -div.navfooter { - border-color: black; -} - - - /*********** / - / graphics / -/ ***********/ - -/* -body { - background-image: url("images/body_bg.jpg"); - background-attachment: fixed; -} - -.navheader, -.note, -.tip { - background-image: url("images/note_bg.jpg"); - background-attachment: fixed; -} - -.warning, -.caution { - background-image: url("images/warning_bg.jpg"); - background-attachment: fixed; -} - -.figure, -.informalfigure, -.example, -.informalexample, -.table, -.informaltable { - background-image: url("images/figure_bg.jpg"); - background-attachment: fixed; -} - -*/ -h1, -h2, -h3, -h4, -h5, -h6, -h7{ -} - -/* -Example of how to stick an image as part of the title. - -div.article .titlepage .title -{ - background-image: url("figures/white-on-black.png"); - background-position: center; - background-repeat: repeat-x; -} -*/ - -div.preface .titlepage .title, -div.colophon .title, -div.chapter .titlepage .title, -div.article .titlepage .title -{ -} - -div.section div.section .titlepage .title, -div.sect2 .titlepage .title { - background: none; -} - - -h1.title { - background-color: transparent; - background-repeat: no-repeat; - height: 256px; - text-indent: -9000px; - overflow:hidden; -} - -h2.subtitle { - background-color: transparent; - text-indent: -9000px; - overflow:hidden; - width: 0px; - display: none; -} - - /*************************************** / - / pippin.gimp.org specific alterations / -/ ***************************************/ - -/* -div.heading, div.navheader { - color: #777; - font-size: 80%; - padding: 0; - margin: 0; - text-align: left; - position: absolute; - top: 0px; - left: 0px; - width: 100%; - height: 50px; - background: url('/gfx/heading_bg.png') transparent; - background-repeat: repeat-x; - background-attachment: fixed; - border: none; -} - -div.heading a { - color: #444; -} - -div.footing, div.navfooter { - border: none; - color: #ddd; - font-size: 80%; - text-align:right; - - width: 100%; - padding-top: 10px; - position: absolute; - bottom: 0px; - left: 0px; - - background: url('/gfx/footing_bg.png') transparent; -} -*/ - - - - /****************** / - / nasty ie tweaks / -/ ******************/ - -/* -div.heading, div.navheader { - width:expression(document.body.clientWidth + "px"); -} - -div.footing, div.navfooter { - width:expression(document.body.clientWidth + "px"); - margin-left:expression("-5em"); -} -body { - padding:expression("4em 5em 0em 5em"); -} -*/ - - /**************************************** / - / mozilla vendor specific css extensions / -/ ****************************************/ -/* -div.navfooter, div.footing{ - -moz-opacity: 0.8em; -} - -div.figure, -div.table, -div.informalfigure, -div.informaltable, -div.informalexample, -div.example, -.tip, -.warning, -.caution, -.note { - -moz-border-radius: 0.5em; -} - -b.keycap, -.keycap { - -moz-border-radius: 0.3em; -} -*/ - -table tr td table tr td { - display: none; -} - - -hr { - display: none; -} - -table { - border: 0em; -} - - .photo { - float: right; - margin-left: 1.5em; - margin-bottom: 1.5em; - margin-top: 0em; - max-width: 17em; - border: 1px solid gray; - padding: 3px; - background: white; -} - .seperator { - padding-top: 2em; - clear: both; - } - - #validators { - margin-top: 5em; - text-align: right; - color: #777; - } - @media print { - body { - font-size: 8pt; - } - .noprint { - display: none; - } - } - - -.tip, -.note { - background: #f0f0f2; - color: #333; - padding: 20px; - margin: 20px; -} - -.tip h3, -.note h3 { - padding: 0em; - margin: 0em; - font-size: 2em; - font-weight: bold; - color: #333; -} - -.tip a, -.note a { - color: #333; - text-decoration: underline; -} - -.footnote { - font-size: small; - color: #333; -} - -/* Changes the announcement text */ -.tip h3, -.warning h3, -.caution h3, -.note h3 { - font-size:large; - color: #00557D; -} diff --git a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual.xml b/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual.xml deleted file mode 100644 index 4aef4e7..0000000 --- a/poky/bitbake/doc/bitbake-user-manual/bitbake-user-manual.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - BitBake User Manual - - - - - Richard Purdie, Chris Larson, and Phil Blundell - - BitBake Community - - bitbake-devel@lists.openembedded.org - - - - - - - 2004-2016 - Richard Purdie - Chris Larson - and Phil Blundell - - - - - This work is licensed under the Creative Commons Attribution License. - To view a copy of this license, visit - http://creativecommons.org/licenses/by/2.5/ - or send a letter to Creative Commons, 444 Castro Street, - Suite 900, Mountain View, California 94041, USA. - - - - - - - - - - - - - - - - - diff --git a/poky/bitbake/doc/bitbake-user-manual/figures/bitbake-title.png b/poky/bitbake/doc/bitbake-user-manual/figures/bitbake-title.png deleted file mode 100644 index cb290154da9ce02af38238a6c865515b8c41a118..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5086 zcmeHL`8!no`=2I-7>2PW*@YxwG*8*HWMs(Jpt6%=kHG+Pe%iHg%S+Gck4zyu5W6^)?9cw6j3HyX`*xQ=AW#6AX<6F^PhX zv0&&-8W{RH`(uAwS|Bi#dJ?4r{k{18g)jIRoWyF|d6MP7Z~Eb#|7>K~(oikR^Y40| z|2;|zgwkREcjIqV{{`pY%=!OX9UAV~ql4WCng@exKPo5bb8B`-%agLL1(?0KR+GKS zZTXIqxPst(GS%e4e)pJG_JkC)&MFA#f1Rw}RKpw{H0rUWRY?(jd{o&=zjw(5c3iz_ z`0Y=Zd(%rTD;CcLm_*mDq0}-!mkC4t$)9aINu#H<9TNLyU-FE|LTDOu52Cxo(<9cm z6yhL8nwcRVw_RIS{gNcBngZUPY#B?@mbM}bmynjfX4>3;sSQ1vo(qjZc=LYFb`5rR z+F}KdrP+4Lu&6z4Z^8j7Yjy|pKEml?6_O8~isnVWgC`p++%iRI7X#j4OkO=R_8f;; z@liiK86;rjV{XQ|*c1U-11)1` zW@?8=vjkt>ECPNuaHIU=gx4N{nA9G=#Bn`ywB5LvHDye;pp-!V>}oak2SPb%u5Mx~GV;UIoHfS5>pCG3~i9t1s|t zq{Z0UIBGOJIm64SRhzO%Ga#a#&kacgZ-||fh;H2~w%d`r$@|%dzUZ(T4`NVB9n5MN zp1EdK-B>Np`ay)&l11CKrPS>BL2L*+bSb&FI4+1}ud`o4GJA;v(sVN`nE1*JzeF0= zWDaWhpouK-;@DiE{#9=XAHU8oBJ}k1sjFNKUSmwN`O@C(X4+LPRZ40ac=U_PFZyixHs@ZKD#}FAB9ju+i zBWoG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2ze>@4o0X&=qrN6pWsAC4Mx*dsa@ih>!B7T=CwOcXS798h_~CO-b&_cI#xFP# z1Nxn8r3fDNsY%;x+<@TZnuFK)LfdlbH0mINav!{2dLgt`=QJ0CO1QuZC4g-V3*~=P zq3`~Zk+?mfmagYw|4c@pRZNU264U<%PXE_*^24L!JG}eCFDh-d7&AE#QqNeo;+lQb Fe*l}Pa$^7h diff --git a/poky/bitbake/doc/bitbake-user-manual/html.css b/poky/bitbake/doc/bitbake-user-manual/html.css deleted file mode 100644 index 6eedfd3..0000000 --- a/poky/bitbake/doc/bitbake-user-manual/html.css +++ /dev/null @@ -1,281 +0,0 @@ -/* Feuille de style DocBook du projet Traduc.org */ -/* DocBook CSS stylesheet of the Traduc.org project */ - -/* (c) Jean-Philippe Guérard - 14 août 2004 */ -/* (c) Jean-Philippe Guérard - 14 August 2004 */ - -/* Cette feuille de style est libre, vous pouvez la */ -/* redistribuer et la modifier selon les termes de la Licence */ -/* Art Libre. Vous trouverez un exemplaire de cette Licence sur */ -/* http://tigreraye.org/Petit-guide-du-traducteur.html#licence-art-libre */ - -/* This work of art is free, you can redistribute it and/or */ -/* modify it according to terms of the Free Art license. You */ -/* will find a specimen of this license on the Copyleft */ -/* Attitude web site: http://artlibre.org as well as on other */ -/* sites. */ -/* Please note that the French version of this licence as shown */ -/* on http://tigreraye.org/Petit-guide-du-traducteur.html#licence-art-libre */ -/* is only official licence of this document. The English */ -/* is only provided to help you understand this licence. */ - -/* La dernière version de cette feuille de style est toujours */ -/* disponible sur : http://tigreraye.org/style.css */ -/* Elle est également disponible sur : */ -/* http://www.traduc.org/docs/HOWTO/lecture/style.css */ - -/* The latest version of this stylesheet is available from: */ -/* http://tigreraye.org/style.css */ -/* It is also available on: */ -/* http://www.traduc.org/docs/HOWTO/lecture/style.css */ - -/* N'hésitez pas à envoyer vos commentaires et corrections à */ -/* Jean-Philippe Guérard */ - -/* Please send feedback and bug reports to */ -/* Jean-Philippe Guérard */ - -/* $Id: style.css,v 1.14 2004/09/10 20:12:09 fevrier Exp fevrier $ */ - -/* Présentation générale du document */ -/* Overall document presentation */ - -body { - /* - font-family: Apolline, "URW Palladio L", Garamond, jGaramond, - "Bitstream Cyberbit", "Palatino Linotype", serif; - */ - margin: 7%; - background-color: white; -} - -/* Taille du texte */ -/* Text size */ - -* { font-size: 100%; } - -/* Gestion des textes mis en relief imbriqués */ -/* Embedded emphasis */ - -em { font-style: italic; } -em em { font-style: normal; } -em em em { font-style: italic; } - -/* Titres */ -/* Titles */ - -h1 { font-size: 200%; font-weight: 900; } -h2 { font-size: 160%; font-weight: 900; } -h3 { font-size: 130%; font-weight: bold; } -h4 { font-size: 115%; font-weight: bold; } -h5 { font-size: 108%; font-weight: bold; } -h6 { font-weight: bold; } - -/* Nom de famille en petites majuscules (uniquement en français) */ -/* Last names in small caps (for French only) */ - -*[class~="surname"]:lang(fr) { font-variant: small-caps; } - -/* Blocs de citation */ -/* Quotation blocs */ - -div[class~="blockquote"] { - border: solid 2px #AAA; - padding: 5px; - margin: 5px; -} - -div[class~="blockquote"] > table { - border: none; -} - -/* Blocs litéraux : fond gris clair */ -/* Literal blocs: light gray background */ - -*[class~="literallayout"] { - background: #f0f0f0; - padding: 5px; - margin: 5px; -} - -/* Programmes et captures texte : fond bleu clair */ -/* Listing and text screen snapshots: light blue background */ - -*[class~="programlisting"], *[class~="screen"] { - background: #f0f0ff; - padding: 5px; - margin: 5px; -} - -/* Les textes à remplacer sont surlignés en vert pâle */ -/* Replaceable text in highlighted in pale green */ - -*[class~="replaceable"] { - background-color: #98fb98; - font-style: normal; } - -/* Tables : fonds gris clair & bords simples */ -/* Tables: light gray background and solid borders */ - -*[class~="table"] *[class~="title"] { width:100%; border: 0px; } - -table { - border: 1px solid #aaa; - border-collapse: collapse; - padding: 2px; - margin: 5px; -} - -/* Listes simples en style table */ -/* Simples lists in table presentation */ - -table[class~="simplelist"] { - background-color: #F0F0F0; - margin: 5px; - border: solid 1px #AAA; -} - -table[class~="simplelist"] td { - border: solid 1px #AAA; -} - -/* Les tables */ -/* Tables */ - -*[class~="table"] table { - background-color: #F0F0F0; - border: solid 1px #AAA; -} -*[class~="informaltable"] table { background-color: #F0F0F0; } - -th,td { - vertical-align: baseline; - text-align: left; - padding: 0.1em 0.3em; - empty-cells: show; -} - -/* Alignement des colonnes */ -/* Colunms alignment */ - -td[align=center] , th[align=center] { text-align: center; } -td[align=right] , th[align=right] { text-align: right; } -td[align=left] , th[align=left] { text-align: left; } -td[align=justify] , th[align=justify] { text-align: justify; } - -/* Pas de marge autour des images */ -/* No inside margins for images */ - -img { border: 0; } - -/* Les liens ne sont pas soulignés */ -/* No underlines for links */ - -:link , :visited , :active { text-decoration: none; } - -/* Prudence : cadre jaune et fond jaune clair */ -/* Caution: yellow border and light yellow background */ - -*[class~="caution"] { - border: solid 2px yellow; - background-color: #ffffe0; - padding: 1em 6px 1em ; - margin: 5px; -} - -*[class~="caution"] th { - vertical-align: middle -} - -*[class~="caution"] table { - background-color: #ffffe0; - border: none; -} - -/* Note importante : cadre jaune et fond jaune clair */ -/* Important: yellow border and light yellow background */ - -*[class~="important"] { - border: solid 2px yellow; - background-color: #ffffe0; - padding: 1em 6px 1em; - margin: 5px; -} - -*[class~="important"] th { - vertical-align: middle -} - -*[class~="important"] table { - background-color: #ffffe0; - border: none; -} - -/* Mise en évidence : texte légèrement plus grand */ -/* Highlights: slightly larger texts */ - -*[class~="highlights"] { - font-size: 110%; -} - -/* Note : cadre bleu et fond bleu clair */ -/* Notes: blue border and light blue background */ - -*[class~="note"] { - border: solid 2px #7099C5; - background-color: #f0f0ff; - padding: 1em 6px 1em ; - margin: 5px; -} - -*[class~="note"] th { - vertical-align: middle -} - -*[class~="note"] table { - background-color: #f0f0ff; - border: none; -} - -/* Astuce : cadre vert et fond vert clair */ -/* Tip: green border and light green background */ - -*[class~="tip"] { - border: solid 2px #00ff00; - background-color: #f0ffff; - padding: 1em 6px 1em ; - margin: 5px; -} - -*[class~="tip"] th { - vertical-align: middle; -} - -*[class~="tip"] table { - background-color: #f0ffff; - border: none; -} - -/* Avertissement : cadre rouge et fond rouge clair */ -/* Warning: red border and light red background */ - -*[class~="warning"] { - border: solid 2px #ff0000; - background-color: #fff0f0; - padding: 1em 6px 1em ; - margin: 5px; -} - -*[class~="warning"] th { - vertical-align: middle; -} - - -*[class~="warning"] table { - background-color: #fff0f0; - border: none; -} - -/* Fin */ -/* The End */ - diff --git a/poky/bitbake/doc/bitbake.1 b/poky/bitbake/doc/bitbake.1 deleted file mode 100644 index 7fc1652..0000000 --- a/poky/bitbake/doc/bitbake.1 +++ /dev/null @@ -1,142 +0,0 @@ -.\" Hey, EMACS: -*- nroff -*- -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH BITBAKE 1 "November 19, 2006" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NAME -BitBake \- simple tool for the execution of tasks -.SH SYNOPSIS -.B bitbake -.RI [ options ] " packagenames" -.br -.SH DESCRIPTION -This manual page documents briefly the -.B bitbake -command. -.PP -.\" TeX users may be more comfortable with the \fB\fP and -.\" \fI\fP escape sequences to invode bold face and italics, -.\" respectively. -\fBbitbake\fP is a program that executes the specified task (default is 'build') -for a given set of BitBake files. -.br -It expects that BBFILES is defined, which is a space separated list of files to -be executed. BBFILES does support wildcards. -.br -Default BBFILES are the .bb files in the current directory. -.SH OPTIONS -This program follow the usual GNU command line syntax, with long -options starting with two dashes (`-'). -.TP -.B \-h, \-\-help -Show summary of options. -.TP -.B \-\-version -Show version of program. -.TP -.B \-bBUILDFILE, \-\-buildfile=BUILDFILE -execute the task against this .bb file, rather than a package from BBFILES. -.TP -.B \-k, \-\-continue -continue as much as possible after an error. While the target that failed, and -those that depend on it, cannot be remade, the other dependencies of these -targets can be processed all the same. -.TP -.B \-a, \-\-tryaltconfigs -continue with builds by trying to use alternative providers where possible. -.TP -.B \-f, \-\-force -force run of specified cmd, regardless of stamp status -.TP -.B \-i, \-\-interactive -drop into the interactive mode also called the BitBake shell. -.TP -.B \-cCMD, \-\-cmd=CMD -Specify task to execute. Note that this only executes the specified task for -the providee and the packages it depends on, i.e. 'compile' does not implicitly -call stage for the dependencies (IOW: use only if you know what you are doing). -Depending on the base.bbclass a listtasks task is defined and will show -available tasks. -.TP -.B \-rFILE, \-\-read=FILE -read the specified file before bitbake.conf -.TP -.B \-v, \-\-verbose -output more chit-chat to the terminal -.TP -.B \-D, \-\-debug -Increase the debug level. You can specify this more than once. -.TP -.B \-n, \-\-dry-run -don't execute, just go through the motions -.TP -.B \-p, \-\-parse-only -quit after parsing the BB files (developers only) -.TP -.B \-s, \-\-show-versions -show current and preferred versions of all packages -.TP -.B \-e, \-\-environment -show the global or per-recipe environment (this is what used to be bbread) -.TP -.B \-g, \-\-graphviz -emit the dependency trees of the specified packages in the dot syntax -.TP -.B \-IIGNORED\_DOT\_DEPS, \-\-ignore-deps=IGNORED_DOT_DEPS -Stop processing at the given list of dependencies when generating dependency -graphs. This can help to make the graph more appealing -.TP -.B \-lDEBUG_DOMAINS, \-\-log-domains=DEBUG_DOMAINS -Show debug logging for the specified logging domains -.TP -.B \-P, \-\-profile -profile the command and print a report -.TP -.B \-uUI, \-\-ui=UI -User interface to use. Currently, knotty, taskexp or ncurses can be specified as UI. -.TP -.B \-tSERVERTYPE, \-\-servertype=SERVERTYPE -Choose which server to use, none, process or xmlrpc. -.TP -.B \-\-revisions-changed -Set the exit code depending on whether upstream floating revisions have changed or not. -.TP -.B \-\-server-only -Run bitbake without UI, the frontend can connect with bitbake server itself. -.TP -.B \-BBIND, \-\-bind=BIND -The name/address for the bitbake server to bind to. -.TP -.B \-\-no\-setscene -Do not run any setscene tasks, forces builds. - -.SH ENVIRONMENT VARIABLES -bitbake uses the following environment variables to control its -operation: -.TP -.B BITBAKE_UI -The bitbake user interface; overridden by the \fB-u\fP commandline option. - -.SH AUTHORS -BitBake was written by -Phil Blundell, -Holger Freyther, -Chris Larson, -Mickey Lauer, -Richard Purdie, -Holger Schurig -.PP -This manual page was written by Marcin Juszkiewicz -for the Debian project (but may be used by others). diff --git a/poky/bitbake/doc/poky.ent b/poky/bitbake/doc/poky.ent deleted file mode 100644 index c032e14..0000000 --- a/poky/bitbake/doc/poky.ent +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/poky/bitbake/doc/template/Vera.ttf b/poky/bitbake/doc/template/Vera.ttf deleted file mode 100644 index 58cd6b5e61eff273e920942e28041f8ddcf1e1b5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 65932 zcmdSC33yaR)<0Zz>)zY@nsoN1vlF(2gndgBNFXdBLRb|{$O1t~ViMNKut@^41ca~) zQ2_xF5g81KJAw$z=m0v5IF5?TyfVl*%#1>E`Ty$P?kuP?@AEzX?|Ht@raQN5JzJe~ z>eQ*0P(p|UA0n}j9-EYM?BUx5gnU@tBt8%AS5MEcEGIg=C>@6H=IOH*6q~CC z{T}r<2zlZ+GYV(V?|v)FN(jCZ*RUBy`Guc8{>%qxpNoQ?Gf-g9(3fHUk@y}vV|LYi z!V;FBa=Wf%KNM%$>as^vz}P>v%JqH5@cBJ zeYP0Whxb`W@{IrV zKI=(XNTv7LM3Tdv_C8yj@y6=GW#tPhN~X`Ka(5_5bf+XIr@E&taHp44RaR9L<K-&}mU|3uRp}m6R9RFpx2UjdOB?t2qKbU?*!u4R!KooDG==toyl87Ct|QdcYbAM zSwTrY=5rU870j7kR9cl^#o;L~nN?Kj?!ZS>JGjS|6<5v6uPBO6R3U-jR+JUaDJW8h zDJ%g?N~X=JDpFzKGqiN*>@F!Sm^G)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doc/template/VeraMoBd.ttf b/poky/bitbake/doc/template/VeraMoBd.ttf deleted file mode 100644 index 9be6547ed61cbea68f354fc49651bc3645c822fa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 49052 zcmd4434B!5`9FNlJ@?L@%#zGxPiC?b60(O7)(Lwcgct$>0+KxuvXBLch=7QQh~S3S zDpEv5rIu2pxD>EPt#zvvYpq!2CswO5T1%~Ba(Tbcy)y({`s@Gwyzl3Inas?cd(VB& zbDrlp&vu@3VVp7Mz=zD(>^a$ak8k;^ld*@_ecP?|0u7Z{aCd3wpO>)zm@JW z05=@SsY2Fby4l#$ZwM;NB zo6&!ld4J%Tvm8ro;8!ZESf=z9X^ ztt=<@cY)&&SE^;tq_*~+j^@UuF7L3~bZ=fxPQJIM$2+mPtFx=4zPcsTTiRNi+7;EwDHcX@2K|9sc!A`&T4CI^Gbm-t>W*dJwubKxBE%A6si^O0Y3}T7 zZfo_TeN%l$JqFv@QQg{AUzh1^=%}x!8*7`YI~waVyee1_dwoYIZfL9Ns%~y= zZf!(AwV)cc>}sm_Hng>ZEY-EOZ7uC+P7S)60DXCLZG9_9Ff4H@wMa|{usUybXJ=b& zb2a+&*0t4kx74?GRd*3S4b98zJH5jQqIQFKPFq9Qs_KsV#B>c4NO4D7U3YE02BxkV z{AsS~?yA>tpdK#Vkm+r1tzF(-N0_W??rLi5?gBC`&4G@n2aV&MG{Ejo43vhG>20ak zM%~_Bv%I;pDbqXDM<(@|-PYmltcM_=bu&;64F5Y_(-;93G((30(rF#7YHDlwKCZ-u zhVG75bO?&z#=16dXIrMXv%BW1`r0l!qtkf#^0rkppxU<9x@IC+=V)SR6$VpX)3&l+ z8-p&$8VVN#p|!0Gi~xfOG2)Acnl1zSHE(BAHHKAFAD|l$X>Rq>siBd!wL&sFye(}V znuHKemkiw7)zeqhVf@ocOy`{Q`dT42@Yi?*JVXI!=1@XfHz*g7QX`|QZOr5t^ zcL3||<<%Y9@ayV3n;S8`Kyql;_9h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%%6-FpRlaGyhkZ}@miu1!HTd51?e`t_ z{oVJYAFDt41eO$_@{8 zc&WqpdHH$M@)qR1o_8pJPX3em&*!hse=Glw`Jd!}ng4D6g#un+FYpy)6%-eg6-+32 zwlJsg?!wm!KQGEC8dkKVXlKz69kV*l==ey-MIB%0xTfQW#qQ#lihozUrTBkJZZ8>8 z@@&a_K`A&YI5k)oTpD~ixGwmI;GW=T!IQ!7gO@v*I#qT0Ri`CbRlZN>nl6qmUAjEf zWmlIAT?@M2-L;yi6zEca(4rooN?5}gG{OY!V1sf==o2_^nye-e2WdRqcu6_jny%q$ zj=0fnplFJrm$DzLIh1L8X%M?8jWE;_1$i15N>=K_nhBj&qp(?@{CwT*{97PMzx2ciYqHhlzG zywk~?ZJRy<%-1#^`dHAO`JBitstreamVeraSansMono-BoldBitstream Vera Sans Mono BoldBitstream Vera Sans Mono729546759-240-19-2356059283400TYPE0CIDFontType20 \ No newline at end of file diff --git a/poky/bitbake/doc/template/VeraMono.ttf b/poky/bitbake/doc/template/VeraMono.ttf deleted file mode 100644 index 139f0b4311ad2e0369a347b3be6c46e6c2b730d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 49224 zcmdqJdq7oH_Bg)x+2@@5e)71yxquf?c_Sig-y`84XoT{ zYwfkyK7lJhfpq z{r4HT|93*_U#lpsTJ>sT!a{(5oDi?c6=fx*?``~J1hh9p`_UC}L7&F1!F_;FhE-J6 zuhPEx02MvZiBa9)I@S>%O_S@`pz$E92_ux(K>zic zCtSyr#A$t8#~jgW>s`le$aQ|mu|RyZ_qf`KWVCj&>sUn=>ddZVH3{(B;X2llxParX zV}mtZ+cL3c#p>G1B^CAd$i>6$32||W_C>4h8I|>Q^|fUsRZ;ew>cuhk^ySO#h1jaj zURYLFR(oezY0N+y`^>W168rR$>N@+hn(CT?>v$Qj;>GB~nyQlO!m{OMC3R)?_?Y;( z|5e8Z?XUH0&<^yW^j%qJFR|CxmXwxNmDDb?*OdR90E5<`Ehww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k<+qw;pGQ9D+?i}TO*7=thQ_N#AyIi-q7P;Pu zHO1Z;yVh-YSGec9566v*`!aq&{Ob5{f-7N8!oGx~o{^phJaavddscZid0zGG_Z;_p z?D^XBv!}&t_QreDy~W;;x1V>A_a5(5?|knQ-nHH>-d)~zyr;aMdB00^B~~VGPrTx* z^KJEg;;-{Mh`e{E7KX^4|=O4o(iv3)Tf!2kV17f^P*+20smc8@yP+ z3#yW#D| zxBGLu#u9T$uacQ14W;F!6{Ukq$CcKUE-GD7y1w+!rF%;cmws6KWm%W9JIltEU2Gq0 zKe;@r{Fd_C@(;>??2y{w)()eD#9+bOug81$fzv zT$X9wqN_H{Y8*4*GR$bQwzmu;bGW;*m+oLoq%lzvycU39j71jZhZuX=&XN@EBXa3J zcIp(AmvjZI283hy8vS?LizAkVfSzshA8f?Jm$<=pMPngng;)IE~5}L!7 zmeQ7%aA{Hd{sjdLnTZV?Hn#&cl4);jY6~!ei`CuO)D~bSJ(MIjHnjzq`9^!FZ9#ix ziGrH<#-_Fav)*VAwJm6mmK2qdnBdz@Ek1 zVEDhWsV%?~>{u4(#-_Fa^W10;wJm7RywTAt`o^ZV04Y)_UVwZcgl7rax4wGevA^GK l>vW0v5lDb-?^_qviv2s|v@MNTdG!IPZ6CGvje*jesGp7Im diff --git a/poky/bitbake/doc/template/VeraMono.xml b/poky/bitbake/doc/template/VeraMono.xml deleted file mode 100644 index 3a0a866..0000000 --- a/poky/bitbake/doc/template/VeraMono.xml +++ /dev/null @@ -1 +0,0 @@ -BitstreamVeraSansMono-RomanBitstream Vera Sans MonoBitstream Vera Sans Mono729546759-240-4-2356059283400TYPE0CIDFontType20 \ No newline at end of file diff --git a/poky/bitbake/doc/template/component.title.xsl b/poky/bitbake/doc/template/component.title.xsl deleted file mode 100644 index faef043..0000000 --- a/poky/bitbake/doc/template/component.title.xsl +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - 6 - 5 - 4 - 3 - 2 - 1 - - - - title - - - - - - - - - - - - - - - diff --git a/poky/bitbake/doc/template/db-pdf.xsl b/poky/bitbake/doc/template/db-pdf.xsl deleted file mode 100644 index 3dd065a..0000000 --- a/poky/bitbake/doc/template/db-pdf.xsl +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - 1 10 1 - - - - - - 0.5pt - solid - #cccccc - - - - - - 0.5pt - solid - #cccccc - - - - - #cccccc - - - - #cccccc - - - - - - - - - - - - - diff --git a/poky/bitbake/doc/template/division.title.xsl b/poky/bitbake/doc/template/division.title.xsl deleted file mode 100644 index 9c843bc..0000000 --- a/poky/bitbake/doc/template/division.title.xsl +++ /dev/null @@ -1,25 +0,0 @@ - - - - - -

- title - - - - - - - - - - -

- - - diff --git a/poky/bitbake/doc/template/draft.png b/poky/bitbake/doc/template/draft.png deleted file mode 100644 index 53051a9dddd3a89b086af6aed145106f3f1f3a6c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 24847 zcmXtgc|6qL_x~)GN@zlqeT*%8b|WpuGFb}Qx5=82eG+0Om5FR)Ut3Jts9_KyQ<3aZ zVGxr-GPbg1>v!k<`F;DRNAq~SUiaK{&+2^pQaQ0&bm8}pj{E`!)7*t8Uk%yY-Rrel_{LO7%o6rrp?PN`!Zg$2AMN)E9r`a3$`FP?@ufH2(zpqwCk<6(fFNE<> zxt3Ow*}t+SsVpJbAALQ|N3MIaQK$p?@4F<53DK2kAg6nrvq=*f@A|H`Qf>iA@-*V$ zs-TmC_59!a6vr=-*PanmDhixAQNg^H6@PVJaP;PCS@f(|CD(r_EJ)3wa1!5fMZS6o zZ{PpZL&sVbDC7GTL-irZ;>%P@Fn9Ecxh&7PW16De*doY;MSZR3jZ08rph_cbp=7;y zzMA6O6NHzT)@JPbOPlD1;qHor_6$ed8@1EgrR-%TQP&{D>S*q^lyheONz{Np;Z+6B z>8Kv#D$Aym_*}&}B+|Nv?}FM7_TI0U4OGB*LW?O=)yBg-4M0zGM9M0mT%vqe7)9R7e3 z+b&|O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O^infgRMGWX{J(M(}J+n|_{i&@0Ywyb?N8phta3D=fl zT)LuA$t-M3Z8ata>;zmcgOM7OyR;X${|#y@d9O#aS)u>QOdL4tGR!keuH%S-BzS+_ z%Nh_4KrmIsKVG<~tyCU8%YxIAnRrqIPsI|@eHFo3Ix(T@_7%Y!iJY#>x6kJ>vJ`3+ zUF&YNeXy_Up7BBg|OC^8`tg?2x9s$z9!ih)gb=ey5X>C>4$J=dOHzH)TW{)l$RH#^(F?~kk4+0 z$w|gAOoXl+;C~dj!3Uu3#A3PG14{_Zk^=t+B>R`mL-Pk^RF($2zz`JK@`y#nLCSyr E4@T - - - true - - - true - - - ../template - ../template - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/poky/bitbake/doc/template/formal.object.heading.xsl b/poky/bitbake/doc/template/formal.object.heading.xsl deleted file mode 100644 index 4f3900d..0000000 --- a/poky/bitbake/doc/template/formal.object.heading.xsl +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - -

- - - - -

-
-
\ No newline at end of file diff --git a/poky/bitbake/doc/template/gloss-permalinks.xsl b/poky/bitbake/doc/template/gloss-permalinks.xsl deleted file mode 100644 index 6bf5811..0000000 --- a/poky/bitbake/doc/template/gloss-permalinks.xsl +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - diff --git a/poky/bitbake/doc/template/permalinks.xsl b/poky/bitbake/doc/template/permalinks.xsl deleted file mode 100644 index d2a1c14..0000000 --- a/poky/bitbake/doc/template/permalinks.xsl +++ /dev/null @@ -1,25 +0,0 @@ - - - - - ¶ - - - - - - - - - - - - - - - - - - diff --git a/poky/bitbake/doc/template/section.title.xsl b/poky/bitbake/doc/template/section.title.xsl deleted file mode 100644 index 5c6ff9a..0000000 --- a/poky/bitbake/doc/template/section.title.xsl +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - 1 - 2 - 3 - 4 - 5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/poky/bitbake/doc/template/titlepage.templates.xml b/poky/bitbake/doc/template/titlepage.templates.xml deleted file mode 100644 index 38ec11a..0000000 --- a/poky/bitbake/doc/template/titlepage.templates.xml +++ /dev/null @@ -1,1259 +0,0 @@ - - - - - - - - - - - - -]> - - - - - - - - - - - - - - - <subtitle param:node="ancestor-or-self::article[1]" - keep-with-next="always" - font-size="&hsize3;" - font-weight="bold" - space-after="0.8em"/> - - <corpauthor space-before="0.5em" - font-size="&hsize3;"/> - <authorgroup space-before="0.5em" - font-size="&hsize2;"/> - <author space-before="0.5em" - font-size="&hsize2;" - space-after="0.8em"/> - - <email font-size="&hsize2;"/> - - <othercredit space-before="0.5em"/> - <releaseinfo space-before="0.5em"/> - <copyright space-before="0.5em"/> - <legalnotice text-align="start" - margin-left="0.5in" - margin-right="0.5in" - font-family="{$body.fontset}"/> - <pubdate space-before="0.5em"/> - <para></para> - <revision space-before="0.5em"/> - <revhistory space-before="0.5em"/> - <abstract space-before="0.5em" - text-align="start" - margin-left="0.5in" - margin-right="0.5in" - font-family="{$body.fontset}"/> - - <para></para> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="set" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:named-template="division.title" - param:node="ancestor-or-self::set[1]" - text-align="center" - font-size="&hsize5;" - space-before="&hsize5space;" - font-weight="bold" - font-family="{$title.fontset}"/> - <subtitle - font-family="{$title.fontset}" - text-align="center"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="book" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - - <mediaobject/> - -<!-- - -# If you leave this block of code in then the text title in the -# <title>BitBake User Manual statement of the -# bitbake-user-manual.xml file is rendered on the title page below the -# image. Commenting it out gets it out of there yet allows it -# to be retained in the tab text for the HTML version of the -# manual. - - ---> - <subtitle - text-align="center" - font-size="&hsize4;" - space-before="&hsize4space;" - font-family="{$title.fontset}"/> - <corpauthor font-size="&hsize3;" - keep-with-next="always" - space-before="2in"/> - <authorgroup space-before="2in"/> - <author font-size="&hsize3;" - space-before="&hsize2space;" - keep-with-next="always"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> -<!-- -# If you leave this block of code in then the text title in the -# <title>BitBake User Manual statement of the -# bitbake-user-manual.xml file is rendered on the title page below the -# image. Commenting it out gets it out of there yet allows it -# to be retained in the tab text for the HTML version of the -# manual. - - ---> - <corpauthor/> - <authorgroup t:named-template="verso.authorgroup"/> - <author/> - <othercredit/> - <pubdate space-before="1em"/> - <copyright/> - <abstract/> - <legalnotice font-size="8pt"/> - </t:titlepage-content> - - <t:titlepage-separator> - <fo:block break-after="page"/> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - <fo:block break-after="page"/> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="part" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:named-template="division.title" - param:node="ancestor-or-self::part[1]" - text-align="center" - font-size="&hsize5;" - space-before="&hsize5space;" - font-weight="bold" - font-family="{$title.fontset}"/> - <subtitle - text-align="center" - font-size="&hsize4;" - space-before="&hsize4space;" - font-weight='bold' - font-style='italic' - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="partintro" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - text-align="center" - font-size="&hsize5;" - font-weight="bold" - space-before="1em" - font-family="{$title.fontset}"/> - <subtitle - text-align="center" - font-size="&hsize2;" - font-weight="bold" - font-style="italic" - font-family="{$title.fontset}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="reference" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:named-template="division.title" - param:node="ancestor-or-self::reference[1]" - text-align="center" - font-size="&hsize5;" - space-before="&hsize5space;" - font-weight="bold" - font-family="{$title.fontset}"/> - <subtitle - font-family="{$title.fontset}" - text-align="center"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="refsynopsisdiv" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="refsection" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="refsect1" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="refsect2" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="refsect3" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="dedication" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::dedication[1]" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-family="{$title.fontset}" - font-weight="bold"/> - <subtitle - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="preface" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::preface[1]" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-family="{$title.fontset}" - font-weight="bold"/> - <subtitle - font-family="{$title.fontset}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="chapter" t:wrapper="fo:block" - font-family="{$title.fontset}"> - <t:titlepage-content t:side="recto" margin-left="{$title.margin.left}"> - <title t:named-template="component.title" - param:node="ancestor-or-self::chapter[1]" - font-size="&hsize5;" - font-weight="bold"/> - - <subtitle space-before="0.5em" - font-style="italic" - font-size="&hsize2;" - font-weight="bold"/> - - <corpauthor space-before="0.5em" - space-after="0.5em" - font-size="&hsize2;"/> - - <authorgroup space-before="0.5em" - space-after="0.5em" - font-size="&hsize2;"/> - - <author space-before="0.5em" - space-after="0.5em" - font-size="&hsize2;"/> - - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="appendix" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:named-template="component.title" - param:node="ancestor-or-self::appendix[1]" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-weight="bold" - font-family="{$title.fontset}"/> - <subtitle - font-family="{$title.fontset}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="section" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.fontset}"/> - <subtitle - font-family="{$title.fontset}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect1" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.fontset}"/> - <subtitle - font-family="{$title.fontset}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect2" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.fontset}"/> - <subtitle - font-family="{$title.fontset}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect3" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.fontset}"/> - <subtitle - font-family="{$title.fontset}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect4" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.fontset}"/> - <subtitle - font-family="{$title.fontset}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect5" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.fontset}"/> - <subtitle - font-family="{$title.fontset}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="simplesect" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.fontset}"/> - <subtitle - font-family="{$title.fontset}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="bibliography" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::bibliography[1]" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-family="{$title.fontset}" - font-weight="bold"/> - <subtitle - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="bibliodiv" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title t:named-template="component.title" - param:node="ancestor-or-self::bibliodiv[1]" - margin-left="{$title.margin.left}" - font-size="&hsize4;" - font-family="{$title.fontset}" - font-weight="bold"/> - <subtitle - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="glossary" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::glossary[1]" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-family="{$title.fontset}" - font-weight="bold"/> - <subtitle - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="glossdiv" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title t:named-template="component.title" - param:node="ancestor-or-self::glossdiv[1]" - margin-left="{$title.margin.left}" - font-size="&hsize4;" - font-family="{$title.fontset}" - font-weight="bold"/> - <subtitle - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="index" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::index[1]" - param:pagewide="1" - margin-left="0pt" - font-size="&hsize5;" - font-family="{$title.fontset}" - font-weight="bold"/> - <subtitle - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <!-- The indexdiv.title template is used so that manual and --> - <!-- automatically generated indexdiv titles get the same --> - <!-- formatting. --> - - <t:titlepage t:element="indexdiv" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title t:force="1" - t:named-template="indexdiv.title" - param:title="title"/> - <subtitle - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="setindex" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::setindex[1]" - param:pagewide="1" - margin-left="0pt" - font-size="&hsize5;" - font-family="{$title.fontset}" - font-weight="bold"/> - <subtitle - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="colophon" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::colophon[1]" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-family="{$title.fontset}" - font-weight="bold"/> - <subtitle - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="table.of.contents" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'TableofContents'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - - <t:titlepage t:element="list.of.tables" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'ListofTables'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - - <t:titlepage t:element="list.of.figures" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'ListofFigures'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - - <t:titlepage t:element="list.of.examples" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'ListofExamples'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - - <t:titlepage t:element="list.of.equations" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'ListofEquations'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - - <t:titlepage t:element="list.of.procedures" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'ListofProcedures'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - - <t:titlepage t:element="list.of.unknowns" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'ListofUnknown'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.fontset}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - -</t:templates> diff --git a/poky/bitbake/doc/tools/docbook-to-pdf b/poky/bitbake/doc/tools/docbook-to-pdf deleted file mode 100755 index 558ded9..0000000 --- a/poky/bitbake/doc/tools/docbook-to-pdf +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -if [ -z "$1" -o -z "$2" ]; then - echo "usage: [-v] $0 <docbook file> <templatedir>" - echo - echo "*NOTE* you need xsltproc, fop and nwalsh docbook stylesheets" - echo " installed for this to work!" - echo - exit 0 -fi - -FO=`echo $1 | sed s/.xml/.fo/` || exit 1 -PDF=`echo $1 | sed s/.xml/.pdf/` || exit 1 -TEMPLATEDIR=$2 - -## -# These URI should be rewritten by your distribution's xml catalog to -# match your localy installed XSL stylesheets. -XSL_BASE_URI="http://docbook.sourceforge.net/release/xsl/current" - -# Creates a temporary XSL stylesheet based on titlepage.xsl -xsltproc -o /tmp/titlepage.xsl \ - --xinclude \ - $XSL_BASE_URI/template/titlepage.xsl \ - $TEMPLATEDIR/titlepage.templates.xml || exit 1 - -# Creates the file needed for FOP -xsltproc --xinclude \ - --stringparam hyphenate false \ - --stringparam formal.title.placement "figure after" \ - --stringparam ulink.show 1 \ - --stringparam body.font.master 9 \ - --stringparam title.font.master 11 \ - --stringparam draft.watermark.image "$TEMPLATEDIR/draft.png" \ - --stringparam chapter.autolabel 1 \ - --stringparam appendix.autolabel A \ - --stringparam section.autolabel 1 \ - --stringparam section.label.includes.component.label 1 \ - --output $FO \ - $TEMPLATEDIR/db-pdf.xsl \ - $1 || exit 1 - -# Invokes the Java version of FOP. Uses the additional configuration file common/fop-config.xml -fop -c $TEMPLATEDIR/fop-config.xml -fo $FO -pdf $PDF || exit 1 - -rm -f $FO -rm -f /tmp/titlepage.xsl - -echo -echo " #### Success! $PDF ready. ####" -echo diff --git a/poky/bitbake/lib/bb/COW.py b/poky/bitbake/lib/bb/COW.py deleted file mode 100644 index bec6208..0000000 --- a/poky/bitbake/lib/bb/COW.py +++ /dev/null @@ -1,319 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# This is a copy on write dictionary and set which abuses classes to try and be nice and fast. -# -# Copyright (C) 2006 Tim Ansell -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -#Please Note: -# Be careful when using mutable types (ie Dict and Lists) - operations involving these are SLOW. -# Assign a file to __warn__ to get warnings about slow operations. -# - - -import copy -import types -ImmutableTypes = ( - bool, - complex, - float, - int, - tuple, - frozenset, - str -) - -MUTABLE = "__mutable__" - -class COWMeta(type): - pass - -class COWDictMeta(COWMeta): - __warn__ = False - __hasmutable__ = False - __marker__ = tuple() - - def __str__(cls): - # FIXME: I have magic numbers! - return "<COWDict Level: %i Current Keys: %i>" % (cls.__count__, len(cls.__dict__) - 3) - __repr__ = __str__ - - def cow(cls): - class C(cls): - __count__ = cls.__count__ + 1 - return C - copy = cow - __call__ = cow - - def __setitem__(cls, key, value): - if value is not None and not isinstance(value, ImmutableTypes): - if not isinstance(value, COWMeta): - cls.__hasmutable__ = True - key += MUTABLE - setattr(cls, key, value) - - def __getmutable__(cls, key, readonly=False): - nkey = key + MUTABLE - try: - return cls.__dict__[nkey] - except KeyError: - pass - - value = getattr(cls, nkey) - if readonly: - return value - - if not cls.__warn__ is False and not isinstance(value, COWMeta): - print("Warning: Doing a copy because %s is a mutable type." % key, file=cls.__warn__) - try: - value = value.copy() - except AttributeError as e: - value = copy.copy(value) - setattr(cls, nkey, value) - return value - - __getmarker__ = [] - def __getreadonly__(cls, key, default=__getmarker__): - """\ - Get a value (even if mutable) which you promise not to change. - """ - return cls.__getitem__(key, default, True) - - def __getitem__(cls, key, default=__getmarker__, readonly=False): - try: - try: - value = getattr(cls, key) - except AttributeError: - value = cls.__getmutable__(key, readonly) - - # This is for values which have been deleted - if value is cls.__marker__: - raise AttributeError("key %s does not exist." % key) - - return value - except AttributeError as e: - if not default is cls.__getmarker__: - return default - - raise KeyError(str(e)) - - def __delitem__(cls, key): - cls.__setitem__(key, cls.__marker__) - - def __revertitem__(cls, key): - if key not in cls.__dict__: - key += MUTABLE - delattr(cls, key) - - def __contains__(cls, key): - return cls.has_key(key) - - def has_key(cls, key): - value = cls.__getreadonly__(key, cls.__marker__) - if value is cls.__marker__: - return False - return True - - def iter(cls, type, readonly=False): - for key in dir(cls): - if key.startswith("__"): - continue - - if key.endswith(MUTABLE): - key = key[:-len(MUTABLE)] - - if type == "keys": - yield key - - try: - if readonly: - value = cls.__getreadonly__(key) - else: - value = cls[key] - except KeyError: - continue - - if type == "values": - yield value - if type == "items": - yield (key, value) - raise StopIteration() - - def iterkeys(cls): - return cls.iter("keys") - def itervalues(cls, readonly=False): - if not cls.__warn__ is False and cls.__hasmutable__ and readonly is False: - print("Warning: If you arn't going to change any of the values call with True.", file=cls.__warn__) - return cls.iter("values", readonly) - def iteritems(cls, readonly=False): - if not cls.__warn__ is False and cls.__hasmutable__ and readonly is False: - print("Warning: If you arn't going to change any of the values call with True.", file=cls.__warn__) - return cls.iter("items", readonly) - -class COWSetMeta(COWDictMeta): - def __str__(cls): - # FIXME: I have magic numbers! - return "<COWSet Level: %i Current Keys: %i>" % (cls.__count__, len(cls.__dict__) -3) - __repr__ = __str__ - - def cow(cls): - class C(cls): - __count__ = cls.__count__ + 1 - return C - - def add(cls, value): - COWDictMeta.__setitem__(cls, repr(hash(value)), value) - - def remove(cls, value): - COWDictMeta.__delitem__(cls, repr(hash(value))) - - def __in__(cls, value): - return repr(hash(value)) in COWDictMeta - - def iterkeys(cls): - raise TypeError("sets don't have keys") - - def iteritems(cls): - raise TypeError("sets don't have 'items'") - -# These are the actual classes you use! -class COWDictBase(object, metaclass = COWDictMeta): - __count__ = 0 - -class COWSetBase(object, metaclass = COWSetMeta): - __count__ = 0 - -if __name__ == "__main__": - import sys - COWDictBase.__warn__ = sys.stderr - a = COWDictBase() - print("a", a) - - a['a'] = 'a' - a['b'] = 'b' - a['dict'] = {} - - b = a.copy() - print("b", b) - b['c'] = 'b' - - print() - - print("a", a) - for x in a.iteritems(): - print(x) - print("--") - print("b", b) - for x in b.iteritems(): - print(x) - print() - - b['dict']['a'] = 'b' - b['a'] = 'c' - - print("a", a) - for x in a.iteritems(): - print(x) - print("--") - print("b", b) - for x in b.iteritems(): - print(x) - print() - - try: - b['dict2'] - except KeyError as e: - print("Okay!") - - a['set'] = COWSetBase() - a['set'].add("o1") - a['set'].add("o1") - a['set'].add("o2") - - print("a", a) - for x in a['set'].itervalues(): - print(x) - print("--") - print("b", b) - for x in b['set'].itervalues(): - print(x) - print() - - b['set'].add('o3') - - print("a", a) - for x in a['set'].itervalues(): - print(x) - print("--") - print("b", b) - for x in b['set'].itervalues(): - print(x) - print() - - a['set2'] = set() - a['set2'].add("o1") - a['set2'].add("o1") - a['set2'].add("o2") - - print("a", a) - for x in a.iteritems(): - print(x) - print("--") - print("b", b) - for x in b.iteritems(readonly=True): - print(x) - print() - - del b['b'] - try: - print(b['b']) - except KeyError: - print("Yay! deleted key raises error") - - if 'b' in b: - print("Boo!") - else: - print("Yay - has_key with delete works!") - - print("a", a) - for x in a.iteritems(): - print(x) - print("--") - print("b", b) - for x in b.iteritems(readonly=True): - print(x) - print() - - b.__revertitem__('b') - - print("a", a) - for x in a.iteritems(): - print(x) - print("--") - print("b", b) - for x in b.iteritems(readonly=True): - print(x) - print() - - b.__revertitem__('dict') - print("a", a) - for x in a.iteritems(): - print(x) - print("--") - print("b", b) - for x in b.iteritems(readonly=True): - print(x) - print() diff --git a/poky/bitbake/lib/bb/__init__.py b/poky/bitbake/lib/bb/__init__.py deleted file mode 100644 index cd2f157..0000000 --- a/poky/bitbake/lib/bb/__init__.py +++ /dev/null @@ -1,144 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# BitBake Build System Python Library -# -# Copyright (C) 2003 Holger Schurig -# Copyright (C) 2003, 2004 Chris Larson -# -# Based on Gentoo's portage.py. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -__version__ = "1.37.0" - -import sys -if sys.version_info < (3, 4, 0): - raise RuntimeError("Sorry, python 3.4.0 or later is required for this version of bitbake") - - -class BBHandledException(Exception): - """ - The big dilemma for generic bitbake code is what information to give the user - when an exception occurs. Any exception inheriting this base exception class - has already provided information to the user via some 'fired' message type such as - an explicitly fired event using bb.fire, or a bb.error message. If bitbake - encounters an exception derived from this class, no backtrace or other information - will be given to the user, its assumed the earlier event provided the relevant information. - """ - pass - -import os -import logging - - -class NullHandler(logging.Handler): - def emit(self, record): - pass - -Logger = logging.getLoggerClass() -class BBLogger(Logger): - def __init__(self, name): - if name.split(".")[0] == "BitBake": - self.debug = self.bbdebug - Logger.__init__(self, name) - - def bbdebug(self, level, msg, *args, **kwargs): - return self.log(logging.DEBUG - level + 1, msg, *args, **kwargs) - - def plain(self, msg, *args, **kwargs): - return self.log(logging.INFO + 1, msg, *args, **kwargs) - - def verbose(self, msg, *args, **kwargs): - return self.log(logging.INFO - 1, msg, *args, **kwargs) - -logging.raiseExceptions = False -logging.setLoggerClass(BBLogger) - -logger = logging.getLogger("BitBake") -logger.addHandler(NullHandler()) -logger.setLevel(logging.DEBUG - 2) - -mainlogger = logging.getLogger("BitBake.Main") - -# This has to be imported after the setLoggerClass, as the import of bb.msg -# can result in construction of the various loggers. -import bb.msg - -from bb import fetch2 as fetch -sys.modules['bb.fetch'] = sys.modules['bb.fetch2'] - -# Messaging convenience functions -def plain(*args): - mainlogger.plain(''.join(args)) - -def debug(lvl, *args): - if isinstance(lvl, str): - mainlogger.warning("Passed invalid debug level '%s' to bb.debug", lvl) - args = (lvl,) + args - lvl = 1 - mainlogger.debug(lvl, ''.join(args)) - -def note(*args): - mainlogger.info(''.join(args)) - -def warn(*args): - mainlogger.warning(''.join(args)) - -def error(*args, **kwargs): - mainlogger.error(''.join(args), extra=kwargs) - -def fatal(*args, **kwargs): - mainlogger.critical(''.join(args), extra=kwargs) - raise BBHandledException() - -def deprecated(func, name=None, advice=""): - """This is a decorator which can be used to mark functions - as deprecated. It will result in a warning being emitted - when the function is used.""" - import warnings - - if advice: - advice = ": %s" % advice - if name is None: - name = func.__name__ - - def newFunc(*args, **kwargs): - warnings.warn("Call to deprecated function %s%s." % (name, - advice), - category=DeprecationWarning, - stacklevel=2) - return func(*args, **kwargs) - newFunc.__name__ = func.__name__ - newFunc.__doc__ = func.__doc__ - newFunc.__dict__.update(func.__dict__) - return newFunc - -# For compatibility -def deprecate_import(current, modulename, fromlist, renames = None): - """Import objects from one module into another, wrapping them with a DeprecationWarning""" - import sys - - module = __import__(modulename, fromlist = fromlist) - for position, objname in enumerate(fromlist): - obj = getattr(module, objname) - newobj = deprecated(obj, "{0}.{1}".format(current, objname), - "Please use {0}.{1} instead".format(modulename, objname)) - if renames: - newname = renames[position] - else: - newname = objname - - setattr(sys.modules[current], newname, newobj) - diff --git a/poky/bitbake/lib/bb/build.py b/poky/bitbake/lib/bb/build.py deleted file mode 100644 index 0d0100a..0000000 --- a/poky/bitbake/lib/bb/build.py +++ /dev/null @@ -1,907 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# BitBake 'Build' implementation -# -# Core code for function execution and task handling in the -# BitBake build tools. -# -# Copyright (C) 2003, 2004 Chris Larson -# -# Based on Gentoo's portage.py. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -import os -import sys -import logging -import shlex -import glob -import time -import stat -import bb -import bb.msg -import bb.process -import bb.progress -from bb import data, event, utils - -bblogger = logging.getLogger('BitBake') -logger = logging.getLogger('BitBake.Build') - -NULL = open(os.devnull, 'r+') - -__mtime_cache = {} - -def cached_mtime_noerror(f): - if f not in __mtime_cache: - try: - __mtime_cache[f] = os.stat(f)[stat.ST_MTIME] - except OSError: - return 0 - return __mtime_cache[f] - -def reset_cache(): - global __mtime_cache - __mtime_cache = {} - -# When we execute a Python function, we'd like certain things -# in all namespaces, hence we add them to __builtins__. -# If we do not do this and use the exec globals, they will -# not be available to subfunctions. -if hasattr(__builtins__, '__setitem__'): - builtins = __builtins__ -else: - builtins = __builtins__.__dict__ - -builtins['bb'] = bb -builtins['os'] = os - -class FuncFailed(Exception): - def __init__(self, name = None, logfile = None): - self.logfile = logfile - self.name = name - if name: - self.msg = 'Function failed: %s' % name - else: - self.msg = "Function failed" - - def __str__(self): - if self.logfile and os.path.exists(self.logfile): - msg = ("%s (log file is located at %s)" % - (self.msg, self.logfile)) - else: - msg = self.msg - return msg - -class TaskBase(event.Event): - """Base class for task events""" - - def __init__(self, t, logfile, d): - self._task = t - self._package = d.getVar("PF") - self._mc = d.getVar("BB_CURRENT_MC") - self.taskfile = d.getVar("FILE") - self.taskname = self._task - self.logfile = logfile - self.time = time.time() - event.Event.__init__(self) - self._message = "recipe %s: task %s: %s" % (d.getVar("PF"), t, self.getDisplayName()) - - def getTask(self): - return self._task - - def setTask(self, task): - self._task = task - - def getDisplayName(self): - return bb.event.getName(self)[4:] - - task = property(getTask, setTask, None, "task property") - -class TaskStarted(TaskBase): - """Task execution started""" - def __init__(self, t, logfile, taskflags, d): - super(TaskStarted, self).__init__(t, logfile, d) - self.taskflags = taskflags - -class TaskSucceeded(TaskBase): - """Task execution completed""" - -class TaskFailed(TaskBase): - """Task execution failed""" - - def __init__(self, task, logfile, metadata, errprinted = False): - self.errprinted = errprinted - super(TaskFailed, self).__init__(task, logfile, metadata) - -class TaskFailedSilent(TaskBase): - """Task execution failed (silently)""" - def getDisplayName(self): - # Don't need to tell the user it was silent - return "Failed" - -class TaskInvalid(TaskBase): - - def __init__(self, task, metadata): - super(TaskInvalid, self).__init__(task, None, metadata) - self._message = "No such task '%s'" % task - -class TaskProgress(event.Event): - """ - Task made some progress that could be reported to the user, usually in - the form of a progress bar or similar. - NOTE: this class does not inherit from TaskBase since it doesn't need - to - it's fired within the task context itself, so we don't have any of - the context information that you do in the case of the other events. - The event PID can be used to determine which task it came from. - The progress value is normally 0-100, but can also be negative - indicating that progress has been made but we aren't able to determine - how much. - The rate is optional, this is simply an extra string to display to the - user if specified. - """ - def __init__(self, progress, rate=None): - self.progress = progress - self.rate = rate - event.Event.__init__(self) - - -class LogTee(object): - def __init__(self, logger, outfile): - self.outfile = outfile - self.logger = logger - self.name = self.outfile.name - - def write(self, string): - self.logger.plain(string) - self.outfile.write(string) - - def __enter__(self): - self.outfile.__enter__() - return self - - def __exit__(self, *excinfo): - self.outfile.__exit__(*excinfo) - - def __repr__(self): - return '<LogTee {0}>'.format(self.name) - def flush(self): - self.outfile.flush() - -# -# pythonexception allows the python exceptions generated to be raised -# as the real exceptions (not FuncFailed) and without a backtrace at the -# origin of the failure. -# -def exec_func(func, d, dirs = None, pythonexception=False): - """Execute a BB 'function'""" - - try: - oldcwd = os.getcwd() - except: - oldcwd = None - - flags = d.getVarFlags(func) - cleandirs = flags.get('cleandirs') if flags else None - if cleandirs: - for cdir in d.expand(cleandirs).split(): - bb.utils.remove(cdir, True) - bb.utils.mkdirhier(cdir) - - if flags and dirs is None: - dirs = flags.get('dirs') - if dirs: - dirs = d.expand(dirs).split() - - if dirs: - for adir in dirs: - bb.utils.mkdirhier(adir) - adir = dirs[-1] - else: - adir = None - - body = d.getVar(func, False) - if not body: - if body is None: - logger.warning("Function %s doesn't exist", func) - return - - ispython = flags.get('python') - - lockflag = flags.get('lockfiles') - if lockflag: - lockfiles = [f for f in d.expand(lockflag).split()] - else: - lockfiles = None - - tempdir = d.getVar('T') - - # or func allows items to be executed outside of the normal - # task set, such as buildhistory - task = d.getVar('BB_RUNTASK') or func - if task == func: - taskfunc = task - else: - taskfunc = "%s.%s" % (task, func) - - runfmt = d.getVar('BB_RUNFMT') or "run.{func}.{pid}" - runfn = runfmt.format(taskfunc=taskfunc, task=task, func=func, pid=os.getpid()) - runfile = os.path.join(tempdir, runfn) - bb.utils.mkdirhier(os.path.dirname(runfile)) - - # Setup the courtesy link to the runfn, only for tasks - # we create the link 'just' before the run script is created - # if we create it after, and if the run script fails, then the - # link won't be created as an exception would be fired. - if task == func: - runlink = os.path.join(tempdir, 'run.{0}'.format(task)) - if runlink: - bb.utils.remove(runlink) - - try: - os.symlink(runfn, runlink) - except OSError: - pass - - with bb.utils.fileslocked(lockfiles): - if ispython: - exec_func_python(func, d, runfile, cwd=adir, pythonexception=pythonexception) - else: - exec_func_shell(func, d, runfile, cwd=adir) - - try: - curcwd = os.getcwd() - except: - curcwd = None - - if oldcwd and curcwd != oldcwd: - try: - bb.warn("Task %s changed cwd to %s" % (func, curcwd)) - os.chdir(oldcwd) - except: - pass - -_functionfmt = """ -{function}(d) -""" -logformatter = bb.msg.BBLogFormatter("%(levelname)s: %(message)s") -def exec_func_python(func, d, runfile, cwd=None, pythonexception=False): - """Execute a python BB 'function'""" - - code = _functionfmt.format(function=func) - bb.utils.mkdirhier(os.path.dirname(runfile)) - with open(runfile, 'w') as script: - bb.data.emit_func_python(func, script, d) - - if cwd: - try: - olddir = os.getcwd() - except OSError as e: - bb.warn("%s: Cannot get cwd: %s" % (func, e)) - olddir = None - os.chdir(cwd) - - bb.debug(2, "Executing python function %s" % func) - - try: - text = "def %s(d):\n%s" % (func, d.getVar(func, False)) - fn = d.getVarFlag(func, "filename", False) - lineno = int(d.getVarFlag(func, "lineno", False)) - bb.methodpool.insert_method(func, text, fn, lineno - 1) - - comp = utils.better_compile(code, func, "exec_python_func() autogenerated") - utils.better_exec(comp, {"d": d}, code, "exec_python_func() autogenerated", pythonexception=pythonexception) - except (bb.parse.SkipRecipe, bb.build.FuncFailed): - raise - except: - if pythonexception: - raise - raise FuncFailed(func, None) - finally: - bb.debug(2, "Python function %s finished" % func) - - if cwd and olddir: - try: - os.chdir(olddir) - except OSError as e: - bb.warn("%s: Cannot restore cwd %s: %s" % (func, olddir, e)) - -def shell_trap_code(): - return '''#!/bin/sh\n -# Emit a useful diagnostic if something fails: -bb_exit_handler() { - ret=$? - case $ret in - 0) ;; - *) case $BASH_VERSION in - "") echo "WARNING: exit code $ret from a shell command.";; - *) echo "WARNING: ${BASH_SOURCE[0]}:${BASH_LINENO[0]} exit $ret from '$BASH_COMMAND'";; - esac - exit $ret - esac -} -trap 'bb_exit_handler' 0 -set -e -''' - -def exec_func_shell(func, d, runfile, cwd=None): - """Execute a shell function from the metadata - - Note on directory behavior. The 'dirs' varflag should contain a list - of the directories you need created prior to execution. The last - item in the list is where we will chdir/cd to. - """ - - # Don't let the emitted shell script override PWD - d.delVarFlag('PWD', 'export') - - with open(runfile, 'w') as script: - script.write(shell_trap_code()) - - bb.data.emit_func(func, script, d) - - if bb.msg.loggerVerboseLogs: - script.write("set -x\n") - if cwd: - script.write("cd '%s'\n" % cwd) - script.write("%s\n" % func) - script.write(''' -# cleanup -ret=$? -trap '' 0 -exit $ret -''') - - os.chmod(runfile, 0o775) - - cmd = runfile - if d.getVarFlag(func, 'fakeroot', False): - fakerootcmd = d.getVar('FAKEROOT') - if fakerootcmd: - cmd = [fakerootcmd, runfile] - - if bb.msg.loggerDefaultVerbose: - logfile = LogTee(logger, sys.stdout) - else: - logfile = sys.stdout - - progress = d.getVarFlag(func, 'progress') - if progress: - if progress == 'percent': - # Use default regex - logfile = bb.progress.BasicProgressHandler(d, outfile=logfile) - elif progress.startswith('percent:'): - # Use specified regex - logfile = bb.progress.BasicProgressHandler(d, regex=progress.split(':', 1)[1], outfile=logfile) - elif progress.startswith('outof:'): - # Use specified regex - logfile = bb.progress.OutOfProgressHandler(d, regex=progress.split(':', 1)[1], outfile=logfile) - else: - bb.warn('%s: invalid task progress varflag value "%s", ignoring' % (func, progress)) - - fifobuffer = bytearray() - def readfifo(data): - nonlocal fifobuffer - fifobuffer.extend(data) - while fifobuffer: - message, token, nextmsg = fifobuffer.partition(b"\00") - if token: - splitval = message.split(b' ', 1) - cmd = splitval[0].decode("utf-8") - if len(splitval) > 1: - value = splitval[1].decode("utf-8") - else: - value = '' - if cmd == 'bbplain': - bb.plain(value) - elif cmd == 'bbnote': - bb.note(value) - elif cmd == 'bbwarn': - bb.warn(value) - elif cmd == 'bberror': - bb.error(value) - elif cmd == 'bbfatal': - # The caller will call exit themselves, so bb.error() is - # what we want here rather than bb.fatal() - bb.error(value) - elif cmd == 'bbfatal_log': - bb.error(value, forcelog=True) - elif cmd == 'bbdebug': - splitval = value.split(' ', 1) - level = int(splitval[0]) - value = splitval[1] - bb.debug(level, value) - else: - bb.warn("Unrecognised command '%s' on FIFO" % cmd) - fifobuffer = nextmsg - else: - break - - tempdir = d.getVar('T') - fifopath = os.path.join(tempdir, 'fifo.%s' % os.getpid()) - if os.path.exists(fifopath): - os.unlink(fifopath) - os.mkfifo(fifopath) - with open(fifopath, 'r+b', buffering=0) as fifo: - try: - bb.debug(2, "Executing shell function %s" % func) - - try: - with open(os.devnull, 'r+') as stdin: - bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)]) - except bb.process.CmdError: - logfn = d.getVar('BB_LOGFILE') - raise FuncFailed(func, logfn) - finally: - os.unlink(fifopath) - - bb.debug(2, "Shell function %s finished" % func) - -def _task_data(fn, task, d): - localdata = bb.data.createCopy(d) - localdata.setVar('BB_FILENAME', fn) - localdata.setVar('BB_CURRENTTASK', task[3:]) - localdata.setVar('OVERRIDES', 'task-%s:%s' % - (task[3:].replace('_', '-'), d.getVar('OVERRIDES', False))) - localdata.finalize() - bb.data.expandKeys(localdata) - return localdata - -def _exec_task(fn, task, d, quieterr): - """Execute a BB 'task' - - Execution of a task involves a bit more setup than executing a function, - running it with its own local metadata, and with some useful variables set. - """ - if not d.getVarFlag(task, 'task', False): - event.fire(TaskInvalid(task, d), d) - logger.error("No such task: %s" % task) - return 1 - - logger.debug(1, "Executing task %s", task) - - localdata = _task_data(fn, task, d) - tempdir = localdata.getVar('T') - if not tempdir: - bb.fatal("T variable not set, unable to build") - - # Change nice level if we're asked to - nice = localdata.getVar("BB_TASK_NICE_LEVEL") - if nice: - curnice = os.nice(0) - nice = int(nice) - curnice - newnice = os.nice(nice) - logger.debug(1, "Renice to %s " % newnice) - ionice = localdata.getVar("BB_TASK_IONICE_LEVEL") - if ionice: - try: - cls, prio = ionice.split(".", 1) - bb.utils.ioprio_set(os.getpid(), int(cls), int(prio)) - except: - bb.warn("Invalid ionice level %s" % ionice) - - bb.utils.mkdirhier(tempdir) - - # Determine the logfile to generate - logfmt = localdata.getVar('BB_LOGFMT') or 'log.{task}.{pid}' - logbase = logfmt.format(task=task, pid=os.getpid()) - - # Document the order of the tasks... - logorder = os.path.join(tempdir, 'log.task_order') - try: - with open(logorder, 'a') as logorderfile: - logorderfile.write('{0} ({1}): {2}\n'.format(task, os.getpid(), logbase)) - except OSError: - logger.exception("Opening log file '%s'", logorder) - pass - - # Setup the courtesy link to the logfn - loglink = os.path.join(tempdir, 'log.{0}'.format(task)) - logfn = os.path.join(tempdir, logbase) - if loglink: - bb.utils.remove(loglink) - - try: - os.symlink(logbase, loglink) - except OSError: - pass - - prefuncs = localdata.getVarFlag(task, 'prefuncs', expand=True) - postfuncs = localdata.getVarFlag(task, 'postfuncs', expand=True) - - class ErrorCheckHandler(logging.Handler): - def __init__(self): - self.triggered = False - logging.Handler.__init__(self, logging.ERROR) - def emit(self, record): - if getattr(record, 'forcelog', False): - self.triggered = False - else: - self.triggered = True - - # Handle logfiles - si = open('/dev/null', 'r') - try: - bb.utils.mkdirhier(os.path.dirname(logfn)) - logfile = open(logfn, 'w') - except OSError: - logger.exception("Opening log file '%s'", logfn) - pass - - # Dup the existing fds so we dont lose them - osi = [os.dup(sys.stdin.fileno()), sys.stdin.fileno()] - oso = [os.dup(sys.stdout.fileno()), sys.stdout.fileno()] - ose = [os.dup(sys.stderr.fileno()), sys.stderr.fileno()] - - # Replace those fds with our own - os.dup2(si.fileno(), osi[1]) - os.dup2(logfile.fileno(), oso[1]) - os.dup2(logfile.fileno(), ose[1]) - - # Ensure Python logging goes to the logfile - handler = logging.StreamHandler(logfile) - handler.setFormatter(logformatter) - # Always enable full debug output into task logfiles - handler.setLevel(logging.DEBUG - 2) - bblogger.addHandler(handler) - - errchk = ErrorCheckHandler() - bblogger.addHandler(errchk) - - localdata.setVar('BB_LOGFILE', logfn) - localdata.setVar('BB_RUNTASK', task) - localdata.setVar('BB_TASK_LOGGER', bblogger) - - flags = localdata.getVarFlags(task) - - try: - try: - event.fire(TaskStarted(task, logfn, flags, localdata), localdata) - except (bb.BBHandledException, SystemExit): - return 1 - except FuncFailed as exc: - logger.error(str(exc)) - return 1 - - try: - for func in (prefuncs or '').split(): - exec_func(func, localdata) - exec_func(task, localdata) - for func in (postfuncs or '').split(): - exec_func(func, localdata) - except FuncFailed as exc: - if quieterr: - event.fire(TaskFailedSilent(task, logfn, localdata), localdata) - else: - errprinted = errchk.triggered - logger.error(str(exc)) - event.fire(TaskFailed(task, logfn, localdata, errprinted), localdata) - return 1 - except bb.BBHandledException: - event.fire(TaskFailed(task, logfn, localdata, True), localdata) - return 1 - finally: - sys.stdout.flush() - sys.stderr.flush() - - bblogger.removeHandler(handler) - - # Restore the backup fds - os.dup2(osi[0], osi[1]) - os.dup2(oso[0], oso[1]) - os.dup2(ose[0], ose[1]) - - # Close the backup fds - os.close(osi[0]) - os.close(oso[0]) - os.close(ose[0]) - si.close() - - logfile.close() - if os.path.exists(logfn) and os.path.getsize(logfn) == 0: - logger.debug(2, "Zero size logfn %s, removing", logfn) - bb.utils.remove(logfn) - bb.utils.remove(loglink) - event.fire(TaskSucceeded(task, logfn, localdata), localdata) - - if not localdata.getVarFlag(task, 'nostamp', False) and not localdata.getVarFlag(task, 'selfstamp', False): - make_stamp(task, localdata) - - return 0 - -def exec_task(fn, task, d, profile = False): - try: - quieterr = False - if d.getVarFlag(task, "quieterrors", False) is not None: - quieterr = True - - if profile: - profname = "profile-%s.log" % (d.getVar("PN") + "-" + task) - try: - import cProfile as profile - except: - import profile - prof = profile.Profile() - ret = profile.Profile.runcall(prof, _exec_task, fn, task, d, quieterr) - prof.dump_stats(profname) - bb.utils.process_profilelog(profname) - - return ret - else: - return _exec_task(fn, task, d, quieterr) - - except Exception: - from traceback import format_exc - if not quieterr: - logger.error("Build of %s failed" % (task)) - logger.error(format_exc()) - failedevent = TaskFailed(task, None, d, True) - event.fire(failedevent, d) - return 1 - -def stamp_internal(taskname, d, file_name, baseonly=False, noextra=False): - """ - Internal stamp helper function - Makes sure the stamp directory exists - Returns the stamp path+filename - - In the bitbake core, d can be a CacheData and file_name will be set. - When called in task context, d will be a data store, file_name will not be set - """ - taskflagname = taskname - if taskname.endswith("_setscene") and taskname != "do_setscene": - taskflagname = taskname.replace("_setscene", "") - - if file_name: - stamp = d.stamp[file_name] - extrainfo = d.stamp_extrainfo[file_name].get(taskflagname) or "" - else: - stamp = d.getVar('STAMP') - file_name = d.getVar('BB_FILENAME') - extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info') or "" - - if baseonly: - return stamp - if noextra: - extrainfo = "" - - if not stamp: - return - - stamp = bb.parse.siggen.stampfile(stamp, file_name, taskname, extrainfo) - - stampdir = os.path.dirname(stamp) - if cached_mtime_noerror(stampdir) == 0: - bb.utils.mkdirhier(stampdir) - - return stamp - -def stamp_cleanmask_internal(taskname, d, file_name): - """ - Internal stamp helper function to generate stamp cleaning mask - Returns the stamp path+filename - - In the bitbake core, d can be a CacheData and file_name will be set. - When called in task context, d will be a data store, file_name will not be set - """ - taskflagname = taskname - if taskname.endswith("_setscene") and taskname != "do_setscene": - taskflagname = taskname.replace("_setscene", "") - - if file_name: - stamp = d.stampclean[file_name] - extrainfo = d.stamp_extrainfo[file_name].get(taskflagname) or "" - else: - stamp = d.getVar('STAMPCLEAN') - file_name = d.getVar('BB_FILENAME') - extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info') or "" - - if not stamp: - return [] - - cleanmask = bb.parse.siggen.stampcleanmask(stamp, file_name, taskname, extrainfo) - - return [cleanmask, cleanmask.replace(taskflagname, taskflagname + "_setscene")] - -def make_stamp(task, d, file_name = None): - """ - Creates/updates a stamp for a given task - (d can be a data dict or dataCache) - """ - cleanmask = stamp_cleanmask_internal(task, d, file_name) - for mask in cleanmask: - for name in glob.glob(mask): - # Preserve sigdata files in the stamps directory - if "sigdata" in name or "sigbasedata" in name: - continue - # Preserve taint files in the stamps directory - if name.endswith('.taint'): - continue - os.unlink(name) - - stamp = stamp_internal(task, d, file_name) - # Remove the file and recreate to force timestamp - # change on broken NFS filesystems - if stamp: - bb.utils.remove(stamp) - open(stamp, "w").close() - - # If we're in task context, write out a signature file for each task - # as it completes - if not task.endswith("_setscene") and task != "do_setscene" and not file_name: - stampbase = stamp_internal(task, d, None, True) - file_name = d.getVar('BB_FILENAME') - bb.parse.siggen.dump_sigtask(file_name, task, stampbase, True) - -def del_stamp(task, d, file_name = None): - """ - Removes a stamp for a given task - (d can be a data dict or dataCache) - """ - stamp = stamp_internal(task, d, file_name) - bb.utils.remove(stamp) - -def write_taint(task, d, file_name = None): - """ - Creates a "taint" file which will force the specified task and its - dependents to be re-run the next time by influencing the value of its - taskhash. - (d can be a data dict or dataCache) - """ - import uuid - if file_name: - taintfn = d.stamp[file_name] + '.' + task + '.taint' - else: - taintfn = d.getVar('STAMP') + '.' + task + '.taint' - bb.utils.mkdirhier(os.path.dirname(taintfn)) - # The specific content of the taint file is not really important, - # we just need it to be random, so a random UUID is used - with open(taintfn, 'w') as taintf: - taintf.write(str(uuid.uuid4())) - -def stampfile(taskname, d, file_name = None, noextra=False): - """ - Return the stamp for a given task - (d can be a data dict or dataCache) - """ - return stamp_internal(taskname, d, file_name, noextra=noextra) - -def add_tasks(tasklist, d): - task_deps = d.getVar('_task_deps', False) - if not task_deps: - task_deps = {} - if not 'tasks' in task_deps: - task_deps['tasks'] = [] - if not 'parents' in task_deps: - task_deps['parents'] = {} - - for task in tasklist: - task = d.expand(task) - - d.setVarFlag(task, 'task', 1) - - if not task in task_deps['tasks']: - task_deps['tasks'].append(task) - - flags = d.getVarFlags(task) - def getTask(name): - if not name in task_deps: - task_deps[name] = {} - if name in flags: - deptask = d.expand(flags[name]) - task_deps[name][task] = deptask - getTask('depends') - getTask('rdepends') - getTask('deptask') - getTask('rdeptask') - getTask('recrdeptask') - getTask('recideptask') - getTask('nostamp') - getTask('fakeroot') - getTask('noexec') - getTask('umask') - task_deps['parents'][task] = [] - if 'deps' in flags: - for dep in flags['deps']: - dep = d.expand(dep) - task_deps['parents'][task].append(dep) - - # don't assume holding a reference - d.setVar('_task_deps', task_deps) - -def addtask(task, before, after, d): - if task[:3] != "do_": - task = "do_" + task - - d.setVarFlag(task, "task", 1) - bbtasks = d.getVar('__BBTASKS', False) or [] - if task not in bbtasks: - bbtasks.append(task) - d.setVar('__BBTASKS', bbtasks) - - existing = d.getVarFlag(task, "deps", False) or [] - if after is not None: - # set up deps for function - for entry in after.split(): - if entry not in existing: - existing.append(entry) - d.setVarFlag(task, "deps", existing) - if before is not None: - # set up things that depend on this func - for entry in before.split(): - existing = d.getVarFlag(entry, "deps", False) or [] - if task not in existing: - d.setVarFlag(entry, "deps", [task] + existing) - -def deltask(task, d): - if task[:3] != "do_": - task = "do_" + task - - bbtasks = d.getVar('__BBTASKS', False) or [] - if task in bbtasks: - bbtasks.remove(task) - d.delVarFlag(task, 'task') - d.setVar('__BBTASKS', bbtasks) - - d.delVarFlag(task, 'deps') - for bbtask in d.getVar('__BBTASKS', False) or []: - deps = d.getVarFlag(bbtask, 'deps', False) or [] - if task in deps: - deps.remove(task) - d.setVarFlag(bbtask, 'deps', deps) - -def preceedtask(task, with_recrdeptasks, d): - """ - Returns a set of tasks in the current recipe which were specified as - precondition by the task itself ("after") or which listed themselves - as precondition ("before"). Preceeding tasks specified via the - "recrdeptask" are included in the result only if requested. Beware - that this may lead to the task itself being listed. - """ - preceed = set() - preceed.update(d.getVarFlag(task, 'deps') or []) - if with_recrdeptasks: - recrdeptask = d.getVarFlag(task, 'recrdeptask') - if recrdeptask: - preceed.update(recrdeptask.split()) - return preceed - -def tasksbetween(task_start, task_end, d): - """ - Return the list of tasks between two tasks in the current recipe, - where task_start is to start at and task_end is the task to end at - (and task_end has a dependency chain back to task_start). - """ - outtasks = [] - tasks = list(filter(lambda k: d.getVarFlag(k, "task"), d.keys())) - def follow_chain(task, endtask, chain=None): - if not chain: - chain = [] - chain.append(task) - for othertask in tasks: - if othertask == task: - continue - if task == endtask: - for ctask in chain: - if ctask not in outtasks: - outtasks.append(ctask) - else: - deps = d.getVarFlag(othertask, 'deps', False) - if task in deps: - follow_chain(othertask, endtask, chain) - chain.pop() - follow_chain(task_start, task_end) - return outtasks diff --git a/poky/bitbake/lib/bb/cache.py b/poky/bitbake/lib/bb/cache.py deleted file mode 100644 index 86ce0e7..0000000 --- a/poky/bitbake/lib/bb/cache.py +++ /dev/null @@ -1,888 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# BitBake Cache implementation -# -# Caching of bitbake variables before task execution - -# Copyright (C) 2006 Richard Purdie -# Copyright (C) 2012 Intel Corporation - -# but small sections based on code from bin/bitbake: -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2003, 2004 Phil Blundell -# Copyright (C) 2003 - 2005 Michael 'Mickey' Lauer -# Copyright (C) 2005 Holger Hans Peter Freyther -# Copyright (C) 2005 ROAD GmbH -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os -import sys -import logging -import pickle -from collections import defaultdict -import bb.utils - -logger = logging.getLogger("BitBake.Cache") - -__cache_version__ = "151" - -def getCacheFile(path, filename, data_hash): - return os.path.join(path, filename + "." + data_hash) - -# RecipeInfoCommon defines common data retrieving methods -# from meta data for caches. CoreRecipeInfo as well as other -# Extra RecipeInfo needs to inherit this class -class RecipeInfoCommon(object): - - @classmethod - def listvar(cls, var, metadata): - return cls.getvar(var, metadata).split() - - @classmethod - def intvar(cls, var, metadata): - return int(cls.getvar(var, metadata) or 0) - - @classmethod - def depvar(cls, var, metadata): - return bb.utils.explode_deps(cls.getvar(var, metadata)) - - @classmethod - def pkgvar(cls, var, packages, metadata): - return dict((pkg, cls.depvar("%s_%s" % (var, pkg), metadata)) - for pkg in packages) - - @classmethod - def taskvar(cls, var, tasks, metadata): - return dict((task, cls.getvar("%s_task-%s" % (var, task), metadata)) - for task in tasks) - - @classmethod - def flaglist(cls, flag, varlist, metadata, squash=False): - out_dict = dict((var, metadata.getVarFlag(var, flag)) - for var in varlist) - if squash: - return dict((k,v) for (k,v) in out_dict.items() if v) - else: - return out_dict - - @classmethod - def getvar(cls, var, metadata, expand = True): - return metadata.getVar(var, expand) or '' - - -class CoreRecipeInfo(RecipeInfoCommon): - __slots__ = () - - cachefile = "bb_cache.dat" - - def __init__(self, filename, metadata): - self.file_depends = metadata.getVar('__depends', False) - self.timestamp = bb.parse.cached_mtime(filename) - self.variants = self.listvar('__VARIANTS', metadata) + [''] - self.appends = self.listvar('__BBAPPEND', metadata) - self.nocache = self.getvar('BB_DONT_CACHE', metadata) - - self.skipreason = self.getvar('__SKIPPED', metadata) - if self.skipreason: - self.pn = self.getvar('PN', metadata) or bb.parse.BBHandler.vars_from_file(filename,metadata)[0] - self.skipped = True - self.provides = self.depvar('PROVIDES', metadata) - self.rprovides = self.depvar('RPROVIDES', metadata) - return - - self.tasks = metadata.getVar('__BBTASKS', False) - - self.pn = self.getvar('PN', metadata) - self.packages = self.listvar('PACKAGES', metadata) - if not self.packages: - self.packages.append(self.pn) - - self.basetaskhashes = self.taskvar('BB_BASEHASH', self.tasks, metadata) - self.hashfilename = self.getvar('BB_HASHFILENAME', metadata) - - self.task_deps = metadata.getVar('_task_deps', False) or {'tasks': [], 'parents': {}} - - self.skipped = False - self.pe = self.getvar('PE', metadata) - self.pv = self.getvar('PV', metadata) - self.pr = self.getvar('PR', metadata) - self.defaultpref = self.intvar('DEFAULT_PREFERENCE', metadata) - self.not_world = self.getvar('EXCLUDE_FROM_WORLD', metadata) - self.stamp = self.getvar('STAMP', metadata) - self.stampclean = self.getvar('STAMPCLEAN', metadata) - self.stamp_extrainfo = self.flaglist('stamp-extra-info', self.tasks, metadata) - self.file_checksums = self.flaglist('file-checksums', self.tasks, metadata, True) - self.packages_dynamic = self.listvar('PACKAGES_DYNAMIC', metadata) - self.depends = self.depvar('DEPENDS', metadata) - self.provides = self.depvar('PROVIDES', metadata) - self.rdepends = self.depvar('RDEPENDS', metadata) - self.rprovides = self.depvar('RPROVIDES', metadata) - self.rrecommends = self.depvar('RRECOMMENDS', metadata) - self.rprovides_pkg = self.pkgvar('RPROVIDES', self.packages, metadata) - self.rdepends_pkg = self.pkgvar('RDEPENDS', self.packages, metadata) - self.rrecommends_pkg = self.pkgvar('RRECOMMENDS', self.packages, metadata) - self.inherits = self.getvar('__inherit_cache', metadata, expand=False) - self.fakerootenv = self.getvar('FAKEROOTENV', metadata) - self.fakerootdirs = self.getvar('FAKEROOTDIRS', metadata) - self.fakerootnoenv = self.getvar('FAKEROOTNOENV', metadata) - self.extradepsfunc = self.getvar('calculate_extra_depends', metadata) - - @classmethod - def init_cacheData(cls, cachedata): - # CacheData in Core RecipeInfo Class - cachedata.task_deps = {} - cachedata.pkg_fn = {} - cachedata.pkg_pn = defaultdict(list) - cachedata.pkg_pepvpr = {} - cachedata.pkg_dp = {} - - cachedata.stamp = {} - cachedata.stampclean = {} - cachedata.stamp_extrainfo = {} - cachedata.file_checksums = {} - cachedata.fn_provides = {} - cachedata.pn_provides = defaultdict(list) - cachedata.all_depends = [] - - cachedata.deps = defaultdict(list) - cachedata.packages = defaultdict(list) - cachedata.providers = defaultdict(list) - cachedata.rproviders = defaultdict(list) - cachedata.packages_dynamic = defaultdict(list) - - cachedata.rundeps = defaultdict(lambda: defaultdict(list)) - cachedata.runrecs = defaultdict(lambda: defaultdict(list)) - cachedata.possible_world = [] - cachedata.universe_target = [] - cachedata.hashfn = {} - - cachedata.basetaskhash = {} - cachedata.inherits = {} - cachedata.fakerootenv = {} - cachedata.fakerootnoenv = {} - cachedata.fakerootdirs = {} - cachedata.extradepsfunc = {} - - def add_cacheData(self, cachedata, fn): - cachedata.task_deps[fn] = self.task_deps - cachedata.pkg_fn[fn] = self.pn - cachedata.pkg_pn[self.pn].append(fn) - cachedata.pkg_pepvpr[fn] = (self.pe, self.pv, self.pr) - cachedata.pkg_dp[fn] = self.defaultpref - cachedata.stamp[fn] = self.stamp - cachedata.stampclean[fn] = self.stampclean - cachedata.stamp_extrainfo[fn] = self.stamp_extrainfo - cachedata.file_checksums[fn] = self.file_checksums - - provides = [self.pn] - for provide in self.provides: - if provide not in provides: - provides.append(provide) - cachedata.fn_provides[fn] = provides - - for provide in provides: - cachedata.providers[provide].append(fn) - if provide not in cachedata.pn_provides[self.pn]: - cachedata.pn_provides[self.pn].append(provide) - - for dep in self.depends: - if dep not in cachedata.deps[fn]: - cachedata.deps[fn].append(dep) - if dep not in cachedata.all_depends: - cachedata.all_depends.append(dep) - - rprovides = self.rprovides - for package in self.packages: - cachedata.packages[package].append(fn) - rprovides += self.rprovides_pkg[package] - - for rprovide in rprovides: - if fn not in cachedata.rproviders[rprovide]: - cachedata.rproviders[rprovide].append(fn) - - for package in self.packages_dynamic: - cachedata.packages_dynamic[package].append(fn) - - # Build hash of runtime depends and recommends - for package in self.packages: - cachedata.rundeps[fn][package] = list(self.rdepends) + self.rdepends_pkg[package] - cachedata.runrecs[fn][package] = list(self.rrecommends) + self.rrecommends_pkg[package] - - # Collect files we may need for possible world-dep - # calculations - if self.not_world: - logger.debug(1, "EXCLUDE FROM WORLD: %s", fn) - else: - cachedata.possible_world.append(fn) - - # create a collection of all targets for sanity checking - # tasks, such as upstream versions, license, and tools for - # task and image creation. - cachedata.universe_target.append(self.pn) - - cachedata.hashfn[fn] = self.hashfilename - for task, taskhash in self.basetaskhashes.items(): - identifier = '%s.%s' % (fn, task) - cachedata.basetaskhash[identifier] = taskhash - - cachedata.inherits[fn] = self.inherits - cachedata.fakerootenv[fn] = self.fakerootenv - cachedata.fakerootnoenv[fn] = self.fakerootnoenv - cachedata.fakerootdirs[fn] = self.fakerootdirs - cachedata.extradepsfunc[fn] = self.extradepsfunc - -def virtualfn2realfn(virtualfn): - """ - Convert a virtual file name to a real one + the associated subclass keyword - """ - mc = "" - if virtualfn.startswith('multiconfig:'): - elems = virtualfn.split(':') - mc = elems[1] - virtualfn = ":".join(elems[2:]) - - fn = virtualfn - cls = "" - if virtualfn.startswith('virtual:'): - elems = virtualfn.split(':') - cls = ":".join(elems[1:-1]) - fn = elems[-1] - - return (fn, cls, mc) - -def realfn2virtual(realfn, cls, mc): - """ - Convert a real filename + the associated subclass keyword to a virtual filename - """ - if cls: - realfn = "virtual:" + cls + ":" + realfn - if mc: - realfn = "multiconfig:" + mc + ":" + realfn - return realfn - -def variant2virtual(realfn, variant): - """ - Convert a real filename + the associated subclass keyword to a virtual filename - """ - if variant == "": - return realfn - if variant.startswith("multiconfig:"): - elems = variant.split(":") - if elems[2]: - return "multiconfig:" + elems[1] + ":virtual:" + ":".join(elems[2:]) + ":" + realfn - return "multiconfig:" + elems[1] + ":" + realfn - return "virtual:" + variant + ":" + realfn - -def parse_recipe(bb_data, bbfile, appends, mc=''): - """ - Parse a recipe - """ - - chdir_back = False - - bb_data.setVar("__BBMULTICONFIG", mc) - - # expand tmpdir to include this topdir - bb_data.setVar('TMPDIR', bb_data.getVar('TMPDIR') or "") - bbfile_loc = os.path.abspath(os.path.dirname(bbfile)) - oldpath = os.path.abspath(os.getcwd()) - bb.parse.cached_mtime_noerror(bbfile_loc) - - # The ConfHandler first looks if there is a TOPDIR and if not - # then it would call getcwd(). - # Previously, we chdir()ed to bbfile_loc, called the handler - # and finally chdir()ed back, a couple of thousand times. We now - # just fill in TOPDIR to point to bbfile_loc if there is no TOPDIR yet. - if not bb_data.getVar('TOPDIR', False): - chdir_back = True - bb_data.setVar('TOPDIR', bbfile_loc) - try: - if appends: - bb_data.setVar('__BBAPPEND', " ".join(appends)) - bb_data = bb.parse.handle(bbfile, bb_data) - if chdir_back: - os.chdir(oldpath) - return bb_data - except: - if chdir_back: - os.chdir(oldpath) - raise - - - -class NoCache(object): - - def __init__(self, databuilder): - self.databuilder = databuilder - self.data = databuilder.data - - def loadDataFull(self, virtualfn, appends): - """ - Return a complete set of data for fn. - To do this, we need to parse the file. - """ - logger.debug(1, "Parsing %s (full)" % virtualfn) - (fn, virtual, mc) = virtualfn2realfn(virtualfn) - bb_data = self.load_bbfile(virtualfn, appends, virtonly=True) - return bb_data[virtual] - - def load_bbfile(self, bbfile, appends, virtonly = False): - """ - Load and parse one .bb build file - Return the data and whether parsing resulted in the file being skipped - """ - - if virtonly: - (bbfile, virtual, mc) = virtualfn2realfn(bbfile) - bb_data = self.databuilder.mcdata[mc].createCopy() - bb_data.setVar("__ONLYFINALISE", virtual or "default") - datastores = parse_recipe(bb_data, bbfile, appends, mc) - return datastores - - bb_data = self.data.createCopy() - datastores = parse_recipe(bb_data, bbfile, appends) - - for mc in self.databuilder.mcdata: - if not mc: - continue - bb_data = self.databuilder.mcdata[mc].createCopy() - newstores = parse_recipe(bb_data, bbfile, appends, mc) - for ns in newstores: - datastores["multiconfig:%s:%s" % (mc, ns)] = newstores[ns] - - return datastores - -class Cache(NoCache): - """ - BitBake Cache implementation - """ - - def __init__(self, databuilder, data_hash, caches_array): - super().__init__(databuilder) - data = databuilder.data - - # Pass caches_array information into Cache Constructor - # It will be used later for deciding whether we - # need extra cache file dump/load support - self.caches_array = caches_array - self.cachedir = data.getVar("CACHE") - self.clean = set() - self.checked = set() - self.depends_cache = {} - self.data_fn = None - self.cacheclean = True - self.data_hash = data_hash - - if self.cachedir in [None, '']: - self.has_cache = False - logger.info("Not using a cache. " - "Set CACHE = <directory> to enable.") - return - - self.has_cache = True - self.cachefile = getCacheFile(self.cachedir, "bb_cache.dat", self.data_hash) - - logger.debug(1, "Using cache in '%s'", self.cachedir) - bb.utils.mkdirhier(self.cachedir) - - cache_ok = True - if self.caches_array: - for cache_class in self.caches_array: - cachefile = getCacheFile(self.cachedir, cache_class.cachefile, self.data_hash) - cache_ok = cache_ok and os.path.exists(cachefile) - cache_class.init_cacheData(self) - if cache_ok: - self.load_cachefile() - elif os.path.isfile(self.cachefile): - logger.info("Out of date cache found, rebuilding...") - - def load_cachefile(self): - cachesize = 0 - previous_progress = 0 - previous_percent = 0 - - # Calculate the correct cachesize of all those cache files - for cache_class in self.caches_array: - cachefile = getCacheFile(self.cachedir, cache_class.cachefile, self.data_hash) - with open(cachefile, "rb") as cachefile: - cachesize += os.fstat(cachefile.fileno()).st_size - - bb.event.fire(bb.event.CacheLoadStarted(cachesize), self.data) - - for cache_class in self.caches_array: - cachefile = getCacheFile(self.cachedir, cache_class.cachefile, self.data_hash) - with open(cachefile, "rb") as cachefile: - pickled = pickle.Unpickler(cachefile) - # Check cache version information - try: - cache_ver = pickled.load() - bitbake_ver = pickled.load() - except Exception: - logger.info('Invalid cache, rebuilding...') - return - - if cache_ver != __cache_version__: - logger.info('Cache version mismatch, rebuilding...') - return - elif bitbake_ver != bb.__version__: - logger.info('Bitbake version mismatch, rebuilding...') - return - - # Load the rest of the cache file - current_progress = 0 - while cachefile: - try: - key = pickled.load() - value = pickled.load() - except Exception: - break - if not isinstance(key, str): - bb.warn("%s from extras cache is not a string?" % key) - break - if not isinstance(value, RecipeInfoCommon): - bb.warn("%s from extras cache is not a RecipeInfoCommon class?" % value) - break - - if key in self.depends_cache: - self.depends_cache[key].append(value) - else: - self.depends_cache[key] = [value] - # only fire events on even percentage boundaries - current_progress = cachefile.tell() + previous_progress - if current_progress > cachesize: - # we might have calculated incorrect total size because a file - # might've been written out just after we checked its size - cachesize = current_progress - current_percent = 100 * current_progress / cachesize - if current_percent > previous_percent: - previous_percent = current_percent - bb.event.fire(bb.event.CacheLoadProgress(current_progress, cachesize), - self.data) - - previous_progress += current_progress - - # Note: depends cache number is corresponding to the parsing file numbers. - # The same file has several caches, still regarded as one item in the cache - bb.event.fire(bb.event.CacheLoadCompleted(cachesize, - len(self.depends_cache)), - self.data) - - def parse(self, filename, appends): - """Parse the specified filename, returning the recipe information""" - logger.debug(1, "Parsing %s", filename) - infos = [] - datastores = self.load_bbfile(filename, appends) - depends = [] - variants = [] - # Process the "real" fn last so we can store variants list - for variant, data in sorted(datastores.items(), - key=lambda i: i[0], - reverse=True): - virtualfn = variant2virtual(filename, variant) - variants.append(variant) - depends = depends + (data.getVar("__depends", False) or []) - if depends and not variant: - data.setVar("__depends", depends) - if virtualfn == filename: - data.setVar("__VARIANTS", " ".join(variants)) - info_array = [] - for cache_class in self.caches_array: - info = cache_class(filename, data) - info_array.append(info) - infos.append((virtualfn, info_array)) - - return infos - - def load(self, filename, appends): - """Obtain the recipe information for the specified filename, - using cached values if available, otherwise parsing. - - Note that if it does parse to obtain the info, it will not - automatically add the information to the cache or to your - CacheData. Use the add or add_info method to do so after - running this, or use loadData instead.""" - cached = self.cacheValid(filename, appends) - if cached: - infos = [] - # info_array item is a list of [CoreRecipeInfo, XXXRecipeInfo] - info_array = self.depends_cache[filename] - for variant in info_array[0].variants: - virtualfn = variant2virtual(filename, variant) - infos.append((virtualfn, self.depends_cache[virtualfn])) - else: - return self.parse(filename, appends, configdata, self.caches_array) - - return cached, infos - - def loadData(self, fn, appends, cacheData): - """Load the recipe info for the specified filename, - parsing and adding to the cache if necessary, and adding - the recipe information to the supplied CacheData instance.""" - skipped, virtuals = 0, 0 - - cached, infos = self.load(fn, appends) - for virtualfn, info_array in infos: - if info_array[0].skipped: - logger.debug(1, "Skipping %s: %s", virtualfn, info_array[0].skipreason) - skipped += 1 - else: - self.add_info(virtualfn, info_array, cacheData, not cached) - virtuals += 1 - - return cached, skipped, virtuals - - def cacheValid(self, fn, appends): - """ - Is the cache valid for fn? - Fast version, no timestamps checked. - """ - if fn not in self.checked: - self.cacheValidUpdate(fn, appends) - - # Is cache enabled? - if not self.has_cache: - return False - if fn in self.clean: - return True - return False - - def cacheValidUpdate(self, fn, appends): - """ - Is the cache valid for fn? - Make thorough (slower) checks including timestamps. - """ - # Is cache enabled? - if not self.has_cache: - return False - - self.checked.add(fn) - - # File isn't in depends_cache - if not fn in self.depends_cache: - logger.debug(2, "Cache: %s is not cached", fn) - return False - - mtime = bb.parse.cached_mtime_noerror(fn) - - # Check file still exists - if mtime == 0: - logger.debug(2, "Cache: %s no longer exists", fn) - self.remove(fn) - return False - - info_array = self.depends_cache[fn] - # Check the file's timestamp - if mtime != info_array[0].timestamp: - logger.debug(2, "Cache: %s changed", fn) - self.remove(fn) - return False - - # Check dependencies are still valid - depends = info_array[0].file_depends - if depends: - for f, old_mtime in depends: - fmtime = bb.parse.cached_mtime_noerror(f) - # Check if file still exists - if old_mtime != 0 and fmtime == 0: - logger.debug(2, "Cache: %s's dependency %s was removed", - fn, f) - self.remove(fn) - return False - - if (fmtime != old_mtime): - logger.debug(2, "Cache: %s's dependency %s changed", - fn, f) - self.remove(fn) - return False - - if hasattr(info_array[0], 'file_checksums'): - for _, fl in info_array[0].file_checksums.items(): - fl = fl.strip() - while fl: - # A .split() would be simpler but means spaces or colons in filenames would break - a = fl.find(":True") - b = fl.find(":False") - if ((a < 0) and b) or ((b > 0) and (b < a)): - f = fl[:b+6] - fl = fl[b+7:] - elif ((b < 0) and a) or ((a > 0) and (a < b)): - f = fl[:a+5] - fl = fl[a+6:] - else: - break - fl = fl.strip() - if "*" in f: - continue - f, exist = f.split(":") - if (exist == "True" and not os.path.exists(f)) or (exist == "False" and os.path.exists(f)): - logger.debug(2, "Cache: %s's file checksum list file %s changed", - fn, f) - self.remove(fn) - return False - - if appends != info_array[0].appends: - logger.debug(2, "Cache: appends for %s changed", fn) - logger.debug(2, "%s to %s" % (str(appends), str(info_array[0].appends))) - self.remove(fn) - return False - - invalid = False - for cls in info_array[0].variants: - virtualfn = variant2virtual(fn, cls) - self.clean.add(virtualfn) - if virtualfn not in self.depends_cache: - logger.debug(2, "Cache: %s is not cached", virtualfn) - invalid = True - elif len(self.depends_cache[virtualfn]) != len(self.caches_array): - logger.debug(2, "Cache: Extra caches missing for %s?" % virtualfn) - invalid = True - - # If any one of the variants is not present, mark as invalid for all - if invalid: - for cls in info_array[0].variants: - virtualfn = variant2virtual(fn, cls) - if virtualfn in self.clean: - logger.debug(2, "Cache: Removing %s from cache", virtualfn) - self.clean.remove(virtualfn) - if fn in self.clean: - logger.debug(2, "Cache: Marking %s as not clean", fn) - self.clean.remove(fn) - return False - - self.clean.add(fn) - return True - - def remove(self, fn): - """ - Remove a fn from the cache - Called from the parser in error cases - """ - if fn in self.depends_cache: - logger.debug(1, "Removing %s from cache", fn) - del self.depends_cache[fn] - if fn in self.clean: - logger.debug(1, "Marking %s as unclean", fn) - self.clean.remove(fn) - - def sync(self): - """ - Save the cache - Called from the parser when complete (or exiting) - """ - - if not self.has_cache: - return - - if self.cacheclean: - logger.debug(2, "Cache is clean, not saving.") - return - - for cache_class in self.caches_array: - cache_class_name = cache_class.__name__ - cachefile = getCacheFile(self.cachedir, cache_class.cachefile, self.data_hash) - with open(cachefile, "wb") as f: - p = pickle.Pickler(f, pickle.HIGHEST_PROTOCOL) - p.dump(__cache_version__) - p.dump(bb.__version__) - - for key, info_array in self.depends_cache.items(): - for info in info_array: - if isinstance(info, RecipeInfoCommon) and info.__class__.__name__ == cache_class_name: - p.dump(key) - p.dump(info) - - del self.depends_cache - - @staticmethod - def mtime(cachefile): - return bb.parse.cached_mtime_noerror(cachefile) - - def add_info(self, filename, info_array, cacheData, parsed=None, watcher=None): - if isinstance(info_array[0], CoreRecipeInfo) and (not info_array[0].skipped): - cacheData.add_from_recipeinfo(filename, info_array) - - if watcher: - watcher(info_array[0].file_depends) - - if not self.has_cache: - return - - if (info_array[0].skipped or 'SRCREVINACTION' not in info_array[0].pv) and not info_array[0].nocache: - if parsed: - self.cacheclean = False - self.depends_cache[filename] = info_array - - def add(self, file_name, data, cacheData, parsed=None): - """ - Save data we need into the cache - """ - - realfn = virtualfn2realfn(file_name)[0] - - info_array = [] - for cache_class in self.caches_array: - info_array.append(cache_class(realfn, data)) - self.add_info(file_name, info_array, cacheData, parsed) - - -def init(cooker): - """ - The Objective: Cache the minimum amount of data possible yet get to the - stage of building packages (i.e. tryBuild) without reparsing any .bb files. - - To do this, we intercept getVar calls and only cache the variables we see - being accessed. We rely on the cache getVar calls being made for all - variables bitbake might need to use to reach this stage. For each cached - file we need to track: - - * Its mtime - * The mtimes of all its dependencies - * Whether it caused a parse.SkipRecipe exception - - Files causing parsing errors are evicted from the cache. - - """ - return Cache(cooker.configuration.data, cooker.configuration.data_hash) - - -class CacheData(object): - """ - The data structures we compile from the cached data - """ - - def __init__(self, caches_array): - self.caches_array = caches_array - for cache_class in self.caches_array: - if not issubclass(cache_class, RecipeInfoCommon): - bb.error("Extra cache data class %s should subclass RecipeInfoCommon class" % cache_class) - cache_class.init_cacheData(self) - - # Direct cache variables - self.task_queues = {} - self.preferred = {} - self.tasks = {} - # Indirect Cache variables (set elsewhere) - self.ignored_dependencies = [] - self.world_target = set() - self.bbfile_priority = {} - - def add_from_recipeinfo(self, fn, info_array): - for info in info_array: - info.add_cacheData(self, fn) - -class MultiProcessCache(object): - """ - BitBake multi-process cache implementation - - Used by the codeparser & file checksum caches - """ - - def __init__(self): - self.cachefile = None - self.cachedata = self.create_cachedata() - self.cachedata_extras = self.create_cachedata() - - def init_cache(self, d, cache_file_name=None): - cachedir = (d.getVar("PERSISTENT_DIR") or - d.getVar("CACHE")) - if cachedir in [None, '']: - return - bb.utils.mkdirhier(cachedir) - self.cachefile = os.path.join(cachedir, - cache_file_name or self.__class__.cache_file_name) - logger.debug(1, "Using cache in '%s'", self.cachefile) - - glf = bb.utils.lockfile(self.cachefile + ".lock") - - try: - with open(self.cachefile, "rb") as f: - p = pickle.Unpickler(f) - data, version = p.load() - except: - bb.utils.unlockfile(glf) - return - - bb.utils.unlockfile(glf) - - if version != self.__class__.CACHE_VERSION: - return - - self.cachedata = data - - def create_cachedata(self): - data = [{}] - return data - - def save_extras(self): - if not self.cachefile: - return - - glf = bb.utils.lockfile(self.cachefile + ".lock", shared=True) - - i = os.getpid() - lf = None - while not lf: - lf = bb.utils.lockfile(self.cachefile + ".lock." + str(i), retry=False) - if not lf or os.path.exists(self.cachefile + "-" + str(i)): - if lf: - bb.utils.unlockfile(lf) - lf = None - i = i + 1 - continue - - with open(self.cachefile + "-" + str(i), "wb") as f: - p = pickle.Pickler(f, -1) - p.dump([self.cachedata_extras, self.__class__.CACHE_VERSION]) - - bb.utils.unlockfile(lf) - bb.utils.unlockfile(glf) - - def merge_data(self, source, dest): - for j in range(0,len(dest)): - for h in source[j]: - if h not in dest[j]: - dest[j][h] = source[j][h] - - def save_merge(self): - if not self.cachefile: - return - - glf = bb.utils.lockfile(self.cachefile + ".lock") - - data = self.cachedata - - for f in [y for y in os.listdir(os.path.dirname(self.cachefile)) if y.startswith(os.path.basename(self.cachefile) + '-')]: - f = os.path.join(os.path.dirname(self.cachefile), f) - try: - with open(f, "rb") as fd: - p = pickle.Unpickler(fd) - extradata, version = p.load() - except (IOError, EOFError): - os.unlink(f) - continue - - if version != self.__class__.CACHE_VERSION: - os.unlink(f) - continue - - self.merge_data(extradata, data) - os.unlink(f) - - with open(self.cachefile, "wb") as f: - p = pickle.Pickler(f, -1) - p.dump([data, self.__class__.CACHE_VERSION]) - - bb.utils.unlockfile(glf) diff --git a/poky/bitbake/lib/bb/cache_extra.py b/poky/bitbake/lib/bb/cache_extra.py deleted file mode 100644 index 83f4959..0000000 --- a/poky/bitbake/lib/bb/cache_extra.py +++ /dev/null @@ -1,75 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# Extra RecipeInfo will be all defined in this file. Currently, -# Only Hob (Image Creator) Requests some extra fields. So -# HobRecipeInfo is defined. It's named HobRecipeInfo because it -# is introduced by 'hob'. Users could also introduce other -# RecipeInfo or simply use those already defined RecipeInfo. -# In the following patch, this newly defined new extra RecipeInfo -# will be dynamically loaded and used for loading/saving the extra -# cache fields - -# Copyright (C) 2011, Intel Corporation. All rights reserved. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -from bb.cache import RecipeInfoCommon - -class HobRecipeInfo(RecipeInfoCommon): - __slots__ = () - - classname = "HobRecipeInfo" - # please override this member with the correct data cache file - # such as (bb_cache.dat, bb_extracache_hob.dat) - cachefile = "bb_extracache_" + classname +".dat" - - # override this member with the list of extra cache fields - # that this class will provide - cachefields = ['summary', 'license', 'section', - 'description', 'homepage', 'bugtracker', - 'prevision', 'files_info'] - - def __init__(self, filename, metadata): - - self.summary = self.getvar('SUMMARY', metadata) - self.license = self.getvar('LICENSE', metadata) - self.section = self.getvar('SECTION', metadata) - self.description = self.getvar('DESCRIPTION', metadata) - self.homepage = self.getvar('HOMEPAGE', metadata) - self.bugtracker = self.getvar('BUGTRACKER', metadata) - self.prevision = self.getvar('PR', metadata) - self.files_info = self.getvar('FILES_INFO', metadata) - - @classmethod - def init_cacheData(cls, cachedata): - # CacheData in Hob RecipeInfo Class - cachedata.summary = {} - cachedata.license = {} - cachedata.section = {} - cachedata.description = {} - cachedata.homepage = {} - cachedata.bugtracker = {} - cachedata.prevision = {} - cachedata.files_info = {} - - def add_cacheData(self, cachedata, fn): - cachedata.summary[fn] = self.summary - cachedata.license[fn] = self.license - cachedata.section[fn] = self.section - cachedata.description[fn] = self.description - cachedata.homepage[fn] = self.homepage - cachedata.bugtracker[fn] = self.bugtracker - cachedata.prevision[fn] = self.prevision - cachedata.files_info[fn] = self.files_info diff --git a/poky/bitbake/lib/bb/checksum.py b/poky/bitbake/lib/bb/checksum.py deleted file mode 100644 index 8428920..0000000 --- a/poky/bitbake/lib/bb/checksum.py +++ /dev/null @@ -1,134 +0,0 @@ -# Local file checksum cache implementation -# -# Copyright (C) 2012 Intel Corporation -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import glob -import operator -import os -import stat -import pickle -import bb.utils -import logging -from bb.cache import MultiProcessCache - -logger = logging.getLogger("BitBake.Cache") - -# mtime cache (non-persistent) -# based upon the assumption that files do not change during bitbake run -class FileMtimeCache(object): - cache = {} - - def cached_mtime(self, f): - if f not in self.cache: - self.cache[f] = os.stat(f)[stat.ST_MTIME] - return self.cache[f] - - def cached_mtime_noerror(self, f): - if f not in self.cache: - try: - self.cache[f] = os.stat(f)[stat.ST_MTIME] - except OSError: - return 0 - return self.cache[f] - - def update_mtime(self, f): - self.cache[f] = os.stat(f)[stat.ST_MTIME] - return self.cache[f] - - def clear(self): - self.cache.clear() - -# Checksum + mtime cache (persistent) -class FileChecksumCache(MultiProcessCache): - cache_file_name = "local_file_checksum_cache.dat" - CACHE_VERSION = 1 - - def __init__(self): - self.mtime_cache = FileMtimeCache() - MultiProcessCache.__init__(self) - - def get_checksum(self, f): - entry = self.cachedata[0].get(f) - cmtime = self.mtime_cache.cached_mtime(f) - if entry: - (mtime, hashval) = entry - if cmtime == mtime: - return hashval - else: - bb.debug(2, "file %s changed mtime, recompute checksum" % f) - - hashval = bb.utils.md5_file(f) - self.cachedata_extras[0][f] = (cmtime, hashval) - return hashval - - def merge_data(self, source, dest): - for h in source[0]: - if h in dest: - (smtime, _) = source[0][h] - (dmtime, _) = dest[0][h] - if smtime > dmtime: - dest[0][h] = source[0][h] - else: - dest[0][h] = source[0][h] - - def get_checksums(self, filelist, pn): - """Get checksums for a list of files""" - - def checksum_file(f): - try: - checksum = self.get_checksum(f) - except OSError as e: - bb.warn("Unable to get checksum for %s SRC_URI entry %s: %s" % (pn, os.path.basename(f), e)) - return None - return checksum - - def checksum_dir(pth): - # Handle directories recursively - dirchecksums = [] - for root, dirs, files in os.walk(pth): - for name in files: - fullpth = os.path.join(root, name) - checksum = checksum_file(fullpth) - if checksum: - dirchecksums.append((fullpth, checksum)) - return dirchecksums - - checksums = [] - for pth in filelist.split(): - exist = pth.split(":")[1] - if exist == "False": - continue - pth = pth.split(":")[0] - if '*' in pth: - # Handle globs - for f in glob.glob(pth): - if os.path.isdir(f): - if not os.path.islink(f): - checksums.extend(checksum_dir(f)) - else: - checksum = checksum_file(f) - if checksum: - checksums.append((f, checksum)) - elif os.path.isdir(pth): - if not os.path.islink(pth): - checksums.extend(checksum_dir(pth)) - else: - checksum = checksum_file(pth) - if checksum: - checksums.append((pth, checksum)) - - checksums.sort(key=operator.itemgetter(1)) - return checksums diff --git a/poky/bitbake/lib/bb/codeparser.py b/poky/bitbake/lib/bb/codeparser.py deleted file mode 100644 index 530f44e..0000000 --- a/poky/bitbake/lib/bb/codeparser.py +++ /dev/null @@ -1,476 +0,0 @@ -""" -BitBake code parser - -Parses actual code (i.e. python and shell) for functions and in-line -expressions. Used mainly to determine dependencies on other functions -and variables within the BitBake metadata. Also provides a cache for -this information in order to speed up processing. - -(Not to be confused with the code that parses the metadata itself, -see lib/bb/parse/ for that). - -NOTE: if you change how the parsers gather information you will almost -certainly need to increment CodeParserCache.CACHE_VERSION below so that -any existing codeparser cache gets invalidated. Additionally you'll need -to increment __cache_version__ in cache.py in order to ensure that old -recipe caches don't trigger "Taskhash mismatch" errors. - -""" - -import ast -import sys -import codegen -import logging -import pickle -import bb.pysh as pysh -import os.path -import bb.utils, bb.data -import hashlib -from itertools import chain -from bb.pysh import pyshyacc, pyshlex, sherrors -from bb.cache import MultiProcessCache - -logger = logging.getLogger('BitBake.CodeParser') - -def bbhash(s): - return hashlib.md5(s.encode("utf-8")).hexdigest() - -def check_indent(codestr): - """If the code is indented, add a top level piece of code to 'remove' the indentation""" - - i = 0 - while codestr[i] in ["\n", "\t", " "]: - i = i + 1 - - if i == 0: - return codestr - - if codestr[i-1] == "\t" or codestr[i-1] == " ": - if codestr[0] == "\n": - # Since we're adding a line, we need to remove one line of any empty padding - # to ensure line numbers are correct - codestr = codestr[1:] - return "if 1:\n" + codestr - - return codestr - - -# Basically pickle, in python 2.7.3 at least, does badly with data duplication -# upon pickling and unpickling. Combine this with duplicate objects and things -# are a mess. -# -# When the sets are originally created, python calls intern() on the set keys -# which significantly improves memory usage. Sadly the pickle/unpickle process -# doesn't call intern() on the keys and results in the same strings being duplicated -# in memory. This also means pickle will save the same string multiple times in -# the cache file. -# -# By having shell and python cacheline objects with setstate/getstate, we force -# the object creation through our own routine where we can call intern (via internSet). -# -# We also use hashable frozensets and ensure we use references to these so that -# duplicates can be removed, both in memory and in the resulting pickled data. -# -# By playing these games, the size of the cache file shrinks dramatically -# meaning faster load times and the reloaded cache files also consume much less -# memory. Smaller cache files, faster load times and lower memory usage is good. -# -# A custom getstate/setstate using tuples is actually worth 15% cachesize by -# avoiding duplication of the attribute names! - -class SetCache(object): - def __init__(self): - self.setcache = {} - - def internSet(self, items): - - new = [] - for i in items: - new.append(sys.intern(i)) - s = frozenset(new) - h = hash(s) - if h in self.setcache: - return self.setcache[h] - self.setcache[h] = s - return s - -codecache = SetCache() - -class pythonCacheLine(object): - def __init__(self, refs, execs, contains): - self.refs = codecache.internSet(refs) - self.execs = codecache.internSet(execs) - self.contains = {} - for c in contains: - self.contains[c] = codecache.internSet(contains[c]) - - def __getstate__(self): - return (self.refs, self.execs, self.contains) - - def __setstate__(self, state): - (refs, execs, contains) = state - self.__init__(refs, execs, contains) - def __hash__(self): - l = (hash(self.refs), hash(self.execs)) - for c in sorted(self.contains.keys()): - l = l + (c, hash(self.contains[c])) - return hash(l) - def __repr__(self): - return " ".join([str(self.refs), str(self.execs), str(self.contains)]) - - -class shellCacheLine(object): - def __init__(self, execs): - self.execs = codecache.internSet(execs) - - def __getstate__(self): - return (self.execs) - - def __setstate__(self, state): - (execs) = state - self.__init__(execs) - def __hash__(self): - return hash(self.execs) - def __repr__(self): - return str(self.execs) - -class CodeParserCache(MultiProcessCache): - cache_file_name = "bb_codeparser.dat" - # NOTE: you must increment this if you change how the parsers gather information, - # so that an existing cache gets invalidated. Additionally you'll need - # to increment __cache_version__ in cache.py in order to ensure that old - # recipe caches don't trigger "Taskhash mismatch" errors. - CACHE_VERSION = 9 - - def __init__(self): - MultiProcessCache.__init__(self) - self.pythoncache = self.cachedata[0] - self.shellcache = self.cachedata[1] - self.pythoncacheextras = self.cachedata_extras[0] - self.shellcacheextras = self.cachedata_extras[1] - - # To avoid duplication in the codeparser cache, keep - # a lookup of hashes of objects we already have - self.pythoncachelines = {} - self.shellcachelines = {} - - def newPythonCacheLine(self, refs, execs, contains): - cacheline = pythonCacheLine(refs, execs, contains) - h = hash(cacheline) - if h in self.pythoncachelines: - return self.pythoncachelines[h] - self.pythoncachelines[h] = cacheline - return cacheline - - def newShellCacheLine(self, execs): - cacheline = shellCacheLine(execs) - h = hash(cacheline) - if h in self.shellcachelines: - return self.shellcachelines[h] - self.shellcachelines[h] = cacheline - return cacheline - - def init_cache(self, d): - # Check if we already have the caches - if self.pythoncache: - return - - MultiProcessCache.init_cache(self, d) - - # cachedata gets re-assigned in the parent - self.pythoncache = self.cachedata[0] - self.shellcache = self.cachedata[1] - - def create_cachedata(self): - data = [{}, {}] - return data - -codeparsercache = CodeParserCache() - -def parser_cache_init(d): - codeparsercache.init_cache(d) - -def parser_cache_save(): - codeparsercache.save_extras() - -def parser_cache_savemerge(): - codeparsercache.save_merge() - -Logger = logging.getLoggerClass() -class BufferedLogger(Logger): - def __init__(self, name, level=0, target=None): - Logger.__init__(self, name) - self.setLevel(level) - self.buffer = [] - self.target = target - - def handle(self, record): - self.buffer.append(record) - - def flush(self): - for record in self.buffer: - if self.target.isEnabledFor(record.levelno): - self.target.handle(record) - self.buffer = [] - -class PythonParser(): - getvars = (".getVar", ".appendVar", ".prependVar") - getvarflags = (".getVarFlag", ".appendVarFlag", ".prependVarFlag") - containsfuncs = ("bb.utils.contains", "base_contains") - containsanyfuncs = ("bb.utils.contains_any", "bb.utils.filter") - execfuncs = ("bb.build.exec_func", "bb.build.exec_task") - - def warn(self, func, arg): - """Warn about calls of bitbake APIs which pass a non-literal - argument for the variable name, as we're not able to track such - a reference. - """ - - try: - funcstr = codegen.to_source(func) - argstr = codegen.to_source(arg) - except TypeError: - self.log.debug(2, 'Failed to convert function and argument to source form') - else: - self.log.debug(1, self.unhandled_message % (funcstr, argstr)) - - def visit_Call(self, node): - name = self.called_node_name(node.func) - if name and (name.endswith(self.getvars) or name.endswith(self.getvarflags) or name in self.containsfuncs or name in self.containsanyfuncs): - if isinstance(node.args[0], ast.Str): - varname = node.args[0].s - if name in self.containsfuncs and isinstance(node.args[1], ast.Str): - if varname not in self.contains: - self.contains[varname] = set() - self.contains[varname].add(node.args[1].s) - elif name in self.containsanyfuncs and isinstance(node.args[1], ast.Str): - if varname not in self.contains: - self.contains[varname] = set() - self.contains[varname].update(node.args[1].s.split()) - elif name.endswith(self.getvarflags): - if isinstance(node.args[1], ast.Str): - self.references.add('%s[%s]' % (varname, node.args[1].s)) - else: - self.warn(node.func, node.args[1]) - else: - self.references.add(varname) - else: - self.warn(node.func, node.args[0]) - elif name and name.endswith(".expand"): - if isinstance(node.args[0], ast.Str): - value = node.args[0].s - d = bb.data.init() - parser = d.expandWithRefs(value, self.name) - self.references |= parser.references - self.execs |= parser.execs - for varname in parser.contains: - if varname not in self.contains: - self.contains[varname] = set() - self.contains[varname] |= parser.contains[varname] - elif name in self.execfuncs: - if isinstance(node.args[0], ast.Str): - self.var_execs.add(node.args[0].s) - else: - self.warn(node.func, node.args[0]) - elif name and isinstance(node.func, (ast.Name, ast.Attribute)): - self.execs.add(name) - - def called_node_name(self, node): - """Given a called node, return its original string form""" - components = [] - while node: - if isinstance(node, ast.Attribute): - components.append(node.attr) - node = node.value - elif isinstance(node, ast.Name): - components.append(node.id) - return '.'.join(reversed(components)) - else: - break - - def __init__(self, name, log): - self.name = name - self.var_execs = set() - self.contains = {} - self.execs = set() - self.references = set() - self.log = BufferedLogger('BitBake.Data.PythonParser', logging.DEBUG, log) - - self.unhandled_message = "in call of %s, argument '%s' is not a string literal" - self.unhandled_message = "while parsing %s, %s" % (name, self.unhandled_message) - - def parse_python(self, node, lineno=0, filename="<string>"): - if not node or not node.strip(): - return - - h = bbhash(str(node)) - - if h in codeparsercache.pythoncache: - self.references = set(codeparsercache.pythoncache[h].refs) - self.execs = set(codeparsercache.pythoncache[h].execs) - self.contains = {} - for i in codeparsercache.pythoncache[h].contains: - self.contains[i] = set(codeparsercache.pythoncache[h].contains[i]) - return - - if h in codeparsercache.pythoncacheextras: - self.references = set(codeparsercache.pythoncacheextras[h].refs) - self.execs = set(codeparsercache.pythoncacheextras[h].execs) - self.contains = {} - for i in codeparsercache.pythoncacheextras[h].contains: - self.contains[i] = set(codeparsercache.pythoncacheextras[h].contains[i]) - return - - # We can't add to the linenumbers for compile, we can pad to the correct number of blank lines though - node = "\n" * int(lineno) + node - code = compile(check_indent(str(node)), filename, "exec", - ast.PyCF_ONLY_AST) - - for n in ast.walk(code): - if n.__class__.__name__ == "Call": - self.visit_Call(n) - - self.execs.update(self.var_execs) - - codeparsercache.pythoncacheextras[h] = codeparsercache.newPythonCacheLine(self.references, self.execs, self.contains) - -class ShellParser(): - def __init__(self, name, log): - self.funcdefs = set() - self.allexecs = set() - self.execs = set() - self.log = BufferedLogger('BitBake.Data.%s' % name, logging.DEBUG, log) - self.unhandled_template = "unable to handle non-literal command '%s'" - self.unhandled_template = "while parsing %s, %s" % (name, self.unhandled_template) - - def parse_shell(self, value): - """Parse the supplied shell code in a string, returning the external - commands it executes. - """ - - h = bbhash(str(value)) - - if h in codeparsercache.shellcache: - self.execs = set(codeparsercache.shellcache[h].execs) - return self.execs - - if h in codeparsercache.shellcacheextras: - self.execs = set(codeparsercache.shellcacheextras[h].execs) - return self.execs - - self._parse_shell(value) - self.execs = set(cmd for cmd in self.allexecs if cmd not in self.funcdefs) - - codeparsercache.shellcacheextras[h] = codeparsercache.newShellCacheLine(self.execs) - - return self.execs - - def _parse_shell(self, value): - try: - tokens, _ = pyshyacc.parse(value, eof=True, debug=False) - except pyshlex.NeedMore: - raise sherrors.ShellSyntaxError("Unexpected EOF") - - self.process_tokens(tokens) - - def process_tokens(self, tokens): - """Process a supplied portion of the syntax tree as returned by - pyshyacc.parse. - """ - - def function_definition(value): - self.funcdefs.add(value.name) - return [value.body], None - - def case_clause(value): - # Element 0 of each item in the case is the list of patterns, and - # Element 1 of each item in the case is the list of commands to be - # executed when that pattern matches. - words = chain(*[item[0] for item in value.items]) - cmds = chain(*[item[1] for item in value.items]) - return cmds, words - - def if_clause(value): - main = chain(value.cond, value.if_cmds) - rest = value.else_cmds - if isinstance(rest, tuple) and rest[0] == "elif": - return chain(main, if_clause(rest[1])) - else: - return chain(main, rest) - - def simple_command(value): - return None, chain(value.words, (assign[1] for assign in value.assigns)) - - token_handlers = { - "and_or": lambda x: ((x.left, x.right), None), - "async": lambda x: ([x], None), - "brace_group": lambda x: (x.cmds, None), - "for_clause": lambda x: (x.cmds, x.items), - "function_definition": function_definition, - "if_clause": lambda x: (if_clause(x), None), - "pipeline": lambda x: (x.commands, None), - "redirect_list": lambda x: ([x.cmd], None), - "subshell": lambda x: (x.cmds, None), - "while_clause": lambda x: (chain(x.condition, x.cmds), None), - "until_clause": lambda x: (chain(x.condition, x.cmds), None), - "simple_command": simple_command, - "case_clause": case_clause, - } - - def process_token_list(tokens): - for token in tokens: - if isinstance(token, list): - process_token_list(token) - continue - name, value = token - try: - more_tokens, words = token_handlers[name](value) - except KeyError: - raise NotImplementedError("Unsupported token type " + name) - - if more_tokens: - self.process_tokens(more_tokens) - - if words: - self.process_words(words) - - process_token_list(tokens) - - def process_words(self, words): - """Process a set of 'words' in pyshyacc parlance, which includes - extraction of executed commands from $() blocks, as well as grabbing - the command name argument. - """ - - words = list(words) - for word in list(words): - wtree = pyshlex.make_wordtree(word[1]) - for part in wtree: - if not isinstance(part, list): - continue - - if part[0] in ('`', '$('): - command = pyshlex.wordtree_as_string(part[1:-1]) - self._parse_shell(command) - - if word[0] in ("cmd_name", "cmd_word"): - if word in words: - words.remove(word) - - usetoken = False - for word in words: - if word[0] in ("cmd_name", "cmd_word") or \ - (usetoken and word[0] == "TOKEN"): - if "=" in word[1]: - usetoken = True - continue - - cmd = word[1] - if cmd.startswith("$"): - self.log.debug(1, self.unhandled_template % cmd) - elif cmd == "eval": - command = " ".join(word for _, word in words[1:]) - self._parse_shell(command) - else: - self.allexecs.add(cmd) - break diff --git a/poky/bitbake/lib/bb/command.py b/poky/bitbake/lib/bb/command.py deleted file mode 100644 index 6c966e3..0000000 --- a/poky/bitbake/lib/bb/command.py +++ /dev/null @@ -1,765 +0,0 @@ -""" -BitBake 'Command' module - -Provide an interface to interact with the bitbake server through 'commands' -""" - -# Copyright (C) 2006-2007 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -""" -The bitbake server takes 'commands' from its UI/commandline. -Commands are either synchronous or asynchronous. -Async commands return data to the client in the form of events. -Sync commands must only return data through the function return value -and must not trigger events, directly or indirectly. -Commands are queued in a CommandQueue -""" - -from collections import OrderedDict, defaultdict - -import bb.event -import bb.cooker -import bb.remotedata - -class DataStoreConnectionHandle(object): - def __init__(self, dsindex=0): - self.dsindex = dsindex - -class CommandCompleted(bb.event.Event): - pass - -class CommandExit(bb.event.Event): - def __init__(self, exitcode): - bb.event.Event.__init__(self) - self.exitcode = int(exitcode) - -class CommandFailed(CommandExit): - def __init__(self, message): - self.error = message - CommandExit.__init__(self, 1) - def __str__(self): - return "Command execution failed: %s" % self.error - -class CommandError(Exception): - pass - -class Command: - """ - A queue of asynchronous commands for bitbake - """ - def __init__(self, cooker): - self.cooker = cooker - self.cmds_sync = CommandsSync() - self.cmds_async = CommandsAsync() - self.remotedatastores = bb.remotedata.RemoteDatastores(cooker) - - # FIXME Add lock for this - self.currentAsyncCommand = None - - def runCommand(self, commandline, ro_only = False): - command = commandline.pop(0) - if hasattr(CommandsSync, command): - # Can run synchronous commands straight away - command_method = getattr(self.cmds_sync, command) - if ro_only: - if not hasattr(command_method, 'readonly') or False == getattr(command_method, 'readonly'): - return None, "Not able to execute not readonly commands in readonly mode" - try: - self.cooker.process_inotify_updates() - if getattr(command_method, 'needconfig', True): - self.cooker.updateCacheSync() - result = command_method(self, commandline) - except CommandError as exc: - return None, exc.args[0] - except (Exception, SystemExit): - import traceback - return None, traceback.format_exc() - else: - return result, None - if self.currentAsyncCommand is not None: - return None, "Busy (%s in progress)" % self.currentAsyncCommand[0] - if command not in CommandsAsync.__dict__: - return None, "No such command" - self.currentAsyncCommand = (command, commandline) - self.cooker.configuration.server_register_idlecallback(self.cooker.runCommands, self.cooker) - return True, None - - def runAsyncCommand(self): - try: - self.cooker.process_inotify_updates() - if self.cooker.state in (bb.cooker.state.error, bb.cooker.state.shutdown, bb.cooker.state.forceshutdown): - # updateCache will trigger a shutdown of the parser - # and then raise BBHandledException triggering an exit - self.cooker.updateCache() - return False - if self.currentAsyncCommand is not None: - (command, options) = self.currentAsyncCommand - commandmethod = getattr(CommandsAsync, command) - needcache = getattr( commandmethod, "needcache" ) - if needcache and self.cooker.state != bb.cooker.state.running: - self.cooker.updateCache() - return True - else: - commandmethod(self.cmds_async, self, options) - return False - else: - return False - except KeyboardInterrupt as exc: - self.finishAsyncCommand("Interrupted") - return False - except SystemExit as exc: - arg = exc.args[0] - if isinstance(arg, str): - self.finishAsyncCommand(arg) - else: - self.finishAsyncCommand("Exited with %s" % arg) - return False - except Exception as exc: - import traceback - if isinstance(exc, bb.BBHandledException): - self.finishAsyncCommand("") - else: - self.finishAsyncCommand(traceback.format_exc()) - return False - - def finishAsyncCommand(self, msg=None, code=None): - if msg or msg == "": - bb.event.fire(CommandFailed(msg), self.cooker.data) - elif code: - bb.event.fire(CommandExit(code), self.cooker.data) - else: - bb.event.fire(CommandCompleted(), self.cooker.data) - self.currentAsyncCommand = None - self.cooker.finishcommand() - - def reset(self): - self.remotedatastores = bb.remotedata.RemoteDatastores(self.cooker) - -def split_mc_pn(pn): - if pn.startswith("multiconfig:"): - _, mc, pn = pn.split(":", 2) - return (mc, pn) - return ('', pn) - -class CommandsSync: - """ - A class of synchronous commands - These should run quickly so as not to hurt interactive performance. - These must not influence any running synchronous command. - """ - - def stateShutdown(self, command, params): - """ - Trigger cooker 'shutdown' mode - """ - command.cooker.shutdown(False) - - def stateForceShutdown(self, command, params): - """ - Stop the cooker - """ - command.cooker.shutdown(True) - - def getAllKeysWithFlags(self, command, params): - """ - Returns a dump of the global state. Call with - variable flags to be retrieved as params. - """ - flaglist = params[0] - return command.cooker.getAllKeysWithFlags(flaglist) - getAllKeysWithFlags.readonly = True - - def getVariable(self, command, params): - """ - Read the value of a variable from data - """ - varname = params[0] - expand = True - if len(params) > 1: - expand = (params[1] == "True") - - return command.cooker.data.getVar(varname, expand) - getVariable.readonly = True - - def setVariable(self, command, params): - """ - Set the value of variable in data - """ - varname = params[0] - value = str(params[1]) - command.cooker.extraconfigdata[varname] = value - command.cooker.data.setVar(varname, value) - - def getSetVariable(self, command, params): - """ - Read the value of a variable from data and set it into the datastore - which effectively expands and locks the value. - """ - varname = params[0] - result = self.getVariable(command, params) - command.cooker.data.setVar(varname, result) - return result - - def setConfig(self, command, params): - """ - Set the value of variable in configuration - """ - varname = params[0] - value = str(params[1]) - setattr(command.cooker.configuration, varname, value) - - def enableDataTracking(self, command, params): - """ - Enable history tracking for variables - """ - command.cooker.enableDataTracking() - - def disableDataTracking(self, command, params): - """ - Disable history tracking for variables - """ - command.cooker.disableDataTracking() - - def setPrePostConfFiles(self, command, params): - prefiles = params[0].split() - postfiles = params[1].split() - command.cooker.configuration.prefile = prefiles - command.cooker.configuration.postfile = postfiles - setPrePostConfFiles.needconfig = False - - def matchFile(self, command, params): - fMatch = params[0] - return command.cooker.matchFile(fMatch) - matchFile.needconfig = False - - def getUIHandlerNum(self, command, params): - return bb.event.get_uihandler() - getUIHandlerNum.needconfig = False - getUIHandlerNum.readonly = True - - def setEventMask(self, command, params): - handlerNum = params[0] - llevel = params[1] - debug_domains = params[2] - mask = params[3] - return bb.event.set_UIHmask(handlerNum, llevel, debug_domains, mask) - setEventMask.needconfig = False - setEventMask.readonly = True - - def setFeatures(self, command, params): - """ - Set the cooker features to include the passed list of features - """ - features = params[0] - command.cooker.setFeatures(features) - setFeatures.needconfig = False - # although we change the internal state of the cooker, this is transparent since - # we always take and leave the cooker in state.initial - setFeatures.readonly = True - - def updateConfig(self, command, params): - options = params[0] - environment = params[1] - cmdline = params[2] - command.cooker.updateConfigOpts(options, environment, cmdline) - updateConfig.needconfig = False - - def parseConfiguration(self, command, params): - """Instruct bitbake to parse its configuration - NOTE: it is only necessary to call this if you aren't calling any normal action - (otherwise parsing is taken care of automatically) - """ - command.cooker.parseConfiguration() - parseConfiguration.needconfig = False - - def getLayerPriorities(self, command, params): - command.cooker.parseConfiguration() - ret = [] - # regex objects cannot be marshalled by xmlrpc - for collection, pattern, regex, pri in command.cooker.bbfile_config_priorities: - ret.append((collection, pattern, regex.pattern, pri)) - return ret - getLayerPriorities.readonly = True - - def getRecipes(self, command, params): - try: - mc = params[0] - except IndexError: - mc = '' - return list(command.cooker.recipecaches[mc].pkg_pn.items()) - getRecipes.readonly = True - - def getRecipeDepends(self, command, params): - try: - mc = params[0] - except IndexError: - mc = '' - return list(command.cooker.recipecaches[mc].deps.items()) - getRecipeDepends.readonly = True - - def getRecipeVersions(self, command, params): - try: - mc = params[0] - except IndexError: - mc = '' - return command.cooker.recipecaches[mc].pkg_pepvpr - getRecipeVersions.readonly = True - - def getRecipeProvides(self, command, params): - try: - mc = params[0] - except IndexError: - mc = '' - return command.cooker.recipecaches[mc].fn_provides - getRecipeProvides.readonly = True - - def getRecipePackages(self, command, params): - try: - mc = params[0] - except IndexError: - mc = '' - return command.cooker.recipecaches[mc].packages - getRecipePackages.readonly = True - - def getRecipePackagesDynamic(self, command, params): - try: - mc = params[0] - except IndexError: - mc = '' - return command.cooker.recipecaches[mc].packages_dynamic - getRecipePackagesDynamic.readonly = True - - def getRProviders(self, command, params): - try: - mc = params[0] - except IndexError: - mc = '' - return command.cooker.recipecaches[mc].rproviders - getRProviders.readonly = True - - def getRuntimeDepends(self, command, params): - ret = [] - try: - mc = params[0] - except IndexError: - mc = '' - rundeps = command.cooker.recipecaches[mc].rundeps - for key, value in rundeps.items(): - if isinstance(value, defaultdict): - value = dict(value) - ret.append((key, value)) - return ret - getRuntimeDepends.readonly = True - - def getRuntimeRecommends(self, command, params): - ret = [] - try: - mc = params[0] - except IndexError: - mc = '' - runrecs = command.cooker.recipecaches[mc].runrecs - for key, value in runrecs.items(): - if isinstance(value, defaultdict): - value = dict(value) - ret.append((key, value)) - return ret - getRuntimeRecommends.readonly = True - - def getRecipeInherits(self, command, params): - try: - mc = params[0] - except IndexError: - mc = '' - return command.cooker.recipecaches[mc].inherits - getRecipeInherits.readonly = True - - def getBbFilePriority(self, command, params): - try: - mc = params[0] - except IndexError: - mc = '' - return command.cooker.recipecaches[mc].bbfile_priority - getBbFilePriority.readonly = True - - def getDefaultPreference(self, command, params): - try: - mc = params[0] - except IndexError: - mc = '' - return command.cooker.recipecaches[mc].pkg_dp - getDefaultPreference.readonly = True - - def getSkippedRecipes(self, command, params): - # Return list sorted by reverse priority order - import bb.cache - skipdict = OrderedDict(sorted(command.cooker.skiplist.items(), - key=lambda x: (-command.cooker.collection.calc_bbfile_priority(bb.cache.virtualfn2realfn(x[0])[0]), x[0]))) - return list(skipdict.items()) - getSkippedRecipes.readonly = True - - def getOverlayedRecipes(self, command, params): - return list(command.cooker.collection.overlayed.items()) - getOverlayedRecipes.readonly = True - - def getFileAppends(self, command, params): - fn = params[0] - return command.cooker.collection.get_file_appends(fn) - getFileAppends.readonly = True - - def getAllAppends(self, command, params): - return command.cooker.collection.bbappends - getAllAppends.readonly = True - - def findProviders(self, command, params): - return command.cooker.findProviders() - findProviders.readonly = True - - def findBestProvider(self, command, params): - (mc, pn) = split_mc_pn(params[0]) - return command.cooker.findBestProvider(pn, mc) - findBestProvider.readonly = True - - def allProviders(self, command, params): - try: - mc = params[0] - except IndexError: - mc = '' - return list(bb.providers.allProviders(command.cooker.recipecaches[mc]).items()) - allProviders.readonly = True - - def getRuntimeProviders(self, command, params): - rprovide = params[0] - try: - mc = params[1] - except IndexError: - mc = '' - all_p = bb.providers.getRuntimeProviders(command.cooker.recipecaches[mc], rprovide) - if all_p: - best = bb.providers.filterProvidersRunTime(all_p, rprovide, - command.cooker.data, - command.cooker.recipecaches[mc])[0][0] - else: - best = None - return all_p, best - getRuntimeProviders.readonly = True - - def dataStoreConnectorFindVar(self, command, params): - dsindex = params[0] - name = params[1] - datastore = command.remotedatastores[dsindex] - value, overridedata = datastore._findVar(name) - - if value: - content = value.get('_content', None) - if isinstance(content, bb.data_smart.DataSmart): - # Value is a datastore (e.g. BB_ORIGENV) - need to handle this carefully - idx = command.remotedatastores.check_store(content, True) - return {'_content': DataStoreConnectionHandle(idx), - '_connector_origtype': 'DataStoreConnectionHandle', - '_connector_overrides': overridedata} - elif isinstance(content, set): - return {'_content': list(content), - '_connector_origtype': 'set', - '_connector_overrides': overridedata} - else: - value['_connector_overrides'] = overridedata - else: - value = {} - value['_connector_overrides'] = overridedata - return value - dataStoreConnectorFindVar.readonly = True - - def dataStoreConnectorGetKeys(self, command, params): - dsindex = params[0] - datastore = command.remotedatastores[dsindex] - return list(datastore.keys()) - dataStoreConnectorGetKeys.readonly = True - - def dataStoreConnectorGetVarHistory(self, command, params): - dsindex = params[0] - name = params[1] - datastore = command.remotedatastores[dsindex] - return datastore.varhistory.variable(name) - dataStoreConnectorGetVarHistory.readonly = True - - def dataStoreConnectorExpandPythonRef(self, command, params): - config_data_dict = params[0] - varname = params[1] - expr = params[2] - - config_data = command.remotedatastores.receive_datastore(config_data_dict) - - varparse = bb.data_smart.VariableParse(varname, config_data) - return varparse.python_sub(expr) - - def dataStoreConnectorRelease(self, command, params): - dsindex = params[0] - if dsindex <= 0: - raise CommandError('dataStoreConnectorRelease: invalid index %d' % dsindex) - command.remotedatastores.release(dsindex) - - def dataStoreConnectorSetVarFlag(self, command, params): - dsindex = params[0] - name = params[1] - flag = params[2] - value = params[3] - datastore = command.remotedatastores[dsindex] - datastore.setVarFlag(name, flag, value) - - def dataStoreConnectorDelVar(self, command, params): - dsindex = params[0] - name = params[1] - datastore = command.remotedatastores[dsindex] - if len(params) > 2: - flag = params[2] - datastore.delVarFlag(name, flag) - else: - datastore.delVar(name) - - def dataStoreConnectorRenameVar(self, command, params): - dsindex = params[0] - name = params[1] - newname = params[2] - datastore = command.remotedatastores[dsindex] - datastore.renameVar(name, newname) - - def parseRecipeFile(self, command, params): - """ - Parse the specified recipe file (with or without bbappends) - and return a datastore object representing the environment - for the recipe. - """ - fn = params[0] - appends = params[1] - appendlist = params[2] - if len(params) > 3: - config_data_dict = params[3] - config_data = command.remotedatastores.receive_datastore(config_data_dict) - else: - config_data = None - - if appends: - if appendlist is not None: - appendfiles = appendlist - else: - appendfiles = command.cooker.collection.get_file_appends(fn) - else: - appendfiles = [] - # We are calling bb.cache locally here rather than on the server, - # but that's OK because it doesn't actually need anything from - # the server barring the global datastore (which we have a remote - # version of) - if config_data: - # We have to use a different function here if we're passing in a datastore - # NOTE: we took a copy above, so we don't do it here again - envdata = bb.cache.parse_recipe(config_data, fn, appendfiles)[''] - else: - # Use the standard path - parser = bb.cache.NoCache(command.cooker.databuilder) - envdata = parser.loadDataFull(fn, appendfiles) - idx = command.remotedatastores.store(envdata) - return DataStoreConnectionHandle(idx) - parseRecipeFile.readonly = True - -class CommandsAsync: - """ - A class of asynchronous commands - These functions communicate via generated events. - Any function that requires metadata parsing should be here. - """ - - def buildFile(self, command, params): - """ - Build a single specified .bb file - """ - bfile = params[0] - task = params[1] - if len(params) > 2: - internal = params[2] - else: - internal = False - - if internal: - command.cooker.buildFileInternal(bfile, task, fireevents=False, quietlog=True) - else: - command.cooker.buildFile(bfile, task) - buildFile.needcache = False - - def buildTargets(self, command, params): - """ - Build a set of targets - """ - pkgs_to_build = params[0] - task = params[1] - - command.cooker.buildTargets(pkgs_to_build, task) - buildTargets.needcache = True - - def generateDepTreeEvent(self, command, params): - """ - Generate an event containing the dependency information - """ - pkgs_to_build = params[0] - task = params[1] - - command.cooker.generateDepTreeEvent(pkgs_to_build, task) - command.finishAsyncCommand() - generateDepTreeEvent.needcache = True - - def generateDotGraph(self, command, params): - """ - Dump dependency information to disk as .dot files - """ - pkgs_to_build = params[0] - task = params[1] - - command.cooker.generateDotGraphFiles(pkgs_to_build, task) - command.finishAsyncCommand() - generateDotGraph.needcache = True - - def generateTargetsTree(self, command, params): - """ - Generate a tree of buildable targets. - If klass is provided ensure all recipes that inherit the class are - included in the package list. - If pkg_list provided use that list (plus any extras brought in by - klass) rather than generating a tree for all packages. - """ - klass = params[0] - pkg_list = params[1] - - command.cooker.generateTargetsTree(klass, pkg_list) - command.finishAsyncCommand() - generateTargetsTree.needcache = True - - def findConfigFiles(self, command, params): - """ - Find config files which provide appropriate values - for the passed configuration variable. i.e. MACHINE - """ - varname = params[0] - - command.cooker.findConfigFiles(varname) - command.finishAsyncCommand() - findConfigFiles.needcache = False - - def findFilesMatchingInDir(self, command, params): - """ - Find implementation files matching the specified pattern - in the requested subdirectory of a BBPATH - """ - pattern = params[0] - directory = params[1] - - command.cooker.findFilesMatchingInDir(pattern, directory) - command.finishAsyncCommand() - findFilesMatchingInDir.needcache = False - - def findConfigFilePath(self, command, params): - """ - Find the path of the requested configuration file - """ - configfile = params[0] - - command.cooker.findConfigFilePath(configfile) - command.finishAsyncCommand() - findConfigFilePath.needcache = False - - def showVersions(self, command, params): - """ - Show the currently selected versions - """ - command.cooker.showVersions() - command.finishAsyncCommand() - showVersions.needcache = True - - def showEnvironmentTarget(self, command, params): - """ - Print the environment of a target recipe - (needs the cache to work out which recipe to use) - """ - pkg = params[0] - - command.cooker.showEnvironment(None, pkg) - command.finishAsyncCommand() - showEnvironmentTarget.needcache = True - - def showEnvironment(self, command, params): - """ - Print the standard environment - or if specified the environment for a specified recipe - """ - bfile = params[0] - - command.cooker.showEnvironment(bfile) - command.finishAsyncCommand() - showEnvironment.needcache = False - - def parseFiles(self, command, params): - """ - Parse the .bb files - """ - command.cooker.updateCache() - command.finishAsyncCommand() - parseFiles.needcache = True - - def compareRevisions(self, command, params): - """ - Parse the .bb files - """ - if bb.fetch.fetcher_compare_revisions(command.cooker.data): - command.finishAsyncCommand(code=1) - else: - command.finishAsyncCommand() - compareRevisions.needcache = True - - def triggerEvent(self, command, params): - """ - Trigger a certain event - """ - event = params[0] - bb.event.fire(eval(event), command.cooker.data) - command.currentAsyncCommand = None - triggerEvent.needcache = False - - def resetCooker(self, command, params): - """ - Reset the cooker to its initial state, thus forcing a reparse for - any async command that has the needcache property set to True - """ - command.cooker.reset() - command.finishAsyncCommand() - resetCooker.needcache = False - - def clientComplete(self, command, params): - """ - Do the right thing when the controlling client exits - """ - command.cooker.clientComplete() - command.finishAsyncCommand() - clientComplete.needcache = False - - def findSigInfo(self, command, params): - """ - Find signature info files via the signature generator - """ - pn = params[0] - taskname = params[1] - sigs = params[2] - res = bb.siggen.find_siginfo(pn, taskname, sigs, command.cooker.data) - bb.event.fire(bb.event.FindSigInfoResult(res), command.cooker.data) - command.finishAsyncCommand() - findSigInfo.needcache = False diff --git a/poky/bitbake/lib/bb/compat.py b/poky/bitbake/lib/bb/compat.py deleted file mode 100644 index de1923d..0000000 --- a/poky/bitbake/lib/bb/compat.py +++ /dev/null @@ -1,6 +0,0 @@ -"""Code pulled from future python versions, here for compatibility""" - -from collections import MutableMapping, KeysView, ValuesView, ItemsView, OrderedDict -from functools import total_ordering - - diff --git a/poky/bitbake/lib/bb/cooker.py b/poky/bitbake/lib/bb/cooker.py deleted file mode 100644 index 28717f4..0000000 --- a/poky/bitbake/lib/bb/cooker.py +++ /dev/null @@ -1,2157 +0,0 @@ -#!/usr/bin/env python -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2003, 2004 Phil Blundell -# Copyright (C) 2003 - 2005 Michael 'Mickey' Lauer -# Copyright (C) 2005 Holger Hans Peter Freyther -# Copyright (C) 2005 ROAD GmbH -# Copyright (C) 2006 - 2007 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - - -import sys, os, glob, os.path, re, time -import atexit -import itertools -import logging -import multiprocessing -import sre_constants -import threading -from io import StringIO, UnsupportedOperation -from contextlib import closing -from functools import wraps -from collections import defaultdict, namedtuple -import bb, bb.exceptions, bb.command -from bb import utils, data, parse, event, cache, providers, taskdata, runqueue, build -import queue -import signal -import subprocess -import errno -import prserv.serv -import pyinotify -import json -import pickle -import codecs - -logger = logging.getLogger("BitBake") -collectlog = logging.getLogger("BitBake.Collection") -buildlog = logging.getLogger("BitBake.Build") -parselog = logging.getLogger("BitBake.Parsing") -providerlog = logging.getLogger("BitBake.Provider") - -class NoSpecificMatch(bb.BBHandledException): - """ - Exception raised when no or multiple file matches are found - """ - -class NothingToBuild(Exception): - """ - Exception raised when there is nothing to build - """ - -class CollectionError(bb.BBHandledException): - """ - Exception raised when layer configuration is incorrect - """ - -class state: - initial, parsing, running, shutdown, forceshutdown, stopped, error = list(range(7)) - - @classmethod - def get_name(cls, code): - for name in dir(cls): - value = getattr(cls, name) - if type(value) == type(cls.initial) and value == code: - return name - raise ValueError("Invalid status code: %s" % code) - - -class SkippedPackage: - def __init__(self, info = None, reason = None): - self.pn = None - self.skipreason = None - self.provides = None - self.rprovides = None - - if info: - self.pn = info.pn - self.skipreason = info.skipreason - self.provides = info.provides - self.rprovides = info.rprovides - elif reason: - self.skipreason = reason - - -class CookerFeatures(object): - _feature_list = [HOB_EXTRA_CACHES, BASEDATASTORE_TRACKING, SEND_SANITYEVENTS] = list(range(3)) - - def __init__(self): - self._features=set() - - def setFeature(self, f): - # validate we got a request for a feature we support - if f not in CookerFeatures._feature_list: - return - self._features.add(f) - - def __contains__(self, f): - return f in self._features - - def __iter__(self): - return self._features.__iter__() - - def __next__(self): - return next(self._features) - - -class EventWriter: - def __init__(self, cooker, eventfile): - self.file_inited = None - self.cooker = cooker - self.eventfile = eventfile - self.event_queue = [] - - def write_event(self, event): - with open(self.eventfile, "a") as f: - try: - str_event = codecs.encode(pickle.dumps(event), 'base64').decode('utf-8') - f.write("%s\n" % json.dumps({"class": event.__module__ + "." + event.__class__.__name__, - "vars": str_event})) - except Exception as err: - import traceback - print(err, traceback.format_exc()) - - def send(self, event): - if self.file_inited: - # we have the file, just write the event - self.write_event(event) - else: - # init on bb.event.BuildStarted - name = "%s.%s" % (event.__module__, event.__class__.__name__) - if name in ("bb.event.BuildStarted", "bb.cooker.CookerExit"): - with open(self.eventfile, "w") as f: - f.write("%s\n" % json.dumps({ "allvariables" : self.cooker.getAllKeysWithFlags(["doc", "func"])})) - - self.file_inited = True - - # write pending events - for evt in self.event_queue: - self.write_event(evt) - - # also write the current event - self.write_event(event) - else: - # queue all events until the file is inited - self.event_queue.append(event) - -#============================================================================# -# BBCooker -#============================================================================# -class BBCooker: - """ - Manages one bitbake build run - """ - - def __init__(self, configuration, featureSet=None): - self.recipecaches = None - self.skiplist = {} - self.featureset = CookerFeatures() - if featureSet: - for f in featureSet: - self.featureset.setFeature(f) - - self.configuration = configuration - - self.configwatcher = pyinotify.WatchManager() - self.configwatcher.bbseen = [] - self.configwatcher.bbwatchedfiles = [] - self.confignotifier = pyinotify.Notifier(self.configwatcher, self.config_notifications) - self.watchmask = pyinotify.IN_CLOSE_WRITE | pyinotify.IN_CREATE | pyinotify.IN_DELETE | \ - pyinotify.IN_DELETE_SELF | pyinotify.IN_MODIFY | pyinotify.IN_MOVE_SELF | \ - pyinotify.IN_MOVED_FROM | pyinotify.IN_MOVED_TO - self.watcher = pyinotify.WatchManager() - self.watcher.bbseen = [] - self.watcher.bbwatchedfiles = [] - self.notifier = pyinotify.Notifier(self.watcher, self.notifications) - - # If being called by something like tinfoil, we need to clean cached data - # which may now be invalid - bb.parse.clear_cache() - bb.parse.BBHandler.cached_statements = {} - - self.ui_cmdline = None - - self.initConfigurationData() - - # we log all events to a file if so directed - if self.configuration.writeeventlog: - # register the log file writer as UI Handler - writer = EventWriter(self, self.configuration.writeeventlog) - EventLogWriteHandler = namedtuple('EventLogWriteHandler', ['event']) - bb.event.register_UIHhandler(EventLogWriteHandler(writer)) - - self.inotify_modified_files = [] - - def _process_inotify_updates(server, cooker, abort): - cooker.process_inotify_updates() - return 1.0 - - self.configuration.server_register_idlecallback(_process_inotify_updates, self) - - # TOSTOP must not be set or our children will hang when they output - try: - fd = sys.stdout.fileno() - if os.isatty(fd): - import termios - tcattr = termios.tcgetattr(fd) - if tcattr[3] & termios.TOSTOP: - buildlog.info("The terminal had the TOSTOP bit set, clearing...") - tcattr[3] = tcattr[3] & ~termios.TOSTOP - termios.tcsetattr(fd, termios.TCSANOW, tcattr) - except UnsupportedOperation: - pass - - self.command = bb.command.Command(self) - self.state = state.initial - - self.parser = None - - signal.signal(signal.SIGTERM, self.sigterm_exception) - # Let SIGHUP exit as SIGTERM - signal.signal(signal.SIGHUP, self.sigterm_exception) - - def process_inotify_updates(self): - for n in [self.confignotifier, self.notifier]: - if n.check_events(timeout=0): - # read notified events and enqeue them - n.read_events() - n.process_events() - - def config_notifications(self, event): - if event.maskname == "IN_Q_OVERFLOW": - bb.warn("inotify event queue overflowed, invalidating caches.") - self.parsecache_valid = False - self.baseconfig_valid = False - bb.parse.clear_cache() - return - if not event.pathname in self.configwatcher.bbwatchedfiles: - return - if not event.pathname in self.inotify_modified_files: - self.inotify_modified_files.append(event.pathname) - self.baseconfig_valid = False - - def notifications(self, event): - if event.maskname == "IN_Q_OVERFLOW": - bb.warn("inotify event queue overflowed, invalidating caches.") - self.parsecache_valid = False - bb.parse.clear_cache() - return - if event.pathname.endswith("bitbake-cookerdaemon.log") \ - or event.pathname.endswith("bitbake.lock"): - return - if not event.pathname in self.inotify_modified_files: - self.inotify_modified_files.append(event.pathname) - self.parsecache_valid = False - - def add_filewatch(self, deps, watcher=None, dirs=False): - if not watcher: - watcher = self.watcher - for i in deps: - watcher.bbwatchedfiles.append(i[0]) - if dirs: - f = i[0] - else: - f = os.path.dirname(i[0]) - if f in watcher.bbseen: - continue - watcher.bbseen.append(f) - watchtarget = None - while True: - # We try and add watches for files that don't exist but if they did, would influence - # the parser. The parent directory of these files may not exist, in which case we need - # to watch any parent that does exist for changes. - try: - watcher.add_watch(f, self.watchmask, quiet=False) - if watchtarget: - watcher.bbwatchedfiles.append(watchtarget) - break - except pyinotify.WatchManagerError as e: - if 'ENOENT' in str(e): - watchtarget = f - f = os.path.dirname(f) - if f in watcher.bbseen: - break - watcher.bbseen.append(f) - continue - if 'ENOSPC' in str(e): - providerlog.error("No space left on device or exceeds fs.inotify.max_user_watches?") - providerlog.error("To check max_user_watches: sysctl -n fs.inotify.max_user_watches.") - providerlog.error("To modify max_user_watches: sysctl -n -w fs.inotify.max_user_watches=<value>.") - providerlog.error("Root privilege is required to modify max_user_watches.") - raise - - def sigterm_exception(self, signum, stackframe): - if signum == signal.SIGTERM: - bb.warn("Cooker received SIGTERM, shutting down...") - elif signum == signal.SIGHUP: - bb.warn("Cooker received SIGHUP, shutting down...") - self.state = state.forceshutdown - - def setFeatures(self, features): - # we only accept a new feature set if we're in state initial, so we can reset without problems - if not self.state in [state.initial, state.shutdown, state.forceshutdown, state.stopped, state.error]: - raise Exception("Illegal state for feature set change") - original_featureset = list(self.featureset) - for feature in features: - self.featureset.setFeature(feature) - bb.debug(1, "Features set %s (was %s)" % (original_featureset, list(self.featureset))) - if (original_featureset != list(self.featureset)) and self.state != state.error: - self.reset() - - def initConfigurationData(self): - - self.state = state.initial - self.caches_array = [] - - # Need to preserve BB_CONSOLELOG over resets - consolelog = None - if hasattr(self, "data"): - consolelog = self.data.getVar("BB_CONSOLELOG") - - if CookerFeatures.BASEDATASTORE_TRACKING in self.featureset: - self.enableDataTracking() - - all_extra_cache_names = [] - # We hardcode all known cache types in a single place, here. - if CookerFeatures.HOB_EXTRA_CACHES in self.featureset: - all_extra_cache_names.append("bb.cache_extra:HobRecipeInfo") - - caches_name_array = ['bb.cache:CoreRecipeInfo'] + all_extra_cache_names - - # At least CoreRecipeInfo will be loaded, so caches_array will never be empty! - # This is the entry point, no further check needed! - for var in caches_name_array: - try: - module_name, cache_name = var.split(':') - module = __import__(module_name, fromlist=(cache_name,)) - self.caches_array.append(getattr(module, cache_name)) - except ImportError as exc: - logger.critical("Unable to import extra RecipeInfo '%s' from '%s': %s" % (cache_name, module_name, exc)) - sys.exit("FATAL: Failed to import extra cache class '%s'." % cache_name) - - self.databuilder = bb.cookerdata.CookerDataBuilder(self.configuration, False) - self.databuilder.parseBaseConfiguration() - self.data = self.databuilder.data - self.data_hash = self.databuilder.data_hash - self.extraconfigdata = {} - - if consolelog: - self.data.setVar("BB_CONSOLELOG", consolelog) - - self.data.setVar('BB_CMDLINE', self.ui_cmdline) - - # - # Copy of the data store which has been expanded. - # Used for firing events and accessing variables where expansion needs to be accounted for - # - bb.parse.init_parser(self.data) - - if CookerFeatures.BASEDATASTORE_TRACKING in self.featureset: - self.disableDataTracking() - - self.data.renameVar("__depends", "__base_depends") - self.add_filewatch(self.data.getVar("__base_depends", False), self.configwatcher) - - self.baseconfig_valid = True - self.parsecache_valid = False - - def handlePRServ(self): - # Setup a PR Server based on the new configuration - try: - self.prhost = prserv.serv.auto_start(self.data) - except prserv.serv.PRServiceConfigError as e: - bb.fatal("Unable to start PR Server, exitting") - - def enableDataTracking(self): - self.configuration.tracking = True - if hasattr(self, "data"): - self.data.enableTracking() - - def disableDataTracking(self): - self.configuration.tracking = False - if hasattr(self, "data"): - self.data.disableTracking() - - def parseConfiguration(self): - # Set log file verbosity - verboselogs = bb.utils.to_boolean(self.data.getVar("BB_VERBOSE_LOGS", False)) - if verboselogs: - bb.msg.loggerVerboseLogs = True - - # Change nice level if we're asked to - nice = self.data.getVar("BB_NICE_LEVEL") - if nice: - curnice = os.nice(0) - nice = int(nice) - curnice - buildlog.verbose("Renice to %s " % os.nice(nice)) - - if self.recipecaches: - del self.recipecaches - self.multiconfigs = self.databuilder.mcdata.keys() - self.recipecaches = {} - for mc in self.multiconfigs: - self.recipecaches[mc] = bb.cache.CacheData(self.caches_array) - - self.handleCollections(self.data.getVar("BBFILE_COLLECTIONS")) - - self.parsecache_valid = False - - def updateConfigOpts(self, options, environment, cmdline): - self.ui_cmdline = cmdline - clean = True - for o in options: - if o in ['prefile', 'postfile']: - # Only these options may require a reparse - try: - if getattr(self.configuration, o) == options[o]: - # Value is the same, no need to mark dirty - continue - except AttributeError: - pass - logger.debug(1, "Marking as dirty due to '%s' option change to '%s'" % (o, options[o])) - print("Marking as dirty due to '%s' option change to '%s'" % (o, options[o])) - clean = False - setattr(self.configuration, o, options[o]) - for k in bb.utils.approved_variables(): - if k in environment and k not in self.configuration.env: - logger.debug(1, "Updating new environment variable %s to %s" % (k, environment[k])) - self.configuration.env[k] = environment[k] - clean = False - if k in self.configuration.env and k not in environment: - logger.debug(1, "Updating environment variable %s (deleted)" % (k)) - del self.configuration.env[k] - clean = False - if k not in self.configuration.env and k not in environment: - continue - if environment[k] != self.configuration.env[k]: - logger.debug(1, "Updating environment variable %s from %s to %s" % (k, self.configuration.env[k], environment[k])) - self.configuration.env[k] = environment[k] - clean = False - if not clean: - logger.debug(1, "Base environment change, triggering reparse") - self.reset() - - def runCommands(self, server, data, abort): - """ - Run any queued asynchronous command - This is done by the idle handler so it runs in true context rather than - tied to any UI. - """ - - return self.command.runAsyncCommand() - - def showVersions(self): - - (latest_versions, preferred_versions) = self.findProviders() - - logger.plain("%-35s %25s %25s", "Recipe Name", "Latest Version", "Preferred Version") - logger.plain("%-35s %25s %25s\n", "===========", "==============", "=================") - - for p in sorted(self.recipecaches[''].pkg_pn): - pref = preferred_versions[p] - latest = latest_versions[p] - - prefstr = pref[0][0] + ":" + pref[0][1] + '-' + pref[0][2] - lateststr = latest[0][0] + ":" + latest[0][1] + "-" + latest[0][2] - - if pref == latest: - prefstr = "" - - logger.plain("%-35s %25s %25s", p, lateststr, prefstr) - - def showEnvironment(self, buildfile=None, pkgs_to_build=None): - """ - Show the outer or per-recipe environment - """ - fn = None - envdata = None - if not pkgs_to_build: - pkgs_to_build = [] - - orig_tracking = self.configuration.tracking - if not orig_tracking: - self.enableDataTracking() - self.reset() - - - if buildfile: - # Parse the configuration here. We need to do it explicitly here since - # this showEnvironment() code path doesn't use the cache - self.parseConfiguration() - - fn, cls, mc = bb.cache.virtualfn2realfn(buildfile) - fn = self.matchFile(fn) - fn = bb.cache.realfn2virtual(fn, cls, mc) - elif len(pkgs_to_build) == 1: - ignore = self.data.getVar("ASSUME_PROVIDED") or "" - if pkgs_to_build[0] in set(ignore.split()): - bb.fatal("%s is in ASSUME_PROVIDED" % pkgs_to_build[0]) - - taskdata, runlist = self.buildTaskData(pkgs_to_build, None, self.configuration.abort, allowincomplete=True) - - mc = runlist[0][0] - fn = runlist[0][3] - else: - envdata = self.data - - if fn: - try: - bb_cache = bb.cache.Cache(self.databuilder, self.data_hash, self.caches_array) - envdata = bb_cache.loadDataFull(fn, self.collection.get_file_appends(fn)) - except Exception as e: - parselog.exception("Unable to read %s", fn) - raise - - # Display history - with closing(StringIO()) as env: - self.data.inchistory.emit(env) - logger.plain(env.getvalue()) - - # emit variables and shell functions - with closing(StringIO()) as env: - data.emit_env(env, envdata, True) - logger.plain(env.getvalue()) - - # emit the metadata which isnt valid shell - data.expandKeys(envdata) - for e in sorted(envdata.keys()): - if envdata.getVarFlag(e, 'func', False) and envdata.getVarFlag(e, 'python', False): - logger.plain("\npython %s () {\n%s}\n", e, envdata.getVar(e, False)) - - if not orig_tracking: - self.disableDataTracking() - self.reset() - - def buildTaskData(self, pkgs_to_build, task, abort, allowincomplete=False): - """ - Prepare a runqueue and taskdata object for iteration over pkgs_to_build - """ - bb.event.fire(bb.event.TreeDataPreparationStarted(), self.data) - - # A task of None means use the default task - if task is None: - task = self.configuration.cmd - if not task.startswith("do_"): - task = "do_%s" % task - - targetlist = self.checkPackages(pkgs_to_build, task) - fulltargetlist = [] - defaulttask_implicit = '' - defaulttask_explicit = False - wildcard = False - - # Wild card expansion: - # Replace string such as "multiconfig:*:bash" - # into "multiconfig:A:bash multiconfig:B:bash bash" - for k in targetlist: - if k.startswith("multiconfig:"): - if wildcard: - bb.fatal('multiconfig conflict') - if k.split(":")[1] == "*": - wildcard = True - for mc in self.multiconfigs: - if mc: - fulltargetlist.append(k.replace('*', mc)) - # implicit default task - else: - defaulttask_implicit = k.split(":")[2] - else: - fulltargetlist.append(k) - else: - defaulttask_explicit = True - fulltargetlist.append(k) - - if not defaulttask_explicit and defaulttask_implicit != '': - fulltargetlist.append(defaulttask_implicit) - - bb.debug(1,"Target list: %s" % (str(fulltargetlist))) - taskdata = {} - localdata = {} - - for mc in self.multiconfigs: - taskdata[mc] = bb.taskdata.TaskData(abort, skiplist=self.skiplist, allowincomplete=allowincomplete) - localdata[mc] = data.createCopy(self.databuilder.mcdata[mc]) - bb.data.expandKeys(localdata[mc]) - - current = 0 - runlist = [] - for k in fulltargetlist: - mc = "" - if k.startswith("multiconfig:"): - mc = k.split(":")[1] - k = ":".join(k.split(":")[2:]) - ktask = task - if ":do_" in k: - k2 = k.split(":do_") - k = k2[0] - ktask = k2[1] - taskdata[mc].add_provider(localdata[mc], self.recipecaches[mc], k) - current += 1 - if not ktask.startswith("do_"): - ktask = "do_%s" % ktask - if k not in taskdata[mc].build_targets or not taskdata[mc].build_targets[k]: - # e.g. in ASSUME_PROVIDED - continue - fn = taskdata[mc].build_targets[k][0] - runlist.append([mc, k, ktask, fn]) - bb.event.fire(bb.event.TreeDataPreparationProgress(current, len(fulltargetlist)), self.data) - - for mc in self.multiconfigs: - taskdata[mc].add_unresolved(localdata[mc], self.recipecaches[mc]) - - bb.event.fire(bb.event.TreeDataPreparationCompleted(len(fulltargetlist)), self.data) - return taskdata, runlist - - def prepareTreeData(self, pkgs_to_build, task): - """ - Prepare a runqueue and taskdata object for iteration over pkgs_to_build - """ - - # We set abort to False here to prevent unbuildable targets raising - # an exception when we're just generating data - taskdata, runlist = self.buildTaskData(pkgs_to_build, task, False, allowincomplete=True) - - return runlist, taskdata - - ######## WARNING : this function requires cache_extra to be enabled ######## - - def generateTaskDepTreeData(self, pkgs_to_build, task): - """ - Create a dependency graph of pkgs_to_build including reverse dependency - information. - """ - if not task.startswith("do_"): - task = "do_%s" % task - - runlist, taskdata = self.prepareTreeData(pkgs_to_build, task) - rq = bb.runqueue.RunQueue(self, self.data, self.recipecaches, taskdata, runlist) - rq.rqdata.prepare() - return self.buildDependTree(rq, taskdata) - - @staticmethod - def add_mc_prefix(mc, pn): - if mc: - return "multiconfig:%s:%s" % (mc, pn) - return pn - - def buildDependTree(self, rq, taskdata): - seen_fns = [] - depend_tree = {} - depend_tree["depends"] = {} - depend_tree["tdepends"] = {} - depend_tree["pn"] = {} - depend_tree["rdepends-pn"] = {} - depend_tree["packages"] = {} - depend_tree["rdepends-pkg"] = {} - depend_tree["rrecs-pkg"] = {} - depend_tree['providermap'] = {} - depend_tree["layer-priorities"] = self.bbfile_config_priorities - - for mc in taskdata: - for name, fn in list(taskdata[mc].get_providermap().items()): - pn = self.recipecaches[mc].pkg_fn[fn] - pn = self.add_mc_prefix(mc, pn) - if name != pn: - version = "%s:%s-%s" % self.recipecaches[mc].pkg_pepvpr[fn] - depend_tree['providermap'][name] = (pn, version) - - for tid in rq.rqdata.runtaskentries: - (mc, fn, taskname, taskfn) = bb.runqueue.split_tid_mcfn(tid) - pn = self.recipecaches[mc].pkg_fn[taskfn] - pn = self.add_mc_prefix(mc, pn) - version = "%s:%s-%s" % self.recipecaches[mc].pkg_pepvpr[taskfn] - if pn not in depend_tree["pn"]: - depend_tree["pn"][pn] = {} - depend_tree["pn"][pn]["filename"] = taskfn - depend_tree["pn"][pn]["version"] = version - depend_tree["pn"][pn]["inherits"] = self.recipecaches[mc].inherits.get(taskfn, None) - - # if we have extra caches, list all attributes they bring in - extra_info = [] - for cache_class in self.caches_array: - if type(cache_class) is type and issubclass(cache_class, bb.cache.RecipeInfoCommon) and hasattr(cache_class, 'cachefields'): - cachefields = getattr(cache_class, 'cachefields', []) - extra_info = extra_info + cachefields - - # for all attributes stored, add them to the dependency tree - for ei in extra_info: - depend_tree["pn"][pn][ei] = vars(self.recipecaches[mc])[ei][taskfn] - - - dotname = "%s.%s" % (pn, bb.runqueue.taskname_from_tid(tid)) - if not dotname in depend_tree["tdepends"]: - depend_tree["tdepends"][dotname] = [] - for dep in rq.rqdata.runtaskentries[tid].depends: - (depmc, depfn, deptaskname, deptaskfn) = bb.runqueue.split_tid_mcfn(dep) - deppn = self.recipecaches[mc].pkg_fn[deptaskfn] - depend_tree["tdepends"][dotname].append("%s.%s" % (deppn, bb.runqueue.taskname_from_tid(dep))) - if taskfn not in seen_fns: - seen_fns.append(taskfn) - packages = [] - - depend_tree["depends"][pn] = [] - for dep in taskdata[mc].depids[taskfn]: - depend_tree["depends"][pn].append(dep) - - depend_tree["rdepends-pn"][pn] = [] - for rdep in taskdata[mc].rdepids[taskfn]: - depend_tree["rdepends-pn"][pn].append(rdep) - - rdepends = self.recipecaches[mc].rundeps[taskfn] - for package in rdepends: - depend_tree["rdepends-pkg"][package] = [] - for rdepend in rdepends[package]: - depend_tree["rdepends-pkg"][package].append(rdepend) - packages.append(package) - - rrecs = self.recipecaches[mc].runrecs[taskfn] - for package in rrecs: - depend_tree["rrecs-pkg"][package] = [] - for rdepend in rrecs[package]: - depend_tree["rrecs-pkg"][package].append(rdepend) - if not package in packages: - packages.append(package) - - for package in packages: - if package not in depend_tree["packages"]: - depend_tree["packages"][package] = {} - depend_tree["packages"][package]["pn"] = pn - depend_tree["packages"][package]["filename"] = taskfn - depend_tree["packages"][package]["version"] = version - - return depend_tree - - ######## WARNING : this function requires cache_extra to be enabled ######## - def generatePkgDepTreeData(self, pkgs_to_build, task): - """ - Create a dependency tree of pkgs_to_build, returning the data. - """ - if not task.startswith("do_"): - task = "do_%s" % task - - _, taskdata = self.prepareTreeData(pkgs_to_build, task) - - seen_fns = [] - depend_tree = {} - depend_tree["depends"] = {} - depend_tree["pn"] = {} - depend_tree["rdepends-pn"] = {} - depend_tree["rdepends-pkg"] = {} - depend_tree["rrecs-pkg"] = {} - - # if we have extra caches, list all attributes they bring in - extra_info = [] - for cache_class in self.caches_array: - if type(cache_class) is type and issubclass(cache_class, bb.cache.RecipeInfoCommon) and hasattr(cache_class, 'cachefields'): - cachefields = getattr(cache_class, 'cachefields', []) - extra_info = extra_info + cachefields - - tids = [] - for mc in taskdata: - for tid in taskdata[mc].taskentries: - tids.append(tid) - - for tid in tids: - (mc, fn, taskname, taskfn) = bb.runqueue.split_tid_mcfn(tid) - - pn = self.recipecaches[mc].pkg_fn[taskfn] - pn = self.add_mc_prefix(mc, pn) - - if pn not in depend_tree["pn"]: - depend_tree["pn"][pn] = {} - depend_tree["pn"][pn]["filename"] = taskfn - version = "%s:%s-%s" % self.recipecaches[mc].pkg_pepvpr[taskfn] - depend_tree["pn"][pn]["version"] = version - rdepends = self.recipecaches[mc].rundeps[taskfn] - rrecs = self.recipecaches[mc].runrecs[taskfn] - depend_tree["pn"][pn]["inherits"] = self.recipecaches[mc].inherits.get(taskfn, None) - - # for all extra attributes stored, add them to the dependency tree - for ei in extra_info: - depend_tree["pn"][pn][ei] = vars(self.recipecaches[mc])[ei][taskfn] - - if taskfn not in seen_fns: - seen_fns.append(taskfn) - - depend_tree["depends"][pn] = [] - for dep in taskdata[mc].depids[taskfn]: - pn_provider = "" - if dep in taskdata[mc].build_targets and taskdata[mc].build_targets[dep]: - fn_provider = taskdata[mc].build_targets[dep][0] - pn_provider = self.recipecaches[mc].pkg_fn[fn_provider] - else: - pn_provider = dep - pn_provider = self.add_mc_prefix(mc, pn_provider) - depend_tree["depends"][pn].append(pn_provider) - - depend_tree["rdepends-pn"][pn] = [] - for rdep in taskdata[mc].rdepids[taskfn]: - pn_rprovider = "" - if rdep in taskdata[mc].run_targets and taskdata[mc].run_targets[rdep]: - fn_rprovider = taskdata[mc].run_targets[rdep][0] - pn_rprovider = self.recipecaches[mc].pkg_fn[fn_rprovider] - else: - pn_rprovider = rdep - pn_rprovider = self.add_mc_prefix(mc, pn_rprovider) - depend_tree["rdepends-pn"][pn].append(pn_rprovider) - - depend_tree["rdepends-pkg"].update(rdepends) - depend_tree["rrecs-pkg"].update(rrecs) - - return depend_tree - - def generateDepTreeEvent(self, pkgs_to_build, task): - """ - Create a task dependency graph of pkgs_to_build. - Generate an event with the result - """ - depgraph = self.generateTaskDepTreeData(pkgs_to_build, task) - bb.event.fire(bb.event.DepTreeGenerated(depgraph), self.data) - - def generateDotGraphFiles(self, pkgs_to_build, task): - """ - Create a task dependency graph of pkgs_to_build. - Save the result to a set of .dot files. - """ - - depgraph = self.generateTaskDepTreeData(pkgs_to_build, task) - - with open('pn-buildlist', 'w') as f: - for pn in depgraph["pn"]: - f.write(pn + "\n") - logger.info("PN build list saved to 'pn-buildlist'") - - # Remove old format output files to ensure no confusion with stale data - try: - os.unlink('pn-depends.dot') - except FileNotFoundError: - pass - try: - os.unlink('package-depends.dot') - except FileNotFoundError: - pass - - with open('task-depends.dot', 'w') as f: - f.write("digraph depends {\n") - for task in depgraph["tdepends"]: - (pn, taskname) = task.rsplit(".", 1) - fn = depgraph["pn"][pn]["filename"] - version = depgraph["pn"][pn]["version"] - f.write('"%s.%s" [label="%s %s\\n%s\\n%s"]\n' % (pn, taskname, pn, taskname, version, fn)) - for dep in depgraph["tdepends"][task]: - f.write('"%s" -> "%s"\n' % (task, dep)) - f.write("}\n") - logger.info("Task dependencies saved to 'task-depends.dot'") - - with open('recipe-depends.dot', 'w') as f: - f.write("digraph depends {\n") - pndeps = {} - for task in depgraph["tdepends"]: - (pn, taskname) = task.rsplit(".", 1) - if pn not in pndeps: - pndeps[pn] = set() - for dep in depgraph["tdepends"][task]: - (deppn, deptaskname) = dep.rsplit(".", 1) - pndeps[pn].add(deppn) - for pn in pndeps: - fn = depgraph["pn"][pn]["filename"] - version = depgraph["pn"][pn]["version"] - f.write('"%s" [label="%s\\n%s\\n%s"]\n' % (pn, pn, version, fn)) - for dep in pndeps[pn]: - if dep == pn: - continue - f.write('"%s" -> "%s"\n' % (pn, dep)) - f.write("}\n") - logger.info("Flattened recipe dependencies saved to 'recipe-depends.dot'") - - def show_appends_with_no_recipes(self): - # Determine which bbappends haven't been applied - - # First get list of recipes, including skipped - recipefns = list(self.recipecaches[''].pkg_fn.keys()) - recipefns.extend(self.skiplist.keys()) - - # Work out list of bbappends that have been applied - applied_appends = [] - for fn in recipefns: - applied_appends.extend(self.collection.get_file_appends(fn)) - - appends_without_recipes = [] - for _, appendfn in self.collection.bbappends: - if not appendfn in applied_appends: - appends_without_recipes.append(appendfn) - - if appends_without_recipes: - msg = 'No recipes available for:\n %s' % '\n '.join(appends_without_recipes) - warn_only = self.data.getVar("BB_DANGLINGAPPENDS_WARNONLY", \ - False) or "no" - if warn_only.lower() in ("1", "yes", "true"): - bb.warn(msg) - else: - bb.fatal(msg) - - def handlePrefProviders(self): - - for mc in self.multiconfigs: - localdata = data.createCopy(self.databuilder.mcdata[mc]) - bb.data.expandKeys(localdata) - - # Handle PREFERRED_PROVIDERS - for p in (localdata.getVar('PREFERRED_PROVIDERS') or "").split(): - try: - (providee, provider) = p.split(':') - except: - providerlog.critical("Malformed option in PREFERRED_PROVIDERS variable: %s" % p) - continue - if providee in self.recipecaches[mc].preferred and self.recipecaches[mc].preferred[providee] != provider: - providerlog.error("conflicting preferences for %s: both %s and %s specified", providee, provider, self.recipecaches[mc].preferred[providee]) - self.recipecaches[mc].preferred[providee] = provider - - def findConfigFilePath(self, configfile): - """ - Find the location on disk of configfile and if it exists and was parsed by BitBake - emit the ConfigFilePathFound event with the path to the file. - """ - path = bb.cookerdata.findConfigFile(configfile, self.data) - if not path: - return - - # Generate a list of parsed configuration files by searching the files - # listed in the __depends and __base_depends variables with a .conf suffix. - conffiles = [] - dep_files = self.data.getVar('__base_depends', False) or [] - dep_files = dep_files + (self.data.getVar('__depends', False) or []) - - for f in dep_files: - if f[0].endswith(".conf"): - conffiles.append(f[0]) - - _, conf, conffile = path.rpartition("conf/") - match = os.path.join(conf, conffile) - # Try and find matches for conf/conffilename.conf as we don't always - # have the full path to the file. - for cfg in conffiles: - if cfg.endswith(match): - bb.event.fire(bb.event.ConfigFilePathFound(path), - self.data) - break - - def findFilesMatchingInDir(self, filepattern, directory): - """ - Searches for files containing the substring 'filepattern' which are children of - 'directory' in each BBPATH. i.e. to find all rootfs package classes available - to BitBake one could call findFilesMatchingInDir(self, 'rootfs_', 'classes') - or to find all machine configuration files one could call: - findFilesMatchingInDir(self, '.conf', 'conf/machine') - """ - - matches = [] - bbpaths = self.data.getVar('BBPATH').split(':') - for path in bbpaths: - dirpath = os.path.join(path, directory) - if os.path.exists(dirpath): - for root, dirs, files in os.walk(dirpath): - for f in files: - if filepattern in f: - matches.append(f) - - if matches: - bb.event.fire(bb.event.FilesMatchingFound(filepattern, matches), self.data) - - def findProviders(self, mc=''): - return bb.providers.findProviders(self.data, self.recipecaches[mc], self.recipecaches[mc].pkg_pn) - - def findBestProvider(self, pn, mc=''): - if pn in self.recipecaches[mc].providers: - filenames = self.recipecaches[mc].providers[pn] - eligible, foundUnique = bb.providers.filterProviders(filenames, pn, self.data, self.recipecaches[mc]) - filename = eligible[0] - return None, None, None, filename - elif pn in self.recipecaches[mc].pkg_pn: - return bb.providers.findBestProvider(pn, self.data, self.recipecaches[mc], self.recipecaches[mc].pkg_pn) - else: - return None, None, None, None - - def findConfigFiles(self, varname): - """ - Find config files which are appropriate values for varname. - i.e. MACHINE, DISTRO - """ - possible = [] - var = varname.lower() - - data = self.data - # iterate configs - bbpaths = data.getVar('BBPATH').split(':') - for path in bbpaths: - confpath = os.path.join(path, "conf", var) - if os.path.exists(confpath): - for root, dirs, files in os.walk(confpath): - # get all child files, these are appropriate values - for f in files: - val, sep, end = f.rpartition('.') - if end == 'conf': - possible.append(val) - - if possible: - bb.event.fire(bb.event.ConfigFilesFound(var, possible), self.data) - - def findInheritsClass(self, klass): - """ - Find all recipes which inherit the specified class - """ - pkg_list = [] - - for pfn in self.recipecaches[''].pkg_fn: - inherits = self.recipecaches[''].inherits.get(pfn, None) - if inherits and klass in inherits: - pkg_list.append(self.recipecaches[''].pkg_fn[pfn]) - - return pkg_list - - def generateTargetsTree(self, klass=None, pkgs=None): - """ - Generate a dependency tree of buildable targets - Generate an event with the result - """ - # if the caller hasn't specified a pkgs list default to universe - if not pkgs: - pkgs = ['universe'] - # if inherited_class passed ensure all recipes which inherit the - # specified class are included in pkgs - if klass: - extra_pkgs = self.findInheritsClass(klass) - pkgs = pkgs + extra_pkgs - - # generate a dependency tree for all our packages - tree = self.generatePkgDepTreeData(pkgs, 'build') - bb.event.fire(bb.event.TargetsTreeGenerated(tree), self.data) - - def interactiveMode( self ): - """Drop off into a shell""" - try: - from bb import shell - except ImportError: - parselog.exception("Interactive mode not available") - sys.exit(1) - else: - shell.start( self ) - - - def handleCollections(self, collections): - """Handle collections""" - errors = False - self.bbfile_config_priorities = [] - if collections: - collection_priorities = {} - collection_depends = {} - collection_list = collections.split() - min_prio = 0 - for c in collection_list: - bb.debug(1,'Processing %s in collection list' % (c)) - - # Get collection priority if defined explicitly - priority = self.data.getVar("BBFILE_PRIORITY_%s" % c) - if priority: - try: - prio = int(priority) - except ValueError: - parselog.error("invalid value for BBFILE_PRIORITY_%s: \"%s\"", c, priority) - errors = True - if min_prio == 0 or prio < min_prio: - min_prio = prio - collection_priorities[c] = prio - else: - collection_priorities[c] = None - - # Check dependencies and store information for priority calculation - deps = self.data.getVar("LAYERDEPENDS_%s" % c) - if deps: - try: - depDict = bb.utils.explode_dep_versions2(deps) - except bb.utils.VersionStringException as vse: - bb.fatal('Error parsing LAYERDEPENDS_%s: %s' % (c, str(vse))) - for dep, oplist in list(depDict.items()): - if dep in collection_list: - for opstr in oplist: - layerver = self.data.getVar("LAYERVERSION_%s" % dep) - (op, depver) = opstr.split() - if layerver: - try: - res = bb.utils.vercmp_string_op(layerver, depver, op) - except bb.utils.VersionStringException as vse: - bb.fatal('Error parsing LAYERDEPENDS_%s: %s' % (c, str(vse))) - if not res: - parselog.error("Layer '%s' depends on version %s of layer '%s', but version %s is currently enabled in your configuration. Check that you are using the correct matching versions/branches of these two layers.", c, opstr, dep, layerver) - errors = True - else: - parselog.error("Layer '%s' depends on version %s of layer '%s', which exists in your configuration but does not specify a version. Check that you are using the correct matching versions/branches of these two layers.", c, opstr, dep) - errors = True - else: - parselog.error("Layer '%s' depends on layer '%s', but this layer is not enabled in your configuration", c, dep) - errors = True - collection_depends[c] = list(depDict.keys()) - else: - collection_depends[c] = [] - - # Check recommends and store information for priority calculation - recs = self.data.getVar("LAYERRECOMMENDS_%s" % c) - if recs: - try: - recDict = bb.utils.explode_dep_versions2(recs) - except bb.utils.VersionStringException as vse: - bb.fatal('Error parsing LAYERRECOMMENDS_%s: %s' % (c, str(vse))) - for rec, oplist in list(recDict.items()): - if rec in collection_list: - if oplist: - opstr = oplist[0] - layerver = self.data.getVar("LAYERVERSION_%s" % rec) - if layerver: - (op, recver) = opstr.split() - try: - res = bb.utils.vercmp_string_op(layerver, recver, op) - except bb.utils.VersionStringException as vse: - bb.fatal('Error parsing LAYERRECOMMENDS_%s: %s' % (c, str(vse))) - if not res: - parselog.debug(3,"Layer '%s' recommends version %s of layer '%s', but version %s is currently enabled in your configuration. Check that you are using the correct matching versions/branches of these two layers.", c, opstr, rec, layerver) - continue - else: - parselog.debug(3,"Layer '%s' recommends version %s of layer '%s', which exists in your configuration but does not specify a version. Check that you are using the correct matching versions/branches of these two layers.", c, opstr, rec) - continue - parselog.debug(3,"Layer '%s' recommends layer '%s', so we are adding it", c, rec) - collection_depends[c].append(rec) - else: - parselog.debug(3,"Layer '%s' recommends layer '%s', but this layer is not enabled in your configuration", c, rec) - - # Recursively work out collection priorities based on dependencies - def calc_layer_priority(collection): - if not collection_priorities[collection]: - max_depprio = min_prio - for dep in collection_depends[collection]: - calc_layer_priority(dep) - depprio = collection_priorities[dep] - if depprio > max_depprio: - max_depprio = depprio - max_depprio += 1 - parselog.debug(1, "Calculated priority of layer %s as %d", collection, max_depprio) - collection_priorities[collection] = max_depprio - - # Calculate all layer priorities using calc_layer_priority and store in bbfile_config_priorities - for c in collection_list: - calc_layer_priority(c) - regex = self.data.getVar("BBFILE_PATTERN_%s" % c) - if regex == None: - parselog.error("BBFILE_PATTERN_%s not defined" % c) - errors = True - continue - elif regex == "": - parselog.debug(1, "BBFILE_PATTERN_%s is empty" % c) - errors = False - else: - try: - cre = re.compile(regex) - except re.error: - parselog.error("BBFILE_PATTERN_%s \"%s\" is not a valid regular expression", c, regex) - errors = True - continue - self.bbfile_config_priorities.append((c, regex, cre, collection_priorities[c])) - if errors: - # We've already printed the actual error(s) - raise CollectionError("Errors during parsing layer configuration") - - def buildSetVars(self): - """ - Setup any variables needed before starting a build - """ - t = time.gmtime() - for mc in self.databuilder.mcdata: - ds = self.databuilder.mcdata[mc] - if not ds.getVar("BUILDNAME", False): - ds.setVar("BUILDNAME", "${DATE}${TIME}") - ds.setVar("BUILDSTART", time.strftime('%m/%d/%Y %H:%M:%S', t)) - ds.setVar("DATE", time.strftime('%Y%m%d', t)) - ds.setVar("TIME", time.strftime('%H%M%S', t)) - - def reset_mtime_caches(self): - """ - Reset mtime caches - this is particularly important when memory resident as something - which is cached is not unlikely to have changed since the last invocation (e.g. a - file associated with a recipe might have been modified by the user). - """ - build.reset_cache() - bb.fetch._checksum_cache.mtime_cache.clear() - siggen_cache = getattr(bb.parse.siggen, 'checksum_cache', None) - if siggen_cache: - bb.parse.siggen.checksum_cache.mtime_cache.clear() - - def matchFiles(self, bf): - """ - Find the .bb files which match the expression in 'buildfile'. - """ - if bf.startswith("/") or bf.startswith("../"): - bf = os.path.abspath(bf) - - self.collection = CookerCollectFiles(self.bbfile_config_priorities) - filelist, masked, searchdirs = self.collection.collect_bbfiles(self.data, self.data) - try: - os.stat(bf) - bf = os.path.abspath(bf) - return [bf] - except OSError: - regexp = re.compile(bf) - matches = [] - for f in filelist: - if regexp.search(f) and os.path.isfile(f): - matches.append(f) - return matches - - def matchFile(self, buildfile): - """ - Find the .bb file which matches the expression in 'buildfile'. - Raise an error if multiple files - """ - matches = self.matchFiles(buildfile) - if len(matches) != 1: - if matches: - msg = "Unable to match '%s' to a specific recipe file - %s matches found:" % (buildfile, len(matches)) - if matches: - for f in matches: - msg += "\n %s" % f - parselog.error(msg) - else: - parselog.error("Unable to find any recipe file matching '%s'" % buildfile) - raise NoSpecificMatch - return matches[0] - - def buildFile(self, buildfile, task): - """ - Build the file matching regexp buildfile - """ - bb.event.fire(bb.event.BuildInit(), self.data) - - # Too many people use -b because they think it's how you normally - # specify a target to be built, so show a warning - bb.warn("Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.") - - self.buildFileInternal(buildfile, task) - - def buildFileInternal(self, buildfile, task, fireevents=True, quietlog=False): - """ - Build the file matching regexp buildfile - """ - - # Parse the configuration here. We need to do it explicitly here since - # buildFile() doesn't use the cache - self.parseConfiguration() - - # If we are told to do the None task then query the default task - if (task == None): - task = self.configuration.cmd - if not task.startswith("do_"): - task = "do_%s" % task - - fn, cls, mc = bb.cache.virtualfn2realfn(buildfile) - fn = self.matchFile(fn) - - self.buildSetVars() - self.reset_mtime_caches() - - bb_cache = bb.cache.Cache(self.databuilder, self.data_hash, self.caches_array) - - infos = bb_cache.parse(fn, self.collection.get_file_appends(fn)) - infos = dict(infos) - - fn = bb.cache.realfn2virtual(fn, cls, mc) - try: - info_array = infos[fn] - except KeyError: - bb.fatal("%s does not exist" % fn) - - if info_array[0].skipped: - bb.fatal("%s was skipped: %s" % (fn, info_array[0].skipreason)) - - self.recipecaches[mc].add_from_recipeinfo(fn, info_array) - - # Tweak some variables - item = info_array[0].pn - self.recipecaches[mc].ignored_dependencies = set() - self.recipecaches[mc].bbfile_priority[fn] = 1 - self.configuration.limited_deps = True - - # Remove external dependencies - self.recipecaches[mc].task_deps[fn]['depends'] = {} - self.recipecaches[mc].deps[fn] = [] - self.recipecaches[mc].rundeps[fn] = defaultdict(list) - self.recipecaches[mc].runrecs[fn] = defaultdict(list) - - # Invalidate task for target if force mode active - if self.configuration.force: - logger.verbose("Invalidate task %s, %s", task, fn) - bb.parse.siggen.invalidate_task(task, self.recipecaches[mc], fn) - - # Setup taskdata structure - taskdata = {} - taskdata[mc] = bb.taskdata.TaskData(self.configuration.abort) - taskdata[mc].add_provider(self.databuilder.mcdata[mc], self.recipecaches[mc], item) - - if quietlog: - rqloglevel = bb.runqueue.logger.getEffectiveLevel() - bb.runqueue.logger.setLevel(logging.WARNING) - - buildname = self.databuilder.mcdata[mc].getVar("BUILDNAME") - if fireevents: - bb.event.fire(bb.event.BuildStarted(buildname, [item]), self.databuilder.mcdata[mc]) - - # Execute the runqueue - runlist = [[mc, item, task, fn]] - - rq = bb.runqueue.RunQueue(self, self.data, self.recipecaches, taskdata, runlist) - - def buildFileIdle(server, rq, abort): - - msg = None - interrupted = 0 - if abort or self.state == state.forceshutdown: - rq.finish_runqueue(True) - msg = "Forced shutdown" - interrupted = 2 - elif self.state == state.shutdown: - rq.finish_runqueue(False) - msg = "Stopped build" - interrupted = 1 - failures = 0 - try: - retval = rq.execute_runqueue() - except runqueue.TaskFailure as exc: - failures += len(exc.args) - retval = False - except SystemExit as exc: - self.command.finishAsyncCommand(str(exc)) - if quietlog: - bb.runqueue.logger.setLevel(rqloglevel) - return False - - if not retval: - if fireevents: - bb.event.fire(bb.event.BuildCompleted(len(rq.rqdata.runtaskentries), buildname, item, failures, interrupted), self.databuilder.mcdata[mc]) - self.command.finishAsyncCommand(msg) - # We trashed self.recipecaches above - self.parsecache_valid = False - self.configuration.limited_deps = False - bb.parse.siggen.reset(self.data) - if quietlog: - bb.runqueue.logger.setLevel(rqloglevel) - return False - if retval is True: - return True - return retval - - self.configuration.server_register_idlecallback(buildFileIdle, rq) - - def buildTargets(self, targets, task): - """ - Attempt to build the targets specified - """ - - def buildTargetsIdle(server, rq, abort): - msg = None - interrupted = 0 - if abort or self.state == state.forceshutdown: - rq.finish_runqueue(True) - msg = "Forced shutdown" - interrupted = 2 - elif self.state == state.shutdown: - rq.finish_runqueue(False) - msg = "Stopped build" - interrupted = 1 - failures = 0 - try: - retval = rq.execute_runqueue() - except runqueue.TaskFailure as exc: - failures += len(exc.args) - retval = False - except SystemExit as exc: - self.command.finishAsyncCommand(str(exc)) - return False - - if not retval: - try: - for mc in self.multiconfigs: - bb.event.fire(bb.event.BuildCompleted(len(rq.rqdata.runtaskentries), buildname, targets, failures, interrupted), self.databuilder.mcdata[mc]) - finally: - self.command.finishAsyncCommand(msg) - return False - if retval is True: - return True - return retval - - self.reset_mtime_caches() - self.buildSetVars() - - # If we are told to do the None task then query the default task - if (task == None): - task = self.configuration.cmd - - if not task.startswith("do_"): - task = "do_%s" % task - - packages = [target if ':' in target else '%s:%s' % (target, task) for target in targets] - - bb.event.fire(bb.event.BuildInit(packages), self.data) - - taskdata, runlist = self.buildTaskData(targets, task, self.configuration.abort) - - buildname = self.data.getVar("BUILDNAME", False) - - # make targets to always look as <target>:do_<task> - ntargets = [] - for target in runlist: - if target[0]: - ntargets.append("multiconfig:%s:%s:%s" % (target[0], target[1], target[2])) - ntargets.append("%s:%s" % (target[1], target[2])) - - for mc in self.multiconfigs: - bb.event.fire(bb.event.BuildStarted(buildname, ntargets), self.databuilder.mcdata[mc]) - - rq = bb.runqueue.RunQueue(self, self.data, self.recipecaches, taskdata, runlist) - if 'universe' in targets: - rq.rqdata.warn_multi_bb = True - - self.configuration.server_register_idlecallback(buildTargetsIdle, rq) - - - def getAllKeysWithFlags(self, flaglist): - dump = {} - for k in self.data.keys(): - try: - expand = True - flags = self.data.getVarFlags(k) - if flags and "func" in flags and "python" in flags: - expand = False - v = self.data.getVar(k, expand) - if not k.startswith("__") and not isinstance(v, bb.data_smart.DataSmart): - dump[k] = { - 'v' : str(v) , - 'history' : self.data.varhistory.variable(k), - } - for d in flaglist: - if flags and d in flags: - dump[k][d] = flags[d] - else: - dump[k][d] = None - except Exception as e: - print(e) - return dump - - - def updateCacheSync(self): - if self.state == state.running: - return - - # reload files for which we got notifications - for p in self.inotify_modified_files: - bb.parse.update_cache(p) - if p in bb.parse.BBHandler.cached_statements: - del bb.parse.BBHandler.cached_statements[p] - self.inotify_modified_files = [] - - if not self.baseconfig_valid: - logger.debug(1, "Reloading base configuration data") - self.initConfigurationData() - self.handlePRServ() - - # This is called for all async commands when self.state != running - def updateCache(self): - if self.state == state.running: - return - - if self.state in (state.shutdown, state.forceshutdown, state.error): - if hasattr(self.parser, 'shutdown'): - self.parser.shutdown(clean=False, force = True) - raise bb.BBHandledException() - - if self.state != state.parsing: - self.updateCacheSync() - - if self.state != state.parsing and not self.parsecache_valid: - bb.parse.siggen.reset(self.data) - self.parseConfiguration () - if CookerFeatures.SEND_SANITYEVENTS in self.featureset: - for mc in self.multiconfigs: - bb.event.fire(bb.event.SanityCheck(False), self.databuilder.mcdata[mc]) - - for mc in self.multiconfigs: - ignore = self.databuilder.mcdata[mc].getVar("ASSUME_PROVIDED") or "" - self.recipecaches[mc].ignored_dependencies = set(ignore.split()) - - for dep in self.configuration.extra_assume_provided: - self.recipecaches[mc].ignored_dependencies.add(dep) - - self.collection = CookerCollectFiles(self.bbfile_config_priorities) - (filelist, masked, searchdirs) = self.collection.collect_bbfiles(self.data, self.data) - - # Add inotify watches for directories searched for bb/bbappend files - for dirent in searchdirs: - self.add_filewatch([[dirent]], dirs=True) - - self.parser = CookerParser(self, filelist, masked) - self.parsecache_valid = True - - self.state = state.parsing - - if not self.parser.parse_next(): - collectlog.debug(1, "parsing complete") - if self.parser.error: - raise bb.BBHandledException() - self.show_appends_with_no_recipes() - self.handlePrefProviders() - for mc in self.multiconfigs: - self.recipecaches[mc].bbfile_priority = self.collection.collection_priorities(self.recipecaches[mc].pkg_fn, self.data) - self.state = state.running - - # Send an event listing all stamps reachable after parsing - # which the metadata may use to clean up stale data - for mc in self.multiconfigs: - event = bb.event.ReachableStamps(self.recipecaches[mc].stamp) - bb.event.fire(event, self.databuilder.mcdata[mc]) - return None - - return True - - def checkPackages(self, pkgs_to_build, task=None): - - # Return a copy, don't modify the original - pkgs_to_build = pkgs_to_build[:] - - if len(pkgs_to_build) == 0: - raise NothingToBuild - - ignore = (self.data.getVar("ASSUME_PROVIDED") or "").split() - for pkg in pkgs_to_build: - if pkg in ignore: - parselog.warning("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg) - - if 'world' in pkgs_to_build: - pkgs_to_build.remove('world') - for mc in self.multiconfigs: - bb.providers.buildWorldTargetList(self.recipecaches[mc], task) - for t in self.recipecaches[mc].world_target: - if mc: - t = "multiconfig:" + mc + ":" + t - pkgs_to_build.append(t) - - if 'universe' in pkgs_to_build: - parselog.warning("The \"universe\" target is only intended for testing and may produce errors.") - parselog.debug(1, "collating packages for \"universe\"") - pkgs_to_build.remove('universe') - for mc in self.multiconfigs: - for t in self.recipecaches[mc].universe_target: - if task: - foundtask = False - for provider_fn in self.recipecaches[mc].providers[t]: - if task in self.recipecaches[mc].task_deps[provider_fn]['tasks']: - foundtask = True - break - if not foundtask: - bb.debug(1, "Skipping %s for universe tasks as task %s doesn't exist" % (t, task)) - continue - if mc: - t = "multiconfig:" + mc + ":" + t - pkgs_to_build.append(t) - - return pkgs_to_build - - def pre_serve(self): - # We now are in our own process so we can call this here. - # PRServ exits if its parent process exits - self.handlePRServ() - return - - def post_serve(self): - prserv.serv.auto_shutdown() - bb.event.fire(CookerExit(), self.data) - - - def shutdown(self, force = False): - if force: - self.state = state.forceshutdown - else: - self.state = state.shutdown - - if self.parser: - self.parser.shutdown(clean=not force, force=force) - self.notifier.stop() - self.confignotifier.stop() - - def finishcommand(self): - self.state = state.initial - - def reset(self): - self.initConfigurationData() - - def clientComplete(self): - """Called when the client is done using the server""" - self.finishcommand() - self.extraconfigdata = {} - self.command.reset() - self.databuilder.reset() - self.data = self.databuilder.data - - -class CookerExit(bb.event.Event): - """ - Notify clients of the Cooker shutdown - """ - - def __init__(self): - bb.event.Event.__init__(self) - - -class CookerCollectFiles(object): - def __init__(self, priorities): - self.bbappends = [] - self.bbfile_config_priorities = priorities - - def calc_bbfile_priority( self, filename, matched = None ): - for _, _, regex, pri in self.bbfile_config_priorities: - if regex.match(filename): - if matched != None: - if not regex in matched: - matched.add(regex) - return pri - return 0 - - def get_bbfiles(self): - """Get list of default .bb files by reading out the current directory""" - path = os.getcwd() - contents = os.listdir(path) - bbfiles = [] - for f in contents: - if f.endswith(".bb"): - bbfiles.append(os.path.abspath(os.path.join(path, f))) - return bbfiles - - def find_bbfiles(self, path): - """Find all the .bb and .bbappend files in a directory""" - found = [] - for dir, dirs, files in os.walk(path): - for ignored in ('SCCS', 'CVS', '.svn'): - if ignored in dirs: - dirs.remove(ignored) - found += [os.path.join(dir, f) for f in files if (f.endswith(['.bb', '.bbappend']))] - - return found - - def collect_bbfiles(self, config, eventdata): - """Collect all available .bb build files""" - masked = 0 - - collectlog.debug(1, "collecting .bb files") - - files = (config.getVar( "BBFILES") or "").split() - config.setVar("BBFILES", " ".join(files)) - - # Sort files by priority - files.sort( key=lambda fileitem: self.calc_bbfile_priority(fileitem) ) - - if not len(files): - files = self.get_bbfiles() - - if not len(files): - collectlog.error("no recipe files to build, check your BBPATH and BBFILES?") - bb.event.fire(CookerExit(), eventdata) - - # We need to track where we look so that we can add inotify watches. There - # is no nice way to do this, this is horrid. We intercept the os.listdir() - # (or os.scandir() for python 3.6+) calls while we run glob(). - origlistdir = os.listdir - if hasattr(os, 'scandir'): - origscandir = os.scandir - searchdirs = [] - - def ourlistdir(d): - searchdirs.append(d) - return origlistdir(d) - - def ourscandir(d): - searchdirs.append(d) - return origscandir(d) - - os.listdir = ourlistdir - if hasattr(os, 'scandir'): - os.scandir = ourscandir - try: - # Can't use set here as order is important - newfiles = [] - for f in files: - if os.path.isdir(f): - dirfiles = self.find_bbfiles(f) - for g in dirfiles: - if g not in newfiles: - newfiles.append(g) - else: - globbed = glob.glob(f) - if not globbed and os.path.exists(f): - globbed = [f] - # glob gives files in order on disk. Sort to be deterministic. - for g in sorted(globbed): - if g not in newfiles: - newfiles.append(g) - finally: - os.listdir = origlistdir - if hasattr(os, 'scandir'): - os.scandir = origscandir - - bbmask = config.getVar('BBMASK') - - if bbmask: - # First validate the individual regular expressions and ignore any - # that do not compile - bbmasks = [] - for mask in bbmask.split(): - # When constructing an older style single regex, it's possible for BBMASK - # to end up beginning with '|', which matches and masks _everything_. - if mask.startswith("|"): - collectlog.warn("BBMASK contains regular expression beginning with '|', fixing: %s" % mask) - mask = mask[1:] - try: - re.compile(mask) - bbmasks.append(mask) - except sre_constants.error: - collectlog.critical("BBMASK contains an invalid regular expression, ignoring: %s" % mask) - - # Then validate the combined regular expressions. This should never - # fail, but better safe than sorry... - bbmask = "|".join(bbmasks) - try: - bbmask_compiled = re.compile(bbmask) - except sre_constants.error: - collectlog.critical("BBMASK is not a valid regular expression, ignoring: %s" % bbmask) - bbmask = None - - bbfiles = [] - bbappend = [] - for f in newfiles: - if bbmask and bbmask_compiled.search(f): - collectlog.debug(1, "skipping masked file %s", f) - masked += 1 - continue - if f.endswith('.bb'): - bbfiles.append(f) - elif f.endswith('.bbappend'): - bbappend.append(f) - else: - collectlog.debug(1, "skipping %s: unknown file extension", f) - - # Build a list of .bbappend files for each .bb file - for f in bbappend: - base = os.path.basename(f).replace('.bbappend', '.bb') - self.bbappends.append((base, f)) - - # Find overlayed recipes - # bbfiles will be in priority order which makes this easy - bbfile_seen = dict() - self.overlayed = defaultdict(list) - for f in reversed(bbfiles): - base = os.path.basename(f) - if base not in bbfile_seen: - bbfile_seen[base] = f - else: - topfile = bbfile_seen[base] - self.overlayed[topfile].append(f) - - return (bbfiles, masked, searchdirs) - - def get_file_appends(self, fn): - """ - Returns a list of .bbappend files to apply to fn - """ - filelist = [] - f = os.path.basename(fn) - for b in self.bbappends: - (bbappend, filename) = b - if (bbappend == f) or ('%' in bbappend and bbappend.startswith(f[:bbappend.index('%')])): - filelist.append(filename) - return filelist - - def collection_priorities(self, pkgfns, d): - - priorities = {} - - # Calculate priorities for each file - matched = set() - for p in pkgfns: - realfn, cls, mc = bb.cache.virtualfn2realfn(p) - priorities[p] = self.calc_bbfile_priority(realfn, matched) - - # Don't show the warning if the BBFILE_PATTERN did match .bbappend files - unmatched = set() - for _, _, regex, pri in self.bbfile_config_priorities: - if not regex in matched: - unmatched.add(regex) - - def findmatch(regex): - for b in self.bbappends: - (bbfile, append) = b - if regex.match(append): - return True - return False - - for unmatch in unmatched.copy(): - if findmatch(unmatch): - unmatched.remove(unmatch) - - for collection, pattern, regex, _ in self.bbfile_config_priorities: - if regex in unmatched: - if d.getVar('BBFILE_PATTERN_IGNORE_EMPTY_%s' % collection) != '1': - collectlog.warning("No bb files matched BBFILE_PATTERN_%s '%s'" % (collection, pattern)) - - return priorities - -class ParsingFailure(Exception): - def __init__(self, realexception, recipe): - self.realexception = realexception - self.recipe = recipe - Exception.__init__(self, realexception, recipe) - -class Feeder(multiprocessing.Process): - def __init__(self, jobs, to_parsers, quit): - self.quit = quit - self.jobs = jobs - self.to_parsers = to_parsers - multiprocessing.Process.__init__(self) - - def run(self): - while True: - try: - quit = self.quit.get_nowait() - except queue.Empty: - pass - else: - if quit == 'cancel': - self.to_parsers.cancel_join_thread() - break - - try: - job = self.jobs.pop() - except IndexError: - break - - try: - self.to_parsers.put(job, timeout=0.5) - except queue.Full: - self.jobs.insert(0, job) - continue - -class Parser(multiprocessing.Process): - def __init__(self, jobs, results, quit, init, profile): - self.jobs = jobs - self.results = results - self.quit = quit - self.init = init - multiprocessing.Process.__init__(self) - self.context = bb.utils.get_context().copy() - self.handlers = bb.event.get_class_handlers().copy() - self.profile = profile - - def run(self): - - if not self.profile: - self.realrun() - return - - try: - import cProfile as profile - except: - import profile - prof = profile.Profile() - try: - profile.Profile.runcall(prof, self.realrun) - finally: - logfile = "profile-parse-%s.log" % multiprocessing.current_process().name - prof.dump_stats(logfile) - - def realrun(self): - if self.init: - self.init() - - pending = [] - while True: - try: - self.quit.get_nowait() - except queue.Empty: - pass - else: - self.results.cancel_join_thread() - break - - if pending: - result = pending.pop() - else: - try: - job = self.jobs.get(timeout=0.25) - except queue.Empty: - continue - - if job is None: - break - result = self.parse(*job) - - try: - self.results.put(result, timeout=0.25) - except queue.Full: - pending.append(result) - - def parse(self, filename, appends): - try: - # Record the filename we're parsing into any events generated - def parse_filter(self, record): - record.taskpid = bb.event.worker_pid - record.fn = filename - return True - - # Reset our environment and handlers to the original settings - bb.utils.set_context(self.context.copy()) - bb.event.set_class_handlers(self.handlers.copy()) - bb.event.LogHandler.filter = parse_filter - - return True, self.bb_cache.parse(filename, appends) - except Exception as exc: - tb = sys.exc_info()[2] - exc.recipe = filename - exc.traceback = list(bb.exceptions.extract_traceback(tb, context=3)) - return True, exc - # Need to turn BaseExceptions into Exceptions here so we gracefully shutdown - # and for example a worker thread doesn't just exit on its own in response to - # a SystemExit event for example. - except BaseException as exc: - return True, ParsingFailure(exc, filename) - -class CookerParser(object): - def __init__(self, cooker, filelist, masked): - self.filelist = filelist - self.cooker = cooker - self.cfgdata = cooker.data - self.cfghash = cooker.data_hash - self.cfgbuilder = cooker.databuilder - - # Accounting statistics - self.parsed = 0 - self.cached = 0 - self.error = 0 - self.masked = masked - - self.skipped = 0 - self.virtuals = 0 - self.total = len(filelist) - - self.current = 0 - self.process_names = [] - - self.bb_cache = bb.cache.Cache(self.cfgbuilder, self.cfghash, cooker.caches_array) - self.fromcache = [] - self.willparse = [] - for filename in self.filelist: - appends = self.cooker.collection.get_file_appends(filename) - if not self.bb_cache.cacheValid(filename, appends): - self.willparse.append((filename, appends)) - else: - self.fromcache.append((filename, appends)) - self.toparse = self.total - len(self.fromcache) - self.progress_chunk = int(max(self.toparse / 100, 1)) - - self.num_processes = min(int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS") or - multiprocessing.cpu_count()), len(self.willparse)) - - self.start() - self.haveshutdown = False - - def start(self): - self.results = self.load_cached() - self.processes = [] - if self.toparse: - bb.event.fire(bb.event.ParseStarted(self.toparse), self.cfgdata) - def init(): - Parser.bb_cache = self.bb_cache - bb.utils.set_process_name(multiprocessing.current_process().name) - multiprocessing.util.Finalize(None, bb.codeparser.parser_cache_save, exitpriority=1) - multiprocessing.util.Finalize(None, bb.fetch.fetcher_parse_save, exitpriority=1) - - self.feeder_quit = multiprocessing.Queue(maxsize=1) - self.parser_quit = multiprocessing.Queue(maxsize=self.num_processes) - self.jobs = multiprocessing.Queue(maxsize=self.num_processes) - self.result_queue = multiprocessing.Queue() - self.feeder = Feeder(self.willparse, self.jobs, self.feeder_quit) - self.feeder.start() - for i in range(0, self.num_processes): - parser = Parser(self.jobs, self.result_queue, self.parser_quit, init, self.cooker.configuration.profile) - parser.start() - self.process_names.append(parser.name) - self.processes.append(parser) - - self.results = itertools.chain(self.results, self.parse_generator()) - - def shutdown(self, clean=True, force=False): - if not self.toparse: - return - if self.haveshutdown: - return - self.haveshutdown = True - - if clean: - event = bb.event.ParseCompleted(self.cached, self.parsed, - self.skipped, self.masked, - self.virtuals, self.error, - self.total) - - bb.event.fire(event, self.cfgdata) - self.feeder_quit.put(None) - for process in self.processes: - self.parser_quit.put(None) - else: - self.feeder_quit.put('cancel') - - self.parser_quit.cancel_join_thread() - for process in self.processes: - self.parser_quit.put(None) - - self.jobs.cancel_join_thread() - - for process in self.processes: - if force: - process.join(.1) - process.terminate() - else: - process.join() - self.feeder.join() - - sync = threading.Thread(target=self.bb_cache.sync) - sync.start() - multiprocessing.util.Finalize(None, sync.join, exitpriority=-100) - bb.codeparser.parser_cache_savemerge() - bb.fetch.fetcher_parse_done() - if self.cooker.configuration.profile: - profiles = [] - for i in self.process_names: - logfile = "profile-parse-%s.log" % i - if os.path.exists(logfile): - profiles.append(logfile) - - pout = "profile-parse.log.processed" - bb.utils.process_profilelog(profiles, pout = pout) - print("Processed parsing statistics saved to %s" % (pout)) - - def load_cached(self): - for filename, appends in self.fromcache: - cached, infos = self.bb_cache.load(filename, appends) - yield not cached, infos - - def parse_generator(self): - while True: - if self.parsed >= self.toparse: - break - - try: - result = self.result_queue.get(timeout=0.25) - except queue.Empty: - pass - else: - value = result[1] - if isinstance(value, BaseException): - raise value - else: - yield result - - def parse_next(self): - result = [] - parsed = None - try: - parsed, result = next(self.results) - except StopIteration: - self.shutdown() - return False - except bb.BBHandledException as exc: - self.error += 1 - logger.error('Failed to parse recipe: %s' % exc.recipe) - self.shutdown(clean=False) - return False - except ParsingFailure as exc: - self.error += 1 - logger.error('Unable to parse %s: %s' % - (exc.recipe, bb.exceptions.to_string(exc.realexception))) - self.shutdown(clean=False) - return False - except bb.parse.ParseError as exc: - self.error += 1 - logger.error(str(exc)) - self.shutdown(clean=False) - return False - except bb.data_smart.ExpansionError as exc: - self.error += 1 - bbdir = os.path.dirname(__file__) + os.sep - etype, value, _ = sys.exc_info() - tb = list(itertools.dropwhile(lambda e: e.filename.startswith(bbdir), exc.traceback)) - logger.error('ExpansionError during parsing %s', value.recipe, - exc_info=(etype, value, tb)) - self.shutdown(clean=False) - return False - except Exception as exc: - self.error += 1 - etype, value, tb = sys.exc_info() - if hasattr(value, "recipe"): - logger.error('Unable to parse %s' % value.recipe, - exc_info=(etype, value, exc.traceback)) - else: - # Most likely, an exception occurred during raising an exception - import traceback - logger.error('Exception during parse: %s' % traceback.format_exc()) - self.shutdown(clean=False) - return False - - self.current += 1 - self.virtuals += len(result) - if parsed: - self.parsed += 1 - if self.parsed % self.progress_chunk == 0: - bb.event.fire(bb.event.ParseProgress(self.parsed, self.toparse), - self.cfgdata) - else: - self.cached += 1 - - for virtualfn, info_array in result: - if info_array[0].skipped: - self.skipped += 1 - self.cooker.skiplist[virtualfn] = SkippedPackage(info_array[0]) - (fn, cls, mc) = bb.cache.virtualfn2realfn(virtualfn) - self.bb_cache.add_info(virtualfn, info_array, self.cooker.recipecaches[mc], - parsed=parsed, watcher = self.cooker.add_filewatch) - return True - - def reparse(self, filename): - infos = self.bb_cache.parse(filename, self.cooker.collection.get_file_appends(filename)) - for vfn, info_array in infos: - (fn, cls, mc) = bb.cache.virtualfn2realfn(vfn) - self.cooker.recipecaches[mc].add_from_recipeinfo(vfn, info_array) diff --git a/poky/bitbake/lib/bb/cookerdata.py b/poky/bitbake/lib/bb/cookerdata.py deleted file mode 100644 index fab47c7..0000000 --- a/poky/bitbake/lib/bb/cookerdata.py +++ /dev/null @@ -1,431 +0,0 @@ -#!/usr/bin/env python -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2003, 2004 Phil Blundell -# Copyright (C) 2003 - 2005 Michael 'Mickey' Lauer -# Copyright (C) 2005 Holger Hans Peter Freyther -# Copyright (C) 2005 ROAD GmbH -# Copyright (C) 2006 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import logging -import os -import re -import sys -from functools import wraps -import bb -from bb import data -import bb.parse - -logger = logging.getLogger("BitBake") -parselog = logging.getLogger("BitBake.Parsing") - -class ConfigParameters(object): - def __init__(self, argv=sys.argv): - self.options, targets = self.parseCommandLine(argv) - self.environment = self.parseEnvironment() - - self.options.pkgs_to_build = targets or [] - - for key, val in self.options.__dict__.items(): - setattr(self, key, val) - - def parseCommandLine(self, argv=sys.argv): - raise Exception("Caller must implement commandline option parsing") - - def parseEnvironment(self): - return os.environ.copy() - - def updateFromServer(self, server): - if not self.options.cmd: - defaulttask, error = server.runCommand(["getVariable", "BB_DEFAULT_TASK"]) - if error: - raise Exception("Unable to get the value of BB_DEFAULT_TASK from the server: %s" % error) - self.options.cmd = defaulttask or "build" - _, error = server.runCommand(["setConfig", "cmd", self.options.cmd]) - if error: - raise Exception("Unable to set configuration option 'cmd' on the server: %s" % error) - - if not self.options.pkgs_to_build: - bbpkgs, error = server.runCommand(["getVariable", "BBTARGETS"]) - if error: - raise Exception("Unable to get the value of BBTARGETS from the server: %s" % error) - if bbpkgs: - self.options.pkgs_to_build.extend(bbpkgs.split()) - - def updateToServer(self, server, environment): - options = {} - for o in ["abort", "force", "invalidate_stamp", - "verbose", "debug", "dry_run", "dump_signatures", - "debug_domains", "extra_assume_provided", "profile", - "prefile", "postfile", "server_timeout"]: - options[o] = getattr(self.options, o) - - ret, error = server.runCommand(["updateConfig", options, environment, sys.argv]) - if error: - raise Exception("Unable to update the server configuration with local parameters: %s" % error) - - def parseActions(self): - # Parse any commandline into actions - action = {'action':None, 'msg':None} - if self.options.show_environment: - if 'world' in self.options.pkgs_to_build: - action['msg'] = "'world' is not a valid target for --environment." - elif 'universe' in self.options.pkgs_to_build: - action['msg'] = "'universe' is not a valid target for --environment." - elif len(self.options.pkgs_to_build) > 1: - action['msg'] = "Only one target can be used with the --environment option." - elif self.options.buildfile and len(self.options.pkgs_to_build) > 0: - action['msg'] = "No target should be used with the --environment and --buildfile options." - elif len(self.options.pkgs_to_build) > 0: - action['action'] = ["showEnvironmentTarget", self.options.pkgs_to_build] - else: - action['action'] = ["showEnvironment", self.options.buildfile] - elif self.options.buildfile is not None: - action['action'] = ["buildFile", self.options.buildfile, self.options.cmd] - elif self.options.revisions_changed: - action['action'] = ["compareRevisions"] - elif self.options.show_versions: - action['action'] = ["showVersions"] - elif self.options.parse_only: - action['action'] = ["parseFiles"] - elif self.options.dot_graph: - if self.options.pkgs_to_build: - action['action'] = ["generateDotGraph", self.options.pkgs_to_build, self.options.cmd] - else: - action['msg'] = "Please specify a package name for dependency graph generation." - else: - if self.options.pkgs_to_build: - action['action'] = ["buildTargets", self.options.pkgs_to_build, self.options.cmd] - else: - #action['msg'] = "Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information." - action = None - self.options.initialaction = action - return action - -class CookerConfiguration(object): - """ - Manages build options and configurations for one run - """ - - def __init__(self): - self.debug_domains = [] - self.extra_assume_provided = [] - self.prefile = [] - self.postfile = [] - self.debug = 0 - self.cmd = None - self.abort = True - self.force = False - self.profile = False - self.nosetscene = False - self.setsceneonly = False - self.invalidate_stamp = False - self.dump_signatures = [] - self.dry_run = False - self.tracking = False - self.xmlrpcinterface = [] - self.server_timeout = None - self.writeeventlog = False - self.server_only = False - self.limited_deps = False - self.runall = None - - self.env = {} - - def setConfigParameters(self, parameters): - for key in self.__dict__.keys(): - if key in parameters.options.__dict__: - setattr(self, key, parameters.options.__dict__[key]) - self.env = parameters.environment.copy() - - def setServerRegIdleCallback(self, srcb): - self.server_register_idlecallback = srcb - - def __getstate__(self): - state = {} - for key in self.__dict__.keys(): - if key == "server_register_idlecallback": - state[key] = None - else: - state[key] = getattr(self, key) - return state - - def __setstate__(self,state): - for k in state: - setattr(self, k, state[k]) - - -def catch_parse_error(func): - """Exception handling bits for our parsing""" - @wraps(func) - def wrapped(fn, *args): - try: - return func(fn, *args) - except IOError as exc: - import traceback - parselog.critical(traceback.format_exc()) - parselog.critical("Unable to parse %s: %s" % (fn, exc)) - sys.exit(1) - except bb.data_smart.ExpansionError as exc: - import traceback - - bbdir = os.path.dirname(__file__) + os.sep - exc_class, exc, tb = sys.exc_info() - for tb in iter(lambda: tb.tb_next, None): - # Skip frames in bitbake itself, we only want the metadata - fn, _, _, _ = traceback.extract_tb(tb, 1)[0] - if not fn.startswith(bbdir): - break - parselog.critical("Unable to parse %s" % fn, exc_info=(exc_class, exc, tb)) - sys.exit(1) - except bb.parse.ParseError as exc: - parselog.critical(str(exc)) - sys.exit(1) - return wrapped - -@catch_parse_error -def parse_config_file(fn, data, include=True): - return bb.parse.handle(fn, data, include) - -@catch_parse_error -def _inherit(bbclass, data): - bb.parse.BBHandler.inherit(bbclass, "configuration INHERITs", 0, data) - return data - -def findConfigFile(configfile, data): - search = [] - bbpath = data.getVar("BBPATH") - if bbpath: - for i in bbpath.split(":"): - search.append(os.path.join(i, "conf", configfile)) - path = os.getcwd() - while path != "/": - search.append(os.path.join(path, "conf", configfile)) - path, _ = os.path.split(path) - - for i in search: - if os.path.exists(i): - return i - - return None - -# -# We search for a conf/bblayers.conf under an entry in BBPATH or in cwd working -# up to /. If that fails, we search for a conf/bitbake.conf in BBPATH. -# - -def findTopdir(): - d = bb.data.init() - bbpath = None - if 'BBPATH' in os.environ: - bbpath = os.environ['BBPATH'] - d.setVar('BBPATH', bbpath) - - layerconf = findConfigFile("bblayers.conf", d) - if layerconf: - return os.path.dirname(os.path.dirname(layerconf)) - if bbpath: - bitbakeconf = bb.utils.which(bbpath, "conf/bitbake.conf") - if bitbakeconf: - return os.path.dirname(os.path.dirname(bitbakeconf)) - return None - -class CookerDataBuilder(object): - - def __init__(self, cookercfg, worker = False): - - self.prefiles = cookercfg.prefile - self.postfiles = cookercfg.postfile - self.tracking = cookercfg.tracking - - bb.utils.set_context(bb.utils.clean_context()) - bb.event.set_class_handlers(bb.event.clean_class_handlers()) - self.basedata = bb.data.init() - if self.tracking: - self.basedata.enableTracking() - - # Keep a datastore of the initial environment variables and their - # values from when BitBake was launched to enable child processes - # to use environment variables which have been cleaned from the - # BitBake processes env - self.savedenv = bb.data.init() - for k in cookercfg.env: - self.savedenv.setVar(k, cookercfg.env[k]) - - filtered_keys = bb.utils.approved_variables() - bb.data.inheritFromOS(self.basedata, self.savedenv, filtered_keys) - self.basedata.setVar("BB_ORIGENV", self.savedenv) - - if worker: - self.basedata.setVar("BB_WORKERCONTEXT", "1") - - self.data = self.basedata - self.mcdata = {} - - def parseBaseConfiguration(self): - try: - bb.parse.init_parser(self.basedata) - self.data = self.parseConfigurationFiles(self.prefiles, self.postfiles) - - if self.data.getVar("BB_WORKERCONTEXT", False) is None: - bb.fetch.fetcher_init(self.data) - bb.codeparser.parser_cache_init(self.data) - - bb.event.fire(bb.event.ConfigParsed(), self.data) - - reparse_cnt = 0 - while self.data.getVar("BB_INVALIDCONF", False) is True: - if reparse_cnt > 20: - logger.error("Configuration has been re-parsed over 20 times, " - "breaking out of the loop...") - raise Exception("Too deep config re-parse loop. Check locations where " - "BB_INVALIDCONF is being set (ConfigParsed event handlers)") - self.data.setVar("BB_INVALIDCONF", False) - self.data = self.parseConfigurationFiles(self.prefiles, self.postfiles) - reparse_cnt += 1 - bb.event.fire(bb.event.ConfigParsed(), self.data) - - bb.parse.init_parser(self.data) - self.data_hash = self.data.get_hash() - self.mcdata[''] = self.data - - multiconfig = (self.data.getVar("BBMULTICONFIG") or "").split() - for config in multiconfig: - mcdata = self.parseConfigurationFiles(self.prefiles, self.postfiles, config) - bb.event.fire(bb.event.ConfigParsed(), mcdata) - self.mcdata[config] = mcdata - if multiconfig: - bb.event.fire(bb.event.MultiConfigParsed(self.mcdata), self.data) - - except (SyntaxError, bb.BBHandledException): - raise bb.BBHandledException - except bb.data_smart.ExpansionError as e: - logger.error(str(e)) - raise bb.BBHandledException - except Exception: - logger.exception("Error parsing configuration files") - raise bb.BBHandledException - - # Create a copy so we can reset at a later date when UIs disconnect - self.origdata = self.data - self.data = bb.data.createCopy(self.origdata) - self.mcdata[''] = self.data - - def reset(self): - # We may not have run parseBaseConfiguration() yet - if not hasattr(self, 'origdata'): - return - self.data = bb.data.createCopy(self.origdata) - self.mcdata[''] = self.data - - def _findLayerConf(self, data): - return findConfigFile("bblayers.conf", data) - - def parseConfigurationFiles(self, prefiles, postfiles, mc = "default"): - data = bb.data.createCopy(self.basedata) - data.setVar("BB_CURRENT_MC", mc) - - # Parse files for loading *before* bitbake.conf and any includes - for f in prefiles: - data = parse_config_file(f, data) - - layerconf = self._findLayerConf(data) - if layerconf: - parselog.debug(2, "Found bblayers.conf (%s)", layerconf) - # By definition bblayers.conf is in conf/ of TOPDIR. - # We may have been called with cwd somewhere else so reset TOPDIR - data.setVar("TOPDIR", os.path.dirname(os.path.dirname(layerconf))) - data = parse_config_file(layerconf, data) - - layers = (data.getVar('BBLAYERS') or "").split() - - data = bb.data.createCopy(data) - approved = bb.utils.approved_variables() - for layer in layers: - if not os.path.isdir(layer): - parselog.critical("Layer directory '%s' does not exist! " - "Please check BBLAYERS in %s" % (layer, layerconf)) - sys.exit(1) - parselog.debug(2, "Adding layer %s", layer) - if 'HOME' in approved and '~' in layer: - layer = os.path.expanduser(layer) - if layer.endswith('/'): - layer = layer.rstrip('/') - data.setVar('LAYERDIR', layer) - data.setVar('LAYERDIR_RE', re.escape(layer)) - data = parse_config_file(os.path.join(layer, "conf", "layer.conf"), data) - data.expandVarref('LAYERDIR') - data.expandVarref('LAYERDIR_RE') - - data.delVar('LAYERDIR_RE') - data.delVar('LAYERDIR') - - bbfiles_dynamic = (data.getVar('BBFILES_DYNAMIC') or "").split() - collections = (data.getVar('BBFILE_COLLECTIONS') or "").split() - invalid = [] - for entry in bbfiles_dynamic: - parts = entry.split(":", 1) - if len(parts) != 2: - invalid.append(entry) - continue - l, f = parts - if l in collections: - data.appendVar("BBFILES", " " + f) - if invalid: - bb.fatal("BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:\n %s" % "\n ".join(invalid)) - - layerseries = set((data.getVar("LAYERSERIES_CORENAMES") or "").split()) - for c in collections: - compat = set((data.getVar("LAYERSERIES_COMPAT_%s" % c) or "").split()) - if compat and not (compat & layerseries): - bb.fatal("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)" - % (c, " ".join(layerseries), " ".join(compat))) - - if not data.getVar("BBPATH"): - msg = "The BBPATH variable is not set" - if not layerconf: - msg += (" and bitbake did not find a conf/bblayers.conf file in" - " the expected location.\nMaybe you accidentally" - " invoked bitbake from the wrong directory?") - raise SystemExit(msg) - - data = parse_config_file(os.path.join("conf", "bitbake.conf"), data) - - # Parse files for loading *after* bitbake.conf and any includes - for p in postfiles: - data = parse_config_file(p, data) - - # Handle any INHERITs and inherit the base class - bbclasses = ["base"] + (data.getVar('INHERIT') or "").split() - for bbclass in bbclasses: - data = _inherit(bbclass, data) - - # Nomally we only register event handlers at the end of parsing .bb files - # We register any handlers we've found so far here... - for var in data.getVar('__BBHANDLERS', False) or []: - handlerfn = data.getVarFlag(var, "filename", False) - if not handlerfn: - parselog.critical("Undefined event handler function '%s'" % var) - sys.exit(1) - handlerln = int(data.getVarFlag(var, "lineno", False)) - bb.event.register(var, data.getVar(var, False), (data.getVarFlag(var, "eventmask") or "").split(), handlerfn, handlerln) - - data.setVar('BBINCLUDED',bb.parse.get_file_depends(data)) - - return data - diff --git a/poky/bitbake/lib/bb/daemonize.py b/poky/bitbake/lib/bb/daemonize.py deleted file mode 100644 index 8300d1d..0000000 --- a/poky/bitbake/lib/bb/daemonize.py +++ /dev/null @@ -1,82 +0,0 @@ -""" -Python Daemonizing helper - -Originally based on code Copyright (C) 2005 Chad J. Schroeder but now heavily modified -to allow a function to be daemonized and return for bitbake use by Richard Purdie -""" - -import os -import sys -import io -import traceback - -def createDaemon(function, logfile): - """ - Detach a process from the controlling terminal and run it in the - background as a daemon, returning control to the caller. - """ - - try: - # Fork a child process so the parent can exit. This returns control to - # the command-line or shell. It also guarantees that the child will not - # be a process group leader, since the child receives a new process ID - # and inherits the parent's process group ID. This step is required - # to insure that the next call to os.setsid is successful. - pid = os.fork() - except OSError as e: - raise Exception("%s [%d]" % (e.strerror, e.errno)) - - if (pid == 0): # The first child. - # To become the session leader of this new session and the process group - # leader of the new process group, we call os.setsid(). The process is - # also guaranteed not to have a controlling terminal. - os.setsid() - try: - # Fork a second child and exit immediately to prevent zombies. This - # causes the second child process to be orphaned, making the init - # process responsible for its cleanup. And, since the first child is - # a session leader without a controlling terminal, it's possible for - # it to acquire one by opening a terminal in the future (System V- - # based systems). This second fork guarantees that the child is no - # longer a session leader, preventing the daemon from ever acquiring - # a controlling terminal. - pid = os.fork() # Fork a second child. - except OSError as e: - raise Exception("%s [%d]" % (e.strerror, e.errno)) - - if (pid != 0): - # Parent (the first child) of the second child. - # exit() or _exit()? - # _exit is like exit(), but it doesn't call any functions registered - # with atexit (and on_exit) or any registered signal handlers. It also - # closes any open file descriptors. Using exit() may cause all stdio - # streams to be flushed twice and any temporary files may be unexpectedly - # removed. It's therefore recommended that child branches of a fork() - # and the parent branch(es) of a daemon use _exit(). - os._exit(0) - else: - os.waitpid(pid, 0) - return - - # The second child. - - # Replace standard fds with our own - si = open('/dev/null', 'r') - os.dup2(si.fileno(), sys.stdin.fileno()) - - try: - so = open(logfile, 'a+') - se = so - os.dup2(so.fileno(), sys.stdout.fileno()) - os.dup2(se.fileno(), sys.stderr.fileno()) - except io.UnsupportedOperation: - sys.stdout = open(logfile, 'a+') - sys.stderr = sys.stdout - - try: - function() - except Exception as e: - traceback.print_exc() - finally: - bb.event.print_ui_queue() - os._exit(0) diff --git a/poky/bitbake/lib/bb/data.py b/poky/bitbake/lib/bb/data.py deleted file mode 100644 index 80a7879..0000000 --- a/poky/bitbake/lib/bb/data.py +++ /dev/null @@ -1,403 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Data' implementations - -Functions for interacting with the data structure used by the -BitBake build tools. - -The expandKeys and update_data are the most expensive -operations. At night the cookie monster came by and -suggested 'give me cookies on setting the variables and -things will work out'. Taking this suggestion into account -applying the skills from the not yet passed 'Entwurf und -Analyse von Algorithmen' lecture and the cookie -monster seems to be right. We will track setVar more carefully -to have faster update_data and expandKeys operations. - -This is a trade-off between speed and memory again but -the speed is more critical here. -""" - -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2005 Holger Hans Peter Freyther -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -import sys, os, re -if sys.argv[0][-5:] == "pydoc": - path = os.path.dirname(os.path.dirname(sys.argv[1])) -else: - path = os.path.dirname(os.path.dirname(sys.argv[0])) -sys.path.insert(0, path) -from itertools import groupby - -from bb import data_smart -from bb import codeparser -import bb - -logger = data_smart.logger -_dict_type = data_smart.DataSmart - -def init(): - """Return a new object representing the Bitbake data""" - return _dict_type() - -def init_db(parent = None): - """Return a new object representing the Bitbake data, - optionally based on an existing object""" - if parent is not None: - return parent.createCopy() - else: - return _dict_type() - -def createCopy(source): - """Link the source set to the destination - If one does not find the value in the destination set, - search will go on to the source set to get the value. - Value from source are copy-on-write. i.e. any try to - modify one of them will end up putting the modified value - in the destination set. - """ - return source.createCopy() - -def initVar(var, d): - """Non-destructive var init for data structure""" - d.initVar(var) - -def keys(d): - """Return a list of keys in d""" - return d.keys() - - -__expand_var_regexp__ = re.compile(r"\${[^{}]+}") -__expand_python_regexp__ = re.compile(r"\${@.+?}") - -def expand(s, d, varname = None): - """Variable expansion using the data store""" - return d.expand(s, varname) - -def expandKeys(alterdata, readdata = None): - if readdata == None: - readdata = alterdata - - todolist = {} - for key in alterdata: - if not '${' in key: - continue - - ekey = expand(key, readdata) - if key == ekey: - continue - todolist[key] = ekey - - # These two for loops are split for performance to maximise the - # usefulness of the expand cache - for key in sorted(todolist): - ekey = todolist[key] - newval = alterdata.getVar(ekey, False) - if newval is not None: - val = alterdata.getVar(key, False) - if val is not None: - bb.warn("Variable key %s (%s) replaces original key %s (%s)." % (key, val, ekey, newval)) - alterdata.renameVar(key, ekey) - -def inheritFromOS(d, savedenv, permitted): - """Inherit variables from the initial environment.""" - exportlist = bb.utils.preserved_envvars_exported() - for s in savedenv.keys(): - if s in permitted: - try: - d.setVar(s, savedenv.getVar(s), op = 'from env') - if s in exportlist: - d.setVarFlag(s, "export", True, op = 'auto env export') - except TypeError: - pass - -def emit_var(var, o=sys.__stdout__, d = init(), all=False): - """Emit a variable to be sourced by a shell.""" - func = d.getVarFlag(var, "func", False) - if d.getVarFlag(var, 'python', False) and func: - return False - - export = d.getVarFlag(var, "export", False) - unexport = d.getVarFlag(var, "unexport", False) - if not all and not export and not unexport and not func: - return False - - try: - if all: - oval = d.getVar(var, False) - val = d.getVar(var) - except (KeyboardInterrupt, bb.build.FuncFailed): - raise - except Exception as exc: - o.write('# expansion of %s threw %s: %s\n' % (var, exc.__class__.__name__, str(exc))) - return False - - if all: - d.varhistory.emit(var, oval, val, o, d) - - if (var.find("-") != -1 or var.find(".") != -1 or var.find('{') != -1 or var.find('}') != -1 or var.find('+') != -1) and not all: - return False - - varExpanded = d.expand(var) - - if unexport: - o.write('unset %s\n' % varExpanded) - return False - - if val is None: - return False - - val = str(val) - - if varExpanded.startswith("BASH_FUNC_"): - varExpanded = varExpanded[10:-2] - val = val[3:] # Strip off "() " - o.write("%s() %s\n" % (varExpanded, val)) - o.write("export -f %s\n" % (varExpanded)) - return True - - if func: - # NOTE: should probably check for unbalanced {} within the var - val = val.rstrip('\n') - o.write("%s() {\n%s\n}\n" % (varExpanded, val)) - return 1 - - if export: - o.write('export ') - - # if we're going to output this within doublequotes, - # to a shell, we need to escape the quotes in the var - alter = re.sub('"', '\\"', val) - alter = re.sub('\n', ' \\\n', alter) - alter = re.sub('\\$', '\\\\$', alter) - o.write('%s="%s"\n' % (varExpanded, alter)) - return False - -def emit_env(o=sys.__stdout__, d = init(), all=False): - """Emits all items in the data store in a format such that it can be sourced by a shell.""" - - isfunc = lambda key: bool(d.getVarFlag(key, "func", False)) - keys = sorted((key for key in d.keys() if not key.startswith("__")), key=isfunc) - grouped = groupby(keys, isfunc) - for isfunc, keys in grouped: - for key in sorted(keys): - emit_var(key, o, d, all and not isfunc) and o.write('\n') - -def exported_keys(d): - return (key for key in d.keys() if not key.startswith('__') and - d.getVarFlag(key, 'export', False) and - not d.getVarFlag(key, 'unexport', False)) - -def exported_vars(d): - k = list(exported_keys(d)) - for key in k: - try: - value = d.getVar(key) - except Exception as err: - bb.warn("%s: Unable to export ${%s}: %s" % (d.getVar("FILE"), key, err)) - continue - - if value is not None: - yield key, str(value) - -def emit_func(func, o=sys.__stdout__, d = init()): - """Emits all items in the data store in a format such that it can be sourced by a shell.""" - - keys = (key for key in d.keys() if not key.startswith("__") and not d.getVarFlag(key, "func", False)) - for key in sorted(keys): - emit_var(key, o, d, False) - - o.write('\n') - emit_var(func, o, d, False) and o.write('\n') - newdeps = bb.codeparser.ShellParser(func, logger).parse_shell(d.getVar(func)) - newdeps |= set((d.getVarFlag(func, "vardeps") or "").split()) - seen = set() - while newdeps: - deps = newdeps - seen |= deps - newdeps = set() - for dep in deps: - if d.getVarFlag(dep, "func", False) and not d.getVarFlag(dep, "python", False): - emit_var(dep, o, d, False) and o.write('\n') - newdeps |= bb.codeparser.ShellParser(dep, logger).parse_shell(d.getVar(dep)) - newdeps |= set((d.getVarFlag(dep, "vardeps") or "").split()) - newdeps -= seen - -_functionfmt = """ -def {function}(d): -{body}""" - -def emit_func_python(func, o=sys.__stdout__, d = init()): - """Emits all items in the data store in a format such that it can be sourced by a shell.""" - - def write_func(func, o, call = False): - body = d.getVar(func, False) - if not body.startswith("def"): - body = _functionfmt.format(function=func, body=body) - - o.write(body.strip() + "\n\n") - if call: - o.write(func + "(d)" + "\n\n") - - write_func(func, o, True) - pp = bb.codeparser.PythonParser(func, logger) - pp.parse_python(d.getVar(func, False)) - newdeps = pp.execs - newdeps |= set((d.getVarFlag(func, "vardeps") or "").split()) - seen = set() - while newdeps: - deps = newdeps - seen |= deps - newdeps = set() - for dep in deps: - if d.getVarFlag(dep, "func", False) and d.getVarFlag(dep, "python", False): - write_func(dep, o) - pp = bb.codeparser.PythonParser(dep, logger) - pp.parse_python(d.getVar(dep, False)) - newdeps |= pp.execs - newdeps |= set((d.getVarFlag(dep, "vardeps") or "").split()) - newdeps -= seen - -def update_data(d): - """Performs final steps upon the datastore, including application of overrides""" - d.finalize(parent = True) - -def build_dependencies(key, keys, shelldeps, varflagsexcl, d): - deps = set() - try: - if key[-1] == ']': - vf = key[:-1].split('[') - value = d.getVarFlag(vf[0], vf[1], False) - parser = d.expandWithRefs(value, key) - deps |= parser.references - deps = deps | (keys & parser.execs) - return deps, value - varflags = d.getVarFlags(key, ["vardeps", "vardepvalue", "vardepsexclude", "exports", "postfuncs", "prefuncs", "lineno", "filename"]) or {} - vardeps = varflags.get("vardeps") - value = d.getVarFlag(key, "_content", False) - - def handle_contains(value, contains, d): - newvalue = "" - for k in sorted(contains): - l = (d.getVar(k) or "").split() - for item in sorted(contains[k]): - for word in item.split(): - if not word in l: - newvalue += "\n%s{%s} = Unset" % (k, item) - break - else: - newvalue += "\n%s{%s} = Set" % (k, item) - if not newvalue: - return value - if not value: - return newvalue - return value + newvalue - - if "vardepvalue" in varflags: - value = varflags.get("vardepvalue") - elif varflags.get("func"): - if varflags.get("python"): - parser = bb.codeparser.PythonParser(key, logger) - if value and "\t" in value: - logger.warning("Variable %s contains tabs, please remove these (%s)" % (key, d.getVar("FILE"))) - parser.parse_python(value, filename=varflags.get("filename"), lineno=varflags.get("lineno")) - deps = deps | parser.references - deps = deps | (keys & parser.execs) - value = handle_contains(value, parser.contains, d) - else: - parsedvar = d.expandWithRefs(value, key) - parser = bb.codeparser.ShellParser(key, logger) - parser.parse_shell(parsedvar.value) - deps = deps | shelldeps - deps = deps | parsedvar.references - deps = deps | (keys & parser.execs) | (keys & parsedvar.execs) - value = handle_contains(value, parsedvar.contains, d) - if vardeps is None: - parser.log.flush() - if "prefuncs" in varflags: - deps = deps | set(varflags["prefuncs"].split()) - if "postfuncs" in varflags: - deps = deps | set(varflags["postfuncs"].split()) - if "exports" in varflags: - deps = deps | set(varflags["exports"].split()) - else: - parser = d.expandWithRefs(value, key) - deps |= parser.references - deps = deps | (keys & parser.execs) - value = handle_contains(value, parser.contains, d) - - if "vardepvalueexclude" in varflags: - exclude = varflags.get("vardepvalueexclude") - for excl in exclude.split('|'): - if excl: - value = value.replace(excl, '') - - # Add varflags, assuming an exclusion list is set - if varflagsexcl: - varfdeps = [] - for f in varflags: - if f not in varflagsexcl: - varfdeps.append('%s[%s]' % (key, f)) - if varfdeps: - deps |= set(varfdeps) - - deps |= set((vardeps or "").split()) - deps -= set(varflags.get("vardepsexclude", "").split()) - except bb.parse.SkipRecipe: - raise - except Exception as e: - bb.warn("Exception during build_dependencies for %s" % key) - raise - return deps, value - #bb.note("Variable %s references %s and calls %s" % (key, str(deps), str(execs))) - #d.setVarFlag(key, "vardeps", deps) - -def generate_dependencies(d): - - keys = set(key for key in d if not key.startswith("__")) - shelldeps = set(key for key in d.getVar("__exportlist", False) if d.getVarFlag(key, "export", False) and not d.getVarFlag(key, "unexport", False)) - varflagsexcl = d.getVar('BB_SIGNATURE_EXCLUDE_FLAGS') - - deps = {} - values = {} - - tasklist = d.getVar('__BBTASKS', False) or [] - for task in tasklist: - deps[task], values[task] = build_dependencies(task, keys, shelldeps, varflagsexcl, d) - newdeps = deps[task] - seen = set() - while newdeps: - nextdeps = newdeps - seen |= nextdeps - newdeps = set() - for dep in nextdeps: - if dep not in deps: - deps[dep], values[dep] = build_dependencies(dep, keys, shelldeps, varflagsexcl, d) - newdeps |= deps[dep] - newdeps -= seen - #print "For %s: %s" % (task, str(deps[task])) - return tasklist, deps, values - -def inherits_class(klass, d): - val = d.getVar('__inherit_cache', False) or [] - needle = os.path.join('classes', '%s.bbclass' % klass) - for v in val: - if v.endswith(needle): - return True - return False diff --git a/poky/bitbake/lib/bb/data_smart.py b/poky/bitbake/lib/bb/data_smart.py deleted file mode 100644 index 7b09af5..0000000 --- a/poky/bitbake/lib/bb/data_smart.py +++ /dev/null @@ -1,1037 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake Smart Dictionary Implementation - -Functions for interacting with the data structure used by the -BitBake build tools. - -""" - -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2004, 2005 Seb Frankengul -# Copyright (C) 2005, 2006 Holger Hans Peter Freyther -# Copyright (C) 2005 Uli Luckas -# Copyright (C) 2005 ROAD GmbH -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -import copy, re, sys, traceback -from collections import MutableMapping -import logging -import hashlib -import bb, bb.codeparser -from bb import utils -from bb.COW import COWDictBase - -logger = logging.getLogger("BitBake.Data") - -__setvar_keyword__ = ["_append", "_prepend", "_remove"] -__setvar_regexp__ = re.compile('(?P<base>.*?)(?P<keyword>_append|_prepend|_remove)(_(?P<add>[^A-Z]*))?$') -__expand_var_regexp__ = re.compile(r"\${[^{}@\n\t :]+}") -__expand_python_regexp__ = re.compile(r"\${@.+?}") - -def infer_caller_details(loginfo, parent = False, varval = True): - """Save the caller the trouble of specifying everything.""" - # Save effort. - if 'ignore' in loginfo and loginfo['ignore']: - return - # If nothing was provided, mark this as possibly unneeded. - if not loginfo: - loginfo['ignore'] = True - return - # Infer caller's likely values for variable (var) and value (value), - # to reduce clutter in the rest of the code. - above = None - def set_above(): - try: - raise Exception - except Exception: - tb = sys.exc_info()[2] - if parent: - return tb.tb_frame.f_back.f_back.f_back - else: - return tb.tb_frame.f_back.f_back - - if varval and ('variable' not in loginfo or 'detail' not in loginfo): - if not above: - above = set_above() - lcls = above.f_locals.items() - for k, v in lcls: - if k == 'value' and 'detail' not in loginfo: - loginfo['detail'] = v - if k == 'var' and 'variable' not in loginfo: - loginfo['variable'] = v - # Infer file/line/function from traceback - # Don't use traceback.extract_stack() since it fills the line contents which - # we don't need and that hits stat syscalls - if 'file' not in loginfo: - if not above: - above = set_above() - f = above.f_back - line = f.f_lineno - file = f.f_code.co_filename - func = f.f_code.co_name - loginfo['file'] = file - loginfo['line'] = line - if func not in loginfo: - loginfo['func'] = func - -class VariableParse: - def __init__(self, varname, d, val = None): - self.varname = varname - self.d = d - self.value = val - - self.references = set() - self.execs = set() - self.contains = {} - - def var_sub(self, match): - key = match.group()[2:-1] - if self.varname and key: - if self.varname == key: - raise Exception("variable %s references itself!" % self.varname) - if key in self.d.expand_cache: - varparse = self.d.expand_cache[key] - var = varparse.value - else: - var = self.d.getVarFlag(key, "_content") - self.references.add(key) - if var is not None: - return var - else: - return match.group() - - def python_sub(self, match): - if isinstance(match, str): - code = match - else: - code = match.group()[3:-1] - - if "_remote_data" in self.d: - connector = self.d["_remote_data"] - return connector.expandPythonRef(self.varname, code, self.d) - - codeobj = compile(code.strip(), self.varname or "<expansion>", "eval") - - parser = bb.codeparser.PythonParser(self.varname, logger) - parser.parse_python(code) - if self.varname: - vardeps = self.d.getVarFlag(self.varname, "vardeps") - if vardeps is None: - parser.log.flush() - else: - parser.log.flush() - self.references |= parser.references - self.execs |= parser.execs - - for k in parser.contains: - if k not in self.contains: - self.contains[k] = parser.contains[k].copy() - else: - self.contains[k].update(parser.contains[k]) - value = utils.better_eval(codeobj, DataContext(self.d), {'d' : self.d}) - return str(value) - - -class DataContext(dict): - def __init__(self, metadata, **kwargs): - self.metadata = metadata - dict.__init__(self, **kwargs) - self['d'] = metadata - - def __missing__(self, key): - value = self.metadata.getVar(key) - if value is None or self.metadata.getVarFlag(key, 'func', False): - raise KeyError(key) - else: - return value - -class ExpansionError(Exception): - def __init__(self, varname, expression, exception): - self.expression = expression - self.variablename = varname - self.exception = exception - if varname: - if expression: - self.msg = "Failure expanding variable %s, expression was %s which triggered exception %s: %s" % (varname, expression, type(exception).__name__, exception) - else: - self.msg = "Failure expanding variable %s: %s: %s" % (varname, type(exception).__name__, exception) - else: - self.msg = "Failure expanding expression %s which triggered exception %s: %s" % (expression, type(exception).__name__, exception) - Exception.__init__(self, self.msg) - self.args = (varname, expression, exception) - def __str__(self): - return self.msg - -class IncludeHistory(object): - def __init__(self, parent = None, filename = '[TOP LEVEL]'): - self.parent = parent - self.filename = filename - self.children = [] - self.current = self - - def copy(self): - new = IncludeHistory(self.parent, self.filename) - for c in self.children: - new.children.append(c) - return new - - def include(self, filename): - newfile = IncludeHistory(self.current, filename) - self.current.children.append(newfile) - self.current = newfile - return self - - def __enter__(self): - pass - - def __exit__(self, a, b, c): - if self.current.parent: - self.current = self.current.parent - else: - bb.warn("Include log: Tried to finish '%s' at top level." % filename) - return False - - def emit(self, o, level = 0): - """Emit an include history file, and its children.""" - if level: - spaces = " " * (level - 1) - o.write("# %s%s" % (spaces, self.filename)) - if len(self.children) > 0: - o.write(" includes:") - else: - o.write("#\n# INCLUDE HISTORY:\n#") - level = level + 1 - for child in self.children: - o.write("\n") - child.emit(o, level) - -class VariableHistory(object): - def __init__(self, dataroot): - self.dataroot = dataroot - self.variables = COWDictBase.copy() - - def copy(self): - new = VariableHistory(self.dataroot) - new.variables = self.variables.copy() - return new - - def __getstate__(self): - vardict = {} - for k, v in self.variables.iteritems(): - vardict[k] = v - return {'dataroot': self.dataroot, - 'variables': vardict} - - def __setstate__(self, state): - self.dataroot = state['dataroot'] - self.variables = COWDictBase.copy() - for k, v in state['variables'].items(): - self.variables[k] = v - - def record(self, *kwonly, **loginfo): - if not self.dataroot._tracking: - return - if len(kwonly) > 0: - raise TypeError - infer_caller_details(loginfo, parent = True) - if 'ignore' in loginfo and loginfo['ignore']: - return - if 'op' not in loginfo or not loginfo['op']: - loginfo['op'] = 'set' - if 'detail' in loginfo: - loginfo['detail'] = str(loginfo['detail']) - if 'variable' not in loginfo or 'file' not in loginfo: - raise ValueError("record() missing variable or file.") - var = loginfo['variable'] - - if var not in self.variables: - self.variables[var] = [] - if not isinstance(self.variables[var], list): - return - if 'nodups' in loginfo and loginfo in self.variables[var]: - return - self.variables[var].append(loginfo.copy()) - - def variable(self, var): - remote_connector = self.dataroot.getVar('_remote_data', False) - if remote_connector: - varhistory = remote_connector.getVarHistory(var) - else: - varhistory = [] - - if var in self.variables: - varhistory.extend(self.variables[var]) - return varhistory - - def emit(self, var, oval, val, o, d): - history = self.variable(var) - - # Append override history - if var in d.overridedata: - for (r, override) in d.overridedata[var]: - for event in self.variable(r): - loginfo = event.copy() - if 'flag' in loginfo and not loginfo['flag'].startswith("_"): - continue - loginfo['variable'] = var - loginfo['op'] = 'override[%s]:%s' % (override, loginfo['op']) - history.append(loginfo) - - commentVal = re.sub('\n', '\n#', str(oval)) - if history: - if len(history) == 1: - o.write("#\n# $%s\n" % var) - else: - o.write("#\n# $%s [%d operations]\n" % (var, len(history))) - for event in history: - # o.write("# %s\n" % str(event)) - if 'func' in event: - # If we have a function listed, this is internal - # code, not an operation in a config file, and the - # full path is distracting. - event['file'] = re.sub('.*/', '', event['file']) - display_func = ' [%s]' % event['func'] - else: - display_func = '' - if 'flag' in event: - flag = '[%s] ' % (event['flag']) - else: - flag = '' - o.write("# %s %s:%s%s\n# %s\"%s\"\n" % (event['op'], event['file'], event['line'], display_func, flag, re.sub('\n', '\n# ', event['detail']))) - if len(history) > 1: - o.write("# pre-expansion value:\n") - o.write('# "%s"\n' % (commentVal)) - else: - o.write("#\n# $%s\n# [no history recorded]\n#\n" % var) - o.write('# "%s"\n' % (commentVal)) - - def get_variable_files(self, var): - """Get the files where operations are made on a variable""" - var_history = self.variable(var) - files = [] - for event in var_history: - files.append(event['file']) - return files - - def get_variable_lines(self, var, f): - """Get the line where a operation is made on a variable in file f""" - var_history = self.variable(var) - lines = [] - for event in var_history: - if f== event['file']: - line = event['line'] - lines.append(line) - return lines - - def get_variable_items_files(self, var, d): - """ - Use variable history to map items added to a list variable and - the files in which they were added. - """ - history = self.variable(var) - finalitems = (d.getVar(var) or '').split() - filemap = {} - isset = False - for event in history: - if 'flag' in event: - continue - if event['op'] == '_remove': - continue - if isset and event['op'] == 'set?': - continue - isset = True - items = d.expand(event['detail']).split() - for item in items: - # This is a little crude but is belt-and-braces to avoid us - # having to handle every possible operation type specifically - if item in finalitems and not item in filemap: - filemap[item] = event['file'] - return filemap - - def del_var_history(self, var, f=None, line=None): - """If file f and line are not given, the entire history of var is deleted""" - if var in self.variables: - if f and line: - self.variables[var] = [ x for x in self.variables[var] if x['file']!=f and x['line']!=line] - else: - self.variables[var] = [] - -class DataSmart(MutableMapping): - def __init__(self): - self.dict = {} - - self.inchistory = IncludeHistory() - self.varhistory = VariableHistory(self) - self._tracking = False - - self.expand_cache = {} - - # cookie monster tribute - # Need to be careful about writes to overridedata as - # its only a shallow copy, could influence other data store - # copies! - self.overridedata = {} - self.overrides = None - self.overridevars = set(["OVERRIDES", "FILE"]) - self.inoverride = False - - def enableTracking(self): - self._tracking = True - - def disableTracking(self): - self._tracking = False - - def expandWithRefs(self, s, varname): - - if not isinstance(s, str): # sanity check - return VariableParse(varname, self, s) - - if varname and varname in self.expand_cache: - return self.expand_cache[varname] - - varparse = VariableParse(varname, self) - - while s.find('${') != -1: - olds = s - try: - s = __expand_var_regexp__.sub(varparse.var_sub, s) - try: - s = __expand_python_regexp__.sub(varparse.python_sub, s) - except SyntaxError as e: - # Likely unmatched brackets, just don't expand the expression - if e.msg != "EOL while scanning string literal": - raise - if s == olds: - break - except ExpansionError: - raise - except bb.parse.SkipRecipe: - raise - except Exception as exc: - raise ExpansionError(varname, s, exc) from exc - - varparse.value = s - - if varname: - self.expand_cache[varname] = varparse - - return varparse - - def expand(self, s, varname = None): - return self.expandWithRefs(s, varname).value - - def finalize(self, parent = False): - return - - def internal_finalize(self, parent = False): - """Performs final steps upon the datastore, including application of overrides""" - self.overrides = None - - def need_overrides(self): - if self.overrides is not None: - return - if self.inoverride: - return - for count in range(5): - self.inoverride = True - # Can end up here recursively so setup dummy values - self.overrides = [] - self.overridesset = set() - self.overrides = (self.getVar("OVERRIDES") or "").split(":") or [] - self.overridesset = set(self.overrides) - self.inoverride = False - self.expand_cache = {} - newoverrides = (self.getVar("OVERRIDES") or "").split(":") or [] - if newoverrides == self.overrides: - break - self.overrides = newoverrides - self.overridesset = set(self.overrides) - else: - bb.fatal("Overrides could not be expanded into a stable state after 5 iterations, overrides must be being referenced by other overridden variables in some recursive fashion. Please provide your configuration to bitbake-devel so we can laugh, er, I mean try and understand how to make it work.") - - def initVar(self, var): - self.expand_cache = {} - if not var in self.dict: - self.dict[var] = {} - - def _findVar(self, var): - dest = self.dict - while dest: - if var in dest: - return dest[var], self.overridedata.get(var, None) - - if "_remote_data" in dest: - connector = dest["_remote_data"]["_content"] - return connector.getVar(var) - - if "_data" not in dest: - break - dest = dest["_data"] - return None, self.overridedata.get(var, None) - - def _makeShadowCopy(self, var): - if var in self.dict: - return - - local_var, _ = self._findVar(var) - - if local_var: - self.dict[var] = copy.copy(local_var) - else: - self.initVar(var) - - - def setVar(self, var, value, **loginfo): - #print("var=" + str(var) + " val=" + str(value)) - parsing=False - if 'parsing' in loginfo: - parsing=True - - if '_remote_data' in self.dict: - connector = self.dict["_remote_data"]["_content"] - res = connector.setVar(var, value) - if not res: - return - - if 'op' not in loginfo: - loginfo['op'] = "set" - self.expand_cache = {} - match = __setvar_regexp__.match(var) - if match and match.group("keyword") in __setvar_keyword__: - base = match.group('base') - keyword = match.group("keyword") - override = match.group('add') - l = self.getVarFlag(base, keyword, False) or [] - l.append([value, override]) - self.setVarFlag(base, keyword, l, ignore=True) - # And cause that to be recorded: - loginfo['detail'] = value - loginfo['variable'] = base - if override: - loginfo['op'] = '%s[%s]' % (keyword, override) - else: - loginfo['op'] = keyword - self.varhistory.record(**loginfo) - # todo make sure keyword is not __doc__ or __module__ - # pay the cookie monster - - # more cookies for the cookie monster - if '_' in var: - self._setvar_update_overrides(base, **loginfo) - - if base in self.overridevars: - self._setvar_update_overridevars(var, value) - return - - if not var in self.dict: - self._makeShadowCopy(var) - - if not parsing: - if "_append" in self.dict[var]: - del self.dict[var]["_append"] - if "_prepend" in self.dict[var]: - del self.dict[var]["_prepend"] - if "_remove" in self.dict[var]: - del self.dict[var]["_remove"] - if var in self.overridedata: - active = [] - self.need_overrides() - for (r, o) in self.overridedata[var]: - if o in self.overridesset: - active.append(r) - elif "_" in o: - if set(o.split("_")).issubset(self.overridesset): - active.append(r) - for a in active: - self.delVar(a) - del self.overridedata[var] - - # more cookies for the cookie monster - if '_' in var: - self._setvar_update_overrides(var, **loginfo) - - # setting var - self.dict[var]["_content"] = value - self.varhistory.record(**loginfo) - - if var in self.overridevars: - self._setvar_update_overridevars(var, value) - - def _setvar_update_overridevars(self, var, value): - vardata = self.expandWithRefs(value, var) - new = vardata.references - new.update(vardata.contains.keys()) - while not new.issubset(self.overridevars): - nextnew = set() - self.overridevars.update(new) - for i in new: - vardata = self.expandWithRefs(self.getVar(i), i) - nextnew.update(vardata.references) - nextnew.update(vardata.contains.keys()) - new = nextnew - self.internal_finalize(True) - - def _setvar_update_overrides(self, var, **loginfo): - # aka pay the cookie monster - override = var[var.rfind('_')+1:] - shortvar = var[:var.rfind('_')] - while override and override.islower(): - if shortvar not in self.overridedata: - self.overridedata[shortvar] = [] - if [var, override] not in self.overridedata[shortvar]: - # Force CoW by recreating the list first - self.overridedata[shortvar] = list(self.overridedata[shortvar]) - self.overridedata[shortvar].append([var, override]) - override = None - if "_" in shortvar: - override = var[shortvar.rfind('_')+1:] - shortvar = var[:shortvar.rfind('_')] - if len(shortvar) == 0: - override = None - - def getVar(self, var, expand=True, noweakdefault=False, parsing=False): - return self.getVarFlag(var, "_content", expand, noweakdefault, parsing) - - def renameVar(self, key, newkey, **loginfo): - """ - Rename the variable key to newkey - """ - if '_remote_data' in self.dict: - connector = self.dict["_remote_data"]["_content"] - res = connector.renameVar(key, newkey) - if not res: - return - - val = self.getVar(key, 0, parsing=True) - if val is not None: - loginfo['variable'] = newkey - loginfo['op'] = 'rename from %s' % key - loginfo['detail'] = val - self.varhistory.record(**loginfo) - self.setVar(newkey, val, ignore=True, parsing=True) - - for i in (__setvar_keyword__): - src = self.getVarFlag(key, i, False) - if src is None: - continue - - dest = self.getVarFlag(newkey, i, False) or [] - dest.extend(src) - self.setVarFlag(newkey, i, dest, ignore=True) - - if key in self.overridedata: - self.overridedata[newkey] = [] - for (v, o) in self.overridedata[key]: - self.overridedata[newkey].append([v.replace(key, newkey), o]) - self.renameVar(v, v.replace(key, newkey)) - - if '_' in newkey and val is None: - self._setvar_update_overrides(newkey, **loginfo) - - loginfo['variable'] = key - loginfo['op'] = 'rename (to)' - loginfo['detail'] = newkey - self.varhistory.record(**loginfo) - self.delVar(key, ignore=True) - - def appendVar(self, var, value, **loginfo): - loginfo['op'] = 'append' - self.varhistory.record(**loginfo) - self.setVar(var + "_append", value, ignore=True, parsing=True) - - def prependVar(self, var, value, **loginfo): - loginfo['op'] = 'prepend' - self.varhistory.record(**loginfo) - self.setVar(var + "_prepend", value, ignore=True, parsing=True) - - def delVar(self, var, **loginfo): - if '_remote_data' in self.dict: - connector = self.dict["_remote_data"]["_content"] - res = connector.delVar(var) - if not res: - return - - loginfo['detail'] = "" - loginfo['op'] = 'del' - self.varhistory.record(**loginfo) - self.expand_cache = {} - self.dict[var] = {} - if var in self.overridedata: - del self.overridedata[var] - if '_' in var: - override = var[var.rfind('_')+1:] - shortvar = var[:var.rfind('_')] - while override and override.islower(): - try: - if shortvar in self.overridedata: - # Force CoW by recreating the list first - self.overridedata[shortvar] = list(self.overridedata[shortvar]) - self.overridedata[shortvar].remove([var, override]) - except ValueError as e: - pass - override = None - if "_" in shortvar: - override = var[shortvar.rfind('_')+1:] - shortvar = var[:shortvar.rfind('_')] - if len(shortvar) == 0: - override = None - - def setVarFlag(self, var, flag, value, **loginfo): - if '_remote_data' in self.dict: - connector = self.dict["_remote_data"]["_content"] - res = connector.setVarFlag(var, flag, value) - if not res: - return - - self.expand_cache = {} - if 'op' not in loginfo: - loginfo['op'] = "set" - loginfo['flag'] = flag - self.varhistory.record(**loginfo) - if not var in self.dict: - self._makeShadowCopy(var) - self.dict[var][flag] = value - - if flag == "_defaultval" and '_' in var: - self._setvar_update_overrides(var, **loginfo) - if flag == "_defaultval" and var in self.overridevars: - self._setvar_update_overridevars(var, value) - - if flag == "unexport" or flag == "export": - if not "__exportlist" in self.dict: - self._makeShadowCopy("__exportlist") - if not "_content" in self.dict["__exportlist"]: - self.dict["__exportlist"]["_content"] = set() - self.dict["__exportlist"]["_content"].add(var) - - def getVarFlag(self, var, flag, expand=True, noweakdefault=False, parsing=False): - local_var, overridedata = self._findVar(var) - value = None - if flag == "_content" and overridedata is not None and not parsing: - match = False - active = {} - self.need_overrides() - for (r, o) in overridedata: - # What about double overrides both with "_" in the name? - if o in self.overridesset: - active[o] = r - elif "_" in o: - if set(o.split("_")).issubset(self.overridesset): - active[o] = r - - mod = True - while mod: - mod = False - for o in self.overrides: - for a in active.copy(): - if a.endswith("_" + o): - t = active[a] - del active[a] - active[a.replace("_" + o, "")] = t - mod = True - elif a == o: - match = active[a] - del active[a] - if match: - value = self.getVar(match, False) - - if local_var is not None and value is None: - if flag in local_var: - value = copy.copy(local_var[flag]) - elif flag == "_content" and "_defaultval" in local_var and not noweakdefault: - value = copy.copy(local_var["_defaultval"]) - - - if flag == "_content" and local_var is not None and "_append" in local_var and not parsing: - if not value: - value = "" - self.need_overrides() - for (r, o) in local_var["_append"]: - match = True - if o: - for o2 in o.split("_"): - if not o2 in self.overrides: - match = False - if match: - value = value + r - - if flag == "_content" and local_var is not None and "_prepend" in local_var and not parsing: - if not value: - value = "" - self.need_overrides() - for (r, o) in local_var["_prepend"]: - - match = True - if o: - for o2 in o.split("_"): - if not o2 in self.overrides: - match = False - if match: - value = r + value - - if expand and value: - # Only getvar (flag == _content) hits the expand cache - cachename = None - if flag == "_content": - cachename = var - else: - cachename = var + "[" + flag + "]" - value = self.expand(value, cachename) - - if value and flag == "_content" and local_var is not None and "_remove" in local_var: - removes = [] - self.need_overrides() - for (r, o) in local_var["_remove"]: - match = True - if o: - for o2 in o.split("_"): - if not o2 in self.overrides: - match = False - if match: - removes.extend(self.expand(r).split()) - - if removes: - filtered = filter(lambda v: v not in removes, - value.split()) - value = " ".join(filtered) - if expand and var in self.expand_cache: - # We need to ensure the expand cache has the correct value - # flag == "_content" here - self.expand_cache[var].value = value - return value - - def delVarFlag(self, var, flag, **loginfo): - if '_remote_data' in self.dict: - connector = self.dict["_remote_data"]["_content"] - res = connector.delVarFlag(var, flag) - if not res: - return - - self.expand_cache = {} - local_var, _ = self._findVar(var) - if not local_var: - return - if not var in self.dict: - self._makeShadowCopy(var) - - if var in self.dict and flag in self.dict[var]: - loginfo['detail'] = "" - loginfo['op'] = 'delFlag' - loginfo['flag'] = flag - self.varhistory.record(**loginfo) - - del self.dict[var][flag] - - def appendVarFlag(self, var, flag, value, **loginfo): - loginfo['op'] = 'append' - loginfo['flag'] = flag - self.varhistory.record(**loginfo) - newvalue = (self.getVarFlag(var, flag, False) or "") + value - self.setVarFlag(var, flag, newvalue, ignore=True) - - def prependVarFlag(self, var, flag, value, **loginfo): - loginfo['op'] = 'prepend' - loginfo['flag'] = flag - self.varhistory.record(**loginfo) - newvalue = value + (self.getVarFlag(var, flag, False) or "") - self.setVarFlag(var, flag, newvalue, ignore=True) - - def setVarFlags(self, var, flags, **loginfo): - self.expand_cache = {} - infer_caller_details(loginfo) - if not var in self.dict: - self._makeShadowCopy(var) - - for i in flags: - if i == "_content": - continue - loginfo['flag'] = i - loginfo['detail'] = flags[i] - self.varhistory.record(**loginfo) - self.dict[var][i] = flags[i] - - def getVarFlags(self, var, expand = False, internalflags=False): - local_var, _ = self._findVar(var) - flags = {} - - if local_var: - for i in local_var: - if i.startswith("_") and not internalflags: - continue - flags[i] = local_var[i] - if expand and i in expand: - flags[i] = self.expand(flags[i], var + "[" + i + "]") - if len(flags) == 0: - return None - return flags - - - def delVarFlags(self, var, **loginfo): - self.expand_cache = {} - if not var in self.dict: - self._makeShadowCopy(var) - - if var in self.dict: - content = None - - loginfo['op'] = 'delete flags' - self.varhistory.record(**loginfo) - - # try to save the content - if "_content" in self.dict[var]: - content = self.dict[var]["_content"] - self.dict[var] = {} - self.dict[var]["_content"] = content - else: - del self.dict[var] - - def createCopy(self): - """ - Create a copy of self by setting _data to self - """ - # we really want this to be a DataSmart... - data = DataSmart() - data.dict["_data"] = self.dict - data.varhistory = self.varhistory.copy() - data.varhistory.dataroot = data - data.inchistory = self.inchistory.copy() - - data._tracking = self._tracking - - data.overrides = None - data.overridevars = copy.copy(self.overridevars) - # Should really be a deepcopy but has heavy overhead. - # Instead, we're careful with writes. - data.overridedata = copy.copy(self.overridedata) - - return data - - def expandVarref(self, variable, parents=False): - """Find all references to variable in the data and expand it - in place, optionally descending to parent datastores.""" - - if parents: - keys = iter(self) - else: - keys = self.localkeys() - - ref = '${%s}' % variable - value = self.getVar(variable, False) - for key in keys: - referrervalue = self.getVar(key, False) - if referrervalue and ref in referrervalue: - self.setVar(key, referrervalue.replace(ref, value)) - - def localkeys(self): - for key in self.dict: - if key not in ['_data', '_remote_data']: - yield key - - def __iter__(self): - deleted = set() - overrides = set() - def keylist(d): - klist = set() - for key in d: - if key in ["_data", "_remote_data"]: - continue - if key in deleted: - continue - if key in overrides: - continue - if not d[key]: - deleted.add(key) - continue - klist.add(key) - - if "_data" in d: - klist |= keylist(d["_data"]) - - if "_remote_data" in d: - connector = d["_remote_data"]["_content"] - for key in connector.getKeys(): - if key in deleted: - continue - klist.add(key) - - return klist - - self.need_overrides() - for var in self.overridedata: - for (r, o) in self.overridedata[var]: - if o in self.overridesset: - overrides.add(var) - elif "_" in o: - if set(o.split("_")).issubset(self.overridesset): - overrides.add(var) - - for k in keylist(self.dict): - yield k - - for k in overrides: - yield k - - def __len__(self): - return len(frozenset(iter(self))) - - def __getitem__(self, item): - value = self.getVar(item, False) - if value is None: - raise KeyError(item) - else: - return value - - def __setitem__(self, var, value): - self.setVar(var, value) - - def __delitem__(self, var): - self.delVar(var) - - def get_hash(self): - data = {} - d = self.createCopy() - bb.data.expandKeys(d) - - config_whitelist = set((d.getVar("BB_HASHCONFIG_WHITELIST") or "").split()) - keys = set(key for key in iter(d) if not key.startswith("__")) - for key in keys: - if key in config_whitelist: - continue - - value = d.getVar(key, False) or "" - data.update({key:value}) - - varflags = d.getVarFlags(key, internalflags = True) - if not varflags: - continue - for f in varflags: - if f == "_content": - continue - data.update({'%s[%s]' % (key, f):varflags[f]}) - - for key in ["__BBTASKS", "__BBANONFUNCS", "__BBHANDLERS"]: - bb_list = d.getVar(key, False) or [] - data.update({key:str(bb_list)}) - - if key == "__BBANONFUNCS": - for i in bb_list: - value = d.getVar(i, False) or "" - data.update({i:value}) - - data_str = str([(k, data[k]) for k in sorted(data.keys())]) - return hashlib.md5(data_str.encode("utf-8")).hexdigest() diff --git a/poky/bitbake/lib/bb/event.py b/poky/bitbake/lib/bb/event.py deleted file mode 100644 index 52072b5..0000000 --- a/poky/bitbake/lib/bb/event.py +++ /dev/null @@ -1,840 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Event' implementation - -Classes and functions for manipulating 'events' in the -BitBake build tools. -""" - -# Copyright (C) 2003, 2004 Chris Larson -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os, sys -import warnings -import pickle -import logging -import atexit -import traceback -import ast -import threading - -import bb.utils -import bb.compat -import bb.exceptions - -# This is the pid for which we should generate the event. This is set when -# the runqueue forks off. -worker_pid = 0 -worker_fire = None - -logger = logging.getLogger('BitBake.Event') - -class Event(object): - """Base class for events""" - - def __init__(self): - self.pid = worker_pid - - -class HeartbeatEvent(Event): - """Triggered at regular time intervals of 10 seconds. Other events can fire much more often - (runQueueTaskStarted when there are many short tasks) or not at all for long periods - of time (again runQueueTaskStarted, when there is just one long-running task), so this - event is more suitable for doing some task-independent work occassionally.""" - def __init__(self, time): - Event.__init__(self) - self.time = time - -Registered = 10 -AlreadyRegistered = 14 - -def get_class_handlers(): - return _handlers - -def set_class_handlers(h): - global _handlers - _handlers = h - -def clean_class_handlers(): - return bb.compat.OrderedDict() - -# Internal -_handlers = clean_class_handlers() -_ui_handlers = {} -_ui_logfilters = {} -_ui_handler_seq = 0 -_event_handler_map = {} -_catchall_handlers = {} -_eventfilter = None -_uiready = False -_thread_lock = threading.Lock() -_thread_lock_enabled = False - -if hasattr(__builtins__, '__setitem__'): - builtins = __builtins__ -else: - builtins = __builtins__.__dict__ - -def enable_threadlock(): - global _thread_lock_enabled - _thread_lock_enabled = True - -def disable_threadlock(): - global _thread_lock_enabled - _thread_lock_enabled = False - -def execute_handler(name, handler, event, d): - event.data = d - addedd = False - if 'd' not in builtins: - builtins['d'] = d - addedd = True - try: - ret = handler(event) - except (bb.parse.SkipRecipe, bb.BBHandledException): - raise - except Exception: - etype, value, tb = sys.exc_info() - logger.error("Execution of event handler '%s' failed" % name, - exc_info=(etype, value, tb.tb_next)) - raise - except SystemExit as exc: - if exc.code != 0: - logger.error("Execution of event handler '%s' failed" % name) - raise - finally: - del event.data - if addedd: - del builtins['d'] - -def fire_class_handlers(event, d): - if isinstance(event, logging.LogRecord): - return - - eid = str(event.__class__)[8:-2] - evt_hmap = _event_handler_map.get(eid, {}) - for name, handler in list(_handlers.items()): - if name in _catchall_handlers or name in evt_hmap: - if _eventfilter: - if not _eventfilter(name, handler, event, d): - continue - execute_handler(name, handler, event, d) - -ui_queue = [] -@atexit.register -def print_ui_queue(): - """If we're exiting before a UI has been spawned, display any queued - LogRecords to the console.""" - logger = logging.getLogger("BitBake") - if not _uiready: - from bb.msg import BBLogFormatter - stdout = logging.StreamHandler(sys.stdout) - stderr = logging.StreamHandler(sys.stderr) - formatter = BBLogFormatter("%(levelname)s: %(message)s") - stdout.setFormatter(formatter) - stderr.setFormatter(formatter) - - # First check to see if we have any proper messages - msgprint = False - msgerrs = False - - # Should we print to stderr? - for event in ui_queue[:]: - if isinstance(event, logging.LogRecord) and event.levelno >= logging.WARNING: - msgerrs = True - break - - if msgerrs: - logger.addHandler(stderr) - else: - logger.addHandler(stdout) - - for event in ui_queue[:]: - if isinstance(event, logging.LogRecord): - if event.levelno > logging.DEBUG: - logger.handle(event) - msgprint = True - - # Nope, so just print all of the messages we have (including debug messages) - if not msgprint: - for event in ui_queue[:]: - if isinstance(event, logging.LogRecord): - logger.handle(event) - if msgerrs: - logger.removeHandler(stderr) - else: - logger.removeHandler(stdout) - -def fire_ui_handlers(event, d): - global _thread_lock - global _thread_lock_enabled - - if not _uiready: - # No UI handlers registered yet, queue up the messages - ui_queue.append(event) - return - - if _thread_lock_enabled: - _thread_lock.acquire() - - errors = [] - for h in _ui_handlers: - #print "Sending event %s" % event - try: - if not _ui_logfilters[h].filter(event): - continue - # We use pickle here since it better handles object instances - # which xmlrpc's marshaller does not. Events *must* be serializable - # by pickle. - if hasattr(_ui_handlers[h].event, "sendpickle"): - _ui_handlers[h].event.sendpickle((pickle.dumps(event))) - else: - _ui_handlers[h].event.send(event) - except: - errors.append(h) - for h in errors: - del _ui_handlers[h] - - if _thread_lock_enabled: - _thread_lock.release() - -def fire(event, d): - """Fire off an Event""" - - # We can fire class handlers in the worker process context and this is - # desired so they get the task based datastore. - # UI handlers need to be fired in the server context so we defer this. They - # don't have a datastore so the datastore context isn't a problem. - - fire_class_handlers(event, d) - if worker_fire: - worker_fire(event, d) - else: - # If messages have been queued up, clear the queue - global _uiready, ui_queue - if _uiready and ui_queue: - for queue_event in ui_queue: - fire_ui_handlers(queue_event, d) - ui_queue = [] - fire_ui_handlers(event, d) - -def fire_from_worker(event, d): - fire_ui_handlers(event, d) - -noop = lambda _: None -def register(name, handler, mask=None, filename=None, lineno=None): - """Register an Event handler""" - - # already registered - if name in _handlers: - return AlreadyRegistered - - if handler is not None: - # handle string containing python code - if isinstance(handler, str): - tmp = "def %s(e):\n%s" % (name, handler) - try: - code = bb.methodpool.compile_cache(tmp) - if not code: - if filename is None: - filename = "%s(e)" % name - code = compile(tmp, filename, "exec", ast.PyCF_ONLY_AST) - if lineno is not None: - ast.increment_lineno(code, lineno-1) - code = compile(code, filename, "exec") - bb.methodpool.compile_cache_add(tmp, code) - except SyntaxError: - logger.error("Unable to register event handler '%s':\n%s", name, - ''.join(traceback.format_exc(limit=0))) - _handlers[name] = noop - return - env = {} - bb.utils.better_exec(code, env) - func = bb.utils.better_eval(name, env) - _handlers[name] = func - else: - _handlers[name] = handler - - if not mask or '*' in mask: - _catchall_handlers[name] = True - else: - for m in mask: - if _event_handler_map.get(m, None) is None: - _event_handler_map[m] = {} - _event_handler_map[m][name] = True - - return Registered - -def remove(name, handler): - """Remove an Event handler""" - _handlers.pop(name) - if name in _catchall_handlers: - _catchall_handlers.pop(name) - for event in _event_handler_map.keys(): - if name in _event_handler_map[event]: - _event_handler_map[event].pop(name) - -def get_handlers(): - return _handlers - -def set_handlers(handlers): - global _handlers - _handlers = handlers - -def set_eventfilter(func): - global _eventfilter - _eventfilter = func - -def register_UIHhandler(handler, mainui=False): - bb.event._ui_handler_seq = bb.event._ui_handler_seq + 1 - _ui_handlers[_ui_handler_seq] = handler - level, debug_domains = bb.msg.constructLogOptions() - _ui_logfilters[_ui_handler_seq] = UIEventFilter(level, debug_domains) - if mainui: - global _uiready - _uiready = _ui_handler_seq - return _ui_handler_seq - -def unregister_UIHhandler(handlerNum, mainui=False): - if mainui: - global _uiready - _uiready = False - if handlerNum in _ui_handlers: - del _ui_handlers[handlerNum] - return - -def get_uihandler(): - if _uiready is False: - return None - return _uiready - -# Class to allow filtering of events and specific filtering of LogRecords *before* we put them over the IPC -class UIEventFilter(object): - def __init__(self, level, debug_domains): - self.update(None, level, debug_domains) - - def update(self, eventmask, level, debug_domains): - self.eventmask = eventmask - self.stdlevel = level - self.debug_domains = debug_domains - - def filter(self, event): - if isinstance(event, logging.LogRecord): - if event.levelno >= self.stdlevel: - return True - if event.name in self.debug_domains and event.levelno >= self.debug_domains[event.name]: - return True - return False - eid = str(event.__class__)[8:-2] - if self.eventmask and eid not in self.eventmask: - return False - return True - -def set_UIHmask(handlerNum, level, debug_domains, mask): - if not handlerNum in _ui_handlers: - return False - if '*' in mask: - _ui_logfilters[handlerNum].update(None, level, debug_domains) - else: - _ui_logfilters[handlerNum].update(mask, level, debug_domains) - return True - -def getName(e): - """Returns the name of a class or class instance""" - if getattr(e, "__name__", None) == None: - return e.__class__.__name__ - else: - return e.__name__ - -class OperationStarted(Event): - """An operation has begun""" - def __init__(self, msg = "Operation Started"): - Event.__init__(self) - self.msg = msg - -class OperationCompleted(Event): - """An operation has completed""" - def __init__(self, total, msg = "Operation Completed"): - Event.__init__(self) - self.total = total - self.msg = msg - -class OperationProgress(Event): - """An operation is in progress""" - def __init__(self, current, total, msg = "Operation in Progress"): - Event.__init__(self) - self.current = current - self.total = total - self.msg = msg + ": %s/%s" % (current, total); - -class ConfigParsed(Event): - """Configuration Parsing Complete""" - -class MultiConfigParsed(Event): - """Multi-Config Parsing Complete""" - def __init__(self, mcdata): - self.mcdata = mcdata - Event.__init__(self) - -class RecipeEvent(Event): - def __init__(self, fn): - self.fn = fn - Event.__init__(self) - -class RecipePreFinalise(RecipeEvent): - """ Recipe Parsing Complete but not yet finialised""" - -class RecipeTaskPreProcess(RecipeEvent): - """ - Recipe Tasks about to be finalised - The list of tasks should be final at this point and handlers - are only able to change interdependencies - """ - def __init__(self, fn, tasklist): - self.fn = fn - self.tasklist = tasklist - Event.__init__(self) - -class RecipeParsed(RecipeEvent): - """ Recipe Parsing Complete """ - -class StampUpdate(Event): - """Trigger for any adjustment of the stamp files to happen""" - - def __init__(self, targets, stampfns): - self._targets = targets - self._stampfns = stampfns - Event.__init__(self) - - def getStampPrefix(self): - return self._stampfns - - def getTargets(self): - return self._targets - - stampPrefix = property(getStampPrefix) - targets = property(getTargets) - -class BuildBase(Event): - """Base class for bitbake build events""" - - def __init__(self, n, p, failures = 0): - self._name = n - self._pkgs = p - Event.__init__(self) - self._failures = failures - - def getPkgs(self): - return self._pkgs - - def setPkgs(self, pkgs): - self._pkgs = pkgs - - def getName(self): - return self._name - - def setName(self, name): - self._name = name - - def getCfg(self): - return self.data - - def setCfg(self, cfg): - self.data = cfg - - def getFailures(self): - """ - Return the number of failed packages - """ - return self._failures - - pkgs = property(getPkgs, setPkgs, None, "pkgs property") - name = property(getName, setName, None, "name property") - cfg = property(getCfg, setCfg, None, "cfg property") - - - -class BuildInit(BuildBase): - """buildFile or buildTargets was invoked""" - def __init__(self, p=[]): - name = None - BuildBase.__init__(self, name, p) - -class BuildStarted(BuildBase, OperationStarted): - """Event when builds start""" - def __init__(self, n, p, failures = 0): - OperationStarted.__init__(self, "Building Started") - BuildBase.__init__(self, n, p, failures) - -class BuildCompleted(BuildBase, OperationCompleted): - """Event when builds have completed""" - def __init__(self, total, n, p, failures=0, interrupted=0): - if not failures: - OperationCompleted.__init__(self, total, "Building Succeeded") - else: - OperationCompleted.__init__(self, total, "Building Failed") - self._interrupted = interrupted - BuildBase.__init__(self, n, p, failures) - -class DiskFull(Event): - """Disk full case build aborted""" - def __init__(self, dev, type, freespace, mountpoint): - Event.__init__(self) - self._dev = dev - self._type = type - self._free = freespace - self._mountpoint = mountpoint - -class DiskUsageSample: - def __init__(self, available_bytes, free_bytes, total_bytes): - # Number of bytes available to non-root processes. - self.available_bytes = available_bytes - # Number of bytes available to root processes. - self.free_bytes = free_bytes - # Total capacity of the volume. - self.total_bytes = total_bytes - -class MonitorDiskEvent(Event): - """If BB_DISKMON_DIRS is set, then this event gets triggered each time disk space is checked. - Provides information about devices that are getting monitored.""" - def __init__(self, disk_usage): - Event.__init__(self) - # hash of device root path -> DiskUsageSample - self.disk_usage = disk_usage - -class NoProvider(Event): - """No Provider for an Event""" - - def __init__(self, item, runtime=False, dependees=None, reasons=None, close_matches=None): - Event.__init__(self) - self._item = item - self._runtime = runtime - self._dependees = dependees - self._reasons = reasons - self._close_matches = close_matches - - def getItem(self): - return self._item - - def isRuntime(self): - return self._runtime - - def __str__(self): - msg = '' - if self._runtime: - r = "R" - else: - r = "" - - extra = '' - if not self._reasons: - if self._close_matches: - extra = ". Close matches:\n %s" % '\n '.join(self._close_matches) - - if self._dependees: - msg = "Nothing %sPROVIDES '%s' (but %s %sDEPENDS on or otherwise requires it)%s" % (r, self._item, ", ".join(self._dependees), r, extra) - else: - msg = "Nothing %sPROVIDES '%s'%s" % (r, self._item, extra) - if self._reasons: - for reason in self._reasons: - msg += '\n' + reason - return msg - - -class MultipleProviders(Event): - """Multiple Providers""" - - def __init__(self, item, candidates, runtime = False): - Event.__init__(self) - self._item = item - self._candidates = candidates - self._is_runtime = runtime - - def isRuntime(self): - """ - Is this a runtime issue? - """ - return self._is_runtime - - def getItem(self): - """ - The name for the to be build item - """ - return self._item - - def getCandidates(self): - """ - Get the possible Candidates for a PROVIDER. - """ - return self._candidates - - def __str__(self): - msg = "Multiple providers are available for %s%s (%s)" % (self._is_runtime and "runtime " or "", - self._item, - ", ".join(self._candidates)) - rtime = "" - if self._is_runtime: - rtime = "R" - msg += "\nConsider defining a PREFERRED_%sPROVIDER entry to match %s" % (rtime, self._item) - return msg - -class ParseStarted(OperationStarted): - """Recipe parsing for the runqueue has begun""" - def __init__(self, total): - OperationStarted.__init__(self, "Recipe parsing Started") - self.total = total - -class ParseCompleted(OperationCompleted): - """Recipe parsing for the runqueue has completed""" - def __init__(self, cached, parsed, skipped, masked, virtuals, errors, total): - OperationCompleted.__init__(self, total, "Recipe parsing Completed") - self.cached = cached - self.parsed = parsed - self.skipped = skipped - self.virtuals = virtuals - self.masked = masked - self.errors = errors - self.sofar = cached + parsed - -class ParseProgress(OperationProgress): - """Recipe parsing progress""" - def __init__(self, current, total): - OperationProgress.__init__(self, current, total, "Recipe parsing") - - -class CacheLoadStarted(OperationStarted): - """Loading of the dependency cache has begun""" - def __init__(self, total): - OperationStarted.__init__(self, "Loading cache Started") - self.total = total - -class CacheLoadProgress(OperationProgress): - """Cache loading progress""" - def __init__(self, current, total): - OperationProgress.__init__(self, current, total, "Loading cache") - -class CacheLoadCompleted(OperationCompleted): - """Cache loading is complete""" - def __init__(self, total, num_entries): - OperationCompleted.__init__(self, total, "Loading cache Completed") - self.num_entries = num_entries - -class TreeDataPreparationStarted(OperationStarted): - """Tree data preparation started""" - def __init__(self): - OperationStarted.__init__(self, "Preparing tree data Started") - -class TreeDataPreparationProgress(OperationProgress): - """Tree data preparation is in progress""" - def __init__(self, current, total): - OperationProgress.__init__(self, current, total, "Preparing tree data") - -class TreeDataPreparationCompleted(OperationCompleted): - """Tree data preparation completed""" - def __init__(self, total): - OperationCompleted.__init__(self, total, "Preparing tree data Completed") - -class DepTreeGenerated(Event): - """ - Event when a dependency tree has been generated - """ - - def __init__(self, depgraph): - Event.__init__(self) - self._depgraph = depgraph - -class TargetsTreeGenerated(Event): - """ - Event when a set of buildable targets has been generated - """ - def __init__(self, model): - Event.__init__(self) - self._model = model - -class ReachableStamps(Event): - """ - An event listing all stamps reachable after parsing - which the metadata may use to clean up stale data - """ - - def __init__(self, stamps): - Event.__init__(self) - self.stamps = stamps - -class FilesMatchingFound(Event): - """ - Event when a list of files matching the supplied pattern has - been generated - """ - def __init__(self, pattern, matches): - Event.__init__(self) - self._pattern = pattern - self._matches = matches - -class ConfigFilesFound(Event): - """ - Event when a list of appropriate config files has been generated - """ - def __init__(self, variable, values): - Event.__init__(self) - self._variable = variable - self._values = values - -class ConfigFilePathFound(Event): - """ - Event when a path for a config file has been found - """ - def __init__(self, path): - Event.__init__(self) - self._path = path - -class MsgBase(Event): - """Base class for messages""" - - def __init__(self, msg): - self._message = msg - Event.__init__(self) - -class MsgDebug(MsgBase): - """Debug Message""" - -class MsgNote(MsgBase): - """Note Message""" - -class MsgWarn(MsgBase): - """Warning Message""" - -class MsgError(MsgBase): - """Error Message""" - -class MsgFatal(MsgBase): - """Fatal Message""" - -class MsgPlain(MsgBase): - """General output""" - -class LogExecTTY(Event): - """Send event containing program to spawn on tty of the logger""" - def __init__(self, msg, prog, sleep_delay, retries): - Event.__init__(self) - self.msg = msg - self.prog = prog - self.sleep_delay = sleep_delay - self.retries = retries - -class LogHandler(logging.Handler): - """Dispatch logging messages as bitbake events""" - - def emit(self, record): - if record.exc_info: - etype, value, tb = record.exc_info - if hasattr(tb, 'tb_next'): - tb = list(bb.exceptions.extract_traceback(tb, context=3)) - # Need to turn the value into something the logging system can pickle - record.bb_exc_info = (etype, value, tb) - record.bb_exc_formatted = bb.exceptions.format_exception(etype, value, tb, limit=5) - value = str(value) - record.exc_info = None - fire(record, None) - - def filter(self, record): - record.taskpid = worker_pid - return True - -class MetadataEvent(Event): - """ - Generic event that target for OE-Core classes - to report information during asynchrous execution - """ - def __init__(self, eventtype, eventdata): - Event.__init__(self) - self.type = eventtype - self._localdata = eventdata - -class ProcessStarted(Event): - """ - Generic process started event (usually part of the initial startup) - where further progress events will be delivered - """ - def __init__(self, processname, total): - Event.__init__(self) - self.processname = processname - self.total = total - -class ProcessProgress(Event): - """ - Generic process progress event (usually part of the initial startup) - """ - def __init__(self, processname, progress): - Event.__init__(self) - self.processname = processname - self.progress = progress - -class ProcessFinished(Event): - """ - Generic process finished event (usually part of the initial startup) - """ - def __init__(self, processname): - Event.__init__(self) - self.processname = processname - -class SanityCheck(Event): - """ - Event to run sanity checks, either raise errors or generate events as return status. - """ - def __init__(self, generateevents = True): - Event.__init__(self) - self.generateevents = generateevents - -class SanityCheckPassed(Event): - """ - Event to indicate sanity check has passed - """ - -class SanityCheckFailed(Event): - """ - Event to indicate sanity check has failed - """ - def __init__(self, msg, network_error=False): - Event.__init__(self) - self._msg = msg - self._network_error = network_error - -class NetworkTest(Event): - """ - Event to run network connectivity tests, either raise errors or generate events as return status. - """ - def __init__(self, generateevents = True): - Event.__init__(self) - self.generateevents = generateevents - -class NetworkTestPassed(Event): - """ - Event to indicate network test has passed - """ - -class NetworkTestFailed(Event): - """ - Event to indicate network test has failed - """ - -class FindSigInfoResult(Event): - """ - Event to return results from findSigInfo command - """ - def __init__(self, result): - Event.__init__(self) - self.result = result diff --git a/poky/bitbake/lib/bb/exceptions.py b/poky/bitbake/lib/bb/exceptions.py deleted file mode 100644 index cd71343..0000000 --- a/poky/bitbake/lib/bb/exceptions.py +++ /dev/null @@ -1,91 +0,0 @@ - -import inspect -import traceback -import bb.namedtuple_with_abc -from collections import namedtuple - - -class TracebackEntry(namedtuple.abc): - """Pickleable representation of a traceback entry""" - _fields = 'filename lineno function args code_context index' - _header = ' File "{0.filename}", line {0.lineno}, in {0.function}{0.args}' - - def format(self, formatter=None): - if not self.code_context: - return self._header.format(self) + '\n' - - formatted = [self._header.format(self) + ':\n'] - - for lineindex, line in enumerate(self.code_context): - if formatter: - line = formatter(line) - - if lineindex == self.index: - formatted.append(' >%s' % line) - else: - formatted.append(' %s' % line) - return formatted - - def __str__(self): - return ''.join(self.format()) - -def _get_frame_args(frame): - """Get the formatted arguments and class (if available) for a frame""" - arginfo = inspect.getargvalues(frame) - - try: - if not arginfo.args: - return '', None - # There have been reports from the field of python 2.6 which doesn't - # return a namedtuple here but simply a tuple so fallback gracefully if - # args isn't present. - except AttributeError: - return '', None - - firstarg = arginfo.args[0] - if firstarg == 'self': - self = arginfo.locals['self'] - cls = self.__class__.__name__ - - arginfo.args.pop(0) - del arginfo.locals['self'] - else: - cls = None - - formatted = inspect.formatargvalues(*arginfo) - return formatted, cls - -def extract_traceback(tb, context=1): - frames = inspect.getinnerframes(tb, context) - for frame, filename, lineno, function, code_context, index in frames: - formatted_args, cls = _get_frame_args(frame) - if cls: - function = '%s.%s' % (cls, function) - yield TracebackEntry(filename, lineno, function, formatted_args, - code_context, index) - -def format_extracted(extracted, formatter=None, limit=None): - if limit: - extracted = extracted[-limit:] - - formatted = [] - for tracebackinfo in extracted: - formatted.extend(tracebackinfo.format(formatter)) - return formatted - - -def format_exception(etype, value, tb, context=1, limit=None, formatter=None): - formatted = ['Traceback (most recent call last):\n'] - - if hasattr(tb, 'tb_next'): - tb = extract_traceback(tb, context) - - formatted.extend(format_extracted(tb, formatter, limit)) - formatted.extend(traceback.format_exception_only(etype, value)) - return formatted - -def to_string(exc): - if isinstance(exc, SystemExit): - if not isinstance(exc.code, str): - return 'Exited with "%d"' % exc.code - return str(exc) diff --git a/poky/bitbake/lib/bb/fetch2/__init__.py b/poky/bitbake/lib/bb/fetch2/__init__.py deleted file mode 100644 index cb94bf6..0000000 --- a/poky/bitbake/lib/bb/fetch2/__init__.py +++ /dev/null @@ -1,1862 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' implementations - -Classes for obtaining upstream sources for the -BitBake build tools. -""" - -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2012 Intel Corporation -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -import os, re -import signal -import logging -import urllib.request, urllib.parse, urllib.error -if 'git' not in urllib.parse.uses_netloc: - urllib.parse.uses_netloc.append('git') -import operator -import collections -import subprocess -import pickle -import errno -import bb.persist_data, bb.utils -import bb.checksum -import bb.process -import bb.event - -__version__ = "2" -_checksum_cache = bb.checksum.FileChecksumCache() - -logger = logging.getLogger("BitBake.Fetcher") - -class BBFetchException(Exception): - """Class all fetch exceptions inherit from""" - def __init__(self, message): - self.msg = message - Exception.__init__(self, message) - - def __str__(self): - return self.msg - -class UntrustedUrl(BBFetchException): - """Exception raised when encountering a host not listed in BB_ALLOWED_NETWORKS""" - def __init__(self, url, message=''): - if message: - msg = message - else: - msg = "The URL: '%s' is not trusted and cannot be used" % url - self.url = url - BBFetchException.__init__(self, msg) - self.args = (url,) - -class MalformedUrl(BBFetchException): - """Exception raised when encountering an invalid url""" - def __init__(self, url, message=''): - if message: - msg = message - else: - msg = "The URL: '%s' is invalid and cannot be interpreted" % url - self.url = url - BBFetchException.__init__(self, msg) - self.args = (url,) - -class FetchError(BBFetchException): - """General fetcher exception when something happens incorrectly""" - def __init__(self, message, url = None): - if url: - msg = "Fetcher failure for URL: '%s'. %s" % (url, message) - else: - msg = "Fetcher failure: %s" % message - self.url = url - BBFetchException.__init__(self, msg) - self.args = (message, url) - -class ChecksumError(FetchError): - """Exception when mismatched checksum encountered""" - def __init__(self, message, url = None, checksum = None): - self.checksum = checksum - FetchError.__init__(self, message, url) - -class NoChecksumError(FetchError): - """Exception when no checksum is specified, but BB_STRICT_CHECKSUM is set""" - -class UnpackError(BBFetchException): - """General fetcher exception when something happens incorrectly when unpacking""" - def __init__(self, message, url): - msg = "Unpack failure for URL: '%s'. %s" % (url, message) - self.url = url - BBFetchException.__init__(self, msg) - self.args = (message, url) - -class NoMethodError(BBFetchException): - """Exception raised when there is no method to obtain a supplied url or set of urls""" - def __init__(self, url): - msg = "Could not find a fetcher which supports the URL: '%s'" % url - self.url = url - BBFetchException.__init__(self, msg) - self.args = (url,) - -class MissingParameterError(BBFetchException): - """Exception raised when a fetch method is missing a critical parameter in the url""" - def __init__(self, missing, url): - msg = "URL: '%s' is missing the required parameter '%s'" % (url, missing) - self.url = url - self.missing = missing - BBFetchException.__init__(self, msg) - self.args = (missing, url) - -class ParameterError(BBFetchException): - """Exception raised when a url cannot be proccessed due to invalid parameters.""" - def __init__(self, message, url): - msg = "URL: '%s' has invalid parameters. %s" % (url, message) - self.url = url - BBFetchException.__init__(self, msg) - self.args = (message, url) - -class NetworkAccess(BBFetchException): - """Exception raised when network access is disabled but it is required.""" - def __init__(self, url, cmd): - msg = "Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command %s (for url %s)" % (cmd, url) - self.url = url - self.cmd = cmd - BBFetchException.__init__(self, msg) - self.args = (url, cmd) - -class NonLocalMethod(Exception): - def __init__(self): - Exception.__init__(self) - -class MissingChecksumEvent(bb.event.Event): - def __init__(self, url, md5sum, sha256sum): - self.url = url - self.checksums = {'md5sum': md5sum, - 'sha256sum': sha256sum} - bb.event.Event.__init__(self) - - -class URI(object): - """ - A class representing a generic URI, with methods for - accessing the URI components, and stringifies to the - URI. - - It is constructed by calling it with a URI, or setting - the attributes manually: - - uri = URI("http://example.com/") - - uri = URI() - uri.scheme = 'http' - uri.hostname = 'example.com' - uri.path = '/' - - It has the following attributes: - - * scheme (read/write) - * userinfo (authentication information) (read/write) - * username (read/write) - * password (read/write) - - Note, password is deprecated as of RFC 3986. - - * hostname (read/write) - * port (read/write) - * hostport (read only) - "hostname:port", if both are set, otherwise just "hostname" - * path (read/write) - * path_quoted (read/write) - A URI quoted version of path - * params (dict) (read/write) - * query (dict) (read/write) - * relative (bool) (read only) - True if this is a "relative URI", (e.g. file:foo.diff) - - It stringifies to the URI itself. - - Some notes about relative URIs: while it's specified that - a URI beginning with <scheme>:// should either be directly - followed by a hostname or a /, the old URI handling of the - fetch2 library did not comform to this. Therefore, this URI - class has some kludges to make sure that URIs are parsed in - a way comforming to bitbake's current usage. This URI class - supports the following: - - file:relative/path.diff (IETF compliant) - git:relative/path.git (IETF compliant) - git:///absolute/path.git (IETF compliant) - file:///absolute/path.diff (IETF compliant) - - file://relative/path.diff (not IETF compliant) - - But it does not support the following: - - file://hostname/absolute/path.diff (would be IETF compliant) - - Note that the last case only applies to a list of - "whitelisted" schemes (currently only file://), that requires - its URIs to not have a network location. - """ - - _relative_schemes = ['file', 'git'] - _netloc_forbidden = ['file'] - - def __init__(self, uri=None): - self.scheme = '' - self.userinfo = '' - self.hostname = '' - self.port = None - self._path = '' - self.params = {} - self.query = {} - self.relative = False - - if not uri: - return - - # We hijack the URL parameters, since the way bitbake uses - # them are not quite RFC compliant. - uri, param_str = (uri.split(";", 1) + [None])[:2] - - urlp = urllib.parse.urlparse(uri) - self.scheme = urlp.scheme - - reparse = 0 - - # Coerce urlparse to make URI scheme use netloc - if not self.scheme in urllib.parse.uses_netloc: - urllib.parse.uses_params.append(self.scheme) - reparse = 1 - - # Make urlparse happy(/ier) by converting local resources - # to RFC compliant URL format. E.g.: - # file://foo.diff -> file:foo.diff - if urlp.scheme in self._netloc_forbidden: - uri = re.sub("(?<=:)//(?!/)", "", uri, 1) - reparse = 1 - - if reparse: - urlp = urllib.parse.urlparse(uri) - - # Identify if the URI is relative or not - if urlp.scheme in self._relative_schemes and \ - re.compile("^\w+:(?!//)").match(uri): - self.relative = True - - if not self.relative: - self.hostname = urlp.hostname or '' - self.port = urlp.port - - self.userinfo += urlp.username or '' - - if urlp.password: - self.userinfo += ':%s' % urlp.password - - self.path = urllib.parse.unquote(urlp.path) - - if param_str: - self.params = self._param_str_split(param_str, ";") - if urlp.query: - self.query = self._param_str_split(urlp.query, "&") - - def __str__(self): - userinfo = self.userinfo - if userinfo: - userinfo += '@' - - return "%s:%s%s%s%s%s%s" % ( - self.scheme, - '' if self.relative else '//', - userinfo, - self.hostport, - self.path_quoted, - self._query_str(), - self._param_str()) - - def _param_str(self): - return ( - ''.join([';', self._param_str_join(self.params, ";")]) - if self.params else '') - - def _query_str(self): - return ( - ''.join(['?', self._param_str_join(self.query, "&")]) - if self.query else '') - - def _param_str_split(self, string, elmdelim, kvdelim="="): - ret = collections.OrderedDict() - for k, v in [x.split(kvdelim, 1) for x in string.split(elmdelim)]: - ret[k] = v - return ret - - def _param_str_join(self, dict_, elmdelim, kvdelim="="): - return elmdelim.join([kvdelim.join([k, v]) for k, v in dict_.items()]) - - @property - def hostport(self): - if not self.port: - return self.hostname - return "%s:%d" % (self.hostname, self.port) - - @property - def path_quoted(self): - return urllib.parse.quote(self.path) - - @path_quoted.setter - def path_quoted(self, path): - self.path = urllib.parse.unquote(path) - - @property - def path(self): - return self._path - - @path.setter - def path(self, path): - self._path = path - - if not path or re.compile("^/").match(path): - self.relative = False - else: - self.relative = True - - @property - def username(self): - if self.userinfo: - return (self.userinfo.split(":", 1))[0] - return '' - - @username.setter - def username(self, username): - password = self.password - self.userinfo = username - if password: - self.userinfo += ":%s" % password - - @property - def password(self): - if self.userinfo and ":" in self.userinfo: - return (self.userinfo.split(":", 1))[1] - return '' - - @password.setter - def password(self, password): - self.userinfo = "%s:%s" % (self.username, password) - -def decodeurl(url): - """Decodes an URL into the tokens (scheme, network location, path, - user, password, parameters). - """ - - m = re.compile('(?P<type>[^:]*)://((?P<user>[^/;]+)@)?(?P<location>[^;]+)(;(?P<parm>.*))?').match(url) - if not m: - raise MalformedUrl(url) - - type = m.group('type') - location = m.group('location') - if not location: - raise MalformedUrl(url) - user = m.group('user') - parm = m.group('parm') - - locidx = location.find('/') - if locidx != -1 and type.lower() != 'file': - host = location[:locidx] - path = location[locidx:] - elif type.lower() == 'file': - host = "" - path = location - else: - host = location - path = "" - if user: - m = re.compile('(?P<user>[^:]+)(:?(?P<pswd>.*))').match(user) - if m: - user = m.group('user') - pswd = m.group('pswd') - else: - user = '' - pswd = '' - - p = collections.OrderedDict() - if parm: - for s in parm.split(';'): - if s: - if not '=' in s: - raise MalformedUrl(url, "The URL: '%s' is invalid: parameter %s does not specify a value (missing '=')" % (url, s)) - s1, s2 = s.split('=') - p[s1] = s2 - - return type, host, urllib.parse.unquote(path), user, pswd, p - -def encodeurl(decoded): - """Encodes a URL from tokens (scheme, network location, path, - user, password, parameters). - """ - - type, host, path, user, pswd, p = decoded - - if not type: - raise MissingParameterError('type', "encoded from the data %s" % str(decoded)) - url = '%s://' % type - if user and type != "file": - url += "%s" % user - if pswd: - url += ":%s" % pswd - url += "@" - if host and type != "file": - url += "%s" % host - if path: - # Standardise path to ensure comparisons work - while '//' in path: - path = path.replace("//", "/") - url += "%s" % urllib.parse.quote(path) - if p: - for parm in p: - url += ";%s=%s" % (parm, p[parm]) - - return url - -def uri_replace(ud, uri_find, uri_replace, replacements, d, mirrortarball=None): - if not ud.url or not uri_find or not uri_replace: - logger.error("uri_replace: passed an undefined value, not replacing") - return None - uri_decoded = list(decodeurl(ud.url)) - uri_find_decoded = list(decodeurl(uri_find)) - uri_replace_decoded = list(decodeurl(uri_replace)) - logger.debug(2, "For url %s comparing %s to %s" % (uri_decoded, uri_find_decoded, uri_replace_decoded)) - result_decoded = ['', '', '', '', '', {}] - for loc, i in enumerate(uri_find_decoded): - result_decoded[loc] = uri_decoded[loc] - regexp = i - if loc == 0 and regexp and not regexp.endswith("$"): - # Leaving the type unanchored can mean "https" matching "file" can become "files" - # which is clearly undesirable. - regexp += "$" - if loc == 5: - # Handle URL parameters - if i: - # Any specified URL parameters must match - for k in uri_replace_decoded[loc]: - if uri_decoded[loc][k] != uri_replace_decoded[loc][k]: - return None - # Overwrite any specified replacement parameters - for k in uri_replace_decoded[loc]: - for l in replacements: - uri_replace_decoded[loc][k] = uri_replace_decoded[loc][k].replace(l, replacements[l]) - result_decoded[loc][k] = uri_replace_decoded[loc][k] - elif (re.match(regexp, uri_decoded[loc])): - if not uri_replace_decoded[loc]: - result_decoded[loc] = "" - else: - for k in replacements: - uri_replace_decoded[loc] = uri_replace_decoded[loc].replace(k, replacements[k]) - #bb.note("%s %s %s" % (regexp, uri_replace_decoded[loc], uri_decoded[loc])) - result_decoded[loc] = re.sub(regexp, uri_replace_decoded[loc], uri_decoded[loc], 1) - if loc == 2: - # Handle path manipulations - basename = None - if uri_decoded[0] != uri_replace_decoded[0] and mirrortarball: - # If the source and destination url types differ, must be a mirrortarball mapping - basename = os.path.basename(mirrortarball) - # Kill parameters, they make no sense for mirror tarballs - uri_decoded[5] = {} - elif ud.localpath and ud.method.supports_checksum(ud): - basename = os.path.basename(ud.localpath) - if basename and not result_decoded[loc].endswith(basename): - result_decoded[loc] = os.path.join(result_decoded[loc], basename) - else: - return None - result = encodeurl(result_decoded) - if result == ud.url: - return None - logger.debug(2, "For url %s returning %s" % (ud.url, result)) - return result - -methods = [] -urldata_cache = {} -saved_headrevs = {} - -def fetcher_init(d): - """ - Called to initialize the fetchers once the configuration data is known. - Calls before this must not hit the cache. - """ - # When to drop SCM head revisions controlled by user policy - srcrev_policy = d.getVar('BB_SRCREV_POLICY') or "clear" - if srcrev_policy == "cache": - logger.debug(1, "Keeping SRCREV cache due to cache policy of: %s", srcrev_policy) - elif srcrev_policy == "clear": - logger.debug(1, "Clearing SRCREV cache due to cache policy of: %s", srcrev_policy) - revs = bb.persist_data.persist('BB_URI_HEADREVS', d) - try: - bb.fetch2.saved_headrevs = revs.items() - except: - pass - revs.clear() - else: - raise FetchError("Invalid SRCREV cache policy of: %s" % srcrev_policy) - - _checksum_cache.init_cache(d) - - for m in methods: - if hasattr(m, "init"): - m.init(d) - -def fetcher_parse_save(): - _checksum_cache.save_extras() - -def fetcher_parse_done(): - _checksum_cache.save_merge() - -def fetcher_compare_revisions(): - """ - Compare the revisions in the persistant cache with current values and - return true/false on whether they've changed. - """ - - data = bb.persist_data.persist('BB_URI_HEADREVS', d).items() - data2 = bb.fetch2.saved_headrevs - - changed = False - for key in data: - if key not in data2 or data2[key] != data[key]: - logger.debug(1, "%s changed", key) - changed = True - return True - else: - logger.debug(2, "%s did not change", key) - return False - -def mirror_from_string(data): - mirrors = (data or "").replace('\\n',' ').split() - # Split into pairs - if len(mirrors) % 2 != 0: - bb.warn('Invalid mirror data %s, should have paired members.' % data) - return list(zip(*[iter(mirrors)]*2)) - -def verify_checksum(ud, d, precomputed={}): - """ - verify the MD5 and SHA256 checksum for downloaded src - - Raises a FetchError if one or both of the SRC_URI checksums do not match - the downloaded file, or if BB_STRICT_CHECKSUM is set and there are no - checksums specified. - - Returns a dict of checksums that can be stored in a done stamp file and - passed in as precomputed parameter in a later call to avoid re-computing - the checksums from the file. This allows verifying the checksums of the - file against those in the recipe each time, rather than only after - downloading. See https://bugzilla.yoctoproject.org/show_bug.cgi?id=5571. - """ - - _MD5_KEY = "md5" - _SHA256_KEY = "sha256" - - if ud.ignore_checksums or not ud.method.supports_checksum(ud): - return {} - - if _MD5_KEY in precomputed: - md5data = precomputed[_MD5_KEY] - else: - md5data = bb.utils.md5_file(ud.localpath) - - if _SHA256_KEY in precomputed: - sha256data = precomputed[_SHA256_KEY] - else: - sha256data = bb.utils.sha256_file(ud.localpath) - - if ud.method.recommends_checksum(ud) and not ud.md5_expected and not ud.sha256_expected: - # If strict checking enabled and neither sum defined, raise error - strict = d.getVar("BB_STRICT_CHECKSUM") or "0" - if strict == "1": - logger.error('No checksum specified for %s, please add at least one to the recipe:\n' - 'SRC_URI[%s] = "%s"\nSRC_URI[%s] = "%s"' % - (ud.localpath, ud.md5_name, md5data, - ud.sha256_name, sha256data)) - raise NoChecksumError('Missing SRC_URI checksum', ud.url) - - bb.event.fire(MissingChecksumEvent(ud.url, md5data, sha256data), d) - - if strict == "ignore": - return { - _MD5_KEY: md5data, - _SHA256_KEY: sha256data - } - - # Log missing sums so user can more easily add them - logger.warning('Missing md5 SRC_URI checksum for %s, consider adding to the recipe:\n' - 'SRC_URI[%s] = "%s"', - ud.localpath, ud.md5_name, md5data) - logger.warning('Missing sha256 SRC_URI checksum for %s, consider adding to the recipe:\n' - 'SRC_URI[%s] = "%s"', - ud.localpath, ud.sha256_name, sha256data) - - # We want to alert the user if a checksum is defined in the recipe but - # it does not match. - msg = "" - mismatch = False - if ud.md5_expected and ud.md5_expected != md5data: - msg = msg + "\nFile: '%s' has %s checksum %s when %s was expected" % (ud.localpath, 'md5', md5data, ud.md5_expected) - mismatch = True; - - if ud.sha256_expected and ud.sha256_expected != sha256data: - msg = msg + "\nFile: '%s' has %s checksum %s when %s was expected" % (ud.localpath, 'sha256', sha256data, ud.sha256_expected) - mismatch = True; - - if mismatch: - msg = msg + '\nIf this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:\nSRC_URI[%s] = "%s"\nSRC_URI[%s] = "%s"\nOtherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.\n' % (ud.md5_name, md5data, ud.sha256_name, sha256data) - - if len(msg): - raise ChecksumError('Checksum mismatch!%s' % msg, ud.url, md5data) - - return { - _MD5_KEY: md5data, - _SHA256_KEY: sha256data - } - - -def verify_donestamp(ud, d, origud=None): - """ - Check whether the done stamp file has the right checksums (if the fetch - method supports them). If it doesn't, delete the done stamp and force - a re-download. - - Returns True, if the donestamp exists and is valid, False otherwise. When - returning False, any existing done stamps are removed. - """ - if not ud.needdonestamp or (origud and not origud.needdonestamp): - return True - - if not os.path.exists(ud.donestamp): - return False - - if (not ud.method.supports_checksum(ud) or - (origud and not origud.method.supports_checksum(origud))): - # done stamp exists, checksums not supported; assume the local file is - # current - return True - - if not os.path.exists(ud.localpath): - # done stamp exists, but the downloaded file does not; the done stamp - # must be incorrect, re-trigger the download - bb.utils.remove(ud.donestamp) - return False - - precomputed_checksums = {} - # Only re-use the precomputed checksums if the donestamp is newer than the - # file. Do not rely on the mtime of directories, though. If ud.localpath is - # a directory, there will probably not be any checksums anyway. - if (os.path.isdir(ud.localpath) or - os.path.getmtime(ud.localpath) < os.path.getmtime(ud.donestamp)): - try: - with open(ud.donestamp, "rb") as cachefile: - pickled = pickle.Unpickler(cachefile) - precomputed_checksums.update(pickled.load()) - except Exception as e: - # Avoid the warnings on the upgrade path from emtpy done stamp - # files to those containing the checksums. - if not isinstance(e, EOFError): - # Ignore errors, they aren't fatal - logger.warning("Couldn't load checksums from donestamp %s: %s " - "(msg: %s)" % (ud.donestamp, type(e).__name__, - str(e))) - - try: - checksums = verify_checksum(ud, d, precomputed_checksums) - # If the cache file did not have the checksums, compute and store them - # as an upgrade path from the previous done stamp file format. - if checksums != precomputed_checksums: - with open(ud.donestamp, "wb") as cachefile: - p = pickle.Pickler(cachefile, 2) - p.dump(checksums) - return True - except ChecksumError as e: - # Checksums failed to verify, trigger re-download and remove the - # incorrect stamp file. - logger.warning("Checksum mismatch for local file %s\n" - "Cleaning and trying again." % ud.localpath) - if os.path.exists(ud.localpath): - rename_bad_checksum(ud, e.checksum) - bb.utils.remove(ud.donestamp) - return False - - -def update_stamp(ud, d): - """ - donestamp is file stamp indicating the whole fetching is done - this function update the stamp after verifying the checksum - """ - if not ud.needdonestamp: - return - - if os.path.exists(ud.donestamp): - # Touch the done stamp file to show active use of the download - try: - os.utime(ud.donestamp, None) - except: - # Errors aren't fatal here - pass - else: - try: - checksums = verify_checksum(ud, d) - # Store the checksums for later re-verification against the recipe - with open(ud.donestamp, "wb") as cachefile: - p = pickle.Pickler(cachefile, 2) - p.dump(checksums) - except ChecksumError as e: - # Checksums failed to verify, trigger re-download and remove the - # incorrect stamp file. - logger.warning("Checksum mismatch for local file %s\n" - "Cleaning and trying again." % ud.localpath) - if os.path.exists(ud.localpath): - rename_bad_checksum(ud, e.checksum) - bb.utils.remove(ud.donestamp) - raise - -def subprocess_setup(): - # Python installs a SIGPIPE handler by default. This is usually not what - # non-Python subprocesses expect. - # SIGPIPE errors are known issues with gzip/bash - signal.signal(signal.SIGPIPE, signal.SIG_DFL) - -def get_autorev(d): - # only not cache src rev in autorev case - if d.getVar('BB_SRCREV_POLICY') != "cache": - d.setVar('BB_DONT_CACHE', '1') - return "AUTOINC" - -def get_srcrev(d, method_name='sortable_revision'): - """ - Return the revision string, usually for use in the version string (PV) of the current package - Most packages usually only have one SCM so we just pass on the call. - In the multi SCM case, we build a value based on SRCREV_FORMAT which must - have been set. - - The idea here is that we put the string "AUTOINC+" into return value if the revisions are not - incremental, other code is then responsible for turning that into an increasing value (if needed) - - A method_name can be supplied to retrieve an alternatively formatted revision from a fetcher, if - that fetcher provides a method with the given name and the same signature as sortable_revision. - """ - - scms = [] - fetcher = Fetch(d.getVar('SRC_URI').split(), d) - urldata = fetcher.ud - for u in urldata: - if urldata[u].method.supports_srcrev(): - scms.append(u) - - if len(scms) == 0: - raise FetchError("SRCREV was used yet no valid SCM was found in SRC_URI") - - if len(scms) == 1 and len(urldata[scms[0]].names) == 1: - autoinc, rev = getattr(urldata[scms[0]].method, method_name)(urldata[scms[0]], d, urldata[scms[0]].names[0]) - if len(rev) > 10: - rev = rev[:10] - if autoinc: - return "AUTOINC+" + rev - return rev - - # - # Mutiple SCMs are in SRC_URI so we resort to SRCREV_FORMAT - # - format = d.getVar('SRCREV_FORMAT') - if not format: - raise FetchError("The SRCREV_FORMAT variable must be set when multiple SCMs are used.") - - name_to_rev = {} - seenautoinc = False - for scm in scms: - ud = urldata[scm] - for name in ud.names: - autoinc, rev = getattr(ud.method, method_name)(ud, d, name) - seenautoinc = seenautoinc or autoinc - if len(rev) > 10: - rev = rev[:10] - name_to_rev[name] = rev - # Replace names by revisions in the SRCREV_FORMAT string. The approach used - # here can handle names being prefixes of other names and names appearing - # as substrings in revisions (in which case the name should not be - # expanded). The '|' regular expression operator tries matches from left to - # right, so we need to sort the names with the longest ones first. - names_descending_len = sorted(name_to_rev, key=len, reverse=True) - name_to_rev_re = "|".join(re.escape(name) for name in names_descending_len) - format = re.sub(name_to_rev_re, lambda match: name_to_rev[match.group(0)], format) - - if seenautoinc: - format = "AUTOINC+" + format - - return format - -def localpath(url, d): - fetcher = bb.fetch2.Fetch([url], d) - return fetcher.localpath(url) - -def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None): - """ - Run cmd returning the command output - Raise an error if interrupted or cmd fails - Optionally echo command output to stdout - Optionally remove the files/directories listed in cleanup upon failure - """ - - # Need to export PATH as binary could be in metadata paths - # rather than host provided - # Also include some other variables. - # FIXME: Should really include all export varaiables? - exportvars = ['HOME', 'PATH', - 'HTTP_PROXY', 'http_proxy', - 'HTTPS_PROXY', 'https_proxy', - 'FTP_PROXY', 'ftp_proxy', - 'FTPS_PROXY', 'ftps_proxy', - 'NO_PROXY', 'no_proxy', - 'ALL_PROXY', 'all_proxy', - 'GIT_PROXY_COMMAND', - 'GIT_SSL_CAINFO', - 'GIT_SMART_HTTP', - 'SSH_AUTH_SOCK', 'SSH_AGENT_PID', - 'SOCKS5_USER', 'SOCKS5_PASSWD', - 'DBUS_SESSION_BUS_ADDRESS', - 'P4CONFIG'] - - if not cleanup: - cleanup = [] - - # If PATH contains WORKDIR which contains PV which contains SRCPV we - # can end up in circular recursion here so give the option of breaking it - # in a data store copy. - try: - d.getVar("PV") - except bb.data_smart.ExpansionError: - d = bb.data.createCopy(d) - d.setVar("PV", "fetcheravoidrecurse") - - origenv = d.getVar("BB_ORIGENV", False) - for var in exportvars: - val = d.getVar(var) or (origenv and origenv.getVar(var)) - if val: - cmd = 'export ' + var + '=\"%s\"; %s' % (val, cmd) - - logger.debug(1, "Running %s", cmd) - - success = False - error_message = "" - - try: - (output, errors) = bb.process.run(cmd, log=log, shell=True, stderr=subprocess.PIPE, cwd=workdir) - success = True - except bb.process.NotFoundError as e: - error_message = "Fetch command %s" % (e.command) - except bb.process.ExecutionError as e: - if e.stdout: - output = "output:\n%s\n%s" % (e.stdout, e.stderr) - elif e.stderr: - output = "output:\n%s" % e.stderr - else: - output = "no output" - error_message = "Fetch command %s failed with exit code %s, %s" % (e.command, e.exitcode, output) - except bb.process.CmdError as e: - error_message = "Fetch command %s could not be run:\n%s" % (e.command, e.msg) - if not success: - for f in cleanup: - try: - bb.utils.remove(f, True) - except OSError: - pass - - raise FetchError(error_message) - - return output - -def check_network_access(d, info, url): - """ - log remote network access, and error if BB_NO_NETWORK is set or the given - URI is untrusted - """ - if d.getVar("BB_NO_NETWORK") == "1": - raise NetworkAccess(url, info) - elif not trusted_network(d, url): - raise UntrustedUrl(url, info) - else: - logger.debug(1, "Fetcher accessed the network with the command %s" % info) - -def build_mirroruris(origud, mirrors, ld): - uris = [] - uds = [] - - replacements = {} - replacements["TYPE"] = origud.type - replacements["HOST"] = origud.host - replacements["PATH"] = origud.path - replacements["BASENAME"] = origud.path.split("/")[-1] - replacements["MIRRORNAME"] = origud.host.replace(':','.') + origud.path.replace('/', '.').replace('*', '.') - - def adduri(ud, uris, uds, mirrors, tarballs): - for line in mirrors: - try: - (find, replace) = line - except ValueError: - continue - - for tarball in tarballs: - newuri = uri_replace(ud, find, replace, replacements, ld, tarball) - if not newuri or newuri in uris or newuri == origud.url: - continue - - if not trusted_network(ld, newuri): - logger.debug(1, "Mirror %s not in the list of trusted networks, skipping" % (newuri)) - continue - - # Create a local copy of the mirrors minus the current line - # this will prevent us from recursively processing the same line - # as well as indirect recursion A -> B -> C -> A - localmirrors = list(mirrors) - localmirrors.remove(line) - - try: - newud = FetchData(newuri, ld) - newud.setup_localpath(ld) - except bb.fetch2.BBFetchException as e: - logger.debug(1, "Mirror fetch failure for url %s (original url: %s)" % (newuri, origud.url)) - logger.debug(1, str(e)) - try: - # setup_localpath of file:// urls may fail, we should still see - # if mirrors of the url exist - adduri(newud, uris, uds, localmirrors, tarballs) - except UnboundLocalError: - pass - continue - uris.append(newuri) - uds.append(newud) - - adduri(newud, uris, uds, localmirrors, tarballs) - - adduri(origud, uris, uds, mirrors, origud.mirrortarballs or [None]) - - return uris, uds - -def rename_bad_checksum(ud, suffix): - """ - Renames files to have suffix from parameter - """ - - if ud.localpath is None: - return - - new_localpath = "%s_bad-checksum_%s" % (ud.localpath, suffix) - bb.warn("Renaming %s to %s" % (ud.localpath, new_localpath)) - bb.utils.movefile(ud.localpath, new_localpath) - - -def try_mirror_url(fetch, origud, ud, ld, check = False): - # Return of None or a value means we're finished - # False means try another url - - if ud.lockfile and ud.lockfile != origud.lockfile: - lf = bb.utils.lockfile(ud.lockfile) - - try: - if check: - found = ud.method.checkstatus(fetch, ud, ld) - if found: - return found - return False - - if not verify_donestamp(ud, ld, origud) or ud.method.need_update(ud, ld): - ud.method.download(ud, ld) - if hasattr(ud.method,"build_mirror_data"): - ud.method.build_mirror_data(ud, ld) - - if not ud.localpath or not os.path.exists(ud.localpath): - return False - - if ud.localpath == origud.localpath: - return ud.localpath - - # We may be obtaining a mirror tarball which needs further processing by the real fetcher - # If that tarball is a local file:// we need to provide a symlink to it - dldir = ld.getVar("DL_DIR") - - if origud.mirrortarballs and os.path.basename(ud.localpath) in origud.mirrortarballs and os.path.basename(ud.localpath) != os.path.basename(origud.localpath): - # Create donestamp in old format to avoid triggering a re-download - if ud.donestamp: - bb.utils.mkdirhier(os.path.dirname(ud.donestamp)) - open(ud.donestamp, 'w').close() - dest = os.path.join(dldir, os.path.basename(ud.localpath)) - if not os.path.exists(dest): - # In case this is executing without any file locks held (as is - # the case for file:// URLs), two tasks may end up here at the - # same time, in which case we do not want the second task to - # fail when the link has already been created by the first task. - try: - os.symlink(ud.localpath, dest) - except FileExistsError: - pass - if not verify_donestamp(origud, ld) or origud.method.need_update(origud, ld): - origud.method.download(origud, ld) - if hasattr(origud.method, "build_mirror_data"): - origud.method.build_mirror_data(origud, ld) - return origud.localpath - # Otherwise the result is a local file:// and we symlink to it - if not os.path.exists(origud.localpath): - if os.path.islink(origud.localpath): - # Broken symbolic link - os.unlink(origud.localpath) - - # As per above, in case two tasks end up here simultaneously. - try: - os.symlink(ud.localpath, origud.localpath) - except FileExistsError: - pass - update_stamp(origud, ld) - return ud.localpath - - except bb.fetch2.NetworkAccess: - raise - - except IOError as e: - if e.errno in [os.errno.ESTALE]: - logger.warning("Stale Error Observed %s." % ud.url) - return False - raise - - except bb.fetch2.BBFetchException as e: - if isinstance(e, ChecksumError): - logger.warning("Mirror checksum failure for url %s (original url: %s)\nCleaning and trying again." % (ud.url, origud.url)) - logger.warning(str(e)) - if os.path.exists(ud.localpath): - rename_bad_checksum(ud, e.checksum) - elif isinstance(e, NoChecksumError): - raise - else: - logger.debug(1, "Mirror fetch failure for url %s (original url: %s)" % (ud.url, origud.url)) - logger.debug(1, str(e)) - try: - ud.method.clean(ud, ld) - except UnboundLocalError: - pass - return False - finally: - if ud.lockfile and ud.lockfile != origud.lockfile: - bb.utils.unlockfile(lf) - - -def try_mirrors(fetch, d, origud, mirrors, check = False): - """ - Try to use a mirrored version of the sources. - This method will be automatically called before the fetchers go. - - d Is a bb.data instance - uri is the original uri we're trying to download - mirrors is the list of mirrors we're going to try - """ - ld = d.createCopy() - - uris, uds = build_mirroruris(origud, mirrors, ld) - - for index, uri in enumerate(uris): - ret = try_mirror_url(fetch, origud, uds[index], ld, check) - if ret != False: - return ret - return None - -def trusted_network(d, url): - """ - Use a trusted url during download if networking is enabled and - BB_ALLOWED_NETWORKS is set globally or for a specific recipe. - Note: modifies SRC_URI & mirrors. - """ - if d.getVar('BB_NO_NETWORK') == "1": - return True - - pkgname = d.expand(d.getVar('PN', False)) - trusted_hosts = d.getVarFlag('BB_ALLOWED_NETWORKS', pkgname, False) - - if not trusted_hosts: - trusted_hosts = d.getVar('BB_ALLOWED_NETWORKS') - - # Not enabled. - if not trusted_hosts: - return True - - scheme, network, path, user, passwd, param = decodeurl(url) - - if not network: - return True - - network = network.split(':')[0] - network = network.lower() - - for host in trusted_hosts.split(" "): - host = host.lower() - if host.startswith("*.") and ("." + network).endswith(host[1:]): - return True - if host == network: - return True - - return False - -def srcrev_internal_helper(ud, d, name): - """ - Return: - a) a source revision if specified - b) latest revision if SRCREV="AUTOINC" - c) None if not specified - """ - - srcrev = None - pn = d.getVar("PN") - attempts = [] - if name != '' and pn: - attempts.append("SRCREV_%s_pn-%s" % (name, pn)) - if name != '': - attempts.append("SRCREV_%s" % name) - if pn: - attempts.append("SRCREV_pn-%s" % pn) - attempts.append("SRCREV") - - for a in attempts: - srcrev = d.getVar(a) - if srcrev and srcrev != "INVALID": - break - - if 'rev' in ud.parm and 'tag' in ud.parm: - raise FetchError("Please specify a ;rev= parameter or a ;tag= parameter in the url %s but not both." % (ud.url)) - - if 'rev' in ud.parm or 'tag' in ud.parm: - if 'rev' in ud.parm: - parmrev = ud.parm['rev'] - else: - parmrev = ud.parm['tag'] - if srcrev == "INVALID" or not srcrev: - return parmrev - if srcrev != parmrev: - raise FetchError("Conflicting revisions (%s from SRCREV and %s from the url) found, please specify one valid value" % (srcrev, parmrev)) - return parmrev - - if srcrev == "INVALID" or not srcrev: - raise FetchError("Please set a valid SRCREV for url %s (possible key names are %s, or use a ;rev=X URL parameter)" % (str(attempts), ud.url), ud.url) - if srcrev == "AUTOINC": - srcrev = ud.method.latest_revision(ud, d, name) - - return srcrev - -def get_checksum_file_list(d): - """ Get a list of files checksum in SRC_URI - - Returns the resolved local paths of all local file entries in - SRC_URI as a space-separated string - """ - fetch = Fetch([], d, cache = False, localonly = True) - - dl_dir = d.getVar('DL_DIR') - filelist = [] - for u in fetch.urls: - ud = fetch.ud[u] - - if ud and isinstance(ud.method, local.Local): - paths = ud.method.localpaths(ud, d) - for f in paths: - pth = ud.decodedurl - if '*' in pth: - f = os.path.join(os.path.abspath(f), pth) - if f.startswith(dl_dir): - # The local fetcher's behaviour is to return a path under DL_DIR if it couldn't find the file anywhere else - if os.path.exists(f): - bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('PN'), os.path.basename(f))) - else: - bb.warn("Unable to get checksum for %s SRC_URI entry %s: file could not be found" % (d.getVar('PN'), os.path.basename(f))) - filelist.append(f + ":" + str(os.path.exists(f))) - - return " ".join(filelist) - -def get_file_checksums(filelist, pn): - """Get a list of the checksums for a list of local files - - Returns the checksums for a list of local files, caching the results as - it proceeds - - """ - return _checksum_cache.get_checksums(filelist, pn) - - -class FetchData(object): - """ - A class which represents the fetcher state for a given URI. - """ - def __init__(self, url, d, localonly = False): - # localpath is the location of a downloaded result. If not set, the file is local. - self.donestamp = None - self.needdonestamp = True - self.localfile = "" - self.localpath = None - self.lockfile = None - self.mirrortarballs = [] - self.basename = None - self.basepath = None - (self.type, self.host, self.path, self.user, self.pswd, self.parm) = decodeurl(d.expand(url)) - self.date = self.getSRCDate(d) - self.url = url - if not self.user and "user" in self.parm: - self.user = self.parm["user"] - if not self.pswd and "pswd" in self.parm: - self.pswd = self.parm["pswd"] - self.setup = False - - if "name" in self.parm: - self.md5_name = "%s.md5sum" % self.parm["name"] - self.sha256_name = "%s.sha256sum" % self.parm["name"] - else: - self.md5_name = "md5sum" - self.sha256_name = "sha256sum" - if self.md5_name in self.parm: - self.md5_expected = self.parm[self.md5_name] - elif self.type not in ["http", "https", "ftp", "ftps", "sftp", "s3"]: - self.md5_expected = None - else: - self.md5_expected = d.getVarFlag("SRC_URI", self.md5_name) - if self.sha256_name in self.parm: - self.sha256_expected = self.parm[self.sha256_name] - elif self.type not in ["http", "https", "ftp", "ftps", "sftp", "s3"]: - self.sha256_expected = None - else: - self.sha256_expected = d.getVarFlag("SRC_URI", self.sha256_name) - self.ignore_checksums = False - - self.names = self.parm.get("name",'default').split(',') - - self.method = None - for m in methods: - if m.supports(self, d): - self.method = m - break - - if not self.method: - raise NoMethodError(url) - - if localonly and not isinstance(self.method, local.Local): - raise NonLocalMethod() - - if self.parm.get("proto", None) and "protocol" not in self.parm: - logger.warning('Consider updating %s recipe to use "protocol" not "proto" in SRC_URI.', d.getVar('PN')) - self.parm["protocol"] = self.parm.get("proto", None) - - if hasattr(self.method, "urldata_init"): - self.method.urldata_init(self, d) - - if "localpath" in self.parm: - # if user sets localpath for file, use it instead. - self.localpath = self.parm["localpath"] - self.basename = os.path.basename(self.localpath) - elif self.localfile: - self.localpath = self.method.localpath(self, d) - - dldir = d.getVar("DL_DIR") - - if not self.needdonestamp: - return - - # Note: .done and .lock files should always be in DL_DIR whereas localpath may not be. - if self.localpath and self.localpath.startswith(dldir): - basepath = self.localpath - elif self.localpath: - basepath = dldir + os.sep + os.path.basename(self.localpath) - elif self.basepath or self.basename: - basepath = dldir + os.sep + (self.basepath or self.basename) - else: - bb.fatal("Can't determine lock path for url %s" % url) - - self.donestamp = basepath + '.done' - self.lockfile = basepath + '.lock' - - def setup_revisions(self, d): - self.revisions = {} - for name in self.names: - self.revisions[name] = srcrev_internal_helper(self, d, name) - - # add compatibility code for non name specified case - if len(self.names) == 1: - self.revision = self.revisions[self.names[0]] - - def setup_localpath(self, d): - if not self.localpath: - self.localpath = self.method.localpath(self, d) - - def getSRCDate(self, d): - """ - Return the SRC Date for the component - - d the bb.data module - """ - if "srcdate" in self.parm: - return self.parm['srcdate'] - - pn = d.getVar("PN") - - if pn: - return d.getVar("SRCDATE_%s" % pn) or d.getVar("SRCDATE") or d.getVar("DATE") - - return d.getVar("SRCDATE") or d.getVar("DATE") - -class FetchMethod(object): - """Base class for 'fetch'ing data""" - - def __init__(self, urls=None): - self.urls = [] - - def supports(self, urldata, d): - """ - Check to see if this fetch class supports a given url. - """ - return 0 - - def localpath(self, urldata, d): - """ - Return the local filename of a given url assuming a successful fetch. - Can also setup variables in urldata for use in go (saving code duplication - and duplicate code execution) - """ - return os.path.join(d.getVar("DL_DIR"), urldata.localfile) - - def supports_checksum(self, urldata): - """ - Is localpath something that can be represented by a checksum? - """ - - # We cannot compute checksums for directories - if os.path.isdir(urldata.localpath) == True: - return False - if urldata.localpath.find("*") != -1: - return False - - return True - - def recommends_checksum(self, urldata): - """ - Is the backend on where checksumming is recommended (should warnings - be displayed if there is no checksum)? - """ - return False - - def _strip_leading_slashes(self, relpath): - """ - Remove leading slash as os.path.join can't cope - """ - while os.path.isabs(relpath): - relpath = relpath[1:] - return relpath - - def setUrls(self, urls): - self.__urls = urls - - def getUrls(self): - return self.__urls - - urls = property(getUrls, setUrls, None, "Urls property") - - def need_update(self, ud, d): - """ - Force a fetch, even if localpath exists? - """ - if os.path.exists(ud.localpath): - return False - return True - - def supports_srcrev(self): - """ - The fetcher supports auto source revisions (SRCREV) - """ - return False - - def download(self, urldata, d): - """ - Fetch urls - Assumes localpath was called first - """ - raise NoMethodError(url) - - def unpack(self, urldata, rootdir, data): - iterate = False - file = urldata.localpath - - # Localpath can't deal with 'dir/*' entries, so it converts them to '.', - # but it must be corrected back for local files copying - if urldata.basename == '*' and file.endswith('/.'): - file = '%s/%s' % (file.rstrip('/.'), urldata.path) - - try: - unpack = bb.utils.to_boolean(urldata.parm.get('unpack'), True) - except ValueError as exc: - bb.fatal("Invalid value for 'unpack' parameter for %s: %s" % - (file, urldata.parm.get('unpack'))) - - base, ext = os.path.splitext(file) - if ext in ['.gz', '.bz2', '.Z', '.xz', '.lz']: - efile = os.path.join(rootdir, os.path.basename(base)) - else: - efile = file - cmd = None - - if unpack: - if file.endswith('.tar'): - cmd = 'tar x --no-same-owner -f %s' % file - elif file.endswith('.tgz') or file.endswith('.tar.gz') or file.endswith('.tar.Z'): - cmd = 'tar xz --no-same-owner -f %s' % file - elif file.endswith('.tbz') or file.endswith('.tbz2') or file.endswith('.tar.bz2'): - cmd = 'bzip2 -dc %s | tar x --no-same-owner -f -' % file - elif file.endswith('.gz') or file.endswith('.Z') or file.endswith('.z'): - cmd = 'gzip -dc %s > %s' % (file, efile) - elif file.endswith('.bz2'): - cmd = 'bzip2 -dc %s > %s' % (file, efile) - elif file.endswith('.txz') or file.endswith('.tar.xz'): - cmd = 'xz -dc %s | tar x --no-same-owner -f -' % file - elif file.endswith('.xz'): - cmd = 'xz -dc %s > %s' % (file, efile) - elif file.endswith('.tar.lz'): - cmd = 'lzip -dc %s | tar x --no-same-owner -f -' % file - elif file.endswith('.lz'): - cmd = 'lzip -dc %s > %s' % (file, efile) - elif file.endswith('.tar.7z'): - cmd = '7z x -so %s | tar x --no-same-owner -f -' % file - elif file.endswith('.7z'): - cmd = '7za x -y %s 1>/dev/null' % file - elif file.endswith('.zip') or file.endswith('.jar'): - try: - dos = bb.utils.to_boolean(urldata.parm.get('dos'), False) - except ValueError as exc: - bb.fatal("Invalid value for 'dos' parameter for %s: %s" % - (file, urldata.parm.get('dos'))) - cmd = 'unzip -q -o' - if dos: - cmd = '%s -a' % cmd - cmd = "%s '%s'" % (cmd, file) - elif file.endswith('.rpm') or file.endswith('.srpm'): - if 'extract' in urldata.parm: - unpack_file = urldata.parm.get('extract') - cmd = 'rpm2cpio.sh %s | cpio -id %s' % (file, unpack_file) - iterate = True - iterate_file = unpack_file - else: - cmd = 'rpm2cpio.sh %s | cpio -id' % (file) - elif file.endswith('.deb') or file.endswith('.ipk'): - output = subprocess.check_output('ar -t %s' % file, preexec_fn=subprocess_setup, shell=True) - datafile = None - if output: - for line in output.decode().splitlines(): - if line.startswith('data.tar.'): - datafile = line - break - else: - raise UnpackError("Unable to unpack deb/ipk package - does not contain data.tar.* file", urldata.url) - else: - raise UnpackError("Unable to unpack deb/ipk package - could not list contents", urldata.url) - cmd = 'ar x %s %s && tar --no-same-owner -xpf %s && rm %s' % (file, datafile, datafile, datafile) - - # If 'subdir' param exists, create a dir and use it as destination for unpack cmd - if 'subdir' in urldata.parm: - subdir = urldata.parm.get('subdir') - if os.path.isabs(subdir): - if not os.path.realpath(subdir).startswith(os.path.realpath(rootdir)): - raise UnpackError("subdir argument isn't a subdirectory of unpack root %s" % rootdir, urldata.url) - unpackdir = subdir - else: - unpackdir = os.path.join(rootdir, subdir) - bb.utils.mkdirhier(unpackdir) - else: - unpackdir = rootdir - - if not unpack or not cmd: - # If file == dest, then avoid any copies, as we already put the file into dest! - dest = os.path.join(unpackdir, os.path.basename(file)) - if file != dest and not (os.path.exists(dest) and os.path.samefile(file, dest)): - destdir = '.' - # For file:// entries all intermediate dirs in path must be created at destination - if urldata.type == "file": - # Trailing '/' does a copying to wrong place - urlpath = urldata.path.rstrip('/') - # Want files places relative to cwd so no leading '/' - urlpath = urlpath.lstrip('/') - if urlpath.find("/") != -1: - destdir = urlpath.rsplit("/", 1)[0] + '/' - bb.utils.mkdirhier("%s/%s" % (unpackdir, destdir)) - cmd = 'cp -fpPRH %s %s' % (file, destdir) - - if not cmd: - return - - path = data.getVar('PATH') - if path: - cmd = "PATH=\"%s\" %s" % (path, cmd) - bb.note("Unpacking %s to %s/" % (file, unpackdir)) - ret = subprocess.call(cmd, preexec_fn=subprocess_setup, shell=True, cwd=unpackdir) - - if ret != 0: - raise UnpackError("Unpack command %s failed with return value %s" % (cmd, ret), urldata.url) - - if iterate is True: - iterate_urldata = urldata - iterate_urldata.localpath = "%s/%s" % (rootdir, iterate_file) - self.unpack(urldata, rootdir, data) - - return - - def clean(self, urldata, d): - """ - Clean any existing full or partial download - """ - bb.utils.remove(urldata.localpath) - - def try_premirror(self, urldata, d): - """ - Should premirrors be used? - """ - return True - - def checkstatus(self, fetch, urldata, d): - """ - Check the status of a URL - Assumes localpath was called first - """ - logger.info("URL %s could not be checked for status since no method exists.", url) - return True - - def latest_revision(self, ud, d, name): - """ - Look in the cache for the latest revision, if not present ask the SCM. - """ - if not hasattr(self, "_latest_revision"): - raise ParameterError("The fetcher for this URL does not support _latest_revision", url) - - revs = bb.persist_data.persist('BB_URI_HEADREVS', d) - key = self.generate_revision_key(ud, d, name) - try: - return revs[key] - except KeyError: - revs[key] = rev = self._latest_revision(ud, d, name) - return rev - - def sortable_revision(self, ud, d, name): - latest_rev = self._build_revision(ud, d, name) - return True, str(latest_rev) - - def generate_revision_key(self, ud, d, name): - key = self._revision_key(ud, d, name) - return "%s-%s" % (key, d.getVar("PN") or "") - - def latest_versionstring(self, ud, d): - """ - Compute the latest release name like "x.y.x" in "x.y.x+gitHASH" - by searching through the tags output of ls-remote, comparing - versions and returning the highest match as a (version, revision) pair. - """ - return ('', '') - -class Fetch(object): - def __init__(self, urls, d, cache = True, localonly = False, connection_cache = None): - if localonly and cache: - raise Exception("bb.fetch2.Fetch.__init__: cannot set cache and localonly at same time") - - if len(urls) == 0: - urls = d.getVar("SRC_URI").split() - self.urls = urls - self.d = d - self.ud = {} - self.connection_cache = connection_cache - - fn = d.getVar('FILE') - mc = d.getVar('__BBMULTICONFIG') or "" - if cache and fn and mc + fn in urldata_cache: - self.ud = urldata_cache[mc + fn] - - for url in urls: - if url not in self.ud: - try: - self.ud[url] = FetchData(url, d, localonly) - except NonLocalMethod: - if localonly: - self.ud[url] = None - pass - - if fn and cache: - urldata_cache[mc + fn] = self.ud - - def localpath(self, url): - if url not in self.urls: - self.ud[url] = FetchData(url, self.d) - - self.ud[url].setup_localpath(self.d) - return self.d.expand(self.ud[url].localpath) - - def localpaths(self): - """ - Return a list of the local filenames, assuming successful fetch - """ - local = [] - - for u in self.urls: - ud = self.ud[u] - ud.setup_localpath(self.d) - local.append(ud.localpath) - - return local - - def download(self, urls=None): - """ - Fetch all urls - """ - if not urls: - urls = self.urls - - network = self.d.getVar("BB_NO_NETWORK") - premirroronly = (self.d.getVar("BB_FETCH_PREMIRRORONLY") == "1") - - for u in urls: - ud = self.ud[u] - ud.setup_localpath(self.d) - m = ud.method - localpath = "" - - if ud.lockfile: - lf = bb.utils.lockfile(ud.lockfile) - - try: - self.d.setVar("BB_NO_NETWORK", network) - - if verify_donestamp(ud, self.d) and not m.need_update(ud, self.d): - localpath = ud.localpath - elif m.try_premirror(ud, self.d): - logger.debug(1, "Trying PREMIRRORS") - mirrors = mirror_from_string(self.d.getVar('PREMIRRORS')) - localpath = try_mirrors(self, self.d, ud, mirrors, False) - if localpath: - try: - # early checksum verification so that if the checksum of the premirror - # contents mismatch the fetcher can still try upstream and mirrors - update_stamp(ud, self.d) - except ChecksumError as e: - logger.warning("Checksum failure encountered with premirror download of %s - will attempt other sources." % u) - logger.debug(1, str(e)) - localpath = "" - - if premirroronly: - self.d.setVar("BB_NO_NETWORK", "1") - - firsterr = None - verified_stamp = verify_donestamp(ud, self.d) - if not localpath and (not verified_stamp or m.need_update(ud, self.d)): - try: - if not trusted_network(self.d, ud.url): - raise UntrustedUrl(ud.url) - logger.debug(1, "Trying Upstream") - m.download(ud, self.d) - if hasattr(m, "build_mirror_data"): - m.build_mirror_data(ud, self.d) - localpath = ud.localpath - # early checksum verify, so that if checksum mismatched, - # fetcher still have chance to fetch from mirror - update_stamp(ud, self.d) - - except bb.fetch2.NetworkAccess: - raise - - except BBFetchException as e: - if isinstance(e, ChecksumError): - logger.warning("Checksum failure encountered with download of %s - will attempt other sources if available" % u) - logger.debug(1, str(e)) - if os.path.exists(ud.localpath): - rename_bad_checksum(ud, e.checksum) - elif isinstance(e, NoChecksumError): - raise - else: - logger.warning('Failed to fetch URL %s, attempting MIRRORS if available' % u) - logger.debug(1, str(e)) - firsterr = e - # Remove any incomplete fetch - if not verified_stamp: - m.clean(ud, self.d) - logger.debug(1, "Trying MIRRORS") - mirrors = mirror_from_string(self.d.getVar('MIRRORS')) - localpath = try_mirrors(self, self.d, ud, mirrors) - - if not localpath or ((not os.path.exists(localpath)) and localpath.find("*") == -1): - if firsterr: - logger.error(str(firsterr)) - raise FetchError("Unable to fetch URL from any source.", u) - - update_stamp(ud, self.d) - - except IOError as e: - if e.errno in [os.errno.ESTALE]: - logger.error("Stale Error Observed %s." % u) - raise ChecksumError("Stale Error Detected") - - except BBFetchException as e: - if isinstance(e, ChecksumError): - logger.error("Checksum failure fetching %s" % u) - raise - - finally: - if ud.lockfile: - bb.utils.unlockfile(lf) - - def checkstatus(self, urls=None): - """ - Check all urls exist upstream - """ - - if not urls: - urls = self.urls - - for u in urls: - ud = self.ud[u] - ud.setup_localpath(self.d) - m = ud.method - logger.debug(1, "Testing URL %s", u) - # First try checking uri, u, from PREMIRRORS - mirrors = mirror_from_string(self.d.getVar('PREMIRRORS')) - ret = try_mirrors(self, self.d, ud, mirrors, True) - if not ret: - # Next try checking from the original uri, u - ret = m.checkstatus(self, ud, self.d) - if not ret: - # Finally, try checking uri, u, from MIRRORS - mirrors = mirror_from_string(self.d.getVar('MIRRORS')) - ret = try_mirrors(self, self.d, ud, mirrors, True) - - if not ret: - raise FetchError("URL %s doesn't work" % u, u) - - def unpack(self, root, urls=None): - """ - Unpack urls to root - """ - - if not urls: - urls = self.urls - - for u in urls: - ud = self.ud[u] - ud.setup_localpath(self.d) - - if ud.lockfile: - lf = bb.utils.lockfile(ud.lockfile) - - ud.method.unpack(ud, root, self.d) - - if ud.lockfile: - bb.utils.unlockfile(lf) - - def clean(self, urls=None): - """ - Clean files that the fetcher gets or places - """ - - if not urls: - urls = self.urls - - for url in urls: - if url not in self.ud: - self.ud[url] = FetchData(url, d) - ud = self.ud[url] - ud.setup_localpath(self.d) - - if not ud.localfile and ud.localpath is None: - continue - - if ud.lockfile: - lf = bb.utils.lockfile(ud.lockfile) - - ud.method.clean(ud, self.d) - if ud.donestamp: - bb.utils.remove(ud.donestamp) - - if ud.lockfile: - bb.utils.unlockfile(lf) - -class FetchConnectionCache(object): - """ - A class which represents an container for socket connections. - """ - def __init__(self): - self.cache = {} - - def get_connection_name(self, host, port): - return host + ':' + str(port) - - def add_connection(self, host, port, connection): - cn = self.get_connection_name(host, port) - - if cn not in self.cache: - self.cache[cn] = connection - - def get_connection(self, host, port): - connection = None - - cn = self.get_connection_name(host, port) - if cn in self.cache: - connection = self.cache[cn] - - return connection - - def remove_connection(self, host, port): - cn = self.get_connection_name(host, port) - if cn in self.cache: - self.cache[cn].close() - del self.cache[cn] - - def close_connections(self): - for cn in list(self.cache.keys()): - self.cache[cn].close() - del self.cache[cn] - -from . import cvs -from . import git -from . import gitsm -from . import gitannex -from . import local -from . import svn -from . import wget -from . import ssh -from . import sftp -from . import s3 -from . import perforce -from . import bzr -from . import hg -from . import osc -from . import repo -from . import clearcase -from . import npm - -methods.append(local.Local()) -methods.append(wget.Wget()) -methods.append(svn.Svn()) -methods.append(git.Git()) -methods.append(gitsm.GitSM()) -methods.append(gitannex.GitANNEX()) -methods.append(cvs.Cvs()) -methods.append(ssh.SSH()) -methods.append(sftp.SFTP()) -methods.append(s3.S3()) -methods.append(perforce.Perforce()) -methods.append(bzr.Bzr()) -methods.append(hg.Hg()) -methods.append(osc.Osc()) -methods.append(repo.Repo()) -methods.append(clearcase.ClearCase()) -methods.append(npm.Npm()) diff --git a/poky/bitbake/lib/bb/fetch2/bzr.py b/poky/bitbake/lib/bb/fetch2/bzr.py deleted file mode 100644 index 16123f8..0000000 --- a/poky/bitbake/lib/bb/fetch2/bzr.py +++ /dev/null @@ -1,139 +0,0 @@ -""" -BitBake 'Fetch' implementation for bzr. - -""" - -# Copyright (C) 2007 Ross Burton -# Copyright (C) 2007 Richard Purdie -# -# Classes for obtaining upstream sources for the -# BitBake build tools. -# Copyright (C) 2003, 2004 Chris Larson -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os -import sys -import logging -import bb -from bb.fetch2 import FetchMethod -from bb.fetch2 import FetchError -from bb.fetch2 import runfetchcmd -from bb.fetch2 import logger - -class Bzr(FetchMethod): - def supports(self, ud, d): - return ud.type in ['bzr'] - - def urldata_init(self, ud, d): - """ - init bzr specific variable within url data - """ - # Create paths to bzr checkouts - relpath = self._strip_leading_slashes(ud.path) - ud.pkgdir = os.path.join(d.expand('${BZRDIR}'), ud.host, relpath) - - ud.setup_revisions(d) - - if not ud.revision: - ud.revision = self.latest_revision(ud, d) - - ud.localfile = d.expand('bzr_%s_%s_%s.tar.gz' % (ud.host, ud.path.replace('/', '.'), ud.revision)) - - def _buildbzrcommand(self, ud, d, command): - """ - Build up an bzr commandline based on ud - command is "fetch", "update", "revno" - """ - - basecmd = d.expand('${FETCHCMD_bzr}') - - proto = ud.parm.get('protocol', 'http') - - bzrroot = ud.host + ud.path - - options = [] - - if command == "revno": - bzrcmd = "%s revno %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot) - else: - if ud.revision: - options.append("-r %s" % ud.revision) - - if command == "fetch": - bzrcmd = "%s branch %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot) - elif command == "update": - bzrcmd = "%s pull %s --overwrite" % (basecmd, " ".join(options)) - else: - raise FetchError("Invalid bzr command %s" % command, ud.url) - - return bzrcmd - - def download(self, ud, d): - """Fetch url""" - - if os.access(os.path.join(ud.pkgdir, os.path.basename(ud.pkgdir), '.bzr'), os.R_OK): - bzrcmd = self._buildbzrcommand(ud, d, "update") - logger.debug(1, "BZR Update %s", ud.url) - bb.fetch2.check_network_access(d, bzrcmd, ud.url) - runfetchcmd(bzrcmd, d, workdir=os.path.join(ud.pkgdir, os.path.basename(ud.path))) - else: - bb.utils.remove(os.path.join(ud.pkgdir, os.path.basename(ud.pkgdir)), True) - bzrcmd = self._buildbzrcommand(ud, d, "fetch") - bb.fetch2.check_network_access(d, bzrcmd, ud.url) - logger.debug(1, "BZR Checkout %s", ud.url) - bb.utils.mkdirhier(ud.pkgdir) - logger.debug(1, "Running %s", bzrcmd) - runfetchcmd(bzrcmd, d, workdir=ud.pkgdir) - - scmdata = ud.parm.get("scmdata", "") - if scmdata == "keep": - tar_flags = "" - else: - tar_flags = "--exclude='.bzr' --exclude='.bzrtags'" - - # tar them up to a defined filename - runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.basename(ud.pkgdir)), - d, cleanup=[ud.localpath], workdir=ud.pkgdir) - - def supports_srcrev(self): - return True - - def _revision_key(self, ud, d, name): - """ - Return a unique key for the url - """ - return "bzr:" + ud.pkgdir - - def _latest_revision(self, ud, d, name): - """ - Return the latest upstream revision number - """ - logger.debug(2, "BZR fetcher hitting network for %s", ud.url) - - bb.fetch2.check_network_access(d, self._buildbzrcommand(ud, d, "revno"), ud.url) - - output = runfetchcmd(self._buildbzrcommand(ud, d, "revno"), d, True) - - return output.strip() - - def sortable_revision(self, ud, d, name): - """ - Return a sortable revision number which in our case is the revision number - """ - - return False, self._build_revision(ud, d) - - def _build_revision(self, ud, d): - return ud.revision diff --git a/poky/bitbake/lib/bb/fetch2/clearcase.py b/poky/bitbake/lib/bb/fetch2/clearcase.py deleted file mode 100644 index 36beab6..0000000 --- a/poky/bitbake/lib/bb/fetch2/clearcase.py +++ /dev/null @@ -1,260 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' clearcase implementation - -The clearcase fetcher is used to retrieve files from a ClearCase repository. - -Usage in the recipe: - - SRC_URI = "ccrc://cc.example.org/ccrc;vob=/example_vob;module=/example_module" - SRCREV = "EXAMPLE_CLEARCASE_TAG" - PV = "${@d.getVar("SRCREV", False).replace("/", "+")}" - -The fetcher uses the rcleartool or cleartool remote client, depending on which one is available. - -Supported SRC_URI options are: - -- vob - (required) The name of the clearcase VOB (with prepending "/") - -- module - The module in the selected VOB (with prepending "/") - - The module and vob parameters are combined to create - the following load rule in the view config spec: - load <vob><module> - -- proto - http or https - -Related variables: - - CCASE_CUSTOM_CONFIG_SPEC - Write a config spec to this variable in your recipe to use it instead - of the default config spec generated by this fetcher. - Please note that the SRCREV loses its functionality if you specify - this variable. SRCREV is still used to label the archive after a fetch, - but it doesn't define what's fetched. - -User credentials: - cleartool: - The login of cleartool is handled by the system. No special steps needed. - - rcleartool: - In order to use rcleartool with authenticated users an `rcleartool login` is - necessary before using the fetcher. -""" -# Copyright (C) 2014 Siemens AG -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -import os -import sys -import shutil -import bb -from bb.fetch2 import FetchMethod -from bb.fetch2 import FetchError -from bb.fetch2 import runfetchcmd -from bb.fetch2 import logger -from distutils import spawn - -class ClearCase(FetchMethod): - """Class to fetch urls via 'clearcase'""" - def init(self, d): - pass - - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with Clearcase. - """ - return ud.type in ['ccrc'] - - def debug(self, msg): - logger.debug(1, "ClearCase: %s", msg) - - def urldata_init(self, ud, d): - """ - init ClearCase specific variable within url data - """ - ud.proto = "https" - if 'protocol' in ud.parm: - ud.proto = ud.parm['protocol'] - if not ud.proto in ('http', 'https'): - raise fetch2.ParameterError("Invalid protocol type", ud.url) - - ud.vob = '' - if 'vob' in ud.parm: - ud.vob = ud.parm['vob'] - else: - msg = ud.url+": vob must be defined so the fetcher knows what to get." - raise MissingParameterError('vob', msg) - - if 'module' in ud.parm: - ud.module = ud.parm['module'] - else: - ud.module = "" - - ud.basecmd = d.getVar("FETCHCMD_ccrc") or spawn.find_executable("cleartool") or spawn.find_executable("rcleartool") - - if d.getVar("SRCREV") == "INVALID": - raise FetchError("Set a valid SRCREV for the clearcase fetcher in your recipe, e.g. SRCREV = \"/main/LATEST\" or any other label of your choice.") - - ud.label = d.getVar("SRCREV", False) - ud.customspec = d.getVar("CCASE_CUSTOM_CONFIG_SPEC") - - ud.server = "%s://%s%s" % (ud.proto, ud.host, ud.path) - - ud.identifier = "clearcase-%s%s-%s" % ( ud.vob.replace("/", ""), - ud.module.replace("/", "."), - ud.label.replace("/", ".")) - - ud.viewname = "%s-view%s" % (ud.identifier, d.getVar("DATETIME", d, True)) - ud.csname = "%s-config-spec" % (ud.identifier) - ud.ccasedir = os.path.join(d.getVar("DL_DIR"), ud.type) - ud.viewdir = os.path.join(ud.ccasedir, ud.viewname) - ud.configspecfile = os.path.join(ud.ccasedir, ud.csname) - ud.localfile = "%s.tar.gz" % (ud.identifier) - - self.debug("host = %s" % ud.host) - self.debug("path = %s" % ud.path) - self.debug("server = %s" % ud.server) - self.debug("proto = %s" % ud.proto) - self.debug("type = %s" % ud.type) - self.debug("vob = %s" % ud.vob) - self.debug("module = %s" % ud.module) - self.debug("basecmd = %s" % ud.basecmd) - self.debug("label = %s" % ud.label) - self.debug("ccasedir = %s" % ud.ccasedir) - self.debug("viewdir = %s" % ud.viewdir) - self.debug("viewname = %s" % ud.viewname) - self.debug("configspecfile = %s" % ud.configspecfile) - self.debug("localfile = %s" % ud.localfile) - - ud.localfile = os.path.join(d.getVar("DL_DIR"), ud.localfile) - - def _build_ccase_command(self, ud, command): - """ - Build up a commandline based on ud - command is: mkview, setcs, rmview - """ - options = [] - - if "rcleartool" in ud.basecmd: - options.append("-server %s" % ud.server) - - basecmd = "%s %s" % (ud.basecmd, command) - - if command is 'mkview': - if not "rcleartool" in ud.basecmd: - # Cleartool needs a -snapshot view - options.append("-snapshot") - options.append("-tag %s" % ud.viewname) - options.append(ud.viewdir) - - elif command is 'rmview': - options.append("-force") - options.append("%s" % ud.viewdir) - - elif command is 'setcs': - options.append("-overwrite") - options.append(ud.configspecfile) - - else: - raise FetchError("Invalid ccase command %s" % command) - - ccasecmd = "%s %s" % (basecmd, " ".join(options)) - self.debug("ccasecmd = %s" % ccasecmd) - return ccasecmd - - def _write_configspec(self, ud, d): - """ - Create config spec file (ud.configspecfile) for ccase view - """ - config_spec = "" - custom_config_spec = d.getVar("CCASE_CUSTOM_CONFIG_SPEC", d) - if custom_config_spec is not None: - for line in custom_config_spec.split("\\n"): - config_spec += line+"\n" - bb.warn("A custom config spec has been set, SRCREV is only relevant for the tarball name.") - else: - config_spec += "element * CHECKEDOUT\n" - config_spec += "element * %s\n" % ud.label - config_spec += "load %s%s\n" % (ud.vob, ud.module) - - logger.info("Using config spec: \n%s" % config_spec) - - with open(ud.configspecfile, 'w') as f: - f.write(config_spec) - - def _remove_view(self, ud, d): - if os.path.exists(ud.viewdir): - cmd = self._build_ccase_command(ud, 'rmview'); - logger.info("cleaning up [VOB=%s label=%s view=%s]", ud.vob, ud.label, ud.viewname) - bb.fetch2.check_network_access(d, cmd, ud.url) - output = runfetchcmd(cmd, d, workdir=ud.ccasedir) - logger.info("rmview output: %s", output) - - def need_update(self, ud, d): - if ("LATEST" in ud.label) or (ud.customspec and "LATEST" in ud.customspec): - ud.identifier += "-%s" % d.getVar("DATETIME",d, True) - return True - if os.path.exists(ud.localpath): - return False - return True - - def supports_srcrev(self): - return True - - def sortable_revision(self, ud, d, name): - return False, ud.identifier - - def download(self, ud, d): - """Fetch url""" - - # Make a fresh view - bb.utils.mkdirhier(ud.ccasedir) - self._write_configspec(ud, d) - cmd = self._build_ccase_command(ud, 'mkview') - logger.info("creating view [VOB=%s label=%s view=%s]", ud.vob, ud.label, ud.viewname) - bb.fetch2.check_network_access(d, cmd, ud.url) - try: - runfetchcmd(cmd, d) - except FetchError as e: - if "CRCLI2008E" in e.msg: - raise FetchError("%s\n%s\n" % (e.msg, "Call `rcleartool login` in your console to authenticate to the clearcase server before running bitbake.")) - else: - raise e - - # Set configspec: Setting the configspec effectively fetches the files as defined in the configspec - cmd = self._build_ccase_command(ud, 'setcs'); - logger.info("fetching data [VOB=%s label=%s view=%s]", ud.vob, ud.label, ud.viewname) - bb.fetch2.check_network_access(d, cmd, ud.url) - output = runfetchcmd(cmd, d, workdir=ud.viewdir) - logger.info("%s", output) - - # Copy the configspec to the viewdir so we have it in our source tarball later - shutil.copyfile(ud.configspecfile, os.path.join(ud.viewdir, ud.csname)) - - # Clean clearcase meta-data before tar - - runfetchcmd('tar -czf "%s" .' % (ud.localpath), d, cleanup = [ud.localpath]) - - # Clean up so we can create a new view next time - self.clean(ud, d); - - def clean(self, ud, d): - self._remove_view(ud, d) - bb.utils.remove(ud.configspecfile) diff --git a/poky/bitbake/lib/bb/fetch2/cvs.py b/poky/bitbake/lib/bb/fetch2/cvs.py deleted file mode 100644 index 490c954..0000000 --- a/poky/bitbake/lib/bb/fetch2/cvs.py +++ /dev/null @@ -1,172 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' implementations - -Classes for obtaining upstream sources for the -BitBake build tools. - -""" - -# Copyright (C) 2003, 2004 Chris Larson -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -#Based on functions from the base bb module, Copyright 2003 Holger Schurig -# - -import os -import logging -import bb -from bb.fetch2 import FetchMethod, FetchError, MissingParameterError, logger -from bb.fetch2 import runfetchcmd - -class Cvs(FetchMethod): - """ - Class to fetch a module or modules from cvs repositories - """ - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with cvs. - """ - return ud.type in ['cvs'] - - def urldata_init(self, ud, d): - if not "module" in ud.parm: - raise MissingParameterError("module", ud.url) - ud.module = ud.parm["module"] - - ud.tag = ud.parm.get('tag', "") - - # Override the default date in certain cases - if 'date' in ud.parm: - ud.date = ud.parm['date'] - elif ud.tag: - ud.date = "" - - norecurse = '' - if 'norecurse' in ud.parm: - norecurse = '_norecurse' - - fullpath = '' - if 'fullpath' in ud.parm: - fullpath = '_fullpath' - - ud.localfile = d.expand('%s_%s_%s_%s%s%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.tag, ud.date, norecurse, fullpath)) - - def need_update(self, ud, d): - if (ud.date == "now"): - return True - if not os.path.exists(ud.localpath): - return True - return False - - def download(self, ud, d): - - method = ud.parm.get('method', 'pserver') - localdir = ud.parm.get('localdir', ud.module) - cvs_port = ud.parm.get('port', '') - - cvs_rsh = None - if method == "ext": - if "rsh" in ud.parm: - cvs_rsh = ud.parm["rsh"] - - if method == "dir": - cvsroot = ud.path - else: - cvsroot = ":" + method - cvsproxyhost = d.getVar('CVS_PROXY_HOST') - if cvsproxyhost: - cvsroot += ";proxy=" + cvsproxyhost - cvsproxyport = d.getVar('CVS_PROXY_PORT') - if cvsproxyport: - cvsroot += ";proxyport=" + cvsproxyport - cvsroot += ":" + ud.user - if ud.pswd: - cvsroot += ":" + ud.pswd - cvsroot += "@" + ud.host + ":" + cvs_port + ud.path - - options = [] - if 'norecurse' in ud.parm: - options.append("-l") - if ud.date: - # treat YYYYMMDDHHMM specially for CVS - if len(ud.date) == 12: - options.append("-D \"%s %s:%s UTC\"" % (ud.date[0:8], ud.date[8:10], ud.date[10:12])) - else: - options.append("-D \"%s UTC\"" % ud.date) - if ud.tag: - options.append("-r %s" % ud.tag) - - cvsbasecmd = d.getVar("FETCHCMD_cvs") - cvscmd = cvsbasecmd + " '-d" + cvsroot + "' co " + " ".join(options) + " " + ud.module - cvsupdatecmd = cvsbasecmd + " '-d" + cvsroot + "' update -d -P " + " ".join(options) - - if cvs_rsh: - cvscmd = "CVS_RSH=\"%s\" %s" % (cvs_rsh, cvscmd) - cvsupdatecmd = "CVS_RSH=\"%s\" %s" % (cvs_rsh, cvsupdatecmd) - - # create module directory - logger.debug(2, "Fetch: checking for module directory") - pkg = d.getVar('PN') - pkgdir = os.path.join(d.getVar('CVSDIR'), pkg) - moddir = os.path.join(pkgdir, localdir) - workdir = None - if os.access(os.path.join(moddir, 'CVS'), os.R_OK): - logger.info("Update " + ud.url) - bb.fetch2.check_network_access(d, cvsupdatecmd, ud.url) - # update sources there - workdir = moddir - cmd = cvsupdatecmd - else: - logger.info("Fetch " + ud.url) - # check out sources there - bb.utils.mkdirhier(pkgdir) - workdir = pkgdir - logger.debug(1, "Running %s", cvscmd) - bb.fetch2.check_network_access(d, cvscmd, ud.url) - cmd = cvscmd - - runfetchcmd(cmd, d, cleanup=[moddir], workdir=workdir) - - if not os.access(moddir, os.R_OK): - raise FetchError("Directory %s was not readable despite sucessful fetch?!" % moddir, ud.url) - - scmdata = ud.parm.get("scmdata", "") - if scmdata == "keep": - tar_flags = "" - else: - tar_flags = "--exclude='CVS'" - - # tar them up to a defined filename - workdir = None - if 'fullpath' in ud.parm: - workdir = pkgdir - cmd = "tar %s -czf %s %s" % (tar_flags, ud.localpath, localdir) - else: - workdir = os.path.dirname(os.path.realpath(moddir)) - cmd = "tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.basename(moddir)) - - runfetchcmd(cmd, d, cleanup=[ud.localpath], workdir=workdir) - - def clean(self, ud, d): - """ Clean CVS Files and tarballs """ - - pkg = d.getVar('PN') - pkgdir = os.path.join(d.getVar("CVSDIR"), pkg) - - bb.utils.remove(pkgdir, True) - bb.utils.remove(ud.localpath) - diff --git a/poky/bitbake/lib/bb/fetch2/git.py b/poky/bitbake/lib/bb/fetch2/git.py deleted file mode 100644 index 5ef8cd6..0000000 --- a/poky/bitbake/lib/bb/fetch2/git.py +++ /dev/null @@ -1,659 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' git implementation - -git fetcher support the SRC_URI with format of: -SRC_URI = "git://some.host/somepath;OptionA=xxx;OptionB=xxx;..." - -Supported SRC_URI options are: - -- branch - The git branch to retrieve from. The default is "master" - - This option also supports multiple branch fetching, with branches - separated by commas. In multiple branches case, the name option - must have the same number of names to match the branches, which is - used to specify the SRC_REV for the branch - e.g: - SRC_URI="git://some.host/somepath;branch=branchX,branchY;name=nameX,nameY" - SRCREV_nameX = "xxxxxxxxxxxxxxxxxxxx" - SRCREV_nameY = "YYYYYYYYYYYYYYYYYYYY" - -- tag - The git tag to retrieve. The default is "master" - -- protocol - The method to use to access the repository. Common options are "git", - "http", "https", "file", "ssh" and "rsync". The default is "git". - -- rebaseable - rebaseable indicates that the upstream git repo may rebase in the future, - and current revision may disappear from upstream repo. This option will - remind fetcher to preserve local cache carefully for future use. - The default value is "0", set rebaseable=1 for rebaseable git repo. - -- nocheckout - Don't checkout source code when unpacking. set this option for the recipe - who has its own routine to checkout code. - The default is "0", set nocheckout=1 if needed. - -- bareclone - Create a bare clone of the source code and don't checkout the source code - when unpacking. Set this option for the recipe who has its own routine to - checkout code and tracking branch requirements. - The default is "0", set bareclone=1 if needed. - -- nobranch - Don't check the SHA validation for branch. set this option for the recipe - referring to commit which is valid in tag instead of branch. - The default is "0", set nobranch=1 if needed. - -- usehead - For local git:// urls to use the current branch HEAD as the revision for use with - AUTOREV. Implies nobranch. - -""" - -#Copyright (C) 2005 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import collections -import errno -import fnmatch -import os -import re -import subprocess -import tempfile -import bb -import bb.progress -from bb.fetch2 import FetchMethod -from bb.fetch2 import runfetchcmd -from bb.fetch2 import logger - - -class GitProgressHandler(bb.progress.LineFilterProgressHandler): - """Extract progress information from git output""" - def __init__(self, d): - self._buffer = '' - self._count = 0 - super(GitProgressHandler, self).__init__(d) - # Send an initial progress event so the bar gets shown - self._fire_progress(-1) - - def write(self, string): - self._buffer += string - stages = ['Counting objects', 'Compressing objects', 'Receiving objects', 'Resolving deltas'] - stage_weights = [0.2, 0.05, 0.5, 0.25] - stagenum = 0 - for i, stage in reversed(list(enumerate(stages))): - if stage in self._buffer: - stagenum = i - self._buffer = '' - break - self._status = stages[stagenum] - percs = re.findall(r'(\d+)%', string) - if percs: - progress = int(round((int(percs[-1]) * stage_weights[stagenum]) + (sum(stage_weights[:stagenum]) * 100))) - rates = re.findall(r'([\d.]+ [a-zA-Z]*/s+)', string) - if rates: - rate = rates[-1] - else: - rate = None - self.update(progress, rate) - else: - if stagenum == 0: - percs = re.findall(r': (\d+)', string) - if percs: - count = int(percs[-1]) - if count > self._count: - self._count = count - self._fire_progress(-count) - super(GitProgressHandler, self).write(string) - - -class Git(FetchMethod): - """Class to fetch a module or modules from git repositories""" - def init(self, d): - pass - - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with git. - """ - return ud.type in ['git'] - - def supports_checksum(self, urldata): - return False - - def urldata_init(self, ud, d): - """ - init git specific variable within url data - so that the git method like latest_revision() can work - """ - if 'protocol' in ud.parm: - ud.proto = ud.parm['protocol'] - elif not ud.host: - ud.proto = 'file' - else: - ud.proto = "git" - - if not ud.proto in ('git', 'file', 'ssh', 'http', 'https', 'rsync'): - raise bb.fetch2.ParameterError("Invalid protocol type", ud.url) - - ud.nocheckout = ud.parm.get("nocheckout","0") == "1" - - ud.rebaseable = ud.parm.get("rebaseable","0") == "1" - - ud.nobranch = ud.parm.get("nobranch","0") == "1" - - # usehead implies nobranch - ud.usehead = ud.parm.get("usehead","0") == "1" - if ud.usehead: - if ud.proto != "file": - raise bb.fetch2.ParameterError("The usehead option is only for use with local ('protocol=file') git repositories", ud.url) - ud.nobranch = 1 - - # bareclone implies nocheckout - ud.bareclone = ud.parm.get("bareclone","0") == "1" - if ud.bareclone: - ud.nocheckout = 1 - - ud.unresolvedrev = {} - branches = ud.parm.get("branch", "master").split(',') - if len(branches) != len(ud.names): - raise bb.fetch2.ParameterError("The number of name and branch parameters is not balanced", ud.url) - - ud.cloneflags = "-s -n" - if ud.bareclone: - ud.cloneflags += " --mirror" - - ud.shallow = d.getVar("BB_GIT_SHALLOW") == "1" - ud.shallow_extra_refs = (d.getVar("BB_GIT_SHALLOW_EXTRA_REFS") or "").split() - - depth_default = d.getVar("BB_GIT_SHALLOW_DEPTH") - if depth_default is not None: - try: - depth_default = int(depth_default or 0) - except ValueError: - raise bb.fetch2.FetchError("Invalid depth for BB_GIT_SHALLOW_DEPTH: %s" % depth_default) - else: - if depth_default < 0: - raise bb.fetch2.FetchError("Invalid depth for BB_GIT_SHALLOW_DEPTH: %s" % depth_default) - else: - depth_default = 1 - ud.shallow_depths = collections.defaultdict(lambda: depth_default) - - revs_default = d.getVar("BB_GIT_SHALLOW_REVS", True) - ud.shallow_revs = [] - ud.branches = {} - for pos, name in enumerate(ud.names): - branch = branches[pos] - ud.branches[name] = branch - ud.unresolvedrev[name] = branch - - shallow_depth = d.getVar("BB_GIT_SHALLOW_DEPTH_%s" % name) - if shallow_depth is not None: - try: - shallow_depth = int(shallow_depth or 0) - except ValueError: - raise bb.fetch2.FetchError("Invalid depth for BB_GIT_SHALLOW_DEPTH_%s: %s" % (name, shallow_depth)) - else: - if shallow_depth < 0: - raise bb.fetch2.FetchError("Invalid depth for BB_GIT_SHALLOW_DEPTH_%s: %s" % (name, shallow_depth)) - ud.shallow_depths[name] = shallow_depth - - revs = d.getVar("BB_GIT_SHALLOW_REVS_%s" % name) - if revs is not None: - ud.shallow_revs.extend(revs.split()) - elif revs_default is not None: - ud.shallow_revs.extend(revs_default.split()) - - if (ud.shallow and - not ud.shallow_revs and - all(ud.shallow_depths[n] == 0 for n in ud.names)): - # Shallow disabled for this URL - ud.shallow = False - - if ud.usehead: - ud.unresolvedrev['default'] = 'HEAD' - - ud.basecmd = d.getVar("FETCHCMD_git") or "git -c core.fsyncobjectfiles=0" - - write_tarballs = d.getVar("BB_GENERATE_MIRROR_TARBALLS") or "0" - ud.write_tarballs = write_tarballs != "0" or ud.rebaseable - ud.write_shallow_tarballs = (d.getVar("BB_GENERATE_SHALLOW_TARBALLS") or write_tarballs) != "0" - - ud.setup_revisions(d) - - for name in ud.names: - # Ensure anything that doesn't look like a sha256 checksum/revision is translated into one - if not ud.revisions[name] or len(ud.revisions[name]) != 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]): - if ud.revisions[name]: - ud.unresolvedrev[name] = ud.revisions[name] - ud.revisions[name] = self.latest_revision(ud, d, name) - - gitsrcname = '%s%s' % (ud.host.replace(':', '.'), ud.path.replace('/', '.').replace('*', '.')) - if gitsrcname.startswith('.'): - gitsrcname = gitsrcname[1:] - - # for rebaseable git repo, it is necessary to keep mirror tar ball - # per revision, so that even the revision disappears from the - # upstream repo in the future, the mirror will remain intact and still - # contains the revision - if ud.rebaseable: - for name in ud.names: - gitsrcname = gitsrcname + '_' + ud.revisions[name] - - dl_dir = d.getVar("DL_DIR") - gitdir = d.getVar("GITDIR") or (dl_dir + "/git2/") - ud.clonedir = os.path.join(gitdir, gitsrcname) - ud.localfile = ud.clonedir - - mirrortarball = 'git2_%s.tar.gz' % gitsrcname - ud.fullmirror = os.path.join(dl_dir, mirrortarball) - ud.mirrortarballs = [mirrortarball] - if ud.shallow: - tarballname = gitsrcname - if ud.bareclone: - tarballname = "%s_bare" % tarballname - - if ud.shallow_revs: - tarballname = "%s_%s" % (tarballname, "_".join(sorted(ud.shallow_revs))) - - for name, revision in sorted(ud.revisions.items()): - tarballname = "%s_%s" % (tarballname, ud.revisions[name][:7]) - depth = ud.shallow_depths[name] - if depth: - tarballname = "%s-%s" % (tarballname, depth) - - shallow_refs = [] - if not ud.nobranch: - shallow_refs.extend(ud.branches.values()) - if ud.shallow_extra_refs: - shallow_refs.extend(r.replace('refs/heads/', '').replace('*', 'ALL') for r in ud.shallow_extra_refs) - if shallow_refs: - tarballname = "%s_%s" % (tarballname, "_".join(sorted(shallow_refs)).replace('/', '.')) - - fetcher = self.__class__.__name__.lower() - ud.shallowtarball = '%sshallow_%s.tar.gz' % (fetcher, tarballname) - ud.fullshallow = os.path.join(dl_dir, ud.shallowtarball) - ud.mirrortarballs.insert(0, ud.shallowtarball) - - def localpath(self, ud, d): - return ud.clonedir - - def need_update(self, ud, d): - if not os.path.exists(ud.clonedir): - return True - for name in ud.names: - if not self._contains_ref(ud, d, name, ud.clonedir): - return True - if ud.shallow and ud.write_shallow_tarballs and not os.path.exists(ud.fullshallow): - return True - if ud.write_tarballs and not os.path.exists(ud.fullmirror): - return True - return False - - def try_premirror(self, ud, d): - # If we don't do this, updating an existing checkout with only premirrors - # is not possible - if d.getVar("BB_FETCH_PREMIRRORONLY") is not None: - return True - if os.path.exists(ud.clonedir): - return False - return True - - def download(self, ud, d): - """Fetch url""" - - no_clone = not os.path.exists(ud.clonedir) - need_update = no_clone or self.need_update(ud, d) - - # A current clone is preferred to either tarball, a shallow tarball is - # preferred to an out of date clone, and a missing clone will use - # either tarball. - if ud.shallow and os.path.exists(ud.fullshallow) and need_update: - ud.localpath = ud.fullshallow - return - elif os.path.exists(ud.fullmirror) and no_clone: - bb.utils.mkdirhier(ud.clonedir) - runfetchcmd("tar -xzf %s" % ud.fullmirror, d, workdir=ud.clonedir) - - repourl = self._get_repo_url(ud) - - # If the repo still doesn't exist, fallback to cloning it - if not os.path.exists(ud.clonedir): - # We do this since git will use a "-l" option automatically for local urls where possible - if repourl.startswith("file://"): - repourl = repourl[7:] - clone_cmd = "LANG=C %s clone --bare --mirror %s %s --progress" % (ud.basecmd, repourl, ud.clonedir) - if ud.proto.lower() != 'file': - bb.fetch2.check_network_access(d, clone_cmd, ud.url) - progresshandler = GitProgressHandler(d) - runfetchcmd(clone_cmd, d, log=progresshandler) - - # Update the checkout if needed - needupdate = False - for name in ud.names: - if not self._contains_ref(ud, d, name, ud.clonedir): - needupdate = True - if needupdate: - try: - runfetchcmd("%s remote rm origin" % ud.basecmd, d, workdir=ud.clonedir) - except bb.fetch2.FetchError: - logger.debug(1, "No Origin") - - runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, repourl), d, workdir=ud.clonedir) - fetch_cmd = "LANG=C %s fetch -f --prune --progress %s refs/*:refs/*" % (ud.basecmd, repourl) - if ud.proto.lower() != 'file': - bb.fetch2.check_network_access(d, fetch_cmd, ud.url) - progresshandler = GitProgressHandler(d) - runfetchcmd(fetch_cmd, d, log=progresshandler, workdir=ud.clonedir) - runfetchcmd("%s prune-packed" % ud.basecmd, d, workdir=ud.clonedir) - runfetchcmd("%s pack-redundant --all | xargs -r rm" % ud.basecmd, d, workdir=ud.clonedir) - try: - os.unlink(ud.fullmirror) - except OSError as exc: - if exc.errno != errno.ENOENT: - raise - for name in ud.names: - if not self._contains_ref(ud, d, name, ud.clonedir): - raise bb.fetch2.FetchError("Unable to find revision %s in branch %s even from upstream" % (ud.revisions[name], ud.branches[name])) - - def build_mirror_data(self, ud, d): - if ud.shallow and ud.write_shallow_tarballs: - if not os.path.exists(ud.fullshallow): - if os.path.islink(ud.fullshallow): - os.unlink(ud.fullshallow) - tempdir = tempfile.mkdtemp(dir=d.getVar('DL_DIR')) - shallowclone = os.path.join(tempdir, 'git') - try: - self.clone_shallow_local(ud, shallowclone, d) - - logger.info("Creating tarball of git repository") - runfetchcmd("tar -czf %s ." % ud.fullshallow, d, workdir=shallowclone) - runfetchcmd("touch %s.done" % ud.fullshallow, d) - finally: - bb.utils.remove(tempdir, recurse=True) - elif ud.write_tarballs and not os.path.exists(ud.fullmirror): - if os.path.islink(ud.fullmirror): - os.unlink(ud.fullmirror) - - logger.info("Creating tarball of git repository") - runfetchcmd("tar -czf %s ." % ud.fullmirror, d, workdir=ud.clonedir) - runfetchcmd("touch %s.done" % ud.fullmirror, d) - - def clone_shallow_local(self, ud, dest, d): - """Clone the repo and make it shallow. - - The upstream url of the new clone isn't set at this time, as it'll be - set correctly when unpacked.""" - runfetchcmd("%s clone %s %s %s" % (ud.basecmd, ud.cloneflags, ud.clonedir, dest), d) - - to_parse, shallow_branches = [], [] - for name in ud.names: - revision = ud.revisions[name] - depth = ud.shallow_depths[name] - if depth: - to_parse.append('%s~%d^{}' % (revision, depth - 1)) - - # For nobranch, we need a ref, otherwise the commits will be - # removed, and for non-nobranch, we truncate the branch to our - # srcrev, to avoid keeping unnecessary history beyond that. - branch = ud.branches[name] - if ud.nobranch: - ref = "refs/shallow/%s" % name - elif ud.bareclone: - ref = "refs/heads/%s" % branch - else: - ref = "refs/remotes/origin/%s" % branch - - shallow_branches.append(ref) - runfetchcmd("%s update-ref %s %s" % (ud.basecmd, ref, revision), d, workdir=dest) - - # Map srcrev+depths to revisions - parsed_depths = runfetchcmd("%s rev-parse %s" % (ud.basecmd, " ".join(to_parse)), d, workdir=dest) - - # Resolve specified revisions - parsed_revs = runfetchcmd("%s rev-parse %s" % (ud.basecmd, " ".join('"%s^{}"' % r for r in ud.shallow_revs)), d, workdir=dest) - shallow_revisions = parsed_depths.splitlines() + parsed_revs.splitlines() - - # Apply extra ref wildcards - all_refs = runfetchcmd('%s for-each-ref "--format=%%(refname)"' % ud.basecmd, - d, workdir=dest).splitlines() - for r in ud.shallow_extra_refs: - if not ud.bareclone: - r = r.replace('refs/heads/', 'refs/remotes/origin/') - - if '*' in r: - matches = filter(lambda a: fnmatch.fnmatchcase(a, r), all_refs) - shallow_branches.extend(matches) - else: - shallow_branches.append(r) - - # Make the repository shallow - shallow_cmd = ['git', 'make-shallow', '-s'] - for b in shallow_branches: - shallow_cmd.append('-r') - shallow_cmd.append(b) - shallow_cmd.extend(shallow_revisions) - runfetchcmd(subprocess.list2cmdline(shallow_cmd), d, workdir=dest) - - def unpack(self, ud, destdir, d): - """ unpack the downloaded src to destdir""" - - subdir = ud.parm.get("subpath", "") - if subdir != "": - readpathspec = ":%s" % subdir - def_destsuffix = "%s/" % os.path.basename(subdir.rstrip('/')) - else: - readpathspec = "" - def_destsuffix = "git/" - - destsuffix = ud.parm.get("destsuffix", def_destsuffix) - destdir = ud.destdir = os.path.join(destdir, destsuffix) - if os.path.exists(destdir): - bb.utils.prunedir(destdir) - - if ud.shallow and (not os.path.exists(ud.clonedir) or self.need_update(ud, d)): - bb.utils.mkdirhier(destdir) - runfetchcmd("tar -xzf %s" % ud.fullshallow, d, workdir=destdir) - else: - runfetchcmd("%s clone %s %s/ %s" % (ud.basecmd, ud.cloneflags, ud.clonedir, destdir), d) - - repourl = self._get_repo_url(ud) - runfetchcmd("%s remote set-url origin %s" % (ud.basecmd, repourl), d, workdir=destdir) - if not ud.nocheckout: - if subdir != "": - runfetchcmd("%s read-tree %s%s" % (ud.basecmd, ud.revisions[ud.names[0]], readpathspec), d, - workdir=destdir) - runfetchcmd("%s checkout-index -q -f -a" % ud.basecmd, d, workdir=destdir) - elif not ud.nobranch: - branchname = ud.branches[ud.names[0]] - runfetchcmd("%s checkout -B %s %s" % (ud.basecmd, branchname, \ - ud.revisions[ud.names[0]]), d, workdir=destdir) - runfetchcmd("%s branch %s --set-upstream-to origin/%s" % (ud.basecmd, branchname, \ - branchname), d, workdir=destdir) - else: - runfetchcmd("%s checkout %s" % (ud.basecmd, ud.revisions[ud.names[0]]), d, workdir=destdir) - - return True - - def clean(self, ud, d): - """ clean the git directory """ - - bb.utils.remove(ud.localpath, True) - bb.utils.remove(ud.fullmirror) - bb.utils.remove(ud.fullmirror + ".done") - - def supports_srcrev(self): - return True - - def _contains_ref(self, ud, d, name, wd): - cmd = "" - if ud.nobranch: - cmd = "%s log --pretty=oneline -n 1 %s -- 2> /dev/null | wc -l" % ( - ud.basecmd, ud.revisions[name]) - else: - cmd = "%s branch --contains %s --list %s 2> /dev/null | wc -l" % ( - ud.basecmd, ud.revisions[name], ud.branches[name]) - try: - output = runfetchcmd(cmd, d, quiet=True, workdir=wd) - except bb.fetch2.FetchError: - return False - if len(output.split()) > 1: - raise bb.fetch2.FetchError("The command '%s' gave output with more then 1 line unexpectedly, output: '%s'" % (cmd, output)) - return output.split()[0] != "0" - - def _get_repo_url(self, ud): - """ - Return the repository URL - """ - if ud.user: - username = ud.user + '@' - else: - username = "" - return "%s://%s%s%s" % (ud.proto, username, ud.host, ud.path) - - def _revision_key(self, ud, d, name): - """ - Return a unique key for the url - """ - return "git:" + ud.host + ud.path.replace('/', '.') + ud.unresolvedrev[name] - - def _lsremote(self, ud, d, search): - """ - Run git ls-remote with the specified search string - """ - # Prevent recursion e.g. in OE if SRCPV is in PV, PV is in WORKDIR, - # and WORKDIR is in PATH (as a result of RSS), our call to - # runfetchcmd() exports PATH so this function will get called again (!) - # In this scenario the return call of the function isn't actually - # important - WORKDIR isn't needed in PATH to call git ls-remote - # anyway. - if d.getVar('_BB_GIT_IN_LSREMOTE', False): - return '' - d.setVar('_BB_GIT_IN_LSREMOTE', '1') - try: - repourl = self._get_repo_url(ud) - cmd = "%s ls-remote %s %s" % \ - (ud.basecmd, repourl, search) - if ud.proto.lower() != 'file': - bb.fetch2.check_network_access(d, cmd, repourl) - output = runfetchcmd(cmd, d, True) - if not output: - raise bb.fetch2.FetchError("The command %s gave empty output unexpectedly" % cmd, ud.url) - finally: - d.delVar('_BB_GIT_IN_LSREMOTE') - return output - - def _latest_revision(self, ud, d, name): - """ - Compute the HEAD revision for the url - """ - output = self._lsremote(ud, d, "") - # Tags of the form ^{} may not work, need to fallback to other form - if ud.unresolvedrev[name][:5] == "refs/" or ud.usehead: - head = ud.unresolvedrev[name] - tag = ud.unresolvedrev[name] - else: - head = "refs/heads/%s" % ud.unresolvedrev[name] - tag = "refs/tags/%s" % ud.unresolvedrev[name] - for s in [head, tag + "^{}", tag]: - for l in output.strip().split('\n'): - sha1, ref = l.split() - if s == ref: - return sha1 - raise bb.fetch2.FetchError("Unable to resolve '%s' in upstream git repository in git ls-remote output for %s" % \ - (ud.unresolvedrev[name], ud.host+ud.path)) - - def latest_versionstring(self, ud, d): - """ - Compute the latest release name like "x.y.x" in "x.y.x+gitHASH" - by searching through the tags output of ls-remote, comparing - versions and returning the highest match. - """ - pupver = ('', '') - - tagregex = re.compile(d.getVar('UPSTREAM_CHECK_GITTAGREGEX') or "(?P<pver>([0-9][\.|_]?)+)") - try: - output = self._lsremote(ud, d, "refs/tags/*") - except bb.fetch2.FetchError or bb.fetch2.NetworkAccess: - return pupver - - verstring = "" - revision = "" - for line in output.split("\n"): - if not line: - break - - tag_head = line.split("/")[-1] - # Ignore non-released branches - m = re.search("(alpha|beta|rc|final)+", tag_head) - if m: - continue - - # search for version in the line - tag = tagregex.search(tag_head) - if tag == None: - continue - - tag = tag.group('pver') - tag = tag.replace("_", ".") - - if verstring and bb.utils.vercmp(("0", tag, ""), ("0", verstring, "")) < 0: - continue - - verstring = tag - revision = line.split()[0] - pupver = (verstring, revision) - - return pupver - - def _build_revision(self, ud, d, name): - return ud.revisions[name] - - def gitpkgv_revision(self, ud, d, name): - """ - Return a sortable revision number by counting commits in the history - Based on gitpkgv.bblass in meta-openembedded - """ - rev = self._build_revision(ud, d, name) - localpath = ud.localpath - rev_file = os.path.join(localpath, "oe-gitpkgv_" + rev) - if not os.path.exists(localpath): - commits = None - else: - if not os.path.exists(rev_file) or not os.path.getsize(rev_file): - from pipes import quote - commits = bb.fetch2.runfetchcmd( - "git rev-list %s -- | wc -l" % quote(rev), - d, quiet=True).strip().lstrip('0') - if commits: - open(rev_file, "w").write("%d\n" % int(commits)) - else: - commits = open(rev_file, "r").readline(128).strip() - if commits: - return False, "%s+%s" % (commits, rev[:7]) - else: - return True, str(rev) - - def checkstatus(self, fetch, ud, d): - try: - self._lsremote(ud, d, "") - return True - except bb.fetch2.FetchError: - return False diff --git a/poky/bitbake/lib/bb/fetch2/gitannex.py b/poky/bitbake/lib/bb/fetch2/gitannex.py deleted file mode 100644 index a9b69ca..0000000 --- a/poky/bitbake/lib/bb/fetch2/gitannex.py +++ /dev/null @@ -1,91 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' git annex implementation -""" - -# Copyright (C) 2014 Otavio Salvador -# Copyright (C) 2014 O.S. Systems Software LTDA. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os -import bb -from bb.fetch2.git import Git -from bb.fetch2 import runfetchcmd -from bb.fetch2 import logger - -class GitANNEX(Git): - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with git. - """ - return ud.type in ['gitannex'] - - def urldata_init(self, ud, d): - super(GitANNEX, self).urldata_init(ud, d) - if ud.shallow: - ud.shallow_extra_refs += ['refs/heads/git-annex', 'refs/heads/synced/*'] - - def uses_annex(self, ud, d, wd): - for name in ud.names: - try: - runfetchcmd("%s rev-list git-annex" % (ud.basecmd), d, quiet=True, workdir=wd) - return True - except bb.fetch.FetchError: - pass - - return False - - def update_annex(self, ud, d, wd): - try: - runfetchcmd("%s annex get --all" % (ud.basecmd), d, quiet=True, workdir=wd) - except bb.fetch.FetchError: - return False - runfetchcmd("chmod u+w -R %s/annex" % (ud.clonedir), d, quiet=True, workdir=wd) - - return True - - def download(self, ud, d): - Git.download(self, ud, d) - - if not ud.shallow or ud.localpath != ud.fullshallow: - if self.uses_annex(ud, d, ud.clonedir): - self.update_annex(ud, d, ud.clonedir) - - def clone_shallow_local(self, ud, dest, d): - super(GitANNEX, self).clone_shallow_local(ud, dest, d) - - try: - runfetchcmd("%s annex init" % ud.basecmd, d, workdir=dest) - except bb.fetch.FetchError: - pass - - if self.uses_annex(ud, d, dest): - runfetchcmd("%s annex get" % ud.basecmd, d, workdir=dest) - runfetchcmd("chmod u+w -R %s/.git/annex" % (dest), d, quiet=True, workdir=dest) - - def unpack(self, ud, destdir, d): - Git.unpack(self, ud, destdir, d) - - try: - runfetchcmd("%s annex init" % (ud.basecmd), d, workdir=ud.destdir) - except bb.fetch.FetchError: - pass - - annex = self.uses_annex(ud, d, ud.destdir) - if annex: - runfetchcmd("%s annex get" % (ud.basecmd), d, workdir=ud.destdir) - runfetchcmd("chmod u+w -R %s/.git/annex" % (ud.destdir), d, quiet=True, workdir=ud.destdir) - diff --git a/poky/bitbake/lib/bb/fetch2/gitsm.py b/poky/bitbake/lib/bb/fetch2/gitsm.py deleted file mode 100644 index 0aff100..0000000 --- a/poky/bitbake/lib/bb/fetch2/gitsm.py +++ /dev/null @@ -1,135 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' git submodules implementation - -Inherits from and extends the Git fetcher to retrieve submodules of a git repository -after cloning. - -SRC_URI = "gitsm://<see Git fetcher for syntax>" - -See the Git fetcher, git://, for usage documentation. - -NOTE: Switching a SRC_URI from "git://" to "gitsm://" requires a clean of your recipe. - -""" - -# Copyright (C) 2013 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os -import bb -from bb.fetch2.git import Git -from bb.fetch2 import runfetchcmd -from bb.fetch2 import logger - -class GitSM(Git): - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with git. - """ - return ud.type in ['gitsm'] - - def uses_submodules(self, ud, d, wd): - for name in ud.names: - try: - runfetchcmd("%s show %s:.gitmodules" % (ud.basecmd, ud.revisions[name]), d, quiet=True, workdir=wd) - return True - except bb.fetch.FetchError: - pass - return False - - def _set_relative_paths(self, repopath): - """ - Fix submodule paths to be relative instead of absolute, - so that when we move the repo it doesn't break - (In Git 1.7.10+ this is done automatically) - """ - submodules = [] - with open(os.path.join(repopath, '.gitmodules'), 'r') as f: - for line in f.readlines(): - if line.startswith('[submodule'): - submodules.append(line.split('"')[1]) - - for module in submodules: - repo_conf = os.path.join(repopath, module, '.git') - if os.path.exists(repo_conf): - with open(repo_conf, 'r') as f: - lines = f.readlines() - newpath = '' - for i, line in enumerate(lines): - if line.startswith('gitdir:'): - oldpath = line.split(': ')[-1].rstrip() - if oldpath.startswith('/'): - newpath = '../' * (module.count('/') + 1) + '.git/modules/' + module - lines[i] = 'gitdir: %s\n' % newpath - break - if newpath: - with open(repo_conf, 'w') as f: - for line in lines: - f.write(line) - - repo_conf2 = os.path.join(repopath, '.git', 'modules', module, 'config') - if os.path.exists(repo_conf2): - with open(repo_conf2, 'r') as f: - lines = f.readlines() - newpath = '' - for i, line in enumerate(lines): - if line.lstrip().startswith('worktree = '): - oldpath = line.split(' = ')[-1].rstrip() - if oldpath.startswith('/'): - newpath = '../' * (module.count('/') + 3) + module - lines[i] = '\tworktree = %s\n' % newpath - break - if newpath: - with open(repo_conf2, 'w') as f: - for line in lines: - f.write(line) - - def update_submodules(self, ud, d): - # We have to convert bare -> full repo, do the submodule bit, then convert back - tmpclonedir = ud.clonedir + ".tmp" - gitdir = tmpclonedir + os.sep + ".git" - bb.utils.remove(tmpclonedir, True) - os.mkdir(tmpclonedir) - os.rename(ud.clonedir, gitdir) - runfetchcmd("sed " + gitdir + "/config -i -e 's/bare.*=.*true/bare = false/'", d) - runfetchcmd(ud.basecmd + " reset --hard", d, workdir=tmpclonedir) - runfetchcmd(ud.basecmd + " checkout -f " + ud.revisions[ud.names[0]], d, workdir=tmpclonedir) - runfetchcmd(ud.basecmd + " submodule update --init --recursive", d, workdir=tmpclonedir) - self._set_relative_paths(tmpclonedir) - runfetchcmd("sed " + gitdir + "/config -i -e 's/bare.*=.*false/bare = true/'", d, workdir=tmpclonedir) - os.rename(gitdir, ud.clonedir,) - bb.utils.remove(tmpclonedir, True) - - def download(self, ud, d): - Git.download(self, ud, d) - - if not ud.shallow or ud.localpath != ud.fullshallow: - submodules = self.uses_submodules(ud, d, ud.clonedir) - if submodules: - self.update_submodules(ud, d) - - def clone_shallow_local(self, ud, dest, d): - super(GitSM, self).clone_shallow_local(ud, dest, d) - - runfetchcmd('cp -fpPRH "%s/modules" "%s/"' % (ud.clonedir, os.path.join(dest, '.git')), d) - - def unpack(self, ud, destdir, d): - Git.unpack(self, ud, destdir, d) - - if self.uses_submodules(ud, d, ud.destdir): - runfetchcmd(ud.basecmd + " checkout " + ud.revisions[ud.names[0]], d, workdir=ud.destdir) - runfetchcmd(ud.basecmd + " submodule update --init --recursive", d, workdir=ud.destdir) diff --git a/poky/bitbake/lib/bb/fetch2/hg.py b/poky/bitbake/lib/bb/fetch2/hg.py deleted file mode 100644 index d0857e6..0000000 --- a/poky/bitbake/lib/bb/fetch2/hg.py +++ /dev/null @@ -1,270 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' implementation for mercurial DRCS (hg). - -""" - -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2004 Marcin Juszkiewicz -# Copyright (C) 2007 Robert Schuster -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -import os -import sys -import logging -import bb -import errno -from bb.fetch2 import FetchMethod -from bb.fetch2 import FetchError -from bb.fetch2 import MissingParameterError -from bb.fetch2 import runfetchcmd -from bb.fetch2 import logger - -class Hg(FetchMethod): - """Class to fetch from mercurial repositories""" - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with mercurial. - """ - return ud.type in ['hg'] - - def supports_checksum(self, urldata): - """ - Don't require checksums for local archives created from - repository checkouts. - """ - return False - - def urldata_init(self, ud, d): - """ - init hg specific variable within url data - """ - if not "module" in ud.parm: - raise MissingParameterError('module', ud.url) - - ud.module = ud.parm["module"] - - if 'protocol' in ud.parm: - ud.proto = ud.parm['protocol'] - elif not ud.host: - ud.proto = 'file' - else: - ud.proto = "hg" - - ud.setup_revisions(d) - - if 'rev' in ud.parm: - ud.revision = ud.parm['rev'] - elif not ud.revision: - ud.revision = self.latest_revision(ud, d) - - # Create paths to mercurial checkouts - hgsrcname = '%s_%s_%s' % (ud.module.replace('/', '.'), \ - ud.host, ud.path.replace('/', '.')) - mirrortarball = 'hg_%s.tar.gz' % hgsrcname - ud.fullmirror = os.path.join(d.getVar("DL_DIR"), mirrortarball) - ud.mirrortarballs = [mirrortarball] - - hgdir = d.getVar("HGDIR") or (d.getVar("DL_DIR") + "/hg/") - ud.pkgdir = os.path.join(hgdir, hgsrcname) - ud.moddir = os.path.join(ud.pkgdir, ud.module) - ud.localfile = ud.moddir - ud.basecmd = d.getVar("FETCHCMD_hg") or "/usr/bin/env hg" - - ud.write_tarballs = d.getVar("BB_GENERATE_MIRROR_TARBALLS") - - def need_update(self, ud, d): - revTag = ud.parm.get('rev', 'tip') - if revTag == "tip": - return True - if not os.path.exists(ud.localpath): - return True - return False - - def try_premirror(self, ud, d): - # If we don't do this, updating an existing checkout with only premirrors - # is not possible - if d.getVar("BB_FETCH_PREMIRRORONLY") is not None: - return True - if os.path.exists(ud.moddir): - return False - return True - - def _buildhgcommand(self, ud, d, command): - """ - Build up an hg commandline based on ud - command is "fetch", "update", "info" - """ - - proto = ud.parm.get('protocol', 'http') - - host = ud.host - if proto == "file": - host = "/" - ud.host = "localhost" - - if not ud.user: - hgroot = host + ud.path - else: - if ud.pswd: - hgroot = ud.user + ":" + ud.pswd + "@" + host + ud.path - else: - hgroot = ud.user + "@" + host + ud.path - - if command == "info": - return "%s identify -i %s://%s/%s" % (ud.basecmd, proto, hgroot, ud.module) - - options = []; - - # Don't specify revision for the fetch; clone the entire repo. - # This avoids an issue if the specified revision is a tag, because - # the tag actually exists in the specified revision + 1, so it won't - # be available when used in any successive commands. - if ud.revision and command != "fetch": - options.append("-r %s" % ud.revision) - - if command == "fetch": - if ud.user and ud.pswd: - cmd = "%s --config auth.default.prefix=* --config auth.default.username=%s --config auth.default.password=%s --config \"auth.default.schemes=%s\" clone %s %s://%s/%s %s" % (ud.basecmd, ud.user, ud.pswd, proto, " ".join(options), proto, hgroot, ud.module, ud.module) - else: - cmd = "%s clone %s %s://%s/%s %s" % (ud.basecmd, " ".join(options), proto, hgroot, ud.module, ud.module) - elif command == "pull": - # do not pass options list; limiting pull to rev causes the local - # repo not to contain it and immediately following "update" command - # will crash - if ud.user and ud.pswd: - cmd = "%s --config auth.default.prefix=* --config auth.default.username=%s --config auth.default.password=%s --config \"auth.default.schemes=%s\" pull" % (ud.basecmd, ud.user, ud.pswd, proto) - else: - cmd = "%s pull" % (ud.basecmd) - elif command == "update": - if ud.user and ud.pswd: - cmd = "%s --config auth.default.prefix=* --config auth.default.username=%s --config auth.default.password=%s --config \"auth.default.schemes=%s\" update -C %s" % (ud.basecmd, ud.user, ud.pswd, proto, " ".join(options)) - else: - cmd = "%s update -C %s" % (ud.basecmd, " ".join(options)) - else: - raise FetchError("Invalid hg command %s" % command, ud.url) - - return cmd - - def download(self, ud, d): - """Fetch url""" - - logger.debug(2, "Fetch: checking for module directory '" + ud.moddir + "'") - - # If the checkout doesn't exist and the mirror tarball does, extract it - if not os.path.exists(ud.pkgdir) and os.path.exists(ud.fullmirror): - bb.utils.mkdirhier(ud.pkgdir) - runfetchcmd("tar -xzf %s" % (ud.fullmirror), d, workdir=ud.pkgdir) - - if os.access(os.path.join(ud.moddir, '.hg'), os.R_OK): - # Found the source, check whether need pull - updatecmd = self._buildhgcommand(ud, d, "update") - logger.debug(1, "Running %s", updatecmd) - try: - runfetchcmd(updatecmd, d, workdir=ud.moddir) - except bb.fetch2.FetchError: - # Runnning pull in the repo - pullcmd = self._buildhgcommand(ud, d, "pull") - logger.info("Pulling " + ud.url) - # update sources there - logger.debug(1, "Running %s", pullcmd) - bb.fetch2.check_network_access(d, pullcmd, ud.url) - runfetchcmd(pullcmd, d, workdir=ud.moddir) - try: - os.unlink(ud.fullmirror) - except OSError as exc: - if exc.errno != errno.ENOENT: - raise - - # No source found, clone it. - if not os.path.exists(ud.moddir): - fetchcmd = self._buildhgcommand(ud, d, "fetch") - logger.info("Fetch " + ud.url) - # check out sources there - bb.utils.mkdirhier(ud.pkgdir) - logger.debug(1, "Running %s", fetchcmd) - bb.fetch2.check_network_access(d, fetchcmd, ud.url) - runfetchcmd(fetchcmd, d, workdir=ud.pkgdir) - - # Even when we clone (fetch), we still need to update as hg's clone - # won't checkout the specified revision if its on a branch - updatecmd = self._buildhgcommand(ud, d, "update") - logger.debug(1, "Running %s", updatecmd) - runfetchcmd(updatecmd, d, workdir=ud.moddir) - - def clean(self, ud, d): - """ Clean the hg dir """ - - bb.utils.remove(ud.localpath, True) - bb.utils.remove(ud.fullmirror) - bb.utils.remove(ud.fullmirror + ".done") - - def supports_srcrev(self): - return True - - def _latest_revision(self, ud, d, name): - """ - Compute tip revision for the url - """ - bb.fetch2.check_network_access(d, self._buildhgcommand(ud, d, "info"), ud.url) - output = runfetchcmd(self._buildhgcommand(ud, d, "info"), d) - return output.strip() - - def _build_revision(self, ud, d, name): - return ud.revision - - def _revision_key(self, ud, d, name): - """ - Return a unique key for the url - """ - return "hg:" + ud.moddir - - def build_mirror_data(self, ud, d): - # Generate a mirror tarball if needed - if ud.write_tarballs == "1" and not os.path.exists(ud.fullmirror): - # it's possible that this symlink points to read-only filesystem with PREMIRROR - if os.path.islink(ud.fullmirror): - os.unlink(ud.fullmirror) - - logger.info("Creating tarball of hg repository") - runfetchcmd("tar -czf %s %s" % (ud.fullmirror, ud.module), d, workdir=ud.pkgdir) - runfetchcmd("touch %s.done" % (ud.fullmirror), d, workdir=ud.pkgdir) - - def localpath(self, ud, d): - return ud.pkgdir - - def unpack(self, ud, destdir, d): - """ - Make a local clone or export for the url - """ - - revflag = "-r %s" % ud.revision - subdir = ud.parm.get("destsuffix", ud.module) - codir = "%s/%s" % (destdir, subdir) - - scmdata = ud.parm.get("scmdata", "") - if scmdata != "nokeep": - if not os.access(os.path.join(codir, '.hg'), os.R_OK): - logger.debug(2, "Unpack: creating new hg repository in '" + codir + "'") - runfetchcmd("%s init %s" % (ud.basecmd, codir), d) - logger.debug(2, "Unpack: updating source in '" + codir + "'") - runfetchcmd("%s pull %s" % (ud.basecmd, ud.moddir), d, workdir=codir) - runfetchcmd("%s up -C %s" % (ud.basecmd, revflag), d, workdir=codir) - else: - logger.debug(2, "Unpack: extracting source to '" + codir + "'") - runfetchcmd("%s archive -t files %s %s" % (ud.basecmd, revflag, codir), d, workdir=ud.moddir) diff --git a/poky/bitbake/lib/bb/fetch2/local.py b/poky/bitbake/lib/bb/fetch2/local.py deleted file mode 100644 index a114ac1..0000000 --- a/poky/bitbake/lib/bb/fetch2/local.py +++ /dev/null @@ -1,119 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' implementations - -Classes for obtaining upstream sources for the -BitBake build tools. - -""" - -# Copyright (C) 2003, 2004 Chris Larson -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -import os -import urllib.request, urllib.parse, urllib.error -import bb -import bb.utils -from bb.fetch2 import FetchMethod, FetchError -from bb.fetch2 import logger - -class Local(FetchMethod): - def supports(self, urldata, d): - """ - Check to see if a given url represents a local fetch. - """ - return urldata.type in ['file'] - - def urldata_init(self, ud, d): - # We don't set localfile as for this fetcher the file is already local! - ud.decodedurl = urllib.parse.unquote(ud.url.split("://")[1].split(";")[0]) - ud.basename = os.path.basename(ud.decodedurl) - ud.basepath = ud.decodedurl - ud.needdonestamp = False - return - - def localpath(self, urldata, d): - """ - Return the local filename of a given url assuming a successful fetch. - """ - return self.localpaths(urldata, d)[-1] - - def localpaths(self, urldata, d): - """ - Return the local filename of a given url assuming a successful fetch. - """ - searched = [] - path = urldata.decodedurl - newpath = path - if path[0] == "/": - return [path] - filespath = d.getVar('FILESPATH') - if filespath: - logger.debug(2, "Searching for %s in paths:\n %s" % (path, "\n ".join(filespath.split(":")))) - newpath, hist = bb.utils.which(filespath, path, history=True) - searched.extend(hist) - if (not newpath or not os.path.exists(newpath)) and path.find("*") != -1: - # For expressions using '*', best we can do is take the first directory in FILESPATH that exists - newpath, hist = bb.utils.which(filespath, ".", history=True) - searched.extend(hist) - logger.debug(2, "Searching for %s in path: %s" % (path, newpath)) - return searched - if not os.path.exists(newpath): - dldirfile = os.path.join(d.getVar("DL_DIR"), path) - logger.debug(2, "Defaulting to %s for %s" % (dldirfile, path)) - bb.utils.mkdirhier(os.path.dirname(dldirfile)) - searched.append(dldirfile) - return searched - return searched - - def need_update(self, ud, d): - if ud.url.find("*") != -1: - return False - if os.path.exists(ud.localpath): - return False - return True - - def download(self, urldata, d): - """Fetch urls (no-op for Local method)""" - # no need to fetch local files, we'll deal with them in place. - if self.supports_checksum(urldata) and not os.path.exists(urldata.localpath): - locations = [] - filespath = d.getVar('FILESPATH') - if filespath: - locations = filespath.split(":") - locations.append(d.getVar("DL_DIR")) - - msg = "Unable to find file " + urldata.url + " anywhere. The paths that were searched were:\n " + "\n ".join(locations) - raise FetchError(msg) - - return True - - def checkstatus(self, fetch, urldata, d): - """ - Check the status of the url - """ - if urldata.localpath.find("*") != -1: - logger.info("URL %s looks like a glob and was therefore not checked.", urldata.url) - return True - if os.path.exists(urldata.localpath): - return True - return False - - def clean(self, urldata, d): - return - diff --git a/poky/bitbake/lib/bb/fetch2/npm.py b/poky/bitbake/lib/bb/fetch2/npm.py deleted file mode 100644 index b5f148c..0000000 --- a/poky/bitbake/lib/bb/fetch2/npm.py +++ /dev/null @@ -1,307 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' NPM implementation - -The NPM fetcher is used to retrieve files from the npmjs repository - -Usage in the recipe: - - SRC_URI = "npm://registry.npmjs.org/;name=${PN};version=${PV}" - Suported SRC_URI options are: - - - name - - version - - npm://registry.npmjs.org/${PN}/-/${PN}-${PV}.tgz would become npm://registry.npmjs.org;name=${PN};version=${PV} - The fetcher all triggers off the existence of ud.localpath. If that exists and has the ".done" stamp, its assumed the fetch is good/done - -""" - -import os -import sys -import urllib.request, urllib.parse, urllib.error -import json -import subprocess -import signal -import bb -from bb.fetch2 import FetchMethod -from bb.fetch2 import FetchError -from bb.fetch2 import ChecksumError -from bb.fetch2 import runfetchcmd -from bb.fetch2 import logger -from bb.fetch2 import UnpackError -from bb.fetch2 import ParameterError -from distutils import spawn - -def subprocess_setup(): - # Python installs a SIGPIPE handler by default. This is usually not what - # non-Python subprocesses expect. - # SIGPIPE errors are known issues with gzip/bash - signal.signal(signal.SIGPIPE, signal.SIG_DFL) - -class Npm(FetchMethod): - - """Class to fetch urls via 'npm'""" - def init(self, d): - pass - - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with npm - """ - return ud.type in ['npm'] - - def debug(self, msg): - logger.debug(1, "NpmFetch: %s", msg) - - def clean(self, ud, d): - logger.debug(2, "Calling cleanup %s" % ud.pkgname) - bb.utils.remove(ud.localpath, False) - bb.utils.remove(ud.pkgdatadir, True) - bb.utils.remove(ud.fullmirror, False) - - def urldata_init(self, ud, d): - """ - init NPM specific variable within url data - """ - if 'downloadfilename' in ud.parm: - ud.basename = ud.parm['downloadfilename'] - else: - ud.basename = os.path.basename(ud.path) - - # can't call it ud.name otherwise fetcher base class will start doing sha1stuff - # TODO: find a way to get an sha1/sha256 manifest of pkg & all deps - ud.pkgname = ud.parm.get("name", None) - if not ud.pkgname: - raise ParameterError("NPM fetcher requires a name parameter", ud.url) - ud.version = ud.parm.get("version", None) - if not ud.version: - raise ParameterError("NPM fetcher requires a version parameter", ud.url) - ud.bbnpmmanifest = "%s-%s.deps.json" % (ud.pkgname, ud.version) - ud.bbnpmmanifest = ud.bbnpmmanifest.replace('/', '-') - ud.registry = "http://%s" % (ud.url.replace('npm://', '', 1).split(';'))[0] - prefixdir = "npm/%s" % ud.pkgname - ud.pkgdatadir = d.expand("${DL_DIR}/%s" % prefixdir) - if not os.path.exists(ud.pkgdatadir): - bb.utils.mkdirhier(ud.pkgdatadir) - ud.localpath = d.expand("${DL_DIR}/npm/%s" % ud.bbnpmmanifest) - - self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -O -t 2 -T 30 -nv --passive-ftp --no-check-certificate " - ud.prefixdir = prefixdir - - ud.write_tarballs = ((d.getVar("BB_GENERATE_MIRROR_TARBALLS") or "0") != "0") - mirrortarball = 'npm_%s-%s.tar.xz' % (ud.pkgname, ud.version) - mirrortarball = mirrortarball.replace('/', '-') - ud.fullmirror = os.path.join(d.getVar("DL_DIR"), mirrortarball) - ud.mirrortarballs = [mirrortarball] - - def need_update(self, ud, d): - if os.path.exists(ud.localpath): - return False - return True - - def _runwget(self, ud, d, command, quiet): - logger.debug(2, "Fetching %s using command '%s'" % (ud.url, command)) - bb.fetch2.check_network_access(d, command, ud.url) - dldir = d.getVar("DL_DIR") - runfetchcmd(command, d, quiet, workdir=dldir) - - def _unpackdep(self, ud, pkg, data, destdir, dldir, d): - file = data[pkg]['tgz'] - logger.debug(2, "file to extract is %s" % file) - if file.endswith('.tgz') or file.endswith('.tar.gz') or file.endswith('.tar.Z'): - cmd = 'tar xz --strip 1 --no-same-owner --warning=no-unknown-keyword -f %s/%s' % (dldir, file) - else: - bb.fatal("NPM package %s downloaded not a tarball!" % file) - - # Change to subdir before executing command - if not os.path.exists(destdir): - os.makedirs(destdir) - path = d.getVar('PATH') - if path: - cmd = "PATH=\"%s\" %s" % (path, cmd) - bb.note("Unpacking %s to %s/" % (file, destdir)) - ret = subprocess.call(cmd, preexec_fn=subprocess_setup, shell=True, cwd=destdir) - - if ret != 0: - raise UnpackError("Unpack command %s failed with return value %s" % (cmd, ret), ud.url) - - if 'deps' not in data[pkg]: - return - for dep in data[pkg]['deps']: - self._unpackdep(ud, dep, data[pkg]['deps'], "%s/node_modules/%s" % (destdir, dep), dldir, d) - - - def unpack(self, ud, destdir, d): - dldir = d.getVar("DL_DIR") - with open("%s/npm/%s" % (dldir, ud.bbnpmmanifest)) as datafile: - workobj = json.load(datafile) - dldir = "%s/%s" % (os.path.dirname(ud.localpath), ud.pkgname) - - if 'subdir' in ud.parm: - unpackdir = '%s/%s' % (destdir, ud.parm.get('subdir')) - else: - unpackdir = '%s/npmpkg' % destdir - - self._unpackdep(ud, ud.pkgname, workobj, unpackdir, dldir, d) - - def _parse_view(self, output): - ''' - Parse the output of npm view --json; the last JSON result - is assumed to be the one that we're interested in. - ''' - pdata = None - outdeps = {} - datalines = [] - bracelevel = 0 - for line in output.splitlines(): - if bracelevel: - datalines.append(line) - elif '{' in line: - datalines = [] - datalines.append(line) - bracelevel = bracelevel + line.count('{') - line.count('}') - if datalines: - pdata = json.loads('\n'.join(datalines)) - return pdata - - def _getdependencies(self, pkg, data, version, d, ud, optional=False, fetchedlist=None): - if fetchedlist is None: - fetchedlist = [] - pkgfullname = pkg - if version != '*' and not '/' in version: - pkgfullname += "@'%s'" % version - logger.debug(2, "Calling getdeps on %s" % pkg) - fetchcmd = "npm view %s --json --registry %s" % (pkgfullname, ud.registry) - output = runfetchcmd(fetchcmd, d, True) - pdata = self._parse_view(output) - if not pdata: - raise FetchError("The command '%s' returned no output" % fetchcmd) - if optional: - pkg_os = pdata.get('os', None) - if pkg_os: - if not isinstance(pkg_os, list): - pkg_os = [pkg_os] - blacklist = False - for item in pkg_os: - if item.startswith('!'): - blacklist = True - break - if (not blacklist and 'linux' not in pkg_os) or '!linux' in pkg_os: - logger.debug(2, "Skipping %s since it's incompatible with Linux" % pkg) - return - #logger.debug(2, "Output URL is %s - %s - %s" % (ud.basepath, ud.basename, ud.localfile)) - outputurl = pdata['dist']['tarball'] - data[pkg] = {} - data[pkg]['tgz'] = os.path.basename(outputurl) - if not outputurl in fetchedlist: - self._runwget(ud, d, "%s --directory-prefix=%s %s" % (self.basecmd, ud.prefixdir, outputurl), False) - fetchedlist.append(outputurl) - - dependencies = pdata.get('dependencies', {}) - optionalDependencies = pdata.get('optionalDependencies', {}) - dependencies.update(optionalDependencies) - depsfound = {} - optdepsfound = {} - data[pkg]['deps'] = {} - for dep in dependencies: - if dep in optionalDependencies: - optdepsfound[dep] = dependencies[dep] - else: - depsfound[dep] = dependencies[dep] - for dep, version in optdepsfound.items(): - self._getdependencies(dep, data[pkg]['deps'], version, d, ud, optional=True, fetchedlist=fetchedlist) - for dep, version in depsfound.items(): - self._getdependencies(dep, data[pkg]['deps'], version, d, ud, fetchedlist=fetchedlist) - - def _getshrinkeddependencies(self, pkg, data, version, d, ud, lockdown, manifest, toplevel=True): - logger.debug(2, "NPM shrinkwrap file is %s" % data) - if toplevel: - name = data.get('name', None) - if name and name != pkg: - for obj in data.get('dependencies', []): - if obj == pkg: - self._getshrinkeddependencies(obj, data['dependencies'][obj], data['dependencies'][obj]['version'], d, ud, lockdown, manifest, False) - return - outputurl = "invalid" - if ('resolved' not in data) or (not data['resolved'].startswith('http')): - # will be the case for ${PN} - fetchcmd = "npm view %s@%s dist.tarball --registry %s" % (pkg, version, ud.registry) - logger.debug(2, "Found this matching URL: %s" % str(fetchcmd)) - outputurl = runfetchcmd(fetchcmd, d, True) - else: - outputurl = data['resolved'] - self._runwget(ud, d, "%s --directory-prefix=%s %s" % (self.basecmd, ud.prefixdir, outputurl), False) - manifest[pkg] = {} - manifest[pkg]['tgz'] = os.path.basename(outputurl).rstrip() - manifest[pkg]['deps'] = {} - - if pkg in lockdown: - sha1_expected = lockdown[pkg][version] - sha1_data = bb.utils.sha1_file("npm/%s/%s" % (ud.pkgname, manifest[pkg]['tgz'])) - if sha1_expected != sha1_data: - msg = "\nFile: '%s' has %s checksum %s when %s was expected" % (manifest[pkg]['tgz'], 'sha1', sha1_data, sha1_expected) - raise ChecksumError('Checksum mismatch!%s' % msg) - else: - logger.debug(2, "No lockdown data for %s@%s" % (pkg, version)) - - if 'dependencies' in data: - for obj in data['dependencies']: - logger.debug(2, "Found dep is %s" % str(obj)) - self._getshrinkeddependencies(obj, data['dependencies'][obj], data['dependencies'][obj]['version'], d, ud, lockdown, manifest[pkg]['deps'], False) - - def download(self, ud, d): - """Fetch url""" - jsondepobj = {} - shrinkobj = {} - lockdown = {} - - if not os.listdir(ud.pkgdatadir) and os.path.exists(ud.fullmirror): - dest = d.getVar("DL_DIR") - bb.utils.mkdirhier(dest) - runfetchcmd("tar -xJf %s" % (ud.fullmirror), d, workdir=dest) - return - - if ud.parm.get("noverify", None) != '1': - shwrf = d.getVar('NPM_SHRINKWRAP') - logger.debug(2, "NPM shrinkwrap file is %s" % shwrf) - if shwrf: - try: - with open(shwrf) as datafile: - shrinkobj = json.load(datafile) - except Exception as e: - raise FetchError('Error loading NPM_SHRINKWRAP file "%s" for %s: %s' % (shwrf, ud.pkgname, str(e))) - elif not ud.ignore_checksums: - logger.warning('Missing shrinkwrap file in NPM_SHRINKWRAP for %s, this will lead to unreliable builds!' % ud.pkgname) - lckdf = d.getVar('NPM_LOCKDOWN') - logger.debug(2, "NPM lockdown file is %s" % lckdf) - if lckdf: - try: - with open(lckdf) as datafile: - lockdown = json.load(datafile) - except Exception as e: - raise FetchError('Error loading NPM_LOCKDOWN file "%s" for %s: %s' % (lckdf, ud.pkgname, str(e))) - elif not ud.ignore_checksums: - logger.warning('Missing lockdown file in NPM_LOCKDOWN for %s, this will lead to unreproducible builds!' % ud.pkgname) - - if ('name' not in shrinkobj): - self._getdependencies(ud.pkgname, jsondepobj, ud.version, d, ud) - else: - self._getshrinkeddependencies(ud.pkgname, shrinkobj, ud.version, d, ud, lockdown, jsondepobj) - - with open(ud.localpath, 'w') as outfile: - json.dump(jsondepobj, outfile) - - def build_mirror_data(self, ud, d): - # Generate a mirror tarball if needed - if ud.write_tarballs and not os.path.exists(ud.fullmirror): - # it's possible that this symlink points to read-only filesystem with PREMIRROR - if os.path.islink(ud.fullmirror): - os.unlink(ud.fullmirror) - - dldir = d.getVar("DL_DIR") - logger.info("Creating tarball of npm data") - runfetchcmd("tar -cJf %s npm/%s npm/%s" % (ud.fullmirror, ud.bbnpmmanifest, ud.pkgname), d, - workdir=dldir) - runfetchcmd("touch %s.done" % (ud.fullmirror), d, workdir=dldir) diff --git a/poky/bitbake/lib/bb/fetch2/osc.py b/poky/bitbake/lib/bb/fetch2/osc.py deleted file mode 100644 index 2b4f7d9..0000000 --- a/poky/bitbake/lib/bb/fetch2/osc.py +++ /dev/null @@ -1,132 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -Bitbake "Fetch" implementation for osc (Opensuse build service client). -Based on the svn "Fetch" implementation. - -""" - -import os -import sys -import logging -import bb -from bb.fetch2 import FetchMethod -from bb.fetch2 import FetchError -from bb.fetch2 import MissingParameterError -from bb.fetch2 import runfetchcmd - -class Osc(FetchMethod): - """Class to fetch a module or modules from Opensuse build server - repositories.""" - - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with osc. - """ - return ud.type in ['osc'] - - def urldata_init(self, ud, d): - if not "module" in ud.parm: - raise MissingParameterError('module', ud.url) - - ud.module = ud.parm["module"] - - # Create paths to osc checkouts - relpath = self._strip_leading_slashes(ud.path) - ud.pkgdir = os.path.join(d.getVar('OSCDIR'), ud.host) - ud.moddir = os.path.join(ud.pkgdir, relpath, ud.module) - - if 'rev' in ud.parm: - ud.revision = ud.parm['rev'] - else: - pv = d.getVar("PV", False) - rev = bb.fetch2.srcrev_internal_helper(ud, d) - if rev and rev != True: - ud.revision = rev - else: - ud.revision = "" - - ud.localfile = d.expand('%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.path.replace('/', '.'), ud.revision)) - - def _buildosccommand(self, ud, d, command): - """ - Build up an ocs commandline based on ud - command is "fetch", "update", "info" - """ - - basecmd = d.expand('${FETCHCMD_osc}') - - proto = ud.parm.get('protocol', 'ocs') - - options = [] - - config = "-c %s" % self.generate_config(ud, d) - - if ud.revision: - options.append("-r %s" % ud.revision) - - coroot = self._strip_leading_slashes(ud.path) - - if command == "fetch": - osccmd = "%s %s co %s/%s %s" % (basecmd, config, coroot, ud.module, " ".join(options)) - elif command == "update": - osccmd = "%s %s up %s" % (basecmd, config, " ".join(options)) - else: - raise FetchError("Invalid osc command %s" % command, ud.url) - - return osccmd - - def download(self, ud, d): - """ - Fetch url - """ - - logger.debug(2, "Fetch: checking for module directory '" + ud.moddir + "'") - - if os.access(os.path.join(d.getVar('OSCDIR'), ud.path, ud.module), os.R_OK): - oscupdatecmd = self._buildosccommand(ud, d, "update") - logger.info("Update "+ ud.url) - # update sources there - logger.debug(1, "Running %s", oscupdatecmd) - bb.fetch2.check_network_access(d, oscupdatecmd, ud.url) - runfetchcmd(oscupdatecmd, d, workdir=ud.moddir) - else: - oscfetchcmd = self._buildosccommand(ud, d, "fetch") - logger.info("Fetch " + ud.url) - # check out sources there - bb.utils.mkdirhier(ud.pkgdir) - logger.debug(1, "Running %s", oscfetchcmd) - bb.fetch2.check_network_access(d, oscfetchcmd, ud.url) - runfetchcmd(oscfetchcmd, d, workdir=ud.pkgdir) - - # tar them up to a defined filename - runfetchcmd("tar -czf %s %s" % (ud.localpath, ud.module), d, - cleanup=[ud.localpath], workdir=os.path.join(ud.pkgdir + ud.path)) - - def supports_srcrev(self): - return False - - def generate_config(self, ud, d): - """ - Generate a .oscrc to be used for this run. - """ - - config_path = os.path.join(d.getVar('OSCDIR'), "oscrc") - if (os.path.exists(config_path)): - os.remove(config_path) - - f = open(config_path, 'w') - f.write("[general]\n") - f.write("apisrv = %s\n" % ud.host) - f.write("scheme = http\n") - f.write("su-wrapper = su -c\n") - f.write("build-root = %s\n" % d.getVar('WORKDIR')) - f.write("urllist = %s\n" % d.getVar("OSCURLLIST")) - f.write("extra-pkgs = gzip\n") - f.write("\n") - f.write("[%s]\n" % ud.host) - f.write("user = %s\n" % ud.parm["user"]) - f.write("pass = %s\n" % ud.parm["pswd"]) - f.close() - - return config_path diff --git a/poky/bitbake/lib/bb/fetch2/perforce.py b/poky/bitbake/lib/bb/fetch2/perforce.py deleted file mode 100644 index 3debad5..0000000 --- a/poky/bitbake/lib/bb/fetch2/perforce.py +++ /dev/null @@ -1,209 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' implementation for perforce - -""" - -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2016 Kodak Alaris, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -import os -import logging -import bb -from bb.fetch2 import FetchMethod -from bb.fetch2 import FetchError -from bb.fetch2 import logger -from bb.fetch2 import runfetchcmd - -class Perforce(FetchMethod): - """ Class to fetch from perforce repositories """ - def supports(self, ud, d): - """ Check to see if a given url can be fetched with perforce. """ - return ud.type in ['p4'] - - def urldata_init(self, ud, d): - """ - Initialize perforce specific variables within url data. If P4CONFIG is - provided by the env, use it. If P4PORT is specified by the recipe, use - its values, which may override the settings in P4CONFIG. - """ - ud.basecmd = d.getVar('FETCHCMD_p4') - if not ud.basecmd: - ud.basecmd = "/usr/bin/env p4" - - ud.dldir = d.getVar('P4DIR') - if not ud.dldir: - ud.dldir = '%s/%s' % (d.getVar('DL_DIR'), 'p4') - - path = ud.url.split('://')[1] - path = path.split(';')[0] - delim = path.find('@'); - if delim != -1: - (ud.user, ud.pswd) = path.split('@')[0].split(':') - ud.path = path.split('@')[1] - else: - ud.path = path - - ud.usingp4config = False - p4port = d.getVar('P4PORT') - - if p4port: - logger.debug(1, 'Using recipe provided P4PORT: %s' % p4port) - ud.host = p4port - else: - logger.debug(1, 'Trying to use P4CONFIG to automatically set P4PORT...') - ud.usingp4config = True - p4cmd = '%s info | grep "Server address"' % ud.basecmd - bb.fetch2.check_network_access(d, p4cmd, ud.url) - ud.host = runfetchcmd(p4cmd, d, True) - ud.host = ud.host.split(': ')[1].strip() - logger.debug(1, 'Determined P4PORT to be: %s' % ud.host) - if not ud.host: - raise FetchError('Could not determine P4PORT from P4CONFIG') - - if ud.path.find('/...') >= 0: - ud.pathisdir = True - else: - ud.pathisdir = False - - cleanedpath = ud.path.replace('/...', '').replace('/', '.') - cleanedhost = ud.host.replace(':', '.') - ud.pkgdir = os.path.join(ud.dldir, cleanedhost, cleanedpath) - - ud.setup_revisions(d) - - ud.localfile = d.expand('%s_%s_%s.tar.gz' % (cleanedhost, cleanedpath, ud.revision)) - - def _buildp4command(self, ud, d, command, depot_filename=None): - """ - Build a p4 commandline. Valid commands are "changes", "print", and - "files". depot_filename is the full path to the file in the depot - including the trailing '#rev' value. - """ - p4opt = "" - - if ud.user: - p4opt += ' -u "%s"' % (ud.user) - - if ud.pswd: - p4opt += ' -P "%s"' % (ud.pswd) - - if ud.host and not ud.usingp4config: - p4opt += ' -p %s' % (ud.host) - - if hasattr(ud, 'revision') and ud.revision: - pathnrev = '%s@%s' % (ud.path, ud.revision) - else: - pathnrev = '%s' % (ud.path) - - if depot_filename: - if ud.pathisdir: # Remove leading path to obtain filename - filename = depot_filename[len(ud.path)-1:] - else: - filename = depot_filename[depot_filename.rfind('/'):] - filename = filename[:filename.find('#')] # Remove trailing '#rev' - - if command == 'changes': - p4cmd = '%s%s changes -m 1 //%s' % (ud.basecmd, p4opt, pathnrev) - elif command == 'print': - if depot_filename != None: - p4cmd = '%s%s print -o "p4/%s" "%s"' % (ud.basecmd, p4opt, filename, depot_filename) - else: - raise FetchError('No depot file name provided to p4 %s' % command, ud.url) - elif command == 'files': - p4cmd = '%s%s files //%s' % (ud.basecmd, p4opt, pathnrev) - else: - raise FetchError('Invalid p4 command %s' % command, ud.url) - - return p4cmd - - def _p4listfiles(self, ud, d): - """ - Return a list of the file names which are present in the depot using the - 'p4 files' command, including trailing '#rev' file revision indicator - """ - p4cmd = self._buildp4command(ud, d, 'files') - bb.fetch2.check_network_access(d, p4cmd, ud.url) - p4fileslist = runfetchcmd(p4cmd, d, True) - p4fileslist = [f.rstrip() for f in p4fileslist.splitlines()] - - if not p4fileslist: - raise FetchError('Unable to fetch listing of p4 files from %s@%s' % (ud.host, ud.path)) - - count = 0 - filelist = [] - - for filename in p4fileslist: - item = filename.split(' - ') - lastaction = item[1].split() - logger.debug(1, 'File: %s Last Action: %s' % (item[0], lastaction[0])) - if lastaction[0] == 'delete': - continue - filelist.append(item[0]) - - return filelist - - def download(self, ud, d): - """ Get the list of files, fetch each one """ - filelist = self._p4listfiles(ud, d) - if not filelist: - raise FetchError('No files found in depot %s@%s' % (ud.host, ud.path)) - - bb.utils.remove(ud.pkgdir, True) - bb.utils.mkdirhier(ud.pkgdir) - - for afile in filelist: - p4fetchcmd = self._buildp4command(ud, d, 'print', afile) - bb.fetch2.check_network_access(d, p4fetchcmd, ud.url) - runfetchcmd(p4fetchcmd, d, workdir=ud.pkgdir) - - runfetchcmd('tar -czf %s p4' % (ud.localpath), d, cleanup=[ud.localpath], workdir=ud.pkgdir) - - def clean(self, ud, d): - """ Cleanup p4 specific files and dirs""" - bb.utils.remove(ud.localpath) - bb.utils.remove(ud.pkgdir, True) - - def supports_srcrev(self): - return True - - def _revision_key(self, ud, d, name): - """ Return a unique key for the url """ - return 'p4:%s' % ud.pkgdir - - def _latest_revision(self, ud, d, name): - """ Return the latest upstream scm revision number """ - p4cmd = self._buildp4command(ud, d, "changes") - bb.fetch2.check_network_access(d, p4cmd, ud.url) - tip = runfetchcmd(p4cmd, d, True) - - if not tip: - raise FetchError('Could not determine the latest perforce changelist') - - tipcset = tip.split(' ')[1] - logger.debug(1, 'p4 tip found to be changelist %s' % tipcset) - return tipcset - - def sortable_revision(self, ud, d, name): - """ Return a sortable revision number """ - return False, self._build_revision(ud, d) - - def _build_revision(self, ud, d): - return ud.revision - diff --git a/poky/bitbake/lib/bb/fetch2/repo.py b/poky/bitbake/lib/bb/fetch2/repo.py deleted file mode 100644 index c22d9b5..0000000 --- a/poky/bitbake/lib/bb/fetch2/repo.py +++ /dev/null @@ -1,97 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake "Fetch" repo (git) implementation - -""" - -# Copyright (C) 2009 Tom Rini <trini@embeddedalley.com> -# -# Based on git.py which is: -#Copyright (C) 2005 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os -import bb -from bb.fetch2 import FetchMethod -from bb.fetch2 import runfetchcmd -from bb.fetch2 import logger - -class Repo(FetchMethod): - """Class to fetch a module or modules from repo (git) repositories""" - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with repo. - """ - return ud.type in ["repo"] - - def urldata_init(self, ud, d): - """ - We don"t care about the git rev of the manifests repository, but - we do care about the manifest to use. The default is "default". - We also care about the branch or tag to be used. The default is - "master". - """ - - ud.proto = ud.parm.get('protocol', 'git') - ud.branch = ud.parm.get('branch', 'master') - ud.manifest = ud.parm.get('manifest', 'default.xml') - if not ud.manifest.endswith('.xml'): - ud.manifest += '.xml' - - ud.localfile = d.expand("repo_%s%s_%s_%s.tar.gz" % (ud.host, ud.path.replace("/", "."), ud.manifest, ud.branch)) - - def download(self, ud, d): - """Fetch url""" - - if os.access(os.path.join(d.getVar("DL_DIR"), ud.localfile), os.R_OK): - logger.debug(1, "%s already exists (or was stashed). Skipping repo init / sync.", ud.localpath) - return - - gitsrcname = "%s%s" % (ud.host, ud.path.replace("/", ".")) - repodir = d.getVar("REPODIR") or os.path.join(d.getVar("DL_DIR"), "repo") - codir = os.path.join(repodir, gitsrcname, ud.manifest) - - if ud.user: - username = ud.user + "@" - else: - username = "" - - repodir = os.path.join(codir, "repo") - bb.utils.mkdirhier(repodir) - if not os.path.exists(os.path.join(repodir, ".repo")): - bb.fetch2.check_network_access(d, "repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path), ud.url) - runfetchcmd("repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path), d, workdir=repodir) - - bb.fetch2.check_network_access(d, "repo sync %s" % ud.url, ud.url) - runfetchcmd("repo sync", d, workdir=repodir) - - scmdata = ud.parm.get("scmdata", "") - if scmdata == "keep": - tar_flags = "" - else: - tar_flags = "--exclude='.repo' --exclude='.git'" - - # Create a cache - runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.join(".", "*") ), d, workdir=codir) - - def supports_srcrev(self): - return False - - def _build_revision(self, ud, d): - return ud.manifest - - def _want_sortable_revision(self, ud, d): - return False diff --git a/poky/bitbake/lib/bb/fetch2/s3.py b/poky/bitbake/lib/bb/fetch2/s3.py deleted file mode 100644 index 1629288..0000000 --- a/poky/bitbake/lib/bb/fetch2/s3.py +++ /dev/null @@ -1,98 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' implementation for Amazon AWS S3. - -Class for fetching files from Amazon S3 using the AWS Command Line Interface. -The aws tool must be correctly installed and configured prior to use. - -""" - -# Copyright (C) 2017, Andre McCurdy <armccurdy@gmail.com> -# -# Based in part on bb.fetch2.wget: -# Copyright (C) 2003, 2004 Chris Larson -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -import os -import bb -import urllib.request, urllib.parse, urllib.error -from bb.fetch2 import FetchMethod -from bb.fetch2 import FetchError -from bb.fetch2 import runfetchcmd - -class S3(FetchMethod): - """Class to fetch urls via 'aws s3'""" - - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with s3. - """ - return ud.type in ['s3'] - - def recommends_checksum(self, urldata): - return True - - def urldata_init(self, ud, d): - if 'downloadfilename' in ud.parm: - ud.basename = ud.parm['downloadfilename'] - else: - ud.basename = os.path.basename(ud.path) - - ud.localfile = d.expand(urllib.parse.unquote(ud.basename)) - - ud.basecmd = d.getVar("FETCHCMD_s3") or "/usr/bin/env aws s3" - - def download(self, ud, d): - """ - Fetch urls - Assumes localpath was called first - """ - - cmd = '%s cp s3://%s%s %s' % (ud.basecmd, ud.host, ud.path, ud.localpath) - bb.fetch2.check_network_access(d, cmd, ud.url) - runfetchcmd(cmd, d) - - # Additional sanity checks copied from the wget class (although there - # are no known issues which mean these are required, treat the aws cli - # tool with a little healthy suspicion). - - if not os.path.exists(ud.localpath): - raise FetchError("The aws cp command returned success for s3://%s%s but %s doesn't exist?!" % (ud.host, ud.path, ud.localpath)) - - if os.path.getsize(ud.localpath) == 0: - os.remove(ud.localpath) - raise FetchError("The aws cp command for s3://%s%s resulted in a zero size file?! Deleting and failing since this isn't right." % (ud.host, ud.path)) - - return True - - def checkstatus(self, fetch, ud, d): - """ - Check the status of a URL - """ - - cmd = '%s ls s3://%s%s' % (ud.basecmd, ud.host, ud.path) - bb.fetch2.check_network_access(d, cmd, ud.url) - output = runfetchcmd(cmd, d) - - # "aws s3 ls s3://mybucket/foo" will exit with success even if the file - # is not found, so check output of the command to confirm success. - - if not output: - raise FetchError("The aws ls command for s3://%s%s gave empty output" % (ud.host, ud.path)) - - return True diff --git a/poky/bitbake/lib/bb/fetch2/sftp.py b/poky/bitbake/lib/bb/fetch2/sftp.py deleted file mode 100644 index 81884a6..0000000 --- a/poky/bitbake/lib/bb/fetch2/sftp.py +++ /dev/null @@ -1,125 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake SFTP Fetch implementation - -Class for fetching files via SFTP. It tries to adhere to the (now -expired) IETF Internet Draft for "Uniform Resource Identifier (URI) -Scheme for Secure File Transfer Protocol (SFTP) and Secure Shell -(SSH)" (SECSH URI). - -It uses SFTP (as to adhere to the SECSH URI specification). It only -supports key based authentication, not password. This class, unlike -the SSH fetcher, does not support fetching a directory tree from the -remote. - - http://tools.ietf.org/html/draft-ietf-secsh-scp-sftp-ssh-uri-04 - https://www.iana.org/assignments/uri-schemes/prov/sftp - https://tools.ietf.org/html/draft-ietf-secsh-filexfer-13 - -Please note that '/' is used as host path seperator, and not ":" -as you may be used to from the scp/sftp commands. You can use a -~ (tilde) to specify a path relative to your home directory. -(The /~user/ syntax, for specyfing a path relative to another -user's home directory is not supported.) Note that the tilde must -still follow the host path seperator ("/"). See exampels below. - -Example SRC_URIs: - -SRC_URI = "sftp://host.example.com/dir/path.file.txt" - -A path relative to your home directory. - -SRC_URI = "sftp://host.example.com/~/dir/path.file.txt" - -You can also specify a username (specyfing password in the -URI is not supported, use SSH keys to authenticate): - -SRC_URI = "sftp://user@host.example.com/dir/path.file.txt" - -""" - -# Copyright (C) 2013, Olof Johansson <olof.johansson@axis.com> -# -# Based in part on bb.fetch2.wget: -# Copyright (C) 2003, 2004 Chris Larson -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -import os -import bb -import urllib.request, urllib.parse, urllib.error -from bb.fetch2 import URI -from bb.fetch2 import FetchMethod -from bb.fetch2 import runfetchcmd - -class SFTP(FetchMethod): - """Class to fetch urls via 'sftp'""" - - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with sftp. - """ - return ud.type in ['sftp'] - - def recommends_checksum(self, urldata): - return True - - def urldata_init(self, ud, d): - if 'protocol' in ud.parm and ud.parm['protocol'] == 'git': - raise bb.fetch2.ParameterError( - "Invalid protocol - if you wish to fetch from a " + - "git repository using ssh, you need to use the " + - "git:// prefix with protocol=ssh", ud.url) - - if 'downloadfilename' in ud.parm: - ud.basename = ud.parm['downloadfilename'] - else: - ud.basename = os.path.basename(ud.path) - - ud.localfile = d.expand(urllib.parse.unquote(ud.basename)) - - def download(self, ud, d): - """Fetch urls""" - - urlo = URI(ud.url) - basecmd = 'sftp -oBatchMode=yes' - port = '' - if urlo.port: - port = '-P %d' % urlo.port - urlo.port = None - - dldir = d.getVar('DL_DIR') - lpath = os.path.join(dldir, ud.localfile) - - user = '' - if urlo.userinfo: - user = urlo.userinfo + '@' - - path = urlo.path - - # Supoprt URIs relative to the user's home directory, with - # the tilde syntax. (E.g. <sftp://example.com/~/foo.diff>). - if path[:3] == '/~/': - path = path[3:] - - remote = '%s%s:%s' % (user, urlo.hostname, path) - - cmd = '%s %s %s %s' % (basecmd, port, remote, lpath) - - bb.fetch2.check_network_access(d, cmd, ud.url) - runfetchcmd(cmd, d) - return True diff --git a/poky/bitbake/lib/bb/fetch2/ssh.py b/poky/bitbake/lib/bb/fetch2/ssh.py deleted file mode 100644 index 6047ee4..0000000 --- a/poky/bitbake/lib/bb/fetch2/ssh.py +++ /dev/null @@ -1,125 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -''' -BitBake 'Fetch' implementations - -This implementation is for Secure Shell (SSH), and attempts to comply with the -IETF secsh internet draft: - http://tools.ietf.org/wg/secsh/draft-ietf-secsh-scp-sftp-ssh-uri/ - - Currently does not support the sftp parameters, as this uses scp - Also does not support the 'fingerprint' connection parameter. - - Please note that '/' is used as host, path separator not ':' as you may - be used to, also '~' can be used to specify user HOME, but again after '/' - - Example SRC_URI: - SRC_URI = "ssh://user@host.example.com/dir/path/file.txt" - SRC_URI = "ssh://user@host.example.com/~/file.txt" -''' - -# Copyright (C) 2006 OpenedHand Ltd. -# -# -# Based in part on svk.py: -# Copyright (C) 2006 Holger Hans Peter Freyther -# Based on svn.py: -# Copyright (C) 2003, 2004 Chris Larson -# Based on functions from the base bb module: -# Copyright 2003 Holger Schurig -# -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import re, os -from bb.fetch2 import FetchMethod -from bb.fetch2 import FetchError -from bb.fetch2 import logger -from bb.fetch2 import runfetchcmd - - -__pattern__ = re.compile(r''' - \s* # Skip leading whitespace - ssh:// # scheme - ( # Optional username/password block - (?P<user>\S+) # username - (:(?P<pass>\S+))? # colon followed by the password (optional) - )? - (?P<cparam>(;[^;]+)*)? # connection parameters block (optional) - @ - (?P<host>\S+?) # non-greedy match of the host - (:(?P<port>[0-9]+))? # colon followed by the port (optional) - / - (?P<path>[^;]+) # path on the remote system, may be absolute or relative, - # and may include the use of '~' to reference the remote home - # directory - (?P<sparam>(;[^;]+)*)? # parameters block (optional) - $ -''', re.VERBOSE) - -class SSH(FetchMethod): - '''Class to fetch a module or modules via Secure Shell''' - - def supports(self, urldata, d): - return __pattern__.match(urldata.url) != None - - def supports_checksum(self, urldata): - return False - - def urldata_init(self, urldata, d): - if 'protocol' in urldata.parm and urldata.parm['protocol'] == 'git': - raise bb.fetch2.ParameterError( - "Invalid protocol - if you wish to fetch from a git " + - "repository using ssh, you need to use " + - "git:// prefix with protocol=ssh", urldata.url) - m = __pattern__.match(urldata.url) - path = m.group('path') - host = m.group('host') - urldata.localpath = os.path.join(d.getVar('DL_DIR'), - os.path.basename(os.path.normpath(path))) - - def download(self, urldata, d): - dldir = d.getVar('DL_DIR') - - m = __pattern__.match(urldata.url) - path = m.group('path') - host = m.group('host') - port = m.group('port') - user = m.group('user') - password = m.group('pass') - - if port: - portarg = '-P %s' % port - else: - portarg = '' - - if user: - fr = user - if password: - fr += ':%s' % password - fr += '@%s' % host - else: - fr = host - fr += ':%s' % path - - cmd = 'scp -B -r %s %s %s/' % ( - portarg, - fr, - dldir - ) - - bb.fetch2.check_network_access(d, cmd, urldata.url) - - runfetchcmd(cmd, d) - diff --git a/poky/bitbake/lib/bb/fetch2/svn.py b/poky/bitbake/lib/bb/fetch2/svn.py deleted file mode 100644 index 3f172ee..0000000 --- a/poky/bitbake/lib/bb/fetch2/svn.py +++ /dev/null @@ -1,193 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' implementation for svn. - -""" - -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2004 Marcin Juszkiewicz -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -import os -import sys -import logging -import bb -import re -from bb.fetch2 import FetchMethod -from bb.fetch2 import FetchError -from bb.fetch2 import MissingParameterError -from bb.fetch2 import runfetchcmd -from bb.fetch2 import logger - -class Svn(FetchMethod): - """Class to fetch a module or modules from svn repositories""" - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with svn. - """ - return ud.type in ['svn'] - - def urldata_init(self, ud, d): - """ - init svn specific variable within url data - """ - if not "module" in ud.parm: - raise MissingParameterError('module', ud.url) - - ud.basecmd = d.getVar('FETCHCMD_svn') - - ud.module = ud.parm["module"] - - if not "path_spec" in ud.parm: - ud.path_spec = ud.module - else: - ud.path_spec = ud.parm["path_spec"] - - # Create paths to svn checkouts - relpath = self._strip_leading_slashes(ud.path) - ud.pkgdir = os.path.join(d.expand('${SVNDIR}'), ud.host, relpath) - ud.moddir = os.path.join(ud.pkgdir, ud.module) - - ud.setup_revisions(d) - - if 'rev' in ud.parm: - ud.revision = ud.parm['rev'] - - ud.localfile = d.expand('%s_%s_%s_%s_.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision)) - - def _buildsvncommand(self, ud, d, command): - """ - Build up an svn commandline based on ud - command is "fetch", "update", "info" - """ - - proto = ud.parm.get('protocol', 'svn') - - svn_ssh = None - if proto == "svn+ssh" and "ssh" in ud.parm: - svn_ssh = ud.parm["ssh"] - - svnroot = ud.host + ud.path - - options = [] - - options.append("--no-auth-cache") - - if ud.user: - options.append("--username %s" % ud.user) - - if ud.pswd: - options.append("--password %s" % ud.pswd) - - if command == "info": - svncmd = "%s info %s %s://%s/%s/" % (ud.basecmd, " ".join(options), proto, svnroot, ud.module) - elif command == "log1": - svncmd = "%s log --limit 1 %s %s://%s/%s/" % (ud.basecmd, " ".join(options), proto, svnroot, ud.module) - else: - suffix = "" - if ud.revision: - options.append("-r %s" % ud.revision) - suffix = "@%s" % (ud.revision) - - if command == "fetch": - transportuser = ud.parm.get("transportuser", "") - svncmd = "%s co %s %s://%s%s/%s%s %s" % (ud.basecmd, " ".join(options), proto, transportuser, svnroot, ud.module, suffix, ud.path_spec) - elif command == "update": - svncmd = "%s update %s" % (ud.basecmd, " ".join(options)) - else: - raise FetchError("Invalid svn command %s" % command, ud.url) - - if svn_ssh: - svncmd = "SVN_SSH=\"%s\" %s" % (svn_ssh, svncmd) - - return svncmd - - def download(self, ud, d): - """Fetch url""" - - logger.debug(2, "Fetch: checking for module directory '" + ud.moddir + "'") - - if os.access(os.path.join(ud.moddir, '.svn'), os.R_OK): - svnupdatecmd = self._buildsvncommand(ud, d, "update") - logger.info("Update " + ud.url) - # We need to attempt to run svn upgrade first in case its an older working format - try: - runfetchcmd(ud.basecmd + " upgrade", d, workdir=ud.moddir) - except FetchError: - pass - logger.debug(1, "Running %s", svnupdatecmd) - bb.fetch2.check_network_access(d, svnupdatecmd, ud.url) - runfetchcmd(svnupdatecmd, d, workdir=ud.moddir) - else: - svnfetchcmd = self._buildsvncommand(ud, d, "fetch") - logger.info("Fetch " + ud.url) - # check out sources there - bb.utils.mkdirhier(ud.pkgdir) - logger.debug(1, "Running %s", svnfetchcmd) - bb.fetch2.check_network_access(d, svnfetchcmd, ud.url) - runfetchcmd(svnfetchcmd, d, workdir=ud.pkgdir) - - scmdata = ud.parm.get("scmdata", "") - if scmdata == "keep": - tar_flags = "" - else: - tar_flags = "--exclude='.svn'" - - # tar them up to a defined filename - runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, ud.path_spec), d, - cleanup=[ud.localpath], workdir=ud.pkgdir) - - def clean(self, ud, d): - """ Clean SVN specific files and dirs """ - - bb.utils.remove(ud.localpath) - bb.utils.remove(ud.moddir, True) - - - def supports_srcrev(self): - return True - - def _revision_key(self, ud, d, name): - """ - Return a unique key for the url - """ - return "svn:" + ud.moddir - - def _latest_revision(self, ud, d, name): - """ - Return the latest upstream revision number - """ - bb.fetch2.check_network_access(d, self._buildsvncommand(ud, d, "log1"), ud.url) - - output = runfetchcmd("LANG=C LC_ALL=C " + self._buildsvncommand(ud, d, "log1"), d, True) - - # skip the first line, as per output of svn log - # then we expect the revision on the 2nd line - revision = re.search('^r([0-9]*)', output.splitlines()[1]).group(1) - - return revision - - def sortable_revision(self, ud, d, name): - """ - Return a sortable revision number which in our case is the revision number - """ - - return False, self._build_revision(ud, d) - - def _build_revision(self, ud, d): - return ud.revision diff --git a/poky/bitbake/lib/bb/fetch2/wget.py b/poky/bitbake/lib/bb/fetch2/wget.py deleted file mode 100644 index 8f505b6..0000000 --- a/poky/bitbake/lib/bb/fetch2/wget.py +++ /dev/null @@ -1,626 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'Fetch' implementations - -Classes for obtaining upstream sources for the -BitBake build tools. - -""" - -# Copyright (C) 2003, 2004 Chris Larson -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -import re -import tempfile -import subprocess -import os -import logging -import errno -import bb -import bb.progress -import urllib.request, urllib.parse, urllib.error -from bb.fetch2 import FetchMethod -from bb.fetch2 import FetchError -from bb.fetch2 import logger -from bb.fetch2 import runfetchcmd -from bb.utils import export_proxies -from bs4 import BeautifulSoup -from bs4 import SoupStrainer - -class WgetProgressHandler(bb.progress.LineFilterProgressHandler): - """ - Extract progress information from wget output. - Note: relies on --progress=dot (with -v or without -q/-nv) being - specified on the wget command line. - """ - def __init__(self, d): - super(WgetProgressHandler, self).__init__(d) - # Send an initial progress event so the bar gets shown - self._fire_progress(0) - - def writeline(self, line): - percs = re.findall(r'(\d+)%\s+([\d.]+[A-Z])', line) - if percs: - progress = int(percs[-1][0]) - rate = percs[-1][1] + '/s' - self.update(progress, rate) - return False - return True - - -class Wget(FetchMethod): - """Class to fetch urls via 'wget'""" - def supports(self, ud, d): - """ - Check to see if a given url can be fetched with wget. - """ - return ud.type in ['http', 'https', 'ftp'] - - def recommends_checksum(self, urldata): - return True - - def urldata_init(self, ud, d): - if 'protocol' in ud.parm: - if ud.parm['protocol'] == 'git': - raise bb.fetch2.ParameterError("Invalid protocol - if you wish to fetch from a git repository using http, you need to instead use the git:// prefix with protocol=http", ud.url) - - if 'downloadfilename' in ud.parm: - ud.basename = ud.parm['downloadfilename'] - else: - ud.basename = os.path.basename(ud.path) - - ud.localfile = d.expand(urllib.parse.unquote(ud.basename)) - if not ud.localfile: - ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", ".")) - - self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate" - - def _runwget(self, ud, d, command, quiet, workdir=None): - - progresshandler = WgetProgressHandler(d) - - logger.debug(2, "Fetching %s using command '%s'" % (ud.url, command)) - bb.fetch2.check_network_access(d, command, ud.url) - runfetchcmd(command + ' --progress=dot -v', d, quiet, log=progresshandler, workdir=workdir) - - def download(self, ud, d): - """Fetch urls""" - - fetchcmd = self.basecmd - - if 'downloadfilename' in ud.parm: - dldir = d.getVar("DL_DIR") - bb.utils.mkdirhier(os.path.dirname(dldir + os.sep + ud.localfile)) - fetchcmd += " -O " + dldir + os.sep + ud.localfile - - if ud.user and ud.pswd: - fetchcmd += " --user=%s --password=%s --auth-no-challenge" % (ud.user, ud.pswd) - - uri = ud.url.split(";")[0] - if os.path.exists(ud.localpath): - # file exists, but we didnt complete it.. trying again.. - fetchcmd += d.expand(" -c -P ${DL_DIR} '%s'" % uri) - else: - fetchcmd += d.expand(" -P ${DL_DIR} '%s'" % uri) - - self._runwget(ud, d, fetchcmd, False) - - # Sanity check since wget can pretend it succeed when it didn't - # Also, this used to happen if sourceforge sent us to the mirror page - if not os.path.exists(ud.localpath): - raise FetchError("The fetch command returned success for url %s but %s doesn't exist?!" % (uri, ud.localpath), uri) - - if os.path.getsize(ud.localpath) == 0: - os.remove(ud.localpath) - raise FetchError("The fetch of %s resulted in a zero size file?! Deleting and failing since this isn't right." % (uri), uri) - - return True - - def checkstatus(self, fetch, ud, d, try_again=True): - import urllib.request, urllib.error, urllib.parse, socket, http.client - from urllib.response import addinfourl - from bb.fetch2 import FetchConnectionCache - - class HTTPConnectionCache(http.client.HTTPConnection): - if fetch.connection_cache: - def connect(self): - """Connect to the host and port specified in __init__.""" - - sock = fetch.connection_cache.get_connection(self.host, self.port) - if sock: - self.sock = sock - else: - self.sock = socket.create_connection((self.host, self.port), - self.timeout, self.source_address) - fetch.connection_cache.add_connection(self.host, self.port, self.sock) - - if self._tunnel_host: - self._tunnel() - - class CacheHTTPHandler(urllib.request.HTTPHandler): - def http_open(self, req): - return self.do_open(HTTPConnectionCache, req) - - def do_open(self, http_class, req): - """Return an addinfourl object for the request, using http_class. - - http_class must implement the HTTPConnection API from httplib. - The addinfourl return value is a file-like object. It also - has methods and attributes including: - - info(): return a mimetools.Message object for the headers - - geturl(): return the original request URL - - code: HTTP status code - """ - host = req.host - if not host: - raise urlllib2.URLError('no host given') - - h = http_class(host, timeout=req.timeout) # will parse host:port - h.set_debuglevel(self._debuglevel) - - headers = dict(req.unredirected_hdrs) - headers.update(dict((k, v) for k, v in list(req.headers.items()) - if k not in headers)) - - # We want to make an HTTP/1.1 request, but the addinfourl - # class isn't prepared to deal with a persistent connection. - # It will try to read all remaining data from the socket, - # which will block while the server waits for the next request. - # So make sure the connection gets closed after the (only) - # request. - - # Don't close connection when connection_cache is enabled, - if fetch.connection_cache is None: - headers["Connection"] = "close" - else: - headers["Connection"] = "Keep-Alive" # Works for HTTP/1.0 - - headers = dict( - (name.title(), val) for name, val in list(headers.items())) - - if req._tunnel_host: - tunnel_headers = {} - proxy_auth_hdr = "Proxy-Authorization" - if proxy_auth_hdr in headers: - tunnel_headers[proxy_auth_hdr] = headers[proxy_auth_hdr] - # Proxy-Authorization should not be sent to origin - # server. - del headers[proxy_auth_hdr] - h.set_tunnel(req._tunnel_host, headers=tunnel_headers) - - try: - h.request(req.get_method(), req.selector, req.data, headers) - except socket.error as err: # XXX what error? - # Don't close connection when cache is enabled. - # Instead, try to detect connections that are no longer - # usable (for example, closed unexpectedly) and remove - # them from the cache. - if fetch.connection_cache is None: - h.close() - elif isinstance(err, OSError) and err.errno == errno.EBADF: - # This happens when the server closes the connection despite the Keep-Alive. - # Apparently urllib then uses the file descriptor, expecting it to be - # connected, when in reality the connection is already gone. - # We let the request fail and expect it to be - # tried once more ("try_again" in check_status()), - # with the dead connection removed from the cache. - # If it still fails, we give up, which can happend for bad - # HTTP proxy settings. - fetch.connection_cache.remove_connection(h.host, h.port) - raise urllib.error.URLError(err) - else: - try: - r = h.getresponse(buffering=True) - except TypeError: # buffering kw not supported - r = h.getresponse() - - # Pick apart the HTTPResponse object to get the addinfourl - # object initialized properly. - - # Wrap the HTTPResponse object in socket's file object adapter - # for Windows. That adapter calls recv(), so delegate recv() - # to read(). This weird wrapping allows the returned object to - # have readline() and readlines() methods. - - # XXX It might be better to extract the read buffering code - # out of socket._fileobject() and into a base class. - r.recv = r.read - - # no data, just have to read - r.read() - class fp_dummy(object): - def read(self): - return "" - def readline(self): - return "" - def close(self): - pass - closed = False - - resp = addinfourl(fp_dummy(), r.msg, req.get_full_url()) - resp.code = r.status - resp.msg = r.reason - - # Close connection when server request it. - if fetch.connection_cache is not None: - if 'Connection' in r.msg and r.msg['Connection'] == 'close': - fetch.connection_cache.remove_connection(h.host, h.port) - - return resp - - class HTTPMethodFallback(urllib.request.BaseHandler): - """ - Fallback to GET if HEAD is not allowed (405 HTTP error) - """ - def http_error_405(self, req, fp, code, msg, headers): - fp.read() - fp.close() - - newheaders = dict((k,v) for k,v in list(req.headers.items()) - if k.lower() not in ("content-length", "content-type")) - return self.parent.open(urllib.request.Request(req.get_full_url(), - headers=newheaders, - origin_req_host=req.origin_req_host, - unverifiable=True)) - - """ - Some servers (e.g. GitHub archives, hosted on Amazon S3) return 403 - Forbidden when they actually mean 405 Method Not Allowed. - """ - http_error_403 = http_error_405 - - - class FixedHTTPRedirectHandler(urllib.request.HTTPRedirectHandler): - """ - urllib2.HTTPRedirectHandler resets the method to GET on redirect, - when we want to follow redirects using the original method. - """ - def redirect_request(self, req, fp, code, msg, headers, newurl): - newreq = urllib.request.HTTPRedirectHandler.redirect_request(self, req, fp, code, msg, headers, newurl) - newreq.get_method = lambda: req.get_method() - return newreq - exported_proxies = export_proxies(d) - - handlers = [FixedHTTPRedirectHandler, HTTPMethodFallback] - if export_proxies: - handlers.append(urllib.request.ProxyHandler()) - handlers.append(CacheHTTPHandler()) - # XXX: Since Python 2.7.9 ssl cert validation is enabled by default - # see PEP-0476, this causes verification errors on some https servers - # so disable by default. - import ssl - if hasattr(ssl, '_create_unverified_context'): - handlers.append(urllib.request.HTTPSHandler(context=ssl._create_unverified_context())) - opener = urllib.request.build_opener(*handlers) - - try: - uri = ud.url.split(";")[0] - r = urllib.request.Request(uri) - r.get_method = lambda: "HEAD" - # Some servers (FusionForge, as used on Alioth) require that the - # optional Accept header is set. - r.add_header("Accept", "*/*") - def add_basic_auth(login_str, request): - '''Adds Basic auth to http request, pass in login:password as string''' - import base64 - encodeuser = base64.b64encode(login_str.encode('utf-8')).decode("utf-8") - authheader = "Basic %s" % encodeuser - r.add_header("Authorization", authheader) - - if ud.user: - add_basic_auth(ud.user, r) - - try: - import netrc, urllib.parse - n = netrc.netrc() - login, unused, password = n.authenticators(urllib.parse.urlparse(uri).hostname) - add_basic_auth("%s:%s" % (login, password), r) - except (TypeError, ImportError, IOError, netrc.NetrcParseError): - pass - - with opener.open(r) as response: - pass - except urllib.error.URLError as e: - if try_again: - logger.debug(2, "checkstatus: trying again") - return self.checkstatus(fetch, ud, d, False) - else: - # debug for now to avoid spamming the logs in e.g. remote sstate searches - logger.debug(2, "checkstatus() urlopen failed: %s" % e) - return False - return True - - def _parse_path(self, regex, s): - """ - Find and group name, version and archive type in the given string s - """ - - m = regex.search(s) - if m: - pname = '' - pver = '' - ptype = '' - - mdict = m.groupdict() - if 'name' in mdict.keys(): - pname = mdict['name'] - if 'pver' in mdict.keys(): - pver = mdict['pver'] - if 'type' in mdict.keys(): - ptype = mdict['type'] - - bb.debug(3, "_parse_path: %s, %s, %s" % (pname, pver, ptype)) - - return (pname, pver, ptype) - - return None - - def _modelate_version(self, version): - if version[0] in ['.', '-']: - if version[1].isdigit(): - version = version[1] + version[0] + version[2:len(version)] - else: - version = version[1:len(version)] - - version = re.sub('-', '.', version) - version = re.sub('_', '.', version) - version = re.sub('(rc)+', '.1000.', version) - version = re.sub('(beta)+', '.100.', version) - version = re.sub('(alpha)+', '.10.', version) - if version[0] == 'v': - version = version[1:len(version)] - return version - - def _vercmp(self, old, new): - """ - Check whether 'new' is newer than 'old' version. We use existing vercmp() for the - purpose. PE is cleared in comparison as it's not for build, and PR is cleared too - for simplicity as it's somehow difficult to get from various upstream format - """ - - (oldpn, oldpv, oldsuffix) = old - (newpn, newpv, newsuffix) = new - - """ - Check for a new suffix type that we have never heard of before - """ - if (newsuffix): - m = self.suffix_regex_comp.search(newsuffix) - if not m: - bb.warn("%s has a possible unknown suffix: %s" % (newpn, newsuffix)) - return False - - """ - Not our package so ignore it - """ - if oldpn != newpn: - return False - - oldpv = self._modelate_version(oldpv) - newpv = self._modelate_version(newpv) - - return bb.utils.vercmp(("0", oldpv, ""), ("0", newpv, "")) - - def _fetch_index(self, uri, ud, d): - """ - Run fetch checkstatus to get directory information - """ - f = tempfile.NamedTemporaryFile() - with tempfile.TemporaryDirectory(prefix="wget-index-") as workdir, tempfile.NamedTemporaryFile(dir=workdir, prefix="wget-listing-") as f: - agent = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/9.10 (karmic) Firefox/3.6.12" - fetchcmd = self.basecmd - fetchcmd += " -O " + f.name + " --user-agent='" + agent + "' '" + uri + "'" - try: - self._runwget(ud, d, fetchcmd, True, workdir=workdir) - fetchresult = f.read() - except bb.fetch2.BBFetchException: - fetchresult = "" - - return fetchresult - - def _check_latest_version(self, url, package, package_regex, current_version, ud, d): - """ - Return the latest version of a package inside a given directory path - If error or no version, return "" - """ - valid = 0 - version = ['', '', ''] - - bb.debug(3, "VersionURL: %s" % (url)) - soup = BeautifulSoup(self._fetch_index(url, ud, d), "html.parser", parse_only=SoupStrainer("a")) - if not soup: - bb.debug(3, "*** %s NO SOUP" % (url)) - return "" - - for line in soup.find_all('a', href=True): - bb.debug(3, "line['href'] = '%s'" % (line['href'])) - bb.debug(3, "line = '%s'" % (str(line))) - - newver = self._parse_path(package_regex, line['href']) - if not newver: - newver = self._parse_path(package_regex, str(line)) - - if newver: - bb.debug(3, "Upstream version found: %s" % newver[1]) - if valid == 0: - version = newver - valid = 1 - elif self._vercmp(version, newver) < 0: - version = newver - - pupver = re.sub('_', '.', version[1]) - - bb.debug(3, "*** %s -> UpstreamVersion = %s (CurrentVersion = %s)" % - (package, pupver or "N/A", current_version[1])) - - if valid: - return pupver - - return "" - - def _check_latest_version_by_dir(self, dirver, package, package_regex, - current_version, ud, d): - """ - Scan every directory in order to get upstream version. - """ - version_dir = ['', '', ''] - version = ['', '', ''] - - dirver_regex = re.compile("(?P<pfx>\D*)(?P<ver>(\d+[\.\-_])+(\d+))") - s = dirver_regex.search(dirver) - if s: - version_dir[1] = s.group('ver') - else: - version_dir[1] = dirver - - dirs_uri = bb.fetch.encodeurl([ud.type, ud.host, - ud.path.split(dirver)[0], ud.user, ud.pswd, {}]) - bb.debug(3, "DirURL: %s, %s" % (dirs_uri, package)) - - soup = BeautifulSoup(self._fetch_index(dirs_uri, ud, d), "html.parser", parse_only=SoupStrainer("a")) - if not soup: - return version[1] - - for line in soup.find_all('a', href=True): - s = dirver_regex.search(line['href'].strip("/")) - if s: - sver = s.group('ver') - - # When prefix is part of the version directory it need to - # ensure that only version directory is used so remove previous - # directories if exists. - # - # Example: pfx = '/dir1/dir2/v' and version = '2.5' the expected - # result is v2.5. - spfx = s.group('pfx').split('/')[-1] - - version_dir_new = ['', sver, ''] - if self._vercmp(version_dir, version_dir_new) <= 0: - dirver_new = spfx + sver - path = ud.path.replace(dirver, dirver_new, True) \ - .split(package)[0] - uri = bb.fetch.encodeurl([ud.type, ud.host, path, - ud.user, ud.pswd, {}]) - - pupver = self._check_latest_version(uri, - package, package_regex, current_version, ud, d) - if pupver: - version[1] = pupver - - version_dir = version_dir_new - - return version[1] - - def _init_regexes(self, package, ud, d): - """ - Match as many patterns as possible such as: - gnome-common-2.20.0.tar.gz (most common format) - gtk+-2.90.1.tar.gz - xf86-input-synaptics-12.6.9.tar.gz - dri2proto-2.3.tar.gz - blktool_4.orig.tar.gz - libid3tag-0.15.1b.tar.gz - unzip552.tar.gz - icu4c-3_6-src.tgz - genext2fs_1.3.orig.tar.gz - gst-fluendo-mp3 - """ - # match most patterns which uses "-" as separator to version digits - pn_prefix1 = "[a-zA-Z][a-zA-Z0-9]*([-_][a-zA-Z]\w+)*\+?[-_]" - # a loose pattern such as for unzip552.tar.gz - pn_prefix2 = "[a-zA-Z]+" - # a loose pattern such as for 80325-quicky-0.4.tar.gz - pn_prefix3 = "[0-9]+[-]?[a-zA-Z]+" - # Save the Package Name (pn) Regex for use later - pn_regex = "(%s|%s|%s)" % (pn_prefix1, pn_prefix2, pn_prefix3) - - # match version - pver_regex = "(([A-Z]*\d+[a-zA-Z]*[\.\-_]*)+)" - - # match arch - parch_regex = "-source|_all_" - - # src.rpm extension was added only for rpm package. Can be removed if the rpm - # packaged will always be considered as having to be manually upgraded - psuffix_regex = "(tar\.gz|tgz|tar\.bz2|zip|xz|tar\.lz|rpm|bz2|orig\.tar\.gz|tar\.xz|src\.tar\.gz|src\.tgz|svnr\d+\.tar\.bz2|stable\.tar\.gz|src\.rpm)" - - # match name, version and archive type of a package - package_regex_comp = re.compile("(?P<name>%s?\.?v?)(?P<pver>%s)(?P<arch>%s)?[\.-](?P<type>%s$)" - % (pn_regex, pver_regex, parch_regex, psuffix_regex)) - self.suffix_regex_comp = re.compile(psuffix_regex) - - # compile regex, can be specific by package or generic regex - pn_regex = d.getVar('UPSTREAM_CHECK_REGEX') - if pn_regex: - package_custom_regex_comp = re.compile(pn_regex) - else: - version = self._parse_path(package_regex_comp, package) - if version: - package_custom_regex_comp = re.compile( - "(?P<name>%s)(?P<pver>%s)(?P<arch>%s)?[\.-](?P<type>%s)" % - (re.escape(version[0]), pver_regex, parch_regex, psuffix_regex)) - else: - package_custom_regex_comp = None - - return package_custom_regex_comp - - def latest_versionstring(self, ud, d): - """ - Manipulate the URL and try to obtain the latest package version - - sanity check to ensure same name and type. - """ - package = ud.path.split("/")[-1] - current_version = ['', d.getVar('PV'), ''] - - """possible to have no version in pkg name, such as spectrum-fw""" - if not re.search("\d+", package): - current_version[1] = re.sub('_', '.', current_version[1]) - current_version[1] = re.sub('-', '.', current_version[1]) - return (current_version[1], '') - - package_regex = self._init_regexes(package, ud, d) - if package_regex is None: - bb.warn("latest_versionstring: package %s don't match pattern" % (package)) - return ('', '') - bb.debug(3, "latest_versionstring, regex: %s" % (package_regex.pattern)) - - uri = "" - regex_uri = d.getVar("UPSTREAM_CHECK_URI") - if not regex_uri: - path = ud.path.split(package)[0] - - # search for version matches on folders inside the path, like: - # "5.7" in http://download.gnome.org/sources/${PN}/5.7/${PN}-${PV}.tar.gz - dirver_regex = re.compile("(?P<dirver>[^/]*(\d+\.)*\d+([-_]r\d+)*)/") - m = dirver_regex.search(path) - if m: - pn = d.getVar('PN') - dirver = m.group('dirver') - - dirver_pn_regex = re.compile("%s\d?" % (re.escape(pn))) - if not dirver_pn_regex.search(dirver): - return (self._check_latest_version_by_dir(dirver, - package, package_regex, current_version, ud, d), '') - - uri = bb.fetch.encodeurl([ud.type, ud.host, path, ud.user, ud.pswd, {}]) - else: - uri = regex_uri - - return (self._check_latest_version(uri, package, package_regex, - current_version, ud, d), '') diff --git a/poky/bitbake/lib/bb/main.py b/poky/bitbake/lib/bb/main.py deleted file mode 100755 index 7711b29..0000000 --- a/poky/bitbake/lib/bb/main.py +++ /dev/null @@ -1,504 +0,0 @@ -#!/usr/bin/env python -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2003, 2004 Phil Blundell -# Copyright (C) 2003 - 2005 Michael 'Mickey' Lauer -# Copyright (C) 2005 Holger Hans Peter Freyther -# Copyright (C) 2005 ROAD GmbH -# Copyright (C) 2006 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os -import sys -import logging -import optparse -import warnings -import fcntl -import time -import traceback - -import bb -from bb import event -import bb.msg -from bb import cooker -from bb import ui -from bb import server -from bb import cookerdata - -import bb.server.process -import bb.server.xmlrpcclient - -logger = logging.getLogger("BitBake") - -class BBMainException(Exception): - pass - -class BBMainFatal(bb.BBHandledException): - pass - -def present_options(optionlist): - if len(optionlist) > 1: - return ' or '.join([', '.join(optionlist[:-1]), optionlist[-1]]) - else: - return optionlist[0] - -class BitbakeHelpFormatter(optparse.IndentedHelpFormatter): - def format_option(self, option): - # We need to do this here rather than in the text we supply to - # add_option() because we don't want to call list_extension_modules() - # on every execution (since it imports all of the modules) - # Note also that we modify option.help rather than the returned text - # - this is so that we don't have to re-format the text ourselves - if option.dest == 'ui': - valid_uis = list_extension_modules(bb.ui, 'main') - option.help = option.help.replace('@CHOICES@', present_options(valid_uis)) - - return optparse.IndentedHelpFormatter.format_option(self, option) - -def list_extension_modules(pkg, checkattr): - """ - Lists extension modules in a specific Python package - (e.g. UIs, servers). NOTE: Calling this function will import all of the - submodules of the specified module in order to check for the specified - attribute; this can have unusual side-effects. As a result, this should - only be called when displaying help text or error messages. - Parameters: - pkg: previously imported Python package to list - checkattr: attribute to look for in module to determine if it's valid - as the type of extension you are looking for - """ - import pkgutil - pkgdir = os.path.dirname(pkg.__file__) - - modules = [] - for _, modulename, _ in pkgutil.iter_modules([pkgdir]): - if os.path.isdir(os.path.join(pkgdir, modulename)): - # ignore directories - continue - try: - module = __import__(pkg.__name__, fromlist=[modulename]) - except: - # If we can't import it, it's not valid - continue - module_if = getattr(module, modulename) - if getattr(module_if, 'hidden_extension', False): - continue - if not checkattr or hasattr(module_if, checkattr): - modules.append(modulename) - return modules - -def import_extension_module(pkg, modulename, checkattr): - try: - # Dynamically load the UI based on the ui name. Although we - # suggest a fixed set this allows you to have flexibility in which - # ones are available. - module = __import__(pkg.__name__, fromlist=[modulename]) - return getattr(module, modulename) - except AttributeError: - modules = present_options(list_extension_modules(pkg, checkattr)) - raise BBMainException('FATAL: Unable to import extension module "%s" from %s. ' - 'Valid extension modules: %s' % (modulename, pkg.__name__, modules)) - -# Display bitbake/OE warnings via the BitBake.Warnings logger, ignoring others""" -warnlog = logging.getLogger("BitBake.Warnings") -_warnings_showwarning = warnings.showwarning -def _showwarning(message, category, filename, lineno, file=None, line=None): - if file is not None: - if _warnings_showwarning is not None: - _warnings_showwarning(message, category, filename, lineno, file, line) - else: - s = warnings.formatwarning(message, category, filename, lineno) - warnlog.warning(s) - -warnings.showwarning = _showwarning -warnings.filterwarnings("ignore") -warnings.filterwarnings("default", module="(<string>$|(oe|bb)\.)") -warnings.filterwarnings("ignore", category=PendingDeprecationWarning) -warnings.filterwarnings("ignore", category=ImportWarning) -warnings.filterwarnings("ignore", category=DeprecationWarning, module="<string>$") -warnings.filterwarnings("ignore", message="With-statements now directly support multiple context managers") - -class BitBakeConfigParameters(cookerdata.ConfigParameters): - - def parseCommandLine(self, argv=sys.argv): - parser = optparse.OptionParser( - formatter=BitbakeHelpFormatter(), - version="BitBake Build Tool Core version %s" % bb.__version__, - usage="""%prog [options] [recipename/target recipe:do_task ...] - - Executes the specified task (default is 'build') for a given set of target recipes (.bb files). - It is assumed there is a conf/bblayers.conf available in cwd or in BBPATH which - will provide the layer, BBFILES and other configuration information.""") - - parser.add_option("-b", "--buildfile", action="store", dest="buildfile", default=None, - help="Execute tasks from a specific .bb recipe directly. WARNING: Does " - "not handle any dependencies from other recipes.") - - parser.add_option("-k", "--continue", action="store_false", dest="abort", default=True, - help="Continue as much as possible after an error. While the target that " - "failed and anything depending on it cannot be built, as much as " - "possible will be built before stopping.") - - parser.add_option("-f", "--force", action="store_true", dest="force", default=False, - help="Force the specified targets/task to run (invalidating any " - "existing stamp file).") - - parser.add_option("-c", "--cmd", action="store", dest="cmd", - help="Specify the task to execute. The exact options available " - "depend on the metadata. Some examples might be 'compile'" - " or 'populate_sysroot' or 'listtasks' may give a list of " - "the tasks available.") - - parser.add_option("-C", "--clear-stamp", action="store", dest="invalidate_stamp", - help="Invalidate the stamp for the specified task such as 'compile' " - "and then run the default task for the specified target(s).") - - parser.add_option("-r", "--read", action="append", dest="prefile", default=[], - help="Read the specified file before bitbake.conf.") - - parser.add_option("-R", "--postread", action="append", dest="postfile", default=[], - help="Read the specified file after bitbake.conf.") - - parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False, - help="Enable tracing of shell tasks (with 'set -x'). " - "Also print bb.note(...) messages to stdout (in " - "addition to writing them to ${T}/log.do_<task>).") - - parser.add_option("-D", "--debug", action="count", dest="debug", default=0, - help="Increase the debug level. You can specify this " - "more than once. -D sets the debug level to 1, " - "where only bb.debug(1, ...) messages are printed " - "to stdout; -DD sets the debug level to 2, where " - "both bb.debug(1, ...) and bb.debug(2, ...) " - "messages are printed; etc. Without -D, no debug " - "messages are printed. Note that -D only affects " - "output to stdout. All debug messages are written " - "to ${T}/log.do_taskname, regardless of the debug " - "level.") - - parser.add_option("-q", "--quiet", action="count", dest="quiet", default=0, - help="Output less log message data to the terminal. You can specify this more than once.") - - parser.add_option("-n", "--dry-run", action="store_true", dest="dry_run", default=False, - help="Don't execute, just go through the motions.") - - parser.add_option("-S", "--dump-signatures", action="append", dest="dump_signatures", - default=[], metavar="SIGNATURE_HANDLER", - help="Dump out the signature construction information, with no task " - "execution. The SIGNATURE_HANDLER parameter is passed to the " - "handler. Two common values are none and printdiff but the handler " - "may define more/less. none means only dump the signature, printdiff" - " means compare the dumped signature with the cached one.") - - parser.add_option("-p", "--parse-only", action="store_true", - dest="parse_only", default=False, - help="Quit after parsing the BB recipes.") - - parser.add_option("-s", "--show-versions", action="store_true", - dest="show_versions", default=False, - help="Show current and preferred versions of all recipes.") - - parser.add_option("-e", "--environment", action="store_true", - dest="show_environment", default=False, - help="Show the global or per-recipe environment complete with information" - " about where variables were set/changed.") - - parser.add_option("-g", "--graphviz", action="store_true", dest="dot_graph", default=False, - help="Save dependency tree information for the specified " - "targets in the dot syntax.") - - parser.add_option("-I", "--ignore-deps", action="append", - dest="extra_assume_provided", default=[], - help="Assume these dependencies don't exist and are already provided " - "(equivalent to ASSUME_PROVIDED). Useful to make dependency " - "graphs more appealing") - - parser.add_option("-l", "--log-domains", action="append", dest="debug_domains", default=[], - help="Show debug logging for the specified logging domains") - - parser.add_option("-P", "--profile", action="store_true", dest="profile", default=False, - help="Profile the command and save reports.") - - # @CHOICES@ is substituted out by BitbakeHelpFormatter above - parser.add_option("-u", "--ui", action="store", dest="ui", - default=os.environ.get('BITBAKE_UI', 'knotty'), - help="The user interface to use (@CHOICES@ - default %default).") - - parser.add_option("", "--token", action="store", dest="xmlrpctoken", - default=os.environ.get("BBTOKEN"), - help="Specify the connection token to be used when connecting " - "to a remote server.") - - parser.add_option("", "--revisions-changed", action="store_true", - dest="revisions_changed", default=False, - help="Set the exit code depending on whether upstream floating " - "revisions have changed or not.") - - parser.add_option("", "--server-only", action="store_true", - dest="server_only", default=False, - help="Run bitbake without a UI, only starting a server " - "(cooker) process.") - - parser.add_option("-B", "--bind", action="store", dest="bind", default=False, - help="The name/address for the bitbake xmlrpc server to bind to.") - - parser.add_option("-T", "--idle-timeout", type=float, dest="server_timeout", - default=os.getenv("BB_SERVER_TIMEOUT"), - help="Set timeout to unload bitbake server due to inactivity, " - "set to -1 means no unload, " - "default: Environment variable BB_SERVER_TIMEOUT.") - - parser.add_option("", "--no-setscene", action="store_true", - dest="nosetscene", default=False, - help="Do not run any setscene tasks. sstate will be ignored and " - "everything needed, built.") - - parser.add_option("", "--setscene-only", action="store_true", - dest="setsceneonly", default=False, - help="Only run setscene tasks, don't run any real tasks.") - - parser.add_option("", "--remote-server", action="store", dest="remote_server", - default=os.environ.get("BBSERVER"), - help="Connect to the specified server.") - - parser.add_option("-m", "--kill-server", action="store_true", - dest="kill_server", default=False, - help="Terminate any running bitbake server.") - - parser.add_option("", "--observe-only", action="store_true", - dest="observe_only", default=False, - help="Connect to a server as an observing-only client.") - - parser.add_option("", "--status-only", action="store_true", - dest="status_only", default=False, - help="Check the status of the remote bitbake server.") - - parser.add_option("-w", "--write-log", action="store", dest="writeeventlog", - default=os.environ.get("BBEVENTLOG"), - help="Writes the event log of the build to a bitbake event json file. " - "Use '' (empty string) to assign the name automatically.") - - parser.add_option("", "--runall", action="store", dest="runall", - help="Run the specified task for all build targets and their dependencies.") - - options, targets = parser.parse_args(argv) - - if options.quiet and options.verbose: - parser.error("options --quiet and --verbose are mutually exclusive") - - if options.quiet and options.debug: - parser.error("options --quiet and --debug are mutually exclusive") - - # use configuration files from environment variables - if "BBPRECONF" in os.environ: - options.prefile.append(os.environ["BBPRECONF"]) - - if "BBPOSTCONF" in os.environ: - options.postfile.append(os.environ["BBPOSTCONF"]) - - # fill in proper log name if not supplied - if options.writeeventlog is not None and len(options.writeeventlog) == 0: - from datetime import datetime - eventlog = "bitbake_eventlog_%s.json" % datetime.now().strftime("%Y%m%d%H%M%S") - options.writeeventlog = eventlog - - if options.bind: - try: - #Checking that the port is a number and is a ':' delimited value - (host, port) = options.bind.split(':') - port = int(port) - except (ValueError,IndexError): - raise BBMainException("FATAL: Malformed host:port bind parameter") - options.xmlrpcinterface = (host, port) - else: - options.xmlrpcinterface = (None, 0) - - return options, targets[1:] - - -def bitbake_main(configParams, configuration): - - # Python multiprocessing requires /dev/shm on Linux - if sys.platform.startswith('linux') and not os.access('/dev/shm', os.W_OK | os.X_OK): - raise BBMainException("FATAL: /dev/shm does not exist or is not writable") - - # Unbuffer stdout to avoid log truncation in the event - # of an unorderly exit as well as to provide timely - # updates to log files for use with tail - try: - if sys.stdout.name == '<stdout>': - # Reopen with O_SYNC (unbuffered) - fl = fcntl.fcntl(sys.stdout.fileno(), fcntl.F_GETFL) - fl |= os.O_SYNC - fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL, fl) - except: - pass - - configuration.setConfigParameters(configParams) - - if configParams.server_only and configParams.remote_server: - raise BBMainException("FATAL: The '--server-only' option conflicts with %s.\n" % - ("the BBSERVER environment variable" if "BBSERVER" in os.environ \ - else "the '--remote-server' option")) - - if configParams.observe_only and not (configParams.remote_server or configParams.bind): - raise BBMainException("FATAL: '--observe-only' can only be used by UI clients " - "connecting to a server.\n") - - if "BBDEBUG" in os.environ: - level = int(os.environ["BBDEBUG"]) - if level > configuration.debug: - configuration.debug = level - - bb.msg.init_msgconfig(configParams.verbose, configuration.debug, - configuration.debug_domains) - - server_connection, ui_module = setup_bitbake(configParams, configuration) - # No server connection - if server_connection is None: - if configParams.status_only: - return 1 - if configParams.kill_server: - return 0 - - if not configParams.server_only: - if configParams.status_only: - server_connection.terminate() - return 0 - - try: - for event in bb.event.ui_queue: - server_connection.events.queue_event(event) - bb.event.ui_queue = [] - - return ui_module.main(server_connection.connection, server_connection.events, - configParams) - finally: - server_connection.terminate() - else: - return 0 - - return 1 - -def setup_bitbake(configParams, configuration, extrafeatures=None): - # Ensure logging messages get sent to the UI as events - handler = bb.event.LogHandler() - if not configParams.status_only: - # In status only mode there are no logs and no UI - logger.addHandler(handler) - - # Clear away any spurious environment variables while we stoke up the cooker - cleanedvars = bb.utils.clean_environment() - - if configParams.server_only: - featureset = [] - ui_module = None - else: - ui_module = import_extension_module(bb.ui, configParams.ui, 'main') - # Collect the feature set for the UI - featureset = getattr(ui_module, "featureSet", []) - - if extrafeatures: - for feature in extrafeatures: - if not feature in featureset: - featureset.append(feature) - - server_connection = None - - if configParams.remote_server: - # Connect to a remote XMLRPC server - server_connection = bb.server.xmlrpcclient.connectXMLRPC(configParams.remote_server, featureset, - configParams.observe_only, configParams.xmlrpctoken) - else: - retries = 8 - while retries: - try: - topdir, lock = lockBitbake() - sockname = topdir + "/bitbake.sock" - if lock: - if configParams.status_only or configParams.kill_server: - logger.info("bitbake server is not running.") - lock.close() - return None, None - # we start a server with a given configuration - logger.info("Starting bitbake server...") - # Clear the event queue since we already displayed messages - bb.event.ui_queue = [] - server = bb.server.process.BitBakeServer(lock, sockname, configuration, featureset) - - else: - logger.info("Reconnecting to bitbake server...") - if not os.path.exists(sockname): - print("Previous bitbake instance shutting down?, waiting to retry...") - i = 0 - lock = None - # Wait for 5s or until we can get the lock - while not lock and i < 50: - time.sleep(0.1) - _, lock = lockBitbake() - i += 1 - if lock: - bb.utils.unlockfile(lock) - raise bb.server.process.ProcessTimeout("Bitbake still shutting down as socket exists but no lock?") - if not configParams.server_only: - try: - server_connection = bb.server.process.connectProcessServer(sockname, featureset) - except EOFError: - # The server may have been shutting down but not closed the socket yet. If that happened, - # ignore it. - pass - - if server_connection or configParams.server_only: - break - except BBMainFatal: - raise - except (Exception, bb.server.process.ProcessTimeout) as e: - if not retries: - raise - retries -= 1 - if isinstance(e, (bb.server.process.ProcessTimeout, BrokenPipeError)): - logger.info("Retrying server connection...") - else: - logger.info("Retrying server connection... (%s)" % traceback.format_exc()) - if not retries: - bb.fatal("Unable to connect to bitbake server, or start one") - if retries < 5: - time.sleep(5) - - if configParams.kill_server: - server_connection.connection.terminateServer() - server_connection.terminate() - bb.event.ui_queue = [] - logger.info("Terminated bitbake server.") - return None, None - - # Restore the environment in case the UI needs it - for k in cleanedvars: - os.environ[k] = cleanedvars[k] - - logger.removeHandler(handler) - - return server_connection, ui_module - -def lockBitbake(): - topdir = bb.cookerdata.findTopdir() - if not topdir: - bb.error("Unable to find conf/bblayers.conf or conf/bitbake.conf. BBAPTH is unset and/or not in a build directory?") - raise BBMainFatal - lockfile = topdir + "/bitbake.lock" - return topdir, bb.utils.lockfile(lockfile, False, False) - diff --git a/poky/bitbake/lib/bb/methodpool.py b/poky/bitbake/lib/bb/methodpool.py deleted file mode 100644 index 49aed33..0000000 --- a/poky/bitbake/lib/bb/methodpool.py +++ /dev/null @@ -1,40 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# -# Copyright (C) 2006 Holger Hans Peter Freyther -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -from bb.utils import better_compile, better_exec - -def insert_method(modulename, code, fn, lineno): - """ - Add code of a module should be added. The methods - will be simply added, no checking will be done - """ - comp = better_compile(code, modulename, fn, lineno=lineno) - better_exec(comp, None, code, fn) - -compilecache = {} - -def compile_cache(code): - h = hash(code) - if h in compilecache: - return compilecache[h] - return None - -def compile_cache_add(code, compileobj): - h = hash(code) - compilecache[h] = compileobj diff --git a/poky/bitbake/lib/bb/monitordisk.py b/poky/bitbake/lib/bb/monitordisk.py deleted file mode 100644 index 833cd3d..0000000 --- a/poky/bitbake/lib/bb/monitordisk.py +++ /dev/null @@ -1,268 +0,0 @@ -#!/usr/bin/env python -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# Copyright (C) 2012 Robert Yang -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os, logging, re, sys -import bb -logger = logging.getLogger("BitBake.Monitor") - -def printErr(info): - logger.error("%s\n Disk space monitor will NOT be enabled" % info) - -def convertGMK(unit): - - """ Convert the space unit G, M, K, the unit is case-insensitive """ - - unitG = re.match('([1-9][0-9]*)[gG]\s?$', unit) - if unitG: - return int(unitG.group(1)) * (1024 ** 3) - unitM = re.match('([1-9][0-9]*)[mM]\s?$', unit) - if unitM: - return int(unitM.group(1)) * (1024 ** 2) - unitK = re.match('([1-9][0-9]*)[kK]\s?$', unit) - if unitK: - return int(unitK.group(1)) * 1024 - unitN = re.match('([1-9][0-9]*)\s?$', unit) - if unitN: - return int(unitN.group(1)) - else: - return None - -def getMountedDev(path): - - """ Get the device mounted at the path, uses /proc/mounts """ - - # Get the mount point of the filesystem containing path - # st_dev is the ID of device containing file - parentDev = os.stat(path).st_dev - currentDev = parentDev - # When the current directory's device is different from the - # parent's, then the current directory is a mount point - while parentDev == currentDev: - mountPoint = path - # Use dirname to get the parent's directory - path = os.path.dirname(path) - # Reach the "/" - if path == mountPoint: - break - parentDev= os.stat(path).st_dev - - try: - with open("/proc/mounts", "r") as ifp: - for line in ifp: - procLines = line.rstrip('\n').split() - if procLines[1] == mountPoint: - return procLines[0] - except EnvironmentError: - pass - return None - -def getDiskData(BBDirs, configuration): - - """Prepare disk data for disk space monitor""" - - # Save the device IDs, need the ID to be unique (the dictionary's key is - # unique), so that when more than one directory is located on the same - # device, we just monitor it once - devDict = {} - for pathSpaceInode in BBDirs.split(): - # The input format is: "dir,space,inode", dir is a must, space - # and inode are optional - pathSpaceInodeRe = re.match('([^,]*),([^,]*),([^,]*),?(.*)', pathSpaceInode) - if not pathSpaceInodeRe: - printErr("Invalid value in BB_DISKMON_DIRS: %s" % pathSpaceInode) - return None - - action = pathSpaceInodeRe.group(1) - if action not in ("ABORT", "STOPTASKS", "WARN"): - printErr("Unknown disk space monitor action: %s" % action) - return None - - path = os.path.realpath(pathSpaceInodeRe.group(2)) - if not path: - printErr("Invalid path value in BB_DISKMON_DIRS: %s" % pathSpaceInode) - return None - - # The disk space or inode is optional, but it should have a correct - # value once it is specified - minSpace = pathSpaceInodeRe.group(3) - if minSpace: - minSpace = convertGMK(minSpace) - if not minSpace: - printErr("Invalid disk space value in BB_DISKMON_DIRS: %s" % pathSpaceInodeRe.group(3)) - return None - else: - # None means that it is not specified - minSpace = None - - minInode = pathSpaceInodeRe.group(4) - if minInode: - minInode = convertGMK(minInode) - if not minInode: - printErr("Invalid inode value in BB_DISKMON_DIRS: %s" % pathSpaceInodeRe.group(4)) - return None - else: - # None means that it is not specified - minInode = None - - if minSpace is None and minInode is None: - printErr("No disk space or inode value in found BB_DISKMON_DIRS: %s" % pathSpaceInode) - return None - # mkdir for the directory since it may not exist, for example the - # DL_DIR may not exist at the very beginning - if not os.path.exists(path): - bb.utils.mkdirhier(path) - dev = getMountedDev(path) - # Use path/action as the key - devDict[(path, action)] = [dev, minSpace, minInode] - - return devDict - -def getInterval(configuration): - - """ Get the disk space interval """ - - # The default value is 50M and 5K. - spaceDefault = 50 * 1024 * 1024 - inodeDefault = 5 * 1024 - - interval = configuration.getVar("BB_DISKMON_WARNINTERVAL") - if not interval: - return spaceDefault, inodeDefault - else: - # The disk space or inode interval is optional, but it should - # have a correct value once it is specified - intervalRe = re.match('([^,]*),?\s*(.*)', interval) - if intervalRe: - intervalSpace = intervalRe.group(1) - if intervalSpace: - intervalSpace = convertGMK(intervalSpace) - if not intervalSpace: - printErr("Invalid disk space interval value in BB_DISKMON_WARNINTERVAL: %s" % intervalRe.group(1)) - return None, None - else: - intervalSpace = spaceDefault - intervalInode = intervalRe.group(2) - if intervalInode: - intervalInode = convertGMK(intervalInode) - if not intervalInode: - printErr("Invalid disk inode interval value in BB_DISKMON_WARNINTERVAL: %s" % intervalRe.group(2)) - return None, None - else: - intervalInode = inodeDefault - return intervalSpace, intervalInode - else: - printErr("Invalid interval value in BB_DISKMON_WARNINTERVAL: %s" % interval) - return None, None - -class diskMonitor: - - """Prepare the disk space monitor data""" - - def __init__(self, configuration): - - self.enableMonitor = False - self.configuration = configuration - - BBDirs = configuration.getVar("BB_DISKMON_DIRS") or None - if BBDirs: - self.devDict = getDiskData(BBDirs, configuration) - if self.devDict: - self.spaceInterval, self.inodeInterval = getInterval(configuration) - if self.spaceInterval and self.inodeInterval: - self.enableMonitor = True - # These are for saving the previous disk free space and inode, we - # use them to avoid printing too many warning messages - self.preFreeS = {} - self.preFreeI = {} - # This is for STOPTASKS and ABORT, to avoid printing the message - # repeatedly while waiting for the tasks to finish - self.checked = {} - for k in self.devDict: - self.preFreeS[k] = 0 - self.preFreeI[k] = 0 - self.checked[k] = False - if self.spaceInterval is None and self.inodeInterval is None: - self.enableMonitor = False - - def check(self, rq): - - """ Take action for the monitor """ - - if self.enableMonitor: - diskUsage = {} - for k, attributes in self.devDict.items(): - path, action = k - dev, minSpace, minInode = attributes - - st = os.statvfs(path) - - # The available free space, integer number - freeSpace = st.f_bavail * st.f_frsize - - # Send all relevant information in the event. - freeSpaceRoot = st.f_bfree * st.f_frsize - totalSpace = st.f_blocks * st.f_frsize - diskUsage[dev] = bb.event.DiskUsageSample(freeSpace, freeSpaceRoot, totalSpace) - - if minSpace and freeSpace < minSpace: - # Always show warning, the self.checked would always be False if the action is WARN - if self.preFreeS[k] == 0 or self.preFreeS[k] - freeSpace > self.spaceInterval and not self.checked[k]: - logger.warning("The free space of %s (%s) is running low (%.3fGB left)" % \ - (path, dev, freeSpace / 1024 / 1024 / 1024.0)) - self.preFreeS[k] = freeSpace - - if action == "STOPTASKS" and not self.checked[k]: - logger.error("No new tasks can be executed since the disk space monitor action is \"STOPTASKS\"!") - self.checked[k] = True - rq.finish_runqueue(False) - bb.event.fire(bb.event.DiskFull(dev, 'disk', freeSpace, path), self.configuration) - elif action == "ABORT" and not self.checked[k]: - logger.error("Immediately abort since the disk space monitor action is \"ABORT\"!") - self.checked[k] = True - rq.finish_runqueue(True) - bb.event.fire(bb.event.DiskFull(dev, 'disk', freeSpace, path), self.configuration) - - # The free inodes, integer number - freeInode = st.f_favail - - if minInode and freeInode < minInode: - # Some filesystems use dynamic inodes so can't run out - # (e.g. btrfs). This is reported by the inode count being 0. - if st.f_files == 0: - self.devDict[k][2] = None - continue - # Always show warning, the self.checked would always be False if the action is WARN - if self.preFreeI[k] == 0 or self.preFreeI[k] - freeInode > self.inodeInterval and not self.checked[k]: - logger.warning("The free inode of %s (%s) is running low (%.3fK left)" % \ - (path, dev, freeInode / 1024.0)) - self.preFreeI[k] = freeInode - - if action == "STOPTASKS" and not self.checked[k]: - logger.error("No new tasks can be executed since the disk space monitor action is \"STOPTASKS\"!") - self.checked[k] = True - rq.finish_runqueue(False) - bb.event.fire(bb.event.DiskFull(dev, 'inode', freeInode, path), self.configuration) - elif action == "ABORT" and not self.checked[k]: - logger.error("Immediately abort since the disk space monitor action is \"ABORT\"!") - self.checked[k] = True - rq.finish_runqueue(True) - bb.event.fire(bb.event.DiskFull(dev, 'inode', freeInode, path), self.configuration) - - bb.event.fire(bb.event.MonitorDiskEvent(diskUsage), self.configuration) - return diff --git a/poky/bitbake/lib/bb/msg.py b/poky/bitbake/lib/bb/msg.py deleted file mode 100644 index f1723be..0000000 --- a/poky/bitbake/lib/bb/msg.py +++ /dev/null @@ -1,225 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'msg' implementation - -Message handling infrastructure for bitbake - -""" - -# Copyright (C) 2006 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import sys -import copy -import logging -import collections -from itertools import groupby -import warnings -import bb -import bb.event - -class BBLogFormatter(logging.Formatter): - """Formatter which ensures that our 'plain' messages (logging.INFO + 1) are used as is""" - - DEBUG3 = logging.DEBUG - 2 - DEBUG2 = logging.DEBUG - 1 - DEBUG = logging.DEBUG - VERBOSE = logging.INFO - 1 - NOTE = logging.INFO - PLAIN = logging.INFO + 1 - ERROR = logging.ERROR - WARNING = logging.WARNING - CRITICAL = logging.CRITICAL - - levelnames = { - DEBUG3 : 'DEBUG', - DEBUG2 : 'DEBUG', - DEBUG : 'DEBUG', - VERBOSE: 'NOTE', - NOTE : 'NOTE', - PLAIN : '', - WARNING : 'WARNING', - ERROR : 'ERROR', - CRITICAL: 'ERROR', - } - - color_enabled = False - BASECOLOR, BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = list(range(29,38)) - - COLORS = { - DEBUG3 : CYAN, - DEBUG2 : CYAN, - DEBUG : CYAN, - VERBOSE : BASECOLOR, - NOTE : BASECOLOR, - PLAIN : BASECOLOR, - WARNING : YELLOW, - ERROR : RED, - CRITICAL: RED, - } - - BLD = '\033[1;%dm' - STD = '\033[%dm' - RST = '\033[0m' - - def getLevelName(self, levelno): - try: - return self.levelnames[levelno] - except KeyError: - self.levelnames[levelno] = value = 'Level %d' % levelno - return value - - def format(self, record): - record.levelname = self.getLevelName(record.levelno) - if record.levelno == self.PLAIN: - msg = record.getMessage() - else: - if self.color_enabled: - record = self.colorize(record) - msg = logging.Formatter.format(self, record) - if hasattr(record, 'bb_exc_formatted'): - msg += '\n' + ''.join(record.bb_exc_formatted) - elif hasattr(record, 'bb_exc_info'): - etype, value, tb = record.bb_exc_info - formatted = bb.exceptions.format_exception(etype, value, tb, limit=5) - msg += '\n' + ''.join(formatted) - return msg - - def colorize(self, record): - color = self.COLORS[record.levelno] - if self.color_enabled and color is not None: - record = copy.copy(record) - record.levelname = "".join([self.BLD % color, record.levelname, self.RST]) - record.msg = "".join([self.STD % color, record.msg, self.RST]) - return record - - def enable_color(self): - self.color_enabled = True - -class BBLogFilter(object): - def __init__(self, handler, level, debug_domains): - self.stdlevel = level - self.debug_domains = debug_domains - loglevel = level - for domain in debug_domains: - if debug_domains[domain] < loglevel: - loglevel = debug_domains[domain] - handler.setLevel(loglevel) - handler.addFilter(self) - - def filter(self, record): - if record.levelno >= self.stdlevel: - return True - if record.name in self.debug_domains and record.levelno >= self.debug_domains[record.name]: - return True - return False - -class BBLogFilterStdErr(BBLogFilter): - def filter(self, record): - if not BBLogFilter.filter(self, record): - return False - if record.levelno >= logging.ERROR: - return True - return False - -class BBLogFilterStdOut(BBLogFilter): - def filter(self, record): - if not BBLogFilter.filter(self, record): - return False - if record.levelno < logging.ERROR: - return True - return False - -# Message control functions -# - -loggerDefaultDebugLevel = 0 -loggerDefaultVerbose = False -loggerVerboseLogs = False -loggerDefaultDomains = [] - -def init_msgconfig(verbose, debug, debug_domains=None): - """ - Set default verbosity and debug levels config the logger - """ - bb.msg.loggerDefaultDebugLevel = debug - bb.msg.loggerDefaultVerbose = verbose - if verbose: - bb.msg.loggerVerboseLogs = True - if debug_domains: - bb.msg.loggerDefaultDomains = debug_domains - else: - bb.msg.loggerDefaultDomains = [] - -def constructLogOptions(): - debug = loggerDefaultDebugLevel - verbose = loggerDefaultVerbose - domains = loggerDefaultDomains - - if debug: - level = BBLogFormatter.DEBUG - debug + 1 - elif verbose: - level = BBLogFormatter.VERBOSE - else: - level = BBLogFormatter.NOTE - - debug_domains = {} - for (domainarg, iterator) in groupby(domains): - dlevel = len(tuple(iterator)) - debug_domains["BitBake.%s" % domainarg] = logging.DEBUG - dlevel + 1 - return level, debug_domains - -def addDefaultlogFilter(handler, cls = BBLogFilter, forcelevel=None): - level, debug_domains = constructLogOptions() - - if forcelevel is not None: - level = forcelevel - - cls(handler, level, debug_domains) - -# -# Message handling functions -# - -def fatal(msgdomain, msg): - if msgdomain: - logger = logging.getLogger("BitBake.%s" % msgdomain) - else: - logger = logging.getLogger("BitBake") - logger.critical(msg) - sys.exit(1) - -def logger_create(name, output=sys.stderr, level=logging.INFO, preserve_handlers=False, color='auto'): - """Standalone logger creation function""" - logger = logging.getLogger(name) - console = logging.StreamHandler(output) - format = bb.msg.BBLogFormatter("%(levelname)s: %(message)s") - if color == 'always' or (color == 'auto' and output.isatty()): - format.enable_color() - console.setFormatter(format) - if preserve_handlers: - logger.addHandler(console) - else: - logger.handlers = [console] - logger.setLevel(level) - return logger - -def has_console_handler(logger): - for handler in logger.handlers: - if isinstance(handler, logging.StreamHandler): - if handler.stream in [sys.stderr, sys.stdout]: - return True - return False diff --git a/poky/bitbake/lib/bb/namedtuple_with_abc.py b/poky/bitbake/lib/bb/namedtuple_with_abc.py deleted file mode 100644 index 32f2fc6..0000000 --- a/poky/bitbake/lib/bb/namedtuple_with_abc.py +++ /dev/null @@ -1,255 +0,0 @@ -# http://code.activestate.com/recipes/577629-namedtupleabc-abstract-base-class-mix-in-for-named/ -#!/usr/bin/env python -# Copyright (c) 2011 Jan Kaliszewski (zuo). Available under the MIT License. - -""" -namedtuple_with_abc.py: -* named tuple mix-in + ABC (abstract base class) recipe, -* works under Python 2.6, 2.7 as well as 3.x. - -Import this module to patch collections.namedtuple() factory function --- enriching it with the 'abc' attribute (an abstract base class + mix-in -for named tuples) and decorating it with a wrapper that registers each -newly created named tuple as a subclass of namedtuple.abc. - -How to import: - import collections, namedtuple_with_abc -or: - import namedtuple_with_abc - from collections import namedtuple - # ^ in this variant you must import namedtuple function - # *after* importing namedtuple_with_abc module -or simply: - from namedtuple_with_abc import namedtuple - -Simple usage example: - class Credentials(namedtuple.abc): - _fields = 'username password' - def __str__(self): - return ('{0.__class__.__name__}' - '(username={0.username}, password=...)'.format(self)) - print(Credentials("alice", "Alice's password")) - -For more advanced examples -- see below the "if __name__ == '__main__':". -""" - -import collections -from abc import ABCMeta, abstractproperty -from functools import wraps -from sys import version_info - -__all__ = ('namedtuple',) -_namedtuple = collections.namedtuple - - -class _NamedTupleABCMeta(ABCMeta): - '''The metaclass for the abstract base class + mix-in for named tuples.''' - def __new__(mcls, name, bases, namespace): - fields = namespace.get('_fields') - for base in bases: - if fields is not None: - break - fields = getattr(base, '_fields', None) - if not isinstance(fields, abstractproperty): - basetuple = _namedtuple(name, fields) - bases = (basetuple,) + bases - namespace.pop('_fields', None) - namespace.setdefault('__doc__', basetuple.__doc__) - namespace.setdefault('__slots__', ()) - return ABCMeta.__new__(mcls, name, bases, namespace) - - -exec( - # Python 2.x metaclass declaration syntax - """class _NamedTupleABC(object): - '''The abstract base class + mix-in for named tuples.''' - __metaclass__ = _NamedTupleABCMeta - _fields = abstractproperty()""" if version_info[0] < 3 else - # Python 3.x metaclass declaration syntax - """class _NamedTupleABC(metaclass=_NamedTupleABCMeta): - '''The abstract base class + mix-in for named tuples.''' - _fields = abstractproperty()""" -) - - -_namedtuple.abc = _NamedTupleABC -#_NamedTupleABC.register(type(version_info)) # (and similar, in the future...) - -@wraps(_namedtuple) -def namedtuple(*args, **kwargs): - '''Named tuple factory with namedtuple.abc subclass registration.''' - cls = _namedtuple(*args, **kwargs) - _NamedTupleABC.register(cls) - return cls - -collections.namedtuple = namedtuple - - - - -if __name__ == '__main__': - - '''Examples and explanations''' - - # Simple usage - - class MyRecord(namedtuple.abc): - _fields = 'x y z' # such form will be transformed into ('x', 'y', 'z') - def _my_custom_method(self): - return list(self._asdict().items()) - # (the '_fields' attribute belongs to the named tuple public API anyway) - - rec = MyRecord(1, 2, 3) - print(rec) - print(rec._my_custom_method()) - print(rec._replace(y=222)) - print(rec._replace(y=222)._my_custom_method()) - - # Custom abstract classes... - - class MyAbstractRecord(namedtuple.abc): - def _my_custom_method(self): - return list(self._asdict().items()) - - try: - MyAbstractRecord() # (abstract classes cannot be instantiated) - except TypeError as exc: - print(exc) - - class AnotherAbstractRecord(MyAbstractRecord): - def __str__(self): - return '<<<{0}>>>'.format(super(AnotherAbstractRecord, - self).__str__()) - - # ...and their non-abstract subclasses - - class MyRecord2(MyAbstractRecord): - _fields = 'a, b' - - class MyRecord3(AnotherAbstractRecord): - _fields = 'p', 'q', 'r' - - rec2 = MyRecord2('foo', 'bar') - print(rec2) - print(rec2._my_custom_method()) - print(rec2._replace(b=222)) - print(rec2._replace(b=222)._my_custom_method()) - - rec3 = MyRecord3('foo', 'bar', 'baz') - print(rec3) - print(rec3._my_custom_method()) - print(rec3._replace(q=222)) - print(rec3._replace(q=222)._my_custom_method()) - - # You can also subclass non-abstract ones... - - class MyRecord33(MyRecord3): - def __str__(self): - return '< {0!r}, ..., {0!r} >'.format(self.p, self.r) - - rec33 = MyRecord33('foo', 'bar', 'baz') - print(rec33) - print(rec33._my_custom_method()) - print(rec33._replace(q=222)) - print(rec33._replace(q=222)._my_custom_method()) - - # ...and even override the magic '_fields' attribute again - - class MyRecord345(MyRecord3): - _fields = 'e f g h i j k' - - rec345 = MyRecord345(1, 2, 3, 4, 3, 2, 1) - print(rec345) - print(rec345._my_custom_method()) - print(rec345._replace(f=222)) - print(rec345._replace(f=222)._my_custom_method()) - - # Mixing-in some other classes is also possible: - - class MyMixIn(object): - def method(self): - return "MyMixIn.method() called" - def _my_custom_method(self): - return "MyMixIn._my_custom_method() called" - def count(self, item): - return "MyMixIn.count({0}) called".format(item) - def _asdict(self): # (cannot override a namedtuple method, see below) - return "MyMixIn._asdict() called" - - class MyRecord4(MyRecord33, MyMixIn): # mix-in on the right - _fields = 'j k l x' - - class MyRecord5(MyMixIn, MyRecord33): # mix-in on the left - _fields = 'j k l x y' - - rec4 = MyRecord4(1, 2, 3, 2) - print(rec4) - print(rec4.method()) - print(rec4._my_custom_method()) # MyRecord33's - print(rec4.count(2)) # tuple's - print(rec4._replace(k=222)) - print(rec4._replace(k=222).method()) - print(rec4._replace(k=222)._my_custom_method()) # MyRecord33's - print(rec4._replace(k=222).count(8)) # tuple's - - rec5 = MyRecord5(1, 2, 3, 2, 1) - print(rec5) - print(rec5.method()) - print(rec5._my_custom_method()) # MyMixIn's - print(rec5.count(2)) # MyMixIn's - print(rec5._replace(k=222)) - print(rec5._replace(k=222).method()) - print(rec5._replace(k=222)._my_custom_method()) # MyMixIn's - print(rec5._replace(k=222).count(2)) # MyMixIn's - - # Note that behavior: the standard namedtuple methods cannot be - # overridden by a foreign mix-in -- even if the mix-in is declared - # as the leftmost base class (but, obviously, you can override them - # in the defined class or its subclasses): - - print(rec4._asdict()) # (returns a dict, not "MyMixIn._asdict() called") - print(rec5._asdict()) # (returns a dict, not "MyMixIn._asdict() called") - - class MyRecord6(MyRecord33): - _fields = 'j k l x y z' - def _asdict(self): - return "MyRecord6._asdict() called" - rec6 = MyRecord6(1, 2, 3, 1, 2, 3) - print(rec6._asdict()) # (this returns "MyRecord6._asdict() called") - - # All that record classes are real subclasses of namedtuple.abc: - - assert issubclass(MyRecord, namedtuple.abc) - assert issubclass(MyAbstractRecord, namedtuple.abc) - assert issubclass(AnotherAbstractRecord, namedtuple.abc) - assert issubclass(MyRecord2, namedtuple.abc) - assert issubclass(MyRecord3, namedtuple.abc) - assert issubclass(MyRecord33, namedtuple.abc) - assert issubclass(MyRecord345, namedtuple.abc) - assert issubclass(MyRecord4, namedtuple.abc) - assert issubclass(MyRecord5, namedtuple.abc) - assert issubclass(MyRecord6, namedtuple.abc) - - # ...but abstract ones are not subclasses of tuple - # (and this is what you probably want): - - assert not issubclass(MyAbstractRecord, tuple) - assert not issubclass(AnotherAbstractRecord, tuple) - - assert issubclass(MyRecord, tuple) - assert issubclass(MyRecord2, tuple) - assert issubclass(MyRecord3, tuple) - assert issubclass(MyRecord33, tuple) - assert issubclass(MyRecord345, tuple) - assert issubclass(MyRecord4, tuple) - assert issubclass(MyRecord5, tuple) - assert issubclass(MyRecord6, tuple) - - # Named tuple classes created with namedtuple() factory function - # (in the "traditional" way) are registered as "virtual" subclasses - # of namedtuple.abc: - - MyTuple = namedtuple('MyTuple', 'a b c') - mt = MyTuple(1, 2, 3) - assert issubclass(MyTuple, namedtuple.abc) - assert isinstance(mt, namedtuple.abc) diff --git a/poky/bitbake/lib/bb/parse/__init__.py b/poky/bitbake/lib/bb/parse/__init__.py deleted file mode 100644 index 2fc4002..0000000 --- a/poky/bitbake/lib/bb/parse/__init__.py +++ /dev/null @@ -1,174 +0,0 @@ -""" -BitBake Parsers - -File parsers for the BitBake build tools. - -""" - - -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2003, 2004 Phil Blundell -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -handlers = [] - -import errno -import logging -import os -import stat -import bb -import bb.utils -import bb.siggen - -logger = logging.getLogger("BitBake.Parsing") - -class ParseError(Exception): - """Exception raised when parsing fails""" - def __init__(self, msg, filename, lineno=0): - self.msg = msg - self.filename = filename - self.lineno = lineno - Exception.__init__(self, msg, filename, lineno) - - def __str__(self): - if self.lineno: - return "ParseError at %s:%d: %s" % (self.filename, self.lineno, self.msg) - else: - return "ParseError in %s: %s" % (self.filename, self.msg) - -class SkipRecipe(Exception): - """Exception raised to skip this recipe""" - -class SkipPackage(SkipRecipe): - """Exception raised to skip this recipe (use SkipRecipe in new code)""" - -__mtime_cache = {} -def cached_mtime(f): - if f not in __mtime_cache: - __mtime_cache[f] = os.stat(f)[stat.ST_MTIME] - return __mtime_cache[f] - -def cached_mtime_noerror(f): - if f not in __mtime_cache: - try: - __mtime_cache[f] = os.stat(f)[stat.ST_MTIME] - except OSError: - return 0 - return __mtime_cache[f] - -def update_mtime(f): - try: - __mtime_cache[f] = os.stat(f)[stat.ST_MTIME] - except OSError: - if f in __mtime_cache: - del __mtime_cache[f] - return 0 - return __mtime_cache[f] - -def update_cache(f): - if f in __mtime_cache: - logger.debug(1, "Updating mtime cache for %s" % f) - update_mtime(f) - -def clear_cache(): - global __mtime_cache - __mtime_cache = {} - -def mark_dependency(d, f): - if f.startswith('./'): - f = "%s/%s" % (os.getcwd(), f[2:]) - deps = (d.getVar('__depends', False) or []) - s = (f, cached_mtime_noerror(f)) - if s not in deps: - deps.append(s) - d.setVar('__depends', deps) - -def check_dependency(d, f): - s = (f, cached_mtime_noerror(f)) - deps = (d.getVar('__depends', False) or []) - return s in deps - -def supports(fn, data): - """Returns true if we have a handler for this file, false otherwise""" - for h in handlers: - if h['supports'](fn, data): - return 1 - return 0 - -def handle(fn, data, include = 0): - """Call the handler that is appropriate for this file""" - for h in handlers: - if h['supports'](fn, data): - with data.inchistory.include(fn): - return h['handle'](fn, data, include) - raise ParseError("not a BitBake file", fn) - -def init(fn, data): - for h in handlers: - if h['supports'](fn): - return h['init'](data) - -def init_parser(d): - bb.parse.siggen = bb.siggen.init(d) - -def resolve_file(fn, d): - if not os.path.isabs(fn): - bbpath = d.getVar("BBPATH") - newfn, attempts = bb.utils.which(bbpath, fn, history=True) - for af in attempts: - mark_dependency(d, af) - if not newfn: - raise IOError(errno.ENOENT, "file %s not found in %s" % (fn, bbpath)) - fn = newfn - - mark_dependency(d, fn) - if not os.path.isfile(fn): - raise IOError(errno.ENOENT, "file %s not found" % fn) - - return fn - -# Used by OpenEmbedded metadata -__pkgsplit_cache__={} -def vars_from_file(mypkg, d): - if not mypkg or not mypkg.endswith((".bb", ".bbappend")): - return (None, None, None) - if mypkg in __pkgsplit_cache__: - return __pkgsplit_cache__[mypkg] - - myfile = os.path.splitext(os.path.basename(mypkg)) - parts = myfile[0].split('_') - __pkgsplit_cache__[mypkg] = parts - if len(parts) > 3: - raise ParseError("Unable to generate default variables from filename (too many underscores)", mypkg) - exp = 3 - len(parts) - tmplist = [] - while exp != 0: - exp -= 1 - tmplist.append(None) - parts.extend(tmplist) - return parts - -def get_file_depends(d): - '''Return the dependent files''' - dep_files = [] - depends = d.getVar('__base_depends', False) or [] - depends = depends + (d.getVar('__depends', False) or []) - for (fn, _) in depends: - dep_files.append(os.path.abspath(fn)) - return " ".join(dep_files) - -from bb.parse.parse_py import __version__, ConfHandler, BBHandler diff --git a/poky/bitbake/lib/bb/parse/ast.py b/poky/bitbake/lib/bb/parse/ast.py deleted file mode 100644 index dba4540..0000000 --- a/poky/bitbake/lib/bb/parse/ast.py +++ /dev/null @@ -1,439 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" - AbstractSyntaxTree classes for the Bitbake language -""" - -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2003, 2004 Phil Blundell -# Copyright (C) 2009 Holger Hans Peter Freyther -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - - -import re -import string -import logging -import bb -import itertools -from bb import methodpool -from bb.parse import logger - -class StatementGroup(list): - def eval(self, data): - for statement in self: - statement.eval(data) - -class AstNode(object): - def __init__(self, filename, lineno): - self.filename = filename - self.lineno = lineno - -class IncludeNode(AstNode): - def __init__(self, filename, lineno, what_file, force): - AstNode.__init__(self, filename, lineno) - self.what_file = what_file - self.force = force - - def eval(self, data): - """ - Include the file and evaluate the statements - """ - s = data.expand(self.what_file) - logger.debug(2, "CONF %s:%s: including %s", self.filename, self.lineno, s) - - # TODO: Cache those includes... maybe not here though - if self.force: - bb.parse.ConfHandler.include(self.filename, s, self.lineno, data, "include required") - else: - bb.parse.ConfHandler.include(self.filename, s, self.lineno, data, False) - -class ExportNode(AstNode): - def __init__(self, filename, lineno, var): - AstNode.__init__(self, filename, lineno) - self.var = var - - def eval(self, data): - data.setVarFlag(self.var, "export", 1, op = 'exported') - -class UnsetNode(AstNode): - def __init__(self, filename, lineno, var): - AstNode.__init__(self, filename, lineno) - self.var = var - - def eval(self, data): - loginfo = { - 'variable': self.var, - 'file': self.filename, - 'line': self.lineno, - } - data.delVar(self.var,**loginfo) - -class UnsetFlagNode(AstNode): - def __init__(self, filename, lineno, var, flag): - AstNode.__init__(self, filename, lineno) - self.var = var - self.flag = flag - - def eval(self, data): - loginfo = { - 'variable': self.var, - 'file': self.filename, - 'line': self.lineno, - } - data.delVarFlag(self.var, self.flag, **loginfo) - -class DataNode(AstNode): - """ - Various data related updates. For the sake of sanity - we have one class doing all this. This means that all - this need to be re-evaluated... we might be able to do - that faster with multiple classes. - """ - def __init__(self, filename, lineno, groupd): - AstNode.__init__(self, filename, lineno) - self.groupd = groupd - - def getFunc(self, key, data): - if 'flag' in self.groupd and self.groupd['flag'] != None: - return data.getVarFlag(key, self.groupd['flag'], expand=False, noweakdefault=True) - else: - return data.getVar(key, False, noweakdefault=True, parsing=True) - - def eval(self, data): - groupd = self.groupd - key = groupd["var"] - loginfo = { - 'variable': key, - 'file': self.filename, - 'line': self.lineno, - } - if "exp" in groupd and groupd["exp"] != None: - data.setVarFlag(key, "export", 1, op = 'exported', **loginfo) - - op = "set" - if "ques" in groupd and groupd["ques"] != None: - val = self.getFunc(key, data) - op = "set?" - if val == None: - val = groupd["value"] - elif "colon" in groupd and groupd["colon"] != None: - e = data.createCopy() - op = "immediate" - val = e.expand(groupd["value"], key + "[:=]") - elif "append" in groupd and groupd["append"] != None: - op = "append" - val = "%s %s" % ((self.getFunc(key, data) or ""), groupd["value"]) - elif "prepend" in groupd and groupd["prepend"] != None: - op = "prepend" - val = "%s %s" % (groupd["value"], (self.getFunc(key, data) or "")) - elif "postdot" in groupd and groupd["postdot"] != None: - op = "postdot" - val = "%s%s" % ((self.getFunc(key, data) or ""), groupd["value"]) - elif "predot" in groupd and groupd["predot"] != None: - op = "predot" - val = "%s%s" % (groupd["value"], (self.getFunc(key, data) or "")) - else: - val = groupd["value"] - - flag = None - if 'flag' in groupd and groupd['flag'] != None: - flag = groupd['flag'] - elif groupd["lazyques"]: - flag = "_defaultval" - - loginfo['op'] = op - loginfo['detail'] = groupd["value"] - - if flag: - data.setVarFlag(key, flag, val, **loginfo) - else: - data.setVar(key, val, parsing=True, **loginfo) - -class MethodNode(AstNode): - tr_tbl = str.maketrans('/.+-@%&', '_______') - - def __init__(self, filename, lineno, func_name, body, python, fakeroot): - AstNode.__init__(self, filename, lineno) - self.func_name = func_name - self.body = body - self.python = python - self.fakeroot = fakeroot - - def eval(self, data): - text = '\n'.join(self.body) - funcname = self.func_name - if self.func_name == "__anonymous": - funcname = ("__anon_%s_%s" % (self.lineno, self.filename.translate(MethodNode.tr_tbl))) - self.python = True - text = "def %s(d):\n" % (funcname) + text - bb.methodpool.insert_method(funcname, text, self.filename, self.lineno - len(self.body)) - anonfuncs = data.getVar('__BBANONFUNCS', False) or [] - anonfuncs.append(funcname) - data.setVar('__BBANONFUNCS', anonfuncs) - if data.getVar(funcname, False): - # clean up old version of this piece of metadata, as its - # flags could cause problems - data.delVarFlag(funcname, 'python') - data.delVarFlag(funcname, 'fakeroot') - if self.python: - data.setVarFlag(funcname, "python", "1") - if self.fakeroot: - data.setVarFlag(funcname, "fakeroot", "1") - data.setVarFlag(funcname, "func", 1) - data.setVar(funcname, text, parsing=True) - data.setVarFlag(funcname, 'filename', self.filename) - data.setVarFlag(funcname, 'lineno', str(self.lineno - len(self.body))) - -class PythonMethodNode(AstNode): - def __init__(self, filename, lineno, function, modulename, body): - AstNode.__init__(self, filename, lineno) - self.function = function - self.modulename = modulename - self.body = body - - def eval(self, data): - # Note we will add root to parsedmethods after having parse - # 'this' file. This means we will not parse methods from - # bb classes twice - text = '\n'.join(self.body) - bb.methodpool.insert_method(self.modulename, text, self.filename, self.lineno - len(self.body) - 1) - data.setVarFlag(self.function, "func", 1) - data.setVarFlag(self.function, "python", 1) - data.setVar(self.function, text, parsing=True) - data.setVarFlag(self.function, 'filename', self.filename) - data.setVarFlag(self.function, 'lineno', str(self.lineno - len(self.body) - 1)) - -class ExportFuncsNode(AstNode): - def __init__(self, filename, lineno, fns, classname): - AstNode.__init__(self, filename, lineno) - self.n = fns.split() - self.classname = classname - - def eval(self, data): - - for func in self.n: - calledfunc = self.classname + "_" + func - - if data.getVar(func, False) and not data.getVarFlag(func, 'export_func', False): - continue - - if data.getVar(func, False): - data.setVarFlag(func, 'python', None) - data.setVarFlag(func, 'func', None) - - for flag in [ "func", "python" ]: - if data.getVarFlag(calledfunc, flag, False): - data.setVarFlag(func, flag, data.getVarFlag(calledfunc, flag, False)) - for flag in [ "dirs" ]: - if data.getVarFlag(func, flag, False): - data.setVarFlag(calledfunc, flag, data.getVarFlag(func, flag, False)) - data.setVarFlag(func, "filename", "autogenerated") - data.setVarFlag(func, "lineno", 1) - - if data.getVarFlag(calledfunc, "python", False): - data.setVar(func, " bb.build.exec_func('" + calledfunc + "', d)\n", parsing=True) - else: - if "-" in self.classname: - bb.fatal("The classname %s contains a dash character and is calling an sh function %s using EXPORT_FUNCTIONS. Since a dash is illegal in sh function names, this cannot work, please rename the class or don't use EXPORT_FUNCTIONS." % (self.classname, calledfunc)) - data.setVar(func, " " + calledfunc + "\n", parsing=True) - data.setVarFlag(func, 'export_func', '1') - -class AddTaskNode(AstNode): - def __init__(self, filename, lineno, func, before, after): - AstNode.__init__(self, filename, lineno) - self.func = func - self.before = before - self.after = after - - def eval(self, data): - bb.build.addtask(self.func, self.before, self.after, data) - -class DelTaskNode(AstNode): - def __init__(self, filename, lineno, func): - AstNode.__init__(self, filename, lineno) - self.func = func - - def eval(self, data): - bb.build.deltask(self.func, data) - -class BBHandlerNode(AstNode): - def __init__(self, filename, lineno, fns): - AstNode.__init__(self, filename, lineno) - self.hs = fns.split() - - def eval(self, data): - bbhands = data.getVar('__BBHANDLERS', False) or [] - for h in self.hs: - bbhands.append(h) - data.setVarFlag(h, "handler", 1) - data.setVar('__BBHANDLERS', bbhands) - -class InheritNode(AstNode): - def __init__(self, filename, lineno, classes): - AstNode.__init__(self, filename, lineno) - self.classes = classes - - def eval(self, data): - bb.parse.BBHandler.inherit(self.classes, self.filename, self.lineno, data) - -def handleInclude(statements, filename, lineno, m, force): - statements.append(IncludeNode(filename, lineno, m.group(1), force)) - -def handleExport(statements, filename, lineno, m): - statements.append(ExportNode(filename, lineno, m.group(1))) - -def handleUnset(statements, filename, lineno, m): - statements.append(UnsetNode(filename, lineno, m.group(1))) - -def handleUnsetFlag(statements, filename, lineno, m): - statements.append(UnsetFlagNode(filename, lineno, m.group(1), m.group(2))) - -def handleData(statements, filename, lineno, groupd): - statements.append(DataNode(filename, lineno, groupd)) - -def handleMethod(statements, filename, lineno, func_name, body, python, fakeroot): - statements.append(MethodNode(filename, lineno, func_name, body, python, fakeroot)) - -def handlePythonMethod(statements, filename, lineno, funcname, modulename, body): - statements.append(PythonMethodNode(filename, lineno, funcname, modulename, body)) - -def handleExportFuncs(statements, filename, lineno, m, classname): - statements.append(ExportFuncsNode(filename, lineno, m.group(1), classname)) - -def handleAddTask(statements, filename, lineno, m): - func = m.group("func") - before = m.group("before") - after = m.group("after") - if func is None: - return - - statements.append(AddTaskNode(filename, lineno, func, before, after)) - -def handleDelTask(statements, filename, lineno, m): - func = m.group("func") - if func is None: - return - - statements.append(DelTaskNode(filename, lineno, func)) - -def handleBBHandlers(statements, filename, lineno, m): - statements.append(BBHandlerNode(filename, lineno, m.group(1))) - -def handleInherit(statements, filename, lineno, m): - classes = m.group(1) - statements.append(InheritNode(filename, lineno, classes)) - -def finalize(fn, d, variant = None): - saved_handlers = bb.event.get_handlers().copy() - - for var in d.getVar('__BBHANDLERS', False) or []: - # try to add the handler - handlerfn = d.getVarFlag(var, "filename", False) - if not handlerfn: - bb.fatal("Undefined event handler function '%s'" % var) - handlerln = int(d.getVarFlag(var, "lineno", False)) - bb.event.register(var, d.getVar(var, False), (d.getVarFlag(var, "eventmask") or "").split(), handlerfn, handlerln) - - bb.event.fire(bb.event.RecipePreFinalise(fn), d) - - bb.data.expandKeys(d) - code = [] - for funcname in d.getVar("__BBANONFUNCS", False) or []: - code.append("%s(d)" % funcname) - bb.utils.better_exec("\n".join(code), {"d": d}) - - tasklist = d.getVar('__BBTASKS', False) or [] - bb.event.fire(bb.event.RecipeTaskPreProcess(fn, list(tasklist)), d) - bb.build.add_tasks(tasklist, d) - - bb.parse.siggen.finalise(fn, d, variant) - - d.setVar('BBINCLUDED', bb.parse.get_file_depends(d)) - - bb.event.fire(bb.event.RecipeParsed(fn), d) - bb.event.set_handlers(saved_handlers) - -def _create_variants(datastores, names, function, onlyfinalise): - def create_variant(name, orig_d, arg = None): - if onlyfinalise and name not in onlyfinalise: - return - new_d = bb.data.createCopy(orig_d) - function(arg or name, new_d) - datastores[name] = new_d - - for variant in list(datastores.keys()): - for name in names: - if not variant: - # Based on main recipe - create_variant(name, datastores[""]) - else: - create_variant("%s-%s" % (variant, name), datastores[variant], name) - -def multi_finalize(fn, d): - appends = (d.getVar("__BBAPPEND") or "").split() - for append in appends: - logger.debug(1, "Appending .bbappend file %s to %s", append, fn) - bb.parse.BBHandler.handle(append, d, True) - - onlyfinalise = d.getVar("__ONLYFINALISE", False) - - safe_d = d - d = bb.data.createCopy(safe_d) - try: - finalize(fn, d) - except bb.parse.SkipRecipe as e: - d.setVar("__SKIPPED", e.args[0]) - datastores = {"": safe_d} - - extended = d.getVar("BBCLASSEXTEND") or "" - if extended: - # the following is to support bbextends with arguments, for e.g. multilib - # an example is as follows: - # BBCLASSEXTEND = "multilib:lib32" - # it will create foo-lib32, inheriting multilib.bbclass and set - # BBEXTENDCURR to "multilib" and BBEXTENDVARIANT to "lib32" - extendedmap = {} - variantmap = {} - - for ext in extended.split(): - eext = ext.split(':', 2) - if len(eext) > 1: - extendedmap[ext] = eext[0] - variantmap[ext] = eext[1] - else: - extendedmap[ext] = ext - - pn = d.getVar("PN") - def extendfunc(name, d): - if name != extendedmap[name]: - d.setVar("BBEXTENDCURR", extendedmap[name]) - d.setVar("BBEXTENDVARIANT", variantmap[name]) - else: - d.setVar("PN", "%s-%s" % (pn, name)) - bb.parse.BBHandler.inherit(extendedmap[name], fn, 0, d) - - safe_d.setVar("BBCLASSEXTEND", extended) - _create_variants(datastores, extendedmap.keys(), extendfunc, onlyfinalise) - - for variant in datastores.keys(): - if variant: - try: - if not onlyfinalise or variant in onlyfinalise: - finalize(fn, datastores[variant], variant) - except bb.parse.SkipRecipe as e: - datastores[variant].setVar("__SKIPPED", e.args[0]) - - datastores[""] = d - return datastores diff --git a/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py b/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py deleted file mode 100644 index f89ad24..0000000 --- a/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ /dev/null @@ -1,254 +0,0 @@ -#!/usr/bin/env python -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" - class for handling .bb files - - Reads a .bb file and obtains its metadata - -""" - - -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2003, 2004 Phil Blundell -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - - -import re, bb, os -import logging -import bb.build, bb.utils -from bb import data - -from . import ConfHandler -from .. import resolve_file, ast, logger, ParseError -from .ConfHandler import include, init - -# For compatibility -bb.deprecate_import(__name__, "bb.parse", ["vars_from_file"]) - -__func_start_regexp__ = re.compile( r"(((?P<py>python)|(?P<fr>fakeroot))\s*)*(?P<func>[\w\.\-\+\{\}\$]+)?\s*\(\s*\)\s*{$" ) -__inherit_regexp__ = re.compile( r"inherit\s+(.+)" ) -__export_func_regexp__ = re.compile( r"EXPORT_FUNCTIONS\s+(.+)" ) -__addtask_regexp__ = re.compile("addtask\s+(?P<func>\w+)\s*((before\s*(?P<before>((.*(?=after))|(.*))))|(after\s*(?P<after>((.*(?=before))|(.*)))))*") -__deltask_regexp__ = re.compile("deltask\s+(?P<func>\w+)") -__addhandler_regexp__ = re.compile( r"addhandler\s+(.+)" ) -__def_regexp__ = re.compile( r"def\s+(\w+).*:" ) -__python_func_regexp__ = re.compile( r"(\s+.*)|(^$)" ) - -__infunc__ = [] -__inpython__ = False -__body__ = [] -__classname__ = "" - -cached_statements = {} - -def supports(fn, d): - """Return True if fn has a supported extension""" - return os.path.splitext(fn)[-1] in [".bb", ".bbclass", ".inc"] - -def inherit(files, fn, lineno, d): - __inherit_cache = d.getVar('__inherit_cache', False) or [] - files = d.expand(files).split() - for file in files: - if not os.path.isabs(file) and not file.endswith(".bbclass"): - file = os.path.join('classes', '%s.bbclass' % file) - - if not os.path.isabs(file): - bbpath = d.getVar("BBPATH") - abs_fn, attempts = bb.utils.which(bbpath, file, history=True) - for af in attempts: - if af != abs_fn: - bb.parse.mark_dependency(d, af) - if abs_fn: - file = abs_fn - - if not file in __inherit_cache: - logger.debug(1, "Inheriting %s (from %s:%d)" % (file, fn, lineno)) - __inherit_cache.append( file ) - d.setVar('__inherit_cache', __inherit_cache) - include(fn, file, lineno, d, "inherit") - __inherit_cache = d.getVar('__inherit_cache', False) or [] - -def get_statements(filename, absolute_filename, base_name): - global cached_statements - - try: - return cached_statements[absolute_filename] - except KeyError: - with open(absolute_filename, 'r') as f: - statements = ast.StatementGroup() - - lineno = 0 - while True: - lineno = lineno + 1 - s = f.readline() - if not s: break - s = s.rstrip() - feeder(lineno, s, filename, base_name, statements) - - if __inpython__: - # add a blank line to close out any python definition - feeder(lineno, "", filename, base_name, statements, eof=True) - - if filename.endswith(".bbclass") or filename.endswith(".inc"): - cached_statements[absolute_filename] = statements - return statements - -def handle(fn, d, include): - global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __residue__, __classname__ - __body__ = [] - __infunc__ = [] - __classname__ = "" - __residue__ = [] - - base_name = os.path.basename(fn) - (root, ext) = os.path.splitext(base_name) - init(d) - - if ext == ".bbclass": - __classname__ = root - __inherit_cache = d.getVar('__inherit_cache', False) or [] - if not fn in __inherit_cache: - __inherit_cache.append(fn) - d.setVar('__inherit_cache', __inherit_cache) - - if include != 0: - oldfile = d.getVar('FILE', False) - else: - oldfile = None - - abs_fn = resolve_file(fn, d) - - if include: - bb.parse.mark_dependency(d, abs_fn) - - # actual loading - statements = get_statements(fn, abs_fn, base_name) - - # DONE WITH PARSING... time to evaluate - if ext != ".bbclass" and abs_fn != oldfile: - d.setVar('FILE', abs_fn) - - try: - statements.eval(d) - except bb.parse.SkipRecipe: - d.setVar("__SKIPPED", True) - if include == 0: - return { "" : d } - - if __infunc__: - raise ParseError("Shell function %s is never closed" % __infunc__[0], __infunc__[1], __infunc__[2]) - if __residue__: - raise ParseError("Leftover unparsed (incomplete?) data %s from %s" % __residue__, fn) - - if ext != ".bbclass" and include == 0: - return ast.multi_finalize(fn, d) - - if ext != ".bbclass" and oldfile and abs_fn != oldfile: - d.setVar("FILE", oldfile) - - return d - -def feeder(lineno, s, fn, root, statements, eof=False): - global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __def_regexp__, __python_func_regexp__, __inpython__, __infunc__, __body__, bb, __residue__, __classname__ - if __infunc__: - if s == '}': - __body__.append('') - ast.handleMethod(statements, fn, lineno, __infunc__[0], __body__, __infunc__[3], __infunc__[4]) - __infunc__ = [] - __body__ = [] - else: - __body__.append(s) - return - - if __inpython__: - m = __python_func_regexp__.match(s) - if m and not eof: - __body__.append(s) - return - else: - ast.handlePythonMethod(statements, fn, lineno, __inpython__, - root, __body__) - __body__ = [] - __inpython__ = False - - if eof: - return - - if s and s[0] == '#': - if len(__residue__) != 0 and __residue__[0][0] != "#": - bb.fatal("There is a comment on line %s of file %s (%s) which is in the middle of a multiline expression.\nBitbake used to ignore these but no longer does so, please fix your metadata as errors are likely as a result of this change." % (lineno, fn, s)) - - if len(__residue__) != 0 and __residue__[0][0] == "#" and (not s or s[0] != "#"): - bb.fatal("There is a confusing multiline, partially commented expression on line %s of file %s (%s).\nPlease clarify whether this is all a comment or should be parsed." % (lineno, fn, s)) - - if s and s[-1] == '\\': - __residue__.append(s[:-1]) - return - - s = "".join(__residue__) + s - __residue__ = [] - - # Skip empty lines - if s == '': - return - - # Skip comments - if s[0] == '#': - return - - m = __func_start_regexp__.match(s) - if m: - __infunc__ = [m.group("func") or "__anonymous", fn, lineno, m.group("py") is not None, m.group("fr") is not None] - return - - m = __def_regexp__.match(s) - if m: - __body__.append(s) - __inpython__ = m.group(1) - - return - - m = __export_func_regexp__.match(s) - if m: - ast.handleExportFuncs(statements, fn, lineno, m, __classname__) - return - - m = __addtask_regexp__.match(s) - if m: - ast.handleAddTask(statements, fn, lineno, m) - return - - m = __deltask_regexp__.match(s) - if m: - ast.handleDelTask(statements, fn, lineno, m) - return - - m = __addhandler_regexp__.match(s) - if m: - ast.handleBBHandlers(statements, fn, lineno, m) - return - - m = __inherit_regexp__.match(s) - if m: - ast.handleInherit(statements, fn, lineno, m) - return - - return ConfHandler.feeder(lineno, s, fn, statements) - -# Add us to the handlers list -from .. import handlers -handlers.append({'supports': supports, 'handle': handle, 'init': init}) -del handlers diff --git a/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py b/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py deleted file mode 100644 index 97aa130..0000000 --- a/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py +++ /dev/null @@ -1,213 +0,0 @@ -#!/usr/bin/env python -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" - class for handling configuration data files - - Reads a .conf file and obtains its metadata - -""" - -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2003, 2004 Phil Blundell -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import errno -import re -import os -import bb.utils -from bb.parse import ParseError, resolve_file, ast, logger, handle - -__config_regexp__ = re.compile( r""" - ^ - (?P<exp>export\s+)? - (?P<var>[a-zA-Z0-9\-_+.${}/~]+?) - (\[(?P<flag>[a-zA-Z0-9\-_+.]+)\])? - - \s* ( - (?P<colon>:=) | - (?P<lazyques>\?\?=) | - (?P<ques>\?=) | - (?P<append>\+=) | - (?P<prepend>=\+) | - (?P<predot>=\.) | - (?P<postdot>\.=) | - = - ) \s* - - (?!'[^']*'[^']*'$) - (?!\"[^\"]*\"[^\"]*\"$) - (?P<apo>['\"]) - (?P<value>.*) - (?P=apo) - $ - """, re.X) -__include_regexp__ = re.compile( r"include\s+(.+)" ) -__require_regexp__ = re.compile( r"require\s+(.+)" ) -__export_regexp__ = re.compile( r"export\s+([a-zA-Z0-9\-_+.${}/~]+)$" ) -__unset_regexp__ = re.compile( r"unset\s+([a-zA-Z0-9\-_+.${}/~]+)$" ) -__unset_flag_regexp__ = re.compile( r"unset\s+([a-zA-Z0-9\-_+.${}/~]+)\[([a-zA-Z0-9\-_+.]+)\]$" ) - -def init(data): - topdir = data.getVar('TOPDIR', False) - if not topdir: - data.setVar('TOPDIR', os.getcwd()) - - -def supports(fn, d): - return fn[-5:] == ".conf" - -def include(parentfn, fns, lineno, data, error_out): - """ - error_out: A string indicating the verb (e.g. "include", "inherit") to be - used in a ParseError that will be raised if the file to be included could - not be included. Specify False to avoid raising an error in this case. - """ - fns = data.expand(fns) - parentfn = data.expand(parentfn) - - # "include" or "require" accept zero to n space-separated file names to include. - for fn in fns.split(): - include_single_file(parentfn, fn, lineno, data, error_out) - -def include_single_file(parentfn, fn, lineno, data, error_out): - """ - Helper function for include() which does not expand or split its parameters. - """ - if parentfn == fn: # prevent infinite recursion - return None - - if not os.path.isabs(fn): - dname = os.path.dirname(parentfn) - bbpath = "%s:%s" % (dname, data.getVar("BBPATH")) - abs_fn, attempts = bb.utils.which(bbpath, fn, history=True) - if abs_fn and bb.parse.check_dependency(data, abs_fn): - logger.warning("Duplicate inclusion for %s in %s" % (abs_fn, data.getVar('FILE'))) - for af in attempts: - bb.parse.mark_dependency(data, af) - if abs_fn: - fn = abs_fn - elif bb.parse.check_dependency(data, fn): - logger.warning("Duplicate inclusion for %s in %s" % (fn, data.getVar('FILE'))) - - try: - bb.parse.handle(fn, data, True) - except (IOError, OSError) as exc: - if exc.errno == errno.ENOENT: - if error_out: - raise ParseError("Could not %s file %s" % (error_out, fn), parentfn, lineno) - logger.debug(2, "CONF file '%s' not found", fn) - else: - if error_out: - raise ParseError("Could not %s file %s: %s" % (error_out, fn, exc.strerror), parentfn, lineno) - else: - raise ParseError("Error parsing %s: %s" % (fn, exc.strerror), parentfn, lineno) - -# We have an issue where a UI might want to enforce particular settings such as -# an empty DISTRO variable. If configuration files do something like assigning -# a weak default, it turns out to be very difficult to filter out these changes, -# particularly when the weak default might appear half way though parsing a chain -# of configuration files. We therefore let the UIs hook into configuration file -# parsing. This turns out to be a hard problem to solve any other way. -confFilters = [] - -def handle(fn, data, include): - init(data) - - if include == 0: - oldfile = None - else: - oldfile = data.getVar('FILE', False) - - abs_fn = resolve_file(fn, data) - f = open(abs_fn, 'r') - - if include: - bb.parse.mark_dependency(data, abs_fn) - - statements = ast.StatementGroup() - lineno = 0 - while True: - lineno = lineno + 1 - s = f.readline() - if not s: - break - w = s.strip() - # skip empty lines - if not w: - continue - s = s.rstrip() - while s[-1] == '\\': - s2 = f.readline().strip() - lineno = lineno + 1 - if (not s2 or s2 and s2[0] != "#") and s[0] == "#" : - bb.fatal("There is a confusing multiline, partially commented expression on line %s of file %s (%s).\nPlease clarify whether this is all a comment or should be parsed." % (lineno, fn, s)) - s = s[:-1] + s2 - # skip comments - if s[0] == '#': - continue - feeder(lineno, s, abs_fn, statements) - - # DONE WITH PARSING... time to evaluate - data.setVar('FILE', abs_fn) - statements.eval(data) - if oldfile: - data.setVar('FILE', oldfile) - - f.close() - - for f in confFilters: - f(fn, data) - - return data - -def feeder(lineno, s, fn, statements): - m = __config_regexp__.match(s) - if m: - groupd = m.groupdict() - ast.handleData(statements, fn, lineno, groupd) - return - - m = __include_regexp__.match(s) - if m: - ast.handleInclude(statements, fn, lineno, m, False) - return - - m = __require_regexp__.match(s) - if m: - ast.handleInclude(statements, fn, lineno, m, True) - return - - m = __export_regexp__.match(s) - if m: - ast.handleExport(statements, fn, lineno, m) - return - - m = __unset_regexp__.match(s) - if m: - ast.handleUnset(statements, fn, lineno, m) - return - - m = __unset_flag_regexp__.match(s) - if m: - ast.handleUnsetFlag(statements, fn, lineno, m) - return - - raise ParseError("unparsed line: '%s'" % s, fn, lineno); - -# Add us to the handlers list -from bb.parse import handlers -handlers.append({'supports': supports, 'handle': handle, 'init': init}) -del handlers diff --git a/poky/bitbake/lib/bb/parse/parse_py/__init__.py b/poky/bitbake/lib/bb/parse/parse_py/__init__.py deleted file mode 100644 index 3e658d0..0000000 --- a/poky/bitbake/lib/bb/parse/parse_py/__init__.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake Parsers - -File parsers for the BitBake build tools. - -""" - -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2003, 2004 Phil Blundell -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Based on functions from the base bb module, Copyright 2003 Holger Schurig - -from __future__ import absolute_import -from . import ConfHandler -from . import BBHandler - -__version__ = '1.0' diff --git a/poky/bitbake/lib/bb/persist_data.py b/poky/bitbake/lib/bb/persist_data.py deleted file mode 100644 index bef7018..0000000 --- a/poky/bitbake/lib/bb/persist_data.py +++ /dev/null @@ -1,214 +0,0 @@ -"""BitBake Persistent Data Store - -Used to store data in a central location such that other threads/tasks can -access them at some future date. Acts as a convenience wrapper around sqlite, -currently, providing a key/value store accessed by 'domain'. -""" - -# Copyright (C) 2007 Richard Purdie -# Copyright (C) 2010 Chris Larson <chris_larson@mentor.com> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import collections -import logging -import os.path -import sys -import warnings -from bb.compat import total_ordering -from collections import Mapping -import sqlite3 - -sqlversion = sqlite3.sqlite_version_info -if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3): - raise Exception("sqlite3 version 3.3.0 or later is required.") - - -logger = logging.getLogger("BitBake.PersistData") -if hasattr(sqlite3, 'enable_shared_cache'): - try: - sqlite3.enable_shared_cache(True) - except sqlite3.OperationalError: - pass - - -@total_ordering -class SQLTable(collections.MutableMapping): - """Object representing a table/domain in the database""" - def __init__(self, cachefile, table): - self.cachefile = cachefile - self.table = table - self.cursor = connect(self.cachefile) - - self._execute("CREATE TABLE IF NOT EXISTS %s(key TEXT, value TEXT);" - % table) - - def _execute(self, *query): - """Execute a query, waiting to acquire a lock if necessary""" - count = 0 - while True: - try: - return self.cursor.execute(*query) - except sqlite3.OperationalError as exc: - if 'database is locked' in str(exc) and count < 500: - count = count + 1 - self.cursor.close() - self.cursor = connect(self.cachefile) - continue - raise - - def __enter__(self): - self.cursor.__enter__() - return self - - def __exit__(self, *excinfo): - self.cursor.__exit__(*excinfo) - - def __getitem__(self, key): - data = self._execute("SELECT * from %s where key=?;" % - self.table, [key]) - for row in data: - return row[1] - raise KeyError(key) - - def __delitem__(self, key): - if key not in self: - raise KeyError(key) - self._execute("DELETE from %s where key=?;" % self.table, [key]) - - def __setitem__(self, key, value): - if not isinstance(key, str): - raise TypeError('Only string keys are supported') - elif not isinstance(value, str): - raise TypeError('Only string values are supported') - - data = self._execute("SELECT * from %s where key=?;" % - self.table, [key]) - exists = len(list(data)) - if exists: - self._execute("UPDATE %s SET value=? WHERE key=?;" % self.table, - [value, key]) - else: - self._execute("INSERT into %s(key, value) values (?, ?);" % - self.table, [key, value]) - - def __contains__(self, key): - return key in set(self) - - def __len__(self): - data = self._execute("SELECT COUNT(key) FROM %s;" % self.table) - for row in data: - return row[0] - - def __iter__(self): - data = self._execute("SELECT key FROM %s;" % self.table) - return (row[0] for row in data) - - def __lt__(self, other): - if not isinstance(other, Mapping): - raise NotImplemented - - return len(self) < len(other) - - def get_by_pattern(self, pattern): - data = self._execute("SELECT * FROM %s WHERE key LIKE ?;" % - self.table, [pattern]) - return [row[1] for row in data] - - def values(self): - return list(self.itervalues()) - - def itervalues(self): - data = self._execute("SELECT value FROM %s;" % self.table) - return (row[0] for row in data) - - def items(self): - return list(self.iteritems()) - - def iteritems(self): - return self._execute("SELECT * FROM %s;" % self.table) - - def clear(self): - self._execute("DELETE FROM %s;" % self.table) - - def has_key(self, key): - return key in self - - -class PersistData(object): - """Deprecated representation of the bitbake persistent data store""" - def __init__(self, d): - warnings.warn("Use of PersistData is deprecated. Please use " - "persist(domain, d) instead.", - category=DeprecationWarning, - stacklevel=2) - - self.data = persist(d) - logger.debug(1, "Using '%s' as the persistent data cache", - self.data.filename) - - def addDomain(self, domain): - """ - Add a domain (pending deprecation) - """ - return self.data[domain] - - def delDomain(self, domain): - """ - Removes a domain and all the data it contains - """ - del self.data[domain] - - def getKeyValues(self, domain): - """ - Return a list of key + value pairs for a domain - """ - return list(self.data[domain].items()) - - def getValue(self, domain, key): - """ - Return the value of a key for a domain - """ - return self.data[domain][key] - - def setValue(self, domain, key, value): - """ - Sets the value of a key for a domain - """ - self.data[domain][key] = value - - def delValue(self, domain, key): - """ - Deletes a key/value pair - """ - del self.data[domain][key] - -def connect(database): - connection = sqlite3.connect(database, timeout=5, isolation_level=None) - connection.execute("pragma synchronous = off;") - connection.text_factory = str - return connection - -def persist(domain, d): - """Convenience factory for SQLTable objects based upon metadata""" - import bb.utils - cachedir = (d.getVar("PERSISTENT_DIR") or - d.getVar("CACHE")) - if not cachedir: - logger.critical("Please set the 'PERSISTENT_DIR' or 'CACHE' variable") - sys.exit(1) - - bb.utils.mkdirhier(cachedir) - cachefile = os.path.join(cachedir, "bb_persist_data.sqlite3") - return SQLTable(cachefile, domain) diff --git a/poky/bitbake/lib/bb/process.py b/poky/bitbake/lib/bb/process.py deleted file mode 100644 index e69697c..0000000 --- a/poky/bitbake/lib/bb/process.py +++ /dev/null @@ -1,179 +0,0 @@ -import logging -import signal -import subprocess -import errno -import select - -logger = logging.getLogger('BitBake.Process') - -def subprocess_setup(): - # Python installs a SIGPIPE handler by default. This is usually not what - # non-Python subprocesses expect. - signal.signal(signal.SIGPIPE, signal.SIG_DFL) - -class CmdError(RuntimeError): - def __init__(self, command, msg=None): - self.command = command - self.msg = msg - - def __str__(self): - if not isinstance(self.command, str): - cmd = subprocess.list2cmdline(self.command) - else: - cmd = self.command - - msg = "Execution of '%s' failed" % cmd - if self.msg: - msg += ': %s' % self.msg - return msg - -class NotFoundError(CmdError): - def __str__(self): - return CmdError.__str__(self) + ": command not found" - -class ExecutionError(CmdError): - def __init__(self, command, exitcode, stdout = None, stderr = None): - CmdError.__init__(self, command) - self.exitcode = exitcode - self.stdout = stdout - self.stderr = stderr - - def __str__(self): - message = "" - if self.stderr: - message += self.stderr - if self.stdout: - message += self.stdout - if message: - message = ":\n" + message - return (CmdError.__str__(self) + - " with exit code %s" % self.exitcode + message) - -class Popen(subprocess.Popen): - defaults = { - "close_fds": True, - "preexec_fn": subprocess_setup, - "stdout": subprocess.PIPE, - "stderr": subprocess.STDOUT, - "stdin": subprocess.PIPE, - "shell": False, - } - - def __init__(self, *args, **kwargs): - options = dict(self.defaults) - options.update(kwargs) - subprocess.Popen.__init__(self, *args, **options) - -def _logged_communicate(pipe, log, input, extrafiles): - if pipe.stdin: - if input is not None: - pipe.stdin.write(input) - pipe.stdin.close() - - outdata, errdata = [], [] - rin = [] - - if pipe.stdout is not None: - bb.utils.nonblockingfd(pipe.stdout.fileno()) - rin.append(pipe.stdout) - if pipe.stderr is not None: - bb.utils.nonblockingfd(pipe.stderr.fileno()) - rin.append(pipe.stderr) - for fobj, _ in extrafiles: - bb.utils.nonblockingfd(fobj.fileno()) - rin.append(fobj) - - def readextras(selected): - for fobj, func in extrafiles: - if fobj in selected: - try: - data = fobj.read() - except IOError as err: - if err.errno == errno.EAGAIN or err.errno == errno.EWOULDBLOCK: - data = None - if data is not None: - func(data) - - def read_all_pipes(log, rin, outdata, errdata): - rlist = rin - stdoutbuf = b"" - stderrbuf = b"" - - try: - r,w,e = select.select (rlist, [], [], 1) - except OSError as e: - if e.errno != errno.EINTR: - raise - - readextras(r) - - if pipe.stdout in r: - data = stdoutbuf + pipe.stdout.read() - if data is not None and len(data) > 0: - try: - data = data.decode("utf-8") - outdata.append(data) - log.write(data) - log.flush() - stdoutbuf = b"" - except UnicodeDecodeError: - stdoutbuf = data - - if pipe.stderr in r: - data = stderrbuf + pipe.stderr.read() - if data is not None and len(data) > 0: - try: - data = data.decode("utf-8") - errdata.append(data) - log.write(data) - log.flush() - stderrbuf = b"" - except UnicodeDecodeError: - stderrbuf = data - - try: - # Read all pipes while the process is open - while pipe.poll() is None: - read_all_pipes(log, rin, outdata, errdata) - - # Pocess closed, drain all pipes... - read_all_pipes(log, rin, outdata, errdata) - finally: - log.flush() - - if pipe.stdout is not None: - pipe.stdout.close() - if pipe.stderr is not None: - pipe.stderr.close() - return ''.join(outdata), ''.join(errdata) - -def run(cmd, input=None, log=None, extrafiles=None, **options): - """Convenience function to run a command and return its output, raising an - exception when the command fails""" - - if not extrafiles: - extrafiles = [] - - if isinstance(cmd, str) and not "shell" in options: - options["shell"] = True - - try: - pipe = Popen(cmd, **options) - except OSError as exc: - if exc.errno == 2: - raise NotFoundError(cmd) - else: - raise CmdError(cmd, exc) - - if log: - stdout, stderr = _logged_communicate(pipe, log, input, extrafiles) - else: - stdout, stderr = pipe.communicate(input) - if not stdout is None: - stdout = stdout.decode("utf-8") - if not stderr is None: - stderr = stderr.decode("utf-8") - - if pipe.returncode != 0: - raise ExecutionError(cmd, pipe.returncode, stdout, stderr) - return stdout, stderr diff --git a/poky/bitbake/lib/bb/progress.py b/poky/bitbake/lib/bb/progress.py deleted file mode 100644 index f54d1c7..0000000 --- a/poky/bitbake/lib/bb/progress.py +++ /dev/null @@ -1,276 +0,0 @@ -""" -BitBake progress handling code -""" - -# Copyright (C) 2016 Intel Corporation -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import sys -import re -import time -import inspect -import bb.event -import bb.build - -class ProgressHandler(object): - """ - Base class that can pretend to be a file object well enough to be - used to build objects to intercept console output and determine the - progress of some operation. - """ - def __init__(self, d, outfile=None): - self._progress = 0 - self._data = d - self._lastevent = 0 - if outfile: - self._outfile = outfile - else: - self._outfile = sys.stdout - - def _fire_progress(self, taskprogress, rate=None): - """Internal function to fire the progress event""" - bb.event.fire(bb.build.TaskProgress(taskprogress, rate), self._data) - - def write(self, string): - self._outfile.write(string) - - def flush(self): - self._outfile.flush() - - def update(self, progress, rate=None): - ts = time.time() - if progress > 100: - progress = 100 - if progress != self._progress or self._lastevent + 1 < ts: - self._fire_progress(progress, rate) - self._lastevent = ts - self._progress = progress - -class LineFilterProgressHandler(ProgressHandler): - """ - A ProgressHandler variant that provides the ability to filter out - the lines if they contain progress information. Additionally, it - filters out anything before the last line feed on a line. This can - be used to keep the logs clean of output that we've only enabled for - getting progress, assuming that that can be done on a per-line - basis. - """ - def __init__(self, d, outfile=None): - self._linebuffer = '' - super(LineFilterProgressHandler, self).__init__(d, outfile) - - def write(self, string): - self._linebuffer += string - while True: - breakpos = self._linebuffer.find('\n') + 1 - if breakpos == 0: - break - line = self._linebuffer[:breakpos] - self._linebuffer = self._linebuffer[breakpos:] - # Drop any line feeds and anything that precedes them - lbreakpos = line.rfind('\r') + 1 - if lbreakpos: - line = line[lbreakpos:] - if self.writeline(line): - super(LineFilterProgressHandler, self).write(line) - - def writeline(self, line): - return True - -class BasicProgressHandler(ProgressHandler): - def __init__(self, d, regex=r'(\d+)%', outfile=None): - super(BasicProgressHandler, self).__init__(d, outfile) - self._regex = re.compile(regex) - # Send an initial progress event so the bar gets shown - self._fire_progress(0) - - def write(self, string): - percs = self._regex.findall(string) - if percs: - progress = int(percs[-1]) - self.update(progress) - super(BasicProgressHandler, self).write(string) - -class OutOfProgressHandler(ProgressHandler): - def __init__(self, d, regex, outfile=None): - super(OutOfProgressHandler, self).__init__(d, outfile) - self._regex = re.compile(regex) - # Send an initial progress event so the bar gets shown - self._fire_progress(0) - - def write(self, string): - nums = self._regex.findall(string) - if nums: - progress = (float(nums[-1][0]) / float(nums[-1][1])) * 100 - self.update(progress) - super(OutOfProgressHandler, self).write(string) - -class MultiStageProgressReporter(object): - """ - Class which allows reporting progress without the caller - having to know where they are in the overall sequence. Useful - for tasks made up of python code spread across multiple - classes / functions - the progress reporter object can - be passed around or stored at the object level and calls - to next_stage() and update() made whereever needed. - """ - def __init__(self, d, stage_weights, debug=False): - """ - Initialise the progress reporter. - - Parameters: - * d: the datastore (needed for firing the events) - * stage_weights: a list of weight values, one for each stage. - The value is scaled internally so you only need to specify - values relative to other values in the list, so if there - are two stages and the first takes 2s and the second takes - 10s you would specify [2, 10] (or [1, 5], it doesn't matter). - * debug: specify True (and ensure you call finish() at the end) - in order to show a printout of the calculated stage weights - based on timing each stage. Use this to determine what the - weights should be when you're not sure. - """ - self._data = d - total = sum(stage_weights) - self._stage_weights = [float(x)/total for x in stage_weights] - self._stage = -1 - self._base_progress = 0 - # Send an initial progress event so the bar gets shown - self._fire_progress(0) - self._debug = debug - self._finished = False - if self._debug: - self._last_time = time.time() - self._stage_times = [] - self._stage_total = None - self._callers = [] - - def _fire_progress(self, taskprogress): - bb.event.fire(bb.build.TaskProgress(taskprogress), self._data) - - def next_stage(self, stage_total=None): - """ - Move to the next stage. - Parameters: - * stage_total: optional total for progress within the stage, - see update() for details - NOTE: you need to call this before the first stage. - """ - self._stage += 1 - self._stage_total = stage_total - if self._stage == 0: - # First stage - if self._debug: - self._last_time = time.time() - else: - if self._stage < len(self._stage_weights): - self._base_progress = sum(self._stage_weights[:self._stage]) * 100 - if self._debug: - currtime = time.time() - self._stage_times.append(currtime - self._last_time) - self._last_time = currtime - self._callers.append(inspect.getouterframes(inspect.currentframe())[1]) - elif not self._debug: - bb.warn('ProgressReporter: current stage beyond declared number of stages') - self._base_progress = 100 - self._fire_progress(self._base_progress) - - def update(self, stage_progress): - """ - Update progress within the current stage. - Parameters: - * stage_progress: progress value within the stage. If stage_total - was specified when next_stage() was last called, then this - value is considered to be out of stage_total, otherwise it should - be a percentage value from 0 to 100. - """ - if self._stage_total: - stage_progress = (float(stage_progress) / self._stage_total) * 100 - if self._stage < 0: - bb.warn('ProgressReporter: update called before first call to next_stage()') - elif self._stage < len(self._stage_weights): - progress = self._base_progress + (stage_progress * self._stage_weights[self._stage]) - else: - progress = self._base_progress - if progress > 100: - progress = 100 - self._fire_progress(progress) - - def finish(self): - if self._finished: - return - self._finished = True - if self._debug: - import math - self._stage_times.append(time.time() - self._last_time) - mintime = max(min(self._stage_times), 0.01) - self._callers.append(None) - stage_weights = [int(math.ceil(x / mintime)) for x in self._stage_times] - bb.warn('Stage weights: %s' % stage_weights) - out = [] - for stage_weight, caller in zip(stage_weights, self._callers): - if caller: - out.append('Up to %s:%d: %d' % (caller[1], caller[2], stage_weight)) - else: - out.append('Up to finish: %d' % stage_weight) - bb.warn('Stage times:\n %s' % '\n '.join(out)) - -class MultiStageProcessProgressReporter(MultiStageProgressReporter): - """ - Version of MultiStageProgressReporter intended for use with - standalone processes (such as preparing the runqueue) - """ - def __init__(self, d, processname, stage_weights, debug=False): - self._processname = processname - self._started = False - MultiStageProgressReporter.__init__(self, d, stage_weights, debug) - - def start(self): - if not self._started: - bb.event.fire(bb.event.ProcessStarted(self._processname, 100), self._data) - self._started = True - - def _fire_progress(self, taskprogress): - if taskprogress == 0: - self.start() - return - bb.event.fire(bb.event.ProcessProgress(self._processname, taskprogress), self._data) - - def finish(self): - MultiStageProgressReporter.finish(self) - bb.event.fire(bb.event.ProcessFinished(self._processname), self._data) - -class DummyMultiStageProcessProgressReporter(MultiStageProgressReporter): - """ - MultiStageProcessProgressReporter that takes the calls and does nothing - with them (to avoid a bunch of "if progress_reporter:" checks) - """ - def __init__(self): - MultiStageProcessProgressReporter.__init__(self, "", None, []) - - def _fire_progress(self, taskprogress, rate=None): - pass - - def start(self): - pass - - def next_stage(self, stage_total=None): - pass - - def update(self, stage_progress): - pass - - def finish(self): - pass diff --git a/poky/bitbake/lib/bb/providers.py b/poky/bitbake/lib/bb/providers.py deleted file mode 100644 index 443187e..0000000 --- a/poky/bitbake/lib/bb/providers.py +++ /dev/null @@ -1,430 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# Copyright (C) 2003, 2004 Chris Larson -# Copyright (C) 2003, 2004 Phil Blundell -# Copyright (C) 2003 - 2005 Michael 'Mickey' Lauer -# Copyright (C) 2005 Holger Hans Peter Freyther -# Copyright (C) 2005 ROAD GmbH -# Copyright (C) 2006 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import re -import logging -from bb import data, utils -from collections import defaultdict -import bb - -logger = logging.getLogger("BitBake.Provider") - -class NoProvider(bb.BBHandledException): - """Exception raised when no provider of a build dependency can be found""" - -class NoRProvider(bb.BBHandledException): - """Exception raised when no provider of a runtime dependency can be found""" - -class MultipleRProvider(bb.BBHandledException): - """Exception raised when multiple providers of a runtime dependency can be found""" - -def findProviders(cfgData, dataCache, pkg_pn = None): - """ - Convenience function to get latest and preferred providers in pkg_pn - """ - - if not pkg_pn: - pkg_pn = dataCache.pkg_pn - - # Need to ensure data store is expanded - localdata = data.createCopy(cfgData) - bb.data.expandKeys(localdata) - - preferred_versions = {} - latest_versions = {} - - for pn in pkg_pn: - (last_ver, last_file, pref_ver, pref_file) = findBestProvider(pn, localdata, dataCache, pkg_pn) - preferred_versions[pn] = (pref_ver, pref_file) - latest_versions[pn] = (last_ver, last_file) - - return (latest_versions, preferred_versions) - - -def allProviders(dataCache): - """ - Find all providers for each pn - """ - all_providers = defaultdict(list) - for (fn, pn) in dataCache.pkg_fn.items(): - ver = dataCache.pkg_pepvpr[fn] - all_providers[pn].append((ver, fn)) - return all_providers - - -def sortPriorities(pn, dataCache, pkg_pn = None): - """ - Reorder pkg_pn by file priority and default preference - """ - - if not pkg_pn: - pkg_pn = dataCache.pkg_pn - - files = pkg_pn[pn] - priorities = {} - for f in files: - priority = dataCache.bbfile_priority[f] - preference = dataCache.pkg_dp[f] - if priority not in priorities: - priorities[priority] = {} - if preference not in priorities[priority]: - priorities[priority][preference] = [] - priorities[priority][preference].append(f) - tmp_pn = [] - for pri in sorted(priorities): - tmp_pref = [] - for pref in sorted(priorities[pri]): - tmp_pref.extend(priorities[pri][pref]) - tmp_pn = [tmp_pref] + tmp_pn - - return tmp_pn - -def preferredVersionMatch(pe, pv, pr, preferred_e, preferred_v, preferred_r): - """ - Check if the version pe,pv,pr is the preferred one. - If there is preferred version defined and ends with '%', then pv has to start with that version after removing the '%' - """ - if (pr == preferred_r or preferred_r == None): - if (pe == preferred_e or preferred_e == None): - if preferred_v == pv: - return True - if preferred_v != None and preferred_v.endswith('%') and pv.startswith(preferred_v[:len(preferred_v)-1]): - return True - return False - -def findPreferredProvider(pn, cfgData, dataCache, pkg_pn = None, item = None): - """ - Find the first provider in pkg_pn with a PREFERRED_VERSION set. - """ - - preferred_file = None - preferred_ver = None - - # pn can contain '_', e.g. gcc-cross-x86_64 and an override cannot - # hence we do this manually rather than use OVERRIDES - preferred_v = cfgData.getVar("PREFERRED_VERSION_pn-%s" % pn) - if not preferred_v: - preferred_v = cfgData.getVar("PREFERRED_VERSION_%s" % pn) - if not preferred_v: - preferred_v = cfgData.getVar("PREFERRED_VERSION") - - if preferred_v: - m = re.match('(\d+:)*(.*)(_.*)*', preferred_v) - if m: - if m.group(1): - preferred_e = m.group(1)[:-1] - else: - preferred_e = None - preferred_v = m.group(2) - if m.group(3): - preferred_r = m.group(3)[1:] - else: - preferred_r = None - else: - preferred_e = None - preferred_r = None - - for file_set in pkg_pn: - for f in file_set: - pe, pv, pr = dataCache.pkg_pepvpr[f] - if preferredVersionMatch(pe, pv, pr, preferred_e, preferred_v, preferred_r): - preferred_file = f - preferred_ver = (pe, pv, pr) - break - if preferred_file: - break; - if preferred_r: - pv_str = '%s-%s' % (preferred_v, preferred_r) - else: - pv_str = preferred_v - if not (preferred_e is None): - pv_str = '%s:%s' % (preferred_e, pv_str) - itemstr = "" - if item: - itemstr = " (for item %s)" % item - if preferred_file is None: - logger.info("preferred version %s of %s not available%s", pv_str, pn, itemstr) - available_vers = [] - for file_set in pkg_pn: - for f in file_set: - pe, pv, pr = dataCache.pkg_pepvpr[f] - ver_str = pv - if pe: - ver_str = "%s:%s" % (pe, ver_str) - if not ver_str in available_vers: - available_vers.append(ver_str) - if available_vers: - available_vers.sort() - logger.info("versions of %s available: %s", pn, ' '.join(available_vers)) - else: - logger.debug(1, "selecting %s as PREFERRED_VERSION %s of package %s%s", preferred_file, pv_str, pn, itemstr) - - return (preferred_ver, preferred_file) - - -def findLatestProvider(pn, cfgData, dataCache, file_set): - """ - Return the highest version of the providers in file_set. - Take default preferences into account. - """ - latest = None - latest_p = 0 - latest_f = None - for file_name in file_set: - pe, pv, pr = dataCache.pkg_pepvpr[file_name] - dp = dataCache.pkg_dp[file_name] - - if (latest is None) or ((latest_p == dp) and (utils.vercmp(latest, (pe, pv, pr)) < 0)) or (dp > latest_p): - latest = (pe, pv, pr) - latest_f = file_name - latest_p = dp - - return (latest, latest_f) - - -def findBestProvider(pn, cfgData, dataCache, pkg_pn = None, item = None): - """ - If there is a PREFERRED_VERSION, find the highest-priority bbfile - providing that version. If not, find the latest version provided by - an bbfile in the highest-priority set. - """ - - sortpkg_pn = sortPriorities(pn, dataCache, pkg_pn) - # Find the highest priority provider with a PREFERRED_VERSION set - (preferred_ver, preferred_file) = findPreferredProvider(pn, cfgData, dataCache, sortpkg_pn, item) - # Find the latest version of the highest priority provider - (latest, latest_f) = findLatestProvider(pn, cfgData, dataCache, sortpkg_pn[0]) - - if preferred_file is None: - preferred_file = latest_f - preferred_ver = latest - - return (latest, latest_f, preferred_ver, preferred_file) - - -def _filterProviders(providers, item, cfgData, dataCache): - """ - Take a list of providers and filter/reorder according to the - environment variables - """ - eligible = [] - preferred_versions = {} - sortpkg_pn = {} - - # The order of providers depends on the order of the files on the disk - # up to here. Sort pkg_pn to make dependency issues reproducible rather - # than effectively random. - providers.sort() - - # Collate providers by PN - pkg_pn = {} - for p in providers: - pn = dataCache.pkg_fn[p] - if pn not in pkg_pn: - pkg_pn[pn] = [] - pkg_pn[pn].append(p) - - logger.debug(1, "providers for %s are: %s", item, list(pkg_pn.keys())) - - # First add PREFERRED_VERSIONS - for pn in pkg_pn: - sortpkg_pn[pn] = sortPriorities(pn, dataCache, pkg_pn) - preferred_versions[pn] = findPreferredProvider(pn, cfgData, dataCache, sortpkg_pn[pn], item) - if preferred_versions[pn][1]: - eligible.append(preferred_versions[pn][1]) - - # Now add latest versions - for pn in sortpkg_pn: - if pn in preferred_versions and preferred_versions[pn][1]: - continue - preferred_versions[pn] = findLatestProvider(pn, cfgData, dataCache, sortpkg_pn[pn][0]) - eligible.append(preferred_versions[pn][1]) - - if len(eligible) == 0: - logger.error("no eligible providers for %s", item) - return 0 - - # If pn == item, give it a slight default preference - # This means PREFERRED_PROVIDER_foobar defaults to foobar if available - for p in providers: - pn = dataCache.pkg_fn[p] - if pn != item: - continue - (newvers, fn) = preferred_versions[pn] - if not fn in eligible: - continue - eligible.remove(fn) - eligible = [fn] + eligible - - return eligible - - -def filterProviders(providers, item, cfgData, dataCache): - """ - Take a list of providers and filter/reorder according to the - environment variables - Takes a "normal" target item - """ - - eligible = _filterProviders(providers, item, cfgData, dataCache) - - prefervar = cfgData.getVar('PREFERRED_PROVIDER_%s' % item) - if prefervar: - dataCache.preferred[item] = prefervar - - foundUnique = False - if item in dataCache.preferred: - for p in eligible: - pn = dataCache.pkg_fn[p] - if dataCache.preferred[item] == pn: - logger.verbose("selecting %s to satisfy %s due to PREFERRED_PROVIDERS", pn, item) - eligible.remove(p) - eligible = [p] + eligible - foundUnique = True - break - - logger.debug(1, "sorted providers for %s are: %s", item, eligible) - - return eligible, foundUnique - -def filterProvidersRunTime(providers, item, cfgData, dataCache): - """ - Take a list of providers and filter/reorder according to the - environment variables - Takes a "runtime" target item - """ - - eligible = _filterProviders(providers, item, cfgData, dataCache) - - # First try and match any PREFERRED_RPROVIDER entry - prefervar = cfgData.getVar('PREFERRED_RPROVIDER_%s' % item) - foundUnique = False - if prefervar: - for p in eligible: - pn = dataCache.pkg_fn[p] - if prefervar == pn: - logger.verbose("selecting %s to satisfy %s due to PREFERRED_RPROVIDER", pn, item) - eligible.remove(p) - eligible = [p] + eligible - foundUnique = True - numberPreferred = 1 - break - - # If we didn't find an RPROVIDER entry, try and infer the provider from PREFERRED_PROVIDER entries - # by looking through the provides of each eligible recipe and seeing if a PREFERRED_PROVIDER was set. - # This is most useful for virtual/ entries rather than having a RPROVIDER per entry. - if not foundUnique: - # Should use dataCache.preferred here? - preferred = [] - preferred_vars = [] - pns = {} - for p in eligible: - pns[dataCache.pkg_fn[p]] = p - for p in eligible: - pn = dataCache.pkg_fn[p] - provides = dataCache.pn_provides[pn] - for provide in provides: - prefervar = cfgData.getVar('PREFERRED_PROVIDER_%s' % provide) - #logger.debug(1, "checking PREFERRED_PROVIDER_%s (value %s) against %s", provide, prefervar, pns.keys()) - if prefervar in pns and pns[prefervar] not in preferred: - var = "PREFERRED_PROVIDER_%s = %s" % (provide, prefervar) - logger.verbose("selecting %s to satisfy runtime %s due to %s", prefervar, item, var) - preferred_vars.append(var) - pref = pns[prefervar] - eligible.remove(pref) - eligible = [pref] + eligible - preferred.append(pref) - break - - numberPreferred = len(preferred) - - if numberPreferred > 1: - logger.error("Trying to resolve runtime dependency %s resulted in conflicting PREFERRED_PROVIDER entries being found.\nThe providers found were: %s\nThe PREFERRED_PROVIDER entries resulting in this conflict were: %s. You could set PREFERRED_RPROVIDER_%s" % (item, preferred, preferred_vars, item)) - - logger.debug(1, "sorted runtime providers for %s are: %s", item, eligible) - - return eligible, numberPreferred - -regexp_cache = {} - -def getRuntimeProviders(dataCache, rdepend): - """ - Return any providers of runtime dependency - """ - rproviders = [] - - if rdepend in dataCache.rproviders: - rproviders += dataCache.rproviders[rdepend] - - if rdepend in dataCache.packages: - rproviders += dataCache.packages[rdepend] - - if rproviders: - return rproviders - - # Only search dynamic packages if we can't find anything in other variables - for pattern in dataCache.packages_dynamic: - pattern = pattern.replace('+', "\+") - if pattern in regexp_cache: - regexp = regexp_cache[pattern] - else: - try: - regexp = re.compile(pattern) - except: - logger.error("Error parsing regular expression '%s'", pattern) - raise - regexp_cache[pattern] = regexp - if regexp.match(rdepend): - rproviders += dataCache.packages_dynamic[pattern] - logger.debug(1, "Assuming %s is a dynamic package, but it may not exist" % rdepend) - - return rproviders - - -def buildWorldTargetList(dataCache, task=None): - """ - Build package list for "bitbake world" - """ - if dataCache.world_target: - return - - logger.debug(1, "collating packages for \"world\"") - for f in dataCache.possible_world: - terminal = True - pn = dataCache.pkg_fn[f] - if task and task not in dataCache.task_deps[f]['tasks']: - logger.debug(2, "World build skipping %s as task %s doesn't exist", f, task) - terminal = False - - for p in dataCache.pn_provides[pn]: - if p.startswith('virtual/'): - logger.debug(2, "World build skipping %s due to %s provider starting with virtual/", f, p) - terminal = False - break - for pf in dataCache.providers[p]: - if dataCache.pkg_fn[pf] != pn: - logger.debug(2, "World build skipping %s due to both us and %s providing %s", f, pf, p) - terminal = False - break - if terminal: - dataCache.world_target.add(pn) diff --git a/poky/bitbake/lib/bb/pysh/__init__.py b/poky/bitbake/lib/bb/pysh/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/poky/bitbake/lib/bb/pysh/builtin.py b/poky/bitbake/lib/bb/pysh/builtin.py deleted file mode 100644 index a8814dc..0000000 --- a/poky/bitbake/lib/bb/pysh/builtin.py +++ /dev/null @@ -1,710 +0,0 @@ -# builtin.py - builtins and utilities definitions for pysh. -# -# Copyright 2007 Patrick Mezard -# -# This software may be used and distributed according to the terms -# of the GNU General Public License, incorporated herein by reference. - -"""Builtin and internal utilities implementations. - -- Beware not to use python interpreter environment as if it were the shell -environment. For instance, commands working directory must be explicitely handled -through env['PWD'] instead of relying on python working directory. -""" -import errno -import optparse -import os -import re -import subprocess -import sys -import time - -def has_subprocess_bug(): - return getattr(subprocess, 'list2cmdline') and \ - ( subprocess.list2cmdline(['']) == '' or \ - subprocess.list2cmdline(['foo|bar']) == 'foo|bar') - -# Detect python bug 1634343: "subprocess swallows empty arguments under win32" -# <http://sourceforge.net/tracker/index.php?func=detail&aid=1634343&group_id=5470&atid=105470> -# Also detect: "[ 1710802 ] subprocess must escape redirection characters under win32" -# <http://sourceforge.net/tracker/index.php?func=detail&aid=1710802&group_id=5470&atid=105470> -if has_subprocess_bug(): - import subprocess_fix - subprocess.list2cmdline = subprocess_fix.list2cmdline - -from sherrors import * - -class NonExitingParser(optparse.OptionParser): - """OptionParser default behaviour upon error is to print the error message and - exit. Raise a utility error instead. - """ - def error(self, msg): - raise UtilityError(msg) - -#------------------------------------------------------------------------------- -# set special builtin -#------------------------------------------------------------------------------- -OPT_SET = NonExitingParser(usage="set - set or unset options and positional parameters") -OPT_SET.add_option( '-f', action='store_true', dest='has_f', default=False, - help='The shell shall disable pathname expansion.') -OPT_SET.add_option('-e', action='store_true', dest='has_e', default=False, - help="""When this option is on, if a simple command fails for any of the \ - reasons listed in Consequences of Shell Errors or returns an exit status \ - value >0, and is not part of the compound list following a while, until, \ - or if keyword, and is not a part of an AND or OR list, and is not a \ - pipeline preceded by the ! reserved word, then the shell shall immediately \ - exit.""") -OPT_SET.add_option('-x', action='store_true', dest='has_x', default=False, - help="""The shell shall write to standard error a trace for each command \ - after it expands the command and before it executes it. It is unspecified \ - whether the command that turns tracing off is traced.""") - -def builtin_set(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - option, args = OPT_SET.parse_args(args) - env = interp.get_env() - - if option.has_f: - env.set_opt('-f') - if option.has_e: - env.set_opt('-e') - if option.has_x: - env.set_opt('-x') - return 0 - -#------------------------------------------------------------------------------- -# shift special builtin -#------------------------------------------------------------------------------- -def builtin_shift(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - params = interp.get_env().get_positional_args() - if args: - try: - n = int(args[0]) - if n > len(params): - raise ValueError() - except ValueError: - return 1 - else: - n = 1 - - params[:n] = [] - interp.get_env().set_positional_args(params) - return 0 - -#------------------------------------------------------------------------------- -# export special builtin -#------------------------------------------------------------------------------- -OPT_EXPORT = NonExitingParser(usage="set - set or unset options and positional parameters") -OPT_EXPORT.add_option('-p', action='store_true', dest='has_p', default=False) - -def builtin_export(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - option, args = OPT_EXPORT.parse_args(args) - if option.has_p: - raise NotImplementedError() - - for arg in args: - try: - name, value = arg.split('=', 1) - except ValueError: - name, value = arg, None - env = interp.get_env().export(name, value) - - return 0 - -#------------------------------------------------------------------------------- -# return special builtin -#------------------------------------------------------------------------------- -def builtin_return(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - res = 0 - if args: - try: - res = int(args[0]) - except ValueError: - res = 0 - if not 0<=res<=255: - res = 0 - - # BUG: should be last executed command exit code - raise ReturnSignal(res) - -#------------------------------------------------------------------------------- -# trap special builtin -#------------------------------------------------------------------------------- -def builtin_trap(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - if len(args) < 2: - stderr.write('trap: usage: trap [[arg] signal_spec ...]\n') - return 2 - - action = args[0] - for sig in args[1:]: - try: - env.traps[sig] = action - except Exception as e: - stderr.write('trap: %s\n' % str(e)) - return 0 - -#------------------------------------------------------------------------------- -# unset special builtin -#------------------------------------------------------------------------------- -OPT_UNSET = NonExitingParser("unset - unset values and attributes of variables and functions") -OPT_UNSET.add_option( '-f', action='store_true', dest='has_f', default=False) -OPT_UNSET.add_option( '-v', action='store_true', dest='has_v', default=False) - -def builtin_unset(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - option, args = OPT_UNSET.parse_args(args) - - status = 0 - env = interp.get_env() - for arg in args: - try: - if option.has_f: - env.remove_function(arg) - else: - del env[arg] - except KeyError: - pass - except VarAssignmentError: - status = 1 - - return status - -#------------------------------------------------------------------------------- -# wait special builtin -#------------------------------------------------------------------------------- -def builtin_wait(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - return interp.wait([int(arg) for arg in args]) - -#------------------------------------------------------------------------------- -# cat utility -#------------------------------------------------------------------------------- -def utility_cat(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - if not args: - args = ['-'] - - status = 0 - for arg in args: - if arg == '-': - data = stdin.read() - else: - path = os.path.join(env['PWD'], arg) - try: - f = file(path, 'rb') - try: - data = f.read() - finally: - f.close() - except IOError as e: - if e.errno != errno.ENOENT: - raise - status = 1 - continue - stdout.write(data) - stdout.flush() - return status - -#------------------------------------------------------------------------------- -# cd utility -#------------------------------------------------------------------------------- -OPT_CD = NonExitingParser("cd - change the working directory") - -def utility_cd(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - option, args = OPT_CD.parse_args(args) - env = interp.get_env() - - directory = None - printdir = False - if not args: - home = env.get('HOME') - if home: - # Unspecified, do nothing - return 0 - else: - directory = home - elif len(args)==1: - directory = args[0] - if directory=='-': - if 'OLDPWD' not in env: - raise UtilityError("OLDPWD not set") - printdir = True - directory = env['OLDPWD'] - else: - raise UtilityError("too many arguments") - - curpath = None - # Absolute directories will be handled correctly by the os.path.join call. - if not directory.startswith('.') and not directory.startswith('..'): - cdpaths = env.get('CDPATH', '.').split(';') - for cdpath in cdpaths: - p = os.path.join(cdpath, directory) - if os.path.isdir(p): - curpath = p - break - - if curpath is None: - curpath = directory - curpath = os.path.join(env['PWD'], directory) - - env['OLDPWD'] = env['PWD'] - env['PWD'] = curpath - if printdir: - stdout.write('%s\n' % curpath) - return 0 - -#------------------------------------------------------------------------------- -# colon utility -#------------------------------------------------------------------------------- -def utility_colon(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - return 0 - -#------------------------------------------------------------------------------- -# echo utility -#------------------------------------------------------------------------------- -def utility_echo(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - # Echo only takes arguments, no options. Use printf if you need fancy stuff. - output = ' '.join(args) + '\n' - stdout.write(output) - stdout.flush() - return 0 - -#------------------------------------------------------------------------------- -# egrep utility -#------------------------------------------------------------------------------- -# egrep is usually a shell script. -# Unfortunately, pysh does not support shell scripts *with arguments* right now, -# so the redirection is implemented here, assuming grep is available. -def utility_egrep(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - return run_command('grep', ['-E'] + args, interp, env, stdin, stdout, - stderr, debugflags) - -#------------------------------------------------------------------------------- -# env utility -#------------------------------------------------------------------------------- -def utility_env(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - if args and args[0]=='-i': - raise NotImplementedError('env: -i option is not implemented') - - i = 0 - for arg in args: - if '=' not in arg: - break - # Update the current environment - name, value = arg.split('=', 1) - env[name] = value - i += 1 - - if args[i:]: - # Find then execute the specified interpreter - utility = env.find_in_path(args[i]) - if not utility: - return 127 - args[i:i+1] = utility - name = args[i] - args = args[i+1:] - try: - return run_command(name, args, interp, env, stdin, stdout, stderr, - debugflags) - except UtilityError: - stderr.write('env: failed to execute %s' % ' '.join([name]+args)) - return 126 - else: - for pair in env.get_variables().iteritems(): - stdout.write('%s=%s\n' % pair) - return 0 - -#------------------------------------------------------------------------------- -# exit utility -#------------------------------------------------------------------------------- -def utility_exit(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - res = None - if args: - try: - res = int(args[0]) - except ValueError: - res = None - if not 0<=res<=255: - res = None - - if res is None: - # BUG: should be last executed command exit code - res = 0 - - raise ExitSignal(res) - -#------------------------------------------------------------------------------- -# fgrep utility -#------------------------------------------------------------------------------- -# see egrep -def utility_fgrep(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - return run_command('grep', ['-F'] + args, interp, env, stdin, stdout, - stderr, debugflags) - -#------------------------------------------------------------------------------- -# gunzip utility -#------------------------------------------------------------------------------- -# see egrep -def utility_gunzip(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - return run_command('gzip', ['-d'] + args, interp, env, stdin, stdout, - stderr, debugflags) - -#------------------------------------------------------------------------------- -# kill utility -#------------------------------------------------------------------------------- -def utility_kill(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - for arg in args: - pid = int(arg) - status = subprocess.call(['pskill', '/T', str(pid)], - shell=True, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) - # pskill is asynchronous, hence the stupid polling loop - while 1: - p = subprocess.Popen(['pslist', str(pid)], - shell=True, - stdout=subprocess.PIPE, - stderr=subprocess.STDOUT) - output = p.communicate()[0] - if ('process %d was not' % pid) in output: - break - time.sleep(1) - return status - -#------------------------------------------------------------------------------- -# mkdir utility -#------------------------------------------------------------------------------- -OPT_MKDIR = NonExitingParser("mkdir - make directories.") -OPT_MKDIR.add_option('-p', action='store_true', dest='has_p', default=False) - -def utility_mkdir(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - # TODO: implement umask - # TODO: implement proper utility error report - option, args = OPT_MKDIR.parse_args(args) - for arg in args: - path = os.path.join(env['PWD'], arg) - if option.has_p: - try: - os.makedirs(path) - except IOError as e: - if e.errno != errno.EEXIST: - raise - else: - os.mkdir(path) - return 0 - -#------------------------------------------------------------------------------- -# netstat utility -#------------------------------------------------------------------------------- -def utility_netstat(name, args, interp, env, stdin, stdout, stderr, debugflags): - # Do you really expect me to implement netstat ? - # This empty form is enough for Mercurial tests since it's - # supposed to generate nothing upon success. Faking this test - # is not a big deal either. - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - return 0 - -#------------------------------------------------------------------------------- -# pwd utility -#------------------------------------------------------------------------------- -OPT_PWD = NonExitingParser("pwd - return working directory name") -OPT_PWD.add_option('-L', action='store_true', dest='has_L', default=True, - help="""If the PWD environment variable contains an absolute pathname of \ - the current directory that does not contain the filenames dot or dot-dot, \ - pwd shall write this pathname to standard output. Otherwise, the -L option \ - shall behave as the -P option.""") -OPT_PWD.add_option('-P', action='store_true', dest='has_L', default=False, - help="""The absolute pathname written shall not contain filenames that, in \ - the context of the pathname, refer to files of type symbolic link.""") - -def utility_pwd(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - option, args = OPT_PWD.parse_args(args) - stdout.write('%s\n' % env['PWD']) - return 0 - -#------------------------------------------------------------------------------- -# printf utility -#------------------------------------------------------------------------------- -RE_UNESCAPE = re.compile(r'(\\x[a-zA-Z0-9]{2}|\\[0-7]{1,3}|\\.)') - -def utility_printf(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - def replace(m): - assert m.group() - g = m.group()[1:] - if g.startswith('x'): - return chr(int(g[1:], 16)) - if len(g) <= 3 and len([c for c in g if c in '01234567']) == len(g): - # Yay, an octal number - return chr(int(g, 8)) - return { - 'a': '\a', - 'b': '\b', - 'f': '\f', - 'n': '\n', - 'r': '\r', - 't': '\t', - 'v': '\v', - '\\': '\\', - }.get(g) - - # Convert escape sequences - format = re.sub(RE_UNESCAPE, replace, args[0]) - stdout.write(format % tuple(args[1:])) - return 0 - -#------------------------------------------------------------------------------- -# true utility -#------------------------------------------------------------------------------- -def utility_true(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - return 0 - -#------------------------------------------------------------------------------- -# sed utility -#------------------------------------------------------------------------------- -RE_SED = re.compile(r'^s(.).*\1[a-zA-Z]*$') - -# cygwin sed fails with some expressions when they do not end with a single space. -# see unit tests for details. Interestingly, the same expressions works perfectly -# in cygwin shell. -def utility_sed(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - # Scan pattern arguments and append a space if necessary - for i in range(len(args)): - if not RE_SED.search(args[i]): - continue - args[i] = args[i] + ' ' - - return run_command(name, args, interp, env, stdin, stdout, - stderr, debugflags) - -#------------------------------------------------------------------------------- -# sleep utility -#------------------------------------------------------------------------------- -def utility_sleep(name, args, interp, env, stdin, stdout, stderr, debugflags): - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - time.sleep(int(args[0])) - return 0 - -#------------------------------------------------------------------------------- -# sort utility -#------------------------------------------------------------------------------- -OPT_SORT = NonExitingParser("sort - sort, merge, or sequence check text files") - -def utility_sort(name, args, interp, env, stdin, stdout, stderr, debugflags): - - def sort(path): - if path == '-': - lines = stdin.readlines() - else: - try: - f = file(path) - try: - lines = f.readlines() - finally: - f.close() - except IOError as e: - stderr.write(str(e) + '\n') - return 1 - - if lines and lines[-1][-1]!='\n': - lines[-1] = lines[-1] + '\n' - return lines - - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - option, args = OPT_SORT.parse_args(args) - alllines = [] - - if len(args)<=0: - args += ['-'] - - # Load all files lines - curdir = os.getcwd() - try: - os.chdir(env['PWD']) - for path in args: - alllines += sort(path) - finally: - os.chdir(curdir) - - alllines.sort() - for line in alllines: - stdout.write(line) - return 0 - -#------------------------------------------------------------------------------- -# hg utility -#------------------------------------------------------------------------------- - -hgcommands = [ - 'add', - 'addremove', - 'commit', 'ci', - 'debugrename', - 'debugwalk', - 'falabala', # Dummy command used in a mercurial test - 'incoming', - 'locate', - 'pull', - 'push', - 'qinit', - 'remove', 'rm', - 'rename', 'mv', - 'revert', - 'showconfig', - 'status', 'st', - 'strip', - ] - -def rewriteslashes(name, args): - # Several hg commands output file paths, rewrite the separators - if len(args) > 1 and name.lower().endswith('python') \ - and args[0].endswith('hg'): - for cmd in hgcommands: - if cmd in args[1:]: - return True - - # svn output contains many paths with OS specific separators. - # Normalize these to unix paths. - base = os.path.basename(name) - if base.startswith('svn'): - return True - - return False - -def rewritehg(output): - if not output: - return output - # Rewrite os specific messages - output = output.replace(': The system cannot find the file specified', - ': No such file or directory') - output = re.sub(': Access is denied.*$', ': Permission denied', output) - output = output.replace(': No connection could be made because the target machine actively refused it', - ': Connection refused') - return output - - -def run_command(name, args, interp, env, stdin, stdout, - stderr, debugflags): - # Execute the command - if 'debug-utility' in debugflags: - print interp.log(' '.join([name, str(args), interp['PWD']]) + '\n') - - hgbin = interp.options().hgbinary - ishg = hgbin and ('hg' in name or args and 'hg' in args[0]) - unixoutput = 'cygwin' in name or ishg - - exec_env = env.get_variables() - try: - # BUG: comparing file descriptor is clearly not a reliable way to tell - # whether they point on the same underlying object. But in pysh limited - # scope this is usually right, we do not expect complicated redirections - # besides usual 2>&1. - # Still there is one case we have but cannot deal with is when stdout - # and stderr are redirected *by pysh caller*. This the reason for the - # --redirect pysh() option. - # Now, we want to know they are the same because we sometimes need to - # transform the command output, mostly remove CR-LF to ensure that - # command output is unix-like. Cygwin utilies are a special case because - # they explicitely set their output streams to binary mode, so we have - # nothing to do. For all others commands, we have to guess whether they - # are sending text data, in which case the transformation must be done. - # Again, the NUL character test is unreliable but should be enough for - # hg tests. - redirected = stdout.fileno()==stderr.fileno() - if not redirected: - p = subprocess.Popen([name] + args, cwd=env['PWD'], env=exec_env, - stdin=stdin, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - else: - p = subprocess.Popen([name] + args, cwd=env['PWD'], env=exec_env, - stdin=stdin, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - out, err = p.communicate() - except WindowsError as e: - raise UtilityError(str(e)) - - if not unixoutput: - def encode(s): - if '\0' in s: - return s - return s.replace('\r\n', '\n') - else: - encode = lambda s: s - - if rewriteslashes(name, args): - encode1_ = encode - def encode(s): - s = encode1_(s) - s = s.replace('\\\\', '\\') - s = s.replace('\\', '/') - return s - - if ishg: - encode2_ = encode - def encode(s): - return rewritehg(encode2_(s)) - - stdout.write(encode(out)) - if not redirected: - stderr.write(encode(err)) - return p.returncode - diff --git a/poky/bitbake/lib/bb/pysh/interp.py b/poky/bitbake/lib/bb/pysh/interp.py deleted file mode 100644 index d14ecf3..0000000 --- a/poky/bitbake/lib/bb/pysh/interp.py +++ /dev/null @@ -1,1367 +0,0 @@ -# interp.py - shell interpreter for pysh. -# -# Copyright 2007 Patrick Mezard -# -# This software may be used and distributed according to the terms -# of the GNU General Public License, incorporated herein by reference. - -"""Implement the shell interpreter. - -Most references are made to "The Open Group Base Specifications Issue 6". -<http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html> -""" -# TODO: document the fact input streams must implement fileno() so Popen will work correctly. -# it requires non-stdin stream to be implemented as files. Still to be tested... -# DOC: pathsep is used in PATH instead of ':'. Clearly, there are path syntax issues here. -# TODO: stop command execution upon error. -# TODO: sort out the filename/io_number mess. It should be possible to use filenames only. -# TODO: review subshell implementation -# TODO: test environment cloning for non-special builtins -# TODO: set -x should not rebuild commands from tokens, assignments/redirections are lost -# TODO: unit test for variable assignment -# TODO: test error management wrt error type/utility type -# TODO: test for binary output everywhere -# BUG: debug-parsing does not pass log file to PLY. Maybe a PLY upgrade is necessary. -import base64 -import cPickle as pickle -import errno -import glob -import os -import re -import subprocess -import sys -import tempfile - -try: - s = set() - del s -except NameError: - from Set import Set as set - -import builtin -from sherrors import * -import pyshlex -import pyshyacc - -def mappend(func, *args, **kargs): - """Like map but assume func returns a list. Returned lists are merged into - a single one. - """ - return reduce(lambda a,b: a+b, map(func, *args, **kargs), []) - -class FileWrapper: - """File object wrapper to ease debugging. - - Allow mode checking and implement file duplication through a simple - reference counting scheme. Not sure the latter is really useful since - only real file descriptors can be used. - """ - def __init__(self, mode, file, close=True): - if mode not in ('r', 'w', 'a'): - raise IOError('invalid mode: %s' % mode) - self._mode = mode - self._close = close - if isinstance(file, FileWrapper): - if file._refcount[0] <= 0: - raise IOError(0, 'Error') - self._refcount = file._refcount - self._refcount[0] += 1 - self._file = file._file - else: - self._refcount = [1] - self._file = file - - def dup(self): - return FileWrapper(self._mode, self, self._close) - - def fileno(self): - """fileno() should be only necessary for input streams.""" - return self._file.fileno() - - def read(self, size=-1): - if self._mode!='r': - raise IOError(0, 'Error') - return self._file.read(size) - - def readlines(self, *args, **kwargs): - return self._file.readlines(*args, **kwargs) - - def write(self, s): - if self._mode not in ('w', 'a'): - raise IOError(0, 'Error') - return self._file.write(s) - - def flush(self): - self._file.flush() - - def close(self): - if not self._refcount: - return - assert self._refcount[0] > 0 - - self._refcount[0] -= 1 - if self._refcount[0] == 0: - self._mode = 'c' - if self._close: - self._file.close() - self._refcount = None - - def mode(self): - return self._mode - - def __getattr__(self, name): - if name == 'name': - self.name = getattr(self._file, name) - return self.name - else: - raise AttributeError(name) - - def __del__(self): - self.close() - - -def win32_open_devnull(mode): - return open('NUL', mode) - - -class Redirections: - """Stores open files and their mapping to pseudo-sh file descriptor. - """ - # BUG: redirections are not handled correctly: 1>&3 2>&3 3>&4 does - # not make 1 to redirect to 4 - def __init__(self, stdin=None, stdout=None, stderr=None): - self._descriptors = {} - if stdin is not None: - self._add_descriptor(0, stdin) - if stdout is not None: - self._add_descriptor(1, stdout) - if stderr is not None: - self._add_descriptor(2, stderr) - - def add_here_document(self, interp, name, content, io_number=None): - if io_number is None: - io_number = 0 - - if name==pyshlex.unquote_wordtree(name): - content = interp.expand_here_document(('TOKEN', content)) - - # Write document content in a temporary file - tmp = tempfile.TemporaryFile() - try: - tmp.write(content) - tmp.flush() - tmp.seek(0) - self._add_descriptor(io_number, FileWrapper('r', tmp)) - except: - tmp.close() - raise - - def add(self, interp, op, filename, io_number=None): - if op not in ('<', '>', '>|', '>>', '>&'): - # TODO: add descriptor duplication and here_documents - raise RedirectionError('Unsupported redirection operator "%s"' % op) - - if io_number is not None: - io_number = int(io_number) - - if (op == '>&' and filename.isdigit()) or filename=='-': - # No expansion for file descriptors, quote them if you want a filename - fullname = filename - else: - if filename.startswith('/'): - # TODO: win32 kludge - if filename=='/dev/null': - fullname = 'NUL' - else: - # TODO: handle absolute pathnames, they are unlikely to exist on the - # current platform (win32 for instance). - raise NotImplementedError() - else: - fullname = interp.expand_redirection(('TOKEN', filename)) - if not fullname: - raise RedirectionError('%s: ambiguous redirect' % filename) - # Build absolute path based on PWD - fullname = os.path.join(interp.get_env()['PWD'], fullname) - - if op=='<': - return self._add_input_redirection(interp, fullname, io_number) - elif op in ('>', '>|'): - clobber = ('>|'==op) - return self._add_output_redirection(interp, fullname, io_number, clobber) - elif op=='>>': - return self._add_output_appending(interp, fullname, io_number) - elif op=='>&': - return self._dup_output_descriptor(fullname, io_number) - - def close(self): - if self._descriptors is not None: - for desc in self._descriptors.itervalues(): - desc.flush() - desc.close() - self._descriptors = None - - def stdin(self): - return self._descriptors[0] - - def stdout(self): - return self._descriptors[1] - - def stderr(self): - return self._descriptors[2] - - def clone(self): - clone = Redirections() - for desc, fileobj in self._descriptors.iteritems(): - clone._descriptors[desc] = fileobj.dup() - return clone - - def _add_output_redirection(self, interp, filename, io_number, clobber): - if io_number is None: - # io_number default to standard output - io_number = 1 - - if not clobber and interp.get_env().has_opt('-C') and os.path.isfile(filename): - # File already exist in no-clobber mode, bail out - raise RedirectionError('File "%s" already exists' % filename) - - # Open and register - self._add_file_descriptor(io_number, filename, 'w') - - def _add_output_appending(self, interp, filename, io_number): - if io_number is None: - io_number = 1 - self._add_file_descriptor(io_number, filename, 'a') - - def _add_input_redirection(self, interp, filename, io_number): - if io_number is None: - io_number = 0 - self._add_file_descriptor(io_number, filename, 'r') - - def _add_file_descriptor(self, io_number, filename, mode): - try: - if filename.startswith('/'): - if filename=='/dev/null': - f = win32_open_devnull(mode+'b') - else: - # TODO: handle absolute pathnames, they are unlikely to exist on the - # current platform (win32 for instance). - raise NotImplementedError('cannot open absolute path %s' % repr(filename)) - else: - f = file(filename, mode+'b') - except IOError as e: - raise RedirectionError(str(e)) - - wrapper = None - try: - wrapper = FileWrapper(mode, f) - f = None - self._add_descriptor(io_number, wrapper) - except: - if f: f.close() - if wrapper: wrapper.close() - raise - - def _dup_output_descriptor(self, source_fd, dest_fd): - if source_fd is None: - source_fd = 1 - self._dup_file_descriptor(source_fd, dest_fd, 'w') - - def _dup_file_descriptor(self, source_fd, dest_fd, mode): - source_fd = int(source_fd) - if source_fd not in self._descriptors: - raise RedirectionError('"%s" is not a valid file descriptor' % str(source_fd)) - source = self._descriptors[source_fd] - - if source.mode()!=mode: - raise RedirectionError('Descriptor %s cannot be duplicated in mode "%s"' % (str(source), mode)) - - if dest_fd=='-': - # Close the source descriptor - del self._descriptors[source_fd] - source.close() - else: - dest_fd = int(dest_fd) - if dest_fd not in self._descriptors: - raise RedirectionError('Cannot replace file descriptor %s' % str(dest_fd)) - - dest = self._descriptors[dest_fd] - if dest.mode()!=mode: - raise RedirectionError('Descriptor %s cannot be cannot be redirected in mode "%s"' % (str(dest), mode)) - - self._descriptors[dest_fd] = source.dup() - dest.close() - - def _add_descriptor(self, io_number, file): - io_number = int(io_number) - - if io_number in self._descriptors: - # Close the current descriptor - d = self._descriptors[io_number] - del self._descriptors[io_number] - d.close() - - self._descriptors[io_number] = file - - def __str__(self): - names = [('%d=%r' % (k, getattr(v, 'name', None))) for k,v - in self._descriptors.iteritems()] - names = ','.join(names) - return 'Redirections(%s)' % names - - def __del__(self): - self.close() - -def cygwin_to_windows_path(path): - """Turn /cygdrive/c/foo into c:/foo, or return path if it - is not a cygwin path. - """ - if not path.startswith('/cygdrive/'): - return path - path = path[len('/cygdrive/'):] - path = path[:1] + ':' + path[1:] - return path - -def win32_to_unix_path(path): - if path is not None: - path = path.replace('\\', '/') - return path - -_RE_SHEBANG = re.compile(r'^\#!\s?([^\s]+)(?:\s([^\s]+))?') -_SHEBANG_CMDS = { - '/usr/bin/env': 'env', - '/bin/sh': 'pysh', - 'python': 'python', -} - -def resolve_shebang(path, ignoreshell=False): - """Return a list of arguments as shebang interpreter call or an empty list - if path does not refer to an executable script. - See <http://www.opengroup.org/austin/docs/austin_51r2.txt>. - - ignoreshell - set to True to ignore sh shebangs. Return an empty list instead. - """ - try: - f = file(path) - try: - # At most 80 characters in the first line - header = f.read(80).splitlines()[0] - finally: - f.close() - - m = _RE_SHEBANG.search(header) - if not m: - return [] - cmd, arg = m.group(1,2) - if os.path.isfile(cmd): - # Keep this one, the hg script for instance contains a weird windows - # shebang referencing the current python install. - cmdfile = os.path.basename(cmd).lower() - if cmdfile == 'python.exe': - cmd = 'python' - pass - elif cmd not in _SHEBANG_CMDS: - raise CommandNotFound('Unknown interpreter "%s" referenced in '\ - 'shebang' % header) - cmd = _SHEBANG_CMDS.get(cmd) - if cmd is None or (ignoreshell and cmd == 'pysh'): - return [] - if arg is None: - return [cmd, win32_to_unix_path(path)] - return [cmd, arg, win32_to_unix_path(path)] - except IOError as e: - if e.errno!=errno.ENOENT and \ - (e.errno!=errno.EPERM and not os.path.isdir(path)): # Opening a directory raises EPERM - raise - return [] - -def win32_find_in_path(name, path): - if isinstance(path, str): - path = path.split(os.pathsep) - - exts = os.environ.get('PATHEXT', '').lower().split(os.pathsep) - for p in path: - p_name = os.path.join(p, name) - - prefix = resolve_shebang(p_name) - if prefix: - return prefix - - for ext in exts: - p_name_ext = p_name + ext - if os.path.exists(p_name_ext): - return [win32_to_unix_path(p_name_ext)] - return [] - -class Traps(dict): - def __setitem__(self, key, value): - if key not in ('EXIT',): - raise NotImplementedError() - super(Traps, self).__setitem__(key, value) - -# IFS white spaces character class -_IFS_WHITESPACES = (' ', '\t', '\n') - -class Environment: - """Environment holds environment variables, export table, function - definitions and whatever is defined in 2.12 "Shell Execution Environment", - redirection excepted. - """ - def __init__(self, pwd): - self._opt = set() #Shell options - - self._functions = {} - self._env = {'?': '0', '#': '0'} - self._exported = set([ - 'HOME', 'IFS', 'PATH' - ]) - - # Set environment vars with side-effects - self._ifs_ws = None # Set of IFS whitespace characters - self._ifs_re = None # Regular expression used to split between words using IFS classes - self['IFS'] = ''.join(_IFS_WHITESPACES) #Default environment values - self['PWD'] = pwd - self.traps = Traps() - - def clone(self, subshell=False): - env = Environment(self['PWD']) - env._opt = set(self._opt) - for k,v in self.get_variables().iteritems(): - if k in self._exported: - env.export(k,v) - elif subshell: - env[k] = v - - if subshell: - env._functions = dict(self._functions) - - return env - - def __getitem__(self, key): - if key in ('@', '*', '-', '$'): - raise NotImplementedError('%s is not implemented' % repr(key)) - return self._env[key] - - def get(self, key, defval=None): - try: - return self[key] - except KeyError: - return defval - - def __setitem__(self, key, value): - if key=='IFS': - # Update the whitespace/non-whitespace classes - self._update_ifs(value) - elif key=='PWD': - pwd = os.path.abspath(value) - if not os.path.isdir(pwd): - raise VarAssignmentError('Invalid directory %s' % value) - value = pwd - elif key in ('?', '!'): - value = str(int(value)) - self._env[key] = value - - def __delitem__(self, key): - if key in ('IFS', 'PWD', '?'): - raise VarAssignmentError('%s cannot be unset' % key) - del self._env[key] - - def __contains__(self, item): - return item in self._env - - def set_positional_args(self, args): - """Set the content of 'args' as positional argument from 1 to len(args). - Return previous argument as a list of strings. - """ - # Save and remove previous arguments - prevargs = [] - for i in range(int(self._env['#'])): - i = str(i+1) - prevargs.append(self._env[i]) - del self._env[i] - self._env['#'] = '0' - - #Set new ones - for i,arg in enumerate(args): - self._env[str(i+1)] = str(arg) - self._env['#'] = str(len(args)) - - return prevargs - - def get_positional_args(self): - return [self._env[str(i+1)] for i in range(int(self._env['#']))] - - def get_variables(self): - return dict(self._env) - - def export(self, key, value=None): - if value is not None: - self[key] = value - self._exported.add(key) - - def get_exported(self): - return [(k,self._env.get(k)) for k in self._exported] - - def split_fields(self, word): - if not self._ifs_ws or not word: - return [word] - return re.split(self._ifs_re, word) - - def _update_ifs(self, value): - """Update the split_fields related variables when IFS character set is - changed. - """ - # TODO: handle NULL IFS - - # Separate characters in whitespace and non-whitespace - chars = set(value) - ws = [c for c in chars if c in _IFS_WHITESPACES] - nws = [c for c in chars if c not in _IFS_WHITESPACES] - - # Keep whitespaces in a string for left and right stripping - self._ifs_ws = ''.join(ws) - - # Build a regexp to split fields - trailing = '[' + ''.join([re.escape(c) for c in ws]) + ']' - if nws: - # First, the single non-whitespace occurence. - nws = '[' + ''.join([re.escape(c) for c in nws]) + ']' - nws = '(?:' + trailing + '*' + nws + trailing + '*' + '|' + trailing + '+)' - else: - # Then mix all parts with quantifiers - nws = trailing + '+' - self._ifs_re = re.compile(nws) - - def has_opt(self, opt, val=None): - return (opt, val) in self._opt - - def set_opt(self, opt, val=None): - self._opt.add((opt, val)) - - def find_in_path(self, name, pwd=False): - path = self._env.get('PATH', '').split(os.pathsep) - if pwd: - path[:0] = [self['PWD']] - if os.name == 'nt': - return win32_find_in_path(name, self._env.get('PATH', '')) - else: - raise NotImplementedError() - - def define_function(self, name, body): - if not is_name(name): - raise ShellSyntaxError('%s is not a valid function name' % repr(name)) - self._functions[name] = body - - def remove_function(self, name): - del self._functions[name] - - def is_function(self, name): - return name in self._functions - - def get_function(self, name): - return self._functions.get(name) - - -name_charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_' -name_charset = dict(zip(name_charset,name_charset)) - -def match_name(s): - """Return the length in characters of the longest prefix made of name - allowed characters in s. - """ - for i,c in enumerate(s): - if c not in name_charset: - return s[:i] - return s - -def is_name(s): - return len([c for c in s if c not in name_charset])<=0 - -def is_special_param(c): - return len(c)==1 and c in ('@','*','#','?','-','$','!','0') - -def utility_not_implemented(name, *args, **kwargs): - raise NotImplementedError('%s utility is not implemented' % name) - - -class Utility: - """Define utilities properties: - func -- utility callable. See builtin module for utility samples. - is_special -- see XCU 2.8. - """ - def __init__(self, func, is_special=0): - self.func = func - self.is_special = bool(is_special) - - -def encodeargs(args): - def encodearg(s): - lines = base64.encodestring(s) - lines = [l.splitlines()[0] for l in lines] - return ''.join(lines) - - s = pickle.dumps(args) - return encodearg(s) - -def decodeargs(s): - s = base64.decodestring(s) - return pickle.loads(s) - - -class GlobError(Exception): - pass - -class Options: - def __init__(self): - # True if Mercurial operates with binary streams - self.hgbinary = True - -class Interpreter: - # Implementation is very basic: the execute() method just makes a DFS on the - # AST and execute nodes one by one. Nodes are tuple (name,obj) where name - # is a string identifier and obj the AST element returned by the parser. - # - # Handler are named after the node identifiers. - # TODO: check node names and remove the switch in execute with some - # dynamic getattr() call to find node handlers. - """Shell interpreter. - - The following debugging flags can be passed: - debug-parsing - enable PLY debugging. - debug-tree - print the generated AST. - debug-cmd - trace command execution before word expansion, plus exit status. - debug-utility - trace utility execution. - """ - - # List supported commands. - COMMANDS = { - 'cat': Utility(builtin.utility_cat,), - 'cd': Utility(builtin.utility_cd,), - ':': Utility(builtin.utility_colon,), - 'echo': Utility(builtin.utility_echo), - 'env': Utility(builtin.utility_env), - 'exit': Utility(builtin.utility_exit), - 'export': Utility(builtin.builtin_export, is_special=1), - 'egrep': Utility(builtin.utility_egrep), - 'fgrep': Utility(builtin.utility_fgrep), - 'gunzip': Utility(builtin.utility_gunzip), - 'kill': Utility(builtin.utility_kill), - 'mkdir': Utility(builtin.utility_mkdir), - 'netstat': Utility(builtin.utility_netstat), - 'printf': Utility(builtin.utility_printf), - 'pwd': Utility(builtin.utility_pwd), - 'return': Utility(builtin.builtin_return, is_special=1), - 'sed': Utility(builtin.utility_sed,), - 'set': Utility(builtin.builtin_set,), - 'shift': Utility(builtin.builtin_shift,), - 'sleep': Utility(builtin.utility_sleep,), - 'sort': Utility(builtin.utility_sort,), - 'trap': Utility(builtin.builtin_trap, is_special=1), - 'true': Utility(builtin.utility_true), - 'unset': Utility(builtin.builtin_unset, is_special=1), - 'wait': Utility(builtin.builtin_wait, is_special=1), - } - - def __init__(self, pwd, debugflags = [], env=None, redirs=None, stdin=None, - stdout=None, stderr=None, opts=Options()): - self._env = env - if self._env is None: - self._env = Environment(pwd) - self._children = {} - - self._redirs = redirs - self._close_redirs = False - - if self._redirs is None: - if stdin is None: - stdin = sys.stdin - if stdout is None: - stdout = sys.stdout - if stderr is None: - stderr = sys.stderr - stdin = FileWrapper('r', stdin, False) - stdout = FileWrapper('w', stdout, False) - stderr = FileWrapper('w', stderr, False) - self._redirs = Redirections(stdin, stdout, stderr) - self._close_redirs = True - - self._debugflags = list(debugflags) - self._logfile = sys.stderr - self._options = opts - - def close(self): - """Must be called when the interpreter is no longer used.""" - script = self._env.traps.get('EXIT') - if script: - try: - self.execute_script(script=script) - except: - pass - - if self._redirs is not None and self._close_redirs: - self._redirs.close() - self._redirs = None - - def log(self, s): - self._logfile.write(s) - self._logfile.flush() - - def __getitem__(self, key): - return self._env[key] - - def __setitem__(self, key, value): - self._env[key] = value - - def options(self): - return self._options - - def redirect(self, redirs, ios): - def add_redir(io): - if isinstance(io, pyshyacc.IORedirect): - redirs.add(self, io.op, io.filename, io.io_number) - else: - redirs.add_here_document(self, io.name, io.content, io.io_number) - - map(add_redir, ios) - return redirs - - def execute_script(self, script=None, ast=None, sourced=False, - scriptpath=None): - """If script is not None, parse the input. Otherwise takes the supplied - AST. Then execute the AST. - Return the script exit status. - """ - try: - if scriptpath is not None: - self._env['0'] = os.path.abspath(scriptpath) - - if script is not None: - debug_parsing = ('debug-parsing' in self._debugflags) - cmds, script = pyshyacc.parse(script, True, debug_parsing) - if 'debug-tree' in self._debugflags: - pyshyacc.print_commands(cmds, self._logfile) - self._logfile.flush() - else: - cmds, script = ast, '' - - status = 0 - for cmd in cmds: - try: - status = self.execute(cmd) - except ExitSignal as e: - if sourced: - raise - status = int(e.args[0]) - return status - except ShellError: - self._env['?'] = 1 - raise - if 'debug-utility' in self._debugflags or 'debug-cmd' in self._debugflags: - self.log('returncode ' + str(status)+ '\n') - return status - except CommandNotFound as e: - print >>self._redirs.stderr, str(e) - self._redirs.stderr.flush() - # Command not found by non-interactive shell - # return 127 - raise - except RedirectionError as e: - # TODO: should be handled depending on the utility status - print >>self._redirs.stderr, str(e) - self._redirs.stderr.flush() - # Command not found by non-interactive shell - # return 127 - raise - - def dotcommand(self, env, args): - if len(args) < 1: - raise ShellError('. expects at least one argument') - path = args[0] - if '/' not in path: - found = env.find_in_path(args[0], True) - if found: - path = found[0] - script = file(path).read() - return self.execute_script(script=script, sourced=True) - - def execute(self, token, redirs=None): - """Execute and AST subtree with supplied redirections overriding default - interpreter ones. - Return the exit status. - """ - if not token: - return 0 - - if redirs is None: - redirs = self._redirs - - if isinstance(token, list): - # Commands sequence - res = 0 - for t in token: - res = self.execute(t, redirs) - return res - - type, value = token - status = 0 - if type=='simple_command': - redirs_copy = redirs.clone() - try: - # TODO: define and handle command return values - # TODO: implement set -e - status = self._execute_simple_command(value, redirs_copy) - finally: - redirs_copy.close() - elif type=='pipeline': - status = self._execute_pipeline(value, redirs) - elif type=='and_or': - status = self._execute_and_or(value, redirs) - elif type=='for_clause': - status = self._execute_for_clause(value, redirs) - elif type=='while_clause': - status = self._execute_while_clause(value, redirs) - elif type=='function_definition': - status = self._execute_function_definition(value, redirs) - elif type=='brace_group': - status = self._execute_brace_group(value, redirs) - elif type=='if_clause': - status = self._execute_if_clause(value, redirs) - elif type=='subshell': - status = self.subshell(ast=value.cmds, redirs=redirs) - elif type=='async': - status = self._asynclist(value) - elif type=='redirect_list': - redirs_copy = self.redirect(redirs.clone(), value.redirs) - try: - status = self.execute(value.cmd, redirs_copy) - finally: - redirs_copy.close() - else: - raise NotImplementedError('Unsupported token type ' + type) - - if status < 0: - status = 255 - return status - - def _execute_if_clause(self, if_clause, redirs): - cond_status = self.execute(if_clause.cond, redirs) - if cond_status==0: - return self.execute(if_clause.if_cmds, redirs) - else: - return self.execute(if_clause.else_cmds, redirs) - - def _execute_brace_group(self, group, redirs): - status = 0 - for cmd in group.cmds: - status = self.execute(cmd, redirs) - return status - - def _execute_function_definition(self, fundef, redirs): - self._env.define_function(fundef.name, fundef.body) - return 0 - - def _execute_while_clause(self, while_clause, redirs): - status = 0 - while 1: - cond_status = 0 - for cond in while_clause.condition: - cond_status = self.execute(cond, redirs) - - if cond_status: - break - - for cmd in while_clause.cmds: - status = self.execute(cmd, redirs) - - return status - - def _execute_for_clause(self, for_clause, redirs): - if not is_name(for_clause.name): - raise ShellSyntaxError('%s is not a valid name' % repr(for_clause.name)) - items = mappend(self.expand_token, for_clause.items) - - status = 0 - for item in items: - self._env[for_clause.name] = item - for cmd in for_clause.cmds: - status = self.execute(cmd, redirs) - return status - - def _execute_and_or(self, or_and, redirs): - res = self.execute(or_and.left, redirs) - if (or_and.op=='&&' and res==0) or (or_and.op!='&&' and res!=0): - res = self.execute(or_and.right, redirs) - return res - - def _execute_pipeline(self, pipeline, redirs): - if len(pipeline.commands)==1: - status = self.execute(pipeline.commands[0], redirs) - else: - # Execute all commands one after the other - status = 0 - inpath, outpath = None, None - try: - # Commands inputs and outputs cannot really be plugged as done - # by a real shell. Run commands sequentially and chain their - # input/output throught temporary files. - tmpfd, inpath = tempfile.mkstemp() - os.close(tmpfd) - tmpfd, outpath = tempfile.mkstemp() - os.close(tmpfd) - - inpath = win32_to_unix_path(inpath) - outpath = win32_to_unix_path(outpath) - - for i, cmd in enumerate(pipeline.commands): - call_redirs = redirs.clone() - try: - if i!=0: - call_redirs.add(self, '<', inpath) - if i!=len(pipeline.commands)-1: - call_redirs.add(self, '>', outpath) - - status = self.execute(cmd, call_redirs) - - # Chain inputs/outputs - inpath, outpath = outpath, inpath - finally: - call_redirs.close() - finally: - if inpath: os.remove(inpath) - if outpath: os.remove(outpath) - - if pipeline.reverse_status: - status = int(not status) - self._env['?'] = status - return status - - def _execute_function(self, name, args, interp, env, stdin, stdout, stderr, *others): - assert interp is self - - func = env.get_function(name) - #Set positional parameters - prevargs = None - try: - prevargs = env.set_positional_args(args) - try: - redirs = Redirections(stdin.dup(), stdout.dup(), stderr.dup()) - try: - status = self.execute(func, redirs) - finally: - redirs.close() - except ReturnSignal as e: - status = int(e.args[0]) - env['?'] = status - return status - finally: - #Reset positional parameters - if prevargs is not None: - env.set_positional_args(prevargs) - - def _execute_simple_command(self, token, redirs): - """Can raise ReturnSignal when return builtin is called, ExitSignal when - exit is called, and other shell exceptions upon builtin failures. - """ - debug_command = 'debug-cmd' in self._debugflags - if debug_command: - self.log('word' + repr(token.words) + '\n') - self.log('assigns' + repr(token.assigns) + '\n') - self.log('redirs' + repr(token.redirs) + '\n') - - is_special = None - env = self._env - - try: - # Word expansion - args = [] - for word in token.words: - args += self.expand_token(word) - if is_special is None and args: - is_special = env.is_function(args[0]) or \ - (args[0] in self.COMMANDS and self.COMMANDS[args[0]].is_special) - - if debug_command: - self.log('_execute_simple_command' + str(args) + '\n') - - if not args: - # Redirections happen is a subshell - redirs = redirs.clone() - elif not is_special: - env = self._env.clone() - - # Redirections - self.redirect(redirs, token.redirs) - - # Variables assignments - res = 0 - for type,(k,v) in token.assigns: - status, expanded = self.expand_variable((k,v)) - if status is not None: - res = status - if args: - env.export(k, expanded) - else: - env[k] = expanded - - if args and args[0] in ('.', 'source'): - res = self.dotcommand(env, args[1:]) - elif args: - if args[0] in self.COMMANDS: - command = self.COMMANDS[args[0]] - elif env.is_function(args[0]): - command = Utility(self._execute_function, is_special=True) - else: - if not '/' in args[0].replace('\\', '/'): - cmd = env.find_in_path(args[0]) - if not cmd: - # TODO: test error code on unknown command => 127 - raise CommandNotFound('Unknown command: "%s"' % args[0]) - else: - # Handle commands like '/cygdrive/c/foo.bat' - cmd = cygwin_to_windows_path(args[0]) - if not os.path.exists(cmd): - raise CommandNotFound('%s: No such file or directory' % args[0]) - shebang = resolve_shebang(cmd) - if shebang: - cmd = shebang - else: - cmd = [cmd] - args[0:1] = cmd - command = Utility(builtin.run_command) - - # Command execution - if 'debug-cmd' in self._debugflags: - self.log('redirections ' + str(redirs) + '\n') - - res = command.func(args[0], args[1:], self, env, - redirs.stdin(), redirs.stdout(), - redirs.stderr(), self._debugflags) - - if self._env.has_opt('-x'): - # Trace command execution in shell environment - # BUG: would be hard to reproduce a real shell behaviour since - # the AST is not annotated with source lines/tokens. - self._redirs.stdout().write(' '.join(args)) - - except ReturnSignal: - raise - except ShellError as e: - if is_special or isinstance(e, (ExitSignal, - ShellSyntaxError, ExpansionError)): - raise e - self._redirs.stderr().write(str(e)+'\n') - return 1 - - return res - - def expand_token(self, word): - """Expand a word as specified in [2.6 Word Expansions]. Return the list - of expanded words. - """ - status, wtrees = self._expand_word(word) - return map(pyshlex.wordtree_as_string, wtrees) - - def expand_variable(self, word): - """Return a status code (or None if no command expansion occurred) - and a single word. - """ - status, wtrees = self._expand_word(word, pathname=False, split=False) - words = map(pyshlex.wordtree_as_string, wtrees) - assert len(words)==1 - return status, words[0] - - def expand_here_document(self, word): - """Return the expanded document as a single word. The here document is - assumed to be unquoted. - """ - status, wtrees = self._expand_word(word, pathname=False, - split=False, here_document=True) - words = map(pyshlex.wordtree_as_string, wtrees) - assert len(words)==1 - return words[0] - - def expand_redirection(self, word): - """Return a single word.""" - return self.expand_variable(word)[1] - - def get_env(self): - return self._env - - def _expand_word(self, token, pathname=True, split=True, here_document=False): - wtree = pyshlex.make_wordtree(token[1], here_document=here_document) - - # TODO: implement tilde expansion - def expand(wtree): - """Return a pseudo wordtree: the tree or its subelements can be empty - lists when no value result from the expansion. - """ - status = None - for part in wtree: - if not isinstance(part, list): - continue - if part[0]in ("'", '\\'): - continue - elif part[0] in ('`', '$('): - status, result = self._expand_command(part) - part[:] = result - elif part[0] in ('$', '${'): - part[:] = self._expand_parameter(part, wtree[0]=='"', split) - elif part[0] in ('', '"'): - status, result = expand(part) - part[:] = result - else: - raise NotImplementedError('%s expansion is not implemented' - % part[0]) - # [] is returned when an expansion result in no-field, - # like an empty $@ - wtree = [p for p in wtree if p != []] - if len(wtree) < 3: - return status, [] - return status, wtree - - status, wtree = expand(wtree) - if len(wtree) == 0: - return status, wtree - wtree = pyshlex.normalize_wordtree(wtree) - - if split: - wtrees = self._split_fields(wtree) - else: - wtrees = [wtree] - - if pathname: - wtrees = mappend(self._expand_pathname, wtrees) - - wtrees = map(self._remove_quotes, wtrees) - return status, wtrees - - def _expand_command(self, wtree): - # BUG: there is something to do with backslashes and quoted - # characters here - command = pyshlex.wordtree_as_string(wtree[1:-1]) - status, output = self.subshell_output(command) - return status, ['', output, ''] - - def _expand_parameter(self, wtree, quoted=False, split=False): - """Return a valid wtree or an empty list when no parameter results.""" - # Get the parameter name - # TODO: implement weird expansion rules with ':' - name = pyshlex.wordtree_as_string(wtree[1:-1]) - if not is_name(name) and not is_special_param(name): - raise ExpansionError('Bad substitution "%s"' % name) - # TODO: implement special parameters - if name in ('@', '*'): - args = self._env.get_positional_args() - if len(args) == 0: - return [] - if len(args)<2: - return ['', ''.join(args), ''] - - sep = self._env.get('IFS', '')[:1] - if split and quoted and name=='@': - # Introduce a new token to tell the caller that these parameters - # cause a split as specified in 2.5.2 - return ['@'] + args + [''] - else: - return ['', sep.join(args), ''] - - return ['', self._env.get(name, ''), ''] - - def _split_fields(self, wtree): - def is_empty(split): - return split==['', '', ''] - - def split_positional(quoted): - # Return a list of wtree split according positional parameters rules. - # All remaining '@' groups are removed. - assert quoted[0]=='"' - - splits = [[]] - for part in quoted: - if not isinstance(part, list) or part[0]!='@': - splits[-1].append(part) - else: - # Empty or single argument list were dealt with already - assert len(part)>3 - # First argument must join with the beginning part of the original word - splits[-1].append(part[1]) - # Create double-quotes expressions for every argument after the first - for arg in part[2:-1]: - splits[-1].append('"') - splits.append(['"', arg]) - return splits - - # At this point, all expansions but pathnames have occured. Only quoted - # and positional sequences remain. Thus, all candidates for field splitting - # are in the tree root, or are positional splits ('@') and lie in root - # children. - if not wtree or wtree[0] not in ('', '"'): - # The whole token is quoted or empty, nothing to split - return [wtree] - - if wtree[0]=='"': - wtree = ['', wtree, ''] - - result = [['', '']] - for part in wtree[1:-1]: - if isinstance(part, list): - if part[0]=='"': - splits = split_positional(part) - if len(splits)<=1: - result[-1] += [part, ''] - else: - # Terminate the current split - result[-1] += [splits[0], ''] - result += splits[1:-1] - # Create a new split - result += [['', splits[-1], '']] - else: - result[-1] += [part, ''] - else: - splits = self._env.split_fields(part) - if len(splits)<=1: - # No split - result[-1][-1] += part - else: - # Terminate the current resulting part and create a new one - result[-1][-1] += splits[0] - result[-1].append('') - result += [['', r, ''] for r in splits[1:-1]] - result += [['', splits[-1]]] - result[-1].append('') - - # Leading and trailing empty groups come from leading/trailing blanks - if result and is_empty(result[-1]): - result[-1:] = [] - if result and is_empty(result[0]): - result[:1] = [] - return result - - def _expand_pathname(self, wtree): - """See [2.6.6 Pathname Expansion].""" - if self._env.has_opt('-f'): - return [wtree] - - # All expansions have been performed, only quoted sequences should remain - # in the tree. Generate the pattern by folding the tree, escaping special - # characters when appear quoted - special_chars = '*?[]' - - def make_pattern(wtree): - subpattern = [] - for part in wtree[1:-1]: - if isinstance(part, list): - part = make_pattern(part) - elif wtree[0]!='': - for c in part: - # Meta-characters cannot be quoted - if c in special_chars: - raise GlobError() - subpattern.append(part) - return ''.join(subpattern) - - def pwd_glob(pattern): - cwd = os.getcwd() - os.chdir(self._env['PWD']) - try: - return glob.glob(pattern) - finally: - os.chdir(cwd) - - #TODO: check working directory issues here wrt relative patterns - try: - pattern = make_pattern(wtree) - paths = pwd_glob(pattern) - except GlobError: - # BUG: Meta-characters were found in quoted sequences. The should - # have been used literally but this is unsupported in current glob module. - # Instead we consider the whole tree must be used literally and - # therefore there is no point in globbing. This is wrong when meta - # characters are mixed with quoted meta in the same pattern like: - # < foo*"py*" > - paths = [] - - if not paths: - return [wtree] - return [['', path, ''] for path in paths] - - def _remove_quotes(self, wtree): - """See [2.6.7 Quote Removal].""" - - def unquote(wtree): - unquoted = [] - for part in wtree[1:-1]: - if isinstance(part, list): - part = unquote(part) - unquoted.append(part) - return ''.join(unquoted) - - return ['', unquote(wtree), ''] - - def subshell(self, script=None, ast=None, redirs=None): - """Execute the script or AST in a subshell, with inherited redirections - if redirs is not None. - """ - if redirs: - sub_redirs = redirs - else: - sub_redirs = redirs.clone() - - subshell = None - try: - subshell = Interpreter(None, self._debugflags, self._env.clone(True), - sub_redirs, opts=self._options) - return subshell.execute_script(script, ast) - finally: - if not redirs: sub_redirs.close() - if subshell: subshell.close() - - def subshell_output(self, script): - """Execute the script in a subshell and return the captured output.""" - # Create temporary file to capture subshell output - tmpfd, tmppath = tempfile.mkstemp() - try: - tmpfile = os.fdopen(tmpfd, 'wb') - stdout = FileWrapper('w', tmpfile) - - redirs = Redirections(self._redirs.stdin().dup(), - stdout, - self._redirs.stderr().dup()) - try: - status = self.subshell(script=script, redirs=redirs) - finally: - redirs.close() - redirs = None - - # Extract subshell standard output - tmpfile = open(tmppath, 'rb') - try: - output = tmpfile.read() - return status, output.rstrip('\n') - finally: - tmpfile.close() - finally: - os.remove(tmppath) - - def _asynclist(self, cmd): - args = (self._env.get_variables(), cmd) - arg = encodeargs(args) - assert len(args) < 30*1024 - cmd = ['pysh.bat', '--ast', '-c', arg] - p = subprocess.Popen(cmd, cwd=self._env['PWD']) - self._children[p.pid] = p - self._env['!'] = p.pid - return 0 - - def wait(self, pids=None): - if not pids: - pids = self._children.keys() - - status = 127 - for pid in pids: - if pid not in self._children: - continue - p = self._children.pop(pid) - status = p.wait() - - return status - diff --git a/poky/bitbake/lib/bb/pysh/lsprof.py b/poky/bitbake/lib/bb/pysh/lsprof.py deleted file mode 100644 index b1831c2..0000000 --- a/poky/bitbake/lib/bb/pysh/lsprof.py +++ /dev/null @@ -1,116 +0,0 @@ -#! /usr/bin/env python - -import sys -from _lsprof import Profiler, profiler_entry - -__all__ = ['profile', 'Stats'] - -def profile(f, *args, **kwds): - """XXX docstring""" - p = Profiler() - p.enable(subcalls=True, builtins=True) - try: - f(*args, **kwds) - finally: - p.disable() - return Stats(p.getstats()) - - -class Stats(object): - """XXX docstring""" - - def __init__(self, data): - self.data = data - - def sort(self, crit="inlinetime"): - """XXX docstring""" - if crit not in profiler_entry.__dict__: - raise ValueError("Can't sort by %s" % crit) - self.data.sort(lambda b, a: cmp(getattr(a, crit), - getattr(b, crit))) - for e in self.data: - if e.calls: - e.calls.sort(lambda b, a: cmp(getattr(a, crit), - getattr(b, crit))) - - def pprint(self, top=None, file=None, limit=None, climit=None): - """XXX docstring""" - if file is None: - file = sys.stdout - d = self.data - if top is not None: - d = d[:top] - cols = "% 12s %12s %11.4f %11.4f %s\n" - hcols = "% 12s %12s %12s %12s %s\n" - cols2 = "+%12s %12s %11.4f %11.4f + %s\n" - file.write(hcols % ("CallCount", "Recursive", "Total(ms)", - "Inline(ms)", "module:lineno(function)")) - count = 0 - for e in d: - file.write(cols % (e.callcount, e.reccallcount, e.totaltime, - e.inlinetime, label(e.code))) - count += 1 - if limit is not None and count == limit: - return - ccount = 0 - if e.calls: - for se in e.calls: - file.write(cols % ("+%s" % se.callcount, se.reccallcount, - se.totaltime, se.inlinetime, - "+%s" % label(se.code))) - count += 1 - ccount += 1 - if limit is not None and count == limit: - return - if climit is not None and ccount == climit: - break - - def freeze(self): - """Replace all references to code objects with string - descriptions; this makes it possible to pickle the instance.""" - - # this code is probably rather ickier than it needs to be! - for i in range(len(self.data)): - e = self.data[i] - if not isinstance(e.code, str): - self.data[i] = type(e)((label(e.code),) + e[1:]) - if e.calls: - for j in range(len(e.calls)): - se = e.calls[j] - if not isinstance(se.code, str): - e.calls[j] = type(se)((label(se.code),) + se[1:]) - -_fn2mod = {} - -def label(code): - if isinstance(code, str): - return code - try: - mname = _fn2mod[code.co_filename] - except KeyError: - for k, v in sys.modules.items(): - if v is None: - continue - if not hasattr(v, '__file__'): - continue - if not isinstance(v.__file__, str): - continue - if v.__file__.startswith(code.co_filename): - mname = _fn2mod[code.co_filename] = k - break - else: - mname = _fn2mod[code.co_filename] = '<%s>'%code.co_filename - - return '%s:%d(%s)' % (mname, code.co_firstlineno, code.co_name) - - -if __name__ == '__main__': - import os - sys.argv = sys.argv[1:] - if not sys.argv: - print >> sys.stderr, "usage: lsprof.py <script> <arguments...>" - sys.exit(2) - sys.path.insert(0, os.path.abspath(os.path.dirname(sys.argv[0]))) - stats = profile(execfile, sys.argv[0], globals(), locals()) - stats.sort() - stats.pprint() diff --git a/poky/bitbake/lib/bb/pysh/pysh.py b/poky/bitbake/lib/bb/pysh/pysh.py deleted file mode 100644 index b4e6145..0000000 --- a/poky/bitbake/lib/bb/pysh/pysh.py +++ /dev/null @@ -1,167 +0,0 @@ -# pysh.py - command processing for pysh. -# -# Copyright 2007 Patrick Mezard -# -# This software may be used and distributed according to the terms -# of the GNU General Public License, incorporated herein by reference. - -import optparse -import os -import sys - -import interp - -SH_OPT = optparse.OptionParser(prog='pysh', usage="%prog [OPTIONS]", version='0.1') -SH_OPT.add_option('-c', action='store_true', dest='command_string', default=None, - help='A string that shall be interpreted by the shell as one or more commands') -SH_OPT.add_option('--redirect-to', dest='redirect_to', default=None, - help='Redirect script commands stdout and stderr to the specified file') -# See utility_command in builtin.py about the reason for this flag. -SH_OPT.add_option('--redirected', dest='redirected', action='store_true', default=False, - help='Tell the interpreter that stdout and stderr are actually the same objects, which is really stdout') -SH_OPT.add_option('--debug-parsing', action='store_true', dest='debug_parsing', default=False, - help='Trace PLY execution') -SH_OPT.add_option('--debug-tree', action='store_true', dest='debug_tree', default=False, - help='Display the generated syntax tree.') -SH_OPT.add_option('--debug-cmd', action='store_true', dest='debug_cmd', default=False, - help='Trace command execution before parameters expansion and exit status.') -SH_OPT.add_option('--debug-utility', action='store_true', dest='debug_utility', default=False, - help='Trace utility calls, after parameters expansions') -SH_OPT.add_option('--ast', action='store_true', dest='ast', default=False, - help='Encoded commands to execute in a subprocess') -SH_OPT.add_option('--profile', action='store_true', default=False, - help='Profile pysh run') - - -def split_args(args): - # Separate shell arguments from command ones - # Just stop at the first argument not starting with a dash. I know, this is completely broken, - # it ignores files starting with a dash or may take option values for command file. This is not - # supposed to happen for now - command_index = len(args) - for i,arg in enumerate(args): - if not arg.startswith('-'): - command_index = i - break - - return args[:command_index], args[command_index:] - - -def fixenv(env): - path = env.get('PATH') - if path is not None: - parts = path.split(os.pathsep) - # Remove Windows utilities from PATH, they are useless at best and - # some of them (find) may be confused with other utilities. - parts = [p for p in parts if 'system32' not in p.lower()] - env['PATH'] = os.pathsep.join(parts) - if env.get('HOME') is None: - # Several utilities, including cvsps, cannot work without - # a defined HOME directory. - env['HOME'] = os.path.expanduser('~') - return env - -def _sh(cwd, shargs, cmdargs, options, debugflags=None, env=None): - if os.environ.get('PYSH_TEXT') != '1': - import msvcrt - for fp in (sys.stdin, sys.stdout, sys.stderr): - msvcrt.setmode(fp.fileno(), os.O_BINARY) - - hgbin = os.environ.get('PYSH_HGTEXT') != '1' - - if debugflags is None: - debugflags = [] - if options.debug_parsing: debugflags.append('debug-parsing') - if options.debug_utility: debugflags.append('debug-utility') - if options.debug_cmd: debugflags.append('debug-cmd') - if options.debug_tree: debugflags.append('debug-tree') - - if env is None: - env = fixenv(dict(os.environ)) - if cwd is None: - cwd = os.getcwd() - - if not cmdargs: - # Nothing to do - return 0 - - ast = None - command_file = None - if options.command_string: - input = cmdargs[0] - if not options.ast: - input += '\n' - else: - args, input = interp.decodeargs(input), None - env, ast = args - cwd = env.get('PWD', cwd) - else: - command_file = cmdargs[0] - arguments = cmdargs[1:] - - prefix = interp.resolve_shebang(command_file, ignoreshell=True) - if prefix: - input = ' '.join(prefix + [command_file] + arguments) - else: - # Read commands from file - f = file(command_file) - try: - # Trailing newline to help the parser - input = f.read() + '\n' - finally: - f.close() - - redirect = None - try: - if options.redirected: - stdout = sys.stdout - stderr = stdout - elif options.redirect_to: - redirect = open(options.redirect_to, 'wb') - stdout = redirect - stderr = redirect - else: - stdout = sys.stdout - stderr = sys.stderr - - # TODO: set arguments to environment variables - opts = interp.Options() - opts.hgbinary = hgbin - ip = interp.Interpreter(cwd, debugflags, stdout=stdout, stderr=stderr, - opts=opts) - try: - # Export given environment in shell object - for k,v in env.iteritems(): - ip.get_env().export(k,v) - return ip.execute_script(input, ast, scriptpath=command_file) - finally: - ip.close() - finally: - if redirect is not None: - redirect.close() - -def sh(cwd=None, args=None, debugflags=None, env=None): - if args is None: - args = sys.argv[1:] - shargs, cmdargs = split_args(args) - options, shargs = SH_OPT.parse_args(shargs) - - if options.profile: - import lsprof - p = lsprof.Profiler() - p.enable(subcalls=True) - try: - return _sh(cwd, shargs, cmdargs, options, debugflags, env) - finally: - p.disable() - stats = lsprof.Stats(p.getstats()) - stats.sort() - stats.pprint(top=10, file=sys.stderr, climit=5) - else: - return _sh(cwd, shargs, cmdargs, options, debugflags, env) - -def main(): - sys.exit(sh()) - -if __name__=='__main__': - main() diff --git a/poky/bitbake/lib/bb/pysh/pyshlex.py b/poky/bitbake/lib/bb/pysh/pyshlex.py deleted file mode 100644 index fbf094b..0000000 --- a/poky/bitbake/lib/bb/pysh/pyshlex.py +++ /dev/null @@ -1,888 +0,0 @@ -# pyshlex.py - PLY compatible lexer for pysh. -# -# Copyright 2007 Patrick Mezard -# -# This software may be used and distributed according to the terms -# of the GNU General Public License, incorporated herein by reference. - -# TODO: -# - review all "char in 'abc'" snippets: the empty string can be matched -# - test line continuations within quoted/expansion strings -# - eof is buggy wrt sublexers -# - the lexer cannot really work in pull mode as it would be required to run -# PLY in pull mode. It was designed to work incrementally and it would not be -# that hard to enable pull mode. -import re -try: - s = set() - del s -except NameError: - from Set import Set as set - -from ply import lex -from bb.pysh.sherrors import * - -class NeedMore(Exception): - pass - -def is_blank(c): - return c in (' ', '\t') - -_RE_DIGITS = re.compile(r'^\d+$') - -def are_digits(s): - return _RE_DIGITS.search(s) is not None - -_OPERATORS = dict([ - ('&&', 'AND_IF'), - ('||', 'OR_IF'), - (';;', 'DSEMI'), - ('<<', 'DLESS'), - ('>>', 'DGREAT'), - ('<&', 'LESSAND'), - ('>&', 'GREATAND'), - ('<>', 'LESSGREAT'), - ('<<-', 'DLESSDASH'), - ('>|', 'CLOBBER'), - ('&', 'AMP'), - (';', 'COMMA'), - ('<', 'LESS'), - ('>', 'GREATER'), - ('(', 'LPARENS'), - (')', 'RPARENS'), -]) - -#Make a function to silence pychecker "Local variable shadows global" -def make_partial_ops(): - partials = {} - for k in _OPERATORS: - for i in range(1, len(k)+1): - partials[k[:i]] = None - return partials - -_PARTIAL_OPERATORS = make_partial_ops() - -def is_partial_op(s): - """Return True if s matches a non-empty subpart of an operator starting - at its first character. - """ - return s in _PARTIAL_OPERATORS - -def is_op(s): - """If s matches an operator, returns the operator identifier. Return None - otherwise. - """ - return _OPERATORS.get(s) - -_RESERVEDS = dict([ - ('if', 'If'), - ('then', 'Then'), - ('else', 'Else'), - ('elif', 'Elif'), - ('fi', 'Fi'), - ('do', 'Do'), - ('done', 'Done'), - ('case', 'Case'), - ('esac', 'Esac'), - ('while', 'While'), - ('until', 'Until'), - ('for', 'For'), - ('{', 'Lbrace'), - ('}', 'Rbrace'), - ('!', 'Bang'), - ('in', 'In'), - ('|', 'PIPE'), -]) - -def get_reserved(s): - return _RESERVEDS.get(s) - -_RE_NAME = re.compile(r'^[0-9a-zA-Z_]+$') - -def is_name(s): - return _RE_NAME.search(s) is not None - -def find_chars(seq, chars): - for i,v in enumerate(seq): - if v in chars: - return i,v - return -1, None - -class WordLexer: - """WordLexer parse quoted or expansion expressions and return an expression - tree. The input string can be any well formed sequence beginning with quoting - or expansion character. Embedded expressions are handled recursively. The - resulting tree is made of lists and strings. Lists represent quoted or - expansion expressions. Each list first element is the opening separator, - the last one the closing separator. In-between can be any number of strings - or lists for sub-expressions. Non quoted/expansion expression can written as - strings or as lists with empty strings as starting and ending delimiters. - """ - - NAME_CHARSET = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_' - NAME_CHARSET = dict(zip(NAME_CHARSET, NAME_CHARSET)) - - SPECIAL_CHARSET = '@*#?-$!0' - - #Characters which can be escaped depends on the current delimiters - ESCAPABLE = { - '`': set(['$', '\\', '`']), - '"': set(['$', '\\', '`', '"']), - "'": set(), - } - - def __init__(self, heredoc = False): - # _buffer is the unprocessed input characters buffer - self._buffer = [] - # _stack is empty or contains a quoted list being processed - # (this is the DFS path to the quoted expression being evaluated). - self._stack = [] - self._escapable = None - # True when parsing unquoted here documents - self._heredoc = heredoc - - def add(self, data, eof=False): - """Feed the lexer with more data. If the quoted expression can be - delimited, return a tuple (expr, remaining) containing the expression - tree and the unconsumed data. - Otherwise, raise NeedMore. - """ - self._buffer += list(data) - self._parse(eof) - - result = self._stack[0] - remaining = ''.join(self._buffer) - self._stack = [] - self._buffer = [] - return result, remaining - - def _is_escapable(self, c, delim=None): - if delim is None: - if self._heredoc: - # Backslashes works as if they were double quoted in unquoted - # here-documents - delim = '"' - else: - if len(self._stack)<=1: - return True - delim = self._stack[-2][0] - - escapables = self.ESCAPABLE.get(delim, None) - return escapables is None or c in escapables - - def _parse_squote(self, buf, result, eof): - if not buf: - raise NeedMore() - try: - pos = buf.index("'") - except ValueError: - raise NeedMore() - result[-1] += ''.join(buf[:pos]) - result += ["'"] - return pos+1, True - - def _parse_bquote(self, buf, result, eof): - if not buf: - raise NeedMore() - - if buf[0]=='\n': - #Remove line continuations - result[:] = ['', '', ''] - elif self._is_escapable(buf[0]): - result[-1] += buf[0] - result += [''] - else: - #Keep as such - result[:] = ['', '\\'+buf[0], ''] - - return 1, True - - def _parse_dquote(self, buf, result, eof): - if not buf: - raise NeedMore() - pos, sep = find_chars(buf, '$\\`"') - if pos==-1: - raise NeedMore() - - result[-1] += ''.join(buf[:pos]) - if sep=='"': - result += ['"'] - return pos+1, True - else: - #Keep everything until the separator and defer processing - return pos, False - - def _parse_command(self, buf, result, eof): - if not buf: - raise NeedMore() - - chars = '$\\`"\'' - if result[0] == '$(': - chars += ')' - pos, sep = find_chars(buf, chars) - if pos == -1: - raise NeedMore() - - result[-1] += ''.join(buf[:pos]) - if (result[0]=='$(' and sep==')') or (result[0]=='`' and sep=='`'): - result += [sep] - return pos+1, True - else: - return pos, False - - def _parse_parameter(self, buf, result, eof): - if not buf: - raise NeedMore() - - pos, sep = find_chars(buf, '$\\`"\'}') - if pos==-1: - raise NeedMore() - - result[-1] += ''.join(buf[:pos]) - if sep=='}': - result += [sep] - return pos+1, True - else: - return pos, False - - def _parse_dollar(self, buf, result, eof): - sep = result[0] - if sep=='$': - if not buf: - #TODO: handle empty $ - raise NeedMore() - if buf[0]=='(': - if len(buf)==1: - raise NeedMore() - - if buf[1]=='(': - result[0] = '$((' - buf[:2] = [] - else: - result[0] = '$(' - buf[:1] = [] - - elif buf[0]=='{': - result[0] = '${' - buf[:1] = [] - else: - if buf[0] in self.SPECIAL_CHARSET: - result[-1] = buf[0] - read = 1 - else: - for read,c in enumerate(buf): - if c not in self.NAME_CHARSET: - break - else: - if not eof: - raise NeedMore() - read += 1 - - result[-1] += ''.join(buf[0:read]) - - if not result[-1]: - result[:] = ['', result[0], ''] - else: - result += [''] - return read,True - - sep = result[0] - if sep=='$(': - parsefunc = self._parse_command - elif sep=='${': - parsefunc = self._parse_parameter - else: - raise NotImplementedError(sep) - - pos, closed = parsefunc(buf, result, eof) - return pos, closed - - def _parse(self, eof): - buf = self._buffer - stack = self._stack - recurse = False - - while 1: - if not stack or recurse: - if not buf: - raise NeedMore() - if buf[0] not in ('"\\`$\''): - raise ShellSyntaxError('Invalid quoted string sequence') - stack.append([buf[0], '']) - buf[:1] = [] - recurse = False - - result = stack[-1] - if result[0]=="'": - parsefunc = self._parse_squote - elif result[0]=='\\': - parsefunc = self._parse_bquote - elif result[0]=='"': - parsefunc = self._parse_dquote - elif result[0]=='`': - parsefunc = self._parse_command - elif result[0][0]=='$': - parsefunc = self._parse_dollar - else: - raise NotImplementedError() - - read, closed = parsefunc(buf, result, eof) - - buf[:read] = [] - if closed: - if len(stack)>1: - #Merge in parent expression - parsed = stack.pop() - stack[-1] += [parsed] - stack[-1] += [''] - else: - break - else: - recurse = True - -def normalize_wordtree(wtree): - """Fold back every literal sequence (delimited with empty strings) into - parent sequence. - """ - def normalize(wtree): - result = [] - for part in wtree[1:-1]: - if isinstance(part, list): - part = normalize(part) - if part[0]=='': - #Move the part content back at current level - result += part[1:-1] - continue - elif not part: - #Remove empty strings - continue - result.append(part) - if not result: - result = [''] - return [wtree[0]] + result + [wtree[-1]] - - return normalize(wtree) - - -def make_wordtree(token, here_document=False): - """Parse a delimited token and return a tree similar to the ones returned by - WordLexer. token may contain any combinations of expansion/quoted fields and - non-ones. - """ - tree = [''] - remaining = token - delimiters = '\\$`' - if not here_document: - delimiters += '\'"' - - while 1: - pos, sep = find_chars(remaining, delimiters) - if pos==-1: - tree += [remaining, ''] - return normalize_wordtree(tree) - tree.append(remaining[:pos]) - remaining = remaining[pos:] - - try: - result, remaining = WordLexer(heredoc = here_document).add(remaining, True) - except NeedMore: - raise ShellSyntaxError('Invalid token "%s"') - tree.append(result) - - -def wordtree_as_string(wtree): - """Rewrite an expression tree generated by make_wordtree as string.""" - def visit(node, output): - for child in node: - if isinstance(child, list): - visit(child, output) - else: - output.append(child) - - output = [] - visit(wtree, output) - return ''.join(output) - - -def unquote_wordtree(wtree): - """Fold the word tree while removing quotes everywhere. Other expansion - sequences are joined as such. - """ - def unquote(wtree): - unquoted = [] - if wtree[0] in ('', "'", '"', '\\'): - wtree = wtree[1:-1] - - for part in wtree: - if isinstance(part, list): - part = unquote(part) - unquoted.append(part) - return ''.join(unquoted) - - return unquote(wtree) - - -class HereDocLexer: - """HereDocLexer delimits whatever comes from the here-document starting newline - not included to the closing delimiter line included. - """ - def __init__(self, op, delim): - assert op in ('<<', '<<-') - if not delim: - raise ShellSyntaxError('invalid here document delimiter %s' % str(delim)) - - self._op = op - self._delim = delim - self._buffer = [] - self._token = [] - - def add(self, data, eof): - """If the here-document was delimited, return a tuple (content, remaining). - Raise NeedMore() otherwise. - """ - self._buffer += list(data) - self._parse(eof) - token = ''.join(self._token) - remaining = ''.join(self._buffer) - self._token, self._remaining = [], [] - return token, remaining - - def _parse(self, eof): - while 1: - #Look for first unescaped newline. Quotes may be ignored - escaped = False - for i,c in enumerate(self._buffer): - if escaped: - escaped = False - elif c=='\\': - escaped = True - elif c=='\n': - break - else: - i = -1 - - if i==-1 or self._buffer[i]!='\n': - if not eof: - raise NeedMore() - #No more data, maybe the last line is closing delimiter - line = ''.join(self._buffer) - eol = '' - self._buffer[:] = [] - else: - line = ''.join(self._buffer[:i]) - eol = self._buffer[i] - self._buffer[:i+1] = [] - - if self._op=='<<-': - line = line.lstrip('\t') - - if line==self._delim: - break - - self._token += [line, eol] - if i==-1: - break - -class Token: - #TODO: check this is still in use - OPERATOR = 'OPERATOR' - WORD = 'WORD' - - def __init__(self): - self.value = '' - self.type = None - - def __getitem__(self, key): - #Behave like a two elements tuple - if key==0: - return self.type - if key==1: - return self.value - raise IndexError(key) - - -class HereDoc: - def __init__(self, op, name=None): - self.op = op - self.name = name - self.pendings = [] - -TK_COMMA = 'COMMA' -TK_AMPERSAND = 'AMP' -TK_OP = 'OP' -TK_TOKEN = 'TOKEN' -TK_COMMENT = 'COMMENT' -TK_NEWLINE = 'NEWLINE' -TK_IONUMBER = 'IO_NUMBER' -TK_ASSIGNMENT = 'ASSIGNMENT_WORD' -TK_HERENAME = 'HERENAME' - -class Lexer: - """Main lexer. - - Call add() until the script AST is returned. - """ - # Here-document handling makes the whole thing more complex because they basically - # force tokens to be reordered: here-content must come right after the operator - # and the here-document name, while some other tokens might be following the - # here-document expression on the same line. - # - # So, here-doc states are basically: - # *self._state==ST_NORMAL - # - self._heredoc.op is None: no here-document - # - self._heredoc.op is not None but name is: here-document operator matched, - # waiting for the document name/delimiter - # - self._heredoc.op and name are not None: here-document is ready, following - # tokens are being stored and will be pushed again when the document is - # completely parsed. - # *self._state==ST_HEREDOC - # - The here-document is being delimited by self._herelexer. Once it is done - # the content is pushed in front of the pending token list then all these - # tokens are pushed once again. - ST_NORMAL = 'ST_NORMAL' - ST_OP = 'ST_OP' - ST_BACKSLASH = 'ST_BACKSLASH' - ST_QUOTED = 'ST_QUOTED' - ST_COMMENT = 'ST_COMMENT' - ST_HEREDOC = 'ST_HEREDOC' - - #Match end of backquote strings - RE_BACKQUOTE_END = re.compile(r'(?<!\\)(`)') - - def __init__(self, parent_state = None): - self._input = [] - self._pos = 0 - - self._token = '' - self._type = TK_TOKEN - - self._state = self.ST_NORMAL - self._parent_state = parent_state - self._wordlexer = None - - self._heredoc = HereDoc(None) - self._herelexer = None - - ### Following attributes are not used for delimiting token and can safely - ### be changed after here-document detection (see _push_toke) - - # Count the number of tokens following a 'For' reserved word. Needed to - # return an 'In' reserved word if it comes in third place. - self._for_count = None - - def add(self, data, eof=False): - """Feed the lexer with data. - - When eof is set to True, returns unconsumed data or raise if the lexer - is in the middle of a delimiting operation. - Raise NeedMore otherwise. - """ - self._input += list(data) - self._parse(eof) - self._input[:self._pos] = [] - return ''.join(self._input) - - def _parse(self, eof): - while self._state: - if self._pos>=len(self._input): - if not eof: - raise NeedMore() - elif self._state not in (self.ST_OP, self.ST_QUOTED, self.ST_HEREDOC): - #Delimit the current token and leave cleanly - self._push_token('') - break - else: - #Let the sublexer handle the eof themselves - pass - - if self._state==self.ST_NORMAL: - self._parse_normal() - elif self._state==self.ST_COMMENT: - self._parse_comment() - elif self._state==self.ST_OP: - self._parse_op(eof) - elif self._state==self.ST_QUOTED: - self._parse_quoted(eof) - elif self._state==self.ST_HEREDOC: - self._parse_heredoc(eof) - else: - assert False, "Unknown state " + str(self._state) - - if self._heredoc.op is not None: - raise ShellSyntaxError('missing here-document delimiter') - - def _parse_normal(self): - c = self._input[self._pos] - if c=='\n': - self._push_token(c) - self._token = c - self._type = TK_NEWLINE - self._push_token('') - self._pos += 1 - elif c in ('\\', '\'', '"', '`', '$'): - self._state = self.ST_QUOTED - elif is_partial_op(c): - self._push_token(c) - - self._type = TK_OP - self._token += c - self._pos += 1 - self._state = self.ST_OP - elif is_blank(c): - self._push_token(c) - - #Discard blanks - self._pos += 1 - elif self._token: - self._token += c - self._pos += 1 - elif c=='#': - self._state = self.ST_COMMENT - self._type = TK_COMMENT - self._pos += 1 - else: - self._pos += 1 - self._token += c - - def _parse_op(self, eof): - assert self._token - - while 1: - if self._pos>=len(self._input): - if not eof: - raise NeedMore() - c = '' - else: - c = self._input[self._pos] - - op = self._token + c - if c and is_partial_op(op): - #Still parsing an operator - self._token = op - self._pos += 1 - else: - #End of operator - self._push_token(c) - self._state = self.ST_NORMAL - break - - def _parse_comment(self): - while 1: - if self._pos>=len(self._input): - raise NeedMore() - - c = self._input[self._pos] - if c=='\n': - #End of comment, do not consume the end of line - self._state = self.ST_NORMAL - break - else: - self._token += c - self._pos += 1 - - def _parse_quoted(self, eof): - """Precondition: the starting backquote/dollar is still in the input queue.""" - if not self._wordlexer: - self._wordlexer = WordLexer() - - if self._pos<len(self._input): - #Transfer input queue character into the subparser - input = self._input[self._pos:] - self._pos += len(input) - - wtree, remaining = self._wordlexer.add(input, eof) - self._wordlexer = None - self._token += wordtree_as_string(wtree) - - #Put unparsed character back in the input queue - if remaining: - self._input[self._pos:self._pos] = list(remaining) - self._state = self.ST_NORMAL - - def _parse_heredoc(self, eof): - assert not self._token - - if self._herelexer is None: - self._herelexer = HereDocLexer(self._heredoc.op, self._heredoc.name) - - if self._pos<len(self._input): - #Transfer input queue character into the subparser - input = self._input[self._pos:] - self._pos += len(input) - - self._token, remaining = self._herelexer.add(input, eof) - - #Reset here-document state - self._herelexer = None - heredoc, self._heredoc = self._heredoc, HereDoc(None) - if remaining: - self._input[self._pos:self._pos] = list(remaining) - self._state = self.ST_NORMAL - - #Push pending tokens - heredoc.pendings[:0] = [(self._token, self._type, heredoc.name)] - for token, type, delim in heredoc.pendings: - self._token = token - self._type = type - self._push_token(delim) - - def _push_token(self, delim): - if not self._token: - return 0 - - if self._heredoc.op is not None: - if self._heredoc.name is None: - #Here-document name - if self._type!=TK_TOKEN: - raise ShellSyntaxError("expecting here-document name, got '%s'" % self._token) - self._heredoc.name = unquote_wordtree(make_wordtree(self._token)) - self._type = TK_HERENAME - else: - #Capture all tokens until the newline starting the here-document - if self._type==TK_NEWLINE: - assert self._state==self.ST_NORMAL - self._state = self.ST_HEREDOC - - self._heredoc.pendings.append((self._token, self._type, delim)) - self._token = '' - self._type = TK_TOKEN - return 1 - - # BEWARE: do not change parser state from here to the end of the function: - # when parsing between an here-document operator to the end of the line - # tokens are stored in self._heredoc.pendings. Therefore, they will not - # reach the section below. - - #Check operators - if self._type==TK_OP: - #False positive because of partial op matching - op = is_op(self._token) - if not op: - self._type = TK_TOKEN - else: - #Map to the specific operator - self._type = op - if self._token in ('<<', '<<-'): - #Done here rather than in _parse_op because there is no need - #to change the parser state since we are still waiting for - #the here-document name - if self._heredoc.op is not None: - raise ShellSyntaxError("syntax error near token '%s'" % self._token) - assert self._heredoc.op is None - self._heredoc.op = self._token - - if self._type==TK_TOKEN: - if '=' in self._token and not delim: - if self._token.startswith('='): - #Token is a WORD... a TOKEN that is. - pass - else: - prev = self._token[:self._token.find('=')] - if is_name(prev): - self._type = TK_ASSIGNMENT - else: - #Just a token (unspecified) - pass - else: - reserved = get_reserved(self._token) - if reserved is not None: - if reserved=='In' and self._for_count!=2: - #Sorry, not a reserved word after all - pass - else: - self._type = reserved - if reserved in ('For', 'Case'): - self._for_count = 0 - elif are_digits(self._token) and delim in ('<', '>'): - #Detect IO_NUMBER - self._type = TK_IONUMBER - elif self._token==';': - self._type = TK_COMMA - elif self._token=='&': - self._type = TK_AMPERSAND - elif self._type==TK_COMMENT: - #Comments are not part of sh grammar, ignore them - self._token = '' - self._type = TK_TOKEN - return 0 - - if self._for_count is not None: - #Track token count in 'For' expression to detect 'In' reserved words. - #Can only be in third position, no need to go beyond - self._for_count += 1 - if self._for_count==3: - self._for_count = None - - self.on_token((self._token, self._type)) - self._token = '' - self._type = TK_TOKEN - return 1 - - def on_token(self, token): - raise NotImplementedError - - -tokens = [ - TK_TOKEN, -# To silence yacc unused token warnings -# TK_COMMENT, - TK_NEWLINE, - TK_IONUMBER, - TK_ASSIGNMENT, - TK_HERENAME, -] - -#Add specific operators -tokens += _OPERATORS.values() -#Add reserved words -tokens += _RESERVEDS.values() - -class PLYLexer(Lexer): - """Bridge Lexer and PLY lexer interface.""" - def __init__(self): - Lexer.__init__(self) - self._tokens = [] - self._current = 0 - self.lineno = 0 - - def on_token(self, token): - value, type = token - - self.lineno = 0 - t = lex.LexToken() - t.value = value - t.type = type - t.lexer = self - t.lexpos = 0 - t.lineno = 0 - - self._tokens.append(t) - - def is_empty(self): - return not bool(self._tokens) - - #PLY compliant interface - def token(self): - if self._current>=len(self._tokens): - return None - t = self._tokens[self._current] - self._current += 1 - return t - - -def get_tokens(s): - """Parse the input string and return a tuple (tokens, unprocessed) where - tokens is a list of parsed tokens and unprocessed is the part of the input - string left untouched by the lexer. - """ - lexer = PLYLexer() - untouched = lexer.add(s, True) - tokens = [] - while 1: - token = lexer.token() - if token is None: - break - tokens.append(token) - - tokens = [(t.value, t.type) for t in tokens] - return tokens, untouched diff --git a/poky/bitbake/lib/bb/pysh/pyshyacc.py b/poky/bitbake/lib/bb/pysh/pyshyacc.py deleted file mode 100644 index ba4cefd..0000000 --- a/poky/bitbake/lib/bb/pysh/pyshyacc.py +++ /dev/null @@ -1,779 +0,0 @@ -# pyshyacc.py - PLY grammar definition for pysh -# -# Copyright 2007 Patrick Mezard -# -# This software may be used and distributed according to the terms -# of the GNU General Public License, incorporated herein by reference. - -"""PLY grammar file. -""" -import os.path -import sys - -import bb.pysh.pyshlex as pyshlex -tokens = pyshlex.tokens - -from ply import yacc -import bb.pysh.sherrors as sherrors - -class IORedirect: - def __init__(self, op, filename, io_number=None): - self.op = op - self.filename = filename - self.io_number = io_number - -class HereDocument: - def __init__(self, op, name, content, io_number=None): - self.op = op - self.name = name - self.content = content - self.io_number = io_number - -def make_io_redirect(p): - """Make an IORedirect instance from the input 'io_redirect' production.""" - name, io_number, io_target = p - assert name=='io_redirect' - - if io_target[0]=='io_file': - io_type, io_op, io_file = io_target - return IORedirect(io_op, io_file, io_number) - elif io_target[0]=='io_here': - io_type, io_op, io_name, io_content = io_target - return HereDocument(io_op, io_name, io_content, io_number) - else: - assert False, "Invalid IO redirection token %s" % repr(io_type) - -class SimpleCommand: - """ - assigns contains (name, value) pairs. - """ - def __init__(self, words, redirs, assigns): - self.words = list(words) - self.redirs = list(redirs) - self.assigns = list(assigns) - -class Pipeline: - def __init__(self, commands, reverse_status=False): - self.commands = list(commands) - assert self.commands #Grammar forbids this - self.reverse_status = reverse_status - -class AndOr: - def __init__(self, op, left, right): - self.op = str(op) - self.left = left - self.right = right - -class ForLoop: - def __init__(self, name, items, cmds): - self.name = str(name) - self.items = list(items) - self.cmds = list(cmds) - -class WhileLoop: - def __init__(self, condition, cmds): - self.condition = list(condition) - self.cmds = list(cmds) - -class UntilLoop: - def __init__(self, condition, cmds): - self.condition = list(condition) - self.cmds = list(cmds) - -class FunDef: - def __init__(self, name, body): - self.name = str(name) - self.body = body - -class BraceGroup: - def __init__(self, cmds): - self.cmds = list(cmds) - -class IfCond: - def __init__(self, cond, if_cmds, else_cmds): - self.cond = list(cond) - self.if_cmds = if_cmds - self.else_cmds = else_cmds - -class Case: - def __init__(self, name, items): - self.name = name - self.items = items - -class SubShell: - def __init__(self, cmds): - self.cmds = cmds - -class RedirectList: - def __init__(self, cmd, redirs): - self.cmd = cmd - self.redirs = list(redirs) - -def get_production(productions, ptype): - """productions must be a list of production tuples like (name, obj) where - name is the production string identifier. - Return the first production named 'ptype'. Raise KeyError if None can be - found. - """ - for production in productions: - if production is not None and production[0]==ptype: - return production - raise KeyError(ptype) - -#------------------------------------------------------------------------------- -# PLY grammar definition -#------------------------------------------------------------------------------- - -def p_multiple_commands(p): - """multiple_commands : newline_sequence - | complete_command - | multiple_commands complete_command""" - if len(p)==2: - if p[1] is not None: - p[0] = [p[1]] - else: - p[0] = [] - else: - p[0] = p[1] + [p[2]] - -def p_complete_command(p): - """complete_command : list separator - | list""" - if len(p)==3 and p[2] and p[2][1] == '&': - p[0] = ('async', p[1]) - else: - p[0] = p[1] - -def p_list(p): - """list : list separator_op and_or - | and_or""" - if len(p)==2: - p[0] = [p[1]] - else: - #if p[2]!=';': - # raise NotImplementedError('AND-OR list asynchronous execution is not implemented') - p[0] = p[1] + [p[3]] - -def p_and_or(p): - """and_or : pipeline - | and_or AND_IF linebreak pipeline - | and_or OR_IF linebreak pipeline""" - if len(p)==2: - p[0] = p[1] - else: - p[0] = ('and_or', AndOr(p[2], p[1], p[4])) - -def p_maybe_bang_word(p): - """maybe_bang_word : Bang""" - p[0] = ('maybe_bang_word', p[1]) - -def p_pipeline(p): - """pipeline : pipe_sequence - | bang_word pipe_sequence""" - if len(p)==3: - p[0] = ('pipeline', Pipeline(p[2][1:], True)) - else: - p[0] = ('pipeline', Pipeline(p[1][1:])) - -def p_pipe_sequence(p): - """pipe_sequence : command - | pipe_sequence PIPE linebreak command""" - if len(p)==2: - p[0] = ['pipe_sequence', p[1]] - else: - p[0] = p[1] + [p[4]] - -def p_command(p): - """command : simple_command - | compound_command - | compound_command redirect_list - | function_definition""" - - if p[1][0] in ( 'simple_command', - 'for_clause', - 'while_clause', - 'until_clause', - 'case_clause', - 'if_clause', - 'function_definition', - 'subshell', - 'brace_group',): - if len(p) == 2: - p[0] = p[1] - else: - p[0] = ('redirect_list', RedirectList(p[1], p[2][1:])) - else: - raise NotImplementedError('%s command is not implemented' % repr(p[1][0])) - -def p_compound_command(p): - """compound_command : brace_group - | subshell - | for_clause - | case_clause - | if_clause - | while_clause - | until_clause""" - p[0] = p[1] - -def p_subshell(p): - """subshell : LPARENS compound_list RPARENS""" - p[0] = ('subshell', SubShell(p[2][1:])) - -def p_compound_list(p): - """compound_list : term - | newline_list term - | term separator - | newline_list term separator""" - productions = p[1:] - try: - sep = get_production(productions, 'separator') - if sep[1]!=';': - raise NotImplementedError() - except KeyError: - pass - term = get_production(productions, 'term') - p[0] = ['compound_list'] + term[1:] - -def p_term(p): - """term : term separator and_or - | and_or""" - if len(p)==2: - p[0] = ['term', p[1]] - else: - if p[2] is not None and p[2][1] == '&': - p[0] = ['term', ('async', p[1][1:])] + [p[3]] - else: - p[0] = p[1] + [p[3]] - -def p_maybe_for_word(p): - # Rearrange 'For' priority wrt TOKEN. See p_for_word - """maybe_for_word : For""" - p[0] = ('maybe_for_word', p[1]) - -def p_for_clause(p): - """for_clause : for_word name linebreak do_group - | for_word name linebreak in sequential_sep do_group - | for_word name linebreak in wordlist sequential_sep do_group""" - productions = p[1:] - do_group = get_production(productions, 'do_group') - try: - items = get_production(productions, 'in')[1:] - except KeyError: - raise NotImplementedError('"in" omission is not implemented') - - try: - items = get_production(productions, 'wordlist')[1:] - except KeyError: - items = [] - - name = p[2] - p[0] = ('for_clause', ForLoop(name, items, do_group[1:])) - -def p_name(p): - """name : token""" #Was NAME instead of token - p[0] = p[1] - -def p_in(p): - """in : In""" - p[0] = ('in', p[1]) - -def p_wordlist(p): - """wordlist : wordlist token - | token""" - if len(p)==2: - p[0] = ['wordlist', ('TOKEN', p[1])] - else: - p[0] = p[1] + [('TOKEN', p[2])] - -def p_case_clause(p): - """case_clause : Case token linebreak in linebreak case_list Esac - | Case token linebreak in linebreak case_list_ns Esac - | Case token linebreak in linebreak Esac""" - if len(p) < 8: - items = [] - else: - items = p[6][1:] - name = p[2] - p[0] = ('case_clause', Case(name, [c[1] for c in items])) - -def p_case_list_ns(p): - """case_list_ns : case_list case_item_ns - | case_item_ns""" - p_case_list(p) - -def p_case_list(p): - """case_list : case_list case_item - | case_item""" - if len(p)==2: - p[0] = ['case_list', p[1]] - else: - p[0] = p[1] + [p[2]] - -def p_case_item_ns(p): - """case_item_ns : pattern RPARENS linebreak - | pattern RPARENS compound_list linebreak - | LPARENS pattern RPARENS linebreak - | LPARENS pattern RPARENS compound_list linebreak""" - p_case_item(p) - -def p_case_item(p): - """case_item : pattern RPARENS linebreak DSEMI linebreak - | pattern RPARENS compound_list DSEMI linebreak - | LPARENS pattern RPARENS linebreak DSEMI linebreak - | LPARENS pattern RPARENS compound_list DSEMI linebreak""" - if len(p) < 7: - name = p[1][1:] - else: - name = p[2][1:] - - try: - cmds = get_production(p[1:], "compound_list")[1:] - except KeyError: - cmds = [] - - p[0] = ('case_item', (name, cmds)) - -def p_pattern(p): - """pattern : token - | pattern PIPE token""" - if len(p)==2: - p[0] = ['pattern', ('TOKEN', p[1])] - else: - p[0] = p[1] + [('TOKEN', p[2])] - -def p_maybe_if_word(p): - # Rearrange 'If' priority wrt TOKEN. See p_if_word - """maybe_if_word : If""" - p[0] = ('maybe_if_word', p[1]) - -def p_maybe_then_word(p): - # Rearrange 'Then' priority wrt TOKEN. See p_then_word - """maybe_then_word : Then""" - p[0] = ('maybe_then_word', p[1]) - -def p_if_clause(p): - """if_clause : if_word compound_list then_word compound_list else_part Fi - | if_word compound_list then_word compound_list Fi""" - else_part = [] - if len(p)==7: - else_part = p[5] - p[0] = ('if_clause', IfCond(p[2][1:], p[4][1:], else_part)) - -def p_else_part(p): - """else_part : Elif compound_list then_word compound_list else_part - | Elif compound_list then_word compound_list - | Else compound_list""" - if len(p)==3: - p[0] = p[2][1:] - else: - else_part = [] - if len(p)==6: - else_part = p[5] - p[0] = ('elif', IfCond(p[2][1:], p[4][1:], else_part)) - -def p_while_clause(p): - """while_clause : While compound_list do_group""" - p[0] = ('while_clause', WhileLoop(p[2][1:], p[3][1:])) - -def p_maybe_until_word(p): - # Rearrange 'Until' priority wrt TOKEN. See p_until_word - """maybe_until_word : Until""" - p[0] = ('maybe_until_word', p[1]) - -def p_until_clause(p): - """until_clause : until_word compound_list do_group""" - p[0] = ('until_clause', UntilLoop(p[2][1:], p[3][1:])) - -def p_function_definition(p): - """function_definition : fname LPARENS RPARENS linebreak function_body""" - p[0] = ('function_definition', FunDef(p[1], p[5])) - -def p_function_body(p): - """function_body : compound_command - | compound_command redirect_list""" - if len(p)!=2: - raise NotImplementedError('functions redirections lists are not implemented') - p[0] = p[1] - -def p_fname(p): - """fname : TOKEN""" #Was NAME instead of token - p[0] = p[1] - -def p_brace_group(p): - """brace_group : Lbrace compound_list Rbrace""" - p[0] = ('brace_group', BraceGroup(p[2][1:])) - -def p_maybe_done_word(p): - #See p_assignment_word for details. - """maybe_done_word : Done""" - p[0] = ('maybe_done_word', p[1]) - -def p_maybe_do_word(p): - """maybe_do_word : Do""" - p[0] = ('maybe_do_word', p[1]) - -def p_do_group(p): - """do_group : do_word compound_list done_word""" - #Do group contains a list of AndOr - p[0] = ['do_group'] + p[2][1:] - -def p_simple_command(p): - """simple_command : cmd_prefix cmd_word cmd_suffix - | cmd_prefix cmd_word - | cmd_prefix - | cmd_name cmd_suffix - | cmd_name""" - words, redirs, assigns = [], [], [] - for e in p[1:]: - name = e[0] - if name in ('cmd_prefix', 'cmd_suffix'): - for sube in e[1:]: - subname = sube[0] - if subname=='io_redirect': - redirs.append(make_io_redirect(sube)) - elif subname=='ASSIGNMENT_WORD': - assigns.append(sube) - else: - words.append(sube) - elif name in ('cmd_word', 'cmd_name'): - words.append(e) - - cmd = SimpleCommand(words, redirs, assigns) - p[0] = ('simple_command', cmd) - -def p_cmd_name(p): - """cmd_name : TOKEN""" - p[0] = ('cmd_name', p[1]) - -def p_cmd_word(p): - """cmd_word : token""" - p[0] = ('cmd_word', p[1]) - -def p_maybe_assignment_word(p): - #See p_assignment_word for details. - """maybe_assignment_word : ASSIGNMENT_WORD""" - p[0] = ('maybe_assignment_word', p[1]) - -def p_cmd_prefix(p): - """cmd_prefix : io_redirect - | cmd_prefix io_redirect - | assignment_word - | cmd_prefix assignment_word""" - try: - prefix = get_production(p[1:], 'cmd_prefix') - except KeyError: - prefix = ['cmd_prefix'] - - try: - value = get_production(p[1:], 'assignment_word')[1] - value = ('ASSIGNMENT_WORD', value.split('=', 1)) - except KeyError: - value = get_production(p[1:], 'io_redirect') - p[0] = prefix + [value] - -def p_cmd_suffix(p): - """cmd_suffix : io_redirect - | cmd_suffix io_redirect - | token - | cmd_suffix token - | maybe_for_word - | cmd_suffix maybe_for_word - | maybe_done_word - | cmd_suffix maybe_done_word - | maybe_do_word - | cmd_suffix maybe_do_word - | maybe_until_word - | cmd_suffix maybe_until_word - | maybe_assignment_word - | cmd_suffix maybe_assignment_word - | maybe_if_word - | cmd_suffix maybe_if_word - | maybe_then_word - | cmd_suffix maybe_then_word - | maybe_bang_word - | cmd_suffix maybe_bang_word""" - try: - suffix = get_production(p[1:], 'cmd_suffix') - token = p[2] - except KeyError: - suffix = ['cmd_suffix'] - token = p[1] - - if isinstance(token, tuple): - if token[0]=='io_redirect': - p[0] = suffix + [token] - else: - #Convert maybe_* to TOKEN if necessary - p[0] = suffix + [('TOKEN', token[1])] - else: - p[0] = suffix + [('TOKEN', token)] - -def p_redirect_list(p): - """redirect_list : io_redirect - | redirect_list io_redirect""" - if len(p) == 2: - p[0] = ['redirect_list', make_io_redirect(p[1])] - else: - p[0] = p[1] + [make_io_redirect(p[2])] - -def p_io_redirect(p): - """io_redirect : io_file - | IO_NUMBER io_file - | io_here - | IO_NUMBER io_here""" - if len(p)==3: - p[0] = ('io_redirect', p[1], p[2]) - else: - p[0] = ('io_redirect', None, p[1]) - -def p_io_file(p): - #Return the tuple (operator, filename) - """io_file : LESS filename - | LESSAND filename - | GREATER filename - | GREATAND filename - | DGREAT filename - | LESSGREAT filename - | CLOBBER filename""" - #Extract the filename from the file - p[0] = ('io_file', p[1], p[2][1]) - -def p_filename(p): - #Return the filename - """filename : TOKEN""" - p[0] = ('filename', p[1]) - -def p_io_here(p): - """io_here : DLESS here_end - | DLESSDASH here_end""" - p[0] = ('io_here', p[1], p[2][1], p[2][2]) - -def p_here_end(p): - """here_end : HERENAME TOKEN""" - p[0] = ('here_document', p[1], p[2]) - -def p_newline_sequence(p): - # Nothing in the grammar can handle leading NEWLINE productions, so add - # this one with the lowest possible priority relatively to newline_list. - """newline_sequence : newline_list""" - p[0] = None - -def p_newline_list(p): - """newline_list : NEWLINE - | newline_list NEWLINE""" - p[0] = None - -def p_linebreak(p): - """linebreak : newline_list - | empty""" - p[0] = None - -def p_separator_op(p): - """separator_op : COMMA - | AMP""" - p[0] = p[1] - -def p_separator(p): - """separator : separator_op linebreak - | newline_list""" - if len(p)==2: - #Ignore newlines - p[0] = None - else: - #Keep the separator operator - p[0] = ('separator', p[1]) - -def p_sequential_sep(p): - """sequential_sep : COMMA linebreak - | newline_list""" - p[0] = None - -# Low priority TOKEN => for_word conversion. -# Let maybe_for_word be used as a token when necessary in higher priority -# rules. -def p_for_word(p): - """for_word : maybe_for_word""" - p[0] = p[1] - -def p_if_word(p): - """if_word : maybe_if_word""" - p[0] = p[1] - -def p_then_word(p): - """then_word : maybe_then_word""" - p[0] = p[1] - -def p_done_word(p): - """done_word : maybe_done_word""" - p[0] = p[1] - -def p_do_word(p): - """do_word : maybe_do_word""" - p[0] = p[1] - -def p_until_word(p): - """until_word : maybe_until_word""" - p[0] = p[1] - -def p_assignment_word(p): - """assignment_word : maybe_assignment_word""" - p[0] = ('assignment_word', p[1][1]) - -def p_bang_word(p): - """bang_word : maybe_bang_word""" - p[0] = ('bang_word', p[1][1]) - -def p_token(p): - """token : TOKEN - | Fi""" - p[0] = p[1] - -def p_empty(p): - 'empty :' - p[0] = None - -# Error rule for syntax errors -def p_error(p): - msg = [] - w = msg.append - w('%r\n' % p) - w('followed by:\n') - for i in range(5): - n = yacc.token() - if not n: - break - w(' %r\n' % n) - raise sherrors.ShellSyntaxError(''.join(msg)) - -# Build the parser -try: - import pyshtables -except ImportError: - outputdir = os.path.dirname(__file__) - if not os.access(outputdir, os.W_OK): - outputdir = '' - yacc.yacc(tabmodule = 'pyshtables', outputdir = outputdir, debug = 0) -else: - yacc.yacc(tabmodule = 'pysh.pyshtables', write_tables = 0, debug = 0) - - -def parse(input, eof=False, debug=False): - """Parse a whole script at once and return the generated AST and unconsumed - data in a tuple. - - NOTE: eof is probably meaningless for now, the parser being unable to work - in pull mode. It should be set to True. - """ - lexer = pyshlex.PLYLexer() - remaining = lexer.add(input, eof) - if lexer.is_empty(): - return [], remaining - if debug: - debug = 2 - return yacc.parse(lexer=lexer, debug=debug), remaining - -#------------------------------------------------------------------------------- -# AST rendering helpers -#------------------------------------------------------------------------------- - -def format_commands(v): - """Return a tree made of strings and lists. Make command trees easier to - display. - """ - if isinstance(v, list): - return [format_commands(c) for c in v] - if isinstance(v, tuple): - if len(v)==2 and isinstance(v[0], str) and not isinstance(v[1], str): - if v[0] == 'async': - return ['AsyncList', map(format_commands, v[1])] - else: - #Avoid decomposing tuples like ('pipeline', Pipeline(...)) - return format_commands(v[1]) - return format_commands(list(v)) - elif isinstance(v, IfCond): - name = ['IfCond'] - name += ['if', map(format_commands, v.cond)] - name += ['then', map(format_commands, v.if_cmds)] - name += ['else', map(format_commands, v.else_cmds)] - return name - elif isinstance(v, ForLoop): - name = ['ForLoop'] - name += [repr(v.name)+' in ', map(str, v.items)] - name += ['commands', map(format_commands, v.cmds)] - return name - elif isinstance(v, AndOr): - return [v.op, format_commands(v.left), format_commands(v.right)] - elif isinstance(v, Pipeline): - name = 'Pipeline' - if v.reverse_status: - name = '!' + name - return [name, format_commands(v.commands)] - elif isinstance(v, Case): - name = ['Case'] - name += [v.name, format_commands(v.items)] - elif isinstance(v, SimpleCommand): - name = ['SimpleCommand'] - if v.words: - name += ['words', map(str, v.words)] - if v.assigns: - assigns = [tuple(a[1]) for a in v.assigns] - name += ['assigns', map(str, assigns)] - if v.redirs: - name += ['redirs', map(format_commands, v.redirs)] - return name - elif isinstance(v, RedirectList): - name = ['RedirectList'] - if v.redirs: - name += ['redirs', map(format_commands, v.redirs)] - name += ['command', format_commands(v.cmd)] - return name - elif isinstance(v, IORedirect): - return ' '.join(map(str, (v.io_number, v.op, v.filename))) - elif isinstance(v, HereDocument): - return ' '.join(map(str, (v.io_number, v.op, repr(v.name), repr(v.content)))) - elif isinstance(v, SubShell): - return ['SubShell', map(format_commands, v.cmds)] - else: - return repr(v) - -def print_commands(cmds, output=sys.stdout): - """Pretty print a command tree.""" - def print_tree(cmd, spaces, output): - if isinstance(cmd, list): - for c in cmd: - print_tree(c, spaces + 3, output) - else: - print >>output, ' '*spaces + str(cmd) - - formatted = format_commands(cmds) - print_tree(formatted, 0, output) - - -def stringify_commands(cmds): - """Serialize a command tree as a string. - - Returned string is not pretty and is currently used for unit tests only. - """ - def stringify(value): - output = [] - if isinstance(value, list): - formatted = [] - for v in value: - formatted.append(stringify(v)) - formatted = ' '.join(formatted) - output.append(''.join(['<', formatted, '>'])) - else: - output.append(value) - return ' '.join(output) - - return stringify(format_commands(cmds)) - - -def visit_commands(cmds, callable): - """Visit the command tree and execute callable on every Pipeline and - SimpleCommand instances. - """ - if isinstance(cmds, (tuple, list)): - map(lambda c: visit_commands(c,callable), cmds) - elif isinstance(cmds, (Pipeline, SimpleCommand)): - callable(cmds) diff --git a/poky/bitbake/lib/bb/pysh/sherrors.py b/poky/bitbake/lib/bb/pysh/sherrors.py deleted file mode 100644 index 49d0533..0000000 --- a/poky/bitbake/lib/bb/pysh/sherrors.py +++ /dev/null @@ -1,41 +0,0 @@ -# sherrors.py - shell errors and signals -# -# Copyright 2007 Patrick Mezard -# -# This software may be used and distributed according to the terms -# of the GNU General Public License, incorporated herein by reference. - -"""Define shell exceptions and error codes. -""" - -class ShellError(Exception): - pass - -class ShellSyntaxError(ShellError): - pass - -class UtilityError(ShellError): - """Raised upon utility syntax error (option or operand error).""" - pass - -class ExpansionError(ShellError): - pass - -class CommandNotFound(ShellError): - """Specified command was not found.""" - pass - -class RedirectionError(ShellError): - pass - -class VarAssignmentError(ShellError): - """Variable assignment error.""" - pass - -class ExitSignal(ShellError): - """Exit signal.""" - pass - -class ReturnSignal(ShellError): - """Exit signal.""" - pass diff --git a/poky/bitbake/lib/bb/pysh/subprocess_fix.py b/poky/bitbake/lib/bb/pysh/subprocess_fix.py deleted file mode 100644 index 46eca22..0000000 --- a/poky/bitbake/lib/bb/pysh/subprocess_fix.py +++ /dev/null @@ -1,77 +0,0 @@ -# subprocess - Subprocesses with accessible I/O streams -# -# For more information about this module, see PEP 324. -# -# This module should remain compatible with Python 2.2, see PEP 291. -# -# Copyright (c) 2003-2005 by Peter Astrand <astrand@lysator.liu.se> -# -# Licensed to PSF under a Contributor Agreement. -# See http://www.python.org/2.4/license for licensing details. - -def list2cmdline(seq): - """ - Translate a sequence of arguments into a command line - string, using the same rules as the MS C runtime: - - 1) Arguments are delimited by white space, which is either a - space or a tab. - - 2) A string surrounded by double quotation marks is - interpreted as a single argument, regardless of white space - contained within. A quoted string can be embedded in an - argument. - - 3) A double quotation mark preceded by a backslash is - interpreted as a literal double quotation mark. - - 4) Backslashes are interpreted literally, unless they - immediately precede a double quotation mark. - - 5) If backslashes immediately precede a double quotation mark, - every pair of backslashes is interpreted as a literal - backslash. If the number of backslashes is odd, the last - backslash escapes the next double quotation mark as - described in rule 3. - """ - - # See - # http://msdn.microsoft.com/library/en-us/vccelng/htm/progs_12.asp - result = [] - needquote = False - for arg in seq: - bs_buf = [] - - # Add a space to separate this argument from the others - if result: - result.append(' ') - - needquote = (" " in arg) or ("\t" in arg) or ("|" in arg) or arg == "" - if needquote: - result.append('"') - - for c in arg: - if c == '\\': - # Don't know if we need to double yet. - bs_buf.append(c) - elif c == '"': - # Double backspaces. - result.append('\\' * len(bs_buf)*2) - bs_buf = [] - result.append('\\"') - else: - # Normal char - if bs_buf: - result.extend(bs_buf) - bs_buf = [] - result.append(c) - - # Add remaining backspaces, if any. - if bs_buf: - result.extend(bs_buf) - - if needquote: - result.extend(bs_buf) - result.append('"') - - return ''.join(result) diff --git a/poky/bitbake/lib/bb/remotedata.py b/poky/bitbake/lib/bb/remotedata.py deleted file mode 100644 index 68ecffc..0000000 --- a/poky/bitbake/lib/bb/remotedata.py +++ /dev/null @@ -1,116 +0,0 @@ -""" -BitBake 'remotedata' module - -Provides support for using a datastore from the bitbake client -""" - -# Copyright (C) 2016 Intel Corporation -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import bb.data - -class RemoteDatastores: - """Used on the server side to manage references to server-side datastores""" - def __init__(self, cooker): - self.cooker = cooker - self.datastores = {} - self.locked = [] - self.nextindex = 1 - - def __len__(self): - return len(self.datastores) - - def __getitem__(self, key): - if key is None: - return self.cooker.data - else: - return self.datastores[key] - - def items(self): - return self.datastores.items() - - def store(self, d, locked=False): - """ - Put a datastore into the collection. If locked=True then the datastore - is understood to be managed externally and cannot be released by calling - release(). - """ - idx = self.nextindex - self.datastores[idx] = d - if locked: - self.locked.append(idx) - self.nextindex += 1 - return idx - - def check_store(self, d, locked=False): - """ - Put a datastore into the collection if it's not already in there; - in either case return the index - """ - for key, val in self.datastores.items(): - if val is d: - idx = key - break - else: - idx = self.store(d, locked) - return idx - - def release(self, idx): - """Discard a datastore in the collection""" - if idx in self.locked: - raise Exception('Tried to release locked datastore %d' % idx) - del self.datastores[idx] - - def receive_datastore(self, remote_data): - """Receive a datastore object sent from the client (as prepared by transmit_datastore())""" - dct = dict(remote_data) - d = bb.data_smart.DataSmart() - d.dict = dct - while True: - if '_remote_data' in dct: - dsindex = dct['_remote_data']['_content'] - del dct['_remote_data'] - if dsindex is None: - dct['_data'] = self.cooker.data.dict - else: - dct['_data'] = self.datastores[dsindex].dict - break - elif '_data' in dct: - idct = dict(dct['_data']) - dct['_data'] = idct - dct = idct - else: - break - return d - - @staticmethod - def transmit_datastore(d): - """Prepare a datastore object for sending over IPC from the client end""" - # FIXME content might be a dict, need to turn that into a list as well - def copy_dicts(dct): - if '_remote_data' in dct: - dsindex = dct['_remote_data']['_content'].dsindex - newdct = dct.copy() - newdct['_remote_data'] = {'_content': dsindex} - return list(newdct.items()) - elif '_data' in dct: - newdct = dct.copy() - newdata = copy_dicts(dct['_data']) - if newdata: - newdct['_data'] = newdata - return list(newdct.items()) - return None - main_dict = copy_dicts(d.dict) - return main_dict diff --git a/poky/bitbake/lib/bb/runqueue.py b/poky/bitbake/lib/bb/runqueue.py deleted file mode 100644 index b7be102..0000000 --- a/poky/bitbake/lib/bb/runqueue.py +++ /dev/null @@ -1,2612 +0,0 @@ -#!/usr/bin/env python -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'RunQueue' implementation - -Handles preparation and execution of a queue of tasks -""" - -# Copyright (C) 2006-2007 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import copy -import os -import sys -import signal -import stat -import fcntl -import errno -import logging -import re -import bb -from bb import msg, data, event -from bb import monitordisk -import subprocess -import pickle -from multiprocessing import Process - -bblogger = logging.getLogger("BitBake") -logger = logging.getLogger("BitBake.RunQueue") - -__find_md5__ = re.compile( r'(?i)(?<![a-z0-9])[a-f0-9]{32}(?![a-z0-9])' ) - -def fn_from_tid(tid): - return tid.rsplit(":", 1)[0] - -def taskname_from_tid(tid): - return tid.rsplit(":", 1)[1] - -def split_tid(tid): - (mc, fn, taskname, _) = split_tid_mcfn(tid) - return (mc, fn, taskname) - -def split_tid_mcfn(tid): - if tid.startswith('multiconfig:'): - elems = tid.split(':') - mc = elems[1] - fn = ":".join(elems[2:-1]) - taskname = elems[-1] - mcfn = "multiconfig:" + mc + ":" + fn - else: - tid = tid.rsplit(":", 1) - mc = "" - fn = tid[0] - taskname = tid[1] - mcfn = fn - - return (mc, fn, taskname, mcfn) - -def build_tid(mc, fn, taskname): - if mc: - return "multiconfig:" + mc + ":" + fn + ":" + taskname - return fn + ":" + taskname - -class RunQueueStats: - """ - Holds statistics on the tasks handled by the associated runQueue - """ - def __init__(self, total): - self.completed = 0 - self.skipped = 0 - self.failed = 0 - self.active = 0 - self.total = total - - def copy(self): - obj = self.__class__(self.total) - obj.__dict__.update(self.__dict__) - return obj - - def taskFailed(self): - self.active = self.active - 1 - self.failed = self.failed + 1 - - def taskCompleted(self, number = 1): - self.active = self.active - number - self.completed = self.completed + number - - def taskSkipped(self, number = 1): - self.active = self.active + number - self.skipped = self.skipped + number - - def taskActive(self): - self.active = self.active + 1 - -# These values indicate the next step due to be run in the -# runQueue state machine -runQueuePrepare = 2 -runQueueSceneInit = 3 -runQueueSceneRun = 4 -runQueueRunInit = 5 -runQueueRunning = 6 -runQueueFailed = 7 -runQueueCleanUp = 8 -runQueueComplete = 9 - -class RunQueueScheduler(object): - """ - Control the order tasks are scheduled in. - """ - name = "basic" - - def __init__(self, runqueue, rqdata): - """ - The default scheduler just returns the first buildable task (the - priority map is sorted by task number) - """ - self.rq = runqueue - self.rqdata = rqdata - self.numTasks = len(self.rqdata.runtaskentries) - - self.prio_map = [self.rqdata.runtaskentries.keys()] - - self.buildable = [] - self.stamps = {} - for tid in self.rqdata.runtaskentries: - (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) - self.stamps[tid] = bb.build.stampfile(taskname, self.rqdata.dataCaches[mc], taskfn, noextra=True) - if tid in self.rq.runq_buildable: - self.buildable.append(tid) - - self.rev_prio_map = None - - def next_buildable_task(self): - """ - Return the id of the first task we find that is buildable - """ - self.buildable = [x for x in self.buildable if x not in self.rq.runq_running] - if not self.buildable: - return None - if len(self.buildable) == 1: - tid = self.buildable[0] - stamp = self.stamps[tid] - if stamp not in self.rq.build_stamps.values(): - return tid - - if not self.rev_prio_map: - self.rev_prio_map = {} - for tid in self.rqdata.runtaskentries: - self.rev_prio_map[tid] = self.prio_map.index(tid) - - best = None - bestprio = None - for tid in self.buildable: - prio = self.rev_prio_map[tid] - if bestprio is None or bestprio > prio: - stamp = self.stamps[tid] - if stamp in self.rq.build_stamps.values(): - continue - bestprio = prio - best = tid - - return best - - def next(self): - """ - Return the id of the task we should build next - """ - if self.rq.stats.active < self.rq.number_tasks: - return self.next_buildable_task() - - def newbuildable(self, task): - self.buildable.append(task) - - def describe_task(self, taskid): - result = 'ID %s' % taskid - if self.rev_prio_map: - result = result + (' pri %d' % self.rev_prio_map[taskid]) - return result - - def dump_prio(self, comment): - bb.debug(3, '%s (most important first):\n%s' % - (comment, - '\n'.join(['%d. %s' % (index + 1, self.describe_task(taskid)) for - index, taskid in enumerate(self.prio_map)]))) - -class RunQueueSchedulerSpeed(RunQueueScheduler): - """ - A scheduler optimised for speed. The priority map is sorted by task weight, - heavier weighted tasks (tasks needed by the most other tasks) are run first. - """ - name = "speed" - - def __init__(self, runqueue, rqdata): - """ - The priority map is sorted by task weight. - """ - RunQueueScheduler.__init__(self, runqueue, rqdata) - - weights = {} - for tid in self.rqdata.runtaskentries: - weight = self.rqdata.runtaskentries[tid].weight - if not weight in weights: - weights[weight] = [] - weights[weight].append(tid) - - self.prio_map = [] - for weight in sorted(weights): - for w in weights[weight]: - self.prio_map.append(w) - - self.prio_map.reverse() - -class RunQueueSchedulerCompletion(RunQueueSchedulerSpeed): - """ - A scheduler optimised to complete .bb files as quickly as possible. The - priority map is sorted by task weight, but then reordered so once a given - .bb file starts to build, it's completed as quickly as possible by - running all tasks related to the same .bb file one after the after. - This works well where disk space is at a premium and classes like OE's - rm_work are in force. - """ - name = "completion" - - def __init__(self, runqueue, rqdata): - super(RunQueueSchedulerCompletion, self).__init__(runqueue, rqdata) - - # Extract list of tasks for each recipe, with tasks sorted - # ascending from "must run first" (typically do_fetch) to - # "runs last" (do_build). The speed scheduler prioritizes - # tasks that must run first before the ones that run later; - # this is what we depend on here. - task_lists = {} - for taskid in self.prio_map: - fn, taskname = taskid.rsplit(':', 1) - task_lists.setdefault(fn, []).append(taskname) - - # Now unify the different task lists. The strategy is that - # common tasks get skipped and new ones get inserted after the - # preceeding common one(s) as they are found. Because task - # lists should differ only by their number of tasks, but not - # the ordering of the common tasks, this should result in a - # deterministic result that is a superset of the individual - # task ordering. - all_tasks = [] - for recipe, new_tasks in task_lists.items(): - index = 0 - old_task = all_tasks[index] if index < len(all_tasks) else None - for new_task in new_tasks: - if old_task == new_task: - # Common task, skip it. This is the fast-path which - # avoids a full search. - index += 1 - old_task = all_tasks[index] if index < len(all_tasks) else None - else: - try: - index = all_tasks.index(new_task) - # Already present, just not at the current - # place. We re-synchronized by changing the - # index so that it matches again. Now - # move on to the next existing task. - index += 1 - old_task = all_tasks[index] if index < len(all_tasks) else None - except ValueError: - # Not present. Insert before old_task, which - # remains the same (but gets shifted back). - all_tasks.insert(index, new_task) - index += 1 - bb.debug(3, 'merged task list: %s' % all_tasks) - - # Now reverse the order so that tasks that finish the work on one - # recipe are considered more imporant (= come first). The ordering - # is now so that do_build is most important. - all_tasks.reverse() - - # Group tasks of the same kind before tasks of less important - # kinds at the head of the queue (because earlier = lower - # priority number = runs earlier), while preserving the - # ordering by recipe. If recipe foo is more important than - # bar, then the goal is to work on foo's do_populate_sysroot - # before bar's do_populate_sysroot and on the more important - # tasks of foo before any of the less important tasks in any - # other recipe (if those other recipes are more important than - # foo). - # - # All of this only applies when tasks are runable. Explicit - # dependencies still override this ordering by priority. - # - # Here's an example why this priority re-ordering helps with - # minimizing disk usage. Consider a recipe foo with a higher - # priority than bar where foo DEPENDS on bar. Then the - # implicit rule (from base.bbclass) is that foo's do_configure - # depends on bar's do_populate_sysroot. This ensures that - # bar's do_populate_sysroot gets done first. Normally the - # tasks from foo would continue to run once that is done, and - # bar only gets completed and cleaned up later. By ordering - # bar's task that depend on bar's do_populate_sysroot before foo's - # do_configure, that problem gets avoided. - task_index = 0 - self.dump_prio('original priorities') - for task in all_tasks: - for index in range(task_index, self.numTasks): - taskid = self.prio_map[index] - taskname = taskid.rsplit(':', 1)[1] - if taskname == task: - del self.prio_map[index] - self.prio_map.insert(task_index, taskid) - task_index += 1 - self.dump_prio('completion priorities') - -class RunTaskEntry(object): - def __init__(self): - self.depends = set() - self.revdeps = set() - self.hash = None - self.task = None - self.weight = 1 - -class RunQueueData: - """ - BitBake Run Queue implementation - """ - def __init__(self, rq, cooker, cfgData, dataCaches, taskData, targets): - self.cooker = cooker - self.dataCaches = dataCaches - self.taskData = taskData - self.targets = targets - self.rq = rq - self.warn_multi_bb = False - - self.stampwhitelist = cfgData.getVar("BB_STAMP_WHITELIST") or "" - self.multi_provider_whitelist = (cfgData.getVar("MULTI_PROVIDER_WHITELIST") or "").split() - self.setscenewhitelist = get_setscene_enforce_whitelist(cfgData) - self.setscenewhitelist_checked = False - self.setscene_enforce = (cfgData.getVar('BB_SETSCENE_ENFORCE') == "1") - self.init_progress_reporter = bb.progress.DummyMultiStageProcessProgressReporter() - - self.reset() - - def reset(self): - self.runtaskentries = {} - - def runq_depends_names(self, ids): - import re - ret = [] - for id in ids: - nam = os.path.basename(id) - nam = re.sub("_[^,]*,", ",", nam) - ret.extend([nam]) - return ret - - def get_task_hash(self, tid): - return self.runtaskentries[tid].hash - - def get_user_idstring(self, tid, task_name_suffix = ""): - return tid + task_name_suffix - - def get_short_user_idstring(self, task, task_name_suffix = ""): - (mc, fn, taskname, taskfn) = split_tid_mcfn(task) - pn = self.dataCaches[mc].pkg_fn[taskfn] - taskname = taskname_from_tid(task) + task_name_suffix - return "%s:%s" % (pn, taskname) - - def circular_depchains_handler(self, tasks): - """ - Some tasks aren't buildable, likely due to circular dependency issues. - Identify the circular dependencies and print them in a user readable format. - """ - from copy import deepcopy - - valid_chains = [] - explored_deps = {} - msgs = [] - - def chain_reorder(chain): - """ - Reorder a dependency chain so the lowest task id is first - """ - lowest = 0 - new_chain = [] - for entry in range(len(chain)): - if chain[entry] < chain[lowest]: - lowest = entry - new_chain.extend(chain[lowest:]) - new_chain.extend(chain[:lowest]) - return new_chain - - def chain_compare_equal(chain1, chain2): - """ - Compare two dependency chains and see if they're the same - """ - if len(chain1) != len(chain2): - return False - for index in range(len(chain1)): - if chain1[index] != chain2[index]: - return False - return True - - def chain_array_contains(chain, chain_array): - """ - Return True if chain_array contains chain - """ - for ch in chain_array: - if chain_compare_equal(ch, chain): - return True - return False - - def find_chains(tid, prev_chain): - prev_chain.append(tid) - total_deps = [] - total_deps.extend(self.runtaskentries[tid].revdeps) - for revdep in self.runtaskentries[tid].revdeps: - if revdep in prev_chain: - idx = prev_chain.index(revdep) - # To prevent duplicates, reorder the chain to start with the lowest taskid - # and search through an array of those we've already printed - chain = prev_chain[idx:] - new_chain = chain_reorder(chain) - if not chain_array_contains(new_chain, valid_chains): - valid_chains.append(new_chain) - msgs.append("Dependency loop #%d found:\n" % len(valid_chains)) - for dep in new_chain: - msgs.append(" Task %s (dependent Tasks %s)\n" % (dep, self.runq_depends_names(self.runtaskentries[dep].depends))) - msgs.append("\n") - if len(valid_chains) > 10: - msgs.append("Aborted dependency loops search after 10 matches.\n") - return msgs - continue - scan = False - if revdep not in explored_deps: - scan = True - elif revdep in explored_deps[revdep]: - scan = True - else: - for dep in prev_chain: - if dep in explored_deps[revdep]: - scan = True - if scan: - find_chains(revdep, copy.deepcopy(prev_chain)) - for dep in explored_deps[revdep]: - if dep not in total_deps: - total_deps.append(dep) - - explored_deps[tid] = total_deps - - for task in tasks: - find_chains(task, []) - - return msgs - - def calculate_task_weights(self, endpoints): - """ - Calculate a number representing the "weight" of each task. Heavier weighted tasks - have more dependencies and hence should be executed sooner for maximum speed. - - This function also sanity checks the task list finding tasks that are not - possible to execute due to circular dependencies. - """ - - numTasks = len(self.runtaskentries) - weight = {} - deps_left = {} - task_done = {} - - for tid in self.runtaskentries: - task_done[tid] = False - weight[tid] = 1 - deps_left[tid] = len(self.runtaskentries[tid].revdeps) - - for tid in endpoints: - weight[tid] = 10 - task_done[tid] = True - - while True: - next_points = [] - for tid in endpoints: - for revdep in self.runtaskentries[tid].depends: - weight[revdep] = weight[revdep] + weight[tid] - deps_left[revdep] = deps_left[revdep] - 1 - if deps_left[revdep] == 0: - next_points.append(revdep) - task_done[revdep] = True - endpoints = next_points - if len(next_points) == 0: - break - - # Circular dependency sanity check - problem_tasks = [] - for tid in self.runtaskentries: - if task_done[tid] is False or deps_left[tid] != 0: - problem_tasks.append(tid) - logger.debug(2, "Task %s is not buildable", tid) - logger.debug(2, "(Complete marker was %s and the remaining dependency count was %s)\n", task_done[tid], deps_left[tid]) - self.runtaskentries[tid].weight = weight[tid] - - if problem_tasks: - message = "%s unbuildable tasks were found.\n" % len(problem_tasks) - message = message + "These are usually caused by circular dependencies and any circular dependency chains found will be printed below. Increase the debug level to see a list of unbuildable tasks.\n\n" - message = message + "Identifying dependency loops (this may take a short while)...\n" - logger.error(message) - - msgs = self.circular_depchains_handler(problem_tasks) - - message = "\n" - for msg in msgs: - message = message + msg - bb.msg.fatal("RunQueue", message) - - return weight - - def prepare(self): - """ - Turn a set of taskData into a RunQueue and compute data needed - to optimise the execution order. - """ - - runq_build = {} - recursivetasks = {} - recursiveitasks = {} - recursivetasksselfref = set() - - taskData = self.taskData - - found = False - for mc in self.taskData: - if len(taskData[mc].taskentries) > 0: - found = True - break - if not found: - # Nothing to do - return 0 - - self.init_progress_reporter.start() - self.init_progress_reporter.next_stage() - - # Step A - Work out a list of tasks to run - # - # Taskdata gives us a list of possible providers for every build and run - # target ordered by priority. It also gives information on each of those - # providers. - # - # To create the actual list of tasks to execute we fix the list of - # providers and then resolve the dependencies into task IDs. This - # process is repeated for each type of dependency (tdepends, deptask, - # rdeptast, recrdeptask, idepends). - - def add_build_dependencies(depids, tasknames, depends, mc): - for depname in depids: - # Won't be in build_targets if ASSUME_PROVIDED - if depname not in taskData[mc].build_targets or not taskData[mc].build_targets[depname]: - continue - depdata = taskData[mc].build_targets[depname][0] - if depdata is None: - continue - for taskname in tasknames: - t = depdata + ":" + taskname - if t in taskData[mc].taskentries: - depends.add(t) - - def add_runtime_dependencies(depids, tasknames, depends, mc): - for depname in depids: - if depname not in taskData[mc].run_targets or not taskData[mc].run_targets[depname]: - continue - depdata = taskData[mc].run_targets[depname][0] - if depdata is None: - continue - for taskname in tasknames: - t = depdata + ":" + taskname - if t in taskData[mc].taskentries: - depends.add(t) - - def add_resolved_dependencies(mc, fn, tasknames, depends): - for taskname in tasknames: - tid = build_tid(mc, fn, taskname) - if tid in self.runtaskentries: - depends.add(tid) - - for mc in taskData: - for tid in taskData[mc].taskentries: - - (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) - #runtid = build_tid(mc, fn, taskname) - - #logger.debug(2, "Processing %s,%s:%s", mc, fn, taskname) - - depends = set() - task_deps = self.dataCaches[mc].task_deps[taskfn] - - self.runtaskentries[tid] = RunTaskEntry() - - if fn in taskData[mc].failed_fns: - continue - - # Resolve task internal dependencies - # - # e.g. addtask before X after Y - for t in taskData[mc].taskentries[tid].tdepends: - (_, depfn, deptaskname, _) = split_tid_mcfn(t) - depends.add(build_tid(mc, depfn, deptaskname)) - - # Resolve 'deptask' dependencies - # - # e.g. do_sometask[deptask] = "do_someothertask" - # (makes sure sometask runs after someothertask of all DEPENDS) - if 'deptask' in task_deps and taskname in task_deps['deptask']: - tasknames = task_deps['deptask'][taskname].split() - add_build_dependencies(taskData[mc].depids[taskfn], tasknames, depends, mc) - - # Resolve 'rdeptask' dependencies - # - # e.g. do_sometask[rdeptask] = "do_someothertask" - # (makes sure sometask runs after someothertask of all RDEPENDS) - if 'rdeptask' in task_deps and taskname in task_deps['rdeptask']: - tasknames = task_deps['rdeptask'][taskname].split() - add_runtime_dependencies(taskData[mc].rdepids[taskfn], tasknames, depends, mc) - - # Resolve inter-task dependencies - # - # e.g. do_sometask[depends] = "targetname:do_someothertask" - # (makes sure sometask runs after targetname's someothertask) - idepends = taskData[mc].taskentries[tid].idepends - for (depname, idependtask) in idepends: - if depname in taskData[mc].build_targets and taskData[mc].build_targets[depname] and not depname in taskData[mc].failed_deps: - # Won't be in build_targets if ASSUME_PROVIDED - depdata = taskData[mc].build_targets[depname][0] - if depdata is not None: - t = depdata + ":" + idependtask - depends.add(t) - if t not in taskData[mc].taskentries: - bb.msg.fatal("RunQueue", "Task %s in %s depends upon non-existent task %s in %s" % (taskname, fn, idependtask, depdata)) - irdepends = taskData[mc].taskentries[tid].irdepends - for (depname, idependtask) in irdepends: - if depname in taskData[mc].run_targets: - # Won't be in run_targets if ASSUME_PROVIDED - if not taskData[mc].run_targets[depname]: - continue - depdata = taskData[mc].run_targets[depname][0] - if depdata is not None: - t = depdata + ":" + idependtask - depends.add(t) - if t not in taskData[mc].taskentries: - bb.msg.fatal("RunQueue", "Task %s in %s rdepends upon non-existent task %s in %s" % (taskname, fn, idependtask, depdata)) - - # Resolve recursive 'recrdeptask' dependencies (Part A) - # - # e.g. do_sometask[recrdeptask] = "do_someothertask" - # (makes sure sometask runs after someothertask of all DEPENDS, RDEPENDS and intertask dependencies, recursively) - # We cover the recursive part of the dependencies below - if 'recrdeptask' in task_deps and taskname in task_deps['recrdeptask']: - tasknames = task_deps['recrdeptask'][taskname].split() - recursivetasks[tid] = tasknames - add_build_dependencies(taskData[mc].depids[taskfn], tasknames, depends, mc) - add_runtime_dependencies(taskData[mc].rdepids[taskfn], tasknames, depends, mc) - if taskname in tasknames: - recursivetasksselfref.add(tid) - - if 'recideptask' in task_deps and taskname in task_deps['recideptask']: - recursiveitasks[tid] = [] - for t in task_deps['recideptask'][taskname].split(): - newdep = build_tid(mc, fn, t) - recursiveitasks[tid].append(newdep) - - self.runtaskentries[tid].depends = depends - - #self.dump_data() - - # Resolve recursive 'recrdeptask' dependencies (Part B) - # - # e.g. do_sometask[recrdeptask] = "do_someothertask" - # (makes sure sometask runs after someothertask of all DEPENDS, RDEPENDS and intertask dependencies, recursively) - # We need to do this separately since we need all of runtaskentries[*].depends to be complete before this is processed - self.init_progress_reporter.next_stage(len(recursivetasks)) - extradeps = {} - for taskcounter, tid in enumerate(recursivetasks): - extradeps[tid] = set(self.runtaskentries[tid].depends) - - tasknames = recursivetasks[tid] - seendeps = set() - - def generate_recdeps(t): - newdeps = set() - (mc, fn, taskname, _) = split_tid_mcfn(t) - add_resolved_dependencies(mc, fn, tasknames, newdeps) - extradeps[tid].update(newdeps) - seendeps.add(t) - newdeps.add(t) - for i in newdeps: - if i not in self.runtaskentries: - # Not all recipes might have the recrdeptask task as a task - continue - task = self.runtaskentries[i].task - for n in self.runtaskentries[i].depends: - if n not in seendeps: - generate_recdeps(n) - generate_recdeps(tid) - - if tid in recursiveitasks: - for dep in recursiveitasks[tid]: - generate_recdeps(dep) - self.init_progress_reporter.update(taskcounter) - - # Remove circular references so that do_a[recrdeptask] = "do_a do_b" can work - for tid in recursivetasks: - extradeps[tid].difference_update(recursivetasksselfref) - - for tid in self.runtaskentries: - task = self.runtaskentries[tid].task - # Add in extra dependencies - if tid in extradeps: - self.runtaskentries[tid].depends = extradeps[tid] - # Remove all self references - if tid in self.runtaskentries[tid].depends: - logger.debug(2, "Task %s contains self reference!", tid) - self.runtaskentries[tid].depends.remove(tid) - - self.init_progress_reporter.next_stage() - - #self.dump_data() - - # Step B - Mark all active tasks - # - # Start with the tasks we were asked to run and mark all dependencies - # as active too. If the task is to be 'forced', clear its stamp. Once - # all active tasks are marked, prune the ones we don't need. - - logger.verbose("Marking Active Tasks") - - def mark_active(tid, depth): - """ - Mark an item as active along with its depends - (calls itself recursively) - """ - - if tid in runq_build: - return - - runq_build[tid] = 1 - - depends = self.runtaskentries[tid].depends - for depend in depends: - mark_active(depend, depth+1) - - self.target_tids = [] - for (mc, target, task, fn) in self.targets: - - if target not in taskData[mc].build_targets or not taskData[mc].build_targets[target]: - continue - - if target in taskData[mc].failed_deps: - continue - - parents = False - if task.endswith('-'): - parents = True - task = task[:-1] - - if fn in taskData[mc].failed_fns: - continue - - # fn already has mc prefix - tid = fn + ":" + task - self.target_tids.append(tid) - if tid not in taskData[mc].taskentries: - import difflib - tasks = [] - for x in taskData[mc].taskentries: - if x.startswith(fn + ":"): - tasks.append(taskname_from_tid(x)) - close_matches = difflib.get_close_matches(task, tasks, cutoff=0.7) - if close_matches: - extra = ". Close matches:\n %s" % "\n ".join(close_matches) - else: - extra = "" - bb.msg.fatal("RunQueue", "Task %s does not exist for target %s (%s)%s" % (task, target, tid, extra)) - - # For tasks called "XXXX-", ony run their dependencies - if parents: - for i in self.runtaskentries[tid].depends: - mark_active(i, 1) - else: - mark_active(tid, 1) - - self.init_progress_reporter.next_stage() - - # Step C - Prune all inactive tasks - # - # Once all active tasks are marked, prune the ones we don't need. - - delcount = 0 - for tid in list(self.runtaskentries.keys()): - if tid not in runq_build: - del self.runtaskentries[tid] - delcount += 1 - - self.init_progress_reporter.next_stage() - - if self.cooker.configuration.runall is not None: - runall = "do_%s" % self.cooker.configuration.runall - runall_tids = { k: v for k, v in self.runtaskentries.items() if taskname_from_tid(k) == runall } - - # re-run the mark_active and then drop unused tasks from new list - runq_build = {} - for tid in list(runall_tids): - mark_active(tid,1) - - for tid in list(self.runtaskentries.keys()): - if tid not in runq_build: - del self.runtaskentries[tid] - delcount += 1 - - if len(self.runtaskentries) == 0: - bb.msg.fatal("RunQueue", "No remaining tasks to run for build target %s with runall %s" % (target, runall)) - - # - # Step D - Sanity checks and computation - # - - # Check to make sure we still have tasks to run - if len(self.runtaskentries) == 0: - if not taskData[''].abort: - bb.msg.fatal("RunQueue", "All buildable tasks have been run but the build is incomplete (--continue mode). Errors for the tasks that failed will have been printed above.") - else: - bb.msg.fatal("RunQueue", "No active tasks and not in --continue mode?! Please report this bug.") - - logger.verbose("Pruned %s inactive tasks, %s left", delcount, len(self.runtaskentries)) - - logger.verbose("Assign Weightings") - - self.init_progress_reporter.next_stage() - - # Generate a list of reverse dependencies to ease future calculations - for tid in self.runtaskentries: - for dep in self.runtaskentries[tid].depends: - self.runtaskentries[dep].revdeps.add(tid) - - self.init_progress_reporter.next_stage() - - # Identify tasks at the end of dependency chains - # Error on circular dependency loops (length two) - endpoints = [] - for tid in self.runtaskentries: - revdeps = self.runtaskentries[tid].revdeps - if len(revdeps) == 0: - endpoints.append(tid) - for dep in revdeps: - if dep in self.runtaskentries[tid].depends: - bb.msg.fatal("RunQueue", "Task %s has circular dependency on %s" % (tid, dep)) - - - logger.verbose("Compute totals (have %s endpoint(s))", len(endpoints)) - - self.init_progress_reporter.next_stage() - - # Calculate task weights - # Check of higher length circular dependencies - self.runq_weight = self.calculate_task_weights(endpoints) - - self.init_progress_reporter.next_stage() - - # Sanity Check - Check for multiple tasks building the same provider - for mc in self.dataCaches: - prov_list = {} - seen_fn = [] - for tid in self.runtaskentries: - (tidmc, fn, taskname, taskfn) = split_tid_mcfn(tid) - if taskfn in seen_fn: - continue - if mc != tidmc: - continue - seen_fn.append(taskfn) - for prov in self.dataCaches[mc].fn_provides[taskfn]: - if prov not in prov_list: - prov_list[prov] = [taskfn] - elif taskfn not in prov_list[prov]: - prov_list[prov].append(taskfn) - for prov in prov_list: - if len(prov_list[prov]) < 2: - continue - if prov in self.multi_provider_whitelist: - continue - seen_pn = [] - # If two versions of the same PN are being built its fatal, we don't support it. - for fn in prov_list[prov]: - pn = self.dataCaches[mc].pkg_fn[fn] - if pn not in seen_pn: - seen_pn.append(pn) - else: - bb.fatal("Multiple versions of %s are due to be built (%s). Only one version of a given PN should be built in any given build. You likely need to set PREFERRED_VERSION_%s to select the correct version or don't depend on multiple versions." % (pn, " ".join(prov_list[prov]), pn)) - msg = "Multiple .bb files are due to be built which each provide %s:\n %s" % (prov, "\n ".join(prov_list[prov])) - # - # Construct a list of things which uniquely depend on each provider - # since this may help the user figure out which dependency is triggering this warning - # - msg += "\nA list of tasks depending on these providers is shown and may help explain where the dependency comes from." - deplist = {} - commondeps = None - for provfn in prov_list[prov]: - deps = set() - for tid in self.runtaskentries: - fn = fn_from_tid(tid) - if fn != provfn: - continue - for dep in self.runtaskentries[tid].revdeps: - fn = fn_from_tid(dep) - if fn == provfn: - continue - deps.add(dep) - if not commondeps: - commondeps = set(deps) - else: - commondeps &= deps - deplist[provfn] = deps - for provfn in deplist: - msg += "\n%s has unique dependees:\n %s" % (provfn, "\n ".join(deplist[provfn] - commondeps)) - # - # Construct a list of provides and runtime providers for each recipe - # (rprovides has to cover RPROVIDES, PACKAGES, PACKAGES_DYNAMIC) - # - msg += "\nIt could be that one recipe provides something the other doesn't and should. The following provider and runtime provider differences may be helpful." - provide_results = {} - rprovide_results = {} - commonprovs = None - commonrprovs = None - for provfn in prov_list[prov]: - provides = set(self.dataCaches[mc].fn_provides[provfn]) - rprovides = set() - for rprovide in self.dataCaches[mc].rproviders: - if provfn in self.dataCaches[mc].rproviders[rprovide]: - rprovides.add(rprovide) - for package in self.dataCaches[mc].packages: - if provfn in self.dataCaches[mc].packages[package]: - rprovides.add(package) - for package in self.dataCaches[mc].packages_dynamic: - if provfn in self.dataCaches[mc].packages_dynamic[package]: - rprovides.add(package) - if not commonprovs: - commonprovs = set(provides) - else: - commonprovs &= provides - provide_results[provfn] = provides - if not commonrprovs: - commonrprovs = set(rprovides) - else: - commonrprovs &= rprovides - rprovide_results[provfn] = rprovides - #msg += "\nCommon provides:\n %s" % ("\n ".join(commonprovs)) - #msg += "\nCommon rprovides:\n %s" % ("\n ".join(commonrprovs)) - for provfn in prov_list[prov]: - msg += "\n%s has unique provides:\n %s" % (provfn, "\n ".join(provide_results[provfn] - commonprovs)) - msg += "\n%s has unique rprovides:\n %s" % (provfn, "\n ".join(rprovide_results[provfn] - commonrprovs)) - - if self.warn_multi_bb: - logger.warning(msg) - else: - logger.error(msg) - - self.init_progress_reporter.next_stage() - - # Create a whitelist usable by the stamp checks - self.stampfnwhitelist = {} - for mc in self.taskData: - self.stampfnwhitelist[mc] = [] - for entry in self.stampwhitelist.split(): - if entry not in self.taskData[mc].build_targets: - continue - fn = self.taskData.build_targets[entry][0] - self.stampfnwhitelist[mc].append(fn) - - self.init_progress_reporter.next_stage() - - # Iterate over the task list looking for tasks with a 'setscene' function - self.runq_setscene_tids = [] - if not self.cooker.configuration.nosetscene: - for tid in self.runtaskentries: - (mc, fn, taskname, _) = split_tid_mcfn(tid) - setscenetid = tid + "_setscene" - if setscenetid not in taskData[mc].taskentries: - continue - self.runq_setscene_tids.append(tid) - - def invalidate_task(tid, error_nostamp): - (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) - taskdep = self.dataCaches[mc].task_deps[taskfn] - if fn + ":" + taskname not in taskData[mc].taskentries: - logger.warning("Task %s does not exist, invalidating this task will have no effect" % taskname) - if 'nostamp' in taskdep and taskname in taskdep['nostamp']: - if error_nostamp: - bb.fatal("Task %s is marked nostamp, cannot invalidate this task" % taskname) - else: - bb.debug(1, "Task %s is marked nostamp, cannot invalidate this task" % taskname) - else: - logger.verbose("Invalidate task %s, %s", taskname, fn) - bb.parse.siggen.invalidate_task(taskname, self.dataCaches[mc], fn) - - self.init_progress_reporter.next_stage() - - # Invalidate task if force mode active - if self.cooker.configuration.force: - for tid in self.target_tids: - invalidate_task(tid, False) - - # Invalidate task if invalidate mode active - if self.cooker.configuration.invalidate_stamp: - for tid in self.target_tids: - fn = fn_from_tid(tid) - for st in self.cooker.configuration.invalidate_stamp.split(','): - if not st.startswith("do_"): - st = "do_%s" % st - invalidate_task(fn + ":" + st, True) - - self.init_progress_reporter.next_stage() - - # Create and print to the logs a virtual/xxxx -> PN (fn) table - for mc in taskData: - virtmap = taskData[mc].get_providermap(prefix="virtual/") - virtpnmap = {} - for v in virtmap: - virtpnmap[v] = self.dataCaches[mc].pkg_fn[virtmap[v]] - bb.debug(2, "%s resolved to: %s (%s)" % (v, virtpnmap[v], virtmap[v])) - if hasattr(bb.parse.siggen, "tasks_resolved"): - bb.parse.siggen.tasks_resolved(virtmap, virtpnmap, self.dataCaches[mc]) - - self.init_progress_reporter.next_stage() - - # Iterate over the task list and call into the siggen code - dealtwith = set() - todeal = set(self.runtaskentries) - while len(todeal) > 0: - for tid in todeal.copy(): - if len(self.runtaskentries[tid].depends - dealtwith) == 0: - dealtwith.add(tid) - todeal.remove(tid) - procdep = [] - for dep in self.runtaskentries[tid].depends: - procdep.append(fn_from_tid(dep) + "." + taskname_from_tid(dep)) - (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) - self.runtaskentries[tid].hash = bb.parse.siggen.get_taskhash(taskfn, taskname, procdep, self.dataCaches[mc]) - task = self.runtaskentries[tid].task - - bb.parse.siggen.writeout_file_checksum_cache() - - #self.dump_data() - return len(self.runtaskentries) - - def dump_data(self): - """ - Dump some debug information on the internal data structures - """ - logger.debug(3, "run_tasks:") - for tid in self.runtaskentries: - logger.debug(3, " %s: %s Deps %s RevDeps %s", tid, - self.runtaskentries[tid].weight, - self.runtaskentries[tid].depends, - self.runtaskentries[tid].revdeps) - -class RunQueueWorker(): - def __init__(self, process, pipe): - self.process = process - self.pipe = pipe - -class RunQueue: - def __init__(self, cooker, cfgData, dataCaches, taskData, targets): - - self.cooker = cooker - self.cfgData = cfgData - self.rqdata = RunQueueData(self, cooker, cfgData, dataCaches, taskData, targets) - - self.stamppolicy = cfgData.getVar("BB_STAMP_POLICY") or "perfile" - self.hashvalidate = cfgData.getVar("BB_HASHCHECK_FUNCTION") or None - self.setsceneverify = cfgData.getVar("BB_SETSCENE_VERIFY_FUNCTION2") or None - self.depvalidate = cfgData.getVar("BB_SETSCENE_DEPVALID") or None - - self.state = runQueuePrepare - - # For disk space monitor - # Invoked at regular time intervals via the bitbake heartbeat event - # while the build is running. We generate a unique name for the handler - # here, just in case that there ever is more than one RunQueue instance, - # start the handler when reaching runQueueSceneRun, and stop it when - # done with the build. - self.dm = monitordisk.diskMonitor(cfgData) - self.dm_event_handler_name = '_bb_diskmonitor_' + str(id(self)) - self.dm_event_handler_registered = False - self.rqexe = None - self.worker = {} - self.fakeworker = {} - - def _start_worker(self, mc, fakeroot = False, rqexec = None): - logger.debug(1, "Starting bitbake-worker") - magic = "decafbad" - if self.cooker.configuration.profile: - magic = "decafbadbad" - if fakeroot: - magic = magic + "beef" - mcdata = self.cooker.databuilder.mcdata[mc] - fakerootcmd = mcdata.getVar("FAKEROOTCMD") - fakerootenv = (mcdata.getVar("FAKEROOTBASEENV") or "").split() - env = os.environ.copy() - for key, value in (var.split('=') for var in fakerootenv): - env[key] = value - worker = subprocess.Popen([fakerootcmd, "bitbake-worker", magic], stdout=subprocess.PIPE, stdin=subprocess.PIPE, env=env) - else: - worker = subprocess.Popen(["bitbake-worker", magic], stdout=subprocess.PIPE, stdin=subprocess.PIPE) - bb.utils.nonblockingfd(worker.stdout) - workerpipe = runQueuePipe(worker.stdout, None, self.cfgData, self, rqexec) - - runqhash = {} - for tid in self.rqdata.runtaskentries: - runqhash[tid] = self.rqdata.runtaskentries[tid].hash - - workerdata = { - "taskdeps" : self.rqdata.dataCaches[mc].task_deps, - "fakerootenv" : self.rqdata.dataCaches[mc].fakerootenv, - "fakerootdirs" : self.rqdata.dataCaches[mc].fakerootdirs, - "fakerootnoenv" : self.rqdata.dataCaches[mc].fakerootnoenv, - "sigdata" : bb.parse.siggen.get_taskdata(), - "runq_hash" : runqhash, - "logdefaultdebug" : bb.msg.loggerDefaultDebugLevel, - "logdefaultverbose" : bb.msg.loggerDefaultVerbose, - "logdefaultverboselogs" : bb.msg.loggerVerboseLogs, - "logdefaultdomain" : bb.msg.loggerDefaultDomains, - "prhost" : self.cooker.prhost, - "buildname" : self.cfgData.getVar("BUILDNAME"), - "date" : self.cfgData.getVar("DATE"), - "time" : self.cfgData.getVar("TIME"), - } - - worker.stdin.write(b"<cookerconfig>" + pickle.dumps(self.cooker.configuration) + b"</cookerconfig>") - worker.stdin.write(b"<extraconfigdata>" + pickle.dumps(self.cooker.extraconfigdata) + b"</extraconfigdata>") - worker.stdin.write(b"<workerdata>" + pickle.dumps(workerdata) + b"</workerdata>") - worker.stdin.flush() - - return RunQueueWorker(worker, workerpipe) - - def _teardown_worker(self, worker): - if not worker: - return - logger.debug(1, "Teardown for bitbake-worker") - try: - worker.process.stdin.write(b"<quit></quit>") - worker.process.stdin.flush() - worker.process.stdin.close() - except IOError: - pass - while worker.process.returncode is None: - worker.pipe.read() - worker.process.poll() - while worker.pipe.read(): - continue - worker.pipe.close() - - def start_worker(self): - if self.worker: - self.teardown_workers() - self.teardown = False - for mc in self.rqdata.dataCaches: - self.worker[mc] = self._start_worker(mc) - - def start_fakeworker(self, rqexec, mc): - if not mc in self.fakeworker: - self.fakeworker[mc] = self._start_worker(mc, True, rqexec) - - def teardown_workers(self): - self.teardown = True - for mc in self.worker: - self._teardown_worker(self.worker[mc]) - self.worker = {} - for mc in self.fakeworker: - self._teardown_worker(self.fakeworker[mc]) - self.fakeworker = {} - - def read_workers(self): - for mc in self.worker: - self.worker[mc].pipe.read() - for mc in self.fakeworker: - self.fakeworker[mc].pipe.read() - - def active_fds(self): - fds = [] - for mc in self.worker: - fds.append(self.worker[mc].pipe.input) - for mc in self.fakeworker: - fds.append(self.fakeworker[mc].pipe.input) - return fds - - def check_stamp_task(self, tid, taskname = None, recurse = False, cache = None): - def get_timestamp(f): - try: - if not os.access(f, os.F_OK): - return None - return os.stat(f)[stat.ST_MTIME] - except: - return None - - (mc, fn, tn, taskfn) = split_tid_mcfn(tid) - if taskname is None: - taskname = tn - - if self.stamppolicy == "perfile": - fulldeptree = False - else: - fulldeptree = True - stampwhitelist = [] - if self.stamppolicy == "whitelist": - stampwhitelist = self.rqdata.stampfnwhitelist[mc] - - stampfile = bb.build.stampfile(taskname, self.rqdata.dataCaches[mc], taskfn) - - # If the stamp is missing, it's not current - if not os.access(stampfile, os.F_OK): - logger.debug(2, "Stampfile %s not available", stampfile) - return False - # If it's a 'nostamp' task, it's not current - taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] - if 'nostamp' in taskdep and taskname in taskdep['nostamp']: - logger.debug(2, "%s.%s is nostamp\n", fn, taskname) - return False - - if taskname != "do_setscene" and taskname.endswith("_setscene"): - return True - - if cache is None: - cache = {} - - iscurrent = True - t1 = get_timestamp(stampfile) - for dep in self.rqdata.runtaskentries[tid].depends: - if iscurrent: - (mc2, fn2, taskname2, taskfn2) = split_tid_mcfn(dep) - stampfile2 = bb.build.stampfile(taskname2, self.rqdata.dataCaches[mc2], taskfn2) - stampfile3 = bb.build.stampfile(taskname2 + "_setscene", self.rqdata.dataCaches[mc2], taskfn2) - t2 = get_timestamp(stampfile2) - t3 = get_timestamp(stampfile3) - if t3 and not t2: - continue - if t3 and t3 > t2: - continue - if fn == fn2 or (fulldeptree and fn2 not in stampwhitelist): - if not t2: - logger.debug(2, 'Stampfile %s does not exist', stampfile2) - iscurrent = False - break - if t1 < t2: - logger.debug(2, 'Stampfile %s < %s', stampfile, stampfile2) - iscurrent = False - break - if recurse and iscurrent: - if dep in cache: - iscurrent = cache[dep] - if not iscurrent: - logger.debug(2, 'Stampfile for dependency %s:%s invalid (cached)' % (fn2, taskname2)) - else: - iscurrent = self.check_stamp_task(dep, recurse=True, cache=cache) - cache[dep] = iscurrent - if recurse: - cache[tid] = iscurrent - return iscurrent - - def _execute_runqueue(self): - """ - Run the tasks in a queue prepared by rqdata.prepare() - Upon failure, optionally try to recover the build using any alternate providers - (if the abort on failure configuration option isn't set) - """ - - retval = True - - if self.state is runQueuePrepare: - self.rqexe = RunQueueExecuteDummy(self) - # NOTE: if you add, remove or significantly refactor the stages of this - # process then you should recalculate the weightings here. This is quite - # easy to do - just change the next line temporarily to pass debug=True as - # the last parameter and you'll get a printout of the weightings as well - # as a map to the lines where next_stage() was called. Of course this isn't - # critical, but it helps to keep the progress reporting accurate. - self.rqdata.init_progress_reporter = bb.progress.MultiStageProcessProgressReporter(self.cooker.data, - "Initialising tasks", - [43, 967, 4, 3, 1, 5, 3, 7, 13, 1, 2, 1, 1, 246, 35, 1, 38, 1, 35, 2, 338, 204, 142, 3, 3, 37, 244]) - if self.rqdata.prepare() == 0: - self.state = runQueueComplete - else: - self.state = runQueueSceneInit - self.rqdata.init_progress_reporter.next_stage() - - # we are ready to run, emit dependency info to any UI or class which - # needs it - depgraph = self.cooker.buildDependTree(self, self.rqdata.taskData) - self.rqdata.init_progress_reporter.next_stage() - bb.event.fire(bb.event.DepTreeGenerated(depgraph), self.cooker.data) - - if self.state is runQueueSceneInit: - dump = self.cooker.configuration.dump_signatures - if dump: - self.rqdata.init_progress_reporter.finish() - if 'printdiff' in dump: - invalidtasks = self.print_diffscenetasks() - self.dump_signatures(dump) - if 'printdiff' in dump: - self.write_diffscenetasks(invalidtasks) - self.state = runQueueComplete - else: - self.rqdata.init_progress_reporter.next_stage() - self.start_worker() - self.rqdata.init_progress_reporter.next_stage() - self.rqexe = RunQueueExecuteScenequeue(self) - - if self.state is runQueueSceneRun: - if not self.dm_event_handler_registered: - res = bb.event.register(self.dm_event_handler_name, - lambda x: self.dm.check(self) if self.state in [runQueueSceneRun, runQueueRunning, runQueueCleanUp] else False, - ('bb.event.HeartbeatEvent',)) - self.dm_event_handler_registered = True - retval = self.rqexe.execute() - - if self.state is runQueueRunInit: - if self.cooker.configuration.setsceneonly: - self.state = runQueueComplete - else: - # Just in case we didn't setscene - self.rqdata.init_progress_reporter.finish() - logger.info("Executing RunQueue Tasks") - self.rqexe = RunQueueExecuteTasks(self) - self.state = runQueueRunning - - if self.state is runQueueRunning: - retval = self.rqexe.execute() - - if self.state is runQueueCleanUp: - retval = self.rqexe.finish() - - build_done = self.state is runQueueComplete or self.state is runQueueFailed - - if build_done and self.dm_event_handler_registered: - bb.event.remove(self.dm_event_handler_name, None) - self.dm_event_handler_registered = False - - if build_done and self.rqexe: - self.teardown_workers() - if self.rqexe.stats.failed: - logger.info("Tasks Summary: Attempted %d tasks of which %d didn't need to be rerun and %d failed.", self.rqexe.stats.completed + self.rqexe.stats.failed, self.rqexe.stats.skipped, self.rqexe.stats.failed) - else: - # Let's avoid the word "failed" if nothing actually did - logger.info("Tasks Summary: Attempted %d tasks of which %d didn't need to be rerun and all succeeded.", self.rqexe.stats.completed, self.rqexe.stats.skipped) - - if self.state is runQueueFailed: - raise bb.runqueue.TaskFailure(self.rqexe.failed_tids) - - if self.state is runQueueComplete: - # All done - return False - - # Loop - return retval - - def execute_runqueue(self): - # Catch unexpected exceptions and ensure we exit when an error occurs, not loop. - try: - return self._execute_runqueue() - except bb.runqueue.TaskFailure: - raise - except SystemExit: - raise - except bb.BBHandledException: - try: - self.teardown_workers() - except: - pass - self.state = runQueueComplete - raise - except Exception as err: - logger.exception("An uncaught exception occurred in runqueue") - try: - self.teardown_workers() - except: - pass - self.state = runQueueComplete - raise - - def finish_runqueue(self, now = False): - if not self.rqexe: - self.state = runQueueComplete - return - - if now: - self.rqexe.finish_now() - else: - self.rqexe.finish() - - def rq_dump_sigfn(self, fn, options): - bb_cache = bb.cache.NoCache(self.cooker.databuilder) - the_data = bb_cache.loadDataFull(fn, self.cooker.collection.get_file_appends(fn)) - siggen = bb.parse.siggen - dataCaches = self.rqdata.dataCaches - siggen.dump_sigfn(fn, dataCaches, options) - - def dump_signatures(self, options): - fns = set() - bb.note("Reparsing files to collect dependency data") - - for tid in self.rqdata.runtaskentries: - fn = fn_from_tid(tid) - fns.add(fn) - - max_process = int(self.cfgData.getVar("BB_NUMBER_PARSE_THREADS") or os.cpu_count() or 1) - # We cannot use the real multiprocessing.Pool easily due to some local data - # that can't be pickled. This is a cheap multi-process solution. - launched = [] - while fns: - if len(launched) < max_process: - p = Process(target=self.rq_dump_sigfn, args=(fns.pop(), options)) - p.start() - launched.append(p) - for q in launched: - # The finished processes are joined when calling is_alive() - if not q.is_alive(): - launched.remove(q) - for p in launched: - p.join() - - bb.parse.siggen.dump_sigs(self.rqdata.dataCaches, options) - - return - - def print_diffscenetasks(self): - - valid = [] - sq_hash = [] - sq_hashfn = [] - sq_fn = [] - sq_taskname = [] - sq_task = [] - noexec = [] - stamppresent = [] - valid_new = set() - - for tid in self.rqdata.runtaskentries: - (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) - taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] - - if 'noexec' in taskdep and taskname in taskdep['noexec']: - noexec.append(tid) - continue - - sq_fn.append(fn) - sq_hashfn.append(self.rqdata.dataCaches[mc].hashfn[taskfn]) - sq_hash.append(self.rqdata.runtaskentries[tid].hash) - sq_taskname.append(taskname) - sq_task.append(tid) - locs = { "sq_fn" : sq_fn, "sq_task" : sq_taskname, "sq_hash" : sq_hash, "sq_hashfn" : sq_hashfn, "d" : self.cooker.data } - try: - call = self.hashvalidate + "(sq_fn, sq_task, sq_hash, sq_hashfn, d, siginfo=True)" - valid = bb.utils.better_eval(call, locs) - # Handle version with no siginfo parameter - except TypeError: - call = self.hashvalidate + "(sq_fn, sq_task, sq_hash, sq_hashfn, d)" - valid = bb.utils.better_eval(call, locs) - for v in valid: - valid_new.add(sq_task[v]) - - # Tasks which are both setscene and noexec never care about dependencies - # We therefore find tasks which are setscene and noexec and mark their - # unique dependencies as valid. - for tid in noexec: - if tid not in self.rqdata.runq_setscene_tids: - continue - for dep in self.rqdata.runtaskentries[tid].depends: - hasnoexecparents = True - for dep2 in self.rqdata.runtaskentries[dep].revdeps: - if dep2 in self.rqdata.runq_setscene_tids and dep2 in noexec: - continue - hasnoexecparents = False - break - if hasnoexecparents: - valid_new.add(dep) - - invalidtasks = set() - for tid in self.rqdata.runtaskentries: - if tid not in valid_new and tid not in noexec: - invalidtasks.add(tid) - - found = set() - processed = set() - for tid in invalidtasks: - toprocess = set([tid]) - while toprocess: - next = set() - for t in toprocess: - for dep in self.rqdata.runtaskentries[t].depends: - if dep in invalidtasks: - found.add(tid) - if dep not in processed: - processed.add(dep) - next.add(dep) - toprocess = next - if tid in found: - toprocess = set() - - tasklist = [] - for tid in invalidtasks.difference(found): - tasklist.append(tid) - - if tasklist: - bb.plain("The differences between the current build and any cached tasks start at the following tasks:\n" + "\n".join(tasklist)) - - return invalidtasks.difference(found) - - def write_diffscenetasks(self, invalidtasks): - - # Define recursion callback - def recursecb(key, hash1, hash2): - hashes = [hash1, hash2] - hashfiles = bb.siggen.find_siginfo(key, None, hashes, self.cfgData) - - recout = [] - if len(hashfiles) == 2: - out2 = bb.siggen.compare_sigfiles(hashfiles[hash1], hashfiles[hash2], recursecb) - recout.extend(list(' ' + l for l in out2)) - else: - recout.append("Unable to find matching sigdata for %s with hashes %s or %s" % (key, hash1, hash2)) - - return recout - - - for tid in invalidtasks: - (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) - pn = self.rqdata.dataCaches[mc].pkg_fn[taskfn] - h = self.rqdata.runtaskentries[tid].hash - matches = bb.siggen.find_siginfo(pn, taskname, [], self.cfgData) - match = None - for m in matches: - if h in m: - match = m - if match is None: - bb.fatal("Can't find a task we're supposed to have written out? (hash: %s)?" % h) - matches = {k : v for k, v in iter(matches.items()) if h not in k} - if matches: - latestmatch = sorted(matches.keys(), key=lambda f: matches[f])[-1] - prevh = __find_md5__.search(latestmatch).group(0) - output = bb.siggen.compare_sigfiles(latestmatch, match, recursecb) - bb.plain("\nTask %s:%s couldn't be used from the cache because:\n We need hash %s, closest matching task was %s\n " % (pn, taskname, h, prevh) + '\n '.join(output)) - -class RunQueueExecute: - - def __init__(self, rq): - self.rq = rq - self.cooker = rq.cooker - self.cfgData = rq.cfgData - self.rqdata = rq.rqdata - - self.number_tasks = int(self.cfgData.getVar("BB_NUMBER_THREADS") or 1) - self.scheduler = self.cfgData.getVar("BB_SCHEDULER") or "speed" - - self.runq_buildable = set() - self.runq_running = set() - self.runq_complete = set() - - self.build_stamps = {} - self.build_stamps2 = [] - self.failed_tids = [] - - self.stampcache = {} - - for mc in rq.worker: - rq.worker[mc].pipe.setrunqueueexec(self) - for mc in rq.fakeworker: - rq.fakeworker[mc].pipe.setrunqueueexec(self) - - if self.number_tasks <= 0: - bb.fatal("Invalid BB_NUMBER_THREADS %s" % self.number_tasks) - - def runqueue_process_waitpid(self, task, status): - - # self.build_stamps[pid] may not exist when use shared work directory. - if task in self.build_stamps: - self.build_stamps2.remove(self.build_stamps[task]) - del self.build_stamps[task] - - if status != 0: - self.task_fail(task, status) - else: - self.task_complete(task) - return True - - def finish_now(self): - for mc in self.rq.worker: - try: - self.rq.worker[mc].process.stdin.write(b"<finishnow></finishnow>") - self.rq.worker[mc].process.stdin.flush() - except IOError: - # worker must have died? - pass - for mc in self.rq.fakeworker: - try: - self.rq.fakeworker[mc].process.stdin.write(b"<finishnow></finishnow>") - self.rq.fakeworker[mc].process.stdin.flush() - except IOError: - # worker must have died? - pass - - if len(self.failed_tids) != 0: - self.rq.state = runQueueFailed - return - - self.rq.state = runQueueComplete - return - - def finish(self): - self.rq.state = runQueueCleanUp - - if self.stats.active > 0: - bb.event.fire(runQueueExitWait(self.stats.active), self.cfgData) - self.rq.read_workers() - return self.rq.active_fds() - - if len(self.failed_tids) != 0: - self.rq.state = runQueueFailed - return True - - self.rq.state = runQueueComplete - return True - - def check_dependencies(self, task, taskdeps, setscene = False): - if not self.rq.depvalidate: - return False - - taskdata = {} - taskdeps.add(task) - for dep in taskdeps: - (mc, fn, taskname, taskfn) = split_tid_mcfn(dep) - pn = self.rqdata.dataCaches[mc].pkg_fn[taskfn] - taskdata[dep] = [pn, taskname, fn] - call = self.rq.depvalidate + "(task, taskdata, notneeded, d)" - locs = { "task" : task, "taskdata" : taskdata, "notneeded" : self.scenequeue_notneeded, "d" : self.cooker.data } - valid = bb.utils.better_eval(call, locs) - return valid - -class RunQueueExecuteDummy(RunQueueExecute): - def __init__(self, rq): - self.rq = rq - self.stats = RunQueueStats(0) - - def finish(self): - self.rq.state = runQueueComplete - return - -class RunQueueExecuteTasks(RunQueueExecute): - def __init__(self, rq): - RunQueueExecute.__init__(self, rq) - - self.stats = RunQueueStats(len(self.rqdata.runtaskentries)) - - self.stampcache = {} - - initial_covered = self.rq.scenequeue_covered.copy() - - # Mark initial buildable tasks - for tid in self.rqdata.runtaskentries: - if len(self.rqdata.runtaskentries[tid].depends) == 0: - self.runq_buildable.add(tid) - if len(self.rqdata.runtaskentries[tid].revdeps) > 0 and self.rqdata.runtaskentries[tid].revdeps.issubset(self.rq.scenequeue_covered): - self.rq.scenequeue_covered.add(tid) - - found = True - while found: - found = False - for tid in self.rqdata.runtaskentries: - if tid in self.rq.scenequeue_covered: - continue - logger.debug(1, 'Considering %s: %s' % (tid, str(self.rqdata.runtaskentries[tid].revdeps))) - - if len(self.rqdata.runtaskentries[tid].revdeps) > 0 and self.rqdata.runtaskentries[tid].revdeps.issubset(self.rq.scenequeue_covered): - if tid in self.rq.scenequeue_notcovered: - continue - found = True - self.rq.scenequeue_covered.add(tid) - - logger.debug(1, 'Skip list (pre setsceneverify) %s', sorted(self.rq.scenequeue_covered)) - - # Allow the metadata to elect for setscene tasks to run anyway - covered_remove = set() - if self.rq.setsceneverify: - invalidtasks = [] - tasknames = {} - fns = {} - for tid in self.rqdata.runtaskentries: - (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) - taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] - fns[tid] = taskfn - tasknames[tid] = taskname - if 'noexec' in taskdep and taskname in taskdep['noexec']: - continue - if self.rq.check_stamp_task(tid, taskname + "_setscene", cache=self.stampcache): - logger.debug(2, 'Setscene stamp current for task %s', tid) - continue - if self.rq.check_stamp_task(tid, taskname, recurse = True, cache=self.stampcache): - logger.debug(2, 'Normal stamp current for task %s', tid) - continue - invalidtasks.append(tid) - - call = self.rq.setsceneverify + "(covered, tasknames, fns, d, invalidtasks=invalidtasks)" - locs = { "covered" : self.rq.scenequeue_covered, "tasknames" : tasknames, "fns" : fns, "d" : self.cooker.data, "invalidtasks" : invalidtasks } - covered_remove = bb.utils.better_eval(call, locs) - - def removecoveredtask(tid): - (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) - taskname = taskname + '_setscene' - bb.build.del_stamp(taskname, self.rqdata.dataCaches[mc], taskfn) - self.rq.scenequeue_covered.remove(tid) - - toremove = covered_remove - for task in toremove: - logger.debug(1, 'Not skipping task %s due to setsceneverify', task) - while toremove: - covered_remove = [] - for task in toremove: - removecoveredtask(task) - for deptask in self.rqdata.runtaskentries[task].depends: - if deptask not in self.rq.scenequeue_covered: - continue - if deptask in toremove or deptask in covered_remove or deptask in initial_covered: - continue - logger.debug(1, 'Task %s depends on task %s so not skipping' % (task, deptask)) - covered_remove.append(deptask) - toremove = covered_remove - - logger.debug(1, 'Full skip list %s', self.rq.scenequeue_covered) - - - for mc in self.rqdata.dataCaches: - target_pairs = [] - for tid in self.rqdata.target_tids: - (tidmc, fn, taskname, _) = split_tid_mcfn(tid) - if tidmc == mc: - target_pairs.append((fn, taskname)) - - event.fire(bb.event.StampUpdate(target_pairs, self.rqdata.dataCaches[mc].stamp), self.cfgData) - - schedulers = self.get_schedulers() - for scheduler in schedulers: - if self.scheduler == scheduler.name: - self.sched = scheduler(self, self.rqdata) - logger.debug(1, "Using runqueue scheduler '%s'", scheduler.name) - break - else: - bb.fatal("Invalid scheduler '%s'. Available schedulers: %s" % - (self.scheduler, ", ".join(obj.name for obj in schedulers))) - - def get_schedulers(self): - schedulers = set(obj for obj in globals().values() - if type(obj) is type and - issubclass(obj, RunQueueScheduler)) - - user_schedulers = self.cfgData.getVar("BB_SCHEDULERS") - if user_schedulers: - for sched in user_schedulers.split(): - if not "." in sched: - bb.note("Ignoring scheduler '%s' from BB_SCHEDULERS: not an import" % sched) - continue - - modname, name = sched.rsplit(".", 1) - try: - module = __import__(modname, fromlist=(name,)) - except ImportError as exc: - logger.critical("Unable to import scheduler '%s' from '%s': %s" % (name, modname, exc)) - raise SystemExit(1) - else: - schedulers.add(getattr(module, name)) - return schedulers - - def setbuildable(self, task): - self.runq_buildable.add(task) - self.sched.newbuildable(task) - - def task_completeoutright(self, task): - """ - Mark a task as completed - Look at the reverse dependencies and mark any task with - completed dependencies as buildable - """ - self.runq_complete.add(task) - for revdep in self.rqdata.runtaskentries[task].revdeps: - if revdep in self.runq_running: - continue - if revdep in self.runq_buildable: - continue - alldeps = 1 - for dep in self.rqdata.runtaskentries[revdep].depends: - if dep not in self.runq_complete: - alldeps = 0 - if alldeps == 1: - self.setbuildable(revdep) - fn = fn_from_tid(revdep) - taskname = taskname_from_tid(revdep) - logger.debug(1, "Marking task %s as buildable", revdep) - - def task_complete(self, task): - self.stats.taskCompleted() - bb.event.fire(runQueueTaskCompleted(task, self.stats, self.rq), self.cfgData) - self.task_completeoutright(task) - - def task_fail(self, task, exitcode): - """ - Called when a task has failed - Updates the state engine with the failure - """ - self.stats.taskFailed() - self.failed_tids.append(task) - bb.event.fire(runQueueTaskFailed(task, self.stats, exitcode, self.rq), self.cfgData) - if self.rqdata.taskData[''].abort: - self.rq.state = runQueueCleanUp - - def task_skip(self, task, reason): - self.runq_running.add(task) - self.setbuildable(task) - bb.event.fire(runQueueTaskSkipped(task, self.stats, self.rq, reason), self.cfgData) - self.task_completeoutright(task) - self.stats.taskCompleted() - self.stats.taskSkipped() - - def execute(self): - """ - Run the tasks in a queue prepared by rqdata.prepare() - """ - - if self.rqdata.setscenewhitelist is not None and not self.rqdata.setscenewhitelist_checked: - self.rqdata.setscenewhitelist_checked = True - - # Check tasks that are going to run against the whitelist - def check_norun_task(tid, showerror=False): - (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) - # Ignore covered tasks - if tid in self.rq.scenequeue_covered: - return False - # Ignore stamped tasks - if self.rq.check_stamp_task(tid, taskname, cache=self.stampcache): - return False - # Ignore noexec tasks - taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] - if 'noexec' in taskdep and taskname in taskdep['noexec']: - return False - - pn = self.rqdata.dataCaches[mc].pkg_fn[taskfn] - if not check_setscene_enforce_whitelist(pn, taskname, self.rqdata.setscenewhitelist): - if showerror: - if tid in self.rqdata.runq_setscene_tids: - logger.error('Task %s.%s attempted to execute unexpectedly and should have been setscened' % (pn, taskname)) - else: - logger.error('Task %s.%s attempted to execute unexpectedly' % (pn, taskname)) - return True - return False - # Look to see if any tasks that we think shouldn't run are going to - unexpected = False - for tid in self.rqdata.runtaskentries: - if check_norun_task(tid): - unexpected = True - break - if unexpected: - # Run through the tasks in the rough order they'd have executed and print errors - # (since the order can be useful - usually missing sstate for the last few tasks - # is the cause of the problem) - task = self.sched.next() - while task is not None: - check_norun_task(task, showerror=True) - self.task_skip(task, 'Setscene enforcement check') - task = self.sched.next() - - self.rq.state = runQueueCleanUp - return True - - self.rq.read_workers() - - if self.stats.total == 0: - # nothing to do - self.rq.state = runQueueCleanUp - - task = self.sched.next() - if task is not None: - (mc, fn, taskname, taskfn) = split_tid_mcfn(task) - - if task in self.rq.scenequeue_covered: - logger.debug(2, "Setscene covered task %s", task) - self.task_skip(task, "covered") - return True - - if self.rq.check_stamp_task(task, taskname, cache=self.stampcache): - logger.debug(2, "Stamp current task %s", task) - - self.task_skip(task, "existing") - return True - - taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] - if 'noexec' in taskdep and taskname in taskdep['noexec']: - startevent = runQueueTaskStarted(task, self.stats, self.rq, - noexec=True) - bb.event.fire(startevent, self.cfgData) - self.runq_running.add(task) - self.stats.taskActive() - if not (self.cooker.configuration.dry_run or self.rqdata.setscene_enforce): - bb.build.make_stamp(taskname, self.rqdata.dataCaches[mc], taskfn) - self.task_complete(task) - return True - else: - startevent = runQueueTaskStarted(task, self.stats, self.rq) - bb.event.fire(startevent, self.cfgData) - - taskdepdata = self.build_taskdepdata(task) - - taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] - if 'fakeroot' in taskdep and taskname in taskdep['fakeroot'] and not (self.cooker.configuration.dry_run or self.rqdata.setscene_enforce): - if not mc in self.rq.fakeworker: - try: - self.rq.start_fakeworker(self, mc) - except OSError as exc: - logger.critical("Failed to spawn fakeroot worker to run %s: %s" % (task, str(exc))) - self.rq.state = runQueueFailed - self.stats.taskFailed() - return True - self.rq.fakeworker[mc].process.stdin.write(b"<runtask>" + pickle.dumps((taskfn, task, taskname, False, self.cooker.collection.get_file_appends(taskfn), taskdepdata, self.rqdata.setscene_enforce)) + b"</runtask>") - self.rq.fakeworker[mc].process.stdin.flush() - else: - self.rq.worker[mc].process.stdin.write(b"<runtask>" + pickle.dumps((taskfn, task, taskname, False, self.cooker.collection.get_file_appends(taskfn), taskdepdata, self.rqdata.setscene_enforce)) + b"</runtask>") - self.rq.worker[mc].process.stdin.flush() - - self.build_stamps[task] = bb.build.stampfile(taskname, self.rqdata.dataCaches[mc], taskfn, noextra=True) - self.build_stamps2.append(self.build_stamps[task]) - self.runq_running.add(task) - self.stats.taskActive() - if self.stats.active < self.number_tasks: - return True - - if self.stats.active > 0: - self.rq.read_workers() - return self.rq.active_fds() - - if len(self.failed_tids) != 0: - self.rq.state = runQueueFailed - return True - - # Sanity Checks - for task in self.rqdata.runtaskentries: - if task not in self.runq_buildable: - logger.error("Task %s never buildable!", task) - if task not in self.runq_running: - logger.error("Task %s never ran!", task) - if task not in self.runq_complete: - logger.error("Task %s never completed!", task) - self.rq.state = runQueueComplete - - return True - - def build_taskdepdata(self, task): - taskdepdata = {} - next = self.rqdata.runtaskentries[task].depends - next.add(task) - while next: - additional = [] - for revdep in next: - (mc, fn, taskname, taskfn) = split_tid_mcfn(revdep) - pn = self.rqdata.dataCaches[mc].pkg_fn[taskfn] - deps = self.rqdata.runtaskentries[revdep].depends - provides = self.rqdata.dataCaches[mc].fn_provides[taskfn] - taskhash = self.rqdata.runtaskentries[revdep].hash - taskdepdata[revdep] = [pn, taskname, fn, deps, provides, taskhash] - for revdep2 in deps: - if revdep2 not in taskdepdata: - additional.append(revdep2) - next = additional - - #bb.note("Task %s: " % task + str(taskdepdata).replace("], ", "],\n")) - return taskdepdata - -class RunQueueExecuteScenequeue(RunQueueExecute): - def __init__(self, rq): - RunQueueExecute.__init__(self, rq) - - self.scenequeue_covered = set() - self.scenequeue_notcovered = set() - self.scenequeue_notneeded = set() - - # If we don't have any setscene functions, skip this step - if len(self.rqdata.runq_setscene_tids) == 0: - rq.scenequeue_covered = set() - rq.state = runQueueRunInit - return - - self.stats = RunQueueStats(len(self.rqdata.runq_setscene_tids)) - - sq_revdeps = {} - sq_revdeps_new = {} - sq_revdeps_squash = {} - self.sq_harddeps = {} - self.stamps = {} - - # We need to construct a dependency graph for the setscene functions. Intermediate - # dependencies between the setscene tasks only complicate the code. This code - # therefore aims to collapse the huge runqueue dependency tree into a smaller one - # only containing the setscene functions. - - self.rqdata.init_progress_reporter.next_stage() - - # First process the chains up to the first setscene task. - endpoints = {} - for tid in self.rqdata.runtaskentries: - sq_revdeps[tid] = copy.copy(self.rqdata.runtaskentries[tid].revdeps) - sq_revdeps_new[tid] = set() - if (len(sq_revdeps[tid]) == 0) and tid not in self.rqdata.runq_setscene_tids: - #bb.warn("Added endpoint %s" % (tid)) - endpoints[tid] = set() - - self.rqdata.init_progress_reporter.next_stage() - - # Secondly process the chains between setscene tasks. - for tid in self.rqdata.runq_setscene_tids: - #bb.warn("Added endpoint 2 %s" % (tid)) - for dep in self.rqdata.runtaskentries[tid].depends: - if tid in sq_revdeps[dep]: - sq_revdeps[dep].remove(tid) - if dep not in endpoints: - endpoints[dep] = set() - #bb.warn(" Added endpoint 3 %s" % (dep)) - endpoints[dep].add(tid) - - self.rqdata.init_progress_reporter.next_stage() - - def process_endpoints(endpoints): - newendpoints = {} - for point, task in endpoints.items(): - tasks = set() - if task: - tasks |= task - if sq_revdeps_new[point]: - tasks |= sq_revdeps_new[point] - sq_revdeps_new[point] = set() - if point in self.rqdata.runq_setscene_tids: - sq_revdeps_new[point] = tasks - tasks = set() - continue - for dep in self.rqdata.runtaskentries[point].depends: - if point in sq_revdeps[dep]: - sq_revdeps[dep].remove(point) - if tasks: - sq_revdeps_new[dep] |= tasks - if len(sq_revdeps[dep]) == 0 and dep not in self.rqdata.runq_setscene_tids: - newendpoints[dep] = task - if len(newendpoints) != 0: - process_endpoints(newendpoints) - - process_endpoints(endpoints) - - self.rqdata.init_progress_reporter.next_stage() - - # Build a list of setscene tasks which are "unskippable" - # These are direct endpoints referenced by the build - endpoints2 = {} - sq_revdeps2 = {} - sq_revdeps_new2 = {} - def process_endpoints2(endpoints): - newendpoints = {} - for point, task in endpoints.items(): - tasks = set([point]) - if task: - tasks |= task - if sq_revdeps_new2[point]: - tasks |= sq_revdeps_new2[point] - sq_revdeps_new2[point] = set() - if point in self.rqdata.runq_setscene_tids: - sq_revdeps_new2[point] = tasks - for dep in self.rqdata.runtaskentries[point].depends: - if point in sq_revdeps2[dep]: - sq_revdeps2[dep].remove(point) - if tasks: - sq_revdeps_new2[dep] |= tasks - if (len(sq_revdeps2[dep]) == 0 or len(sq_revdeps_new2[dep]) != 0) and dep not in self.rqdata.runq_setscene_tids: - newendpoints[dep] = tasks - if len(newendpoints) != 0: - process_endpoints2(newendpoints) - for tid in self.rqdata.runtaskentries: - sq_revdeps2[tid] = copy.copy(self.rqdata.runtaskentries[tid].revdeps) - sq_revdeps_new2[tid] = set() - if (len(sq_revdeps2[tid]) == 0) and tid not in self.rqdata.runq_setscene_tids: - endpoints2[tid] = set() - process_endpoints2(endpoints2) - self.unskippable = [] - for tid in self.rqdata.runq_setscene_tids: - if sq_revdeps_new2[tid]: - self.unskippable.append(tid) - - self.rqdata.init_progress_reporter.next_stage(len(self.rqdata.runtaskentries)) - - for taskcounter, tid in enumerate(self.rqdata.runtaskentries): - if tid in self.rqdata.runq_setscene_tids: - deps = set() - for dep in sq_revdeps_new[tid]: - deps.add(dep) - sq_revdeps_squash[tid] = deps - elif len(sq_revdeps_new[tid]) != 0: - bb.msg.fatal("RunQueue", "Something went badly wrong during scenequeue generation, aborting. Please report this problem.") - self.rqdata.init_progress_reporter.update(taskcounter) - - self.rqdata.init_progress_reporter.next_stage() - - # Resolve setscene inter-task dependencies - # e.g. do_sometask_setscene[depends] = "targetname:do_someothertask_setscene" - # Note that anything explicitly depended upon will have its reverse dependencies removed to avoid circular dependencies - for tid in self.rqdata.runq_setscene_tids: - (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) - realtid = tid + "_setscene" - idepends = self.rqdata.taskData[mc].taskentries[realtid].idepends - self.stamps[tid] = bb.build.stampfile(taskname + "_setscene", self.rqdata.dataCaches[mc], taskfn, noextra=True) - for (depname, idependtask) in idepends: - - if depname not in self.rqdata.taskData[mc].build_targets: - continue - - depfn = self.rqdata.taskData[mc].build_targets[depname][0] - if depfn is None: - continue - deptid = depfn + ":" + idependtask.replace("_setscene", "") - if deptid not in self.rqdata.runtaskentries: - bb.msg.fatal("RunQueue", "Task %s depends upon non-existent task %s:%s" % (realtid, depfn, idependtask)) - - if not deptid in self.sq_harddeps: - self.sq_harddeps[deptid] = set() - self.sq_harddeps[deptid].add(tid) - - sq_revdeps_squash[tid].add(deptid) - # Have to zero this to avoid circular dependencies - sq_revdeps_squash[deptid] = set() - - self.rqdata.init_progress_reporter.next_stage() - - for task in self.sq_harddeps: - for dep in self.sq_harddeps[task]: - sq_revdeps_squash[dep].add(task) - - self.rqdata.init_progress_reporter.next_stage() - - #for tid in sq_revdeps_squash: - # for dep in sq_revdeps_squash[tid]: - # data = data + "\n %s" % dep - # bb.warn("Task %s_setscene: is %s " % (tid, data - - self.sq_deps = {} - self.sq_revdeps = sq_revdeps_squash - self.sq_revdeps2 = copy.deepcopy(self.sq_revdeps) - - for tid in self.sq_revdeps: - self.sq_deps[tid] = set() - for tid in self.sq_revdeps: - for dep in self.sq_revdeps[tid]: - self.sq_deps[dep].add(tid) - - self.rqdata.init_progress_reporter.next_stage() - - for tid in self.sq_revdeps: - if len(self.sq_revdeps[tid]) == 0: - self.runq_buildable.add(tid) - - self.rqdata.init_progress_reporter.finish() - - self.outrightfail = [] - if self.rq.hashvalidate: - sq_hash = [] - sq_hashfn = [] - sq_fn = [] - sq_taskname = [] - sq_task = [] - noexec = [] - stamppresent = [] - for tid in self.sq_revdeps: - (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) - - taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] - - if 'noexec' in taskdep and taskname in taskdep['noexec']: - noexec.append(tid) - self.task_skip(tid) - bb.build.make_stamp(taskname + "_setscene", self.rqdata.dataCaches[mc], taskfn) - continue - - if self.rq.check_stamp_task(tid, taskname + "_setscene", cache=self.stampcache): - logger.debug(2, 'Setscene stamp current for task %s', tid) - stamppresent.append(tid) - self.task_skip(tid) - continue - - if self.rq.check_stamp_task(tid, taskname, recurse = True, cache=self.stampcache): - logger.debug(2, 'Normal stamp current for task %s', tid) - stamppresent.append(tid) - self.task_skip(tid) - continue - - sq_fn.append(fn) - sq_hashfn.append(self.rqdata.dataCaches[mc].hashfn[taskfn]) - sq_hash.append(self.rqdata.runtaskentries[tid].hash) - sq_taskname.append(taskname) - sq_task.append(tid) - call = self.rq.hashvalidate + "(sq_fn, sq_task, sq_hash, sq_hashfn, d)" - locs = { "sq_fn" : sq_fn, "sq_task" : sq_taskname, "sq_hash" : sq_hash, "sq_hashfn" : sq_hashfn, "d" : self.cooker.data } - valid = bb.utils.better_eval(call, locs) - - valid_new = stamppresent - for v in valid: - valid_new.append(sq_task[v]) - - for tid in self.sq_revdeps: - if tid not in valid_new and tid not in noexec: - logger.debug(2, 'No package found, so skipping setscene task %s', tid) - self.outrightfail.append(tid) - - logger.info('Executing SetScene Tasks') - - self.rq.state = runQueueSceneRun - - def scenequeue_updatecounters(self, task, fail = False): - for dep in self.sq_deps[task]: - if fail and task in self.sq_harddeps and dep in self.sq_harddeps[task]: - logger.debug(2, "%s was unavailable and is a hard dependency of %s so skipping" % (task, dep)) - self.scenequeue_updatecounters(dep, fail) - continue - if task not in self.sq_revdeps2[dep]: - # May already have been removed by the fail case above - continue - self.sq_revdeps2[dep].remove(task) - if len(self.sq_revdeps2[dep]) == 0: - self.runq_buildable.add(dep) - - def task_completeoutright(self, task): - """ - Mark a task as completed - Look at the reverse dependencies and mark any task with - completed dependencies as buildable - """ - - logger.debug(1, 'Found task %s which could be accelerated', task) - self.scenequeue_covered.add(task) - self.scenequeue_updatecounters(task) - - def check_taskfail(self, task): - if self.rqdata.setscenewhitelist is not None: - realtask = task.split('_setscene')[0] - (mc, fn, taskname, taskfn) = split_tid_mcfn(realtask) - pn = self.rqdata.dataCaches[mc].pkg_fn[taskfn] - if not check_setscene_enforce_whitelist(pn, taskname, self.rqdata.setscenewhitelist): - logger.error('Task %s.%s failed' % (pn, taskname + "_setscene")) - self.rq.state = runQueueCleanUp - - def task_complete(self, task): - self.stats.taskCompleted() - bb.event.fire(sceneQueueTaskCompleted(task, self.stats, self.rq), self.cfgData) - self.task_completeoutright(task) - - def task_fail(self, task, result): - self.stats.taskFailed() - bb.event.fire(sceneQueueTaskFailed(task, self.stats, result, self), self.cfgData) - self.scenequeue_notcovered.add(task) - self.scenequeue_updatecounters(task, True) - self.check_taskfail(task) - - def task_failoutright(self, task): - self.runq_running.add(task) - self.runq_buildable.add(task) - self.stats.taskCompleted() - self.stats.taskSkipped() - self.scenequeue_notcovered.add(task) - self.scenequeue_updatecounters(task, True) - - def task_skip(self, task): - self.runq_running.add(task) - self.runq_buildable.add(task) - self.task_completeoutright(task) - self.stats.taskCompleted() - self.stats.taskSkipped() - - def execute(self): - """ - Run the tasks in a queue prepared by prepare_runqueue - """ - - self.rq.read_workers() - - task = None - if self.stats.active < self.number_tasks: - # Find the next setscene to run - for nexttask in self.rqdata.runq_setscene_tids: - if nexttask in self.runq_buildable and nexttask not in self.runq_running and self.stamps[nexttask] not in self.build_stamps.values(): - if nexttask in self.unskippable: - logger.debug(2, "Setscene task %s is unskippable" % nexttask) - if nexttask not in self.unskippable and len(self.sq_revdeps[nexttask]) > 0 and self.sq_revdeps[nexttask].issubset(self.scenequeue_covered) and self.check_dependencies(nexttask, self.sq_revdeps[nexttask], True): - fn = fn_from_tid(nexttask) - foundtarget = False - - if nexttask in self.rqdata.target_tids: - foundtarget = True - if not foundtarget: - logger.debug(2, "Skipping setscene for task %s" % nexttask) - self.task_skip(nexttask) - self.scenequeue_notneeded.add(nexttask) - return True - if nexttask in self.outrightfail: - self.task_failoutright(nexttask) - return True - task = nexttask - break - if task is not None: - (mc, fn, taskname, taskfn) = split_tid_mcfn(task) - taskname = taskname + "_setscene" - if self.rq.check_stamp_task(task, taskname_from_tid(task), recurse = True, cache=self.stampcache): - logger.debug(2, 'Stamp for underlying task %s is current, so skipping setscene variant', task) - self.task_failoutright(task) - return True - - if self.cooker.configuration.force: - if task in self.rqdata.target_tids: - self.task_failoutright(task) - return True - - if self.rq.check_stamp_task(task, taskname, cache=self.stampcache): - logger.debug(2, 'Setscene stamp current task %s, so skip it and its dependencies', task) - self.task_skip(task) - return True - - startevent = sceneQueueTaskStarted(task, self.stats, self.rq) - bb.event.fire(startevent, self.cfgData) - - taskdepdata = self.build_taskdepdata(task) - - taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] - if 'fakeroot' in taskdep and taskname in taskdep['fakeroot'] and not self.cooker.configuration.dry_run: - if not mc in self.rq.fakeworker: - self.rq.start_fakeworker(self, mc) - self.rq.fakeworker[mc].process.stdin.write(b"<runtask>" + pickle.dumps((taskfn, task, taskname, True, self.cooker.collection.get_file_appends(taskfn), taskdepdata, False)) + b"</runtask>") - self.rq.fakeworker[mc].process.stdin.flush() - else: - self.rq.worker[mc].process.stdin.write(b"<runtask>" + pickle.dumps((taskfn, task, taskname, True, self.cooker.collection.get_file_appends(taskfn), taskdepdata, False)) + b"</runtask>") - self.rq.worker[mc].process.stdin.flush() - - self.build_stamps[task] = bb.build.stampfile(taskname, self.rqdata.dataCaches[mc], taskfn, noextra=True) - self.build_stamps2.append(self.build_stamps[task]) - self.runq_running.add(task) - self.stats.taskActive() - if self.stats.active < self.number_tasks: - return True - - if self.stats.active > 0: - self.rq.read_workers() - return self.rq.active_fds() - - #for tid in self.sq_revdeps: - # if tid not in self.runq_running: - # buildable = tid in self.runq_buildable - # revdeps = self.sq_revdeps[tid] - # bb.warn("Found we didn't run %s %s %s" % (tid, buildable, str(revdeps))) - - self.rq.scenequeue_covered = self.scenequeue_covered - self.rq.scenequeue_notcovered = self.scenequeue_notcovered - - logger.debug(1, 'We can skip tasks %s', "\n".join(sorted(self.rq.scenequeue_covered))) - - self.rq.state = runQueueRunInit - - completeevent = sceneQueueComplete(self.stats, self.rq) - bb.event.fire(completeevent, self.cfgData) - - return True - - def runqueue_process_waitpid(self, task, status): - RunQueueExecute.runqueue_process_waitpid(self, task, status) - - - def build_taskdepdata(self, task): - def getsetscenedeps(tid): - deps = set() - (mc, fn, taskname, _) = split_tid_mcfn(tid) - realtid = tid + "_setscene" - idepends = self.rqdata.taskData[mc].taskentries[realtid].idepends - for (depname, idependtask) in idepends: - if depname not in self.rqdata.taskData[mc].build_targets: - continue - - depfn = self.rqdata.taskData[mc].build_targets[depname][0] - if depfn is None: - continue - deptid = depfn + ":" + idependtask.replace("_setscene", "") - deps.add(deptid) - return deps - - taskdepdata = {} - next = getsetscenedeps(task) - next.add(task) - while next: - additional = [] - for revdep in next: - (mc, fn, taskname, taskfn) = split_tid_mcfn(revdep) - pn = self.rqdata.dataCaches[mc].pkg_fn[taskfn] - deps = getsetscenedeps(revdep) - provides = self.rqdata.dataCaches[mc].fn_provides[taskfn] - taskhash = self.rqdata.runtaskentries[revdep].hash - taskdepdata[revdep] = [pn, taskname, fn, deps, provides, taskhash] - for revdep2 in deps: - if revdep2 not in taskdepdata: - additional.append(revdep2) - next = additional - - #bb.note("Task %s: " % task + str(taskdepdata).replace("], ", "],\n")) - return taskdepdata - -class TaskFailure(Exception): - """ - Exception raised when a task in a runqueue fails - """ - def __init__(self, x): - self.args = x - - -class runQueueExitWait(bb.event.Event): - """ - Event when waiting for task processes to exit - """ - - def __init__(self, remain): - self.remain = remain - self.message = "Waiting for %s active tasks to finish" % remain - bb.event.Event.__init__(self) - -class runQueueEvent(bb.event.Event): - """ - Base runQueue event class - """ - def __init__(self, task, stats, rq): - self.taskid = task - self.taskstring = task - self.taskname = taskname_from_tid(task) - self.taskfile = fn_from_tid(task) - self.taskhash = rq.rqdata.get_task_hash(task) - self.stats = stats.copy() - bb.event.Event.__init__(self) - -class sceneQueueEvent(runQueueEvent): - """ - Base sceneQueue event class - """ - def __init__(self, task, stats, rq, noexec=False): - runQueueEvent.__init__(self, task, stats, rq) - self.taskstring = task + "_setscene" - self.taskname = taskname_from_tid(task) + "_setscene" - self.taskfile = fn_from_tid(task) - self.taskhash = rq.rqdata.get_task_hash(task) - -class runQueueTaskStarted(runQueueEvent): - """ - Event notifying a task was started - """ - def __init__(self, task, stats, rq, noexec=False): - runQueueEvent.__init__(self, task, stats, rq) - self.noexec = noexec - -class sceneQueueTaskStarted(sceneQueueEvent): - """ - Event notifying a setscene task was started - """ - def __init__(self, task, stats, rq, noexec=False): - sceneQueueEvent.__init__(self, task, stats, rq) - self.noexec = noexec - -class runQueueTaskFailed(runQueueEvent): - """ - Event notifying a task failed - """ - def __init__(self, task, stats, exitcode, rq): - runQueueEvent.__init__(self, task, stats, rq) - self.exitcode = exitcode - - def __str__(self): - return "Task (%s) failed with exit code '%s'" % (self.taskstring, self.exitcode) - -class sceneQueueTaskFailed(sceneQueueEvent): - """ - Event notifying a setscene task failed - """ - def __init__(self, task, stats, exitcode, rq): - sceneQueueEvent.__init__(self, task, stats, rq) - self.exitcode = exitcode - - def __str__(self): - return "Setscene task (%s) failed with exit code '%s' - real task will be run instead" % (self.taskstring, self.exitcode) - -class sceneQueueComplete(sceneQueueEvent): - """ - Event when all the sceneQueue tasks are complete - """ - def __init__(self, stats, rq): - self.stats = stats.copy() - bb.event.Event.__init__(self) - -class runQueueTaskCompleted(runQueueEvent): - """ - Event notifying a task completed - """ - -class sceneQueueTaskCompleted(sceneQueueEvent): - """ - Event notifying a setscene task completed - """ - -class runQueueTaskSkipped(runQueueEvent): - """ - Event notifying a task was skipped - """ - def __init__(self, task, stats, rq, reason): - runQueueEvent.__init__(self, task, stats, rq) - self.reason = reason - -class runQueuePipe(): - """ - Abstraction for a pipe between a worker thread and the server - """ - def __init__(self, pipein, pipeout, d, rq, rqexec): - self.input = pipein - if pipeout: - pipeout.close() - bb.utils.nonblockingfd(self.input) - self.queue = b"" - self.d = d - self.rq = rq - self.rqexec = rqexec - - def setrunqueueexec(self, rqexec): - self.rqexec = rqexec - - def read(self): - for workers, name in [(self.rq.worker, "Worker"), (self.rq.fakeworker, "Fakeroot")]: - for worker in workers.values(): - worker.process.poll() - if worker.process.returncode is not None and not self.rq.teardown: - bb.error("%s process (%s) exited unexpectedly (%s), shutting down..." % (name, worker.process.pid, str(worker.process.returncode))) - self.rq.finish_runqueue(True) - - start = len(self.queue) - try: - self.queue = self.queue + (self.input.read(102400) or b"") - except (OSError, IOError) as e: - if e.errno != errno.EAGAIN: - raise - end = len(self.queue) - found = True - while found and len(self.queue): - found = False - index = self.queue.find(b"</event>") - while index != -1 and self.queue.startswith(b"<event>"): - try: - event = pickle.loads(self.queue[7:index]) - except ValueError as e: - bb.msg.fatal("RunQueue", "failed load pickle '%s': '%s'" % (e, self.queue[7:index])) - bb.event.fire_from_worker(event, self.d) - found = True - self.queue = self.queue[index+8:] - index = self.queue.find(b"</event>") - index = self.queue.find(b"</exitcode>") - while index != -1 and self.queue.startswith(b"<exitcode>"): - try: - task, status = pickle.loads(self.queue[10:index]) - except ValueError as e: - bb.msg.fatal("RunQueue", "failed load pickle '%s': '%s'" % (e, self.queue[10:index])) - self.rqexec.runqueue_process_waitpid(task, status) - found = True - self.queue = self.queue[index+11:] - index = self.queue.find(b"</exitcode>") - return (end > start) - - def close(self): - while self.read(): - continue - if len(self.queue) > 0: - print("Warning, worker left partial message: %s" % self.queue) - self.input.close() - -def get_setscene_enforce_whitelist(d): - if d.getVar('BB_SETSCENE_ENFORCE') != '1': - return None - whitelist = (d.getVar("BB_SETSCENE_ENFORCE_WHITELIST") or "").split() - outlist = [] - for item in whitelist[:]: - if item.startswith('%:'): - for target in sys.argv[1:]: - if not target.startswith('-'): - outlist.append(target.split(':')[0] + ':' + item.split(':')[1]) - else: - outlist.append(item) - return outlist - -def check_setscene_enforce_whitelist(pn, taskname, whitelist): - import fnmatch - if whitelist is not None: - item = '%s:%s' % (pn, taskname) - for whitelist_item in whitelist: - if fnmatch.fnmatch(item, whitelist_item): - return True - return False - return True diff --git a/poky/bitbake/lib/bb/server/__init__.py b/poky/bitbake/lib/bb/server/__init__.py deleted file mode 100644 index 5a3fba9..0000000 --- a/poky/bitbake/lib/bb/server/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -# -# BitBake Base Server Code -# -# Copyright (C) 2006 - 2007 Michael 'Mickey' Lauer -# Copyright (C) 2006 - 2008 Richard Purdie -# Copyright (C) 2013 Alexandru Damian -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - - diff --git a/poky/bitbake/lib/bb/server/process.py b/poky/bitbake/lib/bb/server/process.py deleted file mode 100644 index 3d31355..0000000 --- a/poky/bitbake/lib/bb/server/process.py +++ /dev/null @@ -1,622 +0,0 @@ -# -# BitBake Process based server. -# -# Copyright (C) 2010 Bob Foerster <robert@erafx.com> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -""" - This module implements a multiprocessing.Process based server for bitbake. -""" - -import bb -import bb.event -import logging -import multiprocessing -import threading -import array -import os -import sys -import time -import select -import socket -import subprocess -import errno -import re -import datetime -import bb.server.xmlrpcserver -from bb import daemonize -from multiprocessing import queues - -logger = logging.getLogger('BitBake') - -class ProcessTimeout(SystemExit): - pass - -class ProcessServer(multiprocessing.Process): - profile_filename = "profile.log" - profile_processed_filename = "profile.log.processed" - - def __init__(self, lock, sock, sockname): - multiprocessing.Process.__init__(self) - self.command_channel = False - self.command_channel_reply = False - self.quit = False - self.heartbeat_seconds = 1 # default, BB_HEARTBEAT_EVENT will be checked once we have a datastore. - self.next_heartbeat = time.time() - - self.event_handle = None - self.haveui = False - self.lastui = False - self.xmlrpc = False - - self._idlefuns = {} - - self.bitbake_lock = lock - self.sock = sock - self.sockname = sockname - - def register_idle_function(self, function, data): - """Register a function to be called while the server is idle""" - assert hasattr(function, '__call__') - self._idlefuns[function] = data - - def run(self): - - if self.xmlrpcinterface[0]: - self.xmlrpc = bb.server.xmlrpcserver.BitBakeXMLRPCServer(self.xmlrpcinterface, self.cooker, self) - - print("Bitbake XMLRPC server address: %s, server port: %s" % (self.xmlrpc.host, self.xmlrpc.port)) - - heartbeat_event = self.cooker.data.getVar('BB_HEARTBEAT_EVENT') - if heartbeat_event: - try: - self.heartbeat_seconds = float(heartbeat_event) - except: - bb.warn('Ignoring invalid BB_HEARTBEAT_EVENT=%s, must be a float specifying seconds.' % heartbeat_event) - - self.timeout = self.server_timeout or self.cooker.data.getVar('BB_SERVER_TIMEOUT') - try: - if self.timeout: - self.timeout = float(self.timeout) - except: - bb.warn('Ignoring invalid BB_SERVER_TIMEOUT=%s, must be a float specifying seconds.' % self.timeout) - - - try: - self.bitbake_lock.seek(0) - self.bitbake_lock.truncate() - if self.xmlrpc: - self.bitbake_lock.write("%s %s:%s\n" % (os.getpid(), self.xmlrpc.host, self.xmlrpc.port)) - else: - self.bitbake_lock.write("%s\n" % (os.getpid())) - self.bitbake_lock.flush() - except Exception as e: - print("Error writing to lock file: %s" % str(e)) - pass - - if self.cooker.configuration.profile: - try: - import cProfile as profile - except: - import profile - prof = profile.Profile() - - ret = profile.Profile.runcall(prof, self.main) - - prof.dump_stats("profile.log") - bb.utils.process_profilelog("profile.log") - print("Raw profiling information saved to profile.log and processed statistics to profile.log.processed") - - else: - ret = self.main() - - return ret - - def main(self): - self.cooker.pre_serve() - - bb.utils.set_process_name("Cooker") - - ready = [] - - self.controllersock = False - fds = [self.sock] - if self.xmlrpc: - fds.append(self.xmlrpc) - print("Entering server connection loop") - - def disconnect_client(self, fds): - if not self.haveui: - return - print("Disconnecting Client") - fds.remove(self.controllersock) - fds.remove(self.command_channel) - bb.event.unregister_UIHhandler(self.event_handle, True) - self.command_channel_reply.writer.close() - self.event_writer.writer.close() - del self.event_writer - self.controllersock.close() - self.controllersock = False - self.haveui = False - self.lastui = time.time() - self.cooker.clientComplete() - if self.timeout is None: - print("No timeout, exiting.") - self.quit = True - - while not self.quit: - if self.sock in ready: - self.controllersock, address = self.sock.accept() - if self.haveui: - print("Dropping connection attempt as we have a UI %s" % (str(ready))) - self.controllersock.close() - else: - print("Accepting %s" % (str(ready))) - fds.append(self.controllersock) - if self.controllersock in ready: - try: - print("Connecting Client") - ui_fds = recvfds(self.controllersock, 3) - - # Where to write events to - writer = ConnectionWriter(ui_fds[0]) - self.event_handle = bb.event.register_UIHhandler(writer, True) - self.event_writer = writer - - # Where to read commands from - reader = ConnectionReader(ui_fds[1]) - fds.append(reader) - self.command_channel = reader - - # Where to send command return values to - writer = ConnectionWriter(ui_fds[2]) - self.command_channel_reply = writer - - self.haveui = True - - except (EOFError, OSError): - disconnect_client(self, fds) - - if not self.timeout == -1.0 and not self.haveui and self.lastui and self.timeout and \ - (self.lastui + self.timeout) < time.time(): - print("Server timeout, exiting.") - self.quit = True - - if self.command_channel in ready: - try: - command = self.command_channel.get() - except EOFError: - # Client connection shutting down - ready = [] - disconnect_client(self, fds) - continue - if command[0] == "terminateServer": - self.quit = True - continue - try: - print("Running command %s" % command) - self.command_channel_reply.send(self.cooker.command.runCommand(command)) - except Exception as e: - logger.exception('Exception in server main event loop running command %s (%s)' % (command, str(e))) - - if self.xmlrpc in ready: - self.xmlrpc.handle_requests() - - ready = self.idle_commands(.1, fds) - - print("Exiting") - # Remove the socket file so we don't get any more connections to avoid races - os.unlink(self.sockname) - self.sock.close() - - try: - self.cooker.shutdown(True) - except: - pass - - self.cooker.post_serve() - - # Finally release the lockfile but warn about other processes holding it open - lock = self.bitbake_lock - lockfile = lock.name - lock.close() - lock = None - - while not lock: - with bb.utils.timeout(3): - lock = bb.utils.lockfile(lockfile, shared=False, retry=False, block=True) - if not lock: - # Some systems may not have lsof available - procs = None - try: - procs = subprocess.check_output(["lsof", '-w', lockfile], stderr=subprocess.STDOUT) - except OSError as e: - if e.errno != errno.ENOENT: - raise - if procs is None: - # Fall back to fuser if lsof is unavailable - try: - procs = subprocess.check_output(["fuser", '-v', lockfile], stderr=subprocess.STDOUT) - except OSError as e: - if e.errno != errno.ENOENT: - raise - - msg = "Delaying shutdown due to active processes which appear to be holding bitbake.lock" - if procs: - msg += ":\n%s" % str(procs) - print(msg) - return - # We hold the lock so we can remove the file (hide stale pid data) - bb.utils.remove(lockfile) - bb.utils.unlockfile(lock) - - def idle_commands(self, delay, fds=None): - nextsleep = delay - if not fds: - fds = [] - - for function, data in list(self._idlefuns.items()): - try: - retval = function(self, data, False) - if retval is False: - del self._idlefuns[function] - nextsleep = None - elif retval is True: - nextsleep = None - elif isinstance(retval, float) and nextsleep: - if (retval < nextsleep): - nextsleep = retval - elif nextsleep is None: - continue - else: - fds = fds + retval - except SystemExit: - raise - except Exception as exc: - if not isinstance(exc, bb.BBHandledException): - logger.exception('Running idle function') - del self._idlefuns[function] - self.quit = True - - # Create new heartbeat event? - now = time.time() - if now >= self.next_heartbeat: - # We might have missed heartbeats. Just trigger once in - # that case and continue after the usual delay. - self.next_heartbeat += self.heartbeat_seconds - if self.next_heartbeat <= now: - self.next_heartbeat = now + self.heartbeat_seconds - heartbeat = bb.event.HeartbeatEvent(now) - bb.event.fire(heartbeat, self.cooker.data) - if nextsleep and now + nextsleep > self.next_heartbeat: - # Shorten timeout so that we we wake up in time for - # the heartbeat. - nextsleep = self.next_heartbeat - now - - if nextsleep is not None: - if self.xmlrpc: - nextsleep = self.xmlrpc.get_timeout(nextsleep) - try: - return select.select(fds,[],[],nextsleep)[0] - except InterruptedError: - # Ignore EINTR - return [] - else: - return select.select(fds,[],[],0)[0] - - -class ServerCommunicator(): - def __init__(self, connection, recv): - self.connection = connection - self.recv = recv - - def runCommand(self, command): - self.connection.send(command) - if not self.recv.poll(30): - raise ProcessTimeout("Timeout while waiting for a reply from the bitbake server") - return self.recv.get() - - def updateFeatureSet(self, featureset): - _, error = self.runCommand(["setFeatures", featureset]) - if error: - logger.error("Unable to set the cooker to the correct featureset: %s" % error) - raise BaseException(error) - - def getEventHandle(self): - handle, error = self.runCommand(["getUIHandlerNum"]) - if error: - logger.error("Unable to get UI Handler Number: %s" % error) - raise BaseException(error) - - return handle - - def terminateServer(self): - self.connection.send(['terminateServer']) - return - -class BitBakeProcessServerConnection(object): - def __init__(self, ui_channel, recv, eq, sock): - self.connection = ServerCommunicator(ui_channel, recv) - self.events = eq - # Save sock so it doesn't get gc'd for the life of our connection - self.socket_connection = sock - - def terminate(self): - self.socket_connection.close() - self.connection.connection.close() - self.connection.recv.close() - return - -class BitBakeServer(object): - start_log_format = '--- Starting bitbake server pid %s at %s ---' - start_log_datetime_format = '%Y-%m-%d %H:%M:%S.%f' - - def __init__(self, lock, sockname, configuration, featureset): - - self.configuration = configuration - self.featureset = featureset - self.sockname = sockname - self.bitbake_lock = lock - self.readypipe, self.readypipein = os.pipe() - - # Create server control socket - if os.path.exists(sockname): - os.unlink(sockname) - - self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) - # AF_UNIX has path length issues so chdir here to workaround - cwd = os.getcwd() - logfile = os.path.join(cwd, "bitbake-cookerdaemon.log") - - try: - os.chdir(os.path.dirname(sockname)) - self.sock.bind(os.path.basename(sockname)) - finally: - os.chdir(cwd) - self.sock.listen(1) - - os.set_inheritable(self.sock.fileno(), True) - startdatetime = datetime.datetime.now() - bb.daemonize.createDaemon(self._startServer, logfile) - self.sock.close() - self.bitbake_lock.close() - - ready = ConnectionReader(self.readypipe) - r = ready.poll(30) - if r: - r = ready.get() - if not r or r != "ready": - ready.close() - bb.error("Unable to start bitbake server") - if os.path.exists(logfile): - logstart_re = re.compile(self.start_log_format % ('([0-9]+)', '([0-9-]+ [0-9:.]+)')) - started = False - lines = [] - with open(logfile, "r") as f: - for line in f: - if started: - lines.append(line) - else: - res = logstart_re.match(line.rstrip()) - if res: - ldatetime = datetime.datetime.strptime(res.group(2), self.start_log_datetime_format) - if ldatetime >= startdatetime: - started = True - lines.append(line) - if lines: - if len(lines) > 10: - bb.error("Last 10 lines of server log for this session (%s):\n%s" % (logfile, "".join(lines[-10:]))) - else: - bb.error("Server log for this session (%s):\n%s" % (logfile, "".join(lines))) - raise SystemExit(1) - ready.close() - os.close(self.readypipein) - - def _startServer(self): - print(self.start_log_format % (os.getpid(), datetime.datetime.now().strftime(self.start_log_datetime_format))) - server = ProcessServer(self.bitbake_lock, self.sock, self.sockname) - self.configuration.setServerRegIdleCallback(server.register_idle_function) - writer = ConnectionWriter(self.readypipein) - try: - self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset) - writer.send("ready") - except: - writer.send("fail") - raise - finally: - os.close(self.readypipein) - server.cooker = self.cooker - server.server_timeout = self.configuration.server_timeout - server.xmlrpcinterface = self.configuration.xmlrpcinterface - print("Started bitbake server pid %d" % os.getpid()) - server.start() - -def connectProcessServer(sockname, featureset): - # Connect to socket - sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) - # AF_UNIX has path length issues so chdir here to workaround - cwd = os.getcwd() - - try: - os.chdir(os.path.dirname(sockname)) - sock.connect(os.path.basename(sockname)) - finally: - os.chdir(cwd) - - readfd = writefd = readfd1 = writefd1 = readfd2 = writefd2 = None - eq = command_chan_recv = command_chan = None - - try: - - # Send an fd for the remote to write events to - readfd, writefd = os.pipe() - eq = BBUIEventQueue(readfd) - # Send an fd for the remote to recieve commands from - readfd1, writefd1 = os.pipe() - command_chan = ConnectionWriter(writefd1) - # Send an fd for the remote to write commands results to - readfd2, writefd2 = os.pipe() - command_chan_recv = ConnectionReader(readfd2) - - sendfds(sock, [writefd, readfd1, writefd2]) - - server_connection = BitBakeProcessServerConnection(command_chan, command_chan_recv, eq, sock) - - # Close the ends of the pipes we won't use - for i in [writefd, readfd1, writefd2]: - os.close(i) - - server_connection.connection.updateFeatureSet(featureset) - - except (Exception, SystemExit) as e: - if command_chan_recv: - command_chan_recv.close() - if command_chan: - command_chan.close() - for i in [writefd, readfd1, writefd2]: - try: - os.close(i) - except OSError: - pass - sock.close() - raise - - return server_connection - -def sendfds(sock, fds): - '''Send an array of fds over an AF_UNIX socket.''' - fds = array.array('i', fds) - msg = bytes([len(fds) % 256]) - sock.sendmsg([msg], [(socket.SOL_SOCKET, socket.SCM_RIGHTS, fds)]) - -def recvfds(sock, size): - '''Receive an array of fds over an AF_UNIX socket.''' - a = array.array('i') - bytes_size = a.itemsize * size - msg, ancdata, flags, addr = sock.recvmsg(1, socket.CMSG_LEN(bytes_size)) - if not msg and not ancdata: - raise EOFError - try: - if len(ancdata) != 1: - raise RuntimeError('received %d items of ancdata' % - len(ancdata)) - cmsg_level, cmsg_type, cmsg_data = ancdata[0] - if (cmsg_level == socket.SOL_SOCKET and - cmsg_type == socket.SCM_RIGHTS): - if len(cmsg_data) % a.itemsize != 0: - raise ValueError - a.frombytes(cmsg_data) - assert len(a) % 256 == msg[0] - return list(a) - except (ValueError, IndexError): - pass - raise RuntimeError('Invalid data received') - -class BBUIEventQueue: - def __init__(self, readfd): - - self.eventQueue = [] - self.eventQueueLock = threading.Lock() - self.eventQueueNotify = threading.Event() - - self.reader = ConnectionReader(readfd) - - self.t = threading.Thread() - self.t.setDaemon(True) - self.t.run = self.startCallbackHandler - self.t.start() - - def getEvent(self): - self.eventQueueLock.acquire() - - if len(self.eventQueue) == 0: - self.eventQueueLock.release() - return None - - item = self.eventQueue.pop(0) - - if len(self.eventQueue) == 0: - self.eventQueueNotify.clear() - - self.eventQueueLock.release() - return item - - def waitEvent(self, delay): - self.eventQueueNotify.wait(delay) - return self.getEvent() - - def queue_event(self, event): - self.eventQueueLock.acquire() - self.eventQueue.append(event) - self.eventQueueNotify.set() - self.eventQueueLock.release() - - def send_event(self, event): - self.queue_event(pickle.loads(event)) - - def startCallbackHandler(self): - bb.utils.set_process_name("UIEventQueue") - while True: - try: - self.reader.wait() - event = self.reader.get() - self.queue_event(event) - except EOFError: - # Easiest way to exit is to close the file descriptor to cause an exit - break - self.reader.close() - -class ConnectionReader(object): - - def __init__(self, fd): - self.reader = multiprocessing.connection.Connection(fd, writable=False) - self.rlock = multiprocessing.Lock() - - def wait(self, timeout=None): - return multiprocessing.connection.wait([self.reader], timeout) - - def poll(self, timeout=None): - return self.reader.poll(timeout) - - def get(self): - with self.rlock: - res = self.reader.recv_bytes() - return multiprocessing.reduction.ForkingPickler.loads(res) - - def fileno(self): - return self.reader.fileno() - - def close(self): - return self.reader.close() - - -class ConnectionWriter(object): - - def __init__(self, fd): - self.writer = multiprocessing.connection.Connection(fd, readable=False) - self.wlock = multiprocessing.Lock() - # Why bb.event needs this I have no idea - self.event = self - - def send(self, obj): - obj = multiprocessing.reduction.ForkingPickler.dumps(obj) - with self.wlock: - self.writer.send_bytes(obj) - - def fileno(self): - return self.writer.fileno() - - def close(self): - return self.writer.close() diff --git a/poky/bitbake/lib/bb/server/xmlrpcclient.py b/poky/bitbake/lib/bb/server/xmlrpcclient.py deleted file mode 100644 index 4661a9e..0000000 --- a/poky/bitbake/lib/bb/server/xmlrpcclient.py +++ /dev/null @@ -1,154 +0,0 @@ -# -# BitBake XMLRPC Client Interface -# -# Copyright (C) 2006 - 2007 Michael 'Mickey' Lauer -# Copyright (C) 2006 - 2008 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os -import sys - -import socket -import http.client -import xmlrpc.client - -import bb -from bb.ui import uievent - -class BBTransport(xmlrpc.client.Transport): - def __init__(self, timeout): - self.timeout = timeout - self.connection_token = None - xmlrpc.client.Transport.__init__(self) - - # Modified from default to pass timeout to HTTPConnection - def make_connection(self, host): - #return an existing connection if possible. This allows - #HTTP/1.1 keep-alive. - if self._connection and host == self._connection[0]: - return self._connection[1] - - # create a HTTP connection object from a host descriptor - chost, self._extra_headers, x509 = self.get_host_info(host) - #store the host argument along with the connection object - self._connection = host, http.client.HTTPConnection(chost, timeout=self.timeout) - return self._connection[1] - - def set_connection_token(self, token): - self.connection_token = token - - def send_content(self, h, body): - if self.connection_token: - h.putheader("Bitbake-token", self.connection_token) - xmlrpc.client.Transport.send_content(self, h, body) - -def _create_server(host, port, timeout = 60): - t = BBTransport(timeout) - s = xmlrpc.client.ServerProxy("http://%s:%d/" % (host, port), transport=t, allow_none=True, use_builtin_types=True) - return s, t - -def check_connection(remote, timeout): - try: - host, port = remote.split(":") - port = int(port) - except Exception as e: - bb.warn("Failed to read remote definition (%s)" % str(e)) - raise e - - server, _transport = _create_server(host, port, timeout) - try: - ret, err = server.runCommand(['getVariable', 'TOPDIR']) - if err or not ret: - return False - except ConnectionError: - return False - return True - -class BitBakeXMLRPCServerConnection(object): - def __init__(self, host, port, clientinfo=("localhost", 0), observer_only = False, featureset = None): - self.connection, self.transport = _create_server(host, port) - self.clientinfo = clientinfo - self.observer_only = observer_only - if featureset: - self.featureset = featureset - else: - self.featureset = [] - - self.events = uievent.BBUIEventQueue(self.connection, self.clientinfo) - - _, error = self.connection.runCommand(["setFeatures", self.featureset]) - if error: - # disconnect the client, we can't make the setFeature work - self.connection.removeClient() - # no need to log it here, the error shall be sent to the client - raise BaseException(error) - - def connect(self, token = None): - if token is None: - if self.observer_only: - token = "observer" - else: - token = self.connection.addClient() - - if token is None: - return None - - self.transport.set_connection_token(token) - return self - - def removeClient(self): - if not self.observer_only: - self.connection.removeClient() - - def terminate(self): - # Don't wait for server indefinitely - socket.setdefaulttimeout(2) - try: - self.events.system_quit() - except: - pass - try: - self.connection.removeClient() - except: - pass - -def connectXMLRPC(remote, featureset, observer_only = False, token = None): - # The format of "remote" must be "server:port" - try: - [host, port] = remote.split(":") - port = int(port) - except Exception as e: - bb.warn("Failed to parse remote definition %s (%s)" % (remote, str(e))) - raise e - - # We need our IP for the server connection. We get the IP - # by trying to connect with the server - try: - s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) - s.connect((host, port)) - ip = s.getsockname()[0] - s.close() - except Exception as e: - bb.warn("Could not create socket for %s:%s (%s)" % (host, port, str(e))) - raise e - try: - connection = BitBakeXMLRPCServerConnection(host, port, (ip, 0), observer_only, featureset) - return connection.connect(token) - except Exception as e: - bb.warn("Could not connect to server at %s:%s (%s)" % (host, port, str(e))) - raise e - - - diff --git a/poky/bitbake/lib/bb/server/xmlrpcserver.py b/poky/bitbake/lib/bb/server/xmlrpcserver.py deleted file mode 100644 index 875b128..0000000 --- a/poky/bitbake/lib/bb/server/xmlrpcserver.py +++ /dev/null @@ -1,158 +0,0 @@ -# -# BitBake XMLRPC Server Interface -# -# Copyright (C) 2006 - 2007 Michael 'Mickey' Lauer -# Copyright (C) 2006 - 2008 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import os -import sys - -import hashlib -import time -import inspect -from xmlrpc.server import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler - -import bb - -# This request handler checks if the request has a "Bitbake-token" header -# field (this comes from the client side) and compares it with its internal -# "Bitbake-token" field (this comes from the server). If the two are not -# equal, it is assumed that a client is trying to connect to the server -# while another client is connected to the server. In this case, a 503 error -# ("service unavailable") is returned to the client. -class BitBakeXMLRPCRequestHandler(SimpleXMLRPCRequestHandler): - def __init__(self, request, client_address, server): - self.server = server - SimpleXMLRPCRequestHandler.__init__(self, request, client_address, server) - - def do_POST(self): - try: - remote_token = self.headers["Bitbake-token"] - except: - remote_token = None - if 0 and remote_token != self.server.connection_token and remote_token != "observer": - self.report_503() - else: - if remote_token == "observer": - self.server.readonly = True - else: - self.server.readonly = False - SimpleXMLRPCRequestHandler.do_POST(self) - - def report_503(self): - self.send_response(503) - response = 'No more client allowed' - self.send_header("Content-type", "text/plain") - self.send_header("Content-length", str(len(response))) - self.end_headers() - self.wfile.write(bytes(response, 'utf-8')) - -class BitBakeXMLRPCServer(SimpleXMLRPCServer): - # remove this when you're done with debugging - # allow_reuse_address = True - - def __init__(self, interface, cooker, parent): - # Use auto port configuration - if (interface[1] == -1): - interface = (interface[0], 0) - SimpleXMLRPCServer.__init__(self, interface, - requestHandler=BitBakeXMLRPCRequestHandler, - logRequests=False, allow_none=True) - self.host, self.port = self.socket.getsockname() - self.interface = interface - - self.connection_token = None - self.commands = BitBakeXMLRPCServerCommands(self) - self.register_functions(self.commands, "") - - self.cooker = cooker - self.parent = parent - - - def register_functions(self, context, prefix): - """ - Convenience method for registering all functions in the scope - of this class that start with a common prefix - """ - methodlist = inspect.getmembers(context, inspect.ismethod) - for name, method in methodlist: - if name.startswith(prefix): - self.register_function(method, name[len(prefix):]) - - def get_timeout(self, delay): - socktimeout = self.socket.gettimeout() or delay - return min(socktimeout, delay) - - def handle_requests(self): - self._handle_request_noblock() - -class BitBakeXMLRPCServerCommands(): - - def __init__(self, server): - self.server = server - self.has_client = False - - def registerEventHandler(self, host, port): - """ - Register a remote UI Event Handler - """ - s, t = bb.server.xmlrpcclient._create_server(host, port) - - # we don't allow connections if the cooker is running - if (self.server.cooker.state in [bb.cooker.state.parsing, bb.cooker.state.running]): - return None, "Cooker is busy: %s" % bb.cooker.state.get_name(self.server.cooker.state) - - self.event_handle = bb.event.register_UIHhandler(s, True) - return self.event_handle, 'OK' - - def unregisterEventHandler(self, handlerNum): - """ - Unregister a remote UI Event Handler - """ - ret = bb.event.unregister_UIHhandler(handlerNum, True) - self.event_handle = None - return ret - - def runCommand(self, command): - """ - Run a cooker command on the server - """ - return self.server.cooker.command.runCommand(command, self.server.readonly) - - def getEventHandle(self): - return self.event_handle - - def terminateServer(self): - """ - Trigger the server to quit - """ - self.server.parent.quit = True - print("XMLRPC Server triggering exit") - return - - def addClient(self): - if self.server.parent.haveui: - return None - token = hashlib.md5(str(time.time()).encode("utf-8")).hexdigest() - self.server.connection_token = token - self.server.parent.haveui = True - return token - - def removeClient(self): - if self.server.parent.haveui: - self.server.connection_token = None - self.server.parent.haveui = False - diff --git a/poky/bitbake/lib/bb/shell.py b/poky/bitbake/lib/bb/shell.py deleted file mode 100644 index 1dd8d54..0000000 --- a/poky/bitbake/lib/bb/shell.py +++ /dev/null @@ -1,820 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -########################################################################## -# -# Copyright (C) 2005-2006 Michael 'Mickey' Lauer <mickey@Vanille.de> -# Copyright (C) 2005-2006 Vanille Media -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -########################################################################## -# -# Thanks to: -# * Holger Freyther <zecke@handhelds.org> -# * Justin Patrin <papercrane@reversefold.com> -# -########################################################################## - -""" -BitBake Shell - -IDEAS: - * list defined tasks per package - * list classes - * toggle force - * command to reparse just one (or more) bbfile(s) - * automatic check if reparsing is necessary (inotify?) - * frontend for bb file manipulation - * more shell-like features: - - output control, i.e. pipe output into grep, sort, etc. - - job control, i.e. bring running commands into background and foreground - * start parsing in background right after startup - * ncurses interface - -PROBLEMS: - * force doesn't always work - * readline completion for commands with more than one parameters - -""" - -########################################################################## -# Import and setup global variables -########################################################################## - -from __future__ import print_function -from functools import reduce -try: - set -except NameError: - from sets import Set as set -import sys, os, readline, socket, httplib, urllib, commands, popen2, shlex, Queue, fnmatch -from bb import data, parse, build, cache, taskdata, runqueue, providers as Providers - -__version__ = "0.5.3.1" -__credits__ = """BitBake Shell Version %s (C) 2005 Michael 'Mickey' Lauer <mickey@Vanille.de> -Type 'help' for more information, press CTRL-D to exit.""" % __version__ - -cmds = {} -leave_mainloop = False -last_exception = None -cooker = None -parsed = False -debug = os.environ.get( "BBSHELL_DEBUG", "" ) - -########################################################################## -# Class BitBakeShellCommands -########################################################################## - -class BitBakeShellCommands: - """This class contains the valid commands for the shell""" - - def __init__( self, shell ): - """Register all the commands""" - self._shell = shell - for attr in BitBakeShellCommands.__dict__: - if not attr.startswith( "_" ): - if attr.endswith( "_" ): - command = attr[:-1].lower() - else: - command = attr[:].lower() - method = getattr( BitBakeShellCommands, attr ) - debugOut( "registering command '%s'" % command ) - # scan number of arguments - usage = getattr( method, "usage", "" ) - if usage != "<...>": - numArgs = len( usage.split() ) - else: - numArgs = -1 - shell.registerCommand( command, method, numArgs, "%s %s" % ( command, usage ), method.__doc__ ) - - def _checkParsed( self ): - if not parsed: - print("SHELL: This command needs to parse bbfiles...") - self.parse( None ) - - def _findProvider( self, item ): - self._checkParsed() - # Need to use taskData for this information - preferred = data.getVar( "PREFERRED_PROVIDER_%s" % item, cooker.configuration.data, 1 ) - if not preferred: preferred = item - try: - lv, lf, pv, pf = Providers.findBestProvider(preferred, cooker.configuration.data, cooker.status) - except KeyError: - if item in cooker.status.providers: - pf = cooker.status.providers[item][0] - else: - pf = None - return pf - - def alias( self, params ): - """Register a new name for a command""" - new, old = params - if not old in cmds: - print("ERROR: Command '%s' not known" % old) - else: - cmds[new] = cmds[old] - print("OK") - alias.usage = "<alias> <command>" - - def buffer( self, params ): - """Dump specified output buffer""" - index = params[0] - print(self._shell.myout.buffer( int( index ) )) - buffer.usage = "<index>" - - def buffers( self, params ): - """Show the available output buffers""" - commands = self._shell.myout.bufferedCommands() - if not commands: - print("SHELL: No buffered commands available yet. Start doing something.") - else: - print("="*35, "Available Output Buffers", "="*27) - for index, cmd in enumerate( commands ): - print("| %s %s" % ( str( index ).ljust( 3 ), cmd )) - print("="*88) - - def build( self, params, cmd = "build" ): - """Build a providee""" - global last_exception - globexpr = params[0] - self._checkParsed() - names = globfilter( cooker.status.pkg_pn, globexpr ) - if len( names ) == 0: names = [ globexpr ] - print("SHELL: Building %s" % ' '.join( names )) - - td = taskdata.TaskData(cooker.configuration.abort) - localdata = data.createCopy(cooker.configuration.data) - data.update_data(localdata) - data.expandKeys(localdata) - - try: - tasks = [] - for name in names: - td.add_provider(localdata, cooker.status, name) - providers = td.get_provider(name) - - if len(providers) == 0: - raise Providers.NoProvider - - tasks.append([name, "do_%s" % cmd]) - - td.add_unresolved(localdata, cooker.status) - - rq = runqueue.RunQueue(cooker, localdata, cooker.status, td, tasks) - rq.prepare_runqueue() - rq.execute_runqueue() - - except Providers.NoProvider: - print("ERROR: No Provider") - last_exception = Providers.NoProvider - - except runqueue.TaskFailure as fnids: - last_exception = runqueue.TaskFailure - - except build.FuncFailed as e: - print("ERROR: Couldn't build '%s'" % names) - last_exception = e - - - build.usage = "<providee>" - - def clean( self, params ): - """Clean a providee""" - self.build( params, "clean" ) - clean.usage = "<providee>" - - def compile( self, params ): - """Execute 'compile' on a providee""" - self.build( params, "compile" ) - compile.usage = "<providee>" - - def configure( self, params ): - """Execute 'configure' on a providee""" - self.build( params, "configure" ) - configure.usage = "<providee>" - - def install( self, params ): - """Execute 'install' on a providee""" - self.build( params, "install" ) - install.usage = "<providee>" - - def edit( self, params ): - """Call $EDITOR on a providee""" - name = params[0] - bbfile = self._findProvider( name ) - if bbfile is not None: - os.system( "%s %s" % ( os.environ.get( "EDITOR", "vi" ), bbfile ) ) - else: - print("ERROR: Nothing provides '%s'" % name) - edit.usage = "<providee>" - - def environment( self, params ): - """Dump out the outer BitBake environment""" - cooker.showEnvironment() - - def exit_( self, params ): - """Leave the BitBake Shell""" - debugOut( "setting leave_mainloop to true" ) - global leave_mainloop - leave_mainloop = True - - def fetch( self, params ): - """Fetch a providee""" - self.build( params, "fetch" ) - fetch.usage = "<providee>" - - def fileBuild( self, params, cmd = "build" ): - """Parse and build a .bb file""" - global last_exception - name = params[0] - bf = completeFilePath( name ) - print("SHELL: Calling '%s' on '%s'" % ( cmd, bf )) - - try: - cooker.buildFile(bf, cmd) - except parse.ParseError: - print("ERROR: Unable to open or parse '%s'" % bf) - except build.FuncFailed as e: - print("ERROR: Couldn't build '%s'" % name) - last_exception = e - - fileBuild.usage = "<bbfile>" - - def fileClean( self, params ): - """Clean a .bb file""" - self.fileBuild( params, "clean" ) - fileClean.usage = "<bbfile>" - - def fileEdit( self, params ): - """Call $EDITOR on a .bb file""" - name = params[0] - os.system( "%s %s" % ( os.environ.get( "EDITOR", "vi" ), completeFilePath( name ) ) ) - fileEdit.usage = "<bbfile>" - - def fileRebuild( self, params ): - """Rebuild (clean & build) a .bb file""" - self.fileBuild( params, "rebuild" ) - fileRebuild.usage = "<bbfile>" - - def fileReparse( self, params ): - """(re)Parse a bb file""" - bbfile = params[0] - print("SHELL: Parsing '%s'" % bbfile) - parse.update_mtime( bbfile ) - cooker.parser.reparse(bbfile) - if False: #fromCache: - print("SHELL: File has not been updated, not reparsing") - else: - print("SHELL: Parsed") - fileReparse.usage = "<bbfile>" - - def abort( self, params ): - """Toggle abort task execution flag (see bitbake -k)""" - cooker.configuration.abort = not cooker.configuration.abort - print("SHELL: Abort Flag is now '%s'" % repr( cooker.configuration.abort )) - - def force( self, params ): - """Toggle force task execution flag (see bitbake -f)""" - cooker.configuration.force = not cooker.configuration.force - print("SHELL: Force Flag is now '%s'" % repr( cooker.configuration.force )) - - def help( self, params ): - """Show a comprehensive list of commands and their purpose""" - print("="*30, "Available Commands", "="*30) - for cmd in sorted(cmds): - function, numparams, usage, helptext = cmds[cmd] - print("| %s | %s" % (usage.ljust(30), helptext)) - print("="*78) - - def lastError( self, params ): - """Show the reason or log that was produced by the last BitBake event exception""" - if last_exception is None: - print("SHELL: No Errors yet (Phew)...") - else: - reason, event = last_exception.args - print("SHELL: Reason for the last error: '%s'" % reason) - if ':' in reason: - msg, filename = reason.split( ':' ) - filename = filename.strip() - print("SHELL: Dumping log file for last error:") - try: - print(open( filename ).read()) - except IOError: - print("ERROR: Couldn't open '%s'" % filename) - - def match( self, params ): - """Dump all files or providers matching a glob expression""" - what, globexpr = params - if what == "files": - self._checkParsed() - for key in globfilter( cooker.status.pkg_fn, globexpr ): print(key) - elif what == "providers": - self._checkParsed() - for key in globfilter( cooker.status.pkg_pn, globexpr ): print(key) - else: - print("Usage: match %s" % self.print_.usage) - match.usage = "<files|providers> <glob>" - - def new( self, params ): - """Create a new .bb file and open the editor""" - dirname, filename = params - packages = '/'.join( data.getVar( "BBFILES", cooker.configuration.data, 1 ).split('/')[:-2] ) - fulldirname = "%s/%s" % ( packages, dirname ) - - if not os.path.exists( fulldirname ): - print("SHELL: Creating '%s'" % fulldirname) - os.mkdir( fulldirname ) - if os.path.exists( fulldirname ) and os.path.isdir( fulldirname ): - if os.path.exists( "%s/%s" % ( fulldirname, filename ) ): - print("SHELL: ERROR: %s/%s already exists" % ( fulldirname, filename )) - return False - print("SHELL: Creating '%s/%s'" % ( fulldirname, filename )) - newpackage = open( "%s/%s" % ( fulldirname, filename ), "w" ) - print("""DESCRIPTION = "" -SECTION = "" -AUTHOR = "" -HOMEPAGE = "" -MAINTAINER = "" -LICENSE = "GPL" -PR = "r0" - -SRC_URI = "" - -#inherit base - -#do_configure() { -# -#} - -#do_compile() { -# -#} - -#do_stage() { -# -#} - -#do_install() { -# -#} -""", file=newpackage) - newpackage.close() - os.system( "%s %s/%s" % ( os.environ.get( "EDITOR" ), fulldirname, filename ) ) - new.usage = "<directory> <filename>" - - def package( self, params ): - """Execute 'package' on a providee""" - self.build( params, "package" ) - package.usage = "<providee>" - - def pasteBin( self, params ): - """Send a command + output buffer to the pastebin at http://rafb.net/paste""" - index = params[0] - contents = self._shell.myout.buffer( int( index ) ) - sendToPastebin( "output of " + params[0], contents ) - pasteBin.usage = "<index>" - - def pasteLog( self, params ): - """Send the last event exception error log (if there is one) to http://rafb.net/paste""" - if last_exception is None: - print("SHELL: No Errors yet (Phew)...") - else: - reason, event = last_exception.args - print("SHELL: Reason for the last error: '%s'" % reason) - if ':' in reason: - msg, filename = reason.split( ':' ) - filename = filename.strip() - print("SHELL: Pasting log file to pastebin...") - - file = open( filename ).read() - sendToPastebin( "contents of " + filename, file ) - - def patch( self, params ): - """Execute 'patch' command on a providee""" - self.build( params, "patch" ) - patch.usage = "<providee>" - - def parse( self, params ): - """(Re-)parse .bb files and calculate the dependency graph""" - cooker.status = cache.CacheData(cooker.caches_array) - ignore = data.getVar("ASSUME_PROVIDED", cooker.configuration.data, 1) or "" - cooker.status.ignored_dependencies = set( ignore.split() ) - cooker.handleCollections( data.getVar("BBFILE_COLLECTIONS", cooker.configuration.data, 1) ) - - (filelist, masked) = cooker.collect_bbfiles() - cooker.parse_bbfiles(filelist, masked, cooker.myProgressCallback) - cooker.buildDepgraph() - global parsed - parsed = True - print() - - def reparse( self, params ): - """(re)Parse a providee's bb file""" - bbfile = self._findProvider( params[0] ) - if bbfile is not None: - print("SHELL: Found bbfile '%s' for '%s'" % ( bbfile, params[0] )) - self.fileReparse( [ bbfile ] ) - else: - print("ERROR: Nothing provides '%s'" % params[0]) - reparse.usage = "<providee>" - - def getvar( self, params ): - """Dump the contents of an outer BitBake environment variable""" - var = params[0] - value = data.getVar( var, cooker.configuration.data, 1 ) - print(value) - getvar.usage = "<variable>" - - def peek( self, params ): - """Dump contents of variable defined in providee's metadata""" - name, var = params - bbfile = self._findProvider( name ) - if bbfile is not None: - the_data = cache.Cache.loadDataFull(bbfile, cooker.configuration.data) - value = the_data.getVar( var, 1 ) - print(value) - else: - print("ERROR: Nothing provides '%s'" % name) - peek.usage = "<providee> <variable>" - - def poke( self, params ): - """Set contents of variable defined in providee's metadata""" - name, var, value = params - bbfile = self._findProvider( name ) - if bbfile is not None: - print("ERROR: Sorry, this functionality is currently broken") - #d = cooker.pkgdata[bbfile] - #data.setVar( var, value, d ) - - # mark the change semi persistant - #cooker.pkgdata.setDirty(bbfile, d) - #print "OK" - else: - print("ERROR: Nothing provides '%s'" % name) - poke.usage = "<providee> <variable> <value>" - - def print_( self, params ): - """Dump all files or providers""" - what = params[0] - if what == "files": - self._checkParsed() - for key in cooker.status.pkg_fn: print(key) - elif what == "providers": - self._checkParsed() - for key in cooker.status.providers: print(key) - else: - print("Usage: print %s" % self.print_.usage) - print_.usage = "<files|providers>" - - def python( self, params ): - """Enter the expert mode - an interactive BitBake Python Interpreter""" - sys.ps1 = "EXPERT BB>>> " - sys.ps2 = "EXPERT BB... " - import code - interpreter = code.InteractiveConsole( dict( globals() ) ) - interpreter.interact( "SHELL: Expert Mode - BitBake Python %s\nType 'help' for more information, press CTRL-D to switch back to BBSHELL." % sys.version ) - - def showdata( self, params ): - """Execute 'showdata' on a providee""" - cooker.showEnvironment(None, params) - showdata.usage = "<providee>" - - def setVar( self, params ): - """Set an outer BitBake environment variable""" - var, value = params - data.setVar( var, value, cooker.configuration.data ) - print("OK") - setVar.usage = "<variable> <value>" - - def rebuild( self, params ): - """Clean and rebuild a .bb file or a providee""" - self.build( params, "clean" ) - self.build( params, "build" ) - rebuild.usage = "<providee>" - - def shell( self, params ): - """Execute a shell command and dump the output""" - if params != "": - print(commands.getoutput( " ".join( params ) )) - shell.usage = "<...>" - - def stage( self, params ): - """Execute 'stage' on a providee""" - self.build( params, "populate_staging" ) - stage.usage = "<providee>" - - def status( self, params ): - """<just for testing>""" - print("-" * 78) - print("building list = '%s'" % cooker.building_list) - print("build path = '%s'" % cooker.build_path) - print("consider_msgs_cache = '%s'" % cooker.consider_msgs_cache) - print("build stats = '%s'" % cooker.stats) - if last_exception is not None: print("last_exception = '%s'" % repr( last_exception.args )) - print("memory output contents = '%s'" % self._shell.myout._buffer) - - def test( self, params ): - """<just for testing>""" - print("testCommand called with '%s'" % params) - - def unpack( self, params ): - """Execute 'unpack' on a providee""" - self.build( params, "unpack" ) - unpack.usage = "<providee>" - - def which( self, params ): - """Computes the providers for a given providee""" - # Need to use taskData for this information - item = params[0] - - self._checkParsed() - - preferred = data.getVar( "PREFERRED_PROVIDER_%s" % item, cooker.configuration.data, 1 ) - if not preferred: preferred = item - - try: - lv, lf, pv, pf = Providers.findBestProvider(preferred, cooker.configuration.data, cooker.status) - except KeyError: - lv, lf, pv, pf = (None,)*4 - - try: - providers = cooker.status.providers[item] - except KeyError: - print("SHELL: ERROR: Nothing provides", preferred) - else: - for provider in providers: - if provider == pf: provider = " (***) %s" % provider - else: provider = " %s" % provider - print(provider) - which.usage = "<providee>" - -########################################################################## -# Common helper functions -########################################################################## - -def completeFilePath( bbfile ): - """Get the complete bbfile path""" - if not cooker.status: return bbfile - if not cooker.status.pkg_fn: return bbfile - for key in cooker.status.pkg_fn: - if key.endswith( bbfile ): - return key - return bbfile - -def sendToPastebin( desc, content ): - """Send content to http://oe.pastebin.com""" - mydata = {} - mydata["lang"] = "Plain Text" - mydata["desc"] = desc - mydata["cvt_tabs"] = "No" - mydata["nick"] = "%s@%s" % ( os.environ.get( "USER", "unknown" ), socket.gethostname() or "unknown" ) - mydata["text"] = content - params = urllib.urlencode( mydata ) - headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"} - - host = "rafb.net" - conn = httplib.HTTPConnection( "%s:80" % host ) - conn.request("POST", "/paste/paste.php", params, headers ) - - response = conn.getresponse() - conn.close() - - if response.status == 302: - location = response.getheader( "location" ) or "unknown" - print("SHELL: Pasted to http://%s%s" % ( host, location )) - else: - print("ERROR: %s %s" % ( response.status, response.reason )) - -def completer( text, state ): - """Return a possible readline completion""" - debugOut( "completer called with text='%s', state='%d'" % ( text, state ) ) - - if state == 0: - line = readline.get_line_buffer() - if " " in line: - line = line.split() - # we are in second (or more) argument - if line[0] in cmds and hasattr( cmds[line[0]][0], "usage" ): # known command and usage - u = getattr( cmds[line[0]][0], "usage" ).split()[0] - if u == "<variable>": - allmatches = cooker.configuration.data.keys() - elif u == "<bbfile>": - if cooker.status.pkg_fn is None: allmatches = [ "(No Matches Available. Parsed yet?)" ] - else: allmatches = [ x.split("/")[-1] for x in cooker.status.pkg_fn ] - elif u == "<providee>": - if cooker.status.pkg_fn is None: allmatches = [ "(No Matches Available. Parsed yet?)" ] - else: allmatches = cooker.status.providers.iterkeys() - else: allmatches = [ "(No tab completion available for this command)" ] - else: allmatches = [ "(No tab completion available for this command)" ] - else: - # we are in first argument - allmatches = cmds.iterkeys() - - completer.matches = [ x for x in allmatches if x[:len(text)] == text ] - #print "completer.matches = '%s'" % completer.matches - if len( completer.matches ) > state: - return completer.matches[state] - else: - return None - -def debugOut( text ): - if debug: - sys.stderr.write( "( %s )\n" % text ) - -def columnize( alist, width = 80 ): - """ - A word-wrap function that preserves existing line breaks - and most spaces in the text. Expects that existing line - breaks are posix newlines (\n). - """ - return reduce(lambda line, word, width=width: '%s%s%s' % - (line, - ' \n'[(len(line[line.rfind('\n')+1:]) - + len(word.split('\n', 1)[0] - ) >= width)], - word), - alist - ) - -def globfilter( names, pattern ): - return fnmatch.filter( names, pattern ) - -########################################################################## -# Class MemoryOutput -########################################################################## - -class MemoryOutput: - """File-like output class buffering the output of the last 10 commands""" - def __init__( self, delegate ): - self.delegate = delegate - self._buffer = [] - self.text = [] - self._command = None - - def startCommand( self, command ): - self._command = command - self.text = [] - def endCommand( self ): - if self._command is not None: - if len( self._buffer ) == 10: del self._buffer[0] - self._buffer.append( ( self._command, self.text ) ) - def removeLast( self ): - if self._buffer: - del self._buffer[ len( self._buffer ) - 1 ] - self.text = [] - self._command = None - def lastBuffer( self ): - if self._buffer: - return self._buffer[ len( self._buffer ) -1 ][1] - def bufferedCommands( self ): - return [ cmd for cmd, output in self._buffer ] - def buffer( self, i ): - if i < len( self._buffer ): - return "BB>> %s\n%s" % ( self._buffer[i][0], "".join( self._buffer[i][1] ) ) - else: return "ERROR: Invalid buffer number. Buffer needs to be in (0, %d)" % ( len( self._buffer ) - 1 ) - def write( self, text ): - if self._command is not None and text != "BB>> ": self.text.append( text ) - if self.delegate is not None: self.delegate.write( text ) - def flush( self ): - return self.delegate.flush() - def fileno( self ): - return self.delegate.fileno() - def isatty( self ): - return self.delegate.isatty() - -########################################################################## -# Class BitBakeShell -########################################################################## - -class BitBakeShell: - - def __init__( self ): - """Register commands and set up readline""" - self.commandQ = Queue.Queue() - self.commands = BitBakeShellCommands( self ) - self.myout = MemoryOutput( sys.stdout ) - self.historyfilename = os.path.expanduser( "~/.bbsh_history" ) - self.startupfilename = os.path.expanduser( "~/.bbsh_startup" ) - - readline.set_completer( completer ) - readline.set_completer_delims( " " ) - readline.parse_and_bind("tab: complete") - - try: - readline.read_history_file( self.historyfilename ) - except IOError: - pass # It doesn't exist yet. - - print(__credits__) - - def cleanup( self ): - """Write readline history and clean up resources""" - debugOut( "writing command history" ) - try: - readline.write_history_file( self.historyfilename ) - except: - print("SHELL: Unable to save command history") - - def registerCommand( self, command, function, numparams = 0, usage = "", helptext = "" ): - """Register a command""" - if usage == "": usage = command - if helptext == "": helptext = function.__doc__ or "<not yet documented>" - cmds[command] = ( function, numparams, usage, helptext ) - - def processCommand( self, command, params ): - """Process a command. Check number of params and print a usage string, if appropriate""" - debugOut( "processing command '%s'..." % command ) - try: - function, numparams, usage, helptext = cmds[command] - except KeyError: - print("SHELL: ERROR: '%s' command is not a valid command." % command) - self.myout.removeLast() - else: - if (numparams != -1) and (not len( params ) == numparams): - print("Usage: '%s'" % usage) - return - - result = function( self.commands, params ) - debugOut( "result was '%s'" % result ) - - def processStartupFile( self ): - """Read and execute all commands found in $HOME/.bbsh_startup""" - if os.path.exists( self.startupfilename ): - startupfile = open( self.startupfilename, "r" ) - for cmdline in startupfile: - debugOut( "processing startup line '%s'" % cmdline ) - if not cmdline: - continue - if "|" in cmdline: - print("ERROR: '|' in startup file is not allowed. Ignoring line") - continue - self.commandQ.put( cmdline.strip() ) - - def main( self ): - """The main command loop""" - while not leave_mainloop: - try: - if self.commandQ.empty(): - sys.stdout = self.myout.delegate - cmdline = raw_input( "BB>> " ) - sys.stdout = self.myout - else: - cmdline = self.commandQ.get() - if cmdline: - allCommands = cmdline.split( ';' ) - for command in allCommands: - pipecmd = None - # - # special case for expert mode - if command == 'python': - sys.stdout = self.myout.delegate - self.processCommand( command, "" ) - sys.stdout = self.myout - else: - self.myout.startCommand( command ) - if '|' in command: # disable output - command, pipecmd = command.split( '|' ) - delegate = self.myout.delegate - self.myout.delegate = None - tokens = shlex.split( command, True ) - self.processCommand( tokens[0], tokens[1:] or "" ) - self.myout.endCommand() - if pipecmd is not None: # restore output - self.myout.delegate = delegate - - pipe = popen2.Popen4( pipecmd ) - pipe.tochild.write( "\n".join( self.myout.lastBuffer() ) ) - pipe.tochild.close() - sys.stdout.write( pipe.fromchild.read() ) - # - except EOFError: - print() - return - except KeyboardInterrupt: - print() - -########################################################################## -# Start function - called from the BitBake command line utility -########################################################################## - -def start( aCooker ): - global cooker - cooker = aCooker - bbshell = BitBakeShell() - bbshell.processStartupFile() - bbshell.main() - bbshell.cleanup() - -if __name__ == "__main__": - print("SHELL: Sorry, this program should only be called by BitBake.") diff --git a/poky/bitbake/lib/bb/siggen.py b/poky/bitbake/lib/bb/siggen.py deleted file mode 100644 index 5ef82d7..0000000 --- a/poky/bitbake/lib/bb/siggen.py +++ /dev/null @@ -1,729 +0,0 @@ -import hashlib -import logging -import os -import re -import tempfile -import pickle -import bb.data -import difflib -import simplediff -from bb.checksum import FileChecksumCache - -logger = logging.getLogger('BitBake.SigGen') - -def init(d): - siggens = [obj for obj in globals().values() - if type(obj) is type and issubclass(obj, SignatureGenerator)] - - desired = d.getVar("BB_SIGNATURE_HANDLER") or "noop" - for sg in siggens: - if desired == sg.name: - return sg(d) - break - else: - logger.error("Invalid signature generator '%s', using default 'noop'\n" - "Available generators: %s", desired, - ', '.join(obj.name for obj in siggens)) - return SignatureGenerator(d) - -class SignatureGenerator(object): - """ - """ - name = "noop" - - def __init__(self, data): - self.basehash = {} - self.taskhash = {} - self.runtaskdeps = {} - self.file_checksum_values = {} - self.taints = {} - - def finalise(self, fn, d, varient): - return - - def get_taskhash(self, fn, task, deps, dataCache): - return "0" - - def writeout_file_checksum_cache(self): - """Write/update the file checksum cache onto disk""" - return - - def stampfile(self, stampbase, file_name, taskname, extrainfo): - return ("%s.%s.%s" % (stampbase, taskname, extrainfo)).rstrip('.') - - def stampcleanmask(self, stampbase, file_name, taskname, extrainfo): - return ("%s.%s.%s" % (stampbase, taskname, extrainfo)).rstrip('.') - - def dump_sigtask(self, fn, task, stampbase, runtime): - return - - def invalidate_task(self, task, d, fn): - bb.build.del_stamp(task, d, fn) - - def dump_sigs(self, dataCache, options): - return - - def get_taskdata(self): - return (self.runtaskdeps, self.taskhash, self.file_checksum_values, self.taints, self.basehash) - - def set_taskdata(self, data): - self.runtaskdeps, self.taskhash, self.file_checksum_values, self.taints, self.basehash = data - - def reset(self, data): - self.__init__(data) - - -class SignatureGeneratorBasic(SignatureGenerator): - """ - """ - name = "basic" - - def __init__(self, data): - self.basehash = {} - self.taskhash = {} - self.taskdeps = {} - self.runtaskdeps = {} - self.file_checksum_values = {} - self.taints = {} - self.gendeps = {} - self.lookupcache = {} - self.pkgnameextract = re.compile("(?P<fn>.*)\..*") - self.basewhitelist = set((data.getVar("BB_HASHBASE_WHITELIST") or "").split()) - self.taskwhitelist = None - self.init_rundepcheck(data) - checksum_cache_file = data.getVar("BB_HASH_CHECKSUM_CACHE_FILE") - if checksum_cache_file: - self.checksum_cache = FileChecksumCache() - self.checksum_cache.init_cache(data, checksum_cache_file) - else: - self.checksum_cache = None - - def init_rundepcheck(self, data): - self.taskwhitelist = data.getVar("BB_HASHTASK_WHITELIST") or None - if self.taskwhitelist: - self.twl = re.compile(self.taskwhitelist) - else: - self.twl = None - - def _build_data(self, fn, d): - - ignore_mismatch = ((d.getVar("BB_HASH_IGNORE_MISMATCH") or '') == '1') - tasklist, gendeps, lookupcache = bb.data.generate_dependencies(d) - - taskdeps = {} - basehash = {} - - for task in tasklist: - data = lookupcache[task] - - if data is None: - bb.error("Task %s from %s seems to be empty?!" % (task, fn)) - data = '' - - gendeps[task] -= self.basewhitelist - newdeps = gendeps[task] - seen = set() - while newdeps: - nextdeps = newdeps - seen |= nextdeps - newdeps = set() - for dep in nextdeps: - if dep in self.basewhitelist: - continue - gendeps[dep] -= self.basewhitelist - newdeps |= gendeps[dep] - newdeps -= seen - - alldeps = sorted(seen) - for dep in alldeps: - data = data + dep - var = lookupcache[dep] - if var is not None: - data = data + str(var) - datahash = hashlib.md5(data.encode("utf-8")).hexdigest() - k = fn + "." + task - if not ignore_mismatch and k in self.basehash and self.basehash[k] != datahash: - bb.error("When reparsing %s, the basehash value changed from %s to %s. The metadata is not deterministic and this needs to be fixed." % (k, self.basehash[k], datahash)) - self.basehash[k] = datahash - taskdeps[task] = alldeps - - self.taskdeps[fn] = taskdeps - self.gendeps[fn] = gendeps - self.lookupcache[fn] = lookupcache - - return taskdeps - - def finalise(self, fn, d, variant): - - mc = d.getVar("__BBMULTICONFIG", False) or "" - if variant or mc: - fn = bb.cache.realfn2virtual(fn, variant, mc) - - try: - taskdeps = self._build_data(fn, d) - except bb.parse.SkipRecipe: - raise - except: - bb.warn("Error during finalise of %s" % fn) - raise - - #Slow but can be useful for debugging mismatched basehashes - #for task in self.taskdeps[fn]: - # self.dump_sigtask(fn, task, d.getVar("STAMP"), False) - - for task in taskdeps: - d.setVar("BB_BASEHASH_task-%s" % task, self.basehash[fn + "." + task]) - - def rundep_check(self, fn, recipename, task, dep, depname, dataCache): - # Return True if we should keep the dependency, False to drop it - # We only manipulate the dependencies for packages not in the whitelist - if self.twl and not self.twl.search(recipename): - # then process the actual dependencies - if self.twl.search(depname): - return False - return True - - def read_taint(self, fn, task, stampbase): - taint = None - try: - with open(stampbase + '.' + task + '.taint', 'r') as taintf: - taint = taintf.read() - except IOError: - pass - return taint - - def get_taskhash(self, fn, task, deps, dataCache): - k = fn + "." + task - data = dataCache.basetaskhash[k] - self.basehash[k] = data - self.runtaskdeps[k] = [] - self.file_checksum_values[k] = [] - recipename = dataCache.pkg_fn[fn] - - for dep in sorted(deps, key=clean_basepath): - depname = dataCache.pkg_fn[self.pkgnameextract.search(dep).group('fn')] - if not self.rundep_check(fn, recipename, task, dep, depname, dataCache): - continue - if dep not in self.taskhash: - bb.fatal("%s is not in taskhash, caller isn't calling in dependency order?", dep) - data = data + self.taskhash[dep] - self.runtaskdeps[k].append(dep) - - if task in dataCache.file_checksums[fn]: - if self.checksum_cache: - checksums = self.checksum_cache.get_checksums(dataCache.file_checksums[fn][task], recipename) - else: - checksums = bb.fetch2.get_file_checksums(dataCache.file_checksums[fn][task], recipename) - for (f,cs) in checksums: - self.file_checksum_values[k].append((f,cs)) - if cs: - data = data + cs - - taskdep = dataCache.task_deps[fn] - if 'nostamp' in taskdep and task in taskdep['nostamp']: - # Nostamp tasks need an implicit taint so that they force any dependent tasks to run - import uuid - taint = str(uuid.uuid4()) - data = data + taint - self.taints[k] = "nostamp:" + taint - - taint = self.read_taint(fn, task, dataCache.stamp[fn]) - if taint: - data = data + taint - self.taints[k] = taint - logger.warning("%s is tainted from a forced run" % k) - - h = hashlib.md5(data.encode("utf-8")).hexdigest() - self.taskhash[k] = h - #d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task]) - return h - - def writeout_file_checksum_cache(self): - """Write/update the file checksum cache onto disk""" - if self.checksum_cache: - self.checksum_cache.save_extras() - self.checksum_cache.save_merge() - else: - bb.fetch2.fetcher_parse_save() - bb.fetch2.fetcher_parse_done() - - def dump_sigtask(self, fn, task, stampbase, runtime): - - k = fn + "." + task - referencestamp = stampbase - if isinstance(runtime, str) and runtime.startswith("customfile"): - sigfile = stampbase - referencestamp = runtime[11:] - elif runtime and k in self.taskhash: - sigfile = stampbase + "." + task + ".sigdata" + "." + self.taskhash[k] - else: - sigfile = stampbase + "." + task + ".sigbasedata" + "." + self.basehash[k] - - bb.utils.mkdirhier(os.path.dirname(sigfile)) - - data = {} - data['task'] = task - data['basewhitelist'] = self.basewhitelist - data['taskwhitelist'] = self.taskwhitelist - data['taskdeps'] = self.taskdeps[fn][task] - data['basehash'] = self.basehash[k] - data['gendeps'] = {} - data['varvals'] = {} - data['varvals'][task] = self.lookupcache[fn][task] - for dep in self.taskdeps[fn][task]: - if dep in self.basewhitelist: - continue - data['gendeps'][dep] = self.gendeps[fn][dep] - data['varvals'][dep] = self.lookupcache[fn][dep] - - if runtime and k in self.taskhash: - data['runtaskdeps'] = self.runtaskdeps[k] - data['file_checksum_values'] = [(os.path.basename(f), cs) for f,cs in self.file_checksum_values[k]] - data['runtaskhashes'] = {} - for dep in data['runtaskdeps']: - data['runtaskhashes'][dep] = self.taskhash[dep] - data['taskhash'] = self.taskhash[k] - - taint = self.read_taint(fn, task, referencestamp) - if taint: - data['taint'] = taint - - if runtime and k in self.taints: - if 'nostamp:' in self.taints[k]: - data['taint'] = self.taints[k] - - computed_basehash = calc_basehash(data) - if computed_basehash != self.basehash[k]: - bb.error("Basehash mismatch %s versus %s for %s" % (computed_basehash, self.basehash[k], k)) - if runtime and k in self.taskhash: - computed_taskhash = calc_taskhash(data) - if computed_taskhash != self.taskhash[k]: - bb.error("Taskhash mismatch %s versus %s for %s" % (computed_taskhash, self.taskhash[k], k)) - sigfile = sigfile.replace(self.taskhash[k], computed_taskhash) - - fd, tmpfile = tempfile.mkstemp(dir=os.path.dirname(sigfile), prefix="sigtask.") - try: - with os.fdopen(fd, "wb") as stream: - p = pickle.dump(data, stream, -1) - stream.flush() - os.chmod(tmpfile, 0o664) - os.rename(tmpfile, sigfile) - except (OSError, IOError) as err: - try: - os.unlink(tmpfile) - except OSError: - pass - raise err - - def dump_sigfn(self, fn, dataCaches, options): - if fn in self.taskdeps: - for task in self.taskdeps[fn]: - tid = fn + ":" + task - (mc, _, _) = bb.runqueue.split_tid(tid) - k = fn + "." + task - if k not in self.taskhash: - continue - if dataCaches[mc].basetaskhash[k] != self.basehash[k]: - bb.error("Bitbake's cached basehash does not match the one we just generated (%s)!" % k) - bb.error("The mismatched hashes were %s and %s" % (dataCaches[mc].basetaskhash[k], self.basehash[k])) - self.dump_sigtask(fn, task, dataCaches[mc].stamp[fn], True) - -class SignatureGeneratorBasicHash(SignatureGeneratorBasic): - name = "basichash" - - def stampfile(self, stampbase, fn, taskname, extrainfo, clean=False): - if taskname != "do_setscene" and taskname.endswith("_setscene"): - k = fn + "." + taskname[:-9] - else: - k = fn + "." + taskname - if clean: - h = "*" - elif k in self.taskhash: - h = self.taskhash[k] - else: - # If k is not in basehash, then error - h = self.basehash[k] - return ("%s.%s.%s.%s" % (stampbase, taskname, h, extrainfo)).rstrip('.') - - def stampcleanmask(self, stampbase, fn, taskname, extrainfo): - return self.stampfile(stampbase, fn, taskname, extrainfo, clean=True) - - def invalidate_task(self, task, d, fn): - bb.note("Tainting hash to force rebuild of task %s, %s" % (fn, task)) - bb.build.write_taint(task, d, fn) - -def dump_this_task(outfile, d): - import bb.parse - fn = d.getVar("BB_FILENAME") - task = "do_" + d.getVar("BB_CURRENTTASK") - referencestamp = bb.build.stamp_internal(task, d, None, True) - bb.parse.siggen.dump_sigtask(fn, task, outfile, "customfile:" + referencestamp) - -def init_colors(enable_color): - """Initialise colour dict for passing to compare_sigfiles()""" - # First set up the colours - colors = {'color_title': '\033[1;37;40m', - 'color_default': '\033[0;37;40m', - 'color_add': '\033[1;32;40m', - 'color_remove': '\033[1;31;40m', - } - # Leave all keys present but clear the values - if not enable_color: - for k in colors.keys(): - colors[k] = '' - return colors - -def worddiff_str(oldstr, newstr, colors=None): - if not colors: - colors = init_colors(False) - diff = simplediff.diff(oldstr.split(' '), newstr.split(' ')) - ret = [] - for change, value in diff: - value = ' '.join(value) - if change == '=': - ret.append(value) - elif change == '+': - item = '{color_add}{{+{value}+}}{color_default}'.format(value=value, **colors) - ret.append(item) - elif change == '-': - item = '{color_remove}[-{value}-]{color_default}'.format(value=value, **colors) - ret.append(item) - whitespace_note = '' - if oldstr != newstr and ' '.join(oldstr.split()) == ' '.join(newstr.split()): - whitespace_note = ' (whitespace changed)' - return '"%s"%s' % (' '.join(ret), whitespace_note) - -def list_inline_diff(oldlist, newlist, colors=None): - if not colors: - colors = init_colors(False) - diff = simplediff.diff(oldlist, newlist) - ret = [] - for change, value in diff: - value = ' '.join(value) - if change == '=': - ret.append("'%s'" % value) - elif change == '+': - item = '{color_add}+{value}{color_default}'.format(value=value, **colors) - ret.append(item) - elif change == '-': - item = '{color_remove}-{value}{color_default}'.format(value=value, **colors) - ret.append(item) - return '[%s]' % (', '.join(ret)) - -def clean_basepath(a): - mc = None - if a.startswith("multiconfig:"): - _, mc, a = a.split(":", 2) - b = a.rsplit("/", 2)[1] + '/' + a.rsplit("/", 2)[2] - if a.startswith("virtual:"): - b = b + ":" + a.rsplit(":", 1)[0] - if mc: - b = b + ":multiconfig:" + mc - return b - -def clean_basepaths(a): - b = {} - for x in a: - b[clean_basepath(x)] = a[x] - return b - -def clean_basepaths_list(a): - b = [] - for x in a: - b.append(clean_basepath(x)) - return b - -def compare_sigfiles(a, b, recursecb=None, color=False, collapsed=False): - output = [] - - colors = init_colors(color) - def color_format(formatstr, **values): - """ - Return colour formatted string. - NOTE: call with the format string, not an already formatted string - containing values (otherwise you could have trouble with { and } - characters) - """ - if not formatstr.endswith('{color_default}'): - formatstr += '{color_default}' - # In newer python 3 versions you can pass both of these directly, - # but we only require 3.4 at the moment - formatparams = {} - formatparams.update(colors) - formatparams.update(values) - return formatstr.format(**formatparams) - - with open(a, 'rb') as f: - p1 = pickle.Unpickler(f) - a_data = p1.load() - with open(b, 'rb') as f: - p2 = pickle.Unpickler(f) - b_data = p2.load() - - def dict_diff(a, b, whitelist=set()): - sa = set(a.keys()) - sb = set(b.keys()) - common = sa & sb - changed = set() - for i in common: - if a[i] != b[i] and i not in whitelist: - changed.add(i) - added = sb - sa - removed = sa - sb - return changed, added, removed - - def file_checksums_diff(a, b): - from collections import Counter - # Handle old siginfo format - if isinstance(a, dict): - a = [(os.path.basename(f), cs) for f, cs in a.items()] - if isinstance(b, dict): - b = [(os.path.basename(f), cs) for f, cs in b.items()] - # Compare lists, ensuring we can handle duplicate filenames if they exist - removedcount = Counter(a) - removedcount.subtract(b) - addedcount = Counter(b) - addedcount.subtract(a) - added = [] - for x in b: - if addedcount[x] > 0: - addedcount[x] -= 1 - added.append(x) - removed = [] - changed = [] - for x in a: - if removedcount[x] > 0: - removedcount[x] -= 1 - for y in added: - if y[0] == x[0]: - changed.append((x[0], x[1], y[1])) - added.remove(y) - break - else: - removed.append(x) - added = [x[0] for x in added] - removed = [x[0] for x in removed] - return changed, added, removed - - if 'basewhitelist' in a_data and a_data['basewhitelist'] != b_data['basewhitelist']: - output.append(color_format("{color_title}basewhitelist changed{color_default} from '%s' to '%s'") % (a_data['basewhitelist'], b_data['basewhitelist'])) - if a_data['basewhitelist'] and b_data['basewhitelist']: - output.append("changed items: %s" % a_data['basewhitelist'].symmetric_difference(b_data['basewhitelist'])) - - if 'taskwhitelist' in a_data and a_data['taskwhitelist'] != b_data['taskwhitelist']: - output.append(color_format("{color_title}taskwhitelist changed{color_default} from '%s' to '%s'") % (a_data['taskwhitelist'], b_data['taskwhitelist'])) - if a_data['taskwhitelist'] and b_data['taskwhitelist']: - output.append("changed items: %s" % a_data['taskwhitelist'].symmetric_difference(b_data['taskwhitelist'])) - - if a_data['taskdeps'] != b_data['taskdeps']: - output.append(color_format("{color_title}Task dependencies changed{color_default} from:\n%s\nto:\n%s") % (sorted(a_data['taskdeps']), sorted(b_data['taskdeps']))) - - if a_data['basehash'] != b_data['basehash'] and not collapsed: - output.append(color_format("{color_title}basehash changed{color_default} from %s to %s") % (a_data['basehash'], b_data['basehash'])) - - changed, added, removed = dict_diff(a_data['gendeps'], b_data['gendeps'], a_data['basewhitelist'] & b_data['basewhitelist']) - if changed: - for dep in changed: - output.append(color_format("{color_title}List of dependencies for variable %s changed from '{color_default}%s{color_title}' to '{color_default}%s{color_title}'") % (dep, a_data['gendeps'][dep], b_data['gendeps'][dep])) - if a_data['gendeps'][dep] and b_data['gendeps'][dep]: - output.append("changed items: %s" % a_data['gendeps'][dep].symmetric_difference(b_data['gendeps'][dep])) - if added: - for dep in added: - output.append(color_format("{color_title}Dependency on variable %s was added") % (dep)) - if removed: - for dep in removed: - output.append(color_format("{color_title}Dependency on Variable %s was removed") % (dep)) - - - changed, added, removed = dict_diff(a_data['varvals'], b_data['varvals']) - if changed: - for dep in changed: - oldval = a_data['varvals'][dep] - newval = b_data['varvals'][dep] - if newval and oldval and ('\n' in oldval or '\n' in newval): - diff = difflib.unified_diff(oldval.splitlines(), newval.splitlines(), lineterm='') - # Cut off the first two lines, since we aren't interested in - # the old/new filename (they are blank anyway in this case) - difflines = list(diff)[2:] - if color: - # Add colour to diff output - for i, line in enumerate(difflines): - if line.startswith('+'): - line = color_format('{color_add}{line}', line=line) - difflines[i] = line - elif line.startswith('-'): - line = color_format('{color_remove}{line}', line=line) - difflines[i] = line - output.append(color_format("{color_title}Variable {var} value changed:{color_default}\n{diff}", var=dep, diff='\n'.join(difflines))) - elif newval and oldval and (' ' in oldval or ' ' in newval): - output.append(color_format("{color_title}Variable {var} value changed:{color_default}\n{diff}", var=dep, diff=worddiff_str(oldval, newval, colors))) - else: - output.append(color_format("{color_title}Variable {var} value changed from '{color_default}{oldval}{color_title}' to '{color_default}{newval}{color_title}'{color_default}", var=dep, oldval=oldval, newval=newval)) - - if not 'file_checksum_values' in a_data: - a_data['file_checksum_values'] = {} - if not 'file_checksum_values' in b_data: - b_data['file_checksum_values'] = {} - - changed, added, removed = file_checksums_diff(a_data['file_checksum_values'], b_data['file_checksum_values']) - if changed: - for f, old, new in changed: - output.append(color_format("{color_title}Checksum for file %s changed{color_default} from %s to %s") % (f, old, new)) - if added: - for f in added: - output.append(color_format("{color_title}Dependency on checksum of file %s was added") % (f)) - if removed: - for f in removed: - output.append(color_format("{color_title}Dependency on checksum of file %s was removed") % (f)) - - if not 'runtaskdeps' in a_data: - a_data['runtaskdeps'] = {} - if not 'runtaskdeps' in b_data: - b_data['runtaskdeps'] = {} - - if not collapsed: - if len(a_data['runtaskdeps']) != len(b_data['runtaskdeps']): - changed = ["Number of task dependencies changed"] - else: - changed = [] - for idx, task in enumerate(a_data['runtaskdeps']): - a = a_data['runtaskdeps'][idx] - b = b_data['runtaskdeps'][idx] - if a_data['runtaskhashes'][a] != b_data['runtaskhashes'][b] and not collapsed: - changed.append("%s with hash %s\n changed to\n%s with hash %s" % (clean_basepath(a), a_data['runtaskhashes'][a], clean_basepath(b), b_data['runtaskhashes'][b])) - - if changed: - clean_a = clean_basepaths_list(a_data['runtaskdeps']) - clean_b = clean_basepaths_list(b_data['runtaskdeps']) - if clean_a != clean_b: - output.append(color_format("{color_title}runtaskdeps changed:{color_default}\n%s") % list_inline_diff(clean_a, clean_b, colors)) - else: - output.append(color_format("{color_title}runtaskdeps changed:")) - output.append("\n".join(changed)) - - - if 'runtaskhashes' in a_data and 'runtaskhashes' in b_data: - a = a_data['runtaskhashes'] - b = b_data['runtaskhashes'] - changed, added, removed = dict_diff(a, b) - if added: - for dep in added: - bdep_found = False - if removed: - for bdep in removed: - if b[dep] == a[bdep]: - #output.append("Dependency on task %s was replaced by %s with same hash" % (dep, bdep)) - bdep_found = True - if not bdep_found: - output.append(color_format("{color_title}Dependency on task %s was added{color_default} with hash %s") % (clean_basepath(dep), b[dep])) - if removed: - for dep in removed: - adep_found = False - if added: - for adep in added: - if b[adep] == a[dep]: - #output.append("Dependency on task %s was replaced by %s with same hash" % (adep, dep)) - adep_found = True - if not adep_found: - output.append(color_format("{color_title}Dependency on task %s was removed{color_default} with hash %s") % (clean_basepath(dep), a[dep])) - if changed: - for dep in changed: - if not collapsed: - output.append(color_format("{color_title}Hash for dependent task %s changed{color_default} from %s to %s") % (clean_basepath(dep), a[dep], b[dep])) - if callable(recursecb): - recout = recursecb(dep, a[dep], b[dep]) - if recout: - if collapsed: - output.extend(recout) - else: - # If a dependent hash changed, might as well print the line above and then defer to the changes in - # that hash since in all likelyhood, they're the same changes this task also saw. - output = [output[-1]] + recout - - a_taint = a_data.get('taint', None) - b_taint = b_data.get('taint', None) - if a_taint != b_taint: - output.append(color_format("{color_title}Taint (by forced/invalidated task) changed{color_default} from %s to %s") % (a_taint, b_taint)) - - return output - - -def calc_basehash(sigdata): - task = sigdata['task'] - basedata = sigdata['varvals'][task] - - if basedata is None: - basedata = '' - - alldeps = sigdata['taskdeps'] - for dep in alldeps: - basedata = basedata + dep - val = sigdata['varvals'][dep] - if val is not None: - basedata = basedata + str(val) - - return hashlib.md5(basedata.encode("utf-8")).hexdigest() - -def calc_taskhash(sigdata): - data = sigdata['basehash'] - - for dep in sigdata['runtaskdeps']: - data = data + sigdata['runtaskhashes'][dep] - - for c in sigdata['file_checksum_values']: - if c[1]: - data = data + c[1] - - if 'taint' in sigdata: - if 'nostamp:' in sigdata['taint']: - data = data + sigdata['taint'][8:] - else: - data = data + sigdata['taint'] - - return hashlib.md5(data.encode("utf-8")).hexdigest() - - -def dump_sigfile(a): - output = [] - - with open(a, 'rb') as f: - p1 = pickle.Unpickler(f) - a_data = p1.load() - - output.append("basewhitelist: %s" % (a_data['basewhitelist'])) - - output.append("taskwhitelist: %s" % (a_data['taskwhitelist'])) - - output.append("Task dependencies: %s" % (sorted(a_data['taskdeps']))) - - output.append("basehash: %s" % (a_data['basehash'])) - - for dep in a_data['gendeps']: - output.append("List of dependencies for variable %s is %s" % (dep, a_data['gendeps'][dep])) - - for dep in a_data['varvals']: - output.append("Variable %s value is %s" % (dep, a_data['varvals'][dep])) - - if 'runtaskdeps' in a_data: - output.append("Tasks this task depends on: %s" % (a_data['runtaskdeps'])) - - if 'file_checksum_values' in a_data: - output.append("This task depends on the checksums of files: %s" % (a_data['file_checksum_values'])) - - if 'runtaskhashes' in a_data: - for dep in a_data['runtaskhashes']: - output.append("Hash for dependent task %s is %s" % (dep, a_data['runtaskhashes'][dep])) - - if 'taint' in a_data: - output.append("Tainted (by forced/invalidated task): %s" % a_data['taint']) - - if 'task' in a_data: - computed_basehash = calc_basehash(a_data) - output.append("Computed base hash is %s and from file %s" % (computed_basehash, a_data['basehash'])) - else: - output.append("Unable to compute base hash") - - computed_taskhash = calc_taskhash(a_data) - output.append("Computed task hash is %s" % computed_taskhash) - - return output diff --git a/poky/bitbake/lib/bb/taskdata.py b/poky/bitbake/lib/bb/taskdata.py deleted file mode 100644 index 0ea6c0b..0000000 --- a/poky/bitbake/lib/bb/taskdata.py +++ /dev/null @@ -1,578 +0,0 @@ -#!/usr/bin/env python -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake 'TaskData' implementation - -Task data collection and handling - -""" - -# Copyright (C) 2006 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import logging -import re -import bb - -logger = logging.getLogger("BitBake.TaskData") - -def re_match_strings(target, strings): - """ - Whether or not the string 'target' matches - any one string of the strings which can be regular expression string - """ - return any(name == target or re.match(name, target) - for name in strings) - -class TaskEntry: - def __init__(self): - self.tdepends = [] - self.idepends = [] - self.irdepends = [] - -class TaskData: - """ - BitBake Task Data implementation - """ - def __init__(self, abort = True, skiplist = None, allowincomplete = False): - self.build_targets = {} - self.run_targets = {} - - self.external_targets = [] - - self.seenfns = [] - self.taskentries = {} - - self.depids = {} - self.rdepids = {} - - self.consider_msgs_cache = [] - - self.failed_deps = [] - self.failed_rdeps = [] - self.failed_fns = [] - - self.abort = abort - self.allowincomplete = allowincomplete - - self.skiplist = skiplist - - def add_tasks(self, fn, dataCache): - """ - Add tasks for a given fn to the database - """ - - task_deps = dataCache.task_deps[fn] - - if fn in self.failed_fns: - bb.msg.fatal("TaskData", "Trying to re-add a failed file? Something is broken...") - - # Check if we've already seen this fn - if fn in self.seenfns: - return - - self.seenfns.append(fn) - - self.add_extra_deps(fn, dataCache) - - # Common code for dep_name/depends = 'depends'/idepends and 'rdepends'/irdepends - def handle_deps(task, dep_name, depends, seen): - if dep_name in task_deps and task in task_deps[dep_name]: - ids = [] - for dep in task_deps[dep_name][task].split(): - if dep: - parts = dep.split(":") - if len(parts) != 2: - bb.msg.fatal("TaskData", "Error for %s:%s[%s], dependency %s in '%s' does not contain exactly one ':' character.\n Task '%s' should be specified in the form 'packagename:task'" % (fn, task, dep_name, dep, task_deps[dep_name][task], dep_name)) - ids.append((parts[0], parts[1])) - seen(parts[0]) - depends.extend(ids) - - for task in task_deps['tasks']: - - tid = "%s:%s" % (fn, task) - self.taskentries[tid] = TaskEntry() - - # Work out task dependencies - parentids = [] - for dep in task_deps['parents'][task]: - if dep not in task_deps['tasks']: - bb.debug(2, "Not adding dependeny of %s on %s since %s does not exist" % (task, dep, dep)) - continue - parentid = "%s:%s" % (fn, dep) - parentids.append(parentid) - self.taskentries[tid].tdepends.extend(parentids) - - # Touch all intertask dependencies - handle_deps(task, 'depends', self.taskentries[tid].idepends, self.seen_build_target) - handle_deps(task, 'rdepends', self.taskentries[tid].irdepends, self.seen_run_target) - - # Work out build dependencies - if not fn in self.depids: - dependids = set() - for depend in dataCache.deps[fn]: - dependids.add(depend) - self.depids[fn] = list(dependids) - logger.debug(2, "Added dependencies %s for %s", str(dataCache.deps[fn]), fn) - - # Work out runtime dependencies - if not fn in self.rdepids: - rdependids = set() - rdepends = dataCache.rundeps[fn] - rrecs = dataCache.runrecs[fn] - rdependlist = [] - rreclist = [] - for package in rdepends: - for rdepend in rdepends[package]: - rdependlist.append(rdepend) - rdependids.add(rdepend) - for package in rrecs: - for rdepend in rrecs[package]: - rreclist.append(rdepend) - rdependids.add(rdepend) - if rdependlist: - logger.debug(2, "Added runtime dependencies %s for %s", str(rdependlist), fn) - if rreclist: - logger.debug(2, "Added runtime recommendations %s for %s", str(rreclist), fn) - self.rdepids[fn] = list(rdependids) - - for dep in self.depids[fn]: - self.seen_build_target(dep) - if dep in self.failed_deps: - self.fail_fn(fn) - return - for dep in self.rdepids[fn]: - self.seen_run_target(dep) - if dep in self.failed_rdeps: - self.fail_fn(fn) - return - - def add_extra_deps(self, fn, dataCache): - func = dataCache.extradepsfunc.get(fn, None) - if func: - bb.providers.buildWorldTargetList(dataCache) - pn = dataCache.pkg_fn[fn] - params = {'deps': dataCache.deps[fn], - 'world_target': dataCache.world_target, - 'pkg_pn': dataCache.pkg_pn, - 'self_pn': pn} - funcname = '_%s_calculate_extra_depends' % pn.replace('-', '_') - paramlist = ','.join(params.keys()) - func = 'def %s(%s):\n%s\n\n%s(%s)' % (funcname, paramlist, func, funcname, paramlist) - bb.utils.better_exec(func, params) - - - def have_build_target(self, target): - """ - Have we a build target matching this name? - """ - if target in self.build_targets and self.build_targets[target]: - return True - return False - - def have_runtime_target(self, target): - """ - Have we a runtime target matching this name? - """ - if target in self.run_targets and self.run_targets[target]: - return True - return False - - def seen_build_target(self, name): - """ - Maintain a list of build targets - """ - if name not in self.build_targets: - self.build_targets[name] = [] - - def add_build_target(self, fn, item): - """ - Add a build target. - If already present, append the provider fn to the list - """ - if item in self.build_targets: - if fn in self.build_targets[item]: - return - self.build_targets[item].append(fn) - return - self.build_targets[item] = [fn] - - def seen_run_target(self, name): - """ - Maintain a list of runtime build targets - """ - if name not in self.run_targets: - self.run_targets[name] = [] - - def add_runtime_target(self, fn, item): - """ - Add a runtime target. - If already present, append the provider fn to the list - """ - if item in self.run_targets: - if fn in self.run_targets[item]: - return - self.run_targets[item].append(fn) - return - self.run_targets[item] = [fn] - - def mark_external_target(self, target): - """ - Mark a build target as being externally requested - """ - if target not in self.external_targets: - self.external_targets.append(target) - - def get_unresolved_build_targets(self, dataCache): - """ - Return a list of build targets who's providers - are unknown. - """ - unresolved = [] - for target in self.build_targets: - if re_match_strings(target, dataCache.ignored_dependencies): - continue - if target in self.failed_deps: - continue - if not self.build_targets[target]: - unresolved.append(target) - return unresolved - - def get_unresolved_run_targets(self, dataCache): - """ - Return a list of runtime targets who's providers - are unknown. - """ - unresolved = [] - for target in self.run_targets: - if re_match_strings(target, dataCache.ignored_dependencies): - continue - if target in self.failed_rdeps: - continue - if not self.run_targets[target]: - unresolved.append(target) - return unresolved - - def get_provider(self, item): - """ - Return a list of providers of item - """ - return self.build_targets[item] - - def get_dependees(self, item): - """ - Return a list of targets which depend on item - """ - dependees = [] - for fn in self.depids: - if item in self.depids[fn]: - dependees.append(fn) - return dependees - - def get_rdependees(self, item): - """ - Return a list of targets which depend on runtime item - """ - dependees = [] - for fn in self.rdepids: - if item in self.rdepids[fn]: - dependees.append(fn) - return dependees - - def get_reasons(self, item, runtime=False): - """ - Get the reason(s) for an item not being provided, if any - """ - reasons = [] - if self.skiplist: - for fn in self.skiplist: - skipitem = self.skiplist[fn] - if skipitem.pn == item: - reasons.append("%s was skipped: %s" % (skipitem.pn, skipitem.skipreason)) - elif runtime and item in skipitem.rprovides: - reasons.append("%s RPROVIDES %s but was skipped: %s" % (skipitem.pn, item, skipitem.skipreason)) - elif not runtime and item in skipitem.provides: - reasons.append("%s PROVIDES %s but was skipped: %s" % (skipitem.pn, item, skipitem.skipreason)) - return reasons - - def get_close_matches(self, item, provider_list): - import difflib - if self.skiplist: - skipped = [] - for fn in self.skiplist: - skipped.append(self.skiplist[fn].pn) - full_list = provider_list + skipped - else: - full_list = provider_list - return difflib.get_close_matches(item, full_list, cutoff=0.7) - - def add_provider(self, cfgData, dataCache, item): - try: - self.add_provider_internal(cfgData, dataCache, item) - except bb.providers.NoProvider: - if self.abort: - raise - self.remove_buildtarget(item) - - self.mark_external_target(item) - - def add_provider_internal(self, cfgData, dataCache, item): - """ - Add the providers of item to the task data - Mark entries were specifically added externally as against dependencies - added internally during dependency resolution - """ - - if re_match_strings(item, dataCache.ignored_dependencies): - return - - if not item in dataCache.providers: - close_matches = self.get_close_matches(item, list(dataCache.providers.keys())) - # Is it in RuntimeProviders ? - all_p = bb.providers.getRuntimeProviders(dataCache, item) - for fn in all_p: - new = dataCache.pkg_fn[fn] + " RPROVIDES " + item - if new not in close_matches: - close_matches.append(new) - bb.event.fire(bb.event.NoProvider(item, dependees=self.get_dependees(item), reasons=self.get_reasons(item), close_matches=close_matches), cfgData) - raise bb.providers.NoProvider(item) - - if self.have_build_target(item): - return - - all_p = dataCache.providers[item] - - eligible, foundUnique = bb.providers.filterProviders(all_p, item, cfgData, dataCache) - eligible = [p for p in eligible if not p in self.failed_fns] - - if not eligible: - bb.event.fire(bb.event.NoProvider(item, dependees=self.get_dependees(item), reasons=["No eligible PROVIDERs exist for '%s'" % item]), cfgData) - raise bb.providers.NoProvider(item) - - if len(eligible) > 1 and foundUnique == False: - if item not in self.consider_msgs_cache: - providers_list = [] - for fn in eligible: - providers_list.append(dataCache.pkg_fn[fn]) - bb.event.fire(bb.event.MultipleProviders(item, providers_list), cfgData) - self.consider_msgs_cache.append(item) - - for fn in eligible: - if fn in self.failed_fns: - continue - logger.debug(2, "adding %s to satisfy %s", fn, item) - self.add_build_target(fn, item) - self.add_tasks(fn, dataCache) - - - #item = dataCache.pkg_fn[fn] - - def add_rprovider(self, cfgData, dataCache, item): - """ - Add the runtime providers of item to the task data - (takes item names from RDEPENDS/PACKAGES namespace) - """ - - if re_match_strings(item, dataCache.ignored_dependencies): - return - - if self.have_runtime_target(item): - return - - all_p = bb.providers.getRuntimeProviders(dataCache, item) - - if not all_p: - bb.event.fire(bb.event.NoProvider(item, runtime=True, dependees=self.get_rdependees(item), reasons=self.get_reasons(item, True)), cfgData) - raise bb.providers.NoRProvider(item) - - eligible, numberPreferred = bb.providers.filterProvidersRunTime(all_p, item, cfgData, dataCache) - eligible = [p for p in eligible if not p in self.failed_fns] - - if not eligible: - bb.event.fire(bb.event.NoProvider(item, runtime=True, dependees=self.get_rdependees(item), reasons=["No eligible RPROVIDERs exist for '%s'" % item]), cfgData) - raise bb.providers.NoRProvider(item) - - if len(eligible) > 1 and numberPreferred == 0: - if item not in self.consider_msgs_cache: - providers_list = [] - for fn in eligible: - providers_list.append(dataCache.pkg_fn[fn]) - bb.event.fire(bb.event.MultipleProviders(item, providers_list, runtime=True), cfgData) - self.consider_msgs_cache.append(item) - - if numberPreferred > 1: - if item not in self.consider_msgs_cache: - providers_list = [] - for fn in eligible: - providers_list.append(dataCache.pkg_fn[fn]) - bb.event.fire(bb.event.MultipleProviders(item, providers_list, runtime=True), cfgData) - self.consider_msgs_cache.append(item) - raise bb.providers.MultipleRProvider(item) - - # run through the list until we find one that we can build - for fn in eligible: - if fn in self.failed_fns: - continue - logger.debug(2, "adding '%s' to satisfy runtime '%s'", fn, item) - self.add_runtime_target(fn, item) - self.add_tasks(fn, dataCache) - - def fail_fn(self, fn, missing_list=None): - """ - Mark a file as failed (unbuildable) - Remove any references from build and runtime provider lists - - missing_list, A list of missing requirements for this target - """ - if fn in self.failed_fns: - return - if not missing_list: - missing_list = [] - logger.debug(1, "File '%s' is unbuildable, removing...", fn) - self.failed_fns.append(fn) - for target in self.build_targets: - if fn in self.build_targets[target]: - self.build_targets[target].remove(fn) - if len(self.build_targets[target]) == 0: - self.remove_buildtarget(target, missing_list) - for target in self.run_targets: - if fn in self.run_targets[target]: - self.run_targets[target].remove(fn) - if len(self.run_targets[target]) == 0: - self.remove_runtarget(target, missing_list) - - def remove_buildtarget(self, target, missing_list=None): - """ - Mark a build target as failed (unbuildable) - Trigger removal of any files that have this as a dependency - """ - if not missing_list: - missing_list = [target] - else: - missing_list = [target] + missing_list - logger.verbose("Target '%s' is unbuildable, removing...\nMissing or unbuildable dependency chain was: %s", target, missing_list) - self.failed_deps.append(target) - dependees = self.get_dependees(target) - for fn in dependees: - self.fail_fn(fn, missing_list) - for tid in self.taskentries: - for (idepend, idependtask) in self.taskentries[tid].idepends: - if idepend == target: - fn = tid.rsplit(":",1)[0] - self.fail_fn(fn, missing_list) - - if self.abort and target in self.external_targets: - logger.error("Required build target '%s' has no buildable providers.\nMissing or unbuildable dependency chain was: %s", target, missing_list) - raise bb.providers.NoProvider(target) - - def remove_runtarget(self, target, missing_list=None): - """ - Mark a run target as failed (unbuildable) - Trigger removal of any files that have this as a dependency - """ - if not missing_list: - missing_list = [target] - else: - missing_list = [target] + missing_list - - logger.info("Runtime target '%s' is unbuildable, removing...\nMissing or unbuildable dependency chain was: %s", target, missing_list) - self.failed_rdeps.append(target) - dependees = self.get_rdependees(target) - for fn in dependees: - self.fail_fn(fn, missing_list) - for tid in self.taskentries: - for (idepend, idependtask) in self.taskentries[tid].irdepends: - if idepend == target: - fn = tid.rsplit(":",1)[0] - self.fail_fn(fn, missing_list) - - def add_unresolved(self, cfgData, dataCache): - """ - Resolve all unresolved build and runtime targets - """ - logger.info("Resolving any missing task queue dependencies") - while True: - added = 0 - for target in self.get_unresolved_build_targets(dataCache): - try: - self.add_provider_internal(cfgData, dataCache, target) - added = added + 1 - except bb.providers.NoProvider: - if self.abort and target in self.external_targets and not self.allowincomplete: - raise - if not self.allowincomplete: - self.remove_buildtarget(target) - for target in self.get_unresolved_run_targets(dataCache): - try: - self.add_rprovider(cfgData, dataCache, target) - added = added + 1 - except (bb.providers.NoRProvider, bb.providers.MultipleRProvider): - self.remove_runtarget(target) - logger.debug(1, "Resolved " + str(added) + " extra dependencies") - if added == 0: - break - # self.dump_data() - - def get_providermap(self, prefix=None): - provmap = {} - for name in self.build_targets: - if prefix and not name.startswith(prefix): - continue - if self.have_build_target(name): - provider = self.get_provider(name) - if provider: - provmap[name] = provider[0] - return provmap - - def dump_data(self): - """ - Dump some debug information on the internal data structures - """ - logger.debug(3, "build_names:") - logger.debug(3, ", ".join(self.build_targets)) - - logger.debug(3, "run_names:") - logger.debug(3, ", ".join(self.run_targets)) - - logger.debug(3, "build_targets:") - for target in self.build_targets: - targets = "None" - if target in self.build_targets: - targets = self.build_targets[target] - logger.debug(3, " %s: %s", target, targets) - - logger.debug(3, "run_targets:") - for target in self.run_targets: - targets = "None" - if target in self.run_targets: - targets = self.run_targets[target] - logger.debug(3, " %s: %s", target, targets) - - logger.debug(3, "tasks:") - for tid in self.taskentries: - logger.debug(3, " %s: %s %s %s", - tid, - self.taskentries[tid].idepends, - self.taskentries[tid].irdepends, - self.taskentries[tid].tdepends) - - logger.debug(3, "dependency ids (per fn):") - for fn in self.depids: - logger.debug(3, " %s: %s", fn, self.depids[fn]) - - logger.debug(3, "runtime dependency ids (per fn):") - for fn in self.rdepids: - logger.debug(3, " %s: %s", fn, self.rdepids[fn]) diff --git a/poky/bitbake/lib/bb/tests/__init__.py b/poky/bitbake/lib/bb/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/poky/bitbake/lib/bb/tests/codeparser.py b/poky/bitbake/lib/bb/tests/codeparser.py deleted file mode 100644 index e30e78c..0000000 --- a/poky/bitbake/lib/bb/tests/codeparser.py +++ /dev/null @@ -1,428 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# BitBake Test for codeparser.py -# -# Copyright (C) 2010 Chris Larson -# Copyright (C) 2012 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -import unittest -import logging -import bb - -logger = logging.getLogger('BitBake.TestCodeParser') - -# bb.data references bb.parse but can't directly import due to circular dependencies. -# Hack around it for now :( -import bb.parse -import bb.data - -class ReferenceTest(unittest.TestCase): - def setUp(self): - self.d = bb.data.init() - - def setEmptyVars(self, varlist): - for k in varlist: - self.d.setVar(k, "") - - def setValues(self, values): - for k, v in values.items(): - self.d.setVar(k, v) - - def assertReferences(self, refs): - self.assertEqual(self.references, refs) - - def assertExecs(self, execs): - self.assertEqual(self.execs, execs) - - def assertContains(self, contains): - self.assertEqual(self.contains, contains) - -class VariableReferenceTest(ReferenceTest): - - def parseExpression(self, exp): - parsedvar = self.d.expandWithRefs(exp, None) - self.references = parsedvar.references - - def test_simple_reference(self): - self.setEmptyVars(["FOO"]) - self.parseExpression("${FOO}") - self.assertReferences(set(["FOO"])) - - def test_nested_reference(self): - self.setEmptyVars(["BAR"]) - self.d.setVar("FOO", "BAR") - self.parseExpression("${${FOO}}") - self.assertReferences(set(["FOO", "BAR"])) - - def test_python_reference(self): - self.setEmptyVars(["BAR"]) - self.parseExpression("${@d.getVar('BAR') + 'foo'}") - self.assertReferences(set(["BAR"])) - -class ShellReferenceTest(ReferenceTest): - - def parseExpression(self, exp): - parsedvar = self.d.expandWithRefs(exp, None) - parser = bb.codeparser.ShellParser("ParserTest", logger) - parser.parse_shell(parsedvar.value) - - self.references = parsedvar.references - self.execs = parser.execs - - def test_quotes_inside_assign(self): - self.parseExpression('foo=foo"bar"baz') - self.assertReferences(set([])) - - def test_quotes_inside_arg(self): - self.parseExpression('sed s#"bar baz"#"alpha beta"#g') - self.assertExecs(set(["sed"])) - - def test_arg_continuation(self): - self.parseExpression("sed -i -e s,foo,bar,g \\\n *.pc") - self.assertExecs(set(["sed"])) - - def test_dollar_in_quoted(self): - self.parseExpression('sed -i -e "foo$" *.pc') - self.assertExecs(set(["sed"])) - - def test_quotes_inside_arg_continuation(self): - self.setEmptyVars(["bindir", "D", "libdir"]) - self.parseExpression(""" -sed -i -e s#"moc_location=.*$"#"moc_location=${bindir}/moc4"# \\ --e s#"uic_location=.*$"#"uic_location=${bindir}/uic4"# \\ -${D}${libdir}/pkgconfig/*.pc -""") - self.assertReferences(set(["bindir", "D", "libdir"])) - - def test_assign_subshell_expansion(self): - self.parseExpression("foo=$(echo bar)") - self.assertExecs(set(["echo"])) - - def test_shell_unexpanded(self): - self.setEmptyVars(["QT_BASE_NAME"]) - self.parseExpression('echo "${QT_BASE_NAME}"') - self.assertExecs(set(["echo"])) - self.assertReferences(set(["QT_BASE_NAME"])) - - def test_incomplete_varexp_single_quotes(self): - self.parseExpression("sed -i -e 's:IP{:I${:g' $pc") - self.assertExecs(set(["sed"])) - - - def test_until(self): - self.parseExpression("until false; do echo true; done") - self.assertExecs(set(["false", "echo"])) - self.assertReferences(set()) - - def test_case(self): - self.parseExpression(""" -case $foo in -*) -bar -;; -esac -""") - self.assertExecs(set(["bar"])) - self.assertReferences(set()) - - def test_assign_exec(self): - self.parseExpression("a=b c='foo bar' alpha 1 2 3") - self.assertExecs(set(["alpha"])) - - def test_redirect_to_file(self): - self.setEmptyVars(["foo"]) - self.parseExpression("echo foo >${foo}/bar") - self.assertExecs(set(["echo"])) - self.assertReferences(set(["foo"])) - - def test_heredoc(self): - self.setEmptyVars(["theta"]) - self.parseExpression(""" -cat <<END -alpha -beta -${theta} -END -""") - self.assertReferences(set(["theta"])) - - def test_redirect_from_heredoc(self): - v = ["B", "SHADOW_MAILDIR", "SHADOW_MAILFILE", "SHADOW_UTMPDIR", "SHADOW_LOGDIR", "bindir"] - self.setEmptyVars(v) - self.parseExpression(""" -cat <<END >${B}/cachedpaths -shadow_cv_maildir=${SHADOW_MAILDIR} -shadow_cv_mailfile=${SHADOW_MAILFILE} -shadow_cv_utmpdir=${SHADOW_UTMPDIR} -shadow_cv_logdir=${SHADOW_LOGDIR} -shadow_cv_passwd_dir=${bindir} -END -""") - self.assertReferences(set(v)) - self.assertExecs(set(["cat"])) - -# def test_incomplete_command_expansion(self): -# self.assertRaises(reftracker.ShellSyntaxError, reftracker.execs, -# bbvalue.shparse("cp foo`", self.d), self.d) - -# def test_rogue_dollarsign(self): -# self.setValues({"D" : "/tmp"}) -# self.parseExpression("install -d ${D}$") -# self.assertReferences(set(["D"])) -# self.assertExecs(set(["install"])) - - -class PythonReferenceTest(ReferenceTest): - - def setUp(self): - self.d = bb.data.init() - if hasattr(bb.utils, "_context"): - self.context = bb.utils._context - else: - import builtins - self.context = builtins.__dict__ - - def parseExpression(self, exp): - parsedvar = self.d.expandWithRefs(exp, None) - parser = bb.codeparser.PythonParser("ParserTest", logger) - parser.parse_python(parsedvar.value) - - self.references = parsedvar.references | parser.references - self.execs = parser.execs - self.contains = parser.contains - - @staticmethod - def indent(value): - """Python Snippets have to be indented, python values don't have to -be. These unit tests are testing snippets.""" - return " " + value - - def test_getvar_reference(self): - self.parseExpression("d.getVar('foo')") - self.assertReferences(set(["foo"])) - self.assertExecs(set()) - - def test_getvar_computed_reference(self): - self.parseExpression("d.getVar('f' + 'o' + 'o')") - self.assertReferences(set()) - self.assertExecs(set()) - - def test_getvar_exec_reference(self): - self.parseExpression("eval('d.getVar(\"foo\")')") - self.assertReferences(set()) - self.assertExecs(set(["eval"])) - - def test_var_reference(self): - self.context["foo"] = lambda x: x - self.setEmptyVars(["FOO"]) - self.parseExpression("foo('${FOO}')") - self.assertReferences(set(["FOO"])) - self.assertExecs(set(["foo"])) - del self.context["foo"] - - def test_var_exec(self): - for etype in ("func", "task"): - self.d.setVar("do_something", "echo 'hi mom! ${FOO}'") - self.d.setVarFlag("do_something", etype, True) - self.parseExpression("bb.build.exec_func('do_something', d)") - self.assertReferences(set([])) - self.assertExecs(set(["do_something"])) - - def test_function_reference(self): - self.context["testfunc"] = lambda msg: bb.msg.note(1, None, msg) - self.d.setVar("FOO", "Hello, World!") - self.parseExpression("testfunc('${FOO}')") - self.assertReferences(set(["FOO"])) - self.assertExecs(set(["testfunc"])) - del self.context["testfunc"] - - def test_qualified_function_reference(self): - self.parseExpression("time.time()") - self.assertExecs(set(["time.time"])) - - def test_qualified_function_reference_2(self): - self.parseExpression("os.path.dirname('/foo/bar')") - self.assertExecs(set(["os.path.dirname"])) - - def test_qualified_function_reference_nested(self): - self.parseExpression("time.strftime('%Y%m%d',time.gmtime())") - self.assertExecs(set(["time.strftime", "time.gmtime"])) - - def test_function_reference_chained(self): - self.context["testget"] = lambda: "\tstrip me " - self.parseExpression("testget().strip()") - self.assertExecs(set(["testget"])) - del self.context["testget"] - - def test_contains(self): - self.parseExpression('bb.utils.contains("TESTVAR", "one", "true", "false", d)') - self.assertContains({'TESTVAR': {'one'}}) - - def test_contains_multi(self): - self.parseExpression('bb.utils.contains("TESTVAR", "one two", "true", "false", d)') - self.assertContains({'TESTVAR': {'one two'}}) - - def test_contains_any(self): - self.parseExpression('bb.utils.contains_any("TESTVAR", "hello", "true", "false", d)') - self.assertContains({'TESTVAR': {'hello'}}) - - def test_contains_any_multi(self): - self.parseExpression('bb.utils.contains_any("TESTVAR", "one two three", "true", "false", d)') - self.assertContains({'TESTVAR': {'one', 'two', 'three'}}) - - def test_contains_filter(self): - self.parseExpression('bb.utils.filter("TESTVAR", "hello there world", d)') - self.assertContains({'TESTVAR': {'hello', 'there', 'world'}}) - - -class DependencyReferenceTest(ReferenceTest): - - pydata = """ -d.getVar('somevar') -def test(d): - foo = 'bar %s' % 'foo' -def test2(d): - d.getVar(foo) - d.getVar('bar', False) - test2(d) - -def a(): - \"\"\"some - stuff - \"\"\" - return "heh" - -test(d) - -d.expand(d.getVar("something", False)) -d.expand("${inexpand} somethingelse") -d.getVar(a(), False) -""" - - def test_python(self): - self.d.setVar("FOO", self.pydata) - self.setEmptyVars(["inexpand", "a", "test2", "test"]) - self.d.setVarFlags("FOO", { - "func": True, - "python": True, - "lineno": 1, - "filename": "example.bb", - }) - - deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d) - - self.assertEqual(deps, set(["somevar", "bar", "something", "inexpand", "test", "test2", "a"])) - - - shelldata = """ -foo () { -bar -} -{ -echo baz -$(heh) -eval `moo` -} -a=b -c=d -( -true && false -test -f foo -testval=something -$testval -) || aiee -! inverted -echo ${somevar} - -case foo in -bar) -echo bar -;; -baz) -echo baz -;; -foo*) -echo foo -;; -esac -""" - - def test_shell(self): - execs = ["bar", "echo", "heh", "moo", "true", "aiee"] - self.d.setVar("somevar", "heh") - self.d.setVar("inverted", "echo inverted...") - self.d.setVarFlag("inverted", "func", True) - self.d.setVar("FOO", self.shelldata) - self.d.setVarFlags("FOO", {"func": True}) - self.setEmptyVars(execs) - - deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d) - - self.assertEqual(deps, set(["somevar", "inverted"] + execs)) - - - def test_vardeps(self): - self.d.setVar("oe_libinstall", "echo test") - self.d.setVar("FOO", "foo=oe_libinstall; eval $foo") - self.d.setVarFlag("FOO", "vardeps", "oe_libinstall") - - deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d) - - self.assertEqual(deps, set(["oe_libinstall"])) - - def test_vardeps_expand(self): - self.d.setVar("oe_libinstall", "echo test") - self.d.setVar("FOO", "foo=oe_libinstall; eval $foo") - self.d.setVarFlag("FOO", "vardeps", "${@'oe_libinstall'}") - - deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d) - - self.assertEqual(deps, set(["oe_libinstall"])) - - def test_contains_vardeps(self): - expr = '${@bb.utils.filter("TESTVAR", "somevalue anothervalue", d)} \ - ${@bb.utils.contains("TESTVAR", "testval testval2", "yetanothervalue", "", d)} \ - ${@bb.utils.contains("TESTVAR", "testval2 testval3", "blah", "", d)} \ - ${@bb.utils.contains_any("TESTVAR", "testval2 testval3", "lastone", "", d)}' - parsedvar = self.d.expandWithRefs(expr, None) - # Check contains - self.assertEqual(parsedvar.contains, {'TESTVAR': {'testval2 testval3', 'anothervalue', 'somevalue', 'testval testval2', 'testval2', 'testval3'}}) - # Check dependencies - self.d.setVar('ANOTHERVAR', expr) - self.d.setVar('TESTVAR', 'anothervalue testval testval2') - deps, values = bb.data.build_dependencies("ANOTHERVAR", set(self.d.keys()), set(), set(), self.d) - self.assertEqual(sorted(values.splitlines()), - sorted([expr, - 'TESTVAR{anothervalue} = Set', - 'TESTVAR{somevalue} = Unset', - 'TESTVAR{testval testval2} = Set', - 'TESTVAR{testval2 testval3} = Unset', - 'TESTVAR{testval2} = Set', - 'TESTVAR{testval3} = Unset' - ])) - # Check final value - self.assertEqual(self.d.getVar('ANOTHERVAR').split(), ['anothervalue', 'yetanothervalue', 'lastone']) - - #Currently no wildcard support - #def test_vardeps_wildcards(self): - # self.d.setVar("oe_libinstall", "echo test") - # self.d.setVar("FOO", "foo=oe_libinstall; eval $foo") - # self.d.setVarFlag("FOO", "vardeps", "oe_*") - # self.assertEquals(deps, set(["oe_libinstall"])) - - diff --git a/poky/bitbake/lib/bb/tests/cow.py b/poky/bitbake/lib/bb/tests/cow.py deleted file mode 100644 index d149d84..0000000 --- a/poky/bitbake/lib/bb/tests/cow.py +++ /dev/null @@ -1,136 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# BitBake Tests for Copy-on-Write (cow.py) -# -# Copyright 2006 Holger Freyther <freyther@handhelds.org> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -import unittest -import os - -class COWTestCase(unittest.TestCase): - """ - Test case for the COW module from mithro - """ - - def testGetSet(self): - """ - Test and set - """ - from bb.COW import COWDictBase - a = COWDictBase.copy() - - self.assertEqual(False, 'a' in a) - - a['a'] = 'a' - a['b'] = 'b' - self.assertEqual(True, 'a' in a) - self.assertEqual(True, 'b' in a) - self.assertEqual('a', a['a'] ) - self.assertEqual('b', a['b'] ) - - def testCopyCopy(self): - """ - Test the copy of copies - """ - - from bb.COW import COWDictBase - - # create two COW dict 'instances' - b = COWDictBase.copy() - c = COWDictBase.copy() - - # assign some keys to one instance, some keys to another - b['a'] = 10 - b['c'] = 20 - c['a'] = 30 - - # test separation of the two instances - self.assertEqual(False, 'c' in c) - self.assertEqual(30, c['a']) - self.assertEqual(10, b['a']) - - # test copy - b_2 = b.copy() - c_2 = c.copy() - - self.assertEqual(False, 'c' in c_2) - self.assertEqual(10, b_2['a']) - - b_2['d'] = 40 - self.assertEqual(False, 'd' in c_2) - self.assertEqual(True, 'd' in b_2) - self.assertEqual(40, b_2['d']) - self.assertEqual(False, 'd' in b) - self.assertEqual(False, 'd' in c) - - c_2['d'] = 30 - self.assertEqual(True, 'd' in c_2) - self.assertEqual(True, 'd' in b_2) - self.assertEqual(30, c_2['d']) - self.assertEqual(40, b_2['d']) - self.assertEqual(False, 'd' in b) - self.assertEqual(False, 'd' in c) - - # test copy of the copy - c_3 = c_2.copy() - b_3 = b_2.copy() - b_3_2 = b_2.copy() - - c_3['e'] = 4711 - self.assertEqual(4711, c_3['e']) - self.assertEqual(False, 'e' in c_2) - self.assertEqual(False, 'e' in b_3) - self.assertEqual(False, 'e' in b_3_2) - self.assertEqual(False, 'e' in b_2) - - b_3['e'] = 'viel' - self.assertEqual('viel', b_3['e']) - self.assertEqual(4711, c_3['e']) - self.assertEqual(False, 'e' in c_2) - self.assertEqual(True, 'e' in b_3) - self.assertEqual(False, 'e' in b_3_2) - self.assertEqual(False, 'e' in b_2) - - def testCow(self): - from bb.COW import COWDictBase - c = COWDictBase.copy() - c['123'] = 1027 - c['other'] = 4711 - c['d'] = { 'abc' : 10, 'bcd' : 20 } - - copy = c.copy() - - self.assertEqual(1027, c['123']) - self.assertEqual(4711, c['other']) - self.assertEqual({'abc':10, 'bcd':20}, c['d']) - self.assertEqual(1027, copy['123']) - self.assertEqual(4711, copy['other']) - self.assertEqual({'abc':10, 'bcd':20}, copy['d']) - - # cow it now - copy['123'] = 1028 - copy['other'] = 4712 - copy['d']['abc'] = 20 - - - self.assertEqual(1027, c['123']) - self.assertEqual(4711, c['other']) - self.assertEqual({'abc':10, 'bcd':20}, c['d']) - self.assertEqual(1028, copy['123']) - self.assertEqual(4712, copy['other']) - self.assertEqual({'abc':20, 'bcd':20}, copy['d']) diff --git a/poky/bitbake/lib/bb/tests/data.py b/poky/bitbake/lib/bb/tests/data.py deleted file mode 100644 index a4a9dd3..0000000 --- a/poky/bitbake/lib/bb/tests/data.py +++ /dev/null @@ -1,607 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# BitBake Tests for the Data Store (data.py/data_smart.py) -# -# Copyright (C) 2010 Chris Larson -# Copyright (C) 2012 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -import unittest -import bb -import bb.data -import bb.parse -import logging - -class LogRecord(): - def __enter__(self): - logs = [] - class LogHandler(logging.Handler): - def emit(self, record): - logs.append(record) - logger = logging.getLogger("BitBake") - handler = LogHandler() - self.handler = handler - logger.addHandler(handler) - return logs - def __exit__(self, type, value, traceback): - logger = logging.getLogger("BitBake") - logger.removeHandler(self.handler) - return - -def logContains(item, logs): - for l in logs: - m = l.getMessage() - if item in m: - return True - return False - -class DataExpansions(unittest.TestCase): - def setUp(self): - self.d = bb.data.init() - self.d["foo"] = "value_of_foo" - self.d["bar"] = "value_of_bar" - self.d["value_of_foo"] = "value_of_'value_of_foo'" - - def test_one_var(self): - val = self.d.expand("${foo}") - self.assertEqual(str(val), "value_of_foo") - - def test_indirect_one_var(self): - val = self.d.expand("${${foo}}") - self.assertEqual(str(val), "value_of_'value_of_foo'") - - def test_indirect_and_another(self): - val = self.d.expand("${${foo}} ${bar}") - self.assertEqual(str(val), "value_of_'value_of_foo' value_of_bar") - - def test_python_snippet(self): - val = self.d.expand("${@5*12}") - self.assertEqual(str(val), "60") - - def test_expand_in_python_snippet(self): - val = self.d.expand("${@'boo ' + '${foo}'}") - self.assertEqual(str(val), "boo value_of_foo") - - def test_python_snippet_getvar(self): - val = self.d.expand("${@d.getVar('foo') + ' ${bar}'}") - self.assertEqual(str(val), "value_of_foo value_of_bar") - - def test_python_unexpanded(self): - self.d.setVar("bar", "${unsetvar}") - val = self.d.expand("${@d.getVar('foo') + ' ${bar}'}") - self.assertEqual(str(val), "${@d.getVar('foo') + ' ${unsetvar}'}") - - def test_python_snippet_syntax_error(self): - self.d.setVar("FOO", "${@foo = 5}") - self.assertRaises(bb.data_smart.ExpansionError, self.d.getVar, "FOO", True) - - def test_python_snippet_runtime_error(self): - self.d.setVar("FOO", "${@int('test')}") - self.assertRaises(bb.data_smart.ExpansionError, self.d.getVar, "FOO", True) - - def test_python_snippet_error_path(self): - self.d.setVar("FOO", "foo value ${BAR}") - self.d.setVar("BAR", "bar value ${@int('test')}") - self.assertRaises(bb.data_smart.ExpansionError, self.d.getVar, "FOO", True) - - def test_value_containing_value(self): - val = self.d.expand("${@d.getVar('foo') + ' ${bar}'}") - self.assertEqual(str(val), "value_of_foo value_of_bar") - - def test_reference_undefined_var(self): - val = self.d.expand("${undefinedvar} meh") - self.assertEqual(str(val), "${undefinedvar} meh") - - def test_double_reference(self): - self.d.setVar("BAR", "bar value") - self.d.setVar("FOO", "${BAR} foo ${BAR}") - val = self.d.getVar("FOO") - self.assertEqual(str(val), "bar value foo bar value") - - def test_direct_recursion(self): - self.d.setVar("FOO", "${FOO}") - self.assertRaises(bb.data_smart.ExpansionError, self.d.getVar, "FOO", True) - - def test_indirect_recursion(self): - self.d.setVar("FOO", "${BAR}") - self.d.setVar("BAR", "${BAZ}") - self.d.setVar("BAZ", "${FOO}") - self.assertRaises(bb.data_smart.ExpansionError, self.d.getVar, "FOO", True) - - def test_recursion_exception(self): - self.d.setVar("FOO", "${BAR}") - self.d.setVar("BAR", "${${@'FOO'}}") - self.assertRaises(bb.data_smart.ExpansionError, self.d.getVar, "FOO", True) - - def test_incomplete_varexp_single_quotes(self): - self.d.setVar("FOO", "sed -i -e 's:IP{:I${:g' $pc") - val = self.d.getVar("FOO") - self.assertEqual(str(val), "sed -i -e 's:IP{:I${:g' $pc") - - def test_nonstring(self): - self.d.setVar("TEST", 5) - val = self.d.getVar("TEST") - self.assertEqual(str(val), "5") - - def test_rename(self): - self.d.renameVar("foo", "newfoo") - self.assertEqual(self.d.getVar("newfoo", False), "value_of_foo") - self.assertEqual(self.d.getVar("foo", False), None) - - def test_deletion(self): - self.d.delVar("foo") - self.assertEqual(self.d.getVar("foo", False), None) - - def test_keys(self): - keys = list(self.d.keys()) - self.assertCountEqual(keys, ['value_of_foo', 'foo', 'bar']) - - def test_keys_deletion(self): - newd = bb.data.createCopy(self.d) - newd.delVar("bar") - keys = list(newd.keys()) - self.assertCountEqual(keys, ['value_of_foo', 'foo']) - -class TestNestedExpansions(unittest.TestCase): - def setUp(self): - self.d = bb.data.init() - self.d["foo"] = "foo" - self.d["bar"] = "bar" - self.d["value_of_foobar"] = "187" - - def test_refs(self): - val = self.d.expand("${value_of_${foo}${bar}}") - self.assertEqual(str(val), "187") - - #def test_python_refs(self): - # val = self.d.expand("${@${@3}**2 + ${@4}**2}") - # self.assertEqual(str(val), "25") - - def test_ref_in_python_ref(self): - val = self.d.expand("${@'${foo}' + 'bar'}") - self.assertEqual(str(val), "foobar") - - def test_python_ref_in_ref(self): - val = self.d.expand("${${@'f'+'o'+'o'}}") - self.assertEqual(str(val), "foo") - - def test_deep_nesting(self): - depth = 100 - val = self.d.expand("${" * depth + "foo" + "}" * depth) - self.assertEqual(str(val), "foo") - - #def test_deep_python_nesting(self): - # depth = 50 - # val = self.d.expand("${@" * depth + "1" + "+1}" * depth) - # self.assertEqual(str(val), str(depth + 1)) - - def test_mixed(self): - val = self.d.expand("${value_of_${@('${foo}'+'bar')[0:3]}${${@'BAR'.lower()}}}") - self.assertEqual(str(val), "187") - - def test_runtime(self): - val = self.d.expand("${${@'value_of' + '_f'+'o'+'o'+'b'+'a'+'r'}}") - self.assertEqual(str(val), "187") - -class TestMemoize(unittest.TestCase): - def test_memoized(self): - d = bb.data.init() - d.setVar("FOO", "bar") - self.assertTrue(d.getVar("FOO", False) is d.getVar("FOO", False)) - - def test_not_memoized(self): - d1 = bb.data.init() - d2 = bb.data.init() - d1.setVar("FOO", "bar") - d2.setVar("FOO", "bar2") - self.assertTrue(d1.getVar("FOO", False) is not d2.getVar("FOO", False)) - - def test_changed_after_memoized(self): - d = bb.data.init() - d.setVar("foo", "value of foo") - self.assertEqual(str(d.getVar("foo", False)), "value of foo") - d.setVar("foo", "second value of foo") - self.assertEqual(str(d.getVar("foo", False)), "second value of foo") - - def test_same_value(self): - d = bb.data.init() - d.setVar("foo", "value of") - d.setVar("bar", "value of") - self.assertEqual(d.getVar("foo", False), - d.getVar("bar", False)) - -class TestConcat(unittest.TestCase): - def setUp(self): - self.d = bb.data.init() - self.d.setVar("FOO", "foo") - self.d.setVar("VAL", "val") - self.d.setVar("BAR", "bar") - - def test_prepend(self): - self.d.setVar("TEST", "${VAL}") - self.d.prependVar("TEST", "${FOO}:") - self.assertEqual(self.d.getVar("TEST"), "foo:val") - - def test_append(self): - self.d.setVar("TEST", "${VAL}") - self.d.appendVar("TEST", ":${BAR}") - self.assertEqual(self.d.getVar("TEST"), "val:bar") - - def test_multiple_append(self): - self.d.setVar("TEST", "${VAL}") - self.d.prependVar("TEST", "${FOO}:") - self.d.appendVar("TEST", ":val2") - self.d.appendVar("TEST", ":${BAR}") - self.assertEqual(self.d.getVar("TEST"), "foo:val:val2:bar") - -class TestConcatOverride(unittest.TestCase): - def setUp(self): - self.d = bb.data.init() - self.d.setVar("FOO", "foo") - self.d.setVar("VAL", "val") - self.d.setVar("BAR", "bar") - - def test_prepend(self): - self.d.setVar("TEST", "${VAL}") - self.d.setVar("TEST_prepend", "${FOO}:") - self.assertEqual(self.d.getVar("TEST"), "foo:val") - - def test_append(self): - self.d.setVar("TEST", "${VAL}") - self.d.setVar("TEST_append", ":${BAR}") - self.assertEqual(self.d.getVar("TEST"), "val:bar") - - def test_multiple_append(self): - self.d.setVar("TEST", "${VAL}") - self.d.setVar("TEST_prepend", "${FOO}:") - self.d.setVar("TEST_append", ":val2") - self.d.setVar("TEST_append", ":${BAR}") - self.assertEqual(self.d.getVar("TEST"), "foo:val:val2:bar") - - def test_append_unset(self): - self.d.setVar("TEST_prepend", "${FOO}:") - self.d.setVar("TEST_append", ":val2") - self.d.setVar("TEST_append", ":${BAR}") - self.assertEqual(self.d.getVar("TEST"), "foo::val2:bar") - - def test_remove(self): - self.d.setVar("TEST", "${VAL} ${BAR}") - self.d.setVar("TEST_remove", "val") - self.assertEqual(self.d.getVar("TEST"), "bar") - - def test_remove_cleared(self): - self.d.setVar("TEST", "${VAL} ${BAR}") - self.d.setVar("TEST_remove", "val") - self.d.setVar("TEST", "${VAL} ${BAR}") - self.assertEqual(self.d.getVar("TEST"), "val bar") - - # Ensure the value is unchanged if we have an inactive remove override - # (including that whitespace is preserved) - def test_remove_inactive_override(self): - self.d.setVar("TEST", "${VAL} ${BAR} 123") - self.d.setVar("TEST_remove_inactiveoverride", "val") - self.assertEqual(self.d.getVar("TEST"), "val bar 123") - - def test_doubleref_remove(self): - self.d.setVar("TEST", "${VAL} ${BAR}") - self.d.setVar("TEST_remove", "val") - self.d.setVar("TEST_TEST", "${TEST} ${TEST}") - self.assertEqual(self.d.getVar("TEST_TEST"), "bar bar") - - def test_empty_remove(self): - self.d.setVar("TEST", "") - self.d.setVar("TEST_remove", "val") - self.assertEqual(self.d.getVar("TEST"), "") - - def test_remove_expansion(self): - self.d.setVar("BAR", "Z") - self.d.setVar("TEST", "${BAR}/X Y") - self.d.setVar("TEST_remove", "${BAR}/X") - self.assertEqual(self.d.getVar("TEST"), "Y") - - def test_remove_expansion_items(self): - self.d.setVar("TEST", "A B C D") - self.d.setVar("BAR", "B D") - self.d.setVar("TEST_remove", "${BAR}") - self.assertEqual(self.d.getVar("TEST"), "A C") - -class TestOverrides(unittest.TestCase): - def setUp(self): - self.d = bb.data.init() - self.d.setVar("OVERRIDES", "foo:bar:local") - self.d.setVar("TEST", "testvalue") - - def test_no_override(self): - self.assertEqual(self.d.getVar("TEST"), "testvalue") - - def test_one_override(self): - self.d.setVar("TEST_bar", "testvalue2") - self.assertEqual(self.d.getVar("TEST"), "testvalue2") - - def test_one_override_unset(self): - self.d.setVar("TEST2_bar", "testvalue2") - - self.assertEqual(self.d.getVar("TEST2"), "testvalue2") - self.assertCountEqual(list(self.d.keys()), ['TEST', 'TEST2', 'OVERRIDES', 'TEST2_bar']) - - def test_multiple_override(self): - self.d.setVar("TEST_bar", "testvalue2") - self.d.setVar("TEST_local", "testvalue3") - self.d.setVar("TEST_foo", "testvalue4") - self.assertEqual(self.d.getVar("TEST"), "testvalue3") - self.assertCountEqual(list(self.d.keys()), ['TEST', 'TEST_foo', 'OVERRIDES', 'TEST_bar', 'TEST_local']) - - def test_multiple_combined_overrides(self): - self.d.setVar("TEST_local_foo_bar", "testvalue3") - self.assertEqual(self.d.getVar("TEST"), "testvalue3") - - def test_multiple_overrides_unset(self): - self.d.setVar("TEST2_local_foo_bar", "testvalue3") - self.assertEqual(self.d.getVar("TEST2"), "testvalue3") - - def test_keyexpansion_override(self): - self.d.setVar("LOCAL", "local") - self.d.setVar("TEST_bar", "testvalue2") - self.d.setVar("TEST_${LOCAL}", "testvalue3") - self.d.setVar("TEST_foo", "testvalue4") - bb.data.expandKeys(self.d) - self.assertEqual(self.d.getVar("TEST"), "testvalue3") - - def test_rename_override(self): - self.d.setVar("ALTERNATIVE_ncurses-tools_class-target", "a") - self.d.setVar("OVERRIDES", "class-target") - self.d.renameVar("ALTERNATIVE_ncurses-tools", "ALTERNATIVE_lib32-ncurses-tools") - self.assertEqual(self.d.getVar("ALTERNATIVE_lib32-ncurses-tools"), "a") - - def test_underscore_override(self): - self.d.setVar("TEST_bar", "testvalue2") - self.d.setVar("TEST_some_val", "testvalue3") - self.d.setVar("TEST_foo", "testvalue4") - self.d.setVar("OVERRIDES", "foo:bar:some_val") - self.assertEqual(self.d.getVar("TEST"), "testvalue3") - -class TestKeyExpansion(unittest.TestCase): - def setUp(self): - self.d = bb.data.init() - self.d.setVar("FOO", "foo") - self.d.setVar("BAR", "foo") - - def test_keyexpand(self): - self.d.setVar("VAL_${FOO}", "A") - self.d.setVar("VAL_${BAR}", "B") - with LogRecord() as logs: - bb.data.expandKeys(self.d) - self.assertTrue(logContains("Variable key VAL_${FOO} (A) replaces original key VAL_foo (B)", logs)) - self.assertEqual(self.d.getVar("VAL_foo"), "A") - -class TestFlags(unittest.TestCase): - def setUp(self): - self.d = bb.data.init() - self.d.setVar("foo", "value of foo") - self.d.setVarFlag("foo", "flag1", "value of flag1") - self.d.setVarFlag("foo", "flag2", "value of flag2") - - def test_setflag(self): - self.assertEqual(self.d.getVarFlag("foo", "flag1", False), "value of flag1") - self.assertEqual(self.d.getVarFlag("foo", "flag2", False), "value of flag2") - - def test_delflag(self): - self.d.delVarFlag("foo", "flag2") - self.assertEqual(self.d.getVarFlag("foo", "flag1", False), "value of flag1") - self.assertEqual(self.d.getVarFlag("foo", "flag2", False), None) - - -class Contains(unittest.TestCase): - def setUp(self): - self.d = bb.data.init() - self.d.setVar("SOMEFLAG", "a b c") - - def test_contains(self): - self.assertTrue(bb.utils.contains("SOMEFLAG", "a", True, False, self.d)) - self.assertTrue(bb.utils.contains("SOMEFLAG", "b", True, False, self.d)) - self.assertTrue(bb.utils.contains("SOMEFLAG", "c", True, False, self.d)) - - self.assertTrue(bb.utils.contains("SOMEFLAG", "a b", True, False, self.d)) - self.assertTrue(bb.utils.contains("SOMEFLAG", "b c", True, False, self.d)) - self.assertTrue(bb.utils.contains("SOMEFLAG", "c a", True, False, self.d)) - - self.assertTrue(bb.utils.contains("SOMEFLAG", "a b c", True, False, self.d)) - self.assertTrue(bb.utils.contains("SOMEFLAG", "c b a", True, False, self.d)) - - self.assertFalse(bb.utils.contains("SOMEFLAG", "x", True, False, self.d)) - self.assertFalse(bb.utils.contains("SOMEFLAG", "a x", True, False, self.d)) - self.assertFalse(bb.utils.contains("SOMEFLAG", "x c b", True, False, self.d)) - self.assertFalse(bb.utils.contains("SOMEFLAG", "x c b a", True, False, self.d)) - - def test_contains_any(self): - self.assertTrue(bb.utils.contains_any("SOMEFLAG", "a", True, False, self.d)) - self.assertTrue(bb.utils.contains_any("SOMEFLAG", "b", True, False, self.d)) - self.assertTrue(bb.utils.contains_any("SOMEFLAG", "c", True, False, self.d)) - - self.assertTrue(bb.utils.contains_any("SOMEFLAG", "a b", True, False, self.d)) - self.assertTrue(bb.utils.contains_any("SOMEFLAG", "b c", True, False, self.d)) - self.assertTrue(bb.utils.contains_any("SOMEFLAG", "c a", True, False, self.d)) - - self.assertTrue(bb.utils.contains_any("SOMEFLAG", "a x", True, False, self.d)) - self.assertTrue(bb.utils.contains_any("SOMEFLAG", "x c", True, False, self.d)) - - self.assertFalse(bb.utils.contains_any("SOMEFLAG", "x", True, False, self.d)) - self.assertFalse(bb.utils.contains_any("SOMEFLAG", "x y z", True, False, self.d)) - - -class Serialize(unittest.TestCase): - - def test_serialize(self): - import tempfile - import pickle - d = bb.data.init() - d.enableTracking() - d.setVar('HELLO', 'world') - d.setVarFlag('HELLO', 'other', 'planet') - with tempfile.NamedTemporaryFile(delete=False) as tmpfile: - tmpfilename = tmpfile.name - pickle.dump(d, tmpfile) - - with open(tmpfilename, 'rb') as f: - newd = pickle.load(f) - - os.remove(tmpfilename) - - self.assertEqual(d, newd) - self.assertEqual(newd.getVar('HELLO'), 'world') - self.assertEqual(newd.getVarFlag('HELLO', 'other'), 'planet') - - -# Remote datastore tests -# These really only test the interface, since in actual usage we have a -# tinfoil connector that does everything over RPC, and this doesn't test -# that. - -class TestConnector: - d = None - def __init__(self, d): - self.d = d - def getVar(self, name): - return self.d._findVar(name) - def getKeys(self): - return set(self.d.keys()) - def getVarHistory(self, name): - return self.d.varhistory.variable(name) - def expandPythonRef(self, varname, expr, d): - localdata = self.d.createCopy() - for key in d.localkeys(): - localdata.setVar(d.getVar(key)) - varparse = bb.data_smart.VariableParse(varname, localdata) - return varparse.python_sub(expr) - def setVar(self, name, value): - self.d.setVar(name, value) - def setVarFlag(self, name, flag, value): - self.d.setVarFlag(name, flag, value) - def delVar(self, name): - self.d.delVar(name) - return False - def delVarFlag(self, name, flag): - self.d.delVarFlag(name, flag) - return False - def renameVar(self, name, newname): - self.d.renameVar(name, newname) - return False - -class Remote(unittest.TestCase): - def test_remote(self): - - d1 = bb.data.init() - d1.enableTracking() - d2 = bb.data.init() - d2.enableTracking() - connector = TestConnector(d1) - - d2.setVar('_remote_data', connector) - - d1.setVar('HELLO', 'world') - d1.setVarFlag('OTHER', 'flagname', 'flagvalue') - self.assertEqual(d2.getVar('HELLO'), 'world') - self.assertEqual(d2.expand('${HELLO}'), 'world') - self.assertEqual(d2.expand('${@d.getVar("HELLO")}'), 'world') - self.assertIn('flagname', d2.getVarFlags('OTHER')) - self.assertEqual(d2.getVarFlag('OTHER', 'flagname'), 'flagvalue') - self.assertEqual(d1.varhistory.variable('HELLO'), d2.varhistory.variable('HELLO')) - # Test setVar on client side affects server - d2.setVar('HELLO', 'other-world') - self.assertEqual(d1.getVar('HELLO'), 'other-world') - # Test setVarFlag on client side affects server - d2.setVarFlag('HELLO', 'flagname', 'flagvalue') - self.assertEqual(d1.getVarFlag('HELLO', 'flagname'), 'flagvalue') - # Test client side data is incorporated in python expansion (which is done on server) - d2.setVar('FOO', 'bar') - self.assertEqual(d2.expand('${@d.getVar("FOO")}'), 'bar') - # Test overrides work - d1.setVar('FOO_test', 'baz') - d1.appendVar('OVERRIDES', ':test') - self.assertEqual(d2.getVar('FOO'), 'baz') - - -# Remote equivalents of local test classes -# Note that these aren't perfect since we only test in one direction - -class RemoteDataExpansions(DataExpansions): - def setUp(self): - self.d1 = bb.data.init() - self.d = bb.data.init() - self.d1["foo"] = "value_of_foo" - self.d1["bar"] = "value_of_bar" - self.d1["value_of_foo"] = "value_of_'value_of_foo'" - connector = TestConnector(self.d1) - self.d.setVar('_remote_data', connector) - -class TestRemoteNestedExpansions(TestNestedExpansions): - def setUp(self): - self.d1 = bb.data.init() - self.d = bb.data.init() - self.d1["foo"] = "foo" - self.d1["bar"] = "bar" - self.d1["value_of_foobar"] = "187" - connector = TestConnector(self.d1) - self.d.setVar('_remote_data', connector) - -class TestRemoteConcat(TestConcat): - def setUp(self): - self.d1 = bb.data.init() - self.d = bb.data.init() - self.d1.setVar("FOO", "foo") - self.d1.setVar("VAL", "val") - self.d1.setVar("BAR", "bar") - connector = TestConnector(self.d1) - self.d.setVar('_remote_data', connector) - -class TestRemoteConcatOverride(TestConcatOverride): - def setUp(self): - self.d1 = bb.data.init() - self.d = bb.data.init() - self.d1.setVar("FOO", "foo") - self.d1.setVar("VAL", "val") - self.d1.setVar("BAR", "bar") - connector = TestConnector(self.d1) - self.d.setVar('_remote_data', connector) - -class TestRemoteOverrides(TestOverrides): - def setUp(self): - self.d1 = bb.data.init() - self.d = bb.data.init() - self.d1.setVar("OVERRIDES", "foo:bar:local") - self.d1.setVar("TEST", "testvalue") - connector = TestConnector(self.d1) - self.d.setVar('_remote_data', connector) - -class TestRemoteKeyExpansion(TestKeyExpansion): - def setUp(self): - self.d1 = bb.data.init() - self.d = bb.data.init() - self.d1.setVar("FOO", "foo") - self.d1.setVar("BAR", "foo") - connector = TestConnector(self.d1) - self.d.setVar('_remote_data', connector) - -class TestRemoteFlags(TestFlags): - def setUp(self): - self.d1 = bb.data.init() - self.d = bb.data.init() - self.d1.setVar("foo", "value of foo") - self.d1.setVarFlag("foo", "flag1", "value of flag1") - self.d1.setVarFlag("foo", "flag2", "value of flag2") - connector = TestConnector(self.d1) - self.d.setVar('_remote_data', connector) diff --git a/poky/bitbake/lib/bb/tests/event.py b/poky/bitbake/lib/bb/tests/event.py deleted file mode 100644 index c7eb1fe..0000000 --- a/poky/bitbake/lib/bb/tests/event.py +++ /dev/null @@ -1,377 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# BitBake Tests for the Event implementation (event.py) -# -# Copyright (C) 2017 Intel Corporation -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -import unittest -import bb -import logging -import bb.compat -import bb.event -import importlib -import threading -import time -import pickle -from unittest.mock import Mock -from unittest.mock import call - - -class EventQueueStub(): - """ Class used as specification for UI event handler queue stub objects """ - def __init__(self): - return - - def send(self, event): - return - - -class PickleEventQueueStub(): - """ Class used as specification for UI event handler queue stub objects - with sendpickle method """ - def __init__(self): - return - - def sendpickle(self, pickled_event): - return - - -class UIClientStub(): - """ Class used as specification for UI event handler stub objects """ - def __init__(self): - self.event = None - - -class EventHandlingTest(unittest.TestCase): - """ Event handling test class """ - _threadlock_test_calls = [] - - def setUp(self): - self._test_process = Mock() - ui_client1 = UIClientStub() - ui_client2 = UIClientStub() - self._test_ui1 = Mock(wraps=ui_client1) - self._test_ui2 = Mock(wraps=ui_client2) - importlib.reload(bb.event) - - def _create_test_handlers(self): - """ Method used to create a test handler ordered dictionary """ - test_handlers = bb.compat.OrderedDict() - test_handlers["handler1"] = self._test_process.handler1 - test_handlers["handler2"] = self._test_process.handler2 - return test_handlers - - def test_class_handlers(self): - """ Test set_class_handlers and get_class_handlers methods """ - test_handlers = self._create_test_handlers() - bb.event.set_class_handlers(test_handlers) - self.assertEqual(test_handlers, - bb.event.get_class_handlers()) - - def test_handlers(self): - """ Test set_handlers and get_handlers """ - test_handlers = self._create_test_handlers() - bb.event.set_handlers(test_handlers) - self.assertEqual(test_handlers, - bb.event.get_handlers()) - - def test_clean_class_handlers(self): - """ Test clean_class_handlers method """ - cleanDict = bb.compat.OrderedDict() - self.assertEqual(cleanDict, - bb.event.clean_class_handlers()) - - def test_register(self): - """ Test register method for class handlers """ - result = bb.event.register("handler", self._test_process.handler) - self.assertEqual(result, bb.event.Registered) - handlers_dict = bb.event.get_class_handlers() - self.assertIn("handler", handlers_dict) - - def test_already_registered(self): - """ Test detection of an already registed class handler """ - bb.event.register("handler", self._test_process.handler) - handlers_dict = bb.event.get_class_handlers() - self.assertIn("handler", handlers_dict) - result = bb.event.register("handler", self._test_process.handler) - self.assertEqual(result, bb.event.AlreadyRegistered) - - def test_register_from_string(self): - """ Test register method receiving code in string """ - result = bb.event.register("string_handler", " return True") - self.assertEqual(result, bb.event.Registered) - handlers_dict = bb.event.get_class_handlers() - self.assertIn("string_handler", handlers_dict) - - def test_register_with_mask(self): - """ Test register method with event masking """ - mask = ["bb.event.OperationStarted", - "bb.event.OperationCompleted"] - result = bb.event.register("event_handler", - self._test_process.event_handler, - mask) - self.assertEqual(result, bb.event.Registered) - handlers_dict = bb.event.get_class_handlers() - self.assertIn("event_handler", handlers_dict) - - def test_remove(self): - """ Test remove method for class handlers """ - test_handlers = self._create_test_handlers() - bb.event.set_class_handlers(test_handlers) - count = len(test_handlers) - bb.event.remove("handler1", None) - test_handlers = bb.event.get_class_handlers() - self.assertEqual(len(test_handlers), count - 1) - with self.assertRaises(KeyError): - bb.event.remove("handler1", None) - - def test_execute_handler(self): - """ Test execute_handler method for class handlers """ - mask = ["bb.event.OperationProgress"] - result = bb.event.register("event_handler", - self._test_process.event_handler, - mask) - self.assertEqual(result, bb.event.Registered) - event = bb.event.OperationProgress(current=10, total=100) - bb.event.execute_handler("event_handler", - self._test_process.event_handler, - event, - None) - self._test_process.event_handler.assert_called_once_with(event) - - def test_fire_class_handlers(self): - """ Test fire_class_handlers method """ - mask = ["bb.event.OperationStarted"] - result = bb.event.register("event_handler1", - self._test_process.event_handler1, - mask) - self.assertEqual(result, bb.event.Registered) - result = bb.event.register("event_handler2", - self._test_process.event_handler2, - "*") - self.assertEqual(result, bb.event.Registered) - event1 = bb.event.OperationStarted() - event2 = bb.event.OperationCompleted(total=123) - bb.event.fire_class_handlers(event1, None) - bb.event.fire_class_handlers(event2, None) - bb.event.fire_class_handlers(event2, None) - expected_event_handler1 = [call(event1)] - expected_event_handler2 = [call(event1), - call(event2), - call(event2)] - self.assertEqual(self._test_process.event_handler1.call_args_list, - expected_event_handler1) - self.assertEqual(self._test_process.event_handler2.call_args_list, - expected_event_handler2) - - def test_change_handler_event_mapping(self): - """ Test changing the event mapping for class handlers """ - event1 = bb.event.OperationStarted() - event2 = bb.event.OperationCompleted(total=123) - - # register handler for all events - result = bb.event.register("event_handler1", - self._test_process.event_handler1, - "*") - self.assertEqual(result, bb.event.Registered) - bb.event.fire_class_handlers(event1, None) - bb.event.fire_class_handlers(event2, None) - expected = [call(event1), call(event2)] - self.assertEqual(self._test_process.event_handler1.call_args_list, - expected) - - # unregister handler and register it only for OperationStarted - result = bb.event.remove("event_handler1", - self._test_process.event_handler1) - mask = ["bb.event.OperationStarted"] - result = bb.event.register("event_handler1", - self._test_process.event_handler1, - mask) - self.assertEqual(result, bb.event.Registered) - bb.event.fire_class_handlers(event1, None) - bb.event.fire_class_handlers(event2, None) - expected = [call(event1), call(event2), call(event1)] - self.assertEqual(self._test_process.event_handler1.call_args_list, - expected) - - # unregister handler and register it only for OperationCompleted - result = bb.event.remove("event_handler1", - self._test_process.event_handler1) - mask = ["bb.event.OperationCompleted"] - result = bb.event.register("event_handler1", - self._test_process.event_handler1, - mask) - self.assertEqual(result, bb.event.Registered) - bb.event.fire_class_handlers(event1, None) - bb.event.fire_class_handlers(event2, None) - expected = [call(event1), call(event2), call(event1), call(event2)] - self.assertEqual(self._test_process.event_handler1.call_args_list, - expected) - - def test_register_UIHhandler(self): - """ Test register_UIHhandler method """ - result = bb.event.register_UIHhandler(self._test_ui1, mainui=True) - self.assertEqual(result, 1) - - def test_UIHhandler_already_registered(self): - """ Test registering an UIHhandler already existing """ - result = bb.event.register_UIHhandler(self._test_ui1, mainui=True) - self.assertEqual(result, 1) - result = bb.event.register_UIHhandler(self._test_ui1, mainui=True) - self.assertEqual(result, 2) - - def test_unregister_UIHhandler(self): - """ Test unregister_UIHhandler method """ - result = bb.event.register_UIHhandler(self._test_ui1, mainui=True) - self.assertEqual(result, 1) - result = bb.event.unregister_UIHhandler(1) - self.assertIs(result, None) - - def test_fire_ui_handlers(self): - """ Test fire_ui_handlers method """ - self._test_ui1.event = Mock(spec_set=EventQueueStub) - result = bb.event.register_UIHhandler(self._test_ui1, mainui=True) - self.assertEqual(result, 1) - self._test_ui2.event = Mock(spec_set=PickleEventQueueStub) - result = bb.event.register_UIHhandler(self._test_ui2, mainui=True) - self.assertEqual(result, 2) - event1 = bb.event.OperationStarted() - bb.event.fire_ui_handlers(event1, None) - expected = [call(event1)] - self.assertEqual(self._test_ui1.event.send.call_args_list, - expected) - expected = [call(pickle.dumps(event1))] - self.assertEqual(self._test_ui2.event.sendpickle.call_args_list, - expected) - - def test_fire(self): - """ Test fire method used to trigger class and ui event handlers """ - mask = ["bb.event.ConfigParsed"] - result = bb.event.register("event_handler1", - self._test_process.event_handler1, - mask) - - self._test_ui1.event = Mock(spec_set=EventQueueStub) - result = bb.event.register_UIHhandler(self._test_ui1, mainui=True) - self.assertEqual(result, 1) - - event1 = bb.event.ConfigParsed() - bb.event.fire(event1, None) - expected = [call(event1)] - self.assertEqual(self._test_process.event_handler1.call_args_list, - expected) - self.assertEqual(self._test_ui1.event.send.call_args_list, - expected) - - def test_fire_from_worker(self): - """ Test fire_from_worker method """ - self._test_ui1.event = Mock(spec_set=EventQueueStub) - result = bb.event.register_UIHhandler(self._test_ui1, mainui=True) - self.assertEqual(result, 1) - event1 = bb.event.ConfigParsed() - bb.event.fire_from_worker(event1, None) - expected = [call(event1)] - self.assertEqual(self._test_ui1.event.send.call_args_list, - expected) - - def test_print_ui_queue(self): - """ Test print_ui_queue method """ - event1 = bb.event.OperationStarted() - event2 = bb.event.OperationCompleted(total=123) - bb.event.fire(event1, None) - bb.event.fire(event2, None) - logger = logging.getLogger("BitBake") - logger.addHandler(bb.event.LogHandler()) - logger.info("Test info LogRecord") - logger.warning("Test warning LogRecord") - with self.assertLogs("BitBake", level="INFO") as cm: - bb.event.print_ui_queue() - self.assertEqual(cm.output, - ["INFO:BitBake:Test info LogRecord", - "WARNING:BitBake:Test warning LogRecord"]) - - def _set_threadlock_test_mockups(self): - """ Create UI event handler mockups used in enable and disable - threadlock tests """ - def ui1_event_send(event): - if type(event) is bb.event.ConfigParsed: - self._threadlock_test_calls.append("w1_ui1") - if type(event) is bb.event.OperationStarted: - self._threadlock_test_calls.append("w2_ui1") - time.sleep(2) - - def ui2_event_send(event): - if type(event) is bb.event.ConfigParsed: - self._threadlock_test_calls.append("w1_ui2") - if type(event) is bb.event.OperationStarted: - self._threadlock_test_calls.append("w2_ui2") - time.sleep(2) - - self._threadlock_test_calls = [] - self._test_ui1.event = EventQueueStub() - self._test_ui1.event.send = ui1_event_send - result = bb.event.register_UIHhandler(self._test_ui1, mainui=True) - self.assertEqual(result, 1) - self._test_ui2.event = EventQueueStub() - self._test_ui2.event.send = ui2_event_send - result = bb.event.register_UIHhandler(self._test_ui2, mainui=True) - self.assertEqual(result, 2) - - def _set_and_run_threadlock_test_workers(self): - """ Create and run the workers used to trigger events in enable and - disable threadlock tests """ - worker1 = threading.Thread(target=self._thread_lock_test_worker1) - worker2 = threading.Thread(target=self._thread_lock_test_worker2) - worker1.start() - time.sleep(1) - worker2.start() - worker1.join() - worker2.join() - - def _thread_lock_test_worker1(self): - """ First worker used to fire the ConfigParsed event for enable and - disable threadlocks tests """ - bb.event.fire(bb.event.ConfigParsed(), None) - - def _thread_lock_test_worker2(self): - """ Second worker used to fire the OperationStarted event for enable - and disable threadlocks tests """ - bb.event.fire(bb.event.OperationStarted(), None) - - def test_enable_threadlock(self): - """ Test enable_threadlock method """ - self._set_threadlock_test_mockups() - bb.event.enable_threadlock() - self._set_and_run_threadlock_test_workers() - # Calls to UI handlers should be in order as all the registered - # handlers for the event coming from the first worker should be - # called before processing the event from the second worker. - self.assertEqual(self._threadlock_test_calls, - ["w1_ui1", "w1_ui2", "w2_ui1", "w2_ui2"]) - - def test_disable_threadlock(self): - """ Test disable_threadlock method """ - self._set_threadlock_test_mockups() - bb.event.disable_threadlock() - self._set_and_run_threadlock_test_workers() - # Calls to UI handlers should be intertwined together. Thanks to the - # delay in the registered handlers for the event coming from the first - # worker, the event coming from the second worker starts being - # processed before finishing handling the first worker event. - self.assertEqual(self._threadlock_test_calls, - ["w1_ui1", "w2_ui1", "w1_ui2", "w2_ui2"]) diff --git a/poky/bitbake/lib/bb/tests/fetch.py b/poky/bitbake/lib/bb/tests/fetch.py deleted file mode 100644 index 7d7c5d7..0000000 --- a/poky/bitbake/lib/bb/tests/fetch.py +++ /dev/null @@ -1,1472 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# BitBake Tests for the Fetcher (fetch2/) -# -# Copyright (C) 2012 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -import unittest -import tempfile -import subprocess -import collections -import os -from bb.fetch2 import URI -from bb.fetch2 import FetchMethod -import bb - -def skipIfNoNetwork(): - if os.environ.get("BB_SKIP_NETTESTS") == "yes": - return unittest.skip("Network tests being skipped") - return lambda f: f - -class URITest(unittest.TestCase): - test_uris = { - "http://www.google.com/index.html" : { - 'uri': 'http://www.google.com/index.html', - 'scheme': 'http', - 'hostname': 'www.google.com', - 'port': None, - 'hostport': 'www.google.com', - 'path': '/index.html', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': {}, - 'query': {}, - 'relative': False - }, - "http://www.google.com/index.html;param1=value1" : { - 'uri': 'http://www.google.com/index.html;param1=value1', - 'scheme': 'http', - 'hostname': 'www.google.com', - 'port': None, - 'hostport': 'www.google.com', - 'path': '/index.html', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': { - 'param1': 'value1' - }, - 'query': {}, - 'relative': False - }, - "http://www.example.org/index.html?param1=value1" : { - 'uri': 'http://www.example.org/index.html?param1=value1', - 'scheme': 'http', - 'hostname': 'www.example.org', - 'port': None, - 'hostport': 'www.example.org', - 'path': '/index.html', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': {}, - 'query': { - 'param1': 'value1' - }, - 'relative': False - }, - "http://www.example.org/index.html?qparam1=qvalue1;param2=value2" : { - 'uri': 'http://www.example.org/index.html?qparam1=qvalue1;param2=value2', - 'scheme': 'http', - 'hostname': 'www.example.org', - 'port': None, - 'hostport': 'www.example.org', - 'path': '/index.html', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': { - 'param2': 'value2' - }, - 'query': { - 'qparam1': 'qvalue1' - }, - 'relative': False - }, - "http://www.example.com:8080/index.html" : { - 'uri': 'http://www.example.com:8080/index.html', - 'scheme': 'http', - 'hostname': 'www.example.com', - 'port': 8080, - 'hostport': 'www.example.com:8080', - 'path': '/index.html', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': {}, - 'query': {}, - 'relative': False - }, - "cvs://anoncvs@cvs.handhelds.org/cvs;module=familiar/dist/ipkg" : { - 'uri': 'cvs://anoncvs@cvs.handhelds.org/cvs;module=familiar/dist/ipkg', - 'scheme': 'cvs', - 'hostname': 'cvs.handhelds.org', - 'port': None, - 'hostport': 'cvs.handhelds.org', - 'path': '/cvs', - 'userinfo': 'anoncvs', - 'username': 'anoncvs', - 'password': '', - 'params': { - 'module': 'familiar/dist/ipkg' - }, - 'query': {}, - 'relative': False - }, - "cvs://anoncvs:anonymous@cvs.handhelds.org/cvs;tag=V0-99-81;module=familiar/dist/ipkg": { - 'uri': 'cvs://anoncvs:anonymous@cvs.handhelds.org/cvs;tag=V0-99-81;module=familiar/dist/ipkg', - 'scheme': 'cvs', - 'hostname': 'cvs.handhelds.org', - 'port': None, - 'hostport': 'cvs.handhelds.org', - 'path': '/cvs', - 'userinfo': 'anoncvs:anonymous', - 'username': 'anoncvs', - 'password': 'anonymous', - 'params': collections.OrderedDict([ - ('tag', 'V0-99-81'), - ('module', 'familiar/dist/ipkg') - ]), - 'query': {}, - 'relative': False - }, - "file://example.diff": { # NOTE: Not RFC compliant! - 'uri': 'file:example.diff', - 'scheme': 'file', - 'hostname': '', - 'port': None, - 'hostport': '', - 'path': 'example.diff', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': {}, - 'query': {}, - 'relative': True - }, - "file:example.diff": { # NOTE: RFC compliant version of the former - 'uri': 'file:example.diff', - 'scheme': 'file', - 'hostname': '', - 'port': None, - 'hostport': '', - 'path': 'example.diff', - 'userinfo': '', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': {}, - 'query': {}, - 'relative': True - }, - "file:///tmp/example.diff": { - 'uri': 'file:///tmp/example.diff', - 'scheme': 'file', - 'hostname': '', - 'port': None, - 'hostport': '', - 'path': '/tmp/example.diff', - 'userinfo': '', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': {}, - 'query': {}, - 'relative': False - }, - "git:///path/example.git": { - 'uri': 'git:///path/example.git', - 'scheme': 'git', - 'hostname': '', - 'port': None, - 'hostport': '', - 'path': '/path/example.git', - 'userinfo': '', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': {}, - 'query': {}, - 'relative': False - }, - "git:path/example.git": { - 'uri': 'git:path/example.git', - 'scheme': 'git', - 'hostname': '', - 'port': None, - 'hostport': '', - 'path': 'path/example.git', - 'userinfo': '', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': {}, - 'query': {}, - 'relative': True - }, - "git://example.net/path/example.git": { - 'uri': 'git://example.net/path/example.git', - 'scheme': 'git', - 'hostname': 'example.net', - 'port': None, - 'hostport': 'example.net', - 'path': '/path/example.git', - 'userinfo': '', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': {}, - 'query': {}, - 'relative': False - }, - "http://somesite.net;someparam=1": { - 'uri': 'http://somesite.net;someparam=1', - 'scheme': 'http', - 'hostname': 'somesite.net', - 'port': None, - 'hostport': 'somesite.net', - 'path': '', - 'userinfo': '', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': {"someparam" : "1"}, - 'query': {}, - 'relative': False - }, - "file://somelocation;someparam=1": { - 'uri': 'file:somelocation;someparam=1', - 'scheme': 'file', - 'hostname': '', - 'port': None, - 'hostport': '', - 'path': 'somelocation', - 'userinfo': '', - 'userinfo': '', - 'username': '', - 'password': '', - 'params': {"someparam" : "1"}, - 'query': {}, - 'relative': True - } - - } - - def test_uri(self): - for test_uri, ref in self.test_uris.items(): - uri = URI(test_uri) - - self.assertEqual(str(uri), ref['uri']) - - # expected attributes - self.assertEqual(uri.scheme, ref['scheme']) - - self.assertEqual(uri.userinfo, ref['userinfo']) - self.assertEqual(uri.username, ref['username']) - self.assertEqual(uri.password, ref['password']) - - self.assertEqual(uri.hostname, ref['hostname']) - self.assertEqual(uri.port, ref['port']) - self.assertEqual(uri.hostport, ref['hostport']) - - self.assertEqual(uri.path, ref['path']) - self.assertEqual(uri.params, ref['params']) - - self.assertEqual(uri.relative, ref['relative']) - - def test_dict(self): - for test in self.test_uris.values(): - uri = URI() - - self.assertEqual(uri.scheme, '') - self.assertEqual(uri.userinfo, '') - self.assertEqual(uri.username, '') - self.assertEqual(uri.password, '') - self.assertEqual(uri.hostname, '') - self.assertEqual(uri.port, None) - self.assertEqual(uri.path, '') - self.assertEqual(uri.params, {}) - - - uri.scheme = test['scheme'] - self.assertEqual(uri.scheme, test['scheme']) - - uri.userinfo = test['userinfo'] - self.assertEqual(uri.userinfo, test['userinfo']) - self.assertEqual(uri.username, test['username']) - self.assertEqual(uri.password, test['password']) - - # make sure changing the values doesn't do anything unexpected - uri.username = 'changeme' - self.assertEqual(uri.username, 'changeme') - self.assertEqual(uri.password, test['password']) - uri.password = 'insecure' - self.assertEqual(uri.username, 'changeme') - self.assertEqual(uri.password, 'insecure') - - # reset back after our trickery - uri.userinfo = test['userinfo'] - self.assertEqual(uri.userinfo, test['userinfo']) - self.assertEqual(uri.username, test['username']) - self.assertEqual(uri.password, test['password']) - - uri.hostname = test['hostname'] - self.assertEqual(uri.hostname, test['hostname']) - self.assertEqual(uri.hostport, test['hostname']) - - uri.port = test['port'] - self.assertEqual(uri.port, test['port']) - self.assertEqual(uri.hostport, test['hostport']) - - uri.path = test['path'] - self.assertEqual(uri.path, test['path']) - - uri.params = test['params'] - self.assertEqual(uri.params, test['params']) - - uri.query = test['query'] - self.assertEqual(uri.query, test['query']) - - self.assertEqual(str(uri), test['uri']) - - uri.params = {} - self.assertEqual(uri.params, {}) - self.assertEqual(str(uri), (str(uri).split(";"))[0]) - -class FetcherTest(unittest.TestCase): - - def setUp(self): - self.origdir = os.getcwd() - self.d = bb.data.init() - self.tempdir = tempfile.mkdtemp() - self.dldir = os.path.join(self.tempdir, "download") - os.mkdir(self.dldir) - self.d.setVar("DL_DIR", self.dldir) - self.unpackdir = os.path.join(self.tempdir, "unpacked") - os.mkdir(self.unpackdir) - persistdir = os.path.join(self.tempdir, "persistdata") - self.d.setVar("PERSISTENT_DIR", persistdir) - - def tearDown(self): - os.chdir(self.origdir) - if os.environ.get("BB_TMPDIR_NOCLEAN") == "yes": - print("Not cleaning up %s. Please remove manually." % self.tempdir) - else: - bb.utils.prunedir(self.tempdir) - -class MirrorUriTest(FetcherTest): - - replaceuris = { - ("git://git.invalid.infradead.org/mtd-utils.git;tag=1234567890123456789012345678901234567890", "git://.*/.*", "http://somewhere.org/somedir/") - : "http://somewhere.org/somedir/git2_git.invalid.infradead.org.mtd-utils.git.tar.gz", - ("git://git.invalid.infradead.org/mtd-utils.git;tag=1234567890123456789012345678901234567890", "git://.*/([^/]+/)*([^/]*)", "git://somewhere.org/somedir/\\2;protocol=http") - : "git://somewhere.org/somedir/mtd-utils.git;tag=1234567890123456789012345678901234567890;protocol=http", - ("git://git.invalid.infradead.org/foo/mtd-utils.git;tag=1234567890123456789012345678901234567890", "git://.*/([^/]+/)*([^/]*)", "git://somewhere.org/somedir/\\2;protocol=http") - : "git://somewhere.org/somedir/mtd-utils.git;tag=1234567890123456789012345678901234567890;protocol=http", - ("git://git.invalid.infradead.org/foo/mtd-utils.git;tag=1234567890123456789012345678901234567890", "git://.*/([^/]+/)*([^/]*)", "git://somewhere.org/\\2;protocol=http") - : "git://somewhere.org/mtd-utils.git;tag=1234567890123456789012345678901234567890;protocol=http", - ("git://someserver.org/bitbake;tag=1234567890123456789012345678901234567890", "git://someserver.org/bitbake", "git://git.openembedded.org/bitbake") - : "git://git.openembedded.org/bitbake;tag=1234567890123456789012345678901234567890", - ("file://sstate-xyz.tgz", "file://.*", "file:///somewhere/1234/sstate-cache") - : "file:///somewhere/1234/sstate-cache/sstate-xyz.tgz", - ("file://sstate-xyz.tgz", "file://.*", "file:///somewhere/1234/sstate-cache/") - : "file:///somewhere/1234/sstate-cache/sstate-xyz.tgz", - ("http://somewhere.org/somedir1/somedir2/somefile_1.2.3.tar.gz", "http://.*/.*", "http://somewhere2.org/somedir3") - : "http://somewhere2.org/somedir3/somefile_1.2.3.tar.gz", - ("http://somewhere.org/somedir1/somefile_1.2.3.tar.gz", "http://somewhere.org/somedir1/somefile_1.2.3.tar.gz", "http://somewhere2.org/somedir3/somefile_1.2.3.tar.gz") - : "http://somewhere2.org/somedir3/somefile_1.2.3.tar.gz", - ("http://www.apache.org/dist/subversion/subversion-1.7.1.tar.bz2", "http://www.apache.org/dist", "http://archive.apache.org/dist") - : "http://archive.apache.org/dist/subversion/subversion-1.7.1.tar.bz2", - ("http://www.apache.org/dist/subversion/subversion-1.7.1.tar.bz2", "http://.*/.*", "file:///somepath/downloads/") - : "file:///somepath/downloads/subversion-1.7.1.tar.bz2", - ("git://git.invalid.infradead.org/mtd-utils.git;tag=1234567890123456789012345678901234567890", "git://.*/.*", "git://somewhere.org/somedir/BASENAME;protocol=http") - : "git://somewhere.org/somedir/mtd-utils.git;tag=1234567890123456789012345678901234567890;protocol=http", - ("git://git.invalid.infradead.org/foo/mtd-utils.git;tag=1234567890123456789012345678901234567890", "git://.*/.*", "git://somewhere.org/somedir/BASENAME;protocol=http") - : "git://somewhere.org/somedir/mtd-utils.git;tag=1234567890123456789012345678901234567890;protocol=http", - ("git://git.invalid.infradead.org/foo/mtd-utils.git;tag=1234567890123456789012345678901234567890", "git://.*/.*", "git://somewhere.org/somedir/MIRRORNAME;protocol=http") - : "git://somewhere.org/somedir/git.invalid.infradead.org.foo.mtd-utils.git;tag=1234567890123456789012345678901234567890;protocol=http", - - #Renaming files doesn't work - #("http://somewhere.org/somedir1/somefile_1.2.3.tar.gz", "http://somewhere.org/somedir1/somefile_1.2.3.tar.gz", "http://somewhere2.org/somedir3/somefile_2.3.4.tar.gz") : "http://somewhere2.org/somedir3/somefile_2.3.4.tar.gz" - #("file://sstate-xyz.tgz", "file://.*/.*", "file:///somewhere/1234/sstate-cache") : "file:///somewhere/1234/sstate-cache/sstate-xyz.tgz", - } - - mirrorvar = "http://.*/.* file:///somepath/downloads/ \n" \ - "git://someserver.org/bitbake git://git.openembedded.org/bitbake \n" \ - "https://.*/.* file:///someotherpath/downloads/ \n" \ - "http://.*/.* file:///someotherpath/downloads/ \n" - - def test_urireplace(self): - for k, v in self.replaceuris.items(): - ud = bb.fetch.FetchData(k[0], self.d) - ud.setup_localpath(self.d) - mirrors = bb.fetch2.mirror_from_string("%s %s" % (k[1], k[2])) - newuris, uds = bb.fetch2.build_mirroruris(ud, mirrors, self.d) - self.assertEqual([v], newuris) - - def test_urilist1(self): - fetcher = bb.fetch.FetchData("http://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", self.d) - mirrors = bb.fetch2.mirror_from_string(self.mirrorvar) - uris, uds = bb.fetch2.build_mirroruris(fetcher, mirrors, self.d) - self.assertEqual(uris, ['file:///somepath/downloads/bitbake-1.0.tar.gz', 'file:///someotherpath/downloads/bitbake-1.0.tar.gz']) - - def test_urilist2(self): - # Catch https:// -> files:// bug - fetcher = bb.fetch.FetchData("https://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", self.d) - mirrors = bb.fetch2.mirror_from_string(self.mirrorvar) - uris, uds = bb.fetch2.build_mirroruris(fetcher, mirrors, self.d) - self.assertEqual(uris, ['file:///someotherpath/downloads/bitbake-1.0.tar.gz']) - - def test_mirror_of_mirror(self): - # Test if mirror of a mirror works - mirrorvar = self.mirrorvar + " http://.*/.* http://otherdownloads.yoctoproject.org/downloads/ \n" - mirrorvar = mirrorvar + " http://otherdownloads.yoctoproject.org/.* http://downloads2.yoctoproject.org/downloads/ \n" - fetcher = bb.fetch.FetchData("http://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", self.d) - mirrors = bb.fetch2.mirror_from_string(mirrorvar) - uris, uds = bb.fetch2.build_mirroruris(fetcher, mirrors, self.d) - self.assertEqual(uris, ['file:///somepath/downloads/bitbake-1.0.tar.gz', - 'file:///someotherpath/downloads/bitbake-1.0.tar.gz', - 'http://otherdownloads.yoctoproject.org/downloads/bitbake-1.0.tar.gz', - 'http://downloads2.yoctoproject.org/downloads/bitbake-1.0.tar.gz']) - - recmirrorvar = "https://.*/[^/]* http://AAAA/A/A/A/ \n" \ - "https://.*/[^/]* https://BBBB/B/B/B/ \n" - - def test_recursive(self): - fetcher = bb.fetch.FetchData("https://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", self.d) - mirrors = bb.fetch2.mirror_from_string(self.recmirrorvar) - uris, uds = bb.fetch2.build_mirroruris(fetcher, mirrors, self.d) - self.assertEqual(uris, ['http://AAAA/A/A/A/bitbake/bitbake-1.0.tar.gz', - 'https://BBBB/B/B/B/bitbake/bitbake-1.0.tar.gz', - 'http://AAAA/A/A/A/B/B/bitbake/bitbake-1.0.tar.gz']) - -class FetcherLocalTest(FetcherTest): - def setUp(self): - def touch(fn): - with open(fn, 'a'): - os.utime(fn, None) - - super(FetcherLocalTest, self).setUp() - self.localsrcdir = os.path.join(self.tempdir, 'localsrc') - os.makedirs(self.localsrcdir) - touch(os.path.join(self.localsrcdir, 'a')) - touch(os.path.join(self.localsrcdir, 'b')) - os.makedirs(os.path.join(self.localsrcdir, 'dir')) - touch(os.path.join(self.localsrcdir, 'dir', 'c')) - touch(os.path.join(self.localsrcdir, 'dir', 'd')) - os.makedirs(os.path.join(self.localsrcdir, 'dir', 'subdir')) - touch(os.path.join(self.localsrcdir, 'dir', 'subdir', 'e')) - self.d.setVar("FILESPATH", self.localsrcdir) - - def fetchUnpack(self, uris): - fetcher = bb.fetch.Fetch(uris, self.d) - fetcher.download() - fetcher.unpack(self.unpackdir) - flst = [] - for root, dirs, files in os.walk(self.unpackdir): - for f in files: - flst.append(os.path.relpath(os.path.join(root, f), self.unpackdir)) - flst.sort() - return flst - - def test_local(self): - tree = self.fetchUnpack(['file://a', 'file://dir/c']) - self.assertEqual(tree, ['a', 'dir/c']) - - def test_local_wildcard(self): - tree = self.fetchUnpack(['file://a', 'file://dir/*']) - self.assertEqual(tree, ['a', 'dir/c', 'dir/d', 'dir/subdir/e']) - - def test_local_dir(self): - tree = self.fetchUnpack(['file://a', 'file://dir']) - self.assertEqual(tree, ['a', 'dir/c', 'dir/d', 'dir/subdir/e']) - - def test_local_subdir(self): - tree = self.fetchUnpack(['file://dir/subdir']) - self.assertEqual(tree, ['dir/subdir/e']) - - def test_local_subdir_file(self): - tree = self.fetchUnpack(['file://dir/subdir/e']) - self.assertEqual(tree, ['dir/subdir/e']) - - def test_local_subdirparam(self): - tree = self.fetchUnpack(['file://a;subdir=bar', 'file://dir;subdir=foo/moo']) - self.assertEqual(tree, ['bar/a', 'foo/moo/dir/c', 'foo/moo/dir/d', 'foo/moo/dir/subdir/e']) - - def test_local_deepsubdirparam(self): - tree = self.fetchUnpack(['file://dir/subdir/e;subdir=bar']) - self.assertEqual(tree, ['bar/dir/subdir/e']) - - def test_local_absolutedir(self): - # Unpacking to an absolute path that is a subdirectory of the root - # should work - tree = self.fetchUnpack(['file://a;subdir=%s' % os.path.join(self.unpackdir, 'bar')]) - - # Unpacking to an absolute path outside of the root should fail - with self.assertRaises(bb.fetch2.UnpackError): - self.fetchUnpack(['file://a;subdir=/bin/sh']) - -class FetcherNetworkTest(FetcherTest): - @skipIfNoNetwork() - def test_fetch(self): - fetcher = bb.fetch.Fetch(["http://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", "http://downloads.yoctoproject.org/releases/bitbake/bitbake-1.1.tar.gz"], self.d) - fetcher.download() - self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749) - self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.1.tar.gz"), 57892) - self.d.setVar("BB_NO_NETWORK", "1") - fetcher = bb.fetch.Fetch(["http://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", "http://downloads.yoctoproject.org/releases/bitbake/bitbake-1.1.tar.gz"], self.d) - fetcher.download() - fetcher.unpack(self.unpackdir) - self.assertEqual(len(os.listdir(self.unpackdir + "/bitbake-1.0/")), 9) - self.assertEqual(len(os.listdir(self.unpackdir + "/bitbake-1.1/")), 9) - - @skipIfNoNetwork() - def test_fetch_mirror(self): - self.d.setVar("MIRRORS", "http://.*/.* http://downloads.yoctoproject.org/releases/bitbake") - fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz"], self.d) - fetcher.download() - self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749) - - @skipIfNoNetwork() - def test_fetch_mirror_of_mirror(self): - self.d.setVar("MIRRORS", "http://.*/.* http://invalid2.yoctoproject.org/ \n http://invalid2.yoctoproject.org/.* http://downloads.yoctoproject.org/releases/bitbake") - fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz"], self.d) - fetcher.download() - self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749) - - @skipIfNoNetwork() - def test_fetch_file_mirror_of_mirror(self): - self.d.setVar("MIRRORS", "http://.*/.* file:///some1where/ \n file:///some1where/.* file://some2where/ \n file://some2where/.* http://downloads.yoctoproject.org/releases/bitbake") - fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz"], self.d) - os.mkdir(self.dldir + "/some2where") - fetcher.download() - self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749) - - @skipIfNoNetwork() - def test_fetch_premirror(self): - self.d.setVar("PREMIRRORS", "http://.*/.* http://downloads.yoctoproject.org/releases/bitbake") - fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz"], self.d) - fetcher.download() - self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749) - - @skipIfNoNetwork() - def gitfetcher(self, url1, url2): - def checkrevision(self, fetcher): - fetcher.unpack(self.unpackdir) - revision = bb.process.run("git rev-parse HEAD", shell=True, cwd=self.unpackdir + "/git")[0].strip() - self.assertEqual(revision, "270a05b0b4ba0959fe0624d2a4885d7b70426da5") - - self.d.setVar("BB_GENERATE_MIRROR_TARBALLS", "1") - self.d.setVar("SRCREV", "270a05b0b4ba0959fe0624d2a4885d7b70426da5") - fetcher = bb.fetch.Fetch([url1], self.d) - fetcher.download() - checkrevision(self, fetcher) - # Wipe out the dldir clone and the unpacked source, turn off the network and check mirror tarball works - bb.utils.prunedir(self.dldir + "/git2/") - bb.utils.prunedir(self.unpackdir) - self.d.setVar("BB_NO_NETWORK", "1") - fetcher = bb.fetch.Fetch([url2], self.d) - fetcher.download() - checkrevision(self, fetcher) - - @skipIfNoNetwork() - def test_gitfetch(self): - url1 = url2 = "git://git.openembedded.org/bitbake" - self.gitfetcher(url1, url2) - - @skipIfNoNetwork() - def test_gitfetch_goodsrcrev(self): - # SRCREV is set but matches rev= parameter - url1 = url2 = "git://git.openembedded.org/bitbake;rev=270a05b0b4ba0959fe0624d2a4885d7b70426da5" - self.gitfetcher(url1, url2) - - @skipIfNoNetwork() - def test_gitfetch_badsrcrev(self): - # SRCREV is set but does not match rev= parameter - url1 = url2 = "git://git.openembedded.org/bitbake;rev=dead05b0b4ba0959fe0624d2a4885d7b70426da5" - self.assertRaises(bb.fetch.FetchError, self.gitfetcher, url1, url2) - - @skipIfNoNetwork() - def test_gitfetch_tagandrev(self): - # SRCREV is set but does not match rev= parameter - url1 = url2 = "git://git.openembedded.org/bitbake;rev=270a05b0b4ba0959fe0624d2a4885d7b70426da5;tag=270a05b0b4ba0959fe0624d2a4885d7b70426da5" - self.assertRaises(bb.fetch.FetchError, self.gitfetcher, url1, url2) - - @skipIfNoNetwork() - def test_gitfetch_localusehead(self): - # Create dummy local Git repo - src_dir = tempfile.mkdtemp(dir=self.tempdir, - prefix='gitfetch_localusehead_') - src_dir = os.path.abspath(src_dir) - bb.process.run("git init", cwd=src_dir) - bb.process.run("git commit --allow-empty -m'Dummy commit'", - cwd=src_dir) - # Use other branch than master - bb.process.run("git checkout -b my-devel", cwd=src_dir) - bb.process.run("git commit --allow-empty -m'Dummy commit 2'", - cwd=src_dir) - stdout = bb.process.run("git rev-parse HEAD", cwd=src_dir) - orig_rev = stdout[0].strip() - - # Fetch and check revision - self.d.setVar("SRCREV", "AUTOINC") - url = "git://" + src_dir + ";protocol=file;usehead=1" - fetcher = bb.fetch.Fetch([url], self.d) - fetcher.download() - fetcher.unpack(self.unpackdir) - stdout = bb.process.run("git rev-parse HEAD", - cwd=os.path.join(self.unpackdir, 'git')) - unpack_rev = stdout[0].strip() - self.assertEqual(orig_rev, unpack_rev) - - @skipIfNoNetwork() - def test_gitfetch_remoteusehead(self): - url = "git://git.openembedded.org/bitbake;usehead=1" - self.assertRaises(bb.fetch.ParameterError, self.gitfetcher, url, url) - - @skipIfNoNetwork() - def test_gitfetch_premirror(self): - url1 = "git://git.openembedded.org/bitbake" - url2 = "git://someserver.org/bitbake" - self.d.setVar("PREMIRRORS", "git://someserver.org/bitbake git://git.openembedded.org/bitbake \n") - self.gitfetcher(url1, url2) - - @skipIfNoNetwork() - def test_gitfetch_premirror2(self): - url1 = url2 = "git://someserver.org/bitbake" - self.d.setVar("PREMIRRORS", "git://someserver.org/bitbake git://git.openembedded.org/bitbake \n") - self.gitfetcher(url1, url2) - - @skipIfNoNetwork() - def test_gitfetch_premirror3(self): - realurl = "git://git.openembedded.org/bitbake" - dummyurl = "git://someserver.org/bitbake" - self.sourcedir = self.unpackdir.replace("unpacked", "sourcemirror.git") - os.chdir(self.tempdir) - bb.process.run("git clone %s %s 2> /dev/null" % (realurl, self.sourcedir), shell=True) - self.d.setVar("PREMIRRORS", "%s git://%s;protocol=file \n" % (dummyurl, self.sourcedir)) - self.gitfetcher(dummyurl, dummyurl) - - @skipIfNoNetwork() - def test_git_submodule(self): - fetcher = bb.fetch.Fetch(["gitsm://git.yoctoproject.org/git-submodule-test;rev=f12e57f2edf0aa534cf1616fa983d165a92b0842"], self.d) - fetcher.download() - # Previous cwd has been deleted - os.chdir(os.path.dirname(self.unpackdir)) - fetcher.unpack(self.unpackdir) - - -class TrustedNetworksTest(FetcherTest): - def test_trusted_network(self): - # Ensure trusted_network returns False when the host IS in the list. - url = "git://Someserver.org/foo;rev=1" - self.d.setVar("BB_ALLOWED_NETWORKS", "server1.org someserver.org server2.org server3.org") - self.assertTrue(bb.fetch.trusted_network(self.d, url)) - - def test_wild_trusted_network(self): - # Ensure trusted_network returns true when the *.host IS in the list. - url = "git://Someserver.org/foo;rev=1" - self.d.setVar("BB_ALLOWED_NETWORKS", "server1.org *.someserver.org server2.org server3.org") - self.assertTrue(bb.fetch.trusted_network(self.d, url)) - - def test_prefix_wild_trusted_network(self): - # Ensure trusted_network returns true when the prefix matches *.host. - url = "git://git.Someserver.org/foo;rev=1" - self.d.setVar("BB_ALLOWED_NETWORKS", "server1.org *.someserver.org server2.org server3.org") - self.assertTrue(bb.fetch.trusted_network(self.d, url)) - - def test_two_prefix_wild_trusted_network(self): - # Ensure trusted_network returns true when the prefix matches *.host. - url = "git://something.git.Someserver.org/foo;rev=1" - self.d.setVar("BB_ALLOWED_NETWORKS", "server1.org *.someserver.org server2.org server3.org") - self.assertTrue(bb.fetch.trusted_network(self.d, url)) - - def test_port_trusted_network(self): - # Ensure trusted_network returns True, even if the url specifies a port. - url = "git://someserver.org:8080/foo;rev=1" - self.d.setVar("BB_ALLOWED_NETWORKS", "someserver.org") - self.assertTrue(bb.fetch.trusted_network(self.d, url)) - - def test_untrusted_network(self): - # Ensure trusted_network returns False when the host is NOT in the list. - url = "git://someserver.org/foo;rev=1" - self.d.setVar("BB_ALLOWED_NETWORKS", "server1.org server2.org server3.org") - self.assertFalse(bb.fetch.trusted_network(self.d, url)) - - def test_wild_untrusted_network(self): - # Ensure trusted_network returns False when the host is NOT in the list. - url = "git://*.someserver.org/foo;rev=1" - self.d.setVar("BB_ALLOWED_NETWORKS", "server1.org server2.org server3.org") - self.assertFalse(bb.fetch.trusted_network(self.d, url)) - -class URLHandle(unittest.TestCase): - - datatable = { - "http://www.google.com/index.html" : ('http', 'www.google.com', '/index.html', '', '', {}), - "cvs://anoncvs@cvs.handhelds.org/cvs;module=familiar/dist/ipkg" : ('cvs', 'cvs.handhelds.org', '/cvs', 'anoncvs', '', {'module': 'familiar/dist/ipkg'}), - "cvs://anoncvs:anonymous@cvs.handhelds.org/cvs;tag=V0-99-81;module=familiar/dist/ipkg" : ('cvs', 'cvs.handhelds.org', '/cvs', 'anoncvs', 'anonymous', collections.OrderedDict([('tag', 'V0-99-81'), ('module', 'familiar/dist/ipkg')])), - "git://git.openembedded.org/bitbake;branch=@foo" : ('git', 'git.openembedded.org', '/bitbake', '', '', {'branch': '@foo'}), - "file://somelocation;someparam=1": ('file', '', 'somelocation', '', '', {'someparam': '1'}), - } - # we require a pathname to encodeurl but users can still pass such urls to - # decodeurl and we need to handle them - decodedata = datatable.copy() - decodedata.update({ - "http://somesite.net;someparam=1": ('http', 'somesite.net', '', '', '', {'someparam': '1'}), - }) - - def test_decodeurl(self): - for k, v in self.decodedata.items(): - result = bb.fetch.decodeurl(k) - self.assertEqual(result, v) - - def test_encodeurl(self): - for k, v in self.datatable.items(): - result = bb.fetch.encodeurl(v) - self.assertEqual(result, k) - -class FetchLatestVersionTest(FetcherTest): - - test_git_uris = { - # version pattern "X.Y.Z" - ("mx-1.0", "git://github.com/clutter-project/mx.git;branch=mx-1.4", "9b1db6b8060bd00b121a692f942404a24ae2960f", "") - : "1.99.4", - # version pattern "vX.Y" - ("mtd-utils", "git://git.infradead.org/mtd-utils.git", "ca39eb1d98e736109c64ff9c1aa2a6ecca222d8f", "") - : "1.5.0", - # version pattern "pkg_name-X.Y" - ("presentproto", "git://anongit.freedesktop.org/git/xorg/proto/presentproto", "24f3a56e541b0a9e6c6ee76081f441221a120ef9", "") - : "1.0", - # version pattern "pkg_name-vX.Y.Z" - ("dtc", "git://git.qemu.org/dtc.git", "65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf", "") - : "1.4.0", - # combination version pattern - ("sysprof", "git://git.gnome.org/sysprof", "cd44ee6644c3641507fb53b8a2a69137f2971219", "") - : "1.2.0", - ("u-boot-mkimage", "git://git.denx.de/u-boot.git;branch=master;protocol=git", "62c175fbb8a0f9a926c88294ea9f7e88eb898f6c", "") - : "2014.01", - # version pattern "yyyymmdd" - ("mobile-broadband-provider-info", "git://git.gnome.org/mobile-broadband-provider-info", "4ed19e11c2975105b71b956440acdb25d46a347d", "") - : "20120614", - # packages with a valid UPSTREAM_CHECK_GITTAGREGEX - ("xf86-video-omap", "git://anongit.freedesktop.org/xorg/driver/xf86-video-omap", "ae0394e687f1a77e966cf72f895da91840dffb8f", "(?P<pver>(\d+\.(\d\.?)*))") - : "0.4.3", - ("build-appliance-image", "git://git.yoctoproject.org/poky", "b37dd451a52622d5b570183a81583cc34c2ff555", "(?P<pver>(([0-9][\.|_]?)+[0-9]))") - : "11.0.0", - ("chkconfig-alternatives-native", "git://github.com/kergoth/chkconfig;branch=sysroot", "cd437ecbd8986c894442f8fce1e0061e20f04dee", "chkconfig\-(?P<pver>((\d+[\.\-_]*)+))") - : "1.3.59", - ("remake", "git://github.com/rocky/remake.git", "f05508e521987c8494c92d9c2871aec46307d51d", "(?P<pver>(\d+\.(\d+\.)*\d*(\+dbg\d+(\.\d+)*)*))") - : "3.82+dbg0.9", - } - - test_wget_uris = { - # packages with versions inside directory name - ("util-linux", "http://kernel.org/pub/linux/utils/util-linux/v2.23/util-linux-2.24.2.tar.bz2", "", "") - : "2.24.2", - ("enchant", "http://www.abisource.com/downloads/enchant/1.6.0/enchant-1.6.0.tar.gz", "", "") - : "1.6.0", - ("cmake", "http://www.cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz", "", "") - : "2.8.12.1", - # packages with versions only in current directory - ("eglic", "http://downloads.yoctoproject.org/releases/eglibc/eglibc-2.18-svnr23787.tar.bz2", "", "") - : "2.19", - ("gnu-config", "http://downloads.yoctoproject.org/releases/gnu-config/gnu-config-20120814.tar.bz2", "", "") - : "20120814", - # packages with "99" in the name of possible version - ("pulseaudio", "http://freedesktop.org/software/pulseaudio/releases/pulseaudio-4.0.tar.xz", "", "") - : "5.0", - ("xserver-xorg", "http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-1.15.1.tar.bz2", "", "") - : "1.15.1", - # packages with valid UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX - ("cups", "http://www.cups.org/software/1.7.2/cups-1.7.2-source.tar.bz2", "https://github.com/apple/cups/releases", "(?P<name>cups\-)(?P<pver>((\d+[\.\-_]*)+))\-source\.tar\.gz") - : "2.0.0", - ("db", "http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz", "http://www.oracle.com/technetwork/products/berkeleydb/downloads/index-082944.html", "http://download.oracle.com/otn/berkeley-db/(?P<name>db-)(?P<pver>((\d+[\.\-_]*)+))\.tar\.gz") - : "6.1.19", - } - - @skipIfNoNetwork() - def test_git_latest_versionstring(self): - for k, v in self.test_git_uris.items(): - self.d.setVar("PN", k[0]) - self.d.setVar("SRCREV", k[2]) - self.d.setVar("UPSTREAM_CHECK_GITTAGREGEX", k[3]) - ud = bb.fetch2.FetchData(k[1], self.d) - pupver= ud.method.latest_versionstring(ud, self.d) - verstring = pupver[0] - self.assertTrue(verstring, msg="Could not find upstream version") - r = bb.utils.vercmp_string(v, verstring) - self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s <= %s" % (k[0], v, verstring)) - - @skipIfNoNetwork() - def test_wget_latest_versionstring(self): - for k, v in self.test_wget_uris.items(): - self.d.setVar("PN", k[0]) - self.d.setVar("UPSTREAM_CHECK_URI", k[2]) - self.d.setVar("UPSTREAM_CHECK_REGEX", k[3]) - ud = bb.fetch2.FetchData(k[1], self.d) - pupver = ud.method.latest_versionstring(ud, self.d) - verstring = pupver[0] - self.assertTrue(verstring, msg="Could not find upstream version") - r = bb.utils.vercmp_string(v, verstring) - self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s <= %s" % (k[0], v, verstring)) - - -class FetchCheckStatusTest(FetcherTest): - test_wget_uris = ["http://www.cups.org/software/1.7.2/cups-1.7.2-source.tar.bz2", - "http://www.cups.org/", - "http://downloads.yoctoproject.org/releases/sato/sato-engine-0.1.tar.gz", - "http://downloads.yoctoproject.org/releases/sato/sato-engine-0.2.tar.gz", - "http://downloads.yoctoproject.org/releases/sato/sato-engine-0.3.tar.gz", - "https://yoctoproject.org/", - "https://yoctoproject.org/documentation", - "http://downloads.yoctoproject.org/releases/opkg/opkg-0.1.7.tar.gz", - "http://downloads.yoctoproject.org/releases/opkg/opkg-0.3.0.tar.gz", - "ftp://sourceware.org/pub/libffi/libffi-1.20.tar.gz", - "http://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz", - "https://ftp.gnu.org/gnu/chess/gnuchess-5.08.tar.gz", - "https://ftp.gnu.org/gnu/gmp/gmp-4.0.tar.gz", - # GitHub releases are hosted on Amazon S3, which doesn't support HEAD - "https://github.com/kergoth/tslib/releases/download/1.1/tslib-1.1.tar.xz" - ] - - @skipIfNoNetwork() - def test_wget_checkstatus(self): - fetch = bb.fetch2.Fetch(self.test_wget_uris, self.d) - for u in self.test_wget_uris: - with self.subTest(url=u): - ud = fetch.ud[u] - m = ud.method - ret = m.checkstatus(fetch, ud, self.d) - self.assertTrue(ret, msg="URI %s, can't check status" % (u)) - - @skipIfNoNetwork() - def test_wget_checkstatus_connection_cache(self): - from bb.fetch2 import FetchConnectionCache - - connection_cache = FetchConnectionCache() - fetch = bb.fetch2.Fetch(self.test_wget_uris, self.d, - connection_cache = connection_cache) - - for u in self.test_wget_uris: - with self.subTest(url=u): - ud = fetch.ud[u] - m = ud.method - ret = m.checkstatus(fetch, ud, self.d) - self.assertTrue(ret, msg="URI %s, can't check status" % (u)) - - connection_cache.close_connections() - - -class GitMakeShallowTest(FetcherTest): - bitbake_dir = os.path.join(os.path.dirname(os.path.join(__file__)), '..', '..', '..') - make_shallow_path = os.path.join(bitbake_dir, 'bin', 'git-make-shallow') - - def setUp(self): - FetcherTest.setUp(self) - self.gitdir = os.path.join(self.tempdir, 'gitshallow') - bb.utils.mkdirhier(self.gitdir) - bb.process.run('git init', cwd=self.gitdir) - - def assertRefs(self, expected_refs): - actual_refs = self.git(['for-each-ref', '--format=%(refname)']).splitlines() - full_expected = self.git(['rev-parse', '--symbolic-full-name'] + expected_refs).splitlines() - self.assertEqual(sorted(full_expected), sorted(actual_refs)) - - def assertRevCount(self, expected_count, args=None): - if args is None: - args = ['HEAD'] - revs = self.git(['rev-list'] + args) - actual_count = len(revs.splitlines()) - self.assertEqual(expected_count, actual_count, msg='Object count `%d` is not the expected `%d`' % (actual_count, expected_count)) - - def git(self, cmd): - if isinstance(cmd, str): - cmd = 'git ' + cmd - else: - cmd = ['git'] + cmd - return bb.process.run(cmd, cwd=self.gitdir)[0] - - def make_shallow(self, args=None): - if args is None: - args = ['HEAD'] - return bb.process.run([self.make_shallow_path] + args, cwd=self.gitdir) - - def add_empty_file(self, path, msg=None): - if msg is None: - msg = path - open(os.path.join(self.gitdir, path), 'w').close() - self.git(['add', path]) - self.git(['commit', '-m', msg, path]) - - def test_make_shallow_single_branch_no_merge(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.assertRevCount(2) - self.make_shallow() - self.assertRevCount(1) - - def test_make_shallow_single_branch_one_merge(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.git('checkout -b a_branch') - self.add_empty_file('c') - self.git('checkout master') - self.add_empty_file('d') - self.git('merge --no-ff --no-edit a_branch') - self.git('branch -d a_branch') - self.add_empty_file('e') - self.assertRevCount(6) - self.make_shallow(['HEAD~2']) - self.assertRevCount(5) - - def test_make_shallow_at_merge(self): - self.add_empty_file('a') - self.git('checkout -b a_branch') - self.add_empty_file('b') - self.git('checkout master') - self.git('merge --no-ff --no-edit a_branch') - self.git('branch -d a_branch') - self.assertRevCount(3) - self.make_shallow() - self.assertRevCount(1) - - def test_make_shallow_annotated_tag(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.git('tag -a -m a_tag a_tag') - self.assertRevCount(2) - self.make_shallow(['a_tag']) - self.assertRevCount(1) - - def test_make_shallow_multi_ref(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.git('checkout -b a_branch') - self.add_empty_file('c') - self.git('checkout master') - self.add_empty_file('d') - self.git('checkout -b a_branch_2') - self.add_empty_file('a_tag') - self.git('tag a_tag') - self.git('checkout master') - self.git('branch -D a_branch_2') - self.add_empty_file('e') - self.assertRevCount(6, ['--all']) - self.make_shallow() - self.assertRevCount(5, ['--all']) - - def test_make_shallow_multi_ref_trim(self): - self.add_empty_file('a') - self.git('checkout -b a_branch') - self.add_empty_file('c') - self.git('checkout master') - self.assertRevCount(1) - self.assertRevCount(2, ['--all']) - self.assertRefs(['master', 'a_branch']) - self.make_shallow(['-r', 'master', 'HEAD']) - self.assertRevCount(1, ['--all']) - self.assertRefs(['master']) - - def test_make_shallow_noop(self): - self.add_empty_file('a') - self.assertRevCount(1) - self.make_shallow() - self.assertRevCount(1) - - @skipIfNoNetwork() - def test_make_shallow_bitbake(self): - self.git('remote add origin https://github.com/openembedded/bitbake') - self.git('fetch --tags origin') - orig_revs = len(self.git('rev-list --all').splitlines()) - self.make_shallow(['refs/tags/1.10.0']) - self.assertRevCount(orig_revs - 1746, ['--all']) - -class GitShallowTest(FetcherTest): - def setUp(self): - FetcherTest.setUp(self) - self.gitdir = os.path.join(self.tempdir, 'git') - self.srcdir = os.path.join(self.tempdir, 'gitsource') - - bb.utils.mkdirhier(self.srcdir) - self.git('init', cwd=self.srcdir) - self.d.setVar('WORKDIR', self.tempdir) - self.d.setVar('S', self.gitdir) - self.d.delVar('PREMIRRORS') - self.d.delVar('MIRRORS') - - uri = 'git://%s;protocol=file;subdir=${S}' % self.srcdir - self.d.setVar('SRC_URI', uri) - self.d.setVar('SRCREV', '${AUTOREV}') - self.d.setVar('AUTOREV', '${@bb.fetch2.get_autorev(d)}') - - self.d.setVar('BB_GIT_SHALLOW', '1') - self.d.setVar('BB_GENERATE_MIRROR_TARBALLS', '0') - self.d.setVar('BB_GENERATE_SHALLOW_TARBALLS', '1') - - def assertRefs(self, expected_refs, cwd=None): - if cwd is None: - cwd = self.gitdir - actual_refs = self.git(['for-each-ref', '--format=%(refname)'], cwd=cwd).splitlines() - full_expected = self.git(['rev-parse', '--symbolic-full-name'] + expected_refs, cwd=cwd).splitlines() - self.assertEqual(sorted(set(full_expected)), sorted(set(actual_refs))) - - def assertRevCount(self, expected_count, args=None, cwd=None): - if args is None: - args = ['HEAD'] - if cwd is None: - cwd = self.gitdir - revs = self.git(['rev-list'] + args, cwd=cwd) - actual_count = len(revs.splitlines()) - self.assertEqual(expected_count, actual_count, msg='Object count `%d` is not the expected `%d`' % (actual_count, expected_count)) - - def git(self, cmd, cwd=None): - if isinstance(cmd, str): - cmd = 'git ' + cmd - else: - cmd = ['git'] + cmd - if cwd is None: - cwd = self.gitdir - return bb.process.run(cmd, cwd=cwd)[0] - - def add_empty_file(self, path, cwd=None, msg=None): - if msg is None: - msg = path - if cwd is None: - cwd = self.srcdir - open(os.path.join(cwd, path), 'w').close() - self.git(['add', path], cwd) - self.git(['commit', '-m', msg, path], cwd) - - def fetch(self, uri=None): - if uri is None: - uris = self.d.getVar('SRC_URI', True).split() - uri = uris[0] - d = self.d - else: - d = self.d.createCopy() - d.setVar('SRC_URI', uri) - uri = d.expand(uri) - uris = [uri] - - fetcher = bb.fetch2.Fetch(uris, d) - fetcher.download() - ud = fetcher.ud[uri] - return fetcher, ud - - def fetch_and_unpack(self, uri=None): - fetcher, ud = self.fetch(uri) - fetcher.unpack(self.d.getVar('WORKDIR')) - assert os.path.exists(self.d.getVar('S')) - return fetcher, ud - - def fetch_shallow(self, uri=None, disabled=False, keepclone=False): - """Fetch a uri, generating a shallow tarball, then unpack using it""" - fetcher, ud = self.fetch_and_unpack(uri) - assert os.path.exists(ud.clonedir), 'Git clone in DLDIR (%s) does not exist for uri %s' % (ud.clonedir, uri) - - # Confirm that the unpacked repo is unshallow - if not disabled: - assert os.path.exists(os.path.join(self.dldir, ud.mirrortarballs[0])) - - # fetch and unpack, from the shallow tarball - bb.utils.remove(self.gitdir, recurse=True) - bb.utils.remove(ud.clonedir, recurse=True) - - # confirm that the unpacked repo is used when no git clone or git - # mirror tarball is available - fetcher, ud = self.fetch_and_unpack(uri) - if not disabled: - assert os.path.exists(os.path.join(self.gitdir, '.git', 'shallow')), 'Unpacked git repository at %s is not shallow' % self.gitdir - else: - assert not os.path.exists(os.path.join(self.gitdir, '.git', 'shallow')), 'Unpacked git repository at %s is shallow' % self.gitdir - return fetcher, ud - - def test_shallow_disabled(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.assertRevCount(2, cwd=self.srcdir) - - self.d.setVar('BB_GIT_SHALLOW', '0') - self.fetch_shallow(disabled=True) - self.assertRevCount(2) - - def test_shallow_nobranch(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.assertRevCount(2, cwd=self.srcdir) - - srcrev = self.git('rev-parse HEAD', cwd=self.srcdir).strip() - self.d.setVar('SRCREV', srcrev) - uri = self.d.getVar('SRC_URI', True).split()[0] - uri = '%s;nobranch=1;bare=1' % uri - - self.fetch_shallow(uri) - self.assertRevCount(1) - - # shallow refs are used to ensure the srcrev sticks around when we - # have no other branches referencing it - self.assertRefs(['refs/shallow/default']) - - def test_shallow_default_depth_1(self): - # Create initial git repo - self.add_empty_file('a') - self.add_empty_file('b') - self.assertRevCount(2, cwd=self.srcdir) - - self.fetch_shallow() - self.assertRevCount(1) - - def test_shallow_depth_0_disables(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.assertRevCount(2, cwd=self.srcdir) - - self.d.setVar('BB_GIT_SHALLOW_DEPTH', '0') - self.fetch_shallow(disabled=True) - self.assertRevCount(2) - - def test_shallow_depth_default_override(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.assertRevCount(2, cwd=self.srcdir) - - self.d.setVar('BB_GIT_SHALLOW_DEPTH', '2') - self.d.setVar('BB_GIT_SHALLOW_DEPTH_default', '1') - self.fetch_shallow() - self.assertRevCount(1) - - def test_shallow_depth_default_override_disable(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.add_empty_file('c') - self.assertRevCount(3, cwd=self.srcdir) - - self.d.setVar('BB_GIT_SHALLOW_DEPTH', '0') - self.d.setVar('BB_GIT_SHALLOW_DEPTH_default', '2') - self.fetch_shallow() - self.assertRevCount(2) - - def test_current_shallow_out_of_date_clone(self): - # Create initial git repo - self.add_empty_file('a') - self.add_empty_file('b') - self.add_empty_file('c') - self.assertRevCount(3, cwd=self.srcdir) - - # Clone and generate mirror tarball - fetcher, ud = self.fetch() - - # Ensure we have a current mirror tarball, but an out of date clone - self.git('update-ref refs/heads/master refs/heads/master~1', cwd=ud.clonedir) - self.assertRevCount(2, cwd=ud.clonedir) - - # Fetch and unpack, from the current tarball, not the out of date clone - bb.utils.remove(self.gitdir, recurse=True) - fetcher, ud = self.fetch() - fetcher.unpack(self.d.getVar('WORKDIR')) - self.assertRevCount(1) - - def test_shallow_single_branch_no_merge(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.assertRevCount(2, cwd=self.srcdir) - - self.fetch_shallow() - self.assertRevCount(1) - assert os.path.exists(os.path.join(self.gitdir, 'a')) - assert os.path.exists(os.path.join(self.gitdir, 'b')) - - def test_shallow_no_dangling(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.assertRevCount(2, cwd=self.srcdir) - - self.fetch_shallow() - self.assertRevCount(1) - assert not self.git('fsck --dangling') - - def test_shallow_srcrev_branch_truncation(self): - self.add_empty_file('a') - self.add_empty_file('b') - b_commit = self.git('rev-parse HEAD', cwd=self.srcdir).rstrip() - self.add_empty_file('c') - self.assertRevCount(3, cwd=self.srcdir) - - self.d.setVar('SRCREV', b_commit) - self.fetch_shallow() - - # The 'c' commit was removed entirely, and 'a' was removed from history - self.assertRevCount(1, ['--all']) - self.assertEqual(self.git('rev-parse HEAD').strip(), b_commit) - assert os.path.exists(os.path.join(self.gitdir, 'a')) - assert os.path.exists(os.path.join(self.gitdir, 'b')) - assert not os.path.exists(os.path.join(self.gitdir, 'c')) - - def test_shallow_ref_pruning(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.git('branch a_branch', cwd=self.srcdir) - self.assertRefs(['master', 'a_branch'], cwd=self.srcdir) - self.assertRevCount(2, cwd=self.srcdir) - - self.fetch_shallow() - - self.assertRefs(['master', 'origin/master']) - self.assertRevCount(1) - - def test_shallow_submodules(self): - self.add_empty_file('a') - self.add_empty_file('b') - - smdir = os.path.join(self.tempdir, 'gitsubmodule') - bb.utils.mkdirhier(smdir) - self.git('init', cwd=smdir) - self.add_empty_file('asub', cwd=smdir) - - self.git('submodule init', cwd=self.srcdir) - self.git('submodule add file://%s' % smdir, cwd=self.srcdir) - self.git('submodule update', cwd=self.srcdir) - self.git('commit -m submodule -a', cwd=self.srcdir) - - uri = 'gitsm://%s;protocol=file;subdir=${S}' % self.srcdir - fetcher, ud = self.fetch_shallow(uri) - - self.assertRevCount(1) - assert './.git/modules/' in bb.process.run('tar -tzf %s' % os.path.join(self.dldir, ud.mirrortarballs[0]))[0] - assert os.listdir(os.path.join(self.gitdir, 'gitsubmodule')) - - if any(os.path.exists(os.path.join(p, 'git-annex')) for p in os.environ.get('PATH').split(':')): - def test_shallow_annex(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.git('annex init', cwd=self.srcdir) - open(os.path.join(self.srcdir, 'c'), 'w').close() - self.git('annex add c', cwd=self.srcdir) - self.git('commit -m annex-c -a', cwd=self.srcdir) - bb.process.run('chmod u+w -R %s' % os.path.join(self.srcdir, '.git', 'annex')) - - uri = 'gitannex://%s;protocol=file;subdir=${S}' % self.srcdir - fetcher, ud = self.fetch_shallow(uri) - - self.assertRevCount(1) - assert './.git/annex/' in bb.process.run('tar -tzf %s' % os.path.join(self.dldir, ud.mirrortarballs[0]))[0] - assert os.path.exists(os.path.join(self.gitdir, 'c')) - - def test_shallow_multi_one_uri(self): - # Create initial git repo - self.add_empty_file('a') - self.add_empty_file('b') - self.git('checkout -b a_branch', cwd=self.srcdir) - self.add_empty_file('c') - self.add_empty_file('d') - self.git('checkout master', cwd=self.srcdir) - self.git('tag v0.0 a_branch', cwd=self.srcdir) - self.add_empty_file('e') - self.git('merge --no-ff --no-edit a_branch', cwd=self.srcdir) - self.add_empty_file('f') - self.assertRevCount(7, cwd=self.srcdir) - - uri = self.d.getVar('SRC_URI', True).split()[0] - uri = '%s;branch=master,a_branch;name=master,a_branch' % uri - - self.d.setVar('BB_GIT_SHALLOW_DEPTH', '0') - self.d.setVar('BB_GIT_SHALLOW_REVS', 'v0.0') - self.d.setVar('SRCREV_master', '${AUTOREV}') - self.d.setVar('SRCREV_a_branch', '${AUTOREV}') - - self.fetch_shallow(uri) - - self.assertRevCount(5) - self.assertRefs(['master', 'origin/master', 'origin/a_branch']) - - def test_shallow_multi_one_uri_depths(self): - # Create initial git repo - self.add_empty_file('a') - self.add_empty_file('b') - self.git('checkout -b a_branch', cwd=self.srcdir) - self.add_empty_file('c') - self.add_empty_file('d') - self.git('checkout master', cwd=self.srcdir) - self.add_empty_file('e') - self.git('merge --no-ff --no-edit a_branch', cwd=self.srcdir) - self.add_empty_file('f') - self.assertRevCount(7, cwd=self.srcdir) - - uri = self.d.getVar('SRC_URI', True).split()[0] - uri = '%s;branch=master,a_branch;name=master,a_branch' % uri - - self.d.setVar('BB_GIT_SHALLOW_DEPTH', '0') - self.d.setVar('BB_GIT_SHALLOW_DEPTH_master', '3') - self.d.setVar('BB_GIT_SHALLOW_DEPTH_a_branch', '1') - self.d.setVar('SRCREV_master', '${AUTOREV}') - self.d.setVar('SRCREV_a_branch', '${AUTOREV}') - - self.fetch_shallow(uri) - - self.assertRevCount(4, ['--all']) - self.assertRefs(['master', 'origin/master', 'origin/a_branch']) - - def test_shallow_clone_preferred_over_shallow(self): - self.add_empty_file('a') - self.add_empty_file('b') - - # Fetch once to generate the shallow tarball - fetcher, ud = self.fetch() - assert os.path.exists(os.path.join(self.dldir, ud.mirrortarballs[0])) - - # Fetch and unpack with both the clonedir and shallow tarball available - bb.utils.remove(self.gitdir, recurse=True) - fetcher, ud = self.fetch_and_unpack() - - # The unpacked tree should *not* be shallow - self.assertRevCount(2) - assert not os.path.exists(os.path.join(self.gitdir, '.git', 'shallow')) - - def test_shallow_mirrors(self): - self.add_empty_file('a') - self.add_empty_file('b') - - # Fetch once to generate the shallow tarball - fetcher, ud = self.fetch() - mirrortarball = ud.mirrortarballs[0] - assert os.path.exists(os.path.join(self.dldir, mirrortarball)) - - # Set up the mirror - mirrordir = os.path.join(self.tempdir, 'mirror') - bb.utils.mkdirhier(mirrordir) - self.d.setVar('PREMIRRORS', 'git://.*/.* file://%s/\n' % mirrordir) - - os.rename(os.path.join(self.dldir, mirrortarball), - os.path.join(mirrordir, mirrortarball)) - - # Fetch from the mirror - bb.utils.remove(self.dldir, recurse=True) - bb.utils.remove(self.gitdir, recurse=True) - self.fetch_and_unpack() - self.assertRevCount(1) - - def test_shallow_invalid_depth(self): - self.add_empty_file('a') - self.add_empty_file('b') - - self.d.setVar('BB_GIT_SHALLOW_DEPTH', '-12') - with self.assertRaises(bb.fetch2.FetchError): - self.fetch() - - def test_shallow_invalid_depth_default(self): - self.add_empty_file('a') - self.add_empty_file('b') - - self.d.setVar('BB_GIT_SHALLOW_DEPTH_default', '-12') - with self.assertRaises(bb.fetch2.FetchError): - self.fetch() - - def test_shallow_extra_refs(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.git('branch a_branch', cwd=self.srcdir) - self.assertRefs(['master', 'a_branch'], cwd=self.srcdir) - self.assertRevCount(2, cwd=self.srcdir) - - self.d.setVar('BB_GIT_SHALLOW_EXTRA_REFS', 'refs/heads/a_branch') - self.fetch_shallow() - - self.assertRefs(['master', 'origin/master', 'origin/a_branch']) - self.assertRevCount(1) - - def test_shallow_extra_refs_wildcard(self): - self.add_empty_file('a') - self.add_empty_file('b') - self.git('branch a_branch', cwd=self.srcdir) - self.git('tag v1.0', cwd=self.srcdir) - self.assertRefs(['master', 'a_branch', 'v1.0'], cwd=self.srcdir) - self.assertRevCount(2, cwd=self.srcdir) - - self.d.setVar('BB_GIT_SHALLOW_EXTRA_REFS', 'refs/tags/*') - self.fetch_shallow() - - self.assertRefs(['master', 'origin/master', 'v1.0']) - self.assertRevCount(1) - - def test_shallow_missing_extra_refs(self): - self.add_empty_file('a') - self.add_empty_file('b') - - self.d.setVar('BB_GIT_SHALLOW_EXTRA_REFS', 'refs/heads/foo') - with self.assertRaises(bb.fetch2.FetchError): - self.fetch() - - def test_shallow_missing_extra_refs_wildcard(self): - self.add_empty_file('a') - self.add_empty_file('b') - - self.d.setVar('BB_GIT_SHALLOW_EXTRA_REFS', 'refs/tags/*') - self.fetch() - - def test_shallow_remove_revs(self): - # Create initial git repo - self.add_empty_file('a') - self.add_empty_file('b') - self.git('checkout -b a_branch', cwd=self.srcdir) - self.add_empty_file('c') - self.add_empty_file('d') - self.git('checkout master', cwd=self.srcdir) - self.git('tag v0.0 a_branch', cwd=self.srcdir) - self.add_empty_file('e') - self.git('merge --no-ff --no-edit a_branch', cwd=self.srcdir) - self.git('branch -d a_branch', cwd=self.srcdir) - self.add_empty_file('f') - self.assertRevCount(7, cwd=self.srcdir) - - self.d.setVar('BB_GIT_SHALLOW_DEPTH', '0') - self.d.setVar('BB_GIT_SHALLOW_REVS', 'v0.0') - - self.fetch_shallow() - - self.assertRevCount(5) - - def test_shallow_invalid_revs(self): - self.add_empty_file('a') - self.add_empty_file('b') - - self.d.setVar('BB_GIT_SHALLOW_DEPTH', '0') - self.d.setVar('BB_GIT_SHALLOW_REVS', 'v0.0') - - with self.assertRaises(bb.fetch2.FetchError): - self.fetch() - - @skipIfNoNetwork() - def test_bitbake(self): - self.git('remote add --mirror=fetch origin git://github.com/openembedded/bitbake', cwd=self.srcdir) - self.git('config core.bare true', cwd=self.srcdir) - self.git('fetch', cwd=self.srcdir) - - self.d.setVar('BB_GIT_SHALLOW_DEPTH', '0') - # Note that the 1.10.0 tag is annotated, so this also tests - # reference of an annotated vs unannotated tag - self.d.setVar('BB_GIT_SHALLOW_REVS', '1.10.0') - - self.fetch_shallow() - - # Confirm that the history of 1.10.0 was removed - orig_revs = len(self.git('rev-list master', cwd=self.srcdir).splitlines()) - revs = len(self.git('rev-list master').splitlines()) - self.assertNotEqual(orig_revs, revs) - self.assertRefs(['master', 'origin/master']) - self.assertRevCount(orig_revs - 1758) diff --git a/poky/bitbake/lib/bb/tests/parse.py b/poky/bitbake/lib/bb/tests/parse.py deleted file mode 100644 index 8f16ba4..0000000 --- a/poky/bitbake/lib/bb/tests/parse.py +++ /dev/null @@ -1,185 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# BitBake Test for lib/bb/parse/ -# -# Copyright (C) 2015 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -import unittest -import tempfile -import logging -import bb -import os - -logger = logging.getLogger('BitBake.TestParse') - -import bb.parse -import bb.data -import bb.siggen - -class ParseTest(unittest.TestCase): - - testfile = """ -A = "1" -B = "2" -do_install() { - echo "hello" -} - -C = "3" -""" - - def setUp(self): - self.d = bb.data.init() - bb.parse.siggen = bb.siggen.init(self.d) - - def parsehelper(self, content, suffix = ".bb"): - - f = tempfile.NamedTemporaryFile(suffix = suffix) - f.write(bytes(content, "utf-8")) - f.flush() - os.chdir(os.path.dirname(f.name)) - return f - - def test_parse_simple(self): - f = self.parsehelper(self.testfile) - d = bb.parse.handle(f.name, self.d)[''] - self.assertEqual(d.getVar("A"), "1") - self.assertEqual(d.getVar("B"), "2") - self.assertEqual(d.getVar("C"), "3") - - def test_parse_incomplete_function(self): - testfileB = self.testfile.replace("}", "") - f = self.parsehelper(testfileB) - with self.assertRaises(bb.parse.ParseError): - d = bb.parse.handle(f.name, self.d)[''] - - unsettest = """ -A = "1" -B = "2" -B[flag] = "3" - -unset A -unset B[flag] -""" - - def test_parse_unset(self): - f = self.parsehelper(self.unsettest) - d = bb.parse.handle(f.name, self.d)[''] - self.assertEqual(d.getVar("A"), None) - self.assertEqual(d.getVarFlag("A","flag"), None) - self.assertEqual(d.getVar("B"), "2") - - exporttest = """ -A = "a" -export B = "b" -export C -exportD = "d" -""" - - def test_parse_exports(self): - f = self.parsehelper(self.exporttest) - d = bb.parse.handle(f.name, self.d)[''] - self.assertEqual(d.getVar("A"), "a") - self.assertIsNone(d.getVarFlag("A", "export")) - self.assertEqual(d.getVar("B"), "b") - self.assertEqual(d.getVarFlag("B", "export"), 1) - self.assertIsNone(d.getVar("C")) - self.assertEqual(d.getVarFlag("C", "export"), 1) - self.assertIsNone(d.getVar("D")) - self.assertIsNone(d.getVarFlag("D", "export")) - self.assertEqual(d.getVar("exportD"), "d") - self.assertIsNone(d.getVarFlag("exportD", "export")) - - - overridetest = """ -RRECOMMENDS_${PN} = "a" -RRECOMMENDS_${PN}_libc = "b" -OVERRIDES = "libc:${PN}" -PN = "gtk+" -""" - - def test_parse_overrides(self): - f = self.parsehelper(self.overridetest) - d = bb.parse.handle(f.name, self.d)[''] - self.assertEqual(d.getVar("RRECOMMENDS"), "b") - bb.data.expandKeys(d) - self.assertEqual(d.getVar("RRECOMMENDS"), "b") - d.setVar("RRECOMMENDS_gtk+", "c") - self.assertEqual(d.getVar("RRECOMMENDS"), "c") - - overridetest2 = """ -EXTRA_OECONF = "" -EXTRA_OECONF_class-target = "b" -EXTRA_OECONF_append = " c" -""" - - def test_parse_overrides(self): - f = self.parsehelper(self.overridetest2) - d = bb.parse.handle(f.name, self.d)[''] - d.appendVar("EXTRA_OECONF", " d") - d.setVar("OVERRIDES", "class-target") - self.assertEqual(d.getVar("EXTRA_OECONF"), "b c d") - - overridetest3 = """ -DESCRIPTION = "A" -DESCRIPTION_${PN}-dev = "${DESCRIPTION} B" -PN = "bc" -""" - - def test_parse_combinations(self): - f = self.parsehelper(self.overridetest3) - d = bb.parse.handle(f.name, self.d)[''] - bb.data.expandKeys(d) - self.assertEqual(d.getVar("DESCRIPTION_bc-dev"), "A B") - d.setVar("DESCRIPTION", "E") - d.setVar("DESCRIPTION_bc-dev", "C D") - d.setVar("OVERRIDES", "bc-dev") - self.assertEqual(d.getVar("DESCRIPTION"), "C D") - - - classextend = """ -VAR_var_override1 = "B" -EXTRA = ":override1" -OVERRIDES = "nothing${EXTRA}" - -BBCLASSEXTEND = "###CLASS###" -""" - classextend_bbclass = """ -EXTRA = "" -python () { - d.renameVar("VAR_var", "VAR_var2") -} -""" - - # - # Test based upon a real world data corruption issue. One - # data store changing a variable poked through into a different data - # store. This test case replicates that issue where the value 'B' would - # become unset/disappear. - # - def test_parse_classextend_contamination(self): - cls = self.parsehelper(self.classextend_bbclass, suffix=".bbclass") - #clsname = os.path.basename(cls.name).replace(".bbclass", "") - self.classextend = self.classextend.replace("###CLASS###", cls.name) - f = self.parsehelper(self.classextend) - alldata = bb.parse.handle(f.name, self.d) - d1 = alldata[''] - d2 = alldata[cls.name] - self.assertEqual(d1.getVar("VAR_var"), "B") - self.assertEqual(d2.getVar("VAR_var"), None) - diff --git a/poky/bitbake/lib/bb/tests/utils.py b/poky/bitbake/lib/bb/tests/utils.py deleted file mode 100644 index 2f4ccf3..0000000 --- a/poky/bitbake/lib/bb/tests/utils.py +++ /dev/null @@ -1,603 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# BitBake Tests for utils.py -# -# Copyright (C) 2012 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -import unittest -import bb -import os -import tempfile -import re - -class VerCmpString(unittest.TestCase): - - def test_vercmpstring(self): - result = bb.utils.vercmp_string('1', '2') - self.assertTrue(result < 0) - result = bb.utils.vercmp_string('2', '1') - self.assertTrue(result > 0) - result = bb.utils.vercmp_string('1', '1.0') - self.assertTrue(result < 0) - result = bb.utils.vercmp_string('1', '1.1') - self.assertTrue(result < 0) - result = bb.utils.vercmp_string('1.1', '1_p2') - self.assertTrue(result < 0) - result = bb.utils.vercmp_string('1.0', '1.0+1.1-beta1') - self.assertTrue(result < 0) - result = bb.utils.vercmp_string('1.1', '1.0+1.1-beta1') - self.assertTrue(result > 0) - - def test_explode_dep_versions(self): - correctresult = {"foo" : ["= 1.10"]} - result = bb.utils.explode_dep_versions2("foo (= 1.10)") - self.assertEqual(result, correctresult) - result = bb.utils.explode_dep_versions2("foo (=1.10)") - self.assertEqual(result, correctresult) - result = bb.utils.explode_dep_versions2("foo ( = 1.10)") - self.assertEqual(result, correctresult) - result = bb.utils.explode_dep_versions2("foo ( =1.10)") - self.assertEqual(result, correctresult) - result = bb.utils.explode_dep_versions2("foo ( = 1.10 )") - self.assertEqual(result, correctresult) - result = bb.utils.explode_dep_versions2("foo ( =1.10 )") - self.assertEqual(result, correctresult) - - def test_vercmp_string_op(self): - compareops = [('1', '1', '=', True), - ('1', '1', '==', True), - ('1', '1', '!=', False), - ('1', '1', '>', False), - ('1', '1', '<', False), - ('1', '1', '>=', True), - ('1', '1', '<=', True), - ('1', '0', '=', False), - ('1', '0', '==', False), - ('1', '0', '!=', True), - ('1', '0', '>', True), - ('1', '0', '<', False), - ('1', '0', '>>', True), - ('1', '0', '<<', False), - ('1', '0', '>=', True), - ('1', '0', '<=', False), - ('0', '1', '=', False), - ('0', '1', '==', False), - ('0', '1', '!=', True), - ('0', '1', '>', False), - ('0', '1', '<', True), - ('0', '1', '>>', False), - ('0', '1', '<<', True), - ('0', '1', '>=', False), - ('0', '1', '<=', True)] - - for arg1, arg2, op, correctresult in compareops: - result = bb.utils.vercmp_string_op(arg1, arg2, op) - self.assertEqual(result, correctresult, 'vercmp_string_op("%s", "%s", "%s") != %s' % (arg1, arg2, op, correctresult)) - - # Check that clearly invalid operator raises an exception - self.assertRaises(bb.utils.VersionStringException, bb.utils.vercmp_string_op, '0', '0', '$') - - -class Path(unittest.TestCase): - def test_unsafe_delete_path(self): - checkitems = [('/', True), - ('//', True), - ('///', True), - (os.getcwd().count(os.sep) * ('..' + os.sep), True), - (os.environ.get('HOME', '/home/test'), True), - ('/home/someone', True), - ('/home/other/', True), - ('/home/other/subdir', False), - ('', False)] - for arg1, correctresult in checkitems: - result = bb.utils._check_unsafe_delete_path(arg1) - self.assertEqual(result, correctresult, '_check_unsafe_delete_path("%s") != %s' % (arg1, correctresult)) - - -class EditMetadataFile(unittest.TestCase): - _origfile = """ -# A comment -HELLO = "oldvalue" - -THIS = "that" - -# Another comment -NOCHANGE = "samevalue" -OTHER = 'anothervalue' - -MULTILINE = "a1 \\ - a2 \\ - a3" - -MULTILINE2 := " \\ - b1 \\ - b2 \\ - b3 \\ - " - - -MULTILINE3 = " \\ - c1 \\ - c2 \\ - c3 \\ -" - -do_functionname() { - command1 ${VAL1} ${VAL2} - command2 ${VAL3} ${VAL4} -} -""" - def _testeditfile(self, varvalues, compareto, dummyvars=None): - if dummyvars is None: - dummyvars = [] - with tempfile.NamedTemporaryFile('w', delete=False) as tf: - tf.write(self._origfile) - tf.close() - try: - varcalls = [] - def handle_file(varname, origvalue, op, newlines): - self.assertIn(varname, varvalues, 'Callback called for variable %s not in the list!' % varname) - self.assertNotIn(varname, dummyvars, 'Callback called for variable %s in dummy list!' % varname) - varcalls.append(varname) - return varvalues[varname] - - bb.utils.edit_metadata_file(tf.name, varvalues.keys(), handle_file) - with open(tf.name) as f: - modfile = f.readlines() - # Ensure the output matches the expected output - self.assertEqual(compareto.splitlines(True), modfile) - # Ensure the callback function was called for every variable we asked for - # (plus allow testing behaviour when a requested variable is not present) - self.assertEqual(sorted(varvalues.keys()), sorted(varcalls + dummyvars)) - finally: - os.remove(tf.name) - - - def test_edit_metadata_file_nochange(self): - # Test file doesn't get modified with nothing to do - self._testeditfile({}, self._origfile) - # Test file doesn't get modified with only dummy variables - self._testeditfile({'DUMMY1': ('should_not_set', None, 0, True), - 'DUMMY2': ('should_not_set_again', None, 0, True)}, self._origfile, dummyvars=['DUMMY1', 'DUMMY2']) - # Test file doesn't get modified with some the same values - self._testeditfile({'THIS': ('that', None, 0, True), - 'OTHER': ('anothervalue', None, 0, True), - 'MULTILINE3': (' c1 c2 c3 ', None, 4, False)}, self._origfile) - - def test_edit_metadata_file_1(self): - - newfile1 = """ -# A comment -HELLO = "newvalue" - -THIS = "that" - -# Another comment -NOCHANGE = "samevalue" -OTHER = 'anothervalue' - -MULTILINE = "a1 \\ - a2 \\ - a3" - -MULTILINE2 := " \\ - b1 \\ - b2 \\ - b3 \\ - " - - -MULTILINE3 = " \\ - c1 \\ - c2 \\ - c3 \\ -" - -do_functionname() { - command1 ${VAL1} ${VAL2} - command2 ${VAL3} ${VAL4} -} -""" - self._testeditfile({'HELLO': ('newvalue', None, 4, True)}, newfile1) - - - def test_edit_metadata_file_2(self): - - newfile2 = """ -# A comment -HELLO = "oldvalue" - -THIS = "that" - -# Another comment -NOCHANGE = "samevalue" -OTHER = 'anothervalue' - -MULTILINE = " \\ - d1 \\ - d2 \\ - d3 \\ - " - -MULTILINE2 := " \\ - b1 \\ - b2 \\ - b3 \\ - " - - -MULTILINE3 = "nowsingle" - -do_functionname() { - command1 ${VAL1} ${VAL2} - command2 ${VAL3} ${VAL4} -} -""" - self._testeditfile({'MULTILINE': (['d1','d2','d3'], None, 4, False), - 'MULTILINE3': ('nowsingle', None, 4, True), - 'NOTPRESENT': (['a', 'b'], None, 4, False)}, newfile2, dummyvars=['NOTPRESENT']) - - - def test_edit_metadata_file_3(self): - - newfile3 = """ -# A comment -HELLO = "oldvalue" - -# Another comment -NOCHANGE = "samevalue" -OTHER = "yetanothervalue" - -MULTILINE = "e1 \\ - e2 \\ - e3 \\ - " - -MULTILINE2 := "f1 \\ -\tf2 \\ -\t" - - -MULTILINE3 = " \\ - c1 \\ - c2 \\ - c3 \\ -" - -do_functionname() { - othercommand_one a b c - othercommand_two d e f -} -""" - - self._testeditfile({'do_functionname()': (['othercommand_one a b c', 'othercommand_two d e f'], None, 4, False), - 'MULTILINE2': (['f1', 'f2'], None, '\t', True), - 'MULTILINE': (['e1', 'e2', 'e3'], None, -1, True), - 'THIS': (None, None, 0, False), - 'OTHER': ('yetanothervalue', None, 0, True)}, newfile3) - - - def test_edit_metadata_file_4(self): - - newfile4 = """ -# A comment -HELLO = "oldvalue" - -THIS = "that" - -# Another comment -OTHER = 'anothervalue' - -MULTILINE = "a1 \\ - a2 \\ - a3" - -MULTILINE2 := " \\ - b1 \\ - b2 \\ - b3 \\ - " - - -""" - - self._testeditfile({'NOCHANGE': (None, None, 0, False), - 'MULTILINE3': (None, None, 0, False), - 'THIS': ('that', None, 0, False), - 'do_functionname()': (None, None, 0, False)}, newfile4) - - - def test_edit_metadata(self): - newfile5 = """ -# A comment -HELLO = "hithere" - -# A new comment -THIS += "that" - -# Another comment -NOCHANGE = "samevalue" -OTHER = 'anothervalue' - -MULTILINE = "a1 \\ - a2 \\ - a3" - -MULTILINE2 := " \\ - b1 \\ - b2 \\ - b3 \\ - " - - -MULTILINE3 = " \\ - c1 \\ - c2 \\ - c3 \\ -" - -NEWVAR = "value" - -do_functionname() { - command1 ${VAL1} ${VAL2} - command2 ${VAL3} ${VAL4} -} -""" - - - def handle_var(varname, origvalue, op, newlines): - if varname == 'THIS': - newlines.append('# A new comment\n') - elif varname == 'do_functionname()': - newlines.append('NEWVAR = "value"\n') - newlines.append('\n') - valueitem = varvalues.get(varname, None) - if valueitem: - return valueitem - else: - return (origvalue, op, 0, True) - - varvalues = {'HELLO': ('hithere', None, 0, True), 'THIS': ('that', '+=', 0, True)} - varlist = ['HELLO', 'THIS', 'do_functionname()'] - (updated, newlines) = bb.utils.edit_metadata(self._origfile.splitlines(True), varlist, handle_var) - self.assertTrue(updated, 'List should be updated but isn\'t') - self.assertEqual(newlines, newfile5.splitlines(True)) - - # Make sure the orig value matches what we expect it to be - def test_edit_metadata_origvalue(self): - origfile = """ -MULTILINE = " stuff \\ - morestuff" -""" - expected_value = "stuff morestuff" - global value_in_callback - value_in_callback = "" - - def handle_var(varname, origvalue, op, newlines): - global value_in_callback - value_in_callback = origvalue - return (origvalue, op, -1, False) - - bb.utils.edit_metadata(origfile.splitlines(True), - ['MULTILINE'], - handle_var) - - testvalue = re.sub('\s+', ' ', value_in_callback.strip()) - self.assertEqual(expected_value, testvalue) - -class EditBbLayersConf(unittest.TestCase): - - def _test_bblayers_edit(self, before, after, add, remove, notadded, notremoved): - with tempfile.NamedTemporaryFile('w', delete=False) as tf: - tf.write(before) - tf.close() - try: - actual_notadded, actual_notremoved = bb.utils.edit_bblayers_conf(tf.name, add, remove) - with open(tf.name) as f: - actual_after = f.readlines() - self.assertEqual(after.splitlines(True), actual_after) - self.assertEqual(notadded, actual_notadded) - self.assertEqual(notremoved, actual_notremoved) - finally: - os.remove(tf.name) - - - def test_bblayers_remove(self): - before = r""" -# A comment - -BBPATH = "${TOPDIR}" -BBFILES ?= "" -BBLAYERS = " \ - /home/user/path/layer1 \ - /home/user/path/layer2 \ - /home/user/path/subpath/layer3 \ - /home/user/path/layer4 \ - " -""" - after = r""" -# A comment - -BBPATH = "${TOPDIR}" -BBFILES ?= "" -BBLAYERS = " \ - /home/user/path/layer1 \ - /home/user/path/subpath/layer3 \ - /home/user/path/layer4 \ - " -""" - self._test_bblayers_edit(before, after, - None, - '/home/user/path/layer2', - [], - []) - - - def test_bblayers_add(self): - before = r""" -# A comment - -BBPATH = "${TOPDIR}" -BBFILES ?= "" -BBLAYERS = " \ - /home/user/path/layer1 \ - /home/user/path/layer2 \ - /home/user/path/subpath/layer3 \ - /home/user/path/layer4 \ - " -""" - after = r""" -# A comment - -BBPATH = "${TOPDIR}" -BBFILES ?= "" -BBLAYERS = " \ - /home/user/path/layer1 \ - /home/user/path/layer2 \ - /home/user/path/subpath/layer3 \ - /home/user/path/layer4 \ - /other/path/to/layer5 \ - " -""" - self._test_bblayers_edit(before, after, - '/other/path/to/layer5/', - None, - [], - []) - - - def test_bblayers_add_remove(self): - before = r""" -# A comment - -BBPATH = "${TOPDIR}" -BBFILES ?= "" -BBLAYERS = " \ - /home/user/path/layer1 \ - /home/user/path/layer2 \ - /home/user/path/subpath/layer3 \ - /home/user/path/layer4 \ - " -""" - after = r""" -# A comment - -BBPATH = "${TOPDIR}" -BBFILES ?= "" -BBLAYERS = " \ - /home/user/path/layer1 \ - /home/user/path/layer2 \ - /home/user/path/layer4 \ - /other/path/to/layer5 \ - " -""" - self._test_bblayers_edit(before, after, - ['/other/path/to/layer5', '/home/user/path/layer2/'], '/home/user/path/subpath/layer3/', - ['/home/user/path/layer2'], - []) - - - def test_bblayers_add_remove_home(self): - before = r""" -# A comment - -BBPATH = "${TOPDIR}" -BBFILES ?= "" -BBLAYERS = " \ - ~/path/layer1 \ - ~/path/layer2 \ - ~/otherpath/layer3 \ - ~/path/layer4 \ - " -""" - after = r""" -# A comment - -BBPATH = "${TOPDIR}" -BBFILES ?= "" -BBLAYERS = " \ - ~/path/layer2 \ - ~/path/layer4 \ - ~/path2/layer5 \ - " -""" - self._test_bblayers_edit(before, after, - [os.environ['HOME'] + '/path/layer4', '~/path2/layer5'], - [os.environ['HOME'] + '/otherpath/layer3', '~/path/layer1', '~/path/notinlist'], - [os.environ['HOME'] + '/path/layer4'], - ['~/path/notinlist']) - - - def test_bblayers_add_remove_plusequals(self): - before = r""" -# A comment - -BBPATH = "${TOPDIR}" -BBFILES ?= "" -BBLAYERS += " \ - /home/user/path/layer1 \ - /home/user/path/layer2 \ - " -""" - after = r""" -# A comment - -BBPATH = "${TOPDIR}" -BBFILES ?= "" -BBLAYERS += " \ - /home/user/path/layer2 \ - /home/user/path/layer3 \ - " -""" - self._test_bblayers_edit(before, after, - '/home/user/path/layer3', - '/home/user/path/layer1', - [], - []) - - - def test_bblayers_add_remove_plusequals2(self): - before = r""" -# A comment - -BBPATH = "${TOPDIR}" -BBFILES ?= "" -BBLAYERS += " \ - /home/user/path/layer1 \ - /home/user/path/layer2 \ - /home/user/path/layer3 \ - " -BBLAYERS += "/home/user/path/layer4" -BBLAYERS += "/home/user/path/layer5" -""" - after = r""" -# A comment - -BBPATH = "${TOPDIR}" -BBFILES ?= "" -BBLAYERS += " \ - /home/user/path/layer2 \ - /home/user/path/layer3 \ - " -BBLAYERS += "/home/user/path/layer5" -BBLAYERS += "/home/user/otherpath/layer6" -""" - self._test_bblayers_edit(before, after, - ['/home/user/otherpath/layer6', '/home/user/path/layer3'], ['/home/user/path/layer1', '/home/user/path/layer4', '/home/user/path/layer7'], - ['/home/user/path/layer3'], - ['/home/user/path/layer7']) diff --git a/poky/bitbake/lib/bb/tinfoil.py b/poky/bitbake/lib/bb/tinfoil.py deleted file mode 100644 index 368264f..0000000 --- a/poky/bitbake/lib/bb/tinfoil.py +++ /dev/null @@ -1,900 +0,0 @@ -# tinfoil: a simple wrapper around cooker for bitbake-based command-line utilities -# -# Copyright (C) 2012-2017 Intel Corporation -# Copyright (C) 2011 Mentor Graphics Corporation -# Copyright (C) 2006-2012 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import logging -import os -import sys -import atexit -import re -from collections import OrderedDict, defaultdict - -import bb.cache -import bb.cooker -import bb.providers -import bb.taskdata -import bb.utils -import bb.command -import bb.remotedata -from bb.cookerdata import CookerConfiguration, ConfigParameters -from bb.main import setup_bitbake, BitBakeConfigParameters, BBMainException -import bb.fetch2 - - -# We need this in order to shut down the connection to the bitbake server, -# otherwise the process will never properly exit -_server_connections = [] -def _terminate_connections(): - for connection in _server_connections: - connection.terminate() -atexit.register(_terminate_connections) - -class TinfoilUIException(Exception): - """Exception raised when the UI returns non-zero from its main function""" - def __init__(self, returncode): - self.returncode = returncode - def __repr__(self): - return 'UI module main returned %d' % self.returncode - -class TinfoilCommandFailed(Exception): - """Exception raised when run_command fails""" - -class TinfoilDataStoreConnector: - """Connector object used to enable access to datastore objects via tinfoil""" - - def __init__(self, tinfoil, dsindex): - self.tinfoil = tinfoil - self.dsindex = dsindex - def getVar(self, name): - value = self.tinfoil.run_command('dataStoreConnectorFindVar', self.dsindex, name) - overrides = None - if isinstance(value, dict): - if '_connector_origtype' in value: - value['_content'] = self.tinfoil._reconvert_type(value['_content'], value['_connector_origtype']) - del value['_connector_origtype'] - if '_connector_overrides' in value: - overrides = value['_connector_overrides'] - del value['_connector_overrides'] - return value, overrides - def getKeys(self): - return set(self.tinfoil.run_command('dataStoreConnectorGetKeys', self.dsindex)) - def getVarHistory(self, name): - return self.tinfoil.run_command('dataStoreConnectorGetVarHistory', self.dsindex, name) - def expandPythonRef(self, varname, expr, d): - ds = bb.remotedata.RemoteDatastores.transmit_datastore(d) - ret = self.tinfoil.run_command('dataStoreConnectorExpandPythonRef', ds, varname, expr) - return ret - def setVar(self, varname, value): - if self.dsindex is None: - self.tinfoil.run_command('setVariable', varname, value) - else: - # Not currently implemented - indicate that setting should - # be redirected to local side - return True - def setVarFlag(self, varname, flagname, value): - if self.dsindex is None: - self.tinfoil.run_command('dataStoreConnectorSetVarFlag', self.dsindex, varname, flagname, value) - else: - # Not currently implemented - indicate that setting should - # be redirected to local side - return True - def delVar(self, varname): - if self.dsindex is None: - self.tinfoil.run_command('dataStoreConnectorDelVar', self.dsindex, varname) - else: - # Not currently implemented - indicate that setting should - # be redirected to local side - return True - def delVarFlag(self, varname, flagname): - if self.dsindex is None: - self.tinfoil.run_command('dataStoreConnectorDelVar', self.dsindex, varname, flagname) - else: - # Not currently implemented - indicate that setting should - # be redirected to local side - return True - def renameVar(self, name, newname): - if self.dsindex is None: - self.tinfoil.run_command('dataStoreConnectorRenameVar', self.dsindex, name, newname) - else: - # Not currently implemented - indicate that setting should - # be redirected to local side - return True - -class TinfoilCookerAdapter: - """ - Provide an adapter for existing code that expects to access a cooker object via Tinfoil, - since now Tinfoil is on the client side it no longer has direct access. - """ - - class TinfoilCookerCollectionAdapter: - """ cooker.collection adapter """ - def __init__(self, tinfoil): - self.tinfoil = tinfoil - def get_file_appends(self, fn): - return self.tinfoil.get_file_appends(fn) - def __getattr__(self, name): - if name == 'overlayed': - return self.tinfoil.get_overlayed_recipes() - elif name == 'bbappends': - return self.tinfoil.run_command('getAllAppends') - else: - raise AttributeError("%s instance has no attribute '%s'" % (self.__class__.__name__, name)) - - class TinfoilRecipeCacheAdapter: - """ cooker.recipecache adapter """ - def __init__(self, tinfoil): - self.tinfoil = tinfoil - self._cache = {} - - def get_pkg_pn_fn(self): - pkg_pn = defaultdict(list, self.tinfoil.run_command('getRecipes') or []) - pkg_fn = {} - for pn, fnlist in pkg_pn.items(): - for fn in fnlist: - pkg_fn[fn] = pn - self._cache['pkg_pn'] = pkg_pn - self._cache['pkg_fn'] = pkg_fn - - def __getattr__(self, name): - # Grab these only when they are requested since they aren't always used - if name in self._cache: - return self._cache[name] - elif name == 'pkg_pn': - self.get_pkg_pn_fn() - return self._cache[name] - elif name == 'pkg_fn': - self.get_pkg_pn_fn() - return self._cache[name] - elif name == 'deps': - attrvalue = defaultdict(list, self.tinfoil.run_command('getRecipeDepends') or []) - elif name == 'rundeps': - attrvalue = defaultdict(lambda: defaultdict(list), self.tinfoil.run_command('getRuntimeDepends') or []) - elif name == 'runrecs': - attrvalue = defaultdict(lambda: defaultdict(list), self.tinfoil.run_command('getRuntimeRecommends') or []) - elif name == 'pkg_pepvpr': - attrvalue = self.tinfoil.run_command('getRecipeVersions') or {} - elif name == 'inherits': - attrvalue = self.tinfoil.run_command('getRecipeInherits') or {} - elif name == 'bbfile_priority': - attrvalue = self.tinfoil.run_command('getBbFilePriority') or {} - elif name == 'pkg_dp': - attrvalue = self.tinfoil.run_command('getDefaultPreference') or {} - elif name == 'fn_provides': - attrvalue = self.tinfoil.run_command('getRecipeProvides') or {} - elif name == 'packages': - attrvalue = self.tinfoil.run_command('getRecipePackages') or {} - elif name == 'packages_dynamic': - attrvalue = self.tinfoil.run_command('getRecipePackagesDynamic') or {} - elif name == 'rproviders': - attrvalue = self.tinfoil.run_command('getRProviders') or {} - else: - raise AttributeError("%s instance has no attribute '%s'" % (self.__class__.__name__, name)) - - self._cache[name] = attrvalue - return attrvalue - - def __init__(self, tinfoil): - self.tinfoil = tinfoil - self.collection = self.TinfoilCookerCollectionAdapter(tinfoil) - self.recipecaches = {} - # FIXME all machines - self.recipecaches[''] = self.TinfoilRecipeCacheAdapter(tinfoil) - self._cache = {} - def __getattr__(self, name): - # Grab these only when they are requested since they aren't always used - if name in self._cache: - return self._cache[name] - elif name == 'skiplist': - attrvalue = self.tinfoil.get_skipped_recipes() - elif name == 'bbfile_config_priorities': - ret = self.tinfoil.run_command('getLayerPriorities') - bbfile_config_priorities = [] - for collection, pattern, regex, pri in ret: - bbfile_config_priorities.append((collection, pattern, re.compile(regex), pri)) - - attrvalue = bbfile_config_priorities - else: - raise AttributeError("%s instance has no attribute '%s'" % (self.__class__.__name__, name)) - - self._cache[name] = attrvalue - return attrvalue - - def findBestProvider(self, pn): - return self.tinfoil.find_best_provider(pn) - - -class TinfoilRecipeInfo: - """ - Provides a convenient representation of the cached information for a single recipe. - Some attributes are set on construction, others are read on-demand (which internally - may result in a remote procedure call to the bitbake server the first time). - Note that only information which is cached is available through this object - if - you need other variable values you will need to parse the recipe using - Tinfoil.parse_recipe(). - """ - def __init__(self, recipecache, d, pn, fn, fns): - self._recipecache = recipecache - self._d = d - self.pn = pn - self.fn = fn - self.fns = fns - self.inherit_files = recipecache.inherits[fn] - self.depends = recipecache.deps[fn] - (self.pe, self.pv, self.pr) = recipecache.pkg_pepvpr[fn] - self._cached_packages = None - self._cached_rprovides = None - self._cached_packages_dynamic = None - - def __getattr__(self, name): - if name == 'alternates': - return [x for x in self.fns if x != self.fn] - elif name == 'rdepends': - return self._recipecache.rundeps[self.fn] - elif name == 'rrecommends': - return self._recipecache.runrecs[self.fn] - elif name == 'provides': - return self._recipecache.fn_provides[self.fn] - elif name == 'packages': - if self._cached_packages is None: - self._cached_packages = [] - for pkg, fns in self._recipecache.packages.items(): - if self.fn in fns: - self._cached_packages.append(pkg) - return self._cached_packages - elif name == 'packages_dynamic': - if self._cached_packages_dynamic is None: - self._cached_packages_dynamic = [] - for pkg, fns in self._recipecache.packages_dynamic.items(): - if self.fn in fns: - self._cached_packages_dynamic.append(pkg) - return self._cached_packages_dynamic - elif name == 'rprovides': - if self._cached_rprovides is None: - self._cached_rprovides = [] - for pkg, fns in self._recipecache.rproviders.items(): - if self.fn in fns: - self._cached_rprovides.append(pkg) - return self._cached_rprovides - else: - raise AttributeError("%s instance has no attribute '%s'" % (self.__class__.__name__, name)) - def inherits(self, only_recipe=False): - """ - Get the inherited classes for a recipe. Returns the class names only. - Parameters: - only_recipe: True to return only the classes inherited by the recipe - itself, False to return all classes inherited within - the context for the recipe (which includes globally - inherited classes). - """ - if only_recipe: - global_inherit = [x for x in (self._d.getVar('BBINCLUDED') or '').split() if x.endswith('.bbclass')] - else: - global_inherit = [] - for clsfile in self.inherit_files: - if only_recipe and clsfile in global_inherit: - continue - clsname = os.path.splitext(os.path.basename(clsfile))[0] - yield clsname - def __str__(self): - return '%s' % self.pn - - -class Tinfoil: - """ - Tinfoil - an API for scripts and utilities to query - BitBake internals and perform build operations. - """ - - def __init__(self, output=sys.stdout, tracking=False, setup_logging=True): - """ - Create a new tinfoil object. - Parameters: - output: specifies where console output should be sent. Defaults - to sys.stdout. - tracking: True to enable variable history tracking, False to - disable it (default). Enabling this has a minor - performance impact so typically it isn't enabled - unless you need to query variable history. - setup_logging: True to setup a logger so that things like - bb.warn() will work immediately and timeout warnings - are visible; False to let BitBake do this itself. - """ - self.logger = logging.getLogger('BitBake') - self.config_data = None - self.cooker = None - self.tracking = tracking - self.ui_module = None - self.server_connection = None - self.recipes_parsed = False - self.quiet = 0 - self.oldhandlers = self.logger.handlers[:] - if setup_logging: - # This is the *client-side* logger, nothing to do with - # logging messages from the server - bb.msg.logger_create('BitBake', output) - self.localhandlers = [] - for handler in self.logger.handlers: - if handler not in self.oldhandlers: - self.localhandlers.append(handler) - - def __enter__(self): - return self - - def __exit__(self, type, value, traceback): - self.shutdown() - - def prepare(self, config_only=False, config_params=None, quiet=0, extra_features=None): - """ - Prepares the underlying BitBake system to be used via tinfoil. - This function must be called prior to calling any of the other - functions in the API. - NOTE: if you call prepare() you must absolutely call shutdown() - before your code terminates. You can use a "with" block to ensure - this happens e.g. - - with bb.tinfoil.Tinfoil() as tinfoil: - tinfoil.prepare() - ... - - Parameters: - config_only: True to read only the configuration and not load - the cache / parse recipes. This is useful if you just - want to query the value of a variable at the global - level or you want to do anything else that doesn't - involve knowing anything about the recipes in the - current configuration. False loads the cache / parses - recipes. - config_params: optionally specify your own configuration - parameters. If not specified an instance of - TinfoilConfigParameters will be created internally. - quiet: quiet level controlling console output - equivalent - to bitbake's -q/--quiet option. Default of 0 gives - the same output level as normal bitbake execution. - extra_features: extra features to be added to the feature - set requested from the server. See - CookerFeatures._feature_list for possible - features. - """ - self.quiet = quiet - - if self.tracking: - extrafeatures = [bb.cooker.CookerFeatures.BASEDATASTORE_TRACKING] - else: - extrafeatures = [] - - if extra_features: - extrafeatures += extra_features - - if not config_params: - config_params = TinfoilConfigParameters(config_only=config_only, quiet=quiet) - - cookerconfig = CookerConfiguration() - cookerconfig.setConfigParameters(config_params) - - if not config_only: - # Disable local loggers because the UI module is going to set up its own - for handler in self.localhandlers: - self.logger.handlers.remove(handler) - self.localhandlers = [] - - self.server_connection, ui_module = setup_bitbake(config_params, - cookerconfig, - extrafeatures) - - self.ui_module = ui_module - - # Ensure the path to bitbake's bin directory is in PATH so that things like - # bitbake-worker can be run (usually this is the case, but it doesn't have to be) - path = os.getenv('PATH').split(':') - bitbakebinpath = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', 'bin')) - for entry in path: - if entry.endswith(os.sep): - entry = entry[:-1] - if os.path.abspath(entry) == bitbakebinpath: - break - else: - path.insert(0, bitbakebinpath) - os.environ['PATH'] = ':'.join(path) - - if self.server_connection: - _server_connections.append(self.server_connection) - if config_only: - config_params.updateToServer(self.server_connection.connection, os.environ.copy()) - self.run_command('parseConfiguration') - else: - self.run_actions(config_params) - self.recipes_parsed = True - - self.config_data = bb.data.init() - connector = TinfoilDataStoreConnector(self, None) - self.config_data.setVar('_remote_data', connector) - self.cooker = TinfoilCookerAdapter(self) - self.cooker_data = self.cooker.recipecaches[''] - else: - raise Exception('Failed to start bitbake server') - - def run_actions(self, config_params): - """ - Run the actions specified in config_params through the UI. - """ - ret = self.ui_module.main(self.server_connection.connection, self.server_connection.events, config_params) - if ret: - raise TinfoilUIException(ret) - - def parseRecipes(self): - """ - Legacy function - use parse_recipes() instead. - """ - self.parse_recipes() - - def parse_recipes(self): - """ - Load information on all recipes. Normally you should specify - config_only=False when calling prepare() instead of using this - function; this function is designed for situations where you need - to initialise Tinfoil and use it with config_only=True first and - then conditionally call this function to parse recipes later. - """ - config_params = TinfoilConfigParameters(config_only=False) - self.run_actions(config_params) - self.recipes_parsed = True - - def run_command(self, command, *params): - """ - Run a command on the server (as implemented in bb.command). - Note that there are two types of command - synchronous and - asynchronous; in order to receive the results of asynchronous - commands you will need to set an appropriate event mask - using set_event_mask() and listen for the result using - wait_event() - with the correct event mask you'll at least get - bb.command.CommandCompleted and possibly other events before - that depending on the command. - """ - if not self.server_connection: - raise Exception('Not connected to server (did you call .prepare()?)') - - commandline = [command] - if params: - commandline.extend(params) - result = self.server_connection.connection.runCommand(commandline) - if result[1]: - raise TinfoilCommandFailed(result[1]) - return result[0] - - def set_event_mask(self, eventlist): - """Set the event mask which will be applied within wait_event()""" - if not self.server_connection: - raise Exception('Not connected to server (did you call .prepare()?)') - llevel, debug_domains = bb.msg.constructLogOptions() - ret = self.run_command('setEventMask', self.server_connection.connection.getEventHandle(), llevel, debug_domains, eventlist) - if not ret: - raise Exception('setEventMask failed') - - def wait_event(self, timeout=0): - """ - Wait for an event from the server for the specified time. - A timeout of 0 means don't wait if there are no events in the queue. - Returns the next event in the queue or None if the timeout was - reached. Note that in order to recieve any events you will - first need to set the internal event mask using set_event_mask() - (otherwise whatever event mask the UI set up will be in effect). - """ - if not self.server_connection: - raise Exception('Not connected to server (did you call .prepare()?)') - return self.server_connection.events.waitEvent(timeout) - - def get_overlayed_recipes(self): - """ - Find recipes which are overlayed (i.e. where recipes exist in multiple layers) - """ - return defaultdict(list, self.run_command('getOverlayedRecipes')) - - def get_skipped_recipes(self): - """ - Find recipes which were skipped (i.e. SkipRecipe was raised - during parsing). - """ - return OrderedDict(self.run_command('getSkippedRecipes')) - - def get_all_providers(self): - return defaultdict(list, self.run_command('allProviders')) - - def find_providers(self): - return self.run_command('findProviders') - - def find_best_provider(self, pn): - return self.run_command('findBestProvider', pn) - - def get_runtime_providers(self, rdep): - return self.run_command('getRuntimeProviders', rdep) - - def get_recipe_file(self, pn): - """ - Get the file name for the specified recipe/target. Raises - bb.providers.NoProvider if there is no match or the recipe was - skipped. - """ - best = self.find_best_provider(pn) - if not best or (len(best) > 3 and not best[3]): - skiplist = self.get_skipped_recipes() - taskdata = bb.taskdata.TaskData(None, skiplist=skiplist) - skipreasons = taskdata.get_reasons(pn) - if skipreasons: - raise bb.providers.NoProvider('%s is unavailable:\n %s' % (pn, ' \n'.join(skipreasons))) - else: - raise bb.providers.NoProvider('Unable to find any recipe file matching "%s"' % pn) - return best[3] - - def get_file_appends(self, fn): - """ - Find the bbappends for a recipe file - """ - return self.run_command('getFileAppends', fn) - - def all_recipes(self, mc='', sort=True): - """ - Enable iterating over all recipes in the current configuration. - Returns an iterator over TinfoilRecipeInfo objects created on demand. - Parameters: - mc: The multiconfig, default of '' uses the main configuration. - sort: True to sort recipes alphabetically (default), False otherwise - """ - recipecache = self.cooker.recipecaches[mc] - if sort: - recipes = sorted(recipecache.pkg_pn.items()) - else: - recipes = recipecache.pkg_pn.items() - for pn, fns in recipes: - prov = self.find_best_provider(pn) - recipe = TinfoilRecipeInfo(recipecache, - self.config_data, - pn=pn, - fn=prov[3], - fns=fns) - yield recipe - - def all_recipe_files(self, mc='', variants=True, preferred_only=False): - """ - Enable iterating over all recipe files in the current configuration. - Returns an iterator over file paths. - Parameters: - mc: The multiconfig, default of '' uses the main configuration. - variants: True to include variants of recipes created through - BBCLASSEXTEND (default) or False to exclude them - preferred_only: True to include only the preferred recipe where - multiple exist providing the same PN, False to list - all recipes - """ - recipecache = self.cooker.recipecaches[mc] - if preferred_only: - files = [] - for pn in recipecache.pkg_pn.keys(): - prov = self.find_best_provider(pn) - files.append(prov[3]) - else: - files = recipecache.pkg_fn.keys() - for fn in sorted(files): - if not variants and fn.startswith('virtual:'): - continue - yield fn - - - def get_recipe_info(self, pn, mc=''): - """ - Get information on a specific recipe in the current configuration by name (PN). - Returns a TinfoilRecipeInfo object created on demand. - Parameters: - mc: The multiconfig, default of '' uses the main configuration. - """ - recipecache = self.cooker.recipecaches[mc] - prov = self.find_best_provider(pn) - fn = prov[3] - if fn: - actual_pn = recipecache.pkg_fn[fn] - recipe = TinfoilRecipeInfo(recipecache, - self.config_data, - pn=actual_pn, - fn=fn, - fns=recipecache.pkg_pn[actual_pn]) - return recipe - else: - return None - - def parse_recipe(self, pn): - """ - Parse the specified recipe and return a datastore object - representing the environment for the recipe. - """ - fn = self.get_recipe_file(pn) - return self.parse_recipe_file(fn) - - def parse_recipe_file(self, fn, appends=True, appendlist=None, config_data=None): - """ - Parse the specified recipe file (with or without bbappends) - and return a datastore object representing the environment - for the recipe. - Parameters: - fn: recipe file to parse - can be a file path or virtual - specification - appends: True to apply bbappends, False otherwise - appendlist: optional list of bbappend files to apply, if you - want to filter them - config_data: custom config datastore to use. NOTE: if you - specify config_data then you cannot use a virtual - specification for fn. - """ - if self.tracking: - # Enable history tracking just for the parse operation - self.run_command('enableDataTracking') - try: - if appends and appendlist == []: - appends = False - if config_data: - dctr = bb.remotedata.RemoteDatastores.transmit_datastore(config_data) - dscon = self.run_command('parseRecipeFile', fn, appends, appendlist, dctr) - else: - dscon = self.run_command('parseRecipeFile', fn, appends, appendlist) - if dscon: - return self._reconvert_type(dscon, 'DataStoreConnectionHandle') - else: - return None - finally: - if self.tracking: - self.run_command('disableDataTracking') - - def build_file(self, buildfile, task, internal=True): - """ - Runs the specified task for just a single recipe (i.e. no dependencies). - This is equivalent to bitbake -b, except with the default internal=True - no warning about dependencies will be produced, normal info messages - from the runqueue will be silenced and BuildInit, BuildStarted and - BuildCompleted events will not be fired. - """ - return self.run_command('buildFile', buildfile, task, internal) - - def build_targets(self, targets, task=None, handle_events=True, extra_events=None, event_callback=None): - """ - Builds the specified targets. This is equivalent to a normal invocation - of bitbake. Has built-in event handling which is enabled by default and - can be extended if needed. - Parameters: - targets: - One or more targets to build. Can be a list or a - space-separated string. - task: - The task to run; if None then the value of BB_DEFAULT_TASK - will be used. Default None. - handle_events: - True to handle events in a similar way to normal bitbake - invocation with knotty; False to return immediately (on the - assumption that the caller will handle the events instead). - Default True. - extra_events: - An optional list of events to add to the event mask (if - handle_events=True). If you add events here you also need - to specify a callback function in event_callback that will - handle the additional events. Default None. - event_callback: - An optional function taking a single parameter which - will be called first upon receiving any event (if - handle_events=True) so that the caller can override or - extend the event handling. Default None. - """ - if isinstance(targets, str): - targets = targets.split() - if not task: - task = self.config_data.getVar('BB_DEFAULT_TASK') - - if handle_events: - # A reasonable set of default events matching up with those we handle below - eventmask = [ - 'bb.event.BuildStarted', - 'bb.event.BuildCompleted', - 'logging.LogRecord', - 'bb.event.NoProvider', - 'bb.command.CommandCompleted', - 'bb.command.CommandFailed', - 'bb.build.TaskStarted', - 'bb.build.TaskFailed', - 'bb.build.TaskSucceeded', - 'bb.build.TaskFailedSilent', - 'bb.build.TaskProgress', - 'bb.runqueue.runQueueTaskStarted', - 'bb.runqueue.sceneQueueTaskStarted', - 'bb.event.ProcessStarted', - 'bb.event.ProcessProgress', - 'bb.event.ProcessFinished', - ] - if extra_events: - eventmask.extend(extra_events) - ret = self.set_event_mask(eventmask) - - includelogs = self.config_data.getVar('BBINCLUDELOGS') - loglines = self.config_data.getVar('BBINCLUDELOGS_LINES') - - ret = self.run_command('buildTargets', targets, task) - if handle_events: - result = False - # Borrowed from knotty, instead somewhat hackily we use the helper - # as the object to store "shutdown" on - helper = bb.ui.uihelper.BBUIHelper() - # We set up logging optionally in the constructor so now we need to - # grab the handlers to pass to TerminalFilter - console = None - errconsole = None - for handler in self.logger.handlers: - if isinstance(handler, logging.StreamHandler): - if handler.stream == sys.stdout: - console = handler - elif handler.stream == sys.stderr: - errconsole = handler - format_str = "%(levelname)s: %(message)s" - format = bb.msg.BBLogFormatter(format_str) - helper.shutdown = 0 - parseprogress = None - termfilter = bb.ui.knotty.TerminalFilter(helper, helper, console, errconsole, format, quiet=self.quiet) - try: - while True: - try: - event = self.wait_event(0.25) - if event: - if event_callback and event_callback(event): - continue - if helper.eventHandler(event): - if isinstance(event, bb.build.TaskFailedSilent): - logger.warning("Logfile for failed setscene task is %s" % event.logfile) - elif isinstance(event, bb.build.TaskFailed): - bb.ui.knotty.print_event_log(event, includelogs, loglines, termfilter) - continue - if isinstance(event, bb.event.ProcessStarted): - if self.quiet > 1: - continue - parseprogress = bb.ui.knotty.new_progress(event.processname, event.total) - parseprogress.start(False) - continue - if isinstance(event, bb.event.ProcessProgress): - if self.quiet > 1: - continue - if parseprogress: - parseprogress.update(event.progress) - else: - bb.warn("Got ProcessProgress event for someting that never started?") - continue - if isinstance(event, bb.event.ProcessFinished): - if self.quiet > 1: - continue - if parseprogress: - parseprogress.finish() - parseprogress = None - continue - if isinstance(event, bb.command.CommandCompleted): - result = True - break - if isinstance(event, bb.command.CommandFailed): - self.logger.error(str(event)) - result = False - break - if isinstance(event, logging.LogRecord): - if event.taskpid == 0 or event.levelno > logging.INFO: - self.logger.handle(event) - continue - if isinstance(event, bb.event.NoProvider): - self.logger.error(str(event)) - result = False - break - - elif helper.shutdown > 1: - break - termfilter.updateFooter() - except KeyboardInterrupt: - termfilter.clearFooter() - if helper.shutdown == 1: - print("\nSecond Keyboard Interrupt, stopping...\n") - ret = self.run_command("stateForceShutdown") - if ret and ret[2]: - self.logger.error("Unable to cleanly stop: %s" % ret[2]) - elif helper.shutdown == 0: - print("\nKeyboard Interrupt, closing down...\n") - interrupted = True - ret = self.run_command("stateShutdown") - if ret and ret[2]: - self.logger.error("Unable to cleanly shutdown: %s" % ret[2]) - helper.shutdown = helper.shutdown + 1 - termfilter.clearFooter() - finally: - termfilter.finish() - if helper.failed_tasks: - result = False - return result - else: - return ret - - def shutdown(self): - """ - Shut down tinfoil. Disconnects from the server and gracefully - releases any associated resources. You must call this function if - prepare() has been called, or use a with... block when you create - the tinfoil object which will ensure that it gets called. - """ - if self.server_connection: - self.run_command('clientComplete') - _server_connections.remove(self.server_connection) - bb.event.ui_queue = [] - self.server_connection.terminate() - self.server_connection = None - - # Restore logging handlers to how it looked when we started - if self.oldhandlers: - for handler in self.logger.handlers: - if handler not in self.oldhandlers: - self.logger.handlers.remove(handler) - - def _reconvert_type(self, obj, origtypename): - """ - Convert an object back to the right type, in the case - that marshalling has changed it (especially with xmlrpc) - """ - supported_types = { - 'set': set, - 'DataStoreConnectionHandle': bb.command.DataStoreConnectionHandle, - } - - origtype = supported_types.get(origtypename, None) - if origtype is None: - raise Exception('Unsupported type "%s"' % origtypename) - if type(obj) == origtype: - newobj = obj - elif isinstance(obj, dict): - # New style class - newobj = origtype() - for k,v in obj.items(): - setattr(newobj, k, v) - else: - # Assume we can coerce the type - newobj = origtype(obj) - - if isinstance(newobj, bb.command.DataStoreConnectionHandle): - connector = TinfoilDataStoreConnector(self, newobj.dsindex) - newobj = bb.data.init() - newobj.setVar('_remote_data', connector) - - return newobj - - -class TinfoilConfigParameters(BitBakeConfigParameters): - - def __init__(self, config_only, **options): - self.initial_options = options - # Apply some sane defaults - if not 'parse_only' in options: - self.initial_options['parse_only'] = not config_only - #if not 'status_only' in options: - # self.initial_options['status_only'] = config_only - if not 'ui' in options: - self.initial_options['ui'] = 'knotty' - if not 'argv' in options: - self.initial_options['argv'] = [] - - super(TinfoilConfigParameters, self).__init__() - - def parseCommandLine(self, argv=None): - # We don't want any parameters parsed from the command line - opts = super(TinfoilConfigParameters, self).parseCommandLine([]) - for key, val in self.initial_options.items(): - setattr(opts[0], key, val) - return opts diff --git a/poky/bitbake/lib/bb/ui/__init__.py b/poky/bitbake/lib/bb/ui/__init__.py deleted file mode 100644 index a4805ed..0000000 --- a/poky/bitbake/lib/bb/ui/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ -# -# BitBake UI Implementation -# -# Copyright (C) 2006-2007 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. diff --git a/poky/bitbake/lib/bb/ui/buildinfohelper.py b/poky/bitbake/lib/bb/ui/buildinfohelper.py deleted file mode 100644 index e451c63..0000000 --- a/poky/bitbake/lib/bb/ui/buildinfohelper.py +++ /dev/null @@ -1,1998 +0,0 @@ -# -# BitBake ToasterUI Implementation -# -# Copyright (C) 2013 Intel Corporation -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import sys -import bb -import re -import os - -import django -from django.utils import timezone - -import toaster -# Add toaster module to the search path to help django.setup() find the right -# modules -sys.path.insert(0, os.path.dirname(toaster.__file__)) - -#Set the DJANGO_SETTINGS_MODULE if it's not already set -os.environ["DJANGO_SETTINGS_MODULE"] =\ - os.environ.get("DJANGO_SETTINGS_MODULE", - "toaster.toastermain.settings") -# Setup django framework (needs to be done before importing modules) -django.setup() - -from orm.models import Build, Task, Recipe, Layer_Version, Layer, Target, LogMessage, HelpText -from orm.models import Target_Image_File, TargetKernelFile, TargetSDKFile -from orm.models import Variable, VariableHistory -from orm.models import Package, Package_File, Target_Installed_Package, Target_File -from orm.models import Task_Dependency, Package_Dependency -from orm.models import Recipe_Dependency, Provides -from orm.models import Project, CustomImagePackage -from orm.models import signal_runbuilds - -from bldcontrol.models import BuildEnvironment, BuildRequest -from bldcontrol.models import BRLayer -from bldcontrol import bbcontroller - -from bb.msg import BBLogFormatter as formatter -from django.db import models -from pprint import pformat -import logging -from datetime import datetime, timedelta - -from django.db import transaction, connection - - -# pylint: disable=invalid-name -# the logger name is standard throughout BitBake -logger = logging.getLogger("ToasterLogger") - -class NotExisting(Exception): - pass - -class ORMWrapper(object): - """ This class creates the dictionaries needed to store information in the database - following the format defined by the Django models. It is also used to save this - information in the database. - """ - - def __init__(self): - self.layer_version_objects = [] - self.layer_version_built = [] - self.task_objects = {} - self.recipe_objects = {} - - @staticmethod - def _build_key(**kwargs): - key = "0" - for k in sorted(kwargs.keys()): - if isinstance(kwargs[k], models.Model): - key += "-%d" % kwargs[k].id - else: - key += "-%s" % str(kwargs[k]) - return key - - - def _cached_get_or_create(self, clazz, **kwargs): - """ This is a memory-cached get_or_create. We assume that the objects will not be created in the - database through any other means. - """ - - assert issubclass(clazz, models.Model), "_cached_get_or_create needs to get the class as first argument" - - key = ORMWrapper._build_key(**kwargs) - dictname = "objects_%s" % clazz.__name__ - if not dictname in vars(self).keys(): - vars(self)[dictname] = {} - - created = False - if not key in vars(self)[dictname].keys(): - vars(self)[dictname][key], created = \ - clazz.objects.get_or_create(**kwargs) - - return (vars(self)[dictname][key], created) - - - def _cached_get(self, clazz, **kwargs): - """ This is a memory-cached get. We assume that the objects will not change in the database between gets. - """ - assert issubclass(clazz, models.Model), "_cached_get needs to get the class as first argument" - - key = ORMWrapper._build_key(**kwargs) - dictname = "objects_%s" % clazz.__name__ - - if not dictname in vars(self).keys(): - vars(self)[dictname] = {} - - if not key in vars(self)[dictname].keys(): - vars(self)[dictname][key] = clazz.objects.get(**kwargs) - - return vars(self)[dictname][key] - - def get_similar_target_with_image_files(self, target): - """ - Get a Target object "similar" to target; i.e. with the same target - name ('core-image-minimal' etc.) and machine. - """ - return target.get_similar_target_with_image_files() - - def get_similar_target_with_sdk_files(self, target): - return target.get_similar_target_with_sdk_files() - - def clone_image_artifacts(self, target_from, target_to): - target_to.clone_image_artifacts_from(target_from) - - def clone_sdk_artifacts(self, target_from, target_to): - target_to.clone_sdk_artifacts_from(target_from) - - def _timestamp_to_datetime(self, secs): - """ - Convert timestamp in seconds to Python datetime - """ - return timezone.make_aware(datetime(1970, 1, 1) + timedelta(seconds=secs)) - - # pylint: disable=no-self-use - # we disable detection of no self use in functions because the methods actually work on the object - # even if they don't touch self anywhere - - # pylint: disable=bad-continuation - # we do not follow the python conventions for continuation indentation due to long lines here - - def get_or_create_build_object(self, brbe): - prj = None - buildrequest = None - if brbe is not None: - # Toaster-triggered build - logger.debug(1, "buildinfohelper: brbe is %s" % brbe) - br, _ = brbe.split(":") - buildrequest = BuildRequest.objects.get(pk=br) - prj = buildrequest.project - else: - # CLI build - prj = Project.objects.get_or_create_default_project() - logger.debug(1, "buildinfohelper: project is not specified, defaulting to %s" % prj) - - if buildrequest is not None: - # reuse existing Build object - build = buildrequest.build - build.project = prj - build.save() - else: - # create new Build object - now = timezone.now() - build = Build.objects.create( - project=prj, - started_on=now, - completed_on=now, - build_name='') - - logger.debug(1, "buildinfohelper: build is created %s" % build) - - if buildrequest is not None: - buildrequest.build = build - buildrequest.save() - - return build - - def update_build(self, build, data_dict): - for key in data_dict: - setattr(build, key, data_dict[key]) - build.save() - - @staticmethod - def get_or_create_targets(target_info): - """ - NB get_or_create() is used here because for Toaster-triggered builds, - we already created the targets when the build was triggered. - """ - result = [] - for target in target_info['targets']: - task = '' - if ':' in target: - target, task = target.split(':', 1) - if task.startswith('do_'): - task = task[3:] - if task == 'build': - task = '' - - obj, _ = Target.objects.get_or_create(build=target_info['build'], - target=target, - task=task) - result.append(obj) - return result - - def update_build_stats_and_outcome(self, build, errors, warnings, taskfailures): - assert isinstance(build,Build) - assert isinstance(errors, int) - assert isinstance(warnings, int) - - if build.outcome == Build.CANCELLED: - return - try: - if build.buildrequest.state == BuildRequest.REQ_CANCELLING: - return - except AttributeError: - # We may not have a buildrequest if this is a command line build - pass - - outcome = Build.SUCCEEDED - if errors or taskfailures: - outcome = Build.FAILED - - build.completed_on = timezone.now() - build.outcome = outcome - build.save() - signal_runbuilds() - - def update_target_set_license_manifest(self, target, license_manifest_path): - target.license_manifest_path = license_manifest_path - target.save() - - def update_target_set_package_manifest(self, target, package_manifest_path): - target.package_manifest_path = package_manifest_path - target.save() - - def update_task_object(self, build, task_name, recipe_name, task_stats): - """ - Find the task for build which matches the recipe and task name - to be stored - """ - task_to_update = Task.objects.get( - build = build, - task_name = task_name, - recipe__name = recipe_name - ) - - if 'started' in task_stats and 'ended' in task_stats: - task_to_update.started = self._timestamp_to_datetime(task_stats['started']) - task_to_update.ended = self._timestamp_to_datetime(task_stats['ended']) - task_to_update.elapsed_time = (task_stats['ended'] - task_stats['started']) - task_to_update.cpu_time_user = task_stats.get('cpu_time_user') - task_to_update.cpu_time_system = task_stats.get('cpu_time_system') - if 'disk_io_read' in task_stats and 'disk_io_write' in task_stats: - task_to_update.disk_io_read = task_stats['disk_io_read'] - task_to_update.disk_io_write = task_stats['disk_io_write'] - task_to_update.disk_io = task_stats['disk_io_read'] + task_stats['disk_io_write'] - - task_to_update.save() - - def get_update_task_object(self, task_information, must_exist = False): - assert 'build' in task_information - assert 'recipe' in task_information - assert 'task_name' in task_information - - # we use must_exist info for database look-up optimization - task_object, created = self._cached_get_or_create(Task, - build=task_information['build'], - recipe=task_information['recipe'], - task_name=task_information['task_name'] - ) - if created and must_exist: - task_information['debug'] = "build id %d, recipe id %d" % (task_information['build'].pk, task_information['recipe'].pk) - raise NotExisting("Task object created when expected to exist", task_information) - - object_changed = False - for v in vars(task_object): - if v in task_information.keys(): - if vars(task_object)[v] != task_information[v]: - vars(task_object)[v] = task_information[v] - object_changed = True - - # update setscene-related information if the task has a setscene - if task_object.outcome == Task.OUTCOME_COVERED and 1 == task_object.get_related_setscene().count(): - task_object.outcome = Task.OUTCOME_CACHED - object_changed = True - - outcome_task_setscene = Task.objects.get(task_executed=True, build = task_object.build, - recipe = task_object.recipe, task_name=task_object.task_name+"_setscene").outcome - if outcome_task_setscene == Task.OUTCOME_SUCCESS: - task_object.sstate_result = Task.SSTATE_RESTORED - object_changed = True - elif outcome_task_setscene == Task.OUTCOME_FAILED: - task_object.sstate_result = Task.SSTATE_FAILED - object_changed = True - - if object_changed: - task_object.save() - return task_object - - - def get_update_recipe_object(self, recipe_information, must_exist = False): - assert 'layer_version' in recipe_information - assert 'file_path' in recipe_information - assert 'pathflags' in recipe_information - - assert not recipe_information['file_path'].startswith("/") # we should have layer-relative paths at all times - - - def update_recipe_obj(recipe_object): - object_changed = False - for v in vars(recipe_object): - if v in recipe_information.keys(): - object_changed = True - vars(recipe_object)[v] = recipe_information[v] - - if object_changed: - recipe_object.save() - - recipe, created = self._cached_get_or_create(Recipe, layer_version=recipe_information['layer_version'], - file_path=recipe_information['file_path'], pathflags = recipe_information['pathflags']) - - update_recipe_obj(recipe) - - built_recipe = None - # Create a copy of the recipe for historical puposes and update it - for built_layer in self.layer_version_built: - if built_layer.layer == recipe_information['layer_version'].layer: - built_recipe, c = self._cached_get_or_create(Recipe, - layer_version=built_layer, - file_path=recipe_information['file_path'], - pathflags = recipe_information['pathflags']) - update_recipe_obj(built_recipe) - break - - - # If we're in analysis mode or if this is a custom recipe - # then we are wholly responsible for the data - # and therefore we return the 'real' recipe rather than the build - # history copy of the recipe. - if recipe_information['layer_version'].build is not None and \ - recipe_information['layer_version'].build.project == \ - Project.objects.get_or_create_default_project(): - return recipe - - if built_recipe is None: - return recipe - - return built_recipe - - def get_update_layer_version_object(self, build_obj, layer_obj, layer_version_information): - if isinstance(layer_obj, Layer_Version): - # We already found our layer version for this build so just - # update it with the new build information - logger.debug("We found our layer from toaster") - layer_obj.local_path = layer_version_information['local_path'] - layer_obj.save() - self.layer_version_objects.append(layer_obj) - - # create a new copy of this layer version as a snapshot for - # historical purposes - layer_copy, c = Layer_Version.objects.get_or_create( - build=build_obj, - layer=layer_obj.layer, - release=layer_obj.release, - branch=layer_version_information['branch'], - commit=layer_version_information['commit'], - local_path=layer_version_information['local_path'], - ) - - logger.debug("Created new layer version %s for build history", - layer_copy.layer.name) - - self.layer_version_built.append(layer_copy) - - return layer_obj - - assert isinstance(build_obj, Build) - assert isinstance(layer_obj, Layer) - assert 'branch' in layer_version_information - assert 'commit' in layer_version_information - assert 'priority' in layer_version_information - assert 'local_path' in layer_version_information - - # If we're doing a command line build then associate this new layer with the - # project to avoid it 'contaminating' toaster data - project = None - if build_obj.project == Project.objects.get_or_create_default_project(): - project = build_obj.project - - layer_version_object, _ = Layer_Version.objects.get_or_create( - build = build_obj, - layer = layer_obj, - branch = layer_version_information['branch'], - commit = layer_version_information['commit'], - priority = layer_version_information['priority'], - local_path = layer_version_information['local_path'], - project=project) - - self.layer_version_objects.append(layer_version_object) - - return layer_version_object - - def get_update_layer_object(self, layer_information, brbe): - assert 'name' in layer_information - assert 'layer_index_url' in layer_information - - # From command line builds we have no brbe as the request is directly - # from bitbake - if brbe is None: - # If we don't have git commit sha then we're using a non-git - # layer so set the layer_source_dir to identify it as such - if not layer_information['version']['commit']: - local_source_dir = layer_information["local_path"] - else: - local_source_dir = None - - layer_object, _ = \ - Layer.objects.get_or_create( - name=layer_information['name'], - local_source_dir=local_source_dir, - layer_index_url=layer_information['layer_index_url']) - - return layer_object - else: - br_id, be_id = brbe.split(":") - - # Find the layer version by matching the layer event information - # against the metadata we have in Toaster - - try: - br_layer = BRLayer.objects.get(req=br_id, - name=layer_information['name']) - return br_layer.layer_version - except (BRLayer.MultipleObjectsReturned, BRLayer.DoesNotExist): - # There are multiple of the same layer name or the name - # hasn't been determined by the toaster.bbclass layer - # so let's filter by the local_path - bc = bbcontroller.getBuildEnvironmentController(pk=be_id) - for br_layer in BRLayer.objects.filter(req=br_id): - if br_layer.giturl and \ - layer_information['local_path'].endswith( - bc.getGitCloneDirectory(br_layer.giturl, - br_layer.commit)): - return br_layer.layer_version - - if br_layer.local_source_dir == \ - layer_information['local_path']: - return br_layer.layer_version - - # We've reached the end of our search and couldn't find the layer - # we can continue but some data may be missing - raise NotExisting("Unidentified layer %s" % - pformat(layer_information)) - - def save_target_file_information(self, build_obj, target_obj, filedata): - assert isinstance(build_obj, Build) - assert isinstance(target_obj, Target) - dirs = filedata['dirs'] - files = filedata['files'] - syms = filedata['syms'] - - # always create the root directory as a special case; - # note that this is never displayed, so the owner, group, - # size, permission are irrelevant - tf_obj = Target_File.objects.create(target = target_obj, - path = '/', - size = 0, - owner = '', - group = '', - permission = '', - inodetype = Target_File.ITYPE_DIRECTORY) - tf_obj.save() - - # insert directories, ordered by name depth - for d in sorted(dirs, key=lambda x:len(x[-1].split("/"))): - (user, group, size) = d[1:4] - permission = d[0][1:] - path = d[4].lstrip(".") - - # we already created the root directory, so ignore any - # entry for it - if len(path) == 0: - continue - - parent_path = "/".join(path.split("/")[:len(path.split("/")) - 1]) - if len(parent_path) == 0: - parent_path = "/" - parent_obj = self._cached_get(Target_File, target = target_obj, path = parent_path, inodetype = Target_File.ITYPE_DIRECTORY) - tf_obj = Target_File.objects.create( - target = target_obj, - path = path, - size = size, - inodetype = Target_File.ITYPE_DIRECTORY, - permission = permission, - owner = user, - group = group, - directory = parent_obj) - - - # we insert files - for d in files: - (user, group, size) = d[1:4] - permission = d[0][1:] - path = d[4].lstrip(".") - parent_path = "/".join(path.split("/")[:len(path.split("/")) - 1]) - inodetype = Target_File.ITYPE_REGULAR - if d[0].startswith('b'): - inodetype = Target_File.ITYPE_BLOCK - if d[0].startswith('c'): - inodetype = Target_File.ITYPE_CHARACTER - if d[0].startswith('p'): - inodetype = Target_File.ITYPE_FIFO - - tf_obj = Target_File.objects.create( - target = target_obj, - path = path, - size = size, - inodetype = inodetype, - permission = permission, - owner = user, - group = group) - parent_obj = self._cached_get(Target_File, target = target_obj, path = parent_path, inodetype = Target_File.ITYPE_DIRECTORY) - tf_obj.directory = parent_obj - tf_obj.save() - - # we insert symlinks - for d in syms: - (user, group, size) = d[1:4] - permission = d[0][1:] - path = d[4].lstrip(".") - filetarget_path = d[6] - - parent_path = "/".join(path.split("/")[:len(path.split("/")) - 1]) - if not filetarget_path.startswith("/"): - # we have a relative path, get a normalized absolute one - filetarget_path = parent_path + "/" + filetarget_path - fcp = filetarget_path.split("/") - fcpl = [] - for i in fcp: - if i == "..": - fcpl.pop() - else: - fcpl.append(i) - filetarget_path = "/".join(fcpl) - - try: - filetarget_obj = Target_File.objects.get(target = target_obj, path = filetarget_path) - except Target_File.DoesNotExist: - # we might have an invalid link; no way to detect this. just set it to None - filetarget_obj = None - - parent_obj = Target_File.objects.get(target = target_obj, path = parent_path, inodetype = Target_File.ITYPE_DIRECTORY) - - tf_obj = Target_File.objects.create( - target = target_obj, - path = path, - size = size, - inodetype = Target_File.ITYPE_SYMLINK, - permission = permission, - owner = user, - group = group, - directory = parent_obj, - sym_target = filetarget_obj) - - - def save_target_package_information(self, build_obj, target_obj, packagedict, pkgpnmap, recipes, built_package=False): - assert isinstance(build_obj, Build) - assert isinstance(target_obj, Target) - - errormsg = "" - for p in packagedict: - # Search name swtiches round the installed name vs package name - # by default installed name == package name - searchname = p - if p not in pkgpnmap: - logger.warning("Image packages list contains %p, but is" - " missing from all packages list where the" - " metadata comes from. Skipping...", p) - continue - - if 'OPKGN' in pkgpnmap[p].keys(): - searchname = pkgpnmap[p]['OPKGN'] - - built_recipe = recipes[pkgpnmap[p]['PN']] - - if built_package: - packagedict[p]['object'], created = Package.objects.get_or_create( build = build_obj, name = searchname ) - recipe = built_recipe - else: - packagedict[p]['object'], created = \ - CustomImagePackage.objects.get_or_create(name=searchname) - # Clear the Package_Dependency objects as we're going to update - # the CustomImagePackage with the latest dependency information - packagedict[p]['object'].package_dependencies_target.all().delete() - packagedict[p]['object'].package_dependencies_source.all().delete() - try: - recipe = self._cached_get( - Recipe, - name=built_recipe.name, - layer_version__build=None, - layer_version__release= - built_recipe.layer_version.release, - file_path=built_recipe.file_path, - version=built_recipe.version - ) - except (Recipe.DoesNotExist, - Recipe.MultipleObjectsReturned) as e: - logger.info("We did not find one recipe for the" - "configuration data package %s %s" % (p, e)) - continue - - if created or packagedict[p]['object'].size == -1: # save the data anyway we can, not just if it was not created here; bug [YOCTO #6887] - # fill in everything we can from the runtime-reverse package data - try: - packagedict[p]['object'].recipe = recipe - packagedict[p]['object'].version = pkgpnmap[p]['PV'] - packagedict[p]['object'].installed_name = p - packagedict[p]['object'].revision = pkgpnmap[p]['PR'] - packagedict[p]['object'].license = pkgpnmap[p]['LICENSE'] - packagedict[p]['object'].section = pkgpnmap[p]['SECTION'] - packagedict[p]['object'].summary = pkgpnmap[p]['SUMMARY'] - packagedict[p]['object'].description = pkgpnmap[p]['DESCRIPTION'] - packagedict[p]['object'].size = int(pkgpnmap[p]['PKGSIZE']) - - # no files recorded for this package, so save files info - packagefile_objects = [] - for targetpath in pkgpnmap[p]['FILES_INFO']: - targetfilesize = pkgpnmap[p]['FILES_INFO'][targetpath] - packagefile_objects.append(Package_File( package = packagedict[p]['object'], - path = targetpath, - size = targetfilesize)) - if len(packagefile_objects): - Package_File.objects.bulk_create(packagefile_objects) - except KeyError as e: - errormsg += " stpi: Key error, package %s key %s \n" % ( p, e ) - - # save disk installed size - packagedict[p]['object'].installed_size = packagedict[p]['size'] - packagedict[p]['object'].save() - - if built_package: - Target_Installed_Package.objects.create(target = target_obj, package = packagedict[p]['object']) - - packagedeps_objs = [] - for p in packagedict: - for (px,deptype) in packagedict[p]['depends']: - if deptype == 'depends': - tdeptype = Package_Dependency.TYPE_TRDEPENDS - elif deptype == 'recommends': - tdeptype = Package_Dependency.TYPE_TRECOMMENDS - - try: - packagedeps_objs.append(Package_Dependency( - package = packagedict[p]['object'], - depends_on = packagedict[px]['object'], - dep_type = tdeptype, - target = target_obj)) - except KeyError as e: - logger.warning("Could not add dependency to the package %s " - "because %s is an unknown package", p, px) - - if len(packagedeps_objs) > 0: - Package_Dependency.objects.bulk_create(packagedeps_objs) - else: - logger.info("No package dependencies created") - - if len(errormsg) > 0: - logger.warning("buildinfohelper: target_package_info could not identify recipes: \n%s", errormsg) - - def save_target_image_file_information(self, target_obj, file_name, file_size): - Target_Image_File.objects.create(target=target_obj, - file_name=file_name, file_size=file_size) - - def save_target_kernel_file(self, target_obj, file_name, file_size): - """ - Save kernel file (bzImage, modules*) information for a Target target_obj. - """ - TargetKernelFile.objects.create(target=target_obj, - file_name=file_name, file_size=file_size) - - def save_target_sdk_file(self, target_obj, file_name, file_size): - """ - Save SDK artifacts to the database, associating them with a - Target object. - """ - TargetSDKFile.objects.create(target=target_obj, file_name=file_name, - file_size=file_size) - - def create_logmessage(self, log_information): - assert 'build' in log_information - assert 'level' in log_information - assert 'message' in log_information - - log_object = LogMessage.objects.create( - build = log_information['build'], - level = log_information['level'], - message = log_information['message']) - - for v in vars(log_object): - if v in log_information.keys(): - vars(log_object)[v] = log_information[v] - - return log_object.save() - - - def save_build_package_information(self, build_obj, package_info, recipes, - built_package): - # assert isinstance(build_obj, Build) - - # create and save the object - pname = package_info['PKG'] - built_recipe = recipes[package_info['PN']] - if 'OPKGN' in package_info.keys(): - pname = package_info['OPKGN'] - - if built_package: - bp_object, _ = Package.objects.get_or_create( build = build_obj, - name = pname ) - recipe = built_recipe - else: - bp_object, created = \ - CustomImagePackage.objects.get_or_create(name=pname) - try: - recipe = self._cached_get(Recipe, - name=built_recipe.name, - layer_version__build=None, - file_path=built_recipe.file_path, - version=built_recipe.version) - - except (Recipe.DoesNotExist, Recipe.MultipleObjectsReturned): - logger.debug("We did not find one recipe for the configuration" - "data package %s" % pname) - return - - bp_object.installed_name = package_info['PKG'] - bp_object.recipe = recipe - bp_object.version = package_info['PKGV'] - bp_object.revision = package_info['PKGR'] - bp_object.summary = package_info['SUMMARY'] - bp_object.description = package_info['DESCRIPTION'] - bp_object.size = int(package_info['PKGSIZE']) - bp_object.section = package_info['SECTION'] - bp_object.license = package_info['LICENSE'] - bp_object.save() - - # save any attached file information - packagefile_objects = [] - for path in package_info['FILES_INFO']: - packagefile_objects.append(Package_File( package = bp_object, - path = path, - size = package_info['FILES_INFO'][path] )) - if len(packagefile_objects): - Package_File.objects.bulk_create(packagefile_objects) - - def _po_byname(p): - if built_package: - pkg, created = Package.objects.get_or_create(build=build_obj, - name=p) - else: - pkg, created = CustomImagePackage.objects.get_or_create(name=p) - - if created: - pkg.size = -1 - pkg.save() - return pkg - - packagedeps_objs = [] - # save soft dependency information - if 'RDEPENDS' in package_info and package_info['RDEPENDS']: - for p in bb.utils.explode_deps(package_info['RDEPENDS']): - packagedeps_objs.append(Package_Dependency( package = bp_object, - depends_on = _po_byname(p), dep_type = Package_Dependency.TYPE_RDEPENDS)) - if 'RPROVIDES' in package_info and package_info['RPROVIDES']: - for p in bb.utils.explode_deps(package_info['RPROVIDES']): - packagedeps_objs.append(Package_Dependency( package = bp_object, - depends_on = _po_byname(p), dep_type = Package_Dependency.TYPE_RPROVIDES)) - if 'RRECOMMENDS' in package_info and package_info['RRECOMMENDS']: - for p in bb.utils.explode_deps(package_info['RRECOMMENDS']): - packagedeps_objs.append(Package_Dependency( package = bp_object, - depends_on = _po_byname(p), dep_type = Package_Dependency.TYPE_RRECOMMENDS)) - if 'RSUGGESTS' in package_info and package_info['RSUGGESTS']: - for p in bb.utils.explode_deps(package_info['RSUGGESTS']): - packagedeps_objs.append(Package_Dependency( package = bp_object, - depends_on = _po_byname(p), dep_type = Package_Dependency.TYPE_RSUGGESTS)) - if 'RREPLACES' in package_info and package_info['RREPLACES']: - for p in bb.utils.explode_deps(package_info['RREPLACES']): - packagedeps_objs.append(Package_Dependency( package = bp_object, - depends_on = _po_byname(p), dep_type = Package_Dependency.TYPE_RREPLACES)) - if 'RCONFLICTS' in package_info and package_info['RCONFLICTS']: - for p in bb.utils.explode_deps(package_info['RCONFLICTS']): - packagedeps_objs.append(Package_Dependency( package = bp_object, - depends_on = _po_byname(p), dep_type = Package_Dependency.TYPE_RCONFLICTS)) - - if len(packagedeps_objs) > 0: - Package_Dependency.objects.bulk_create(packagedeps_objs) - - return bp_object - - def save_build_variables(self, build_obj, vardump): - assert isinstance(build_obj, Build) - - for k in vardump: - desc = vardump[k]['doc'] - if desc is None: - var_words = [word for word in k.split('_')] - root_var = "_".join([word for word in var_words if word.isupper()]) - if root_var and root_var != k and root_var in vardump: - desc = vardump[root_var]['doc'] - if desc is None: - desc = '' - if len(desc): - HelpText.objects.get_or_create(build=build_obj, - area=HelpText.VARIABLE, - key=k, text=desc) - if not bool(vardump[k]['func']): - value = vardump[k]['v'] - if value is None: - value = '' - variable_obj = Variable.objects.create( build = build_obj, - variable_name = k, - variable_value = value, - description = desc) - - varhist_objects = [] - for vh in vardump[k]['history']: - if not 'documentation.conf' in vh['file']: - varhist_objects.append(VariableHistory( variable = variable_obj, - file_name = vh['file'], - line_number = vh['line'], - operation = vh['op'])) - if len(varhist_objects): - VariableHistory.objects.bulk_create(varhist_objects) - - -class MockEvent(object): - """ This object is used to create event, for which normal event-processing methods can - be used, out of data that is not coming via an actual event - """ - def __init__(self): - self.msg = None - self.levelno = None - self.taskname = None - self.taskhash = None - self.pathname = None - self.lineno = None - - def getMessage(self): - """ - Simulate LogRecord message return - """ - return self.msg - - -class BuildInfoHelper(object): - """ This class gathers the build information from the server and sends it - towards the ORM wrapper for storing in the database - It is instantiated once per build - Keeps in memory all data that needs matching before writing it to the database - """ - - # tasks which produce image files; note we include '', as we set - # the task for a target to '' (i.e. 'build') if no target is - # explicitly defined - IMAGE_GENERATING_TASKS = ['', 'build', 'image', 'populate_sdk_ext'] - - # pylint: disable=protected-access - # the code will look into the protected variables of the event; no easy way around this - # pylint: disable=bad-continuation - # we do not follow the python conventions for continuation indentation due to long lines here - - def __init__(self, server, has_build_history = False, brbe = None): - self.internal_state = {} - self.internal_state['taskdata'] = {} - self.internal_state['targets'] = [] - self.task_order = 0 - self.autocommit_step = 1 - self.server = server - # we use manual transactions if the database doesn't autocommit on us - if not connection.features.autocommits_when_autocommit_is_off: - transaction.set_autocommit(False) - self.orm_wrapper = ORMWrapper() - self.has_build_history = has_build_history - self.tmp_dir = self.server.runCommand(["getVariable", "TMPDIR"])[0] - - # this is set for Toaster-triggered builds by localhostbecontroller - # via toasterui - self.brbe = brbe - - self.project = None - - logger.debug(1, "buildinfohelper: Build info helper inited %s" % vars(self)) - - - ################### - ## methods to convert event/external info into objects that the ORM layer uses - - def _ensure_build(self): - """ - Ensure the current build object exists and is up to date with - data on the bitbake server - """ - if not 'build' in self.internal_state or not self.internal_state['build']: - # create the Build object - self.internal_state['build'] = \ - self.orm_wrapper.get_or_create_build_object(self.brbe) - - build = self.internal_state['build'] - - # update missing fields on the Build object with found data - build_info = {} - - # set to True if at least one field is going to be set - changed = False - - if not build.build_name: - build_name = self.server.runCommand(["getVariable", "BUILDNAME"])[0] - - # only reset the build name if the one on the server is actually - # a valid value for the build_name field - if build_name != None: - build_info['build_name'] = build_name - changed = True - - if not build.machine: - build_info['machine'] = self.server.runCommand(["getVariable", "MACHINE"])[0] - changed = True - - if not build.distro: - build_info['distro'] = self.server.runCommand(["getVariable", "DISTRO"])[0] - changed = True - - if not build.distro_version: - build_info['distro_version'] = self.server.runCommand(["getVariable", "DISTRO_VERSION"])[0] - changed = True - - if not build.bitbake_version: - build_info['bitbake_version'] = self.server.runCommand(["getVariable", "BB_VERSION"])[0] - changed = True - - if changed: - self.orm_wrapper.update_build(self.internal_state['build'], build_info) - - def _get_task_information(self, event, recipe): - assert 'taskname' in vars(event) - self._ensure_build() - - task_information = {} - task_information['build'] = self.internal_state['build'] - task_information['outcome'] = Task.OUTCOME_NA - task_information['recipe'] = recipe - task_information['task_name'] = event.taskname - try: - # some tasks don't come with a hash. and that's ok - task_information['sstate_checksum'] = event.taskhash - except AttributeError: - pass - return task_information - - def _get_layer_version_for_dependency(self, pathRE): - """ Returns the layer in the toaster db that has a full regex - match to the pathRE. pathRE - the layer path passed as a regex in the - event. It is created in cooker.py as a collection for the layer - priorities. - """ - self._ensure_build() - - def _sort_longest_path(layer_version): - assert isinstance(layer_version, Layer_Version) - return len(layer_version.local_path) - - # Our paths don't append a trailing slash - if pathRE.endswith("/"): - pathRE = pathRE[:-1] - - p = re.compile(pathRE) - path=re.sub(r'[$^]',r'',pathRE) - # Heuristics: we always match recipe to the deepest layer path in - # the discovered layers - for lvo in sorted(self.orm_wrapper.layer_version_objects, - reverse=True, key=_sort_longest_path): - if p.fullmatch(os.path.abspath(lvo.local_path)): - return lvo - if lvo.layer.local_source_dir: - if p.fullmatch(os.path.abspath(lvo.layer.local_source_dir)): - return lvo - if 0 == path.find(lvo.local_path): - # sub-layer path inside existing layer - return lvo - - # if we get here, we didn't read layers correctly; - # dump whatever information we have on the error log - logger.warning("Could not match layer dependency for path %s : %s", - pathRE, - self.orm_wrapper.layer_version_objects) - return None - - def _get_layer_version_for_path(self, path): - self._ensure_build() - - def _slkey_interactive(layer_version): - assert isinstance(layer_version, Layer_Version) - return len(layer_version.local_path) - - # Heuristics: we always match recipe to the deepest layer path in the discovered layers - for lvo in sorted(self.orm_wrapper.layer_version_objects, reverse=True, key=_slkey_interactive): - # we can match to the recipe file path - if path.startswith(lvo.local_path): - return lvo - if lvo.layer.local_source_dir and \ - path.startswith(lvo.layer.local_source_dir): - return lvo - - #if we get here, we didn't read layers correctly; dump whatever information we have on the error log - logger.warning("Could not match layer version for recipe path %s : %s", path, self.orm_wrapper.layer_version_objects) - - #mockup the new layer - unknown_layer, _ = Layer.objects.get_or_create(name="Unidentified layer", layer_index_url="") - unknown_layer_version_obj, _ = Layer_Version.objects.get_or_create(layer = unknown_layer, build = self.internal_state['build']) - - # append it so we don't run into this error again and again - self.orm_wrapper.layer_version_objects.append(unknown_layer_version_obj) - - return unknown_layer_version_obj - - def _get_recipe_information_from_taskfile(self, taskfile): - localfilepath = taskfile.split(":")[-1] - filepath_flags = ":".join(sorted(taskfile.split(":")[:-1])) - layer_version_obj = self._get_layer_version_for_path(localfilepath) - - - - recipe_info = {} - recipe_info['layer_version'] = layer_version_obj - recipe_info['file_path'] = localfilepath - recipe_info['pathflags'] = filepath_flags - - if recipe_info['file_path'].startswith(recipe_info['layer_version'].local_path): - recipe_info['file_path'] = recipe_info['file_path'][len(recipe_info['layer_version'].local_path):].lstrip("/") - else: - raise RuntimeError("Recipe file path %s is not under layer version at %s" % (recipe_info['file_path'], recipe_info['layer_version'].local_path)) - - return recipe_info - - def _get_path_information(self, task_object): - self._ensure_build() - - assert isinstance(task_object, Task) - build_stats_format = "{tmpdir}/buildstats/{buildname}/{package}/" - build_stats_path = [] - - for t in self.internal_state['targets']: - buildname = self.internal_state['build'].build_name - pe, pv = task_object.recipe.version.split(":",1) - if len(pe) > 0: - package = task_object.recipe.name + "-" + pe + "_" + pv - else: - package = task_object.recipe.name + "-" + pv - - build_stats_path.append(build_stats_format.format(tmpdir=self.tmp_dir, - buildname=buildname, - package=package)) - - return build_stats_path - - - ################################ - ## external available methods to store information - @staticmethod - def _get_data_from_event(event): - evdata = None - if '_localdata' in vars(event): - evdata = event._localdata - elif 'data' in vars(event): - evdata = event.data - else: - raise Exception("Event with neither _localdata or data properties") - return evdata - - def store_layer_info(self, event): - layerinfos = BuildInfoHelper._get_data_from_event(event) - self.internal_state['lvs'] = {} - for layer in layerinfos: - try: - self.internal_state['lvs'][self.orm_wrapper.get_update_layer_object(layerinfos[layer], self.brbe)] = layerinfos[layer]['version'] - self.internal_state['lvs'][self.orm_wrapper.get_update_layer_object(layerinfos[layer], self.brbe)]['local_path'] = layerinfos[layer]['local_path'] - except NotExisting as nee: - logger.warning("buildinfohelper: cannot identify layer exception:%s ", nee) - - def store_started_build(self): - self._ensure_build() - - def save_build_log_file_path(self, build_log_path): - self._ensure_build() - - if not self.internal_state['build'].cooker_log_path: - data_dict = {'cooker_log_path': build_log_path} - self.orm_wrapper.update_build(self.internal_state['build'], data_dict) - - def save_build_targets(self, event): - self._ensure_build() - - # create target information - assert '_pkgs' in vars(event) - target_information = {} - target_information['targets'] = event._pkgs - target_information['build'] = self.internal_state['build'] - - self.internal_state['targets'] = self.orm_wrapper.get_or_create_targets(target_information) - - def save_build_layers_and_variables(self): - self._ensure_build() - - build_obj = self.internal_state['build'] - - # save layer version information for this build - if not 'lvs' in self.internal_state: - logger.error("Layer version information not found; Check if the bitbake server was configured to inherit toaster.bbclass.") - else: - for layer_obj in self.internal_state['lvs']: - self.orm_wrapper.get_update_layer_version_object(build_obj, layer_obj, self.internal_state['lvs'][layer_obj]) - - del self.internal_state['lvs'] - - # Save build configuration - data = self.server.runCommand(["getAllKeysWithFlags", ["doc", "func"]])[0] - - # convert the paths from absolute to relative to either the build directory or layer checkouts - path_prefixes = [] - - if self.brbe is not None: - _, be_id = self.brbe.split(":") - be = BuildEnvironment.objects.get(pk = be_id) - path_prefixes.append(be.builddir) - - for layer in sorted(self.orm_wrapper.layer_version_objects, key = lambda x:len(x.local_path), reverse=True): - path_prefixes.append(layer.local_path) - - # we strip the prefixes - for k in data: - if not bool(data[k]['func']): - for vh in data[k]['history']: - if not 'documentation.conf' in vh['file']: - abs_file_name = vh['file'] - for pp in path_prefixes: - if abs_file_name.startswith(pp + "/"): - # preserve layer name in relative path - vh['file']=abs_file_name[pp.rfind("/")+1:] - break - - # save the variables - self.orm_wrapper.save_build_variables(build_obj, data) - - return self.brbe - - def set_recipes_to_parse(self, num_recipes): - """ - Set the number of recipes which need to be parsed for this build. - This is set the first time ParseStarted is received by toasterui. - """ - self._ensure_build() - self.internal_state['build'].recipes_to_parse = num_recipes - self.internal_state['build'].save() - - def set_recipes_parsed(self, num_recipes): - """ - Set the number of recipes parsed so far for this build; this is updated - each time a ParseProgress or ParseCompleted event is received by - toasterui. - """ - self._ensure_build() - if num_recipes <= self.internal_state['build'].recipes_to_parse: - self.internal_state['build'].recipes_parsed = num_recipes - self.internal_state['build'].save() - - def update_target_image_file(self, event): - evdata = BuildInfoHelper._get_data_from_event(event) - - for t in self.internal_state['targets']: - if t.is_image == True: - output_files = list(evdata.keys()) - for output in output_files: - if t.target in output and 'rootfs' in output and not output.endswith(".manifest"): - self.orm_wrapper.save_target_image_file_information(t, output, evdata[output]) - - def update_artifact_image_file(self, event): - self._ensure_build() - evdata = BuildInfoHelper._get_data_from_event(event) - for artifact_path in evdata.keys(): - self.orm_wrapper.save_artifact_information( - self.internal_state['build'], artifact_path, - evdata[artifact_path]) - - def update_build_information(self, event, errors, warnings, taskfailures): - self._ensure_build() - self.orm_wrapper.update_build_stats_and_outcome( - self.internal_state['build'], errors, warnings, taskfailures) - - def store_started_task(self, event): - assert isinstance(event, (bb.runqueue.sceneQueueTaskStarted, bb.runqueue.runQueueTaskStarted, bb.runqueue.runQueueTaskSkipped)) - assert 'taskfile' in vars(event) - localfilepath = event.taskfile.split(":")[-1] - assert localfilepath.startswith("/") - - identifier = event.taskfile + ":" + event.taskname - - recipe_information = self._get_recipe_information_from_taskfile(event.taskfile) - recipe = self.orm_wrapper.get_update_recipe_object(recipe_information, True) - - task_information = self._get_task_information(event, recipe) - task_information['outcome'] = Task.OUTCOME_NA - - if isinstance(event, bb.runqueue.runQueueTaskSkipped): - assert 'reason' in vars(event) - task_information['task_executed'] = False - if event.reason == "covered": - task_information['outcome'] = Task.OUTCOME_COVERED - if event.reason == "existing": - task_information['outcome'] = Task.OUTCOME_PREBUILT - else: - task_information['task_executed'] = True - if 'noexec' in vars(event) and event.noexec == True: - task_information['task_executed'] = False - task_information['outcome'] = Task.OUTCOME_EMPTY - task_information['script_type'] = Task.CODING_NA - - # do not assign order numbers to scene tasks - if not isinstance(event, bb.runqueue.sceneQueueTaskStarted): - self.task_order += 1 - task_information['order'] = self.task_order - - self.orm_wrapper.get_update_task_object(task_information) - - self.internal_state['taskdata'][identifier] = { - 'outcome': task_information['outcome'], - } - - - def store_tasks_stats(self, event): - self._ensure_build() - task_data = BuildInfoHelper._get_data_from_event(event) - - for (task_file, task_name, task_stats, recipe_name) in task_data: - build = self.internal_state['build'] - self.orm_wrapper.update_task_object(build, task_name, recipe_name, task_stats) - - def update_and_store_task(self, event): - assert 'taskfile' in vars(event) - localfilepath = event.taskfile.split(":")[-1] - assert localfilepath.startswith("/") - - identifier = event.taskfile + ":" + event.taskname - if not identifier in self.internal_state['taskdata']: - if isinstance(event, bb.build.TaskBase): - # we do a bit of guessing - candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)] - if len(candidates) == 1: - identifier = candidates[0] - elif len(candidates) > 1 and hasattr(event,'_package'): - if 'native-' in event._package: - identifier = 'native:' + identifier - if 'nativesdk-' in event._package: - identifier = 'nativesdk:' + identifier - candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)] - if len(candidates) == 1: - identifier = candidates[0] - - assert identifier in self.internal_state['taskdata'] - identifierlist = identifier.split(":") - realtaskfile = ":".join(identifierlist[0:len(identifierlist)-1]) - recipe_information = self._get_recipe_information_from_taskfile(realtaskfile) - recipe = self.orm_wrapper.get_update_recipe_object(recipe_information, True) - task_information = self._get_task_information(event,recipe) - - task_information['outcome'] = self.internal_state['taskdata'][identifier]['outcome'] - - if 'logfile' in vars(event): - task_information['logfile'] = event.logfile - - if '_message' in vars(event): - task_information['message'] = event._message - - if 'taskflags' in vars(event): - # with TaskStarted, we get even more information - if 'python' in event.taskflags.keys() and event.taskflags['python'] == '1': - task_information['script_type'] = Task.CODING_PYTHON - else: - task_information['script_type'] = Task.CODING_SHELL - - if task_information['outcome'] == Task.OUTCOME_NA: - if isinstance(event, (bb.runqueue.runQueueTaskCompleted, bb.runqueue.sceneQueueTaskCompleted)): - task_information['outcome'] = Task.OUTCOME_SUCCESS - del self.internal_state['taskdata'][identifier] - - if isinstance(event, (bb.runqueue.runQueueTaskFailed, bb.runqueue.sceneQueueTaskFailed)): - task_information['outcome'] = Task.OUTCOME_FAILED - del self.internal_state['taskdata'][identifier] - - if not connection.features.autocommits_when_autocommit_is_off: - # we force a sync point here, to get the progress bar to show - if self.autocommit_step % 3 == 0: - transaction.set_autocommit(True) - transaction.set_autocommit(False) - self.autocommit_step += 1 - - self.orm_wrapper.get_update_task_object(task_information, True) # must exist - - - def store_missed_state_tasks(self, event): - for (fn, taskname, taskhash, sstatefile) in BuildInfoHelper._get_data_from_event(event)['missed']: - - # identifier = fn + taskname + "_setscene" - recipe_information = self._get_recipe_information_from_taskfile(fn) - recipe = self.orm_wrapper.get_update_recipe_object(recipe_information) - mevent = MockEvent() - mevent.taskname = taskname - mevent.taskhash = taskhash - task_information = self._get_task_information(mevent,recipe) - - task_information['start_time'] = timezone.now() - task_information['outcome'] = Task.OUTCOME_NA - task_information['sstate_checksum'] = taskhash - task_information['sstate_result'] = Task.SSTATE_MISS - task_information['path_to_sstate_obj'] = sstatefile - - self.orm_wrapper.get_update_task_object(task_information) - - for (fn, taskname, taskhash, sstatefile) in BuildInfoHelper._get_data_from_event(event)['found']: - - # identifier = fn + taskname + "_setscene" - recipe_information = self._get_recipe_information_from_taskfile(fn) - recipe = self.orm_wrapper.get_update_recipe_object(recipe_information) - mevent = MockEvent() - mevent.taskname = taskname - mevent.taskhash = taskhash - task_information = self._get_task_information(mevent,recipe) - - task_information['path_to_sstate_obj'] = sstatefile - - self.orm_wrapper.get_update_task_object(task_information) - - - def store_target_package_data(self, event): - self._ensure_build() - - # for all image targets - for target in self.internal_state['targets']: - if target.is_image: - pkgdata = BuildInfoHelper._get_data_from_event(event)['pkgdata'] - imgdata = BuildInfoHelper._get_data_from_event(event)['imgdata'].get(target.target, {}) - filedata = BuildInfoHelper._get_data_from_event(event)['filedata'].get(target.target, {}) - - try: - self.orm_wrapper.save_target_package_information(self.internal_state['build'], target, imgdata, pkgdata, self.internal_state['recipes'], built_package=True) - self.orm_wrapper.save_target_package_information(self.internal_state['build'], target, imgdata.copy(), pkgdata, self.internal_state['recipes'], built_package=False) - except KeyError as e: - logger.warning("KeyError in save_target_package_information" - "%s ", e) - - # only try to find files in the image if the task for this - # target is one which produces image files; otherwise, the old - # list of files in the files-in-image.txt file will be - # appended to the target even if it didn't produce any images - if target.task in BuildInfoHelper.IMAGE_GENERATING_TASKS: - try: - self.orm_wrapper.save_target_file_information(self.internal_state['build'], target, filedata) - except KeyError as e: - logger.warning("KeyError in save_target_file_information" - "%s ", e) - - - - def cancel_cli_build(self): - """ - If a build is currently underway, set its state to CANCELLED; - note that this only gets called for command line builds which are - interrupted, so it doesn't touch any BuildRequest objects - """ - self._ensure_build() - self.internal_state['build'].outcome = Build.CANCELLED - self.internal_state['build'].save() - signal_runbuilds() - - def store_dependency_information(self, event): - assert '_depgraph' in vars(event) - assert 'layer-priorities' in event._depgraph - assert 'pn' in event._depgraph - assert 'tdepends' in event._depgraph - - errormsg = "" - - # save layer version priorities - if 'layer-priorities' in event._depgraph.keys(): - for lv in event._depgraph['layer-priorities']: - (_, path, _, priority) = lv - layer_version_obj = self._get_layer_version_for_dependency(path) - if layer_version_obj: - layer_version_obj.priority = priority - layer_version_obj.save() - - # save recipe information - self.internal_state['recipes'] = {} - for pn in event._depgraph['pn']: - - file_name = event._depgraph['pn'][pn]['filename'].split(":")[-1] - pathflags = ":".join(sorted(event._depgraph['pn'][pn]['filename'].split(":")[:-1])) - layer_version_obj = self._get_layer_version_for_path(file_name) - - assert layer_version_obj is not None - - recipe_info = {} - recipe_info['name'] = pn - recipe_info['layer_version'] = layer_version_obj - - if 'version' in event._depgraph['pn'][pn]: - recipe_info['version'] = event._depgraph['pn'][pn]['version'].lstrip(":") - - if 'summary' in event._depgraph['pn'][pn]: - recipe_info['summary'] = event._depgraph['pn'][pn]['summary'] - - if 'license' in event._depgraph['pn'][pn]: - recipe_info['license'] = event._depgraph['pn'][pn]['license'] - - if 'description' in event._depgraph['pn'][pn]: - recipe_info['description'] = event._depgraph['pn'][pn]['description'] - - if 'section' in event._depgraph['pn'][pn]: - recipe_info['section'] = event._depgraph['pn'][pn]['section'] - - if 'homepage' in event._depgraph['pn'][pn]: - recipe_info['homepage'] = event._depgraph['pn'][pn]['homepage'] - - if 'bugtracker' in event._depgraph['pn'][pn]: - recipe_info['bugtracker'] = event._depgraph['pn'][pn]['bugtracker'] - - recipe_info['file_path'] = file_name - recipe_info['pathflags'] = pathflags - - if recipe_info['file_path'].startswith(recipe_info['layer_version'].local_path): - recipe_info['file_path'] = recipe_info['file_path'][len(recipe_info['layer_version'].local_path):].lstrip("/") - else: - raise RuntimeError("Recipe file path %s is not under layer version at %s" % (recipe_info['file_path'], recipe_info['layer_version'].local_path)) - - recipe = self.orm_wrapper.get_update_recipe_object(recipe_info) - recipe.is_image = False - if 'inherits' in event._depgraph['pn'][pn].keys(): - for cls in event._depgraph['pn'][pn]['inherits']: - if cls.endswith('/image.bbclass'): - recipe.is_image = True - recipe_info['is_image'] = True - # Save the is_image state to the relevant recipe objects - self.orm_wrapper.get_update_recipe_object(recipe_info) - break - if recipe.is_image: - for t in self.internal_state['targets']: - if pn == t.target: - t.is_image = True - t.save() - self.internal_state['recipes'][pn] = recipe - - # we'll not get recipes for key w/ values listed in ASSUME_PROVIDED - - assume_provided = self.server.runCommand(["getVariable", "ASSUME_PROVIDED"])[0].split() - - # save recipe dependency - # buildtime - recipedeps_objects = [] - for recipe in event._depgraph['depends']: - target = self.internal_state['recipes'][recipe] - for dep in event._depgraph['depends'][recipe]: - if dep in assume_provided: - continue - via = None - if 'providermap' in event._depgraph and dep in event._depgraph['providermap']: - deprecipe = event._depgraph['providermap'][dep][0] - dependency = self.internal_state['recipes'][deprecipe] - via = Provides.objects.get_or_create(name=dep, - recipe=dependency)[0] - elif dep in self.internal_state['recipes']: - dependency = self.internal_state['recipes'][dep] - else: - errormsg += " stpd: KeyError saving recipe dependency for %s, %s \n" % (recipe, dep) - continue - recipe_dep = Recipe_Dependency(recipe=target, - depends_on=dependency, - via=via, - dep_type=Recipe_Dependency.TYPE_DEPENDS) - recipedeps_objects.append(recipe_dep) - - Recipe_Dependency.objects.bulk_create(recipedeps_objects) - - # save all task information - def _save_a_task(taskdesc): - spec = re.split(r'\.', taskdesc) - pn = ".".join(spec[0:-1]) - taskname = spec[-1] - e = event - e.taskname = pn - recipe = self.internal_state['recipes'][pn] - task_info = self._get_task_information(e, recipe) - task_info['task_name'] = taskname - task_obj = self.orm_wrapper.get_update_task_object(task_info) - return task_obj - - # create tasks - tasks = {} - for taskdesc in event._depgraph['tdepends']: - tasks[taskdesc] = _save_a_task(taskdesc) - - # create dependencies between tasks - taskdeps_objects = [] - for taskdesc in event._depgraph['tdepends']: - target = tasks[taskdesc] - for taskdep in event._depgraph['tdepends'][taskdesc]: - if taskdep not in tasks: - # Fetch tasks info is not collected previously - dep = _save_a_task(taskdep) - else: - dep = tasks[taskdep] - taskdeps_objects.append(Task_Dependency( task = target, depends_on = dep )) - Task_Dependency.objects.bulk_create(taskdeps_objects) - - if len(errormsg) > 0: - logger.warning("buildinfohelper: dependency info not identify recipes: \n%s", errormsg) - - - def store_build_package_information(self, event): - self._ensure_build() - - package_info = BuildInfoHelper._get_data_from_event(event) - self.orm_wrapper.save_build_package_information( - self.internal_state['build'], - package_info, - self.internal_state['recipes'], - built_package=True) - - self.orm_wrapper.save_build_package_information( - self.internal_state['build'], - package_info, - self.internal_state['recipes'], - built_package=False) - - def _store_build_done(self, errorcode): - logger.info("Build exited with errorcode %d", errorcode) - - if not self.brbe: - return - - br_id, be_id = self.brbe.split(":") - - br = BuildRequest.objects.get(pk = br_id) - - # if we're 'done' because we got cancelled update the build outcome - if br.state == BuildRequest.REQ_CANCELLING: - logger.info("Build cancelled") - br.build.outcome = Build.CANCELLED - br.build.save() - self.internal_state['build'] = br.build - errorcode = 0 - - if errorcode == 0: - # request archival of the project artifacts - br.state = BuildRequest.REQ_COMPLETED - else: - br.state = BuildRequest.REQ_FAILED - br.save() - - be = BuildEnvironment.objects.get(pk = be_id) - be.lock = BuildEnvironment.LOCK_FREE - be.save() - signal_runbuilds() - - def store_log_error(self, text): - mockevent = MockEvent() - mockevent.levelno = formatter.ERROR - mockevent.msg = text - mockevent.pathname = '-- None' - mockevent.lineno = LogMessage.ERROR - self.store_log_event(mockevent) - - def store_log_exception(self, text, backtrace = ""): - mockevent = MockEvent() - mockevent.levelno = -1 - mockevent.msg = text - mockevent.pathname = backtrace - mockevent.lineno = -1 - self.store_log_event(mockevent) - - def store_log_event(self, event): - self._ensure_build() - - if event.levelno < formatter.WARNING: - return - - # early return for CLI builds - if self.brbe is None: - if not 'backlog' in self.internal_state: - self.internal_state['backlog'] = [] - self.internal_state['backlog'].append(event) - return - - if 'backlog' in self.internal_state: - # if we have a backlog of events, do our best to save them here - if len(self.internal_state['backlog']): - tempevent = self.internal_state['backlog'].pop() - logger.debug(1, "buildinfohelper: Saving stored event %s " - % tempevent) - self.store_log_event(tempevent) - else: - logger.info("buildinfohelper: All events saved") - del self.internal_state['backlog'] - - log_information = {} - log_information['build'] = self.internal_state['build'] - if event.levelno == formatter.CRITICAL: - log_information['level'] = LogMessage.CRITICAL - elif event.levelno == formatter.ERROR: - log_information['level'] = LogMessage.ERROR - elif event.levelno == formatter.WARNING: - log_information['level'] = LogMessage.WARNING - elif event.levelno == -2: # toaster self-logging - log_information['level'] = -2 - else: - log_information['level'] = LogMessage.INFO - - log_information['message'] = event.getMessage() - log_information['pathname'] = event.pathname - log_information['lineno'] = event.lineno - logger.info("Logging error 2: %s", log_information) - - self.orm_wrapper.create_logmessage(log_information) - - def _get_filenames_from_image_license(self, image_license_manifest_path): - """ - Find the FILES line in the image_license.manifest file, - which has the basenames of the bzImage and modules files - in this format: - FILES: bzImage--4.4.11+git0+3a5f494784_53e84104c5-r0-qemux86-20160603165040.bin modules--4.4.11+git0+3a5f494784_53e84104c5-r0-qemux86-20160603165040.tgz - """ - files = [] - with open(image_license_manifest_path) as image_license: - for line in image_license: - if line.startswith('FILES'): - files_str = line.split(':')[1].strip() - files_str = re.sub(r' {2,}', ' ', files_str) - - # ignore lines like "FILES:" with no filenames - if files_str: - files += files_str.split(' ') - return files - - def _endswith(self, str_to_test, endings): - """ - Returns True if str ends with one of the strings in the list - endings, False otherwise - """ - endswith = False - for ending in endings: - if str_to_test.endswith(ending): - endswith = True - break - return endswith - - def scan_task_artifacts(self, event): - """ - The 'TaskArtifacts' event passes the manifest file content for the - tasks 'do_deploy', 'do_image_complete', 'do_populate_sdk', and - 'do_populate_sdk_ext'. The first two will be implemented later. - """ - task_vars = BuildInfoHelper._get_data_from_event(event) - task_name = task_vars['task'][task_vars['task'].find(':')+1:] - task_artifacts = task_vars['artifacts'] - - if task_name in ['do_populate_sdk', 'do_populate_sdk_ext']: - targets = [target for target in self.internal_state['targets'] \ - if target.task == task_name[3:]] - if not targets: - logger.warning("scan_task_artifacts: SDK targets not found: %s\n", task_name) - return - for artifact_path in task_artifacts: - if not os.path.isfile(artifact_path): - logger.warning("scan_task_artifacts: artifact file not found: %s\n", artifact_path) - continue - for target in targets: - # don't record the file if it's already been added - # to this target - matching_files = TargetSDKFile.objects.filter( - target=target, file_name=artifact_path) - if matching_files.count() == 0: - artifact_size = os.stat(artifact_path).st_size - self.orm_wrapper.save_target_sdk_file( - target, artifact_path, artifact_size) - - def _get_image_files(self, deploy_dir_image, image_name, image_file_extensions): - """ - Find files in deploy_dir_image whose basename starts with the - string image_name and ends with one of the strings in - image_file_extensions. - - Returns a list of file dictionaries like - - [ - { - 'path': '/path/to/image/file', - 'size': <file size in bytes> - } - ] - """ - image_files = [] - - for dirpath, _, filenames in os.walk(deploy_dir_image): - for filename in filenames: - if filename.startswith(image_name) and \ - self._endswith(filename, image_file_extensions): - image_file_path = os.path.join(dirpath, filename) - image_file_size = os.stat(image_file_path).st_size - - image_files.append({ - 'path': image_file_path, - 'size': image_file_size - }) - - return image_files - - def scan_image_artifacts(self): - """ - Scan for built image artifacts in DEPLOY_DIR_IMAGE and associate them - with a Target object in self.internal_state['targets']. - - We have two situations to handle: - - 1. This is the first time a target + machine has been built, so - add files from the DEPLOY_DIR_IMAGE to the target. - - OR - - 2. There are no new files for the target (they were already produced by - a previous build), so copy them from the most recent previous build with - the same target, task and machine. - """ - deploy_dir_image = \ - self.server.runCommand(['getVariable', 'DEPLOY_DIR_IMAGE'])[0] - - # if there's no DEPLOY_DIR_IMAGE, there aren't going to be - # any image artifacts, so we can return immediately - if not deploy_dir_image: - return - - buildname = self.server.runCommand(['getVariable', 'BUILDNAME'])[0] - machine = self.server.runCommand(['getVariable', 'MACHINE'])[0] - image_name = self.server.runCommand(['getVariable', 'IMAGE_NAME'])[0] - - # location of the manifest files for this build; - # note that this file is only produced if an image is produced - license_directory = \ - self.server.runCommand(['getVariable', 'LICENSE_DIRECTORY'])[0] - - # file name extensions for image files - image_file_extensions_unique = {} - image_fstypes = self.server.runCommand( - ['getVariable', 'IMAGE_FSTYPES'])[0] - if image_fstypes != None: - image_types_str = image_fstypes.strip() - image_file_extensions = re.sub(r' {2,}', ' ', image_types_str) - image_file_extensions_unique = set(image_file_extensions.split(' ')) - - targets = self.internal_state['targets'] - - # filter out anything which isn't an image target - image_targets = [target for target in targets if target.is_image] - - for image_target in image_targets: - # this is set to True if we find at least one file relating to - # this target; if this remains False after the scan, we copy the - # files from the most-recent Target with the same target + machine - # onto this Target instead - has_files = False - - # we construct this because by the time we reach - # BuildCompleted, this has reset to - # 'defaultpkgname-<MACHINE>-<BUILDNAME>'; - # we need to change it to - # <TARGET>-<MACHINE>-<BUILDNAME> - real_image_name = re.sub(r'^defaultpkgname', image_target.target, - image_name) - - image_license_manifest_path = os.path.join( - license_directory, - real_image_name, - 'image_license.manifest') - - image_package_manifest_path = os.path.join( - license_directory, - real_image_name, - 'image_license.manifest') - - # if image_license.manifest exists, we can read the names of - # bzImage, modules etc. files for this build from it, then look for - # them in the DEPLOY_DIR_IMAGE; note that this file is only produced - # if an image file was produced - if os.path.isfile(image_license_manifest_path): - has_files = True - - basenames = self._get_filenames_from_image_license( - image_license_manifest_path) - - for basename in basenames: - artifact_path = os.path.join(deploy_dir_image, basename) - if not os.path.exists(artifact_path): - logger.warning("artifact %s doesn't exist, skipping" % artifact_path) - continue - artifact_size = os.stat(artifact_path).st_size - - # note that the artifact will only be saved against this - # build if it hasn't been already - self.orm_wrapper.save_target_kernel_file(image_target, - artifact_path, artifact_size) - - # store the license manifest path on the target - # (this file is also created any time an image file is created) - license_manifest_path = os.path.join(license_directory, - real_image_name, 'license.manifest') - - self.orm_wrapper.update_target_set_license_manifest( - image_target, license_manifest_path) - - # store the package manifest path on the target (this file - # is created any time an image file is created) - package_manifest_path = os.path.join(deploy_dir_image, - real_image_name + '.rootfs.manifest') - - if os.path.exists(package_manifest_path): - self.orm_wrapper.update_target_set_package_manifest( - image_target, package_manifest_path) - - # scan the directory for image files relating to this build - # (via real_image_name); note that we don't have to set - # has_files = True, as searching for the license manifest file - # will already have set it to true if at least one image file was - # produced; note that the real_image_name includes BUILDNAME, which - # in turn includes a timestamp; so if no files were produced for - # this timestamp (i.e. the build reused existing image files already - # in the directory), no files will be recorded against this target - image_files = self._get_image_files(deploy_dir_image, - real_image_name, image_file_extensions_unique) - - for image_file in image_files: - self.orm_wrapper.save_target_image_file_information( - image_target, image_file['path'], image_file['size']) - - if not has_files: - # copy image files and build artifacts from the - # most-recently-built Target with the - # same target + machine as this Target; also copy the license - # manifest path, as that is not treated as an artifact and needs - # to be set separately - similar_target = \ - self.orm_wrapper.get_similar_target_with_image_files( - image_target) - - if similar_target: - logger.info('image artifacts for target %s cloned from ' \ - 'target %s' % (image_target.pk, similar_target.pk)) - self.orm_wrapper.clone_image_artifacts(similar_target, - image_target) - - def _get_sdk_targets(self): - """ - Return targets which could generate SDK artifacts, i.e. - "do_populate_sdk" and "do_populate_sdk_ext". - """ - return [target for target in self.internal_state['targets'] \ - if target.task in ['populate_sdk', 'populate_sdk_ext']] - - def scan_sdk_artifacts(self, event): - """ - Note that we have to intercept an SDKArtifactInfo event from - toaster.bbclass (via toasterui) to get hold of the SDK variables we - need to be able to scan for files accurately: this is because - variables like TOOLCHAIN_OUTPUTNAME have reset to None by the time - BuildCompleted is fired by bitbake, so we have to get those values - while the build is still in progress. - - For populate_sdk_ext, this runs twice, with two different - TOOLCHAIN_OUTPUTNAME settings, each of which will capture some of the - files in the SDK output directory. - """ - sdk_vars = BuildInfoHelper._get_data_from_event(event) - toolchain_outputname = sdk_vars['TOOLCHAIN_OUTPUTNAME'] - - # targets which might have created SDK artifacts - sdk_targets = self._get_sdk_targets() - - # location of SDK artifacts - tmpdir = self.server.runCommand(['getVariable', 'TMPDIR'])[0] - sdk_dir = os.path.join(tmpdir, 'deploy', 'sdk') - - # all files in the SDK directory - artifacts = [] - for dir_path, _, filenames in os.walk(sdk_dir): - for filename in filenames: - full_path = os.path.join(dir_path, filename) - if not os.path.islink(full_path): - artifacts.append(full_path) - - for sdk_target in sdk_targets: - # find files in the SDK directory which haven't already been - # recorded against a Target and whose basename matches - # TOOLCHAIN_OUTPUTNAME - for artifact_path in artifacts: - basename = os.path.basename(artifact_path) - - toolchain_match = basename.startswith(toolchain_outputname) - - # files which match the name of the target which produced them; - # for example, - # poky-glibc-x86_64-core-image-sato-i586-toolchain-ext-2.1+snapshot.sh - target_match = re.search(sdk_target.target, basename) - - # targets which produce "*-nativesdk-*" files - is_ext_sdk_target = sdk_target.task in \ - ['do_populate_sdk_ext', 'populate_sdk_ext'] - - # SDK files which don't match the target name, i.e. - # x86_64-nativesdk-libc.* - # poky-glibc-x86_64-buildtools-tarball-i586-buildtools-nativesdk-standalone-2.1+snapshot* - is_ext_sdk_file = re.search('-nativesdk-', basename) - - file_from_target = (toolchain_match and target_match) or \ - (is_ext_sdk_target and is_ext_sdk_file) - - if file_from_target: - # don't record the file if it's already been added to this - # target - matching_files = TargetSDKFile.objects.filter( - target=sdk_target, file_name=artifact_path) - - if matching_files.count() == 0: - artifact_size = os.stat(artifact_path).st_size - - self.orm_wrapper.save_target_sdk_file( - sdk_target, artifact_path, artifact_size) - - def clone_required_sdk_artifacts(self): - """ - If an SDK target doesn't have any SDK artifacts, this means that - the postfuncs of populate_sdk or populate_sdk_ext didn't fire, which - in turn means that the targets of this build didn't generate any new - artifacts. - - In this case, clone SDK artifacts for targets in the current build - from existing targets for this build. - """ - sdk_targets = self._get_sdk_targets() - for sdk_target in sdk_targets: - # only clone for SDK targets which have no TargetSDKFiles yet - if sdk_target.targetsdkfile_set.all().count() == 0: - similar_target = \ - self.orm_wrapper.get_similar_target_with_sdk_files( - sdk_target) - if similar_target: - logger.info('SDK artifacts for target %s cloned from ' \ - 'target %s' % (sdk_target.pk, similar_target.pk)) - self.orm_wrapper.clone_sdk_artifacts(similar_target, - sdk_target) - - def close(self, errorcode): - self._store_build_done(errorcode) - - if 'backlog' in self.internal_state: - # we save missed events in the database for the current build - tempevent = self.internal_state['backlog'].pop() - self.store_log_event(tempevent) - - if not connection.features.autocommits_when_autocommit_is_off: - transaction.set_autocommit(True) - - # unset the brbe; this is to prevent subsequent command-line builds - # being incorrectly attached to the previous Toaster-triggered build; - # see https://bugzilla.yoctoproject.org/show_bug.cgi?id=9021 - self.brbe = None - - # unset the internal Build object to prevent it being reused for the - # next build - self.internal_state['build'] = None diff --git a/poky/bitbake/lib/bb/ui/icons/images/images_display.png b/poky/bitbake/lib/bb/ui/icons/images/images_display.png deleted file mode 100644 index a7f87101af19926116cee7c07af877759896f7e0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6898 zcmX|l1ys~g)At{#r4eZa0Z~dqx?}0CT{=W!L8PRF6<9h2X;>PhmXek(0TEeBI;CL+ zq+F5uc)s_2pEGyv+&kyoIcH|>`Q4ctqpzz*M$AYI005bWy0YP&)cp^G2=3+t6f5(c zAo5T*^8x^p2mfIl0GUG%0K|IEN=o|rPVV0BUQX^FtQty6tR8RN9i3l00KnUYTq797 zXpdGFyK)BBibkYrxf{}eSPj8(2<oJ#JZwain$c{9^E3v%_f=Hzn7$T7<0d2^;%N+? zk;W3w5pJ>-C4?16$9}u~2`_e;>A-G}-Zah1?NpuSHjEMWfJoETg$+azq!nP6`)grC zUj~0}@+*W8b9exhpay$3uj|J+z~3Ml8D91t!Y%;k?Gy<J=+VjU5qubROR*2mvcy4z z<MenZNoau()PO=j0=N`VP{l#yW<E6n3h;mzBX%!00DV5-1!wT~6oAP6n+3-KEK=EM za0-$D)&~yJ%7BwJP&H;8s{)t`0@RLLUnGG!K0r{z#8Dmi)B^ONDM{)95Gf#N5FNn{ z;K6|xUmrhy3xsC@)T$>YGRM3%lsi0kk;<x<Y2}bq39$h2c@mnK@Uw8CHRyP$#cc1{ zA{F@i{IeK@LPRLmPQL>{K@!cKx2M-{(d0E~v{*tjxeecbH^D9Y%a<EBTVs_T3IOoa zJ80tOnLq<0LYe^KdQ<e|5YNe)q`(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hOfUh}JZL1Hin!dT{&h3UAb4LcOeOQ2Q2m95v6$7^f&>l&{iwO>XKw zfByR;N7Aci@dAy0YhH_V#<eswpX`-XlVJ&V`4WBKuga|94le2s@{acK?CrKbeM>JW z(Bg=SRSdL^e=qO7JC0zH4Vc5O2H(Q8(w{LnE&ka8$I8FS4~AG-F~^b=a>%Ui9_nus zI9G9L1_SsZ$(7m>4rXr7&U+$&4Gk@|8!UdhwAr$dW*CCH>w^v!ul{WRX>ys>-IU9h zwi}Ee4yWvc5O6=i)o1>AGFw&?P6^^(^IElN30j7SCo7^*eb_)HO*3W%TIG+q@*j~~ z3Z9}?Brc3>csB2jBcL`mw~adi@CeH3Y0>Fw?x8G0b;WRM2AZf8J-PEucYfaXcoMes zH~BVtT#6oYcO^Weq&-gGND5RMxl>$&smCQGzd|5Bj0co|Yn_1mg*~!Vg!R&s1Qrc8 zZsJgY@aPojJf(Nu*{Y}vn8eZY{bK+ugXXsaTgNo$T^X_yfY0l(yf=FhJ_3#R%3Jk2 zkMJ#X0biWA!~ih~$q~73hY&A0pc$*Bd)GtCOZeYjt?l4)>5xAc?oxmA4ozSAoX-pF z=60x*?huhe6Tu^6x2BsTlk_L>D6jL;(f&RX?CggOu_Ru5k*T_n51|Ba{-`jLAKNwM z_K|J5YPG|zc-69o>#JNij(8cg`pgcj0Uejm=yJT`nZ^H@`skeZY7s2GPjSEUvzk?t zxjvgRVUc?$;VT!_MaQ##PmwLPpx_g$fsv8dtHY(%+lh9V`_9+8$HB|hxA`|yI`{~9 z`+H1DbHcs3m1Up5!RN5#YdXa&<d8$Jg9)wW|B&z9=KtuwN?ObRueL&Bf(Zai0Z7n+ Tx8vPM0RU*I=qlHMUxfZYXf;No diff --git a/poky/bitbake/lib/bb/ui/icons/images/images_hover.png b/poky/bitbake/lib/bb/ui/icons/images/images_hover.png deleted file mode 100644 index 2d9cd99b8e9da6b65948dbbdcf774fdedbd34329..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 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wqUOHSOH=mu{Sf{p0si-Xt>~+Uh6ZYY=k3Ub zq~`YE16O_xd=U|93z%fVG<zzXe-)b$*Wxu<JgLPvRUtG39~j1{bgCS12i<y9!dZ8b z)29d_lay<Bi9;alqiI2xig)$D54Y)pCOz{QV>{Wb2q6eUoteWUlcjG;ie5hl$b9gW zRpB+;sl>|Zu3GB-r6rykb?_}_XA76&k+mgEchE&$b#?W_mD4b$=w58}CUH%<%k!p1 z?Tjh`6Afo_L!FpWpD<W57({sdO(t$rPcxyEuL79>BjhBNODW4Nd<zL7MSD~5gM6@7 zlKGv>M;#coWG3$y=ZRPag7Blb_ckmETVm&|BjFkScusL`H=|tLMxcFG^L8B8@(3s* z{rwQYbG3G<<i1e9li~=OgT<qi+^q9d@0d^a!zt;1;@nAg4RR}B!8+62IpqOHdft=G z0%JQeen})$i_2F*7gwPtX0Vlv5vK)a$8&$lCj)`@w?`zXDEq_9U7zQ?b%TU|IXO9L zCN&y9#s}fyw>30ZVdNdnXYZ@2hjt!=9{WNPBO%Emdx<V_ySuw9()K+~DAYASE_f=6 zM)t|i)!wKC|16Q5Rmk{w5N{bo=biNN@$qn0h|hdflSI>U1e`ipI_f&?UwJ+SfxtEc z61E^sY-`~;b31fL{rOp9ac|x$h8_lE0?YpqJN(1{%KsS&EdRf`Fn9Nc1n?g<Jv&<G R`R{fO&`{M?K|*aK{~t;9j?@4E diff --git a/poky/bitbake/lib/bb/ui/icons/indicators/add-hover.png b/poky/bitbake/lib/bb/ui/icons/indicators/add-hover.png deleted file mode 100644 index 526df770d15e987affb17aa359b48fa991676d07..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1212 zcmV;t1Vj6YP)<h;3K|Lk000e1NJLTq0012T0015c1^@s6&<7Qv00001b5ch_0Itp) z=>Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyY| z5-uABI<vU|00cZqL_t(Y$F*0xjvPf4J$38VUERI&*qsF<TMnGqN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v4xuJQ1@hi@-~&wqV>#8V}anGBQZ1gYtUO-c#QdFPL; zLs^z6s}lSB`zXuuY})(s<;#&G*}{T|uv)FqPkRWRDYMREwOXNG)i^jf!0T79&jz}D zy&QoO5sWdg)}n1&c<%?$zNgMPRAq&7dB#eeb0as{14SP@@~>ZOJ`9^^+jjKs`CQ_N z10RQl_&+&^HDP$eIjr5Q=jt3bR@jTc8LZNYW;?_%{`+7pdKYi4MPnN{=eofP9s%LM zTTlQ9KESmO_xA4nz&SU93otsmZCclY5i9TCzkjOAPXz6!vZ))~xN+l)V_LHGtsiX6 aaq$<Pz=q4^7&NT_0000<MNUMnLSTYc+AEI$ diff --git a/poky/bitbake/lib/bb/ui/icons/indicators/add.png b/poky/bitbake/lib/bb/ui/icons/indicators/add.png deleted file mode 100644 index 31e7090d616fcca92456ed11ecc6aabc1b015039..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1176 zcmV;J1ZVq+P)<h;3K|Lk000e1NJLTq0012T0015c1^@s6&<7Qv00001b5ch_0Itp) z=>Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyY{ z79k~8f3@!b00bCGL_t(Y$E}vVZX`t%g-`u=_w)?b*j^CQW)93c!K}0*LBf`nm%xv~ z0}vu|N91S&Cw>775gN(j0gzTCUZizkykq*Os_rFdx@UT3Y|q$~)ankZ>#KX~o^wku zGv-I;vhG_50i_hQ)-cBWqP5PIQV>#ri4iFxgaBXruR{nEBEqDY;J%^pz>rcxYmFpH zFy0)0DTHv=S}3IuV}$n}Wm)3&H?Ie8ett8l>-wQ3SA!a3Fc=K5wY8;;HAvGG#u$VU zP!t6|+<d_1cvD(y5khzzlrfWX0cfL<qzQ(jAqIm1hQlGOv+%XYWHM<sW(|~S(*EQ~ z+cUM+BFi%5!yKcJMo5wbRaHR<fwC;2wT4z2Li`WV7A%#7(hb}>2j?6BptKE82mv9* zN>GV)2LsD0ex0H3T6iA9#GOPa5@L*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kBRqsL<>3n!g&R5D!4Q_b<_U`}#Qr9C~b+?H+|0Y-r{wI_e5W+!TgZx?h3 zHQnoJt5$0oYanekxH`bC9S~SG!RcDZ8Up1SKu@jZI1cpHYDDz^a?gG?`_+;`3P{&p z6Seoe+W%!OXiK#xK2qyqM{4iM=`29}9)9K|Y72L2-muT{NLYK~L2cnP_T}PFzt{Sh bjsF_}wfAZIOHfOu00000NkvXXu0mjfwD15u diff --git a/poky/bitbake/lib/bb/ui/icons/indicators/denied.png b/poky/bitbake/lib/bb/ui/icons/indicators/denied.png deleted file mode 100644 index ee35c7defae28ae2ab4484e8cdacce9d493bda2f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3955 zcmV-(4~+1MP)<h;3K|Lk000e1NJLTq001%o001%w1^@s69zTe&00009a7bBm000XU z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T zI7<kC6aYYajzXpYKt=(8otP$50H6c_V9R4-;{Z@C0AMG7=F<Rxo%or10RUT+Ar%3j zkpLhQWr#!oXgdI`&sK^>09Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-<?i z0%4j!F2Z@488U%158(66005wo6%pWr^Zj_v4zAA5HjcIqUoGmt2LB>rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_<lS*MWK+n+1cgf z<k(8YLR(?VSAG6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_ijcb7u<JJ!P>#43x96h$;{Kl8-(_if` zSN~%uQC*QLUH@2T#fs(az$Tz;T>Dy2xJvOOJZJSpft5qQ{<b*&@t(587wx5V$4$Gt z*Q5IrE?0f+pmw{pchS7w(A~}PP}8j^fcJo}Cq#p8tt)~6ZUnz5TC?2|U?I>5M1V4& z1n2~^z<0p6FS*NqN@#}{tvC|`GEt)Nw?Y9@fD|AFNC8rSTuYEY2LN0+rPm!t>{I{% N002ovPDHLkV1fp&a(w^* diff --git a/poky/bitbake/lib/bb/ui/icons/indicators/error.png b/poky/bitbake/lib/bb/ui/icons/indicators/error.png deleted file mode 100644 index d06a8c151a3f8ee8d7608f66841d82dc916df329..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6482 zcmV-Y8Lj4tP)<h;3K|Lk000e1NJLTq001%o001%w1^@s69zTe&00009a7bBm000XU z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T zI7<kC6aYYajzXpYKt=(8otP$50H6c_V9R4-;{Z@C0AMG7=F<Rxo%or10RUT+Ar%3j zkpLhQWr#!oXgdI`&sK^>09Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-<?i z0%4j!F2Z@488U%158(66005wo6%pWr^Zj_v4zAA5HjcIqUoGmt2LB>rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_<lS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YIy5~ z{NC2%MyjJt<-?rFE4t}e;rvXXxT>#U{LCYH^;0(&)=z#8!2Zt*vtP(o7eEBS*po;1 z-_W$<-RiDm2lJbEy&Fh(pH%vjO}eZZthe>JVTJNCLU3ZI`=wxUb$_U$zSj&y`+P+e zjs8UC&S+)*FBMJSd3qQB$6rqaz*SL#w_Ak|KskU!Z?bt}`{BI>ie`j*+m0jC-4XW{ zmL2Une#qsH#7VSz+zuki`xM<wYNqP|fD@;q(nUQ8`2zkOWC94E8Oi_%oW8UX0NntN soG!zi3vr=8Cdi*e{_^jjFPr@T00~t<@)RgR1ONa407*qoM6N<$f(RZvs{jB1 diff --git a/poky/bitbake/lib/bb/ui/icons/indicators/info.png b/poky/bitbake/lib/bb/ui/icons/indicators/info.png deleted file mode 100644 index ee8e8d846251ab1a937902d7eb517da24ecb30f5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3311 zcmaJ^c|4SD7k*47OC)XDm?jA^n=xZ1%WNi0BOyseV`ea8HnU{UULt8BRFrj!ghVQ9 z6WS;u?Rb+GTau8<H+t*+zCZfj=l6S_`@YY8uCrX{oIjpJPL7*3)K;ni0H9%SM|M`M z$k|s#S@G4ii7!(uD<rn=5*LAwB#<s*0R*PNn+3M#(S2FYEIKnd;10_Y0Ot6yUEL+_ zv@JM>fCr_|>Og~dLIoNCENy~>bcR1m0`_M4viVk!ksEaoFq>%w*<ntD(}X0JAKNZO z#BvF7bY+D2Gq6mEjWyUZ2&XW>V@c@XARd=5#syhHe%i$;_OoIb1pHG);%^1{J1BRW z6PP3rvB2g~xG4jUMu5>MC;|n?qOc}lBpd;UA&@XQ#uNd^nPYHp1o+njQFs$EeQ?fX z$}eAvlNH2IA`#+Xu)x4TXrLKXAo7JFuvjb%j)WnRrV0&HaWG#(4>IM8*ZsCYW{DXh zwot+r@WHbd>D~gV#0sK_^zRgSLK^KK!+h~Cq7;<Dg6KjR0t$!mc(Zx^)D}yeS^o{= zkJ@6_U?B_U%n}Qv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96dT}3k(HiR!iHBbU-I77b;9W4(AwARWB&9_l9p5EY|%&n@&o;P(#tO{ z>U(bIY?Tglb(FtaRRerhZaabpm*&W1%@z-B&YeB7g-RlkcBk!qw<N>m-HsB^Og}$A zm9~%49GgX%(|40)8}Dw^X`DaowrJA&#*d7&1E=G&nyf9h6@N3-u3aUX=`DX?89Gn5 uSa$X8sD*FD?q??=3WGs?Yb$2d;Q;ih!3EB=U&rh(h`p^N`4Vw&^nU;w6|waI diff --git a/poky/bitbake/lib/bb/ui/icons/indicators/issues.png b/poky/bitbake/lib/bb/ui/icons/indicators/issues.png deleted file mode 100644 index b0c7461334bfcd616552e317af3ac7f2715dec09..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4549 zcmV;$5jyUPP)<h;3K|Lk000e1NJLTq001%o001%w1^@s69zTe&00009a7bBm000XU z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T zI7<kC6aYYajzXpYKt=(8otP$50H6c_V9R4-;{Z@C0AMG7=F<Rxo%or10RUT+Ar%3j zkpLhQWr#!oXgdI`&sK^>09Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-<?i z0%4j!F2Z@488U%158(66005wo6%pWr^Zj_v4zAA5HjcIqUoGmt2LB>rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_<lS*MWK+n+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icons/indicators/refresh.png b/poky/bitbake/lib/bb/ui/icons/indicators/refresh.png deleted file mode 100644 index eb6c419db87c785c7ba46b1acef6176d4a619308..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5250 zcmV-|6n*Q7P)<h;3K|Lk000e1NJLTq001%o001%w1^@s69zTe&00009a7bBm000XU z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T zI7<kC6aYYajzXpYKt=(8otP$50H6c_V9R4-;{Z@C0AMG7=F<Rxo%or10RUT+Ar%3j zkpLhQWr#!oXgdI`&sK^>09Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-<?i z0%4j!F2Z@488U%158(66005wo6%pWr^Zj_v4zAA5HjcIqUoGmt2LB>rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_<lS*MWK+n+1cgf z<k(8YLR(?VSAG6x!e78w{cQPuJpA|d;J)G{fihizM+Erb!p!tcr5w+a34~(Y=8s4G zw+sLL9n&JjNn*KJDiq^U5^;`1nvC-@r6P$!k}1U{(*I=Q-z@tBKHoI}uxdU5dyy@u zU1J0GOD7Ombim^G008p4Z^6_k2m^p<gW=D2|L;HjN1!DDfM!XOaR2~bL?kX$%CkSm z2mk;?pn)o|K^yeJ7%adB9Ki+L!3+FgHiSYX#KJ-lLJDMn9CBbOtb#%)hRv`YDqt_v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6GYXC%J z12P=cWrzg}7JRs8&z^>XfdK=EMFPVxVB5A$KyC<mT=6Sb85SS7;4n=S!?I7Te=!ax z;RNf~um4+DSJw>y4vm@iTai115OXh`du;96wHtG}+~Q3eH+Aj#>z)S27%bbWjI&`F zjvBCr^<W4gDoKM24n`R+xbTAGH{X2oYfVi}KLl{_^C&yyY;JX1n_G=!I$3gT2W{<b zLz_2mzRPi(jQ|n=*6!ZDd--FJJvM3IzI|D(bY)B(8SLdCr;LKpSm<tRYa3jB<LdXi zySujo_$h#spI0zEE0Erv-qim6`}=EaYr`$S+VaHIsZ+mI_TlrUpNIW#@4pbhio=Hw zf9>(dAD^&y@7~OzLx;TBCr6LFtu3uXUEN(L=FgwscmDb3zXsqJ0QP@T4Vs+gJ-fYW z)26>KU%vbwQ>IM$=CFDQ063@VoLI;<4IDgpupYow0J;Et<-mahiDEGpr>0JwTJSti z0(cj|D*$$%+i~tc4;(yDmHQF$8U8SE9e`aUApjtiOpPj(!ibwb#u?sv>#Y_5WjW`= z88c=SWh7%EI}8v8A&wk9@;?U|zj_-783!2$83!2$Ieq<m0GtJR#N`(8H~;_u07*qo IM6N<$f*bS3PXGV_ diff --git a/poky/bitbake/lib/bb/ui/icons/indicators/remove-hover.png b/poky/bitbake/lib/bb/ui/icons/indicators/remove-hover.png deleted file mode 100644 index aa57c6998259206a578eaa6af1a0ee77f160d9cb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2809 zcmV<V3I_FwP)<h;3K|Lk000e1NJLTq001!n001xu1^@s6xWJOR00001b5ch_0Itp) z=>Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyY| z5-t{di_ZiA01A0YL_t(&-tC%wa8%V9#-IDWclYky-MdTJbQq@6nF6BYCbnroiVYM< zlxPA$5DkMuD1@|5FdDSO)IkI?LYt~Y+(~I*QBVd^3G$Ib96ppP4h4i(ZT%olWrc)> zWRttQ_ngx|!mfO5lBIDvVWwy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OFQt+(E)R8>_CSO`T?xS>Ob%8H`MDIpvVhdy-ZQ0DXb z2JC+n@I23Hnx+D9Tmg}hkwGlW;$D9FW!bVUFQt@W05_iJIa!tkx7(de)Er|>`1I3H zZ}ItjV?<FLf*Yg>g237B_GSRPImQ?Vzysj>m%iR8jR0r?@a2C1OmgAL)5|8700000 LNkvXXu0mjf0|Q_@ diff --git a/poky/bitbake/lib/bb/ui/icons/indicators/remove.png b/poky/bitbake/lib/bb/ui/icons/indicators/remove.png deleted file mode 100644 index 05c3c293d4bc0d9e8aac7b28fb25e43ff8a03320..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1971 zcmV;k2Tb^hP)<h;3K|Lk000e1NJLTq0012T0012b1^@s6R+DEB00001b5ch_0Itp) z=>Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyY{ z7ArC@L)fAK00%QkL_t(Y$CZ{{Y!ufO$Nw{TX6}6K%<RmrjT631f(j*S0uQn9gG+1z zP16S~T!}QI;0oo%ptNEw8-awB)`03n<+G{~itH!URTYHNw<>+eYrv>g5#l8{Hcew2 z%&vE5y*pp`_F=t~HMUWEr7P{O?#%C=|2gM>R^XiD`Q_T~835lh#>N?Ah~pTmooil# zAV3fVh@uEWh$0BWb<X*p3Z=qVE6zUuvX|RlJ|j!=2n4V&2#*CpFdl{>q9|Gu+yF|F z1VvF4N@-psVy^(9?EC)P-_3pZ)tb;Po41@XbYq076r6Jee!x7>J65Sw#)BYO72FKe zG)+mRQh80&dKIc5j$`<~UoMx+Z$JL_aRQbaA6{vH<&@(%BX-(`uIu2OV{vg&lw@fP z0>C{!&cF~yO;QVWD3J)LMitXG^XYWD*Rm|As){&{;d!1Z$<h}a*KbU~(o%${T-Uvj z$!6fV4h-D@=Ny$v1(GB|5QH%RfQNCP`$>*PL4+hpP*qj2Ej#ZxPH#4wg`KvcsT!g< zg0AZzgqQ#lu(WBzrelulTyR_mnM?+0Ck;*001l|C3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6j<;J~KrCnWJk1t-l__vm9OF0a~1Rw|k2qB=9!Y~Y&rirBh##*zjiPWNP*@~*F zc}>^)jFbT*wOrQbKJ<MbU0q#|2L=YtS(bI^qu+k?StgSy`@Wwz6#x)IpePD7T|?uY zny!syv)O(C5ZczY9jBCDvn&gySvT(I+oKU>Pj}Dblev@UIyyS8GsbZD?p@>AvuD?a zhKBm)X6H;Ik!8<>VTfwAii%f3sa%3r_L%2+Tg1t4Cjay9&)%J(ltQ5jWLZukY?gFy z&)(^ixs&H!|IzE$i-jVJg(9|Z+g@>9_r&P$M?cH9WS2<|pk7#t0!k@#P3NN@k3J|A z3pIgrE{0(^eERh15ARLfYojV%Ry<J@Vc))e)45!3<h32I-KbP5sMTu8l+iQ|UqAZV zn4h1&HaIxgH#<9P5<-%Thhc~?2-)!y#~&O#c<@B?5EsKR96o#Y?5`&#Ce}5eQ50eS z{{7Q~gM%YGez@a?=XqFMTtpBA;H>^1iK_LYc{KURn4O*d<M8nC!I_yEvuQH1fq{Yh z2M!$g5WttqdW>@}20?J<)bOd9?(S~h-QCScM@OeP=O1j}wjCSSZ$!q)Af>0EDk`W< zp-~N1%0g?l744hb!8tc)W@g3@A3j{_>FMEn_wJ2v-@g4%&iS4u&N65M&gF75=g*&? z;+%i5?FZYiVf_ZUj++1#NlA7C+>&j<=1rRu@cX}bf8o}xTPuK^^HmLB1TYNX>DE`b z-l*29s8*|3YrHjjQ<h~=l|s`rOixdn04@OdOCo90`Y&RRCFIQ(8b$yB002ovPDHLk FV1mkSswV&d diff --git a/poky/bitbake/lib/bb/ui/icons/indicators/tick.png b/poky/bitbake/lib/bb/ui/icons/indicators/tick.png deleted file mode 100644 index beaad361c3f3a6e310cd78c70fce1f9cef06da8b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4563 zcmV;^5iIVBP)<h;3K|Lk000e1NJLTq001%o001%w1^@s69zTe&00009a7bBm000XU z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+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kuhh$Kk>0Gg(O5CTF7bX~6{ zy)3KOQQNj{``gga(D98MH(n}N%J8eT7m+8?`!zEC-sHsOb8FVDnTx{O!{n2gd`^{R zS-p;0y?XWh(W6Jd+PS&&)k?YYE{MDN+3&WBMpwGePESw2#09TLVT3#Y<U37jE=36q z$B&J_%sKx?xm-rot0D|SByoZ?NrAig`SNxftDv>D^|RyS<3Fthr5H()AWhR+yBbFb z!!Ubd^ochg+W63ut?zG*s$LaA5Y(ZU(=`5CZ*T9hg9i^@48ssn6xFhJ93u=v3=9ms z-QV9o)z;cJ>v<mhz(-zOE;kSW_|xF-!HM0wcVEh3!Z5_9O`EPAIdbHS9qk>zsCX6l zzK=M%cMx}_XYXk5c>VC<!zX)td;jkHJ{;jxr>CdSs;c^;=XnVH;GT&4=AQc<BE6mc z;Hn4F-qw!!`T5U{eRAyT`5&MENtR{q+SO}OEEHi|HVk5b>J&sHH|;yUf4-Hw_?9Su xQvl8Z_-(^Su`7S!SOHl9SpiuAxgYD_0|0cfLo|dfqcs2k002ovPDHLkV1j7ypV$BZ diff --git a/poky/bitbake/lib/bb/ui/icons/info/info_display.png b/poky/bitbake/lib/bb/ui/icons/info/info_display.png deleted file mode 100644 index 5afbba29f578425ca337161130297daf47189e2a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4117 zcmV+w5bE!VP)<h;3K|Lk000e1NJLTq000;O000;W1^@s6;CDUv00009a7bBm000XU z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T zI7<kC6aYYajzXp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0bo zB1sY!|GfCOX0wTulJ)iVe<x{z?bt{u50V%F4?s+Pc`EJ`WsD)u^F6LJO_C%eNkX&P zq}6PZbQ97vMQ3_ne7~i&TCEEpW@l&bNh$Nsm)m!hDO9RZN)g8~aU7GX6qPD6ogLUF zoomXK@+N>iIXSs<^ytx@M~@!W`jazk!(^M>kXtz>H|V_gzF+-te3oUL`s%4W0OIiz zk7v_goBlv4H5kb~f22Pv-55jvIf!JfHA*R@l<L`UKKm;Gk)|n^E?xS0HLA9iQu}(E zo4l`}a)@|4H~D_Pv?fy-v$L}g#>U3p1rXh&i|2Va&!0bkJ55t_U==23VPWBWSQN21 zasU4PGbZ0(g;I*B7PT*4y!cZf0kG3F<=C-f`O3=5YpbiPC+6qp$EB3L<uWvOaW|gx zeD6C_N<WTcf*|O%D$fTK=s1qLcJ12RrBdnF12t8tqSNXyF+TDBgXIT5G{*d7et!Oh z)iaDS*tSg=gjiU<kOI&1ddfMJyjrQoSFc^YJvljf8OR0;$F*G?*P&P}5=9XoE`9jo z;^N}f>({SOZf|b~#`F|2NfI)Z4NmIthMSq0S(}@id#7HnUj_cPXQMgN>2I@vP%VA5 zG@WJH<r_C{OuzT;dxw@jT8gqP6DBucfv^PCsM<Yw^5o{ZbLZBkrl#Hk-T<2WcCsTK z0Hl;SjzbUx6iY>x|FJB9S>P-%y}Z0!?sPg5U~Fux8%5D7a0_@F_~#ehD*iJ7djuZH TI+U>%00000NkvXXu0mjfT4L7x diff --git a/poky/bitbake/lib/bb/ui/icons/info/info_hover.png b/poky/bitbake/lib/bb/ui/icons/info/info_hover.png deleted file mode 100644 index f9d294dfae2a3a74086018fbbf140a500a622d7f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4167 zcmV-N5V-G&P)<h;3K|Lk000e1NJLTq000;O000;W1^@s6;CDUv00009a7bBm000XU z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag z^g>I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ma-{&WBU diff --git a/poky/bitbake/lib/bb/ui/icons/layers/layers_display.png b/poky/bitbake/lib/bb/ui/icons/layers/layers_display.png deleted file mode 100644 index b7f9053a9e04f972800f57f7fb194a2e46cead23..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4840 zcmV<E5*O`>P)<h;3K|Lk000e1NJLTq001-q001=z1^@s64kXA<000V4X+uL$P-t&- zZ*ypGa3D!TLm+T+Z)Rz1WdHzp+MQEpR8#2|J@?-9LQ9B%luK_?6$l_wLW_VDktQl3 z2@pz%A)(n7QNa;KMFbnjpojyGj)066Q7jCK3fKqaA)=0hqlk*i`{8?|Yu3E?=FR@K z*FNX0^PRKL2fzpnmPj*EHGmAMLLL#|gU7_i;p8qrfeIvW01ybXWFd3?BLM*Temp!Y zBESc}00DT@3kU$fO`E_l9Ebl8>Oz@Z0f2-7z;ux~O9+4z06=<<LZ$#fMgf4Gm?l#I zpacM5%VT2W08lLeU?+d((*S^-_?deF09%wH6#<};03Z`(h(rKrI{>WDR*FRcSTFz- zW=q650N5=6FiBTtNC2?60Km==3$g$R3;-}uh=nNt1bYBr$Ri_o0EC$U6h`t_Jn<{8 z5a%iY0C<_QJh>z}MS)ugEpZ1|S1ukX&Pf+56gFW3VVXcL!g-k)GJ!M?;PcD?0HBc- z5#WRK{dmp}uFlRjj<yb8E$Y7p{~}^y<NoE(t8hR70O53g(f%wivl@Uq27qn;q9yJG zXkH7Tb@z*AvJXJD0HEpGSMzZAemp!yp^&-R+2!Qq*h<7gTVcvqeg0>{U%*%WZ25jX z{P*?XzTzZ-GF^d31o+^>%=Ap99M6&ogks$0k4OBs3;+Bb(;~!4V!2o<6ys46agIcq zjPo+3B8fthDa9qy|77CdEc*jK-!%ZRYCZvbku9iQV*~a}ClFY4z~c7+0P?$U!PF=S z1Au6Q;m>#f??3%Vpd|o+W=WE9003S@Bra6Svp>fO002awfhw>;8}z{#EWidF!3EsG z3;bX<ghC|5!a@*23S@vBa$qT}f<h>U&9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z1={cXzc&HD(|4MTg+4JmMSj!W-5rh>&`wIw!+^H+OzWt<K=-1LzL&@CcK5~`XyX!c z4+Glz`udlM?AFTDZao8hT3%j$CQ(2ew;UP^XzS|gW&@O!l?^5uX#WdD!sVwz=D*MY O0000<MNUMnLSTZkBr(4L diff --git a/poky/bitbake/lib/bb/ui/icons/layers/layers_hover.png b/poky/bitbake/lib/bb/ui/icons/layers/layers_hover.png deleted file mode 100644 index 0bf3ce0dbc9cb52b74c8815ad65958cc3b14c721..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5257 zcmV;46n5*0P)<h;3K|Lk000e1NJLTq001-q001=z1^@s64kXA<000V4X+uL$P-t&- zZ*ypGa3D!TLm+T+Z)Rz1WdHzp+MQEpR8#2|J@?-9LQ9B%luK_?6$l_wLW_VDktQl3 z2@pz%A)(n7QNa;KMFbnjpojyGj)066Q7jCK3fKqaA)=0hqlk*i`{8?|Yu3E?=FR@K z*FNX0^PRKL2fzpnmPj*EHGmAMLLL#|gU7_i;p8qrfeIvW01ybXWFd3?BLM*Temp!Y zBESc}00DT@3kU$fO`E_l9Ebl8>Oz@Z0f2-7z;ux~O9+4z06=<<LZ$#fMgf4Gm?l#I zpacM5%VT2W08lLeU?+d((*S^-_?deF09%wH6#<};03Z`(h(rKrI{>WDR*FRcSTFz- zW=q650N5=6FiBTtNC2?60Km==3$g$R3;-}uh=nNt1bYBr$Ri_o0EC$U6h`t_Jn<{8 z5a%iY0C<_QJh>z}MS)ugEpZ1|S1ukX&Pf+56gFW3VVXcL!g-k)GJ!M?;PcD?0HBc- z5#WRK{dmp}uFlRjj<yb8E$Y7p{~}^y<NoE(t8hR70O53g(f%wivl@Uq27qn;q9yJG zXkH7Tb@z*AvJXJD0HEpGSMzZAemp!yp^&-R+2!Qq*h<7gTVcvqeg0>{U%*%WZ25jX z{P*?XzTzZ-GF^d31o+^>%=Ap99M6&ogks$0k4OBs3;+Bb(;~!4V!2o<6ys46agIcq zjPo+3B8fth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Gb967?( zmZQgo^@+#hELgChG@J~>06<mM(y%;s>==neqGHxZ6vQn~#u;1dQ(Ifhym|AOK7Bd> zy}iA(x3|;V+gnlVBMPDka5*49Dr$Wc#aodzO|zobr|2B6{Pf{6F)po7(Jfs2amtVw z*VYHP?Bkfwv(G*|^u4LT%fKIjIzu<uvSkY!AK!?os!X3To!Z)3?)cFighC;Ddwa=d zvt<h&zL1A=_)RvO%@PO%SiE>K%a<=_%9JTsmc?5K-eT3tRrK}sG3T~9h>}<btOn|e zW*~XB3|+TA*R9WW>vP@uT(>^gt<QL~KELuG3XcQp^AWIXwAN>EJW|wG)BnTz04ISx zz$+u#8Z(S2If?(ps*mpkfDNPC>mvzLSqTmXgM`8%gen116p6}Fx<Bup3Owg;eHkn3 zQ`|c9O#RLE=TlY+$8pGHGq^eL{L3X`sP!oW8VnW+g$RX02oVoVmSs+NpDuIbm9jp* zo1Rra>x5-l9!NTa>$<qEd)1ybEFeGpe=uAXCL%;iU|nar%AS&s*82EQxf^CSyzYaf zGih?!T<Hh6R*VS9&z7GtA54-YWJRX4tMk{zVK{pv)(1ER>}_ml{Jmvb*tT5)@iQ`9 zonHbZ3gYmD=j*Gu4jzekU|;rr83K0tJ58=;eFp6mS$pI38(rJ>7TyQ1SC4da;w6oB zxIja}!r`z7CPs)xqkR6w=Vg0=hFTwgFVD?4-Q1l@rARv-NG_Kf6-dQ^E-4(viYQ4E z(P)%2J!kGJ?$&B4p4tlRnproqHI+(X+jgmPT}$wz0vf~cOW1|6zR`aGolcwJk{Vx$ P00000NkvXXu0mjfGp*(6 diff --git a/poky/bitbake/lib/bb/ui/icons/packages/packages_display.png b/poky/bitbake/lib/bb/ui/icons/packages/packages_display.png deleted file mode 100644 index f5d0a5064d358cf1b03460d0372fc802a464c291..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7011 zcmV-p8=T~cP)<h;3K|Lk000e1NJLTq001}u001-y1^@s6-$eUm000V4X+uL$P-t&- zZ*ypGa3D!T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!*yK@!(idU zh1gkps1#Tu!Xy1h*t}^oYuByCwrvW90+wYFgi%rI)z@B)gMpk-O8p~n=awy7xc=|2 zM@mVkLIwv18K?{}I5;@esZ~SmVO`g;OpB}?wXri+1|bBl=Ta$G7#JA9ah#}y-J&ik z5a==roNe1qUSH9KhU>WuR0gP2DpA4N^M@L#B8r-l7J4oF&~+Wp^Z4PyAF_1WQfhA> zekXocZ8I?Sp$8x0`QJW|uItG=V6NjP?}DYJ5!1buvB+kk^d?rXxKtm{8?KRJ7*QKM zn~m1cgqFPT5+APb`*k^?lrouTWh@M75UP+<#-73>k3JGNW4;5t76Y6c$BDmx;rBfH z*rPaACkfw@o<yjcoO%4P*aqUDAdU?iE6r&MCTkcnX|4(pb&WjV!}omrz)u2@cut(s zNh#6vC~TZFXAak0cOABE13Xb{&(*yzIv4mYpqI;KcJ125&K)~B@Y#Wuk%mAZG|{rJ z*Vtz`+Pi8(h$xvB9CeKtBm#=XB4?a&29qXDV$7H^Y4`EtcIEcTN~xFCpXaqsDYbZH z=g9ipw#^A22b=@U0LFiV-|#(DtHy1rb&{K|{{s|27^n8kJ~IFS002ovPDHLkV1izo BarOWJ diff --git a/poky/bitbake/lib/bb/ui/icons/packages/packages_hover.png b/poky/bitbake/lib/bb/ui/icons/packages/packages_hover.png deleted file mode 100644 index c081165f34e9743c5550902c8318e2a80b6fcd4d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7121 zcmV;?8!qIDP)<h;3K|Lk000e1NJLTq001}u001-y1^@s6-$eUm000V4X+uL$P-t&- zZ*ypGa3D!TLm+T+Z)Rz1WdHzp+MQEpR8#2|J@?-9LQ9B%luK_?6$l_wLW_VDktQl3 z2@pz%A)(n7QNa;KMFbnjpojyGj)066Q7jCK3fKqaA)=0hqlk*i`{8?|Yu3E?=FR@K z*FNX0^PRKL2fzpnmPj*EHGmAMLLL#|gU7_i;p8qrfeIvW01ybXWFd3?BLM*Temp!Y zBESc}00DT@3kU$fO`E_l9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?dU_hyO?%|h zNdRdVDxarRE>W$fonJ*!@H~&n$w|(gJ4a)-f$#fW8=!KIa=Dy#kDWr+Z?D(uOifKO zGd+{G)!Up@&dyOPmFVf|p;Rtm=&4|~e|kH&+;R(ZZy#Q(1NQ<qU4HrH8?XKJwLJgA z^B9Ifu~^L9yXSdn9F&Vd=I#qlS}c;;hMA<<g%ASMFbSiuGe8t{T~B*{bM0$gn`@q$ z2DWVzMG=N>5ClOshitCO*Io*R0;XXS$1(l={R|Ec$|e53`DMHtBv1U+uYSc-|M3(- z7-YR~39dQFOZBo$3oDoQ>}9<2JTGNFVU)hmAiArlp&OW%*-|x^%*pqC!XRvU6-8Cm zEYUVh14B0u2)1n5!p%3|EK{i;&9&!R-WR<AcnZ)OjRvE~Mj1Ia!ua@j$_~W*`lhtS zW`5e-pOEjEbp$A1z*FctM@yBj$vm<b9h?HIR;^;?%9YKpoBag%%WnOIwL*wria*Wq zYazrJFJ5+W3nrxtO{xG_0#^a6KfrJJPRv!~hUPlS^Tz)H<V-4Cus1XF00000NkvXX Hu0mjf_&~tn diff --git a/poky/bitbake/lib/bb/ui/icons/recipe/recipe_display.png b/poky/bitbake/lib/bb/ui/icons/recipe/recipe_display.png deleted file mode 100644 index e9809bc7d9fdb58e0f17372eb23b879087d2c4d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4723 zcmV-(5{&JMP)<h;3K|Lk000e1NJLTq0012T001!v1^@s6CjFv9000V4X+uL$P-t&- zZ*ypGa3D!TLm+T+Z)Rz1WdHzp+MQEpR8#2|J@?-9LQ9B%luK_?6$l_wLW_VDktQl3 z2@pz%A)(n7QNa;KMFbnjpojyGj)066Q7jCK3fKqaA)=0hqlk*i`{8?|Yu3E?=FR@K z*FNX0^PRKL2fzpnmPj*EHGmAMLLL#|gU7_i;p8qrfeIvW01ybXWFd3?BLM*Temp!Y zBESc}00DT@3kU$fO`E_l9Ebl8>Oz@Z0f2-7z;ux~O9+4z06=<<LZ$#fMgf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xQc8tk2&GhStFm15GR7cf*V-tG zAbt5Q>C1zCL8B=8kq}~6&#girFWk#*sPn_J@B0YCF1QdC&en!&)dzyE8Ci2sNO3$2 zLj*z4JFDb@v0NI=^~^;#s1}x^Tr3q|yDzjlT&)%gg|lH8A`HXsI^GAk*kaG?$|q0( zf+zrI{J^@k>z-c`S{^EU#bWU_DP=hb14v&k37o~7>*ab5rj$ZR0i_gFs1SzXsamzR zV_9er1}`wq4y@$X2mSZO^SrKhRad)8DOM_#UVo(Wh*$!xRcpJIufD$o=slQQmveJ3 zX)J&lV_U)~{J|1vrBXSgl%fj)N1kK*1%6aULUi36gaM?G->ubZlK?>1tXZ?)Ik!6p z=J|CH;7a;cO2Jn?9jT4{5CG`bv8`WOxCkKx7+<I)eXQlG>npnYRZ78F^Qn>Ah)1_> z-8#fM2V<<403OE5<<@tRtI3fgN2quH{CV}khac>#*XzD9#_JvR&BOP6x2Uy7xm<1? zKYo1bxo<r8bK;zn0KN&}lK_VB|7-sN@G^kE{SU3Kjjc@eE?ocs002ovPDHLkV1n{Z B^!fk* diff --git a/poky/bitbake/lib/bb/ui/icons/recipe/recipe_hover.png b/poky/bitbake/lib/bb/ui/icons/recipe/recipe_hover.png deleted file mode 100644 index 7e48da9af0bfdc763279f41e0aaf11a5c6fd611d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4866 zcmV+d6aDOoP)<h;3K|Lk000e1NJLTq0012T001!v1^@s6CjFv9000V4X+uL$P-t&- zZ*ypGa3D!TLm+T+Z)Rz1WdHzp+MQEpR8#2|J@?-9LQ9B%luK_?6$l_wLW_VDktQl3 z2@pz%A)(n7QNa;KMFbnjpojyGj)066Q7jCK3fKqaA)=0hqlk*i`{8?|Yu3E?=FR@K z*FNX0^PRKL2fzpnmPj*EHGmAMLLL#|gU7_i;p8qrfeIvW01ybXWFd3?BLM*Temp!Y zBESc}00DT@3kU$fO`E_l9Ebl8>Oz@Z0f2-7z;ux~O9+4z06=<<LZ$#fM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Kv|*U=Re5Qo=GVFveD6 zO3D{x$8q2XKB6cxbf#ZQ({v`!^JHL4$G416sEV3bN+D1IT+fAJu3FHAcCGcLk4mKi z+p(vEAo!(enuED_^XO({s5<m}-}h~$6r{ImW%qp4EgMS9WO7^wzVAaR1<&)o=eq7A z13`lz_?hE4GpeHC`#x;PE?<yu0Nw~@jKMGrxSk886jVh)Rn+mZ&yUq^DW;R-laEw~ zt3Rx$3IacX<2VpP^tg4cdgi?RFT#^v*?Br~MQ8d&00;V7x@Gg0nyRSds?r<B8<S_f zPfvV(AAt&B+xGrDChvH9UFc|ilvRhSFG?vZAIAljWr6dx-MW^WDWx!kQN}kY!Ahy4 z<6FjetO=FAeAcq9{eddW!*=Xj2Ht2b;|!*0!gD<YK>+DXUaeMN+PrDA(E}adGQLYn z`4goS{J@9fu8P3T+`3+3S+)f!C6rRIZF`#^_&@D|)@rqR=}YPdK0MchX_}uZk3pc_ zGP0dgt^B};>$yL=ZS1!D0D#^;ar+z>eAji=u~*}`(Lo3SW2Kv2&xP;%kW$jo(a|FS zz^A6C4tF}8GI4C{rsc6Au<Jrfi6l<;O^i=4I<<XDS(XLEG{8CEP#kYoMuus?vMji+ zOP+Z02}+ihmYzIz?AXsQUc6YNlnTQzK9g%dan6CxHKKL|E_nO##~=UqfddEjkfJC| o0N(|0KLCaQ-?#+ec>sU=FDV{H&)3?sh5!Hn07*qoM6N<$g8AJx@Bjb+ diff --git a/poky/bitbake/lib/bb/ui/icons/settings/settings_display.png b/poky/bitbake/lib/bb/ui/icons/settings/settings_display.png deleted file mode 100644 index 88c464db041ed98115a0e44d68cb6aba4c99107d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6076 zcmV;t7enZYP)<h;3K|Lk000e1NJLTq002$^002%11^@s6j;bIX00009a7bBm000XU z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag z^g>IBfRsybQWXdwQbLP>6p<z>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KA-hMUHD;$y4X0 z3!wo(u~bB<R6@C2#vSYLcs85O)*547+-6_6VB!9GbLV-bQVFGEeHDwv3vYMD&bVIn z<NBWG!K-?xR;#dW`@c8dwQ+wefa9c4C=@Dp-+lMDs@3Y03d8fftM=Si{S2@a5{T+j zVrK8m@WT@y{^jWC=(e3ZcJ_LnN9W9$Gyc$@KeW3g-}0(o^AY&LMboXTVORaQKBFwD zN3Dzn$8qrf@%Mipz!w0x0DcbOnckk>GnI0sey*<J$bKM$-%fDNYU#furQlL<DYz6| zYALuBTna7)mx4<z1($+L!KL6*aH*x>QgGM2{m%eBo~8yU*c1~00000<MNUMnLSTX$ C-LMY; diff --git a/poky/bitbake/lib/bb/ui/icons/settings/settings_hover.png b/poky/bitbake/lib/bb/ui/icons/settings/settings_hover.png deleted file mode 100644 index d92a0bf2c330b56b2a88e110f4adf7febe9ac90b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6269 zcmXwcbyU<}(D#=RmR^t)fh9yhQc4<jX=#=c5Rh09krwGrk?sy@SUQ&O4r%FjK?IbR zeE2=j`<^rL$DDKTnVI{Uxu0+iH3cI4C-?vW5Gg6jYCU+h{}hDtV53SQbPo>CLD9e& z00<ucrx-w51~mZStJ}a}8XDI2F80pW_6`sw7!2azWN&5j!4d#IFJ@{Z;M#kX5*Mqd z(AQyp39s$7C_oS`=odfoSXK^3Jg{;YW9|ZlW*4cP95(G>P8e2HlwTx;CMRJ8{tw)3 z#=NM&{IH1O>kZF*+qu?@pJR9R^OETDlg!!)+)fZ-k|MvRpdVogl%8}waG<w;W1Cyr zAD_hm0E22R7@cpKF@Q@Saq$;Sow)4)#^-4Q5YVZb-pTtk^q%AwG}Q>hF9@U4CHB>8 zkRLf9?GXhn1f=CL{4!HmwSgRLz;wj?-4>w11(-hf{W%TzWnQLwVgQB-j1(9-u>j<; zWtc2rEe4cN=tjr^`n&+S)$3jn;0G7LtE6Y82vju!o#SAF8UREH@M?wyvjf<kfaxGJ z^J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Ea<%JSZnL8t5P>6<LqtF}b{ zcuTG3@w(*my?S-|xk4BAAa>;;)qnYB-q*9Y9I;Dbjq0EL&SneSMdgNexZjL*ROpte zx1ayA)e}K7e;WT?{&A)G%+J!G<NXY+!&BTWbUn)$yf1-aUeB_A_MLLk^dS1=^T8im z6C4LIKLI~xfZmwbx68UfOQuaTbYfhLAQ_dd<}fW7=c}ar|9B3||B;>lc#iD<k)8j~ ff{>S&9T-4>RE^6FY?bGM-vLT;YO+YEX~6#g@)Ymn diff --git a/poky/bitbake/lib/bb/ui/icons/templates/templates_display.png b/poky/bitbake/lib/bb/ui/icons/templates/templates_display.png deleted file mode 100644 index 153c7afb621a3a9562f57b3e7908e5d7409aabf0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5651 zcmZ9QRaDgP^MF5ubV`@f-QBTtx1>l&E(i#Sq;v}+9lKI1-O?Z|v6L*`E#OKkAt<qb zzUO!MznFP0=4$4gcjh^7qLG0nF#$aR006|=T52W_H25#@a2|4M6*JQV@O`wb`~ZNE z;=jNE@(XDJfWXjQRn^GI&D-DG&&}J1SzA?=+2^&li@T>Y0K8p+n7W#o?o%sVZCrqK z6CyHoy-ld_m`y;*5tQkiye#-+IteVr%T&g2a&>iVhLNHKtkl$q6e?qWq9lSP++CKE z)acTLq_LarkW%nM_tlSy`<6vTRLwc0c@nn|k0@J9%vd6Vs1o#qd@Fi*5V5^0s2oYa z?gNnFHNRx>yJN!uuEXW!`B?jKzXBL<X9@9uKK+6|Va9kg=>aIu79%1Cqt8EGS{E;Z z5>O6K1$_pTH83I|xtyjz5jJ2y?&P=w7zqIOT<?C&0uhkwybuh)CX<B<qbMC<rf^PB z1Ki|*n#pHL>VTy%K<T18C<81B0K(c9E?PiC8_<U&BWwcjhyY>ZgjgN`I|Q&FVPks> z#N+{#8fO;rzxnFOP`nS5%4?GEV3$#kw80bb#kH^ye8P>?rs1QMbij1TR~GCK%A*sF z6ery}{{{d>=~NHhp5MJilGGuQlB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ceib^EuSFWa`5 z2W9|XZ#z8>YY`@T8gx)uUbor%?wzy0|D1Ol(yAczL?28HqwMVJnpd@XvSKBevq*}h zGn-XO{$A0u6&D`|E-fv^K;5dN)}%I8uAbp-RRh^T?t5f?DIht~@iNt<7*x^ki9O$m zYK^w(4Zm9zItt$wo5-wr46=Kf0?}KozQFi3{Ex09`((%xi=rT8M_Q3io!mcD4QfKb zYvLNSK<+c|aT#*88Hm2C|N774^!mEp2dR%7$*+I2|8NJ+1tD$Ti*?Uc&wn5bv_94C zYpD*?b4t#7Sg*n*2*+iC0iaVbV(#{Qs9ET%Qfzkr*zLOb%@KAx`Y;O(QT_kM`P%32 k7<}*l%jt{qS~L-WpLv*_XM=V5VBLVWx`A39$Uf@-0FH9kr2qf` diff --git a/poky/bitbake/lib/bb/ui/icons/templates/templates_hover.png b/poky/bitbake/lib/bb/ui/icons/templates/templates_hover.png deleted file mode 100644 index afb7165fe5ff8f54083a37533f085787e266825a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5791 zcma)9Wn0u=wEZD9bV%a}2uOE#44qO^QX=I@m(<XLNQiWY4oD10cL@y55YjCm4N5p5 zF_-_nU*NvjXT93bIcM#?*IDQNGd*<@LIy$r07x`7R1EJ?@4o=y-LHw|%;0+<@X#># z1^}Xm{{<G1ol6G*g!(QJ$g^k8?mq6`&h8$}nh*%HhnKsf%Nqv(c)OTq<Ya8LM<a(` zJy+I_4NKK_H>3tJ8!CSYqe_0t%|bw~70XhzKyA=Np{k0*I9M2qotPLFPi??U97i~h zzr|9V82LFiZuoj5=reS-9sO(Uu3=7or}8YX4u#(hB2L#3F%SzQE>nI?u^u_lhuqlW zR}3d)^8m;}b+1^wZ&|T`OPH)I&y#NaP5|reG!Y2s*3Ib_d=!Hr+gHwdffW{o)$Nlk zsSOIF0u%!il}i9cHLS3_%%?^`Ar4?WV*hdzc*Y0Va)kbx2Ey_#vx2Yy%TyL>tioh~ z`JqFs3g9dQRHB~8sRCw#0F|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8-CZ+-^5;8U+xF1cy*68OcwUp246gfY zBr+yY?U%z(vDqD1n3;`~=yC}o3eSetF1Pww)e~<bPp)Gc*E+231@k<`7m#SSc8DJ; z&uV#0(R3(6uv>h)plPx7r8jT<Sgvg+QQr4Frt?HW{Qg+`=zkiYaEi&HcRGQrDPo)j z=Otq~<8-c7dRZ*s$eFga6aNUodD?+LLxRLIGX6*HK3luVq30o(NhRli<T=OSU7i?G z%@8;h=_ASCH!@wpJK<MXSIwtyc#bk)^9<^o;o{Pu$lt1J^zwJ_lTb`S`}1{2e%IX2 zGmi%?2C}=D&}Bgi>{6T0p>p!Ki#~=_{b-xOJ@_^1ZvRc`+{sn%tQ0#np+Vsw(JPmC zen0ph2i?@rE*|~0(OH%=sKn!YxZu$fa_3#3e=kgfbU|6<wV18*p-0^(4>AD{qS??~ z{NEBw$BWO|ZgFOiiH5JuzmR~Jiy$$uyT!6OSje9NdHA`*fakB^wU|w5+f=@WaQVvO zX9%MNe#<jum?cOkV@Il%7xF2!yH?baf&tii!c>I>-}l~0y!e__$iH*5>NzM6ywf;j zsAQ1`eE2HZY^MI-a6h7H^<N#69EMd&Oe(sV^S(PyWz`L+J}Os%j?|C|!T6cjm)<}S zmXCYHkDH-cKFcnnEnLDHoQemH4D}6ak6iAi$3BMK8)5qYj~~V;3}A=>)?KNVFy-E} Q`yT+Hsj8<^rEDAVKdzq=*Z=?k diff --git a/poky/bitbake/lib/bb/ui/knotty.py b/poky/bitbake/lib/bb/ui/knotty.py deleted file mode 100644 index fa88e6c..0000000 --- a/poky/bitbake/lib/bb/ui/knotty.py +++ /dev/null @@ -1,728 +0,0 @@ -# -# BitBake (No)TTY UI Implementation -# -# Handling output to TTYs or files (no TTY) -# -# Copyright (C) 2006-2012 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -from __future__ import division - -import os -import sys -import xmlrpc.client as xmlrpclib -import logging -import progressbar -import signal -import bb.msg -import time -import fcntl -import struct -import copy -import atexit - -from bb.ui import uihelper - -featureSet = [bb.cooker.CookerFeatures.SEND_SANITYEVENTS] - -logger = logging.getLogger("BitBake") -interactive = sys.stdout.isatty() - -class BBProgress(progressbar.ProgressBar): - def __init__(self, msg, maxval, widgets=None, extrapos=-1, resize_handler=None): - self.msg = msg - self.extrapos = extrapos - if not widgets: - widgets = [progressbar.Percentage(), ' ', progressbar.Bar(), ' ', - progressbar.ETA()] - self.extrapos = 4 - - if resize_handler: - self._resize_default = resize_handler - else: - self._resize_default = signal.getsignal(signal.SIGWINCH) - progressbar.ProgressBar.__init__(self, maxval, [self.msg + ": "] + widgets, fd=sys.stdout) - - def _handle_resize(self, signum=None, frame=None): - progressbar.ProgressBar._handle_resize(self, signum, frame) - if self._resize_default: - self._resize_default(signum, frame) - - def finish(self): - progressbar.ProgressBar.finish(self) - if self._resize_default: - signal.signal(signal.SIGWINCH, self._resize_default) - - def setmessage(self, msg): - self.msg = msg - self.widgets[0] = msg - - def setextra(self, extra): - if self.extrapos > -1: - if extra: - extrastr = str(extra) - if extrastr[0] != ' ': - extrastr = ' ' + extrastr - else: - extrastr = '' - self.widgets[self.extrapos] = extrastr - - def _need_update(self): - # We always want the bar to print when update() is called - return True - -class NonInteractiveProgress(object): - fobj = sys.stdout - - def __init__(self, msg, maxval): - self.msg = msg - self.maxval = maxval - self.finished = False - - def start(self, update=True): - self.fobj.write("%s..." % self.msg) - self.fobj.flush() - return self - - def update(self, value): - pass - - def finish(self): - if self.finished: - return - self.fobj.write("done.\n") - self.fobj.flush() - self.finished = True - -def new_progress(msg, maxval): - if interactive: - return BBProgress(msg, maxval) - else: - return NonInteractiveProgress(msg, maxval) - -def pluralise(singular, plural, qty): - if(qty == 1): - return singular % qty - else: - return plural % qty - - -class InteractConsoleLogFilter(logging.Filter): - def __init__(self, tf, format): - self.tf = tf - self.format = format - - def filter(self, record): - if record.levelno == self.format.NOTE and (record.msg.startswith("Running") or record.msg.startswith("recipe ")): - return False - self.tf.clearFooter() - return True - -class TerminalFilter(object): - rows = 25 - columns = 80 - - def sigwinch_handle(self, signum, frame): - self.rows, self.columns = self.getTerminalColumns() - if self._sigwinch_default: - self._sigwinch_default(signum, frame) - - def getTerminalColumns(self): - def ioctl_GWINSZ(fd): - try: - cr = struct.unpack('hh', fcntl.ioctl(fd, self.termios.TIOCGWINSZ, '1234')) - except: - return None - return cr - cr = ioctl_GWINSZ(sys.stdout.fileno()) - if not cr: - try: - fd = os.open(os.ctermid(), os.O_RDONLY) - cr = ioctl_GWINSZ(fd) - os.close(fd) - except: - pass - if not cr: - try: - cr = (env['LINES'], env['COLUMNS']) - except: - cr = (25, 80) - return cr - - def __init__(self, main, helper, console, errconsole, format, quiet): - self.main = main - self.helper = helper - self.cuu = None - self.stdinbackup = None - self.interactive = sys.stdout.isatty() - self.footer_present = False - self.lastpids = [] - self.lasttime = None - self.quiet = quiet - - if not self.interactive: - return - - try: - import curses - except ImportError: - sys.exit("FATAL: The knotty ui could not load the required curses python module.") - - import termios - self.curses = curses - self.termios = termios - try: - fd = sys.stdin.fileno() - self.stdinbackup = termios.tcgetattr(fd) - new = copy.deepcopy(self.stdinbackup) - new[3] = new[3] & ~termios.ECHO - termios.tcsetattr(fd, termios.TCSADRAIN, new) - curses.setupterm() - if curses.tigetnum("colors") > 2: - format.enable_color() - self.ed = curses.tigetstr("ed") - if self.ed: - self.cuu = curses.tigetstr("cuu") - try: - self._sigwinch_default = signal.getsignal(signal.SIGWINCH) - signal.signal(signal.SIGWINCH, self.sigwinch_handle) - except: - pass - self.rows, self.columns = self.getTerminalColumns() - except: - self.cuu = None - if not self.cuu: - self.interactive = False - bb.note("Unable to use interactive mode for this terminal, using fallback") - return - if console: - console.addFilter(InteractConsoleLogFilter(self, format)) - if errconsole: - errconsole.addFilter(InteractConsoleLogFilter(self, format)) - - self.main_progress = None - - def clearFooter(self): - if self.footer_present: - lines = self.footer_present - sys.stdout.buffer.write(self.curses.tparm(self.cuu, lines)) - sys.stdout.buffer.write(self.curses.tparm(self.ed)) - sys.stdout.flush() - self.footer_present = False - - def updateFooter(self): - if not self.cuu: - return - activetasks = self.helper.running_tasks - failedtasks = self.helper.failed_tasks - runningpids = self.helper.running_pids - currenttime = time.time() - if not self.lasttime or (currenttime - self.lasttime > 5): - self.helper.needUpdate = True - self.lasttime = currenttime - if self.footer_present and not self.helper.needUpdate: - return - self.helper.needUpdate = False - if self.footer_present: - self.clearFooter() - if (not self.helper.tasknumber_total or self.helper.tasknumber_current == self.helper.tasknumber_total) and not len(activetasks): - return - tasks = [] - for t in runningpids: - progress = activetasks[t].get("progress", None) - if progress is not None: - pbar = activetasks[t].get("progressbar", None) - rate = activetasks[t].get("rate", None) - start_time = activetasks[t].get("starttime", None) - if not pbar or pbar.bouncing != (progress < 0): - if progress < 0: - pbar = BBProgress("0: %s (pid %s) " % (activetasks[t]["title"], t), 100, widgets=[progressbar.BouncingSlider(), ''], extrapos=2, resize_handler=self.sigwinch_handle) - pbar.bouncing = True - else: - pbar = BBProgress("0: %s (pid %s) " % (activetasks[t]["title"], t), 100, widgets=[progressbar.Percentage(), ' ', progressbar.Bar(), ''], extrapos=4, resize_handler=self.sigwinch_handle) - pbar.bouncing = False - activetasks[t]["progressbar"] = pbar - tasks.append((pbar, progress, rate, start_time)) - else: - start_time = activetasks[t].get("starttime", None) - if start_time: - tasks.append("%s - %ds (pid %s)" % (activetasks[t]["title"], currenttime - start_time, t)) - else: - tasks.append("%s (pid %s)" % (activetasks[t]["title"], t)) - - if self.main.shutdown: - content = "Waiting for %s running tasks to finish:" % len(activetasks) - print(content) - else: - if self.quiet: - content = "Running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total) - elif not len(activetasks): - content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total) - else: - content = "Currently %2s running tasks (%s of %s)" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total) - maxtask = self.helper.tasknumber_total - if not self.main_progress or self.main_progress.maxval != maxtask: - widgets = [' ', progressbar.Percentage(), ' ', progressbar.Bar()] - self.main_progress = BBProgress("Running tasks", maxtask, widgets=widgets, resize_handler=self.sigwinch_handle) - self.main_progress.start(False) - self.main_progress.setmessage(content) - progress = self.helper.tasknumber_current - 1 - if progress < 0: - progress = 0 - content = self.main_progress.update(progress) - print('') - lines = 1 + int(len(content) / (self.columns + 1)) - if self.quiet == 0: - for tasknum, task in enumerate(tasks[:(self.rows - 2)]): - if isinstance(task, tuple): - pbar, progress, rate, start_time = task - if not pbar.start_time: - pbar.start(False) - if start_time: - pbar.start_time = start_time - pbar.setmessage('%s:%s' % (tasknum, pbar.msg.split(':', 1)[1])) - if progress > -1: - pbar.setextra(rate) - content = pbar.update(progress) - else: - content = pbar.update(1) - print('') - else: - content = "%s: %s" % (tasknum, task) - print(content) - lines = lines + 1 + int(len(content) / (self.columns + 1)) - self.footer_present = lines - self.lastpids = runningpids[:] - self.lastcount = self.helper.tasknumber_current - - def finish(self): - if self.stdinbackup: - fd = sys.stdin.fileno() - self.termios.tcsetattr(fd, self.termios.TCSADRAIN, self.stdinbackup) - -def print_event_log(event, includelogs, loglines, termfilter): - # FIXME refactor this out further - logfile = event.logfile - if logfile and os.path.exists(logfile): - termfilter.clearFooter() - bb.error("Logfile of failure stored in: %s" % logfile) - if includelogs and not event.errprinted: - print("Log data follows:") - f = open(logfile, "r") - lines = [] - while True: - l = f.readline() - if l == '': - break - l = l.rstrip() - if loglines: - lines.append(' | %s' % l) - if len(lines) > int(loglines): - lines.pop(0) - else: - print('| %s' % l) - f.close() - if lines: - for line in lines: - print(line) - -def _log_settings_from_server(server, observe_only): - # Get values of variables which control our output - includelogs, error = server.runCommand(["getVariable", "BBINCLUDELOGS"]) - if error: - logger.error("Unable to get the value of BBINCLUDELOGS variable: %s" % error) - raise BaseException(error) - loglines, error = server.runCommand(["getVariable", "BBINCLUDELOGS_LINES"]) - if error: - logger.error("Unable to get the value of BBINCLUDELOGS_LINES variable: %s" % error) - raise BaseException(error) - if observe_only: - cmd = 'getVariable' - else: - cmd = 'getSetVariable' - consolelogfile, error = server.runCommand([cmd, "BB_CONSOLELOG"]) - if error: - logger.error("Unable to get the value of BB_CONSOLELOG variable: %s" % error) - raise BaseException(error) - return includelogs, loglines, consolelogfile - -_evt_list = [ "bb.runqueue.runQueueExitWait", "bb.event.LogExecTTY", "logging.LogRecord", - "bb.build.TaskFailed", "bb.build.TaskBase", "bb.event.ParseStarted", - "bb.event.ParseProgress", "bb.event.ParseCompleted", "bb.event.CacheLoadStarted", - "bb.event.CacheLoadProgress", "bb.event.CacheLoadCompleted", "bb.command.CommandFailed", - "bb.command.CommandExit", "bb.command.CommandCompleted", "bb.cooker.CookerExit", - "bb.event.MultipleProviders", "bb.event.NoProvider", "bb.runqueue.sceneQueueTaskStarted", - "bb.runqueue.runQueueTaskStarted", "bb.runqueue.runQueueTaskFailed", "bb.runqueue.sceneQueueTaskFailed", - "bb.event.BuildBase", "bb.build.TaskStarted", "bb.build.TaskSucceeded", "bb.build.TaskFailedSilent", - "bb.build.TaskProgress", "bb.event.ProcessStarted", "bb.event.ProcessProgress", "bb.event.ProcessFinished"] - -def main(server, eventHandler, params, tf = TerminalFilter): - - if not params.observe_only: - params.updateToServer(server, os.environ.copy()) - - includelogs, loglines, consolelogfile = _log_settings_from_server(server, params.observe_only) - - if sys.stdin.isatty() and sys.stdout.isatty(): - log_exec_tty = True - else: - log_exec_tty = False - - helper = uihelper.BBUIHelper() - - console = logging.StreamHandler(sys.stdout) - errconsole = logging.StreamHandler(sys.stderr) - format_str = "%(levelname)s: %(message)s" - format = bb.msg.BBLogFormatter(format_str) - if params.options.quiet == 0: - forcelevel = None - elif params.options.quiet > 2: - forcelevel = bb.msg.BBLogFormatter.ERROR - else: - forcelevel = bb.msg.BBLogFormatter.WARNING - bb.msg.addDefaultlogFilter(console, bb.msg.BBLogFilterStdOut, forcelevel) - bb.msg.addDefaultlogFilter(errconsole, bb.msg.BBLogFilterStdErr) - console.setFormatter(format) - errconsole.setFormatter(format) - if not bb.msg.has_console_handler(logger): - logger.addHandler(console) - logger.addHandler(errconsole) - - bb.utils.set_process_name("KnottyUI") - - if params.options.remote_server and params.options.kill_server: - server.terminateServer() - return - - consolelog = None - if consolelogfile and not params.options.show_environment and not params.options.show_versions: - bb.utils.mkdirhier(os.path.dirname(consolelogfile)) - conlogformat = bb.msg.BBLogFormatter(format_str) - consolelog = logging.FileHandler(consolelogfile) - bb.msg.addDefaultlogFilter(consolelog) - consolelog.setFormatter(conlogformat) - logger.addHandler(consolelog) - loglink = os.path.join(os.path.dirname(consolelogfile), 'console-latest.log') - bb.utils.remove(loglink) - try: - os.symlink(os.path.basename(consolelogfile), loglink) - except OSError: - pass - - llevel, debug_domains = bb.msg.constructLogOptions() - server.runCommand(["setEventMask", server.getEventHandle(), llevel, debug_domains, _evt_list]) - - universe = False - if not params.observe_only: - params.updateFromServer(server) - cmdline = params.parseActions() - if not cmdline: - print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.") - return 1 - if 'msg' in cmdline and cmdline['msg']: - logger.error(cmdline['msg']) - return 1 - if cmdline['action'][0] == "buildTargets" and "universe" in cmdline['action'][1]: - universe = True - - ret, error = server.runCommand(cmdline['action']) - if error: - logger.error("Command '%s' failed: %s" % (cmdline, error)) - return 1 - elif ret != True: - logger.error("Command '%s' failed: returned %s" % (cmdline, ret)) - return 1 - - - parseprogress = None - cacheprogress = None - main.shutdown = 0 - interrupted = False - return_value = 0 - errors = 0 - warnings = 0 - taskfailures = [] - - termfilter = tf(main, helper, console, errconsole, format, params.options.quiet) - atexit.register(termfilter.finish) - - while True: - try: - event = eventHandler.waitEvent(0) - if event is None: - if main.shutdown > 1: - break - termfilter.updateFooter() - event = eventHandler.waitEvent(0.25) - if event is None: - continue - helper.eventHandler(event) - if isinstance(event, bb.runqueue.runQueueExitWait): - if not main.shutdown: - main.shutdown = 1 - continue - if isinstance(event, bb.event.LogExecTTY): - if log_exec_tty: - tries = event.retries - while tries: - print("Trying to run: %s" % event.prog) - if os.system(event.prog) == 0: - break - time.sleep(event.sleep_delay) - tries -= 1 - if tries: - continue - logger.warning(event.msg) - continue - - if isinstance(event, logging.LogRecord): - if event.levelno >= format.ERROR: - errors = errors + 1 - return_value = 1 - elif event.levelno == format.WARNING: - warnings = warnings + 1 - - if event.taskpid != 0: - # For "normal" logging conditions, don't show note logs from tasks - # but do show them if the user has changed the default log level to - # include verbose/debug messages - if event.levelno <= format.NOTE and (event.levelno < llevel or (event.levelno == format.NOTE and llevel != format.VERBOSE)): - continue - - # Prefix task messages with recipe/task - if event.taskpid in helper.running_tasks and event.levelno != format.PLAIN: - taskinfo = helper.running_tasks[event.taskpid] - event.msg = taskinfo['title'] + ': ' + event.msg - if hasattr(event, 'fn'): - event.msg = event.fn + ': ' + event.msg - logger.handle(event) - continue - - if isinstance(event, bb.build.TaskFailedSilent): - logger.warning("Logfile for failed setscene task is %s" % event.logfile) - continue - if isinstance(event, bb.build.TaskFailed): - return_value = 1 - print_event_log(event, includelogs, loglines, termfilter) - if isinstance(event, bb.build.TaskBase): - logger.info(event._message) - continue - if isinstance(event, bb.event.ParseStarted): - if params.options.quiet > 1: - continue - if event.total == 0: - continue - parseprogress = new_progress("Parsing recipes", event.total).start() - continue - if isinstance(event, bb.event.ParseProgress): - if params.options.quiet > 1: - continue - if parseprogress: - parseprogress.update(event.current) - else: - bb.warn("Got ParseProgress event for parsing that never started?") - continue - if isinstance(event, bb.event.ParseCompleted): - if params.options.quiet > 1: - continue - if not parseprogress: - continue - parseprogress.finish() - pasreprogress = None - if params.options.quiet == 0: - print(("Parsing of %d .bb files complete (%d cached, %d parsed). %d targets, %d skipped, %d masked, %d errors." - % ( event.total, event.cached, event.parsed, event.virtuals, event.skipped, event.masked, event.errors))) - continue - - if isinstance(event, bb.event.CacheLoadStarted): - if params.options.quiet > 1: - continue - cacheprogress = new_progress("Loading cache", event.total).start() - continue - if isinstance(event, bb.event.CacheLoadProgress): - if params.options.quiet > 1: - continue - cacheprogress.update(event.current) - continue - if isinstance(event, bb.event.CacheLoadCompleted): - if params.options.quiet > 1: - continue - cacheprogress.finish() - if params.options.quiet == 0: - print("Loaded %d entries from dependency cache." % event.num_entries) - continue - - if isinstance(event, bb.command.CommandFailed): - return_value = event.exitcode - if event.error: - errors = errors + 1 - logger.error(str(event)) - main.shutdown = 2 - continue - if isinstance(event, bb.command.CommandExit): - if not return_value: - return_value = event.exitcode - continue - if isinstance(event, (bb.command.CommandCompleted, bb.cooker.CookerExit)): - main.shutdown = 2 - continue - if isinstance(event, bb.event.MultipleProviders): - logger.info(str(event)) - continue - if isinstance(event, bb.event.NoProvider): - # For universe builds, only show these as warnings, not errors - if not universe: - return_value = 1 - errors = errors + 1 - logger.error(str(event)) - else: - logger.warning(str(event)) - continue - - if isinstance(event, bb.runqueue.sceneQueueTaskStarted): - logger.info("Running setscene task %d of %d (%s)" % (event.stats.completed + event.stats.active + event.stats.failed + 1, event.stats.total, event.taskstring)) - continue - - if isinstance(event, bb.runqueue.runQueueTaskStarted): - if event.noexec: - tasktype = 'noexec task' - else: - tasktype = 'task' - logger.info("Running %s %d of %d (%s)", - tasktype, - event.stats.completed + event.stats.active + - event.stats.failed + 1, - event.stats.total, event.taskstring) - continue - - if isinstance(event, bb.runqueue.runQueueTaskFailed): - return_value = 1 - taskfailures.append(event.taskstring) - logger.error(str(event)) - continue - - if isinstance(event, bb.runqueue.sceneQueueTaskFailed): - logger.warning(str(event)) - continue - - if isinstance(event, bb.event.DepTreeGenerated): - continue - - if isinstance(event, bb.event.ProcessStarted): - if params.options.quiet > 1: - continue - parseprogress = new_progress(event.processname, event.total) - parseprogress.start(False) - continue - if isinstance(event, bb.event.ProcessProgress): - if params.options.quiet > 1: - continue - if parseprogress: - parseprogress.update(event.progress) - else: - bb.warn("Got ProcessProgress event for someting that never started?") - continue - if isinstance(event, bb.event.ProcessFinished): - if params.options.quiet > 1: - continue - if parseprogress: - parseprogress.finish() - parseprogress = None - continue - - # ignore - if isinstance(event, (bb.event.BuildBase, - bb.event.MetadataEvent, - bb.event.StampUpdate, - bb.event.ConfigParsed, - bb.event.MultiConfigParsed, - bb.event.RecipeParsed, - bb.event.RecipePreFinalise, - bb.runqueue.runQueueEvent, - bb.event.OperationStarted, - bb.event.OperationCompleted, - bb.event.OperationProgress, - bb.event.DiskFull, - bb.event.HeartbeatEvent, - bb.build.TaskProgress)): - continue - - logger.error("Unknown event: %s", event) - - except EnvironmentError as ioerror: - termfilter.clearFooter() - # ignore interrupted io - if ioerror.args[0] == 4: - continue - sys.stderr.write(str(ioerror)) - if not params.observe_only: - _, error = server.runCommand(["stateForceShutdown"]) - main.shutdown = 2 - except KeyboardInterrupt: - termfilter.clearFooter() - if params.observe_only: - print("\nKeyboard Interrupt, exiting observer...") - main.shutdown = 2 - if not params.observe_only and main.shutdown == 1: - print("\nSecond Keyboard Interrupt, stopping...\n") - _, error = server.runCommand(["stateForceShutdown"]) - if error: - logger.error("Unable to cleanly stop: %s" % error) - if not params.observe_only and main.shutdown == 0: - print("\nKeyboard Interrupt, closing down...\n") - interrupted = True - _, error = server.runCommand(["stateShutdown"]) - if error: - logger.error("Unable to cleanly shutdown: %s" % error) - main.shutdown = main.shutdown + 1 - pass - except Exception as e: - import traceback - sys.stderr.write(traceback.format_exc()) - if not params.observe_only: - _, error = server.runCommand(["stateForceShutdown"]) - main.shutdown = 2 - return_value = 1 - try: - termfilter.clearFooter() - summary = "" - if taskfailures: - summary += pluralise("\nSummary: %s task failed:", - "\nSummary: %s tasks failed:", len(taskfailures)) - for failure in taskfailures: - summary += "\n %s" % failure - if warnings: - summary += pluralise("\nSummary: There was %s WARNING message shown.", - "\nSummary: There were %s WARNING messages shown.", warnings) - if return_value and errors: - summary += pluralise("\nSummary: There was %s ERROR message shown, returning a non-zero exit code.", - "\nSummary: There were %s ERROR messages shown, returning a non-zero exit code.", errors) - if summary and params.options.quiet == 0: - print(summary) - - if interrupted: - print("Execution was interrupted, returning a non-zero exit code.") - if return_value == 0: - return_value = 1 - except IOError as e: - import errno - if e.errno == errno.EPIPE: - pass - - if consolelog: - logger.removeHandler(consolelog) - consolelog.close() - - return return_value diff --git a/poky/bitbake/lib/bb/ui/ncurses.py b/poky/bitbake/lib/bb/ui/ncurses.py deleted file mode 100644 index 8690c52..0000000 --- a/poky/bitbake/lib/bb/ui/ncurses.py +++ /dev/null @@ -1,373 +0,0 @@ -# -# BitBake Curses UI Implementation -# -# Implements an ncurses frontend for the BitBake utility. -# -# Copyright (C) 2006 Michael 'Mickey' Lauer -# Copyright (C) 2006-2007 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -""" - We have the following windows: - - 1.) Main Window: Shows what we are ultimately building and how far we are. Includes status bar - 2.) Thread Activity Window: Shows one status line for every concurrent bitbake thread. - 3.) Command Line Window: Contains an interactive command line where you can interact w/ Bitbake. - - Basic window layout is like that: - - |---------------------------------------------------------| - | <Main Window> | <Thread Activity Window> | - | | 0: foo do_compile complete| - | Building Gtk+-2.6.10 | 1: bar do_patch complete | - | Status: 60% | ... | - | | ... | - | | ... | - |---------------------------------------------------------| - |<Command Line Window> | - |>>> which virtual/kernel | - |openzaurus-kernel | - |>>> _ | - |---------------------------------------------------------| - -""" - - - -import logging -import os, sys, itertools, time, subprocess - -try: - import curses -except ImportError: - sys.exit("FATAL: The ncurses ui could not load the required curses python module.") - -import bb -import xmlrpc.client -from bb import ui -from bb.ui import uihelper - -parsespin = itertools.cycle( r'|/-\\' ) - -X = 0 -Y = 1 -WIDTH = 2 -HEIGHT = 3 - -MAXSTATUSLENGTH = 32 - -class NCursesUI: - """ - NCurses UI Class - """ - class Window: - """Base Window Class""" - def __init__( self, x, y, width, height, fg=curses.COLOR_BLACK, bg=curses.COLOR_WHITE ): - self.win = curses.newwin( height, width, y, x ) - self.dimensions = ( x, y, width, height ) - """ - if curses.has_colors(): - color = 1 - curses.init_pair( color, fg, bg ) - self.win.bkgdset( ord(' '), curses.color_pair(color) ) - else: - self.win.bkgdset( ord(' '), curses.A_BOLD ) - """ - self.erase() - self.setScrolling() - self.win.noutrefresh() - - def erase( self ): - self.win.erase() - - def setScrolling( self, b = True ): - self.win.scrollok( b ) - self.win.idlok( b ) - - def setBoxed( self ): - self.boxed = True - self.win.box() - self.win.noutrefresh() - - def setText( self, x, y, text, *args ): - self.win.addstr( y, x, text, *args ) - self.win.noutrefresh() - - def appendText( self, text, *args ): - self.win.addstr( text, *args ) - self.win.noutrefresh() - - def drawHline( self, y ): - self.win.hline( y, 0, curses.ACS_HLINE, self.dimensions[WIDTH] ) - self.win.noutrefresh() - - class DecoratedWindow( Window ): - """Base class for windows with a box and a title bar""" - def __init__( self, title, x, y, width, height, fg=curses.COLOR_BLACK, bg=curses.COLOR_WHITE ): - NCursesUI.Window.__init__( self, x+1, y+3, width-2, height-4, fg, bg ) - self.decoration = NCursesUI.Window( x, y, width, height, fg, bg ) - self.decoration.setBoxed() - self.decoration.win.hline( 2, 1, curses.ACS_HLINE, width-2 ) - self.setTitle( title ) - - def setTitle( self, title ): - self.decoration.setText( 1, 1, title.center( self.dimensions[WIDTH]-2 ), curses.A_BOLD ) - - #-------------------------------------------------------------------------# -# class TitleWindow( Window ): - #-------------------------------------------------------------------------# -# """Title Window""" -# def __init__( self, x, y, width, height ): -# NCursesUI.Window.__init__( self, x, y, width, height ) -# version = bb.__version__ -# title = "BitBake %s" % version -# credit = "(C) 2003-2007 Team BitBake" -# #self.win.hline( 2, 1, curses.ACS_HLINE, width-2 ) -# self.win.border() -# self.setText( 1, 1, title.center( self.dimensions[WIDTH]-2 ), curses.A_BOLD ) -# self.setText( 1, 2, credit.center( self.dimensions[WIDTH]-2 ), curses.A_BOLD ) - - #-------------------------------------------------------------------------# - class ThreadActivityWindow( DecoratedWindow ): - #-------------------------------------------------------------------------# - """Thread Activity Window""" - def __init__( self, x, y, width, height ): - NCursesUI.DecoratedWindow.__init__( self, "Thread Activity", x, y, width, height ) - - def setStatus( self, thread, text ): - line = "%02d: %s" % ( thread, text ) - width = self.dimensions[WIDTH] - if ( len(line) > width ): - line = line[:width-3] + "..." - else: - line = line.ljust( width ) - self.setText( 0, thread, line ) - - #-------------------------------------------------------------------------# - class MainWindow( DecoratedWindow ): - #-------------------------------------------------------------------------# - """Main Window""" - def __init__( self, x, y, width, height ): - self.StatusPosition = width - MAXSTATUSLENGTH - NCursesUI.DecoratedWindow.__init__( self, None, x, y, width, height ) - curses.nl() - - def setTitle( self, title ): - title = "BitBake %s" % bb.__version__ - self.decoration.setText( 2, 1, title, curses.A_BOLD ) - self.decoration.setText( self.StatusPosition - 8, 1, "Status:", curses.A_BOLD ) - - def setStatus(self, status): - while len(status) < MAXSTATUSLENGTH: - status = status + " " - self.decoration.setText( self.StatusPosition, 1, status, curses.A_BOLD ) - - - #-------------------------------------------------------------------------# - class ShellOutputWindow( DecoratedWindow ): - #-------------------------------------------------------------------------# - """Interactive Command Line Output""" - def __init__( self, x, y, width, height ): - NCursesUI.DecoratedWindow.__init__( self, "Command Line Window", x, y, width, height ) - - #-------------------------------------------------------------------------# - class ShellInputWindow( Window ): - #-------------------------------------------------------------------------# - """Interactive Command Line Input""" - def __init__( self, x, y, width, height ): - NCursesUI.Window.__init__( self, x, y, width, height ) - -# put that to the top again from curses.textpad import Textbox -# self.textbox = Textbox( self.win ) -# t = threading.Thread() -# t.run = self.textbox.edit -# t.start() - - #-------------------------------------------------------------------------# - def main(self, stdscr, server, eventHandler, params): - #-------------------------------------------------------------------------# - height, width = stdscr.getmaxyx() - - # for now split it like that: - # MAIN_y + THREAD_y = 2/3 screen at the top - # MAIN_x = 2/3 left, THREAD_y = 1/3 right - # CLI_y = 1/3 of screen at the bottom - # CLI_x = full - - main_left = 0 - main_top = 0 - main_height = ( height // 3 * 2 ) - main_width = ( width // 3 ) * 2 - clo_left = main_left - clo_top = main_top + main_height - clo_height = height - main_height - main_top - 1 - clo_width = width - cli_left = main_left - cli_top = clo_top + clo_height - cli_height = 1 - cli_width = width - thread_left = main_left + main_width - thread_top = main_top - thread_height = main_height - thread_width = width - main_width - - #tw = self.TitleWindow( 0, 0, width, main_top ) - mw = self.MainWindow( main_left, main_top, main_width, main_height ) - taw = self.ThreadActivityWindow( thread_left, thread_top, thread_width, thread_height ) - clo = self.ShellOutputWindow( clo_left, clo_top, clo_width, clo_height ) - cli = self.ShellInputWindow( cli_left, cli_top, cli_width, cli_height ) - cli.setText( 0, 0, "BB>" ) - - mw.setStatus("Idle") - - helper = uihelper.BBUIHelper() - shutdown = 0 - - try: - params.updateFromServer(server) - cmdline = params.parseActions() - if not cmdline: - print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.") - return 1 - if 'msg' in cmdline and cmdline['msg']: - logger.error(cmdline['msg']) - return 1 - cmdline = cmdline['action'] - ret, error = server.runCommand(cmdline) - if error: - print("Error running command '%s': %s" % (cmdline, error)) - return - elif ret != True: - print("Couldn't get default commandlind! %s" % ret) - return - except xmlrpc.client.Fault as x: - print("XMLRPC Fault getting commandline:\n %s" % x) - return - - exitflag = False - while not exitflag: - try: - event = eventHandler.waitEvent(0.25) - if not event: - continue - - helper.eventHandler(event) - if isinstance(event, bb.build.TaskBase): - mw.appendText("NOTE: %s\n" % event._message) - if isinstance(event, logging.LogRecord): - mw.appendText(logging.getLevelName(event.levelno) + ': ' + event.getMessage() + '\n') - - if isinstance(event, bb.event.CacheLoadStarted): - self.parse_total = event.total - if isinstance(event, bb.event.CacheLoadProgress): - x = event.current - y = self.parse_total - mw.setStatus("Loading Cache: %s [%2d %%]" % ( next(parsespin), x*100/y ) ) - if isinstance(event, bb.event.CacheLoadCompleted): - mw.setStatus("Idle") - mw.appendText("Loaded %d entries from dependency cache.\n" - % ( event.num_entries)) - - if isinstance(event, bb.event.ParseStarted): - self.parse_total = event.total - if isinstance(event, bb.event.ParseProgress): - x = event.current - y = self.parse_total - mw.setStatus("Parsing Recipes: %s [%2d %%]" % ( next(parsespin), x*100/y ) ) - if isinstance(event, bb.event.ParseCompleted): - mw.setStatus("Idle") - mw.appendText("Parsing finished. %d cached, %d parsed, %d skipped, %d masked.\n" - % ( event.cached, event.parsed, event.skipped, event.masked )) - -# if isinstance(event, bb.build.TaskFailed): -# if event.logfile: -# if data.getVar("BBINCLUDELOGS", d): -# bb.error("log data follows (%s)" % logfile) -# number_of_lines = data.getVar("BBINCLUDELOGS_LINES", d) -# if number_of_lines: -# subprocess.check_call('tail -n%s %s' % (number_of_lines, logfile), shell=True) -# else: -# f = open(logfile, "r") -# while True: -# l = f.readline() -# if l == '': -# break -# l = l.rstrip() -# print '| %s' % l -# f.close() -# else: -# bb.error("see log in %s" % logfile) - - if isinstance(event, bb.command.CommandCompleted): - # stop so the user can see the result of the build, but - # also allow them to now exit with a single ^C - shutdown = 2 - if isinstance(event, bb.command.CommandFailed): - mw.appendText(str(event)) - time.sleep(2) - exitflag = True - if isinstance(event, bb.command.CommandExit): - exitflag = True - if isinstance(event, bb.cooker.CookerExit): - exitflag = True - - if isinstance(event, bb.event.LogExecTTY): - mw.appendText('WARN: ' + event.msg + '\n') - if helper.needUpdate: - activetasks, failedtasks = helper.getTasks() - taw.erase() - taw.setText(0, 0, "") - if activetasks: - taw.appendText("Active Tasks:\n") - for task in activetasks.values(): - taw.appendText(task["title"] + '\n') - if failedtasks: - taw.appendText("Failed Tasks:\n") - for task in failedtasks: - taw.appendText(task["title"] + '\n') - - curses.doupdate() - except EnvironmentError as ioerror: - # ignore interrupted io - if ioerror.args[0] == 4: - pass - - except KeyboardInterrupt: - if shutdown == 2: - mw.appendText("Third Keyboard Interrupt, exit.\n") - exitflag = True - if shutdown == 1: - mw.appendText("Second Keyboard Interrupt, stopping...\n") - _, error = server.runCommand(["stateForceShutdown"]) - if error: - print("Unable to cleanly stop: %s" % error) - if shutdown == 0: - mw.appendText("Keyboard Interrupt, closing down...\n") - _, error = server.runCommand(["stateShutdown"]) - if error: - print("Unable to cleanly shutdown: %s" % error) - shutdown = shutdown + 1 - pass - -def main(server, eventHandler, params): - if not os.isatty(sys.stdout.fileno()): - print("FATAL: Unable to run 'ncurses' UI without a TTY.") - return - ui = NCursesUI() - try: - curses.wrapper(ui.main, server, eventHandler, params) - except: - import traceback - traceback.print_exc() diff --git a/poky/bitbake/lib/bb/ui/taskexp.py b/poky/bitbake/lib/bb/ui/taskexp.py deleted file mode 100644 index 0e8e9d4..0000000 --- a/poky/bitbake/lib/bb/ui/taskexp.py +++ /dev/null @@ -1,328 +0,0 @@ -# -# BitBake Graphical GTK based Dependency Explorer -# -# Copyright (C) 2007 Ross Burton -# Copyright (C) 2007 - 2008 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import sys -import gi -gi.require_version('Gtk', '3.0') -from gi.repository import Gtk, Gdk, GObject -from multiprocessing import Queue -import threading -from xmlrpc import client -import time -import bb -import bb.event - -# Package Model -(COL_PKG_NAME) = (0) - -# Dependency Model -(TYPE_DEP, TYPE_RDEP) = (0, 1) -(COL_DEP_TYPE, COL_DEP_PARENT, COL_DEP_PACKAGE) = (0, 1, 2) - - -class PackageDepView(Gtk.TreeView): - def __init__(self, model, dep_type, label): - Gtk.TreeView.__init__(self) - self.current = None - self.dep_type = dep_type - self.filter_model = model.filter_new() - self.filter_model.set_visible_func(self._filter, data=None) - self.set_model(self.filter_model) - self.append_column(Gtk.TreeViewColumn(label, Gtk.CellRendererText(), text=COL_DEP_PACKAGE)) - - def _filter(self, model, iter, data): - this_type = model[iter][COL_DEP_TYPE] - package = model[iter][COL_DEP_PARENT] - if this_type != self.dep_type: return False - return package == self.current - - def set_current_package(self, package): - self.current = package - self.filter_model.refilter() - - -class PackageReverseDepView(Gtk.TreeView): - def __init__(self, model, label): - Gtk.TreeView.__init__(self) - self.current = None - self.filter_model = model.filter_new() - self.filter_model.set_visible_func(self._filter) - self.sort_model = self.filter_model.sort_new_with_model() - self.sort_model.set_sort_column_id(COL_DEP_PARENT, Gtk.SortType.ASCENDING) - self.set_model(self.sort_model) - self.append_column(Gtk.TreeViewColumn(label, Gtk.CellRendererText(), text=COL_DEP_PARENT)) - - def _filter(self, model, iter, data): - package = model[iter][COL_DEP_PACKAGE] - return package == self.current - - def set_current_package(self, package): - self.current = package - self.filter_model.refilter() - - -class DepExplorer(Gtk.Window): - def __init__(self): - Gtk.Window.__init__(self) - self.set_title("Task Dependency Explorer") - self.set_default_size(500, 500) - self.connect("delete-event", Gtk.main_quit) - - # Create the data models - self.pkg_model = Gtk.ListStore(GObject.TYPE_STRING) - self.pkg_model.set_sort_column_id(COL_PKG_NAME, Gtk.SortType.ASCENDING) - self.depends_model = Gtk.ListStore(GObject.TYPE_INT, GObject.TYPE_STRING, GObject.TYPE_STRING) - self.depends_model.set_sort_column_id(COL_DEP_PACKAGE, Gtk.SortType.ASCENDING) - - pane = Gtk.HPaned() - pane.set_position(250) - self.add(pane) - - # The master list of packages - scrolled = Gtk.ScrolledWindow() - scrolled.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC) - scrolled.set_shadow_type(Gtk.ShadowType.IN) - - self.pkg_treeview = Gtk.TreeView(self.pkg_model) - self.pkg_treeview.get_selection().connect("changed", self.on_cursor_changed) - column = Gtk.TreeViewColumn("Package", Gtk.CellRendererText(), text=COL_PKG_NAME) - self.pkg_treeview.append_column(column) - pane.add1(scrolled) - scrolled.add(self.pkg_treeview) - - box = Gtk.VBox(homogeneous=True, spacing=4) - - # Task Depends - scrolled = Gtk.ScrolledWindow() - scrolled.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC) - scrolled.set_shadow_type(Gtk.ShadowType.IN) - self.dep_treeview = PackageDepView(self.depends_model, TYPE_DEP, "Dependencies") - self.dep_treeview.connect("row-activated", self.on_package_activated, COL_DEP_PACKAGE) - scrolled.add(self.dep_treeview) - box.add(scrolled) - pane.add2(box) - - # Reverse Task Depends - scrolled = Gtk.ScrolledWindow() - scrolled.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC) - scrolled.set_shadow_type(Gtk.ShadowType.IN) - self.revdep_treeview = PackageReverseDepView(self.depends_model, "Dependent Tasks") - self.revdep_treeview.connect("row-activated", self.on_package_activated, COL_DEP_PARENT) - scrolled.add(self.revdep_treeview) - box.add(scrolled) - pane.add2(box) - - self.show_all() - - def on_package_activated(self, treeview, path, column, data_col): - model = treeview.get_model() - package = model.get_value(model.get_iter(path), data_col) - - pkg_path = [] - def finder(model, path, iter, needle): - package = model.get_value(iter, COL_PKG_NAME) - if package == needle: - pkg_path.append(path) - return True - else: - return False - self.pkg_model.foreach(finder, package) - if pkg_path: - self.pkg_treeview.get_selection().select_path(pkg_path[0]) - self.pkg_treeview.scroll_to_cell(pkg_path[0]) - - def on_cursor_changed(self, selection): - (model, it) = selection.get_selected() - if it is None: - current_package = None - else: - current_package = model.get_value(it, COL_PKG_NAME) - self.dep_treeview.set_current_package(current_package) - self.revdep_treeview.set_current_package(current_package) - - - def parse(self, depgraph): - for task in depgraph["tdepends"]: - self.pkg_model.insert(0, (task,)) - for depend in depgraph["tdepends"][task]: - self.depends_model.insert (0, (TYPE_DEP, task, depend)) - - -class gtkthread(threading.Thread): - quit = threading.Event() - def __init__(self, shutdown): - threading.Thread.__init__(self) - self.setDaemon(True) - self.shutdown = shutdown - if not Gtk.init_check()[0]: - sys.stderr.write("Gtk+ init failed. Make sure DISPLAY variable is set.\n") - gtkthread.quit.set() - - def run(self): - GObject.threads_init() - Gdk.threads_init() - Gtk.main() - gtkthread.quit.set() - - -def main(server, eventHandler, params): - shutdown = 0 - - gtkgui = gtkthread(shutdown) - gtkgui.start() - - try: - params.updateFromServer(server) - cmdline = params.parseActions() - if not cmdline: - print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.") - return 1 - if 'msg' in cmdline and cmdline['msg']: - print(cmdline['msg']) - return 1 - cmdline = cmdline['action'] - if not cmdline or cmdline[0] != "generateDotGraph": - print("This UI requires the -g option") - return 1 - ret, error = server.runCommand(["generateDepTreeEvent", cmdline[1], cmdline[2]]) - if error: - print("Error running command '%s': %s" % (cmdline, error)) - return 1 - elif ret != True: - print("Error running command '%s': returned %s" % (cmdline, ret)) - return 1 - except client.Fault as x: - print("XMLRPC Fault getting commandline:\n %s" % x) - return - - if gtkthread.quit.isSet(): - return - - Gdk.threads_enter() - dep = DepExplorer() - bardialog = Gtk.Dialog(parent=dep, - flags=Gtk.DialogFlags.MODAL|Gtk.DialogFlags.DESTROY_WITH_PARENT) - bardialog.set_default_size(400, 50) - box = bardialog.get_content_area() - pbar = Gtk.ProgressBar() - box.pack_start(pbar, True, True, 0) - bardialog.show_all() - bardialog.connect("delete-event", Gtk.main_quit) - Gdk.threads_leave() - - progress_total = 0 - while True: - try: - event = eventHandler.waitEvent(0.25) - if gtkthread.quit.isSet(): - _, error = server.runCommand(["stateForceShutdown"]) - if error: - print('Unable to cleanly stop: %s' % error) - break - - if event is None: - continue - - if isinstance(event, bb.event.CacheLoadStarted): - progress_total = event.total - Gdk.threads_enter() - bardialog.set_title("Loading Cache") - pbar.set_fraction(0.0) - Gdk.threads_leave() - - if isinstance(event, bb.event.CacheLoadProgress): - x = event.current - Gdk.threads_enter() - pbar.set_fraction(x * 1.0 / progress_total) - Gdk.threads_leave() - continue - - if isinstance(event, bb.event.CacheLoadCompleted): - continue - - if isinstance(event, bb.event.ParseStarted): - progress_total = event.total - if progress_total == 0: - continue - Gdk.threads_enter() - pbar.set_fraction(0.0) - bardialog.set_title("Processing recipes") - Gdk.threads_leave() - - if isinstance(event, bb.event.ParseProgress): - x = event.current - Gdk.threads_enter() - pbar.set_fraction(x * 1.0 / progress_total) - Gdk.threads_leave() - continue - - if isinstance(event, bb.event.ParseCompleted): - Gdk.threads_enter() - bardialog.set_title("Generating dependency tree") - Gdk.threads_leave() - continue - - if isinstance(event, bb.event.DepTreeGenerated): - Gdk.threads_enter() - bardialog.hide() - dep.parse(event._depgraph) - Gdk.threads_leave() - - if isinstance(event, bb.command.CommandCompleted): - continue - - if isinstance(event, bb.event.NoProvider): - print(str(event)) - - _, error = server.runCommand(["stateShutdown"]) - if error: - print('Unable to cleanly shutdown: %s' % error) - break - - if isinstance(event, bb.command.CommandFailed): - print(str(event)) - return event.exitcode - - if isinstance(event, bb.command.CommandExit): - return event.exitcode - - if isinstance(event, bb.cooker.CookerExit): - break - - continue - except EnvironmentError as ioerror: - # ignore interrupted io - if ioerror.args[0] == 4: - pass - except KeyboardInterrupt: - if shutdown == 2: - print("\nThird Keyboard Interrupt, exit.\n") - break - if shutdown == 1: - print("\nSecond Keyboard Interrupt, stopping...\n") - _, error = server.runCommand(["stateForceShutdown"]) - if error: - print('Unable to cleanly stop: %s' % error) - if shutdown == 0: - print("\nKeyboard Interrupt, closing down...\n") - _, error = server.runCommand(["stateShutdown"]) - if error: - print('Unable to cleanly shutdown: %s' % error) - shutdown = shutdown + 1 - pass diff --git a/poky/bitbake/lib/bb/ui/toasterui.py b/poky/bitbake/lib/bb/ui/toasterui.py deleted file mode 100644 index 88cec37..0000000 --- a/poky/bitbake/lib/bb/ui/toasterui.py +++ /dev/null @@ -1,487 +0,0 @@ -# -# BitBake ToasterUI Implementation -# based on (No)TTY UI Implementation by Richard Purdie -# -# Handling output to TTYs or files (no TTY) -# -# Copyright (C) 2006-2012 Richard Purdie -# Copyright (C) 2013 Intel Corporation -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -from __future__ import division -import time -import sys -try: - import bb -except RuntimeError as exc: - sys.exit(str(exc)) - -from bb.ui import uihelper -from bb.ui.buildinfohelper import BuildInfoHelper - -import bb.msg -import logging -import os - -# pylint: disable=invalid-name -# module properties for UI modules are read by bitbake and the contract should not be broken - - -featureSet = [bb.cooker.CookerFeatures.HOB_EXTRA_CACHES, bb.cooker.CookerFeatures.BASEDATASTORE_TRACKING, bb.cooker.CookerFeatures.SEND_SANITYEVENTS] - -logger = logging.getLogger("ToasterLogger") -interactive = sys.stdout.isatty() - -def _log_settings_from_server(server): - # Get values of variables which control our output - includelogs, error = server.runCommand(["getVariable", "BBINCLUDELOGS"]) - if error: - logger.error("Unable to get the value of BBINCLUDELOGS variable: %s", error) - raise BaseException(error) - loglines, error = server.runCommand(["getVariable", "BBINCLUDELOGS_LINES"]) - if error: - logger.error("Unable to get the value of BBINCLUDELOGS_LINES variable: %s", error) - raise BaseException(error) - consolelogfile, error = server.runCommand(["getVariable", "BB_CONSOLELOG"]) - if error: - logger.error("Unable to get the value of BB_CONSOLELOG variable: %s", error) - raise BaseException(error) - return consolelogfile - -# create a log file for a single build and direct the logger at it; -# log file name is timestamped to the millisecond (depending -# on system clock accuracy) to ensure it doesn't overlap with -# other log file names -# -# returns (log file, path to log file) for a build -def _open_build_log(log_dir): - format_str = "%(levelname)s: %(message)s" - - now = time.time() - now_ms = int((now - int(now)) * 1000) - time_str = time.strftime('build_%Y%m%d_%H%M%S', time.localtime(now)) - log_file_name = time_str + ('.%d.log' % now_ms) - build_log_file_path = os.path.join(log_dir, log_file_name) - - build_log = logging.FileHandler(build_log_file_path) - - logformat = bb.msg.BBLogFormatter(format_str) - build_log.setFormatter(logformat) - - bb.msg.addDefaultlogFilter(build_log) - logger.addHandler(build_log) - - return (build_log, build_log_file_path) - -# stop logging to the build log if it exists -def _close_build_log(build_log): - if build_log: - build_log.flush() - build_log.close() - logger.removeHandler(build_log) - -_evt_list = [ - "bb.build.TaskBase", - "bb.build.TaskFailed", - "bb.build.TaskFailedSilent", - "bb.build.TaskStarted", - "bb.build.TaskSucceeded", - "bb.command.CommandCompleted", - "bb.command.CommandExit", - "bb.command.CommandFailed", - "bb.cooker.CookerExit", - "bb.event.BuildInit", - "bb.event.BuildCompleted", - "bb.event.BuildStarted", - "bb.event.CacheLoadCompleted", - "bb.event.CacheLoadProgress", - "bb.event.CacheLoadStarted", - "bb.event.ConfigParsed", - "bb.event.DepTreeGenerated", - "bb.event.LogExecTTY", - "bb.event.MetadataEvent", - "bb.event.MultipleProviders", - "bb.event.NoProvider", - "bb.event.ParseCompleted", - "bb.event.ParseProgress", - "bb.event.ParseStarted", - "bb.event.RecipeParsed", - "bb.event.SanityCheck", - "bb.event.SanityCheckPassed", - "bb.event.TreeDataPreparationCompleted", - "bb.event.TreeDataPreparationStarted", - "bb.runqueue.runQueueTaskCompleted", - "bb.runqueue.runQueueTaskFailed", - "bb.runqueue.runQueueTaskSkipped", - "bb.runqueue.runQueueTaskStarted", - "bb.runqueue.sceneQueueTaskCompleted", - "bb.runqueue.sceneQueueTaskFailed", - "bb.runqueue.sceneQueueTaskStarted", - "logging.LogRecord"] - -def main(server, eventHandler, params): - # set to a logging.FileHandler instance when a build starts; - # see _open_build_log() - build_log = None - - # set to the log path when a build starts - build_log_file_path = None - - helper = uihelper.BBUIHelper() - - # TODO don't use log output to determine when bitbake has started - # - # WARNING: this log handler cannot be removed, as localhostbecontroller - # relies on output in the toaster_ui.log file to determine whether - # the bitbake server has started, which only happens if - # this logger is setup here (see the TODO in the loop below) - console = logging.StreamHandler(sys.stdout) - format_str = "%(levelname)s: %(message)s" - formatter = bb.msg.BBLogFormatter(format_str) - bb.msg.addDefaultlogFilter(console) - console.setFormatter(formatter) - logger.addHandler(console) - logger.setLevel(logging.INFO) - llevel, debug_domains = bb.msg.constructLogOptions() - result, error = server.runCommand(["setEventMask", server.getEventHandle(), llevel, debug_domains, _evt_list]) - if not result or error: - logger.error("can't set event mask: %s", error) - return 1 - - # verify and warn - build_history_enabled = True - inheritlist, _ = server.runCommand(["getVariable", "INHERIT"]) - - if not "buildhistory" in inheritlist.split(" "): - logger.warning("buildhistory is not enabled. Please enable INHERIT += \"buildhistory\" to see image details.") - build_history_enabled = False - - if not "buildstats" in inheritlist.split(" "): - logger.warning("buildstats is not enabled. Please enable INHERIT += \"buildstats\" to generate build statistics.") - - if not params.observe_only: - params.updateFromServer(server) - params.updateToServer(server, os.environ.copy()) - cmdline = params.parseActions() - if not cmdline: - print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.") - return 1 - if 'msg' in cmdline and cmdline['msg']: - logger.error(cmdline['msg']) - return 1 - - ret, error = server.runCommand(cmdline['action']) - if error: - logger.error("Command '%s' failed: %s" % (cmdline, error)) - return 1 - elif ret != True: - logger.error("Command '%s' failed: returned %s" % (cmdline, ret)) - return 1 - - # set to 1 when toasterui needs to shut down - main.shutdown = 0 - - interrupted = False - return_value = 0 - errors = 0 - warnings = 0 - taskfailures = [] - first = True - - buildinfohelper = BuildInfoHelper(server, build_history_enabled, - os.getenv('TOASTER_BRBE')) - - # write our own log files into bitbake's log directory; - # we're only interested in the path to the parent directory of - # this file, as we're writing our own logs into the same directory - consolelogfile = _log_settings_from_server(server) - log_dir = os.path.dirname(consolelogfile) - bb.utils.mkdirhier(log_dir) - - while True: - try: - event = eventHandler.waitEvent(0.25) - if first: - first = False - - # TODO don't use log output to determine when bitbake has started - # - # this is the line localhostbecontroller needs to - # see in toaster_ui.log which it uses to decide whether - # the bitbake server has started... - logger.info("ToasterUI waiting for events") - - if event is None: - if main.shutdown > 0: - # if shutting down, close any open build log first - _close_build_log(build_log) - - break - continue - - helper.eventHandler(event) - - # pylint: disable=protected-access - # the code will look into the protected variables of the event; no easy way around this - - if isinstance(event, bb.event.HeartbeatEvent): - continue - - if isinstance(event, bb.event.ParseStarted): - if not (build_log and build_log_file_path): - build_log, build_log_file_path = _open_build_log(log_dir) - - buildinfohelper.store_started_build() - buildinfohelper.save_build_log_file_path(build_log_file_path) - buildinfohelper.set_recipes_to_parse(event.total) - continue - - # create a build object in buildinfohelper from either BuildInit - # (if available) or BuildStarted (for jethro and previous versions) - if isinstance(event, (bb.event.BuildStarted, bb.event.BuildInit)): - if not (build_log and build_log_file_path): - build_log, build_log_file_path = _open_build_log(log_dir) - - buildinfohelper.save_build_targets(event) - buildinfohelper.save_build_log_file_path(build_log_file_path) - - # get additional data from BuildStarted - if isinstance(event, bb.event.BuildStarted): - buildinfohelper.save_build_layers_and_variables() - continue - - if isinstance(event, bb.event.ParseProgress): - buildinfohelper.set_recipes_parsed(event.current) - continue - - if isinstance(event, bb.event.ParseCompleted): - buildinfohelper.set_recipes_parsed(event.total) - continue - - if isinstance(event, (bb.build.TaskStarted, bb.build.TaskSucceeded, bb.build.TaskFailedSilent)): - buildinfohelper.update_and_store_task(event) - logger.info("Logfile for task %s", event.logfile) - continue - - if isinstance(event, bb.build.TaskBase): - logger.info(event._message) - - if isinstance(event, bb.event.LogExecTTY): - logger.info(event.msg) - continue - - if isinstance(event, logging.LogRecord): - if event.levelno == -1: - event.levelno = formatter.ERROR - - buildinfohelper.store_log_event(event) - - if event.levelno >= formatter.ERROR: - errors = errors + 1 - elif event.levelno == formatter.WARNING: - warnings = warnings + 1 - - # For "normal" logging conditions, don't show note logs from tasks - # but do show them if the user has changed the default log level to - # include verbose/debug messages - if event.taskpid != 0 and event.levelno <= formatter.NOTE: - continue - - logger.handle(event) - continue - - if isinstance(event, bb.build.TaskFailed): - buildinfohelper.update_and_store_task(event) - logfile = event.logfile - if logfile and os.path.exists(logfile): - bb.error("Logfile of failure stored in: %s" % logfile) - continue - - # these events are unprocessed now, but may be used in the future to log - # timing and error informations from the parsing phase in Toaster - if isinstance(event, (bb.event.SanityCheckPassed, bb.event.SanityCheck)): - continue - if isinstance(event, bb.event.CacheLoadStarted): - continue - if isinstance(event, bb.event.CacheLoadProgress): - continue - if isinstance(event, bb.event.CacheLoadCompleted): - continue - if isinstance(event, bb.event.MultipleProviders): - logger.info(str(event)) - continue - - if isinstance(event, bb.event.NoProvider): - errors = errors + 1 - text = str(event) - logger.error(text) - buildinfohelper.store_log_error(text) - continue - - if isinstance(event, bb.event.ConfigParsed): - continue - if isinstance(event, bb.event.RecipeParsed): - continue - - # end of saved events - - if isinstance(event, (bb.runqueue.sceneQueueTaskStarted, bb.runqueue.runQueueTaskStarted, bb.runqueue.runQueueTaskSkipped)): - buildinfohelper.store_started_task(event) - continue - - if isinstance(event, bb.runqueue.runQueueTaskCompleted): - buildinfohelper.update_and_store_task(event) - continue - - if isinstance(event, bb.runqueue.runQueueTaskFailed): - buildinfohelper.update_and_store_task(event) - taskfailures.append(event.taskstring) - logger.error(str(event)) - continue - - if isinstance(event, (bb.runqueue.sceneQueueTaskCompleted, bb.runqueue.sceneQueueTaskFailed)): - buildinfohelper.update_and_store_task(event) - continue - - - if isinstance(event, (bb.event.TreeDataPreparationStarted, bb.event.TreeDataPreparationCompleted)): - continue - - if isinstance(event, (bb.event.BuildCompleted, bb.command.CommandFailed)): - - errorcode = 0 - if isinstance(event, bb.command.CommandFailed): - errors += 1 - errorcode = 1 - logger.error(str(event)) - elif isinstance(event, bb.event.BuildCompleted): - buildinfohelper.scan_image_artifacts() - buildinfohelper.clone_required_sdk_artifacts() - - # turn off logging to the current build log - _close_build_log(build_log) - - # reset ready for next BuildStarted - build_log = None - - # update the build info helper on BuildCompleted, not on CommandXXX - buildinfohelper.update_build_information(event, errors, warnings, taskfailures) - - brbe = buildinfohelper.brbe - buildinfohelper.close(errorcode) - - # we start a new build info - if params.observe_only: - logger.debug("ToasterUI prepared for new build") - errors = 0 - warnings = 0 - taskfailures = [] - buildinfohelper = BuildInfoHelper(server, build_history_enabled) - else: - main.shutdown = 1 - - logger.info("ToasterUI build done, brbe: %s", brbe) - continue - - if isinstance(event, (bb.command.CommandCompleted, - bb.command.CommandFailed, - bb.command.CommandExit)): - if params.observe_only: - errorcode = 0 - else: - main.shutdown = 1 - - continue - - if isinstance(event, bb.event.MetadataEvent): - if event.type == "SinglePackageInfo": - buildinfohelper.store_build_package_information(event) - elif event.type == "LayerInfo": - buildinfohelper.store_layer_info(event) - elif event.type == "BuildStatsList": - buildinfohelper.store_tasks_stats(event) - elif event.type == "ImagePkgList": - buildinfohelper.store_target_package_data(event) - elif event.type == "MissedSstate": - buildinfohelper.store_missed_state_tasks(event) - elif event.type == "SDKArtifactInfo": - buildinfohelper.scan_sdk_artifacts(event) - elif event.type == "SetBRBE": - buildinfohelper.brbe = buildinfohelper._get_data_from_event(event) - elif event.type == "TaskArtifacts": - buildinfohelper.scan_task_artifacts(event) - elif event.type == "OSErrorException": - logger.error(event) - else: - logger.error("Unprocessed MetadataEvent %s", event.type) - continue - - if isinstance(event, bb.cooker.CookerExit): - # shutdown when bitbake server shuts down - main.shutdown = 1 - continue - - if isinstance(event, bb.event.DepTreeGenerated): - buildinfohelper.store_dependency_information(event) - continue - - logger.warning("Unknown event: %s", event) - return_value += 1 - - except EnvironmentError as ioerror: - logger.warning("EnvironmentError: %s" % ioerror) - # ignore interrupted io system calls - if ioerror.args[0] == 4: # errno 4 is EINTR - logger.warning("Skipped EINTR: %s" % ioerror) - else: - raise - except KeyboardInterrupt: - if params.observe_only: - print("\nKeyboard Interrupt, exiting observer...") - main.shutdown = 2 - if not params.observe_only and main.shutdown == 1: - print("\nSecond Keyboard Interrupt, stopping...\n") - _, error = server.runCommand(["stateForceShutdown"]) - if error: - logger.error("Unable to cleanly stop: %s" % error) - if not params.observe_only and main.shutdown == 0: - print("\nKeyboard Interrupt, closing down...\n") - interrupted = True - _, error = server.runCommand(["stateShutdown"]) - if error: - logger.error("Unable to cleanly shutdown: %s" % error) - buildinfohelper.cancel_cli_build() - main.shutdown = main.shutdown + 1 - except Exception as e: - # print errors to log - import traceback - from pprint import pformat - exception_data = traceback.format_exc() - logger.error("%s\n%s" , e, exception_data) - - # save them to database, if possible; if it fails, we already logged to console. - try: - buildinfohelper.store_log_exception("%s\n%s" % (str(e), exception_data)) - except Exception as ce: - logger.error("CRITICAL - Failed to to save toaster exception to the database: %s", str(ce)) - - # make sure we return with an error - return_value += 1 - - if interrupted and return_value == 0: - return_value += 1 - - logger.warning("Return value is %d", return_value) - return return_value diff --git a/poky/bitbake/lib/bb/ui/uievent.py b/poky/bitbake/lib/bb/ui/uievent.py deleted file mode 100644 index 9542b91..0000000 --- a/poky/bitbake/lib/bb/ui/uievent.py +++ /dev/null @@ -1,161 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# Copyright (C) 2006 - 2007 Michael 'Mickey' Lauer -# Copyright (C) 2006 - 2007 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - - -""" -Use this class to fork off a thread to recieve event callbacks from the bitbake -server and queue them for the UI to process. This process must be used to avoid -client/server deadlocks. -""" - -import socket, threading, pickle, collections -from xmlrpc.server import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler - -class BBUIEventQueue: - def __init__(self, BBServer, clientinfo=("localhost, 0")): - - self.eventQueue = [] - self.eventQueueLock = threading.Lock() - self.eventQueueNotify = threading.Event() - - self.BBServer = BBServer - self.clientinfo = clientinfo - - server = UIXMLRPCServer(self.clientinfo) - self.host, self.port = server.socket.getsockname() - - server.register_function( self.system_quit, "event.quit" ) - server.register_function( self.send_event, "event.sendpickle" ) - server.socket.settimeout(1) - - self.EventHandle = None - - # the event handler registration may fail here due to cooker being in invalid state - # this is a transient situation, and we should retry a couple of times before - # giving up - - for count_tries in range(5): - ret = self.BBServer.registerEventHandler(self.host, self.port) - - if isinstance(ret, collections.Iterable): - self.EventHandle, error = ret - else: - self.EventHandle = ret - error = "" - - if self.EventHandle != None: - break - - errmsg = "Could not register UI event handler. Error: %s, host %s, "\ - "port %d" % (error, self.host, self.port) - bb.warn("%s, retry" % errmsg) - - import time - time.sleep(1) - else: - raise Exception(errmsg) - - self.server = server - - self.t = threading.Thread() - self.t.setDaemon(True) - self.t.run = self.startCallbackHandler - self.t.start() - - def getEvent(self): - - self.eventQueueLock.acquire() - - if len(self.eventQueue) == 0: - self.eventQueueLock.release() - return None - - item = self.eventQueue.pop(0) - - if len(self.eventQueue) == 0: - self.eventQueueNotify.clear() - - self.eventQueueLock.release() - return item - - def waitEvent(self, delay): - self.eventQueueNotify.wait(delay) - return self.getEvent() - - def queue_event(self, event): - self.eventQueueLock.acquire() - self.eventQueue.append(event) - self.eventQueueNotify.set() - self.eventQueueLock.release() - - def send_event(self, event): - self.queue_event(pickle.loads(event)) - - def startCallbackHandler(self): - - self.server.timeout = 1 - bb.utils.set_process_name("UIEventQueue") - while not self.server.quit: - try: - self.server.handle_request() - except Exception as e: - import traceback - logger.error("BBUIEventQueue.startCallbackHandler: Exception while trying to handle request: %s\n%s" % (e, traceback.format_exc())) - - self.server.server_close() - - def system_quit( self ): - """ - Shut down the callback thread - """ - try: - self.BBServer.unregisterEventHandler(self.EventHandle) - except: - pass - self.server.quit = True - -class UIXMLRPCServer (SimpleXMLRPCServer): - - def __init__( self, interface ): - self.quit = False - SimpleXMLRPCServer.__init__( self, - interface, - requestHandler=SimpleXMLRPCRequestHandler, - logRequests=False, allow_none=True, use_builtin_types=True) - - def get_request(self): - while not self.quit: - try: - sock, addr = self.socket.accept() - sock.settimeout(1) - return (sock, addr) - except socket.timeout: - pass - return (None, None) - - def close_request(self, request): - if request is None: - return - SimpleXMLRPCServer.close_request(self, request) - - def process_request(self, request, client_address): - if request is None: - return - SimpleXMLRPCServer.process_request(self, request, client_address) - diff --git a/poky/bitbake/lib/bb/ui/uihelper.py b/poky/bitbake/lib/bb/ui/uihelper.py deleted file mode 100644 index 963c1ea..0000000 --- a/poky/bitbake/lib/bb/ui/uihelper.py +++ /dev/null @@ -1,70 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -# -# Copyright (C) 2006 - 2007 Michael 'Mickey' Lauer -# Copyright (C) 2006 - 2007 Richard Purdie -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import bb.build -import time - -class BBUIHelper: - def __init__(self): - self.needUpdate = False - self.running_tasks = {} - # Running PIDs preserves the order tasks were executed in - self.running_pids = [] - self.failed_tasks = [] - self.tasknumber_current = 0 - self.tasknumber_total = 0 - - def eventHandler(self, event): - if isinstance(event, bb.build.TaskStarted): - if event._mc != "default": - self.running_tasks[event.pid] = { 'title' : "mc:%s:%s %s" % (event._mc, event._package, event._task), 'starttime' : time.time() } - else: - self.running_tasks[event.pid] = { 'title' : "%s %s" % (event._package, event._task), 'starttime' : time.time() } - self.running_pids.append(event.pid) - self.needUpdate = True - elif isinstance(event, bb.build.TaskSucceeded): - del self.running_tasks[event.pid] - self.running_pids.remove(event.pid) - self.needUpdate = True - elif isinstance(event, bb.build.TaskFailedSilent): - del self.running_tasks[event.pid] - self.running_pids.remove(event.pid) - # Don't add to the failed tasks list since this is e.g. a setscene task failure - self.needUpdate = True - elif isinstance(event, bb.build.TaskFailed): - del self.running_tasks[event.pid] - self.running_pids.remove(event.pid) - self.failed_tasks.append( { 'title' : "%s %s" % (event._package, event._task)}) - self.needUpdate = True - elif isinstance(event, bb.runqueue.runQueueTaskStarted) or isinstance(event, bb.runqueue.sceneQueueTaskStarted): - self.tasknumber_current = event.stats.completed + event.stats.active + event.stats.failed + 1 - self.tasknumber_total = event.stats.total - self.needUpdate = True - elif isinstance(event, bb.build.TaskProgress): - if event.pid > 0: - self.running_tasks[event.pid]['progress'] = event.progress - self.running_tasks[event.pid]['rate'] = event.rate - self.needUpdate = True - else: - return False - return True - - def getTasks(self): - self.needUpdate = False - return (self.running_tasks, self.failed_tasks) diff --git a/poky/bitbake/lib/bb/utils.py b/poky/bitbake/lib/bb/utils.py deleted file mode 100644 index c540b49..0000000 --- a/poky/bitbake/lib/bb/utils.py +++ /dev/null @@ -1,1538 +0,0 @@ -# ex:ts=4:sw=4:sts=4:et -# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- -""" -BitBake Utility Functions -""" - -# Copyright (C) 2004 Michael Lauer -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import re, fcntl, os, string, stat, shutil, time -import sys -import errno -import logging -import bb -import bb.msg -import multiprocessing -import fcntl -import imp -import itertools -import subprocess -import glob -import fnmatch -import traceback -import errno -import signal -import ast -import collections -import copy -from subprocess import getstatusoutput -from contextlib import contextmanager -from ctypes import cdll - -logger = logging.getLogger("BitBake.Util") -python_extensions = [e for e, _, _ in imp.get_suffixes()] - - -def clean_context(): - return { - "os": os, - "bb": bb, - "time": time, - } - -def get_context(): - return _context - - -def set_context(ctx): - _context = ctx - -# Context used in better_exec, eval -_context = clean_context() - -class VersionStringException(Exception): - """Exception raised when an invalid version specification is found""" - -def explode_version(s): - r = [] - alpha_regexp = re.compile('^([a-zA-Z]+)(.*)$') - numeric_regexp = re.compile('^(\d+)(.*)$') - while (s != ''): - if s[0] in string.digits: - m = numeric_regexp.match(s) - r.append((0, int(m.group(1)))) - s = m.group(2) - continue - if s[0] in string.ascii_letters: - m = alpha_regexp.match(s) - r.append((1, m.group(1))) - s = m.group(2) - continue - if s[0] == '~': - r.append((-1, s[0])) - else: - r.append((2, s[0])) - s = s[1:] - return r - -def split_version(s): - """Split a version string into its constituent parts (PE, PV, PR)""" - s = s.strip(" <>=") - e = 0 - if s.count(':'): - e = int(s.split(":")[0]) - s = s.split(":")[1] - r = "" - if s.count('-'): - r = s.rsplit("-", 1)[1] - s = s.rsplit("-", 1)[0] - v = s - return (e, v, r) - -def vercmp_part(a, b): - va = explode_version(a) - vb = explode_version(b) - while True: - if va == []: - (oa, ca) = (0, None) - else: - (oa, ca) = va.pop(0) - if vb == []: - (ob, cb) = (0, None) - else: - (ob, cb) = vb.pop(0) - if (oa, ca) == (0, None) and (ob, cb) == (0, None): - return 0 - if oa < ob: - return -1 - elif oa > ob: - return 1 - elif ca < cb: - return -1 - elif ca > cb: - return 1 - -def vercmp(ta, tb): - (ea, va, ra) = ta - (eb, vb, rb) = tb - - r = int(ea or 0) - int(eb or 0) - if (r == 0): - r = vercmp_part(va, vb) - if (r == 0): - r = vercmp_part(ra, rb) - return r - -def vercmp_string(a, b): - ta = split_version(a) - tb = split_version(b) - return vercmp(ta, tb) - -def vercmp_string_op(a, b, op): - """ - Compare two versions and check if the specified comparison operator matches the result of the comparison. - This function is fairly liberal about what operators it will accept since there are a variety of styles - depending on the context. - """ - res = vercmp_string(a, b) - if op in ('=', '=='): - return res == 0 - elif op == '<=': - return res <= 0 - elif op == '>=': - return res >= 0 - elif op in ('>', '>>'): - return res > 0 - elif op in ('<', '<<'): - return res < 0 - elif op == '!=': - return res != 0 - else: - raise VersionStringException('Unsupported comparison operator "%s"' % op) - -def explode_deps(s): - """ - Take an RDEPENDS style string of format: - "DEPEND1 (optional version) DEPEND2 (optional version) ..." - and return a list of dependencies. - Version information is ignored. - """ - r = [] - l = s.split() - flag = False - for i in l: - if i[0] == '(': - flag = True - #j = [] - if not flag: - r.append(i) - #else: - # j.append(i) - if flag and i.endswith(')'): - flag = False - # Ignore version - #r[-1] += ' ' + ' '.join(j) - return r - -def explode_dep_versions2(s): - """ - Take an RDEPENDS style string of format: - "DEPEND1 (optional version) DEPEND2 (optional version) ..." - and return a dictionary of dependencies and versions. - """ - r = collections.OrderedDict() - l = s.replace(",", "").split() - lastdep = None - lastcmp = "" - lastver = "" - incmp = False - inversion = False - for i in l: - if i[0] == '(': - incmp = True - i = i[1:].strip() - if not i: - continue - - if incmp: - incmp = False - inversion = True - # This list is based on behavior and supported comparisons from deb, opkg and rpm. - # - # Even though =<, <<, ==, !=, =>, and >> may not be supported, - # we list each possibly valid item. - # The build system is responsible for validation of what it supports. - if i.startswith(('<=', '=<', '<<', '==', '!=', '>=', '=>', '>>')): - lastcmp = i[0:2] - i = i[2:] - elif i.startswith(('<', '>', '=')): - lastcmp = i[0:1] - i = i[1:] - else: - # This is an unsupported case! - raise VersionStringException('Invalid version specification in "(%s" - invalid or missing operator' % i) - lastcmp = (i or "") - i = "" - i.strip() - if not i: - continue - - if inversion: - if i.endswith(')'): - i = i[:-1] or "" - inversion = False - if lastver and i: - lastver += " " - if i: - lastver += i - if lastdep not in r: - r[lastdep] = [] - r[lastdep].append(lastcmp + " " + lastver) - continue - - #if not inversion: - lastdep = i - lastver = "" - lastcmp = "" - if not (i in r and r[i]): - r[lastdep] = [] - - r = collections.OrderedDict(sorted(r.items(), key=lambda x: x[0])) - return r - -def explode_dep_versions(s): - r = explode_dep_versions2(s) - for d in r: - if not r[d]: - r[d] = None - continue - if len(r[d]) > 1: - bb.warn("explode_dep_versions(): Item %s appeared in dependency string '%s' multiple times with different values. explode_dep_versions cannot cope with this." % (d, s)) - r[d] = r[d][0] - return r - -def join_deps(deps, commasep=True): - """ - Take the result from explode_dep_versions and generate a dependency string - """ - result = [] - for dep in deps: - if deps[dep]: - if isinstance(deps[dep], list): - for v in deps[dep]: - result.append(dep + " (" + v + ")") - else: - result.append(dep + " (" + deps[dep] + ")") - else: - result.append(dep) - if commasep: - return ", ".join(result) - else: - return " ".join(result) - -def _print_trace(body, line): - """ - Print the Environment of a Text Body - """ - error = [] - # print the environment of the method - min_line = max(1, line-4) - max_line = min(line + 4, len(body)) - for i in range(min_line, max_line + 1): - if line == i: - error.append(' *** %.4d:%s' % (i, body[i-1].rstrip())) - else: - error.append(' %.4d:%s' % (i, body[i-1].rstrip())) - return error - -def better_compile(text, file, realfile, mode = "exec", lineno = 0): - """ - A better compile method. This method - will print the offending lines. - """ - try: - cache = bb.methodpool.compile_cache(text) - if cache: - return cache - # We can't add to the linenumbers for compile, we can pad to the correct number of blank lines though - text2 = "\n" * int(lineno) + text - code = compile(text2, realfile, mode) - bb.methodpool.compile_cache_add(text, code) - return code - except Exception as e: - error = [] - # split the text into lines again - body = text.split('\n') - error.append("Error in compiling python function in %s, line %s:\n" % (realfile, lineno)) - if hasattr(e, "lineno"): - error.append("The code lines resulting in this error were:") - error.extend(_print_trace(body, e.lineno)) - else: - error.append("The function causing this error was:") - for line in body: - error.append(line) - error.append("%s: %s" % (e.__class__.__name__, str(e))) - - logger.error("\n".join(error)) - - e = bb.BBHandledException(e) - raise e - -def _print_exception(t, value, tb, realfile, text, context): - error = [] - try: - exception = traceback.format_exception_only(t, value) - error.append('Error executing a python function in %s:\n' % realfile) - - # Strip 'us' from the stack (better_exec call) unless that was where the - # error came from - if tb.tb_next is not None: - tb = tb.tb_next - - textarray = text.split('\n') - - linefailed = tb.tb_lineno - - tbextract = traceback.extract_tb(tb) - tbformat = traceback.format_list(tbextract) - error.append("The stack trace of python calls that resulted in this exception/failure was:") - error.append("File: '%s', lineno: %s, function: %s" % (tbextract[0][0], tbextract[0][1], tbextract[0][2])) - error.extend(_print_trace(textarray, linefailed)) - - # See if this is a function we constructed and has calls back into other functions in - # "text". If so, try and improve the context of the error by diving down the trace - level = 0 - nexttb = tb.tb_next - while nexttb is not None and (level+1) < len(tbextract): - error.append("File: '%s', lineno: %s, function: %s" % (tbextract[level+1][0], tbextract[level+1][1], tbextract[level+1][2])) - if tbextract[level][0] == tbextract[level+1][0] and tbextract[level+1][2] == tbextract[level][0]: - # The code was possibly in the string we compiled ourselves - error.extend(_print_trace(textarray, tbextract[level+1][1])) - elif tbextract[level+1][0].startswith("/"): - # The code looks like it might be in a file, try and load it - try: - with open(tbextract[level+1][0], "r") as f: - text = f.readlines() - error.extend(_print_trace(text, tbextract[level+1][1])) - except: - error.append(tbformat[level+1]) - else: - error.append(tbformat[level+1]) - nexttb = tb.tb_next - level = level + 1 - - error.append("Exception: %s" % ''.join(exception)) - - # If the exception is from spwaning a task, let's be helpful and display - # the output (which hopefully includes stderr). - if isinstance(value, subprocess.CalledProcessError) and value.output: - error.append("Subprocess output:") - error.append(value.output.decode("utf-8", errors="ignore")) - finally: - logger.error("\n".join(error)) - -def better_exec(code, context, text = None, realfile = "<code>", pythonexception=False): - """ - Similiar to better_compile, better_exec will - print the lines that are responsible for the - error. - """ - import bb.parse - if not text: - text = code - if not hasattr(code, "co_filename"): - code = better_compile(code, realfile, realfile) - try: - exec(code, get_context(), context) - except (bb.BBHandledException, bb.parse.SkipRecipe, bb.build.FuncFailed, bb.data_smart.ExpansionError): - # Error already shown so passthrough, no need for traceback - raise - except Exception as e: - if pythonexception: - raise - (t, value, tb) = sys.exc_info() - try: - _print_exception(t, value, tb, realfile, text, context) - except Exception as e: - logger.error("Exception handler error: %s" % str(e)) - - e = bb.BBHandledException(e) - raise e - -def simple_exec(code, context): - exec(code, get_context(), context) - -def better_eval(source, locals, extraglobals = None): - ctx = get_context() - if extraglobals: - ctx = copy.copy(ctx) - for g in extraglobals: - ctx[g] = extraglobals[g] - return eval(source, ctx, locals) - -@contextmanager -def fileslocked(files): - """Context manager for locking and unlocking file locks.""" - locks = [] - if files: - for lockfile in files: - locks.append(bb.utils.lockfile(lockfile)) - - yield - - for lock in locks: - bb.utils.unlockfile(lock) - -@contextmanager -def timeout(seconds): - def timeout_handler(signum, frame): - pass - - original_handler = signal.signal(signal.SIGALRM, timeout_handler) - - try: - signal.alarm(seconds) - yield - finally: - signal.alarm(0) - signal.signal(signal.SIGALRM, original_handler) - -def lockfile(name, shared=False, retry=True, block=False): - """ - Use the specified file as a lock file, return when the lock has - been acquired. Returns a variable to pass to unlockfile(). - Parameters: - retry: True to re-try locking if it fails, False otherwise - block: True to block until the lock succeeds, False otherwise - The retry and block parameters are kind of equivalent unless you - consider the possibility of sending a signal to the process to break - out - at which point you want block=True rather than retry=True. - """ - dirname = os.path.dirname(name) - mkdirhier(dirname) - - if not os.access(dirname, os.W_OK): - logger.error("Unable to acquire lock '%s', directory is not writable", - name) - sys.exit(1) - - op = fcntl.LOCK_EX - if shared: - op = fcntl.LOCK_SH - if not retry and not block: - op = op | fcntl.LOCK_NB - - while True: - # If we leave the lockfiles lying around there is no problem - # but we should clean up after ourselves. This gives potential - # for races though. To work around this, when we acquire the lock - # we check the file we locked was still the lock file on disk. - # by comparing inode numbers. If they don't match or the lockfile - # no longer exists, we start again. - - # This implementation is unfair since the last person to request the - # lock is the most likely to win it. - - try: - lf = open(name, 'a+') - fileno = lf.fileno() - fcntl.flock(fileno, op) - statinfo = os.fstat(fileno) - if os.path.exists(lf.name): - statinfo2 = os.stat(lf.name) - if statinfo.st_ino == statinfo2.st_ino: - return lf - lf.close() - except Exception: - try: - lf.close() - except Exception: - pass - pass - if not retry: - return None - -def unlockfile(lf): - """ - Unlock a file locked using lockfile() - """ - try: - # If we had a shared lock, we need to promote to exclusive before - # removing the lockfile. Attempt this, ignore failures. - fcntl.flock(lf.fileno(), fcntl.LOCK_EX|fcntl.LOCK_NB) - os.unlink(lf.name) - except (IOError, OSError): - pass - fcntl.flock(lf.fileno(), fcntl.LOCK_UN) - lf.close() - -def md5_file(filename): - """ - Return the hex string representation of the MD5 checksum of filename. - """ - import hashlib - m = hashlib.md5() - - with open(filename, "rb") as f: - for line in f: - m.update(line) - return m.hexdigest() - -def sha256_file(filename): - """ - Return the hex string representation of the 256-bit SHA checksum of - filename. - """ - import hashlib - - s = hashlib.sha256() - with open(filename, "rb") as f: - for line in f: - s.update(line) - return s.hexdigest() - -def sha1_file(filename): - """ - Return the hex string representation of the SHA1 checksum of the filename - """ - import hashlib - - s = hashlib.sha1() - with open(filename, "rb") as f: - for line in f: - s.update(line) - return s.hexdigest() - -def preserved_envvars_exported(): - """Variables which are taken from the environment and placed in and exported - from the metadata""" - return [ - 'BB_TASKHASH', - 'HOME', - 'LOGNAME', - 'PATH', - 'PWD', - 'SHELL', - 'TERM', - 'USER', - 'LC_ALL', - 'BBSERVER', - ] - -def preserved_envvars(): - """Variables which are taken from the environment and placed in the metadata""" - v = [ - 'BBPATH', - 'BB_PRESERVE_ENV', - 'BB_ENV_WHITELIST', - 'BB_ENV_EXTRAWHITE', - ] - return v + preserved_envvars_exported() - -def filter_environment(good_vars): - """ - Create a pristine environment for bitbake. This will remove variables that - are not known and may influence the build in a negative way. - """ - - removed_vars = {} - for key in list(os.environ): - if key in good_vars: - continue - - removed_vars[key] = os.environ[key] - del os.environ[key] - - # If we spawn a python process, we need to have a UTF-8 locale, else python's file - # access methods will use ascii. You can't change that mode once the interpreter is - # started so we have to ensure a locale is set. Ideally we'd use C.UTF-8 but not all - # distros support that and we need to set something. - os.environ["LC_ALL"] = "en_US.UTF-8" - - if removed_vars: - logger.debug(1, "Removed the following variables from the environment: %s", ", ".join(removed_vars.keys())) - - return removed_vars - -def approved_variables(): - """ - Determine and return the list of whitelisted variables which are approved - to remain in the environment. - """ - if 'BB_PRESERVE_ENV' in os.environ: - return os.environ.keys() - approved = [] - if 'BB_ENV_WHITELIST' in os.environ: - approved = os.environ['BB_ENV_WHITELIST'].split() - approved.extend(['BB_ENV_WHITELIST']) - else: - approved = preserved_envvars() - if 'BB_ENV_EXTRAWHITE' in os.environ: - approved.extend(os.environ['BB_ENV_EXTRAWHITE'].split()) - if 'BB_ENV_EXTRAWHITE' not in approved: - approved.extend(['BB_ENV_EXTRAWHITE']) - return approved - -def clean_environment(): - """ - Clean up any spurious environment variables. This will remove any - variables the user hasn't chosen to preserve. - """ - if 'BB_PRESERVE_ENV' not in os.environ: - good_vars = approved_variables() - return filter_environment(good_vars) - - return {} - -def empty_environment(): - """ - Remove all variables from the environment. - """ - for s in list(os.environ.keys()): - os.unsetenv(s) - del os.environ[s] - -def build_environment(d): - """ - Build an environment from all exported variables. - """ - import bb.data - for var in bb.data.keys(d): - export = d.getVarFlag(var, "export", False) - if export: - os.environ[var] = d.getVar(var) or "" - -def _check_unsafe_delete_path(path): - """ - Basic safeguard against recursively deleting something we shouldn't. If it returns True, - the caller should raise an exception with an appropriate message. - NOTE: This is NOT meant to be a security mechanism - just a guard against silly mistakes - with potentially disastrous results. - """ - extra = '' - # HOME might not be /home/something, so in case we can get it, check against it - homedir = os.environ.get('HOME', '') - if homedir: - extra = '|%s' % homedir - if re.match('(/|//|/home|/home/[^/]*%s)$' % extra, os.path.abspath(path)): - return True - return False - -def remove(path, recurse=False): - """Equivalent to rm -f or rm -rf""" - if not path: - return - if recurse: - for name in glob.glob(path): - if _check_unsafe_delete_path(path): - raise Exception('bb.utils.remove: called with dangerous path "%s" and recurse=True, refusing to delete!' % path) - # shutil.rmtree(name) would be ideal but its too slow - subprocess.check_call(['rm', '-rf'] + glob.glob(path)) - return - for name in glob.glob(path): - try: - os.unlink(name) - except OSError as exc: - if exc.errno != errno.ENOENT: - raise - -def prunedir(topdir): - # Delete everything reachable from the directory named in 'topdir'. - # CAUTION: This is dangerous! - if _check_unsafe_delete_path(topdir): - raise Exception('bb.utils.prunedir: called with dangerous path "%s", refusing to delete!' % topdir) - for root, dirs, files in os.walk(topdir, topdown = False): - for name in files: - os.remove(os.path.join(root, name)) - for name in dirs: - if os.path.islink(os.path.join(root, name)): - os.remove(os.path.join(root, name)) - else: - os.rmdir(os.path.join(root, name)) - os.rmdir(topdir) - -# -# Could also use return re.compile("(%s)" % "|".join(map(re.escape, suffixes))).sub(lambda mo: "", var) -# but thats possibly insane and suffixes is probably going to be small -# -def prune_suffix(var, suffixes, d): - # See if var ends with any of the suffixes listed and - # remove it if found - for suffix in suffixes: - if var.endswith(suffix): - return var.replace(suffix, "") - return var - -def mkdirhier(directory): - """Create a directory like 'mkdir -p', but does not complain if - directory already exists like os.makedirs - """ - - try: - os.makedirs(directory) - except OSError as e: - if e.errno != errno.EEXIST: - raise e - -def movefile(src, dest, newmtime = None, sstat = None): - """Moves a file from src to dest, preserving all permissions and - attributes; mtime will be preserved even when moving across - filesystems. Returns true on success and false on failure. Move is - atomic. - """ - - #print "movefile(" + src + "," + dest + "," + str(newmtime) + "," + str(sstat) + ")" - try: - if not sstat: - sstat = os.lstat(src) - except Exception as e: - print("movefile: Stating source file failed...", e) - return None - - destexists = 1 - try: - dstat = os.lstat(dest) - except: - dstat = os.lstat(os.path.dirname(dest)) - destexists = 0 - - if destexists: - if stat.S_ISLNK(dstat[stat.ST_MODE]): - try: - os.unlink(dest) - destexists = 0 - except Exception as e: - pass - - if stat.S_ISLNK(sstat[stat.ST_MODE]): - try: - target = os.readlink(src) - if destexists and not stat.S_ISDIR(dstat[stat.ST_MODE]): - os.unlink(dest) - os.symlink(target, dest) - #os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID]) - os.unlink(src) - return os.lstat(dest) - except Exception as e: - print("movefile: failed to properly create symlink:", dest, "->", target, e) - return None - - renamefailed = 1 - # os.rename needs to know the dest path ending with file name - # so append the file name to a path only if it's a dir specified - srcfname = os.path.basename(src) - destpath = os.path.join(dest, srcfname) if os.path.isdir(dest) \ - else dest - - if sstat[stat.ST_DEV] == dstat[stat.ST_DEV]: - try: - os.rename(src, destpath) - renamefailed = 0 - except Exception as e: - if e[0] != errno.EXDEV: - # Some random error. - print("movefile: Failed to move", src, "to", dest, e) - return None - # Invalid cross-device-link 'bind' mounted or actually Cross-Device - - if renamefailed: - didcopy = 0 - if stat.S_ISREG(sstat[stat.ST_MODE]): - try: # For safety copy then move it over. - shutil.copyfile(src, destpath + "#new") - os.rename(destpath + "#new", destpath) - didcopy = 1 - except Exception as e: - print('movefile: copy', src, '->', dest, 'failed.', e) - return None - else: - #we don't yet handle special, so we need to fall back to /bin/mv - a = getstatusoutput("/bin/mv -f " + "'" + src + "' '" + dest + "'") - if a[0] != 0: - print("movefile: Failed to move special file:" + src + "' to '" + dest + "'", a) - return None # failure - try: - if didcopy: - os.lchown(dest, sstat[stat.ST_UID], sstat[stat.ST_GID]) - os.chmod(dest, stat.S_IMODE(sstat[stat.ST_MODE])) # Sticky is reset on chown - os.unlink(src) - except Exception as e: - print("movefile: Failed to chown/chmod/unlink", dest, e) - return None - - if newmtime: - os.utime(destpath, (newmtime, newmtime)) - else: - os.utime(destpath, (sstat[stat.ST_ATIME], sstat[stat.ST_MTIME])) - newmtime = sstat[stat.ST_MTIME] - return newmtime - -def copyfile(src, dest, newmtime = None, sstat = None): - """ - Copies a file from src to dest, preserving all permissions and - attributes; mtime will be preserved even when moving across - filesystems. Returns true on success and false on failure. - """ - #print "copyfile(" + src + "," + dest + "," + str(newmtime) + "," + str(sstat) + ")" - try: - if not sstat: - sstat = os.lstat(src) - except Exception as e: - logger.warning("copyfile: stat of %s failed (%s)" % (src, e)) - return False - - destexists = 1 - try: - dstat = os.lstat(dest) - except: - dstat = os.lstat(os.path.dirname(dest)) - destexists = 0 - - if destexists: - if stat.S_ISLNK(dstat[stat.ST_MODE]): - try: - os.unlink(dest) - destexists = 0 - except Exception as e: - pass - - if stat.S_ISLNK(sstat[stat.ST_MODE]): - try: - target = os.readlink(src) - if destexists and not stat.S_ISDIR(dstat[stat.ST_MODE]): - os.unlink(dest) - os.symlink(target, dest) - #os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID]) - return os.lstat(dest) - except Exception as e: - logger.warning("copyfile: failed to create symlink %s to %s (%s)" % (dest, target, e)) - return False - - if stat.S_ISREG(sstat[stat.ST_MODE]): - try: - srcchown = False - if not os.access(src, os.R_OK): - # Make sure we can read it - srcchown = True - os.chmod(src, sstat[stat.ST_MODE] | stat.S_IRUSR) - - # For safety copy then move it over. - shutil.copyfile(src, dest + "#new") - os.rename(dest + "#new", dest) - except Exception as e: - logger.warning("copyfile: copy %s to %s failed (%s)" % (src, dest, e)) - return False - finally: - if srcchown: - os.chmod(src, sstat[stat.ST_MODE]) - os.utime(src, (sstat[stat.ST_ATIME], sstat[stat.ST_MTIME])) - - else: - #we don't yet handle special, so we need to fall back to /bin/mv - a = getstatusoutput("/bin/cp -f " + "'" + src + "' '" + dest + "'") - if a[0] != 0: - logger.warning("copyfile: failed to copy special file %s to %s (%s)" % (src, dest, a)) - return False # failure - try: - os.lchown(dest, sstat[stat.ST_UID], sstat[stat.ST_GID]) - os.chmod(dest, stat.S_IMODE(sstat[stat.ST_MODE])) # Sticky is reset on chown - except Exception as e: - logger.warning("copyfile: failed to chown/chmod %s (%s)" % (dest, e)) - return False - - if newmtime: - os.utime(dest, (newmtime, newmtime)) - else: - os.utime(dest, (sstat[stat.ST_ATIME], sstat[stat.ST_MTIME])) - newmtime = sstat[stat.ST_MTIME] - return newmtime - -def which(path, item, direction = 0, history = False, executable=False): - """ - Locate `item` in the list of paths `path` (colon separated string like $PATH). - If `direction` is non-zero then the list is reversed. - If `history` is True then the list of candidates also returned as result,history. - If `executable` is True then the candidate has to be an executable file, - otherwise the candidate simply has to exist. - """ - - if executable: - is_candidate = lambda p: os.path.isfile(p) and os.access(p, os.X_OK) - else: - is_candidate = lambda p: os.path.exists(p) - - hist = [] - paths = (path or "").split(':') - if direction != 0: - paths.reverse() - - for p in paths: - next = os.path.join(p, item) - hist.append(next) - if is_candidate(next): - if not os.path.isabs(next): - next = os.path.abspath(next) - if history: - return next, hist - return next - - if history: - return "", hist - return "" - -def to_boolean(string, default=None): - if not string: - return default - - normalized = string.lower() - if normalized in ("y", "yes", "1", "true"): - return True - elif normalized in ("n", "no", "0", "false"): - return False - else: - raise ValueError("Invalid value for to_boolean: %s" % string) - -def contains(variable, checkvalues, truevalue, falsevalue, d): - """Check if a variable contains all the values specified. - - Arguments: - - variable -- the variable name. This will be fetched and expanded (using - d.getVar(variable)) and then split into a set(). - - checkvalues -- if this is a string it is split on whitespace into a set(), - otherwise coerced directly into a set(). - - truevalue -- the value to return if checkvalues is a subset of variable. - - falsevalue -- the value to return if variable is empty or if checkvalues is - not a subset of variable. - - d -- the data store. - """ - - val = d.getVar(variable) - if not val: - return falsevalue - val = set(val.split()) - if isinstance(checkvalues, str): - checkvalues = set(checkvalues.split()) - else: - checkvalues = set(checkvalues) - if checkvalues.issubset(val): - return truevalue - return falsevalue - -def contains_any(variable, checkvalues, truevalue, falsevalue, d): - val = d.getVar(variable) - if not val: - return falsevalue - val = set(val.split()) - if isinstance(checkvalues, str): - checkvalues = set(checkvalues.split()) - else: - checkvalues = set(checkvalues) - if checkvalues & val: - return truevalue - return falsevalue - -def filter(variable, checkvalues, d): - """Return all words in the variable that are present in the checkvalues. - - Arguments: - - variable -- the variable name. This will be fetched and expanded (using - d.getVar(variable)) and then split into a set(). - - checkvalues -- if this is a string it is split on whitespace into a set(), - otherwise coerced directly into a set(). - - d -- the data store. - """ - - val = d.getVar(variable) - if not val: - return '' - val = set(val.split()) - if isinstance(checkvalues, str): - checkvalues = set(checkvalues.split()) - else: - checkvalues = set(checkvalues) - return ' '.join(sorted(checkvalues & val)) - -def cpu_count(): - return multiprocessing.cpu_count() - -def nonblockingfd(fd): - fcntl.fcntl(fd, fcntl.F_SETFL, fcntl.fcntl(fd, fcntl.F_GETFL) | os.O_NONBLOCK) - -def process_profilelog(fn, pout = None): - # Either call with a list of filenames and set pout or a filename and optionally pout. - if not pout: - pout = fn + '.processed' - pout = open(pout, 'w') - - import pstats - if isinstance(fn, list): - p = pstats.Stats(*fn, stream=pout) - else: - p = pstats.Stats(fn, stream=pout) - p.sort_stats('time') - p.print_stats() - p.print_callers() - p.sort_stats('cumulative') - p.print_stats() - - pout.flush() - pout.close() - -# -# Was present to work around multiprocessing pool bugs in python < 2.7.3 -# -def multiprocessingpool(*args, **kwargs): - - import multiprocessing.pool - #import multiprocessing.util - #multiprocessing.util.log_to_stderr(10) - # Deal with a multiprocessing bug where signals to the processes would be delayed until the work - # completes. Putting in a timeout means the signals (like SIGINT/SIGTERM) get processed. - def wrapper(func): - def wrap(self, timeout=None): - return func(self, timeout=timeout if timeout is not None else 1e100) - return wrap - multiprocessing.pool.IMapIterator.next = wrapper(multiprocessing.pool.IMapIterator.next) - - return multiprocessing.Pool(*args, **kwargs) - -def exec_flat_python_func(func, *args, **kwargs): - """Execute a flat python function (defined with def funcname(args):...)""" - # Prepare a small piece of python code which calls the requested function - # To do this we need to prepare two things - a set of variables we can use to pass - # the values of arguments into the calling function, and the list of arguments for - # the function being called - context = {} - funcargs = [] - # Handle unnamed arguments - aidx = 1 - for arg in args: - argname = 'arg_%s' % aidx - context[argname] = arg - funcargs.append(argname) - aidx += 1 - # Handle keyword arguments - context.update(kwargs) - funcargs.extend(['%s=%s' % (arg, arg) for arg in kwargs.keys()]) - code = 'retval = %s(%s)' % (func, ', '.join(funcargs)) - comp = bb.utils.better_compile(code, '<string>', '<string>') - bb.utils.better_exec(comp, context, code, '<string>') - return context['retval'] - -def edit_metadata(meta_lines, variables, varfunc, match_overrides=False): - """Edit lines from a recipe or config file and modify one or more - specified variable values set in the file using a specified callback - function. Lines are expected to have trailing newlines. - Parameters: - meta_lines: lines from the file; can be a list or an iterable - (e.g. file pointer) - variables: a list of variable names to look for. Functions - may also be specified, but must be specified with '()' at - the end of the name. Note that the function doesn't have - any intrinsic understanding of _append, _prepend, _remove, - or overrides, so these are considered as part of the name. - These values go into a regular expression, so regular - expression syntax is allowed. - varfunc: callback function called for every variable matching - one of the entries in the variables parameter. The function - should take four arguments: - varname: name of variable matched - origvalue: current value in file - op: the operator (e.g. '+=') - newlines: list of lines up to this point. You can use - this to prepend lines before this variable setting - if you wish. - and should return a four-element tuple: - newvalue: new value to substitute in, or None to drop - the variable setting entirely. (If the removal - results in two consecutive blank lines, one of the - blank lines will also be dropped). - newop: the operator to use - if you specify None here, - the original operation will be used. - indent: number of spaces to indent multi-line entries, - or -1 to indent up to the level of the assignment - and opening quote, or a string to use as the indent. - minbreak: True to allow the first element of a - multi-line value to continue on the same line as - the assignment, False to indent before the first - element. - To clarify, if you wish not to change the value, then you - would return like this: return origvalue, None, 0, True - match_overrides: True to match items with _overrides on the end, - False otherwise - Returns a tuple: - updated: - True if changes were made, False otherwise. - newlines: - Lines after processing - """ - - var_res = {} - if match_overrides: - override_re = '(_[a-zA-Z0-9-_$(){}]+)?' - else: - override_re = '' - for var in variables: - if var.endswith('()'): - var_res[var] = re.compile('^(%s%s)[ \\t]*\([ \\t]*\)[ \\t]*{' % (var[:-2].rstrip(), override_re)) - else: - var_res[var] = re.compile('^(%s%s)[ \\t]*[?+:.]*=[+.]*[ \\t]*(["\'])' % (var, override_re)) - - updated = False - varset_start = '' - varlines = [] - newlines = [] - in_var = None - full_value = '' - var_end = '' - - def handle_var_end(): - prerun_newlines = newlines[:] - op = varset_start[len(in_var):].strip() - (newvalue, newop, indent, minbreak) = varfunc(in_var, full_value, op, newlines) - changed = (prerun_newlines != newlines) - - if newvalue is None: - # Drop the value - return True - elif newvalue != full_value or (newop not in [None, op]): - if newop not in [None, op]: - # Callback changed the operator - varset_new = "%s %s" % (in_var, newop) - else: - varset_new = varset_start - - if isinstance(indent, int): - if indent == -1: - indentspc = ' ' * (len(varset_new) + 2) - else: - indentspc = ' ' * indent - else: - indentspc = indent - if in_var.endswith('()'): - # A function definition - if isinstance(newvalue, list): - newlines.append('%s {\n%s%s\n}\n' % (varset_new, indentspc, ('\n%s' % indentspc).join(newvalue))) - else: - if not newvalue.startswith('\n'): - newvalue = '\n' + newvalue - if not newvalue.endswith('\n'): - newvalue = newvalue + '\n' - newlines.append('%s {%s}\n' % (varset_new, newvalue)) - else: - # Normal variable - if isinstance(newvalue, list): - if not newvalue: - # Empty list -> empty string - newlines.append('%s ""\n' % varset_new) - elif minbreak: - # First item on first line - if len(newvalue) == 1: - newlines.append('%s "%s"\n' % (varset_new, newvalue[0])) - else: - newlines.append('%s "%s \\\n' % (varset_new, newvalue[0])) - for item in newvalue[1:]: - newlines.append('%s%s \\\n' % (indentspc, item)) - newlines.append('%s"\n' % indentspc) - else: - # No item on first line - newlines.append('%s " \\\n' % varset_new) - for item in newvalue: - newlines.append('%s%s \\\n' % (indentspc, item)) - newlines.append('%s"\n' % indentspc) - else: - newlines.append('%s "%s"\n' % (varset_new, newvalue)) - return True - else: - # Put the old lines back where they were - newlines.extend(varlines) - # If newlines was touched by the function, we'll need to return True - return changed - - checkspc = False - - for line in meta_lines: - if in_var: - value = line.rstrip() - varlines.append(line) - if in_var.endswith('()'): - full_value += '\n' + value - else: - full_value += value[:-1] - if value.endswith(var_end): - if in_var.endswith('()'): - if full_value.count('{') - full_value.count('}') >= 0: - continue - full_value = full_value[:-1] - if handle_var_end(): - updated = True - checkspc = True - in_var = None - else: - skip = False - for (varname, var_re) in var_res.items(): - res = var_re.match(line) - if res: - isfunc = varname.endswith('()') - if isfunc: - splitvalue = line.split('{', 1) - var_end = '}' - else: - var_end = res.groups()[-1] - splitvalue = line.split(var_end, 1) - varset_start = splitvalue[0].rstrip() - value = splitvalue[1].rstrip() - if not isfunc and value.endswith('\\'): - value = value[:-1] - full_value = value - varlines = [line] - in_var = res.group(1) - if isfunc: - in_var += '()' - if value.endswith(var_end): - full_value = full_value[:-1] - if handle_var_end(): - updated = True - checkspc = True - in_var = None - skip = True - break - if not skip: - if checkspc: - checkspc = False - if newlines and newlines[-1] == '\n' and line == '\n': - # Squash blank line if there are two consecutive blanks after a removal - continue - newlines.append(line) - return (updated, newlines) - - -def edit_metadata_file(meta_file, variables, varfunc): - """Edit a recipe or config file and modify one or more specified - variable values set in the file using a specified callback function. - The file is only written to if the value(s) actually change. - This is basically the file version of edit_metadata(), see that - function's description for parameter/usage information. - Returns True if the file was written to, False otherwise. - """ - with open(meta_file, 'r') as f: - (updated, newlines) = edit_metadata(f, variables, varfunc) - if updated: - with open(meta_file, 'w') as f: - f.writelines(newlines) - return updated - - -def edit_bblayers_conf(bblayers_conf, add, remove): - """Edit bblayers.conf, adding and/or removing layers - Parameters: - bblayers_conf: path to bblayers.conf file to edit - add: layer path (or list of layer paths) to add; None or empty - list to add nothing - remove: layer path (or list of layer paths) to remove; None or - empty list to remove nothing - Returns a tuple: - notadded: list of layers specified to be added but weren't - (because they were already in the list) - notremoved: list of layers that were specified to be removed - but weren't (because they weren't in the list) - """ - - import fnmatch - - def remove_trailing_sep(pth): - if pth and pth[-1] == os.sep: - pth = pth[:-1] - return pth - - approved = bb.utils.approved_variables() - def canonicalise_path(pth): - pth = remove_trailing_sep(pth) - if 'HOME' in approved and '~' in pth: - pth = os.path.expanduser(pth) - return pth - - def layerlist_param(value): - if not value: - return [] - elif isinstance(value, list): - return [remove_trailing_sep(x) for x in value] - else: - return [remove_trailing_sep(value)] - - addlayers = layerlist_param(add) - removelayers = layerlist_param(remove) - - # Need to use a list here because we can't set non-local variables from a callback in python 2.x - bblayercalls = [] - removed = [] - plusequals = False - orig_bblayers = [] - - def handle_bblayers_firstpass(varname, origvalue, op, newlines): - bblayercalls.append(op) - if op == '=': - del orig_bblayers[:] - orig_bblayers.extend([canonicalise_path(x) for x in origvalue.split()]) - return (origvalue, None, 2, False) - - def handle_bblayers(varname, origvalue, op, newlines): - updated = False - bblayers = [remove_trailing_sep(x) for x in origvalue.split()] - if removelayers: - for removelayer in removelayers: - for layer in bblayers: - if fnmatch.fnmatch(canonicalise_path(layer), canonicalise_path(removelayer)): - updated = True - bblayers.remove(layer) - removed.append(removelayer) - break - if addlayers and not plusequals: - for addlayer in addlayers: - if addlayer not in bblayers: - updated = True - bblayers.append(addlayer) - del addlayers[:] - - if updated: - if op == '+=' and not bblayers: - bblayers = None - return (bblayers, None, 2, False) - else: - return (origvalue, None, 2, False) - - with open(bblayers_conf, 'r') as f: - (_, newlines) = edit_metadata(f, ['BBLAYERS'], handle_bblayers_firstpass) - - if not bblayercalls: - raise Exception('Unable to find BBLAYERS in %s' % bblayers_conf) - - # Try to do the "smart" thing depending on how the user has laid out - # their bblayers.conf file - if bblayercalls.count('+=') > 1: - plusequals = True - - removelayers_canon = [canonicalise_path(layer) for layer in removelayers] - notadded = [] - for layer in addlayers: - layer_canon = canonicalise_path(layer) - if layer_canon in orig_bblayers and not layer_canon in removelayers_canon: - notadded.append(layer) - notadded_canon = [canonicalise_path(layer) for layer in notadded] - addlayers[:] = [layer for layer in addlayers if canonicalise_path(layer) not in notadded_canon] - - (updated, newlines) = edit_metadata(newlines, ['BBLAYERS'], handle_bblayers) - if addlayers: - # Still need to add these - for addlayer in addlayers: - newlines.append('BBLAYERS += "%s"\n' % addlayer) - updated = True - - if updated: - with open(bblayers_conf, 'w') as f: - f.writelines(newlines) - - notremoved = list(set(removelayers) - set(removed)) - - return (notadded, notremoved) - - -def get_file_layer(filename, d): - """Determine the collection (as defined by a layer's layer.conf file) containing the specified file""" - collections = (d.getVar('BBFILE_COLLECTIONS') or '').split() - collection_res = {} - for collection in collections: - collection_res[collection] = d.getVar('BBFILE_PATTERN_%s' % collection) or '' - - def path_to_layer(path): - # Use longest path so we handle nested layers - matchlen = 0 - match = None - for collection, regex in collection_res.items(): - if len(regex) > matchlen and re.match(regex, path): - matchlen = len(regex) - match = collection - return match - - result = None - bbfiles = (d.getVar('BBFILES') or '').split() - bbfilesmatch = False - for bbfilesentry in bbfiles: - if fnmatch.fnmatch(filename, bbfilesentry): - bbfilesmatch = True - result = path_to_layer(bbfilesentry) - - if not bbfilesmatch: - # Probably a bbclass - result = path_to_layer(filename) - - return result - - -# Constant taken from http://linux.die.net/include/linux/prctl.h -PR_SET_PDEATHSIG = 1 - -class PrCtlError(Exception): - pass - -def signal_on_parent_exit(signame): - """ - Trigger signame to be sent when the parent process dies - """ - signum = getattr(signal, signame) - # http://linux.die.net/man/2/prctl - result = cdll['libc.so.6'].prctl(PR_SET_PDEATHSIG, signum) - if result != 0: - raise PrCtlError('prctl failed with error code %s' % result) - -# -# Manually call the ioprio syscall. We could depend on other libs like psutil -# however this gets us enough of what we need to bitbake for now without the -# dependency -# -_unamearch = os.uname()[4] -IOPRIO_WHO_PROCESS = 1 -IOPRIO_CLASS_SHIFT = 13 - -def ioprio_set(who, cls, value): - NR_ioprio_set = None - if _unamearch == "x86_64": - NR_ioprio_set = 251 - elif _unamearch[0] == "i" and _unamearch[2:3] == "86": - NR_ioprio_set = 289 - - if NR_ioprio_set: - ioprio = value | (cls << IOPRIO_CLASS_SHIFT) - rc = cdll['libc.so.6'].syscall(NR_ioprio_set, IOPRIO_WHO_PROCESS, who, ioprio) - if rc != 0: - raise ValueError("Unable to set ioprio, syscall returned %s" % rc) - else: - bb.warn("Unable to set IO Prio for arch %s" % _unamearch) - -def set_process_name(name): - from ctypes import cdll, byref, create_string_buffer - # This is nice to have for debugging, not essential - try: - libc = cdll.LoadLibrary('libc.so.6') - buf = create_string_buffer(bytes(name, 'utf-8')) - libc.prctl(15, byref(buf), 0, 0, 0) - except: - pass - -# export common proxies variables from datastore to environment -def export_proxies(d): - import os - - variables = ['http_proxy', 'HTTP_PROXY', 'https_proxy', 'HTTPS_PROXY', - 'ftp_proxy', 'FTP_PROXY', 'no_proxy', 'NO_PROXY', - 'GIT_PROXY_COMMAND'] - exported = False - - for v in variables: - if v in os.environ.keys(): - exported = True - else: - v_proxy = d.getVar(v) - if v_proxy is not None: - os.environ[v] = v_proxy - exported = True - - return exported - - -def load_plugins(logger, plugins, pluginpath): - def load_plugin(name): - logger.debug(1, 'Loading plugin %s' % name) - fp, pathname, description = imp.find_module(name, [pluginpath]) - try: - return imp.load_module(name, fp, pathname, description) - finally: - if fp: - fp.close() - - logger.debug(1, 'Loading plugins from %s...' % pluginpath) - - expanded = (glob.glob(os.path.join(pluginpath, '*' + ext)) - for ext in python_extensions) - files = itertools.chain.from_iterable(expanded) - names = set(os.path.splitext(os.path.basename(fn))[0] for fn in files) - for name in names: - if name != '__init__': - plugin = load_plugin(name) - if hasattr(plugin, 'plugin_init'): - obj = plugin.plugin_init(plugins) - plugins.append(obj or plugin) - else: - plugins.append(plugin) - - -class LogCatcher(logging.Handler): - """Logging handler for collecting logged messages so you can check them later""" - def __init__(self): - self.messages = [] - logging.Handler.__init__(self, logging.WARNING) - def emit(self, record): - self.messages.append(bb.build.logformatter.format(record)) - def contains(self, message): - return (message in self.messages) diff --git a/poky/bitbake/lib/bblayers/__init__.py b/poky/bitbake/lib/bblayers/__init__.py deleted file mode 100644 index 3ad9513..0000000 --- a/poky/bitbake/lib/bblayers/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -from pkgutil import extend_path -__path__ = extend_path(__path__, __name__) diff --git a/poky/bitbake/lib/bblayers/action.py b/poky/bitbake/lib/bblayers/action.py deleted file mode 100644 index aa575d1..0000000 --- a/poky/bitbake/lib/bblayers/action.py +++ /dev/null @@ -1,256 +0,0 @@ -import fnmatch -import logging -import os -import shutil -import sys -import tempfile - -import bb.utils - -from bblayers.common import LayerPlugin - -logger = logging.getLogger('bitbake-layers') - - -def plugin_init(plugins): - return ActionPlugin() - - -class ActionPlugin(LayerPlugin): - def do_add_layer(self, args): - """Add one or more layers to bblayers.conf.""" - layerdirs = [os.path.abspath(ldir) for ldir in args.layerdir] - - for layerdir in layerdirs: - if not os.path.exists(layerdir): - sys.stderr.write("Specified layer directory %s doesn't exist\n" % layerdir) - return 1 - - layer_conf = os.path.join(layerdir, 'conf', 'layer.conf') - if not os.path.exists(layer_conf): - sys.stderr.write("Specified layer directory %s doesn't contain a conf/layer.conf file\n" % layerdir) - return 1 - - bblayers_conf = os.path.join('conf', 'bblayers.conf') - if not os.path.exists(bblayers_conf): - sys.stderr.write("Unable to find bblayers.conf\n") - return 1 - - # Back up bblayers.conf to tempdir before we add layers - tempdir = tempfile.mkdtemp() - backup = tempdir + "/bblayers.conf.bak" - shutil.copy2(bblayers_conf, backup) - - try: - notadded, _ = bb.utils.edit_bblayers_conf(bblayers_conf, layerdirs, None) - if not (args.force or notadded): - try: - self.tinfoil.parseRecipes() - except bb.tinfoil.TinfoilUIException: - # Restore the back up copy of bblayers.conf - shutil.copy2(backup, bblayers_conf) - bb.fatal("Parse failure with the specified layer added") - else: - for item in notadded: - sys.stderr.write("Specified layer %s is already in BBLAYERS\n" % item) - finally: - # Remove the back up copy of bblayers.conf - shutil.rmtree(tempdir) - - def do_remove_layer(self, args): - """Remove one or more layers from bblayers.conf.""" - bblayers_conf = os.path.join('conf', 'bblayers.conf') - if not os.path.exists(bblayers_conf): - sys.stderr.write("Unable to find bblayers.conf\n") - return 1 - - layerdirs = [] - for item in args.layerdir: - if item.startswith('*'): - layerdir = item - elif not '/' in item: - layerdir = '*/%s' % item - else: - layerdir = os.path.abspath(item) - layerdirs.append(layerdir) - (_, notremoved) = bb.utils.edit_bblayers_conf(bblayers_conf, None, layerdirs) - if notremoved: - for item in notremoved: - sys.stderr.write("No layers matching %s found in BBLAYERS\n" % item) - return 1 - - def do_flatten(self, args): - """flatten layer configuration into a separate output directory. - -Takes the specified layers (or all layers in the current layer -configuration if none are specified) and builds a "flattened" directory -containing the contents of all layers, with any overlayed recipes removed -and bbappends appended to the corresponding recipes. Note that some manual -cleanup may still be necessary afterwards, in particular: - -* where non-recipe files (such as patches) are overwritten (the flatten - command will show a warning for these) -* where anything beyond the normal layer setup has been added to - layer.conf (only the lowest priority number layer's layer.conf is used) -* overridden/appended items from bbappends will need to be tidied up -* when the flattened layers do not have the same directory structure (the - flatten command should show a warning when this will cause a problem) - -Warning: if you flatten several layers where another layer is intended to -be used "inbetween" them (in layer priority order) such that recipes / -bbappends in the layers interact, and then attempt to use the new output -layer together with that other layer, you may no longer get the same -build results (as the layer priority order has effectively changed). -""" - if len(args.layer) == 1: - logger.error('If you specify layers to flatten you must specify at least two') - return 1 - - outputdir = args.outputdir - if os.path.exists(outputdir) and os.listdir(outputdir): - logger.error('Directory %s exists and is non-empty, please clear it out first' % outputdir) - return 1 - - layers = self.bblayers - if len(args.layer) > 2: - layernames = args.layer - found_layernames = [] - found_layerdirs = [] - for layerdir in layers: - layername = self.get_layer_name(layerdir) - if layername in layernames: - found_layerdirs.append(layerdir) - found_layernames.append(layername) - - for layername in layernames: - if not layername in found_layernames: - logger.error('Unable to find layer %s in current configuration, please run "%s show-layers" to list configured layers' % (layername, os.path.basename(sys.argv[0]))) - return - layers = found_layerdirs - else: - layernames = [] - - # Ensure a specified path matches our list of layers - def layer_path_match(path): - for layerdir in layers: - if path.startswith(os.path.join(layerdir, '')): - return layerdir - return None - - applied_appends = [] - for layer in layers: - overlayed = [] - for f in self.tinfoil.cooker.collection.overlayed.keys(): - for of in self.tinfoil.cooker.collection.overlayed[f]: - if of.startswith(layer): - overlayed.append(of) - - logger.plain('Copying files from %s...' % layer ) - for root, dirs, files in os.walk(layer): - if '.git' in dirs: - dirs.remove('.git') - if '.hg' in dirs: - dirs.remove('.hg') - - for f1 in files: - f1full = os.sep.join([root, f1]) - if f1full in overlayed: - logger.plain(' Skipping overlayed file %s' % f1full ) - else: - ext = os.path.splitext(f1)[1] - if ext != '.bbappend': - fdest = f1full[len(layer):] - fdest = os.path.normpath(os.sep.join([outputdir,fdest])) - bb.utils.mkdirhier(os.path.dirname(fdest)) - if os.path.exists(fdest): - if f1 == 'layer.conf' and root.endswith('/conf'): - logger.plain(' Skipping layer config file %s' % f1full ) - continue - else: - logger.warning('Overwriting file %s', fdest) - bb.utils.copyfile(f1full, fdest) - if ext == '.bb': - for append in self.tinfoil.cooker.collection.get_file_appends(f1full): - if layer_path_match(append): - logger.plain(' Applying append %s to %s' % (append, fdest)) - self.apply_append(append, fdest) - applied_appends.append(append) - - # Take care of when some layers are excluded and yet we have included bbappends for those recipes - for b in self.tinfoil.cooker.collection.bbappends: - (recipename, appendname) = b - if appendname not in applied_appends: - first_append = None - layer = layer_path_match(appendname) - if layer: - if first_append: - self.apply_append(appendname, first_append) - else: - fdest = appendname[len(layer):] - fdest = os.path.normpath(os.sep.join([outputdir,fdest])) - bb.utils.mkdirhier(os.path.dirname(fdest)) - bb.utils.copyfile(appendname, fdest) - first_append = fdest - - # Get the regex for the first layer in our list (which is where the conf/layer.conf file will - # have come from) - first_regex = None - layerdir = layers[0] - for layername, pattern, regex, _ in self.tinfoil.cooker.bbfile_config_priorities: - if regex.match(os.path.join(layerdir, 'test')): - first_regex = regex - break - - if first_regex: - # Find the BBFILES entries that match (which will have come from this conf/layer.conf file) - bbfiles = str(self.tinfoil.config_data.getVar('BBFILES')).split() - bbfiles_layer = [] - for item in bbfiles: - if first_regex.match(item): - newpath = os.path.join(outputdir, item[len(layerdir)+1:]) - bbfiles_layer.append(newpath) - - if bbfiles_layer: - # Check that all important layer files match BBFILES - for root, dirs, files in os.walk(outputdir): - for f1 in files: - ext = os.path.splitext(f1)[1] - if ext in ['.bb', '.bbappend']: - f1full = os.sep.join([root, f1]) - entry_found = False - for item in bbfiles_layer: - if fnmatch.fnmatch(f1full, item): - entry_found = True - break - if not entry_found: - logger.warning("File %s does not match the flattened layer's BBFILES setting, you may need to edit conf/layer.conf or move the file elsewhere" % f1full) - - def get_file_layer(self, filename): - layerdir = self.get_file_layerdir(filename) - if layerdir: - return self.get_layer_name(layerdir) - else: - return '?' - - def get_file_layerdir(self, filename): - layer = bb.utils.get_file_layer(filename, self.tinfoil.config_data) - return self.bbfile_collections.get(layer, None) - - def apply_append(self, appendname, recipename): - with open(appendname, 'r') as appendfile: - with open(recipename, 'a') as recipefile: - recipefile.write('\n') - recipefile.write('##### bbappended from %s #####\n' % self.get_file_layer(appendname)) - recipefile.writelines(appendfile.readlines()) - - def register_commands(self, sp): - parser_add_layer = self.add_command(sp, 'add-layer', self.do_add_layer, parserecipes=False) - parser_add_layer.add_argument('layerdir', nargs='+', help='Layer directory/directories to add') - - parser_remove_layer = self.add_command(sp, 'remove-layer', self.do_remove_layer, parserecipes=False) - parser_remove_layer.add_argument('layerdir', nargs='+', help='Layer directory/directories to remove (wildcards allowed, enclose in quotes to avoid shell expansion)') - parser_remove_layer.set_defaults(func=self.do_remove_layer) - - parser_flatten = self.add_command(sp, 'flatten', self.do_flatten) - parser_flatten.add_argument('layer', nargs='*', help='Optional layer(s) to flatten (otherwise all are flattened)') - parser_flatten.add_argument('outputdir', help='Output directory') diff --git a/poky/bitbake/lib/bblayers/common.py b/poky/bitbake/lib/bblayers/common.py deleted file mode 100644 index 98515ce..0000000 --- a/poky/bitbake/lib/bblayers/common.py +++ /dev/null @@ -1,33 +0,0 @@ -import argparse -import logging -import os - -logger = logging.getLogger('bitbake-layers') - - -class LayerPlugin(): - def __init__(self): - self.tinfoil = None - self.bblayers = [] - - def tinfoil_init(self, tinfoil): - self.tinfoil = tinfoil - self.bblayers = (self.tinfoil.config_data.getVar('BBLAYERS') or "").split() - layerconfs = self.tinfoil.config_data.varhistory.get_variable_items_files('BBFILE_COLLECTIONS', self.tinfoil.config_data) - self.bbfile_collections = {layer: os.path.dirname(os.path.dirname(path)) for layer, path in layerconfs.items()} - - @staticmethod - def add_command(subparsers, cmdname, function, parserecipes=True, *args, **kwargs): - """Convert docstring for function to help.""" - docsplit = function.__doc__.splitlines() - help = docsplit[0] - if len(docsplit) > 1: - desc = '\n'.join(docsplit[1:]) - else: - desc = help - subparser = subparsers.add_parser(cmdname, *args, help=help, description=desc, formatter_class=argparse.RawTextHelpFormatter, **kwargs) - subparser.set_defaults(func=function, parserecipes=parserecipes) - return subparser - - def get_layer_name(self, layerdir): - return os.path.basename(layerdir.rstrip(os.sep)) diff --git a/poky/bitbake/lib/bblayers/layerindex.py b/poky/bitbake/lib/bblayers/layerindex.py deleted file mode 100644 index 9af385d..0000000 --- a/poky/bitbake/lib/bblayers/layerindex.py +++ /dev/null @@ -1,271 +0,0 @@ -import argparse -import http.client -import json -import logging -import os -import subprocess -import urllib.parse - -from bblayers.action import ActionPlugin - -logger = logging.getLogger('bitbake-layers') - - -def plugin_init(plugins): - return LayerIndexPlugin() - - -class LayerIndexPlugin(ActionPlugin): - """Subcommands for interacting with the layer index. - - This class inherits ActionPlugin to get do_add_layer. - """ - - def get_json_data(self, apiurl): - proxy_settings = os.environ.get("http_proxy", None) - conn = None - _parsedurl = urllib.parse.urlparse(apiurl) - path = _parsedurl.path - query = _parsedurl.query - - def parse_url(url): - parsedurl = urllib.parse.urlparse(url) - if parsedurl.netloc[0] == '[': - host, port = parsedurl.netloc[1:].split(']', 1) - if ':' in port: - port = port.rsplit(':', 1)[1] - else: - port = None - else: - if parsedurl.netloc.count(':') == 1: - (host, port) = parsedurl.netloc.split(":") - else: - host = parsedurl.netloc - port = None - return (host, 80 if port is None else int(port)) - - if proxy_settings is None: - host, port = parse_url(apiurl) - conn = http.client.HTTPConnection(host, port) - conn.request("GET", path + "?" + query) - else: - host, port = parse_url(proxy_settings) - conn = http.client.HTTPConnection(host, port) - conn.request("GET", apiurl) - - r = conn.getresponse() - if r.status != 200: - raise Exception("Failed to read " + path + ": %d %s" % (r.status, r.reason)) - return json.loads(r.read().decode()) - - def get_layer_deps(self, layername, layeritems, layerbranches, layerdependencies, branchnum, selfname=False): - def layeritems_info_id(items_name, layeritems): - litems_id = None - for li in layeritems: - if li['name'] == items_name: - litems_id = li['id'] - break - return litems_id - - def layerbranches_info(items_id, layerbranches): - lbranch = {} - for lb in layerbranches: - if lb['layer'] == items_id and lb['branch'] == branchnum: - lbranch['id'] = lb['id'] - lbranch['vcs_subdir'] = lb['vcs_subdir'] - break - return lbranch - - def layerdependencies_info(lb_id, layerdependencies): - ld_deps = [] - for ld in layerdependencies: - if ld['layerbranch'] == lb_id and not ld['dependency'] in ld_deps: - ld_deps.append(ld['dependency']) - if not ld_deps: - logger.error("The dependency of layerDependencies is not found.") - return ld_deps - - def layeritems_info_name_subdir(items_id, layeritems): - litems = {} - for li in layeritems: - if li['id'] == items_id: - litems['vcs_url'] = li['vcs_url'] - litems['name'] = li['name'] - break - return litems - - if selfname: - selfid = layeritems_info_id(layername, layeritems) - lbinfo = layerbranches_info(selfid, layerbranches) - if lbinfo: - selfsubdir = lbinfo['vcs_subdir'] - else: - logger.error("%s is not found in the specified branch" % layername) - return - selfurl = layeritems_info_name_subdir(selfid, layeritems)['vcs_url'] - if selfurl: - return selfurl, selfsubdir - else: - logger.error("Cannot get layer %s git repo and subdir" % layername) - return - ldict = {} - itemsid = layeritems_info_id(layername, layeritems) - if not itemsid: - return layername, None - lbid = layerbranches_info(itemsid, layerbranches) - if lbid: - lbid = layerbranches_info(itemsid, layerbranches)['id'] - else: - logger.error("%s is not found in the specified branch" % layername) - return None, None - for dependency in layerdependencies_info(lbid, layerdependencies): - lname = layeritems_info_name_subdir(dependency, layeritems)['name'] - lurl = layeritems_info_name_subdir(dependency, layeritems)['vcs_url'] - lsubdir = layerbranches_info(dependency, layerbranches)['vcs_subdir'] - ldict[lname] = lurl, lsubdir - return None, ldict - - def get_fetch_layer(self, fetchdir, url, subdir, fetch_layer): - layername = self.get_layer_name(url) - if os.path.splitext(layername)[1] == '.git': - layername = os.path.splitext(layername)[0] - repodir = os.path.join(fetchdir, layername) - layerdir = os.path.join(repodir, subdir) - if not os.path.exists(repodir): - if fetch_layer: - result = subprocess.call('git clone %s %s' % (url, repodir), shell = True) - if result: - logger.error("Failed to download %s" % url) - return None, None - else: - return layername, layerdir - else: - logger.plain("Repository %s needs to be fetched" % url) - return layername, layerdir - elif os.path.exists(layerdir): - return layername, layerdir - else: - logger.error("%s is not in %s" % (url, subdir)) - return None, None - - def do_layerindex_fetch(self, args): - """Fetches a layer from a layer index along with its dependent layers, and adds them to conf/bblayers.conf. -""" - apiurl = self.tinfoil.config_data.getVar('BBLAYERS_LAYERINDEX_URL') - if not apiurl: - logger.error("Cannot get BBLAYERS_LAYERINDEX_URL") - return 1 - else: - if apiurl[-1] != '/': - apiurl += '/' - apiurl += "api/" - apilinks = self.get_json_data(apiurl) - branches = self.get_json_data(apilinks['branches']) - - branchnum = 0 - for branch in branches: - if branch['name'] == args.branch: - branchnum = branch['id'] - break - if branchnum == 0: - validbranches = ', '.join([branch['name'] for branch in branches]) - logger.error('Invalid layer branch name "%s". Valid branches: %s' % (args.branch, validbranches)) - return 1 - - ignore_layers = [] - for collection in self.tinfoil.config_data.getVar('BBFILE_COLLECTIONS').split(): - lname = self.tinfoil.config_data.getVar('BBLAYERS_LAYERINDEX_NAME_%s' % collection) - if lname: - ignore_layers.append(lname) - - if args.ignore: - ignore_layers.extend(args.ignore.split(',')) - - layeritems = self.get_json_data(apilinks['layerItems']) - layerbranches = self.get_json_data(apilinks['layerBranches']) - layerdependencies = self.get_json_data(apilinks['layerDependencies']) - invaluenames = [] - repourls = {} - printlayers = [] - - def query_dependencies(layers, layeritems, layerbranches, layerdependencies, branchnum): - depslayer = [] - for layername in layers: - invaluename, layerdict = self.get_layer_deps(layername, layeritems, layerbranches, layerdependencies, branchnum) - if layerdict: - repourls[layername] = self.get_layer_deps(layername, layeritems, layerbranches, layerdependencies, branchnum, selfname=True) - for layer in layerdict: - if not layer in ignore_layers: - depslayer.append(layer) - printlayers.append((layername, layer, layerdict[layer][0], layerdict[layer][1])) - if not layer in ignore_layers and not layer in repourls: - repourls[layer] = (layerdict[layer][0], layerdict[layer][1]) - if invaluename and not invaluename in invaluenames: - invaluenames.append(invaluename) - return depslayer - - depslayers = query_dependencies(args.layername, layeritems, layerbranches, layerdependencies, branchnum) - while depslayers: - depslayer = query_dependencies(depslayers, layeritems, layerbranches, layerdependencies, branchnum) - depslayers = depslayer - if invaluenames: - for invaluename in invaluenames: - logger.error('Layer "%s" not found in layer index' % invaluename) - return 1 - logger.plain("%s %s %s %s" % ("Layer".ljust(19), "Required by".ljust(19), "Git repository".ljust(54), "Subdirectory")) - logger.plain('=' * 115) - for layername in args.layername: - layerurl = repourls[layername] - logger.plain("%s %s %s %s" % (layername.ljust(20), '-'.ljust(20), layerurl[0].ljust(55), layerurl[1])) - printedlayers = [] - for layer, dependency, gitrepo, subdirectory in printlayers: - if dependency in printedlayers: - continue - logger.plain("%s %s %s %s" % (dependency.ljust(20), layer.ljust(20), gitrepo.ljust(55), subdirectory)) - printedlayers.append(dependency) - - if repourls: - fetchdir = self.tinfoil.config_data.getVar('BBLAYERS_FETCH_DIR') - if not fetchdir: - logger.error("Cannot get BBLAYERS_FETCH_DIR") - return 1 - if not os.path.exists(fetchdir): - os.makedirs(fetchdir) - addlayers = [] - for repourl, subdir in repourls.values(): - name, layerdir = self.get_fetch_layer(fetchdir, repourl, subdir, not args.show_only) - if not name: - # Error already shown - return 1 - addlayers.append((subdir, name, layerdir)) - if not args.show_only: - for subdir, name, layerdir in set(addlayers): - if os.path.exists(layerdir): - if subdir: - logger.plain("Adding layer \"%s\" to conf/bblayers.conf" % subdir) - else: - logger.plain("Adding layer \"%s\" to conf/bblayers.conf" % name) - localargs = argparse.Namespace() - localargs.layerdir = layerdir - localargs.force = args.force - self.do_add_layer(localargs) - else: - break - - def do_layerindex_show_depends(self, args): - """Find layer dependencies from layer index. -""" - args.show_only = True - args.ignore = [] - self.do_layerindex_fetch(args) - - def register_commands(self, sp): - parser_layerindex_fetch = self.add_command(sp, 'layerindex-fetch', self.do_layerindex_fetch) - parser_layerindex_fetch.add_argument('-n', '--show-only', help='show dependencies and do nothing else', action='store_true') - parser_layerindex_fetch.add_argument('-b', '--branch', help='branch name to fetch (default %(default)s)', default='master') - parser_layerindex_fetch.add_argument('-i', '--ignore', help='assume the specified layers do not need to be fetched/added (separate multiple layers with commas, no spaces)', metavar='LAYER') - parser_layerindex_fetch.add_argument('layername', nargs='+', help='layer to fetch') - - parser_layerindex_show_depends = self.add_command(sp, 'layerindex-show-depends', self.do_layerindex_show_depends) - parser_layerindex_show_depends.add_argument('-b', '--branch', help='branch name to fetch (default %(default)s)', default='master') - parser_layerindex_show_depends.add_argument('layername', nargs='+', help='layer to query') diff --git a/poky/bitbake/lib/bblayers/query.py b/poky/bitbake/lib/bblayers/query.py deleted file mode 100644 index 9294dfa..0000000 --- a/poky/bitbake/lib/bblayers/query.py +++ /dev/null @@ -1,501 +0,0 @@ -import collections -import fnmatch -import logging -import sys -import os -import re - -import bb.utils - -from bblayers.common import LayerPlugin - -logger = logging.getLogger('bitbake-layers') - - -def plugin_init(plugins): - return QueryPlugin() - - -class QueryPlugin(LayerPlugin): - def do_show_layers(self, args): - """show current configured layers.""" - logger.plain("%s %s %s" % ("layer".ljust(20), "path".ljust(40), "priority")) - logger.plain('=' * 74) - for layer, _, regex, pri in self.tinfoil.cooker.bbfile_config_priorities: - layerdir = self.bbfile_collections.get(layer, None) - layername = self.get_layer_name(layerdir) - logger.plain("%s %s %d" % (layername.ljust(20), layerdir.ljust(40), pri)) - - def version_str(self, pe, pv, pr = None): - verstr = "%s" % pv - if pr: - verstr = "%s-%s" % (verstr, pr) - if pe: - verstr = "%s:%s" % (pe, verstr) - return verstr - - def do_show_overlayed(self, args): - """list overlayed recipes (where the same recipe exists in another layer) - -Lists the names of overlayed recipes and the available versions in each -layer, with the preferred version first. Note that skipped recipes that -are overlayed will also be listed, with a " (skipped)" suffix. -""" - - items_listed = self.list_recipes('Overlayed recipes', None, True, args.same_version, args.filenames, True, None) - - # Check for overlayed .bbclass files - classes = collections.defaultdict(list) - for layerdir in self.bblayers: - classdir = os.path.join(layerdir, 'classes') - if os.path.exists(classdir): - for classfile in os.listdir(classdir): - if os.path.splitext(classfile)[1] == '.bbclass': - classes[classfile].append(classdir) - - # Locating classes and other files is a bit more complicated than recipes - - # layer priority is not a factor; instead BitBake uses the first matching - # file in BBPATH, which is manipulated directly by each layer's - # conf/layer.conf in turn, thus the order of layers in bblayers.conf is a - # factor - however, each layer.conf is free to either prepend or append to - # BBPATH (or indeed do crazy stuff with it). Thus the order in BBPATH might - # not be exactly the order present in bblayers.conf either. - bbpath = str(self.tinfoil.config_data.getVar('BBPATH')) - overlayed_class_found = False - for (classfile, classdirs) in classes.items(): - if len(classdirs) > 1: - if not overlayed_class_found: - logger.plain('=== Overlayed classes ===') - overlayed_class_found = True - - mainfile = bb.utils.which(bbpath, os.path.join('classes', classfile)) - if args.filenames: - logger.plain('%s' % mainfile) - else: - # We effectively have to guess the layer here - logger.plain('%s:' % classfile) - mainlayername = '?' - for layerdir in self.bblayers: - classdir = os.path.join(layerdir, 'classes') - if mainfile.startswith(classdir): - mainlayername = self.get_layer_name(layerdir) - logger.plain(' %s' % mainlayername) - for classdir in classdirs: - fullpath = os.path.join(classdir, classfile) - if fullpath != mainfile: - if args.filenames: - print(' %s' % fullpath) - else: - print(' %s' % self.get_layer_name(os.path.dirname(classdir))) - - if overlayed_class_found: - items_listed = True; - - if not items_listed: - logger.plain('No overlayed files found.') - - def do_show_recipes(self, args): - """list available recipes, showing the layer they are provided by - -Lists the names of recipes and the available versions in each -layer, with the preferred version first. Optionally you may specify -pnspec to match a specified recipe name (supports wildcards). Note that -skipped recipes will also be listed, with a " (skipped)" suffix. -""" - - inheritlist = args.inherits.split(',') if args.inherits else [] - if inheritlist or args.pnspec or args.multiple: - title = 'Matching recipes:' - else: - title = 'Available recipes:' - self.list_recipes(title, args.pnspec, False, False, args.filenames, args.multiple, inheritlist) - - def list_recipes(self, title, pnspec, show_overlayed_only, show_same_ver_only, show_filenames, show_multi_provider_only, inherits): - if inherits: - bbpath = str(self.tinfoil.config_data.getVar('BBPATH')) - for classname in inherits: - classfile = 'classes/%s.bbclass' % classname - if not bb.utils.which(bbpath, classfile, history=False): - logger.error('No class named %s found in BBPATH', classfile) - sys.exit(1) - - pkg_pn = self.tinfoil.cooker.recipecaches[''].pkg_pn - (latest_versions, preferred_versions) = self.tinfoil.find_providers() - allproviders = self.tinfoil.get_all_providers() - - # Ensure we list skipped recipes - # We are largely guessing about PN, PV and the preferred version here, - # but we have no choice since skipped recipes are not fully parsed - skiplist = list(self.tinfoil.cooker.skiplist.keys()) - for fn in skiplist: - recipe_parts = os.path.splitext(os.path.basename(fn))[0].split('_') - p = recipe_parts[0] - if len(recipe_parts) > 1: - ver = (None, recipe_parts[1], None) - else: - ver = (None, 'unknown', None) - allproviders[p].append((ver, fn)) - if not p in pkg_pn: - pkg_pn[p] = 'dummy' - preferred_versions[p] = (ver, fn) - - def print_item(f, pn, ver, layer, ispref): - if f in skiplist: - skipped = ' (skipped)' - else: - skipped = '' - if show_filenames: - if ispref: - logger.plain("%s%s", f, skipped) - else: - logger.plain(" %s%s", f, skipped) - else: - if ispref: - logger.plain("%s:", pn) - logger.plain(" %s %s%s", layer.ljust(20), ver, skipped) - - global_inherit = (self.tinfoil.config_data.getVar('INHERIT') or "").split() - cls_re = re.compile('classes/') - - preffiles = [] - items_listed = False - for p in sorted(pkg_pn): - if pnspec: - found=False - for pnm in pnspec: - if fnmatch.fnmatch(p, pnm): - found=True - break - if not found: - continue - - if len(allproviders[p]) > 1 or not show_multi_provider_only: - pref = preferred_versions[p] - realfn = bb.cache.virtualfn2realfn(pref[1]) - preffile = realfn[0] - - # We only display once per recipe, we should prefer non extended versions of the - # recipe if present (so e.g. in OpenEmbedded, openssl rather than nativesdk-openssl - # which would otherwise sort first). - if realfn[1] and realfn[0] in self.tinfoil.cooker.recipecaches[''].pkg_fn: - continue - - if inherits: - matchcount = 0 - recipe_inherits = self.tinfoil.cooker_data.inherits.get(preffile, []) - for cls in recipe_inherits: - if cls_re.match(cls): - continue - classname = os.path.splitext(os.path.basename(cls))[0] - if classname in global_inherit: - continue - elif classname in inherits: - matchcount += 1 - if matchcount != len(inherits): - # No match - skip this recipe - continue - - if preffile not in preffiles: - preflayer = self.get_file_layer(preffile) - multilayer = False - same_ver = True - provs = [] - for prov in allproviders[p]: - provfile = bb.cache.virtualfn2realfn(prov[1])[0] - provlayer = self.get_file_layer(provfile) - provs.append((provfile, provlayer, prov[0])) - if provlayer != preflayer: - multilayer = True - if prov[0] != pref[0]: - same_ver = False - - if (multilayer or not show_overlayed_only) and (same_ver or not show_same_ver_only): - if not items_listed: - logger.plain('=== %s ===' % title) - items_listed = True - print_item(preffile, p, self.version_str(pref[0][0], pref[0][1]), preflayer, True) - for (provfile, provlayer, provver) in provs: - if provfile != preffile: - print_item(provfile, p, self.version_str(provver[0], provver[1]), provlayer, False) - # Ensure we don't show two entries for BBCLASSEXTENDed recipes - preffiles.append(preffile) - - return items_listed - - def get_file_layer(self, filename): - layerdir = self.get_file_layerdir(filename) - if layerdir: - return self.get_layer_name(layerdir) - else: - return '?' - - def get_file_layerdir(self, filename): - layer = bb.utils.get_file_layer(filename, self.tinfoil.config_data) - return self.bbfile_collections.get(layer, None) - - def remove_layer_prefix(self, f): - """Remove the layer_dir prefix, e.g., f = /path/to/layer_dir/foo/blah, the - return value will be: layer_dir/foo/blah""" - f_layerdir = self.get_file_layerdir(f) - if not f_layerdir: - return f - prefix = os.path.join(os.path.dirname(f_layerdir), '') - return f[len(prefix):] if f.startswith(prefix) else f - - def do_show_appends(self, args): - """list bbappend files and recipe files they apply to - -Lists recipes with the bbappends that apply to them as subitems. -""" - if args.pnspec: - logger.plain('=== Matched appended recipes ===') - else: - logger.plain('=== Appended recipes ===') - - pnlist = list(self.tinfoil.cooker_data.pkg_pn.keys()) - pnlist.sort() - appends = False - for pn in pnlist: - if args.pnspec: - found=False - for pnm in args.pnspec: - if fnmatch.fnmatch(pn, pnm): - found=True - break - if not found: - continue - - if self.show_appends_for_pn(pn): - appends = True - - if not args.pnspec and self.show_appends_for_skipped(): - appends = True - - if not appends: - logger.plain('No append files found') - - def show_appends_for_pn(self, pn): - filenames = self.tinfoil.cooker_data.pkg_pn[pn] - - best = self.tinfoil.find_best_provider(pn) - best_filename = os.path.basename(best[3]) - - return self.show_appends_output(filenames, best_filename) - - def show_appends_for_skipped(self): - filenames = [os.path.basename(f) - for f in self.tinfoil.cooker.skiplist.keys()] - return self.show_appends_output(filenames, None, " (skipped)") - - def show_appends_output(self, filenames, best_filename, name_suffix = ''): - appended, missing = self.get_appends_for_files(filenames) - if appended: - for basename, appends in appended: - logger.plain('%s%s:', basename, name_suffix) - for append in appends: - logger.plain(' %s', append) - - if best_filename: - if best_filename in missing: - logger.warning('%s: missing append for preferred version', - best_filename) - return True - else: - return False - - def get_appends_for_files(self, filenames): - appended, notappended = [], [] - for filename in filenames: - _, cls, _ = bb.cache.virtualfn2realfn(filename) - if cls: - continue - - basename = os.path.basename(filename) - appends = self.tinfoil.cooker.collection.get_file_appends(basename) - if appends: - appended.append((basename, list(appends))) - else: - notappended.append(basename) - return appended, notappended - - def do_show_cross_depends(self, args): - """Show dependencies between recipes that cross layer boundaries. - -Figure out the dependencies between recipes that cross layer boundaries. - -NOTE: .bbappend files can impact the dependencies. -""" - ignore_layers = (args.ignore or '').split(',') - - pkg_fn = self.tinfoil.cooker_data.pkg_fn - bbpath = str(self.tinfoil.config_data.getVar('BBPATH')) - self.require_re = re.compile(r"require\s+(.+)") - self.include_re = re.compile(r"include\s+(.+)") - self.inherit_re = re.compile(r"inherit\s+(.+)") - - global_inherit = (self.tinfoil.config_data.getVar('INHERIT') or "").split() - - # The bb's DEPENDS and RDEPENDS - for f in pkg_fn: - f = bb.cache.virtualfn2realfn(f)[0] - # Get the layername that the file is in - layername = self.get_file_layer(f) - - # The DEPENDS - deps = self.tinfoil.cooker_data.deps[f] - for pn in deps: - if pn in self.tinfoil.cooker_data.pkg_pn: - best = self.tinfoil.find_best_provider(pn) - self.check_cross_depends("DEPENDS", layername, f, best[3], args.filenames, ignore_layers) - - # The RDPENDS - all_rdeps = self.tinfoil.cooker_data.rundeps[f].values() - # Remove the duplicated or null one. - sorted_rdeps = {} - # The all_rdeps is the list in list, so we need two for loops - for k1 in all_rdeps: - for k2 in k1: - sorted_rdeps[k2] = 1 - all_rdeps = sorted_rdeps.keys() - for rdep in all_rdeps: - all_p, best = self.tinfoil.get_runtime_providers(rdep) - if all_p: - if f in all_p: - # The recipe provides this one itself, ignore - continue - self.check_cross_depends("RDEPENDS", layername, f, best, args.filenames, ignore_layers) - - # The RRECOMMENDS - all_rrecs = self.tinfoil.cooker_data.runrecs[f].values() - # Remove the duplicated or null one. - sorted_rrecs = {} - # The all_rrecs is the list in list, so we need two for loops - for k1 in all_rrecs: - for k2 in k1: - sorted_rrecs[k2] = 1 - all_rrecs = sorted_rrecs.keys() - for rrec in all_rrecs: - all_p, best = self.tinfoil.get_runtime_providers(rrec) - if all_p: - if f in all_p: - # The recipe provides this one itself, ignore - continue - self.check_cross_depends("RRECOMMENDS", layername, f, best, args.filenames, ignore_layers) - - # The inherit class - cls_re = re.compile('classes/') - if f in self.tinfoil.cooker_data.inherits: - inherits = self.tinfoil.cooker_data.inherits[f] - for cls in inherits: - # The inherits' format is [classes/cls, /path/to/classes/cls] - # ignore the classes/cls. - if not cls_re.match(cls): - classname = os.path.splitext(os.path.basename(cls))[0] - if classname in global_inherit: - continue - inherit_layername = self.get_file_layer(cls) - if inherit_layername != layername and not inherit_layername in ignore_layers: - if not args.filenames: - f_short = self.remove_layer_prefix(f) - cls = self.remove_layer_prefix(cls) - else: - f_short = f - logger.plain("%s inherits %s" % (f_short, cls)) - - # The 'require/include xxx' in the bb file - pv_re = re.compile(r"\${PV}") - with open(f, 'r') as fnfile: - line = fnfile.readline() - while line: - m, keyword = self.match_require_include(line) - # Found the 'require/include xxxx' - if m: - needed_file = m.group(1) - # Replace the ${PV} with the real PV - if pv_re.search(needed_file) and f in self.tinfoil.cooker_data.pkg_pepvpr: - pv = self.tinfoil.cooker_data.pkg_pepvpr[f][1] - needed_file = re.sub(r"\${PV}", pv, needed_file) - self.print_cross_files(bbpath, keyword, layername, f, needed_file, args.filenames, ignore_layers) - line = fnfile.readline() - - # The "require/include xxx" in conf/machine/*.conf, .inc and .bbclass - conf_re = re.compile(".*/conf/machine/[^\/]*\.conf$") - inc_re = re.compile(".*\.inc$") - # The "inherit xxx" in .bbclass - bbclass_re = re.compile(".*\.bbclass$") - for layerdir in self.bblayers: - layername = self.get_layer_name(layerdir) - for dirpath, dirnames, filenames in os.walk(layerdir): - for name in filenames: - f = os.path.join(dirpath, name) - s = conf_re.match(f) or inc_re.match(f) or bbclass_re.match(f) - if s: - with open(f, 'r') as ffile: - line = ffile.readline() - while line: - m, keyword = self.match_require_include(line) - # Only bbclass has the "inherit xxx" here. - bbclass="" - if not m and f.endswith(".bbclass"): - m, keyword = self.match_inherit(line) - bbclass=".bbclass" - # Find a 'require/include xxxx' - if m: - self.print_cross_files(bbpath, keyword, layername, f, m.group(1) + bbclass, args.filenames, ignore_layers) - line = ffile.readline() - - def print_cross_files(self, bbpath, keyword, layername, f, needed_filename, show_filenames, ignore_layers): - """Print the depends that crosses a layer boundary""" - needed_file = bb.utils.which(bbpath, needed_filename) - if needed_file: - # Which layer is this file from - needed_layername = self.get_file_layer(needed_file) - if needed_layername != layername and not needed_layername in ignore_layers: - if not show_filenames: - f = self.remove_layer_prefix(f) - needed_file = self.remove_layer_prefix(needed_file) - logger.plain("%s %s %s" %(f, keyword, needed_file)) - - def match_inherit(self, line): - """Match the inherit xxx line""" - return (self.inherit_re.match(line), "inherits") - - def match_require_include(self, line): - """Match the require/include xxx line""" - m = self.require_re.match(line) - keyword = "requires" - if not m: - m = self.include_re.match(line) - keyword = "includes" - return (m, keyword) - - def check_cross_depends(self, keyword, layername, f, needed_file, show_filenames, ignore_layers): - """Print the DEPENDS/RDEPENDS file that crosses a layer boundary""" - best_realfn = bb.cache.virtualfn2realfn(needed_file)[0] - needed_layername = self.get_file_layer(best_realfn) - if needed_layername != layername and not needed_layername in ignore_layers: - if not show_filenames: - f = self.remove_layer_prefix(f) - best_realfn = self.remove_layer_prefix(best_realfn) - - logger.plain("%s %s %s" % (f, keyword, best_realfn)) - - def register_commands(self, sp): - self.add_command(sp, 'show-layers', self.do_show_layers, parserecipes=False) - - parser_show_overlayed = self.add_command(sp, 'show-overlayed', self.do_show_overlayed) - parser_show_overlayed.add_argument('-f', '--filenames', help='instead of the default formatting, list filenames of higher priority recipes with the ones they overlay indented underneath', action='store_true') - parser_show_overlayed.add_argument('-s', '--same-version', help='only list overlayed recipes where the version is the same', action='store_true') - - parser_show_recipes = self.add_command(sp, 'show-recipes', self.do_show_recipes) - parser_show_recipes.add_argument('-f', '--filenames', help='instead of the default formatting, list filenames of higher priority recipes with the ones they overlay indented underneath', action='store_true') - parser_show_recipes.add_argument('-m', '--multiple', help='only list where multiple recipes (in the same layer or different layers) exist for the same recipe name', action='store_true') - parser_show_recipes.add_argument('-i', '--inherits', help='only list recipes that inherit the named class(es) - separate multiple classes using , (without spaces)', metavar='CLASS', default='') - parser_show_recipes.add_argument('pnspec', nargs='*', help='optional recipe name specification (wildcards allowed, enclose in quotes to avoid shell expansion)') - - parser_show_appends = self.add_command(sp, 'show-appends', self.do_show_appends) - parser_show_appends.add_argument('pnspec', nargs='*', help='optional recipe name specification (wildcards allowed, enclose in quotes to avoid shell expansion)') - - parser_show_cross_depends = self.add_command(sp, 'show-cross-depends', self.do_show_cross_depends) - parser_show_cross_depends.add_argument('-f', '--filenames', help='show full file path', action='store_true') - parser_show_cross_depends.add_argument('-i', '--ignore', help='ignore dependencies on items in the specified layer(s) (split multiple layer names with commas, no spaces)', metavar='LAYERNAME') diff --git a/poky/bitbake/lib/bs4/AUTHORS.txt b/poky/bitbake/lib/bs4/AUTHORS.txt deleted file mode 100644 index 2ac8fcc..0000000 --- a/poky/bitbake/lib/bs4/AUTHORS.txt +++ /dev/null @@ -1,43 +0,0 @@ -Behold, mortal, the origins of Beautiful Soup... -================================================ - -Leonard Richardson is the primary programmer. - -Aaron DeVore is awesome. - -Mark Pilgrim provided the encoding detection code that forms the base -of UnicodeDammit. - -Thomas Kluyver and Ezio Melotti finished the work of getting Beautiful -Soup 4 working under Python 3. - -Simon Willison wrote soupselect, which was used to make Beautiful Soup -support CSS selectors. - -Sam Ruby helped with a lot of edge cases. - -Jonathan Ellis was awarded the prestigous Beau Potage D'Or for his -work in solving the nestable tags conundrum. - -An incomplete list of people have contributed patches to Beautiful -Soup: - - Istvan Albert, Andrew Lin, Anthony Baxter, Andrew Boyko, Tony Chang, - Zephyr Fang, Fuzzy, Roman Gaufman, Yoni Gilad, Richie Hindle, Peteris - Krumins, Kent Johnson, Ben Last, Robert Leftwich, Staffan Malmgren, - Ksenia Marasanova, JP Moins, Adam Monsen, John Nagle, "Jon", Ed - Oskiewicz, Greg Phillips, Giles Radford, Arthur Rudolph, Marko - Samastur, Jouni Seppänen, Alexander Schmolck, Andy Theyers, Glyn - Webster, Paul Wright, Danny Yoo - -An incomplete list of people who made suggestions or found bugs or -found ways to break Beautiful Soup: - - Hanno Böck, Matteo Bertini, Chris Curvey, Simon Cusack, Bruce Eckel, - Matt Ernst, Michael Foord, Tom Harris, Bill de hOra, Donald Howes, - Matt Patterson, Scott Roberts, Steve Strassmann, Mike Williams, - warchild at redho dot com, Sami Kuisma, Carlos Rocha, Bob Hutchison, - Joren Mc, Michal Migurski, John Kleven, Tim Heaney, Tripp Lilley, Ed - Summers, Dennis Sutch, Chris Smith, Aaron Sweep^W Swartz, Stuart - Turner, Greg Edwards, Kevin J Kalupson, Nikos Kouremenos, Artur de - Sousa Rocha, Yichun Wei, Per Vognsen diff --git a/poky/bitbake/lib/bs4/COPYING.txt b/poky/bitbake/lib/bs4/COPYING.txt deleted file mode 100644 index d668d13..0000000 --- a/poky/bitbake/lib/bs4/COPYING.txt +++ /dev/null @@ -1,26 +0,0 @@ -Beautiful Soup is made available under the MIT license: - - Copyright (c) 2004-2012 Leonard Richardson - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - "Software"), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS - BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN - ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE, DAMMIT. - -Beautiful Soup incorporates code from the html5lib library, which is -also made available under the MIT license. diff --git a/poky/bitbake/lib/bs4/NEWS.txt b/poky/bitbake/lib/bs4/NEWS.txt deleted file mode 100644 index 88a60a2..0000000 --- a/poky/bitbake/lib/bs4/NEWS.txt +++ /dev/null @@ -1,1066 +0,0 @@ -= 4.3.2 (20131002) = - -* Fixed a bug in which short Unicode input was improperly encoded to - ASCII when checking whether or not it was the name of a file on - disk. [bug=1227016] - -* Fixed a crash when a short input contains data not valid in - filenames. [bug=1232604] - -* Fixed a bug that caused Unicode data put into UnicodeDammit to - return None instead of the original data. [bug=1214983] - -* Combined two tests to stop a spurious test failure when tests are - run by nosetests. [bug=1212445] - -= 4.3.1 (20130815) = - -* Fixed yet another problem with the html5lib tree builder, caused by - html5lib's tendency to rearrange the tree during - parsing. [bug=1189267] - -* Fixed a bug that caused the optimized version of find_all() to - return nothing. [bug=1212655] - -= 4.3.0 (20130812) = - -* Instead of converting incoming data to Unicode and feeding it to the - lxml tree builder in chunks, Beautiful Soup now makes successive - guesses at the encoding of the incoming data, and tells lxml to - parse the data as that encoding. Giving lxml more control over the - parsing process improves performance and avoids a number of bugs and - issues with the lxml parser which had previously required elaborate - workarounds: - - - An issue in which lxml refuses to parse Unicode strings on some - systems. [bug=1180527] - - - A returning bug that truncated documents longer than a (very - small) size. [bug=963880] - - - A returning bug in which extra spaces were added to a document if - the document defined a charset other than UTF-8. [bug=972466] - - This required a major overhaul of the tree builder architecture. If - you wrote your own tree builder and didn't tell me, you'll need to - modify your prepare_markup() method. - -* The UnicodeDammit code that makes guesses at encodings has been - split into its own class, EncodingDetector. A lot of apparently - redundant code has been removed from Unicode, Dammit, and some - undocumented features have also been removed. - -* Beautiful Soup will issue a warning if instead of markup you pass it - a URL or the name of a file on disk (a common beginner's mistake). - -* A number of optimizations improve the performance of the lxml tree - builder by about 33%, the html.parser tree builder by about 20%, and - the html5lib tree builder by about 15%. - -* All find_all calls should now return a ResultSet object. Patch by - Aaron DeVore. [bug=1194034] - -= 4.2.1 (20130531) = - -* The default XML formatter will now replace ampersands even if they - appear to be part of entities. That is, "<" will become - "&lt;". The old code was left over from Beautiful Soup 3, which - didn't always turn entities into Unicode characters. - - If you really want the old behavior (maybe because you add new - strings to the tree, those strings include entities, and you want - the formatter to leave them alone on output), it can be found in - EntitySubstitution.substitute_xml_containing_entities(). [bug=1182183] - -* Gave new_string() the ability to create subclasses of - NavigableString. [bug=1181986] - -* Fixed another bug by which the html5lib tree builder could create a - disconnected tree. [bug=1182089] - -* The .previous_element of a BeautifulSoup object is now always None, - not the last element to be parsed. [bug=1182089] - -* Fixed test failures when lxml is not installed. [bug=1181589] - -* html5lib now supports Python 3. Fixed some Python 2-specific - code in the html5lib test suite. [bug=1181624] - -* The html.parser treebuilder can now handle numeric attributes in - text when the hexidecimal name of the attribute starts with a - capital X. Patch by Tim Shirley. [bug=1186242] - -= 4.2.0 (20130514) = - -* The Tag.select() method now supports a much wider variety of CSS - selectors. - - - Added support for the adjacent sibling combinator (+) and the - general sibling combinator (~). Tests by "liquider". [bug=1082144] - - - The combinators (>, +, and ~) can now combine with any supported - selector, not just one that selects based on tag name. - - - Added limited support for the "nth-of-type" pseudo-class. Code - by Sven Slootweg. [bug=1109952] - -* The BeautifulSoup class is now aliased to "_s" and "_soup", making - it quicker to type the import statement in an interactive session: - - from bs4 import _s - or - from bs4 import _soup - - The alias may change in the future, so don't use this in code you're - going to run more than once. - -* Added the 'diagnose' submodule, which includes several useful - functions for reporting problems and doing tech support. - - - diagnose(data) tries the given markup on every installed parser, - reporting exceptions and displaying successes. If a parser is not - installed, diagnose() mentions this fact. - - - lxml_trace(data, html=True) runs the given markup through lxml's - XML parser or HTML parser, and prints out the parser events as - they happen. This helps you quickly determine whether a given - problem occurs in lxml code or Beautiful Soup code. - - - htmlparser_trace(data) is the same thing, but for Python's - built-in HTMLParser class. - -* In an HTML document, the contents of a <script> or <style> tag will - no longer undergo entity substitution by default. XML documents work - the same way they did before. [bug=1085953] - -* Methods like get_text() and properties like .strings now only give - you strings that are visible in the document--no comments or - processing commands. [bug=1050164] - -* The prettify() method now leaves the contents of <pre> tags - alone. [bug=1095654] - -* Fix a bug in the html5lib treebuilder which sometimes created - disconnected trees. [bug=1039527] - -* Fix a bug in the lxml treebuilder which crashed when a tag included - an attribute from the predefined "xml:" namespace. [bug=1065617] - -* Fix a bug by which keyword arguments to find_parent() were not - being passed on. [bug=1126734] - -* Stop a crash when unwisely messing with a tag that's been - decomposed. [bug=1097699] - -* Now that lxml's segfault on invalid doctype has been fixed, fixed a - corresponding problem on the Beautiful Soup end that was previously - invisible. [bug=984936] - -* Fixed an exception when an overspecified CSS selector didn't match - anything. Code by Stefaan Lippens. [bug=1168167] - -= 4.1.3 (20120820) = - -* Skipped a test under Python 2.6 and Python 3.1 to avoid a spurious - test failure caused by the lousy HTMLParser in those - versions. [bug=1038503] - -* Raise a more specific error (FeatureNotFound) when a requested - parser or parser feature is not installed. Raise NotImplementedError - instead of ValueError when the user calls insert_before() or - insert_after() on the BeautifulSoup object itself. Patch by Aaron - Devore. [bug=1038301] - -= 4.1.2 (20120817) = - -* As per PEP-8, allow searching by CSS class using the 'class_' - keyword argument. [bug=1037624] - -* Display namespace prefixes for namespaced attribute names, instead of - the fully-qualified names given by the lxml parser. [bug=1037597] - -* Fixed a crash on encoding when an attribute name contained - non-ASCII characters. - -* When sniffing encodings, if the cchardet library is installed, - Beautiful Soup uses it instead of chardet. cchardet is much - faster. [bug=1020748] - -* Use logging.warning() instead of warning.warn() to notify the user - that characters were replaced with REPLACEMENT - CHARACTER. [bug=1013862] - -= 4.1.1 (20120703) = - -* Fixed an html5lib tree builder crash which happened when html5lib - moved a tag with a multivalued attribute from one part of the tree - to another. [bug=1019603] - -* Correctly display closing tags with an XML namespace declared. Patch - by Andreas Kostyrka. [bug=1019635] - -* Fixed a typo that made parsing significantly slower than it should - have been, and also waited too long to close tags with XML - namespaces. [bug=1020268] - -* get_text() now returns an empty Unicode string if there is no text, - rather than an empty bytestring. [bug=1020387] - -= 4.1.0 (20120529) = - -* Added experimental support for fixing Windows-1252 characters - embedded in UTF-8 documents. (UnicodeDammit.detwingle()) - -* Fixed the handling of " with the built-in parser. [bug=993871] - -* Comments, processing instructions, document type declarations, and - markup declarations are now treated as preformatted strings, the way - CData blocks are. [bug=1001025] - -* Fixed a bug with the lxml treebuilder that prevented the user from - adding attributes to a tag that didn't originally have - attributes. [bug=1002378] Thanks to Oliver Beattie for the patch. - -* Fixed some edge-case bugs having to do with inserting an element - into a tag it's already inside, and replacing one of a tag's - children with another. [bug=997529] - -* Added the ability to search for attribute values specified in UTF-8. [bug=1003974] - - This caused a major refactoring of the search code. All the tests - pass, but it's possible that some searches will behave differently. - -= 4.0.5 (20120427) = - -* Added a new method, wrap(), which wraps an element in a tag. - -* Renamed replace_with_children() to unwrap(), which is easier to - understand and also the jQuery name of the function. - -* Made encoding substitution in <meta> tags completely transparent (no - more %SOUP-ENCODING%). - -* Fixed a bug in decoding data that contained a byte-order mark, such - as data encoded in UTF-16LE. [bug=988980] - -* Fixed a bug that made the HTMLParser treebuilder generate XML - definitions ending with two question marks instead of - one. [bug=984258] - -* Upon document generation, CData objects are no longer run through - the formatter. [bug=988905] - -* The test suite now passes when lxml is not installed, whether or not - html5lib is installed. [bug=987004] - -* Print a warning on HTMLParseErrors to let people know they should - install a better parser library. - -= 4.0.4 (20120416) = - -* Fixed a bug that sometimes created disconnected trees. - -* Fixed a bug with the string setter that moved a string around the - tree instead of copying it. [bug=983050] - -* Attribute values are now run through the provided output formatter. - Previously they were always run through the 'minimal' formatter. In - the future I may make it possible to specify different formatters - for attribute values and strings, but for now, consistent behavior - is better than inconsistent behavior. [bug=980237] - -* Added the missing renderContents method from Beautiful Soup 3. Also - added an encode_contents() method to go along with decode_contents(). - -* Give a more useful error when the user tries to run the Python 2 - version of BS under Python 3. - -* UnicodeDammit can now convert Microsoft smart quotes to ASCII with - UnicodeDammit(markup, smart_quotes_to="ascii"). - -= 4.0.3 (20120403) = - -* Fixed a typo that caused some versions of Python 3 to convert the - Beautiful Soup codebase incorrectly. - -* Got rid of the 4.0.2 workaround for HTML documents--it was - unnecessary and the workaround was triggering a (possibly different, - but related) bug in lxml. [bug=972466] - -= 4.0.2 (20120326) = - -* Worked around a possible bug in lxml that prevents non-tiny XML - documents from being parsed. [bug=963880, bug=963936] - -* Fixed a bug where specifying `text` while also searching for a tag - only worked if `text` wanted an exact string match. [bug=955942] - -= 4.0.1 (20120314) = - -* This is the first official release of Beautiful Soup 4. There is no - 4.0.0 release, to eliminate any possibility that packaging software - might treat "4.0.0" as being an earlier version than "4.0.0b10". - -* Brought BS up to date with the latest release of soupselect, adding - CSS selector support for direct descendant matches and multiple CSS - class matches. - -= 4.0.0b10 (20120302) = - -* Added support for simple CSS selectors, taken from the soupselect project. - -* Fixed a crash when using html5lib. [bug=943246] - -* In HTML5-style <meta charset="foo"> tags, the value of the "charset" - attribute is now replaced with the appropriate encoding on - output. [bug=942714] - -* Fixed a bug that caused calling a tag to sometimes call find_all() - with the wrong arguments. [bug=944426] - -* For backwards compatibility, brought back the BeautifulStoneSoup - class as a deprecated wrapper around BeautifulSoup. - -= 4.0.0b9 (20120228) = - -* Fixed the string representation of DOCTYPEs that have both a public - ID and a system ID. - -* Fixed the generated XML declaration. - -* Renamed Tag.nsprefix to Tag.prefix, for consistency with - NamespacedAttribute. - -* Fixed a test failure that occured on Python 3.x when chardet was - installed. - -* Made prettify() return Unicode by default, so it will look nice on - Python 3 when passed into print(). - -= 4.0.0b8 (20120224) = - -* All tree builders now preserve namespace information in the - documents they parse. If you use the html5lib parser or lxml's XML - parser, you can access the namespace URL for a tag as tag.namespace. - - However, there is no special support for namespace-oriented - searching or tree manipulation. When you search the tree, you need - to use namespace prefixes exactly as they're used in the original - document. - -* The string representation of a DOCTYPE always ends in a newline. - -* Issue a warning if the user tries to use a SoupStrainer in - conjunction with the html5lib tree builder, which doesn't support - them. - -= 4.0.0b7 (20120223) = - -* Upon decoding to string, any characters that can't be represented in - your chosen encoding will be converted into numeric XML entity - references. - -* Issue a warning if characters were replaced with REPLACEMENT - CHARACTER during Unicode conversion. - -* Restored compatibility with Python 2.6. - -* The install process no longer installs docs or auxillary text files. - -* It's now possible to deepcopy a BeautifulSoup object created with - Python's built-in HTML parser. - -* About 100 unit tests that "test" the behavior of various parsers on - invalid markup have been removed. Legitimate changes to those - parsers caused these tests to fail, indicating that perhaps - Beautiful Soup should not test the behavior of foreign - libraries. - - The problematic unit tests have been reformulated as informational - comparisons generated by the script - scripts/demonstrate_parser_differences.py. - - This makes Beautiful Soup compatible with html5lib version 0.95 and - future versions of HTMLParser. - -= 4.0.0b6 (20120216) = - -* Multi-valued attributes like "class" always have a list of values, - even if there's only one value in the list. - -* Added a number of multi-valued attributes defined in HTML5. - -* Stopped generating a space before the slash that closes an - empty-element tag. This may come back if I add a special XHTML mode - (http://www.w3.org/TR/xhtml1/#C_2), but right now it's pretty - useless. - -* Passing text along with tag-specific arguments to a find* method: - - find("a", text="Click here") - - will find tags that contain the given text as their - .string. Previously, the tag-specific arguments were ignored and - only strings were searched. - -* Fixed a bug that caused the html5lib tree builder to build a - partially disconnected tree. Generally cleaned up the html5lib tree - builder. - -* If you restrict a multi-valued attribute like "class" to a string - that contains spaces, Beautiful Soup will only consider it a match - if the values correspond to that specific string. - -= 4.0.0b5 (20120209) = - -* Rationalized Beautiful Soup's treatment of CSS class. A tag - belonging to multiple CSS classes is treated as having a list of - values for the 'class' attribute. Searching for a CSS class will - match *any* of the CSS classes. - - This actually affects all attributes that the HTML standard defines - as taking multiple values (class, rel, rev, archive, accept-charset, - and headers), but 'class' is by far the most common. [bug=41034] - -* If you pass anything other than a dictionary as the second argument - to one of the find* methods, it'll assume you want to use that - object to search against a tag's CSS classes. Previously this only - worked if you passed in a string. - -* Fixed a bug that caused a crash when you passed a dictionary as an - attribute value (possibly because you mistyped "attrs"). [bug=842419] - -* Unicode, Dammit now detects the encoding in HTML 5-style <meta> tags - like <meta charset="utf-8" />. [bug=837268] - -* If Unicode, Dammit can't figure out a consistent encoding for a - page, it will try each of its guesses again, with errors="replace" - instead of errors="strict". This may mean that some data gets - replaced with REPLACEMENT CHARACTER, but at least most of it will - get turned into Unicode. [bug=754903] - -* Patched over a bug in html5lib (?) that was crashing Beautiful Soup - on certain kinds of markup. [bug=838800] - -* Fixed a bug that wrecked the tree if you replaced an element with an - empty string. [bug=728697] - -* Improved Unicode, Dammit's behavior when you give it Unicode to - begin with. - -= 4.0.0b4 (20120208) = - -* Added BeautifulSoup.new_string() to go along with BeautifulSoup.new_tag() - -* BeautifulSoup.new_tag() will follow the rules of whatever - tree-builder was used to create the original BeautifulSoup object. A - new <p> tag will look like "<p />" if the soup object was created to - parse XML, but it will look like "<p></p>" if the soup object was - created to parse HTML. - -* We pass in strict=False to html.parser on Python 3, greatly - improving html.parser's ability to handle bad HTML. - -* We also monkeypatch a serious bug in html.parser that made - strict=False disastrous on Python 3.2.2. - -* Replaced the "substitute_html_entities" argument with the - more general "formatter" argument. - -* Bare ampersands and angle brackets are always converted to XML - entities unless the user prevents it. - -* Added PageElement.insert_before() and PageElement.insert_after(), - which let you put an element into the parse tree with respect to - some other element. - -* Raise an exception when the user tries to do something nonsensical - like insert a tag into itself. - - -= 4.0.0b3 (20120203) = - -Beautiful Soup 4 is a nearly-complete rewrite that removes Beautiful -Soup's custom HTML parser in favor of a system that lets you write a -little glue code and plug in any HTML or XML parser you want. - -Beautiful Soup 4.0 comes with glue code for four parsers: - - * Python's standard HTMLParser (html.parser in Python 3) - * lxml's HTML and XML parsers - * html5lib's HTML parser - -HTMLParser is the default, but I recommend you install lxml if you -can. - -For complete documentation, see the Sphinx documentation in -bs4/doc/source/. What follows is a summary of the changes from -Beautiful Soup 3. - -=== The module name has changed === - -Previously you imported the BeautifulSoup class from a module also -called BeautifulSoup. To save keystrokes and make it clear which -version of the API is in use, the module is now called 'bs4': - - >>> from bs4 import BeautifulSoup - -=== It works with Python 3 === - -Beautiful Soup 3.1.0 worked with Python 3, but the parser it used was -so bad that it barely worked at all. Beautiful Soup 4 works with -Python 3, and since its parser is pluggable, you don't sacrifice -quality. - -Special thanks to Thomas Kluyver and Ezio Melotti for getting Python 3 -support to the finish line. Ezio Melotti is also to thank for greatly -improving the HTML parser that comes with Python 3.2. - -=== CDATA sections are normal text, if they're understood at all. === - -Currently, the lxml and html5lib HTML parsers ignore CDATA sections in -markup: - - <p><![CDATA[foo]]></p> => <p></p> - -A future version of html5lib will turn CDATA sections into text nodes, -but only within tags like <svg> and <math>: - - <svg><![CDATA[foo]]></svg> => <p>foo</p> - -The default XML parser (which uses lxml behind the scenes) turns CDATA -sections into ordinary text elements: - - <p><![CDATA[foo]]></p> => <p>foo</p> - -In theory it's possible to preserve the CDATA sections when using the -XML parser, but I don't see how to get it to work in practice. - -=== Miscellaneous other stuff === - -If the BeautifulSoup instance has .is_xml set to True, an appropriate -XML declaration will be emitted when the tree is transformed into a -string: - - <?xml version="1.0" encoding="utf-8"> - <markup> - ... - </markup> - -The ['lxml', 'xml'] tree builder sets .is_xml to True; the other tree -builders set it to False. If you want to parse XHTML with an HTML -parser, you can set it manually. - - -= 3.2.0 = - -The 3.1 series wasn't very useful, so I renamed the 3.0 series to 3.2 -to make it obvious which one you should use. - -= 3.1.0 = - -A hybrid version that supports 2.4 and can be automatically converted -to run under Python 3.0. There are three backwards-incompatible -changes you should be aware of, but no new features or deliberate -behavior changes. - -1. str() may no longer do what you want. This is because the meaning -of str() inverts between Python 2 and 3; in Python 2 it gives you a -byte string, in Python 3 it gives you a Unicode string. - -The effect of this is that you can't pass an encoding to .__str__ -anymore. Use encode() to get a string and decode() to get Unicode, and -you'll be ready (well, readier) for Python 3. - -2. Beautiful Soup is now based on HTMLParser rather than SGMLParser, -which is gone in Python 3. There's some bad HTML that SGMLParser -handled but HTMLParser doesn't, usually to do with attribute values -that aren't closed or have brackets inside them: - - <a href="foo</a>, </a><a href="bar">baz</a> - <a b="<a>">', '<a b="<a>"></a><a>"></a> - -A later version of Beautiful Soup will allow you to plug in different -parsers to make tradeoffs between speed and the ability to handle bad -HTML. - -3. In Python 3 (but not Python 2), HTMLParser converts entities within -attributes to the corresponding Unicode characters. In Python 2 it's -possible to parse this string and leave the é intact. - - <a href="http://crummy.com?sacré&bleu"> - -In Python 3, the é is always converted to \xe9 during -parsing. - - -= 3.0.7a = - -Added an import that makes BS work in Python 2.3. - - -= 3.0.7 = - -Fixed a UnicodeDecodeError when unpickling documents that contain -non-ASCII characters. - -Fixed a TypeError that occured in some circumstances when a tag -contained no text. - -Jump through hoops to avoid the use of chardet, which can be extremely -slow in some circumstances. UTF-8 documents should never trigger the -use of chardet. - -Whitespace is preserved inside <pre> and <textarea> tags that contain -nothing but whitespace. - -Beautiful Soup can now parse a doctype that's scoped to an XML namespace. - - -= 3.0.6 = - -Got rid of a very old debug line that prevented chardet from working. - -Added a Tag.decompose() method that completely disconnects a tree or a -subset of a tree, breaking it up into bite-sized pieces that are -easy for the garbage collecter to collect. - -Tag.extract() now returns the tag that was extracted. - -Tag.findNext() now does something with the keyword arguments you pass -it instead of dropping them on the floor. - -Fixed a Unicode conversion bug. - -Fixed a bug that garbled some <meta> tags when rewriting them. - - -= 3.0.5 = - -Soup objects can now be pickled, and copied with copy.deepcopy. - -Tag.append now works properly on existing BS objects. (It wasn't -originally intended for outside use, but it can be now.) (Giles -Radford) - -Passing in a nonexistent encoding will no longer crash the parser on -Python 2.4 (John Nagle). - -Fixed an underlying bug in SGMLParser that thinks ASCII has 255 -characters instead of 127 (John Nagle). - -Entities are converted more consistently to Unicode characters. - -Entity references in attribute values are now converted to Unicode -characters when appropriate. Numeric entities are always converted, -because SGMLParser always converts them outside of attribute values. - -ALL_ENTITIES happens to just be the XHTML entities, so I renamed it to -XHTML_ENTITIES. - -The regular expression for bare ampersands was too loose. In some -cases ampersands were not being escaped. (Sam Ruby?) - -Non-breaking spaces and other special Unicode space characters are no -longer folded to ASCII spaces. (Robert Leftwich) - -Information inside a TEXTAREA tag is now parsed literally, not as HTML -tags. TEXTAREA now works exactly the same way as SCRIPT. (Zephyr Fang) - -= 3.0.4 = - -Fixed a bug that crashed Unicode conversion in some cases. - -Fixed a bug that prevented UnicodeDammit from being used as a -general-purpose data scrubber. - -Fixed some unit test failures when running against Python 2.5. - -When considering whether to convert smart quotes, UnicodeDammit now -looks at the original encoding in a case-insensitive way. - -= 3.0.3 (20060606) = - -Beautiful Soup is now usable as a way to clean up invalid XML/HTML (be -sure to pass in an appropriate value for convertEntities, or XML/HTML -entities might stick around that aren't valid in HTML/XML). The result -may not validate, but it should be good enough to not choke a -real-world XML parser. Specifically, the output of a properly -constructed soup object should always be valid as part of an XML -document, but parts may be missing if they were missing in the -original. As always, if the input is valid XML, the output will also -be valid. - -= 3.0.2 (20060602) = - -Previously, Beautiful Soup correctly handled attribute values that -contained embedded quotes (sometimes by escaping), but not other kinds -of XML character. Now, it correctly handles or escapes all special XML -characters in attribute values. - -I aliased methods to the 2.x names (fetch, find, findText, etc.) for -backwards compatibility purposes. Those names are deprecated and if I -ever do a 4.0 I will remove them. I will, I tell you! - -Fixed a bug where the findAll method wasn't passing along any keyword -arguments. - -When run from the command line, Beautiful Soup now acts as an HTML -pretty-printer, not an XML pretty-printer. - -= 3.0.1 (20060530) = - -Reintroduced the "fetch by CSS class" shortcut. I thought keyword -arguments would replace it, but they don't. You can't call soup('a', -class='foo') because class is a Python keyword. - -If Beautiful Soup encounters a meta tag that declares the encoding, -but a SoupStrainer tells it not to parse that tag, Beautiful Soup will -no longer try to rewrite the meta tag to mention the new -encoding. Basically, this makes SoupStrainers work in real-world -applications instead of crashing the parser. - -= 3.0.0 "Who would not give all else for two p" (20060528) = - -This release is not backward-compatible with previous releases. If -you've got code written with a previous version of the library, go -ahead and keep using it, unless one of the features mentioned here -really makes your life easier. Since the library is self-contained, -you can include an old copy of the library in your old applications, -and use the new version for everything else. - -The documentation has been rewritten and greatly expanded with many -more examples. - -Beautiful Soup autodetects the encoding of a document (or uses the one -you specify), and converts it from its native encoding to -Unicode. Internally, it only deals with Unicode strings. When you -print out the document, it converts to UTF-8 (or another encoding you -specify). [Doc reference] - -It's now easy to make large-scale changes to the parse tree without -screwing up the navigation members. The methods are extract, -replaceWith, and insert. [Doc reference. See also Improving Memory -Usage with extract] - -Passing True in as an attribute value gives you tags that have any -value for that attribute. You don't have to create a regular -expression. Passing None for an attribute value gives you tags that -don't have that attribute at all. - -Tag objects now know whether or not they're self-closing. This avoids -the problem where Beautiful Soup thought that tags like <BR /> were -self-closing even in XML documents. You can customize the self-closing -tags for a parser object by passing them in as a list of -selfClosingTags: you don't have to subclass anymore. - -There's a new built-in parser, MinimalSoup, which has most of -BeautifulSoup's HTML-specific rules, but no tag nesting rules. [Doc -reference] - -You can use a SoupStrainer to tell Beautiful Soup to parse only part -of a document. This saves time and memory, often making Beautiful Soup -about as fast as a custom-built SGMLParser subclass. [Doc reference, -SoupStrainer reference] - -You can (usually) use keyword arguments instead of passing a -dictionary of attributes to a search method. That is, you can replace -soup(args={"id" : "5"}) with soup(id="5"). You can still use args if -(for instance) you need to find an attribute whose name clashes with -the name of an argument to findAll. [Doc reference: **kwargs attrs] - -The method names have changed to the better method names used in -Rubyful Soup. Instead of find methods and fetch methods, there are -only find methods. Instead of a scheme where you can't remember which -method finds one element and which one finds them all, we have find -and findAll. In general, if the method name mentions All or a plural -noun (eg. findNextSiblings), then it finds many elements -method. Otherwise, it only finds one element. [Doc reference] - -Some of the argument names have been renamed for clarity. For instance -avoidParserProblems is now parserMassage. - -Beautiful Soup no longer implements a feed method. You need to pass a -string or a filehandle into the soup constructor, not with feed after -the soup has been created. There is still a feed method, but it's the -feed method implemented by SGMLParser and calling it will bypass -Beautiful Soup and cause problems. - -The NavigableText class has been renamed to NavigableString. There is -no NavigableUnicodeString anymore, because every string inside a -Beautiful Soup parse tree is a Unicode string. - -findText and fetchText are gone. Just pass a text argument into find -or findAll. - -Null was more trouble than it was worth, so I got rid of it. Anything -that used to return Null now returns None. - -Special XML constructs like comments and CDATA now have their own -NavigableString subclasses, instead of being treated as oddly-formed -data. If you parse a document that contains CDATA and write it back -out, the CDATA will still be there. - -When you're parsing a document, you can get Beautiful Soup to convert -XML or HTML entities into the corresponding Unicode characters. [Doc -reference] - -= 2.1.1 (20050918) = - -Fixed a serious performance bug in BeautifulStoneSoup which was -causing parsing to be incredibly slow. - -Corrected several entities that were previously being incorrectly -translated from Microsoft smart-quote-like characters. - -Fixed a bug that was breaking text fetch. - -Fixed a bug that crashed the parser when text chunks that look like -HTML tag names showed up within a SCRIPT tag. - -THEAD, TBODY, and TFOOT tags are now nestable within TABLE -tags. Nested tables should parse more sensibly now. - -BASE is now considered a self-closing tag. - -= 2.1.0 "Game, or any other dish?" (20050504) = - -Added a wide variety of new search methods which, given a starting -point inside the tree, follow a particular navigation member (like -nextSibling) over and over again, looking for Tag and NavigableText -objects that match certain criteria. The new methods are findNext, -fetchNext, findPrevious, fetchPrevious, findNextSibling, -fetchNextSiblings, findPreviousSibling, fetchPreviousSiblings, -findParent, and fetchParents. All of these use the same basic code -used by first and fetch, so you can pass your weird ways of matching -things into these methods. - -The fetch method and its derivatives now accept a limit argument. - -You can now pass keyword arguments when calling a Tag object as though -it were a method. - -Fixed a bug that caused all hand-created tags to share a single set of -attributes. - -= 2.0.3 (20050501) = - -Fixed Python 2.2 support for iterators. - -Fixed a bug that gave the wrong representation to tags within quote -tags like <script>. - -Took some code from Mark Pilgrim that treats CDATA declarations as -data instead of ignoring them. - -Beautiful Soup's setup.py will now do an install even if the unit -tests fail. It won't build a source distribution if the unit tests -fail, so I can't release a new version unless they pass. - -= 2.0.2 (20050416) = - -Added the unit tests in a separate module, and packaged it with -distutils. - -Fixed a bug that sometimes caused renderContents() to return a Unicode -string even if there was no Unicode in the original string. - -Added the done() method, which closes all of the parser's open -tags. It gets called automatically when you pass in some text to the -constructor of a parser class; otherwise you must call it yourself. - -Reinstated some backwards compatibility with 1.x versions: referencing -the string member of a NavigableText object returns the NavigableText -object instead of throwing an error. - -= 2.0.1 (20050412) = - -Fixed a bug that caused bad results when you tried to reference a tag -name shorter than 3 characters as a member of a Tag, eg. tag.table.td. - -Made sure all Tags have the 'hidden' attribute so that an attempt to -access tag.hidden doesn't spawn an attempt to find a tag named -'hidden'. - -Fixed a bug in the comparison operator. - -= 2.0.0 "Who cares for fish?" (20050410) - -Beautiful Soup version 1 was very useful but also pretty stupid. I -originally wrote it without noticing any of the problems inherent in -trying to build a parse tree out of ambiguous HTML tags. This version -solves all of those problems to my satisfaction. It also adds many new -clever things to make up for the removal of the stupid things. - -== Parsing == - -The parser logic has been greatly improved, and the BeautifulSoup -class should much more reliably yield a parse tree that looks like -what the page author intended. For a particular class of odd edge -cases that now causes problems, there is a new class, -ICantBelieveItsBeautifulSoup. - -By default, Beautiful Soup now performs some cleanup operations on -text before parsing it. This is to avoid common problems with bad -definitions and self-closing tags that crash SGMLParser. You can -provide your own set of cleanup operations, or turn it off -altogether. The cleanup operations include fixing self-closing tags -that don't close, and replacing Microsoft smart quotes and similar -characters with their HTML entity equivalents. - -You can now get a pretty-print version of parsed HTML to get a visual -picture of how Beautiful Soup parses it, with the Tag.prettify() -method. - -== Strings and Unicode == - -There are separate NavigableText subclasses for ASCII and Unicode -strings. These classes directly subclass the corresponding base data -types. This means you can treat NavigableText objects as strings -instead of having to call methods on them to get the strings. - -str() on a Tag always returns a string, and unicode() always returns -Unicode. Previously it was inconsistent. - -== Tree traversal == - -In a first() or fetch() call, the tag name or the desired value of an -attribute can now be any of the following: - - * A string (matches that specific tag or that specific attribute value) - * A list of strings (matches any tag or attribute value in the list) - * A compiled regular expression object (matches any tag or attribute - value that matches the regular expression) - * A callable object that takes the Tag object or attribute value as a - string. It returns None/false/empty string if the given string - doesn't match, and any other value if it does. - -This is much easier to use than SQL-style wildcards (see, regular -expressions are good for something). Because of this, I took out -SQL-style wildcards. I'll put them back if someone complains, but -their removal simplifies the code a lot. - -You can use fetch() and first() to search for text in the parse tree, -not just tags. There are new alias methods fetchText() and firstText() -designed for this purpose. As with searching for tags, you can pass in -a string, a regular expression object, or a method to match your text. - -If you pass in something besides a map to the attrs argument of -fetch() or first(), Beautiful Soup will assume you want to match that -thing against the "class" attribute. When you're scraping -well-structured HTML, this makes your code a lot cleaner. - -1.x and 2.x both let you call a Tag object as a shorthand for -fetch(). For instance, foo("bar") is a shorthand for -foo.fetch("bar"). In 2.x, you can also access a specially-named member -of a Tag object as a shorthand for first(). For instance, foo.barTag -is a shorthand for foo.first("bar"). By chaining these shortcuts you -traverse a tree in very little code: for header in -soup.bodyTag.pTag.tableTag('th'): - -If an element relationship (like parent or next) doesn't apply to a -tag, it'll now show up Null instead of None. first() will also return -Null if you ask it for a nonexistent tag. Null is an object that's -just like None, except you can do whatever you want to it and it'll -give you Null instead of throwing an error. - -This lets you do tree traversals like soup.htmlTag.headTag.titleTag -without having to worry if the intermediate stages are actually -there. Previously, if there was no 'head' tag in the document, headTag -in that instance would have been None, and accessing its 'titleTag' -member would have thrown an AttributeError. Now, you can get what you -want when it exists, and get Null when it doesn't, without having to -do a lot of conditionals checking to see if every stage is None. - -There are two new relations between page elements: previousSibling and -nextSibling. They reference the previous and next element at the same -level of the parse tree. For instance, if you have HTML like this: - - <p><ul><li>Foo<br /><li>Bar</ul> - -The first 'li' tag has a previousSibling of Null and its nextSibling -is the second 'li' tag. The second 'li' tag has a nextSibling of Null -and its previousSibling is the first 'li' tag. The previousSibling of -the 'ul' tag is the first 'p' tag. The nextSibling of 'Foo' is the -'br' tag. - -I took out the ability to use fetch() to find tags that have a -specific list of contents. See, I can't even explain it well. It was -really difficult to use, I never used it, and I don't think anyone -else ever used it. To the extent anyone did, they can probably use -fetchText() instead. If it turns out someone needs it I'll think of -another solution. - -== Tree manipulation == - -You can add new attributes to a tag, and delete attributes from a -tag. In 1.x you could only change a tag's existing attributes. - -== Porting Considerations == - -There are three changes in 2.0 that break old code: - -In the post-1.2 release you could pass in a function into fetch(). The -function took a string, the tag name. In 2.0, the function takes the -actual Tag object. - -It's no longer to pass in SQL-style wildcards to fetch(). Use a -regular expression instead. - -The different parsing algorithm means the parse tree may not be shaped -like you expect. This will only actually affect you if your code uses -one of the affected parts. I haven't run into this problem yet while -porting my code. - -= Between 1.2 and 2.0 = - -This is the release to get if you want Python 1.5 compatibility. - -The desired value of an attribute can now be any of the following: - - * A string - * A string with SQL-style wildcards - * A compiled RE object - * A callable that returns None/false/empty string if the given value - doesn't match, and any other value otherwise. - -This is much easier to use than SQL-style wildcards (see, regular -expressions are good for something). Because of this, I no longer -recommend you use SQL-style wildcards. They may go away in a future -release to clean up the code. - -Made Beautiful Soup handle processing instructions as text instead of -ignoring them. - -Applied patch from Richie Hindle (richie at entrian dot com) that -makes tag.string a shorthand for tag.contents[0].string when the tag -has only one string-owning child. - -Added still more nestable tags. The nestable tags thing won't work in -a lot of cases and needs to be rethought. - -Fixed an edge case where searching for "%foo" would match any string -shorter than "foo". - -= 1.2 "Who for such dainties would not stoop?" (20040708) = - -Applied patch from Ben Last (ben at benlast dot com) that made -Tag.renderContents() correctly handle Unicode. - -Made BeautifulStoneSoup even dumber by making it not implicitly close -a tag when another tag of the same type is encountered; only when an -actual closing tag is encountered. This change courtesy of Fuzzy (mike -at pcblokes dot com). BeautifulSoup still works as before. - -= 1.1 "Swimming in a hot tureen" = - -Added more 'nestable' tags. Changed popping semantics so that when a -nestable tag is encountered, tags are popped up to the previously -encountered nestable tag (of whatever kind). I will revert this if -enough people complain, but it should make more people's lives easier -than harder. This enhancement was suggested by Anthony Baxter (anthony -at interlink dot com dot au). - -= 1.0 "So rich and green" (20040420) = - -Initial release. diff --git a/poky/bitbake/lib/bs4/__init__.py b/poky/bitbake/lib/bs4/__init__.py deleted file mode 100644 index f6fdfd5..0000000 --- a/poky/bitbake/lib/bs4/__init__.py +++ /dev/null @@ -1,468 +0,0 @@ -"""Beautiful Soup -Elixir and Tonic -"The Screen-Scraper's Friend" -http://www.crummy.com/software/BeautifulSoup/ - -Beautiful Soup uses a pluggable XML or HTML parser to parse a -(possibly invalid) document into a tree representation. Beautiful Soup -provides provides methods and Pythonic idioms that make it easy to -navigate, search, and modify the parse tree. - -Beautiful Soup works with Python 2.6 and up. It works better if lxml -and/or html5lib is installed. - -For more than you ever wanted to know about Beautiful Soup, see the -documentation: -http://www.crummy.com/software/BeautifulSoup/bs4/doc/ -""" - -__author__ = "Leonard Richardson (leonardr@segfault.org)" -__version__ = "4.4.1" -__copyright__ = "Copyright (c) 2004-2015 Leonard Richardson" -__license__ = "MIT" - -__all__ = ['BeautifulSoup'] - -import os -import re -import warnings - -from .builder import builder_registry, ParserRejectedMarkup -from .dammit import UnicodeDammit -from .element import ( - CData, - Comment, - DEFAULT_OUTPUT_ENCODING, - Declaration, - Doctype, - NavigableString, - PageElement, - ProcessingInstruction, - ResultSet, - SoupStrainer, - Tag, - ) - -# The very first thing we do is give a useful error if someone is -# running this code under Python 3 without converting it. -'You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.'!='You need to convert the code, either by installing it (`python setup.py install`) or by running 2to3 (`2to3 -w bs4`).' - -class BeautifulSoup(Tag): - """ - This class defines the basic interface called by the tree builders. - - These methods will be called by the parser: - reset() - feed(markup) - - The tree builder may call these methods from its feed() implementation: - handle_starttag(name, attrs) # See note about return value - handle_endtag(name) - handle_data(data) # Appends to the current data node - endData(containerClass=NavigableString) # Ends the current data node - - No matter how complicated the underlying parser is, you should be - able to build a tree using 'start tag' events, 'end tag' events, - 'data' events, and "done with data" events. - - If you encounter an empty-element tag (aka a self-closing tag, - like HTML's <br> tag), call handle_starttag and then - handle_endtag. - """ - ROOT_TAG_NAME = '[document]' - - # If the end-user gives no indication which tree builder they - # want, look for one with these features. - DEFAULT_BUILDER_FEATURES = ['html', 'fast'] - - ASCII_SPACES = '\x20\x0a\x09\x0c\x0d' - - NO_PARSER_SPECIFIED_WARNING = "No parser was explicitly specified, so I'm using the best available %(markup_type)s parser for this system (\"%(parser)s\"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.\n\nTo get rid of this warning, change this:\n\n BeautifulSoup([your markup])\n\nto this:\n\n BeautifulSoup([your markup], \"%(parser)s\")\n" - - def __init__(self, markup="", features=None, builder=None, - parse_only=None, from_encoding=None, exclude_encodings=None, - **kwargs): - """The Soup object is initialized as the 'root tag', and the - provided markup (which can be a string or a file-like object) - is fed into the underlying parser.""" - - if 'convertEntities' in kwargs: - warnings.warn( - "BS4 does not respect the convertEntities argument to the " - "BeautifulSoup constructor. Entities are always converted " - "to Unicode characters.") - - if 'markupMassage' in kwargs: - del kwargs['markupMassage'] - warnings.warn( - "BS4 does not respect the markupMassage argument to the " - "BeautifulSoup constructor. The tree builder is responsible " - "for any necessary markup massage.") - - if 'smartQuotesTo' in kwargs: - del kwargs['smartQuotesTo'] - warnings.warn( - "BS4 does not respect the smartQuotesTo argument to the " - "BeautifulSoup constructor. Smart quotes are always converted " - "to Unicode characters.") - - if 'selfClosingTags' in kwargs: - del kwargs['selfClosingTags'] - warnings.warn( - "BS4 does not respect the selfClosingTags argument to the " - "BeautifulSoup constructor. The tree builder is responsible " - "for understanding self-closing tags.") - - if 'isHTML' in kwargs: - del kwargs['isHTML'] - warnings.warn( - "BS4 does not respect the isHTML argument to the " - "BeautifulSoup constructor. Suggest you use " - "features='lxml' for HTML and features='lxml-xml' for " - "XML.") - - def deprecated_argument(old_name, new_name): - if old_name in kwargs: - warnings.warn( - 'The "%s" argument to the BeautifulSoup constructor ' - 'has been renamed to "%s."' % (old_name, new_name)) - value = kwargs[old_name] - del kwargs[old_name] - return value - return None - - parse_only = parse_only or deprecated_argument( - "parseOnlyThese", "parse_only") - - from_encoding = from_encoding or deprecated_argument( - "fromEncoding", "from_encoding") - - if len(kwargs) > 0: - arg = list(kwargs.keys()).pop() - raise TypeError( - "__init__() got an unexpected keyword argument '%s'" % arg) - - if builder is None: - original_features = features - if isinstance(features, str): - features = [features] - if features is None or len(features) == 0: - features = self.DEFAULT_BUILDER_FEATURES - builder_class = builder_registry.lookup(*features) - if builder_class is None: - raise FeatureNotFound( - "Couldn't find a tree builder with the features you " - "requested: %s. Do you need to install a parser library?" - % ",".join(features)) - builder = builder_class() - if not (original_features == builder.NAME or - original_features in builder.ALTERNATE_NAMES): - if builder.is_xml: - markup_type = "XML" - else: - markup_type = "HTML" - warnings.warn(self.NO_PARSER_SPECIFIED_WARNING % dict( - parser=builder.NAME, - markup_type=markup_type)) - - self.builder = builder - self.is_xml = builder.is_xml - self.builder.soup = self - - self.parse_only = parse_only - - if hasattr(markup, 'read'): # It's a file-type object. - markup = markup.read() - elif len(markup) <= 256: - # Print out warnings for a couple beginner problems - # involving passing non-markup to Beautiful Soup. - # Beautiful Soup will still parse the input as markup, - # just in case that's what the user really wants. - if (isinstance(markup, str) - and not os.path.supports_unicode_filenames): - possible_filename = markup.encode("utf8") - else: - possible_filename = markup - is_file = False - try: - is_file = os.path.exists(possible_filename) - except Exception as e: - # This is almost certainly a problem involving - # characters not valid in filenames on this - # system. Just let it go. - pass - if is_file: - if isinstance(markup, str): - markup = markup.encode("utf8") - warnings.warn( - '"%s" looks like a filename, not markup. You should probably open this file and pass the filehandle into Beautiful Soup.' % markup) - if markup[:5] == "http:" or markup[:6] == "https:": - # TODO: This is ugly but I couldn't get it to work in - # Python 3 otherwise. - if ((isinstance(markup, bytes) and not b' ' in markup) - or (isinstance(markup, str) and not ' ' in markup)): - if isinstance(markup, str): - markup = markup.encode("utf8") - warnings.warn( - '"%s" looks like a URL. Beautiful Soup is not an HTTP client. You should probably use an HTTP client to get the document behind the URL, and feed that document to Beautiful Soup.' % markup) - - for (self.markup, self.original_encoding, self.declared_html_encoding, - self.contains_replacement_characters) in ( - self.builder.prepare_markup( - markup, from_encoding, exclude_encodings=exclude_encodings)): - self.reset() - try: - self._feed() - break - except ParserRejectedMarkup: - pass - - # Clear out the markup and remove the builder's circular - # reference to this object. - self.markup = None - self.builder.soup = None - - def __copy__(self): - return type(self)(self.encode(), builder=self.builder) - - def __getstate__(self): - # Frequently a tree builder can't be pickled. - d = dict(self.__dict__) - if 'builder' in d and not self.builder.picklable: - del d['builder'] - return d - - def _feed(self): - # Convert the document to Unicode. - self.builder.reset() - - self.builder.feed(self.markup) - # Close out any unfinished strings and close all the open tags. - self.endData() - while self.currentTag.name != self.ROOT_TAG_NAME: - self.popTag() - - def reset(self): - Tag.__init__(self, self, self.builder, self.ROOT_TAG_NAME) - self.hidden = 1 - self.builder.reset() - self.current_data = [] - self.currentTag = None - self.tagStack = [] - self.preserve_whitespace_tag_stack = [] - self.pushTag(self) - - def new_tag(self, name, namespace=None, nsprefix=None, **attrs): - """Create a new tag associated with this soup.""" - return Tag(None, self.builder, name, namespace, nsprefix, attrs) - - def new_string(self, s, subclass=NavigableString): - """Create a new NavigableString associated with this soup.""" - return subclass(s) - - def insert_before(self, successor): - raise NotImplementedError("BeautifulSoup objects don't support insert_before().") - - def insert_after(self, successor): - raise NotImplementedError("BeautifulSoup objects don't support insert_after().") - - def popTag(self): - tag = self.tagStack.pop() - if self.preserve_whitespace_tag_stack and tag == self.preserve_whitespace_tag_stack[-1]: - self.preserve_whitespace_tag_stack.pop() - #print "Pop", tag.name - if self.tagStack: - self.currentTag = self.tagStack[-1] - return self.currentTag - - def pushTag(self, tag): - #print "Push", tag.name - if self.currentTag: - self.currentTag.contents.append(tag) - self.tagStack.append(tag) - self.currentTag = self.tagStack[-1] - if tag.name in self.builder.preserve_whitespace_tags: - self.preserve_whitespace_tag_stack.append(tag) - - def endData(self, containerClass=NavigableString): - if self.current_data: - current_data = ''.join(self.current_data) - # If whitespace is not preserved, and this string contains - # nothing but ASCII spaces, replace it with a single space - # or newline. - if not self.preserve_whitespace_tag_stack: - strippable = True - for i in current_data: - if i not in self.ASCII_SPACES: - strippable = False - break - if strippable: - if '\n' in current_data: - current_data = '\n' - else: - current_data = ' ' - - # Reset the data collector. - self.current_data = [] - - # Should we add this string to the tree at all? - if self.parse_only and len(self.tagStack) <= 1 and \ - (not self.parse_only.text or \ - not self.parse_only.search(current_data)): - return - - o = containerClass(current_data) - self.object_was_parsed(o) - - def object_was_parsed(self, o, parent=None, most_recent_element=None): - """Add an object to the parse tree.""" - parent = parent or self.currentTag - previous_element = most_recent_element or self._most_recent_element - - next_element = previous_sibling = next_sibling = None - if isinstance(o, Tag): - next_element = o.next_element - next_sibling = o.next_sibling - previous_sibling = o.previous_sibling - if not previous_element: - previous_element = o.previous_element - - o.setup(parent, previous_element, next_element, previous_sibling, next_sibling) - - self._most_recent_element = o - parent.contents.append(o) - - if parent.next_sibling: - # This node is being inserted into an element that has - # already been parsed. Deal with any dangling references. - index = parent.contents.index(o) - if index == 0: - previous_element = parent - previous_sibling = None - else: - previous_element = previous_sibling = parent.contents[index-1] - if index == len(parent.contents)-1: - next_element = parent.next_sibling - next_sibling = None - else: - next_element = next_sibling = parent.contents[index+1] - - o.previous_element = previous_element - if previous_element: - previous_element.next_element = o - o.next_element = next_element - if next_element: - next_element.previous_element = o - o.next_sibling = next_sibling - if next_sibling: - next_sibling.previous_sibling = o - o.previous_sibling = previous_sibling - if previous_sibling: - previous_sibling.next_sibling = o - - def _popToTag(self, name, nsprefix=None, inclusivePop=True): - """Pops the tag stack up to and including the most recent - instance of the given tag. If inclusivePop is false, pops the tag - stack up to but *not* including the most recent instqance of - the given tag.""" - #print "Popping to %s" % name - if name == self.ROOT_TAG_NAME: - # The BeautifulSoup object itself can never be popped. - return - - most_recently_popped = None - - stack_size = len(self.tagStack) - for i in range(stack_size - 1, 0, -1): - t = self.tagStack[i] - if (name == t.name and nsprefix == t.prefix): - if inclusivePop: - most_recently_popped = self.popTag() - break - most_recently_popped = self.popTag() - - return most_recently_popped - - def handle_starttag(self, name, namespace, nsprefix, attrs): - """Push a start tag on to the stack. - - If this method returns None, the tag was rejected by the - SoupStrainer. You should proceed as if the tag had not occured - in the document. For instance, if this was a self-closing tag, - don't call handle_endtag. - """ - - # print "Start tag %s: %s" % (name, attrs) - self.endData() - - if (self.parse_only and len(self.tagStack) <= 1 - and (self.parse_only.text - or not self.parse_only.search_tag(name, attrs))): - return None - - tag = Tag(self, self.builder, name, namespace, nsprefix, attrs, - self.currentTag, self._most_recent_element) - if tag is None: - return tag - if self._most_recent_element: - self._most_recent_element.next_element = tag - self._most_recent_element = tag - self.pushTag(tag) - return tag - - def handle_endtag(self, name, nsprefix=None): - #print "End tag: " + name - self.endData() - self._popToTag(name, nsprefix) - - def handle_data(self, data): - self.current_data.append(data) - - def decode(self, pretty_print=False, - eventual_encoding=DEFAULT_OUTPUT_ENCODING, - formatter="minimal"): - """Returns a string or Unicode representation of this document. - To get Unicode, pass None for encoding.""" - - if self.is_xml: - # Print the XML declaration - encoding_part = '' - if eventual_encoding != None: - encoding_part = ' encoding="%s"' % eventual_encoding - prefix = '<?xml version="1.0"%s?>\n' % encoding_part - else: - prefix = '' - if not pretty_print: - indent_level = None - else: - indent_level = 0 - return prefix + super(BeautifulSoup, self).decode( - indent_level, eventual_encoding, formatter) - -# Alias to make it easier to type import: 'from bs4 import _soup' -_s = BeautifulSoup -_soup = BeautifulSoup - -class BeautifulStoneSoup(BeautifulSoup): - """Deprecated interface to an XML parser.""" - - def __init__(self, *args, **kwargs): - kwargs['features'] = 'xml' - warnings.warn( - 'The BeautifulStoneSoup class is deprecated. Instead of using ' - 'it, pass features="xml" into the BeautifulSoup constructor.') - super(BeautifulStoneSoup, self).__init__(*args, **kwargs) - - -class StopParsing(Exception): - pass - -class FeatureNotFound(ValueError): - pass - - -#By default, act as an HTML pretty-printer. -if __name__ == '__main__': - import sys - soup = BeautifulSoup(sys.stdin) - print(soup.prettify()) diff --git a/poky/bitbake/lib/bs4/builder/__init__.py b/poky/bitbake/lib/bs4/builder/__init__.py deleted file mode 100644 index 6ccd4d2..0000000 --- a/poky/bitbake/lib/bs4/builder/__init__.py +++ /dev/null @@ -1,324 +0,0 @@ -from collections import defaultdict -import itertools -import sys -from bs4.element import ( - CharsetMetaAttributeValue, - ContentMetaAttributeValue, - whitespace_re - ) - -__all__ = [ - 'HTMLTreeBuilder', - 'SAXTreeBuilder', - 'TreeBuilder', - 'TreeBuilderRegistry', - ] - -# Some useful features for a TreeBuilder to have. -FAST = 'fast' -PERMISSIVE = 'permissive' -STRICT = 'strict' -XML = 'xml' -HTML = 'html' -HTML_5 = 'html5' - - -class TreeBuilderRegistry(object): - - def __init__(self): - self.builders_for_feature = defaultdict(list) - self.builders = [] - - def register(self, treebuilder_class): - """Register a treebuilder based on its advertised features.""" - for feature in treebuilder_class.features: - self.builders_for_feature[feature].insert(0, treebuilder_class) - self.builders.insert(0, treebuilder_class) - - def lookup(self, *features): - if len(self.builders) == 0: - # There are no builders at all. - return None - - if len(features) == 0: - # They didn't ask for any features. Give them the most - # recently registered builder. - return self.builders[0] - - # Go down the list of features in order, and eliminate any builders - # that don't match every feature. - features = list(features) - features.reverse() - candidates = None - candidate_set = None - while len(features) > 0: - feature = features.pop() - we_have_the_feature = self.builders_for_feature.get(feature, []) - if len(we_have_the_feature) > 0: - if candidates is None: - candidates = we_have_the_feature - candidate_set = set(candidates) - else: - # Eliminate any candidates that don't have this feature. - candidate_set = candidate_set.intersection( - set(we_have_the_feature)) - - # The only valid candidates are the ones in candidate_set. - # Go through the original list of candidates and pick the first one - # that's in candidate_set. - if candidate_set is None: - return None - for candidate in candidates: - if candidate in candidate_set: - return candidate - return None - -# The BeautifulSoup class will take feature lists from developers and use them -# to look up builders in this registry. -builder_registry = TreeBuilderRegistry() - -class TreeBuilder(object): - """Turn a document into a Beautiful Soup object tree.""" - - NAME = "[Unknown tree builder]" - ALTERNATE_NAMES = [] - features = [] - - is_xml = False - picklable = False - preserve_whitespace_tags = set() - empty_element_tags = None # A tag will be considered an empty-element - # tag when and only when it has no contents. - - # A value for these tag/attribute combinations is a space- or - # comma-separated list of CDATA, rather than a single CDATA. - cdata_list_attributes = {} - - - def __init__(self): - self.soup = None - - def reset(self): - pass - - def can_be_empty_element(self, tag_name): - """Might a tag with this name be an empty-element tag? - - The final markup may or may not actually present this tag as - self-closing. - - For instance: an HTMLBuilder does not consider a <p> tag to be - an empty-element tag (it's not in - HTMLBuilder.empty_element_tags). This means an empty <p> tag - will be presented as "<p></p>", not "<p />". - - The default implementation has no opinion about which tags are - empty-element tags, so a tag will be presented as an - empty-element tag if and only if it has no contents. - "<foo></foo>" will become "<foo />", and "<foo>bar</foo>" will - be left alone. - """ - if self.empty_element_tags is None: - return True - return tag_name in self.empty_element_tags - - def feed(self, markup): - raise NotImplementedError() - - def prepare_markup(self, markup, user_specified_encoding=None, - document_declared_encoding=None): - return markup, None, None, False - - def test_fragment_to_document(self, fragment): - """Wrap an HTML fragment to make it look like a document. - - Different parsers do this differently. For instance, lxml - introduces an empty <head> tag, and html5lib - doesn't. Abstracting this away lets us write simple tests - which run HTML fragments through the parser and compare the - results against other HTML fragments. - - This method should not be used outside of tests. - """ - return fragment - - def set_up_substitutions(self, tag): - return False - - def _replace_cdata_list_attribute_values(self, tag_name, attrs): - """Replaces class="foo bar" with class=["foo", "bar"] - - Modifies its input in place. - """ - if not attrs: - return attrs - if self.cdata_list_attributes: - universal = self.cdata_list_attributes.get('*', []) - tag_specific = self.cdata_list_attributes.get( - tag_name.lower(), None) - for attr in list(attrs.keys()): - if attr in universal or (tag_specific and attr in tag_specific): - # We have a "class"-type attribute whose string - # value is a whitespace-separated list of - # values. Split it into a list. - value = attrs[attr] - if isinstance(value, str): - values = whitespace_re.split(value) - else: - # html5lib sometimes calls setAttributes twice - # for the same tag when rearranging the parse - # tree. On the second call the attribute value - # here is already a list. If this happens, - # leave the value alone rather than trying to - # split it again. - values = value - attrs[attr] = values - return attrs - -class SAXTreeBuilder(TreeBuilder): - """A Beautiful Soup treebuilder that listens for SAX events.""" - - def feed(self, markup): - raise NotImplementedError() - - def close(self): - pass - - def startElement(self, name, attrs): - attrs = dict((key[1], value) for key, value in list(attrs.items())) - #print "Start %s, %r" % (name, attrs) - self.soup.handle_starttag(name, attrs) - - def endElement(self, name): - #print "End %s" % name - self.soup.handle_endtag(name) - - def startElementNS(self, nsTuple, nodeName, attrs): - # Throw away (ns, nodeName) for now. - self.startElement(nodeName, attrs) - - def endElementNS(self, nsTuple, nodeName): - # Throw away (ns, nodeName) for now. - self.endElement(nodeName) - #handler.endElementNS((ns, node.nodeName), node.nodeName) - - def startPrefixMapping(self, prefix, nodeValue): - # Ignore the prefix for now. - pass - - def endPrefixMapping(self, prefix): - # Ignore the prefix for now. - # handler.endPrefixMapping(prefix) - pass - - def characters(self, content): - self.soup.handle_data(content) - - def startDocument(self): - pass - - def endDocument(self): - pass - - -class HTMLTreeBuilder(TreeBuilder): - """This TreeBuilder knows facts about HTML. - - Such as which tags are empty-element tags. - """ - - preserve_whitespace_tags = set(['pre', 'textarea']) - empty_element_tags = set(['br' , 'hr', 'input', 'img', 'meta', - 'spacer', 'link', 'frame', 'base']) - - # The HTML standard defines these attributes as containing a - # space-separated list of values, not a single value. That is, - # class="foo bar" means that the 'class' attribute has two values, - # 'foo' and 'bar', not the single value 'foo bar'. When we - # encounter one of these attributes, we will parse its value into - # a list of values if possible. Upon output, the list will be - # converted back into a string. - cdata_list_attributes = { - "*" : ['class', 'accesskey', 'dropzone'], - "a" : ['rel', 'rev'], - "link" : ['rel', 'rev'], - "td" : ["headers"], - "th" : ["headers"], - "td" : ["headers"], - "form" : ["accept-charset"], - "object" : ["archive"], - - # These are HTML5 specific, as are *.accesskey and *.dropzone above. - "area" : ["rel"], - "icon" : ["sizes"], - "iframe" : ["sandbox"], - "output" : ["for"], - } - - def set_up_substitutions(self, tag): - # We are only interested in <meta> tags - if tag.name != 'meta': - return False - - http_equiv = tag.get('http-equiv') - content = tag.get('content') - charset = tag.get('charset') - - # We are interested in <meta> tags that say what encoding the - # document was originally in. This means HTML 5-style <meta> - # tags that provide the "charset" attribute. It also means - # HTML 4-style <meta> tags that provide the "content" - # attribute and have "http-equiv" set to "content-type". - # - # In both cases we will replace the value of the appropriate - # attribute with a standin object that can take on any - # encoding. - meta_encoding = None - if charset is not None: - # HTML 5 style: - # <meta charset="utf8"> - meta_encoding = charset - tag['charset'] = CharsetMetaAttributeValue(charset) - - elif (content is not None and http_equiv is not None - and http_equiv.lower() == 'content-type'): - # HTML 4 style: - # <meta http-equiv="content-type" content="text/html; charset=utf8"> - tag['content'] = ContentMetaAttributeValue(content) - - return (meta_encoding is not None) - -def register_treebuilders_from(module): - """Copy TreeBuilders from the given module into this module.""" - # I'm fairly sure this is not the best way to do this. - this_module = sys.modules['bs4.builder'] - for name in module.__all__: - obj = getattr(module, name) - - if issubclass(obj, TreeBuilder): - setattr(this_module, name, obj) - this_module.__all__.append(name) - # Register the builder while we're at it. - this_module.builder_registry.register(obj) - -class ParserRejectedMarkup(Exception): - pass - -# Builders are registered in reverse order of priority, so that custom -# builder registrations will take precedence. In general, we want lxml -# to take precedence over html5lib, because it's faster. And we only -# want to use HTMLParser as a last result. -from . import _htmlparser -register_treebuilders_from(_htmlparser) -try: - from . import _html5lib - register_treebuilders_from(_html5lib) -except ImportError: - # They don't have html5lib installed. - pass -try: - from . import _lxml - register_treebuilders_from(_lxml) -except ImportError: - # They don't have lxml installed. - pass diff --git a/poky/bitbake/lib/bs4/builder/_html5lib.py b/poky/bitbake/lib/bs4/builder/_html5lib.py deleted file mode 100644 index 2b7a70a..0000000 --- a/poky/bitbake/lib/bs4/builder/_html5lib.py +++ /dev/null @@ -1,339 +0,0 @@ -__all__ = [ - 'HTML5TreeBuilder', - ] - -from pdb import set_trace -import warnings -from bs4.builder import ( - PERMISSIVE, - HTML, - HTML_5, - HTMLTreeBuilder, - ) -from bs4.element import ( - NamespacedAttribute, - whitespace_re, -) -import html5lib -try: - # html5lib >= 0.99999999/1.0b9 - from html5lib.treebuilders import base as treebuildersbase -except ImportError: - # html5lib <= 0.9999999/1.0b8 - from html5lib.treebuilders import _base as treebuildersbase -from html5lib.constants import namespaces - -from bs4.element import ( - Comment, - Doctype, - NavigableString, - Tag, - ) - -class HTML5TreeBuilder(HTMLTreeBuilder): - """Use html5lib to build a tree.""" - - NAME = "html5lib" - - features = [NAME, PERMISSIVE, HTML_5, HTML] - - def prepare_markup(self, markup, user_specified_encoding, - document_declared_encoding=None, exclude_encodings=None): - # Store the user-specified encoding for use later on. - self.user_specified_encoding = user_specified_encoding - - # document_declared_encoding and exclude_encodings aren't used - # ATM because the html5lib TreeBuilder doesn't use - # UnicodeDammit. - if exclude_encodings: - warnings.warn("You provided a value for exclude_encoding, but the html5lib tree builder doesn't support exclude_encoding.") - yield (markup, None, None, False) - - # These methods are defined by Beautiful Soup. - def feed(self, markup): - if self.soup.parse_only is not None: - warnings.warn("You provided a value for parse_only, but the html5lib tree builder doesn't support parse_only. The entire document will be parsed.") - parser = html5lib.HTMLParser(tree=self.create_treebuilder) - doc = parser.parse(markup, encoding=self.user_specified_encoding) - - # Set the character encoding detected by the tokenizer. - if isinstance(markup, str): - # We need to special-case this because html5lib sets - # charEncoding to UTF-8 if it gets Unicode input. - doc.original_encoding = None - else: - doc.original_encoding = parser.tokenizer.stream.charEncoding[0] - - def create_treebuilder(self, namespaceHTMLElements): - self.underlying_builder = TreeBuilderForHtml5lib( - self.soup, namespaceHTMLElements) - return self.underlying_builder - - def test_fragment_to_document(self, fragment): - """See `TreeBuilder`.""" - return '<html><head></head><body>%s</body></html>' % fragment - - -class TreeBuilderForHtml5lib(treebuildersbase.TreeBuilder): - - def __init__(self, soup, namespaceHTMLElements): - self.soup = soup - super(TreeBuilderForHtml5lib, self).__init__(namespaceHTMLElements) - - def documentClass(self): - self.soup.reset() - return Element(self.soup, self.soup, None) - - def insertDoctype(self, token): - name = token["name"] - publicId = token["publicId"] - systemId = token["systemId"] - - doctype = Doctype.for_name_and_ids(name, publicId, systemId) - self.soup.object_was_parsed(doctype) - - def elementClass(self, name, namespace): - tag = self.soup.new_tag(name, namespace) - return Element(tag, self.soup, namespace) - - def commentClass(self, data): - return TextNode(Comment(data), self.soup) - - def fragmentClass(self): - self.soup = BeautifulSoup("") - self.soup.name = "[document_fragment]" - return Element(self.soup, self.soup, None) - - def appendChild(self, node): - # XXX This code is not covered by the BS4 tests. - self.soup.append(node.element) - - def getDocument(self): - return self.soup - - def getFragment(self): - return treebuildersbase.TreeBuilder.getFragment(self).element - -class AttrList(object): - def __init__(self, element): - self.element = element - self.attrs = dict(self.element.attrs) - def __iter__(self): - return list(self.attrs.items()).__iter__() - def __setitem__(self, name, value): - # If this attribute is a multi-valued attribute for this element, - # turn its value into a list. - list_attr = HTML5TreeBuilder.cdata_list_attributes - if (name in list_attr['*'] - or (self.element.name in list_attr - and name in list_attr[self.element.name])): - # A node that is being cloned may have already undergone - # this procedure. - if not isinstance(value, list): - value = whitespace_re.split(value) - self.element[name] = value - def items(self): - return list(self.attrs.items()) - def keys(self): - return list(self.attrs.keys()) - def __len__(self): - return len(self.attrs) - def __getitem__(self, name): - return self.attrs[name] - def __contains__(self, name): - return name in list(self.attrs.keys()) - - -class Element(treebuildersbase.Node): - def __init__(self, element, soup, namespace): - treebuildersbase.Node.__init__(self, element.name) - self.element = element - self.soup = soup - self.namespace = namespace - - def appendChild(self, node): - string_child = child = None - if isinstance(node, str): - # Some other piece of code decided to pass in a string - # instead of creating a TextElement object to contain the - # string. - string_child = child = node - elif isinstance(node, Tag): - # Some other piece of code decided to pass in a Tag - # instead of creating an Element object to contain the - # Tag. - child = node - elif node.element.__class__ == NavigableString: - string_child = child = node.element - else: - child = node.element - - if not isinstance(child, str) and child.parent is not None: - node.element.extract() - - if (string_child and self.element.contents - and self.element.contents[-1].__class__ == NavigableString): - # We are appending a string onto another string. - # TODO This has O(n^2) performance, for input like - # "a</a>a</a>a</a>..." - old_element = self.element.contents[-1] - new_element = self.soup.new_string(old_element + string_child) - old_element.replace_with(new_element) - self.soup._most_recent_element = new_element - else: - if isinstance(node, str): - # Create a brand new NavigableString from this string. - child = self.soup.new_string(node) - - # Tell Beautiful Soup to act as if it parsed this element - # immediately after the parent's last descendant. (Or - # immediately after the parent, if it has no children.) - if self.element.contents: - most_recent_element = self.element._last_descendant(False) - elif self.element.next_element is not None: - # Something from further ahead in the parse tree is - # being inserted into this earlier element. This is - # very annoying because it means an expensive search - # for the last element in the tree. - most_recent_element = self.soup._last_descendant() - else: - most_recent_element = self.element - - self.soup.object_was_parsed( - child, parent=self.element, - most_recent_element=most_recent_element) - - def getAttributes(self): - return AttrList(self.element) - - def setAttributes(self, attributes): - - if attributes is not None and len(attributes) > 0: - - converted_attributes = [] - for name, value in list(attributes.items()): - if isinstance(name, tuple): - new_name = NamespacedAttribute(*name) - del attributes[name] - attributes[new_name] = value - - self.soup.builder._replace_cdata_list_attribute_values( - self.name, attributes) - for name, value in list(attributes.items()): - self.element[name] = value - - # The attributes may contain variables that need substitution. - # Call set_up_substitutions manually. - # - # The Tag constructor called this method when the Tag was created, - # but we just set/changed the attributes, so call it again. - self.soup.builder.set_up_substitutions(self.element) - attributes = property(getAttributes, setAttributes) - - def insertText(self, data, insertBefore=None): - if insertBefore: - text = TextNode(self.soup.new_string(data), self.soup) - self.insertBefore(data, insertBefore) - else: - self.appendChild(data) - - def insertBefore(self, node, refNode): - index = self.element.index(refNode.element) - if (node.element.__class__ == NavigableString and self.element.contents - and self.element.contents[index-1].__class__ == NavigableString): - # (See comments in appendChild) - old_node = self.element.contents[index-1] - new_str = self.soup.new_string(old_node + node.element) - old_node.replace_with(new_str) - else: - self.element.insert(index, node.element) - node.parent = self - - def removeChild(self, node): - node.element.extract() - - def reparentChildren(self, new_parent): - """Move all of this tag's children into another tag.""" - # print "MOVE", self.element.contents - # print "FROM", self.element - # print "TO", new_parent.element - element = self.element - new_parent_element = new_parent.element - # Determine what this tag's next_element will be once all the children - # are removed. - final_next_element = element.next_sibling - - new_parents_last_descendant = new_parent_element._last_descendant(False, False) - if len(new_parent_element.contents) > 0: - # The new parent already contains children. We will be - # appending this tag's children to the end. - new_parents_last_child = new_parent_element.contents[-1] - new_parents_last_descendant_next_element = new_parents_last_descendant.next_element - else: - # The new parent contains no children. - new_parents_last_child = None - new_parents_last_descendant_next_element = new_parent_element.next_element - - to_append = element.contents - append_after = new_parent_element.contents - if len(to_append) > 0: - # Set the first child's previous_element and previous_sibling - # to elements within the new parent - first_child = to_append[0] - if new_parents_last_descendant: - first_child.previous_element = new_parents_last_descendant - else: - first_child.previous_element = new_parent_element - first_child.previous_sibling = new_parents_last_child - if new_parents_last_descendant: - new_parents_last_descendant.next_element = first_child - else: - new_parent_element.next_element = first_child - if new_parents_last_child: - new_parents_last_child.next_sibling = first_child - - # Fix the last child's next_element and next_sibling - last_child = to_append[-1] - last_child.next_element = new_parents_last_descendant_next_element - if new_parents_last_descendant_next_element: - new_parents_last_descendant_next_element.previous_element = last_child - last_child.next_sibling = None - - for child in to_append: - child.parent = new_parent_element - new_parent_element.contents.append(child) - - # Now that this element has no children, change its .next_element. - element.contents = [] - element.next_element = final_next_element - - # print "DONE WITH MOVE" - # print "FROM", self.element - # print "TO", new_parent_element - - def cloneNode(self): - tag = self.soup.new_tag(self.element.name, self.namespace) - node = Element(tag, self.soup, self.namespace) - for key,value in self.attributes: - node.attributes[key] = value - return node - - def hasContent(self): - return self.element.contents - - def getNameTuple(self): - if self.namespace == None: - return namespaces["html"], self.name - else: - return self.namespace, self.name - - nameTuple = property(getNameTuple) - -class TextNode(Element): - def __init__(self, element, soup): - treebuildersbase.Node.__init__(self, None) - self.element = element - self.soup = soup - - def cloneNode(self): - raise NotImplementedError diff --git a/poky/bitbake/lib/bs4/builder/_htmlparser.py b/poky/bitbake/lib/bs4/builder/_htmlparser.py deleted file mode 100644 index bb0a63f..0000000 --- a/poky/bitbake/lib/bs4/builder/_htmlparser.py +++ /dev/null @@ -1,262 +0,0 @@ -"""Use the HTMLParser library to parse HTML files that aren't too bad.""" - -__all__ = [ - 'HTMLParserTreeBuilder', - ] - -from html.parser import HTMLParser - -try: - from html.parser import HTMLParseError -except ImportError as e: - # HTMLParseError is removed in Python 3.5. Since it can never be - # thrown in 3.5, we can just define our own class as a placeholder. - class HTMLParseError(Exception): - pass - -import sys -import warnings - -# Starting in Python 3.2, the HTMLParser constructor takes a 'strict' -# argument, which we'd like to set to False. Unfortunately, -# http://bugs.python.org/issue13273 makes strict=True a better bet -# before Python 3.2.3. -# -# At the end of this file, we monkeypatch HTMLParser so that -# strict=True works well on Python 3.2.2. -major, minor, release = sys.version_info[:3] -CONSTRUCTOR_TAKES_STRICT = major == 3 and minor == 2 and release >= 3 -CONSTRUCTOR_STRICT_IS_DEPRECATED = major == 3 and minor == 3 -CONSTRUCTOR_TAKES_CONVERT_CHARREFS = major == 3 and minor >= 4 - - -from bs4.element import ( - CData, - Comment, - Declaration, - Doctype, - ProcessingInstruction, - ) -from bs4.dammit import EntitySubstitution, UnicodeDammit - -from bs4.builder import ( - HTML, - HTMLTreeBuilder, - STRICT, - ) - - -HTMLPARSER = 'html.parser' - -class BeautifulSoupHTMLParser(HTMLParser): - def handle_starttag(self, name, attrs): - # XXX namespace - attr_dict = {} - for key, value in attrs: - # Change None attribute values to the empty string - # for consistency with the other tree builders. - if value is None: - value = '' - attr_dict[key] = value - attrvalue = '""' - self.soup.handle_starttag(name, None, None, attr_dict) - - def handle_endtag(self, name): - self.soup.handle_endtag(name) - - def handle_data(self, data): - self.soup.handle_data(data) - - def handle_charref(self, name): - # XXX workaround for a bug in HTMLParser. Remove this once - # it's fixed in all supported versions. - # http://bugs.python.org/issue13633 - if name.startswith('x'): - real_name = int(name.lstrip('x'), 16) - elif name.startswith('X'): - real_name = int(name.lstrip('X'), 16) - else: - real_name = int(name) - - try: - data = chr(real_name) - except (ValueError, OverflowError) as e: - data = "\N{REPLACEMENT CHARACTER}" - - self.handle_data(data) - - def handle_entityref(self, name): - character = EntitySubstitution.HTML_ENTITY_TO_CHARACTER.get(name) - if character is not None: - data = character - else: - data = "&%s;" % name - self.handle_data(data) - - def handle_comment(self, data): - self.soup.endData() - self.soup.handle_data(data) - self.soup.endData(Comment) - - def handle_decl(self, data): - self.soup.endData() - if data.startswith("DOCTYPE "): - data = data[len("DOCTYPE "):] - elif data == 'DOCTYPE': - # i.e. "<!DOCTYPE>" - data = '' - self.soup.handle_data(data) - self.soup.endData(Doctype) - - def unknown_decl(self, data): - if data.upper().startswith('CDATA['): - cls = CData - data = data[len('CDATA['):] - else: - cls = Declaration - self.soup.endData() - self.soup.handle_data(data) - self.soup.endData(cls) - - def handle_pi(self, data): - self.soup.endData() - self.soup.handle_data(data) - self.soup.endData(ProcessingInstruction) - - -class HTMLParserTreeBuilder(HTMLTreeBuilder): - - is_xml = False - picklable = True - NAME = HTMLPARSER - features = [NAME, HTML, STRICT] - - def __init__(self, *args, **kwargs): - if CONSTRUCTOR_TAKES_STRICT and not CONSTRUCTOR_STRICT_IS_DEPRECATED: - kwargs['strict'] = False - if CONSTRUCTOR_TAKES_CONVERT_CHARREFS: - kwargs['convert_charrefs'] = False - self.parser_args = (args, kwargs) - - def prepare_markup(self, markup, user_specified_encoding=None, - document_declared_encoding=None, exclude_encodings=None): - """ - :return: A 4-tuple (markup, original encoding, encoding - declared within markup, whether any characters had to be - replaced with REPLACEMENT CHARACTER). - """ - if isinstance(markup, str): - yield (markup, None, None, False) - return - - try_encodings = [user_specified_encoding, document_declared_encoding] - dammit = UnicodeDammit(markup, try_encodings, is_html=True, - exclude_encodings=exclude_encodings) - yield (dammit.markup, dammit.original_encoding, - dammit.declared_html_encoding, - dammit.contains_replacement_characters) - - def feed(self, markup): - args, kwargs = self.parser_args - parser = BeautifulSoupHTMLParser(*args, **kwargs) - parser.soup = self.soup - try: - parser.feed(markup) - except HTMLParseError as e: - warnings.warn(RuntimeWarning( - "Python's built-in HTMLParser cannot parse the given document. This is not a bug in Beautiful Soup. The best solution is to install an external parser (lxml or html5lib), and use Beautiful Soup with that parser. See http://www.crummy.com/software/BeautifulSoup/bs4/doc/#installing-a-parser for help.")) - raise e - -# Patch 3.2 versions of HTMLParser earlier than 3.2.3 to use some -# 3.2.3 code. This ensures they don't treat markup like <p></p> as a -# string. -# -# XXX This code can be removed once most Python 3 users are on 3.2.3. -if major == 3 and minor == 2 and not CONSTRUCTOR_TAKES_STRICT: - import re - attrfind_tolerant = re.compile( - r'\s*((?<=[\'"\s])[^\s/>][^\s/=>]*)(\s*=+\s*' - r'(\'[^\']*\'|"[^"]*"|(?![\'"])[^>\s]*))?') - HTMLParserTreeBuilder.attrfind_tolerant = attrfind_tolerant - - locatestarttagend = re.compile(r""" - <[a-zA-Z][-.a-zA-Z0-9:_]* # tag name - (?:\s+ # whitespace before attribute name - (?:[a-zA-Z_][-.:a-zA-Z0-9_]* # attribute name - (?:\s*=\s* # value indicator - (?:'[^']*' # LITA-enclosed value - |\"[^\"]*\" # LIT-enclosed value - |[^'\">\s]+ # bare value - ) - )? - ) - )* - \s* # trailing whitespace -""", re.VERBOSE) - BeautifulSoupHTMLParser.locatestarttagend = locatestarttagend - - from html.parser import tagfind, attrfind - - def parse_starttag(self, i): - self.__starttag_text = None - endpos = self.check_for_whole_start_tag(i) - if endpos < 0: - return endpos - rawdata = self.rawdata - self.__starttag_text = rawdata[i:endpos] - - # Now parse the data between i+1 and j into a tag and attrs - attrs = [] - match = tagfind.match(rawdata, i+1) - assert match, 'unexpected call to parse_starttag()' - k = match.end() - self.lasttag = tag = rawdata[i+1:k].lower() - while k < endpos: - if self.strict: - m = attrfind.match(rawdata, k) - else: - m = attrfind_tolerant.match(rawdata, k) - if not m: - break - attrname, rest, attrvalue = m.group(1, 2, 3) - if not rest: - attrvalue = None - elif attrvalue[:1] == '\'' == attrvalue[-1:] or \ - attrvalue[:1] == '"' == attrvalue[-1:]: - attrvalue = attrvalue[1:-1] - if attrvalue: - attrvalue = self.unescape(attrvalue) - attrs.append((attrname.lower(), attrvalue)) - k = m.end() - - end = rawdata[k:endpos].strip() - if end not in (">", "/>"): - lineno, offset = self.getpos() - if "\n" in self.__starttag_text: - lineno = lineno + self.__starttag_text.count("\n") - offset = len(self.__starttag_text) \ - - self.__starttag_text.rfind("\n") - else: - offset = offset + len(self.__starttag_text) - if self.strict: - self.error("junk characters in start tag: %r" - % (rawdata[k:endpos][:20],)) - self.handle_data(rawdata[i:endpos]) - return endpos - if end.endswith('/>'): - # XHTML-style empty tag: <span attr="value" /> - self.handle_startendtag(tag, attrs) - else: - self.handle_starttag(tag, attrs) - if tag in self.CDATA_CONTENT_ELEMENTS: - self.set_cdata_mode(tag) - return endpos - - def set_cdata_mode(self, elem): - self.cdata_elem = elem.lower() - self.interesting = re.compile(r'</\s*%s\s*>' % self.cdata_elem, re.I) - - BeautifulSoupHTMLParser.parse_starttag = parse_starttag - BeautifulSoupHTMLParser.set_cdata_mode = set_cdata_mode - - CONSTRUCTOR_TAKES_STRICT = True diff --git a/poky/bitbake/lib/bs4/builder/_lxml.py b/poky/bitbake/lib/bs4/builder/_lxml.py deleted file mode 100644 index 9c6c14e..0000000 --- a/poky/bitbake/lib/bs4/builder/_lxml.py +++ /dev/null @@ -1,248 +0,0 @@ -__all__ = [ - 'LXMLTreeBuilderForXML', - 'LXMLTreeBuilder', - ] - -from io import BytesIO -from io import StringIO -import collections -from lxml import etree -from bs4.element import ( - Comment, - Doctype, - NamespacedAttribute, - ProcessingInstruction, -) -from bs4.builder import ( - FAST, - HTML, - HTMLTreeBuilder, - PERMISSIVE, - ParserRejectedMarkup, - TreeBuilder, - XML) -from bs4.dammit import EncodingDetector - -LXML = 'lxml' - -class LXMLTreeBuilderForXML(TreeBuilder): - DEFAULT_PARSER_CLASS = etree.XMLParser - - is_xml = True - - NAME = "lxml-xml" - ALTERNATE_NAMES = ["xml"] - - # Well, it's permissive by XML parser standards. - features = [NAME, LXML, XML, FAST, PERMISSIVE] - - CHUNK_SIZE = 512 - - # This namespace mapping is specified in the XML Namespace - # standard. - DEFAULT_NSMAPS = {'http://www.w3.org/XML/1998/namespace' : "xml"} - - def default_parser(self, encoding): - # This can either return a parser object or a class, which - # will be instantiated with default arguments. - if self._default_parser is not None: - return self._default_parser - return etree.XMLParser( - target=self, strip_cdata=False, recover=True, encoding=encoding) - - def parser_for(self, encoding): - # Use the default parser. - parser = self.default_parser(encoding) - - if isinstance(parser, collections.Callable): - # Instantiate the parser with default arguments - parser = parser(target=self, strip_cdata=False, encoding=encoding) - return parser - - def __init__(self, parser=None, empty_element_tags=None): - # TODO: Issue a warning if parser is present but not a - # callable, since that means there's no way to create new - # parsers for different encodings. - self._default_parser = parser - if empty_element_tags is not None: - self.empty_element_tags = set(empty_element_tags) - self.soup = None - self.nsmaps = [self.DEFAULT_NSMAPS] - - def _getNsTag(self, tag): - # Split the namespace URL out of a fully-qualified lxml tag - # name. Copied from lxml's src/lxml/sax.py. - if tag[0] == '{': - return tuple(tag[1:].split('}', 1)) - else: - return (None, tag) - - def prepare_markup(self, markup, user_specified_encoding=None, - exclude_encodings=None, - document_declared_encoding=None): - """ - :yield: A series of 4-tuples. - (markup, encoding, declared encoding, - has undergone character replacement) - - Each 4-tuple represents a strategy for parsing the document. - """ - if isinstance(markup, str): - # We were given Unicode. Maybe lxml can parse Unicode on - # this system? - yield markup, None, document_declared_encoding, False - - if isinstance(markup, str): - # No, apparently not. Convert the Unicode to UTF-8 and - # tell lxml to parse it as UTF-8. - yield (markup.encode("utf8"), "utf8", - document_declared_encoding, False) - - # Instead of using UnicodeDammit to convert the bytestring to - # Unicode using different encodings, use EncodingDetector to - # iterate over the encodings, and tell lxml to try to parse - # the document as each one in turn. - is_html = not self.is_xml - try_encodings = [user_specified_encoding, document_declared_encoding] - detector = EncodingDetector( - markup, try_encodings, is_html, exclude_encodings) - for encoding in detector.encodings: - yield (detector.markup, encoding, document_declared_encoding, False) - - def feed(self, markup): - if isinstance(markup, bytes): - markup = BytesIO(markup) - elif isinstance(markup, str): - markup = StringIO(markup) - - # Call feed() at least once, even if the markup is empty, - # or the parser won't be initialized. - data = markup.read(self.CHUNK_SIZE) - try: - self.parser = self.parser_for(self.soup.original_encoding) - self.parser.feed(data) - while len(data) != 0: - # Now call feed() on the rest of the data, chunk by chunk. - data = markup.read(self.CHUNK_SIZE) - if len(data) != 0: - self.parser.feed(data) - self.parser.close() - except (UnicodeDecodeError, LookupError, etree.ParserError) as e: - raise ParserRejectedMarkup(str(e)) - - def close(self): - self.nsmaps = [self.DEFAULT_NSMAPS] - - def start(self, name, attrs, nsmap={}): - # Make sure attrs is a mutable dict--lxml may send an immutable dictproxy. - attrs = dict(attrs) - nsprefix = None - # Invert each namespace map as it comes in. - if len(self.nsmaps) > 1: - # There are no new namespaces for this tag, but - # non-default namespaces are in play, so we need a - # separate tag stack to know when they end. - self.nsmaps.append(None) - elif len(nsmap) > 0: - # A new namespace mapping has come into play. - inverted_nsmap = dict((value, key) for key, value in list(nsmap.items())) - self.nsmaps.append(inverted_nsmap) - # Also treat the namespace mapping as a set of attributes on the - # tag, so we can recreate it later. - attrs = attrs.copy() - for prefix, namespace in list(nsmap.items()): - attribute = NamespacedAttribute( - "xmlns", prefix, "http://www.w3.org/2000/xmlns/") - attrs[attribute] = namespace - - # Namespaces are in play. Find any attributes that came in - # from lxml with namespaces attached to their names, and - # turn then into NamespacedAttribute objects. - new_attrs = {} - for attr, value in list(attrs.items()): - namespace, attr = self._getNsTag(attr) - if namespace is None: - new_attrs[attr] = value - else: - nsprefix = self._prefix_for_namespace(namespace) - attr = NamespacedAttribute(nsprefix, attr, namespace) - new_attrs[attr] = value - attrs = new_attrs - - namespace, name = self._getNsTag(name) - nsprefix = self._prefix_for_namespace(namespace) - self.soup.handle_starttag(name, namespace, nsprefix, attrs) - - def _prefix_for_namespace(self, namespace): - """Find the currently active prefix for the given namespace.""" - if namespace is None: - return None - for inverted_nsmap in reversed(self.nsmaps): - if inverted_nsmap is not None and namespace in inverted_nsmap: - return inverted_nsmap[namespace] - return None - - def end(self, name): - self.soup.endData() - completed_tag = self.soup.tagStack[-1] - namespace, name = self._getNsTag(name) - nsprefix = None - if namespace is not None: - for inverted_nsmap in reversed(self.nsmaps): - if inverted_nsmap is not None and namespace in inverted_nsmap: - nsprefix = inverted_nsmap[namespace] - break - self.soup.handle_endtag(name, nsprefix) - if len(self.nsmaps) > 1: - # This tag, or one of its parents, introduced a namespace - # mapping, so pop it off the stack. - self.nsmaps.pop() - - def pi(self, target, data): - self.soup.endData() - self.soup.handle_data(target + ' ' + data) - self.soup.endData(ProcessingInstruction) - - def data(self, content): - self.soup.handle_data(content) - - def doctype(self, name, pubid, system): - self.soup.endData() - doctype = Doctype.for_name_and_ids(name, pubid, system) - self.soup.object_was_parsed(doctype) - - def comment(self, content): - "Handle comments as Comment objects." - self.soup.endData() - self.soup.handle_data(content) - self.soup.endData(Comment) - - def test_fragment_to_document(self, fragment): - """See `TreeBuilder`.""" - return '<?xml version="1.0" encoding="utf-8"?>\n%s' % fragment - - -class LXMLTreeBuilder(HTMLTreeBuilder, LXMLTreeBuilderForXML): - - NAME = LXML - ALTERNATE_NAMES = ["lxml-html"] - - features = ALTERNATE_NAMES + [NAME, HTML, FAST, PERMISSIVE] - is_xml = False - - def default_parser(self, encoding): - return etree.HTMLParser - - def feed(self, markup): - encoding = self.soup.original_encoding - try: - self.parser = self.parser_for(encoding) - self.parser.feed(markup) - self.parser.close() - except (UnicodeDecodeError, LookupError, etree.ParserError) as e: - raise ParserRejectedMarkup(str(e)) - - - def test_fragment_to_document(self, fragment): - """See `TreeBuilder`.""" - return '<html><body>%s</body></html>' % fragment diff --git a/poky/bitbake/lib/bs4/dammit.py b/poky/bitbake/lib/bs4/dammit.py deleted file mode 100644 index 68d419f..0000000 --- a/poky/bitbake/lib/bs4/dammit.py +++ /dev/null @@ -1,840 +0,0 @@ -# -*- coding: utf-8 -*- -"""Beautiful Soup bonus library: Unicode, Dammit - -This library converts a bytestream to Unicode through any means -necessary. It is heavily based on code from Mark Pilgrim's Universal -Feed Parser. It works best on XML and HTML, but it does not rewrite the -XML or HTML to reflect a new encoding; that's the tree builder's job. -""" -__license__ = "MIT" - -from pdb import set_trace -import codecs -from html.entities import codepoint2name -import re -import logging -import string - -# Import a library to autodetect character encodings. -chardet_type = None -try: - # First try the fast C implementation. - # PyPI package: cchardet - import cchardet - def chardet_dammit(s): - return cchardet.detect(s)['encoding'] -except ImportError: - try: - # Fall back to the pure Python implementation - # Debian package: python-chardet - # PyPI package: chardet - import chardet - def chardet_dammit(s): - return chardet.detect(s)['encoding'] - #import chardet.constants - #chardet.constants._debug = 1 - except ImportError: - # No chardet available. - def chardet_dammit(s): - return None - -# Available from http://cjkpython.i18n.org/. -try: - import iconv_codec -except ImportError: - pass - -xml_encoding_re = re.compile( - '^<\?.*encoding=[\'"](.*?)[\'"].*\?>'.encode(), re.I) -html_meta_re = re.compile( - '<\s*meta[^>]+charset\s*=\s*["\']?([^>]*?)[ /;\'">]'.encode(), re.I) - -class EntitySubstitution(object): - - """Substitute XML or HTML entities for the corresponding characters.""" - - def _populate_class_variables(): - lookup = {} - reverse_lookup = {} - characters_for_re = [] - for codepoint, name in list(codepoint2name.items()): - character = chr(codepoint) - if codepoint != 34: - # There's no point in turning the quotation mark into - # ", unless it happens within an attribute value, which - # is handled elsewhere. - characters_for_re.append(character) - lookup[character] = name - # But we do want to turn " into the quotation mark. - reverse_lookup[name] = character - re_definition = "[%s]" % "".join(characters_for_re) - return lookup, reverse_lookup, re.compile(re_definition) - (CHARACTER_TO_HTML_ENTITY, HTML_ENTITY_TO_CHARACTER, - CHARACTER_TO_HTML_ENTITY_RE) = _populate_class_variables() - - CHARACTER_TO_XML_ENTITY = { - "'": "apos", - '"': "quot", - "&": "amp", - "<": "lt", - ">": "gt", - } - - BARE_AMPERSAND_OR_BRACKET = re.compile("([<>]|" - "&(?!#\d+;|#x[0-9a-fA-F]+;|\w+;)" - ")") - - AMPERSAND_OR_BRACKET = re.compile("([<>&])") - - @classmethod - def _substitute_html_entity(cls, matchobj): - entity = cls.CHARACTER_TO_HTML_ENTITY.get(matchobj.group(0)) - return "&%s;" % entity - - @classmethod - def _substitute_xml_entity(cls, matchobj): - """Used with a regular expression to substitute the - appropriate XML entity for an XML special character.""" - entity = cls.CHARACTER_TO_XML_ENTITY[matchobj.group(0)] - return "&%s;" % entity - - @classmethod - def quoted_attribute_value(self, value): - """Make a value into a quoted XML attribute, possibly escaping it. - - Most strings will be quoted using double quotes. - - Bob's Bar -> "Bob's Bar" - - If a string contains double quotes, it will be quoted using - single quotes. - - Welcome to "my bar" -> 'Welcome to "my bar"' - - If a string contains both single and double quotes, the - double quotes will be escaped, and the string will be quoted - using double quotes. - - Welcome to "Bob's Bar" -> "Welcome to "Bob's bar" - """ - quote_with = '"' - if '"' in value: - if "'" in value: - # The string contains both single and double - # quotes. Turn the double quotes into - # entities. We quote the double quotes rather than - # the single quotes because the entity name is - # """ whether this is HTML or XML. If we - # quoted the single quotes, we'd have to decide - # between ' and &squot;. - replace_with = """ - value = value.replace('"', replace_with) - else: - # There are double quotes but no single quotes. - # We can use single quotes to quote the attribute. - quote_with = "'" - return quote_with + value + quote_with - - @classmethod - def substitute_xml(cls, value, make_quoted_attribute=False): - """Substitute XML entities for special XML characters. - - :param value: A string to be substituted. The less-than sign - will become <, the greater-than sign will become >, - and any ampersands will become &. If you want ampersands - that appear to be part of an entity definition to be left - alone, use substitute_xml_containing_entities() instead. - - :param make_quoted_attribute: If True, then the string will be - quoted, as befits an attribute value. - """ - # Escape angle brackets and ampersands. - value = cls.AMPERSAND_OR_BRACKET.sub( - cls._substitute_xml_entity, value) - - if make_quoted_attribute: - value = cls.quoted_attribute_value(value) - return value - - @classmethod - def substitute_xml_containing_entities( - cls, value, make_quoted_attribute=False): - """Substitute XML entities for special XML characters. - - :param value: A string to be substituted. The less-than sign will - become <, the greater-than sign will become >, and any - ampersands that are not part of an entity defition will - become &. - - :param make_quoted_attribute: If True, then the string will be - quoted, as befits an attribute value. - """ - # Escape angle brackets, and ampersands that aren't part of - # entities. - value = cls.BARE_AMPERSAND_OR_BRACKET.sub( - cls._substitute_xml_entity, value) - - if make_quoted_attribute: - value = cls.quoted_attribute_value(value) - return value - - @classmethod - def substitute_html(cls, s): - """Replace certain Unicode characters with named HTML entities. - - This differs from data.encode(encoding, 'xmlcharrefreplace') - in that the goal is to make the result more readable (to those - with ASCII displays) rather than to recover from - errors. There's absolutely nothing wrong with a UTF-8 string - containg a LATIN SMALL LETTER E WITH ACUTE, but replacing that - character with "é" will make it more readable to some - people. - """ - return cls.CHARACTER_TO_HTML_ENTITY_RE.sub( - cls._substitute_html_entity, s) - - -class EncodingDetector: - """Suggests a number of possible encodings for a bytestring. - - Order of precedence: - - 1. Encodings you specifically tell EncodingDetector to try first - (the override_encodings argument to the constructor). - - 2. An encoding declared within the bytestring itself, either in an - XML declaration (if the bytestring is to be interpreted as an XML - document), or in a <meta> tag (if the bytestring is to be - interpreted as an HTML document.) - - 3. An encoding detected through textual analysis by chardet, - cchardet, or a similar external library. - - 4. UTF-8. - - 5. Windows-1252. - """ - def __init__(self, markup, override_encodings=None, is_html=False, - exclude_encodings=None): - self.override_encodings = override_encodings or [] - exclude_encodings = exclude_encodings or [] - self.exclude_encodings = set([x.lower() for x in exclude_encodings]) - self.chardet_encoding = None - self.is_html = is_html - self.declared_encoding = None - - # First order of business: strip a byte-order mark. - self.markup, self.sniffed_encoding = self.strip_byte_order_mark(markup) - - def _usable(self, encoding, tried): - if encoding is not None: - encoding = encoding.lower() - if encoding in self.exclude_encodings: - return False - if encoding not in tried: - tried.add(encoding) - return True - return False - - @property - def encodings(self): - """Yield a number of encodings that might work for this markup.""" - tried = set() - for e in self.override_encodings: - if self._usable(e, tried): - yield e - - # Did the document originally start with a byte-order mark - # that indicated its encoding? - if self._usable(self.sniffed_encoding, tried): - yield self.sniffed_encoding - - # Look within the document for an XML or HTML encoding - # declaration. - if self.declared_encoding is None: - self.declared_encoding = self.find_declared_encoding( - self.markup, self.is_html) - if self._usable(self.declared_encoding, tried): - yield self.declared_encoding - - # Use third-party character set detection to guess at the - # encoding. - if self.chardet_encoding is None: - self.chardet_encoding = chardet_dammit(self.markup) - if self._usable(self.chardet_encoding, tried): - yield self.chardet_encoding - - # As a last-ditch effort, try utf-8 and windows-1252. - for e in ('utf-8', 'windows-1252'): - if self._usable(e, tried): - yield e - - @classmethod - def strip_byte_order_mark(cls, data): - """If a byte-order mark is present, strip it and return the encoding it implies.""" - encoding = None - if isinstance(data, str): - # Unicode data cannot have a byte-order mark. - return data, encoding - if (len(data) >= 4) and (data[:2] == b'\xfe\xff') \ - and (data[2:4] != '\x00\x00'): - encoding = 'utf-16be' - data = data[2:] - elif (len(data) >= 4) and (data[:2] == b'\xff\xfe') \ - and (data[2:4] != '\x00\x00'): - encoding = 'utf-16le' - data = data[2:] - elif data[:3] == b'\xef\xbb\xbf': - encoding = 'utf-8' - data = data[3:] - elif data[:4] == b'\x00\x00\xfe\xff': - encoding = 'utf-32be' - data = data[4:] - elif data[:4] == b'\xff\xfe\x00\x00': - encoding = 'utf-32le' - data = data[4:] - return data, encoding - - @classmethod - def find_declared_encoding(cls, markup, is_html=False, search_entire_document=False): - """Given a document, tries to find its declared encoding. - - An XML encoding is declared at the beginning of the document. - - An HTML encoding is declared in a <meta> tag, hopefully near the - beginning of the document. - """ - if search_entire_document: - xml_endpos = html_endpos = len(markup) - else: - xml_endpos = 1024 - html_endpos = max(2048, int(len(markup) * 0.05)) - - declared_encoding = None - declared_encoding_match = xml_encoding_re.search(markup, endpos=xml_endpos) - if not declared_encoding_match and is_html: - declared_encoding_match = html_meta_re.search(markup, endpos=html_endpos) - if declared_encoding_match is not None: - declared_encoding = declared_encoding_match.groups()[0].decode( - 'ascii', 'replace') - if declared_encoding: - return declared_encoding.lower() - return None - -class UnicodeDammit: - """A class for detecting the encoding of a *ML document and - converting it to a Unicode string. If the source encoding is - windows-1252, can replace MS smart quotes with their HTML or XML - equivalents.""" - - # This dictionary maps commonly seen values for "charset" in HTML - # meta tags to the corresponding Python codec names. It only covers - # values that aren't in Python's aliases and can't be determined - # by the heuristics in find_codec. - CHARSET_ALIASES = {"macintosh": "mac-roman", - "x-sjis": "shift-jis"} - - ENCODINGS_WITH_SMART_QUOTES = [ - "windows-1252", - "iso-8859-1", - "iso-8859-2", - ] - - def __init__(self, markup, override_encodings=[], - smart_quotes_to=None, is_html=False, exclude_encodings=[]): - self.smart_quotes_to = smart_quotes_to - self.tried_encodings = [] - self.contains_replacement_characters = False - self.is_html = is_html - - self.detector = EncodingDetector( - markup, override_encodings, is_html, exclude_encodings) - - # Short-circuit if the data is in Unicode to begin with. - if isinstance(markup, str) or markup == '': - self.markup = markup - self.unicode_markup = str(markup) - self.original_encoding = None - return - - # The encoding detector may have stripped a byte-order mark. - # Use the stripped markup from this point on. - self.markup = self.detector.markup - - u = None - for encoding in self.detector.encodings: - markup = self.detector.markup - u = self._convert_from(encoding) - if u is not None: - break - - if not u: - # None of the encodings worked. As an absolute last resort, - # try them again with character replacement. - - for encoding in self.detector.encodings: - if encoding != "ascii": - u = self._convert_from(encoding, "replace") - if u is not None: - logging.warning( - "Some characters could not be decoded, and were " - "replaced with REPLACEMENT CHARACTER.") - self.contains_replacement_characters = True - break - - # If none of that worked, we could at this point force it to - # ASCII, but that would destroy so much data that I think - # giving up is better. - self.unicode_markup = u - if not u: - self.original_encoding = None - - def _sub_ms_char(self, match): - """Changes a MS smart quote character to an XML or HTML - entity, or an ASCII character.""" - orig = match.group(1) - if self.smart_quotes_to == 'ascii': - sub = self.MS_CHARS_TO_ASCII.get(orig).encode() - else: - sub = self.MS_CHARS.get(orig) - if type(sub) == tuple: - if self.smart_quotes_to == 'xml': - sub = '&#x'.encode() + sub[1].encode() + ';'.encode() - else: - sub = '&'.encode() + sub[0].encode() + ';'.encode() - else: - sub = sub.encode() - return sub - - def _convert_from(self, proposed, errors="strict"): - proposed = self.find_codec(proposed) - if not proposed or (proposed, errors) in self.tried_encodings: - return None - self.tried_encodings.append((proposed, errors)) - markup = self.markup - # Convert smart quotes to HTML if coming from an encoding - # that might have them. - if (self.smart_quotes_to is not None - and proposed in self.ENCODINGS_WITH_SMART_QUOTES): - smart_quotes_re = b"([\x80-\x9f])" - smart_quotes_compiled = re.compile(smart_quotes_re) - markup = smart_quotes_compiled.sub(self._sub_ms_char, markup) - - try: - #print "Trying to convert document to %s (errors=%s)" % ( - # proposed, errors) - u = self._to_unicode(markup, proposed, errors) - self.markup = u - self.original_encoding = proposed - except Exception as e: - #print "That didn't work!" - #print e - return None - #print "Correct encoding: %s" % proposed - return self.markup - - def _to_unicode(self, data, encoding, errors="strict"): - '''Given a string and its encoding, decodes the string into Unicode. - %encoding is a string recognized by encodings.aliases''' - return str(data, encoding, errors) - - @property - def declared_html_encoding(self): - if not self.is_html: - return None - return self.detector.declared_encoding - - def find_codec(self, charset): - value = (self._codec(self.CHARSET_ALIASES.get(charset, charset)) - or (charset and self._codec(charset.replace("-", ""))) - or (charset and self._codec(charset.replace("-", "_"))) - or (charset and charset.lower()) - or charset - ) - if value: - return value.lower() - return None - - def _codec(self, charset): - if not charset: - return charset - codec = None - try: - codecs.lookup(charset) - codec = charset - except (LookupError, ValueError): - pass - return codec - - - # A partial mapping of ISO-Latin-1 to HTML entities/XML numeric entities. - MS_CHARS = {b'\x80': ('euro', '20AC'), - b'\x81': ' ', - b'\x82': ('sbquo', '201A'), - b'\x83': ('fnof', '192'), - b'\x84': ('bdquo', '201E'), - b'\x85': ('hellip', '2026'), - b'\x86': ('dagger', '2020'), - b'\x87': ('Dagger', '2021'), - b'\x88': ('circ', '2C6'), - b'\x89': ('permil', '2030'), - b'\x8A': ('Scaron', '160'), - b'\x8B': ('lsaquo', '2039'), - b'\x8C': ('OElig', '152'), - b'\x8D': '?', - b'\x8E': ('#x17D', '17D'), - b'\x8F': '?', - b'\x90': '?', - b'\x91': ('lsquo', '2018'), - b'\x92': ('rsquo', '2019'), - b'\x93': ('ldquo', '201C'), - b'\x94': ('rdquo', '201D'), - b'\x95': ('bull', '2022'), - b'\x96': ('ndash', '2013'), - b'\x97': ('mdash', '2014'), - b'\x98': ('tilde', '2DC'), - b'\x99': ('trade', '2122'), - b'\x9a': ('scaron', '161'), - b'\x9b': ('rsaquo', '203A'), - b'\x9c': ('oelig', '153'), - b'\x9d': '?', - b'\x9e': ('#x17E', '17E'), - b'\x9f': ('Yuml', ''),} - - # A parochial partial mapping of ISO-Latin-1 to ASCII. Contains - # horrors like stripping diacritical marks to turn á into a, but also - # contains non-horrors like turning “ into ". - MS_CHARS_TO_ASCII = { - b'\x80' : 'EUR', - b'\x81' : ' ', - b'\x82' : ',', - b'\x83' : 'f', - b'\x84' : ',,', - b'\x85' : '...', - b'\x86' : '+', - b'\x87' : '++', - b'\x88' : '^', - b'\x89' : '%', - b'\x8a' : 'S', - b'\x8b' : '<', - b'\x8c' : 'OE', - b'\x8d' : '?', - b'\x8e' : 'Z', - b'\x8f' : '?', - b'\x90' : '?', - b'\x91' : "'", - b'\x92' : "'", - b'\x93' : '"', - b'\x94' : '"', - b'\x95' : '*', - b'\x96' : '-', - b'\x97' : '--', - b'\x98' : '~', - b'\x99' : '(TM)', - b'\x9a' : 's', - b'\x9b' : '>', - b'\x9c' : 'oe', - b'\x9d' : '?', - b'\x9e' : 'z', - b'\x9f' : 'Y', - b'\xa0' : ' ', - b'\xa1' : '!', - b'\xa2' : 'c', - b'\xa3' : 'GBP', - b'\xa4' : '$', #This approximation is especially parochial--this is the - #generic currency symbol. - b'\xa5' : 'YEN', - b'\xa6' : '|', - b'\xa7' : 'S', - b'\xa8' : '..', - b'\xa9' : '', - b'\xaa' : '(th)', - b'\xab' : '<<', - b'\xac' : '!', - b'\xad' : ' ', - b'\xae' : '(R)', - b'\xaf' : '-', - b'\xb0' : 'o', - b'\xb1' : '+-', - b'\xb2' : '2', - b'\xb3' : '3', - b'\xb4' : ("'", 'acute'), - b'\xb5' : 'u', - b'\xb6' : 'P', - b'\xb7' : '*', - b'\xb8' : ',', - b'\xb9' : '1', - b'\xba' : '(th)', - b'\xbb' : '>>', - b'\xbc' : '1/4', - b'\xbd' : '1/2', - b'\xbe' : '3/4', - b'\xbf' : '?', - b'\xc0' : 'A', - b'\xc1' : 'A', - b'\xc2' : 'A', - b'\xc3' : 'A', - b'\xc4' : 'A', - b'\xc5' : 'A', - b'\xc6' : 'AE', - b'\xc7' : 'C', - b'\xc8' : 'E', - b'\xc9' : 'E', - b'\xca' : 'E', - b'\xcb' : 'E', - b'\xcc' : 'I', - b'\xcd' : 'I', - b'\xce' : 'I', - b'\xcf' : 'I', - b'\xd0' : 'D', - b'\xd1' : 'N', - b'\xd2' : 'O', - b'\xd3' : 'O', - b'\xd4' : 'O', - b'\xd5' : 'O', - b'\xd6' : 'O', - b'\xd7' : '*', - b'\xd8' : 'O', - b'\xd9' : 'U', - b'\xda' : 'U', - b'\xdb' : 'U', - b'\xdc' : 'U', - b'\xdd' : 'Y', - b'\xde' : 'b', - b'\xdf' : 'B', - b'\xe0' : 'a', - b'\xe1' : 'a', - b'\xe2' : 'a', - b'\xe3' : 'a', - b'\xe4' : 'a', - b'\xe5' : 'a', - b'\xe6' : 'ae', - b'\xe7' : 'c', - b'\xe8' : 'e', - b'\xe9' : 'e', - b'\xea' : 'e', - b'\xeb' : 'e', - b'\xec' : 'i', - b'\xed' : 'i', - b'\xee' : 'i', - b'\xef' : 'i', - b'\xf0' : 'o', - b'\xf1' : 'n', - b'\xf2' : 'o', - b'\xf3' : 'o', - b'\xf4' : 'o', - b'\xf5' : 'o', - b'\xf6' : 'o', - b'\xf7' : '/', - b'\xf8' : 'o', - b'\xf9' : 'u', - b'\xfa' : 'u', - b'\xfb' : 'u', - b'\xfc' : 'u', - b'\xfd' : 'y', - b'\xfe' : 'b', - b'\xff' : 'y', - } - - # A map used when removing rogue Windows-1252/ISO-8859-1 - # characters in otherwise UTF-8 documents. - # - # Note that \x81, \x8d, \x8f, \x90, and \x9d are undefined in - # Windows-1252. - WINDOWS_1252_TO_UTF8 = { - 0x80 : b'\xe2\x82\xac', # € - 0x82 : b'\xe2\x80\x9a', # ‚ - 0x83 : b'\xc6\x92', # Æ’ - 0x84 : b'\xe2\x80\x9e', # „ - 0x85 : b'\xe2\x80\xa6', # … - 0x86 : b'\xe2\x80\xa0', # † - 0x87 : b'\xe2\x80\xa1', # ‡ - 0x88 : b'\xcb\x86', # ˆ - 0x89 : b'\xe2\x80\xb0', # ‰ - 0x8a : b'\xc5\xa0', # Å  - 0x8b : b'\xe2\x80\xb9', # ‹ - 0x8c : b'\xc5\x92', # Å’ - 0x8e : b'\xc5\xbd', # Ž - 0x91 : b'\xe2\x80\x98', # ‘ - 0x92 : b'\xe2\x80\x99', # ’ - 0x93 : b'\xe2\x80\x9c', # “ - 0x94 : b'\xe2\x80\x9d', # †- 0x95 : b'\xe2\x80\xa2', # • - 0x96 : b'\xe2\x80\x93', # – - 0x97 : b'\xe2\x80\x94', # — - 0x98 : b'\xcb\x9c', # Ëœ - 0x99 : b'\xe2\x84\xa2', # â„¢ - 0x9a : b'\xc5\xa1', # Å¡ - 0x9b : b'\xe2\x80\xba', # › - 0x9c : b'\xc5\x93', # Å“ - 0x9e : b'\xc5\xbe', # ž - 0x9f : b'\xc5\xb8', # Ÿ - 0xa0 : b'\xc2\xa0', #   - 0xa1 : b'\xc2\xa1', # ¡ - 0xa2 : b'\xc2\xa2', # ¢ - 0xa3 : b'\xc2\xa3', # £ - 0xa4 : b'\xc2\xa4', # ¤ - 0xa5 : b'\xc2\xa5', # Â¥ - 0xa6 : b'\xc2\xa6', # ¦ - 0xa7 : b'\xc2\xa7', # § - 0xa8 : b'\xc2\xa8', # ¨ - 0xa9 : b'\xc2\xa9', # © - 0xaa : b'\xc2\xaa', # ª - 0xab : b'\xc2\xab', # « - 0xac : b'\xc2\xac', # ¬ - 0xad : b'\xc2\xad', # ­ - 0xae : b'\xc2\xae', # ® - 0xaf : b'\xc2\xaf', # ¯ - 0xb0 : b'\xc2\xb0', # ° - 0xb1 : b'\xc2\xb1', # ± - 0xb2 : b'\xc2\xb2', # ² - 0xb3 : b'\xc2\xb3', # ³ - 0xb4 : b'\xc2\xb4', # ´ - 0xb5 : b'\xc2\xb5', # µ - 0xb6 : b'\xc2\xb6', # ¶ - 0xb7 : b'\xc2\xb7', # · - 0xb8 : b'\xc2\xb8', # ¸ - 0xb9 : b'\xc2\xb9', # ¹ - 0xba : b'\xc2\xba', # º - 0xbb : b'\xc2\xbb', # » - 0xbc : b'\xc2\xbc', # ¼ - 0xbd : b'\xc2\xbd', # ½ - 0xbe : b'\xc2\xbe', # ¾ - 0xbf : b'\xc2\xbf', # ¿ - 0xc0 : b'\xc3\x80', # À - 0xc1 : b'\xc3\x81', # à - 0xc2 : b'\xc3\x82', #  - 0xc3 : b'\xc3\x83', # à - 0xc4 : b'\xc3\x84', # Ä - 0xc5 : b'\xc3\x85', # Ã… - 0xc6 : b'\xc3\x86', # Æ - 0xc7 : b'\xc3\x87', # Ç - 0xc8 : b'\xc3\x88', # È - 0xc9 : b'\xc3\x89', # É - 0xca : b'\xc3\x8a', # Ê - 0xcb : b'\xc3\x8b', # Ë - 0xcc : b'\xc3\x8c', # ÃŒ - 0xcd : b'\xc3\x8d', # à - 0xce : b'\xc3\x8e', # ÃŽ - 0xcf : b'\xc3\x8f', # à - 0xd0 : b'\xc3\x90', # à - 0xd1 : b'\xc3\x91', # Ñ - 0xd2 : b'\xc3\x92', # Ã’ - 0xd3 : b'\xc3\x93', # Ó - 0xd4 : b'\xc3\x94', # Ô - 0xd5 : b'\xc3\x95', # Õ - 0xd6 : b'\xc3\x96', # Ö - 0xd7 : b'\xc3\x97', # × - 0xd8 : b'\xc3\x98', # Ø - 0xd9 : b'\xc3\x99', # Ù - 0xda : b'\xc3\x9a', # Ú - 0xdb : b'\xc3\x9b', # Û - 0xdc : b'\xc3\x9c', # Ãœ - 0xdd : b'\xc3\x9d', # à - 0xde : b'\xc3\x9e', # Þ - 0xdf : b'\xc3\x9f', # ß - 0xe0 : b'\xc3\xa0', # à - 0xe1 : b'\xa1', # á - 0xe2 : b'\xc3\xa2', # â - 0xe3 : b'\xc3\xa3', # ã - 0xe4 : b'\xc3\xa4', # ä - 0xe5 : b'\xc3\xa5', # Ã¥ - 0xe6 : b'\xc3\xa6', # æ - 0xe7 : b'\xc3\xa7', # ç - 0xe8 : b'\xc3\xa8', # è - 0xe9 : b'\xc3\xa9', # é - 0xea : b'\xc3\xaa', # ê - 0xeb : b'\xc3\xab', # ë - 0xec : b'\xc3\xac', # ì - 0xed : b'\xc3\xad', # í - 0xee : b'\xc3\xae', # î - 0xef : b'\xc3\xaf', # ï - 0xf0 : b'\xc3\xb0', # ð - 0xf1 : b'\xc3\xb1', # ñ - 0xf2 : b'\xc3\xb2', # ò - 0xf3 : b'\xc3\xb3', # ó - 0xf4 : b'\xc3\xb4', # ô - 0xf5 : b'\xc3\xb5', # õ - 0xf6 : b'\xc3\xb6', # ö - 0xf7 : b'\xc3\xb7', # ÷ - 0xf8 : b'\xc3\xb8', # ø - 0xf9 : b'\xc3\xb9', # ù - 0xfa : b'\xc3\xba', # ú - 0xfb : b'\xc3\xbb', # û - 0xfc : b'\xc3\xbc', # ü - 0xfd : b'\xc3\xbd', # ý - 0xfe : b'\xc3\xbe', # þ - } - - MULTIBYTE_MARKERS_AND_SIZES = [ - (0xc2, 0xdf, 2), # 2-byte characters start with a byte C2-DF - (0xe0, 0xef, 3), # 3-byte characters start with E0-EF - (0xf0, 0xf4, 4), # 4-byte characters start with F0-F4 - ] - - FIRST_MULTIBYTE_MARKER = MULTIBYTE_MARKERS_AND_SIZES[0][0] - LAST_MULTIBYTE_MARKER = MULTIBYTE_MARKERS_AND_SIZES[-1][1] - - @classmethod - def detwingle(cls, in_bytes, main_encoding="utf8", - embedded_encoding="windows-1252"): - """Fix characters from one encoding embedded in some other encoding. - - Currently the only situation supported is Windows-1252 (or its - subset ISO-8859-1), embedded in UTF-8. - - The input must be a bytestring. If you've already converted - the document to Unicode, you're too late. - - The output is a bytestring in which `embedded_encoding` - characters have been converted to their `main_encoding` - equivalents. - """ - if embedded_encoding.replace('_', '-').lower() not in ( - 'windows-1252', 'windows_1252'): - raise NotImplementedError( - "Windows-1252 and ISO-8859-1 are the only currently supported " - "embedded encodings.") - - if main_encoding.lower() not in ('utf8', 'utf-8'): - raise NotImplementedError( - "UTF-8 is the only currently supported main encoding.") - - byte_chunks = [] - - chunk_start = 0 - pos = 0 - while pos < len(in_bytes): - byte = in_bytes[pos] - if not isinstance(byte, int): - # Python 2.x - byte = ord(byte) - if (byte >= cls.FIRST_MULTIBYTE_MARKER - and byte <= cls.LAST_MULTIBYTE_MARKER): - # This is the start of a UTF-8 multibyte character. Skip - # to the end. - for start, end, size in cls.MULTIBYTE_MARKERS_AND_SIZES: - if byte >= start and byte <= end: - pos += size - break - elif byte >= 0x80 and byte in cls.WINDOWS_1252_TO_UTF8: - # We found a Windows-1252 character! - # Save the string up to this point as a chunk. - byte_chunks.append(in_bytes[chunk_start:pos]) - - # Now translate the Windows-1252 character into UTF-8 - # and add it as another, one-byte chunk. - byte_chunks.append(cls.WINDOWS_1252_TO_UTF8[byte]) - pos += 1 - chunk_start = pos - else: - # Go on to the next character. - pos += 1 - if chunk_start == 0: - # The string is unchanged. - return in_bytes - else: - # Store the final chunk. - byte_chunks.append(in_bytes[chunk_start:]) - return b''.join(byte_chunks) - diff --git a/poky/bitbake/lib/bs4/diagnose.py b/poky/bitbake/lib/bs4/diagnose.py deleted file mode 100644 index 083395f..0000000 --- a/poky/bitbake/lib/bs4/diagnose.py +++ /dev/null @@ -1,216 +0,0 @@ -"""Diagnostic functions, mainly for use when doing tech support.""" - -__license__ = "MIT" - -import cProfile -from io import StringIO -from html.parser import HTMLParser -import bs4 -from bs4 import BeautifulSoup, __version__ -from bs4.builder import builder_registry - -import os -import pstats -import random -import tempfile -import time -import traceback -import sys -import cProfile - -def diagnose(data): - """Diagnostic suite for isolating common problems.""" - print("Diagnostic running on Beautiful Soup %s" % __version__) - print("Python version %s" % sys.version) - - basic_parsers = ["html.parser", "html5lib", "lxml"] - for name in basic_parsers: - for builder in builder_registry.builders: - if name in builder.features: - break - else: - basic_parsers.remove(name) - print(( - "I noticed that %s is not installed. Installing it may help." % - name)) - - if 'lxml' in basic_parsers: - basic_parsers.append(["lxml", "xml"]) - try: - from lxml import etree - print("Found lxml version %s" % ".".join(map(str,etree.LXML_VERSION))) - except ImportError as e: - print ( - "lxml is not installed or couldn't be imported.") - - - if 'html5lib' in basic_parsers: - try: - import html5lib - print("Found html5lib version %s" % html5lib.__version__) - except ImportError as e: - print ( - "html5lib is not installed or couldn't be imported.") - - if hasattr(data, 'read'): - data = data.read() - elif os.path.exists(data): - print('"%s" looks like a filename. Reading data from the file.' % data) - data = open(data).read() - elif data.startswith("http:") or data.startswith("https:"): - print('"%s" looks like a URL. Beautiful Soup is not an HTTP client.' % data) - print("You need to use some other library to get the document behind the URL, and feed that document to Beautiful Soup.") - return - print() - - for parser in basic_parsers: - print("Trying to parse your markup with %s" % parser) - success = False - try: - soup = BeautifulSoup(data, parser) - success = True - except Exception as e: - print("%s could not parse the markup." % parser) - traceback.print_exc() - if success: - print("Here's what %s did with the markup:" % parser) - print(soup.prettify()) - - print("-" * 80) - -def lxml_trace(data, html=True, **kwargs): - """Print out the lxml events that occur during parsing. - - This lets you see how lxml parses a document when no Beautiful - Soup code is running. - """ - from lxml import etree - for event, element in etree.iterparse(StringIO(data), html=html, **kwargs): - print(("%s, %4s, %s" % (event, element.tag, element.text))) - -class AnnouncingParser(HTMLParser): - """Announces HTMLParser parse events, without doing anything else.""" - - def _p(self, s): - print(s) - - def handle_starttag(self, name, attrs): - self._p("%s START" % name) - - def handle_endtag(self, name): - self._p("%s END" % name) - - def handle_data(self, data): - self._p("%s DATA" % data) - - def handle_charref(self, name): - self._p("%s CHARREF" % name) - - def handle_entityref(self, name): - self._p("%s ENTITYREF" % name) - - def handle_comment(self, data): - self._p("%s COMMENT" % data) - - def handle_decl(self, data): - self._p("%s DECL" % data) - - def unknown_decl(self, data): - self._p("%s UNKNOWN-DECL" % data) - - def handle_pi(self, data): - self._p("%s PI" % data) - -def htmlparser_trace(data): - """Print out the HTMLParser events that occur during parsing. - - This lets you see how HTMLParser parses a document when no - Beautiful Soup code is running. - """ - parser = AnnouncingParser() - parser.feed(data) - -_vowels = "aeiou" -_consonants = "bcdfghjklmnpqrstvwxyz" - -def rword(length=5): - "Generate a random word-like string." - s = '' - for i in range(length): - if i % 2 == 0: - t = _consonants - else: - t = _vowels - s += random.choice(t) - return s - -def rsentence(length=4): - "Generate a random sentence-like string." - return " ".join(rword(random.randint(4,9)) for i in range(length)) - -def rdoc(num_elements=1000): - """Randomly generate an invalid HTML document.""" - tag_names = ['p', 'div', 'span', 'i', 'b', 'script', 'table'] - elements = [] - for i in range(num_elements): - choice = random.randint(0,3) - if choice == 0: - # New tag. - tag_name = random.choice(tag_names) - elements.append("<%s>" % tag_name) - elif choice == 1: - elements.append(rsentence(random.randint(1,4))) - elif choice == 2: - # Close a tag. - tag_name = random.choice(tag_names) - elements.append("</%s>" % tag_name) - return "<html>" + "\n".join(elements) + "</html>" - -def benchmark_parsers(num_elements=100000): - """Very basic head-to-head performance benchmark.""" - print("Comparative parser benchmark on Beautiful Soup %s" % __version__) - data = rdoc(num_elements) - print("Generated a large invalid HTML document (%d bytes)." % len(data)) - - for parser in ["lxml", ["lxml", "html"], "html5lib", "html.parser"]: - success = False - try: - a = time.time() - soup = BeautifulSoup(data, parser) - b = time.time() - success = True - except Exception as e: - print("%s could not parse the markup." % parser) - traceback.print_exc() - if success: - print("BS4+%s parsed the markup in %.2fs." % (parser, b-a)) - - from lxml import etree - a = time.time() - etree.HTML(data) - b = time.time() - print("Raw lxml parsed the markup in %.2fs." % (b-a)) - - import html5lib - parser = html5lib.HTMLParser() - a = time.time() - parser.parse(data) - b = time.time() - print("Raw html5lib parsed the markup in %.2fs." % (b-a)) - -def profile(num_elements=100000, parser="lxml"): - - filehandle = tempfile.NamedTemporaryFile() - filename = filehandle.name - - data = rdoc(num_elements) - vars = dict(bs4=bs4, data=data, parser=parser) - cProfile.runctx('bs4.BeautifulSoup(data, parser)' , vars, vars, filename) - - stats = pstats.Stats(filename) - # stats.strip_dirs() - stats.sort_stats("cumulative") - stats.print_stats('_html5lib|bs4', 50) - -if __name__ == '__main__': - diagnose(sys.stdin.read()) diff --git a/poky/bitbake/lib/bs4/element.py b/poky/bitbake/lib/bs4/element.py deleted file mode 100644 index 0e62c2e..0000000 --- a/poky/bitbake/lib/bs4/element.py +++ /dev/null @@ -1,1725 +0,0 @@ -__license__ = "MIT" - -from pdb import set_trace -import collections -import re -import sys -import warnings -from bs4.dammit import EntitySubstitution - -DEFAULT_OUTPUT_ENCODING = "utf-8" -PY3K = (sys.version_info[0] > 2) - -whitespace_re = re.compile("\s+") - -def _alias(attr): - """Alias one attribute name to another for backward compatibility""" - @property - def alias(self): - return getattr(self, attr) - - @alias.setter - def alias(self): - return setattr(self, attr) - return alias - - -class NamespacedAttribute(str): - - def __new__(cls, prefix, name, namespace=None): - if name is None: - obj = str.__new__(cls, prefix) - elif prefix is None: - # Not really namespaced. - obj = str.__new__(cls, name) - else: - obj = str.__new__(cls, prefix + ":" + name) - obj.prefix = prefix - obj.name = name - obj.namespace = namespace - return obj - -class AttributeValueWithCharsetSubstitution(str): - """A stand-in object for a character encoding specified in HTML.""" - -class CharsetMetaAttributeValue(AttributeValueWithCharsetSubstitution): - """A generic stand-in for the value of a meta tag's 'charset' attribute. - - When Beautiful Soup parses the markup '<meta charset="utf8">', the - value of the 'charset' attribute will be one of these objects. - """ - - def __new__(cls, original_value): - obj = str.__new__(cls, original_value) - obj.original_value = original_value - return obj - - def encode(self, encoding): - return encoding - - -class ContentMetaAttributeValue(AttributeValueWithCharsetSubstitution): - """A generic stand-in for the value of a meta tag's 'content' attribute. - - When Beautiful Soup parses the markup: - <meta http-equiv="content-type" content="text/html; charset=utf8"> - - The value of the 'content' attribute will be one of these objects. - """ - - CHARSET_RE = re.compile("((^|;)\s*charset=)([^;]*)", re.M) - - def __new__(cls, original_value): - match = cls.CHARSET_RE.search(original_value) - if match is None: - # No substitution necessary. - return str.__new__(str, original_value) - - obj = str.__new__(cls, original_value) - obj.original_value = original_value - return obj - - def encode(self, encoding): - def rewrite(match): - return match.group(1) + encoding - return self.CHARSET_RE.sub(rewrite, self.original_value) - -class HTMLAwareEntitySubstitution(EntitySubstitution): - - """Entity substitution rules that are aware of some HTML quirks. - - Specifically, the contents of <script> and <style> tags should not - undergo entity substitution. - - Incoming NavigableString objects are checked to see if they're the - direct children of a <script> or <style> tag. - """ - - cdata_containing_tags = set(["script", "style"]) - - preformatted_tags = set(["pre"]) - - @classmethod - def _substitute_if_appropriate(cls, ns, f): - if (isinstance(ns, NavigableString) - and ns.parent is not None - and ns.parent.name in cls.cdata_containing_tags): - # Do nothing. - return ns - # Substitute. - return f(ns) - - @classmethod - def substitute_html(cls, ns): - return cls._substitute_if_appropriate( - ns, EntitySubstitution.substitute_html) - - @classmethod - def substitute_xml(cls, ns): - return cls._substitute_if_appropriate( - ns, EntitySubstitution.substitute_xml) - -class PageElement(object): - """Contains the navigational information for some part of the page - (either a tag or a piece of text)""" - - # There are five possible values for the "formatter" argument passed in - # to methods like encode() and prettify(): - # - # "html" - All Unicode characters with corresponding HTML entities - # are converted to those entities on output. - # "minimal" - Bare ampersands and angle brackets are converted to - # XML entities: & < > - # None - The null formatter. Unicode characters are never - # converted to entities. This is not recommended, but it's - # faster than "minimal". - # A function - This function will be called on every string that - # needs to undergo entity substitution. - # - - # In an HTML document, the default "html" and "minimal" functions - # will leave the contents of <script> and <style> tags alone. For - # an XML document, all tags will be given the same treatment. - - HTML_FORMATTERS = { - "html" : HTMLAwareEntitySubstitution.substitute_html, - "minimal" : HTMLAwareEntitySubstitution.substitute_xml, - None : None - } - - XML_FORMATTERS = { - "html" : EntitySubstitution.substitute_html, - "minimal" : EntitySubstitution.substitute_xml, - None : None - } - - def format_string(self, s, formatter='minimal'): - """Format the given string using the given formatter.""" - if not isinstance(formatter, collections.Callable): - formatter = self._formatter_for_name(formatter) - if formatter is None: - output = s - else: - output = formatter(s) - return output - - @property - def _is_xml(self): - """Is this element part of an XML tree or an HTML tree? - - This is used when mapping a formatter name ("minimal") to an - appropriate function (one that performs entity-substitution on - the contents of <script> and <style> tags, or not). It's - inefficient, but it should be called very rarely. - """ - if self.parent is None: - # This is the top-level object. It should have .is_xml set - # from tree creation. If not, take a guess--BS is usually - # used on HTML markup. - return getattr(self, 'is_xml', False) - return self.parent._is_xml - - def _formatter_for_name(self, name): - "Look up a formatter function based on its name and the tree." - if self._is_xml: - return self.XML_FORMATTERS.get( - name, EntitySubstitution.substitute_xml) - else: - return self.HTML_FORMATTERS.get( - name, HTMLAwareEntitySubstitution.substitute_xml) - - def setup(self, parent=None, previous_element=None, next_element=None, - previous_sibling=None, next_sibling=None): - """Sets up the initial relations between this element and - other elements.""" - self.parent = parent - - self.previous_element = previous_element - if previous_element is not None: - self.previous_element.next_element = self - - self.next_element = next_element - if self.next_element: - self.next_element.previous_element = self - - self.next_sibling = next_sibling - if self.next_sibling: - self.next_sibling.previous_sibling = self - - if (not previous_sibling - and self.parent is not None and self.parent.contents): - previous_sibling = self.parent.contents[-1] - - self.previous_sibling = previous_sibling - if previous_sibling: - self.previous_sibling.next_sibling = self - - nextSibling = _alias("next_sibling") # BS3 - previousSibling = _alias("previous_sibling") # BS3 - - def replace_with(self, replace_with): - if not self.parent: - raise ValueError( - "Cannot replace one element with another when the" - "element to be replaced is not part of a tree.") - if replace_with is self: - return - if replace_with is self.parent: - raise ValueError("Cannot replace a Tag with its parent.") - old_parent = self.parent - my_index = self.parent.index(self) - self.extract() - old_parent.insert(my_index, replace_with) - return self - replaceWith = replace_with # BS3 - - def unwrap(self): - my_parent = self.parent - if not self.parent: - raise ValueError( - "Cannot replace an element with its contents when that" - "element is not part of a tree.") - my_index = self.parent.index(self) - self.extract() - for child in reversed(self.contents[:]): - my_parent.insert(my_index, child) - return self - replace_with_children = unwrap - replaceWithChildren = unwrap # BS3 - - def wrap(self, wrap_inside): - me = self.replace_with(wrap_inside) - wrap_inside.append(me) - return wrap_inside - - def extract(self): - """Destructively rips this element out of the tree.""" - if self.parent is not None: - del self.parent.contents[self.parent.index(self)] - - #Find the two elements that would be next to each other if - #this element (and any children) hadn't been parsed. Connect - #the two. - last_child = self._last_descendant() - next_element = last_child.next_element - - if (self.previous_element is not None and - self.previous_element is not next_element): - self.previous_element.next_element = next_element - if next_element is not None and next_element is not self.previous_element: - next_element.previous_element = self.previous_element - self.previous_element = None - last_child.next_element = None - - self.parent = None - if (self.previous_sibling is not None - and self.previous_sibling is not self.next_sibling): - self.previous_sibling.next_sibling = self.next_sibling - if (self.next_sibling is not None - and self.next_sibling is not self.previous_sibling): - self.next_sibling.previous_sibling = self.previous_sibling - self.previous_sibling = self.next_sibling = None - return self - - def _last_descendant(self, is_initialized=True, accept_self=True): - "Finds the last element beneath this object to be parsed." - if is_initialized and self.next_sibling: - last_child = self.next_sibling.previous_element - else: - last_child = self - while isinstance(last_child, Tag) and last_child.contents: - last_child = last_child.contents[-1] - if not accept_self and last_child is self: - last_child = None - return last_child - # BS3: Not part of the API! - _lastRecursiveChild = _last_descendant - - def insert(self, position, new_child): - if new_child is None: - raise ValueError("Cannot insert None into a tag.") - if new_child is self: - raise ValueError("Cannot insert a tag into itself.") - if (isinstance(new_child, str) - and not isinstance(new_child, NavigableString)): - new_child = NavigableString(new_child) - - position = min(position, len(self.contents)) - if hasattr(new_child, 'parent') and new_child.parent is not None: - # We're 'inserting' an element that's already one - # of this object's children. - if new_child.parent is self: - current_index = self.index(new_child) - if current_index < position: - # We're moving this element further down the list - # of this object's children. That means that when - # we extract this element, our target index will - # jump down one. - position -= 1 - new_child.extract() - - new_child.parent = self - previous_child = None - if position == 0: - new_child.previous_sibling = None - new_child.previous_element = self - else: - previous_child = self.contents[position - 1] - new_child.previous_sibling = previous_child - new_child.previous_sibling.next_sibling = new_child - new_child.previous_element = previous_child._last_descendant(False) - if new_child.previous_element is not None: - new_child.previous_element.next_element = new_child - - new_childs_last_element = new_child._last_descendant(False) - - if position >= len(self.contents): - new_child.next_sibling = None - - parent = self - parents_next_sibling = None - while parents_next_sibling is None and parent is not None: - parents_next_sibling = parent.next_sibling - parent = parent.parent - if parents_next_sibling is not None: - # We found the element that comes next in the document. - break - if parents_next_sibling is not None: - new_childs_last_element.next_element = parents_next_sibling - else: - # The last element of this tag is the last element in - # the document. - new_childs_last_element.next_element = None - else: - next_child = self.contents[position] - new_child.next_sibling = next_child - if new_child.next_sibling is not None: - new_child.next_sibling.previous_sibling = new_child - new_childs_last_element.next_element = next_child - - if new_childs_last_element.next_element is not None: - new_childs_last_element.next_element.previous_element = new_childs_last_element - self.contents.insert(position, new_child) - - def append(self, tag): - """Appends the given tag to the contents of this tag.""" - self.insert(len(self.contents), tag) - - def insert_before(self, predecessor): - """Makes the given element the immediate predecessor of this one. - - The two elements will have the same parent, and the given element - will be immediately before this one. - """ - if self is predecessor: - raise ValueError("Can't insert an element before itself.") - parent = self.parent - if parent is None: - raise ValueError( - "Element has no parent, so 'before' has no meaning.") - # Extract first so that the index won't be screwed up if they - # are siblings. - if isinstance(predecessor, PageElement): - predecessor.extract() - index = parent.index(self) - parent.insert(index, predecessor) - - def insert_after(self, successor): - """Makes the given element the immediate successor of this one. - - The two elements will have the same parent, and the given element - will be immediately after this one. - """ - if self is successor: - raise ValueError("Can't insert an element after itself.") - parent = self.parent - if parent is None: - raise ValueError( - "Element has no parent, so 'after' has no meaning.") - # Extract first so that the index won't be screwed up if they - # are siblings. - if isinstance(successor, PageElement): - successor.extract() - index = parent.index(self) - parent.insert(index+1, successor) - - def find_next(self, name=None, attrs={}, text=None, **kwargs): - """Returns the first item that matches the given criteria and - appears after this Tag in the document.""" - return self._find_one(self.find_all_next, name, attrs, text, **kwargs) - findNext = find_next # BS3 - - def find_all_next(self, name=None, attrs={}, text=None, limit=None, - **kwargs): - """Returns all items that match the given criteria and appear - after this Tag in the document.""" - return self._find_all(name, attrs, text, limit, self.next_elements, - **kwargs) - findAllNext = find_all_next # BS3 - - def find_next_sibling(self, name=None, attrs={}, text=None, **kwargs): - """Returns the closest sibling to this Tag that matches the - given criteria and appears after this Tag in the document.""" - return self._find_one(self.find_next_siblings, name, attrs, text, - **kwargs) - findNextSibling = find_next_sibling # BS3 - - def find_next_siblings(self, name=None, attrs={}, text=None, limit=None, - **kwargs): - """Returns the siblings of this Tag that match the given - criteria and appear after this Tag in the document.""" - return self._find_all(name, attrs, text, limit, - self.next_siblings, **kwargs) - findNextSiblings = find_next_siblings # BS3 - fetchNextSiblings = find_next_siblings # BS2 - - def find_previous(self, name=None, attrs={}, text=None, **kwargs): - """Returns the first item that matches the given criteria and - appears before this Tag in the document.""" - return self._find_one( - self.find_all_previous, name, attrs, text, **kwargs) - findPrevious = find_previous # BS3 - - def find_all_previous(self, name=None, attrs={}, text=None, limit=None, - **kwargs): - """Returns all items that match the given criteria and appear - before this Tag in the document.""" - return self._find_all(name, attrs, text, limit, self.previous_elements, - **kwargs) - findAllPrevious = find_all_previous # BS3 - fetchPrevious = find_all_previous # BS2 - - def find_previous_sibling(self, name=None, attrs={}, text=None, **kwargs): - """Returns the closest sibling to this Tag that matches the - given criteria and appears before this Tag in the document.""" - return self._find_one(self.find_previous_siblings, name, attrs, text, - **kwargs) - findPreviousSibling = find_previous_sibling # BS3 - - def find_previous_siblings(self, name=None, attrs={}, text=None, - limit=None, **kwargs): - """Returns the siblings of this Tag that match the given - criteria and appear before this Tag in the document.""" - return self._find_all(name, attrs, text, limit, - self.previous_siblings, **kwargs) - findPreviousSiblings = find_previous_siblings # BS3 - fetchPreviousSiblings = find_previous_siblings # BS2 - - def find_parent(self, name=None, attrs={}, **kwargs): - """Returns the closest parent of this Tag that matches the given - criteria.""" - # NOTE: We can't use _find_one because findParents takes a different - # set of arguments. - r = None - l = self.find_parents(name, attrs, 1, **kwargs) - if l: - r = l[0] - return r - findParent = find_parent # BS3 - - def find_parents(self, name=None, attrs={}, limit=None, **kwargs): - """Returns the parents of this Tag that match the given - criteria.""" - - return self._find_all(name, attrs, None, limit, self.parents, - **kwargs) - findParents = find_parents # BS3 - fetchParents = find_parents # BS2 - - @property - def next(self): - return self.next_element - - @property - def previous(self): - return self.previous_element - - #These methods do the real heavy lifting. - - def _find_one(self, method, name, attrs, text, **kwargs): - r = None - l = method(name, attrs, text, 1, **kwargs) - if l: - r = l[0] - return r - - def _find_all(self, name, attrs, text, limit, generator, **kwargs): - "Iterates over a generator looking for things that match." - - if text is None and 'string' in kwargs: - text = kwargs['string'] - del kwargs['string'] - - if isinstance(name, SoupStrainer): - strainer = name - else: - strainer = SoupStrainer(name, attrs, text, **kwargs) - - if text is None and not limit and not attrs and not kwargs: - if name is True or name is None: - # Optimization to find all tags. - result = (element for element in generator - if isinstance(element, Tag)) - return ResultSet(strainer, result) - elif isinstance(name, str): - # Optimization to find all tags with a given name. - result = (element for element in generator - if isinstance(element, Tag) - and element.name == name) - return ResultSet(strainer, result) - results = ResultSet(strainer) - while True: - try: - i = next(generator) - except StopIteration: - break - if i: - found = strainer.search(i) - if found: - results.append(found) - if limit and len(results) >= limit: - break - return results - - #These generators can be used to navigate starting from both - #NavigableStrings and Tags. - @property - def next_elements(self): - i = self.next_element - while i is not None: - yield i - i = i.next_element - - @property - def next_siblings(self): - i = self.next_sibling - while i is not None: - yield i - i = i.next_sibling - - @property - def previous_elements(self): - i = self.previous_element - while i is not None: - yield i - i = i.previous_element - - @property - def previous_siblings(self): - i = self.previous_sibling - while i is not None: - yield i - i = i.previous_sibling - - @property - def parents(self): - i = self.parent - while i is not None: - yield i - i = i.parent - - # Methods for supporting CSS selectors. - - tag_name_re = re.compile('^[a-zA-Z0-9][-.a-zA-Z0-9:_]*$') - - # /^([a-zA-Z0-9][-.a-zA-Z0-9:_]*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/ - # \---------------------------/ \---/\-------------/ \-------/ - # | | | | - # | | | The value - # | | ~,|,^,$,* or = - # | Attribute - # Tag - attribselect_re = re.compile( - r'^(?P<tag>[a-zA-Z0-9][-.a-zA-Z0-9:_]*)?\[(?P<attribute>[\w-]+)(?P<operator>[=~\|\^\$\*]?)' + - r'=?"?(?P<value>[^\]"]*)"?\]$' - ) - - def _attr_value_as_string(self, value, default=None): - """Force an attribute value into a string representation. - - A multi-valued attribute will be converted into a - space-separated stirng. - """ - value = self.get(value, default) - if isinstance(value, list) or isinstance(value, tuple): - value =" ".join(value) - return value - - def _tag_name_matches_and(self, function, tag_name): - if not tag_name: - return function - else: - def _match(tag): - return tag.name == tag_name and function(tag) - return _match - - def _attribute_checker(self, operator, attribute, value=''): - """Create a function that performs a CSS selector operation. - - Takes an operator, attribute and optional value. Returns a - function that will return True for elements that match that - combination. - """ - if operator == '=': - # string representation of `attribute` is equal to `value` - return lambda el: el._attr_value_as_string(attribute) == value - elif operator == '~': - # space-separated list representation of `attribute` - # contains `value` - def _includes_value(element): - attribute_value = element.get(attribute, []) - if not isinstance(attribute_value, list): - attribute_value = attribute_value.split() - return value in attribute_value - return _includes_value - elif operator == '^': - # string representation of `attribute` starts with `value` - return lambda el: el._attr_value_as_string( - attribute, '').startswith(value) - elif operator == '$': - # string represenation of `attribute` ends with `value` - return lambda el: el._attr_value_as_string( - attribute, '').endswith(value) - elif operator == '*': - # string representation of `attribute` contains `value` - return lambda el: value in el._attr_value_as_string(attribute, '') - elif operator == '|': - # string representation of `attribute` is either exactly - # `value` or starts with `value` and then a dash. - def _is_or_starts_with_dash(element): - attribute_value = element._attr_value_as_string(attribute, '') - return (attribute_value == value or attribute_value.startswith( - value + '-')) - return _is_or_starts_with_dash - else: - return lambda el: el.has_attr(attribute) - - # Old non-property versions of the generators, for backwards - # compatibility with BS3. - def nextGenerator(self): - return self.next_elements - - def nextSiblingGenerator(self): - return self.next_siblings - - def previousGenerator(self): - return self.previous_elements - - def previousSiblingGenerator(self): - return self.previous_siblings - - def parentGenerator(self): - return self.parents - - -class NavigableString(str, PageElement): - - PREFIX = '' - SUFFIX = '' - - def __new__(cls, value): - """Create a new NavigableString. - - When unpickling a NavigableString, this method is called with - the string in DEFAULT_OUTPUT_ENCODING. That encoding needs to be - passed in to the superclass's __new__ or the superclass won't know - how to handle non-ASCII characters. - """ - if isinstance(value, str): - u = str.__new__(cls, value) - else: - u = str.__new__(cls, value, DEFAULT_OUTPUT_ENCODING) - u.setup() - return u - - def __copy__(self): - """A copy of a NavigableString has the same contents and class - as the original, but it is not connected to the parse tree. - """ - return type(self)(self) - - def __getnewargs__(self): - return (str(self),) - - def __getattr__(self, attr): - """text.string gives you text. This is for backwards - compatibility for Navigable*String, but for CData* it lets you - get the string without the CData wrapper.""" - if attr == 'string': - return self - else: - raise AttributeError( - "'%s' object has no attribute '%s'" % ( - self.__class__.__name__, attr)) - - def output_ready(self, formatter="minimal"): - output = self.format_string(self, formatter) - return self.PREFIX + output + self.SUFFIX - - @property - def name(self): - return None - - @name.setter - def name(self, name): - raise AttributeError("A NavigableString cannot be given a name.") - -class PreformattedString(NavigableString): - """A NavigableString not subject to the normal formatting rules. - - The string will be passed into the formatter (to trigger side effects), - but the return value will be ignored. - """ - - def output_ready(self, formatter="minimal"): - """CData strings are passed into the formatter. - But the return value is ignored.""" - self.format_string(self, formatter) - return self.PREFIX + self + self.SUFFIX - -class CData(PreformattedString): - - PREFIX = '<![CDATA[' - SUFFIX = ']]>' - -class ProcessingInstruction(PreformattedString): - - PREFIX = '<?' - SUFFIX = '>' - -class Comment(PreformattedString): - - PREFIX = '<!--' - SUFFIX = '-->' - - -class Declaration(PreformattedString): - PREFIX = '<?' - SUFFIX = '?>' - - -class Doctype(PreformattedString): - - @classmethod - def for_name_and_ids(cls, name, pub_id, system_id): - value = name or '' - if pub_id is not None: - value += ' PUBLIC "%s"' % pub_id - if system_id is not None: - value += ' "%s"' % system_id - elif system_id is not None: - value += ' SYSTEM "%s"' % system_id - - return Doctype(value) - - PREFIX = '<!DOCTYPE ' - SUFFIX = '>\n' - - -class Tag(PageElement): - - """Represents a found HTML tag with its attributes and contents.""" - - def __init__(self, parser=None, builder=None, name=None, namespace=None, - prefix=None, attrs=None, parent=None, previous=None): - "Basic constructor." - - if parser is None: - self.parser_class = None - else: - # We don't actually store the parser object: that lets extracted - # chunks be garbage-collected. - self.parser_class = parser.__class__ - if name is None: - raise ValueError("No value provided for new tag's name.") - self.name = name - self.namespace = namespace - self.prefix = prefix - if attrs is None: - attrs = {} - elif attrs: - if builder is not None and builder.cdata_list_attributes: - attrs = builder._replace_cdata_list_attribute_values( - self.name, attrs) - else: - attrs = dict(attrs) - else: - attrs = dict(attrs) - self.attrs = attrs - self.contents = [] - self.setup(parent, previous) - self.hidden = False - - # Set up any substitutions, such as the charset in a META tag. - if builder is not None: - builder.set_up_substitutions(self) - self.can_be_empty_element = builder.can_be_empty_element(name) - else: - self.can_be_empty_element = False - - parserClass = _alias("parser_class") # BS3 - - def __copy__(self): - """A copy of a Tag is a new Tag, unconnected to the parse tree. - Its contents are a copy of the old Tag's contents. - """ - clone = type(self)(None, self.builder, self.name, self.namespace, - self.nsprefix, self.attrs) - for attr in ('can_be_empty_element', 'hidden'): - setattr(clone, attr, getattr(self, attr)) - for child in self.contents: - clone.append(child.__copy__()) - return clone - - @property - def is_empty_element(self): - """Is this tag an empty-element tag? (aka a self-closing tag) - - A tag that has contents is never an empty-element tag. - - A tag that has no contents may or may not be an empty-element - tag. It depends on the builder used to create the tag. If the - builder has a designated list of empty-element tags, then only - a tag whose name shows up in that list is considered an - empty-element tag. - - If the builder has no designated list of empty-element tags, - then any tag with no contents is an empty-element tag. - """ - return len(self.contents) == 0 and self.can_be_empty_element - isSelfClosing = is_empty_element # BS3 - - @property - def string(self): - """Convenience property to get the single string within this tag. - - :Return: If this tag has a single string child, return value - is that string. If this tag has no children, or more than one - child, return value is None. If this tag has one child tag, - return value is the 'string' attribute of the child tag, - recursively. - """ - if len(self.contents) != 1: - return None - child = self.contents[0] - if isinstance(child, NavigableString): - return child - return child.string - - @string.setter - def string(self, string): - self.clear() - self.append(string.__class__(string)) - - def _all_strings(self, strip=False, types=(NavigableString, CData)): - """Yield all strings of certain classes, possibly stripping them. - - By default, yields only NavigableString and CData objects. So - no comments, processing instructions, etc. - """ - for descendant in self.descendants: - if ( - (types is None and not isinstance(descendant, NavigableString)) - or - (types is not None and type(descendant) not in types)): - continue - if strip: - descendant = descendant.strip() - if len(descendant) == 0: - continue - yield descendant - - strings = property(_all_strings) - - @property - def stripped_strings(self): - for string in self._all_strings(True): - yield string - - def get_text(self, separator="", strip=False, - types=(NavigableString, CData)): - """ - Get all child strings, concatenated using the given separator. - """ - return separator.join([s for s in self._all_strings( - strip, types=types)]) - getText = get_text - text = property(get_text) - - def decompose(self): - """Recursively destroys the contents of this tree.""" - self.extract() - i = self - while i is not None: - next = i.next_element - i.__dict__.clear() - i.contents = [] - i = next - - def clear(self, decompose=False): - """ - Extract all children. If decompose is True, decompose instead. - """ - if decompose: - for element in self.contents[:]: - if isinstance(element, Tag): - element.decompose() - else: - element.extract() - else: - for element in self.contents[:]: - element.extract() - - def index(self, element): - """ - Find the index of a child by identity, not value. Avoids issues with - tag.contents.index(element) getting the index of equal elements. - """ - for i, child in enumerate(self.contents): - if child is element: - return i - raise ValueError("Tag.index: element not in tag") - - def get(self, key, default=None): - """Returns the value of the 'key' attribute for the tag, or - the value given for 'default' if it doesn't have that - attribute.""" - return self.attrs.get(key, default) - - def has_attr(self, key): - return key in self.attrs - - def __hash__(self): - return str(self).__hash__() - - def __getitem__(self, key): - """tag[key] returns the value of the 'key' attribute for the tag, - and throws an exception if it's not there.""" - return self.attrs[key] - - def __iter__(self): - "Iterating over a tag iterates over its contents." - return iter(self.contents) - - def __len__(self): - "The length of a tag is the length of its list of contents." - return len(self.contents) - - def __contains__(self, x): - return x in self.contents - - def __bool__(self): - "A tag is non-None even if it has no contents." - return True - - def __setitem__(self, key, value): - """Setting tag[key] sets the value of the 'key' attribute for the - tag.""" - self.attrs[key] = value - - def __delitem__(self, key): - "Deleting tag[key] deletes all 'key' attributes for the tag." - self.attrs.pop(key, None) - - def __call__(self, *args, **kwargs): - """Calling a tag like a function is the same as calling its - find_all() method. Eg. tag('a') returns a list of all the A tags - found within this tag.""" - return self.find_all(*args, **kwargs) - - def __getattr__(self, tag): - #print "Getattr %s.%s" % (self.__class__, tag) - if len(tag) > 3 and tag.endswith('Tag'): - # BS3: soup.aTag -> "soup.find("a") - tag_name = tag[:-3] - warnings.warn( - '.%sTag is deprecated, use .find("%s") instead.' % ( - tag_name, tag_name)) - return self.find(tag_name) - # We special case contents to avoid recursion. - elif not tag.startswith("__") and not tag=="contents": - return self.find(tag) - raise AttributeError( - "'%s' object has no attribute '%s'" % (self.__class__, tag)) - - def __eq__(self, other): - """Returns true iff this tag has the same name, the same attributes, - and the same contents (recursively) as the given tag.""" - if self is other: - return True - if (not hasattr(other, 'name') or - not hasattr(other, 'attrs') or - not hasattr(other, 'contents') or - self.name != other.name or - self.attrs != other.attrs or - len(self) != len(other)): - return False - for i, my_child in enumerate(self.contents): - if my_child != other.contents[i]: - return False - return True - - def __ne__(self, other): - """Returns true iff this tag is not identical to the other tag, - as defined in __eq__.""" - return not self == other - - def __repr__(self, encoding="unicode-escape"): - """Renders this tag as a string.""" - if PY3K: - # "The return value must be a string object", i.e. Unicode - return self.decode() - else: - # "The return value must be a string object", i.e. a bytestring. - # By convention, the return value of __repr__ should also be - # an ASCII string. - return self.encode(encoding) - - def __unicode__(self): - return self.decode() - - def __str__(self): - if PY3K: - return self.decode() - else: - return self.encode() - - if PY3K: - __str__ = __repr__ = __unicode__ - - def encode(self, encoding=DEFAULT_OUTPUT_ENCODING, - indent_level=None, formatter="minimal", - errors="xmlcharrefreplace"): - # Turn the data structure into Unicode, then encode the - # Unicode. - u = self.decode(indent_level, encoding, formatter) - return u.encode(encoding, errors) - - def _should_pretty_print(self, indent_level): - """Should this tag be pretty-printed?""" - return ( - indent_level is not None and - (self.name not in HTMLAwareEntitySubstitution.preformatted_tags - or self._is_xml)) - - def decode(self, indent_level=None, - eventual_encoding=DEFAULT_OUTPUT_ENCODING, - formatter="minimal"): - """Returns a Unicode representation of this tag and its contents. - - :param eventual_encoding: The tag is destined to be - encoded into this encoding. This method is _not_ - responsible for performing that encoding. This information - is passed in so that it can be substituted in if the - document contains a <META> tag that mentions the document's - encoding. - """ - - # First off, turn a string formatter into a function. This - # will stop the lookup from happening over and over again. - if not isinstance(formatter, collections.Callable): - formatter = self._formatter_for_name(formatter) - - attrs = [] - if self.attrs: - for key, val in sorted(self.attrs.items()): - if val is None: - decoded = key - else: - if isinstance(val, list) or isinstance(val, tuple): - val = ' '.join(val) - elif not isinstance(val, str): - val = str(val) - elif ( - isinstance(val, AttributeValueWithCharsetSubstitution) - and eventual_encoding is not None): - val = val.encode(eventual_encoding) - - text = self.format_string(val, formatter) - decoded = ( - str(key) + '=' - + EntitySubstitution.quoted_attribute_value(text)) - attrs.append(decoded) - close = '' - closeTag = '' - - prefix = '' - if self.prefix: - prefix = self.prefix + ":" - - if self.is_empty_element: - close = '/' - else: - closeTag = '</%s%s>' % (prefix, self.name) - - pretty_print = self._should_pretty_print(indent_level) - space = '' - indent_space = '' - if indent_level is not None: - indent_space = (' ' * (indent_level - 1)) - if pretty_print: - space = indent_space - indent_contents = indent_level + 1 - else: - indent_contents = None - contents = self.decode_contents( - indent_contents, eventual_encoding, formatter) - - if self.hidden: - # This is the 'document root' object. - s = contents - else: - s = [] - attribute_string = '' - if attrs: - attribute_string = ' ' + ' '.join(attrs) - if indent_level is not None: - # Even if this particular tag is not pretty-printed, - # we should indent up to the start of the tag. - s.append(indent_space) - s.append('<%s%s%s%s>' % ( - prefix, self.name, attribute_string, close)) - if pretty_print: - s.append("\n") - s.append(contents) - if pretty_print and contents and contents[-1] != "\n": - s.append("\n") - if pretty_print and closeTag: - s.append(space) - s.append(closeTag) - if indent_level is not None and closeTag and self.next_sibling: - # Even if this particular tag is not pretty-printed, - # we're now done with the tag, and we should add a - # newline if appropriate. - s.append("\n") - s = ''.join(s) - return s - - def prettify(self, encoding=None, formatter="minimal"): - if encoding is None: - return self.decode(True, formatter=formatter) - else: - return self.encode(encoding, True, formatter=formatter) - - def decode_contents(self, indent_level=None, - eventual_encoding=DEFAULT_OUTPUT_ENCODING, - formatter="minimal"): - """Renders the contents of this tag as a Unicode string. - - :param indent_level: Each line of the rendering will be - indented this many spaces. - - :param eventual_encoding: The tag is destined to be - encoded into this encoding. This method is _not_ - responsible for performing that encoding. This information - is passed in so that it can be substituted in if the - document contains a <META> tag that mentions the document's - encoding. - - :param formatter: The output formatter responsible for converting - entities to Unicode characters. - """ - # First off, turn a string formatter into a function. This - # will stop the lookup from happening over and over again. - if not isinstance(formatter, collections.Callable): - formatter = self._formatter_for_name(formatter) - - pretty_print = (indent_level is not None) - s = [] - for c in self: - text = None - if isinstance(c, NavigableString): - text = c.output_ready(formatter) - elif isinstance(c, Tag): - s.append(c.decode(indent_level, eventual_encoding, - formatter)) - if text and indent_level and not self.name == 'pre': - text = text.strip() - if text: - if pretty_print and not self.name == 'pre': - s.append(" " * (indent_level - 1)) - s.append(text) - if pretty_print and not self.name == 'pre': - s.append("\n") - return ''.join(s) - - def encode_contents( - self, indent_level=None, encoding=DEFAULT_OUTPUT_ENCODING, - formatter="minimal"): - """Renders the contents of this tag as a bytestring. - - :param indent_level: Each line of the rendering will be - indented this many spaces. - - :param eventual_encoding: The bytestring will be in this encoding. - - :param formatter: The output formatter responsible for converting - entities to Unicode characters. - """ - - contents = self.decode_contents(indent_level, encoding, formatter) - return contents.encode(encoding) - - # Old method for BS3 compatibility - def renderContents(self, encoding=DEFAULT_OUTPUT_ENCODING, - prettyPrint=False, indentLevel=0): - if not prettyPrint: - indentLevel = None - return self.encode_contents( - indent_level=indentLevel, encoding=encoding) - - #Soup methods - - def find(self, name=None, attrs={}, recursive=True, text=None, - **kwargs): - """Return only the first child of this Tag matching the given - criteria.""" - r = None - l = self.find_all(name, attrs, recursive, text, 1, **kwargs) - if l: - r = l[0] - return r - findChild = find - - def find_all(self, name=None, attrs={}, recursive=True, text=None, - limit=None, **kwargs): - """Extracts a list of Tag objects that match the given - criteria. You can specify the name of the Tag and any - attributes you want the Tag to have. - - The value of a key-value pair in the 'attrs' map can be a - string, a list of strings, a regular expression object, or a - callable that takes a string and returns whether or not the - string matches for some custom definition of 'matches'. The - same is true of the tag name.""" - - generator = self.descendants - if not recursive: - generator = self.children - return self._find_all(name, attrs, text, limit, generator, **kwargs) - findAll = find_all # BS3 - findChildren = find_all # BS2 - - #Generator methods - @property - def children(self): - # return iter() to make the purpose of the method clear - return iter(self.contents) # XXX This seems to be untested. - - @property - def descendants(self): - if not len(self.contents): - return - stopNode = self._last_descendant().next_element - current = self.contents[0] - while current is not stopNode: - yield current - current = current.next_element - - # CSS selector code - - _selector_combinators = ['>', '+', '~'] - _select_debug = False - def select_one(self, selector): - """Perform a CSS selection operation on the current element.""" - value = self.select(selector, limit=1) - if value: - return value[0] - return None - - def select(self, selector, _candidate_generator=None, limit=None): - """Perform a CSS selection operation on the current element.""" - - # Handle grouping selectors if ',' exists, ie: p,a - if ',' in selector: - context = [] - for partial_selector in selector.split(','): - partial_selector = partial_selector.strip() - if partial_selector == '': - raise ValueError('Invalid group selection syntax: %s' % selector) - candidates = self.select(partial_selector, limit=limit) - for candidate in candidates: - if candidate not in context: - context.append(candidate) - - if limit and len(context) >= limit: - break - return context - - tokens = selector.split() - current_context = [self] - - if tokens[-1] in self._selector_combinators: - raise ValueError( - 'Final combinator "%s" is missing an argument.' % tokens[-1]) - - if self._select_debug: - print('Running CSS selector "%s"' % selector) - - for index, token in enumerate(tokens): - new_context = [] - new_context_ids = set([]) - - if tokens[index-1] in self._selector_combinators: - # This token was consumed by the previous combinator. Skip it. - if self._select_debug: - print(' Token was consumed by the previous combinator.') - continue - - if self._select_debug: - print(' Considering token "%s"' % token) - recursive_candidate_generator = None - tag_name = None - - # Each operation corresponds to a checker function, a rule - # for determining whether a candidate matches the - # selector. Candidates are generated by the active - # iterator. - checker = None - - m = self.attribselect_re.match(token) - if m is not None: - # Attribute selector - tag_name, attribute, operator, value = m.groups() - checker = self._attribute_checker(operator, attribute, value) - - elif '#' in token: - # ID selector - tag_name, tag_id = token.split('#', 1) - def id_matches(tag): - return tag.get('id', None) == tag_id - checker = id_matches - - elif '.' in token: - # Class selector - tag_name, klass = token.split('.', 1) - classes = set(klass.split('.')) - def classes_match(candidate): - return classes.issubset(candidate.get('class', [])) - checker = classes_match - - elif ':' in token: - # Pseudo-class - tag_name, pseudo = token.split(':', 1) - if tag_name == '': - raise ValueError( - "A pseudo-class must be prefixed with a tag name.") - pseudo_attributes = re.match('([a-zA-Z\d-]+)\(([a-zA-Z\d]+)\)', pseudo) - found = [] - if pseudo_attributes is None: - pseudo_type = pseudo - pseudo_value = None - else: - pseudo_type, pseudo_value = pseudo_attributes.groups() - if pseudo_type == 'nth-of-type': - try: - pseudo_value = int(pseudo_value) - except: - raise NotImplementedError( - 'Only numeric values are currently supported for the nth-of-type pseudo-class.') - if pseudo_value < 1: - raise ValueError( - 'nth-of-type pseudo-class value must be at least 1.') - class Counter(object): - def __init__(self, destination): - self.count = 0 - self.destination = destination - - def nth_child_of_type(self, tag): - self.count += 1 - if self.count == self.destination: - return True - if self.count > self.destination: - # Stop the generator that's sending us - # these things. - raise StopIteration() - return False - checker = Counter(pseudo_value).nth_child_of_type - else: - raise NotImplementedError( - 'Only the following pseudo-classes are implemented: nth-of-type.') - - elif token == '*': - # Star selector -- matches everything - pass - elif token == '>': - # Run the next token as a CSS selector against the - # direct children of each tag in the current context. - recursive_candidate_generator = lambda tag: tag.children - elif token == '~': - # Run the next token as a CSS selector against the - # siblings of each tag in the current context. - recursive_candidate_generator = lambda tag: tag.next_siblings - elif token == '+': - # For each tag in the current context, run the next - # token as a CSS selector against the tag's next - # sibling that's a tag. - def next_tag_sibling(tag): - yield tag.find_next_sibling(True) - recursive_candidate_generator = next_tag_sibling - - elif self.tag_name_re.match(token): - # Just a tag name. - tag_name = token - else: - raise ValueError( - 'Unsupported or invalid CSS selector: "%s"' % token) - if recursive_candidate_generator: - # This happens when the selector looks like "> foo". - # - # The generator calls select() recursively on every - # member of the current context, passing in a different - # candidate generator and a different selector. - # - # In the case of "> foo", the candidate generator is - # one that yields a tag's direct children (">"), and - # the selector is "foo". - next_token = tokens[index+1] - def recursive_select(tag): - if self._select_debug: - print(' Calling select("%s") recursively on %s %s' % (next_token, tag.name, tag.attrs)) - print('-' * 40) - for i in tag.select(next_token, recursive_candidate_generator): - if self._select_debug: - print('(Recursive select picked up candidate %s %s)' % (i.name, i.attrs)) - yield i - if self._select_debug: - print('-' * 40) - _use_candidate_generator = recursive_select - elif _candidate_generator is None: - # By default, a tag's candidates are all of its - # children. If tag_name is defined, only yield tags - # with that name. - if self._select_debug: - if tag_name: - check = "[any]" - else: - check = tag_name - print(' Default candidate generator, tag name="%s"' % check) - if self._select_debug: - # This is redundant with later code, but it stops - # a bunch of bogus tags from cluttering up the - # debug log. - def default_candidate_generator(tag): - for child in tag.descendants: - if not isinstance(child, Tag): - continue - if tag_name and not child.name == tag_name: - continue - yield child - _use_candidate_generator = default_candidate_generator - else: - _use_candidate_generator = lambda tag: tag.descendants - else: - _use_candidate_generator = _candidate_generator - - count = 0 - for tag in current_context: - if self._select_debug: - print(" Running candidate generator on %s %s" % ( - tag.name, repr(tag.attrs))) - for candidate in _use_candidate_generator(tag): - if not isinstance(candidate, Tag): - continue - if tag_name and candidate.name != tag_name: - continue - if checker is not None: - try: - result = checker(candidate) - except StopIteration: - # The checker has decided we should no longer - # run the generator. - break - if checker is None or result: - if self._select_debug: - print(" SUCCESS %s %s" % (candidate.name, repr(candidate.attrs))) - if id(candidate) not in new_context_ids: - # If a tag matches a selector more than once, - # don't include it in the context more than once. - new_context.append(candidate) - new_context_ids.add(id(candidate)) - if limit and len(new_context) >= limit: - break - elif self._select_debug: - print(" FAILURE %s %s" % (candidate.name, repr(candidate.attrs))) - - - current_context = new_context - - if self._select_debug: - print("Final verdict:") - for i in current_context: - print(" %s %s" % (i.name, i.attrs)) - return current_context - - # Old names for backwards compatibility - def childGenerator(self): - return self.children - - def recursiveChildGenerator(self): - return self.descendants - - def has_key(self, key): - """This was kind of misleading because has_key() (attributes) - was different from __in__ (contents). has_key() is gone in - Python 3, anyway.""" - warnings.warn('has_key is deprecated. Use has_attr("%s") instead.' % ( - key)) - return self.has_attr(key) - -# Next, a couple classes to represent queries and their results. -class SoupStrainer(object): - """Encapsulates a number of ways of matching a markup element (tag or - text).""" - - def __init__(self, name=None, attrs={}, text=None, **kwargs): - self.name = self._normalize_search_value(name) - if not isinstance(attrs, dict): - # Treat a non-dict value for attrs as a search for the 'class' - # attribute. - kwargs['class'] = attrs - attrs = None - - if 'class_' in kwargs: - # Treat class_="foo" as a search for the 'class' - # attribute, overriding any non-dict value for attrs. - kwargs['class'] = kwargs['class_'] - del kwargs['class_'] - - if kwargs: - if attrs: - attrs = attrs.copy() - attrs.update(kwargs) - else: - attrs = kwargs - normalized_attrs = {} - for key, value in list(attrs.items()): - normalized_attrs[key] = self._normalize_search_value(value) - - self.attrs = normalized_attrs - self.text = self._normalize_search_value(text) - - def _normalize_search_value(self, value): - # Leave it alone if it's a Unicode string, a callable, a - # regular expression, a boolean, or None. - if (isinstance(value, str) or isinstance(value, collections.Callable) or hasattr(value, 'match') - or isinstance(value, bool) or value is None): - return value - - # If it's a bytestring, convert it to Unicode, treating it as UTF-8. - if isinstance(value, bytes): - return value.decode("utf8") - - # If it's listlike, convert it into a list of strings. - if hasattr(value, '__iter__'): - new_value = [] - for v in value: - if (hasattr(v, '__iter__') and not isinstance(v, bytes) - and not isinstance(v, str)): - # This is almost certainly the user's mistake. In the - # interests of avoiding infinite loops, we'll let - # it through as-is rather than doing a recursive call. - new_value.append(v) - else: - new_value.append(self._normalize_search_value(v)) - return new_value - - # Otherwise, convert it into a Unicode string. - # The unicode(str()) thing is so this will do the same thing on Python 2 - # and Python 3. - return str(str(value)) - - def __str__(self): - if self.text: - return self.text - else: - return "%s|%s" % (self.name, self.attrs) - - def search_tag(self, markup_name=None, markup_attrs={}): - found = None - markup = None - if isinstance(markup_name, Tag): - markup = markup_name - markup_attrs = markup - call_function_with_tag_data = ( - isinstance(self.name, collections.Callable) - and not isinstance(markup_name, Tag)) - - if ((not self.name) - or call_function_with_tag_data - or (markup and self._matches(markup, self.name)) - or (not markup and self._matches(markup_name, self.name))): - if call_function_with_tag_data: - match = self.name(markup_name, markup_attrs) - else: - match = True - markup_attr_map = None - for attr, match_against in list(self.attrs.items()): - if not markup_attr_map: - if hasattr(markup_attrs, 'get'): - markup_attr_map = markup_attrs - else: - markup_attr_map = {} - for k, v in markup_attrs: - markup_attr_map[k] = v - attr_value = markup_attr_map.get(attr) - if not self._matches(attr_value, match_against): - match = False - break - if match: - if markup: - found = markup - else: - found = markup_name - if found and self.text and not self._matches(found.string, self.text): - found = None - return found - searchTag = search_tag - - def search(self, markup): - # print 'looking for %s in %s' % (self, markup) - found = None - # If given a list of items, scan it for a text element that - # matches. - if hasattr(markup, '__iter__') and not isinstance(markup, (Tag, str)): - for element in markup: - if isinstance(element, NavigableString) \ - and self.search(element): - found = element - break - # If it's a Tag, make sure its name or attributes match. - # Don't bother with Tags if we're searching for text. - elif isinstance(markup, Tag): - if not self.text or self.name or self.attrs: - found = self.search_tag(markup) - # If it's text, make sure the text matches. - elif isinstance(markup, NavigableString) or \ - isinstance(markup, str): - if not self.name and not self.attrs and self._matches(markup, self.text): - found = markup - else: - raise Exception( - "I don't know how to match against a %s" % markup.__class__) - return found - - def _matches(self, markup, match_against): - # print u"Matching %s against %s" % (markup, match_against) - result = False - if isinstance(markup, list) or isinstance(markup, tuple): - # This should only happen when searching a multi-valued attribute - # like 'class'. - if (isinstance(match_against, str) - and ' ' in match_against): - # A bit of a special case. If they try to match "foo - # bar" on a multivalue attribute's value, only accept - # the literal value "foo bar" - # - # XXX This is going to be pretty slow because we keep - # splitting match_against. But it shouldn't come up - # too often. - return (whitespace_re.split(match_against) == markup) - else: - for item in markup: - if self._matches(item, match_against): - return True - return False - - if match_against is True: - # True matches any non-None value. - return markup is not None - - if isinstance(match_against, collections.Callable): - return match_against(markup) - - # Custom callables take the tag as an argument, but all - # other ways of matching match the tag name as a string. - if isinstance(markup, Tag): - markup = markup.name - - # Ensure that `markup` is either a Unicode string, or None. - markup = self._normalize_search_value(markup) - - if markup is None: - # None matches None, False, an empty string, an empty list, and so on. - return not match_against - - if isinstance(match_against, str): - # Exact string match - return markup == match_against - - if hasattr(match_against, 'match'): - # Regexp match - return match_against.search(markup) - - if hasattr(match_against, '__iter__'): - # The markup must be an exact match against something - # in the iterable. - return markup in match_against - - -class ResultSet(list): - """A ResultSet is just a list that keeps track of the SoupStrainer - that created it.""" - def __init__(self, source, result=()): - super(ResultSet, self).__init__(result) - self.source = source diff --git a/poky/bitbake/lib/bs4/testing.py b/poky/bitbake/lib/bs4/testing.py deleted file mode 100644 index 3a2f260..0000000 --- a/poky/bitbake/lib/bs4/testing.py +++ /dev/null @@ -1,687 +0,0 @@ -"""Helper classes for tests.""" - -__license__ = "MIT" - -import pickle -import copy -import functools -import unittest -from unittest import TestCase -from bs4 import BeautifulSoup -from bs4.element import ( - CharsetMetaAttributeValue, - Comment, - ContentMetaAttributeValue, - Doctype, - SoupStrainer, -) - -from bs4.builder import HTMLParserTreeBuilder -default_builder = HTMLParserTreeBuilder - - -class SoupTest(unittest.TestCase): - - @property - def default_builder(self): - return default_builder() - - def soup(self, markup, **kwargs): - """Build a Beautiful Soup object from markup.""" - builder = kwargs.pop('builder', self.default_builder) - return BeautifulSoup(markup, builder=builder, **kwargs) - - def document_for(self, markup): - """Turn an HTML fragment into a document. - - The details depend on the builder. - """ - return self.default_builder.test_fragment_to_document(markup) - - def assertSoupEquals(self, to_parse, compare_parsed_to=None): - builder = self.default_builder - obj = BeautifulSoup(to_parse, builder=builder) - if compare_parsed_to is None: - compare_parsed_to = to_parse - - self.assertEqual(obj.decode(), self.document_for(compare_parsed_to)) - - def assertConnectedness(self, element): - """Ensure that next_element and previous_element are properly - set for all descendants of the given element. - """ - earlier = None - for e in element.descendants: - if earlier: - self.assertEqual(e, earlier.next_element) - self.assertEqual(earlier, e.previous_element) - earlier = e - -class HTMLTreeBuilderSmokeTest(object): - - """A basic test of a treebuilder's competence. - - Any HTML treebuilder, present or future, should be able to pass - these tests. With invalid markup, there's room for interpretation, - and different parsers can handle it differently. But with the - markup in these tests, there's not much room for interpretation. - """ - - def test_pickle_and_unpickle_identity(self): - # Pickling a tree, then unpickling it, yields a tree identical - # to the original. - tree = self.soup("<a><b>foo</a>") - dumped = pickle.dumps(tree, 2) - loaded = pickle.loads(dumped) - self.assertEqual(loaded.__class__, BeautifulSoup) - self.assertEqual(loaded.decode(), tree.decode()) - - def assertDoctypeHandled(self, doctype_fragment): - """Assert that a given doctype string is handled correctly.""" - doctype_str, soup = self._document_with_doctype(doctype_fragment) - - # Make sure a Doctype object was created. - doctype = soup.contents[0] - self.assertEqual(doctype.__class__, Doctype) - self.assertEqual(doctype, doctype_fragment) - self.assertEqual(str(soup)[:len(doctype_str)], doctype_str) - - # Make sure that the doctype was correctly associated with the - # parse tree and that the rest of the document parsed. - self.assertEqual(soup.p.contents[0], 'foo') - - def _document_with_doctype(self, doctype_fragment): - """Generate and parse a document with the given doctype.""" - doctype = '<!DOCTYPE %s>' % doctype_fragment - markup = doctype + '\n<p>foo</p>' - soup = self.soup(markup) - return doctype, soup - - def test_normal_doctypes(self): - """Make sure normal, everyday HTML doctypes are handled correctly.""" - self.assertDoctypeHandled("html") - self.assertDoctypeHandled( - 'html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"') - - def test_empty_doctype(self): - soup = self.soup("<!DOCTYPE>") - doctype = soup.contents[0] - self.assertEqual("", doctype.strip()) - - def test_public_doctype_with_url(self): - doctype = 'html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"' - self.assertDoctypeHandled(doctype) - - def test_system_doctype(self): - self.assertDoctypeHandled('foo SYSTEM "http://www.example.com/"') - - def test_namespaced_system_doctype(self): - # We can handle a namespaced doctype with a system ID. - self.assertDoctypeHandled('xsl:stylesheet SYSTEM "htmlent.dtd"') - - def test_namespaced_public_doctype(self): - # Test a namespaced doctype with a public id. - self.assertDoctypeHandled('xsl:stylesheet PUBLIC "htmlent.dtd"') - - def test_real_xhtml_document(self): - """A real XHTML document should come out more or less the same as it went in.""" - markup = b"""<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head><title>Hello. -Goodbye. -""" - soup = self.soup(markup) - self.assertEqual( - soup.encode("utf-8").replace(b"\n", b""), - markup.replace(b"\n", b"")) - - def test_processing_instruction(self): - markup = b"""""" - soup = self.soup(markup) - self.assertEqual(markup, soup.encode("utf8")) - - def test_deepcopy(self): - """Make sure you can copy the tree builder. - - This is important because the builder is part of a - BeautifulSoup object, and we want to be able to copy that. - """ - copy.deepcopy(self.default_builder) - - def test_p_tag_is_never_empty_element(self): - """A

tag is never designated as an empty-element tag. - - Even if the markup shows it as an empty-element tag, it - shouldn't be presented that way. - """ - soup = self.soup("

") - self.assertFalse(soup.p.is_empty_element) - self.assertEqual(str(soup.p), "

") - - def test_unclosed_tags_get_closed(self): - """A tag that's not closed by the end of the document should be closed. - - This applies to all tags except empty-element tags. - """ - self.assertSoupEquals("

", "

") - self.assertSoupEquals("", "") - - self.assertSoupEquals("
", "
") - - def test_br_is_always_empty_element_tag(self): - """A
tag is designated as an empty-element tag. - - Some parsers treat

as one
tag, some parsers as - two tags, but it should always be an empty-element tag. - """ - soup = self.soup("

") - self.assertTrue(soup.br.is_empty_element) - self.assertEqual(str(soup.br), "
") - - def test_nested_formatting_elements(self): - self.assertSoupEquals("") - - def test_double_head(self): - html = ''' - - -Ordinary HEAD element test - - - -Hello, world! - - -''' - soup = self.soup(html) - self.assertEqual("text/javascript", soup.find('script')['type']) - - def test_comment(self): - # Comments are represented as Comment objects. - markup = "

foobaz

" - self.assertSoupEquals(markup) - - soup = self.soup(markup) - comment = soup.find(text="foobar") - self.assertEqual(comment.__class__, Comment) - - # The comment is properly integrated into the tree. - foo = soup.find(text="foo") - self.assertEqual(comment, foo.next_element) - baz = soup.find(text="baz") - self.assertEqual(comment, baz.previous_element) - - def test_preserved_whitespace_in_pre_and_textarea(self): - """Whitespace must be preserved in
 and ")
-
-    def test_nested_inline_elements(self):
-        """Inline elements can be nested indefinitely."""
-        b_tag = "Inside a B tag"
-        self.assertSoupEquals(b_tag)
-
-        nested_b_tag = "

A nested tag

" - self.assertSoupEquals(nested_b_tag) - - double_nested_b_tag = "

A doubly nested tag

" - self.assertSoupEquals(nested_b_tag) - - def test_nested_block_level_elements(self): - """Block elements can be nested.""" - soup = self.soup('

Foo

') - blockquote = soup.blockquote - self.assertEqual(blockquote.p.b.string, 'Foo') - self.assertEqual(blockquote.b.string, 'Foo') - - def test_correctly_nested_tables(self): - """One table can go inside another one.""" - markup = ('' - '' - "') - - self.assertSoupEquals( - markup, - '
Here's another table:" - '' - '' - '
foo
Here\'s another table:' - '
foo
' - '
') - - self.assertSoupEquals( - "" - "" - "
Foo
Bar
Baz
") - - def test_deeply_nested_multivalued_attribute(self): - # html5lib can set the attributes of the same tag many times - # as it rearranges the tree. This has caused problems with - # multivalued attributes. - markup = '
' - soup = self.soup(markup) - self.assertEqual(["css"], soup.div.div['class']) - - def test_multivalued_attribute_on_html(self): - # html5lib uses a different API to set the attributes ot the - # tag. This has caused problems with multivalued - # attributes. - markup = '' - soup = self.soup(markup) - self.assertEqual(["a", "b"], soup.html['class']) - - def test_angle_brackets_in_attribute_values_are_escaped(self): - self.assertSoupEquals('', '') - - def test_entities_in_attributes_converted_to_unicode(self): - expect = '

' - self.assertSoupEquals('

', expect) - self.assertSoupEquals('

', expect) - self.assertSoupEquals('

', expect) - self.assertSoupEquals('

', expect) - - def test_entities_in_text_converted_to_unicode(self): - expect = '

pi\N{LATIN SMALL LETTER N WITH TILDE}ata

' - self.assertSoupEquals("

piñata

", expect) - self.assertSoupEquals("

piñata

", expect) - self.assertSoupEquals("

piñata

", expect) - self.assertSoupEquals("

piñata

", expect) - - def test_quot_entity_converted_to_quotation_mark(self): - self.assertSoupEquals("

I said "good day!"

", - '

I said "good day!"

') - - def test_out_of_range_entity(self): - expect = "\N{REPLACEMENT CHARACTER}" - self.assertSoupEquals("�", expect) - self.assertSoupEquals("�", expect) - self.assertSoupEquals("�", expect) - - def test_multipart_strings(self): - "Mostly to prevent a recurrence of a bug in the html5lib treebuilder." - soup = self.soup("

\nfoo

") - self.assertEqual("p", soup.h2.string.next_element.name) - self.assertEqual("p", soup.p.name) - self.assertConnectedness(soup) - - def test_head_tag_between_head_and_body(self): - "Prevent recurrence of a bug in the html5lib treebuilder." - content = """ - - foo - -""" - soup = self.soup(content) - self.assertNotEqual(None, soup.html.body) - self.assertConnectedness(soup) - - def test_multiple_copies_of_a_tag(self): - "Prevent recurrence of a bug in the html5lib treebuilder." - content = """ - - - - - -""" - soup = self.soup(content) - self.assertConnectedness(soup.article) - - def test_basic_namespaces(self): - """Parsers don't need to *understand* namespaces, but at the - very least they should not choke on namespaces or lose - data.""" - - markup = b'4' - soup = self.soup(markup) - self.assertEqual(markup, soup.encode()) - html = soup.html - self.assertEqual('http://www.w3.org/1999/xhtml', soup.html['xmlns']) - self.assertEqual( - 'http://www.w3.org/1998/Math/MathML', soup.html['xmlns:mathml']) - self.assertEqual( - 'http://www.w3.org/2000/svg', soup.html['xmlns:svg']) - - def test_multivalued_attribute_value_becomes_list(self): - markup = b'' - soup = self.soup(markup) - self.assertEqual(['foo', 'bar'], soup.a['class']) - - # - # Generally speaking, tests below this point are more tests of - # Beautiful Soup than tests of the tree builders. But parsers are - # weird, so we run these tests separately for every tree builder - # to detect any differences between them. - # - - def test_can_parse_unicode_document(self): - # A seemingly innocuous document... but it's in Unicode! And - # it contains characters that can't be represented in the - # encoding found in the declaration! The horror! - markup = 'Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!' - soup = self.soup(markup) - self.assertEqual('Sacr\xe9 bleu!', soup.body.string) - - def test_soupstrainer(self): - """Parsers should be able to work with SoupStrainers.""" - strainer = SoupStrainer("b") - soup = self.soup("A bold statement", - parse_only=strainer) - self.assertEqual(soup.decode(), "bold") - - def test_single_quote_attribute_values_become_double_quotes(self): - self.assertSoupEquals("", - '') - - def test_attribute_values_with_nested_quotes_are_left_alone(self): - text = """a""" - self.assertSoupEquals(text) - - def test_attribute_values_with_double_nested_quotes_get_quoted(self): - text = """a""" - soup = self.soup(text) - soup.foo['attr'] = 'Brawls happen at "Bob\'s Bar"' - self.assertSoupEquals( - soup.foo.decode(), - """a""") - - def test_ampersand_in_attribute_value_gets_escaped(self): - self.assertSoupEquals('', - '') - - self.assertSoupEquals( - 'foo', - 'foo') - - def test_escaped_ampersand_in_attribute_value_is_left_alone(self): - self.assertSoupEquals('') - - def test_entities_in_strings_converted_during_parsing(self): - # Both XML and HTML entities are converted to Unicode characters - # during parsing. - text = "

<<sacré bleu!>>

" - expected = "

<<sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>>

" - self.assertSoupEquals(text, expected) - - def test_smart_quotes_converted_on_the_way_in(self): - # Microsoft smart quotes are converted to Unicode characters during - # parsing. - quote = b"

\x91Foo\x92

" - soup = self.soup(quote) - self.assertEqual( - soup.p.string, - "\N{LEFT SINGLE QUOTATION MARK}Foo\N{RIGHT SINGLE QUOTATION MARK}") - - def test_non_breaking_spaces_converted_on_the_way_in(self): - soup = self.soup("  ") - self.assertEqual(soup.a.string, "\N{NO-BREAK SPACE}" * 2) - - def test_entities_converted_on_the_way_out(self): - text = "

<<sacré bleu!>>

" - expected = "

<<sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>>

".encode("utf-8") - soup = self.soup(text) - self.assertEqual(soup.p.encode("utf-8"), expected) - - def test_real_iso_latin_document(self): - # Smoke test of interrelated functionality, using an - # easy-to-understand document. - - # Here it is in Unicode. Note that it claims to be in ISO-Latin-1. - unicode_html = '

Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!

' - - # That's because we're going to encode it into ISO-Latin-1, and use - # that to test. - iso_latin_html = unicode_html.encode("iso-8859-1") - - # Parse the ISO-Latin-1 HTML. - soup = self.soup(iso_latin_html) - # Encode it to UTF-8. - result = soup.encode("utf-8") - - # What do we expect the result to look like? Well, it would - # look like unicode_html, except that the META tag would say - # UTF-8 instead of ISO-Latin-1. - expected = unicode_html.replace("ISO-Latin-1", "utf-8") - - # And, of course, it would be in UTF-8, not Unicode. - expected = expected.encode("utf-8") - - # Ta-da! - self.assertEqual(result, expected) - - def test_real_shift_jis_document(self): - # Smoke test to make sure the parser can handle a document in - # Shift-JIS encoding, without choking. - shift_jis_html = ( - b'
'
-            b'\x82\xb1\x82\xea\x82\xcdShift-JIS\x82\xc5\x83R\x81[\x83f'
-            b'\x83B\x83\x93\x83O\x82\xb3\x82\xea\x82\xbd\x93\xfa\x96{\x8c'
-            b'\xea\x82\xcc\x83t\x83@\x83C\x83\x8b\x82\xc5\x82\xb7\x81B'
-            b'
') - unicode_html = shift_jis_html.decode("shift-jis") - soup = self.soup(unicode_html) - - # Make sure the parse tree is correctly encoded to various - # encodings. - self.assertEqual(soup.encode("utf-8"), unicode_html.encode("utf-8")) - self.assertEqual(soup.encode("euc_jp"), unicode_html.encode("euc_jp")) - - def test_real_hebrew_document(self): - # A real-world test to make sure we can convert ISO-8859-9 (a - # Hebrew encoding) to UTF-8. - hebrew_document = b'Hebrew (ISO 8859-8) in Visual Directionality

Hebrew (ISO 8859-8) in Visual Directionality

\xed\xe5\xec\xf9' - soup = self.soup( - hebrew_document, from_encoding="iso8859-8") - self.assertEqual(soup.original_encoding, 'iso8859-8') - self.assertEqual( - soup.encode('utf-8'), - hebrew_document.decode("iso8859-8").encode("utf-8")) - - def test_meta_tag_reflects_current_encoding(self): - # Here's the tag saying that a document is - # encoded in Shift-JIS. - meta_tag = ('') - - # Here's a document incorporating that meta tag. - shift_jis_html = ( - '\n%s\n' - '' - 'Shift-JIS markup goes here.') % meta_tag - soup = self.soup(shift_jis_html) - - # Parse the document, and the charset is seemingly unaffected. - parsed_meta = soup.find('meta', {'http-equiv': 'Content-type'}) - content = parsed_meta['content'] - self.assertEqual('text/html; charset=x-sjis', content) - - # But that value is actually a ContentMetaAttributeValue object. - self.assertTrue(isinstance(content, ContentMetaAttributeValue)) - - # And it will take on a value that reflects its current - # encoding. - self.assertEqual('text/html; charset=utf8', content.encode("utf8")) - - # For the rest of the story, see TestSubstitutions in - # test_tree.py. - - def test_html5_style_meta_tag_reflects_current_encoding(self): - # Here's the tag saying that a document is - # encoded in Shift-JIS. - meta_tag = ('') - - # Here's a document incorporating that meta tag. - shift_jis_html = ( - '\n%s\n' - '' - 'Shift-JIS markup goes here.') % meta_tag - soup = self.soup(shift_jis_html) - - # Parse the document, and the charset is seemingly unaffected. - parsed_meta = soup.find('meta', id="encoding") - charset = parsed_meta['charset'] - self.assertEqual('x-sjis', charset) - - # But that value is actually a CharsetMetaAttributeValue object. - self.assertTrue(isinstance(charset, CharsetMetaAttributeValue)) - - # And it will take on a value that reflects its current - # encoding. - self.assertEqual('utf8', charset.encode("utf8")) - - def test_tag_with_no_attributes_can_have_attributes_added(self): - data = self.soup("text") - data.a['foo'] = 'bar' - self.assertEqual('text', data.a.decode()) - -class XMLTreeBuilderSmokeTest(object): - - def test_pickle_and_unpickle_identity(self): - # Pickling a tree, then unpickling it, yields a tree identical - # to the original. - tree = self.soup("foo") - dumped = pickle.dumps(tree, 2) - loaded = pickle.loads(dumped) - self.assertEqual(loaded.__class__, BeautifulSoup) - self.assertEqual(loaded.decode(), tree.decode()) - - def test_docstring_generated(self): - soup = self.soup("") - self.assertEqual( - soup.encode(), b'\n') - - def test_xml_declaration(self): - markup = b"""\n""" - soup = self.soup(markup) - self.assertEqual(markup, soup.encode("utf8")) - - def test_real_xhtml_document(self): - """A real XHTML document should come out *exactly* the same as it went in.""" - markup = b""" - - -Hello. -Goodbye. -""" - soup = self.soup(markup) - self.assertEqual( - soup.encode("utf-8"), markup) - - def test_formatter_processes_script_tag_for_xml_documents(self): - doc = """ - -""" - soup = BeautifulSoup(doc, "lxml-xml") - # lxml would have stripped this while parsing, but we can add - # it later. - soup.script.string = 'console.log("< < hey > > ");' - encoded = soup.encode() - self.assertTrue(b"< < hey > >" in encoded) - - def test_can_parse_unicode_document(self): - markup = 'Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!' - soup = self.soup(markup) - self.assertEqual('Sacr\xe9 bleu!', soup.root.string) - - def test_popping_namespaced_tag(self): - markup = 'b2012-07-02T20:33:42Zcd' - soup = self.soup(markup) - self.assertEqual( - str(soup.rss), markup) - - def test_docstring_includes_correct_encoding(self): - soup = self.soup("") - self.assertEqual( - soup.encode("latin1"), - b'\n') - - def test_large_xml_document(self): - """A large XML document should come out the same as it went in.""" - markup = (b'\n' - + b'0' * (2**12) - + b'') - soup = self.soup(markup) - self.assertEqual(soup.encode("utf-8"), markup) - - - def test_tags_are_empty_element_if_and_only_if_they_are_empty(self): - self.assertSoupEquals("

", "

") - self.assertSoupEquals("

foo

") - - def test_namespaces_are_preserved(self): - markup = 'This tag is in the a namespaceThis tag is in the b namespace' - soup = self.soup(markup) - root = soup.root - self.assertEqual("http://example.com/", root['xmlns:a']) - self.assertEqual("http://example.net/", root['xmlns:b']) - - def test_closing_namespaced_tag(self): - markup = '

20010504

' - soup = self.soup(markup) - self.assertEqual(str(soup.p), markup) - - def test_namespaced_attributes(self): - markup = '' - soup = self.soup(markup) - self.assertEqual(str(soup.foo), markup) - - def test_namespaced_attributes_xml_namespace(self): - markup = 'bar' - soup = self.soup(markup) - self.assertEqual(str(soup.foo), markup) - -class HTML5TreeBuilderSmokeTest(HTMLTreeBuilderSmokeTest): - """Smoke test for a tree builder that supports HTML5.""" - - def test_real_xhtml_document(self): - # Since XHTML is not HTML5, HTML5 parsers are not tested to handle - # XHTML documents in any particular way. - pass - - def test_html_tags_have_namespace(self): - markup = "" - soup = self.soup(markup) - self.assertEqual("http://www.w3.org/1999/xhtml", soup.a.namespace) - - def test_svg_tags_have_namespace(self): - markup = '' - soup = self.soup(markup) - namespace = "http://www.w3.org/2000/svg" - self.assertEqual(namespace, soup.svg.namespace) - self.assertEqual(namespace, soup.circle.namespace) - - - def test_mathml_tags_have_namespace(self): - markup = '5' - soup = self.soup(markup) - namespace = 'http://www.w3.org/1998/Math/MathML' - self.assertEqual(namespace, soup.math.namespace) - self.assertEqual(namespace, soup.msqrt.namespace) - - def test_xml_declaration_becomes_comment(self): - markup = '' - soup = self.soup(markup) - self.assertTrue(isinstance(soup.contents[0], Comment)) - self.assertEqual(soup.contents[0], '?xml version="1.0" encoding="utf-8"?') - self.assertEqual("html", soup.contents[0].next_element.name) - -def skipIf(condition, reason): - def nothing(test, *args, **kwargs): - return None - - def decorator(test_item): - if condition: - return nothing - else: - return test_item - - return decorator diff --git a/poky/bitbake/lib/bs4/tests/__init__.py b/poky/bitbake/lib/bs4/tests/__init__.py deleted file mode 100644 index 142c8cc..0000000 --- a/poky/bitbake/lib/bs4/tests/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"The beautifulsoup tests." diff --git a/poky/bitbake/lib/bs4/tests/test_builder_registry.py b/poky/bitbake/lib/bs4/tests/test_builder_registry.py deleted file mode 100644 index 90cad82..0000000 --- a/poky/bitbake/lib/bs4/tests/test_builder_registry.py +++ /dev/null @@ -1,147 +0,0 @@ -"""Tests of the builder registry.""" - -import unittest -import warnings - -from bs4 import BeautifulSoup -from bs4.builder import ( - builder_registry as registry, - HTMLParserTreeBuilder, - TreeBuilderRegistry, -) - -try: - from bs4.builder import HTML5TreeBuilder - HTML5LIB_PRESENT = True -except ImportError: - HTML5LIB_PRESENT = False - -try: - from bs4.builder import ( - LXMLTreeBuilderForXML, - LXMLTreeBuilder, - ) - LXML_PRESENT = True -except ImportError: - LXML_PRESENT = False - - -class BuiltInRegistryTest(unittest.TestCase): - """Test the built-in registry with the default builders registered.""" - - def test_combination(self): - if LXML_PRESENT: - self.assertEqual(registry.lookup('fast', 'html'), - LXMLTreeBuilder) - - if LXML_PRESENT: - self.assertEqual(registry.lookup('permissive', 'xml'), - LXMLTreeBuilderForXML) - self.assertEqual(registry.lookup('strict', 'html'), - HTMLParserTreeBuilder) - if HTML5LIB_PRESENT: - self.assertEqual(registry.lookup('html5lib', 'html'), - HTML5TreeBuilder) - - def test_lookup_by_markup_type(self): - if LXML_PRESENT: - self.assertEqual(registry.lookup('html'), LXMLTreeBuilder) - self.assertEqual(registry.lookup('xml'), LXMLTreeBuilderForXML) - else: - self.assertEqual(registry.lookup('xml'), None) - if HTML5LIB_PRESENT: - self.assertEqual(registry.lookup('html'), HTML5TreeBuilder) - else: - self.assertEqual(registry.lookup('html'), HTMLParserTreeBuilder) - - def test_named_library(self): - if LXML_PRESENT: - self.assertEqual(registry.lookup('lxml', 'xml'), - LXMLTreeBuilderForXML) - self.assertEqual(registry.lookup('lxml', 'html'), - LXMLTreeBuilder) - if HTML5LIB_PRESENT: - self.assertEqual(registry.lookup('html5lib'), - HTML5TreeBuilder) - - self.assertEqual(registry.lookup('html.parser'), - HTMLParserTreeBuilder) - - def test_beautifulsoup_constructor_does_lookup(self): - - with warnings.catch_warnings(record=True) as w: - # This will create a warning about not explicitly - # specifying a parser, but we'll ignore it. - - # You can pass in a string. - BeautifulSoup("", features="html") - # Or a list of strings. - BeautifulSoup("", features=["html", "fast"]) - - # You'll get an exception if BS can't find an appropriate - # builder. - self.assertRaises(ValueError, BeautifulSoup, - "", features="no-such-feature") - -class RegistryTest(unittest.TestCase): - """Test the TreeBuilderRegistry class in general.""" - - def setUp(self): - self.registry = TreeBuilderRegistry() - - def builder_for_features(self, *feature_list): - cls = type('Builder_' + '_'.join(feature_list), - (object,), {'features' : feature_list}) - - self.registry.register(cls) - return cls - - def test_register_with_no_features(self): - builder = self.builder_for_features() - - # Since the builder advertises no features, you can't find it - # by looking up features. - self.assertEqual(self.registry.lookup('foo'), None) - - # But you can find it by doing a lookup with no features, if - # this happens to be the only registered builder. - self.assertEqual(self.registry.lookup(), builder) - - def test_register_with_features_makes_lookup_succeed(self): - builder = self.builder_for_features('foo', 'bar') - self.assertEqual(self.registry.lookup('foo'), builder) - self.assertEqual(self.registry.lookup('bar'), builder) - - def test_lookup_fails_when_no_builder_implements_feature(self): - builder = self.builder_for_features('foo', 'bar') - self.assertEqual(self.registry.lookup('baz'), None) - - def test_lookup_gets_most_recent_registration_when_no_feature_specified(self): - builder1 = self.builder_for_features('foo') - builder2 = self.builder_for_features('bar') - self.assertEqual(self.registry.lookup(), builder2) - - def test_lookup_fails_when_no_tree_builders_registered(self): - self.assertEqual(self.registry.lookup(), None) - - def test_lookup_gets_most_recent_builder_supporting_all_features(self): - has_one = self.builder_for_features('foo') - has_the_other = self.builder_for_features('bar') - has_both_early = self.builder_for_features('foo', 'bar', 'baz') - has_both_late = self.builder_for_features('foo', 'bar', 'quux') - lacks_one = self.builder_for_features('bar') - has_the_other = self.builder_for_features('foo') - - # There are two builders featuring 'foo' and 'bar', but - # the one that also features 'quux' was registered later. - self.assertEqual(self.registry.lookup('foo', 'bar'), - has_both_late) - - # There is only one builder featuring 'foo', 'bar', and 'baz'. - self.assertEqual(self.registry.lookup('foo', 'bar', 'baz'), - has_both_early) - - def test_lookup_fails_when_cannot_reconcile_requested_features(self): - builder1 = self.builder_for_features('foo', 'bar') - builder2 = self.builder_for_features('foo', 'baz') - self.assertEqual(self.registry.lookup('bar', 'baz'), None) diff --git a/poky/bitbake/lib/bs4/tests/test_docs.py b/poky/bitbake/lib/bs4/tests/test_docs.py deleted file mode 100644 index 5b9f677..0000000 --- a/poky/bitbake/lib/bs4/tests/test_docs.py +++ /dev/null @@ -1,36 +0,0 @@ -"Test harness for doctests." - -# pylint: disable-msg=E0611,W0142 - -__metaclass__ = type -__all__ = [ - 'additional_tests', - ] - -import atexit -import doctest -import os -#from pkg_resources import ( -# resource_filename, resource_exists, resource_listdir, cleanup_resources) -import unittest - -DOCTEST_FLAGS = ( - doctest.ELLIPSIS | - doctest.NORMALIZE_WHITESPACE | - doctest.REPORT_NDIFF) - - -# def additional_tests(): -# "Run the doc tests (README.txt and docs/*, if any exist)" -# doctest_files = [ -# os.path.abspath(resource_filename('bs4', 'README.txt'))] -# if resource_exists('bs4', 'docs'): -# for name in resource_listdir('bs4', 'docs'): -# if name.endswith('.txt'): -# doctest_files.append( -# os.path.abspath( -# resource_filename('bs4', 'docs/%s' % name))) -# kwargs = dict(module_relative=False, optionflags=DOCTEST_FLAGS) -# atexit.register(cleanup_resources) -# return unittest.TestSuite(( -# doctest.DocFileSuite(*doctest_files, **kwargs))) diff --git a/poky/bitbake/lib/bs4/tests/test_html5lib.py b/poky/bitbake/lib/bs4/tests/test_html5lib.py deleted file mode 100644 index a7494ca..0000000 --- a/poky/bitbake/lib/bs4/tests/test_html5lib.py +++ /dev/null @@ -1,98 +0,0 @@ -"""Tests to ensure that the html5lib tree builder generates good trees.""" - -import warnings - -try: - from bs4.builder import HTML5TreeBuilder - HTML5LIB_PRESENT = True -except ImportError as e: - HTML5LIB_PRESENT = False -from bs4.element import SoupStrainer -from bs4.testing import ( - HTML5TreeBuilderSmokeTest, - SoupTest, - skipIf, -) - -@skipIf( - not HTML5LIB_PRESENT, - "html5lib seems not to be present, not testing its tree builder.") -class HTML5LibBuilderSmokeTest(SoupTest, HTML5TreeBuilderSmokeTest): - """See ``HTML5TreeBuilderSmokeTest``.""" - - @property - def default_builder(self): - return HTML5TreeBuilder() - - def test_soupstrainer(self): - # The html5lib tree builder does not support SoupStrainers. - strainer = SoupStrainer("b") - markup = "

A bold statement.

" - with warnings.catch_warnings(record=True) as w: - soup = self.soup(markup, parse_only=strainer) - self.assertEqual( - soup.decode(), self.document_for(markup)) - - self.assertTrue( - "the html5lib tree builder doesn't support parse_only" in - str(w[0].message)) - - def test_correctly_nested_tables(self): - """html5lib inserts tags where other parsers don't.""" - markup = ('' - '' - "') - - self.assertSoupEquals( - markup, - '
Here's another table:" - '' - '' - '
foo
Here\'s another table:' - '
foo
' - '
') - - self.assertSoupEquals( - "" - "" - "
Foo
Bar
Baz
") - - def test_xml_declaration_followed_by_doctype(self): - markup = ''' - - - - - -

foo

- -''' - soup = self.soup(markup) - # Verify that we can reach the

tag; this means the tree is connected. - self.assertEqual(b"

foo

", soup.p.encode()) - - def test_reparented_markup(self): - markup = '

foo

\n

bar

' - soup = self.soup(markup) - self.assertEqual("

foo

\n

bar

", soup.body.decode()) - self.assertEqual(2, len(soup.find_all('p'))) - - - def test_reparented_markup_ends_with_whitespace(self): - markup = '

foo

\n

bar

\n' - soup = self.soup(markup) - self.assertEqual("

foo

\n

bar

\n", soup.body.decode()) - self.assertEqual(2, len(soup.find_all('p'))) - - def test_processing_instruction(self): - """Processing instructions become comments.""" - markup = b"""""" - soup = self.soup(markup) - assert str(soup).startswith("") - - def test_cloned_multivalue_node(self): - markup = b"""

""" - soup = self.soup(markup) - a1, a2 = soup.find_all('a') - self.assertEqual(a1, a2) - assert a1 is not a2 diff --git a/poky/bitbake/lib/bs4/tests/test_htmlparser.py b/poky/bitbake/lib/bs4/tests/test_htmlparser.py deleted file mode 100644 index b45e35f..0000000 --- a/poky/bitbake/lib/bs4/tests/test_htmlparser.py +++ /dev/null @@ -1,32 +0,0 @@ -"""Tests to ensure that the html.parser tree builder generates good -trees.""" - -from pdb import set_trace -import pickle -from bs4.testing import SoupTest, HTMLTreeBuilderSmokeTest -from bs4.builder import HTMLParserTreeBuilder - -class HTMLParserTreeBuilderSmokeTest(SoupTest, HTMLTreeBuilderSmokeTest): - - @property - def default_builder(self): - return HTMLParserTreeBuilder() - - def test_namespaced_system_doctype(self): - # html.parser can't handle namespaced doctypes, so skip this one. - pass - - def test_namespaced_public_doctype(self): - # html.parser can't handle namespaced doctypes, so skip this one. - pass - - def test_builder_is_pickled(self): - """Unlike most tree builders, HTMLParserTreeBuilder and will - be restored after pickling. - """ - tree = self.soup("foo") - dumped = pickle.dumps(tree, 2) - loaded = pickle.loads(dumped) - self.assertTrue(isinstance(loaded.builder, type(tree.builder))) - - diff --git a/poky/bitbake/lib/bs4/tests/test_lxml.py b/poky/bitbake/lib/bs4/tests/test_lxml.py deleted file mode 100644 index 6c2a1d7..0000000 --- a/poky/bitbake/lib/bs4/tests/test_lxml.py +++ /dev/null @@ -1,76 +0,0 @@ -"""Tests to ensure that the lxml tree builder generates good trees.""" - -import re -import warnings - -try: - import lxml.etree - LXML_PRESENT = True - LXML_VERSION = lxml.etree.LXML_VERSION -except ImportError as e: - LXML_PRESENT = False - LXML_VERSION = (0,) - -if LXML_PRESENT: - from bs4.builder import LXMLTreeBuilder, LXMLTreeBuilderForXML - -from bs4 import ( - BeautifulSoup, - BeautifulStoneSoup, - ) -from bs4.element import Comment, Doctype, SoupStrainer -from bs4.testing import skipIf -from bs4.tests import test_htmlparser -from bs4.testing import ( - HTMLTreeBuilderSmokeTest, - XMLTreeBuilderSmokeTest, - SoupTest, - skipIf, -) - -@skipIf( - not LXML_PRESENT, - "lxml seems not to be present, not testing its tree builder.") -class LXMLTreeBuilderSmokeTest(SoupTest, HTMLTreeBuilderSmokeTest): - """See ``HTMLTreeBuilderSmokeTest``.""" - - @property - def default_builder(self): - return LXMLTreeBuilder() - - def test_out_of_range_entity(self): - self.assertSoupEquals( - "

foo�bar

", "

foobar

") - self.assertSoupEquals( - "

foo�bar

", "

foobar

") - self.assertSoupEquals( - "

foo�bar

", "

foobar

") - - # In lxml < 2.3.5, an empty doctype causes a segfault. Skip this - # test if an old version of lxml is installed. - - @skipIf( - not LXML_PRESENT or LXML_VERSION < (2,3,5,0), - "Skipping doctype test for old version of lxml to avoid segfault.") - def test_empty_doctype(self): - soup = self.soup("") - doctype = soup.contents[0] - self.assertEqual("", doctype.strip()) - - def test_beautifulstonesoup_is_xml_parser(self): - # Make sure that the deprecated BSS class uses an xml builder - # if one is installed. - with warnings.catch_warnings(record=True) as w: - soup = BeautifulStoneSoup("") - self.assertEqual("", str(soup.b)) - self.assertTrue("BeautifulStoneSoup class is deprecated" in str(w[0].message)) - -@skipIf( - not LXML_PRESENT, - "lxml seems not to be present, not testing its XML tree builder.") -class LXMLXMLTreeBuilderSmokeTest(SoupTest, XMLTreeBuilderSmokeTest): - """See ``HTMLTreeBuilderSmokeTest``.""" - - @property - def default_builder(self): - return LXMLTreeBuilderForXML() diff --git a/poky/bitbake/lib/bs4/tests/test_soup.py b/poky/bitbake/lib/bs4/tests/test_soup.py deleted file mode 100644 index f87949e..0000000 --- a/poky/bitbake/lib/bs4/tests/test_soup.py +++ /dev/null @@ -1,483 +0,0 @@ -# -*- coding: utf-8 -*- -"""Tests of Beautiful Soup as a whole.""" - -from pdb import set_trace -import logging -import unittest -import sys -import tempfile - -from bs4 import ( - BeautifulSoup, - BeautifulStoneSoup, -) -from bs4.element import ( - CharsetMetaAttributeValue, - ContentMetaAttributeValue, - SoupStrainer, - NamespacedAttribute, - ) -import bs4.dammit -from bs4.dammit import ( - EntitySubstitution, - UnicodeDammit, - EncodingDetector, -) -from bs4.testing import ( - SoupTest, - skipIf, -) -import warnings - -try: - from bs4.builder import LXMLTreeBuilder, LXMLTreeBuilderForXML - LXML_PRESENT = True -except ImportError as e: - LXML_PRESENT = False - -PYTHON_2_PRE_2_7 = (sys.version_info < (2,7)) -PYTHON_3_PRE_3_2 = (sys.version_info[0] == 3 and sys.version_info < (3,2)) - -class TestConstructor(SoupTest): - - def test_short_unicode_input(self): - data = "

éé

" - soup = self.soup(data) - self.assertEqual("éé", soup.h1.string) - - def test_embedded_null(self): - data = "

foo\0bar

" - soup = self.soup(data) - self.assertEqual("foo\0bar", soup.h1.string) - - def test_exclude_encodings(self): - utf8_data = "RäksmörgÃ¥s".encode("utf-8") - soup = self.soup(utf8_data, exclude_encodings=["utf-8"]) - self.assertEqual("windows-1252", soup.original_encoding) - - -class TestWarnings(SoupTest): - - def _no_parser_specified(self, s, is_there=True): - v = s.startswith(BeautifulSoup.NO_PARSER_SPECIFIED_WARNING[:80]) - self.assertTrue(v) - - def test_warning_if_no_parser_specified(self): - with warnings.catch_warnings(record=True) as w: - soup = self.soup("") - msg = str(w[0].message) - self._assert_no_parser_specified(msg) - - def test_warning_if_parser_specified_too_vague(self): - with warnings.catch_warnings(record=True) as w: - soup = self.soup("", "html") - msg = str(w[0].message) - self._assert_no_parser_specified(msg) - - def test_no_warning_if_explicit_parser_specified(self): - with warnings.catch_warnings(record=True) as w: - soup = self.soup("", "html.parser") - self.assertEqual([], w) - - def test_parseOnlyThese_renamed_to_parse_only(self): - with warnings.catch_warnings(record=True) as w: - soup = self.soup("", parseOnlyThese=SoupStrainer("b")) - msg = str(w[0].message) - self.assertTrue("parseOnlyThese" in msg) - self.assertTrue("parse_only" in msg) - self.assertEqual(b"", soup.encode()) - - def test_fromEncoding_renamed_to_from_encoding(self): - with warnings.catch_warnings(record=True) as w: - utf8 = b"\xc3\xa9" - soup = self.soup(utf8, fromEncoding="utf8") - msg = str(w[0].message) - self.assertTrue("fromEncoding" in msg) - self.assertTrue("from_encoding" in msg) - self.assertEqual("utf8", soup.original_encoding) - - def test_unrecognized_keyword_argument(self): - self.assertRaises( - TypeError, self.soup, "", no_such_argument=True) - -class TestWarnings(SoupTest): - - def test_disk_file_warning(self): - filehandle = tempfile.NamedTemporaryFile() - filename = filehandle.name - try: - with warnings.catch_warnings(record=True) as w: - soup = self.soup(filename) - msg = str(w[0].message) - self.assertTrue("looks like a filename" in msg) - finally: - filehandle.close() - - # The file no longer exists, so Beautiful Soup will no longer issue the warning. - with warnings.catch_warnings(record=True) as w: - soup = self.soup(filename) - self.assertEqual(0, len(w)) - - def test_url_warning(self): - with warnings.catch_warnings(record=True) as w: - soup = self.soup("http://www.crummy.com/") - msg = str(w[0].message) - self.assertTrue("looks like a URL" in msg) - - with warnings.catch_warnings(record=True) as w: - soup = self.soup("http://www.crummy.com/ is great") - self.assertEqual(0, len(w)) - -class TestSelectiveParsing(SoupTest): - - def test_parse_with_soupstrainer(self): - markup = "NoYesNoYes Yes" - strainer = SoupStrainer("b") - soup = self.soup(markup, parse_only=strainer) - self.assertEqual(soup.encode(), b"YesYes Yes") - - -class TestEntitySubstitution(unittest.TestCase): - """Standalone tests of the EntitySubstitution class.""" - def setUp(self): - self.sub = EntitySubstitution - - def test_simple_html_substitution(self): - # Unicode characters corresponding to named HTML entites - # are substituted, and no others. - s = "foo\u2200\N{SNOWMAN}\u00f5bar" - self.assertEqual(self.sub.substitute_html(s), - "foo∀\N{SNOWMAN}õbar") - - def test_smart_quote_substitution(self): - # MS smart quotes are a common source of frustration, so we - # give them a special test. - quotes = b"\x91\x92foo\x93\x94" - dammit = UnicodeDammit(quotes) - self.assertEqual(self.sub.substitute_html(dammit.markup), - "‘’foo“”") - - def test_xml_converstion_includes_no_quotes_if_make_quoted_attribute_is_false(self): - s = 'Welcome to "my bar"' - self.assertEqual(self.sub.substitute_xml(s, False), s) - - def test_xml_attribute_quoting_normally_uses_double_quotes(self): - self.assertEqual(self.sub.substitute_xml("Welcome", True), - '"Welcome"') - self.assertEqual(self.sub.substitute_xml("Bob's Bar", True), - '"Bob\'s Bar"') - - def test_xml_attribute_quoting_uses_single_quotes_when_value_contains_double_quotes(self): - s = 'Welcome to "my bar"' - self.assertEqual(self.sub.substitute_xml(s, True), - "'Welcome to \"my bar\"'") - - def test_xml_attribute_quoting_escapes_single_quotes_when_value_contains_both_single_and_double_quotes(self): - s = 'Welcome to "Bob\'s Bar"' - self.assertEqual( - self.sub.substitute_xml(s, True), - '"Welcome to "Bob\'s Bar""') - - def test_xml_quotes_arent_escaped_when_value_is_not_being_quoted(self): - quoted = 'Welcome to "Bob\'s Bar"' - self.assertEqual(self.sub.substitute_xml(quoted), quoted) - - def test_xml_quoting_handles_angle_brackets(self): - self.assertEqual( - self.sub.substitute_xml("foo"), - "foo<bar>") - - def test_xml_quoting_handles_ampersands(self): - self.assertEqual(self.sub.substitute_xml("AT&T"), "AT&T") - - def test_xml_quoting_including_ampersands_when_they_are_part_of_an_entity(self): - self.assertEqual( - self.sub.substitute_xml("ÁT&T"), - "&Aacute;T&T") - - def test_xml_quoting_ignoring_ampersands_when_they_are_part_of_an_entity(self): - self.assertEqual( - self.sub.substitute_xml_containing_entities("ÁT&T"), - "ÁT&T") - - def test_quotes_not_html_substituted(self): - """There's no need to do this except inside attribute values.""" - text = 'Bob\'s "bar"' - self.assertEqual(self.sub.substitute_html(text), text) - - -class TestEncodingConversion(SoupTest): - # Test Beautiful Soup's ability to decode and encode from various - # encodings. - - def setUp(self): - super(TestEncodingConversion, self).setUp() - self.unicode_data = 'Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!' - self.utf8_data = self.unicode_data.encode("utf-8") - # Just so you know what it looks like. - self.assertEqual( - self.utf8_data, - b'Sacr\xc3\xa9 bleu!') - - def test_ascii_in_unicode_out(self): - # ASCII input is converted to Unicode. The original_encoding - # attribute is set to 'utf-8', a superset of ASCII. - chardet = bs4.dammit.chardet_dammit - logging.disable(logging.WARNING) - try: - def noop(str): - return None - # Disable chardet, which will realize that the ASCII is ASCII. - bs4.dammit.chardet_dammit = noop - ascii = b"a" - soup_from_ascii = self.soup(ascii) - unicode_output = soup_from_ascii.decode() - self.assertTrue(isinstance(unicode_output, str)) - self.assertEqual(unicode_output, self.document_for(ascii.decode())) - self.assertEqual(soup_from_ascii.original_encoding.lower(), "utf-8") - finally: - logging.disable(logging.NOTSET) - bs4.dammit.chardet_dammit = chardet - - def test_unicode_in_unicode_out(self): - # Unicode input is left alone. The original_encoding attribute - # is not set. - soup_from_unicode = self.soup(self.unicode_data) - self.assertEqual(soup_from_unicode.decode(), self.unicode_data) - self.assertEqual(soup_from_unicode.foo.string, 'Sacr\xe9 bleu!') - self.assertEqual(soup_from_unicode.original_encoding, None) - - def test_utf8_in_unicode_out(self): - # UTF-8 input is converted to Unicode. The original_encoding - # attribute is set. - soup_from_utf8 = self.soup(self.utf8_data) - self.assertEqual(soup_from_utf8.decode(), self.unicode_data) - self.assertEqual(soup_from_utf8.foo.string, 'Sacr\xe9 bleu!') - - def test_utf8_out(self): - # The internal data structures can be encoded as UTF-8. - soup_from_unicode = self.soup(self.unicode_data) - self.assertEqual(soup_from_unicode.encode('utf-8'), self.utf8_data) - - @skipIf( - PYTHON_2_PRE_2_7 or PYTHON_3_PRE_3_2, - "Bad HTMLParser detected; skipping test of non-ASCII characters in attribute name.") - def test_attribute_name_containing_unicode_characters(self): - markup = '
' - self.assertEqual(self.soup(markup).div.encode("utf8"), markup.encode("utf8")) - -class TestUnicodeDammit(unittest.TestCase): - """Standalone tests of UnicodeDammit.""" - - def test_unicode_input(self): - markup = "I'm already Unicode! \N{SNOWMAN}" - dammit = UnicodeDammit(markup) - self.assertEqual(dammit.unicode_markup, markup) - - def test_smart_quotes_to_unicode(self): - markup = b"\x91\x92\x93\x94" - dammit = UnicodeDammit(markup) - self.assertEqual( - dammit.unicode_markup, "\u2018\u2019\u201c\u201d") - - def test_smart_quotes_to_xml_entities(self): - markup = b"\x91\x92\x93\x94" - dammit = UnicodeDammit(markup, smart_quotes_to="xml") - self.assertEqual( - dammit.unicode_markup, "‘’“”") - - def test_smart_quotes_to_html_entities(self): - markup = b"\x91\x92\x93\x94" - dammit = UnicodeDammit(markup, smart_quotes_to="html") - self.assertEqual( - dammit.unicode_markup, "‘’“”") - - def test_smart_quotes_to_ascii(self): - markup = b"\x91\x92\x93\x94" - dammit = UnicodeDammit(markup, smart_quotes_to="ascii") - self.assertEqual( - dammit.unicode_markup, """''""""") - - def test_detect_utf8(self): - utf8 = b"Sacr\xc3\xa9 bleu! \xe2\x98\x83" - dammit = UnicodeDammit(utf8) - self.assertEqual(dammit.original_encoding.lower(), 'utf-8') - self.assertEqual(dammit.unicode_markup, 'Sacr\xe9 bleu! \N{SNOWMAN}') - - - def test_convert_hebrew(self): - hebrew = b"\xed\xe5\xec\xf9" - dammit = UnicodeDammit(hebrew, ["iso-8859-8"]) - self.assertEqual(dammit.original_encoding.lower(), 'iso-8859-8') - self.assertEqual(dammit.unicode_markup, '\u05dd\u05d5\u05dc\u05e9') - - def test_dont_see_smart_quotes_where_there_are_none(self): - utf_8 = b"\343\202\261\343\203\274\343\202\277\343\202\244 Watch" - dammit = UnicodeDammit(utf_8) - self.assertEqual(dammit.original_encoding.lower(), 'utf-8') - self.assertEqual(dammit.unicode_markup.encode("utf-8"), utf_8) - - def test_ignore_inappropriate_codecs(self): - utf8_data = "RäksmörgÃ¥s".encode("utf-8") - dammit = UnicodeDammit(utf8_data, ["iso-8859-8"]) - self.assertEqual(dammit.original_encoding.lower(), 'utf-8') - - def test_ignore_invalid_codecs(self): - utf8_data = "RäksmörgÃ¥s".encode("utf-8") - for bad_encoding in ['.utf8', '...', 'utF---16.!']: - dammit = UnicodeDammit(utf8_data, [bad_encoding]) - self.assertEqual(dammit.original_encoding.lower(), 'utf-8') - - def test_exclude_encodings(self): - # This is UTF-8. - utf8_data = "RäksmörgÃ¥s".encode("utf-8") - - # But if we exclude UTF-8 from consideration, the guess is - # Windows-1252. - dammit = UnicodeDammit(utf8_data, exclude_encodings=["utf-8"]) - self.assertEqual(dammit.original_encoding.lower(), 'windows-1252') - - # And if we exclude that, there is no valid guess at all. - dammit = UnicodeDammit( - utf8_data, exclude_encodings=["utf-8", "windows-1252"]) - self.assertEqual(dammit.original_encoding, None) - - def test_encoding_detector_replaces_junk_in_encoding_name_with_replacement_character(self): - detected = EncodingDetector( - b'') - encodings = list(detected.encodings) - assert 'utf-\N{REPLACEMENT CHARACTER}' in encodings - - def test_detect_html5_style_meta_tag(self): - - for data in ( - b'', - b"", - b"", - b""): - dammit = UnicodeDammit(data, is_html=True) - self.assertEqual( - "euc-jp", dammit.original_encoding) - - def test_last_ditch_entity_replacement(self): - # This is a UTF-8 document that contains bytestrings - # completely incompatible with UTF-8 (ie. encoded with some other - # encoding). - # - # Since there is no consistent encoding for the document, - # Unicode, Dammit will eventually encode the document as UTF-8 - # and encode the incompatible characters as REPLACEMENT - # CHARACTER. - # - # If chardet is installed, it will detect that the document - # can be converted into ISO-8859-1 without errors. This happens - # to be the wrong encoding, but it is a consistent encoding, so the - # code we're testing here won't run. - # - # So we temporarily disable chardet if it's present. - doc = b"""\357\273\277 -\330\250\330\252\330\261 -\310\322\321\220\312\321\355\344""" - chardet = bs4.dammit.chardet_dammit - logging.disable(logging.WARNING) - try: - def noop(str): - return None - bs4.dammit.chardet_dammit = noop - dammit = UnicodeDammit(doc) - self.assertEqual(True, dammit.contains_replacement_characters) - self.assertTrue("\ufffd" in dammit.unicode_markup) - - soup = BeautifulSoup(doc, "html.parser") - self.assertTrue(soup.contains_replacement_characters) - finally: - logging.disable(logging.NOTSET) - bs4.dammit.chardet_dammit = chardet - - def test_byte_order_mark_removed(self): - # A document written in UTF-16LE will have its byte order marker stripped. - data = b'\xff\xfe<\x00a\x00>\x00\xe1\x00\xe9\x00<\x00/\x00a\x00>\x00' - dammit = UnicodeDammit(data) - self.assertEqual("áé", dammit.unicode_markup) - self.assertEqual("utf-16le", dammit.original_encoding) - - def test_detwingle(self): - # Here's a UTF8 document. - utf8 = ("\N{SNOWMAN}" * 3).encode("utf8") - - # Here's a Windows-1252 document. - windows_1252 = ( - "\N{LEFT DOUBLE QUOTATION MARK}Hi, I like Windows!" - "\N{RIGHT DOUBLE QUOTATION MARK}").encode("windows_1252") - - # Through some unholy alchemy, they've been stuck together. - doc = utf8 + windows_1252 + utf8 - - # The document can't be turned into UTF-8: - self.assertRaises(UnicodeDecodeError, doc.decode, "utf8") - - # Unicode, Dammit thinks the whole document is Windows-1252, - # and decodes it into "☃☃☃“Hi, I like Windows!â€Ã¢ËœÆ’☃☃" - - # But if we run it through fix_embedded_windows_1252, it's fixed: - - fixed = UnicodeDammit.detwingle(doc) - self.assertEqual( - "☃☃☃“Hi, I like Windows!â€â˜ƒâ˜ƒâ˜ƒ", fixed.decode("utf8")) - - def test_detwingle_ignores_multibyte_characters(self): - # Each of these characters has a UTF-8 representation ending - # in \x93. \x93 is a smart quote if interpreted as - # Windows-1252. But our code knows to skip over multibyte - # UTF-8 characters, so they'll survive the process unscathed. - for tricky_unicode_char in ( - "\N{LATIN SMALL LIGATURE OE}", # 2-byte char '\xc5\x93' - "\N{LATIN SUBSCRIPT SMALL LETTER X}", # 3-byte char '\xe2\x82\x93' - "\xf0\x90\x90\x93", # This is a CJK character, not sure which one. - ): - input = tricky_unicode_char.encode("utf8") - self.assertTrue(input.endswith(b'\x93')) - output = UnicodeDammit.detwingle(input) - self.assertEqual(output, input) - -class TestNamedspacedAttribute(SoupTest): - - def test_name_may_be_none(self): - a = NamespacedAttribute("xmlns", None) - self.assertEqual(a, "xmlns") - - def test_attribute_is_equivalent_to_colon_separated_string(self): - a = NamespacedAttribute("a", "b") - self.assertEqual("a:b", a) - - def test_attributes_are_equivalent_if_prefix_and_name_identical(self): - a = NamespacedAttribute("a", "b", "c") - b = NamespacedAttribute("a", "b", "c") - self.assertEqual(a, b) - - # The actual namespace is not considered. - c = NamespacedAttribute("a", "b", None) - self.assertEqual(a, c) - - # But name and prefix are important. - d = NamespacedAttribute("a", "z", "c") - self.assertNotEqual(a, d) - - e = NamespacedAttribute("z", "b", "c") - self.assertNotEqual(a, e) - - -class TestAttributeValueWithCharsetSubstitution(unittest.TestCase): - - def test_content_meta_attribute_value(self): - value = CharsetMetaAttributeValue("euc-jp") - self.assertEqual("euc-jp", value) - self.assertEqual("euc-jp", value.original_value) - self.assertEqual("utf8", value.encode("utf8")) - - - def test_content_meta_attribute_value(self): - value = ContentMetaAttributeValue("text/html; charset=euc-jp") - self.assertEqual("text/html; charset=euc-jp", value) - self.assertEqual("text/html; charset=euc-jp", value.original_value) - self.assertEqual("text/html; charset=utf8", value.encode("utf8")) diff --git a/poky/bitbake/lib/bs4/tests/test_tree.py b/poky/bitbake/lib/bs4/tests/test_tree.py deleted file mode 100644 index 6d3e67f..0000000 --- a/poky/bitbake/lib/bs4/tests/test_tree.py +++ /dev/null @@ -1,2011 +0,0 @@ -# -*- coding: utf-8 -*- -"""Tests for Beautiful Soup's tree traversal methods. - -The tree traversal methods are the main advantage of using Beautiful -Soup over just using a parser. - -Different parsers will build different Beautiful Soup trees given the -same markup, but all Beautiful Soup trees can be traversed with the -methods tested here. -""" - -from pdb import set_trace -import copy -import pickle -import re -import warnings -from bs4 import BeautifulSoup -from bs4.builder import ( - builder_registry, - HTMLParserTreeBuilder, -) -from bs4.element import ( - PY3K, - CData, - Comment, - Declaration, - Doctype, - NavigableString, - SoupStrainer, - Tag, -) -from bs4.testing import ( - SoupTest, - skipIf, -) - -XML_BUILDER_PRESENT = (builder_registry.lookup("xml") is not None) -LXML_PRESENT = (builder_registry.lookup("lxml") is not None) - -class TreeTest(SoupTest): - - def assertSelects(self, tags, should_match): - """Make sure that the given tags have the correct text. - - This is used in tests that define a bunch of tags, each - containing a single string, and then select certain strings by - some mechanism. - """ - self.assertEqual([tag.string for tag in tags], should_match) - - def assertSelectsIDs(self, tags, should_match): - """Make sure that the given tags have the correct IDs. - - This is used in tests that define a bunch of tags, each - containing a single string, and then select certain strings by - some mechanism. - """ - self.assertEqual([tag['id'] for tag in tags], should_match) - - -class TestFind(TreeTest): - """Basic tests of the find() method. - - find() just calls find_all() with limit=1, so it's not tested all - that thouroughly here. - """ - - def test_find_tag(self): - soup = self.soup("1234") - self.assertEqual(soup.find("b").string, "2") - - def test_unicode_text_find(self): - soup = self.soup('

Räksmörgås

') - self.assertEqual(soup.find(string='Räksmörgås'), 'Räksmörgås') - - def test_unicode_attribute_find(self): - soup = self.soup('

here it is

') - str(soup) - self.assertEqual("here it is", soup.find(id='RäksmörgÃ¥s').text) - - - def test_find_everything(self): - """Test an optimization that finds all tags.""" - soup = self.soup("foobar") - self.assertEqual(2, len(soup.find_all())) - - def test_find_everything_with_name(self): - """Test an optimization that finds all tags with a given name.""" - soup = self.soup("foobarbaz") - self.assertEqual(2, len(soup.find_all('a'))) - -class TestFindAll(TreeTest): - """Basic tests of the find_all() method.""" - - def test_find_all_text_nodes(self): - """You can search the tree for text nodes.""" - soup = self.soup("Foobar\xbb") - # Exact match. - self.assertEqual(soup.find_all(string="bar"), ["bar"]) - self.assertEqual(soup.find_all(text="bar"), ["bar"]) - # Match any of a number of strings. - self.assertEqual( - soup.find_all(text=["Foo", "bar"]), ["Foo", "bar"]) - # Match a regular expression. - self.assertEqual(soup.find_all(text=re.compile('.*')), - ["Foo", "bar", '\xbb']) - # Match anything. - self.assertEqual(soup.find_all(text=True), - ["Foo", "bar", '\xbb']) - - def test_find_all_limit(self): - """You can limit the number of items returned by find_all.""" - soup = self.soup("12345") - self.assertSelects(soup.find_all('a', limit=3), ["1", "2", "3"]) - self.assertSelects(soup.find_all('a', limit=1), ["1"]) - self.assertSelects( - soup.find_all('a', limit=10), ["1", "2", "3", "4", "5"]) - - # A limit of 0 means no limit. - self.assertSelects( - soup.find_all('a', limit=0), ["1", "2", "3", "4", "5"]) - - def test_calling_a_tag_is_calling_findall(self): - soup = self.soup("123") - self.assertSelects(soup('a', limit=1), ["1"]) - self.assertSelects(soup.b(id="foo"), ["3"]) - - def test_find_all_with_self_referential_data_structure_does_not_cause_infinite_recursion(self): - soup = self.soup("") - # Create a self-referential list. - l = [] - l.append(l) - - # Without special code in _normalize_search_value, this would cause infinite - # recursion. - self.assertEqual([], soup.find_all(l)) - - def test_find_all_resultset(self): - """All find_all calls return a ResultSet""" - soup = self.soup("") - result = soup.find_all("a") - self.assertTrue(hasattr(result, "source")) - - result = soup.find_all(True) - self.assertTrue(hasattr(result, "source")) - - result = soup.find_all(text="foo") - self.assertTrue(hasattr(result, "source")) - - -class TestFindAllBasicNamespaces(TreeTest): - - def test_find_by_namespaced_name(self): - soup = self.soup('4') - self.assertEqual("4", soup.find("mathml:msqrt").string) - self.assertEqual("a", soup.find(attrs= { "svg:fill" : "red" }).name) - - -class TestFindAllByName(TreeTest): - """Test ways of finding tags by tag name.""" - - def setUp(self): - super(TreeTest, self).setUp() - self.tree = self.soup("""First tag. - Second tag. - Third Nested tag. tag.""") - - def test_find_all_by_tag_name(self): - # Find all the tags. - self.assertSelects( - self.tree.find_all('a'), ['First tag.', 'Nested tag.']) - - def test_find_all_by_name_and_text(self): - self.assertSelects( - self.tree.find_all('a', text='First tag.'), ['First tag.']) - - self.assertSelects( - self.tree.find_all('a', text=True), ['First tag.', 'Nested tag.']) - - self.assertSelects( - self.tree.find_all('a', text=re.compile("tag")), - ['First tag.', 'Nested tag.']) - - - def test_find_all_on_non_root_element(self): - # You can call find_all on any node, not just the root. - self.assertSelects(self.tree.c.find_all('a'), ['Nested tag.']) - - def test_calling_element_invokes_find_all(self): - self.assertSelects(self.tree('a'), ['First tag.', 'Nested tag.']) - - def test_find_all_by_tag_strainer(self): - self.assertSelects( - self.tree.find_all(SoupStrainer('a')), - ['First tag.', 'Nested tag.']) - - def test_find_all_by_tag_names(self): - self.assertSelects( - self.tree.find_all(['a', 'b']), - ['First tag.', 'Second tag.', 'Nested tag.']) - - def test_find_all_by_tag_dict(self): - self.assertSelects( - self.tree.find_all({'a' : True, 'b' : True}), - ['First tag.', 'Second tag.', 'Nested tag.']) - - def test_find_all_by_tag_re(self): - self.assertSelects( - self.tree.find_all(re.compile('^[ab]$')), - ['First tag.', 'Second tag.', 'Nested tag.']) - - def test_find_all_with_tags_matching_method(self): - # You can define an oracle method that determines whether - # a tag matches the search. - def id_matches_name(tag): - return tag.name == tag.get('id') - - tree = self.soup("""Match 1. - Does not match. - Match 2.""") - - self.assertSelects( - tree.find_all(id_matches_name), ["Match 1.", "Match 2."]) - - -class TestFindAllByAttribute(TreeTest): - - def test_find_all_by_attribute_name(self): - # You can pass in keyword arguments to find_all to search by - # attribute. - tree = self.soup(""" - Matching a. - - Non-matching Matching b.a. - """) - self.assertSelects(tree.find_all(id='first'), - ["Matching a.", "Matching b."]) - - def test_find_all_by_utf8_attribute_value(self): - peace = "×ולש".encode("utf8") - data = ''.encode("utf8") - soup = self.soup(data) - self.assertEqual([soup.a], soup.find_all(title=peace)) - self.assertEqual([soup.a], soup.find_all(title=peace.decode("utf8"))) - self.assertEqual([soup.a], soup.find_all(title=[peace, "something else"])) - - def test_find_all_by_attribute_dict(self): - # You can pass in a dictionary as the argument 'attrs'. This - # lets you search for attributes like 'name' (a fixed argument - # to find_all) and 'class' (a reserved word in Python.) - tree = self.soup(""" - Name match. - Class match. - Non-match. - A tag called 'name1'. - """) - - # This doesn't do what you want. - self.assertSelects(tree.find_all(name='name1'), - ["A tag called 'name1'."]) - # This does what you want. - self.assertSelects(tree.find_all(attrs={'name' : 'name1'}), - ["Name match."]) - - self.assertSelects(tree.find_all(attrs={'class' : 'class2'}), - ["Class match."]) - - def test_find_all_by_class(self): - tree = self.soup(""" - Class 1. - Class 2. - Class 1. - Class 3 and 4. - """) - - # Passing in the class_ keyword argument will search against - # the 'class' attribute. - self.assertSelects(tree.find_all('a', class_='1'), ['Class 1.']) - self.assertSelects(tree.find_all('c', class_='3'), ['Class 3 and 4.']) - self.assertSelects(tree.find_all('c', class_='4'), ['Class 3 and 4.']) - - # Passing in a string to 'attrs' will also search the CSS class. - self.assertSelects(tree.find_all('a', '1'), ['Class 1.']) - self.assertSelects(tree.find_all(attrs='1'), ['Class 1.', 'Class 1.']) - self.assertSelects(tree.find_all('c', '3'), ['Class 3 and 4.']) - self.assertSelects(tree.find_all('c', '4'), ['Class 3 and 4.']) - - def test_find_by_class_when_multiple_classes_present(self): - tree = self.soup("Found it") - - f = tree.find_all("gar", class_=re.compile("o")) - self.assertSelects(f, ["Found it"]) - - f = tree.find_all("gar", class_=re.compile("a")) - self.assertSelects(f, ["Found it"]) - - # Since the class is not the string "foo bar", but the two - # strings "foo" and "bar", this will not find anything. - f = tree.find_all("gar", class_=re.compile("o b")) - self.assertSelects(f, []) - - def test_find_all_with_non_dictionary_for_attrs_finds_by_class(self): - soup = self.soup("Found it") - - self.assertSelects(soup.find_all("a", re.compile("ba")), ["Found it"]) - - def big_attribute_value(value): - return len(value) > 3 - - self.assertSelects(soup.find_all("a", big_attribute_value), []) - - def small_attribute_value(value): - return len(value) <= 3 - - self.assertSelects( - soup.find_all("a", small_attribute_value), ["Found it"]) - - def test_find_all_with_string_for_attrs_finds_multiple_classes(self): - soup = self.soup('') - a, a2 = soup.find_all("a") - self.assertEqual([a, a2], soup.find_all("a", "foo")) - self.assertEqual([a], soup.find_all("a", "bar")) - - # If you specify the class as a string that contains a - # space, only that specific value will be found. - self.assertEqual([a], soup.find_all("a", class_="foo bar")) - self.assertEqual([a], soup.find_all("a", "foo bar")) - self.assertEqual([], soup.find_all("a", "bar foo")) - - def test_find_all_by_attribute_soupstrainer(self): - tree = self.soup(""" - Match. - Non-match.""") - - strainer = SoupStrainer(attrs={'id' : 'first'}) - self.assertSelects(tree.find_all(strainer), ['Match.']) - - def test_find_all_with_missing_atribute(self): - # You can pass in None as the value of an attribute to find_all. - # This will match tags that do not have that attribute set. - tree = self.soup("""ID present. - No ID present. - ID is empty.""") - self.assertSelects(tree.find_all('a', id=None), ["No ID present."]) - - def test_find_all_with_defined_attribute(self): - # You can pass in None as the value of an attribute to find_all. - # This will match tags that have that attribute set to any value. - tree = self.soup("""ID present. - No ID present. - ID is empty.""") - self.assertSelects( - tree.find_all(id=True), ["ID present.", "ID is empty."]) - - def test_find_all_with_numeric_attribute(self): - # If you search for a number, it's treated as a string. - tree = self.soup("""Unquoted attribute. - Quoted attribute.""") - - expected = ["Unquoted attribute.", "Quoted attribute."] - self.assertSelects(tree.find_all(id=1), expected) - self.assertSelects(tree.find_all(id="1"), expected) - - def test_find_all_with_list_attribute_values(self): - # You can pass a list of attribute values instead of just one, - # and you'll get tags that match any of the values. - tree = self.soup("""1 - 2 - 3 - No ID.""") - self.assertSelects(tree.find_all(id=["1", "3", "4"]), - ["1", "3"]) - - def test_find_all_with_regular_expression_attribute_value(self): - # You can pass a regular expression as an attribute value, and - # you'll get tags whose values for that attribute match the - # regular expression. - tree = self.soup("""One a. - Two as. - Mixed as and bs. - One b. - No ID.""") - - self.assertSelects(tree.find_all(id=re.compile("^a+$")), - ["One a.", "Two as."]) - - def test_find_by_name_and_containing_string(self): - soup = self.soup("foobarfoo") - a = soup.a - - self.assertEqual([a], soup.find_all("a", text="foo")) - self.assertEqual([], soup.find_all("a", text="bar")) - self.assertEqual([], soup.find_all("a", text="bar")) - - def test_find_by_name_and_containing_string_when_string_is_buried(self): - soup = self.soup("foofoo") - self.assertEqual(soup.find_all("a"), soup.find_all("a", text="foo")) - - def test_find_by_attribute_and_containing_string(self): - soup = self.soup('foofoo') - a = soup.a - - self.assertEqual([a], soup.find_all(id=2, text="foo")) - self.assertEqual([], soup.find_all(id=1, text="bar")) - - - - -class TestIndex(TreeTest): - """Test Tag.index""" - def test_index(self): - tree = self.soup("""
- Identical - Not identical - Identical - - Identical with child - Also not identical - Identical with child -
""") - div = tree.div - for i, element in enumerate(div.contents): - self.assertEqual(i, div.index(element)) - self.assertRaises(ValueError, tree.index, 1) - - -class TestParentOperations(TreeTest): - """Test navigation and searching through an element's parents.""" - - def setUp(self): - super(TestParentOperations, self).setUp() - self.tree = self.soup('''
    -
      -
        -
          - Start here -
        -
      ''') - self.start = self.tree.b - - - def test_parent(self): - self.assertEqual(self.start.parent['id'], 'bottom') - self.assertEqual(self.start.parent.parent['id'], 'middle') - self.assertEqual(self.start.parent.parent.parent['id'], 'top') - - def test_parent_of_top_tag_is_soup_object(self): - top_tag = self.tree.contents[0] - self.assertEqual(top_tag.parent, self.tree) - - def test_soup_object_has_no_parent(self): - self.assertEqual(None, self.tree.parent) - - def test_find_parents(self): - self.assertSelectsIDs( - self.start.find_parents('ul'), ['bottom', 'middle', 'top']) - self.assertSelectsIDs( - self.start.find_parents('ul', id="middle"), ['middle']) - - def test_find_parent(self): - self.assertEqual(self.start.find_parent('ul')['id'], 'bottom') - self.assertEqual(self.start.find_parent('ul', id='top')['id'], 'top') - - def test_parent_of_text_element(self): - text = self.tree.find(text="Start here") - self.assertEqual(text.parent.name, 'b') - - def test_text_element_find_parent(self): - text = self.tree.find(text="Start here") - self.assertEqual(text.find_parent('ul')['id'], 'bottom') - - def test_parent_generator(self): - parents = [parent['id'] for parent in self.start.parents - if parent is not None and 'id' in parent.attrs] - self.assertEqual(parents, ['bottom', 'middle', 'top']) - - -class ProximityTest(TreeTest): - - def setUp(self): - super(TreeTest, self).setUp() - self.tree = self.soup( - 'OneTwoThree') - - -class TestNextOperations(ProximityTest): - - def setUp(self): - super(TestNextOperations, self).setUp() - self.start = self.tree.b - - def test_next(self): - self.assertEqual(self.start.next_element, "One") - self.assertEqual(self.start.next_element.next_element['id'], "2") - - def test_next_of_last_item_is_none(self): - last = self.tree.find(text="Three") - self.assertEqual(last.next_element, None) - - def test_next_of_root_is_none(self): - # The document root is outside the next/previous chain. - self.assertEqual(self.tree.next_element, None) - - def test_find_all_next(self): - self.assertSelects(self.start.find_all_next('b'), ["Two", "Three"]) - self.start.find_all_next(id=3) - self.assertSelects(self.start.find_all_next(id=3), ["Three"]) - - def test_find_next(self): - self.assertEqual(self.start.find_next('b')['id'], '2') - self.assertEqual(self.start.find_next(text="Three"), "Three") - - def test_find_next_for_text_element(self): - text = self.tree.find(text="One") - self.assertEqual(text.find_next("b").string, "Two") - self.assertSelects(text.find_all_next("b"), ["Two", "Three"]) - - def test_next_generator(self): - start = self.tree.find(text="Two") - successors = [node for node in start.next_elements] - # There are two successors: the final tag and its text contents. - tag, contents = successors - self.assertEqual(tag['id'], '3') - self.assertEqual(contents, "Three") - -class TestPreviousOperations(ProximityTest): - - def setUp(self): - super(TestPreviousOperations, self).setUp() - self.end = self.tree.find(text="Three") - - def test_previous(self): - self.assertEqual(self.end.previous_element['id'], "3") - self.assertEqual(self.end.previous_element.previous_element, "Two") - - def test_previous_of_first_item_is_none(self): - first = self.tree.find('html') - self.assertEqual(first.previous_element, None) - - def test_previous_of_root_is_none(self): - # The document root is outside the next/previous chain. - # XXX This is broken! - #self.assertEqual(self.tree.previous_element, None) - pass - - def test_find_all_previous(self): - # The tag containing the "Three" node is the predecessor - # of the "Three" node itself, which is why "Three" shows up - # here. - self.assertSelects( - self.end.find_all_previous('b'), ["Three", "Two", "One"]) - self.assertSelects(self.end.find_all_previous(id=1), ["One"]) - - def test_find_previous(self): - self.assertEqual(self.end.find_previous('b')['id'], '3') - self.assertEqual(self.end.find_previous(text="One"), "One") - - def test_find_previous_for_text_element(self): - text = self.tree.find(text="Three") - self.assertEqual(text.find_previous("b").string, "Three") - self.assertSelects( - text.find_all_previous("b"), ["Three", "Two", "One"]) - - def test_previous_generator(self): - start = self.tree.find(text="One") - predecessors = [node for node in start.previous_elements] - - # There are four predecessors: the tag containing "One" - # the tag, the tag, and the tag. - b, body, head, html = predecessors - self.assertEqual(b['id'], '1') - self.assertEqual(body.name, "body") - self.assertEqual(head.name, "head") - self.assertEqual(html.name, "html") - - -class SiblingTest(TreeTest): - - def setUp(self): - super(SiblingTest, self).setUp() - markup = ''' - - - - - - - - - - - ''' - # All that whitespace looks good but makes the tests more - # difficult. Get rid of it. - markup = re.compile("\n\s*").sub("", markup) - self.tree = self.soup(markup) - - -class TestNextSibling(SiblingTest): - - def setUp(self): - super(TestNextSibling, self).setUp() - self.start = self.tree.find(id="1") - - def test_next_sibling_of_root_is_none(self): - self.assertEqual(self.tree.next_sibling, None) - - def test_next_sibling(self): - self.assertEqual(self.start.next_sibling['id'], '2') - self.assertEqual(self.start.next_sibling.next_sibling['id'], '3') - - # Note the difference between next_sibling and next_element. - self.assertEqual(self.start.next_element['id'], '1.1') - - def test_next_sibling_may_not_exist(self): - self.assertEqual(self.tree.html.next_sibling, None) - - nested_span = self.tree.find(id="1.1") - self.assertEqual(nested_span.next_sibling, None) - - last_span = self.tree.find(id="4") - self.assertEqual(last_span.next_sibling, None) - - def test_find_next_sibling(self): - self.assertEqual(self.start.find_next_sibling('span')['id'], '2') - - def test_next_siblings(self): - self.assertSelectsIDs(self.start.find_next_siblings("span"), - ['2', '3', '4']) - - self.assertSelectsIDs(self.start.find_next_siblings(id='3'), ['3']) - - def test_next_sibling_for_text_element(self): - soup = self.soup("Foobarbaz") - start = soup.find(text="Foo") - self.assertEqual(start.next_sibling.name, 'b') - self.assertEqual(start.next_sibling.next_sibling, 'baz') - - self.assertSelects(start.find_next_siblings('b'), ['bar']) - self.assertEqual(start.find_next_sibling(text="baz"), "baz") - self.assertEqual(start.find_next_sibling(text="nonesuch"), None) - - -class TestPreviousSibling(SiblingTest): - - def setUp(self): - super(TestPreviousSibling, self).setUp() - self.end = self.tree.find(id="4") - - def test_previous_sibling_of_root_is_none(self): - self.assertEqual(self.tree.previous_sibling, None) - - def test_previous_sibling(self): - self.assertEqual(self.end.previous_sibling['id'], '3') - self.assertEqual(self.end.previous_sibling.previous_sibling['id'], '2') - - # Note the difference between previous_sibling and previous_element. - self.assertEqual(self.end.previous_element['id'], '3.1') - - def test_previous_sibling_may_not_exist(self): - self.assertEqual(self.tree.html.previous_sibling, None) - - nested_span = self.tree.find(id="1.1") - self.assertEqual(nested_span.previous_sibling, None) - - first_span = self.tree.find(id="1") - self.assertEqual(first_span.previous_sibling, None) - - def test_find_previous_sibling(self): - self.assertEqual(self.end.find_previous_sibling('span')['id'], '3') - - def test_previous_siblings(self): - self.assertSelectsIDs(self.end.find_previous_siblings("span"), - ['3', '2', '1']) - - self.assertSelectsIDs(self.end.find_previous_siblings(id='1'), ['1']) - - def test_previous_sibling_for_text_element(self): - soup = self.soup("Foobarbaz") - start = soup.find(text="baz") - self.assertEqual(start.previous_sibling.name, 'b') - self.assertEqual(start.previous_sibling.previous_sibling, 'Foo') - - self.assertSelects(start.find_previous_siblings('b'), ['bar']) - self.assertEqual(start.find_previous_sibling(text="Foo"), "Foo") - self.assertEqual(start.find_previous_sibling(text="nonesuch"), None) - - -class TestTagCreation(SoupTest): - """Test the ability to create new tags.""" - def test_new_tag(self): - soup = self.soup("") - new_tag = soup.new_tag("foo", bar="baz") - self.assertTrue(isinstance(new_tag, Tag)) - self.assertEqual("foo", new_tag.name) - self.assertEqual(dict(bar="baz"), new_tag.attrs) - self.assertEqual(None, new_tag.parent) - - def test_tag_inherits_self_closing_rules_from_builder(self): - if XML_BUILDER_PRESENT: - xml_soup = BeautifulSoup("", "lxml-xml") - xml_br = xml_soup.new_tag("br") - xml_p = xml_soup.new_tag("p") - - # Both the
      and

      tag are empty-element, just because - # they have no contents. - self.assertEqual(b"
      ", xml_br.encode()) - self.assertEqual(b"

      ", xml_p.encode()) - - html_soup = BeautifulSoup("", "html.parser") - html_br = html_soup.new_tag("br") - html_p = html_soup.new_tag("p") - - # The HTML builder users HTML's rules about which tags are - # empty-element tags, and the new tags reflect these rules. - self.assertEqual(b"
      ", html_br.encode()) - self.assertEqual(b"

      ", html_p.encode()) - - def test_new_string_creates_navigablestring(self): - soup = self.soup("") - s = soup.new_string("foo") - self.assertEqual("foo", s) - self.assertTrue(isinstance(s, NavigableString)) - - def test_new_string_can_create_navigablestring_subclass(self): - soup = self.soup("") - s = soup.new_string("foo", Comment) - self.assertEqual("foo", s) - self.assertTrue(isinstance(s, Comment)) - -class TestTreeModification(SoupTest): - - def test_attribute_modification(self): - soup = self.soup('') - soup.a['id'] = 2 - self.assertEqual(soup.decode(), self.document_for('')) - del(soup.a['id']) - self.assertEqual(soup.decode(), self.document_for('')) - soup.a['id2'] = 'foo' - self.assertEqual(soup.decode(), self.document_for('')) - - def test_new_tag_creation(self): - builder = builder_registry.lookup('html')() - soup = self.soup("", builder=builder) - a = Tag(soup, builder, 'a') - ol = Tag(soup, builder, 'ol') - a['href'] = 'http://foo.com/' - soup.body.insert(0, a) - soup.body.insert(1, ol) - self.assertEqual( - soup.body.encode(), - b'
        ') - - def test_append_to_contents_moves_tag(self): - doc = """

        Don't leave me here.

        -

        Don\'t leave!

        """ - soup = self.soup(doc) - second_para = soup.find(id='2') - bold = soup.b - - # Move the tag to the end of the second paragraph. - soup.find(id='2').append(soup.b) - - # The tag is now a child of the second paragraph. - self.assertEqual(bold.parent, second_para) - - self.assertEqual( - soup.decode(), self.document_for( - '

        Don\'t leave me .

        \n' - '

        Don\'t leave!here

        ')) - - def test_replace_with_returns_thing_that_was_replaced(self): - text = "" - soup = self.soup(text) - a = soup.a - new_a = a.replace_with(soup.c) - self.assertEqual(a, new_a) - - def test_unwrap_returns_thing_that_was_replaced(self): - text = "" - soup = self.soup(text) - a = soup.a - new_a = a.unwrap() - self.assertEqual(a, new_a) - - def test_replace_with_and_unwrap_give_useful_exception_when_tag_has_no_parent(self): - soup = self.soup("FooBar") - a = soup.a - a.extract() - self.assertEqual(None, a.parent) - self.assertRaises(ValueError, a.unwrap) - self.assertRaises(ValueError, a.replace_with, soup.c) - - def test_replace_tag_with_itself(self): - text = "Foo" - soup = self.soup(text) - c = soup.c - soup.c.replace_with(c) - self.assertEqual(soup.decode(), self.document_for(text)) - - def test_replace_tag_with_its_parent_raises_exception(self): - text = "" - soup = self.soup(text) - self.assertRaises(ValueError, soup.b.replace_with, soup.a) - - def test_insert_tag_into_itself_raises_exception(self): - text = "" - soup = self.soup(text) - self.assertRaises(ValueError, soup.a.insert, 0, soup.a) - - def test_replace_with_maintains_next_element_throughout(self): - soup = self.soup('

        onethree

        ') - a = soup.a - b = a.contents[0] - # Make it so the tag has two text children. - a.insert(1, "two") - - # Now replace each one with the empty string. - left, right = a.contents - left.replaceWith('') - right.replaceWith('') - - # The tag is still connected to the tree. - self.assertEqual("three", soup.b.string) - - def test_replace_final_node(self): - soup = self.soup("Argh!") - soup.find(text="Argh!").replace_with("Hooray!") - new_text = soup.find(text="Hooray!") - b = soup.b - self.assertEqual(new_text.previous_element, b) - self.assertEqual(new_text.parent, b) - self.assertEqual(new_text.previous_element.next_element, new_text) - self.assertEqual(new_text.next_element, None) - - def test_consecutive_text_nodes(self): - # A builder should never create two consecutive text nodes, - # but if you insert one next to another, Beautiful Soup will - # handle it correctly. - soup = self.soup("Argh!") - soup.b.insert(1, "Hooray!") - - self.assertEqual( - soup.decode(), self.document_for( - "Argh!Hooray!")) - - new_text = soup.find(text="Hooray!") - self.assertEqual(new_text.previous_element, "Argh!") - self.assertEqual(new_text.previous_element.next_element, new_text) - - self.assertEqual(new_text.previous_sibling, "Argh!") - self.assertEqual(new_text.previous_sibling.next_sibling, new_text) - - self.assertEqual(new_text.next_sibling, None) - self.assertEqual(new_text.next_element, soup.c) - - def test_insert_string(self): - soup = self.soup("") - soup.a.insert(0, "bar") - soup.a.insert(0, "foo") - # The string were added to the tag. - self.assertEqual(["foo", "bar"], soup.a.contents) - # And they were converted to NavigableStrings. - self.assertEqual(soup.a.contents[0].next_element, "bar") - - def test_insert_tag(self): - builder = self.default_builder - soup = self.soup( - "Findlady!", builder=builder) - magic_tag = Tag(soup, builder, 'magictag') - magic_tag.insert(0, "the") - soup.a.insert(1, magic_tag) - - self.assertEqual( - soup.decode(), self.document_for( - "Findthelady!")) - - # Make sure all the relationships are hooked up correctly. - b_tag = soup.b - self.assertEqual(b_tag.next_sibling, magic_tag) - self.assertEqual(magic_tag.previous_sibling, b_tag) - - find = b_tag.find(text="Find") - self.assertEqual(find.next_element, magic_tag) - self.assertEqual(magic_tag.previous_element, find) - - c_tag = soup.c - self.assertEqual(magic_tag.next_sibling, c_tag) - self.assertEqual(c_tag.previous_sibling, magic_tag) - - the = magic_tag.find(text="the") - self.assertEqual(the.parent, magic_tag) - self.assertEqual(the.next_element, c_tag) - self.assertEqual(c_tag.previous_element, the) - - def test_append_child_thats_already_at_the_end(self): - data = "" - soup = self.soup(data) - soup.a.append(soup.b) - self.assertEqual(data, soup.decode()) - - def test_move_tag_to_beginning_of_parent(self): - data = "" - soup = self.soup(data) - soup.a.insert(0, soup.d) - self.assertEqual("", soup.decode()) - - def test_insert_works_on_empty_element_tag(self): - # This is a little strange, since most HTML parsers don't allow - # markup like this to come through. But in general, we don't - # know what the parser would or wouldn't have allowed, so - # I'm letting this succeed for now. - soup = self.soup("
        ") - soup.br.insert(1, "Contents") - self.assertEqual(str(soup.br), "
        Contents
        ") - - def test_insert_before(self): - soup = self.soup("foobar") - soup.b.insert_before("BAZ") - soup.a.insert_before("QUUX") - self.assertEqual( - soup.decode(), self.document_for("QUUXfooBAZbar")) - - soup.a.insert_before(soup.b) - self.assertEqual( - soup.decode(), self.document_for("QUUXbarfooBAZ")) - - def test_insert_after(self): - soup = self.soup("foobar") - soup.b.insert_after("BAZ") - soup.a.insert_after("QUUX") - self.assertEqual( - soup.decode(), self.document_for("fooQUUXbarBAZ")) - soup.b.insert_after(soup.a) - self.assertEqual( - soup.decode(), self.document_for("QUUXbarfooBAZ")) - - def test_insert_after_raises_exception_if_after_has_no_meaning(self): - soup = self.soup("") - tag = soup.new_tag("a") - string = soup.new_string("") - self.assertRaises(ValueError, string.insert_after, tag) - self.assertRaises(NotImplementedError, soup.insert_after, tag) - self.assertRaises(ValueError, tag.insert_after, tag) - - def test_insert_before_raises_notimplementederror_if_before_has_no_meaning(self): - soup = self.soup("") - tag = soup.new_tag("a") - string = soup.new_string("") - self.assertRaises(ValueError, string.insert_before, tag) - self.assertRaises(NotImplementedError, soup.insert_before, tag) - self.assertRaises(ValueError, tag.insert_before, tag) - - def test_replace_with(self): - soup = self.soup( - "

        There's no business like show business

        ") - no, show = soup.find_all('b') - show.replace_with(no) - self.assertEqual( - soup.decode(), - self.document_for( - "

        There's business like no business

        ")) - - self.assertEqual(show.parent, None) - self.assertEqual(no.parent, soup.p) - self.assertEqual(no.next_element, "no") - self.assertEqual(no.next_sibling, " business") - - def test_replace_first_child(self): - data = "" - soup = self.soup(data) - soup.b.replace_with(soup.c) - self.assertEqual("", soup.decode()) - - def test_replace_last_child(self): - data = "" - soup = self.soup(data) - soup.c.replace_with(soup.b) - self.assertEqual("", soup.decode()) - - def test_nested_tag_replace_with(self): - soup = self.soup( - """Wereservetherighttorefuseservice""") - - # Replace the entire tag and its contents ("reserve the - # right") with the tag ("refuse"). - remove_tag = soup.b - move_tag = soup.f - remove_tag.replace_with(move_tag) - - self.assertEqual( - soup.decode(), self.document_for( - "Werefusetoservice")) - - # The tag is now an orphan. - self.assertEqual(remove_tag.parent, None) - self.assertEqual(remove_tag.find(text="right").next_element, None) - self.assertEqual(remove_tag.previous_element, None) - self.assertEqual(remove_tag.next_sibling, None) - self.assertEqual(remove_tag.previous_sibling, None) - - # The tag is now connected to the tag. - self.assertEqual(move_tag.parent, soup.a) - self.assertEqual(move_tag.previous_element, "We") - self.assertEqual(move_tag.next_element.next_element, soup.e) - self.assertEqual(move_tag.next_sibling, None) - - # The gap where the tag used to be has been mended, and - # the word "to" is now connected to the tag. - to_text = soup.find(text="to") - g_tag = soup.g - self.assertEqual(to_text.next_element, g_tag) - self.assertEqual(to_text.next_sibling, g_tag) - self.assertEqual(g_tag.previous_element, to_text) - self.assertEqual(g_tag.previous_sibling, to_text) - - def test_unwrap(self): - tree = self.soup(""" -

        Unneeded formatting is unneeded

        - """) - tree.em.unwrap() - self.assertEqual(tree.em, None) - self.assertEqual(tree.p.text, "Unneeded formatting is unneeded") - - def test_wrap(self): - soup = self.soup("I wish I was bold.") - value = soup.string.wrap(soup.new_tag("b")) - self.assertEqual(value.decode(), "I wish I was bold.") - self.assertEqual( - soup.decode(), self.document_for("I wish I was bold.")) - - def test_wrap_extracts_tag_from_elsewhere(self): - soup = self.soup("I wish I was bold.") - soup.b.next_sibling.wrap(soup.b) - self.assertEqual( - soup.decode(), self.document_for("I wish I was bold.")) - - def test_wrap_puts_new_contents_at_the_end(self): - soup = self.soup("I like being bold.I wish I was bold.") - soup.b.next_sibling.wrap(soup.b) - self.assertEqual(2, len(soup.b.contents)) - self.assertEqual( - soup.decode(), self.document_for( - "I like being bold.I wish I was bold.")) - - def test_extract(self): - soup = self.soup( - 'Some content. More content.') - - self.assertEqual(len(soup.body.contents), 3) - extracted = soup.find(id="nav").extract() - - self.assertEqual( - soup.decode(), "Some content. More content.") - self.assertEqual(extracted.decode(), '') - - # The extracted tag is now an orphan. - self.assertEqual(len(soup.body.contents), 2) - self.assertEqual(extracted.parent, None) - self.assertEqual(extracted.previous_element, None) - self.assertEqual(extracted.next_element.next_element, None) - - # The gap where the extracted tag used to be has been mended. - content_1 = soup.find(text="Some content. ") - content_2 = soup.find(text=" More content.") - self.assertEqual(content_1.next_element, content_2) - self.assertEqual(content_1.next_sibling, content_2) - self.assertEqual(content_2.previous_element, content_1) - self.assertEqual(content_2.previous_sibling, content_1) - - def test_extract_distinguishes_between_identical_strings(self): - soup = self.soup("
        foobar") - foo_1 = soup.a.string - bar_1 = soup.b.string - foo_2 = soup.new_string("foo") - bar_2 = soup.new_string("bar") - soup.a.append(foo_2) - soup.b.append(bar_2) - - # Now there are two identical strings in the tag, and two - # in the tag. Let's remove the first "foo" and the second - # "bar". - foo_1.extract() - bar_2.extract() - self.assertEqual(foo_2, soup.a.string) - self.assertEqual(bar_2, soup.b.string) - - def test_extract_multiples_of_same_tag(self): - soup = self.soup(""" - - - - - - - - - -""") - [soup.script.extract() for i in soup.find_all("script")] - self.assertEqual("\n\n\n", str(soup.body)) - - - def test_extract_works_when_element_is_surrounded_by_identical_strings(self): - soup = self.soup( - '\n' - 'hi\n' - '') - soup.find('body').extract() - self.assertEqual(None, soup.find('body')) - - - def test_clear(self): - """Tag.clear()""" - soup = self.soup("

        String Italicized and another

        ") - # clear using extract() - a = soup.a - soup.p.clear() - self.assertEqual(len(soup.p.contents), 0) - self.assertTrue(hasattr(a, "contents")) - - # clear using decompose() - em = a.em - a.clear(decompose=True) - self.assertEqual(0, len(em.contents)) - - def test_string_set(self): - """Tag.string = 'string'""" - soup = self.soup(" ") - soup.a.string = "foo" - self.assertEqual(soup.a.contents, ["foo"]) - soup.b.string = "bar" - self.assertEqual(soup.b.contents, ["bar"]) - - def test_string_set_does_not_affect_original_string(self): - soup = self.soup("foobar") - soup.b.string = soup.c.string - self.assertEqual(soup.a.encode(), b"barbar") - - def test_set_string_preserves_class_of_string(self): - soup = self.soup("") - cdata = CData("foo") - soup.a.string = cdata - self.assertTrue(isinstance(soup.a.string, CData)) - -class TestElementObjects(SoupTest): - """Test various features of element objects.""" - - def test_len(self): - """The length of an element is its number of children.""" - soup = self.soup("123") - - # The BeautifulSoup object itself contains one element: the - # tag. - self.assertEqual(len(soup.contents), 1) - self.assertEqual(len(soup), 1) - - # The tag contains three elements: the text node "1", the - # tag, and the text node "3". - self.assertEqual(len(soup.top), 3) - self.assertEqual(len(soup.top.contents), 3) - - def test_member_access_invokes_find(self): - """Accessing a Python member .foo invokes find('foo')""" - soup = self.soup('') - self.assertEqual(soup.b, soup.find('b')) - self.assertEqual(soup.b.i, soup.find('b').find('i')) - self.assertEqual(soup.a, None) - - def test_deprecated_member_access(self): - soup = self.soup('') - with warnings.catch_warnings(record=True) as w: - tag = soup.bTag - self.assertEqual(soup.b, tag) - self.assertEqual( - '.bTag is deprecated, use .find("b") instead.', - str(w[0].message)) - - def test_has_attr(self): - """has_attr() checks for the presence of an attribute. - - Please note note: has_attr() is different from - __in__. has_attr() checks the tag's attributes and __in__ - checks the tag's chidlren. - """ - soup = self.soup("") - self.assertTrue(soup.foo.has_attr('attr')) - self.assertFalse(soup.foo.has_attr('attr2')) - - - def test_attributes_come_out_in_alphabetical_order(self): - markup = '' - self.assertSoupEquals(markup, '') - - def test_string(self): - # A tag that contains only a text node makes that node - # available as .string. - soup = self.soup("foo") - self.assertEqual(soup.b.string, 'foo') - - def test_empty_tag_has_no_string(self): - # A tag with no children has no .stirng. - soup = self.soup("") - self.assertEqual(soup.b.string, None) - - def test_tag_with_multiple_children_has_no_string(self): - # A tag with no children has no .string. - soup = self.soup("foo") - self.assertEqual(soup.b.string, None) - - soup = self.soup("foobar
        ") - self.assertEqual(soup.b.string, None) - - # Even if all the children are strings, due to trickery, - # it won't work--but this would be a good optimization. - soup = self.soup("foo
        ") - soup.a.insert(1, "bar") - self.assertEqual(soup.a.string, None) - - def test_tag_with_recursive_string_has_string(self): - # A tag with a single child which has a .string inherits that - # .string. - soup = self.soup("foo") - self.assertEqual(soup.a.string, "foo") - self.assertEqual(soup.string, "foo") - - def test_lack_of_string(self): - """Only a tag containing a single text node has a .string.""" - soup = self.soup("feo") - self.assertFalse(soup.b.string) - - soup = self.soup("") - self.assertFalse(soup.b.string) - - def test_all_text(self): - """Tag.text and Tag.get_text(sep=u"") -> all child text, concatenated""" - soup = self.soup("ar t ") - self.assertEqual(soup.a.text, "ar t ") - self.assertEqual(soup.a.get_text(strip=True), "art") - self.assertEqual(soup.a.get_text(","), "a,r, , t ") - self.assertEqual(soup.a.get_text(",", strip=True), "a,r,t") - - def test_get_text_ignores_comments(self): - soup = self.soup("foobar") - self.assertEqual(soup.get_text(), "foobar") - - self.assertEqual( - soup.get_text(types=(NavigableString, Comment)), "fooIGNOREbar") - self.assertEqual( - soup.get_text(types=None), "fooIGNOREbar") - - def test_all_strings_ignores_comments(self): - soup = self.soup("foobar") - self.assertEqual(['foo', 'bar'], list(soup.strings)) - -class TestCDAtaListAttributes(SoupTest): - - """Testing cdata-list attributes like 'class'. - """ - def test_single_value_becomes_list(self): - soup = self.soup("") - self.assertEqual(["foo"],soup.a['class']) - - def test_multiple_values_becomes_list(self): - soup = self.soup("") - self.assertEqual(["foo", "bar"], soup.a['class']) - - def test_multiple_values_separated_by_weird_whitespace(self): - soup = self.soup("") - self.assertEqual(["foo", "bar", "baz"],soup.a['class']) - - def test_attributes_joined_into_string_on_output(self): - soup = self.soup("") - self.assertEqual(b'', soup.a.encode()) - - def test_accept_charset(self): - soup = self.soup('
        ') - self.assertEqual(['ISO-8859-1', 'UTF-8'], soup.form['accept-charset']) - - def test_cdata_attribute_applying_only_to_one_tag(self): - data = '' - soup = self.soup(data) - # We saw in another test that accept-charset is a cdata-list - # attribute for the tag. But it's not a cdata-list - # attribute for any other tag. - self.assertEqual('ISO-8859-1 UTF-8', soup.a['accept-charset']) - - def test_string_has_immutable_name_property(self): - string = self.soup("s").string - self.assertEqual(None, string.name) - def t(): - string.name = 'foo' - self.assertRaises(AttributeError, t) - -class TestPersistence(SoupTest): - "Testing features like pickle and deepcopy." - - def setUp(self): - super(TestPersistence, self).setUp() - self.page = """ - - - -Beautiful Soup: We called him Tortoise because he taught us. - - - - - - -foo -bar - -""" - self.tree = self.soup(self.page) - - def test_pickle_and_unpickle_identity(self): - # Pickling a tree, then unpickling it, yields a tree identical - # to the original. - dumped = pickle.dumps(self.tree, 2) - loaded = pickle.loads(dumped) - self.assertEqual(loaded.__class__, BeautifulSoup) - self.assertEqual(loaded.decode(), self.tree.decode()) - - def test_deepcopy_identity(self): - # Making a deepcopy of a tree yields an identical tree. - copied = copy.deepcopy(self.tree) - self.assertEqual(copied.decode(), self.tree.decode()) - - def test_unicode_pickle(self): - # A tree containing Unicode characters can be pickled. - html = "\N{SNOWMAN}" - soup = self.soup(html) - dumped = pickle.dumps(soup, pickle.HIGHEST_PROTOCOL) - loaded = pickle.loads(dumped) - self.assertEqual(loaded.decode(), soup.decode()) - - def test_copy_navigablestring_is_not_attached_to_tree(self): - html = "FooBar" - soup = self.soup(html) - s1 = soup.find(string="Foo") - s2 = copy.copy(s1) - self.assertEqual(s1, s2) - self.assertEqual(None, s2.parent) - self.assertEqual(None, s2.next_element) - self.assertNotEqual(None, s1.next_sibling) - self.assertEqual(None, s2.next_sibling) - self.assertEqual(None, s2.previous_element) - - def test_copy_navigablestring_subclass_has_same_type(self): - html = "" - soup = self.soup(html) - s1 = soup.string - s2 = copy.copy(s1) - self.assertEqual(s1, s2) - self.assertTrue(isinstance(s2, Comment)) - - def test_copy_entire_soup(self): - html = "
        FooBar
        end" - soup = self.soup(html) - soup_copy = copy.copy(soup) - self.assertEqual(soup, soup_copy) - - def test_copy_tag_copies_contents(self): - html = "
        FooBar
        end" - soup = self.soup(html) - div = soup.div - div_copy = copy.copy(div) - - # The two tags look the same, and evaluate to equal. - self.assertEqual(str(div), str(div_copy)) - self.assertEqual(div, div_copy) - - # But they're not the same object. - self.assertFalse(div is div_copy) - - # And they don't have the same relation to the parse tree. The - # copy is not associated with a parse tree at all. - self.assertEqual(None, div_copy.parent) - self.assertEqual(None, div_copy.previous_element) - self.assertEqual(None, div_copy.find(string='Bar').next_element) - self.assertNotEqual(None, div.find(string='Bar').next_element) - -class TestSubstitutions(SoupTest): - - def test_default_formatter_is_minimal(self): - markup = "<<Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>>" - soup = self.soup(markup) - decoded = soup.decode(formatter="minimal") - # The < is converted back into < but the e-with-acute is left alone. - self.assertEqual( - decoded, - self.document_for( - "<<Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>>")) - - def test_formatter_html(self): - markup = "<<Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>>" - soup = self.soup(markup) - decoded = soup.decode(formatter="html") - self.assertEqual( - decoded, - self.document_for("<<Sacré bleu!>>")) - - def test_formatter_minimal(self): - markup = "<<Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>>" - soup = self.soup(markup) - decoded = soup.decode(formatter="minimal") - # The < is converted back into < but the e-with-acute is left alone. - self.assertEqual( - decoded, - self.document_for( - "<<Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>>")) - - def test_formatter_null(self): - markup = "<<Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>>" - soup = self.soup(markup) - decoded = soup.decode(formatter=None) - # Neither the angle brackets nor the e-with-acute are converted. - # This is not valid HTML, but it's what the user wanted. - self.assertEqual(decoded, - self.document_for("<>")) - - def test_formatter_custom(self): - markup = "<foo>bar" - soup = self.soup(markup) - decoded = soup.decode(formatter = lambda x: x.upper()) - # Instead of normal entity conversion code, the custom - # callable is called on every string. - self.assertEqual( - decoded, - self.document_for("BAR")) - - def test_formatter_is_run_on_attribute_values(self): - markup = 'e' - soup = self.soup(markup) - a = soup.a - - expect_minimal = 'e' - - self.assertEqual(expect_minimal, a.decode()) - self.assertEqual(expect_minimal, a.decode(formatter="minimal")) - - expect_html = 'e' - self.assertEqual(expect_html, a.decode(formatter="html")) - - self.assertEqual(markup, a.decode(formatter=None)) - expect_upper = 'E' - self.assertEqual(expect_upper, a.decode(formatter=lambda x: x.upper())) - - def test_formatter_skips_script_tag_for_html_documents(self): - doc = """ - -""" - encoded = BeautifulSoup(doc, 'html.parser').encode() - self.assertTrue(b"< < hey > >" in encoded) - - def test_formatter_skips_style_tag_for_html_documents(self): - doc = """ - -""" - encoded = BeautifulSoup(doc, 'html.parser').encode() - self.assertTrue(b"< < hey > >" in encoded) - - def test_prettify_leaves_preformatted_text_alone(self): - soup = self.soup("
        foo
          \tbar\n  \n  
        baz ") - # Everything outside the
         tag is reformatted, but everything
        -        # inside is left alone.
        -        self.assertEqual(
        -            '
        \n foo\n
          \tbar\n  \n  
        \n baz\n
        ', - soup.div.prettify()) - - def test_prettify_accepts_formatter(self): - soup = BeautifulSoup("foo", 'html.parser') - pretty = soup.prettify(formatter = lambda x: x.upper()) - self.assertTrue("FOO" in pretty) - - def test_prettify_outputs_unicode_by_default(self): - soup = self.soup("") - self.assertEqual(str, type(soup.prettify())) - - def test_prettify_can_encode_data(self): - soup = self.soup("") - self.assertEqual(bytes, type(soup.prettify("utf-8"))) - - def test_html_entity_substitution_off_by_default(self): - markup = "Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!" - soup = self.soup(markup) - encoded = soup.b.encode("utf-8") - self.assertEqual(encoded, markup.encode('utf-8')) - - def test_encoding_substitution(self): - # Here's the tag saying that a document is - # encoded in Shift-JIS. - meta_tag = ('') - soup = self.soup(meta_tag) - - # Parse the document, and the charset apprears unchanged. - self.assertEqual(soup.meta['content'], 'text/html; charset=x-sjis') - - # Encode the document into some encoding, and the encoding is - # substituted into the meta tag. - utf_8 = soup.encode("utf-8") - self.assertTrue(b"charset=utf-8" in utf_8) - - euc_jp = soup.encode("euc_jp") - self.assertTrue(b"charset=euc_jp" in euc_jp) - - shift_jis = soup.encode("shift-jis") - self.assertTrue(b"charset=shift-jis" in shift_jis) - - utf_16_u = soup.encode("utf-16").decode("utf-16") - self.assertTrue("charset=utf-16" in utf_16_u) - - def test_encoding_substitution_doesnt_happen_if_tag_is_strained(self): - markup = ('
        foo
        ') - - # Beautiful Soup used to try to rewrite the meta tag even if the - # meta tag got filtered out by the strainer. This test makes - # sure that doesn't happen. - strainer = SoupStrainer('pre') - soup = self.soup(markup, parse_only=strainer) - self.assertEqual(soup.contents[0].name, 'pre') - -class TestEncoding(SoupTest): - """Test the ability to encode objects into strings.""" - - def test_unicode_string_can_be_encoded(self): - html = "\N{SNOWMAN}" - soup = self.soup(html) - self.assertEqual(soup.b.string.encode("utf-8"), - "\N{SNOWMAN}".encode("utf-8")) - - def test_tag_containing_unicode_string_can_be_encoded(self): - html = "\N{SNOWMAN}" - soup = self.soup(html) - self.assertEqual( - soup.b.encode("utf-8"), html.encode("utf-8")) - - def test_encoding_substitutes_unrecognized_characters_by_default(self): - html = "\N{SNOWMAN}" - soup = self.soup(html) - self.assertEqual(soup.b.encode("ascii"), b"") - - def test_encoding_can_be_made_strict(self): - html = "\N{SNOWMAN}" - soup = self.soup(html) - self.assertRaises( - UnicodeEncodeError, soup.encode, "ascii", errors="strict") - - def test_decode_contents(self): - html = "\N{SNOWMAN}" - soup = self.soup(html) - self.assertEqual("\N{SNOWMAN}", soup.b.decode_contents()) - - def test_encode_contents(self): - html = "\N{SNOWMAN}" - soup = self.soup(html) - self.assertEqual( - "\N{SNOWMAN}".encode("utf8"), soup.b.encode_contents( - encoding="utf8")) - - def test_deprecated_renderContents(self): - html = "\N{SNOWMAN}" - soup = self.soup(html) - self.assertEqual( - "\N{SNOWMAN}".encode("utf8"), soup.b.renderContents()) - - def test_repr(self): - html = "\N{SNOWMAN}" - soup = self.soup(html) - if PY3K: - self.assertEqual(html, repr(soup)) - else: - self.assertEqual(b'\\u2603', repr(soup)) - -class TestNavigableStringSubclasses(SoupTest): - - def test_cdata(self): - # None of the current builders turn CDATA sections into CData - # objects, but you can create them manually. - soup = self.soup("") - cdata = CData("foo") - soup.insert(1, cdata) - self.assertEqual(str(soup), "") - self.assertEqual(soup.find(text="foo"), "foo") - self.assertEqual(soup.contents[0], "foo") - - def test_cdata_is_never_formatted(self): - """Text inside a CData object is passed into the formatter. - - But the return value is ignored. - """ - - self.count = 0 - def increment(*args): - self.count += 1 - return "BITTER FAILURE" - - soup = self.soup("") - cdata = CData("<><><>") - soup.insert(1, cdata) - self.assertEqual( - b"<><>]]>", soup.encode(formatter=increment)) - self.assertEqual(1, self.count) - - def test_doctype_ends_in_newline(self): - # Unlike other NavigableString subclasses, a DOCTYPE always ends - # in a newline. - doctype = Doctype("foo") - soup = self.soup("") - soup.insert(1, doctype) - self.assertEqual(soup.encode(), b"\n") - - def test_declaration(self): - d = Declaration("foo") - self.assertEqual("", d.output_ready()) - -class TestSoupSelector(TreeTest): - - HTML = """ - - - -The title - - - -Hello there. -
        -
        -

        An H1

        -

        Some text

        -

        Some more text

        -

        An H2

        -

        Another

        -Bob -

        Another H2

        -me - -span1a1 -span1a2 test - -span2a1 - - - -
        - -
        - - - - - - - - -

        English

        -

        English UK

        -

        English US

        -

        French

        -
        - - -""" - - def setUp(self): - self.soup = BeautifulSoup(self.HTML, 'html.parser') - - def assertSelects(self, selector, expected_ids): - el_ids = [el['id'] for el in self.soup.select(selector)] - el_ids.sort() - expected_ids.sort() - self.assertEqual(expected_ids, el_ids, - "Selector %s, expected [%s], got [%s]" % ( - selector, ', '.join(expected_ids), ', '.join(el_ids) - ) - ) - - assertSelect = assertSelects - - def assertSelectMultiple(self, *tests): - for selector, expected_ids in tests: - self.assertSelect(selector, expected_ids) - - def test_one_tag_one(self): - els = self.soup.select('title') - self.assertEqual(len(els), 1) - self.assertEqual(els[0].name, 'title') - self.assertEqual(els[0].contents, ['The title']) - - def test_one_tag_many(self): - els = self.soup.select('div') - self.assertEqual(len(els), 4) - for div in els: - self.assertEqual(div.name, 'div') - - el = self.soup.select_one('div') - self.assertEqual('main', el['id']) - - def test_select_one_returns_none_if_no_match(self): - match = self.soup.select_one('nonexistenttag') - self.assertEqual(None, match) - - - def test_tag_in_tag_one(self): - els = self.soup.select('div div') - self.assertSelects('div div', ['inner', 'data1']) - - def test_tag_in_tag_many(self): - for selector in ('html div', 'html body div', 'body div'): - self.assertSelects(selector, ['data1', 'main', 'inner', 'footer']) - - def test_tag_no_match(self): - self.assertEqual(len(self.soup.select('del')), 0) - - def test_invalid_tag(self): - self.assertRaises(ValueError, self.soup.select, 'tag%t') - - def test_select_dashed_tag_ids(self): - self.assertSelects('custom-dashed-tag', ['dash1', 'dash2']) - - def test_select_dashed_by_id(self): - dashed = self.soup.select('custom-dashed-tag[id=\"dash2\"]') - self.assertEqual(dashed[0].name, 'custom-dashed-tag') - self.assertEqual(dashed[0]['id'], 'dash2') - - def test_dashed_tag_text(self): - self.assertEqual(self.soup.select('body > custom-dashed-tag')[0].text, 'Hello there.') - - def test_select_dashed_matches_find_all(self): - self.assertEqual(self.soup.select('custom-dashed-tag'), self.soup.find_all('custom-dashed-tag')) - - def test_header_tags(self): - self.assertSelectMultiple( - ('h1', ['header1']), - ('h2', ['header2', 'header3']), - ) - - def test_class_one(self): - for selector in ('.onep', 'p.onep', 'html p.onep'): - els = self.soup.select(selector) - self.assertEqual(len(els), 1) - self.assertEqual(els[0].name, 'p') - self.assertEqual(els[0]['class'], ['onep']) - - def test_class_mismatched_tag(self): - els = self.soup.select('div.onep') - self.assertEqual(len(els), 0) - - def test_one_id(self): - for selector in ('div#inner', '#inner', 'div div#inner'): - self.assertSelects(selector, ['inner']) - - def test_bad_id(self): - els = self.soup.select('#doesnotexist') - self.assertEqual(len(els), 0) - - def test_items_in_id(self): - els = self.soup.select('div#inner p') - self.assertEqual(len(els), 3) - for el in els: - self.assertEqual(el.name, 'p') - self.assertEqual(els[1]['class'], ['onep']) - self.assertFalse(els[0].has_attr('class')) - - def test_a_bunch_of_emptys(self): - for selector in ('div#main del', 'div#main div.oops', 'div div#main'): - self.assertEqual(len(self.soup.select(selector)), 0) - - def test_multi_class_support(self): - for selector in ('.class1', 'p.class1', '.class2', 'p.class2', - '.class3', 'p.class3', 'html p.class2', 'div#inner .class2'): - self.assertSelects(selector, ['pmulti']) - - def test_multi_class_selection(self): - for selector in ('.class1.class3', '.class3.class2', - '.class1.class2.class3'): - self.assertSelects(selector, ['pmulti']) - - def test_child_selector(self): - self.assertSelects('.s1 > a', ['s1a1', 's1a2']) - self.assertSelects('.s1 > a span', ['s1a2s1']) - - def test_child_selector_id(self): - self.assertSelects('.s1 > a#s1a2 span', ['s1a2s1']) - - def test_attribute_equals(self): - self.assertSelectMultiple( - ('p[class="onep"]', ['p1']), - ('p[id="p1"]', ['p1']), - ('[class="onep"]', ['p1']), - ('[id="p1"]', ['p1']), - ('link[rel="stylesheet"]', ['l1']), - ('link[type="text/css"]', ['l1']), - ('link[href="blah.css"]', ['l1']), - ('link[href="no-blah.css"]', []), - ('[rel="stylesheet"]', ['l1']), - ('[type="text/css"]', ['l1']), - ('[href="blah.css"]', ['l1']), - ('[href="no-blah.css"]', []), - ('p[href="no-blah.css"]', []), - ('[href="no-blah.css"]', []), - ) - - def test_attribute_tilde(self): - self.assertSelectMultiple( - ('p[class~="class1"]', ['pmulti']), - ('p[class~="class2"]', ['pmulti']), - ('p[class~="class3"]', ['pmulti']), - ('[class~="class1"]', ['pmulti']), - ('[class~="class2"]', ['pmulti']), - ('[class~="class3"]', ['pmulti']), - ('a[rel~="friend"]', ['bob']), - ('a[rel~="met"]', ['bob']), - ('[rel~="friend"]', ['bob']), - ('[rel~="met"]', ['bob']), - ) - - def test_attribute_startswith(self): - self.assertSelectMultiple( - ('[rel^="style"]', ['l1']), - ('link[rel^="style"]', ['l1']), - ('notlink[rel^="notstyle"]', []), - ('[rel^="notstyle"]', []), - ('link[rel^="notstyle"]', []), - ('link[href^="bla"]', ['l1']), - ('a[href^="http://"]', ['bob', 'me']), - ('[href^="http://"]', ['bob', 'me']), - ('[id^="p"]', ['pmulti', 'p1']), - ('[id^="m"]', ['me', 'main']), - ('div[id^="m"]', ['main']), - ('a[id^="m"]', ['me']), - ('div[data-tag^="dashed"]', ['data1']) - ) - - def test_attribute_endswith(self): - self.assertSelectMultiple( - ('[href$=".css"]', ['l1']), - ('link[href$=".css"]', ['l1']), - ('link[id$="1"]', ['l1']), - ('[id$="1"]', ['data1', 'l1', 'p1', 'header1', 's1a1', 's2a1', 's1a2s1', 'dash1']), - ('div[id$="1"]', ['data1']), - ('[id$="noending"]', []), - ) - - def test_attribute_contains(self): - self.assertSelectMultiple( - # From test_attribute_startswith - ('[rel*="style"]', ['l1']), - ('link[rel*="style"]', ['l1']), - ('notlink[rel*="notstyle"]', []), - ('[rel*="notstyle"]', []), - ('link[rel*="notstyle"]', []), - ('link[href*="bla"]', ['l1']), - ('[href*="http://"]', ['bob', 'me']), - ('[id*="p"]', ['pmulti', 'p1']), - ('div[id*="m"]', ['main']), - ('a[id*="m"]', ['me']), - # From test_attribute_endswith - ('[href*=".css"]', ['l1']), - ('link[href*=".css"]', ['l1']), - ('link[id*="1"]', ['l1']), - ('[id*="1"]', ['data1', 'l1', 'p1', 'header1', 's1a1', 's1a2', 's2a1', 's1a2s1', 'dash1']), - ('div[id*="1"]', ['data1']), - ('[id*="noending"]', []), - # New for this test - ('[href*="."]', ['bob', 'me', 'l1']), - ('a[href*="."]', ['bob', 'me']), - ('link[href*="."]', ['l1']), - ('div[id*="n"]', ['main', 'inner']), - ('div[id*="nn"]', ['inner']), - ('div[data-tag*="edval"]', ['data1']) - ) - - def test_attribute_exact_or_hypen(self): - self.assertSelectMultiple( - ('p[lang|="en"]', ['lang-en', 'lang-en-gb', 'lang-en-us']), - ('[lang|="en"]', ['lang-en', 'lang-en-gb', 'lang-en-us']), - ('p[lang|="fr"]', ['lang-fr']), - ('p[lang|="gb"]', []), - ) - - def test_attribute_exists(self): - self.assertSelectMultiple( - ('[rel]', ['l1', 'bob', 'me']), - ('link[rel]', ['l1']), - ('a[rel]', ['bob', 'me']), - ('[lang]', ['lang-en', 'lang-en-gb', 'lang-en-us', 'lang-fr']), - ('p[class]', ['p1', 'pmulti']), - ('[blah]', []), - ('p[blah]', []), - ('div[data-tag]', ['data1']) - ) - - def test_unsupported_pseudoclass(self): - self.assertRaises( - NotImplementedError, self.soup.select, "a:no-such-pseudoclass") - - self.assertRaises( - NotImplementedError, self.soup.select, "a:nth-of-type(a)") - - - def test_nth_of_type(self): - # Try to select first paragraph - els = self.soup.select('div#inner p:nth-of-type(1)') - self.assertEqual(len(els), 1) - self.assertEqual(els[0].string, 'Some text') - - # Try to select third paragraph - els = self.soup.select('div#inner p:nth-of-type(3)') - self.assertEqual(len(els), 1) - self.assertEqual(els[0].string, 'Another') - - # Try to select (non-existent!) fourth paragraph - els = self.soup.select('div#inner p:nth-of-type(4)') - self.assertEqual(len(els), 0) - - # Pass in an invalid value. - self.assertRaises( - ValueError, self.soup.select, 'div p:nth-of-type(0)') - - def test_nth_of_type_direct_descendant(self): - els = self.soup.select('div#inner > p:nth-of-type(1)') - self.assertEqual(len(els), 1) - self.assertEqual(els[0].string, 'Some text') - - def test_id_child_selector_nth_of_type(self): - self.assertSelects('#inner > p:nth-of-type(2)', ['p1']) - - def test_select_on_element(self): - # Other tests operate on the tree; this operates on an element - # within the tree. - inner = self.soup.find("div", id="main") - selected = inner.select("div") - # The
        tag was selected. The