]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agoovmf: fix toolchain selection
Patrick Ohly [Tue, 21 Mar 2017 08:56:50 +0000 (09:56 +0100)]
ovmf: fix toolchain selection

For the native tools, a static patch inserted gcc/g++/ld/ar while later
adding BUILD_LDFLAGS and BUILD_CFLAGS with sed. Now it's all done with sed,
which has the advantage that it uses the actual compile variables. However,
in practice those are the same.

More importantly, picking the build tools for the target was
broken. ovmf-native tried to insert TARGET_PREFIX into the tools
definition file, but that variable is empty in a native recipe. As a
result, "gcc" was used instead of "${HOST_PREFIX}gcc", leading to an
undesirable dependency on the host compiler and potentially
(probably?!) causing some of the build issues that were seen for ovmf.

The new approach is to override the tool selection in ovmf-native so
that the HOST_PREFIX env variable is used, which then gets exported
during do_compile for the target.

While at it, Python code that gets appened to do_patch only to call
shell functions gets replaced with the do_patch[postfuncs] mechanism.

Incremental builds now always use the tools definition from the
current ovmf-native; previously, only the initial build copied the
template file.

Probably the entire split into ovmf-native and ovmf could be
removed. This merely hasn't been attempted yet.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibcomps: Fix/optimize building with clang
Khem Raj [Tue, 21 Mar 2017 05:02:55 +0000 (22:02 -0700)]
libcomps: Fix/optimize building with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/compatlayer: Add exclude of meta-world-pkgdata on get_signatures
Aníbal Limón [Mon, 20 Mar 2017 21:38:00 +0000 (15:38 -0600)]
scripts/compatlayer: Add exclude of meta-world-pkgdata on get_signatures

The meta-world-pkgdata recipe can be modified when a layer is added
may be can add recipes to world target, so exclude by default.

[YOCTO #11162]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/yocto-compat-layer.py: Make output log argument optional
Aníbal Limón [Mon, 20 Mar 2017 20:51:03 +0000 (14:51 -0600)]
scripts/yocto-compat-layer.py: Make output log argument optional

Only create a log file when --output-log option is specified, since
logger is dumping to stdout by default is better to let the user
decide if a log needs to be created.

[YOCTO #11160]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/yocto-compat-layer.py: Dump log to stdout instead of stderr
Aníbal Limón [Mon, 20 Mar 2017 20:51:02 +0000 (14:51 -0600)]
scripts/yocto-compat-layer.py: Dump log to stdout instead of stderr

The common unix tools uses stdout as standard for log output, by default
python logging uses stderr if not stream is specified.

[YOCTO #11160]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscriptutils: Add support for specify stream on logger_create
Aníbal Limón [Mon, 20 Mar 2017 20:51:01 +0000 (14:51 -0600)]
scriptutils: Add support for specify stream on logger_create

It is a good idea to let the script to choose what stream wants
to dump the logging output.

[YOCTO #11160]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogo-native: Install bootstrap binaries with 1.4 suffix
Khem Raj [Mon, 20 Mar 2017 16:47:35 +0000 (09:47 -0700)]
go-native: Install bootstrap binaries with 1.4 suffix

Currently, bin/go and bin/gofmt collide between go-native
and go-bootstrap-native packages, these are scripts anyway
which call the go compiler proper from right install, in
this case create go1.4 and gofmt1.4 names for these scripts
to avoid namespace collision

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoacpitests: Point Makefile CC to use OE synthesized CC
Khem Raj [Mon, 20 Mar 2017 16:47:34 +0000 (09:47 -0700)]
acpitests: Point Makefile CC to use OE synthesized CC

Default CC is same as used here, there is no need to
duplicate it, as a plus it helps in compiling acpitests with
non-gcc cross compilers

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopenssl: Fix build with clang
Khem Raj [Mon, 20 Mar 2017 16:47:33 +0000 (09:47 -0700)]
openssl: Fix build with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/selftest: remove test_sanity_unsafe_binary_references
Ross Burton [Mon, 20 Mar 2017 16:45:21 +0000 (16:45 +0000)]
oeqa/selftest: remove test_sanity_unsafe_binary_references

This test was attempting to exercise a broken test, for some reason this broke
with patches under review but investigation revealed that the test itself is
broken.  The test has been removed, so there's no need to test it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinsane: remove broken unsafe-references-in-binaries test
Ross Burton [Mon, 20 Mar 2017 16:45:14 +0000 (16:45 +0000)]
insane: remove broken unsafe-references-in-binaries test

This test aims to detect binaries in /bin which link to libraries in /usr/lib,
for the case where the user has /usr on a separate filesystem to /.

However it doesn't scan both image/ and the sysroot, so if a binary in /bin
links to a library in /usr/lib that was built by the same recipe then it will
error out.

This test isn't enabled by default, and because of this serious bug I suspect
nobody else is enabling it either.  As /usr being on a separate partition to /
is a very rare configuration these days I think we should delete the test: if
someone cares sufficiently they should write a test that actually works.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackage.bbclass: Add PRIVATE_LIBS to list of package specific variables
Peter Kjellerstedt [Mon, 20 Mar 2017 15:17:07 +0000 (16:17 +0100)]
package.bbclass: Add PRIVATE_LIBS to list of package specific variables

Changes to PRIVATE_LIBS should change the sstate checksum. To make
that happen, it needs to be listed in the list of package specific
variables, therefore add it.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogpgme: Avoid requiring a host C++ compiler with C++11 support
Peter Kjellerstedt [Mon, 20 Mar 2017 15:13:08 +0000 (16:13 +0100)]
gpgme: Avoid requiring a host C++ compiler with C++11 support

Building the C++ bindings for native requires a host C++ compiler with
C++11 support. Since these bindings are currently not needed, we can
disable them and thus avoid increasing the requirement for the host C++
compiler.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoimage-buildinfo.bbclass: configurable location for build file
Patrick Ohly [Mon, 20 Mar 2017 12:26:18 +0000 (13:26 +0100)]
image-buildinfo.bbclass: configurable location for build file

In a stateless image, /etc is not a good place for the "build"
file. By definining the location with a variable it becomes possible
to have the file created elsewhere on a per-image basis. The default
is the same as before.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: partition.py: Add fsck to avoid corrupt EXT file systems
Daniel Schultz [Mon, 20 Mar 2017 12:18:52 +0000 (13:18 +0100)]
wic: partition.py: Add fsck to avoid corrupt EXT file systems

This patch avoids the creation of a corrupt EXT file system.

Since there are no checks if a EXT file system was successfully created,
this should add to prevent possible system failures.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoe2fsprogs: Fix wrong error code after optimization
Daniel Schultz [Mon, 20 Mar 2017 12:18:51 +0000 (13:18 +0100)]
e2fsprogs: Fix wrong error code after optimization

fsck.ext will return an error code of 1 if a file systems was checked
and successfully repaired. Even when an optimization was performed it
will return this error code.

This patch will change the error code to 0 if only optimizations had
changed the file systems.

The reason for this patch is a question I asked at the ext4 ML:
http://www.spinics.net/lists/linux-ext4/msg55700.html

Backport from git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
    Based on commit bf9f3b6d5b10d19218b4ed904c12b22e36ec57dd

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogen-lockedsig-cache: catch os.link error
brian avery [Sun, 19 Mar 2017 17:32:40 +0000 (10:32 -0700)]
gen-lockedsig-cache: catch os.link error

We do a hard link to speed up sdk creation but if your sstate-cache is
across a file system boundary, this tries and fails. This patch catches
that error and does a copy instead.

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython-3.3-multilib.patch: Fixes getpath on multilib configurations
Jose Lamego [Fri, 17 Mar 2017 22:23:53 +0000 (15:23 -0700)]
python-3.3-multilib.patch: Fixes getpath on multilib configurations

When using multilib configurations either on arm/arm64 and x86/x86-64
python3 failed to execute due to a failure when looking for its
platform independent and dependent libraries.

This patch fixes this issue by assigning lib_python to the appropriate
macro.

[YOCTO #10812]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodevtool: tidy up handling of parse failures
Paul Eggleton [Mon, 20 Mar 2017 04:16:20 +0000 (17:16 +1300)]
devtool: tidy up handling of parse failures

Since the tinfoil2 refactoring, if an error occurred during parsing, we
were showing a traceback and not correctly exiting (since we weren't
calling shutdown()). Fix both of these issues.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-selftest: tinfoil: add tests for recently enabled datastore operations
Paul Eggleton [Mon, 20 Mar 2017 04:16:19 +0000 (17:16 +1300)]
oe-selftest: tinfoil: add tests for recently enabled datastore operations

A recent patch to bitbake fixes these datastore operations so that they
actually affect the server end, so we should test that they work.

(For full disclosure, some of these tests would probably pass without
those fixes, since the operation would be done on the client side
instead - but we are at least exercising the code paths.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobitbake.conf: remove vi from HOSTTOOLS list
brian avery [Sat, 18 Mar 2017 15:08:48 +0000 (08:08 -0700)]
bitbake.conf: remove vi from HOSTTOOLS list

Having changes the sdk test to cpio from cvs, we no longer require an
editor to be present. This patch removes vi from the list of required
tools.

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa/lib/oeqa: change sdk test from cvs to cpio
brian avery [Sat, 18 Mar 2017 15:08:47 +0000 (08:08 -0700)]
meta/lib/oeqa: change sdk test from cvs to cpio

We currently fetch,configure,build, and install cvs as our test for the
sdk.  cvs unfortunately, requires a default editor in order to run.  The
change in 94790a8254d6 that checks to see if you have something like vi
installed is fragile since you may have a different default editor. This
patch switches from using cvs as a test to using cpio. cpio also uses
autotools so the functionality tested is equivalent.

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorm_work.bbclass: re-enable recursive do_rm_work_all
Patrick Ohly [Tue, 14 Mar 2017 15:29:32 +0000 (16:29 +0100)]
rm_work.bbclass: re-enable recursive do_rm_work_all

When rewriting the do_rm_work injection, do_rm_work_all had been
removed because it seemed obsolete, as do_build now always triggers
do_rm_work.

However, do_build does not get triggered for all recipes and thus
do_rm_work was not called for recipes that got built only
partially. For example, zlib depends indirectly on
zlib-native:do_populate_sysroot.  Because of that dependency,
zlib-native got compiled, but do_rm_work was never called for it.

Re-introducing do_rm_work_all fixes that by making do_build depend on
do_rm_work_all, which then recursively depends on do_rm_work of all
dependencies. This has the unintended side-effect that do_rm_work then
also triggers additional work (like do_populate_lic) that normally
doesn't need to be done for a build. This seems like the lesser evil,
compared to an incomplete cleanup because it mostly enables the
lighter tasks after do_populate_sysroot.

The real solution would be to have two kinds of relationships: a weak
ordering relationship ("if A and B are enabled, A must run before B,
but B can also run without A") and hard dependencies ("B cannot run
unless A has run before").

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoimage_types_wic.bbclass: tighten dependency to help do_rm_work_all
Patrick Ohly [Fri, 17 Mar 2017 17:56:59 +0000 (18:56 +0100)]
image_types_wic.bbclass: tighten dependency to help do_rm_work_all

Depending on wic-tools:do_build pulls a lot of additional, indirect
dependencies into the image sysroot during do_image_wic as soon as
rm_work.bbclass is active, because then we have
do_build->do_rm_work_all->[all dependencies]. One of those
dependencies is libgcc-initial, which clashes with libgcc itself,
leading to errors in extend_recipe_sysroot like this:

   Exception: FileExistsError: [Errno 17] File exists: '.../tmp/sysroots-components/corei7-64/glibc-initial/usr/include/fstab.h' -> '.../tmp/work/intel_corei7_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot/usr/include/fstab.h'

As the image recipe only needs the sysroot of wic-tools and does not
need to wait for the build of wic-tools to finish, depending on
do_populate_sysroot is the better choice and happens to avoid
the problem above.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel-fitimage: dtb sections named by their filenames and one config section for...
Florian Wickert [Fri, 17 Mar 2017 15:33:03 +0000 (16:33 +0100)]
kernel-fitimage: dtb sections named by their filenames and one config section for each dtb

Before this, dtb sections were named by their position index in KERNEL_DEVICETREE. Also there was only one item in the config section, so only the first dtb was seen by the bootloader.
This patch adds a config section for each dtb named by the dtb filename. This is what bootloaders usually know about the machine they run on.

Signed-off-by: Florian Wickert <fw@javox-solutions.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoltp: Fix __sighandler_t for mips
Khem Raj [Thu, 16 Mar 2017 20:33:57 +0000 (20:33 +0000)]
ltp: Fix __sighandler_t for mips

mips definition of kernel_sigaction was added later
and the patch did not apply to mips part which ended
in ltp failing to compile on mips parts

In file included from rt_sigaction01.c:42:0:
../../../../include/lapi/rt_sigaction.h:39:2: error: unknown type name '__sighandler_t'
  __sighandler_t k_sa_handler;
  ^~~~~~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolsb: Make use of appropriate bitbake variables.
Amarnath Valluri [Fri, 3 Mar 2017 12:36:32 +0000 (14:36 +0200)]
lsb: Make use of appropriate bitbake variables.

Using of bitbake environment variables in-place of hardcoded strings makes this
recipe portable to all environments.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomdadm: Avoid using hardocded sbin path
Amarnath Valluri [Fri, 3 Mar 2017 12:27:42 +0000 (14:27 +0200)]
mdadm: Avoid using hardocded sbin path

Use appropriate bitbake variable inplace of hardcoded sbin path in Makefile

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolttng-modules: Replace '/lib' with ${nonarch_base_libdir}
Amarnath Valluri [Tue, 14 Feb 2017 14:07:56 +0000 (16:07 +0200)]
lttng-modules: Replace '/lib' with ${nonarch_base_libdir}

Do not assume '/lib' for kernel modules location, instead use
${nonarch_base_libdir}. When 'usrmerge' is enabled, kernel modules are not
located in /lib/modules, but /usr/lib/modules.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agonet-tools: Place package content as per bitbake environment.
Amarnath Valluri [Wed, 8 Feb 2017 09:21:52 +0000 (11:21 +0200)]
net-tools: Place package content as per bitbake environment.

net-tools Makefile was hardcoded sbin, bin installation paths to /bin and /sbin
respectively.  This change moves the installed files to appropriate location as
per configured bitbake environment.

This might be solved much better way by patching Makefile, but that causing
build issues, as net-tools recipe is using pre-generated config.{h/status}.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agomktemp: Move installed files only when needed
Amarnath Valluri [Wed, 8 Feb 2017 09:15:17 +0000 (11:15 +0200)]
mktemp: Move installed files only when needed

Move binary(ies) only when ${base_bindir} != ${bindir}.

When usrmerge is enabled they both can point to same location.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agofirmware: use ${nonarch_base_libdir} for firmware installation.
Amarnath Valluri [Wed, 8 Feb 2017 09:06:47 +0000 (11:06 +0200)]
firmware: use ${nonarch_base_libdir} for firmware installation.

Replace hardcoded '/lib' in kernel firmware installation path with
${nonarch_base_libdir}.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agokernel: use ${nonarch_base_libdir} for kernel modules installation.
Amarnath Valluri [Wed, 4 Jan 2017 11:58:23 +0000 (13:58 +0200)]
kernel: use ${nonarch_base_libdir} for kernel modules installation.

Replace hardcoded '/lib' in kernel modules installation path with
${nonarch_base_libdir}, which is meant exactly for this.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agoutil-linux,shadow: Make 'nologin' alternative command
Amarnath Valluri [Tue, 24 Jan 2017 14:07:20 +0000 (16:07 +0200)]
util-linux,shadow: Make 'nologin' alternative command

Both shadow and util-linux packages provides 'nologin' binary in ${base_sbindir}
and ${sbindir} respectively, this leads to conflict when 'usrmerge' feature is
enabled, where ${sbindir} == ${base_sbindir}. Hance, handle this to alternative
system to resolve the conflict.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agoutil-linux: Make sure '${base_bindir}/reset' is part of util-linux-reset package.
Amarnath Valluri [Tue, 24 Jan 2017 12:50:25 +0000 (14:50 +0200)]
util-linux: Make sure '${base_bindir}/reset' is part of util-linux-reset package.

update-alternative.bbclass might rename the 'reset' binary when LINK_NAME ==
TARGET, This is true (${base_bindir} == ${bindir}) in 'usrmerge' distros.
Hence, suffix with * to properly package the renamed binary.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agosystemd: Do not add libnss_* to systemd package
Amarnath Valluri [Tue, 24 Jan 2017 10:08:46 +0000 (12:08 +0200)]
systemd: Do not add libnss_* to systemd package

libnss_* files should be part of corresponding sub-packages, the split happens
by do_package_split(). By adding ${libdir}/libnss_* to FILES_${PN}, those files
end up in the systemd package when ${libdir} == ${base_libdir}.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agoattr/acl: Do not create broken static library link when not needed
Amarnath Valluri [Mon, 23 Jan 2017 14:15:24 +0000 (16:15 +0200)]
attr/acl: Do not create broken static library link when not needed

Stop creating the static library archive(liba(ttr|cl).a) when --disable-static
configure option used.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agoutil-linux: Fix packaging with "usrmerge"
Jussi Kukkonen [Thu, 19 Jan 2017 07:52:44 +0000 (09:52 +0200)]
util-linux: Fix packaging with "usrmerge"

Make sure fsck.cramfs is packaged before fsck so the latter
does not steal the fsck.cramfs binary when building with usrmerge.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8 years agoglibc: Ensure ldconfig is packaged into glibc
Jussi Kukkonen [Thu, 19 Jan 2017 07:52:43 +0000 (09:52 +0200)]
glibc: Ensure ldconfig is packaged into glibc

If base_bindir=bindir, /usr/sbin/ldconfig gets packaged into glibc-utils instead
of glibc: Switch PACKAGES order to prevent this.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8 years agowic/partionedfs: Avoid reserving space for non-existing ext. partition
Kristian Amlie [Fri, 10 Mar 2017 13:16:27 +0000 (14:16 +0100)]
wic/partionedfs: Avoid reserving space for non-existing ext. partition

We don't need the gap that the extended partition occupies if we
already know that we have less than five partitions. Saves up to one
full alignment of space.

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouseradd-staticids.bbclass: Always fail/warn for missing IDs
Peter Kjellerstedt [Wed, 15 Mar 2017 00:27:14 +0000 (01:27 +0100)]
useradd-staticids.bbclass: Always fail/warn for missing IDs

Previously, with USERADD_ERROR_DYNAMIC set to error/warn, if a static
UID/GID was specified in the recipe, then no error/warning would be
issued even if no ID was specified in the passwd/groups files.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouseradd-staticids.bbclass: Support recipes specifying static IDs
Peter Kjellerstedt [Wed, 15 Mar 2017 00:27:13 +0000 (01:27 +0100)]
useradd-staticids.bbclass: Support recipes specifying static IDs

If this bbclass is used and a recipe specifies a static ID for a
user/group as part of the USERADD_PARAM_${PN} or GROUPADD_PARAM_${PN},
the build would fail with and error like this if there was no
corresponding ID in the passwd/group files specified via
USERADD_UID_TABLES/USERADD_GID_TABLES:

  ERROR: meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb:
  meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb inherits
  useradd but doesn't set USERADD_PARAM, GROUPADD_PARAM or
  GROUPMEMS_PARAM for package postgresql

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/npm: allow installation of devDependencies
Anders Darander [Mon, 13 Mar 2017 10:01:53 +0000 (11:01 +0100)]
classes/npm: allow installation of devDependencies

Often, eg when using angular2, there's a need to install also
the devDependencies.

The default is to keep the old behaviour, to not install
devDependencies.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodevtool/recipetill: npm install of devDependencies
Anders Darander [Mon, 13 Mar 2017 10:01:52 +0000 (11:01 +0100)]
devtool/recipetill: npm install of devDependencies

Web applications built using e.g. angular2, usually requires that the
packages in devDependencies are available.

Thus, add an option '--fetch-dev' to both devtool add and recipetool, to
add npm packages in devDependencies to DEPENDS.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobusybox: ignore the largefile distro feature ( always enable LFS )
Andre McCurdy [Fri, 17 Mar 2017 02:11:16 +0000 (19:11 -0700)]
busybox: ignore the largefile distro feature ( always enable LFS )

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agofeature-arm-thumb.inc: fix ARM_THUMB_SUFFIX for armv8
Andre McCurdy [Sat, 11 Mar 2017 01:31:19 +0000 (17:31 -0800)]
feature-arm-thumb.inc: fix ARM_THUMB_SUFFIX for armv8

The current definition for ARM_THUMB_SUFFIX doesn't consider armv8
and will therefore cause TUNE_PKGARCH to be set incorrectly for
machines which inherit arch-armv8 and don't include aarch64 in
TUNE_FEATURES (ie when building for 32bit ARMv8).

Also fix typo in comments and improve TUNEVALID[thumb] wording.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest/devtool: Add test to verify "modify virtual/kernel"
Jose Perez Carranza [Fri, 10 Mar 2017 13:58:09 +0000 (13:58 +0000)]
selftest/devtool: Add test to verify "modify virtual/kernel"

The purpose of this test case is to verify that
devtool modify works correctly when building
the kernel.

[YOCTO #10817]

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa: replace uses of bb.data.expand(VARNAME, d) with d.expand(VARNAME)
Joshua Lock [Fri, 17 Mar 2017 15:53:09 +0000 (15:53 +0000)]
meta: replace uses of bb.data.expand(VARNAME, d) with d.expand(VARNAME)

bb.data.expand(x, d) is deprecated API.

[YOCTO #10678]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: add sudo to HOSTTOOLS_NONFATAL
Ed Bartosh [Fri, 17 Mar 2017 13:18:35 +0000 (15:18 +0200)]
bitbake.conf: add sudo to HOSTTOOLS_NONFATAL

runqemu is using sudo to configure tap networking. Without sudo
in HOSTTOOLS_NONFATAL it may cause bitbake -c testimage to fail
with this error:
    runqemu - INFO - Setting up tap interface under sudo
    /bin/sh: sudo: command not found

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemurunner: configure guest networking
Ed Bartosh [Fri, 17 Mar 2017 13:18:34 +0000 (15:18 +0200)]
qemurunner: configure guest networking

Configured guest network interface through serial connection
when kernel is not run by qemu.

This should make it possible to test wic images with testimage.

[YOCTO #10833]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemurunner: get network params from runqemu output
Ed Bartosh [Fri, 17 Mar 2017 13:18:33 +0000 (15:18 +0200)]
qemurunner: get network params from runqemu output

Parsed runqemu output to get guest network configuration
if it's not present in runqemu command line.

[YOCTO #10833]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: output network configuration
Ed Bartosh [Fri, 17 Mar 2017 13:18:32 +0000 (15:18 +0200)]
runqemu: output network configuration

runqemu adds network configuration parameters to the kernel
command line to configure guest networking. This works only
for the images that run with external kernel using qemu -kernel
parameter. It doesn't work for the images that use bootloader
to boot kernel as -kernel parameter is not used and network
configuration is not possible to get.

Added host and guest ip addresses and netmask of tap link
to the runqemu output. This should allow external programs
that execute runqemu to get network configuration.

[YOCTO #10833]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage_types: increase filesystem size for BTRFS
Ed Bartosh [Fri, 17 Mar 2017 11:32:25 +0000 (13:32 +0200)]
image_types: increase filesystem size for BTRFS

16777216 bytes is a minimal possible filesystem size for BTRFS.
mkfs.btrfs fails to create a filesystem if rootfs size is too small.

Increased filesystem size to make it possible for mkfs.btrfs
to create an image for small rootfs directories,
e.g. for core-image-minimal.

[YOCTO #11163]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "file: update SRCREV for 5.30 to fix fetch fail on missing commit"
Richard Purdie [Tue, 21 Mar 2017 22:16:33 +0000 (22:16 +0000)]
Revert "file: update SRCREV for 5.30 to fix fetch fail on missing commit"

This reverts commit adb71e06768adadda7b69c3b5e81ca3ad67237f4.

Upstream restored the original hashes.

8 years agobinutils: disable gold on mingw
Ross Burton [Mon, 20 Mar 2017 12:20:30 +0000 (12:20 +0000)]
binutils: disable gold on mingw

oe-core 759eed (binutils: Enable threading when gold is enabled and is not
default linker) causes linking in mingw SDKs to fail:

.../work/i686-nativesdk-mingw32-pokysdk-mingw32/binutils-cross-canadian-x86-64/2.28-r0
/recipe-sysroot-native/usr/bin/i686-pokysdk-mingw32/../../libexec/i686-pokysdk-mingw32/gcc/i686-pokysdk-mingw32/6.3.0/ld:
cannot find -lpthread

Work around this by disabling gold entirely in mingw SDKs.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoneard: Fix parallel build issue
Jussi Kukkonen [Fri, 17 Mar 2017 13:14:33 +0000 (15:14 +0200)]
neard: Fix parallel build issue

This only started showing up now for some reason but it does seem like
a legitimate bug in Makefile.am.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonativesdk-packagegroup-sdk-host.bb: add cmake
brian avery [Wed, 15 Mar 2017 13:48:01 +0000 (06:48 -0700)]
nativesdk-packagegroup-sdk-host.bb: add cmake

The Eclipse plugin uses cmake from the SDK and currently has issues
because cmake is not installed as a host tool.  This patch adds cmake as
a host tool for the sdk/esdk.

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoccache: Disable CCACHE_HASHDIR by default
Mike Crowe [Wed, 15 Mar 2017 12:29:16 +0000 (12:29 +0000)]
ccache: Disable CCACHE_HASHDIR by default

As of ccache-3.3, ccache tries to ensure that the paths in the debug
information are always correct. It does this by including the current
directory in the hash if debug output is enabled. It includes support for
detecting remapping via a single -fdebug-prefix-map argument uses the
remapped directory in the hash instead.

The DEBUG_PREFIX_MAP in bitbake.conf remaps the source directory, target
sysroot and native sysroot separately which results in multiple
-fdebug-prefix-map arguments. Although ccache passes all these arguments
through to the compiler, it only enables the special behaviour described
above if the last one matches the current directory. (See
https://github.com/ccache/ccache/issues/163 )

Even if ccache did correctly honour each of the remapping arguments, the
hashes would still be different every time ${PV} or ${PR} change because
the default DEBUG_PREFIX_MAP contains maps to paths including them.

So it seems that for ccache to be of any use with this configuration,
CCACHE_NOHASHDIR needs to be set.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Helped-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agou-boot-fw-utils: reuse the same override HOSTCC patch as u-boot-mkimage
Denys Dmytriyenko [Tue, 14 Mar 2017 19:37:34 +0000 (15:37 -0400)]
u-boot-fw-utils: reuse the same override HOSTCC patch as u-boot-mkimage

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogettext: split recipe's description
Leonardo Sandoval [Tue, 14 Mar 2017 09:37:26 +0000 (09:37 +0000)]
gettext: split recipe's description

Split long recipe description into multiple lines.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouninative.bbclass: split long command
Leonardo Sandoval [Tue, 14 Mar 2017 09:37:25 +0000 (09:37 +0000)]
uninative.bbclass: split long command

Single long commands are difficult to read and maintain. Split it to make
it more human-friendly.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoautogen-native: config/libopts.m4
Robert Yang [Tue, 14 Mar 2017 08:45:43 +0000 (01:45 -0700)]
autogen-native: config/libopts.m4

It was out of date compared to config/libopts.def, so regenerate it via
"autogen config/libopts.def" command.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe/path.py: fix for "Argument list too long"
Robert Yang [Tue, 14 Mar 2017 08:45:45 +0000 (01:45 -0700)]
oe/path.py: fix for "Argument list too long"

Issue: LIN9-1648

Fixed when len(TMPDIR) = 410:
$ bitbake core-image-sato-sdk
[snip]
Subprocess output:
/bin/sh: /bin/cp: Argument list too long

ERROR: core-image-sato-sdk-1.0-r0 do_rootfs: Function failed: do_rootfs
[snip]

This is because "copyhardlinktree(src, dst)" does "cp -afl src/* dst",
while src/* is expanded to "src/file1 src/file2, src/file3..." which
causes the "Argument list too long", use ./* as src and change cwd in
subprocess.check_output() to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses: Fix "U-boot", use proper spelling of "U-Boot".
Robert P. J. Day [Mon, 13 Mar 2017 11:09:38 +0000 (07:09 -0400)]
classes: Fix "U-boot", use proper spelling of "U-Boot".

U-Boot people are amazingly pedantic in their insistence on proper
spelling of "U-Boot", so humour them.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoshadow: 'useradd' copies root's extended attributes
José Bollo [Mon, 13 Mar 2017 09:57:23 +0000 (10:57 +0100)]
shadow: 'useradd' copies root's extended attributes

The copy of extended attributes is interesting for
Smack systems because it allows to set the security
template of the user's home directories without
modifying the tools (useradd here). But the version
of useradd that copies the extended attributes doesn't
copy the extended attributes of the root. This can make
use of homes impossible! This patch corrects the issue
by copying the extended attributes of the root directory:
/home/user will get the extended attributes of /etc/skel.

The patch is submitted upstream (see
http://lists.alioth.debian.org/pipermail/pkg-shadow-commits/2017-March/003804.html)

The existing patch specific to open-embedded is updated:
  0001-useradd.c-create-parent-directories-when-necessary.patch

Also, attr are activated for native tools.
This is needed when users are created during image creation.

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogcc-target.inc: create symlinks for gcov and gcov-tool
Chen Qi [Mon, 13 Mar 2017 02:35:44 +0000 (10:35 +0800)]
gcc-target.inc: create symlinks for gcov and gcov-tool

Create symlinks for gcov and gcov-tool and that they can be used trivially
on target.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agofs-perms.txt: Two cleanup tweaks for consistency.
Robert P. J. Day [Sat, 11 Mar 2017 09:02:01 +0000 (04:02 -0500)]
fs-perms.txt: Two cleanup tweaks for consistency.

* Remove duplicate entry for /srv already defined earlier in file.
* Use "${localstatedir}" rather than "/var" for consistency.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopenssl: Disable make's -e flag without breaking ${AR}
Olof Johansson [Sat, 11 Mar 2017 05:28:52 +0000 (06:28 +0100)]
openssl: Disable make's -e flag without breaking ${AR}

The OpenSSL recipe tried to workaround the -e make flag (overriding
variables from the environment). And when the -e flag was dropped as
the global default, it was specifically added for OpenSSL. This is
unnecessary, as only the value of ${AR} seems to be affected, and that
can be handled correctly by OpenSSL's build system if we just let it.

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotoaster.bbclass: Correct parsing of installed-package-sizes.txt
Peter Kjellerstedt [Sat, 11 Mar 2017 05:26:54 +0000 (06:26 +0100)]
toaster.bbclass: Correct parsing of installed-package-sizes.txt

The recent change in buildhistory.bbclass to use a tab in
installed-package-sizes.txt between "KiB" and the package name caused
toaster_buildhistory_dump() to fail since it parses the file and
expected a space there.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogcc: move cc1 binary file to package cpp.
Ismo Puustinen [Fri, 10 Mar 2017 10:10:25 +0000 (12:10 +0200)]
gcc: move cc1 binary file to package cpp.

The file /usr/libexec/gcc/.../cc1 has been installed in package gcc
instead of package cpp, because FILES statements for both packages match
the cc1 binary. Move the file to package cpp and add cpp to RDEPENDS_gcc
to fix the dependency.

Having the cc1 binary in cpp fixes errors such as: "cpp: error trying to
exec 'cc1': execvp: No such file or directory".

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoprocps: fix ALTERNATIVE_PRIORITY to avoid conflict
Chen Qi [Fri, 10 Mar 2017 07:03:05 +0000 (15:03 +0800)]
procps: fix ALTERNATIVE_PRIORITY to avoid conflict

Previously, 'pidof' utility has two providers, sysvinit and procps, and
both have the same priority 200. Fix procps to lower the priority of its
'pidof' to 150 to avoid conflict.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobitbake.conf: Add few more binaries to HOSTTOOLS_NONFATAL
Martin Jansa [Thu, 16 Mar 2017 16:41:13 +0000 (17:41 +0100)]
bitbake.conf: Add few more binaries to HOSTTOOLS_NONFATAL

* add: join nl size yes zcat

join    - netcf               - http://errors.yoctoproject.org/Errors/Details/135208/
join    - fontforge           - http://errors.yoctoproject.org/Errors/Details/135209/
nl      - dash                - http://errors.yoctoproject.org/Errors/Details/135215/
nl      - klibc               - http://errors.yoctoproject.org/Errors/Details/135198/
size    - iptraf              - http://errors.yoctoproject.org/Errors/Details/135204/
yes     - libnet-ssleay-perl  - http://errors.yoctoproject.org/Errors/Details/135197/
zcat    - scsirastools        - http://errors.yoctoproject.org/Errors/Details/135205/

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo: Remove mips32r2 from mips
Khem Raj [Thu, 16 Mar 2017 21:42:39 +0000 (14:42 -0700)]
go: Remove mips32r2 from mips

mips32r1 is only one supported for mips32

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofile: update SRCREV for 5.30 to fix fetch fail on missing commit
Paul Gortmaker [Thu, 16 Mar 2017 18:42:14 +0000 (14:42 -0400)]
file: update SRCREV for 5.30 to fix fetch fail on missing commit

Machines that cloned a while ago will have the commit, but new
deployments won't because it seems the upstream changed/rebased
and the old commit ID has been garbage-collected away.  Hence
the fetch fails to check out the named commit ID.

Both the old (gone) commit, and the "new" commit show the same
dates and commit log and point at 5.30, so hopefully this is
the right thing to do.  A git diff of the two seems to only show
a blanket uprev of CVS tags and deletion of a couple autogen'd
files, and no real source changes.

Cc: Christos Zoulas <christos@zoulas.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-compare: add date to PV
Joe Slater [Thu, 16 Mar 2017 18:24:57 +0000 (11:24 -0700)]
build-compare: add date to PV

We want PV values to be easily ordered, so
use the latest entry in build-compare.changes which
will also match the date of SRCREV.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowebkitgtk: Fix build on aarch64
Khem Raj [Thu, 16 Mar 2017 18:22:43 +0000 (11:22 -0700)]
webkitgtk: Fix build on aarch64

Do not try to do runtime tests during cross compile
Fixes

| CMake Error at Source/cmake/OptionsCommon.cmake:73 (math):
|   math cannot parse the expression: "-1": syntax error, unexpected exp_MINUS,
|   expecting exp_OPENPARENT or exp_NUMBER (1)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomusl: Update to latest
Khem Raj [Tue, 14 Mar 2017 23:35:32 +0000 (16:35 -0700)]
musl: Update to latest

Rich Felker (11):
      fix ld-behavior-dependent crash in ppc64 ldso startup
      rework ldso handling of global symbol table for consistency
      reorder addend handling before symbol lookup in relocation code
      emulate lazy relocation as deferrable relocation
      fix free of uninitialized buffer pointer on error in regexec
      in static dl_iterate_phdr, fix use of possibly-uninitialized aux data
      fix possible fd leak, unrestored cancellation state on dns socket fail
      fix wide scanf's use of a compound literal past its lifetime
      fix one-byte overflow in legacy getpass function
      avoid loading of multiple libc versions via explicit pathname
      remove unused refcnt field for shared libraries

Szabolcs Nagy (1):
      treat STB_WEAK and STB_GNU_UNIQUE like STB_GLOBAL in find_sym

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxserver-xf86-config: Remove X server module preload
Khem Raj [Tue, 14 Mar 2017 23:35:33 +0000 (16:35 -0700)]
xserver-xf86-config: Remove X server module preload

This was a solution needed for musl but now musl has
got lazy loading.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobinutils: Enable threading when gold is enabled and is not default linker
Khem Raj [Tue, 14 Mar 2017 23:35:31 +0000 (16:35 -0700)]
binutils: Enable threading when gold is enabled and is not default linker

Currently we enable threaded linking feature of gold linker only
when its used as default ld. There is no need to restrict it when
its not default linker either. As long as gold is enabled, which
is the case here, we should be able to do threaded linking.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo: Fix packaging for target go
Khem Raj [Tue, 14 Mar 2017 23:35:30 +0000 (16:35 -0700)]
go: Fix packaging for target go

We need all packaging tasks when building
go for target

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomesa-gl: Drop MESA_CRYPTO from PACKAGECONFIG
Khem Raj [Tue, 14 Mar 2017 23:35:29 +0000 (16:35 -0700)]
mesa-gl: Drop MESA_CRYPTO from PACKAGECONFIG

with mesa 17 crypto packageconfig has been removed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomesa: Contain configure search for llvm
Khem Raj [Tue, 14 Mar 2017 23:35:28 +0000 (16:35 -0700)]
mesa: Contain configure search for llvm

Configure has an unbridled check for llvm and
when distro provided llvm is installed on build host it
will use that from /usr/bin to poke for llvm libs
and configs. This would result in a subtle errors
however do_qa_configure catches it as a host include/lib
contamination during configure checks

ERROR: mesa-gl-2_17.0.1-r0 do_configure: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.
Rerun configure task after fixing this.

This is correct because when configure detects build host provided
llvm then it add the include/lib paths to compiler cmdline which are
looking into /usr/include and /usr/lib

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_manager: fix "exlcude" vs. "exclude" typo
Paul Gortmaker [Thu, 16 Mar 2017 15:20:58 +0000 (11:20 -0400)]
package_manager: fix "exlcude" vs. "exclude" typo

Which results in:

 --------------------------------
      0557:        package_exclude = self.d.getVar('PACKAGE_EXCLUDE')
  *** 0558:        exclude_pkgs = (bad_recommendations.split() if bad_recommendations else []) + (package_exlcude.split() if package_exclude else [])
      0559:
      0560:        output = self._invoke_dnf((["--skip-broken"] if attempt_only else []) +
      0561:                         (["-x", ",".join(exclude_pkgs)] if len(exclude_pkgs) > 0 else []) +
      0562:                         (["--setopt=install_weak_deps=False"] if self.d.getVar('NO_RECOMMENDATIONS') == 1 else []) +
 Exception: NameError: name 'package_exlcude' is not defined
 ERROR: cube-builder-initramfs-1.0-r0 do_rootfs: Function failed: do_rootfs
 ---------------------------------

Cc: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokexec-tools: Add patches to enable format-security
Jussi Kukkonen [Thu, 16 Mar 2017 14:30:24 +0000 (16:30 +0200)]
kexec-tools: Add patches to enable format-security

Also remove the override from security_flags.inc

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocmake: Backport fix to enable -Wformat-security
Jussi Kukkonen [Thu, 16 Mar 2017 14:30:23 +0000 (16:30 +0200)]
cmake: Backport fix to enable -Wformat-security

Backport build fix that removes -Wformat-security for specific tests.
Enable "-Wformat-security" for cmake in security_flags.inc.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysklogd: use update-alternatives for more manpages
Paul Gortmaker [Thu, 16 Mar 2017 14:20:56 +0000 (10:20 -0400)]
sysklogd: use update-alternatives for more manpages

To fix:

   file /usr/share/man/man8/syslogd.8 conflicts between attempted installs
   of inetutils-doc-1.9.4-r0.core2_64 and sysklogd-doc-1.5.1-r0.core2_64

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonet-tools: use update-alternatives for more manpages
Paul Gortmaker [Thu, 16 Mar 2017 14:20:55 +0000 (10:20 -0400)]
net-tools: use update-alternatives for more manpages

To fix:

  file /usr/share/man/man1/dnsdomainname.1 conflicts between attempted installs
  of inetutils-doc-1.9.4-r0.core2_64 and net-tools-doc-1.60+26-r0.core2_64

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutil-linux: use update-alternatives for more manpages
Paul Gortmaker [Thu, 16 Mar 2017 14:20:54 +0000 (10:20 -0400)]
util-linux: use update-alternatives for more manpages

To fix:

   file /usr/share/man/man1/eject.1 conflicts between attempted installs
   of util-linux-doc-2.29.1-r0.core2_64 and eject-doc-2.1.5-r1.core2_64

and

   file /usr/share/man/man1/logger.1 conflicts between attempted installs
   of util-linux-doc-2.29.1-r0.core2_64 and inetutils-doc-1.9.4-r0.core2_64

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowhich: fix it so the manpage will respect alternatives
Paul Gortmaker [Thu, 16 Mar 2017 14:20:53 +0000 (10:20 -0400)]
which: fix it so the manpage will respect alternatives

To fix:

  file /usr/share/man/man1/which.1 conflicts between attempted installs
  of debianutils-doc-4.8.1-r0.core2_64 and which-doc-2.21-r3.core2_64

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogdb: don't bundle bfd.info -- leave that to binutils.
Paul Gortmaker [Thu, 16 Mar 2017 14:20:52 +0000 (10:20 -0400)]
gdb: don't bundle bfd.info -- leave that to binutils.

We see:

  file /usr/share/info/bfd.info conflicts between attempted installs
  of gdb-doc-7.12.1-r0.core2_64 and binutils-doc-2.28-r0.core2_64

You can't really have gdb and not binutils, so there is no need
to do alternatives here ; just clobber the one from gdb and let
the binutils one be the default.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodnf: add /usr/bin/dnf symlink that points to /usr/bin/dnf-2
Alexander Kanavin [Thu, 16 Mar 2017 13:19:07 +0000 (15:19 +0200)]
dnf: add /usr/bin/dnf symlink that points to /usr/bin/dnf-2

All documentation refers to dnf binary as 'dnf' yet make install
does not create one - it's done by Fedora's spec file when building
the rpm. Let's replicate this behavior.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/signing.py: verify that images can be created from signed packages
Alexander Kanavin [Thu, 16 Mar 2017 13:19:06 +0000 (15:19 +0200)]
selftest/signing.py: verify that images can be created from signed packages

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/package_manager: import rpm signing key to rpmdb
Markus Lehtonen [Thu, 16 Mar 2017 13:19:05 +0000 (15:19 +0200)]
lib/oe/package_manager: import rpm signing key to rpmdb

Import the gpg key used in rpm signing into rpmdb. This makes it
possible again to create images when rpm signing is enabled.

Also, instruct dnf to enforce signature check if rpm signing is enabled.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorpm: add support for remote package feeds via PACKAGE_FEED_URIS variable
Alexander Kanavin [Thu, 16 Mar 2017 13:19:04 +0000 (15:19 +0200)]
rpm: add support for remote package feeds via PACKAGE_FEED_URIS variable

I've used a previous patch (which was never merged) by
Humberto Ibarra <humberto.ibarra.lopez@intel.com> as a model
for how to do runtime testing of this feature (e.g. we need to boot
an image, run dnf on it, and check that it is indeed able to
access the remote repo over http). Here's his original commit message:

=====
Testing that feeds specified with PACKAGE_FEED_URIS var are set
correctly has two parts. First a build with this var set is required,
and then smart update needs to be issued in the running taget.

The previous is not a common selftest practice because this is a
simple test, but requires building and running a specific image,
which takes a lot of time. testimage is not a good fit either,
since the images tested there do not have the PACKAGE_FEED_URIS
var set.

For this test, the runtime-test module is being used, which is a
selftest module but runs a testimage command. The var and test
environment were set in runtime-perf.py and the actual test is
done in a new testcase added to meta-selftest layer.
=====

[YOCTO #10872]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage.bbclass: Add SKIP_FILEDEPS to list of package specific variables
Peter Kjellerstedt [Thu, 16 Mar 2017 11:43:46 +0000 (12:43 +0100)]
package.bbclass: Add SKIP_FILEDEPS to list of package specific variables

Changes to SKIP_FILEDEPS should change the sstate checksum. To make
that happen, it needs to be listed in the list of package specific
variables, therefore add it.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: only boot ramfs when specified
Robert Yang [Thu, 16 Mar 2017 10:13:26 +0000 (03:13 -0700)]
runqemu: only boot ramfs when specified

This can fix a problem:
IMAGE_FSTYPES += "iso"
$ bitbake core-image-minimal
$ runqemu qemux86

It may boot core-image-minimal-initramfs rather than core-image-minimal, this
is not what we want usually. This patch makes it avoid booting ramfs when there
are other choices, or when it is specified, for example, "runqemu qemux86 ramfs"

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: add -h and --help
Robert Yang [Thu, 16 Mar 2017 10:13:25 +0000 (03:13 -0700)]
runqemu: add -h and --help

Fixed:
$ runqemu -h
runqemu - INFO - Assuming MACHINE = -h
runqemu - INFO - Running MACHINE=-h bitbake -e...
[snip]
Exception: FSTYPE is NULL!

[YOCTO #10941]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: improve when no machine specified
Robert Yang [Thu, 16 Mar 2017 10:13:24 +0000 (03:13 -0700)]
runqemu: improve when no machine specified

Fixed:
$ runqemu core-image-minimal
[snip]
Exception: FSTYPE is NULL!
[snip]

Get DEPLOY_DIR_IMAGE from "bitbake -e" to make it work.

[YOCTO #10471]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackagegroup-core-lsb: avoid rebuilding when changing layer config
Paul Eggleton [Thu, 16 Mar 2017 09:09:43 +0000 (22:09 +1300)]
packagegroup-core-lsb: avoid rebuilding when changing layer config

It's regrettable that code in here is referring to BBFILE_COLLECTIONS,
but it is, and the result is that this packagegroup will rebuild simply
by adding or removing a layer which may be completely unrelated to
whether you've got meta-qt4 or not. Add BBFILE_COLLECTIONS to
vardepsexclude for the function to avoid this. (This was flagged up when
testing the new yocto-compat-layer script - it understandably but
undesirably reports it as a change caused by a layer).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/base: reformat HOSTTOOLS error
Paul Eggleton [Thu, 16 Mar 2017 09:09:42 +0000 (22:09 +1300)]
classes/base: reformat HOSTTOOLS error

Adjust the message slightly to make it clearer, in particular mentioning
the HOSTTOOLS variable.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>