]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agokbd: remove uclibc-stdarg.patch
Maxin B. John [Tue, 12 Apr 2016 11:05:12 +0000 (14:05 +0300)]
kbd: remove uclibc-stdarg.patch

Remove uclibc-stdarg.patch as it is already available in kbd 2.0.3
release.

commit id: b8ef7897867cb1ba1b9f87d004674133c291b1b0
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Mon Jan 6 10:27:56 2014 -0500
  libkeymap: include stdarg.h where used

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage.bbclass: use max() instead of indexing booleans
Ross Burton [Tue, 12 Apr 2016 10:44:25 +0000 (11:44 +0100)]
image.bbclass: use max() instead of indexing booleans

There's some code dotted around OE that uses (a, b)[foo < bar] instead of the
more idiomatic "test and a or b".  Or in this case, just max().

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto-tiny: fix KBRANCH
Robert Yang [Tue, 12 Apr 2016 06:36:43 +0000 (23:36 -0700)]
linux-yocto-tiny: fix KBRANCH

Fixed:
WARNING: linux-yocto-tiny-4.4.3+gitAUTOINC+770996a263_73481a3abd-r0 do_patch: After meta data application, the kernel tree branch is standard/tiny/common-pc. The
WARNING: linux-yocto-tiny-4.4.3+gitAUTOINC+770996a263_73481a3abd-r0 do_patch: SRC_URI specified branch standard/tiny/base. The branch will be forced to standard/tiny/base,
WARNING: linux-yocto-tiny-4.4.3+gitAUTOINC+770996a263_73481a3abd-r0 do_patch: but this means the board meta data (.scc files) do not match the SRC_URI specification.
WARNING: linux-yocto-tiny-4.4.3+gitAUTOINC+770996a263_73481a3abd-r0 do_patch: The meta data and branch standard/tiny/base should be inspected to ensure the proper
WARNING: linux-yocto-tiny-4.4.3+gitAUTOINC+770996a263_73481a3abd-r0 do_patch: kernel is being built.

Use standard/tiny/common-pc which is pointed by the .scc to fix problem.
Btw, standard/tiny/base and standard/tiny/common-pc points to the same
commit id.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosudo: fix pam config on systemd systems
Dan McGregor [Tue, 12 Apr 2016 18:25:31 +0000 (12:25 -0600)]
sudo: fix pam config on systemd systems

Pam_keyinit revoke causes issues on systemd systems. Make its use
optional. This brings it in line with Fedora 23 and Centos 7.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosysvinit: make lastb.1 an alternative
Dan McGregor [Tue, 12 Apr 2016 18:25:30 +0000 (12:25 -0600)]
sysvinit: make lastb.1 an alternative

util-linux has an alternative for it. Add it to sysvinit too.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/lsb: sanitise the distro identifier
Ross Burton [Tue, 12 Apr 2016 17:04:22 +0000 (18:04 +0100)]
lib/oe/lsb: sanitise the distro identifier

The distribution identifier is often used to create filenames, so it needs to be
safe to use as a filename.  Whilst most distributions have e.g. Fedora or Debian
as their name, it is possible that the name contains special characters.

To ensure this doesn't cause a problem strip out any non-alphanumerics from the
distribution name before returning it.

[ YOCTO #9443 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackage.bbclass: handle links in sorted order
Bill Randle [Tue, 12 Apr 2016 15:22:21 +0000 (08:22 -0700)]
package.bbclass: handle links in sorted order

When processing links, the directories are processed in unsorted order
which can result in cases like /var/lock -> /run/lock handled before
/var/run -> /run throwing an error for /var/run because /run already exists.
Change the link processing to ensure links are processed in sorted order of
the destination.

[YOCTO #9430]

Signed-off-by: Bill Randle <william.c.randle@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosanity: allow sftp and ssh mirrors
Ross Burton [Tue, 12 Apr 2016 16:32:49 +0000 (17:32 +0100)]
sanity: allow sftp and ssh mirrors

URLs in MIRRORS and PREMIRRORS are vetted against a hard-coded list of protocols
which were missing sftp: and ssh:, so add them.

[ YOCTO #9444 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoaster.bbclass: improve package information collection
Joshua Lock [Tue, 12 Apr 2016 14:40:44 +0000 (15:40 +0100)]
toaster.bbclass: improve package information collection

The PACKAGES variable doesn't include all packages potentially
generated by a recipe, not least of all because it doesn't include
dynamic packages created via do_split_packages() or similar.

Instead of trying to guess which packages were generated, walk
${PKGDESTWORK}/runtime to find all package information that was
written to disk. This allows us to read all information for the
complete list of packages generated by the recipe.

For example before this patch we get SinglePackageInfo events for
9 packages from ncurses. With the patch applied we get 20 events
for all of the packages created during an ncurses build.

As a bonus we also switch to using the same postfuncs for both
do_packagedata and do_packagedata_setscene as they each result
in a PKGDESTWORK with the relevant directories and files
created.

[YOCTO #9115]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorsync: remove upstream's rebuild logic
Ross Burton [Tue, 12 Apr 2016 14:51:54 +0000 (15:51 +0100)]
rsync: remove upstream's rebuild logic

Upstream some well intended but broken logic to reimplement the rebuild
functionality of automake. However this isn't out-of-tree safe and quite basic,
which means if it ever does execute (say, configure.ac or aclocal.m4 is touched)
then the build fails.

As we delete ${B} and re-run autoreconf on every build this is redundant, so
just delete it all.

[ YOCTO #9445 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorsync: pass cached configure values through the right variable
Ross Burton [Tue, 12 Apr 2016 14:51:53 +0000 (15:51 +0100)]
rsync: pass cached configure values through the right variable

Passing these through CACHED_CONFIGUREVARS doesn't change the build, but makes
the recipe clearer.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorsync: don't install acinclude.m4
Ross Burton [Tue, 12 Apr 2016 14:51:52 +0000 (15:51 +0100)]
rsync: don't install acinclude.m4

This acinclude.m4 was actually a stale copy of upstream's generated aclocal.m4.
This generates correctly now, so there isn't a need to install this by hand
anymore.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoRevert "oeqa/selftest/wic: add test case for sparse images"
Ross Burton [Tue, 12 Apr 2016 14:51:51 +0000 (15:51 +0100)]
Revert "oeqa/selftest/wic: add test case for sparse images"

This reverts commit 43150ab7ec63d804e8a998ecee9d00295b8b2bc7.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoRevert "wic/utils/partitionedfs.py: assemble .wic images as sparse files"
Ross Burton [Tue, 12 Apr 2016 14:51:50 +0000 (15:51 +0100)]
Revert "wic/utils/partitionedfs.py: assemble .wic images as sparse files"

It turns out that dd's conv=sparse doesn't look at the file extents, but simply
checks if a "block" is all zero.  If the block of zero was meaningful it gets
lost and if the image is subsequently written to media using a sparse-aware
writer then the block of zeros won't be written at all.

This reverts commit 5fd592fbae2e046bcb8c3a6c3ef4993fe0400676.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarchiver: Ensure sstate-inputdir directory is created
Richard Purdie [Tue, 12 Apr 2016 14:44:08 +0000 (15:44 +0100)]
archiver: Ensure sstate-inputdir directory is created

Without this, do_archive_sources will fail for the gcc tasks where there is
common source and the other tasks are not added as dependencies. The failure
happens when trying to restore these tasks from sstate.

To fix this ensure the sources directory is created as expected by the
sstate code.

[YOCTO #9433]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto-tiny: fix COMPATIBLE_MACHINE
Robert Yang [Mon, 11 Apr 2016 08:53:21 +0000 (01:53 -0700)]
linux-yocto-tiny: fix COMPATIBLE_MACHINE

It only works with qemux86, but mismatched qemux86-64 which caused
runtime errros. (kernel is bigger, can't boot, no output, and so on).

Add '$' in the end to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglib-2.0: Put glib-compile-schemas back in -utils
Jussi Kukkonen [Mon, 11 Apr 2016 11:07:52 +0000 (14:07 +0300)]
glib-2.0: Put glib-compile-schemas back in -utils

Commit cc97d576 moved a bunch of development tools to the -dev
package. glib-compile-schemas is actually used in postinst by
gsettings.bbclass so it needs to be available on target at package
install time: Move the tool back to glib-2.0-utils which
gsettings.bbclass depends on.

Fixes [YOCTO #9431].

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runexported.py: Fix exported test
Mariano Lopez [Mon, 11 Apr 2016 06:55:35 +0000 (06:55 +0000)]
oeqa/runexported.py: Fix exported test

With the changes introduced to test the eSDK
the runexported test failed during the execution.

This change fix runexported test in the least invasive
way, because of the release cycle.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/sstatetests: split 32/64 build host from no-op action tests
Ross Burton [Mon, 11 Apr 2016 17:33:16 +0000 (18:33 +0100)]
oeqa/selftest/sstatetests: split 32/64 build host from no-op action tests

As more variables were being added it made sense to split this test into two:
one quick test that verifies that the host being 32-bit or 64-bit doesn't impact
the hashes, and another which compares stamps for two builds with several
variables changed and classes inherited.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoutil-linux: take ownership of hwclock if installed
Ross Burton [Mon, 11 Apr 2016 20:43:34 +0000 (21:43 +0100)]
util-linux: take ownership of hwclock if installed

Previously util-linux had a lower priority for hwclock than busybox but the
reasoning was lost in the mists of time, with just this enigmatic comment
remaining:

    There seems to be problem, atleast on nslu2, with these, until they are
    fixed the busybox ones have higher priority.

Chasing the comment back through history it first appeared in the following
oe-classic commit:

    commit 5e01906b8433bc6a8c03be2e31758589641124c9
    Author: David Karlstrom <daka@thg.se>
    Date:   Sat Jul 23 13:36:38 2005 +0000

        Updated to use update-alternatives and fix some FHS bugs

Which doesn't really give a lot away.

Let's assume that in the past eleven years both hwclock and hardware have
improved, and restore util-linux's hwclock to it's intended priority.

[ YOCTO #9103 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa: remove redundant ac_cv_sizeof_off_t assignments
Ross Burton [Mon, 11 Apr 2016 19:49:23 +0000 (20:49 +0100)]
meta: remove redundant ac_cv_sizeof_off_t assignments

ac_cv_sizeof_off_t was previously in the site cache files, which was breaking
large file support and required a workaround in each recipe that actually wanted
to use large files.

Now that the entry has been removed from the site cache, we can remove the
workarounds.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa/site: remove sizeof_off_t
Ross Burton [Mon, 11 Apr 2016 19:49:22 +0000 (20:49 +0100)]
meta/site: remove sizeof_off_t

The size of off_t depends on whether large file support is enabled through
preprocessor flags, so we can't cache this.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarchiver: Fix ASSUME_PROVIDED issues
Richard Purdie [Sat, 9 Apr 2016 22:16:47 +0000 (23:16 +0100)]
archiver: Fix ASSUME_PROVIDED issues

Currently the dependencies injected by this class for recipes in ASSUME_PROVIDED
e.g. tar-native or chrpath-native are ignored. We need to use their "replacement"
names, e.g. tar-replacement-native.

This avoids broken archives and sstate failures with these recipes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodistrodata: Exclude DATETIME reference from sstate checksum
Richard Purdie [Sat, 9 Apr 2016 22:16:09 +0000 (23:16 +0100)]
distrodata: Exclude DATETIME reference from sstate checksum

Otherwise the task hash changes between server and worker context
leading to changing task checksums.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Support for VirtualBox guest additions
Juro Bystricky [Sat, 9 Apr 2016 20:11:51 +0000 (13:11 -0700)]
build-appliance-image: Support for VirtualBox guest additions

Add support for VirtualBox guest additions.
The additions are built inside the Build Appliance VM.
For this to be possible, the environment for out-of-tree kernel module builds
must be present and set up properly.
A README file with detailed steps on how to build the guest additions is placed
in the home directory of the user "builder" as well.
The main purpose of the guest additions is to allow sharing folders between
the host and Build Appliance VM.

[YOCTO #8073]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolocal.conf.sample: Make it possible to override EXTRA_IMAGE_FEATURES
Peter Kjellerstedt [Wed, 6 Apr 2016 10:56:01 +0000 (12:56 +0200)]
local.conf.sample: Make it possible to override EXTRA_IMAGE_FEATURES

It should be possible to override EXTRA_IMAGE_FEATURES in auto.conf,
which is read before local.conf.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/wic: add test case for sparse images
Joshua Lock [Fri, 8 Apr 2016 09:14:19 +0000 (10:14 +0100)]
oeqa/selftest/wic: add test case for sparse images

Add a testcase to build a directdisk image and check that the
used disk size is less than the apparent size, as wic now
assembles images as sparse files.

Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic/utils/partitionedfs.py: assemble .wic images as sparse files
Joshua Lock [Fri, 8 Apr 2016 09:14:18 +0000 (10:14 +0100)]
wic/utils/partitionedfs.py: assemble .wic images as sparse files

The individual partitions created by wic are sparse but without
this change the assembled image is written as one (potentially
very) large file.

Preserve sparseness in the assembled image by passing the sparse
conversion symbol.

[YOCTO #9099]

Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage-vm.bbclass/image_types.bbclass: IMAGE_NAME -> IMAGE_LINK_NAME
Robert Yang [Thu, 7 Apr 2016 13:33:27 +0000 (06:33 -0700)]
image-vm.bbclass/image_types.bbclass: IMAGE_NAME -> IMAGE_LINK_NAME

If we create hdddirect in the first time, and run bitbake to create
vmimg in the second time, then the previouse created
${IMAGE_LINK_NAME}.hdddirect may can not be found since it contains the
data string which are different. Use IMAGE_LINK_NAME to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage_types.bbclass: fix elf
Robert Yang [Thu, 7 Apr 2016 13:27:37 +0000 (06:27 -0700)]
image_types.bbclass: fix elf

Fixed:
| DEBUG: Executing shell function do_image_elf
| Cannot open `/path/to/tmp/sysroots/qemux86-64/usr/src/kernel/bzImage': (null)
| WARNING: exit code 1 from a shell command.

The bzImage is in DEPLOY_DIR_IMAGE

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage_types.bbclass: set nodesize for btrfs
Robert Yang [Fri, 8 Apr 2016 07:15:19 +0000 (00:15 -0700)]
image_types.bbclass: set nodesize for btrfs

The default value is 16K which is too big to create image for
core-image-minimal:
rootfs.btrfs is too small to make a usable filesystem
Minimum size for each btrfs device is 41943040.

Use 4K as ext2/3/4 to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibxml2: fix AM_PATH_XML2
Robert Yang [Fri, 8 Apr 2016 10:14:21 +0000 (03:14 -0700)]
libxml2: fix AM_PATH_XML2

The code: suppose $1 == 2.7:
verdep=ifelse([$1], [], [], [>= $1])
results in:
verdep=>= 2.7
This is wrong in shell:
bash: 2.7: command not found

Use quotation marks to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouseradd_base.bbclass: prevent variable expansion in $opts
Mark Asselstine [Fri, 8 Apr 2016 21:46:27 +0000 (17:46 -0400)]
useradd_base.bbclass: prevent variable expansion in $opts

Many user/group operations will involve hashes which will include '$'
followed by a number or even possibly an env. variable name. Passing
$opts to flock requires that we take additional precautions to prevent
the unexpected expansion of these instances.

This was found by an image which used usermod operations to set the
password hash for root. The image could not be logged-in to and
examining /etc/shadow clearly showed that $0 and other $* variables
had been expanded unexpectedly. This change returnes the behavior to
what existed prior to commit 2ebf697b46c42cee8bfa6d2e6087397f8cce385c
[useradd_base.bbclass: replace retry logic with flock].

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoextrausers.bbclass: drop retry count for perform_user/group* calls
Mark Asselstine [Fri, 8 Apr 2016 21:46:26 +0000 (17:46 -0400)]
extrausers.bbclass: drop retry count for perform_user/group* calls

Commit 2ebf697b46c42cee8bfa6d2e6087397f8cce385c [useradd_base.bbclass:
replace retry logic with flock] dropped the 3rd (retry) parameter for
these functions. These are simply being ignored now but we should
remove the retry count to avoid confusion.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-perf-test: add eSDK installed size to metrics
Ross Burton [Wed, 6 Apr 2016 15:59:03 +0000 (16:59 +0100)]
build-perf-test: add eSDK installed size to metrics

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm: brace expansion is a bashism
Ross Burton [Wed, 6 Apr 2016 12:20:29 +0000 (13:20 +0100)]
rpm: brace expansion is a bashism

The constuct rm *.{a,la} is a bashism and as tasks are run under /bin/sh this
may not work as expected.  Expand the {a,la} to two separate calls, and remove
the architecture-specific macro deletion as they are not installed in the first
place anymore.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssl.inc: minor packaging cleanup
Andre McCurdy [Thu, 7 Apr 2016 00:42:05 +0000 (17:42 -0700)]
openssl.inc: minor packaging cleanup

libcrypto.so was explicitly added to FILES_${PN}-dev as part of moving
libcrypto from libdir -> base_libdir to support dhclient [1].

However, the line has been unnecessary since ${base_libdir}/lib*.so
files started to be included in FILES_${PN}-dev by default [2] (and
it's still unnecessary now, after moving libcrypto from back to libdir
to support ntp [3]).

 [1] http://git.openembedded.org/openembedded-core/commit/?id=01ea85f7f6c53c66c76d6f832518b28bf06ec072
 [2] http://git.openembedded.org/openembedded-core/commit/?id=66c36bcb7d9368718453265e58bd5e3c854c786a
 [3] http://git.openembedded.org/openembedded-core/commit/?id=0be2ab32f690a2fcba0e821abe11460958bbc6dc

Also define FILES_libssl using SOLIBS instead of a hardcoded pattern.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd-systemctl-native: fix unit detection
Ross Burton [Wed, 6 Apr 2016 19:45:57 +0000 (20:45 +0100)]
systemd-systemctl-native: fix unit detection

The regexs were too strict and didn't allow for trailing whitespace.

[ YOCTO #9337 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoapr-util: fix path in rules.mk for nativesdk
Robert Yang [Thu, 7 Apr 2016 07:34:32 +0000 (00:34 -0700)]
apr-util: fix path in rules.mk for nativesdk

Fixed when build nativesdk-apr-util:
| gawk: fatal: can't open source file `/opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/build-1/make_exports.awk' for reading (No such file or directory)

The ${S} should be ${B}.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobdwgc: installed-vs-shipped for nativesdk
Robert Yang [Thu, 7 Apr 2016 07:34:31 +0000 (00:34 -0700)]
bdwgc: installed-vs-shipped for nativesdk

Fixed:
ERROR: nativesdk-bdwgc-7.4.2-r0 do_package: QA Issue: nativesdk-bdwgc: Files/directories were installed but not shipped in any package:
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/share
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/gc
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/gc/porting.html
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/gc/gcinterface.html
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/gc/gcdescr.html
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/gc/README.solaris2

[snip]

This was caused by hardcode of datadir.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibsolv: fix installed-vs-shipped for nativesdk
Robert Yang [Thu, 7 Apr 2016 07:34:30 +0000 (00:34 -0700)]
libsolv: fix installed-vs-shipped for nativesdk

Fixed:
ERROR: nativesdk-libsolv-0.6.19-r0 do_package: QA Issue: nativesdk-libsolv: Files/directories were installed but not shipped in any package:
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/man
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/man/man3
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/man/man1
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/man/man3/libsolv-constantids.3
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/man/man3/libsolv.3
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/man/man3/libsolv-history.3
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/man/man3/libsolv-pool.3
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/man/man3/libsolv-bindings.3
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/man/man1/mergesolv.1
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/man/man1/testsolv.1
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/man/man1/installcheck.1
  /opt/poky/2.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/man/man1/dumpsolv.1

It checks ${CMAKE_INSTALL_PREFIX}/share/man when configure, but it may
not exist when crosscompile, for example, when CMAKE_INSTALL_PREFIX="/",
it is OK, but when CMAKE_INSTALL_PREFIX="/some/path/else", then it
doesn't exist, and the man dir would be set to "/usr/man" which is
incorrect.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodesktop-file-utils-native: disable emacs
Robert Yang [Thu, 7 Apr 2016 09:54:24 +0000 (02:54 -0700)]
desktop-file-utils-native: disable emacs

Fixed when len(TMPDIR) == 410:
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0    [vsyscall]
| /bin/bash: line 12:   903 Aborted    emacs --batch $am__subdir_includes -L

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoaster: add DL_DIR and SSTATE_DIR to oe toasterconf
Ed Bartosh [Wed, 6 Apr 2016 17:00:42 +0000 (18:00 +0100)]
toaster: add DL_DIR and SSTATE_DIR to oe toasterconf

Add the DL_DIR and SSTATE_DIR to the toasterconf with defaults set

We now support per project sharing of the DL_DIR and SSTATE_DIR
in toaster.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoaster.bbclass: strip task from the target
Ed Bartosh [Thu, 7 Apr 2016 13:11:46 +0000 (14:11 +0100)]
toaster.bbclass: strip task from the target

Current code in toaster_buildhistory_dump assumes that bitbake
target doesn't contain task name. It uses target as a part of
path to the files with data that it analizes. It fails to find
files if target contains task name. Stripping task from the
target should solve this.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agox11-common: Add PACKAGECONFIG for screen blanking
Jussi Kukkonen [Thu, 7 Apr 2016 11:49:44 +0000 (14:49 +0300)]
x11-common: Add PACKAGECONFIG for screen blanking

when "blank" is not in PACKAGECONFIG, explicitly set dpms and
screensaver off. The intention here is to make it easier to
create builds that should not blank the screen (just remove
"blank" from x11-common PACKAGECONFIG).

Also remove a unneeded "find -exec rm" from do_install.

Partly fixes [YOCTO #7278].

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopkg-utils: re-do find/ls code to not fail on filenames with spaces
Denys Dmytriyenko [Fri, 8 Apr 2016 04:57:08 +0000 (00:57 -0400)]
opkg-utils: re-do find/ls code to not fail on filenames with spaces

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage-live.bbclass: fix iso + efi only
Robert Yang [Fri, 8 Apr 2016 02:20:25 +0000 (19:20 -0700)]
image-live.bbclass: fix iso + efi only

When the user only builds iso + efi only, the syslinux-native which
provides isohybrid is required to build iso, so add syslinux-native to
DEPENDS.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoAdd missing runtime dependency to python-pygobject
Chris Trobridge [Thu, 7 Apr 2016 20:18:12 +0000 (21:18 +0100)]
Add missing runtime dependency to python-pygobject

Signed-off-by: Chris Trobridge <christrobridge@hotmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: Create unlocked-sigs.inc containing items in the workspace
Randy Witt [Thu, 7 Apr 2016 23:34:53 +0000 (16:34 -0700)]
devtool: Create unlocked-sigs.inc containing items in the workspace

When a recipe is added to the workspace, the signatures for the tasks
will change. This means that bitbake must be told to allow the
signatures to be different if they are in locked-sigs.inc.

This is done by creating an unlocked-sigs.inc file which contains all
the recipes in the workspace each time devtool reads the workspace.

So not only will necessary things get added, previously added items will
be removed by virtue of them no longer being in the workspace.

This also makes sure that the extensible sdk picks up unlocked-sigs.inc
as part of the configuration.

[YOCTO #9195]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstatesig.py: Add a method to "unlock" recipes
Randy Witt [Thu, 7 Apr 2016 23:34:52 +0000 (16:34 -0700)]
sstatesig.py: Add a method to "unlock" recipes

In order to support workflows using devtool where a user might want to
modify tasks that exist in locked-sigs.inc, there must be a way to unlock
recipes.

This patch adds that support by allowing the user to add recipes to
SIGGEN_UNLOCKED_RECIPES. Recipes that exist in that variable will have
all their tasks unlocked, as well as any tasks that depend on that
recipe.

For example if foo->bar->baz, if you unlock baz, it will also unlock bar
so that foo can be rebuilt without explicitly specifying bar as being
unlocked.

[YOCTO #9195]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_ext.bbclass: Enable locked sigs errors
Randy Witt [Thu, 7 Apr 2016 23:34:51 +0000 (16:34 -0700)]
populate_sdk_ext.bbclass: Enable locked sigs errors

With the extensible sdk we want there to be an error if a task tries to
run without signatures that match locked-sigs.inc. This patch enables
that error.

[YOCTO #9195]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstatesig.py: Improve the SIGGEN_LOCKEDSIGS_TASKSIG_CHECK message
Randy Witt [Thu, 7 Apr 2016 23:34:50 +0000 (16:34 -0700)]
sstatesig.py: Improve the SIGGEN_LOCKEDSIGS_TASKSIG_CHECK message

The previous message when signatures didn't match between the metadata
and the locked signatures file, the message output was a bit confusing.

Now the message should be of the form:

The zlib-native:do_install sig is computed to be
53531910a2a7848432da89def942a91a, but the sig is locked to
d25ba9035f7ccb308e51bbe1066e8d27 in SIGGEN_LOCKEDSIGS_t-x86-64

which will hopefully be more useful in understanding the problem.

[YOCTO #9195]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstatesig.py: Split single locked sigs check into multiple checks
Randy Witt [Thu, 7 Apr 2016 23:34:49 +0000 (16:34 -0700)]
sstatesig.py: Split single locked sigs check into multiple checks

Add the SIGGEN_LOCKEDSIGS_TASKSIG_CHECK and
SIGGEN_LOCKEDSIGS_SSTATE_EXISTS_CHECK variables to replace
SIGGEN_LOCKEDSIGS_CHECK_LEVEL.

SIGGEN_LOCKEDSIGS_TASKSIG_CHECK will no control whether there is a
warning or error if a task's hash in the locked signature file doesn't match
the computed hash from the current metadata.

SIGGEN_LOCKEDSIGS_SSTATE_EXISTS_CHECK will control whther there is a
warning or error if a task that supports sstate is in the locked
signature file, but no sstate exists for the task.

Previously you could only have warning/errors for both controlled by
SIGGEN_LOCKEDSIGS_CHECK_LEVEL. This was an issue in the extensible sdk,
because we know sstate won't exist for certain items in the reverse
dependencies list for tasks. However, we still want to error if task
signatures don't match.

[YOCTO #9195]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolocal.conf.sample: remove reference to adt
Yi Zhao [Fri, 8 Apr 2016 06:07:53 +0000 (14:07 +0800)]
local.conf.sample: remove reference to adt

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoasterconf.json: Set default distro to nodistro
Khem Raj [Sat, 24 Oct 2015 23:39:38 +0000 (16:39 -0700)]
toasterconf.json: Set default distro to nodistro

This makes it self-sufficient with OE-Core
Generate ext4 instead of ext3, most of Qemu
targets in oe-core now use ext4

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Wed, 6 Apr 2016 22:54:57 +0000 (23:54 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Wed, 6 Apr 2016 22:34:09 +0000 (23:34 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Wed, 6 Apr 2016 22:13:25 +0000 (23:13 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage_types: use compress framework to produce checksums for images
Alexander D. Kanevskiy [Thu, 24 Mar 2016 20:16:48 +0000 (22:16 +0200)]
image_types: use compress framework to produce checksums for images

Existing compress framework for producing various compressed versions
of images is powerfull enough to be extended for other uses, e.g. to
convert types of images.

It is possible to use it also to produce image checksums at the time
of image generation. This commit adds support for all supported
at the moment coreutils hashing algorithms: md5, sha1, sha224,
sha256, sha384 and sha512

Usage:
IMAGE_FSTYPES_append = " hddimg.sha256sum"

Signed-off-by: Alexander D. Kanevskiy <kad@kad.name>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu-gen-tapdevs: Add note about NetworkManager & tap devices
Saul Wold [Tue, 5 Apr 2016 00:11:56 +0000 (17:11 -0700)]
runqemu-gen-tapdevs: Add note about NetworkManager & tap devices

NetworkManager can clobber tap devices if left alone, this gives a
note about how to set tap* as unmanaged

[YOCTO #8587]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibtool: fix contaminated path to lt_truncate_bin
Alexandru Moise [Tue, 5 Apr 2016 07:33:33 +0000 (10:33 +0300)]
libtool: fix contaminated path to lt_truncate_bin

lt_truncate_bin path is contaminated by the path from the sysroot
directory for the build host.

Steps to reproduce this issue:
$ bitbake -c cleanall libtool
$ bitbake coreutils-native
$ bitbake libtool

$ grep -in "lt_truncate_bin=" tmp/work/*/libtool/*/image/usr/bin/libtool

Signed-off-by: Alexandru Moise <alexandru.moise@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocreate-pull-request: fix for newer git
Robert Yang [Wed, 6 Apr 2016 02:31:27 +0000 (19:31 -0700)]
create-pull-request: fix for newer git

Fixed when git > 2.1.0:
$ ./scripts/create-pull-request -r HEAD^ -u contrib -b rbt/git
fatal: Not a valid revision: rbt/git
ERROR: git request-pull reported an error

This is because newer git requires both local and remote branch named as
rbt/git, but usually, we only named the remote branch as rbt/foo, and
foo for local branch.

Add a option '-l' to fix the problem, default is HEAD.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowget: fix build when len(TMPDIR) == 410
Robert Yang [Wed, 6 Apr 2016 09:30:02 +0000 (02:30 -0700)]
wget: fix build when len(TMPDIR) == 410

Fixed:
aclocal: error: cannot open [snip] |: Argument list too long

Set acpaths to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosanity.bbclass: fix a hardcode in check_path_length()
Robert Yang [Wed, 6 Apr 2016 09:30:01 +0000 (02:30 -0700)]
sanity.bbclass: fix a hardcode in check_path_length()

* Fixed:
  410 -> limit

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogrub: remove unused 0001-Fix-build-with-glibc-2.20.patch
Robert Yang [Wed, 6 Apr 2016 06:58:45 +0000 (23:58 -0700)]
grub: remove unused 0001-Fix-build-with-glibc-2.20.patch

It was used for building with glibc 2.20, now is glibc 2.23, so remove it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: remove unused CVE patches
Robert Yang [Wed, 6 Apr 2016 06:58:44 +0000 (23:58 -0700)]
glibc: remove unused CVE patches

They were CEVs and should be already in the source after upgraded.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclutter-gst-3.0: remove unused enable-tests.patch
Robert Yang [Wed, 6 Apr 2016 06:58:43 +0000 (23:58 -0700)]
clutter-gst-3.0: remove unused enable-tests.patch

It was a backport patch from clutter-gst-1.8, now 3.0, so not needed any
more.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocmake: remove unused dont-run-cross-binaries.patch
Robert Yang [Wed, 6 Apr 2016 06:58:42 +0000 (23:58 -0700)]
cmake: remove unused dont-run-cross-binaries.patch

It hasn't been used since June 2015 when upgraded the recipe, this patch
was used for crosscompiling, now the crosscompile works well without it,
so remove it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotcl: remove unused fix-configure.patch
Robert Yang [Wed, 6 Apr 2016 06:58:41 +0000 (23:58 -0700)]
tcl: remove unused fix-configure.patch

It wasn't used since 2010 at least, and the configure works well, so
remove it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm: remove two unused patch
Robert Yang [Wed, 6 Apr 2016 06:58:40 +0000 (23:58 -0700)]
rpm: remove two unused patch

They are already in the source:
rpm-CVE-2013-6435.patch
rpm-CVE-2014-8118.patch

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoffmpeg, gstreamer1.0-libav: add textrel INSANE_SKIPs
Jussi Kukkonen [Wed, 6 Apr 2016 08:19:12 +0000 (11:19 +0300)]
ffmpeg, gstreamer1.0-libav: add textrel INSANE_SKIPs

ffmpeg disables PIC on some platforms even when --enable-pic is
set, apparently for performance reasons. Add INSANE_SKIPS for the
relevant packages.

Fixes [YOCTO #9375].

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoffmpeg: Make configure options explicit
Jussi Kukkonen [Wed, 6 Apr 2016 08:19:11 +0000 (11:19 +0300)]
ffmpeg: Make configure options explicit

Currently ffmpeg builds libraries that are packaged but never appear
in PACKAGES. Add PACKAGECONFIGs for all libraries, and make sure
PACKAGES_DYNAMIC lists all dynamic packages.

Default choice (build all except libavresample) does not change.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobzip2: set correct soname
Ross Burton [Tue, 5 Apr 2016 21:26:00 +0000 (22:26 +0100)]
bzip2: set correct soname

The correct name for the bzip2 shared library is libbz2.so.1.0.6, not
libbz2.so.0.0.0.  Pass -version-info to libtool to correct this.

Also fix the configure.ac so that is doesn't mention libXrender and has the
right version.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouseradd.bbclass: remove user/group created by the package in clean* task
Maxin B. John [Wed, 6 Apr 2016 09:20:31 +0000 (12:20 +0300)]
useradd.bbclass: remove user/group created by the package in clean* task

At present, if a recipe is built which creates users/groups via
useradd.bbclass, those users/groups are not removed from sysroot
when the recipe/package is cleaned using clean/cleansstate/cleanall
or when a recipe is rebuild and 'unstaged' from the the sysroot.

The "userdel_sysroot_sstate()" provides that functionality.

[YOCTO #9262]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts/oe-selftest: avoid the creation of coverage file when coverage not installed
Humberto Ibarra [Wed, 6 Apr 2016 03:15:54 +0000 (22:15 -0500)]
scripts/oe-selftest: avoid the creation of coverage file when coverage not installed

Coverage subprocessing file is being created even when coverage
is not installed, which causes errors of "module not found" to
be send to the oe-selftest output.

This patch adds indent to the block of code creating this coverage
file, so it can only be executed when coverage is actually
installed.

[Yocto #9334]

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts/oe-selftest: remove coverage file if any coverage option is given
Humberto Ibarra [Wed, 6 Apr 2016 03:15:53 +0000 (22:15 -0500)]
scripts/oe-selftest: remove coverage file if any coverage option is given

Coverage temporal file for sub-processing is being removed only
when the --coverage option was found. This is wrong since the
file is created when any coverage option (source, include or omit)
is given, even if --coverage is not one of them.

This patch makes sure to remove the file if any coverage option was
given.

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts/oe-selftest: remove unneeded coverage warning
Humberto Ibarra [Wed, 6 Apr 2016 03:15:52 +0000 (22:15 -0500)]
scripts/oe-selftest: remove unneeded coverage warning

There is a message that warns the user about enabling subprocessing
for coverage to work. After the fix for Yocto #8930,
this task is done automatically, so the warning is not needed
anymore.

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopatch.bbclass: remove useless path assignment
Alex Franco [Tue, 5 Apr 2016 16:21:34 +0000 (11:21 -0500)]
patch.bbclass: remove useless path assignment

A path variable is assigned the value of PATH from the
environment, before the PATH is set on the environemnt
from the value of PATH in the bb datastore. This seems
to be an unnecessary leftover.

[YOCTO #8543]

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer: remove now-redundant expansion in do_split_packages
Ross Burton [Tue, 5 Apr 2016 16:10:44 +0000 (17:10 +0100)]
gstreamer: remove now-redundant expansion in do_split_packages

do_split_packages now expands extra_depends, so there's no need to pre-expand
it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackage: do_split_packages: expand variables in extra_depends
Ross Burton [Tue, 5 Apr 2016 16:10:43 +0000 (17:10 +0100)]
package: do_split_packages: expand variables in extra_depends

If a recipe passes for example extra_depends="${PN}-dev" to do_split_packages()
then it isn't expanded, so the check for the multilib prefix doesn't work.
Solve this centrally by expanding extra_depends inside do_split_packages().

[ YOCTO #9381 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxf86-video-intel: Add patch to fix some poor image quality
Saul Wold [Tue, 5 Apr 2016 19:17:22 +0000 (12:17 -0700)]
xf86-video-intel: Add patch to fix some poor image quality

This fixes a problem on the Intel Gen8 Graphics and is backport from
the upstream master of xf86-video-intel driver code

[YOCTO #8587]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosanity: Increase minimum git version to 1.8.3.1
Richard Purdie [Tue, 5 Apr 2016 14:46:21 +0000 (15:46 +0100)]
sanity: Increase minimum git version to 1.8.3.1

The kernel tools assume git > 1.7.9.5, I'm unsure of the exact version but
the oldest in our infrastructure is 1.8.3.1. The git fetcher also currently
has nasty workarounds for git < 1.7.9.2.

Moving to 1.8.3.1 as our minimum version seems sane at this point as the oldest
we're testing/supporting.

[YOCTO #6162]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts/oe-buildenv-internal: Fix regression in BB_ENV_EXTRAWHITE setting
Otavio Salvador [Mon, 4 Apr 2016 19:16:19 +0000 (16:16 -0300)]
scripts/oe-buildenv-internal: Fix regression in BB_ENV_EXTRAWHITE setting

The commit OE-Core:ada4639 (oe-buildenv-internal: simplify derivation
of BB_ENV_EXTRAWHITE) changed the format of BB_ENV_EXTRAWHITE
variable to:

,----
| BB_ENV_EXTRAWHITE='ALL_PROXY
| BB_NO_NETWORK
| BB_NUMBER_THREADS
| ...
| '
`----

Instead of:

,----
| BB_ENV_EXTRAWHITE='ALL_PROXY BB_NO_NETWORK BB_NUMBER_THREADS...'
`----

The old format allow for external script parsing easier and there is
no need to change the format as it has no benefit from usage
perspective.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolicense.bbclass: fix warnings when run in unprivileged "container" env
Bjørn Forsman [Mon, 4 Apr 2016 19:02:29 +0000 (21:02 +0200)]
license.bbclass: fix warnings when run in unprivileged "container" env

An unprivileged "container" environment like this[1] doesn't have root
account (uid 0) which causes tons of "Invalid argument" warnings:

  $ bitbake ...
  ...
  WARNING: Could not copy license file [src] to [dest]: [Errno 22] Invalid argument: '[src]'
  WARNING: Could not copy license file [src] to [dest]: [Errno 22] Invalid argument: '[src]'
  WARNING: Could not copy license file [src] to [dest]: [Errno 22] Invalid argument: '[src]'
  ...

Fix it by handling EINVAL similar to existing handling of EPERM (which
was added for when not running under pseudo).

[1]: The real environemnt is buildFHSUserEnv from NixOS/nixpkgs, but a
  demonstration of the issue can be done like this:

    $ touch f
    $ unshare --user --mount chown 0:0 f
    chown: changing ownership of ‘f’: Invalid argument

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoexternalsrc: avoid race in temporary git index file
Markus Lehtonen [Tue, 5 Apr 2016 13:21:49 +0000 (16:21 +0300)]
externalsrc: avoid race in temporary git index file

Use a unique tempfile as the temporary git index file when determining
the git hash of the source tree. A fixed filename was obviously causing
races (with the git index.lock file) under oe-selftest where multiple
bitbake instances were run against the same source tree at the same
time.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobdwgc: use github repo for source location
Bill Randle [Mon, 4 Apr 2016 16:40:37 +0000 (09:40 -0700)]
bdwgc: use github repo for source location

The Yocto Autobuilder has been unable to fetch the release package
from the developer's website at www.hboehm.info, so change recipe
to fetch from the developer's github repo instead.

Signed-off-by: Bill Randle <william.c.randle@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxf86-video-intel: Add patch to allow UXA to build
Saul Wold [Thu, 31 Mar 2016 23:27:30 +0000 (16:27 -0700)]
xf86-video-intel: Add patch to allow UXA to build

This patch is a backport to fixup an API change in xorg-server

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackage_manager.py: better error handling in opkg's package listing
Patrick Ohly [Mon, 4 Apr 2016 13:41:42 +0000 (15:41 +0200)]
package_manager.py: better error handling in opkg's package listing

opkg does not return a non-zero exit code even if it found
errors. When that happens, parsing the output leads to strange
follow-up errors.

To avoid this we need to check explicitly for non-empty
stderr. Reporting only that on a failure also leads to shorter error
messages (stdout may be very large).

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: make systemd-serialgetty optional
Patrick Ohly [Mon, 4 Apr 2016 13:41:41 +0000 (15:41 +0200)]
systemd: make systemd-serialgetty optional

Some distros may prefer to use the upstream systemd support for
starting getty on serial ports. This is now possible by adding
"serial-getty-generator" to PACKAGECONFIG.

The default is unchanged, i.e. systemd's own serial-getty@.service
file does not get packaged and instead systemd-serialgetty is pulled
into images via RRECOMMENDS.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoncurses: reorder PACKAGES
Patrick Ohly [Mon, 4 Apr 2016 13:41:40 +0000 (15:41 +0200)]
ncurses: reorder PACKAGES

Having ncurses-terminfo-base before ncurses-terminfo is currently irrelevant
because the current file lists are completely disjunct. However, when building
"stateless" via a .bbappend, the content of curses-terminfo-base also needs
to live under /usr/share and then it becomes important that files
belonging to ncurses-terminfo-base are checked first.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobluez5.inc: remove obsolete workaround
Patrick Ohly [Mon, 4 Apr 2016 13:41:39 +0000 (15:41 +0200)]
bluez5.inc: remove obsolete workaround

Bluez 5.37 itself correctly installs bluetooth.conf, and honors
the path settings in dbus-1.pc.

Removing the obsolete workaround is necessary for compiling
"stateless" (= read-only system configuration moved out of /etc).

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuildtools-tarball: Add texinfo (for makeinfo)
Richard Purdie [Mon, 4 Apr 2016 15:16:42 +0000 (16:16 +0100)]
buildtools-tarball: Add texinfo (for makeinfo)

Initially I was reluctant to do this however makeinfo is a dependency
of the buildsystem and only adds around 400kb to the buildtools-tarball
so it likely makes sense to add it. This allows people to use
the project on older environments.

Need to enable nativesdk-texinfo but this seems straightforward.

[YOCTO #8990]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocogl: fix G-I .typelib installation
Ross Burton [Mon, 4 Apr 2016 13:28:55 +0000 (14:28 +0100)]
cogl: fix G-I .typelib installation

By default gobject-introspection puts .typelib files into $PN, but the cogl-1.0
recipe doesn't use PN.  Installing cogl-1.0 is impossible as libcogl
conflicts/replaces with cogl-1.0 due to a previous upgrade.

Fix this by putting the .typelib files into the right subpackages, and
explicitly setting FILES_${PN} to "" so that nothing accidently ends up in PN.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/buildhistory: fix grammar in comments
Paul Eggleton [Mon, 4 Apr 2016 05:02:21 +0000 (17:02 +1200)]
classes/buildhistory: fix grammar in comments

Fix a minor grammatical error in the comments here.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/buildhistory: fix filtering of depends-nokernel.dot
Paul Eggleton [Mon, 4 Apr 2016 05:02:20 +0000 (17:02 +1200)]
classes/buildhistory: fix filtering of depends-nokernel.dot

For images we produce a number of filtered dependency .dot files for
readability, the first of which is depends-nokernel.dot which filters
out just the kernel itself (not kernel modules). Unfortunately the
filter specifications hadn't been updated for the dash-to-underscore
removal or the 4.x kernel upgrade, thus the filtering wasn't actually
doing anything.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/buildhistory: optimise getting package size list
Paul Eggleton [Mon, 4 Apr 2016 05:02:19 +0000 (17:02 +1200)]
classes/buildhistory: optimise getting package size list

Invoking oe-pkgdata-util in turn for every package in the list was slow
with a large image. Modify oe-pkgdata-util's read-value command to take
an option to read the list of packages from a file, as well as prefix
the value with the package name; we can then use this to get all of the
package sizes at once. This reduces the time to gather this information
from minutes to just a second or two.

Fixes [YOCTO #7339].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Exclude DDATETIME from task signature
Richard Purdie [Sun, 3 Apr 2016 09:14:15 +0000 (10:14 +0100)]
build-appliance-image: Exclude DDATETIME from task signature

Otherwise the task hash changes between server and worker context
leading to changing task checksums.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage-vm: Exclude DISK_SIGNATURE_GENERATED from task signature
Richard Purdie [Sun, 3 Apr 2016 09:14:18 +0000 (10:14 +0100)]
image-vm: Exclude DISK_SIGNATURE_GENERATED from task signature

Otherwise the task hash changes between server and worker context
leading to changing task checksums.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_ext: Exclude BBTASKDEPDATA from task signature
Richard Purdie [Sun, 3 Apr 2016 09:09:49 +0000 (10:09 +0100)]
populate_sdk_ext: Exclude BBTASKDEPDATA from task signature

Otherwise the task hash changes between server and worker context
leading to changing task checksums. The dependency data here is
tracked by other pieces of the signature.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopkg-utils: opkg-build exit when fail to list files.
Aníbal Limón [Fri, 1 Apr 2016 16:27:10 +0000 (10:27 -0600)]
opkg-utils: opkg-build exit when fail to list files.

We have an issue when ls segfaults in some cases [1] so it's
better to detect the failure at this level instead of continue
the build process.

[YOCTO #8926]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8926#c0

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>