summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* upstream_tracking.inc: Remove obsolete reasonsJussi Kukkonen2015-05-211-5/+0
| | | | | | | | | | Remove no-update reasons where the mentioned blocking dependency has already been upgraded or removed. (From meta-yocto rev: 47159003439f1b24de53b1be8596dba067933b7b) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxdmcp: make libbsd usage deterministicRoss Burton2015-05-211-0/+3
| | | | | | | | | | | libxdmcp can optionally use arc4random_buf() from libbsd instead of it's own random key generation code. As this is an optional dependency add a PACKAGECONFIG for it and default to not using libbsd. (From OE-Core rev: fe7780a9bbbfa4dcbbe457618a0842e91a3c6a0e) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: Add handling of do_shared_workdir taskRichard Purdie2015-05-211-0/+3
| | | | | | | | | | | | | | | | Changing TMPDIR and rebuilding an image was resulting in rebuilds of kernels due to dependencies on the shared_workdir task. If installed from sstate, nothing needs this task so add it to the whitelisted task patterns. After this change, the kernel does not rebuild when a new TMPDIR and hot sstate cache is used. (From OE-Core rev: 624f575298c74272b69560735cb6f13f5a7761c1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sqlite3: upgrade to 3.8.10Roy Li2015-05-202-3/+35
| | | | | | | | | | | | upgrade to include CVE fixes: CVE-2015-3414 CVE-2015-3415 CVE-2015-3416 (From OE-Core rev: 346505144a18b738846b9d5bc6f146426d3572ba) Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* midori: fix build with GLib 2.44Ross Burton2015-05-202-1/+32
| | | | | | | | | | GLib 2.44 introduced a GListStore type which is ambiguous with GtkListStore when using wildcard using statements. Use the full type name to fix builds. (From OE-Core rev: e14f9f31d24c517e59f250cb79a536ed4b01bc5d) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* testapps: remove old gst-meta-audio/video dependenciesAlexander Kanavin2015-05-201-2/+0
| | | | | | | | | Unnecessary because gst-player already pulls in correct gstreamer packages anyway. (From OE-Core rev: bcbfc531b68799cf206277d13322a093879e17ae) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: improve the sanity check for PATH and BBPATHShiqun Lin2015-05-201-4/+4
| | | | | | | | | | | | | | | | Build fails if "./" is in the PATH To reproduce the issue: $ export PATH="./:$PATH" $ make -C build-tools elfutils Error: ./ld: unrecognized option '--sysroot=/' (From OE-Core rev: b6a23572b8f14e27d4341892b9069e7cac1e9c14) Signed-off-by: Shiqun Lin <Shiqun.Lin@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* pinentry: package update to 9.2Armin Kuster2015-05-201-2/+6
| | | | | | | | | added a few more PACKAGECONIG options. (From OE-Core rev: fb5f00ae63e0e3ae890254b4286f7160694bf7ee) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* alsa-utils: upgrade to 1.0.29Kai Kang2015-05-203-22/+25
| | | | | | | | | | | | | Upgrade alsa-utils from 1.0.28 to 1.0.29. * remove PR * rename package alsa-utils-alsaconf to alsa-utils-scripts, and add script alsa-info.sh (From OE-Core rev: 027ca092ab201dd1ef56d819d316faea2d68871f) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* alsa-tools: upgrade to version 1.0.29Kai Kang2015-05-203-5/+22
| | | | | | | | | | | | | Upgrade alsa-tools from verion 1.0.28 to 1.0.29. * update autotools.patch * add file gitcompile which exists in git repo but missing in release tar ball for sub-directory hdajacksensetest (From OE-Core rev: 9174c8bfe1aba1b32417d52d923fe5fff996814e) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* vala: upgrade to version 0.28.0Kai Kang2015-05-202-6/+6
| | | | | | | | | Upgrade vala from version 0.26.1 to 0.28.0. (From OE-Core rev: dd06566f9bdc03da445226d250cbf220afbf0ba6) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gstreamer: remove 0.10 recipesAlexander Kanavin2015-05-2068-12818/+0
| | | | | | | | | | | | | | gstreamer 0.10 is still available from meta-openembedded/meta-multimedia See also https://bugzilla.yoctoproject.org/show_bug.cgi?id=6294 http://lists.openembedded.org/pipermail/openembedded-core/2015-April/104276.html (From OE-Core rev: fe44ac167a2a76531af3519f3889fce92024567b) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* webkitgtk: disable audio and video supportAlexander Kanavin2015-05-201-1/+5
| | | | | | | | | | | | This allows removal of gstreamer 0.10 dependency from webkit recipe https://bugzilla.yoctoproject.org/show_bug.cgi?id=6294 (From OE-Core rev: cae5c340e4c7af00a181d11346120b550ba83175) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qt4: disable Phonon frameworkAlexander Kanavin2015-05-201-2/+2
| | | | | | | | | | | This allows removal of gstreamer 0.10 dependency from Qt4 recipe https://bugzilla.yoctoproject.org/show_bug.cgi?id=6294 (From OE-Core rev: 096b71a5c24378a449bc38063316555f02af8e18) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qt4: remove Qt MobilityAlexander Kanavin2015-05-2012-5442/+0
| | | | | | | | | | | | | Qt Mobility is an obsolete and unmaintained framework that is also dependent on gstreamer 0.10 https://bugzilla.yoctoproject.org/show_bug.cgi?id=6294 (From OE-Core rev: bbad6c226f1ff2657c6095141bbf3ec936a42feb) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* clutter-gst: update to latest upstream version 3.0.4Alexander Kanavin2015-05-208-76/+59
| | | | | | | | | | | | This also makes it GStreamer 1.0 compatible https://bugzilla.yoctoproject.org/show_bug.cgi?id=6294 (From OE-Core rev: 4a2f9e7eebcfe106738af17917a700d769acf03b) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-gst: remove obsolete Python gstreamer 0.10 bindingsAlexander Kanavin2015-05-202-57/+0
| | | | | | | | | | | | | GStreamer 1.0 python bindings are gobject-introspection based, so until that is fixed, they will not be available. https://bugzilla.yoctoproject.org/show_bug.cgi?id=6294 (From OE-Core rev: 89d5cf570e4e303054ba4cc3b1dfded80b4aebd4) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* icu-native: fix hard paths in native icuAndré Draszik2015-05-201-0/+1
| | | | | | | | | | | | | | | | | | The icu recipe installs icu-native twice, once in the usual location, and once for cross builds into the path given by --with-cross-build. This latter path is not included in the list of paths recognised by chrpath.bbclass, hence the binaries in there retain the rpath as used during compilation. This causes the package to not be relocateable from sstate [YOCTO #6851] We use the infrastructure that is in place already, and simply set PREPROCESS_RELOCATE_DIRS as necessary, and things start to work. (From OE-Core rev: e7fcaa534511e3f65b630b01cf0c824ee5a5fd4d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* xkeyboard-config: remove GPLv3 filesRoss Burton2015-05-202-2/+1047
| | | | | | | | | | xkeyboard-config is intended to be MIT licensed, so backport a patch from upstream to relicense one file and temporarily delete another. (From OE-Core rev: dd80d50a7943da4b58896b908b47a4aeed120075) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxx86vm: upgrade to 1.1.4Ross Burton2015-05-201-2/+2
| | | | | | | (From OE-Core rev: 576420640deebdf0c6728b9ee01aefcee9f59fb0) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxvmc: upgrade to 1.0.9Ross Burton2015-05-201-2/+2
| | | | | | | (From OE-Core rev: c579723a319c7782b3056bdd91a653a51451335f) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxt: upgrade to 1.1.5Ross Burton2015-05-201-13/+2
| | | | | | | | | | Remove the custom compile logic as upstream now detects cross-compilation and uses CC_FOR_BUILD. (From OE-Core rev: a16b6b8658cf511a7e271ca70ed5a6f6a78d1133) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxshmfence: upgrade to 1.2Ross Burton2015-05-201-2/+2
| | | | | | | (From OE-Core rev: 6439989ca6b8a96d4be0058bdebe97e017d09865) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxrender: upgrade to 0.9.9Ross Burton2015-05-201-2/+2
| | | | | | | (From OE-Core rev: eef9db08aa0be15b7f6198a5bb802a986c7b75d5) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxrandr: upgrade to 1.5.0Ross Burton2015-05-201-2/+2
| | | | | | | (From OE-Core rev: 283d295e662034d8acc42c0e4f2b52080d199ca7) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* randrproto: upgrade to 1.5.0Ross Burton2015-05-201-2/+2
| | | | | | | (From OE-Core rev: 787491c2040bd006b2a3e6c1e7254565b5cc300a) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxkbfile: upgrade to 1.0.9Ross Burton2015-05-201-2/+2
| | | | | | | (From OE-Core rev: 2f3115345db44bd43dd0db07e795b6aef11ada58) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxfont: upgrade to 1.5.1Ross Burton2015-05-204-165/+2
| | | | | | | | | Remove the backported patches as they're integrated in this release. (From OE-Core rev: 425096a81afcf1f60dad8e74e10b2fe36d72a854) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxdmcp: upgrade to 1.1.2Ross Burton2015-05-201-2/+2
| | | | | | | (From OE-Core rev: 20eb2ec75e41331bbbd94c39b10c31f50e55bd73) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libx11: upgrade to 1.6.3Ross Burton2015-05-205-118/+16
| | | | | | | | | | Drop backported patch always-use-XCOMM patch. Refresh Add-missing-NULL-check. (From OE-Core rev: 515d8b5de2d0ebd601d98ca16036aafdf54ce043) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libfontenc: upgrade to 1.1.3Ross Burton2015-05-201-2/+2
| | | | | | | (From OE-Core rev: 19e569625d98fe087c42f1f8eee6f58dcb4936cb) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* font-util: upgrade to 1.3.1Ross Burton2015-05-201-5/+3
| | | | | | | | | License checksums updated as the Unicode license was modified (wording only). (From OE-Core rev: 07878124fd65f10fec58767ea3062dfaab539425) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* pcmciautils: fix the parallel building issueRoy Li2015-05-203-42/+46
| | | | | | | | | | The building failure still display after upstream commit 055a5bbfc[ pcmciautils: fix for parallel build], so refix it. (From OE-Core rev: fb426a1f5a103a1dc096977533dfbec2aefe07ae) Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* devtool: update-recipe: add option to write changes to bbappendPaul Eggleton2015-05-202-41/+278
| | | | | | | | | | | | | | | | | | | | Quite often what you want to do having made customisations to a piece of software is to apply those customisations in your own layer rather than in the original recipe. Thus, add a -a/--append option to the update-recipe subcommand which allows you to specify the layer to write a bbappend into. The bbappend will be created at the appropriate path within the specified layer directory (which may or may not be in your bblayers.conf) or if one already exists it will be updated appropriately. (This re-uses code written for recipetool appendfile.) Implements [YOCTO #7587]. (From OE-Core rev: 87d487ea4fdfb6cd30e3b3fad47732db12e86f23) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipetool: add appendfile subcommandPaul Eggleton2015-05-2018-7/+1167
| | | | | | | | | | | | | | | | | | | | | | Locating which recipe provides a file in an image that you want to modify and then figuring out how to bbappend the recipe in order to replace it can be a tedious process. Thus, add a new appendfile subcommand to recipetool, providing the ability to create a bbappend file to add/replace any file in the target system. Without the -r option, it will search for the recipe packaging the specified file (using pkgdata from previously built recipes). The bbappend will be created at the appropriate path within the specified layer directory (which may or may not be in your bblayers.conf) or if one already exists it will be updated appropriately. Fairly extensive oe-selftest tests are also provided. Implements [YOCTO #6447]. (From OE-Core rev: dd2aa93b3c13d2c6464ef0fda59620c7dba450bb) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oe-selftest: move recipetool tests to their own modulePaul Eggleton2015-05-202-59/+77
| | | | | | | | | | | | These tests really belong in their own module; if we refactor out a base class from DevtoolTests with shared functions then we can move them out easily. Also create temp directory in setupLocal() so we don't have to do that in individual tests anymore. (From OE-Core rev: 2f88f6e7b2e54b13376338354aae1d61c0c0db60) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/oe/patch: use with open() for all file operationsPaul Eggleton2015-05-201-21/+19
| | | | | | | | | | with open(...)... is preferred for reading/writing files as it is neater and takes care of closing the file for you. (From OE-Core rev: 99ac382d84667eb496dc510d3277b8c55b237738) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* devtool / recipetool: ensure bb.note() gets printedPaul Eggleton2015-05-203-2/+9
| | | | | | | | | | | | Most of the time when bb.note() gets called we want to see the output, so ensure the level is set appropriately depending on the command line options instead of being fixed at warning. (We don't want to see the notes for fetch/unpack/patch though as they are too verbose). (From OE-Core rev: 69f426a2d966a2228cbdc708b9ddab31005c6d96) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* msmtp: Upgrade to 1.6.2Saul Wold2015-05-201-2/+2
| | | | | | | (From OE-Core rev: 0c65e61d029e2c2293b072ff950aa825394abb79) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* liburcu: Upgrade to 0.8.7Saul Wold2015-05-201-2/+2
| | | | | | | (From OE-Core rev: d6b83e43a5a5d711e2095b05dca61b64fde8f212) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libinitscripts: Upgrade to 9.63Saul Wold2015-05-201-3/+3
| | | | | | | (From OE-Core rev: ceb77cfaee7789fdff07aaa08ab89de9d4b3e513) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libidn: Upgrade to 1.30Saul Wold2015-05-201-5/+5
| | | | | | | | | LIC_CHKSUM updated because year was changed in those associated files. (From OE-Core rev: 1f030a5355c234dc6d1d2b22a25cbb96d5628056) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libksba: Upgrade to 1.3.3Saul Wold2015-05-201-2/+2
| | | | | | | (From OE-Core rev: ae8b2a22bd66eed114e8e0404660fadcd47441cd) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: bitbake-user-manual-customization.xsl: Pointing to mirrors for XSL ↵Scott Rifenbark2015-05-191-1/+9
| | | | | | | | | | | | | files. Instead of pointing to the Sourceforge area, which seems to flake out every so often, we are now pointing to a mirror to get the XSL files needed to build the manual. (Bitbake rev: d9811231b4c8211446bd9275084c26a4718cd175) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: fetch/git: Fix uri in git checkstatusMarcin Smoczyński2015-05-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Pass proper repository url without arguments after a semicolon. Executing checkuri on a rule with git repository in SRC_URI does not report errors when working offline because wrong repository url is passed to the ls-remote command. For example "bitbake -c checkuri glibc" command executes: "git -c core.fsyncobjectfiles=0 ls-remote git://sourceware.org/git/glibc.git;branch=release/2.21/master" command in a shell subprocess to determine if url is valid. Shell subprocess executes in fact 2 commands: "git -c core.fsyncobjectfiles=0 ls-remote git://sourceware.org/git/glibc.git" and "branch=release/2.21/master" First one returns 127 or 128 depending on error but second one returns 0 because it is just env variable setup. Therefore we're not catching connection error. [YOCTO #7558] (Bitbake rev: efa44d04137977f883db4a643b0f774e91514722) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Remove dependency on daemon applicationRandy Witt2015-05-192-8/+9
| | | | | | | | | | | | The bitbake observer is now started using python subprocess. This should allow for toaster to run without installing the "daemon" application. [Yocto #7271] (Bitbake rev: 1dd599ddfcdb547bee49bd7d86acddf64c675b42) Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: localhostbecontroller: Fix server search debug messageRandy Witt2015-05-191-4/+5
| | | | | | | | | | | | | | When the output from the commands ran was redirected to "toaster_server.log" instead of the console, the debug message stating the port on which bitbake is running would no longer appear. This change makes looks at "toaster_server.log" for the port rather than the _shellcmd output. This makes the debug message useful again. (Bitbake rev: 9097bae469cb1e005092c11610d92e908b8f19f5) Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: fetch2/hg.py: add clean functionRobert Yang2015-05-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed when bitbake vim -ccleanall: File: '/path/to/bitbake/lib/bb/fetch2/__init__.py', lineno: 1462, function: clean 1458: def clean(self, urldata, d): 1459: """ 1460: Clean any existing full or partial download 1461: """ *** 1462: bb.utils.remove(urldata.localpath) 1463: 1464: def try_premirror(self, urldata, d): 1465: """ 1466: Should premirrors be used? File: '/path/to/bitbake/lib/bb/utils.py', lineno: 633, function: remove 0629: subprocess.call(['rm', '-rf'] + glob.glob(path)) 0630: return 0631: for name in glob.glob(path): 0632: try: *** 0633: os.unlink(name) 0634: except OSError as exc: 0635: if exc.errno != errno.ENOENT: 0636: raise Exception: OSError: [Errno 21] Is a directory: '/path/to/downloads/hg/vim.googlecode.com/hg/vim' (Bitbake rev: 02763306662e15a4750395e5eab64ba98d1f9939) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: lib/bb/utils: fix and extend edit_metadata_file()Paul Eggleton2015-05-192-58/+451
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix several bugs and add some useful enhancements to make this into a more generic metadata editing function: * Support modifying function values (name must be specified ending with "()") * Support dropping values by returning None as the new value * Split out edit_metadata() function to provide same functionality on a list/iterable * Pass operation to callback and allow function to return them * Pass current output lines to callback so they can be modified * Fix handling of single-quoted values * Handle :=, =+, .=, and =. operators * Support arbitrary indent string * Support indenting by length of assignment (by specifying -1) * Fix typo in variablename - intentspc -> indentspc * Expand function docstring to cover arguments / usage * Add a parameter to enable matching names with overrides applied * Add some bitbake-selftest tests Note that this does change the expected signature of the callback function. The only known caller is in lib/bb/utils.py itself; I doubt anyone else has made extensive use of this function yet. (Bitbake rev: 20059e4d5ab9bf0f32c781ccb208da3c95818018) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: lib/bb/utils: fix several bugs in edit_metadata_file()Paul Eggleton2015-05-191-3/+11
| | | | | | | | | | | | * Fix unchanged assignments being dropped if other lines changed * Fix not passing variable name from single-line assignments to the function * Fix not trimming the trailing quote from values (Bitbake rev: 0b0c82f49cf2de887967d305768cbd95314bb171) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>