summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* kernel.bbclass: put perf .debug dir in -dbg packageScott Garman2012-09-281-1/+2
| | | | | | | | | | | | | | This is needed to avoid the following QA error: ERROR: QA Issue: non debug package contains .debug directory: kernel-dev path Patch proposed by Matthew McClintock <msm@freescale.com> (From OE-Core rev: df879f191d1e86596444cb30a0a77a785958520c) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* relocatable.bbclass: Account for case when ORIGIN is in RPATHScott Garman2012-09-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch was backported from OE-Core rev: 43600df0d4efc976a9451163dd334b4763937932 This fixes a case when RPATH embedded in program have one of its path already relative to ORIGIN. We were losing that path if such a path existed. This patch appends it to the new edited rpath being created when we see it. so RPATH like below (RPATH) Library rpath: [$ORIGIN/../lib/amd64/jli:$ORIGIN/../jre/lib/amd64/jli] would end up being empty but after this patch its kept intact (From OE-Core rev: 9ebb327ae17d1a765fd1499546ccf9076bb93234) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: Dont package kxgettext.oKhem Raj2012-09-281-1/+1
| | | | | | | | | | | | | | kxgettext.o is generated when building ppc kernels so we end up with packaging errors like > ERROR: QA Issue: Architecture did not match (20 to 62) on > /work/virtex5-poky-linux/linux-xilinx-2.6.38-r00/packages-split/kernel-dev/usr/src/kernel/scripts/kconfig/kxgettext.o (From OE-Core rev: 21952b62e3fca6c9fe750db62ca2b0587912be8a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: add non-santized kernel providesBruce Ashfield2012-09-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the kernel version string uses characters or symbols that need to be santized for the package name, we can end up with a mismatch between module requirements and what the kernel provides. The kernel version is pulled from utsrelease.h, which contains the exact string that was passed to the kernel build, not one that is santized, this can result in: echo "CONFIG_LOCALVERSION="\"MYVER+snapshot_standard\" >> ${B}/.config <build> % rpm -qp kernel-module-uvesafb-3.4-r0.qemux86.rpm --requires update-modules kernel-3.4.3-MYVER+snapshot_standard % rpm -qp kernel-3.4.3-myver+snapshot-standard-3.4-r0.qemux86.rpm --provides kernel-3.4.3-myver+snapshot-standard = 3.4-r0 At rootfs assembly time, we'll have a dependency issue with the kernel providing the santizied string and the modules requiring the utsrelease.h string. To not break existing use cases, we can add a second provides to the kernel packaging with the unsantized version string, and allowing the kernel module packaging to be unchanged. RPROVIDES_kernel-base += "kernel-${KERNEL_VERSION}" % rpm -qp kernel-3.4.3-myver+snapshot-standard-3.4-r0.qemux86.rpm --provides kernel-3.4.3-MYVER+snapshot_standard kernel-3.4.3-myver+snapshot-standard = 3.4-r0 (From OE-Core rev: 0af1d1412add1baf3f6c1a5cfb2e4f92fb6a85dc) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel: Add kernel headers to kernel-dev packageDarren Hart2012-09-282-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [YOCTO #1614] Add the kernel headers to the kernel-dev package. This packages what was already built and kept in sysroots for building modules with bitbake. Making this available on the target requires removing some additional host binaries. Move the location to /usr/src/kernel Before use on the target, the user will need to: # cd /usr/src/kernel # make scripts This renders the kernel-misc recipe empty, so remove it. As we use /usr/src/kernel in several places (and I missed one in the previous version), add a KERNEL_SRC_DIR variable and use that throughout the class to avoid update errors in the future. Now that we package the kernel headers, drop the kernel_package_preprocess function which removed them from PKGD. All *-sdk image recipes include dev-pkgs, so the kernel-dev package will be installed by default on all such images. (From OE-Core rev: 0e3e88f9f87d1083ddd7dcaa526b3cd7a1cd53ff) Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com> CC: Tom Zanussi <tom.zanussi@intel.com> CC: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel: save $kerndir/tools and $kerndir/lib from pruningBruce Ashfield2012-09-281-1/+1
| | | | | | | | | | | | | | | | | | | The kernel source tree in the sysroot has all unecessary source code removed. The existing use case is to support module building out of the sysroot, but as more toolsa are moved into the kernel tree itself there are new use cases for the kernel sysroot source. To avoid putting dependencies on the kernel, and to be able to individually build and package these tools out of the source tree, we can save $kerndir/tools and $kernddir/lib from being removed. This enables tools like perf to be built our of the kernel source in the sysroot, without significantly increasing the amount of source in the sysroot. (From OE-Core rev: 456f97c25488c2f6f6810b1a32781513cc719d8e) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: pass KERNEL_VERSION to depmod calls in postinstMartin Jansa2012-09-281-2/+2
| | | | | | | | | | | | * without this, kernel upgrades where KERNEL_VERSION is changed e.g. 3.4.2 -> 3.4.3 generate .dep for running 3.4.2 and after reboot user ends up without any module loaded to make it worse after reboot nothing is upgraded to trigger another kernel(-module) postinst to generate .dep for now running 3.4.3 (From OE-Core rev: 2a7cdf088e484bb123a72826a02c3169a418ed0a) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* man: make man actually work by installing custom man.configKoen Kooi2012-09-282-3/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default man.conf is named wrong and doesn't work. It references gtbl, while groff installs tbl and other things. This man.conf is imported from OE classic and runtime tested on angstrom. Before: root@beaglebone:~# man man sh: /usr/bin/gtbl: No such file or directory sh: line 0: echo: write error: Broken pipe gunzip: write: Broken pipe gunzip: error inflating sh: line 0: echo: write error: Broken pipe sh: line 0: echo: write error: Broken pipe After: root@beaglebone:~# man man MAN(1) Manual pager utils MAN(1) NAME man - an interface to the on-line reference manuals SYNOPSIS man [-C file] [-d] [-D] [--warnings[=warnings]] [-R encoding] [-L locale] [-m system[,...]] [-M path] [-S list] [-e extension] [-i|-I] [--regex|--wildcard] [--names-only] [-a] [-u] [--no-subpages] [-P pager] [-r prompt] [-7] [-E encoding] [--no-hyphenation] [--no-justifi- cation] [-p string] [-t] [-T[device]] [-H[browser]] [-X[dpi]] [-Z] [[section] page ...] ... man -k [apropos options] regexp ... man -K [-w|-W] [-S list] [-i|-I] [--regex] [section] term ... man -f [whatis options] page ... man -l [-C file] [-d] [-D] [--warnings[=warnings]] [-R encoding] [-L locale] [-P pager] [-r prompt] [-7] [-E encoding] [-p string] [-t] [-T[device]] [-H[browser]] [-X[dpi]] [-Z] file ... man -w|-W [-C file] [-d] [-D] page ... man -c [-C file] [-d] [-D] page ... man [-hV] Check for config name: root@beaglebone:~# rm /etc/man.config root@beaglebone:~# man man Warning: cannot open configuration file /etc/man.config No manual entry for man As a bonus a bunch of references to the buildhost get removed from the config file. (From OE-Core rev: 13d82ecd6b25ff4c34b3639e10113d7ebb33dc88) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* man: fix RDEPENDS and reformat recipeKoen Kooi2012-09-281-3/+4
| | | | | | | (From OE-Core rev: f9aba0793123dafffc305c028f10e8f595c5a4ee) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: UPdate to version with python 2.6 fixRichard Purdie2012-09-281-2/+2
| | | | | | (From OE-Core rev: ba2058aa74eb6cd263bd19a8338eeeced734f55c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: bump SRCREVMartin Jansa2012-09-281-1/+1
| | | | | | | | | | | * there are 2 small fixes python-2.6 compatibility missing C option for opkg-build (From OE-Core rev: 825a992af39d4eb75f105241e4cd94624b1dea43) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: bump SRCREV for Packages cache fix and other fixesMartin Jansa2012-09-286-221/+1
| | | | | | | | (From OE-Core rev: ce5b46980f35097bd5fcc8195c5d5be1b980c870) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* xz: updated to version 5.1.1alphaValentin Popa2012-09-281-5/+5
| | | | | | | | | The licenses are the same, only some white spaces added/removed. (From OE-Core rev: dbfc3d05e49b46ec033623d66e64cf781df4f632) Signed-off-by: Valentin Popa <valentin.popa@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package.bbclass: fix TypeError in runstripMartin Jansa2012-09-281-6/+10
| | | | | | | | | | | | * some packages have .ko files which are not elf, without this change it fails with TypeError, with this change only runstip fails and reports where: ERROR: runstrip: ''arm-oe-linux-gnueabi-strip' '/OE/shr-core/tmp-eglibc/work/armv4t-oe-linux-gnueabi/emacs-23.4-r0/package/usr/share/emacs/23.4/etc/tutorials/TUTORIAL.ko'' strip command failed (From OE-Core rev: 12e40ca7317289fec126d9f30b28a717fe72d274) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* distutils/steuptools: Fix files layout and unbreak buildsRichard Purdie2012-09-282-1/+2
| | | | | | | | | | | | | | | | | The last two distutils changes progressivly broke the builds. Firstly they moved things from the site_packages directory to being higher up the tree which introduced package QA warnings as a side effect. Secondly, it interacts badly with setuptools which passes in --root=${D} itself. This patch restores the original directory layout, hence fixing the QA warnings and also passes extra options to setuptools to deal with the --root option it passes. (From OE-Core rev: bed18d5df7915e4127a538be9c7550e185c8c850) (From OE-Core rev: f60a04ccbf9ed614b5b5b9b02c8a24980bf17d3d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* distutils.bblass: change order of args to install stepMatthew McClintock2012-09-281-1/+1
| | | | | | | | | | | | | | This let's the user override install-lib argument again if it needs to be something else, otherwise things like python-setuptools won't be able to modify the install-lib dir This fixes a new issue exposed by my previous distutils patch that fixed the python modules default install location (From OE-Core rev: 0fd7b7dd361e59c687366480cd9f89c81c2e5bce) Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* distutils.bbclass: fix libdir for 64-bit python modules built with distutilsMatthew McClintock2012-09-281-1/+1
| | | | | | | | | | | | | Without this some modules will be intalled in /usr/lib/python2.6/ instead of /usr/${libdir}/python2.6 (From OE-Core rev: bc6bd774aa8a3e085e9cabcefb11c3fc537139d5) (From OE-Core rev: fc513eda1cfccc583f49847c3c04b5c781585e15) Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* build-appliance-image: Add vmx* files and build zip fileSaul Wold2012-09-283-1/+80
| | | | | | | | | | This commit adds the vmx* files needed to setup a VMware image, this also packages the vmdk along with the vmx files. (From OE-Core rev: ed0ffc12ed6f98471dced1ce2020af4e5c99f2c7) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* build-appliance-image: Update SRCREV to Denzil 1.2.1Saul Wold2012-09-281-1/+1
| | | | | | | (From OE-Core rev: 242fb49ac416824e53c58a8a0cb9bb9d19a72ec4) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* build-appliance-image: rename from self-hosted-imageValentin Popa2012-09-282-2/+2
| | | | | | | | | | | | | | (-) renamed self-hosted-image to build-appliance-image (-) replaced build-appliance-image description [YOCTO #2636] (From OE-Core rev: 04096f31778886479dac479132bded57e717653e) (From OE-Core rev: bf133c331029ac588b27173145db5be5f6ee1ef5) Signed-off-by: Valentin Popa <valentin.popa@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* psplash: LIC_CHKSUM TweakFranklin S Cooper Jr2012-09-281-2/+2
| | | | | | | | | | * Change the license checksum to use the lines in the psplash.h that contains license information instead of doing a checksum on the entire file. (From OE-Core rev: 2c80eb5b9c103087774f032be01f5cf6309464d7) Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ltp_20120104: add rdependsKang Kai2012-09-281-1/+3
| | | | | | | | | | | [Yocto #2973] Add rdepends libaio to fix this defect. (From OE-Core rev: 79d12314729649add741509a46b7770e22dd23ad) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel-yocto: set master branch to a defined SRCREVBruce Ashfield2012-09-281-4/+8
| | | | | | | | | | | | | To support custom repositories that set a SRCREV and that only have a single master branch, do_validate_branches needs a special case for 'master'. We can't delete and recreate the branch, since you cannot delete the current branch, instead we must reset the branch to the proper SRCREV. (From OE-Core rev: 3a8dc0a01d2756bb8f51afccad772fca1dc48af3) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-yocto: allow do_validate_branches to handle all branchesBruce Ashfield2012-09-281-39/+80
| | | | | | | | | | | | | Branch validation will not restrict a branch that doesn't exist in the tree at the time of validation (since you can't reset a SRCREV on a non-existent branch). This restriction can be removed by looking for all branches that contain the specified SRCREV and forcing them to that value. (From OE-Core rev: 790f6441851fd4b2b84129340c438092f058135b) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes-core/eglibc-2.13: Patch for locale-base-tt-ru packagingJeff Polk2012-09-282-1/+15
| | | | | | | | | | | | | | | The eglibc-2.13 build can fail because locale-base-tt-ru is in PACKAGES twice. This is because the SUPPORTED list and the i18n directories are out of sync with each other; the SUPPORTED list expects a directory named "tt_RU.UTF8", but the directory is actually named "tt_RU", and likewise for the @iqtelif variants. (From OE-Core rev: 280886bb865efde6bda327a1c821220d64c893ba) Signed-off-by: Peter Seebach <peter.seebach@windriver.com> Signed-off-by: Jeff Polk <jeff.polk@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* eglibc/gcc: add patches to fix eglibc 2.15 buildMatthew McClintock2012-09-286-468/+4065
| | | | | | | | | | | This drops one patch against eglibc for 2.15 and adds two new ones, also it adds a gcc patch. We use all of these internally and they are tested quite well. (From OE-Core rev: a7014c446b0d2f3b40c4b058c64bb61c8720d799) Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libpam: disable NIS to not link with libtirpc when it is availableMarcin Juszkiewicz2012-09-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | I was checking ways to make incremental builds faster so I started using sstate-cache and SSTATE_MIRRORS. But this gave me some nasty bug: | Collected errors: | * satisfy_dependencies_for: Cannot satisfy the following dependencies for php-cgi: | * libtirpc1 (>= 0.2.2) * | * opkg_install_cmd: Cannot install package php-cgi. I checked details: In my previous build libtirpc got built before libpam so libpam found it and linked. As a result packages depend on libtirpc1 but as there is no such build dependency sstate handling code did not used libtirpc copy... (From OE-Core rev: e629bdcd1bcb51f2d2101fb53daeac0bd29ab637) (From OE-Core rev: 8ff92269cd63e153892d129e6e2255812a454a99) Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glib.inc: disable selinux for native buildsMatthew McClintock2012-09-283-3/+3
| | | | | | | | | | | | In addition to dbus, we also need to disable selinux for glib as well otherwise we will get the same link error (Note: Upstream master has disabled selinux AFAICT) (From OE-Core rev: 318bc896b1bd5399807a417865b8e088d9d9eb15) Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dbus.inc: disable selinux for native buildsMatthew McClintock2012-09-281-1/+3
| | | | | | | | | | | | | | | (Note: Upstream master has disabled selinux for this AFAICT) Fixes issues such as: | /usr/bin/ld: cannot find -lselinux | collect2: ld returned 1 exit status | make[3]: *** [libdbus-glib-1.la] Error 1 (From OE-Core rev: 7ee10f25430421dc6e9552ffe15a6a5acbd4cb51) Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* yocto-bsp: use base branches for qemu 'newbranch' caseTom Zanussi2012-08-214-8/+8
| | | | | | | The branch updating for the [YOCTO #2587] fix inadvertently changed some of the qemu branch names incorrectly, fix it. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: generate default properties even if json specifiedTom Zanussi2012-08-211-2/+2
| | | | | | | | | Users seem to want to specify incomplete property sets when using json input. Allow this by generating default properties before the user-specified properties are applied; the user will then get the defaults for any unspecified values, and avoid cryptic backtraces. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: use emgd 1.10 for i386 templateTom Zanussi2012-08-213-4/+9
| | | | | | | Make i386 template use emgd 1.10 for denzil, along with associated changes. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: add i586 option for i386Tom Zanussi2012-08-211-2/+5
| | | | Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: add some standard policyTom Zanussi2012-08-214-0/+28
| | | | | | Add some useful default options to to the i386 and x86_64 templates. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: remove 'branch' statements in .scc if reusing branchTom Zanussi2012-08-217-8/+7
| | | | | | | If reusing a branch (need_new_branch == 'n') we don't need to branch in the .scc, so make it conditional on need_new_branch. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: use rstrip() for assignment linesTom Zanussi2012-08-211-1/+1
| | | | | | | | strip() isn't necessary and causes unintended formatting changes in the output; rstrip() remove the trailing newlines as intended while leaving indenting whitespace intact. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: use standard branch mapping in bsp templatesTom Zanussi2012-08-213-4/+4
| | | | Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: add standard branch mappingTom Zanussi2012-08-211-0/+21
| | | | | | | Add a mechanism to distinguish common-pc variants of standard branches. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: use branches_baseTom Zanussi2012-08-2124-80/+80
| | | | Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: allow branch display filteringTom Zanussi2012-08-212-0/+25
| | | | | | | Add a "branches_base" property that can be used to allow only matching branches to be returned from all_branches(). Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: update default branch namesTom Zanussi2012-08-2124-46/+46
| | | | | | | | | Make sure the default branch names match branch names found in the kernel branch listing. Fixes [YOCTO #2587]. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: strip '/base' from kernel branches in templatesTom Zanussi2012-08-2124-48/+48
| | | | | | | | | For new branches, users can specify /base branches, but we don't want the '/base' in the resultant branch name, so remove it. Fixes [YOCTO #2693]. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: add new strip_base() functionTom Zanussi2012-08-211-0/+10
| | | | | | | Add a strip_base() function to remove '/base' from the branch names presented to the user. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* cooker: fix UnboundLocalError when exception occurs during parsingPaul Eggleton2012-08-211-0/+2
| | | | | | | | | | | | | | | | | | | Fix a recent regression where we see the following additional error after an error occurs during parsing: ERROR: Command execution failed: Traceback (most recent call last): File "/home/paul/poky/poky/bitbake/lib/bb/command.py", line 84, in runAsyncCommand self.cooker.updateCache() File "/home/paul/poky/poky/bitbake/lib/bb/cooker.py", line 1202, in updateCache if not self.parser.parse_next(): File "/home/paul/poky/poky/bitbake/lib/bb/cooker.py", line 1672, in parse_next self.virtuals += len(result) UnboundLocalError: local variable 'result' referenced before assignment (Bitbake rev: 1ae0181ba49ccfcb2d889de5dd1d8912b9e49157) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: remove references to ChecksumError classMatthew McClintock2012-08-211-6/+2
| | | | | | | | | | | | | | | | From: Matthew McClintock <msm@freescale.com> When merging fetch2 improvements from master into denzil, there were too many dependencies to pull in the entire ChecksumError class, so this patch removes references to ChecksumError for compatability. Fixes this issue: NameError: global name 'ChecksumError' is not defined Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* bitbake: fetch2: Handle errors orruring when building mirror urlsRichard Purdie2012-08-211-2/+11
| | | | | | | | | | | | When we build the mirror urls, its possible an error will occur. If it does, it should just mean we don't attempt this mirror url. The current code actually aborts *all* the mirrors, not just the failed url. This patch catches and logs the exception allowing things to continue. (Bitbake rev: c35cbd1a1403865cf4f59ec88e1881669868103c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: fetch2: Improve mirror looping to consider more casesRichard Purdie2012-08-211-12/+29
| | | | | | | | | | | | | | | | Currently we only consider one pass through the mirror list. This doesn't catch cases where for example you might want to setup a mirror of a mirror and allow multiple redirection. There is no reason we can't support this and the patch loops through the list recursively now. As a safeguard, it will stop if any duplicate urls are found, hence avoiding circular dependency looping. (From Poky rev: 0ec0a4412865e54495c07beea1ced8355da58073) (Bitbake rev: e585730e931e6abdb15ba8a3849c5fd22845b891) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: fetch2: Explicitly check for mirror tarballs in mirror handling codeRichard Purdie2012-08-211-1/+2
| | | | | | | | | | | | With support for things like git:// -> git:// urls, we need to be more explicity about the mirrortarball check since we need to fall through to the following code in other cases. (From Poky rev: 28e858cd6f7509468ef3e527a86820b9e06044db) (Bitbake rev: a2459f5ca2f517964287f9a7c666a6856434e631) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: fetch2: Split try_mirrors into two partsRichard Purdie2012-08-211-49/+59
| | | | | | | | | | | | | | | | There are no functionality changes in this change (From Poky rev: d222ebb7c75d74fde4fd04ea6feb27e10a862bae) (Bitbake rev: db62e109cc36380ff8b8918628c9dea14ac9afbc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Conflicts: bitbake/lib/bb/fetch2/__init__.py Signed-off-by: Khem Raj <kraj@juniper.net>
* bitbake: fetch2: Ensure when downloading we are consistently in the same ↵Richard Purdie2012-08-211-1/+5
| | | | | | | | | | | | | | directory This assists with build reproducuility. It also avoids errors if cwd happens not to exist when we call into the fetcher. That situation would be unusual but I hit it with the unit tests. (From Poky rev: 86517af9e066c2da1d580fa66b7c7f0340f3403e) (Bitbake rev: b886c6c15a58643e06ca5ad7a3ff1f7766e4f48c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>