]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agoperl: Upgrade to 5.22.1
Alejandro Hernandez [Wed, 20 Jan 2016 15:56:57 +0000 (15:56 +0000)]
perl: Upgrade to 5.22.1

Rebased:
- Makefile.SH.patch

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest/signing: use temporary rpmdb
Markus Lehtonen [Wed, 20 Jan 2016 13:08:41 +0000 (15:08 +0200)]
oeqa/selftest/signing: use temporary rpmdb

Use temporary rpmdb when importing gpg public key and checking rpm
signature. This patch should fix a problem where test_signing_packages()
sometimes fails with
"pmdb: BDB1540 configured environment flags incompatible with existing
 environment"

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agokexec-tools: inherit update-rc.d
Roy Li [Wed, 20 Jan 2016 08:39:30 +0000 (16:39 +0800)]
kexec-tools: inherit update-rc.d

init script kdump is added, so inherit update-rc.d

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoautotools: don't output the full config.log on configure failure
Ross Burton [Tue, 12 Jan 2016 20:45:45 +0000 (20:45 +0000)]
autotools: don't output the full config.log on configure failure

The config.log written by autoconf includes many pages of useless output,
followed by an obfuscated error message, and then more pages of every variable
that's been set.  It's only understandable if you're well versed in how autoconf
behaves, and often in simple failure modes doesn't actually make it clear what
the problem was.

Instead of outputting the whole config.log to the console when do_configure()
fails, use bbfatal_log so the human-readable configure output (not the
config.log) is shown to the user, and tell the user where config.log can be
found if they need it.

[ YOCTO #8856 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobitbake.conf: Remove horrible variable expansion hacks
Richard Purdie [Fri, 22 Jan 2016 12:03:17 +0000 (12:03 +0000)]
bitbake.conf: Remove horrible variable expansion hacks

We used to need these hacks to make things work. Rework the variables to
remove the horrible hacks and make things slightly less ugly. This does
mean PE and PRAUTO are given default empty values but this is preferred
to the other ugliness.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomesa: add missing wayland-native build dependency
Ross Burton [Fri, 22 Jan 2016 14:52:56 +0000 (14:52 +0000)]
mesa: add missing wayland-native build dependency

Mesa needs wayland-scanner, which is provided by wayland-native.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoudev: Add 2 patches to support 4.4 kernel
Saul Wold [Wed, 20 Jan 2016 03:50:37 +0000 (19:50 -0800)]
udev: Add 2 patches to support 4.4 kernel

These 2 patches are needed to build udev with the 4.4 kernel, the first
mtd-probe adds back a stdint.h header that was removed in the kernel's mtd-user.h
header file.

The second adds a check for a new header and sets a Makefile variable
to determine which header to use for the new kernel vs older kernels.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-runtime.inc: provide libquadmath
Ioan-Adrian Ratiu [Tue, 19 Jan 2016 14:46:43 +0000 (16:46 +0200)]
gcc-runtime.inc: provide libquadmath

libgfortran's build fails with "ld: cannot find -lquadmath" unless
libquadmath is added to gcc-runtime's RUNTIMETARGET

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agokexec: update supported architecture list
Maxin B. John [Mon, 30 Nov 2015 08:53:57 +0000 (10:53 +0200)]
kexec: update supported architecture list

Now, kexec is supported in mips, aarch64 and most of the machines within
powerpc family. So, remove those architecture specific restrictions.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agostrace: update 4.10 -> 4.11
Andre McCurdy [Mon, 18 Jan 2016 21:33:52 +0000 (13:33 -0800)]
strace: update 4.10 -> 4.11

Noteworthy changes in release 4.11 (2015-12-21)
===============================================

* Changes in behavior
  * Some syscalls have different names depending on architecture and
    personality.  In these cases, syscall filtering and printing now
    consistently uses the names that match corresponding __NR_* kernel
    macros of the tracee's architecture and personality.
  * Added strace prefix to all diagnostic messages.

* Improvements
  * Enhanced and extended test suite.
  * Implemented reliable tracing of processes whose personality differs
    from the personality of strace, fixed decoding of 32-bit personality
    syscalls on 64-bit architectures.
  * When some data referenced by syscall arguments is irrelevant or cannot
    be read from tracee's memory, strace now prints its address consistently.
  * When a syscall is restarted using restart_syscall mechanism, strace now
    shows the syscall name on architectures that expose this information.
  * Print values returned by epoll_create1, eventfd, eventfd2, fanotify_init,
    inotify_init1, perf_event_open, pipe, pipe2, signalfd, signalfd4, socket,
    socketpair, timerfd, and timerfd_create syscalls, as well as F_DUPFD and
    F_DUPFD_CLOEXEC fcntl commands, as file descriptors.
  * Optimized decoding of indirect socket syscalls.
  * Implemented decoding of nanoseconds along with seconds in stat family
    syscalls (addresses Fedora bug #1251176).
  * Implemented decoding of struct statfs.f_flags in statfs syscall.
  * Implemented decoding of siginfo_t.si_syscall and siginfo_t.si_arch
    in SIGSYS signal.
  * Implemented decoding of indirect syscall on mips o32.
  * Implemented decoding of IPPROTO_IP control messages.
  * Implemented decoding of setsockopt syscall multicast arguments.
  * Enhanced decoding of struct sigevent.
  * Enhanced decoding of block, loop, mtd, ptp, rtc, SG_IO, socket, tty,
    and v4l2 ioctl syscall arguments.
  * Enhanced decoding of epoll_create, fcntl, fcntl64, futex, getdents,
    getdents64, getsockopt, io_*, mount, msgctl, prctl, quotactl, recvfrom,
    sendfile, setsockopt, and shmctl syscalls.
  * Implemented decoding of bpf, execveat, ioperm, iopl, kcmp, kexec_file_load,
    lookup_dcookie, membarrier, memfd_create, mlock2, name_to_handle_at,
    open_by_handle_at, sched_getattr, sched_setattr, and userfaultfd syscalls.
  * Updated lists of AF_*, EPOLL_*, FALLOC_FL_*, F_*, INPUT_PROP_*, IPPROTO_*,
    IPV6_*, IP_*, KEY_*, LOCK_*, MNT_*, MS_*, PACKET_*, PERF_FLAG_*, PF_*,
    PR_*, PTRACE_O_*, RENAME_*, SCTP_*, SECBIT_*, SO_*, TCP_*, and siginfo_t
    constants.
  * Added Nios II architecture support.
  * Added new syscall entries to match Linux 4.4.

* Bug fixes
  * Fixed potential short read of strings from tracee's memory.
  * Fixed -qq option in conjunction with -o option.
  * Fixed filtering of <unavailable> syscalls.
  * Fixed decoding of ioctl syscall command on aarch64 and 32-bit architectures
    with 64-bit aligned structures.
  * Fixed decoding of eventfd2, epoll_create1, signalfd4, and sync_file_range2
    syscall flags arguments.
  * Fixed decoding of 4th argument of clock_nanosleep syscall.
  * Fixed decoding of getpagesize syscall on m68k.
  * Fixed decoding of getrandom and seccomp syscalls on aarch64.
  * Fixed decoding of timezone argument of gettimeofday and settimeofday
  * syscalls.
  * Fixed decoding of offset argument of mmap2 syscall on arm, sparc,
    and sparc64.
  * Fixed decoding of pipe syscall on alpha and mips.
  * Fixed decoding of pipe2 syscall on ia64, sh, sparc, and sparc64.
  * Fixed decoding of signal mask argument of pselect6 syscall on x32.
  * Fixed decoding of signal mask of rt_sigreturn syscall on aarch64, m68k,
    and x32.
  * Fixed decoding of 4th argument of semctl indirect syscall.
  * Fixed decoding of sa_restorer and sa_mask of sigaction syscall on m68k.
  * Fixed decoding of statfs64 and fstatfs64 syscalls on arm eabi.
  * Fixed decoding of struct dirent on x32.
  * Fixed decoding of times syscall return value on mips n32 and x32.
  * Fixed decoding of path argument of umount2 syscall
    (addresses Debian bug #785050).
  * Worked around a kernel bug in tracing privileged executables.
  * Fixed various errors in mapping between syscall numbers and associated
    information like the number of syscall arguments, the name of syscall,
    and syscall decoder.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agostrace: fix ARCH definition in tests/Makefile
Andre McCurdy [Mon, 18 Jan 2016 21:33:51 +0000 (13:33 -0800)]
strace: fix ARCH definition in tests/Makefile

TARGET_ARCH doesn't map to strace's ARCH variable, so we can't assign
one from the other. Forcing the incorrect value via the make command
line doesn't cause any problems with strace v4.10, but it will do for
strace v4.11.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agostrace: remove need for git-version-gen script
Andre McCurdy [Mon, 18 Jan 2016 21:33:50 +0000 (13:33 -0800)]
strace: remove need for git-version-gen script

The git-version-gen isn't really needed in order to determine the
version of tarball releases, so avoid the need to provide our own
copy.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agostrace: fix --disable-aio configure option
Andre McCurdy [Mon, 18 Jan 2016 21:33:49 +0000 (13:33 -0800)]
strace: fix --disable-aio configure option

Remove the original unconditional check for libaio.h,
since it's included in the newly added conditional check.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agostrace: drop unnecessary dependency on acl
Andre McCurdy [Mon, 18 Jan 2016 21:33:48 +0000 (13:33 -0800)]
strace: drop unnecessary dependency on acl

The dependency on acl was removed from strace prior to the v4.10
release, so it's no longer necessary to add a configure option to
allow acl to be disabled.

  http://sourceforge.net/p/strace/code/ci/681452b0f854833d4bd443fcd9bb0bab2b46339f

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibnewt: Fix linking error due missing symbols
Otavio Salvador [Mon, 18 Jan 2016 17:11:07 +0000 (15:11 -0200)]
libnewt: Fix linking error due missing symbols

The NEWT library links with 'slang' which requires 'tinfo' for
successful linking, this adds the 'tinfo' to the linking libraries.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolib/oe/package_manager.py: Remove list() from PkgsList class
Mariano Lopez [Mon, 18 Jan 2016 14:33:07 +0000 (14:33 +0000)]
lib/oe/package_manager.py: Remove list() from PkgsList class

Now that the method list() is not used anymore, remove it.

[YOCTO #7427]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolib/oe/rootfs: Use list_pkgs() instead of list()
Mariano Lopez [Mon, 18 Jan 2016 14:33:06 +0000 (14:33 +0000)]
lib/oe/rootfs: Use list_pkgs() instead of list()

This patch changes the use list_pkgs() instead of list()
from class RpmPkgsList. The change is in two functions,
image_list_installed_packages from rootfs.py and
sdk_list_installed_packages from sdk.py.

With this change the functions calling the functions
listed above, must format the output as they required.
The formatting can be done using format_pkg_list() from
oe.utils.

The classes calling the afected functions are changed too
with this patch, to keep the same functionality using the
new data structure.

[YOCTO #7427]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolib/oe/utils: Add function format_pkg_list()
Mariano Lopez [Mon, 18 Jan 2016 14:33:05 +0000 (14:33 +0000)]
lib/oe/utils: Add function format_pkg_list()

The class PkgsList returns a dictionary with all the installed
packages, because the data structure is a dictionary there is
needed to format the data in order to write to a file.

The function format_pkg_list returns a formated sting with all
packages installed. The output will depend on the requested format
when calling the function.

[YOCTO #7427]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolib/oe/package_manager: Add list_pkgs() to PkgsList class
Mariano Lopez [Mon, 18 Jan 2016 14:33:04 +0000 (14:33 +0000)]
lib/oe/package_manager: Add list_pkgs() to PkgsList class

Currently the class PkgList returns a formated string of the
installed packages. It would be more clean to pass a standard
data structure to the callers instead to format the output
inside PkgsList class.

This patch adds list_pkgs() method to PkgsList class to get the
all the information for installed packages and return a dictionary
with the info.

[YOCTO #7427]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython3: Minor upgrade 3.5.0 -> 3.5.1
Alejandro Hernandez [Tue, 19 Jan 2016 21:56:32 +0000 (21:56 +0000)]
python3: Minor upgrade 3.5.0 -> 3.5.1

Rebased:
- 000-cross-compile.patch

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-numpy: upgrade to 1.10.4
Alejandro Hernandez [Tue, 19 Jan 2016 21:56:30 +0000 (21:56 +0000)]
python-numpy: upgrade to 1.10.4

Updates runtime dependencies, numpy now depends on python-ctypes and python-threading.

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoswig: upgrade to 3.0.8
Alejandro Hernandez [Tue, 19 Jan 2016 21:56:31 +0000 (21:56 +0000)]
swig: upgrade to 3.0.8

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-scons: upgrade to 2.4.1
Alejandro Hernandez [Tue, 19 Jan 2016 21:56:29 +0000 (21:56 +0000)]
python-scons: upgrade to 2.4.1

Updates runtime dependencies, python-scon now depends on python-io and python-fcntl.

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-pycurl: upgrade to 7.21.5
Alejandro Hernandez [Tue, 19 Jan 2016 21:56:27 +0000 (21:56 +0000)]
python-pycurl: upgrade to 7.21.5

License checksum changed for file COPYING-MITLicense checksum changed for file README.rst

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-mako: upgrade to 1.0.3
Alejandro Hernandez [Tue, 19 Jan 2016 21:56:26 +0000 (21:56 +0000)]
python-mako: upgrade to 1.0.3

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-setuptools: Upgrade to 19.2
Alejandro Hernandez [Tue, 19 Jan 2016 21:56:25 +0000 (21:56 +0000)]
python-setuptools: Upgrade to 19.2

Upgrades python-setuptools to 19.2, easy_install works out of the box
adds the package python-plistlib to the manifest as it is needed by
setuptools now, and also updates runtime dependencies

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3-setuptools: upgrade to 19.2
Alejandro Hernandez [Tue, 19 Jan 2016 21:56:24 +0000 (21:56 +0000)]
python3-setuptools: upgrade to 19.2

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython: Upgrade 2.7.9 > 2.7.11
Alejandro Hernandez [Tue, 19 Jan 2016 22:47:49 +0000 (22:47 +0000)]
python: Upgrade 2.7.9 > 2.7.11

- no license change, just dates

Rebased:
- check-if-target-is-64b-not-host.patch
- add-CROSSPYTHONPATH-for-PYTHON_FOR_BUILD.patch

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: pylinted ksparser module
Ed Bartosh [Tue, 19 Jan 2016 16:51:11 +0000 (18:51 +0200)]
wic: pylinted ksparser module

Added missing docstrings, fixed wrong indentation and long lines.
Final pylint score is 9.89/10

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: add help for 'include' command
Ed Bartosh [Tue, 19 Jan 2016 16:51:10 +0000 (18:51 +0200)]
wic: add help for 'include' command

Added description of 'include' parser command to the
'wic help kickstart' output.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: move parts of canned .wks into common.wks.inc
Ed Bartosh [Tue, 19 Jan 2016 16:51:09 +0000 (18:51 +0200)]
wic: move parts of canned .wks into common.wks.inc

In order to give and example of 'include' feature of ks parser
and for testing purposes common parts of 3 canned wks files were
moved into common.wks.inc

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: implement search of includes
Ed Bartosh [Tue, 19 Jan 2016 16:51:08 +0000 (18:51 +0200)]
wic: implement search of includes

Used custom argument type to implement search of include
.wks files in canned wks paths. Include files can be
specified either by full path or by name.

[YOCTO #8848]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: refactor get_boot_config
Ed Bartosh [Tue, 19 Jan 2016 16:51:07 +0000 (18:51 +0200)]
wic: refactor get_boot_config

This function is going to be used by ks parser to find include .wks
files. get_boot_config name is a bit confusing as function is quite
generic. It looks if file is present in the canned wks directories.

Renamed get_boot_config -> get_canned.
Renamed parameter file_boot -> file_name.
Updated description.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: ksparser: add support for include
Ed Bartosh [Tue, 19 Jan 2016 16:51:06 +0000 (18:51 +0200)]
wic: ksparser: add support for include

Extended parser to support inclusion of .ks files:
    recursively called self._parse to parse included .ks

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: do not remove build dir in source plugins
Ed Bartosh [Tue, 19 Jan 2016 16:51:05 +0000 (18:51 +0200)]
wic: do not remove build dir in source plugins

Interesting bug was found during implementation of 'include'
parser command.

Build directory was removed in do_configure_partition method of
bootimg- source plugins. This can cause removal of previously
prepared partition images if /boot partition is mentioned after
other partitions in .ks file.

Moved work directory removal to direct.py before processing
partitions.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: use unique partition number
Ed Bartosh [Tue, 19 Jan 2016 16:51:04 +0000 (18:51 +0200)]
wic: use unique partition number

This is a preparation for 'include' support.

Used unique counter instead of line number for partitions
in .ks file. Line numbers can be equal for different .ks files,
which can cause problems if one .ks file is included into
another.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: move wks parsing code to KickStart._parse
Ed Bartosh [Tue, 19 Jan 2016 16:51:03 +0000 (18:51 +0200)]
wic: move wks parsing code to KickStart._parse

This is a preparation for implementation of include statement.
Parser will be called recursively to parse included .wks files,
so it should be available as a method.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonss: update to 3.21
Alexander Kanavin [Tue, 19 Jan 2016 15:37:32 +0000 (17:37 +0200)]
nss: update to 3.21

Explicitly disable tests (they were previously implicitly disabled upstream),
as they cause various architecture-specific build failures.

Add 0001-Fix-build-failure-on-opensuse-13.1.patch that fixes compilation using gcc 4.8.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibjpeg-turbo: fix upstream version check (sort of)
Alexander Kanavin [Tue, 19 Jan 2016 15:37:43 +0000 (17:37 +0200)]
libjpeg-turbo: fix upstream version check (sort of)

We prepend '8d' to the version and at the moment there is no way
to strip that out when doing upstream checks. But at least the latest
upstream version is reported correctly.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibical: fix upstream version check
Alexander Kanavin [Tue, 19 Jan 2016 15:37:42 +0000 (17:37 +0200)]
libical: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agognutls: update to 3.4.8
Alexander Kanavin [Tue, 19 Jan 2016 15:37:41 +0000 (17:37 +0200)]
gnutls: update to 3.4.8

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosysstat: fix upstream version check
Alexander Kanavin [Tue, 19 Jan 2016 15:37:40 +0000 (17:37 +0200)]
sysstat: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopbzip2: update to 1.1.13
Alexander Kanavin [Tue, 19 Jan 2016 15:37:39 +0000 (17:37 +0200)]
pbzip2: update to 1.1.13

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoncurses: fix upstream version check
Alexander Kanavin [Tue, 19 Jan 2016 15:37:38 +0000 (17:37 +0200)]
ncurses: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibsolv: fix upstream version check
Alexander Kanavin [Tue, 19 Jan 2016 15:37:37 +0000 (17:37 +0200)]
libsolv: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoe2fsprogs: fix upstream version check
Alexander Kanavin [Tue, 19 Jan 2016 15:37:36 +0000 (17:37 +0200)]
e2fsprogs: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: bump version to 14.0
Alexander Kanavin [Tue, 19 Jan 2016 15:37:35 +0000 (17:37 +0200)]
build-appliance-image: bump version to 14.0

This is done to make recipe version reporting tool happy.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobtrfs-tools: update to 4.4
Alexander Kanavin [Tue, 19 Jan 2016 15:37:34 +0000 (17:37 +0200)]
btrfs-tools: update to 4.4

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobootchart2: update to 0.14.8
Alexander Kanavin [Tue, 19 Jan 2016 15:37:33 +0000 (17:37 +0200)]
bootchart2: update to 0.14.8

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm: remove bashisms: [ x == x ] -> [ x = x ]
Olof Johansson [Tue, 19 Jan 2016 13:45:32 +0000 (14:45 +0100)]
rpm: remove bashisms: [ x == x ] -> [ x = x ]

The postinst and postrm of rpm contained a bashism, that could in some
situations potentially cause ldconfig not be triggered when it should
be. If you use dash on host, test would fail because of syntax errors.
But on host, it should fail because of the comparison. On target, you
often use busybox ash, and it supports == as an alias for =. So in
practice, only if you use a shell like dash on target, you'll run into
issues with this.

Signed-off-by: Olof Johansson <olofjn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouclibc: remove a use of immediate expansion and oe_filter_out ()
Joshua Lock [Tue, 19 Jan 2016 10:44:07 +0000 (10:44 +0000)]
uclibc: remove a use of immediate expansion and oe_filter_out ()

The remove overrides syntax is much clearer here, and more closely
matches the preferred style for modern metadata.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-runtime: switch to removal override syntax to modify CXXFLAGS
Joshua Lock [Tue, 19 Jan 2016 10:44:06 +0000 (10:44 +0000)]
gcc-runtime: switch to removal override syntax to modify CXXFLAGS

The use of immediate expansion can cause issues when trying to
override variables, further the removal override syntax is clearer
than oe_filter_out () â€” switch to using removal override syntax
instead.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstate: replace verbose manifest removal with a single count
Ross Burton [Mon, 18 Jan 2016 16:22:01 +0000 (16:22 +0000)]
sstate: replace verbose manifest removal with a single count

If there are lots of changes between the previous build and the build about to
start bitbake will potentially print pages of:

  DEBUG: Stamp $BUILD/stamps/corei7-64-poky-linux/libdrm/2.4.66-r0 is not reachable, removing related manifests

Instead of spamming the console with this list, write the list of manifests only
to the debug log and simply write a count to the console.  This way the user
doesn't get spammed but still knows what is happening if bitbake appears to
stall with heavy I/O.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibdrm: Upgrade 2.4.65 -> 2.4.66
Khem Raj [Tue, 29 Dec 2015 22:28:32 +0000 (22:28 +0000)]
libdrm: Upgrade 2.4.65 -> 2.4.66

Fix test build failures.

Ensure all binaries go into libdrm-tests [RB]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoslang: Add dependency on ncurses
Otavio Salvador [Mon, 18 Jan 2016 15:18:57 +0000 (13:18 -0200)]
slang: Add dependency on ncurses

Slang links over ncurses' terminal information library thus it
requires it to be available for build.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agovalgrind: make it explicit that valgrind supports armv7a and above
Andre McCurdy [Wed, 13 Jan 2016 03:24:30 +0000 (19:24 -0800)]
valgrind: make it explicit that valgrind supports armv7a and above

Despite rumours to the contrary, valgrind really does require
armv7a or above.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosign_rpm.bbclass: fix task dependencies
Markus Lehtonen [Mon, 11 Jan 2016 16:13:17 +0000 (18:13 +0200)]
sign_rpm.bbclass: fix task dependencies

do_rootfs task needs to depend on signing-keys:do_export_public_keys.
The rpm signing public key needs to be present in order to prevent a
crash because it is imported into the rootfs rpmdb before rootfs
creation starts.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoopkg-utils: store alternatives in nonarch_libdir
Daniel McGregor [Thu, 14 Jan 2016 20:47:04 +0000 (14:47 -0600)]
opkg-utils: store alternatives in nonarch_libdir

opkg-utils-native stores alternative info in /usr/lib, so do the
same on the target.

Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosecurity_flags.inc: remove obsolete workarounds for curl
Andre McCurdy [Thu, 14 Jan 2016 03:35:09 +0000 (19:35 -0800)]
security_flags.inc: remove obsolete workarounds for curl

The curl configure script contains sanity checks for unexpected
options being passed via CFLAGS, LDFLAGS, etc. environment variables.

These sanity checks catch -Dxxx options in CFLAGS, which clashes with
OE's approach of using CFLAGS to pass -D_FORTIFY_SOURCE (curl's
configure script suggests, quite correctly, that -Dxxx options should
be passed via CPPFLAGS instead).

These sanity checks previously generated fatal errors, but have been
downgraded to warnings since curl v7.32. Therefore the workaround of
avoiding -D_FORTIFY_SOURCE for curl is obsolete and can be removed.

  https://github.com/bagder/curl/commit/5d3cbde72ece7d83c280492957a26e26ab4e5cca

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocups: update systemd support
Andrew Shadura [Mon, 18 Jan 2016 14:43:08 +0000 (14:43 +0000)]
cups: update systemd support

Add PACKAGECONFIG for systemd, enable it when systemd is enabled in
DISTRO_FEATURES. Pass the correct path to systemd units, ensure they're
installed into the package.

Drop custom systemd unit files, use those shipped by the upstream instead.

Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocoreutils: Add xattr PACKAGECONFIG
Scott Ellis [Mon, 18 Jan 2016 10:42:48 +0000 (05:42 -0500)]
coreutils: Add xattr PACKAGECONFIG

From Yocto poky where it also stops this warning

WARNING: QA Issue: coreutils rdepends on libattr, but it isn't a build dependency? [build-deps]

Signed-off-by: Scott Ellis <scott@jumpnowtek.com>
9 years agooeqa/runtime/parselogs: use -F to search fixed strings for grep
Yi Zhao [Thu, 14 Jan 2016 07:08:37 +0000 (15:08 +0800)]
oeqa/runtime/parselogs: use -F to search fixed strings for grep

The grep output is not correct if the log message contains special
characters. Use -F which tells grep to search for fixed strings, not
expressions and pass lists instead of strings to subprocess.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibinput: Upgrade 0.21.0 -> 1.1.4
Bob Ham [Wed, 13 Jan 2016 18:21:01 +0000 (18:21 +0000)]
libinput: Upgrade 0.21.0 -> 1.1.4

yocto/jethro provides the version 0.21 from August 2015 while the
current version is 1.1.4.

The patch libinput-configure.ac-add-arg-with-libunwind.patch has been
merged to upstream and was removed from the recipe.  The patch
touchpad-serial-synaptics-need-to-fake-new-touches-on-TRIPLETAP.patch
has not been merged to upstream and is still included in the recipe.

Co-Authored-By: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Bob Ham <bob.ham@collabora.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopostinst-intercepts: always use set -e
Ross Burton [Wed, 6 Jan 2016 15:49:37 +0000 (15:49 +0000)]
postinst-intercepts: always use set -e

If a postinst has a problem (say, qemu crashes) and set -e isn't in operation,
the only mention of the problem is a single line in the rootfs log that doesn't
trigger any warnings.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosstate: Add packagedata to list of tasks not to recurse
Richard Purdie [Mon, 18 Jan 2016 17:57:01 +0000 (17:57 +0000)]
sstate: Add packagedata to list of tasks not to recurse

If we "bitbake X -c packagedata" and the packagedata comes from sstate, we
don't need any of the tasks dependencies. This is similar to the
populate_lic case, we only care about the end result.

Therefore short circuit the dependencies so packagedata doesn't pull in
any other dependencies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: fix task dependency regression
Paul Eggleton [Sun, 17 Jan 2016 23:26:33 +0000 (12:26 +1300)]
classes/populate_sdk_ext: fix task dependency regression

Fix a regression caused by OE-Core revision
eabeb26335b1a4eb1e68218160dbdbe8fdf36272 where we lost the task
dependency on packages in TOOLCHAIN_HOST_TASK (such as
meta-environment-extsdk-${MACHINE}) which led to errors about missing
packages when building the extensible SDK. This happened because I only
moved half of the dependencies coming from the standard SDK task to
do_sdk_depends.

While I'm at it, tidy up the do_populate_sdk_ext[depends] line.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Handle image types containing '-' correctly
Richard Purdie [Sun, 17 Jan 2016 22:25:20 +0000 (22:25 +0000)]
image: Handle image types containing '-' correctly

Shell function names can't contain '-' characters, which means our image
task names also can't. Add some mapping to use '_' instead of the '-' so
images like "rpi-sdimg" work again.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: devtool: fix test_devtool_add_library if python was built first
Paul Eggleton [Mon, 18 Jan 2016 11:18:35 +0000 (00:18 +1300)]
oe-selftest: devtool: fix test_devtool_add_library if python was built first

If Python is in the sysroot then this test can fail due to some
brokenness in libftdi's CMakeLists.txt file for its python bindings.
Just disable it in order to have the test work more reliably.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: add a couple more license checksums
Paul Eggleton [Mon, 18 Jan 2016 11:18:34 +0000 (00:18 +1300)]
recipetool: create: add a couple more license checksums

I found these when I was looking at libftdi and they seem to be
generic enough to show up in at least a couple of other packages so I
figure I'll add them.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: add basic support for extracting dependencies from cmake
Paul Eggleton [Mon, 18 Jan 2016 11:18:33 +0000 (00:18 +1300)]
recipetool: create: add basic support for extracting dependencies from cmake

Add support for extracting dependencies from CMakeLists.txt. There's
still a bunch of things missing that are outside the scope of OE-Core
and we still lack a proper extension mechanism, but this is a good
start.

This also adds an oe-selftest test to exercise the new code a bit.

Implements [YOCTO #7635].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: force GL libraries to virtual/*
Paul Eggleton [Mon, 18 Jan 2016 11:18:32 +0000 (00:18 +1300)]
recipetool: create: force GL libraries to virtual/*

We want to specify dependencies on virtual/* rather than whatever
library is selected in the current configuration.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: move dependency mapping code to RecipeHandler
Paul Eggleton [Mon, 18 Jan 2016 11:18:31 +0000 (00:18 +1300)]
recipetool: create: move dependency mapping code to RecipeHandler

Some refactoring to allow access to the library/header/pkg-config
mappings and the DEPENDS / unmapped dependency output code from other
classes than AutotoolsRecipeHandler.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: fix overzealous mapping of git URLs
Paul Eggleton [Mon, 18 Jan 2016 11:18:30 +0000 (00:18 +1300)]
recipetool: create: fix overzealous mapping of git URLs

The regex for detecting git URLs was unanchored, leading to it matching
where it shouldn't have. An example of where this went wrong was
http://taglib.github.io/releases/taglib-1.9.1.tar.gz.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: support additional autoconf macros from autoconf-archive
Paul Eggleton [Mon, 18 Jan 2016 11:18:29 +0000 (00:18 +1300)]
recipetool: create: support additional autoconf macros from autoconf-archive

Support a number of macros from autoconf-archive when reading
configure.ac to extract dependencies.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: detect flex/bison dependency
Paul Eggleton [Mon, 18 Jan 2016 11:18:28 +0000 (00:18 +1300)]
recipetool: create: detect flex/bison dependency

There are a few different macros that can be used to pick up these
tools, add support for them all.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: pick up boost macros in configure.ac
Paul Eggleton [Mon, 18 Jan 2016 11:18:27 +0000 (00:18 +1300)]
recipetool: create: pick up boost macros in configure.ac

The presence of BOOST_REQUIRE or AX_BOOST.* indicates that boost is a
dependency.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: improve extraction of pkg-config / lib deps
Paul Eggleton [Mon, 18 Jan 2016 11:18:26 +0000 (00:18 +1300)]
recipetool: create: improve extraction of pkg-config / lib deps

* The regexes for PKG_CHECK_MODULES / AC_CHECK_LIB were a bit too strict
  and thus we were skipping some macros.
* Add support for PKG_CHECK_EXISTS
* Avoid duplicates in warning on missing pkg-config dependencies
* Ignore dependency on musl (since this may come up if it's the selected
  C library)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: rename kickstarter.py -> ksparser.py
Ed Bartosh [Mon, 18 Jan 2016 12:22:46 +0000 (14:22 +0200)]
wic: rename kickstarter.py -> ksparser.py

kickstarter.py was not the best name for this module as previously
there was a directory with the same name in scripts/lib/wic/.
All files were removed from it, but .pyc files could still stay there
causing imports from wic.kickstart to fail with
ImportError: cannot import name KickStart.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: override ArgumentParser.error
Ed Bartosh [Mon, 18 Jan 2016 12:22:45 +0000 (14:22 +0200)]
wic: override ArgumentParser.error

Overriden error method to throw exception instead of
printing usage error message. Exception is caught by
KickStart code to add .ks file name and line number.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: removed unused imports
Ed Bartosh [Mon, 18 Jan 2016 12:22:44 +0000 (14:22 +0200)]
wic: removed unused imports

Removed imports of wic.kickstart from plugins as they're
not used in the code.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: improve processing of parseing errors
Ed Bartosh [Mon, 18 Jan 2016 12:22:43 +0000 (14:22 +0200)]
wic: improve processing of parseing errors

Caught argparse.ArgumentError
Included .ks file name and line number into the error messages.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: catch KickStartError
Ed Bartosh [Mon, 18 Jan 2016 12:22:42 +0000 (14:22 +0200)]
wic: catch KickStartError

Catch parsing errors and output them using msger.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: add custom exception KickStartError
Ed Bartosh [Mon, 18 Jan 2016 12:22:41 +0000 (14:22 +0200)]
wic: add custom exception KickStartError

This exception will be raised by kickstart parser
on parsing errors and processed in the code which
calls parser to produce meaningful error output.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobootimg/image-vm/image-live: Improve image dependencies
Richard Purdie [Mon, 18 Jan 2016 14:27:02 +0000 (14:27 +0000)]
bootimg/image-vm/image-live: Improve image dependencies

Now that image generation consists of separate tasks, we can improve
the dependencies in these classes. We can also incorporate the tasks
within do_image_complete instead of do_build so we have a specific task
for when the deploy directory is populated with images.

This fixes various expectations about do_image_completed and the way
I'd tried to use it to fix some sanity test problems.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Always run do_rootfs_wicenv
Richard Purdie [Mon, 18 Jan 2016 14:25:59 +0000 (14:25 +0000)]
image: Always run do_rootfs_wicenv

The wic command can be used externally but for this to work, the wic
environment file needs to be present. Therefore write this out
universally, it runs in parallel with other image construction so
any performance implications are negligible.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoselftest/buildhistory: Improve test to remove sources of error
Richard Purdie [Sun, 17 Jan 2016 11:17:47 +0000 (11:17 +0000)]
selftest/buildhistory: Improve test to remove sources of error

When we add buildhistory, we expect do_rootfs to rerun, but depending
on IMAGE_FSTYPES, the number of tasks which would execute after
do_rootfs varies (e.g. live would add do_bootimg and we recently
added do_image).

Therefore limit the test to -c rootfs and then we're clear that only
one task should re-run.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobootimg/image: Enhance bootimg to respect RM_OLD_IMAGE
Richard Purdie [Sun, 17 Jan 2016 11:16:45 +0000 (11:16 +0000)]
bootimg/image: Enhance bootimg to respect RM_OLD_IMAGE

Currently, iso and hddimg links don't respect RM_OLD_IMAGE. This
updates them to use the common symlinks code so that they behave
like the rest of the system.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorootfs-postcommands: Ensure license manifests respect RM_OLD_IMAGE
Richard Purdie [Sun, 17 Jan 2016 11:15:14 +0000 (11:15 +0000)]
rootfs-postcommands: Ensure license manifests respect RM_OLD_IMAGE

When RM_OLD_IMAGE is set, old manifest files should be removed
along with old image files and our QA tests expect this.

This patch ensures this happens.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Ensure we don't expand TMPDIR in image commands
Richard Purdie [Sun, 17 Jan 2016 00:21:44 +0000 (00:21 +0000)]
image: Ensure we don't expand TMPDIR in image commands

Similarly to DATETIME, don't expand TMPDIR in image commands.
This ensures some of the stamp comparisons we make in the
QA tests work correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Fix instability of do_image_* checksums
Richard Purdie [Sat, 16 Jan 2016 10:33:18 +0000 (10:33 +0000)]
image: Fix instability of do_image_* checksums

The do_image_* tasks contained the expanded version of DATETIME. Due
to the expansion, we couldn't exclude the value from the task checksum
which meant the task would rerun.

We fix this by deleting the DATETIME value during expansion so we don't
expand any references to at that time. This means the task's hash can be
stable rather than having hardcoded date/time values. It will get expanded
at execution time.

This also fixes errors shown by -S:

NOTE: Reparsing files to collect dependency data
Writing locked sigs to /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/locked-sigs.inc
ERROR: Bitbake's cached basehash does not match the one we just generated (/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/recipes-sato/images/core-image-sato.bb.do_image_tar)!
ERROR: The mismatched hashes were 77872792556367f1dde49a1425caf1a0 and 9bb0aca6286ab7dd22d3c69964beb665

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Fix wic environment issues
Richard Purdie [Sat, 16 Jan 2016 10:32:44 +0000 (10:32 +0000)]
image: Fix wic environment issues

The wic environment function needs to run after the rootfs size is
setup. We move this code to a specific task, and depend on that task
from the wic images and other places its needed.
This fixes:

======================================================================
FAIL: test_image_env (oeqa.selftest.wic.Wic)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py", line 106, in wrapped_f
    return func(*args, **kwargs)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py", line 218, in test_image_env
    self.assertTrue(var in content, "%s is not in .env file" % var)
AssertionError: False is not true : ROOTFS_SIZE is not in .env file

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinsane: Start to clean up do_configure_qa code
Richard Purdie [Fri, 15 Jan 2016 12:55:30 +0000 (12:55 +0000)]
insane: Start to clean up do_configure_qa code

This cleans up the do_configure_qa code so that the exit status from
package_qa_handle_error is handled correctly.

It also converts package_qa_check_license to use our standard QA check
configuration interface through package_qa_handle_error rather than
a mix of return values, bb.fatal and bb.build.FuncFailed.

Due to the merging of multiple lines into one message, we need to
tweak a QA test to account for this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinsane: Clean up horrible return value processing code
Richard Purdie [Fri, 15 Jan 2016 12:44:10 +0000 (12:44 +0000)]
insane: Clean up horrible return value processing code

Whilst in theory return values are nice, handling the complex
aggregation of the return values is ugly. The code already uses QA_SANE
as a marker to signal problems. Whilst that isn't as idealistic, it
makes the code massively cleaner, so rely on this instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoe2fsprogs: fix PV
Robert Yang [Tue, 19 Jan 2016 03:23:03 +0000 (19:23 -0800)]
e2fsprogs: fix PV

We had upgraded e2fsprogs from 1.42.9 to 1.43 (WIP), and used:
PV = "1.42+1.43-git${SRCPV}"
But:
$ dpkg --compare-versions 1.42+1.43 gt 1.42.9 && echo greater || echo less
less

It shows that 1.42+1.43 is less than 1.42.9, so this is a downgraded. Use
PV = "1.42.13+git${SRCPV}"
to fix the problem. 1.42.13 is the latest e2fsprogs 1.42 version.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoe2fsprogs: add PACKAGECONFIG for fuse
Robert Yang [Tue, 19 Jan 2016 03:23:02 +0000 (19:23 -0800)]
e2fsprogs: add PACKAGECONFIG for fuse

Fixed:
e2fsprogs-1.42+1.43-gitAUTOINC+0f26747167: e2fsprogs rdepends on fuse, but it isn't a build dependency? [build-deps]

The fuse is in meta-filesystems layer.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssh: CVE-2016-1907
Armin Kuster [Sat, 16 Jan 2016 00:59:49 +0000 (16:59 -0800)]
openssh: CVE-2016-1907

This issue requires three commits:
https://anongit.mindrot.org/openssh.git/commit/?id=ed4ce82dbfa8a3a3c8ea6fa0db113c71e234416c
https://anongit.mindrot.org/openssh.git/commit/?id=f98a09cacff7baad8748c9aa217afd155a4d493f
https://anongit.mindrot.org/openssh.git/commit/?id=2fecfd486bdba9f51b3a789277bb0733ca36e1c0

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolicense.bbclass: fix license manifest
Jackie Huang [Mon, 11 Jan 2016 05:55:38 +0000 (13:55 +0800)]
license.bbclass: fix license manifest

The license manifest is wrong when there is no spaces before and after separates |&()
and we can get warning like:
WARNING: The license listed Artistic-1.0GPLv1+ was not in the licenses collected for recipe

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic/help.py: document requirements for valid fstab generation
Joshua Lock [Mon, 11 Jan 2016 13:33:51 +0000 (13:33 +0000)]
wic/help.py: document requirements for valid fstab generation

Without one of the --ondrive, --ondisk or --use-uuid options for a
partition with a mountpoint specified the automatically generated
fstab entry will be invalid.

[YOCTO #8844]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglib-2.0: add dependency glib-2.0-native back
Kai Kang [Mon, 11 Jan 2016 07:07:12 +0000 (15:07 +0800)]
glib-2.0: add dependency glib-2.0-native back

It uses command glib-genmarshal to build glib-2.0 which is from
glib-2.0-native. If the command doesn't exist on host, build fails
with error:

| /bin/sh: --prefix=test_marshal: command not found
| make[4]: *** [testmarshal.c] Error 127

So add the dependency back.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass
Andre McCurdy [Wed, 23 Dec 2015 00:12:53 +0000 (16:12 -0800)]
kernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass

Move do_kernel_link_vmlinux() from kernel-yocto.bbclass into
kernel.bbclass so that it's available to any kernel recipe.

Note that the task is not enabled by default in kernel-yocto.bbclass,
so don't enable by default in kernel.bbclass either. To enable, see
the example in linux-yocto.inc, ie:

  addtask kernel_link_vmlinux after do_compile before do_install

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>