]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agogst-plugins-good: fix nondeterministic udev dependency
Andre McCurdy [Thu, 19 Mar 2015 06:29:18 +0000 (23:29 -0700)]
gst-plugins-good: fix nondeterministic udev dependency

Make the v4l PACKAGECONFIG option control building of the video4linux2
plug-in (not use of libv4l, as it did before) and enable by default.
Add a separate libv4l PACKAGECONFIG to control use of libv4l (disabled
by default since libv4l is not part of oe-core).

The default config for gst-plugins-good and gstreamer1.0-plugins-good
is now aligned with regards to v4l, ie:

  v4l support: enabled by default
  v4l use of libgudev: enabled by default
  v4l use of libv4l2: disabled by default

This commit fixes the following build-deps QA Warnings:

  WARNING: QA Issue: gst-plugins-good-video4linux2 rdepends on libudev, but it isn't a build dependency? [build-deps]
  WARNING: QA Issue: gst-plugins-good-video4linux2 rdepends on libgudev, but it isn't a build dependency? [build-deps]

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopulseaudio: remove obsolete resampler patching
Tanu Kaskinen [Thu, 19 Mar 2015 08:17:33 +0000 (10:17 +0200)]
pulseaudio: remove obsolete resampler patching

This sed script hasn't worked since PulseAudio 0.9.8 (released in
2007), because the match condition refers to "sinc-fastest", while the
default resampler is nowadays speex-float-1.

The idea behind the sed script might be good, but it seems obvious
that nobody is actually depending on the script, so let's just delete
it.

Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopuzzles: Fix build in x32 ABI
Aníbal Limón [Sun, 15 Mar 2015 12:02:29 +0000 (12:02 +0000)]
puzzles: Fix build in x32 ABI

Add patch for make castings to time_t values that are long long int
in x32 ABI.

[YOCTO #7447]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
10 years agosystemtap: Fix build in x32 ABI
Aníbal Limón [Sun, 15 Mar 2015 11:00:39 +0000 (11:00 +0000)]
systemtap: Fix build in x32 ABI

Add a patch for fix printing of time_t value that is long long int
in x32 ABI instead of long int.

[YOCTO #7423]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
10 years agomdadm: Fix build in x32 ABI
Aníbal Limón [Sun, 15 Mar 2015 09:02:14 +0000 (09:02 +0000)]
mdadm: Fix build in x32 ABI

Add a patch for fix build in x32 ABI, the fail is cause by time_t
printf because time_t is long int in x64 and long long int in x32.

[YOCTO #7422]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
10 years agosystemd: set the location of binaries used by service files
Jonathan Liu [Wed, 18 Mar 2015 02:37:21 +0000 (13:37 +1100)]
systemd: set the location of binaries used by service files

Otherwise systemd uses AC_PROG_PATH and finds it in the sysroot or host
system, which won't work on the target.

[YOCTO #7408]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobase.bbclass: clean up warning message for 'S'
Jonathan Liu [Wed, 18 Mar 2015 05:31:57 +0000 (16:31 +1100)]
base.bbclass: clean up warning message for 'S'

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agovalgrind: enable building on 4.x kernel
Martin Jansa [Tue, 17 Mar 2015 12:13:34 +0000 (13:13 +0100)]
valgrind: enable building on 4.x kernel

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoudev: remove 'modprobe' local rule
Javier Viguera [Tue, 17 Mar 2015 13:06:50 +0000 (14:06 +0100)]
udev: remove 'modprobe' local rule

Since udev version 176 (udev commit 06316d9) udev switched modprobe
explicit rules by the builtin kmod support.

The rule using the builtin kmod support is in
'/lib/udev/rules.d/80-drivers.rules':

DRIVER!="?*", ENV{MODALIAS}=="?*", IMPORT{builtin}="kmod load $env{MODALIAS}"

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoperf: add bash to RDEPENDS
Bruce Ashfield [Wed, 11 Mar 2015 13:14:54 +0000 (09:14 -0400)]
perf: add bash to RDEPENDS

perf has a dependency on bash in its utilities, which generate the
following warning:

  WARNING: QA Issue: perf requires /bin/bash, but no providers in its RDEPENDS [file-rdeps]

Since perf is not installed on extremely small systems, we just add
bash to the RDEPENDS, rather than modifying scripts or removing content.

[YOCTO: #7445]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agolinux-yocto/3.19: integrate korg -stable update
Bruce Ashfield [Tue, 10 Mar 2015 13:35:01 +0000 (09:35 -0400)]
linux-yocto/3.19: integrate korg -stable update

Updating to the latest and greatest -stable release for the 3.19 series.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: split meta data generation from patching phase
Bruce Ashfield [Thu, 5 Mar 2015 14:04:01 +0000 (09:04 -0500)]
kernel-yocto: split meta data generation from patching phase

The linux-yocto kernel has a meta-data component which accompanies the
actual tree. That meta-data is processed to generate a series file that
controls the patching and configuration of the kernel.

patching and configuration are two distinct phases, so when working on
kernel configuration, it doesn't make sense to always have to re-run
the patching step just to update configuration data in the meta-series.

To allow a more granular set of tasks, we break the meta-data generation
into a separate task, which runs before do_patch. This allows the task
to be explicitly called when working on configuration, but otherwise
has no impact on the build.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokern-tools: fix iterative configuration runs
Bruce Ashfield [Wed, 4 Mar 2015 20:17:44 +0000 (15:17 -0500)]
kern-tools: fix iterative configuration runs

When fixing a kernel configuration warning, it is often necessary to
modify the kernel's meta-data and re-run the tools to update and
re-audit the config. This implies that the patch, config and audit
steps are run multiple times.

The tools had a bug that would incorrectly restore old meta-data
versus using updated configuration. Updating the kern-tools SRCREV
to fix the issue.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agogstreamer1.0: Shorten __FILE__ in gst_debug_log output on all platforms.
Peter Urbanec [Thu, 26 Feb 2015 17:31:33 +0000 (04:31 +1100)]
gstreamer1.0: Shorten __FILE__ in gst_debug_log output on all platforms.

On WIN32 the file argument to gst_debug_log_valist is shortened to just
the filename. This is useful not only for MSVC, but also with gcc/Linux
when doing cross-compilation builds and out-of-tree builds.

Signed-off-by: Peter Urbanec <openembedded-devel@urbanec.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodbus-test: make do_install run to trigger the effect of cleandirs flag
Chen Qi [Thu, 5 Mar 2015 08:06:03 +0000 (16:06 +0800)]
dbus-test: make do_install run to trigger the effect of cleandirs flag

For now, we would meet the following QA error if we build dbus-test in
the same build directory with multilib enabled/disabled.

The steps are as follows:
1. Enable multilib and `bitbake dbus-ptest'
2. Disable multilib and `bitbake dbus-ptest'

The error message is as follows:
ERROR: QA Issue: dbus-test: Files/directories were installed but not shipped
  /usr/lib64
  /usr/lib64/dbus-test
  /usr/lib64/dbus-test/ptest
  /usr/lib64/dbus-test/ptest/run-ptest
  ...

The problem is that the ${D} is not cleaned up at the second build while it
should be.

This patch fixes the above problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agotcmode-default: Define one gdb version
Khem Raj [Thu, 5 Mar 2015 18:10:36 +0000 (18:10 +0000)]
tcmode-default: Define one gdb version

Sometimes we need to override the gdb from third party
tool SDKs, this helps out, moreover it also makes it consistent
with in OE-Core too to have multiple versions of gdb if we ever
needed to

Change-Id: Ibe1ae59175984bbc661c243764c81cd99fef54d1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agopulseaudio: add system.pa to CONFFILES
Tanu Kaskinen [Mon, 16 Mar 2015 18:55:25 +0000 (20:55 +0200)]
pulseaudio: add system.pa to CONFFILES

Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopulseaudio: move client.conf to libpulse
Tanu Kaskinen [Mon, 16 Mar 2015 18:55:24 +0000 (20:55 +0200)]
pulseaudio: move client.conf to libpulse

This fixes a scenario where the system has libpulse installed but not
pulseaudio-server. The "breakage" didn't have any big practical
effects, though, because the default client.conf contains only
comments anyway.

Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopackage_manager: Create variable for install_dir_name
Saul Wold [Mon, 16 Mar 2015 17:21:30 +0000 (11:21 -0600)]
package_manager: Create variable for install_dir_name

This patch creates a variable for the install_dir name so it can be
something other than /install, also by doing this we can correctly
clean up the empty directories (/install/tmp) during the clean-up
phase. The new default is /oe_install so as to not conflict with other
possible packages that might use /install to place files.

[YOCTO #7353]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolib/oeqa/selftest/lic-checksum: Add INHIBIT_DEFAULT_DEPS
Randy Witt [Mon, 16 Mar 2015 18:14:14 +0000 (11:14 -0700)]
lib/oeqa/selftest/lic-checksum: Add INHIBIT_DEFAULT_DEPS

The test_nonmatching_checksum doesn't need the default dependencies,
and they would just take extra time to generate.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolib/oeqa/selftest/lic-checksum: Rename test_foo
Randy Witt [Mon, 16 Mar 2015 18:14:13 +0000 (11:14 -0700)]
lib/oeqa/selftest/lic-checksum: Rename test_foo

test_foo is renamed to test_nonmatching_checksum. It was a mistake to
submit it with the old name.

There was also some extra whitespace removed.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agotrace-cmd: remove unnecessary 'protocol=git' from SRC_URI
Maxin B. John [Thu, 12 Mar 2015 15:50:40 +0000 (16:50 +0100)]
trace-cmd: remove unnecessary 'protocol=git' from SRC_URI

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agommc-utils: remove unnecessary 'protocol=git' from SRC_URI
Maxin B. John [Thu, 12 Mar 2015 15:50:39 +0000 (16:50 +0100)]
mmc-utils: remove unnecessary 'protocol=git' from SRC_URI

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: remove unnecessary 'protocol=git' from SRC_URI
Maxin B. John [Thu, 12 Mar 2015 15:50:38 +0000 (16:50 +0100)]
systemd: remove unnecessary 'protocol=git' from SRC_URI

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agou-boot-mkimage: remove unnecessary 'protocol=git' from SRC_URI
Maxin B. John [Thu, 12 Mar 2015 15:50:37 +0000 (16:50 +0100)]
u-boot-mkimage: remove unnecessary 'protocol=git' from SRC_URI

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agou-boot-fw-utils: remove unnecessary 'protocol=git' from SRC_URI
Maxin B. John [Thu, 12 Mar 2015 15:50:36 +0000 (16:50 +0100)]
u-boot-fw-utils: remove unnecessary 'protocol=git' from SRC_URI

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-selftest: add missing dependency to test_recipetool_create_git
Paul Eggleton [Sun, 15 Mar 2015 20:40:28 +0000 (20:40 +0000)]
oe-selftest: add missing dependency to test_recipetool_create_git

libmatchbox links to libjpeg if it is present so just explicitly build
it and then check it appears in DEPENDS.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorecipetool: fix duplicate licenses being picked up
Paul Eggleton [Sun, 8 Mar 2015 21:41:18 +0000 (21:41 +0000)]
recipetool: fix duplicate licenses being picked up

If a license file matched more than one of the specifications (e.g.
COPYING.GPL) then it was being added to LIC_FILES_CHKSUM more than once.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-selftest: add a test for devtool modify on recipes fetching local files
Paul Eggleton [Sun, 15 Mar 2015 11:56:03 +0000 (11:56 +0000)]
oe-selftest: add a test for devtool modify on recipes fetching local files

With the change to externalsrc we can now handle these, so add a test
to ensure they can be built.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-selftest: add a test for devtool deploy-target
Paul Eggleton [Fri, 13 Mar 2015 18:27:06 +0000 (18:27 +0000)]
oe-selftest: add a test for devtool deploy-target

Whilst this test would seemingly be better placed as a runtime test,
unfortunately the runtime tests run under bitbake and you can't run
devtool within bitbake (since devtool needs to run bitbake itself).
Additionally we are testing build-time functionality as well, so
really this has to be done as an oe-selftest test.

This test does have a few perhaps unusual requirements in order to run:
 * pexpect is installed
 * MACHINE is set to one of the qemu machines
 * runqemu tap devices have been set up

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-selftest: support getting unexported variable values
Paul Eggleton [Fri, 13 Mar 2015 18:25:33 +0000 (18:25 +0000)]
oe-selftest: support getting unexported variable values

Allow get_bb_var() to work with unexported variable values such as
MACHINE - the workaround is a little crude but should suffice for now.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogitignore: exclude meta-selftest, drop meta-hob
Paul Eggleton [Mon, 16 Mar 2015 10:05:27 +0000 (10:05 +0000)]
gitignore: exclude meta-selftest, drop meta-hob

* We don't want to ignore changes in the meta-selftest directory
* While I'm at it, meta-hob has been gone for a while now, so drop the
  reference to it here.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: deploy-target: add dry-run option
Paul Eggleton [Tue, 10 Mar 2015 14:42:36 +0000 (14:42 +0000)]
devtool: deploy-target: add dry-run option

Add a dry-run option to the deploy-target and undeploy-target
subcommands so you can see the list of files to be deployed or
un-deployed before actually carrying out the operation.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoclasses/externalsrc: fix for recipes that fetch local files
Paul Eggleton [Mon, 9 Mar 2015 13:57:56 +0000 (13:57 +0000)]
classes/externalsrc: fix for recipes that fetch local files

If SRC_URI contains local files (file:// references) these will almost
certainly be required at some point during the build process, so we need
to actually fetch these to ${WORKDIR} as we would normally.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: deploy-target: add an option to disable quiet mode
Paul Eggleton [Sun, 8 Mar 2015 13:03:33 +0000 (13:03 +0000)]
devtool: deploy-target: add an option to disable quiet mode

The -q option to scp does stop the progress being shown, which is mostly
superfluous, however it also stops errors from ssh being shown - if
there's a problem, you'll just get "lost connection" which really isn't
that helpful. As a compromise, add a -s/--show-status option and
advertise this when the command fails.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: deploy-target: detect and error if D is empty
Paul Eggleton [Sun, 8 Mar 2015 12:51:36 +0000 (12:51 +0000)]
devtool: deploy-target: detect and error if D is empty

If you haven't built the recipe yet or if the output directory (${D}) is
empty, then we should tell the user rather than have scp error out.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: deploy-target: allow disabling host key checking
Paul Eggleton [Sun, 8 Mar 2015 12:25:56 +0000 (12:25 +0000)]
devtool: deploy-target: allow disabling host key checking

If you're testing with multiple images/devices that have the same IP
address / hostname then it can be annoying to deal with host key
mismatches all of the time. As a MITM attack is unlikely in the local
test environment, provide a command line option to pass the appropriate
options to scp/ssh to disable the host key checking.

Note: if you wish to apply this permanently, the best way is to do it
through your ssh configuration e.g. by adding the following to your
~/.ssh/config:

Host 192.168.7.2
   UserKnownHostsFile=/dev/null
   StrictHostKeyChecking no

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: modify/extract: prevent usage with incompatible recipes
Paul Eggleton [Thu, 5 Mar 2015 10:51:20 +0000 (10:51 +0000)]
devtool: modify/extract: prevent usage with incompatible recipes

Consolidate code for checking compatible recipes and consider meta and
packagegroup recipes as well as package-index and gcc-source to be
incompatible.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: modify: get correct initial revision from previously extracted source tree
Paul Eggleton [Wed, 4 Mar 2015 13:20:37 +0000 (13:20 +0000)]
devtool: modify: get correct initial revision from previously extracted source tree

If you point devtool modify to a source tree previously created by
devtool modify or devtool extract, then we need to try to pick up the
correct initial revision so that devtool update-recipe knows where to
start looking for commits that match up with patches in the recipe.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: reset: add ability to reset entire workspace
Paul Eggleton [Wed, 4 Mar 2015 12:56:13 +0000 (12:56 +0000)]
devtool: reset: add ability to reset entire workspace

Add a -a/--all option to allow you to quickly reset all recipes in your
workspace.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: name command line parsers appropriately
Paul Eggleton [Wed, 4 Mar 2015 12:46:29 +0000 (12:46 +0000)]
devtool: name command line parsers appropriately

No functional changes, just use a unique name for each parser.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: deploy-target: fix deploying to previously deployed machine
Paul Eggleton [Sun, 8 Mar 2015 12:34:01 +0000 (12:34 +0000)]
devtool: deploy-target: fix deploying to previously deployed machine

* Pass correct arguments to undeploy() function
* If an error occurs during undeploy(), exit instead of continuing

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer-hook-default.sh: handle patches without Signed-off-by
Patrick Ohly [Fri, 13 Mar 2015 12:04:08 +0000 (13:04 +0100)]
combo-layer-hook-default.sh: handle patches without Signed-off-by

Inserting the "From rev" comment depended on having at least one
Signed-off-by line in the patch header. Some old repository commits in
openembedded-core and bitbake do not have those.

When inporting those, just insert at the end of the patch
header. While doing so, ensure that there's exactly one blank line
since the last non-blank line.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer-hook-default.sh: beware of embedded patches
Patrick Ohly [Fri, 13 Mar 2015 11:57:16 +0000 (12:57 +0100)]
combo-layer-hook-default.sh: beware of embedded patches

Patching the subject line must be limited to the subject of
the main patch itself. In particular, git formatted patches embedded in the patch must not be changed.

Achieved by limiting the replacement to the lines until the first
subject in the patch, just as it is done for modifying the first
Signed-off-by.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer-hook-default.sh: avoid duplicating prefix
Patrick Ohly [Fri, 13 Mar 2015 11:51:54 +0000 (12:51 +0100)]
combo-layer-hook-default.sh: avoid duplicating prefix

The existing patch might already have the desired prefix, perhaps
even multiple times (due to some previous import error). Ensure
that after the replace, the prefix is present exactly once.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: partial import for '--history init'
Patrick Ohly [Thu, 12 Mar 2015 16:09:41 +0000 (17:09 +0100)]
combo-layer: partial import for '--history init'

The new "since_revision" property can be used to cut off the imported
history at some point. This is useful to keep the resulting repository
smaller while still preserving enough history that "git annotate"
reports the right author and commit for most lines.

The initial, squashed import commit shows up with "unknown" as author
in the "git annotate" output. It has the repository name as prefix
in the subject line; importing that commit works best with a
layer hook which does not add the repository name again when
it is already present. Adding it here is useful for hooks
which do not extend the subject line.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: combine trees via replacement objects
Patrick Ohly [Thu, 12 Mar 2015 15:45:34 +0000 (16:45 +0100)]
combo-layer: combine trees via replacement objects

Instead of local graft entries rooting the imported branches in the
shared root commit, use replacement objects.

The advantage is that they get moved around by "git push" and "git
fetch", so everyone has the same, nicer view with everything starting
at the beginning of the combined repository.

If undesired, these objects can be removed with "git replace".

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: init with full history
Patrick Ohly [Thu, 12 Mar 2015 13:29:21 +0000 (14:29 +0100)]
combo-layer: init with full history

The new --history parameter enables a new mode in "combo-layer init"
where it copies the entire history of the components into the new
combined repository. This also imports merge commits.

Moving into a destination directory and applying commit hooks
is done via "git filter-branch" of the upstream branch. File
filtering uses the same code as before and just applies it
to that filtered branch to create the final commit which
then gets merged into the master branch of the new repository.

When multiple components are involved, they all get merged
into a single commit with an octopus merge. This depends
on a common ancestor, which is grafted onto the filtered
branches via .git/info/grafts.

These grafts are currently left in place. However, they do not get
pushed, so the local view on the entire history (all branches rooted
in the initial, empty commit, temporarily diverging and then
converging) is not the same as what others will see (branches starting
independently and converging). Perhaps "git replace" should be used
instead.

The final commit needs to be done manually, as before. A commit
message with some tracking information is ready for use as-is. This
information should be sufficient to implement also "combo-layer
update" using this approach, if desired. The advantage would be that
merge commits with conflict resolution would not longer break
the update.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: update() also instance property
Patrick Ohly [Thu, 12 Mar 2015 07:27:43 +0000 (08:27 +0100)]
combo-layer: update() also instance property

The Configuration class mirrors all properties in local hashes.
When updating the configuration, also update these properties
to remain consistent.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: exclude files
Patrick Ohly [Tue, 10 Mar 2015 08:56:03 +0000 (09:56 +0100)]
combo-layer: exclude files

Some combined repos intentionally do not include certain files.
For example, Poky does not include bitbake's setup files and
OE-core's sample files under meta/conf.

When these files get modified in the upstream repository, applying the
patches fails and requires manual intervention. That is merely a
nuisance for someone familiar with the problem, but a real show
stopper when having the import run automatically or by someone less
experienced.

Therefore this change introduces "file_exclude", a new per-repo list
of file patterns which removes all matching files when initializing or
updating a combined repository. Because fnmatch is used under the hood
to match full path strings, removing entire directories must be done
with a pattern ending in a '/*' (in contrast to file_filter).

For Poky, the additional configuration looks like this:

[bitbake]
...
file_exclude = classes/base.bbclass
conf/bitbake.conf
.gitignore
MANIFEST.in
setup.py
TODO

[openembedded-core]
...
file_exclude = meta/conf/bblayers.conf.sample
meta/conf/local.conf.sample
meta/conf/local.conf.sample.extended
meta/conf/site.conf.sample

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: runcmd() with separate output
Patrick Ohly [Tue, 10 Mar 2015 08:48:15 +0000 (09:48 +0100)]
combo-layer: runcmd() with separate output

Allow the caller to specify a separate output stream. stderr is always
a temporary file opened by runcmd(), so read from that to capture
output for error reporting *and* the return value.

The reasoning for the latter is a) that this preserves the traditional
behavior when out=None and b) if the caller wants the content of
stdout, it can read from the stream itself, which is not possible for
the temporary stderr.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: make Signed-off-by optional
Patrick Ohly [Mon, 9 Mar 2015 12:50:11 +0000 (13:50 +0100)]
combo-layer: make Signed-off-by optional

It depends on the diligence of the person running the combo-layer tool
whether the Signed-off-by line added to each commit actually indicates
that the person was involved in validating the change.

When the import is purely automatic, it is better to not add the line,
because the history is more useful without it (searching for the person
really only lists changes he or she was involved with) and it would
be a false statement.

The 'signoff' property can be set per repository, like every
other property. But setting it in the special [DEFAULT] section
is more useful, so that is what the example shows.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: let user choose where properties get updated
Patrick Ohly [Thu, 8 Jan 2015 15:23:52 +0000 (07:23 -0800)]
combo-layer: let user choose where properties get updated

When updating a property (at the moment, only 'last_revision'),
first check whether the user already added it to the main config.
If so, update there even if there is a local config.

This way, 'last_revision' can be shared between developers
as part of the repository while still configuring per-developer
repo paths outside of the git repository in a local config.

An example of a repository which is set up like that is tizen-distro,
with instructions for such a collaborative maintenance found here:
https://review.tizen.org/git/?p=scm/bb/tizen-distro.git;a=blob;f=README;hb=refs/heads/tizen-ivi

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorunqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images
Richard Purdie [Thu, 19 Mar 2015 11:33:30 +0000 (11:33 +0000)]
runqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images

poky-tiny generates cpio.gz images, add support for these so we can boot
them using runqemu.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoscripts/runqemu: Allow FSTYPE to be changed from the environment
Richard Purdie [Thu, 19 Mar 2015 11:32:42 +0000 (11:32 +0000)]
scripts/runqemu: Allow FSTYPE to be changed from the environment

Currently its not possible to change FSTYPE from the environment but it would
be useful to do so where multiple image types have been generated. This
adds that possibility.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogst-player: Fix Pause/Play in GTK+ player
Jussi Kukkonen [Thu, 19 Mar 2015 08:53:53 +0000 (10:53 +0200)]
gst-player: Fix Pause/Play in GTK+ player

Backport a bug fix from upstream gst-player to make
Pause and Play buttons work properly in gtk-play.

[ YOCTO #7429 ]

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoxf86-input-synaptics: drop already applied patch
Paul Eggleton [Mon, 16 Mar 2015 13:56:24 +0000 (13:56 +0000)]
xf86-input-synaptics: drop already applied patch

This patch was part of the 1.8.1 release.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agoopkg: drop already applied patch
Paul Eggleton [Mon, 16 Mar 2015 13:30:34 +0000 (13:30 +0000)]
opkg: drop already applied patch

This patch was part of the 0.2.4 release.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agopackagegroup zeroconf: nss-mdns is libc dependant
Bernhard Reutner-Fischer [Fri, 13 Mar 2015 13:47:42 +0000 (14:47 +0100)]
packagegroup zeroconf: nss-mdns is libc dependant

glibc provides NSS, other libc do not, so only add libnss-mdns to the
zeroconf package group for glibc.
This fixes the build of core-image-sato for e.g. uClibc

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
10 years agoglibc/glibc-collateral.inc: Add LIC_FILES_CHKSUM to avoid warnings in manifest creation
Aníbal Limón [Sat, 14 Mar 2015 08:46:53 +0000 (08:46 +0000)]
glibc/glibc-collateral.inc: Add LIC_FILES_CHKSUM to avoid warnings in manifest creation

Add licenses point to COMMON_LICENSE_DIR because glibc-collateral.inc is
a recipe that don't provide tarball/repo with LICENSE files.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
10 years agounzip: Add ALTERNATIVE configuration
Saul Wold [Thu, 12 Mar 2015 19:58:17 +0000 (12:58 -0700)]
unzip: Add ALTERNATIVE configuration

Since busybox also provides the unzip command use the update-alternatives
mechanism to address this.

[YOCTO #7446]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agometa/lib/oe/package.py: fix files ownership in packages
Fabrice Coulon [Thu, 12 Mar 2015 14:36:55 +0000 (15:36 +0100)]
meta/lib/oe/package.py: fix files ownership in packages

This fix solves the problem with the ownership of files in packages.
The do_install task was producing correct and expected output but when
the files were being put in, e.g. a rpm package, the ownership could
be different than that in the do_install task.

[YOCTO #7428]

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Fabrice Coulon <fabrice.coulon@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooeqa/runtime: Fixed a problem in logparser where it failed to whitelist some common...
Lucian Musat [Fri, 13 Mar 2015 12:54:56 +0000 (14:54 +0200)]
oeqa/runtime: Fixed a problem in logparser where it failed to whitelist some common errors.

And some minor tweaks like moving some errors from qemu to common.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoAdd archiver folder to SSTATE_DUPWHITELIST
Adrian [Fri, 13 Mar 2015 16:39:45 +0000 (17:39 +0100)]
Add archiver folder to SSTATE_DUPWHITELIST

Without this patch the source archiver class is not allowed to
archive the same source archive for different builds.

Signed-off-by: Adrian <adrian.freihofer@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowic: Consider PSEUDO_* environment variables
Ed Bartosh [Mon, 16 Mar 2015 10:57:55 +0000 (12:57 +0200)]
wic: Consider PSEUDO_* environment variables

Used default values of PSEUDO_* environment variables only
if variables are not set.

This allows to set custom PSEUDO_PREFIX and other pseudo
variables in order to use pseudo database from non-standard
locations.

Change-Id: I0bc1af5e521121d1f96d590cb6edb23cf0cb0b83
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorpcbind: don't try to enable rpcbind.socket twice
Martin Jansa [Fri, 13 Mar 2015 18:43:23 +0000 (19:43 +0100)]
rpcbind: don't try to enable rpcbind.socket twice

* rpcbind.service requires rpcbind.socket and systemctl tries to add it twice
* see log.do_rootfs:
  Started /OE/build/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/bin/systemctl --root=/OE/build/shr-core/tmp-glibc/work/nokia900-oe-linux-gnueabi/shr-image/2.0-r20/rootfs enable rpcbind.service rpcbind.socket
  Try to find location of rpcbind.service...
  Found rpcbind.service in /lib/systemd/system/rpcbind.service
  Also=rpcbind.socket found in rpcbind.service
  Started /OE/build/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/bin/systemctl --root=/OE/build/shr-core/tmp-glibc/work/nokia900-oe-linux-gnueabi/shr-image/2.0-r20/rootfs enable rpcbind.socket
  Try to find location of rpcbind.socket...
  Found rpcbind.socket in /lib/systemd/system/rpcbind.socket
  WantedBy=sockets.target found in rpcbind.socket
  Enabled rpcbind.socket for sockets.target.
  Try to find location of rpcbind.socket...
  Found rpcbind.socket in /lib/systemd/system/rpcbind.socket
  WantedBy=sockets.target found in rpcbind.socket
  ln: failed to create symbolic link '/OE/build/shr-core/tmp-glibc/work/nokia900-oe-linux-gnueabi/shr-image/2.0-r20/rootfs/etc/systemd/system/sockets.target.wants/rpcbind.socket': File exists
  Enabled rpcbind.socket for sockets.target.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemctl: Don't try to remove directory which doesn't exist
Martin Jansa [Fri, 13 Mar 2015 18:41:40 +0000 (19:41 +0100)]
systemctl: Don't try to remove directory which doesn't exist

Noticed in this log.do_rootfs error:
  Started /OE/build/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/bin/systemctl --root=/OE/build/shr-core/tmp-glibc/work/nokia900-oe-linux-gnueabi/shr-image/2.0-r20/rootfs disable bluetooth.service
  Try to find location of bluetooth.service...
  Found bluetooth.service in /lib/systemd/system/bluetooth.service
  WantedBy=bluetooth.target found in bluetooth.service
  rmdir: failed to remove '/OE/build/shr-core/tmp-glibc/work/nokia900-oe-linux-gnueabi/shr-image/2.0-r20/rootfs/etc/systemd/system/bluetooth.target.wants': No such file or directory
  Disabled bluetooth.service for bluetooth.target.
  Disabled bluetooth.service for dbus-org.bluez.service.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogst-player: Depend on -libav if commercial license is enabled
Jussi Kukkonen [Fri, 13 Mar 2015 12:49:17 +0000 (14:49 +0200)]
gst-player: Depend on -libav if commercial license is enabled

gstreamer1.0-libav makes AAC playback possible but is protected by
the "commercial" LICENSE_FLAGS: recommend -libav if those licenses
are enabled.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowaffle: drop unneeded setting of EXTRA_OECMAKE
Paul Eggleton [Mon, 16 Mar 2015 10:45:28 +0000 (10:45 +0000)]
waffle: drop unneeded setting of EXTRA_OECMAKE

base.bbclass already sets EXTRA_OECMAKE when cmake.bbclass is inherited.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-selftest: improve bitbake-layers tests
Paul Eggleton [Mon, 16 Mar 2015 10:45:29 +0000 (10:45 +0000)]
oe-selftest: improve bitbake-layers tests

* Add a test for add-layer and remove-layer
* Correct message for test_bitbakelayers_showoverlayed()
* Improve test_bitbakelayers_flatten() to use a more unique name for the
  temp output directory and clean it up using track_for_cleanup()

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-init-build-env-memres: Fix source check
Esquivel, Benjamin [Thu, 19 Mar 2015 20:31:41 +0000 (20:31 +0000)]
oe-init-build-env-memres: Fix source check

The source check was referring to oe-init-build-env instead of the
memres. It could be executed without the proper failure message and the
corresponding exit command out of the script. This commit makes the
memres script look more like the oe-init-build-env with the correct
script name.

[YOCTO #7487]

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: fix /var/log/journal ownership
Jonathan Liu [Thu, 12 Mar 2015 09:18:56 +0000 (20:18 +1100)]
systemd: fix /var/log/journal ownership

The ownership needs to be explicitly set otherwise it inherits the user
and group id of the build user.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: Fix journal "Failed to set file attributes:" warning
Randy Witt [Fri, 6 Mar 2015 22:15:33 +0000 (14:15 -0800)]
systemd: Fix journal "Failed to set file attributes:" warning

This is a backport of an upstream patch that fixes the
"Failed to set file attributes: Inappropriate ioctl for device" message
when the device exists on ext4 filesystems.

No functionality is changed, the patch just removes a potentially misleading
warning.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocurl: remove samba from PACKAGECONFIG[smb] DEPENDS
Andre McCurdy [Thu, 12 Mar 2015 00:27:38 +0000 (17:27 -0700)]
curl: remove samba from PACKAGECONFIG[smb] DEPENDS

Enabling support for the smb protocol does not create
a build time dependency on samba.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoe2fsprogs: CVE-2015-0247
Sona Sarmadi [Thu, 12 Mar 2015 10:01:01 +0000 (11:01 +0100)]
e2fsprogs: CVE-2015-0247

Fixes a heap buffer overflow in lib/ext2fs/openfs.c which allows
a trivial arbitrary memory write under certain conditions.

References
http://git.kernel.org/cgit/fs/ext2/e2fsprogs.git/commit/?id=f66e6ce4
http://www.ocert.org/advisories/ocert-2015-002.html

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolinux-yocto-rt: removed duplicated line
Alexandru.Vaduva [Wed, 11 Mar 2015 09:52:18 +0000 (10:52 +0100)]
linux-yocto-rt: removed duplicated line

Seemed that the recipe contained redundant information.

Signed-off-by: Alexandru.Vaduva <Alexandru.Vaduva@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agomailx: disable parallel build
Robert Yang [Wed, 11 Mar 2015 08:35:39 +0000 (01:35 -0700)]
mailx: disable parallel build

The makeconfig can't run parallelly, otherwise the checking results
might be incorrect and lead to errors:
fio.c:56:17: fatal error: ssl.h: No such file or directory

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoutil-linux: split libraries dynamically
Ross Burton [Wed, 11 Mar 2015 13:40:05 +0000 (13:40 +0000)]
util-linux: split libraries dynamically

util-linux has a number of utility libraries and not noticing a new one being
added in an upgrade results in many of the split-out core tools depending on the
entire package for the library.  To prevent this happening in the future do the
library packaging dynamically.

As a side-effect libsmartcols.so is no longer packaged in util-linux so
util-linux-fdisk no longer depends on the full util-linux.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoutil-linux: fix CVE-2014-9114
Chen Qi [Wed, 11 Mar 2015 06:47:08 +0000 (14:47 +0800)]
util-linux: fix CVE-2014-9114

Backport a patch to fix CVE-2014-9114.
The patch has been integrated in util-linux-2.26.

[YOCTO #7180]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosysprof: fix arm big-endian build.
Koen Kooi [Wed, 11 Mar 2015 08:50:51 +0000 (09:50 +0100)]
sysprof: fix arm big-endian build.

Applying the existing ARM patch for armeb makes it work.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agologrotate: Identify CONFFILES
Rob Woolley [Mon, 9 Mar 2015 23:52:58 +0000 (19:52 -0400)]
logrotate: Identify CONFFILES

Some package formats explicitly track which files are configuration files
so that they are not overwritten on updates. We must use an explicit list
instead of a wildcard as logrotate also provides files under ${sysconfdir}
that are not configuration files.

Signed-off by: Rob Woolley <rob.woolley@windriver.com>

10 years agonfs-utils: Identify CONFFILES
Rob Woolley [Mon, 9 Mar 2015 23:52:57 +0000 (19:52 -0400)]
nfs-utils: Identify CONFFILES

Some package formats explicitly track which files are configuration files
so that they are not overwritten on updates. We must use an explicit list
instead of a wildcard as nfs-utils-client provides files under
${localstatedir}/lib/nfs that are not configuration files.

Signed-off by: Rob Woolley <rob.woolley@windriver.com>

10 years agonfs-utils: Install nfsmount.conf
Rob Woolley [Mon, 9 Mar 2015 23:52:56 +0000 (19:52 -0400)]
nfs-utils: Install nfsmount.conf

The file nfsmount.conf is present in nfs-utils but not installed to the
filesystem.  It has been added to nfs-utils-client as it seemed to be
missing accidentally rather than being removed intentionally.  The binary
files in nfs-utils-client have a hard-coded reference to it and we
already provide the manpage for it in nfs-utils-doc.

Signed-off by: Rob Woolley <rob.woolley@windriver.com>

10 years agomsmtp: add link file /usr/lib/sendmail
Kai Kang [Mon, 16 Feb 2015 02:41:14 +0000 (10:41 +0800)]
msmtp: add link file /usr/lib/sendmail

Link file /usr/lib/sendmail points to /usr/sbin/sendmail is required by
LSB core test according to Linux FHS: "For historical reasons,
/usr/lib/sendmail must be a symbolic link to /usr/sbin/sendmail if the
latter exists."

Create the link file /usr/lib/sendmail if it doesn't exist.

Refs:
1 http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/normativerefs.html#STD.LSB
2 http://www.pathname.com/fhs/pub/fhs-2.3.html#SPECIFICOPTIONS13

Signed-off-by: Kai Kang <kai.kang@windriver.com>
10 years agolsb: update init-functions and remove sendmail
Kai Kang [Mon, 16 Feb 2015 02:25:03 +0000 (10:25 +0800)]
lsb: update init-functions and remove sendmail

According to LSB specification Ref1, LSB checks file
/lib/lsb/init-functions. But for 64 bits system it is installed in
/lib64. Install init-functions to /lib/lsb to conform with LSB
specification.

Link file /usr/lib/sendmail which points to /usr/sbin/sendmail is
required by LSB according to Linux FHS[Ref 2]. But it should be done by
packages which provides command sendmail such as msmtp, postfix and
esmtp etc.

Refs:
1 http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptfunc.html
2 http://www.pathname.com/fhs/pub/fhs-2.3.html#SPECIFICOPTIONS13

Signed-off-by: Kai Kang <kai.kang@windriver.com>
10 years agoRevert "blktrace: fix and enable parallel build"
Robert Yang [Tue, 10 Mar 2015 09:23:14 +0000 (02:23 -0700)]
Revert "blktrace: fix and enable parallel build"

This reverts commit 2d9763a1c8685e9bd3a6b0aa0995eec5112dc4a7.

There are a few parallel issues:
1)
../rbtree.o: error adding symbols: Invalid operation
collect2: error: ld returned 1 exit status
Makefile:42: recipe for target 'btt' failed

2)
git/blkiomon.c:216: undefined reference to `rb_insert_color'
collect2: error: ld returned 1 exit status
Makefile:27: recipe for target 'blkparse' failed

3)
ld: rbtree.o: invalid string offset 128 >= 125 for section `.strtab'

4)
btreplay.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status

btreplay/btreplay.c:47:18: fatal error: list.h: No such file or directory

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agomtd-utils: disable parallel build
Robert Yang [Tue, 10 Mar 2015 09:23:13 +0000 (02:23 -0700)]
mtd-utils: disable parallel build

Disable parallel build because of:
git/.compr.c.dep:46: warning: NUL character seen; rest of line ignored
git/.compr.c.dep:47: *** missing separator.  Stop.

Because both mkfs.jffs2 and mkfs.ubifs depend on compr.c, and
.compr.c.dep may generate twice at the same time.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolttng: Add tracing group when building lttng-tools
Mehaffey, John [Fri, 27 Feb 2015 02:17:20 +0000 (02:17 +0000)]
lttng: Add tracing group when building lttng-tools

This prevents the "Warning: No tracing group detected" message
from lttng when there is no group 'tracing' while using lttng
on the target.

Signed-off-by: John Mehaffey <mehaf@gedanken.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agokernel-devsrc: fix file ownership
Jonathan Liu [Tue, 10 Mar 2015 00:45:26 +0000 (11:45 +1100)]
kernel-devsrc: fix file ownership

The file ownership needs to be explicitly set otherwise it inherits
the user and group id of the build user.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoutil-linux: move getopt u-a link to base_bindir
Martin Jansa [Tue, 3 Mar 2015 07:40:47 +0000 (08:40 +0100)]
util-linux: move getopt u-a link to base_bindir

* busybox installs getopt u-a in base_bindir when GETOPT is enabled, move util-linux
  link to the same location to fix calling u-a in read-only images
* remove unused variable usrbinprogs_a

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoliberation-fonts: inherit allarch as fonts are arch-independent
Ross Burton [Mon, 9 Mar 2015 16:37:19 +0000 (16:37 +0000)]
liberation-fonts: inherit allarch as fonts are arch-independent

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoresolvconf: fix SRC_URI
Robert Yang [Mon, 9 Mar 2015 06:36:53 +0000 (23:36 -0700)]
resolvconf: fix SRC_URI

Fixed:
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/r/resolvconf/resolvconf_1.76.tar.xz, attempting MIRRORS if available

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agonet-tools: fix SRC_URI
Robert Yang [Mon, 9 Mar 2015 06:34:00 +0000 (23:34 -0700)]
net-tools: fix SRC_URI

Fixed:
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-25.diff.gz;apply=no;name=patch, attempting MIRRORS if available

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agoapt: fix SRC_URI
Robert Yang [Fri, 6 Mar 2015 03:29:32 +0000 (19:29 -0800)]
apt: fix SRC_URI

Fixed:
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/a/apt/apt_0.9.9.4.tar.gz, attempting MIRRORS if available

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agolibevent: fix SRC_URI
Robert Yang [Fri, 6 Mar 2015 02:23:36 +0000 (18:23 -0800)]
libevent: fix SRC_URI

The wget reported errors for the past URI since it can't follow the redirection well:
Connecting to cloud.github.com (cloud.github.com)|54.192.140.6|:443... connected.
OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
Unable to establish SSL connection.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agoxinetd: fix HOMEPAGE and SRC_URI
Robert Yang [Thu, 12 Mar 2015 01:38:57 +0000 (18:38 -0700)]
xinetd: fix HOMEPAGE and SRC_URI

The www.xinetd.org is not available, use github as the HOMEPAGE and
SRC_URI.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibunwind: backport patch to link against libgcc_s intead of libgcc
Jonathan Liu [Mon, 9 Mar 2015 04:50:18 +0000 (15:50 +1100)]
libunwind: backport patch to link against libgcc_s intead of libgcc

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorootfs.py: fix logic error so that warnings are checked
Chen Qi [Thu, 12 Mar 2015 02:33:34 +0000 (10:33 +0800)]
rootfs.py: fix logic error so that warnings are checked

The following commit caused log checking for warnings not working for RPM
rootfs.

    rootfs.py: ignore "NOTE:" when catching warnings

The problem is that checking for warnings is always skipped because the
following statement is always true.

    if 'log_check' or 'NOTE:' in line:

This patch fixes the above problem so that warning checking in RPM rootfs
can work again.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopixbufcache.bbclass: add harfbuzz-native to PIXBUFCACHE_SYSROOT_DEP
Robert Yang [Wed, 11 Mar 2015 08:35:41 +0000 (01:35 -0700)]
pixbufcache.bbclass: add harfbuzz-native to PIXBUFCACHE_SYSROOT_DEP

Fixed:
DEBUG: Executing shell function pixbufcache_sstate_postinst
g_module_open() failed for sysroots/x86_64-linux/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: libharfbuzz.so.0: cannot open shared object file: No such file or directory

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agokernelsrc.bbclass: fix KERNEL_VERSION
Robert Yang [Wed, 11 Mar 2015 08:35:40 +0000 (01:35 -0700)]
kernelsrc.bbclass: fix KERNEL_VERSION

The kernel-abiversion is now in STAGING_KERNEL_BUILDDIR not in S.

Fixed rpm pkg like perf: (note the None version)
perf-None-r9.qemux86.rpm

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>