scm/bb/tizen-distro.git
10 years agoudev-cache: omit sockets and filesystems mounted under /dev
Richard Tollerton [Fri, 22 Aug 2014 21:30:52 +0000 (16:30 -0500)]
udev-cache: omit sockets and filesystems mounted under /dev

Archiving sockets causes tar to report an error and return a nonzero
exit status. Archiving a mounted filesystem is harmless, but may greatly
bloat the size of the cache tarball, and wastes time on boot.

To fix these issues, use `find` to only include the files we want, which
are the file types that udev will create (block/char devices and
symlinks) that are on the same filesystem as /dev.

While we're at it, remove a subshell by archiving /dev as an absolute
path. However, `tar` will complain about stripping the leading slash on
stderr. To inhibit this, `cut` out the leading slash.

An alternative solution is to use `tar --exclude`, but that is modestly
more brittle, since we'd need to explicitly list every socket and
filesystem to exclude. Note that `tar --one-file-system` is
GNU-specific, and tar implementations generally have nothing equivalent
to `find -type`.

If using busybox `find`, this change requires CONFIG_FEATURE_FIND_TYPE=y
and CONFIG_FEATURE_FIND_XDEV=y. If using busybox `tar`, this change
requires CONFIG_FEATURE_TAR_FROM=y.

(From OE-Core rev: e89df123e2ec516ae61763eab3c9e78e067e28d5)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoudev-cache: strip timestamps on extract
Richard Tollerton [Fri, 22 Aug 2014 21:30:51 +0000 (16:30 -0500)]
udev-cache: strip timestamps on extract

Under normal udev operation, device nodes are obviously timestamped
based on the system time at current boot. However, when using
udev-cache, they are timestamped from a previous boot.

The existence of machines lacking RTCs makes this more than a cosmetic
issue: if the current time is set further on in the boot, so that the
system time is still 1970 by the time the cache is extracted, tar will
print a timestamp warning for every extracted file (potentially hundreds
of them).

To fix, use -m on extract.

If using busybox `tar`, this commit requires
CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y.

(From OE-Core rev: b31f8f1f053cdfa9428e3f667c05e7e2c600061e)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobusybox: enable `tar -m`
Richard Tollerton [Fri, 22 Aug 2014 21:30:50 +0000 (16:30 -0500)]
busybox: enable `tar -m`

CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y is needed for the commit
"udev-cache: strip timestamps on extract". Enabling this flag increases
the size of busybox by 0 bytes on x86.

(From OE-Core rev: 11a772b3297ef36f3ebc4b67c9477022352d1c55)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoudev-cache: choose a more descriptive cache filename
Richard Tollerton [Fri, 22 Aug 2014 21:30:49 +0000 (16:30 -0500)]
udev-cache: choose a more descriptive cache filename

"/etc/dev.tar.gz" doesn't adequately imply that udev-cache maintains it.
Instead, call it "/etc/udev-cache.tar.gz".

(From OE-Core rev: b33c678e2a5d42138a15b69802c5ddd109cb3b55)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Acked-by: Gratian Crisan <gratian.crisan@ni.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoudev-cache: Compress the cache
Richard Tollerton [Fri, 22 Aug 2014 21:30:48 +0000 (16:30 -0500)]
udev-cache: Compress the cache

$DEVCACHE is observed to be 100k uncompressed; compressing it reduces
its size to ~5k. But compress it outside of `tar` so that archival
operation takes as little time as possible, to minimize the risk of
devices being created/removed during execution.

(From OE-Core rev: 571df6ddba1caa6805f7c96cd592eea399c2aee2)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoudev-cache: Update cache tarball atomically
Richard Tollerton [Fri, 22 Aug 2014 21:30:47 +0000 (16:30 -0500)]
udev-cache: Update cache tarball atomically

Overwriting the tarball in-place could cause a partial write, if the
system stops at an inopportune time. This is mitigated by first writing
to a temporary file, then moving that file on top of the final location.

(From OE-Core rev: 5dbf43fe32a1cf259f9379a7d2c008260eabf3ac)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Acked-by: Gratian Crisan <gratian.crisan@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: feature merges and configuration updates
Bruce Ashfield [Wed, 20 Aug 2014 16:21:32 +0000 (12:21 -0400)]
linux-yocto/3.14: feature merges and configuration updates

As part of LTSI efforts, the 3.14 kernel is receiving feature backports
from newer kernels.

With this change, we update the 3.14 SRCREVs to make the following
changes available:

 - full nohz backports (v3.16)
 - loopback NFS (v3.16)
 - numa updates (v3.16)
 - cgroups: vm_cgroup: basic infrastructure
 - cgroups: Resource controller for open files

And the following configuration change:

 - meta: features/ieee802154: add configuration fragment for IEEE 802.15.4
 - meta: features/bluetooth: add configuration fragment for Bluetooth support
 - meta: intel-common-standard: add ericson-3g to intel-common-standard.scc
 - cgroups: enable virtual memory resource controller
 - full nohz: Enable full dynticks system for nohz

(From OE-Core rev: fe2f51571f97e2cceae974f6a18782025e080c32)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: cgroups and hugetlb updates
Bruce Ashfield [Wed, 20 Aug 2014 16:21:31 +0000 (12:21 -0400)]
linux-yocto/3.14: cgroups and hugetlb updates

Update SRCREVs for the following feature ports:

    d61940e2aaee fs/hugetlbfs/inode.c: remove null test before kfree
    01a9d1b96a67 fs/hugetlbfs/inode.c: use static const for dentry_operations
    b58086c38038 fs/hugetlbfs/inode.c: add static to hugetlbfs_i_mmap_mutex_key
    182a45b35b74 fs/hugetlbfs/inode.c: complete conversion to pr_foo()
    a3c4b02bbb05 mm: hugetlb: fix copy_hugetlb_page_range()
    3757fbab4c89 hugetlb: rename hugepage_migration_support() to ..._supported()
    4d91ab2d26a0 mm, hugetlb: move the error handle logic out of normal code path
    49ea68f6eb8b hugetlb: add support for gigantic page allocation at runtime
    78dcff916fdf hugetlb: move helpers up in the file
    07b911e0a765 hugetlb: update_and_free_page(): don't clear PG_reserved bit
    d38ffe086659 hugetlb: add hstate_is_gigantic()
    46b2dd4acbaa hugetlb: prep_compound_gigantic_page(): drop __init marker
    8b4da9338c22 hugetlb: ensure hugepage access is denied if hugepages are not supported
    450e7d23d98c mm/hugetlb.c: add NULL check of return value of huge_pte_offset
    370cd4423fc4 mm, hugetlb: mark some bootstrap functions as __init
    31f0f8869bc9 mm, hugetlb: improve page-fault scalability
    f57f488c939b mm, hugetlb: use vma_resv_map() map types
    3263ee955d10 mm, hugetlb: remove resv_map_put
    92067ee5ebfd mm, hugetlb: fix race in region tracking
    30e1ab0b7502 mm, hugetlb: improve, cleanup resv_map parameters
    2d5919397a7b mm, hugetlb: unify region structure handling
    a36af1327d41 Fix [RFC] cgroups: Resource controller for open files.
    7dc531576e41 cgroups: Resource controller for open files.

(From OE-Core rev: 37fb3b84f701b88e95d6a3e2efccc46e8c01c1cf)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: fix common clock framework support in PCI glue layer
Bruce Ashfield [Wed, 20 Aug 2014 16:21:30 +0000 (12:21 -0400)]
linux-yocto/3.14: fix common clock framework support in PCI glue layer

The initial version of "spi/pxa2xx: Add common clock framework support in PCI glue layer"
enables the baytrail series of processors, but breaks some existing users of
the framework.

There's a new version of the patch out for review, so we revert the broken one and
udpate to the latest.

(From OE-Core rev: beae066d5af96e78d3bbaa52884922cb39bb48fd)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: KASLR and VDSO backports
Bruce Ashfield [Wed, 20 Aug 2014 16:21:29 +0000 (12:21 -0400)]
linux-yocto/3.14: KASLR and VDSO backports

Updating the 3.14 linux-yocto SRCREVs for feature backports:

   6cfe9c448741 x86, kaslr: boot-time selectable with hibernation
   881a5f5812fd x86, kaslr: fix module lock ordering problem
   121ec40d905d x86, kaslr: randomize module base load address
   6efd2d21273c x86, vdso: Add 32 bit VDSO time support for 64 bit kernel
   642441e17072 x86, vdso: Add 32 bit VDSO time support for 32 bit kernel
   1d8dd2e617d4 x86, vdso: Patch alternatives in the 32-bit VDSO
   353f3eadb16d x86, vdso: Introduce VVAR marco for vdso32
   5e6e6ec6eb5c x86, vdso: Cleanup __vdso_gettimeofday()
   91efa61ed6c2 x86, vdso: Replace VVAR(vsyscall_gtod_data) by gtod macro
   f9c259ee1b2f x86, vdso: __vdso_clock_gettime() cleanup
   63d9b1c4ec72 x86, vdso: Revamp vclock_gettime.c
   e3a8ed44c964 mm: Add new func _install_special_mapping() to mmap.c
   02a67e32e58d x86, vdso: Make vsyscall_gtod_data handling x86 generic
   d076cfb68504 x86, vdso, xen: Remove stray reference to FIX_VDSO
   949153696c99 x86_32, mm: Remove user bit from identity map PDE
   e5cf7dfec74d x86, vdso: Remove compat vdso support

(From OE-Core rev: 00dcb084682b7599f2a3e69dcb4978cbb38f5c58)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: update to v3.14.13
Bruce Ashfield [Wed, 20 Aug 2014 16:21:28 +0000 (12:21 -0400)]
linux-yocto/3.14: update to v3.14.13

Updating from 3.14.5 -> 3.14.13 to pick up the latest series of korg
stable updates.

(From OE-Core rev: bb1b6b7e580d5dfebf8aa424bff83f9ccadfba19)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: add ARM kprobes support
Bruce Ashfield [Wed, 20 Aug 2014 16:21:27 +0000 (12:21 -0400)]
linux-yocto/3.14: add ARM kprobes support

Adding the following commits to the 3.14 tree for ARM kprobe support:

   c1750e55eb75 ARM: add uprobes support
   33e8a1334afe ARM: Make arch_specific_insn a define for new arch_probes_insn structure
   b1d3feead083 ARM: Add an emulate flag to the kprobes/uprobes instruction decode functions
   84b5b70a01a2 ARM: Change the remaining shared kprobes/uprobes symbols to something generic
   624e5e9aab5a ARM: Rename the shared kprobes/uprobe return value enum
   7741eac39c2e ARM: Change more ARM kprobes symbol names to something more generic
   47f51bac6a2d ARM: Make the kprobes condition_check symbol names more generic
   3af2f454bb8e ARM: Remove use of struct kprobe from generic probes code
   a31964d3143a ARM: use a function table for determining instruction interpreter action
   6de77767abfc ARM: move generic thumb instruction parsing code to new files for use by other feature
   eb2db188b856 ARM: Move generic arm instruction parsing code to new files for sharing between features
   bbc0a43ff46e ARM: move shared uprobe/kprobe definitions into new include file
   f5f2896020e6 uprobes: allow ignoring of probe hits
   cb133db6bd60 ARM: Fix missing includes in kprobes sources

(From OE-Core rev: 835bb10d07d1a64119379e9837dd853dacfe79bc)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto: intel-common: Enable Industrial IO
Bruce Ashfield [Wed, 20 Aug 2014 16:21:26 +0000 (12:21 -0400)]
linux-yocto: intel-common: Enable Industrial IO

Updating the META branch SRCREV to import iio configuration settings.

(From OE-Core rev: bb8cada68e70b1246a76046a37ba57a3ca7aedde)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosanity.bbclass: check the format of MIRRORS
Robert Yang [Fri, 22 Aug 2014 08:31:27 +0000 (01:31 -0700)]
sanity.bbclass: check the format of MIRRORS

Check the format of MIRRORS, PREMIRRORS and SSTATE_MIRRORS:
* Each mirror shoudl contain two memebers.
* The local "file://" url must use absolute path (file:///).
* The protocol must in protocols list.

(From OE-Core rev: c8c213bb25b137cf70ba8ce9a45e60065d926735)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosanity.bbclass/kernel.bbclass: minor fixes
Robert Yang [Fri, 22 Aug 2014 08:43:19 +0000 (01:43 -0700)]
sanity.bbclass/kernel.bbclass: minor fixes

Fixed:
- Remove an unused line
- Remove unneeded code after d.getVar(), we don't need the "or ''" after
  d.getVar() unless we need a string.
- typo: PREMIRROS -> PREMIRRORS.

(From OE-Core rev: 7849e50107a27b0ff2aaac47480ac1a0a79533dc)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogmp: ppc64 build issue
Armin Kuster [Thu, 21 Aug 2014 21:35:58 +0000 (14:35 -0700)]
gmp: ppc64 build issue

tmp-gcd_1.s: Assembler messages:
| tmp-gcd_1.s:94: Error: unsupported relocation against BMOD_1_TO_MOD_1_THRESHOLD
| make[2]: *** [gcd_1.lo] Error 1

V2: fixed PN name

(From OE-Core rev: add84a15023d6c277340d6ab4810c605fab01e00)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomc: Fix musl build failure
Paul Barker [Wed, 20 Aug 2014 15:15:12 +0000 (15:15 +0000)]
mc: Fix musl build failure

The CTRL macro just needs to be defined.

(From OE-Core rev: 27b63e39413b1bc5209270ffcd4888e9a4795ad1)

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibc-common.bbclass: rename ALL the packages
Peter Seebach [Wed, 20 Aug 2014 21:24:21 +0000 (16:24 -0500)]
libc-common.bbclass: rename ALL the packages

The DEBIAN_NAMES feature renames some of the libc packages to
"libc6*" names --but only some. A previous patch added the -dbg
package. However, this doesn't cover other packages (such as
the -doc package), and it didn't take multilibs into account.

(From OE-Core rev: 64362a8f7ad7534515a9448445606581f3c572f6)

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>
10 years agoexpect: fix shared object file cannot be opened
Chong Lu [Thu, 21 Aug 2014 01:27:13 +0000 (09:27 +0800)]
expect: fix shared object file cannot be opened

When we require Expect package in tcl script, we will get following error:

couldn't load file "/usr/lib/expect5.45/libexpect5.45.so": /usr/lib/expect5.45/libexpect5.45.so: cannot open shared object file: No such file or directory
    while executing
"load /usr/lib/expect5.45/libexpect5.45.so"
    ("package ifneeded Expect 5.45" script)
    invoked from within
"package require Expect"
    (file "hello.tcl" line 3)

This patch fixes this issue.

(From OE-Core rev: 43813ddfa8cade9ea1c5de24dcd4e275b1486cff)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosudo: remove volatile configuration file
Chen Qi [Thu, 21 Aug 2014 10:24:42 +0000 (18:24 +0800)]
sudo: remove volatile configuration file

The new version of sudo has fixed the problem and will create the
directory if it doesn't exist. So the configuration file is no longer
needed.

(From OE-Core rev: 7c962ca5d01ae4b9f511bb2b3b7700f970051727)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: siggen: Fix a subtle bug in hash calculation for shared work tasks
Richard Purdie [Fri, 22 Aug 2014 17:23:55 +0000 (17:23 +0000)]
bitbake: siggen: Fix a subtle bug in hash calculation for shared work tasks

With a shared work task like gcc, the task can be run from a variety of
different recipes which may have different virtual extensions in place.

Depending on whether gcc-runtime or nativesdk-gcc-runtime's do_preconfigure
task is called for example will change the sorting of the task hashes due
to the way clean_basename currently works.

The correct thing to do here is sort on the base filename first, then any
extension when ordering the hashes. This means we do account for things
like recipes with both a native and non-native dependency but we also fix
the shared work case where we don't care whether it was a virtual version
or not.

(Bitbake rev: 2e80b5d10a5037ed6f0bc227a1f9b42529c87086)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: process: Further improve robustness against server shutdown
Richard Purdie [Thu, 21 Aug 2014 09:27:10 +0000 (10:27 +0100)]
bitbake: process: Further improve robustness against server shutdown

Currently, if an exception occurs in an event handler, the server shuts
down but the UI simply hangs. This happens in two places, firstly waiting
for events and secondly, sending events to a server which no longer exists.

The latter does time out, the former does not. These patches improve
both code sections to check if the main server process is alive and if not,
trigger things to shut down gracefully. This avoids the timeout in the
command sending case too.

This resolves various cases where the UI would simply hang indefintely.

(Bitbake rev: ac418e1112ff5f9c3157569316902f7a27fba4b4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: utils: Add workaround for multiprocessing bug
Richard Purdie [Thu, 21 Aug 2014 20:47:25 +0000 (21:47 +0100)]
bitbake: utils: Add workaround for multiprocessing bug

Our usage of multitprocessing is problematic. In particular, there is a bug
in python 2.7 multiprocessing where signals are not handled until command
completion instead of immediately.

This adds a workaround into our wrapper function to deal with the issue.

(Bitbake rev: a16185e602b39b71475aa7e9ee80ad2b1f28d0f7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: command: Trigger updateCache to shut down any active parser threads
Richard Purdie [Thu, 21 Aug 2014 20:45:52 +0000 (21:45 +0100)]
bitbake: command: Trigger updateCache to shut down any active parser threads

If we trigger a shutdown whilst parsing for whatever reason, in some
cases we were not closing down the parser threads. This change
ensures we do so. The function names are not entirely intuitive
but the behaviour is more correct (and commented). The previous bug
with the stdout failure would trigger this one, if there was a cold
cache and parsing was required (but not otherwise).

(Bitbake rev: 25bfa2478f1c3a8eb695e1e5760e06db5be8f2fc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: bitbake-worker: Improve sigterm handler
Richard Purdie [Thu, 21 Aug 2014 20:46:57 +0000 (21:46 +0100)]
bitbake: bitbake-worker: Improve sigterm handler

When processes terminate, we really want all of the child processes to
terminate too. This was not happening for worker processes which spawned their
own multiprocessing pools, leading to build hangs. This change ensures any
sigterm gets passed to the whole process group. In local tests, this resolved
some hanging process workloads I could generate. It does rely on signals
being delivered in a timely fashion and there is a multiprocessing bug we have
to work around there.

(Bitbake rev: 96f8ea07ace1379380fab2d78eb592fa40c867d4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: knotty: Improve exception handling
Richard Purdie [Thu, 21 Aug 2014 20:45:16 +0000 (21:45 +0100)]
bitbake: knotty: Improve exception handling

Currently, IOErrors are just passed over due to the broken Exception
clause. A command like "bitbake X | <invalid command>" would break stdout
triggering a traceback. With these changes we print the exceptions, shut down
the server gracefully and exit which is a much nicer behaviour and is less
confusion to the user.

(Bitbake rev: 9544108f7b413038d871ce6ca88232de2f2434d9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: process: Deal with infinite looping of the server
Richard Purdie [Wed, 20 Aug 2014 22:31:06 +0000 (22:31 +0000)]
bitbake: process: Deal with infinite looping of the server

Currently if an exception occurs, we just run the idle handler again and
again, usually looping indefintely. Chances are the exception that occurred
will keep occuring and this is not a good place to be.

This was breaking the autobuilders with gigabytes of logs.

At least improve things so the cooker shuts down gracefully when this happens.
Some trace of the original problem may still be present on the console too!

(Bitbake rev: 1f28d8d3311262427938180435b68f0a35c2b330)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake.conf/debian.bbclass: Move AUTO_LIBNAME_PKGS definition to class file
Richard Purdie [Tue, 19 Aug 2014 12:32:26 +0000 (13:32 +0100)]
bitbake.conf/debian.bbclass: Move AUTO_LIBNAME_PKGS definition to class file

Might as well move this default to the class which uses it allowing
for easier reading/understanding of the class.

(From OE-Core rev: 177aec177306e68bcd822dee6b29a7efbd558a91)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackagegroup-core-tools-debug: Drop MACHINE_ARCH as PACKAGE_ARCH
Richard Purdie [Tue, 19 Aug 2014 12:29:41 +0000 (13:29 +0100)]
packagegroup-core-tools-debug: Drop MACHINE_ARCH as PACKAGE_ARCH

There is nothing machine specific about this recipe.

(From OE-Core rev: 07848cee072e62969d19b2fc9627783bcb016bbe)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage.bbclass: Fixup for using common function
Richard Purdie [Thu, 21 Aug 2014 20:47:50 +0000 (21:47 +0100)]
package.bbclass: Fixup for using common function

We may as well use the common function for this rather than
duplicating the code.

(From OE-Core rev: 20979854c52607212c16e0b01cf610c80d8b524e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/utils: Add utils function for multiprocess execution
Richard Purdie [Thu, 21 Aug 2014 20:46:28 +0000 (21:46 +0100)]
lib/oe/utils: Add utils function for multiprocess execution

Our usage of multitprocessing is problematic. In particular, there is a bug
in python 2.7 multiprocessing where signals are not handled until command
completion instead of immediately.

This factors the multiprocess code into a function which is enhanced with
a workaround to ensure immediate signal handling and also better SIGINT
handling which should happen in the parent, not the children to ensure
clean exits. The workaround for the signals is being added to the core
bb.utils function so it can benefit all users.

package_manager is then converted to use the new code.

(From OE-Core rev: 72d153a3a90d31d9f4e41d77da24e44ccb33c56e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake.conf: Set PACKAGE_ARCH with ??=
Richard Purdie [Tue, 19 Aug 2014 12:31:22 +0000 (13:31 +0100)]
bitbake.conf: Set PACKAGE_ARCH with ??=

Currently its near impossible for other classes to sanely override
this value with their own default. By setting a weak default we can
allow other classes to change the default and allow end recipes to
again override this.

As far as I can tell, there shouldn't be any regressions from this
change.

(From OE-Core rev: 12b2a73d336d66596939eae5c9947d4054c0316e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/utils/httpserver: Reset SIGTERM handler
Richard Purdie [Fri, 22 Aug 2014 17:21:41 +0000 (17:21 +0000)]
oeqa/utils/httpserver: Reset SIGTERM handler

With bitbake-worker installing a SIGTERM handler, we now need to reset the one here
to ensure that when this process shuts down, it doesn't take the rest of the task
with it. This does appear to be the only place in OE that we have this problem.

(From OE-Core rev: e1ac67d6470dde70239ca0430b18ca0bffbc0295)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoarchiver: delete the tail slash in directory name
Jian Liu [Wed, 20 Aug 2014 08:15:00 +0000 (16:15 +0800)]
archiver: delete the tail slash in directory name

If directory names in SRC_URI ended with "/", function
do_ar_original() in layers/oe-core/meta/classes/archiver.bbclass
will generate a tar file whose name is ".tar.gz".
So delete the "/" at the tail of the directory names before use the names.

(From OE-Core rev: a539e823d002fefe129e3045f893d1237fadb87f)

Signed-off-by: Jian Liu <jian.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogrub_2.00: strip the sparc64 files from building
Nitin A Kamble [Fri, 15 Aug 2014 19:34:52 +0000 (12:34 -0700)]
grub_2.00: strip the sparc64 files from building

Avoid building and packaging of sparc64 specific files in the x86 builds.

Fixes Bug:
[YOCTO #6427]

(From OE-Core rev: e9d1264a63f47965c2f10e18e532b117bbda26be)

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomesa: fix Multilib QA Issue
Chong Lu [Fri, 15 Aug 2014 03:00:56 +0000 (11:00 +0800)]
mesa: fix Multilib QA Issue

This patch fixed warning:
WARNING: Multilib QA Issue: lib32-mesa package lib32-mesa-megadriver - suspicious values
'mesa-driver-swrast mesa-driver-nouveau-vieux mesa-driver-r200 mesa-driver-i915 mesa-driver-radeon mesa-driver-i965' in RPROVIDES
WARNING: Multilib QA Issue: lib32-mesa package lib32-mesa-megadriver - suspicious values
'mesa-driver-swrast mesa-driver-nouveau-vieux mesa-driver-r200 mesa-driver-i915 mesa-driver-radeon mesa-driver-i965' in RREPLACES
WARNING: Multilib QA Issue: lib32-mesa package lib32-mesa-megadriver - suspicious values
'mesa-driver-swrast mesa-driver-nouveau-vieux mesa-driver-r200 mesa-driver-i915 mesa-driver-radeon mesa-driver-i965' in RCONFLICTS

(From OE-Core rev: 95f16f4bba660f0a6108fbbc98ad9caf69e6036b)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoudev: fix /var/volatile/tmp permissions
Riku Voipio [Thu, 14 Aug 2014 09:03:53 +0000 (12:03 +0300)]
udev: fix /var/volatile/tmp permissions

Mariadb postinstall will fail with:

ERROR: 1  Can't create/write to file '/tmp/#sql_a2a_0.MAI' (Errcode: 13)
140814  8:14:06 [ERROR] Aborting

/tmp is a link to /var/volatile/tmp, set as:

drwxr-xr-x 3 root root 60 Aug 14 08:07 .

populate-volatiles.sh does not create the directory or set
permissions, because it already exists:

Checking for -/var/volatile/tmp-.
Creating directory -/var/volatile/tmp-.
Target already exists. Skipping.

Traced the creation to the initfile in udev. Create with -m 1755
to be sure. With this patch applied, mysql postinst succeeds and
creates the neccesary user tables.

(From OE-Core rev: 5743c7632ac9c33051f6fca60f5507d3808e8e3a)

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogrep: set CONFIG_SHELL to /bin/sh
Robert Yang [Thu, 14 Aug 2014 12:05:43 +0000 (05:05 -0700)]
grep: set CONFIG_SHELL to /bin/sh

It would be bash, sh, ksh or sh5 according to the host if we don't set
this, and its scripts don't have bashism as the checkbashisms shows.

(From OE-Core rev: 6fe82a9ed6c7967aaf25c861400de4a9379e92c6)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogzip: set CONFIG_SHELL to /bin/sh
Robert Yang [Wed, 13 Aug 2014 08:18:13 +0000 (01:18 -0700)]
gzip: set CONFIG_SHELL to /bin/sh

It would be bash, sh, ksh or sh5 according to the host if we don't set
this, and its scripts don't have bashism as the checkbashisms shows.

(From OE-Core rev: 49ee0da024dcb80026b5dc23367e79e0ed80e6aa)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoxz: set CONFIG_SHELL to /bin/sh
Robert Yang [Wed, 13 Aug 2014 08:18:12 +0000 (01:18 -0700)]
xz: set CONFIG_SHELL to /bin/sh

It would be bash, sh, ksh or sh5 according to the host if we don't set
this, and its scripts don't have bashism as the checkbashisms shows.

(From OE-Core rev: 786530de31553b3e0a93874bdc425bfca50a5866)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemumips.conf: Default to (and support) mips32r2
Peter Seebach [Fri, 15 Aug 2014 01:42:47 +0000 (20:42 -0500)]
qemumips.conf: Default to (and support) mips32r2

The MIPS emulation for qemumips actually supports
mips32r2:
isa                     : mips1 mips2 mips32r1 mips32r2

We should probably use that tuning file.

This implicitly changes the default value of DEFAULTTUNE to
mips32r2.

(From OE-Core rev: 5d64516d81750e4e0d65792a3215568d652bec6c)

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofix up eglibc-utils description to match what is actually included
Bob Cochran [Sun, 17 Aug 2014 16:22:55 +0000 (12:22 -0400)]
fix up eglibc-utils description to match what is actually included

iconf must have been a typo for iconv
rpcinfo is found elsewhere (currently rpcbind) and not eglibc-utils - replace its mention with
rpcgen

(From OE-Core rev: ae96e831e62e37a018cc924d38a338ffc05ab4da)

Signed-off-by: Bob Cochran <openembedded@mindchasers.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemu: Explicitly disable libiscsi, its not in DEPENDS
Jonathan Liu [Sun, 17 Aug 2014 14:35:50 +0000 (00:35 +1000)]
qemu: Explicitly disable libiscsi, its not in DEPENDS

(From OE-Core rev: 71fd367f6a460257b6a5866b4932762b041e9563)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agostrace: fix ptest execution failure
Chong Lu [Mon, 18 Aug 2014 05:19:22 +0000 (13:19 +0800)]
strace: fix ptest execution failure

ptest needs runtest-TESTS target.
serial-tests is required to generate this target.

(From OE-Core rev: d8e65c07ee8a4c6e29922ec37af82ed31ff814cc)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoperl: fix the output format of all tests
Chong Lu [Mon, 18 Aug 2014 05:19:21 +0000 (13:19 +0800)]
perl: fix the output format of all tests

We should use "PASS:|FAIL:|SKIP: testname" to output results of ptest.

(From OE-Core rev: 67462817222dfa674cf4be7dcd7d4edc5e8631d6)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolttng-ust: add python-core to RDEPENDS_lttng-ust-bin
Robert Yang [Mon, 18 Aug 2014 06:11:49 +0000 (23:11 -0700)]
lttng-ust: add python-core to RDEPENDS_lttng-ust-bin

There is only one script lttng-gen-tp which is a python in
lttng-ust-bin, and it is a python script.

And the lttng-ust doesn't have to rdepend on python.

(From OE-Core rev: 99570ce7c5a9276d1d934533339e10de8fcf0aab)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosyslinux: add perl to RDEPENDS_syslinux-misc
Robert Yang [Mon, 18 Aug 2014 06:11:48 +0000 (23:11 -0700)]
syslinux: add perl to RDEPENDS_syslinux-misc

These scripts are perl:
syslinux-misc/usr/bin/md5pass
syslinux-misc/usr/bin/isohybrid.pl
syslinux-misc/usr/bin/pxelinux-options
syslinux-misc/usr/bin/keytab-lilo
syslinux-misc/usr/bin/sha1pass
syslinux-misc/usr/bin/syslinux2ansi
syslinux-misc/usr/bin/mkdiskimage
syslinux-misc/usr/bin/lss16toppm
syslinux-misc/usr/bin/ppmtolss16

(From OE-Core rev: aa07ab87e0081d2677e6836195f17d3cd1d1af73)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoaspell: add perl to RDEPENDS_aspell-utils
Robert Yang [Mon, 18 Aug 2014 06:11:47 +0000 (23:11 -0700)]
aspell: add perl to RDEPENDS_aspell-utils

There is a perl script:
aspell-utils/usr/bin/aspell-import

(From OE-Core rev: 073ee9a58c893b7b439738d012a883a4501b78f7)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorpm: add perl to RDEPENDS_rpm-build
Robert Yang [Mon, 18 Aug 2014 06:11:46 +0000 (23:11 -0700)]
rpm: add perl to RDEPENDS_rpm-build

Perl scripts:
rpm-build/usr/lib64/rpm/http.req
rpm-build/usr/lib64/rpm/php.prov
rpm-build/usr/lib64/rpm/osgideps.pl
rpm-build/usr/lib64/rpm/perl.prov
rpm-build/usr/lib64/rpm/bin/api-sanity-autotest.pl
rpm-build/usr/lib64/rpm/php.req
rpm-build/usr/lib64/rpm/perldeps.pl
rpm-build/usr/lib64/rpm/perl.req

(From OE-Core rev: c951d443daca22a3dd90897bf5b26cc113b9343d)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-plugins-base: add perl to RDEPENDS_gst-plugins-base-apps
Robert Yang [Mon, 18 Aug 2014 06:11:45 +0000 (23:11 -0700)]
gst-plugins-base: add perl to RDEPENDS_gst-plugins-base-apps

Perl script:
gst-plugins-base-apps/usr/bin/gst-visualise-0.10

There are two files in this pacakge, another one is (binary):
gst-plugins-base-apps/usr/bin/gst-discoverer-0.10

(From OE-Core rev: efb3b13c4a5f99824622fcb5baf95ae3a4441b64)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodtc: add bash to RDEPENDS_dtc-misc
Robert Yang [Mon, 18 Aug 2014 06:11:44 +0000 (23:11 -0700)]
dtc: add bash to RDEPENDS_dtc-misc

Bash script:
dtc-misc/usr/bin/dtdiff

There are two files in this pacakge, another one is (binary):
dtc-misc/usr/bin/convert-dtsv0

(From OE-Core rev: 4b609d099d91840ec05d71d29fe33786122b2d81)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoapr: add bash to RDEPENDS_apr-dev
Robert Yang [Mon, 18 Aug 2014 06:11:43 +0000 (23:11 -0700)]
apr: add bash to RDEPENDS_apr-dev

Bashsim in apr-dev/usr/share/build-1/libtool:
possible bashism in apr-dev/usr/share/build-1/libtool line 1004 ($RANDOM):
        my_tmpdir="${my_template}-${RANDOM-0}$$"
possible bashism in apr-dev/usr/share/build-1/libtool line 3797 (should be '.', not 'source'):
                  dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
possible bashism in apr-dev/usr/share/build-1/libtool line 8237 (shopt):
                test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
possible bashism in apr-dev/usr/share/build-1/libtool line 8240 (shopt):
                    shopt -s nocaseglob
possible bashism in apr-dev/usr/share/build-1/libtool line 9255 (should be VAR="${VAR}foo"):
               rpath+=" $flag"

(From OE-Core rev: c9bf36cfd577a77f505b72d22144e5a6d608c129)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopm-utils: add bash to RDEPENDS_pm-utils
Robert Yang [Mon, 18 Aug 2014 06:24:08 +0000 (23:24 -0700)]
pm-utils: add bash to RDEPENDS_pm-utils

Bash script:
pm-utils/usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler

(From OE-Core rev: 5a788c077ba2a0ab6bcc39f19d5e047410bc8355)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoapt: add bash to RDEPENDS_apt
Robert Yang [Mon, 18 Aug 2014 06:24:07 +0000 (23:24 -0700)]
apt: add bash to RDEPENDS_apt

Bash scripts:
apt/usr/lib64/dpkg/methods/apt/update
apt/usr/lib64/dpkg/methods/apt/install

(From OE-Core rev: 5533807d3168a4f923c502a0837837dbaa1e0185)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoxmlto: add bash to RDEPENDS_xmlto
Robert Yang [Mon, 18 Aug 2014 06:24:06 +0000 (23:24 -0700)]
xmlto: add bash to RDEPENDS_xmlto

Bash scripts:
xmlto/usr/bin/xmlto.real

(From OE-Core rev: b19c8990ef064a95b18784443be7e7e6a921ec23)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokconfig-frontends: add bash to RDEPENDS_kconfig-frontends
Robert Yang [Mon, 18 Aug 2014 06:24:05 +0000 (23:24 -0700)]
kconfig-frontends: add bash to RDEPENDS_kconfig-frontends

Bash script:
kconfig-frontends/usr/bin/kconfig-tweak

(From OE-Core rev: 6e5764db0cf8f45b5492cfbe450bc2562d959dc2)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopax-utils: add bash to RDEPENDS_pax-utils
Robert Yang [Mon, 18 Aug 2014 06:24:04 +0000 (23:24 -0700)]
pax-utils: add bash to RDEPENDS_pax-utils

Bash scripts:
pax-utils/usr/bin/symtree
pax-utils/usr/bin/lddtree

(From OE-Core rev: 9769f847370260f0372b35847f7386b9d9567261)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibtool: add bash to RDEPENDS_libtool
Robert Yang [Mon, 18 Aug 2014 06:24:03 +0000 (23:24 -0700)]
libtool: add bash to RDEPENDS_libtool

* Set CONFIG_SHELL="/bin/bash"
* Add bash to RDEPENDS_libtool

We had already set CONFIG_SHELL="/bin/bash" for libtool-native,
libtool-cross and nativesdk-libtool, now also set for target libtool, if
we don't set this, libtool would use /bin/sh, /bin/bash, /bin/ksh or
/bin/sh5 according to the host, and the build is undetermined, this
patch can fix the problem, libtool is a development tool, rdepends on
bash should not cause toubles (for example, the size of the image)

Have tried to set CONFIG_SHELL="/bin/sh" (/bin/sh -> dash), but there is
still a few bashsim in the output libtool.

(From OE-Core rev: c07f09b1b261b0d480544a6100f6a83835c62019)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake.conf: add bash-native to ASSUME_PROVIDED
Robert Yang [Mon, 18 Aug 2014 06:24:02 +0000 (23:24 -0700)]
bitbake.conf: add bash-native to ASSUME_PROVIDED

A few native scipts requires bash-native, and we don't build
bash-native, so add it to ASSUME_PROVIDED.

(From OE-Core rev: 283a418a838ef285988a5ffc3888501ca7de63f1)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoopenssl: add DEPENDS on openssl-native for rehash
Jackie Huang [Tue, 19 Aug 2014 01:44:38 +0000 (21:44 -0400)]
openssl: add DEPENDS on openssl-native for rehash

'make rehash' used the compiled openssl to get hash value
for files, it always failed when cross compiling:

/path/to/openssl/1.0.1i-r0/openssl-1.0.1i/util/shlib_wrap.sh:
line 96: /path/to/openssl/1.0.1i-r0/openssl-1.0.1i/util/../apps/openssl:
cannot execute binary file

so add DEPENDS on openssl-native for target package and use it
instead of the one compiled from target package.

(From OE-Core rev: 9705586b6eca157e8f8fd6071f489a49bf1db181)

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodhcp: do not use ifconfig/route in dhclient-script
Fahad Usman [Tue, 19 Aug 2014 18:39:57 +0000 (23:39 +0500)]
dhcp: do not use ifconfig/route in dhclient-script

The original patch was submitted on ISC's mailing list but it didn't get merged
for some reason, it can be found here;

https://lists.isc.org/pipermail/dhcp-users/2011-January/012910.html

"The ISC DHCP's dhclient-script for Linux still uses the legacy commands
'ifconfig' & 'route' to manage IPv4 network addresses & routes,
while it uses iproute2's new "ip" command to manage IPv6 network data.

This requires users & distributions to have both types of commands installed

The attached patch tries to improve the situation by replacing the
old "ifconfig" resp. "route" commands with their "ip" counterparts.

It even improves the logic a bit by only flushing the IPv4 addresses
instead of taking down the whole interface, which may still have active IPv6
connections."

(From OE-Core rev: afcaccd283e590294335f38d86635cf99db39e3f)

Signed-off-by: Fahad Usman <fahad.usman@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel: Prevent from installing so files into source dir
Yang Shi [Tue, 19 Aug 2014 21:21:41 +0000 (14:21 -0700)]
kernel: Prevent from installing so files into source dir

vdso build could generate so files, avoid installing such so files into kernel
source dir, otherwise the below package QA error might be hit:

ERROR: QA Issue: File '/usr/src/kernel/arch/x86/vdso/vdso64.so' from
linux-yocto was already stripped, this will prevent future
debugging! [already-stripped]

(From OE-Core rev: daff14bf44c59542c8b8f1a455dcc59586be7e59)

Signed-off-by: Yang Shi <yang.shi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonss-myhostname: fix postinst/prerm scripts
Koen Kooi [Wed, 20 Aug 2014 13:28:50 +0000 (15:28 +0200)]
nss-myhostname: fix postinst/prerm scripts

${D} is expanded by bitbake which means the postinst looks like this:

sed -e '/^hosts:/s/\s*\<myhostname\>//' \
    -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \
    -i /build/scratch/angstrom-v2014.12/build/tmp-angstrom_next-eglibc/work/armv5te-angstrom-linux-gnueabi/systemd/1_216+gitAUTOINC+5d0ae62c66-r0/image/etc/nsswitch.conf

Change ${D} to $D to stop it from being expanded by bitbake.

(From OE-Core rev: 37fd211e598b2342533b00d89c9efcd151c529ae)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoethtool: Fix musl build failure
Paul Barker [Wed, 20 Aug 2014 12:21:12 +0000 (12:21 +0000)]
ethtool: Fix musl build failure

We just need to ensure the proper names for uint types are used.

(From OE-Core rev: 1d381aa15896c133ce0f5bc5b62e3a416e5deb02)

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopsmisc: Fix musl build failure
Paul Barker [Wed, 20 Aug 2014 10:59:13 +0000 (10:59 +0000)]
psmisc: Fix musl build failure

As in procps, we just need to include <limits.h> for PATH_MAX.

(From OE-Core rev: 914c285de743af04b9dd1cd6436d6b672a4ddb09)

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoprocps: Fix musl build failure
Paul Barker [Wed, 20 Aug 2014 10:14:03 +0000 (10:14 +0000)]
procps: Fix musl build failure

This is a simple fix, <limits.h> just needs to be included before PATH_MAX is
used.

(From OE-Core rev: 7825fb5cec8c588fce1afa34388381670763b6a1)

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: do not realign aligned partitions
Maciej Borzecki [Tue, 19 Aug 2014 13:14:18 +0000 (15:14 +0200)]
wic: do not realign aligned partitions

The change prevents additional realignment of already aligned
partition. Previously, even already aligned partitions would be pushed
forward by the amount of --align.

(From OE-Core rev: 92a1b83d928173a58280ca019ca81fdeb5ba72b5)

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: do not steal sectors from the first partition
Maciej Borzecki [Tue, 19 Aug 2014 13:14:17 +0000 (15:14 +0200)]
wic: do not steal sectors from the first partition

In order to make up for space loss due to overhead located before the
first partition, same amount of bytes was extracted from the first
partition's size. This leads to unexpected change of first partition's
size, and is not matched by similar adjustment at the time the partition
image is generated. Thus it is possible that the first partition may
partially overwrite contents of the following partition, as the
partition image is larger than the allocated space.

This is also problematic on certain platforms such as OMAP, where the
first partition is required for have an even number of
sectors (typically already expressed by --size in kickstart
file). Subtracting an odd number of sectors lost for overhead, leads to
an odd number of sectors assigned for partition, preventing the board,
such as beaglebone, from booting correctly.

(From OE-Core rev: c3251d4191fb0b7c3477a3579e542729598f6aad)

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoe2fsprogs: Backport fixes for building with musl
Paul Barker [Tue, 19 Aug 2014 18:52:17 +0000 (18:52 +0000)]
e2fsprogs: Backport fixes for building with musl

Both of these fixes have been applied upstream and improve general code
correctness.  They are needed when building with TCLIBC=musl but shouldn't cause
any harm with other libc implementations.

(From OE-Core rev: 23a533908355b7bb37ce34b073ac91aa20c5776d)

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/autotools: avoid error if recipe is first in task dependency tree
Paul Eggleton [Tue, 19 Aug 2014 16:37:41 +0000 (17:37 +0100)]
classes/autotools: avoid error if recipe is first in task dependency tree

If the recipe being built is listed first in BB_TASKDEPDATA (i.e. item
0) this is still valid and should not trigger an error.

(From OE-Core rev: 945c98969bcfe5516b89ac6dfbe4552fb5d68a48)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosqlite3: Upgrade to 2.8.6.0
Saul Wold [Tue, 19 Aug 2014 14:49:13 +0000 (07:49 -0700)]
sqlite3: Upgrade to 2.8.6.0

(From OE-Core rev: 6328e7dcd93714ae81fe6d9d5dc92a1efb07fe39)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agognupg: Upgrade to 2.0.26
Saul Wold [Tue, 19 Aug 2014 14:49:12 +0000 (07:49 -0700)]
gnupg: Upgrade to 2.0.26

(From OE-Core rev: c4c3fe15f25de560e63800bc50584e511b4cb84d)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibidn: Upgrade to 1.29
Saul Wold [Tue, 19 Aug 2014 14:49:11 +0000 (07:49 -0700)]
libidn: Upgrade to 1.29

The COPYING and other files updated the year to 2014 so the Checksums
needed to be updated also.

(From OE-Core rev: da32d09e9ce689d7941fff2ea6d6ddb1295fbbe0)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglew: Upgrade to 1.11.0
Saul Wold [Tue, 19 Aug 2014 14:49:10 +0000 (07:49 -0700)]
glew: Upgrade to 1.11.0

Rebase patch and move patches from too generic files to glew

(From OE-Core rev: 8d73b3b028bf81a2b3369960e98c3139e0c11943)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoboost: Upgrade to 1.56.0
Saul Wold [Tue, 19 Aug 2014 14:49:09 +0000 (07:49 -0700)]
boost: Upgrade to 1.56.0

Rebase boostconfig to handle moved user-config file

(From OE-Core rev: a6afd754290cecbe57392d13477557051b438817)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibbsd: Upgrade to 0.7.0
Saul Wold [Tue, 19 Aug 2014 14:49:08 +0000 (07:49 -0700)]
libbsd: Upgrade to 0.7.0

COPYING file changed in year, but no license changes

(From OE-Core rev: 55ae27e1fa77dc2f10a40051ac67e933116f874c)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocups: Upgrade to 1.7.5
Saul Wold [Tue, 19 Aug 2014 14:49:07 +0000 (07:49 -0700)]
cups: Upgrade to 1.7.5

(From OE-Core rev: 6743ab1641646d55fff2af9cc4dcc61d599e9065)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: runqueue.py: Fix typoes/grammar in comments.
Robert P. J. Day [Tue, 12 Aug 2014 08:53:16 +0000 (04:53 -0400)]
bitbake: runqueue.py: Fix typoes/grammar in comments.

(Bitbake rev: 000fa81013205dd9bc907ff7a61f06f57637212d)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: fetch2/local.py: fix first line indent of search path debug output
Andre McCurdy [Tue, 12 Aug 2014 23:41:48 +0000 (16:41 -0700)]
bitbake: fetch2/local.py: fix first line indent of search path debug output

Make OE do_unpack logs slightly prettier.

(Bitbake rev: cec5859dec56529d76a0a685cc67b8da29453c69)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: daemonize.py: Non-functional comment/aesthetic fixes.
Robert P. J. Day [Tue, 12 Aug 2014 09:18:11 +0000 (05:18 -0400)]
bitbake: daemonize.py: Non-functional comment/aesthetic fixes.

(Bitbake rev: fd293c5fcc89bc7a541d09e88a6aec5e0b2a1db2)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: runqueue.py: Correct several misspellings of "notifing".
Robert P. J. Day [Wed, 13 Aug 2014 09:18:50 +0000 (05:18 -0400)]
bitbake: runqueue.py: Correct several misspellings of "notifing".

(Bitbake rev: 4e9aef14d747c37444a4fc683f9641906906afe9)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: newbb.vim: remove PR
Robert Yang [Tue, 19 Aug 2014 00:38:18 +0000 (17:38 -0700)]
bitbake: newbb.vim: remove PR

We don't need the "PR = r0" in the bb, so remove it to avoid misleading
the user.

(Bitbake rev: 17fc0174f177b444815487ba67a5d623e47ee8b1)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemu: fix Darwin cross-compilation
Cristian Iorga [Mon, 18 Aug 2014 09:44:00 +0000 (12:44 +0300)]
qemu: fix Darwin cross-compilation

Darwin target will not be detected correctly
if qemu is cross-compiled under a Linux host.

(From OE-Core rev: 47d1fc9f5c38f3d092937c47bd4c2f45adaa7fe6)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/sstate: ensure do_package_qa_setscene doesn't pull in do_package_setscene
Paul Eggleton [Mon, 18 Aug 2014 14:21:54 +0000 (15:21 +0100)]
classes/sstate: ensure do_package_qa_setscene doesn't pull in do_package_setscene

If we have done do_package_qa_setscene we do not also need
do_package_setscene. This means we can again for example rebuild an image
without needing do_package sstate packages to be present.

(From OE-Core rev: a0f584ac3d5a94dec121b684206ecd40c968f7fc)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuildhistory: rename build-id to build-id.txt and add more info
Martin Jansa [Fri, 25 Jul 2014 13:15:38 +0000 (15:15 +0200)]
buildhistory: rename build-id to build-id.txt and add more info

* use .txt extension like other reports (e.g. image-info.txt) it's
  also useful when looking at the file from web server which doesn't
  have text/plain as default content-type
* include whole BUILDCFG_HEADER/BUILDCFG_FUNCS instead of just layer
  info
* this makes it easier for distro to include more fields without the
  need to modify buildhistory.bbclass
* currently it adds following fields:
  Build Configuration:
  BB_VERSION        = "1.23.1"
  BUILD_SYS         = "x86_64-linux"
  NATIVELSBSTRING   = "Gentoo-2.2"
  TARGET_SYS        = "x86_64-oe-linux"
  MACHINE           = "qemux86-64"
  DISTRO            = "shr"
  DISTRO_VERSION    = "2013.07-next-20140725"
  TUNE_FEATURES     = "m64 core2"
  TARGET_FPU        = ""

(From OE-Core rev: 6db6c74f2876df7a183990426bb4262972966441)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibrsvg: disable Bsymbolic if it is not supported on some hosts
Chong Lu [Mon, 18 Aug 2014 09:49:18 +0000 (17:49 +0800)]
librsvg: disable Bsymbolic if it is not supported on some hosts

When trying to build on my Centos 5.5 machine, got below error:
| checking for gdk-pixbuf-query-loaders... /home/build/clu1/build/qemux86_standard_glibc-std/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/gdk-pixbuf-query-loaders
| checking if gcc  supports "-Wl,-Bsymbolic-functions" flag...
| configure: error: -Bsymbolic requested but not supported by ld. Use --disable-Bsymbolic to disable
| Configure failed. The contents of all config.log files follows to aid debugging
| ERROR: oe_runconf failed

Set --enable-Bsymbolic=auto to disable it when it is not suppported.

(From OE-Core rev: 8b27ddab61b2ae0b3b502b64d3ad76e72fdb9b60)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosite/common-darwin: Really fix common-darwin typo
Richard Purdie [Mon, 18 Aug 2014 09:00:06 +0000 (10:00 +0100)]
site/common-darwin: Really fix common-darwin typo

(From OE-Core rev: 0300a46a8350cc58b40cfc5887ab04f0b0f5435e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/sdk/: add sdk tests for sudoku, iptables and cvs
Corneliu Stoicescu [Sat, 9 Aug 2014 10:59:09 +0000 (13:59 +0300)]
oeqa/sdk/: add sdk tests for sudoku, iptables and cvs

Add test modules for sdk tests.

NOTE: Original patch made by: Richard Purdie <richard.purdie@linuxfoundation.org>

(From OE-Core rev: 1b18a33b1053902faaa5cb242d4c1c7d1fb6b064)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/utils/targetbuild.py: add support for sdk tests
Corneliu Stoicescu [Sat, 9 Aug 2014 10:59:08 +0000 (13:59 +0300)]
oeqa/utils/targetbuild.py: add support for sdk tests

- Create new abstract class BuildProject that provides basic functionality for a project/package building class
        * contains abstract method _run() that needs to be implemented by all extending classes.
- The old TargetBuildProject class now extends the abstract BuildProjct class
- Introducing new SDKBuildProject that extends the abstract BuildProjct class

NOTE: Original patch made by: Richard Purdie <richard.purdie@linuxfoundation.org>

(From OE-Core rev: bc8824fd361dbff96f5b5316ddfda36e96e8ea9b)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/oetest.py: enable sdk testing
Corneliu Stoicescu [Sat, 9 Aug 2014 10:59:07 +0000 (13:59 +0300)]
oeqa/oetest.py: enable sdk testing

- add support for sdk tests in the loadTests and runTests methods
- add new oeSDKTest test object

NOTE: Original patch made by: Richard Purdie <richard.purdie@linuxfoundation.org>

(From OE-Core rev: 6c147e5c82b39773e135ca828b37905cbb31be3b)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agometa/classes/testimage.bbclass: add testsdk task and enable functionality for it.
Corneliu Stoicescu [Sat, 9 Aug 2014 10:59:06 +0000 (13:59 +0300)]
meta/classes/testimage.bbclass: add testsdk task and enable functionality for it.

- add new testsdk task for meta-toolchain testing.
- enable the get_tests_list method to work with sdk tests.
- add default TEST_SUITES value for meta-toolchain package

NOTE: Original patch made by: Richard Purdie <richard.purdie@linuxfoundation.org>

(From OE-Core rev: b78bc50904d53d5091729de481b99cc3ac4aaa1e)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agochrpath: Drop warning from darwn builds
Richard Purdie [Sun, 17 Aug 2014 08:52:44 +0000 (09:52 +0100)]
chrpath: Drop warning from darwn builds

This was old debug which can safely be removed for less noisy builds.

(From OE-Core rev: d0be4b37743492fc9c178fd6f9ef73a5eb2fd9c3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglib-2.0: Add missing nativesdk-gettext DEPENDS
Richard Purdie [Sun, 17 Aug 2014 08:51:58 +0000 (09:51 +0100)]
glib-2.0: Add missing nativesdk-gettext DEPENDS

This override overrides the gettext class additions so we need to
add back the dependency manually.

(From OE-Core rev: 1f7d22ce9322b960c89afd3673ace9f0d937b2a6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemu.inc: Drop unneeded nativesdk-libsdl RDEPENDS
Richard Purdie [Sun, 17 Aug 2014 08:51:29 +0000 (09:51 +0100)]
qemu.inc: Drop unneeded nativesdk-libsdl RDEPENDS

Now sdl is completely handled by PACKAGECONFIG, we can drop this RDEPENDS.

(From OE-Core rev: df764706c221a0da77af993dad23b1b97507ec8b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemu-targets.inc: Update to handle mingw/darwin
Richard Purdie [Sun, 17 Aug 2014 08:51:01 +0000 (09:51 +0100)]
qemu-targets.inc: Update to handle mingw/darwin

For non-linux targets, don't return linux-user qemu targets. This change
also improves readability of the functions through better variable names.

(From OE-Core rev: 3ad8107fa0244b8d0f03400bcd82349f97f347f4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-ffmpeg: add PACKAGECONFIG for libav9 and patch from Gentoo
Martin Jansa [Fri, 8 Aug 2014 13:57:52 +0000 (15:57 +0200)]
gst-ffmpeg: add PACKAGECONFIG for libav9 and patch from Gentoo

* apply the patch only when PACKAGECONFIG is selected, because the changes
  aren't backwards compatible

(From OE-Core rev: 7324d7deb18b81943100bc35301b0c4aa22dc404)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopiglit: add dependency on libxrender
Martin Jansa [Sat, 9 Aug 2014 16:08:00 +0000 (18:08 +0200)]
piglit: add dependency on libxrender

* fixes floating dependency:
  piglit/piglit/latest lost dependency on  libxrender

(From OE-Core rev: 9e110ce3702ca92125a905c48f8fcbfab5bfe1ab)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoavahi: Since ${PN} is empty, set -dev RDEPENDS
Richard Purdie [Sat, 16 Aug 2014 09:34:55 +0000 (09:34 +0000)]
avahi: Since ${PN} is empty, set -dev RDEPENDS

Since ${PN} is empty, we need to specify the ${PN}-dev RDEPENDS.

(From OE-Core rev: cc8e2137f82289a580a7fd58114e0a9e51b6d61a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocrosssdk: Clear MACHINEOVERRIDES
Richard Purdie [Sat, 16 Aug 2014 07:20:57 +0000 (08:20 +0100)]
crosssdk: Clear MACHINEOVERRIDES

Without this, things like arm* can make it into OVERRIDES when we're
building a compiler to build binaries for another architecture like
x86. This can can lead to build failures dependning on the
exact configuration and overrides.

For example:

MACHINE=imx53qsb bitbake gcc-crosssdk-initial-x86_64 -e | grep EXTRA_OECONF

was showing an armv7 configuration option to gcc.

(From OE-Core rev: 859ac3fdb75303f9f0b4bf1d8d83db0069f0a27b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoopenssl: Repace if-else with case and add musl triplet
Khem Raj [Sat, 16 Aug 2014 01:44:16 +0000 (18:44 -0700)]
openssl: Repace if-else with case and add musl triplet

Simplifies the code and adds knowlwdge about musl targets

(From OE-Core rev: 106305227003761c3fc562c21bb859a5256f2b36)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>