scm/bb/tizen-distro.git
11 years agobitbake: providers: Remove pointless lambda sort function
Richard Purdie [Thu, 9 May 2013 21:14:50 +0000 (21:14 +0000)]
bitbake: providers: Remove pointless lambda sort function

This lambda function is equivalent to the default sort used by sorted,
so we can simply remove this. The syntax isn't compatible with python 3.

(Bitbake rev: da8550fc884596222daa3f8794dce1abd01e5612)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: cooker: Remove deprecated operator
Richard Purdie [Thu, 9 May 2013 21:14:06 +0000 (21:14 +0000)]
bitbake: cooker: Remove deprecated operator

The <> operator is deprecated, replace with !=.

(Bitbake rev: 4a43e58dd97ec6ea304eaa727c030973a5bc91b7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: lib: Clean up various file access syntax
Richard Purdie [Thu, 9 May 2013 21:06:45 +0000 (21:06 +0000)]
bitbake: lib: Clean up various file access syntax

Python 3 is stricter about how files are accessed. Specficially:

 * Use open(), not file()
 * Use binary mode for binary files (when checksumming)
 * Use with statements to ensure files get closed
 * Add missing file close statements

(Bitbake rev: 9f08b901375ba640f47596f1bcf43f98a931550f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoeglibc/machine-sdk: Drop SDK_GLIBC_ADDONS
Richard Purdie [Thu, 9 May 2013 13:22:53 +0000 (13:22 +0000)]
eglibc/machine-sdk: Drop SDK_GLIBC_ADDONS

We no longer change GLIBC_ADDONS per target so we no longer need to special
case the SDK settings for it either.

(From OE-Core rev: 3fb0e792600b5adb58bc5fca90d8605c1c76280f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimagetest-qemu: Fix indentation
Richard Purdie [Thu, 9 May 2013 16:42:25 +0000 (17:42 +0100)]
imagetest-qemu: Fix indentation

(From OE-Core rev: 23ba10c61ff26bffb1a84972eb4e0bfb03561f89)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclass/lib: Fix up various file access methods
Richard Purdie [Thu, 9 May 2013 16:05:58 +0000 (17:05 +0100)]
class/lib: Fix up various file access methods

There are various bits of cruft that have built up around our file accesses. This patch
cleans some of them up, specifically:

 * Remove pointless "from __builtin__ import file"
 * Use open(), not file()
 * Wrap file usage in a with container to ensure files are closed
 * Add missing .close() calls in some cases

(From OE-Core rev: a43e0a8ecd0441131e929daf998c3cd454d9c8f3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuildstats: Drop spurious open() call
Richard Purdie [Thu, 9 May 2013 16:33:50 +0000 (17:33 +0100)]
buildstats: Drop spurious open() call

This file is already opened a few lines previously, so drop the duplicated
call.

(From OE-Core rev: 4808629faa1222b31f92a3e410e06adb8e081293)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouseradd: Use modern join syntax
Richard Purdie [Thu, 9 May 2013 16:32:56 +0000 (17:32 +0100)]
useradd: Use modern join syntax

string.join() is deprecated syntax and doesn't work under python3
so use the modern sytax instead.

(From OE-Core rev: 402d652edf79bcfe1eaf1a3b55ad1177d1e3ee85)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopowertop: inherit gettext
Saul Wold [Thu, 9 May 2013 15:18:35 +0000 (08:18 -0700)]
powertop: inherit gettext

powertop uses gettext during config time and at build time to generate
the messages, so really should inherit gettext

[YOCTO #4470]

(From OE-Core rev: 9eb94ba3d98bf6196eb779590f2fb842ec664177)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/lib: Fix getcmdstatus breakage
Richard Purdie [Thu, 9 May 2013 14:55:04 +0000 (14:55 +0000)]
classes/lib: Fix getcmdstatus breakage

I mistakenly thought subprocess had getcmdstatus in python 2. It doesn't so lets
add a wrapper and have this work in both worlds.

(From OE-Core rev: 2253e9f12734c6e6aa489942b5e4628eca1fa29d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: git: remove symling before updating mirror tarball
Martin Jansa [Tue, 7 May 2013 16:39:20 +0000 (18:39 +0200)]
bitbake: git: remove symling before updating mirror tarball

* with read-only PREMIRROR (e.g. mounted over NFS or CIFS
  and referenced as file:///mnt/premirror) we cannot use
  BB_GENERATE_MIRROR_TARBALLS because all git2_abc.git.tar.gz
  files later became just symlinks to read-only location in PREMIRROR
  (it works fine on first build and for new components, because
  at that time there isn't tarball on PREMIRROR yet).

  ERROR: Fetcher failure: Fetch command failed with exit code 141, output:
  tar (child): /build/downloads/git2_abc.git.tar.gz: Cannot open: Read-only file system
  tar (child): Error is not recoverable: exiting now

(Bitbake rev: 3627b02f77c78beedadadd77c619b9e5edaae076)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: bin/bitbake: add a check for /dev/shm existing
Paul Eggleton [Thu, 9 May 2013 10:22:26 +0000 (11:22 +0100)]
bitbake: bin/bitbake: add a check for /dev/shm existing

Python multiprocessing needs /dev/shm, and if it doesn't exist (e.g. in
a chroot environment) or is not writable, you'll get
"OSError: [Errno 38] Function not implemented" or
"OSError: [Errno 13] Permission denied" with a traceback, which doesn't
really help to explain what is wrong.

Implements [YOCTO #4407].

(Bitbake rev: e7460d01f281f913a94192e1f4bd20688164bdd4)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: utils: Improve better_compile error message
Richard Purdie [Wed, 8 May 2013 17:16:00 +0000 (18:16 +0100)]
bitbake: utils: Improve better_compile error message

Similarly to the better_exec improvements, improve the compile failure
messages to be more user readable.

(Bitbake rev: 9bc92d0210e13e4cc98727f6c9ec2f47c2221e77)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: utils: Improve better_exec traceback handling
Richard Purdie [Wed, 8 May 2013 17:14:53 +0000 (18:14 +0100)]
bitbake: utils: Improve better_exec traceback handling

The current bitbake tracebacks are hard to read/confusing and sometimes
incomplete. This patch attempts to do better by:

* Moving the note about the exact exception to the end to make things
  read in sequence
* Merged the initial stack trace to become part of the code dump
* Added handling for "/xxxx" file paths since we can load these files
  and include the data as part of the trace
* Dropped the ERROR: prefix to every line, allowing the error messages to
  be spacially accosicated in the UIs
* Moved the "From:" line to the top of each code block and ensured its present
  consistently

With the complexity now in this funciton, I've added try/except wrapping around
it to ensure we catch exceptions in the exception handler too.

Example before:

"""
ERROR: Error executing a python function in /media/build1/poky/meta/recipes-core/eglibc/eglibc-initial_2.17.bb:
TypeError: 'filter' object is not subscriptable

ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR:   File "do_populate_lic", line 13, in <module>
ERROR:
ERROR:   File "do_populate_lic", line 6, in do_populate_lic
ERROR:
ERROR:   File "license.bbclass", line 99, in find_license_files
ERROR:
ERROR:   File "/media/build1/poky/meta/lib/oe/license.py", line 38, in visit_string
ERROR:     if pos > 0 and license_pattern.match(elements[pos-1]):
ERROR:
ERROR: The code that was being executed was:
ERROR:      0009:    destdir = os.path.join(d.getVar('LICSSTATEDIR', True), d.getVar('PN', True))
ERROR:      0010:    copy_license_files(lic_files_paths, destdir)
ERROR:      0011:
ERROR:      0012:
ERROR:  *** 0013:do_populate_lic(d)
ERROR:      0014:
ERROR: [From file: 'do_populate_lic', lineno: 13, function: <module>]
ERROR:      0002:def do_populate_lic(d):
ERROR:      0003:    """
ERROR:      0004:    Populate LICENSE_DIRECTORY with licenses.
ERROR:      0005:    """
ERROR:  *** 0006:    lic_files_paths = find_license_files(d)
ERROR:      0007:
ERROR:      0008:    # The base directory we wrangle licenses to
ERROR:      0009:    destdir = os.path.join(d.getVar('LICSSTATEDIR', True), d.getVar('PN', True))
ERROR:      0010:    copy_license_files(lic_files_paths, destdir)
ERROR: [From file: 'do_populate_lic', lineno: 6, function: do_populate_lic]
ERROR:      0095:        lic_files_paths.append((os.path.basename(path), srclicfile))
ERROR:      0096:
ERROR:      0097:    v = FindVisitor()
ERROR:      0098:    try:
ERROR:  *** 0099:        v.visit_string(license_types)
ERROR:      0100:    except oe.license.InvalidLicense as exc:
ERROR:      0101:        bb.fatal('%s: %s' % (d.getVar('PF', True), exc))
ERROR:      0102:    except SyntaxError:
ERROR:      0103:        bb.warn("%s: Failed to parse it's LICENSE field." % (d.getVar('PF', True)))
ERROR: [From file: 'license.bbclass', lineno: 99, function: find_license_files]
ERROR: Function failed: do_populate_lic
ERROR: Logfile of failure stored in: /media/build1/poky/build/tmp/work/i586-poky-linux/eglibc-initial/2.17-r3/temp/log.do_populate_lic.17442
"""

Example after:

"""
ERROR: Error executing a python function in /media/build1/poky/meta/recipes-core/eglibc/eglibc-initial_2.17.bb:

The stack trace of python calls that resulted in this exception/failure was:
File: 'do_populate_lic', lineno: 13, function: <module>
     0009:    destdir = os.path.join(d.getVar('LICSSTATEDIR', True), d.getVar('PN', True))
     0010:    copy_license_files(lic_files_paths, destdir)
     0011:
     0012:
 *** 0013:do_populate_lic(d)
     0014:
File: 'do_populate_lic', lineno: 6, function: do_populate_lic
     0002:def do_populate_lic(d):
     0003:    """
     0004:    Populate LICENSE_DIRECTORY with licenses.
     0005:    """
 *** 0006:    lic_files_paths = find_license_files(d)
     0007:
     0008:    # The base directory we wrangle licenses to
     0009:    destdir = os.path.join(d.getVar('LICSSTATEDIR', True), d.getVar('PN', True))
     0010:    copy_license_files(lic_files_paths, destdir)
File: 'license.bbclass', lineno: 99, function: find_license_files
     0095:        lic_files_paths.append((os.path.basename(path), srclicfile))
     0096:
     0097:    v = FindVisitor()
     0098:    try:
 *** 0099:        v.visit_string(license_types)
     0100:    except oe.license.InvalidLicense as exc:
     0101:        bb.fatal('%s: %s' % (d.getVar('PF', True), exc))
     0102:    except SyntaxError:
     0103:        bb.warn("%s: Failed to parse it's LICENSE field." % (d.getVar('PF', True)))
File: '/media/build1/poky/meta/lib/oe/license.py', lineno: 38, function: visit_string
     0034:        new_elements = []
     0035:        elements = filter(lambda x: x.strip(), license_operator.split(licensestr))
     0036:        for pos, element in enumerate(elements):
     0037:            if license_pattern.match(element):
 *** 0038:                if pos > 0 and license_pattern.match(elements[pos-1]):
     0039:                    new_elements.append('&')
     0040:                element = '"' + element + '"'
     0041:            elif not license_operator.match(element):
     0042:                raise InvalidLicense(element)
Exception: TypeError: 'filter' object is not subscriptable

ERROR: Function failed: do_populate_lic
ERROR: Logfile of failure stored in: /media/build1/poky/build/tmp/work/i586-poky-linux/eglibc-initial/2.17-r3/temp/log.do_populate_lic.3275
ERROR: Task 9 (/media/build1/poky/meta/recipes-core/eglibc/eglibc-initial_2.17.bb, do_populate_lic) failed with exit code '1
"""

(Bitbake rev: c5de66b870406d9bd1161a9b7e2b04fe6eb065fe)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: bin/bitbake: Ensure early errors are shown to the user
Richard Purdie [Tue, 7 May 2013 08:23:47 +0000 (08:23 +0000)]
bitbake: bin/bitbake: Ensure early errors are shown to the user

Currently if errors occur early in the init process, the errors may
not be shown to the user. This change ensures that if a failure does
occur, the messages are flushed from the queue and shown to the user.

(Bitbake rev: fda84c4285e0bc31c249b6dd5464aeb6ad622a9a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake.conf: Use casting to ensure valid comparision
Richard Purdie [Tue, 7 May 2013 12:56:06 +0000 (13:56 +0100)]
bitbake.conf: Use casting to ensure valid comparision

python3 is stricter about type comparisions so add an explicit cast to int()
to ensure this code is portable.

(From OE-Core rev: b9a1b9ad55c0f9fec082ffa37e576d8fd664becd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase.bbclass: Drop unused/obsolete import
Richard Purdie [Tue, 7 May 2013 12:56:07 +0000 (13:56 +0100)]
base.bbclass: Drop unused/obsolete import

(From OE-Core rev: e501a98e87b8854040ac4081326871d7d6397917)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage/kernel-module-split/eglibc-ld.inc: Remove has_key() usage
Richard Purdie [Tue, 7 May 2013 12:56:04 +0000 (13:56 +0100)]
image/kernel-module-split/eglibc-ld.inc: Remove has_key() usage

The has_key() attribute has been removed in python 3 since there is better
syntax available. Use the improved syntax.

(From OE-Core rev: 3dff13793e875ff58cc38c4a960caca9b6969843)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosanity/patch.py: Remove commands module usage
Richard Purdie [Tue, 7 May 2013 12:56:05 +0000 (13:56 +0100)]
sanity/patch.py: Remove commands module usage

The commands module is removed in python3. Use the subprocess module instead
and the pipes module to replace the mkargs usage.

(From OE-Core rev: e2e1dcd74bc45381baccf507c0309dd792229afe)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoinsane: Open file in binary mode
Richard Purdie [Tue, 7 May 2013 12:56:03 +0000 (13:56 +0100)]
insane: Open file in binary mode

We open the file we're writing to in binary mode so open the input stream with the
same mode so things match. This avoids errors with python3.

(From OE-Core rev: 4f47b3a4726dd47e8a6db228fcaf25d1890e3e52)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa/lib/oe: Replace StandardError with Exception
Richard Purdie [Tue, 7 May 2013 12:56:00 +0000 (13:56 +0100)]
meta/lib/oe: Replace StandardError with Exception

StandardError is removed in python3, replace with Exception class instead.

(From OE-Core rev: a37ae30b9766df346ca57755530024a0b7d5f86b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/lib: Update to use print as a function call
Richard Purdie [Tue, 7 May 2013 12:55:57 +0000 (13:55 +0100)]
classes/lib: Update to use print as a function call

In python 3 print is a function call. In some cases bb.note is a more
appropriate call to make.

(From OE-Core rev: 754874e68d1037c76fc4cc7d35d3fa12946d00f8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometadata_scm: Replace deprecated operator
Richard Purdie [Tue, 7 May 2013 12:56:02 +0000 (13:56 +0100)]
metadata_scm: Replace deprecated operator

The <> operator is deprecated, use != instead which is equivalent.

(From OE-Core rev: dde7af5f6c769eae721b1ee18462b841c8ea3277)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosanity.bbclass: Use open(), not file()
Richard Purdie [Tue, 7 May 2013 12:56:01 +0000 (13:56 +0100)]
sanity.bbclass: Use open(), not file()

file() syntax is removed in python 3, use open() instead.

(From OE-Core rev: b2d10f15db23246e3957b69d77433f87674928bb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/recipes/lib: Fix various python whitespace issues
Richard Purdie [Tue, 7 May 2013 12:55:53 +0000 (13:55 +0100)]
classes/recipes/lib: Fix various python whitespace issues

There are some left over tab characters in the python functions. This
removes them and resolves python 3 errors.

(From OE-Core rev: fafeb381c48291fa65c634c01c244843c8d7fad3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses: Use modern exception raising syntax
Richard Purdie [Tue, 7 May 2013 12:55:56 +0000 (13:55 +0100)]
classes: Use modern exception raising syntax

Modern expection rasing syntax is function call format, convert to this
to keep python 3 happy and model correct coding style in the core.

(From OE-Core rev: f4b382754603d3f1caa13824bcc8d06b568bbc59)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuildstats: Update to ensure files are closed
Richard Purdie [Tue, 7 May 2013 12:55:58 +0000 (13:55 +0100)]
buildstats: Update to ensure files are closed

python3 doesn't like files being left open. This updates the code style
to ensure file are closed.

(From OE-Core rev: ec74285bd2108f12f33fc8ac0dc1d124ab48be21)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclases/lib: Use modern exception syntax
Richard Purdie [Tue, 7 May 2013 12:55:55 +0000 (13:55 +0100)]
clases/lib: Use modern exception syntax

Update older code to use modern exception handling syntax which
is the form accepted by python 3.

(From OE-Core rev: b010501cd089e649a68f683be0cf4d0aac90fbe3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocore-image-minimal-initramfs: Remove odd quote characters
Richard Purdie [Tue, 7 May 2013 12:55:54 +0000 (13:55 +0100)]
core-image-minimal-initramfs: Remove odd quote characters

The quote characters present trigger python 3 characters type warnings,
we don't need them so replace them with normal quote characters.

(From OE-Core rev: 3c104443506cb89d72944e46096a94a80838a707)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxserver-xorg: Add xkbcomp to RRECOMMENDS
Stefan Stanacar [Tue, 7 May 2013 15:45:37 +0000 (18:45 +0300)]
xserver-xorg: Add xkbcomp to RRECOMMENDS

OE-Core commit bdcc5e8f1286d288baf410458efc39a59b68d751 removed xkbcomp
from RDEPENDS for xkeyboard-config but X server still needs it otherwise
it fails to start.

(From OE-Core rev: f2330ebc3071d780cbc6d1ddab5c54bfadf8fffc)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogcc-configure-cross.inc: Remove info generation
Khem Raj [Wed, 8 May 2013 04:47:16 +0000 (21:47 -0700)]
gcc-configure-cross.inc: Remove info generation

Some distros have newer makeinfo which does not go well with
anything below gcc 4.8, this fix avoids regenerating info files

(From OE-Core rev: 50ac2ed5299e2b47b2f3fd9c9cde9d733d2f8d9b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobootimg.bbclass: add comment for NOHDD
Robert Yang [Wed, 8 May 2013 08:13:58 +0000 (04:13 -0400)]
bootimg.bbclass: add comment for NOHDD

Add comment for NOHDD which is used for skipping building the HDDIMG if
set to 1

(From OE-Core rev: 9843ad9d783f68b97fedfe5b435528538bb26c1c)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agognutls: upgrade to 2.12.23
Ross Burton [Wed, 8 May 2013 12:14:45 +0000 (13:14 +0100)]
gnutls: upgrade to 2.12.23

Importantly, this fixes CVE-2013-1619.

Upstream doesn't use GNU as a host, so update the SRC_URI.

remove-gets.patch isn't required anymore, obsolete_automake_macros.patch is
merged upstream, and gnutls_fix_for_automake_1.12.1.patch doesn't seem to be
needed.  It was merged and reverted upstream, and my build without it succeeded.

(From OE-Core rev: 9a6395076984350b1dd7005453f97233bbb43132)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooprofileui(-server): upgraded to GIT revision f168b8bf
Bogdan Marinescu [Wed, 8 May 2013 13:10:45 +0000 (16:10 +0300)]
oprofileui(-server): upgraded to GIT revision f168b8bf

'obsolete_automake_macros.patch' is not needed anymore, because it
was integrated in the specified commit.

(From OE-Core rev: 4c7120a24cef2ff6b9df821c69153363c938ac77)

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqt4: remove trailing slash from prefix
Paul Barker [Tue, 7 May 2013 09:05:22 +0000 (10:05 +0100)]
qt4: remove trailing slash from prefix

The trailing slashs on "Prefix=${prefix}/" and "-prefix ${prefix}/" are passed
through to the generated pkgconfig files and may be joined to paths like
"/include" yielding a final path with a double forward-slash (eg.
"/usr//include"). This may end up in the debugging symbols in other applications
or libraries which depend on qt4 which in turn causes the debugedit program to
fail with the message "canonicalization unexpectedly shrank by one character"
when it tries to replace the double forward-slash with a single forward-slash.
Thus the function split_and_strip_files fails and ultimately do_package fails.

As this slash is removed from the prefix it is added into the regular expression
used to fix up pkgconfig files later in the recipe.

This error was seen in vlc in meta-openembedded and should be solved by this
change in openembedded-core.

(From OE-Core rev: 61a7329a5c1f0b84f447256134f5a77917f07f38)

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogdb: tabs -> spaces
Marcin Juszkiewicz [Wed, 8 May 2013 11:43:58 +0000 (13:43 +0200)]
gdb: tabs -> spaces

(From OE-Core rev: 8ec07ae2ebfd97aa1413a3c3be0dc612eee7e929)

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogdb: AArch64 lacks lttng support
Marcin Juszkiewicz [Wed, 8 May 2013 11:43:55 +0000 (13:43 +0200)]
gdb: AArch64 lacks lttng support

(From OE-Core rev: 2288c2a9abe828ffb0bbd527105fb633ac818354)

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocraklib:fix testnum and teststr failed
Hongxu Jia [Sat, 27 Apr 2013 11:05:27 +0000 (19:05 +0800)]
craklib:fix testnum and teststr failed

Error log:
...
$ ./testnum
(null).pwd.gz: No such file or directory
PWOpen: No such file or directory

$ ./util/teststr
(null).pwd.gz: No such file or directory
PWOpen: No such file or directory
...

Set DEFAULT_CRACKLIB_DICT as the path of  PWOpen

(From OE-Core rev: 9c78d2ef5291b29fa313f9d4bf6a81c395207d69)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocracklib: fix default dictionary should be generated for target endianness
Hongxu Jia [Sat, 27 Apr 2013 11:05:26 +0000 (19:05 +0800)]
cracklib: fix default dictionary should be generated for target endianness

The previous dict files are NOT byte-order independent, in fact they are
probably ARCHITECTURE SPECIFIC.
Create the dict files in big endian, and convert to host endian while
load them. This could fix the endian issue on multiple platform.

[Bug #4419]

(From OE-Core rev: 075d5a19bb56b0bf492e7dc7f453c2e23139104b)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.8: udpate to v3.8.11
Bruce Ashfield [Mon, 6 May 2013 04:23:30 +0000 (21:23 -0700)]
linux-yocto/3.8: udpate to v3.8.11

Update the linux-yocto-3.8 SRCREVs to the korg 3.8.11 -stable release.

(From OE-Core rev: b60d04331f84e06fae6c074acab045c3e003929b)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.4: update to v3.4.43, ltsi-65311d8 and v3.4.42-rt56
Bruce Ashfield [Mon, 6 May 2013 04:19:28 +0000 (21:19 -0700)]
linux-yocto/3.4: update to v3.4.43, ltsi-65311d8 and v3.4.42-rt56

Updating the 3.4 kernel trees to the latest korg, LTSI and -rt stable
releases.

(From OE-Core rev: 98446039e210936a32e70559a379131e8e0d832f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agokern-tools: anchor and delimit regexs
Bruce Ashfield [Fri, 3 May 2013 03:07:54 +0000 (20:07 -0700)]
kern-tools: anchor and delimit regexs

Updating the kern-tools SRCREV with the following fix:

    Updateme is responsible for updating an existing meta-series with new patches,
    configs and tree manipulations. To do this, it first checks for an existing
    board description and generates one if required. It then searches for features
    and fragments to be applied for the tree.

    There were two problems:

     - A top level board description is detected via the presence of "define"
       directives that indicate the board name, the arch and kernel type. The
       test for define would match on patches or fragments with 'define' in their
       name, and would incorrectly use that file as the top level board description.

       This is fixed by ensuring that only defines at the start of a line, or preceded
       by whitepace match.

     - When searching for features that were indicated as 'addon' or 'optional', the
       search would find, and apply, any feature with the passed name as substring
       versus an exact match.

       This is fixed by ensuring that the matched feature name is /<feature name>
       versus <feature name>

(From OE-Core rev: 57ae1e412a35d827f84bf9b1f48747bf703f84b7)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.4: iwlwifi, ext4, brtfs warning and -rt fixes
Bruce Ashfield [Fri, 26 Apr 2013 03:31:51 +0000 (23:31 -0400)]
linux-yocto/3.4: iwlwifi, ext4, brtfs warning and -rt fixes

Updating the yocto 3.4 SRCREVs for the following fixes:

206d4bb powerpc/perf: run irq-work under softirq context in rt
8a969f9 arm/perf: run irq-work under softirq context in rt
79ba946 iwlwifi: fix unused variable warning
59d93fa ext4: remove unused variable in ext4_update_super()
2385eee Btrfs: fix compile warnings in extent_io.c

(From OE-Core rev: 96113b28031583af1dd42fe7660a9d5ced36d1b6)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodmidecode: fix fetch path to use BP
Saul Wold [Fri, 3 May 2013 23:06:16 +0000 (16:06 -0700)]
dmidecode: fix fetch path to use BP

This is so the multilib prefix is not used

(From OE-Core rev: 50e26e553152485461d096463db0fb4f4fa826d6)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogcc-configure-target: Add --enable-dependency-tracking to EXTRA_OECONF
Khem Raj [Sun, 5 May 2013 06:24:53 +0000 (23:24 -0700)]
gcc-configure-target: Add --enable-dependency-tracking to EXTRA_OECONF

Fixes errors seen while compiling gcc 4.8 for target, errors like

| /home/khem/work/angstrom/build/tmp-angstrom_next-eglibc/work-shared/gcc-4.8.0-r0/gcc-4.8.0/libatomic/cas_n.c:125:1: fatal error: opening dependency file .deps/cas_1_.lo.Ppo: No such file or directory

which are due to disabled dependency tracking but dependency files being still generated
while compiling libatomics.

(From OE-Core rev: c83cbc80af078d7be5deec44bba6e0ca29a5ee1a)

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>
11 years agotcmode-default.inc: Pin binutils to 2.23.2
Khem Raj [Fri, 26 Apr 2013 03:42:25 +0000 (20:42 -0700)]
tcmode-default.inc: Pin binutils to 2.23.2

(From OE-Core rev: 27759800b020ad52c2e91b8eea3acf9216860a0a)

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>
11 years agobinutils: backport whitespace fix
Saul Wold [Fri, 3 May 2013 22:10:47 +0000 (15:10 -0700)]
binutils: backport whitespace fix

This is a backport of a whitespace skipping issue: PR14987 and PR14887

(From OE-Core rev: f4312eaeb6eb2b7196be2b968e2e468e705fb2cf)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobinutils: Upgrade 2.23.1 -> 2.23.2
Khem Raj [Fri, 26 Apr 2013 03:38:23 +0000 (20:38 -0700)]
binutils: Upgrade 2.23.1 -> 2.23.2

(From OE-Core rev: 202f46b139ab20079e97cdeb147d59e23bcdfe01)

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>
11 years agoguile: Update to 2.0.9
Jonathan Liu [Thu, 2 May 2013 20:43:25 +0000 (06:43 +1000)]
guile: Update to 2.0.9

fix_parallel_build_issue.patch is now part of upstream.

(From OE-Core rev: 87cb30d988843ab1159d23789cd334aaf2a77e34)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu: Ensure kernel nfsd module is enabled
Saul Wold [Thu, 2 May 2013 19:47:54 +0000 (12:47 -0700)]
qemu: Ensure kernel nfsd module is enabled

This will ensure that qemu images that include the nfs-server package have the kernel
feature correctly enabled

(From OE-Core rev: 57c718c6288f2a2538173cdd3d401d70f939a40a)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogdb-cross: gdb-cross requires readline-native
Mike Crowe [Wed, 1 May 2013 11:15:26 +0000 (12:15 +0100)]
gdb-cross: gdb-cross requires readline-native

gdb depends on readline so gdb-cross needs to depend on readline-native to
build successfully.

(From OE-Core rev: ee132d68220d7f515760d47db57e00d1d8263a1a)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Acked-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibgnome-keyring: remove, nothing in oe-core uses this anymore
Ross Burton [Wed, 24 Apr 2013 16:12:31 +0000 (17:12 +0100)]
libgnome-keyring: remove, nothing in oe-core uses this anymore

(From OE-Core rev: d5f985f51b250b88dd910ca3a1fc8f2992271e60)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agognome-keyring: remove, nothing uses it in oe-core
Ross Burton [Wed, 24 Apr 2013 16:11:45 +0000 (17:11 +0100)]
gnome-keyring: remove, nothing uses it in oe-core

(From OE-Core rev: fbefbf60fd18dae135b96d0bfd2db832f568fea9)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibsoup: upgrade to 2.42.1
Ross Burton [Wed, 24 Apr 2013 14:29:46 +0000 (15:29 +0100)]
libsoup: upgrade to 2.42.1

Upgrade to the latest stable release, and fix the dependencies.

gnome-keyring use has been removed from libsoup, and sqlite3 is now a hard
dependency.  The optional libsoup-gnome library is now a small stub, so enable
it by default but allow it to be disabled via PACKAGECONFIG.

(From OE-Core rev: 3f093e24e78cc8a553bebc03ec9f3a32700981e6)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackagegroup-core-x11-sato: Add udev-extraconf to maintain compatibility
Saul Wold [Fri, 3 May 2013 21:13:51 +0000 (14:13 -0700)]
packagegroup-core-x11-sato: Add udev-extraconf to maintain compatibility

Since we have removed udev-extraconf as a RRECOMMENDS in udev
add it back here to maintain compatibility

(From OE-Core rev: 8e2df16e9ab7433a868da2a3db4a25441b92d0ed)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackagegroup-core-lsb: Add udev-extraconf for LSB compatibility
Saul Wold [Fri, 3 May 2013 21:12:00 +0000 (14:12 -0700)]
packagegroup-core-lsb: Add udev-extraconf for LSB compatibility

(From OE-Core rev: ce6927b0d662c8929f514c92bb0e96c54bf47446)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoudev: do not recommend udev-extraconf
Andreas Müller [Tue, 30 Apr 2013 12:30:03 +0000 (14:30 +0200)]
udev: do not recommend udev-extraconf

same as already sent by Koen Kooi [1]

[1] http://patches.openembedded.org/patch/48183/

(From OE-Core rev: b190d9d692bde12cce1062bd0cba65a5b7fc8188)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: do not recommend udev-extraconf for udev
Andreas Müller [Tue, 30 Apr 2013 12:30:02 +0000 (14:30 +0200)]
systemd: do not recommend udev-extraconf for udev

* adding this extra functionality is an image- or distro-decision
* at least automount-rule/script breaks other automount solutions causing
  misleading kernel messages as 'VFS: could not find a valid V7 on sda'

same as already sent by Koen Kooi [1]

[1] http://patches.openembedded.org/patch/48139/

(From OE-Core rev: 860cd2f9ba5803824ab59bf9c0e84b83f7907dc1)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemux86: disable paravirt guest in linux 3.4, causes test failures
Ross Burton [Tue, 7 May 2013 17:08:10 +0000 (18:08 +0100)]
qemux86: disable paravirt guest in linux 3.4, causes test failures

The shutdown sanity test that we previously saw on qemux86-64 in 2.6.37 have
started to re-appear reproducably on qemux86 in 3.4 in the Danny series.  Until
this can be root-caused and fixed in the kernel, disable paravirtualisation
across all kernels and all qemu machines.

[ YOCTO #4196 ]

(From OE-Core rev: e20c3bf6ce0d8ab5653739dd02555186b78b8912)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoarchive-*-source.bbclass: handle dependency in anonymous function
Laurentiu Palcu [Tue, 7 May 2013 12:31:14 +0000 (15:31 +0300)]
archive-*-source.bbclass: handle dependency in anonymous function

Using "before do_rootfs" would have this task added to do_rootfs
dependencies regardless of the filtering options. Instead, add this
dependency in the anonymous python function.

(From OE-Core rev: 2400a74923e51e17ecfa94c2d63908b0b2aac76a)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocronie: Convert crontab to a system user
Richard Purdie [Tue, 9 Apr 2013 12:27:24 +0000 (13:27 +0100)]
cronie: Convert crontab to a system user

crontab is meant to be a system user, not a normal user of the system
so lets pass the correct parameters to the system. If we don't do this
it interferes with the setup of normal users, particularly if some
preset list of users is desired.

(From OE-Core rev: ea6b28cad959d9ebbaf0ecbd695d1d72c0c01151)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogrub-efi-native: Cleanup whitespace
Darren Hart [Wed, 1 May 2013 20:43:33 +0000 (13:43 -0700)]
grub-efi-native: Cleanup whitespace

A few of the recent commits have used inconsistent whitespace with
respect to tabs and spaces for indentation and alignment. Correct it.

(From OE-Core rev: 3472c1f7ab409cd91c1d4782d9e00880b84e3ae8)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoneard: Rename the recipe as we are already in 0.10
Jukka Rissanen [Thu, 2 May 2013 14:56:31 +0000 (17:56 +0300)]
neard: Rename the recipe as we are already in 0.10

(From OE-Core rev: 0f26f430d2bcca37eea63740dae51ac1e49bc550)

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuildhistory: change default BUILDHISTORY_DIR to TOPDIR
Martin Jansa [Sat, 27 Apr 2013 15:15:49 +0000 (17:15 +0200)]
buildhistory: change default BUILDHISTORY_DIR to TOPDIR

* like PERSISTENT_DIR I find BUILDHISTORY_DIR more persistent
  then tmp-eglibc directory
* WARN: people with existing checkouts in TMPDIR/buildhistory
  need to move it to new location first (in order to save history)

(From OE-Core rev: d3ad9a4c573fec08b5606a4c3e86f93cb95e8718)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetch2/svn: Do not save authentication
Vanveerdeghem, Simon [Fri, 12 Apr 2013 06:35:38 +0000 (08:35 +0200)]
bitbake: fetch2/svn: Do not save authentication

(Bitbake rev: a9b1e7c2ad13ff47acb629bae082d4f96e174f99)

Signed-off-by: Simon Vanveerdeghem <simon.vanveerdeghem@barco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: bitbake: remove stack trace depth limitation
Bogdan Marinescu [Tue, 23 Apr 2013 13:43:45 +0000 (16:43 +0300)]
bitbake: bitbake: remove stack trace depth limitation

In case of an error in bitbake, the stack trace is limited to 5
items. This is an endless source of confusion and it makes bugs
reports impractical, since a full stack trace can't be included
in the bug report. This patch simply removes the depth limit.

(Bitbake rev: 02629c42fb09413d9da16cfe43e03338ce7db3ff)

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: data_smart.py: add some internal bitbake variables to configuration hash
Laurentiu Palcu [Fri, 3 May 2013 14:37:17 +0000 (17:37 +0300)]
bitbake: data_smart.py: add some internal bitbake variables to configuration hash

Take __BBTASKS, __BBHANDLERS and __BBANONFUNCS into account when
computing the configuration hash.

[YOCTO #4447]

(Bitbake rev: 260ced7452405fc43ce3d9dd6798236aa07cc716)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: prserv/cooker: Handle PRService errors cleanly
Richard Purdie [Thu, 2 May 2013 14:46:11 +0000 (15:46 +0100)]
bitbake: prserv/cooker: Handle PRService errors cleanly

Current if the PR Service fails to start, bitbake carries on regardless or
hangs with no error message. This adds an exception and then handles it correctly
so the UIs correctly handle the error and exit cleanly.

[YOCTO #4010]

(Bitbake rev: 949c01228a977c3b92bfc0802f6c71b40d8e05b3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: goggle: fix invalid error check
Martin Donnelly [Thu, 25 Apr 2013 16:41:06 +0000 (17:41 +0100)]
bitbake: goggle: fix invalid error check

runCommand was returning 'error' but checking for 'err'
resulting in an exception.

(Bitbake rev: 263aa44ed47e0cb03e1a97e7ed4a50bd9f828c78)

Signed-off-by: Martin Donnelly <martin.donnelly@ge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: Update to version 1.19.0 for master
Richard Purdie [Wed, 10 Apr 2013 15:10:29 +0000 (16:10 +0100)]
bitbake: Update to version 1.19.0 for master

(Bitbake rev: c47088a86fd8ad06c1810d04d9537c4cd01e8bef)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoia32-base.inc: remove inapropriate grub dependency
Tomas Frydrych [Sat, 27 Apr 2013 08:52:17 +0000 (09:52 +0100)]
ia32-base.inc: remove inapropriate grub dependency

There is no good reason for ia32 machines to have hard dependency on grub,
as there are other bootloaders available for ia32 platforms.

(From OE-Core rev: d03c0c24704c6ab6d2cfcf9bf705f6ace2a247cc)

Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodmidecode: Add dmidecode to dev tools
Darren Hart [Wed, 1 May 2013 21:16:31 +0000 (14:16 -0700)]
dmidecode: Add dmidecode to dev tools

Dmidecode reports information about your system's hardware as described
in your system BIOS according to the SMBIOS/DMI standard.

This recipe was updated to version 2.12 and cleaned up slightly from the
OE 2.10 version and proposed here for inclusion in oe-core.

(From OE-Core rev: 120495843118b55e865bb8d87933bd585fced992)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogcc-4.7: fix gcc ICE when building with gcc-4.8
Josh Cartwright [Wed, 1 May 2013 21:07:12 +0000 (16:07 -0500)]
gcc-4.7: fix gcc ICE when building with gcc-4.8

Backport fix for internal compiler error when building gcc-4.7.2 with a
gcc-4.8.0 host gcc.

See upstream bug here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56308

(From OE-Core rev: b1dc91969f9bb0c2a3a4336f5e9a2f57aabb9f78)

Signed-off-by: Josh Cartwright <josh.cartwright@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofs-perms.txt: Don't tinker with file modes in /usr/src/debug
Phil Blundell [Thu, 2 May 2013 13:55:02 +0000 (14:55 +0100)]
fs-perms.txt: Don't tinker with file modes in /usr/src/debug

Since 6775feb9fe935ab01fd9cae2b2d3fce5824a9a72 our local "copy" of the
debug sources has in fact been hardlinked to ${S} and potentially other
places too.  This means that any modifications we make to these files
might have wider consequences than intended.

Avoid this potential pitfall by telling fixup_perms() to leave the file
modes in this directory alone.  No great harm will result from shipping
debug sources with a mode other than 0644: if the mode was permissive
enough for us to compile the sources in the first place then it must
also be permissive enough for subsequent debugging.

(From OE-Core rev: 91b02c65d83811738d4c0e4b7c454459430c8b9b)

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogcc-runtime: Avoid error when trying to remove nonexistent directories
Phil Blundell [Thu, 2 May 2013 12:19:25 +0000 (13:19 +0100)]
gcc-runtime: Avoid error when trying to remove nonexistent directories

If we didn't build libgomp then we won't have installed anything into
${infodir} or ${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude.  Check
whether those directories exist before trying to remove them, else we
will lose.

(From OE-Core rev: 507e14ecdc5b4ff2ee7f1128d9f30c2948e10d5a)

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoarchive-*-source.bbclass: have do_dumpdata_create_diff_gz task run before do_rootfs
Laurentiu Palcu [Fri, 3 May 2013 09:01:04 +0000 (12:01 +0300)]
archive-*-source.bbclass: have do_dumpdata_create_diff_gz task run before do_rootfs

do_rootfs[cleandirs] contains ${S} and, if do_rootfs task starts before
the do_dumpdata_create_diff_gz is finished, an error will occur in the
process because the directory will be removed while still needed by the
create_diff_gz() function.

This patch will force the do_dumpdata_create_diff_gz task to run before
do_rootfs when the final image is created.

[YOCTO #4310]

(From OE-Core rev: cd90be31571178d6822dba5a94a2795209a3576c)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomesa-demos: Use PACKAGECONFIG to enable/disable features
Otavio Salvador [Thu, 2 May 2013 15:28:04 +0000 (12:28 -0300)]
mesa-demos: Use PACKAGECONFIG to enable/disable features

This allow selection of following features:

 drm, egl, freetype2, gbm, gles1, gles2, glut, osmesa, vg, wayland, x11

The x11 features is enabled depending on distro features but the
wayland has not been enabled as it does not work with Wayland
1.0. Rest were enabled for a sane default.

(From OE-Core rev: dc2de313febfc817640e4e55c75d0cb21c70c0ba)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage_types: fix default location of kernel when generating elf images
Tomas Frydrych [Fri, 3 May 2013 12:18:11 +0000 (13:18 +0100)]
image_types: fix default location of kernel when generating elf images

Generation of elf images fails because kernel images are no longer staged under
${STAGING_DIR_HOST}/kernel, but rather ${STAGING_DIR_HOST}/usr/src/kernel. This
patch fixes the path to point to the correct location.

(From OE-Core rev: 6e57a3231fb29f869d476b8511d6f4393f82651b)

Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage.bbclass: Don't mark do_rootfs and do_build as nostamp
Phil Blundell [Fri, 3 May 2013 12:38:22 +0000 (13:38 +0100)]
image.bbclass: Don't mark do_rootfs and do_build as nostamp

When image.bbclass was first conceived (as rootfs_ipk.bbclass), oemake
was unable to figure out when the inputs to do_rootfs had changed in
such a way that it would need to be rerun.  Absent any reliable
information of this kind, it was necessary to adopt the conservative
assumption that images always needed rebuilding and, to this end,
do_rootfs and do_build in image recipes were marked as nostamp.  (The
nostamp annotation for do_build was added in oe-classic commit
80d622e0c1dbc284858e01d3eb670303a6d8cdf9 from January 2005; the exact
point at which do_rootfs was made nostamp is obscure, but it predates
oe-classic revision 63fad339e01d4b16105146c32a61f24460397126.)

This situation persisted for the following eight years but, during that
period, oemake evolved into today's sstate-enabled bitbake, oe itself
gained the OEBasicHash algorithm which can reliably detect changes to
the input data for do_rootfs or any other task, and OEBasicHash was made
the default for oe-core in 4199efed48005a62267fa3374c33b13627d85f44
(June 2012).

Given these various changes in the wider landscape, there is no longer
any obvious benefit to having these two tasks marked as nostamp, and
indeed having them so marked causes needless rebuilds which can be
annoying.  Anybody who does genuinely wish to rerun these tasks when
nothing in the input has changed can run "bitbake -f", just like with
any other task.  So, let's remove the nostamp annotations and just let
bitbake figure out when to rerun them.

(From OE-Core rev: 8505008c115efb54d18e5f25441c7a938a32ffaf)

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/image: allow complementary package globs to be extended
Paul Eggleton [Fri, 3 May 2013 13:21:59 +0000 (14:21 +0100)]
classes/image: allow complementary package globs to be extended

Make it easy for the wildcard specifications for complementary package
features to be extended outside of image.bbclass. For example, to add a
new "foo-pkgs" item that could be added to IMAGE_FEATURES that would
cause *-foo packages to be installed for all packages currently in the
image, you can now use this line at the global level:

COMPLEMENTARY_GLOB[foo-pkgs] = "*-foo"

Implements [YOCTO #4228].

(From OE-Core rev: 4e39c1b9dbba1d2b07ffc2c6a1a252fc8f7680ee)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopath.py: Deal with race issue
Richard Purdie [Fri, 3 May 2013 14:11:33 +0000 (15:11 +0100)]
path.py: Deal with race issue

The change to use copyhardlinktree in some of the sstate code instead of
copytree exposed a race condition. This is due to cp failing if it finds
a directory doesn't exist yet some other process creates it while cp was
trying to create it itself. tar doesn't error in this case.

To fix this we need to create the directory structure with tar, then
use cp to hardlink the files. Messy but probably worth doing.

I also took the opportunity to remove src_bak since the code is neater
without it.

(From OE-Core rev: 2f954a9a6932f1e6c564e7e7aacaac628a75eed7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomkefidisk: Unmount after partitioning
Darren Hart [Thu, 25 Apr 2013 21:27:29 +0000 (14:27 -0700)]
mkefidisk: Unmount after partitioning

Some automounters are rather overzealous and like to mount things
immediately after partitioning. This can happen if the disk is being
reused and the partitions align exactly with the existing partitions
which have already been formatted. Move the unmount code into a function
and call it before and after partitioning.

(From OE-Core rev: f1854e458e5e77806b1fc837033500fa91272261)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoMake toolchain output name using SDK_VERSION instead of DISTRO_VERSION to be consiste...
Jessica Zhang [Tue, 30 Apr 2013 18:32:03 +0000 (11:32 -0700)]
Make toolchain output name using SDK_VERSION instead of DISTRO_VERSION to be consistent [yocto #2342]

(From OE-Core rev: 733f1d2a1bcf1c115613e21f7d09f1b4bee216ce)

Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqt4: Fix sundry erroneous assumptions about ${prefix}
Phil Blundell [Mon, 29 Apr 2013 17:28:48 +0000 (18:28 +0100)]
qt4: Fix sundry erroneous assumptions about ${prefix}

FILES_${QT_BASE_NAME}-tests was hard-coded to "/usr/tests/..." but Qt
actually installs these files into ${prefix}/tests.

Conversely, FILES_${PN}-dbg in qt4.inc was defined in terms of
${exec_prefix}/src, which appears commendable but doesn't actually match
where package.bbclass will put the sources since the latter is
hard-coded to /usr/src.

This fixes a large number of "installed but not shipped" warnings
when ${prefix} is set to something other than /usr.

(From OE-Core rev: c0cfd4f84c8f4843027332cfd6cf99c452c50dbb)

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodpkg: Ensure target packages don't reference perlnative
Richard Purdie [Tue, 30 Apr 2013 12:41:56 +0000 (13:41 +0100)]
dpkg: Ensure target packages don't reference perlnative

Currently a load of scripts in ${bindir} start with:

which is undesireable, this patch fixes that.

(From OE-Core rev: e3634ec359a71c9858698cb597d23c05b1184d2e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoadt-installer: do not dereference symlinks when relocating
Laurentiu Palcu [Tue, 30 Apr 2013 15:02:10 +0000 (18:02 +0300)]
adt-installer: do not dereference symlinks when relocating

This was already fixed for meta-toolchain.

[YOCTO #4157]

(From OE-Core rev: 9e9331a4b859c4205c2a0406ab0224ac575e351b)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agonetbase: upgrade to 5.1
Cristian Iorga [Tue, 30 Apr 2013 09:40:37 +0000 (12:40 +0300)]
netbase: upgrade to 5.1

netbase dir has generic content, hence the name change;

(From OE-Core rev: 6b78673934e1f444991b2743957b362443c6a7cd)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd-serialgetty: change to handle SERIAL_CONSOLES
Paul Eggleton [Tue, 30 Apr 2013 14:33:51 +0000 (15:33 +0100)]
systemd-serialgetty: change to handle SERIAL_CONSOLES

SERIAL_CONSOLES is now set from SERIAL_CONSOLE if not already set.

This is a little bit gnarly because we have to create a separate service
file for each different baud rate; assume that the first baud rate is
the default, thus preserving the previous behaviour in the event there
is only one baud rate in use.

This change also installs the service file before modifying it in place,
allowing do_install to re-execute properly; additionally the service
file now has the correct permissions (i.e. no execute bit set).

(From OE-Core rev: cd89a71d0c3dce14d59134667bc47fa8210cfa7a)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoshadow-securetty: change to handle SERIAL_CONSOLES
Paul Eggleton [Tue, 30 Apr 2013 14:32:06 +0000 (15:32 +0100)]
shadow-securetty: change to handle SERIAL_CONSOLES

SERIAL_CONSOLES is now set from SERIAL_CONSOLE if not already set. This
change also installs the file before modifying it in place, allowing
do_install to re-execute properly.

(From OE-Core rev: 013a1e304e6845eda97b94d133ad75bbccff0b9a)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosysvinit-inittab: remove specific handling of SERIAL_CONSOLE
Paul Eggleton [Tue, 30 Apr 2013 14:31:00 +0000 (15:31 +0100)]
sysvinit-inittab: remove specific handling of SERIAL_CONSOLE

We already handle SERIAL_CONSOLES here and this is now set from
SERIAL_CONSOLE if not already set.

(From OE-Core rev: 40acb88afb2ebd2d468bb2fce51c6ce6bf3d8403)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake.conf: set SERIAL_CONSOLES from SERIAL_CONSOLE by default
Paul Eggleton [Tue, 30 Apr 2013 14:30:10 +0000 (15:30 +0100)]
bitbake.conf: set SERIAL_CONSOLES from SERIAL_CONSOLE by default

This is the first step in deprecating SERIAL_CONSOLE without affecting
machine configurations that still use it.

(From OE-Core rev: 3f0d665384e6d1b7aa2854a9cc4f13e0961bacb7)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosysvinit-inittab: ensure unique label for SERIAL_CONSOLES entries
Paul Eggleton [Wed, 24 Apr 2013 14:33:18 +0000 (15:33 +0100)]
sysvinit-inittab: ensure unique label for SERIAL_CONSOLES entries

The label field in /etc/inittab entries needs to be unique, and the
numeric label being used for the SERIAL_CONSOLES getty entries was
clashing with the entries added for standard ttyX entries added via
SYSVINIT_ENABLED_GETTYS. Use the part after "tty" in the device name
(which is what the comment further down explicitly says should be done)
as the label rather than a simple incrementing number.

Fixes [YOCTO #4374].

(From OE-Core rev: 28d3202befcec72554885f8ea9cb7985523b89f5)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxkeyboard-config: Remove xkbcomp from RDEPENDS_${PN}
Phil Blundell [Mon, 29 Apr 2013 12:57:40 +0000 (13:57 +0100)]
xkeyboard-config: Remove xkbcomp from RDEPENDS_${PN}

Nothing in this package uses xkbcomp so depending on it here is not appropriate.
Whatever package(s) is/are invoking that binary should be the ones to depend
on it.

(From OE-Core rev: bdcc5e8f1286d288baf410458efc39a59b68d751)

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate.bbclass: make hard links for staging files
Robert Yang [Sat, 27 Apr 2013 09:32:07 +0000 (05:32 -0400)]
sstate.bbclass: make hard links for staging files

Make hard links for staging files instead of copy to save the disk space
(3G will be saved for a core-image-sato build), and it doesn't affect
much on the build time.

The following directories are affected:
1) The sysroot
2) The DEPLOY_DIR
3) The pkgdata

[YOCTO #4372]

(From OE-Core rev: 5853e0f482b22258c909268fe71673a29e31989b)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotune-thumb.inc: Remove, replaced by arm/feature-arm-thumb.inc
Martin Jansa [Wed, 24 Apr 2013 13:42:11 +0000 (15:42 +0200)]
tune-thumb.inc: Remove, replaced by arm/feature-arm-thumb.inc

(From OE-Core rev: f4b451c8ad8f857b1789d75d68ce8ea8fc73542e)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoneard: add systemd unit file
Ross Burton [Mon, 29 Apr 2013 13:44:29 +0000 (14:44 +0100)]
neard: add systemd unit file

Add a systemd unit file, and respect the sysvinit feature when installing the
init script.

(thanks to Jukka Rissanen for the unit file)

(From OE-Core rev: e86538db13605953465aacc3f2fb7d719dad919e)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosudo: disable SSP for auxiliary build tools mksiglist and mksigname
Tomas Frydrych [Sat, 27 Apr 2013 08:43:38 +0000 (09:43 +0100)]
sudo: disable SSP for auxiliary build tools mksiglist and mksigname

The do_compile_prepend() fragment ensures that the non-installable build
tools mksiglist and mksigname are built using the BUILD_CC, but if the the
BUILD_CC does not support SSP and the cross compiler does, the build fails
due to the SSP flags set in the Makefile. Ensuring that SSP is not enabled
when building these tools prevents this from happening.

(From OE-Core rev: ad9a9c6e6b4f00bc47449bbe8c85777ea7c89b88)

Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoneard: re-order recipe so the statement order is logical
Ross Burton [Mon, 29 Apr 2013 11:57:14 +0000 (12:57 +0100)]
neard: re-order recipe so the statement order is logical

(From OE-Core rev: 373dc2778f263baa7958c48cc1644008e2a40676)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomenu-cache: Fix segmentation fault
Laurentiu Palcu [Mon, 29 Apr 2013 13:40:14 +0000 (16:40 +0300)]
menu-cache: Fix segmentation fault

[YOCTO #4353]

(From OE-Core rev: 8c9c6155e6d83675a94b4eaae4ffc6dfeca399ee)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibpcap: Fix up patches
Saul Wold [Fri, 26 Apr 2013 23:04:37 +0000 (16:04 -0700)]
libpcap: Fix up patches

These patches where tweaking both configure.in and configure, which is
bad since configure changes after an autoconf. If the patch is re-applied
for some reason it would notice that it's already appiled and fails.

[YOCTO #4314]

(From OE-Core rev: c32b425c10566cf2aaf187e98b6e2e29022bea2f)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>