]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
7 years agopython3-native: Avoid use of getentropy/getrandom
Richard Purdie [Mon, 14 Aug 2017 13:00:21 +0000 (14:00 +0100)]
python3-native: Avoid use of getentropy/getrandom

getentropy/random() is only available in glibc 2.25+ and uninative may relocate
binaries onto systems that don't have this function. For now, force the code to
the older codepaths until we can come up with a better solution for this kind of
issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackagefeed-stability.bbclass: change a bb.plain to bb.note
Ming Liu [Mon, 14 Aug 2017 08:32:59 +0000 (10:32 +0200)]
packagefeed-stability.bbclass: change a bb.plain to bb.note

I could see dozens of "Copying packages for recipe..." messages on the
console during a image build, this is sort of annoying. I would like
them to be dumped into the task log instead, so I can get a cleaner
console and would not miss real important messages.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselftest/tinfoil: Filter LogRecords in test_event_wait
Richard Purdie [Mon, 14 Aug 2017 10:04:39 +0000 (11:04 +0100)]
selftest/tinfoil: Filter LogRecords in test_event_wait

As the code stands today, an event mask does not mask LogRecord events
since the log levels are controlled separately. We therefore need to
accept (and ignore) LogRecord events in this test to avoid errors.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoexpat: Don't use getrandom() in the -native case
Richard Purdie [Mon, 14 Aug 2017 10:06:33 +0000 (11:06 +0100)]
expat: Don't use getrandom() in the -native case

getrandom() is only available in glibc 2.25+ and uninative may relocate
binaries onto systems that don't have this function. For now, force
the code to the older codepath until we can come up with a better solution
for this kind of issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosite/ix86-common: Drop ac_cv_sizeof_ino_t as it can be incorrect with large file...
Richard Purdie [Sun, 13 Aug 2017 10:22:48 +0000 (11:22 +0100)]
site/ix86-common: Drop ac_cv_sizeof_ino_t as it can be incorrect with large file support

Depending on whether large file support is enabled, the size of ino_t can
be 4 or 8 on 32 bit x86. Drop the value from the site cache and allow the
system to vary it depending on configuration. Very few other arches actually set
this so its likely obsolete and doesn't need to be hardcoded anymore.

Also drop the 64 bit and x32 variants since autodetection of this value appears
to work fine and this avoids any confusion or sizing errors depending on large
file support.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage.bbclass: support binary reproducibility
Juro Bystricky [Wed, 9 Aug 2017 17:48:27 +0000 (10:48 -0700)]
image.bbclass: support binary reproducibility

Added a new task "reproducible_final_image_task".
If binary reproducibility is desired ($BUILD_REPRODUCIBLE_BINARIES" = "1"),
then recursivley modify mtimes of all files to a reproducible vale.
The value is obtained via REPRODUCIBLE_TIMESTAMP_ROOTFS.
This task is executed as the very last step in image creation, once all
the files in the image have been finalized.

[YOCTO#11176]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel.bbclass: improve reproducibility
Juro Bystricky [Wed, 9 Aug 2017 17:48:32 +0000 (10:48 -0700)]
kernel.bbclass: improve reproducibility

Several tweaks to improve reproducibility:

1. If BUILD_REPRODUCIBLE_BINARIES == 1, set KBUILD_BUILD_TIMESTAMP
to a reproducible value. This is either a non-zero SOURCE_DATE_EPOCH, or the
value obtained from top entry of GIT repo, or (if there is no GIT repo)
fallback to REPRODUCIBLE_TIMESTAMP_ROOTFS as the last resort.
Also export KCONFIG_NOTIMESTAMP=1.

2. When compressing vmlinux.gz, use gzip "-n" option

3. Kernel and kernel modules contain hard coded paths referencing the host
build system. This is usually because the source code contains __FILE__
at some place. This prevents binary reproducibility. However, some compilers
allow remapping of the __FILE__ value. If we detect the compiler is capable
of doing this, we replace the source path $(S) part of __FILE__ by a string "/kernel-source".
For example:

​/data/master/build/tmp/work-shared/qemux86/kernel-source/drivers/media/v4l2-core/videobuf2-core.​c

will be replaced by a reproducible value:

/kernel-source/drivers/media/v4l2-core/videobuf2-core.c.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage-prelink.bbclass: support binary reproducibility
Juro Bystricky [Wed, 9 Aug 2017 17:48:24 +0000 (10:48 -0700)]
image-prelink.bbclass: support binary reproducibility

Conditionally support binary reproducibility in built images.
If BUILD_REPRODUCIBLE_BINARIES = 1 then:

1. Do not randomize library addresses
2. Set/export PRELINK_TIMESTAMP to a reproducible value.
   If REPRODUCIBLE_TIMESTAMP_ROOTFS is specified, then the value will
   be used. Otherwise the timestamp will be derived from the top git commit.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobusybox.inc: improve reproducibility
Juro Bystricky [Wed, 9 Aug 2017 17:48:26 +0000 (10:48 -0700)]
busybox.inc: improve reproducibility

For reproducible builds do not generate build timestamp as part of
the version string.

Remove host tools references from .config file.
With this patch all eight busybox packages are built as
binary reproducible.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython3: improve reproducibility
Juro Bystricky [Wed, 9 Aug 2017 17:48:31 +0000 (10:48 -0700)]
python3: improve reproducibility

The compiled .pyc files contain time stamp corresponding to the compile time.
This prevents binary reproducibility. This patch allows to achieve binary
reproducibility by overriding the build time stamp by the value
exported via SOURCE_DATE_EPOCH.

Patch by Bernhard M. Wiedemann.

[YOCTO#11241]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agou-boot: update nios2 device tree for 10m50 board
Gan, Yau Wai [Thu, 10 Aug 2017 00:06:25 +0000 (17:06 -0700)]
u-boot: update nios2 device tree for 10m50 board

In order for u-boot to work on Nios II architecture,
the device tree file requires adding pre-relocation
flag to the CPU node.

Patch is tested on 10m50 board. Pass booting up
Linux.

[YOCTO #11628]

Signed-off-by: Gan, Yau Wai <yau.wai.gan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoe2fsprogs-doc: binary reproducible
Juro Bystricky [Thu, 10 Aug 2017 19:20:55 +0000 (12:20 -0700)]
e2fsprogs-doc: binary reproducible

When compressing by gzip, do not save the original file name and time stamp.

[YOCTO #11916]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython3-docutils: update to 0.14
Jose Lamego [Wed, 9 Aug 2017 20:59:25 +0000 (15:59 -0500)]
python3-docutils: update to 0.14

python3-docutils recipe must be upgraded to latest stable release.

LIC_FILES_CHKSUM changed due to a typo fix from previous version,
but license type and information remained the same.

This change was tested on qemu with core-image-minimal.

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython*-setuptools: update to 36.2.7
Jose Lamego [Wed, 9 Aug 2017 20:01:04 +0000 (15:01 -0500)]
python*-setuptools: update to 36.2.7

Both python-setuptools and python3-setuptools must be updated
to latest stable release.

These changes were tested on qemu with core-image-minimal

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosysstat: fix creating configuration file for /var/log/sa
Chen Qi [Thu, 10 Aug 2017 01:46:04 +0000 (09:46 +0800)]
sysstat: fix creating configuration file for /var/log/sa

Fix to create configuration file related to /var/log/sa for sysvinit
and systemd systems respectively.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoexternalsrc: Handle .git not being a directory
Joshua Watt [Thu, 10 Aug 2017 02:18:32 +0000 (21:18 -0500)]
externalsrc: Handle .git not being a directory

Use git rev-parse to determine the location of the .git directory, in
case it is not an immediate child of EXTERNALSRC (e.g. when using
submodules). In the event git can't resolve the .git directory, fall
back to the non-git method for hashing.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoexpat: Upgrade to 2.2.3
Khem Raj [Fri, 11 Aug 2017 04:35:28 +0000 (00:35 -0400)]
expat: Upgrade to 2.2.3

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoltp: upgrade to upstream latest commit on 20170804
Dengke Du [Fri, 11 Aug 2017 07:38:57 +0000 (03:38 -0400)]
ltp: upgrade to upstream latest commit on 20170804

1. Drop 4 patches because the upstream already contains them:

    0001-dirtyc0w-Include-stdint.h.patch
    0006-fix-PATH_MAX-undeclared-when-building-with-musl.patch
    0037-faccessat-and-fchmodat-Fix-build-warnings.patch
    0038-syscalls-add_key02-update-to-test-fix-for-nonempty-N.patch

2. Drop the do_compile_prepend function, because the upstream already fix
   the parallel make race, we can check it here:

    https://github.com/linux-test-project/ltp/commit/3f385652efe811fe7491474f8513baf44cf0a12d

3. Fix PAGE_SIZE redefinition and O_CREAT undeclear build failures when using musl

4. Fix runtime failed case file01

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomesa: Fix build with vulkan on non-x86
Jussi Kukkonen [Fri, 11 Aug 2017 08:20:45 +0000 (11:20 +0300)]
mesa: Fix build with vulkan on non-x86

The intel vulkan driver requires libdrm-intel: Only enable it when
building for x86 or x86-64 similar to DRI drivers.

Building on non-x86* with vulkan leads to "--with-vulkan-drivers= ":
this is interpreted correctly by the build system.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage.bbclass: delete DATE variable too
Stefan Agner [Tue, 29 Aug 2017 09:54:00 +0000 (02:54 -0700)]
image.bbclass: delete DATE variable too

When creating a custom image which uses the DATE variable the basehash
seems to change every day and lead to errors such as:
ERROR: console-tdx-image-2.7.6-r0 do_image_customimg: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:set_image_size(d)
...

Add DATE to the variables which should not get expanded early and to the
vardepsexclude list for the image task.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorun-postinsts: do not reload daemon configuration
Max Krummenacher [Sat, 12 Aug 2017 17:20:59 +0000 (19:20 +0200)]
run-postinsts: do not reload daemon configuration

In case a systemd service disables itself while init is still in its
boot sequence the reloading of the service files can be problematic.
In that case: It seems that systemd looses the state of .device units,
and some services depend on such units (namely serial consoles such as
serial-getty@ttymxc0.service). As a result no getty is spawned on the
affected serial tty.
After a power-cycle the second boot (which does not disable services)
succeeds.

The following sequence shows this problem:

| Jan 09 16:36:28 apalis-t30 systemctl[162]: Removed /etc/systemd/system/sysinit.target.wants/run-postinsts.service.
| Jan 09 16:36:28 apalis-t30 systemd[1]: Reloading.
|    ...
|    And then the failing one:
| Feb 22 15:33:15 apalis-t30 systemd[1]: dev-ttyS0.device: Job dev-ttyS0.device/start timed out.
| Feb 22 15:33:15 apalis-t30 systemd[1]: Timed out waiting for device dev-ttyS0.device.
| Feb 22 15:33:15 apalis-t30 systemd[1]: Dependency failed for Serial Getty on ttyS0.
| Feb 22 15:33:15 apalis-t30 systemd[1]: serial-getty@ttyS0.service: Job serial-getty@ttyS0.service/start failed with result 'dependency'.
| Feb 22 15:33:15 apalis-t30 systemd[1]: dev-ttyS0.device: Job dev-ttyS0.device/start failed with result 'timeout'.
| Feb 22 15:33:15 apalis-t30 systemd[1]: Reached target Login Prompts.

(the time has been updated between this two events, but that does not
influence the issue)

Using --no-reload in the service file avoids the "Reloading." message
above and seems to not cause such issues anymore.

Reported-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 4a425d05bac5dcba023b67aa3d726f7e7869404f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoopkg-configure: do not reload daemon configuration
Max Krummenacher [Sat, 12 Aug 2017 17:20:58 +0000 (19:20 +0200)]
opkg-configure: do not reload daemon configuration

In case a systemd service disables itself while init is still in its
boot sequence the reloading of the service files can be problematic.
In that case: It seems that systemd looses the state of .device units,
and some services depend on such units (namely serial consoles such as
serial-getty@ttymxc0.service). As a result no getty is spawned on the
affected serial tty.
After a power-cycle the second boot (which does not disable services)
succeeds.

The following sequence shows this problem:

| Jan 09 16:36:28 apalis-t30 systemctl[162]: Removed /etc/systemd/system/sysinit.target.wants/run-postinsts.service.
| Jan 09 16:36:28 apalis-t30 systemd[1]: Reloading.
|    ...
|    And then the failing one:
| Feb 22 15:33:15 apalis-t30 systemd[1]: dev-ttyS0.device: Job dev-ttyS0.device/start timed out.
| Feb 22 15:33:15 apalis-t30 systemd[1]: Timed out waiting for device dev-ttyS0.device.
| Feb 22 15:33:15 apalis-t30 systemd[1]: Dependency failed for Serial Getty on ttyS0.
| Feb 22 15:33:15 apalis-t30 systemd[1]: serial-getty@ttyS0.service: Job serial-getty@ttyS0.service/start failed with result 'dependency'.
| Feb 22 15:33:15 apalis-t30 systemd[1]: dev-ttyS0.device: Job dev-ttyS0.device/start failed with result 'timeout'.
| Feb 22 15:33:15 apalis-t30 systemd[1]: Reached target Login Prompts.

(the time has been updated between this two events, but that does not
influence the issue)

Using --no-reload in the service file avoids the "Reloading." message
above and seems to not cause such issues anymore.

Reported-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 16b7b455ee40fd1be5bb9aacf24b106df0d9325e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodpkg-configure: do not reload daemon configuration
Max Krummenacher [Sat, 12 Aug 2017 17:20:57 +0000 (19:20 +0200)]
dpkg-configure: do not reload daemon configuration

In case a systemd service disables itself while init is still in its
boot sequence the reloading of the service files can be problematic.
In that case: It seems that systemd looses the state of .device units,
and some services depend on such units (namely serial consoles such as
serial-getty@ttymxc0.service). As a result no getty is spawned on the
affected serial tty.
After a power-cycle the second boot (which does not disable services)
succeeds.

The following sequence shows this problem:

| Jan 09 16:36:28 apalis-t30 systemctl[162]: Removed /etc/systemd/system/sysinit.target.wants/run-postinsts.service.
| Jan 09 16:36:28 apalis-t30 systemd[1]: Reloading.
|    ...
|    And then the failing one:
| Feb 22 15:33:15 apalis-t30 systemd[1]: dev-ttyS0.device: Job dev-ttyS0.device/start timed out.
| Feb 22 15:33:15 apalis-t30 systemd[1]: Timed out waiting for device dev-ttyS0.device.
| Feb 22 15:33:15 apalis-t30 systemd[1]: Dependency failed for Serial Getty on ttyS0.
| Feb 22 15:33:15 apalis-t30 systemd[1]: serial-getty@ttyS0.service: Job serial-getty@ttyS0.service/start failed with result 'dependency'.
| Feb 22 15:33:15 apalis-t30 systemd[1]: dev-ttyS0.device: Job dev-ttyS0.device/start failed with result 'timeout'.
| Feb 22 15:33:15 apalis-t30 systemd[1]: Reached target Login Prompts.

(the time has been updated between this two events, but that does not
influence the issue)

Using --no-reload in the service file avoids the "Reloading." message
above and seems to not cause such issues anymore.

Reported-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 94fabe4b03e899d8876027ee2ced649737a9e522)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorm_work: fix build break for do_image_complete
Martin Jansa [Sat, 12 Aug 2017 00:31:59 +0000 (02:31 +0200)]
rm_work: fix build break for do_image_complete

* since following commit:
  commit 2ff9d40dc88d43567472218cf3d3faf414398c71
  Author: Richard Purdie <richard.purdie@linuxfoundation.org>
  Date:   Sun Jul 30 16:06:57 2017 +0100

    image/rm_work: Promote do_image_complete to be more sstate like

  all image rm_work tasks are failing with:
  mv: 1.0-r0.do_image_complete.228730130ba309f85b73b72222ba11d7.raspberrypi3 and
      1.0-r0.do_image_complete.228730130ba309f85b73b72222ba11d7.raspberrypi3 are the same file

  it's because for $i 1.0-r0.do_image_complete.228730130ba309f85b73b72222ba11d7.raspberrypi3
  there will be first SSTATETASK in $j do_deploy, so the sed call doesn't replace anything

  It might be different order of SSTATETASKS in my builds (it might work only when
  do_image_complete is the first one in the list), but here:
  SSTATETASKS="do_deploy do_image_complete do_image_qa do_package do_package_qa do_package_write_ipk do_packagedata do_populate_lic do_populate_sdk do_populate_sdk_ext do_populate_sysroot"

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomusl: Build only in ARM mode when using clang
Khem Raj [Fri, 11 Aug 2017 22:12:08 +0000 (15:12 -0700)]
musl: Build only in ARM mode when using clang

clang 5.0 has a codegen bug when compiling musl in thumb2 mode see

https://bugs.llvm.org/show_bug.cgi?id=34165

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0-python: upgrade to version 1.12.2
Carlos Rafael Giani [Fri, 11 Aug 2017 21:37:01 +0000 (23:37 +0200)]
gstreamer1.0-python: upgrade to version 1.12.2

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0-vaapi: upgrade to version 1.12.2
Carlos Rafael Giani [Fri, 11 Aug 2017 21:37:00 +0000 (23:37 +0200)]
gstreamer1.0-vaapi: upgrade to version 1.12.2

* Remove backported patch:
  1. vaapivideobufferpool-create-allocator-if-needed.patch

* Add PACKAGECONFIG_GL variable to make it possible for BSP layers to
  customize what should be the default, EGL or GLX

* Set virtual/egl instead of virtual/mesa as egl dependency in case
  platform specific drivers provide virtual/egl functionality

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0-libav: upgrade to version 1.12.2
Maxin John [Fri, 11 Aug 2017 21:36:59 +0000 (23:36 +0200)]
gstreamer1.0-libav: upgrade to version 1.12.2

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0-omx: upgrade to version 1.12.2
Maxin John [Fri, 11 Aug 2017 21:36:58 +0000 (23:36 +0200)]
gstreamer1.0-omx: upgrade to version 1.12.2

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0-rtsp-server: upgrade to version 1.12.2
Maxin John [Fri, 11 Aug 2017 21:36:57 +0000 (23:36 +0200)]
gstreamer1.0-rtsp-server: upgrade to version 1.12.2

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0-plugins-ugly: upgrade to version 1.12.2
Maxin John [Fri, 11 Aug 2017 21:36:56 +0000 (23:36 +0200)]
gstreamer1.0-plugins-ugly: upgrade to version 1.12.2

* libmad plugin was removed in 1.12.0, since mad is GPLed,
  unmaintained, and both gst-libav & the mpg123 plugin are
  fully functional alternatives.

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0-plugins-bad: upgrade to version 1.12.2
Carlos Rafael Giani [Fri, 11 Aug 2017 21:36:55 +0000 (23:36 +0200)]
gstreamer1.0-plugins-bad: upgrade to version 1.12.2

* Remove backported patches:
  1. 0001-smoothstreaming-implement-adaptivedemux-s-get_live_s.patch
  2. 0001-smoothstreaming-use-the-duration-from-the-list-of-fr.patch
  3. 0001-mssdemux-improved-live-playback-support.patch

* Refreshed the following patches:
  1. 0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch
     Extended patch to include fix for libgstallocators
  2. 0001-Prepend-PKG_CONFIG_SYSROOT_DIR-to-pkg-config-output.patch
     Updated to apply to 1.12.2
  3. gstreamer-gl.pc.in-don-t-append-GL_CFLAGS-to-CFLAGS.patch
     Updated to apply to 1.12.2

* Removed license checks in tta directory as it doesn't exist anymore.

* In 1.12.0, old unsupported plugins were removed. As a result, the
  list of unsupported plugins was removed.

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0-plugins-good: upgrade to version 1.12.2
Maxin John [Fri, 11 Aug 2017 21:36:54 +0000 (23:36 +0200)]
gstreamer1.0-plugins-good: upgrade to version 1.12.2

* Remove backported patch:
  1. 0001-v4l2object-Also-add-videometa-if-there-is-padding-to.patch

* Added RPROVIDES to handle the renamed plugins (oss4 is not enabled):
  1. libgstpulse -> libgstpulseaudio
  2. libgstsouphttpsrc -> libgstsoup

* Updated gstreamer1.0-meta-base to include this change:
  1.gstsouphttpsrc plugin was renamed to gstsoup

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0-plugins-base: upgrade to version 1.12.2
Maxin John [Fri, 11 Aug 2017 21:36:53 +0000 (23:36 +0200)]
gstreamer1.0-plugins-base: upgrade to version 1.12.2

* Remove upstreamed patch:
  1. encodebin-Need-more-buffers-in-output-queue-for-bett.patch

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0: upgrade to version 1.12.2
Carlos Rafael Giani [Fri, 11 Aug 2017 21:36:52 +0000 (23:36 +0200)]
gstreamer1.0: upgrade to version 1.12.2

* Version 1.12 introduces support for libdw (provided by elfutils).
  libdw adds source lines & numbers to backtraces. A new "dw"
  packageconfig added for enabling/disabling this feature.
  In addition, the old patch for deterministic unwind configuration
  was replaced with one that also allows the same for the dw
  configuration. This new patch was also submitted to bugzilla.

* Leftover docbook cruft was removed, meaning that the
  "--disable-docbook" configure switch is gone.

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselftest: fix distrodata.py to use per-recipe UPSTREAM_VERSION_UNKNOWN setting
Alexander Kanavin [Fri, 11 Aug 2017 09:45:19 +0000 (12:45 +0300)]
selftest: fix distrodata.py to use per-recipe UPSTREAM_VERSION_UNKNOWN setting

... instead of a global exception list which was problematic.

[YOCTO #11896]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopax-utils: check upstream version from debian servers
Alexander Kanavin [Fri, 11 Aug 2017 09:45:18 +0000 (12:45 +0300)]
pax-utils: check upstream version from debian servers

Gentoo server can be very slow to list the tarball directory.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agov86d: take tarball from debian
Alexander Kanavin [Fri, 11 Aug 2017 09:45:17 +0000 (12:45 +0300)]
v86d: take tarball from debian

Gentoo is removing the package due to dead upstream;
Debian might carry it for a while longer.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoassimp: fix upstream version check
Alexander Kanavin [Fri, 11 Aug 2017 09:45:16 +0000 (12:45 +0300)]
assimp: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodistrodata.bbclass: add UPSTREAM_VERSION_UNKNOWN and UPSTREAM_CHECK_UNRELIABLE
Alexander Kanavin [Fri, 11 Aug 2017 09:45:15 +0000 (12:45 +0300)]
distrodata.bbclass: add UPSTREAM_VERSION_UNKNOWN and UPSTREAM_CHECK_UNRELIABLE

These are optional per-recipe variables with the following meaning:

UPSTREAM_VERSION_UNKNOWN - set if the upstream version check fails reliably,
e.g. absent git tags, or weird version format used on our or on upstream side.
If this variable is not set and version check fails, or if it is set and
the version check succeeds, then the checkpkg selftest for the recipe will fail.

UPSTREAM_CHECK_UNRELIABLE - set if the upstream check cannot be reliably performed
due to transient network failures, or server behaving weirdly. This one should be used
sparingly, as it completely excludes a recipe from upstream checking, and thus
we don't get automatically notified about new upstream releases.

Also the upstream status string in the checkpkg csv output is clarified with the following
possible values:
MATCH - recipe is providing the latest upstream version
UPDATE - there is a new version released by upstream, recipe should be updated
CHECK_IS_UNRELIABLE - an upstream check was skipped as requested by recipe
via UPSTREAM_CHECK_UNRELIABLE
UNKNOWN - upstream version check was performed, but the upstream verison could
not be determined. The recipe acknowledges this via UPSTREAM_VERSION_UNKNOWN setting.
UNKNWON_BROKEN - same as previous, but the recipe does not include the acknowledgement
and should be fixed.
KNOWN_BROKEN - upstream check worked, but recipe claims it shouldn't; to fix this
remove UPSTREAM_VERSION_UNKNOWN from recipe.

[YOCTO #11896]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopopulate_sdk_base.bbclass: add handling package exclusions to do_populate_sdk
Yi Zhao [Fri, 11 Aug 2017 01:30:43 +0000 (09:30 +0800)]
populate_sdk_base.bbclass: add handling package exclusions to do_populate_sdk

There is an error for populate_sdk when we exclude package by using
PACKAGE_EXCLUDE.

Reproduced steps:
echo "PACKAGE_EXCLUDE = \"psplash\"" >> conf/local.conf
bitbake core-image-sato -c populate_sdk

Error log:
ERROR: core-image-sato-1.0-r0 do_populate_sdk: Could not invoke dnf.
Command '/buildarea1/poky/build/tmp/work/qemux86-poky-linux/core-image-sato/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c
/buildarea1/poky/build/tmp/work/qemux86-poky-linux/core-image-sato/1.0-r0/sdk/image/opt/poky/2.3/sysroots/i586-poky-linux/etc/dnf/dnf.conf
--setopt=reposdir=/buildarea1/poky/build/tmp/work/qemux86-poky-linux/core-image-sato/1.0-r0/sdk/image/opt/poky/2.3/sysroots/i586-poky-linux/etc/yum.repos.d
--repofrompath=oe-repo,/buildarea1/poky/build/tmp/work/qemux86-poky-linux/core-image-sato/1.0-r0/oe-rootfs-repo
--installroot=/buildarea1/poky/build/tmp/work/qemux86-poky-linux/core-image-sato/1.0-r0/sdk/image/opt/poky/2.3/sysroots/i586-poky-linux
--setopt=logdir=/buildarea1/poky/build/tmp/work/qemux86-poky-linux/core-image-sato/1.0-r0/temp
-x psplash --nogpgcheck install run-postinsts dnf
packagegroup-core-x11-base packagegroup-core-ssh-dropbear
packagegroup-core-standalone-sdk-target packagegroup-base-extended
packagegroup-core-x11-sato psplash packagegroup-core-boot rpm' returned 1:
Unable to detect release version (use '--releasever' to specify release version)
Added oe-repo repo from
/buildarea1/poky/build/tmp/work/qemux86-poky-linux/core-image-sato/1.0-r0/oe-rootfs-repo
Last metadata expiration check: 0:00:00 ago on Thu 10 Aug 2017 09:26:32 AM UTC.
No package psplash available.
Error: Unable to find a match

Add handling package exclusions to do_populate_sdk. The code copies from
do_rootfs in image.bbclass.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobinutils: Upgrade to 2.29
Khem Raj [Thu, 10 Aug 2017 14:38:59 +0000 (07:38 -0700)]
binutils: Upgrade to 2.29

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage-prelink: Disable for musl images
Richard Purdie [Fri, 11 Aug 2017 07:10:33 +0000 (08:10 +0100)]
image-prelink: Disable for musl images

For some reason prelink was refusing to prelink musl images but now sometimes
does modify the binaries. Since musl has no support for this, such images
end up broken and unable to boot.

To avoid this, be explicit and only apply prelinking for libc-glibc.

[YOCTO #11913]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython-numpy: Upgrade to 1.13.1
Khem Raj [Wed, 9 Aug 2017 14:19:21 +0000 (07:19 -0700)]
python-numpy: Upgrade to 1.13.1

Update LICENSE to BSD-3-Clause as per
https://github.com/numpy/numpy/blob/master/LICENSE.txt

LIC_FILES_CHKSUM changed due to copyright year change see
https://github.com/numpy/numpy/commit/b2ff4f13197dd58508d3d025a9034519974750bd

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogstreamer-plugins-bad: replace openssl dependency with nettle for hls plugin
Alexander Kanavin [Wed, 9 Aug 2017 11:16:02 +0000 (14:16 +0300)]
gstreamer-plugins-bad: replace openssl dependency with nettle for hls plugin

It has not been ported to openssl 1.1 (and there's nothing in upstream git),
but it's possible to use nettle or gcrypt intead.

Also, provide a fallback option to use openssl 1.0 when necessary.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoqemu: apic: fallthrough to PIC
He Zhe [Wed, 9 Aug 2017 10:00:48 +0000 (18:00 +0800)]
qemu: apic: fallthrough to PIC

Backport a commit from qemu upstream to fix a protection fault

https://lists.gnu.org/archive/html/qemu-devel/2013-04/msg00878.html

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomusl: Drop the protected symbol optimization at configure time
Khem Raj [Tue, 1 Aug 2017 13:55:27 +0000 (06:55 -0700)]
musl: Drop the protected symbol optimization at configure time

lld and gold can not handle it and treat it wrong

Fixes

[YOCTO #11689]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosstatetests: limit the number of signature comparisons when differ
Leonardo Sandoval [Tue, 8 Aug 2017 16:57:17 +0000 (09:57 -0700)]
sstatetests: limit the number of signature comparisons when differ

For perfomance reasons, limit the number of signature comparisons when
stamps differ. The limit set is hardcoded to 20.

[YOCTO #11651]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocryptodev-tests: depend on openssl 1.0
Alexander Kanavin [Tue, 8 Aug 2017 15:30:50 +0000 (18:30 +0300)]
cryptodev-tests: depend on openssl 1.0

Upstream ticket:
https://github.com/cryptodev-linux/cryptodev-linux/issues/22

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoopenssh: depend on openssl 1.0
Alexander Kanavin [Tue, 8 Aug 2017 15:30:49 +0000 (18:30 +0300)]
openssh: depend on openssl 1.0

The proposed openssl 1.1 patches are here:
https://github.com/openssh/openssh-portable/pull/48

Openssl maintainers are not in a hurry to get 1.1 support in;
if it doesn't show up within reasonable time, we can take a patch
from Fedora:
http://lists.mindrot.org/pipermail/openssh-unix-dev/2016-November/035454.html

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoopenssl: add a 1.1 version
Alexander Kanavin [Tue, 8 Aug 2017 15:30:48 +0000 (18:30 +0300)]
openssl: add a 1.1 version

Existing openssl 1.0 recipe is renamed to openssl10; it will
continue to be provided for as long as upstream supports it
(and there are still several recipes which do not work with openssl
1.1 due to API differences).

A few files (such as openssl binary) are no longer installed by openssl 1.0,
because they clash with openssl 1.1.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoca-certificates: update to 20170717
Alexander Kanavin [Tue, 8 Aug 2017 15:25:01 +0000 (18:25 +0300)]
ca-certificates: update to 20170717

Upstream lacks a tag for this release, so make it a PR bump.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinsane: remove last remnants of unsafe-references-in-binaries check
Ross Burton [Tue, 8 Aug 2017 14:51:02 +0000 (15:51 +0100)]
insane: remove last remnants of unsafe-references-in-binaries check

The test itself was removed but there were a few explicit checks and
dependencies for it, so remove those too.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinsane: remove unsafe-references-in-scripts check
Ross Burton [Tue, 8 Aug 2017 14:51:18 +0000 (15:51 +0100)]
insane: remove unsafe-references-in-scripts check

We've already removed unsafe-references-in-binaries (which was fundamentally
broken) and nobody really cares about / and /usr being on different filesystems
anymore (at least if they, they're keeping very quiet and not fixing the bugs).

As this test was a minor detail in the scope of supporting separate / and /usr
which we don't support, it can be removed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/buildoptions: remove unsafe-references-in-script test
Ross Burton [Tue, 8 Aug 2017 14:52:16 +0000 (15:52 +0100)]
oeqa/buildoptions: remove unsafe-references-in-script test

This QA test is about to be deleted, so remove it from selftest.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogcc7: fix potential segmentation fault
Juro Bystricky [Fri, 4 Aug 2017 22:40:54 +0000 (15:40 -0700)]
gcc7: fix potential segmentation fault

Under some rare circumstances we may end up with GCC segmentation fault.
This was observed with versions of sysmacros.h, which contain macros
with embedded warning messages :

When trying to actually display the warning, we may end up with a segmentation
fault instead. The reason is the actual warning message gets parsed (the text is
unquoted) and words in the message such as "not", "and" etc. are interpreted as
operators CPP_NOT, CPP_AND. When the time comes to display the warning, the code
uses wrong structure to access the "name" corresponding to the operators.

[YOCTO #11738]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobtrfs-tools: update to 4.12
Alexander Kanavin [Mon, 7 Aug 2017 13:10:42 +0000 (16:10 +0300)]
btrfs-tools: update to 4.12

Add a patch to force a native build for a helper binary
(which is not installed or used outside of the build process).

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogptfdisk: update to 1.0.3
Alexander Kanavin [Mon, 7 Aug 2017 11:45:04 +0000 (14:45 +0300)]
gptfdisk: update to 1.0.3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobabeltrace: update to 1.5.3
Alexander Kanavin [Mon, 7 Aug 2017 11:45:02 +0000 (14:45 +0300)]
babeltrace: update to 1.5.3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoffmpeg: update to 3.3.3
Alexander Kanavin [Mon, 7 Aug 2017 11:45:01 +0000 (14:45 +0300)]
ffmpeg: update to 3.3.3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibdnf: update to 0.9.3
Alexander Kanavin [Mon, 7 Aug 2017 11:44:59 +0000 (14:44 +0300)]
libdnf: update to 0.9.3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodnf: update to 2.6.3
Alexander Kanavin [Mon, 7 Aug 2017 11:44:58 +0000 (14:44 +0300)]
dnf: update to 2.6.3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython2/python3: fix multiprocessing.BoundedSemaphore not work on qemux86/qemuarm
Hongxu Jia [Fri, 4 Aug 2017 08:18:45 +0000 (04:18 -0400)]
python2/python3: fix multiprocessing.BoundedSemaphore not work on qemux86/qemuarm

In upstream, the following commit:
https://github.com/python/cpython/commit/e711cafab13efc9c1fe6c5cd75826401445eb585
...
commit e711cafab13efc9c1fe6c5cd75826401445eb585
Author: Benjamin Peterson <benjamin@python.org>
Date:   Wed Jun 11 16:44:04 2008 +0000

    Merged revisions 64104,64117 via svnmerge from
    svn+ssh://pythondev@svn.python.org/python/trunk
...
(see diff in setup.py)
It assigned libraries for multiprocessing module according
the host_platform, but not pass it to Extension.

In glibc, the following commit caused two definition of
sem_getvalue are different.
https://sourceware.org/git/?p=glibc.git;a=commit;h=042e1521c794a945edc43b5bfa7e69ad70420524
(see diff in nptl/sem_getvalue.c for detail)
`__new_sem_getvalue' is the latest sem_getvalue@@GLIBC_2.1
and `__old_sem_getvalue' is to compat the old version
sem_getvalue@GLIBC_2.0.

If not explicitly link to library pthread (-lpthread), it will
load glibc's sem_getvalue randomly at runtime.

Such as build python on linux x86_64 host and run the python
on linux x86_32 target. If not link library pthread, it caused
multiprocessing bounded semaphore could not work correctly.
...
>>> import multiprocessing
>>> pool_sema = multiprocessing.BoundedSemaphore(value=1)
>>> pool_sema.acquire()
True
>>> pool_sema.release()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: semaphore or lock released too many times
...

And the semaphore issue also caused multiprocessing.Queue().put() hung.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agorecipes-kernel: linux-dummy: provide dummy vmlinux package
Ruslan Bilovol [Fri, 4 Aug 2017 00:51:54 +0000 (17:51 -0700)]
recipes-kernel: linux-dummy: provide dummy vmlinux package

oprofile package depends on kernel-vmlinux package
through RRECOMMENDS dependency. Thus provide it
here to satisfy dependencies.

Signed-off-by: Ruslan Bilovol <rbilovol@cisco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocontext: Include a command line argument to run all except certain tests
Leonardo Sandoval [Thu, 3 Aug 2017 14:01:38 +0000 (07:01 -0700)]
context: Include a command line argument to run all except certain tests

A new command line argument (-R, which is the oposite of current -r) that allows
to run all test cases except the ones indicated through the command line.

Some command line examples:

* Run all except the distro test case:
$ oe-selftest -R distrodata

* Run all except the archiver test case and a single bblayers unit test
$ oe-selftest -R archiver bblayers.BitbakeLayers.test_bitbakelayers_add_remove

[YOCTO #11847]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/runtime_test: use subtests in test_postinst_rootfs_and_boot
Ross Burton [Fri, 4 Aug 2017 15:30:14 +0000 (16:30 +0100)]
oeqa/runtime_test: use subtests in test_postinst_rootfs_and_boot

As this test has two nested loops and actually runs six times, use
UnitTest.subTest() so we can tell which instance is failing, and to run all
variations instead of failing on the first one.

Also set PACKAGE_CLASSES to just the type we need to reduce the verboseness of
the output, and consolidate the feature generation to be neater.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglibc: Upgrade to 2.26 final release
Khem Raj [Thu, 3 Aug 2017 14:03:20 +0000 (07:03 -0700)]
glibc: Upgrade to 2.26 final release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agollvm: Keep llvm-native dependency with clang toolchain
Khem Raj [Thu, 3 Aug 2017 14:03:19 +0000 (07:03 -0700)]
llvm: Keep llvm-native dependency with clang toolchain

This was needed when we were conflicting with clang-native
but this is solved via append PN to binaries of llvm-native

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agovalgrind: enable on mips soft-float
André Draszik [Thu, 3 Aug 2017 08:39:43 +0000 (09:39 +0100)]
valgrind: enable on mips soft-float

Valgrind support for mips soft-float hosts has been fixed
in the 3.12 [1] and 3.13 [2] releases, so let's start
building it on those, too.

[1] https://sourceware.org/git/?p=valgrind.git;a=commit;h=8f0070d31daea6f0ed18f8fe69498a67530bfcbb
[2] https://sourceware.org/git/?p=valgrind.git;a=commit;h=3172936d63da4b6257099bc05aee5793978269cb

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoopenssl: Support musl-x32 build
sweeaun [Wed, 2 Aug 2017 22:56:07 +0000 (15:56 -0700)]
openssl: Support musl-x32 build

Support musl-x32 build which to build openssl with 32 bits.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowayland-protocols: upgrade to 1.10
Denys Dmytriyenko [Wed, 2 Aug 2017 18:22:42 +0000 (14:22 -0400)]
wayland-protocols: upgrade to 1.10

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoeudev: Remove udev-cache
Oliver Stäbler [Wed, 2 Aug 2017 09:37:10 +0000 (11:37 +0200)]
eudev: Remove udev-cache

As eudev requires devtmpfs it is not necessary to keep a cache anymore
as the kernel handles entries in /dev itself.

Signed-off-by: Oliver Stäbler <oliver.staebler@bytesatwork.ch>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoslang: fix terminfo related problems
Joe Slater [Tue, 1 Aug 2017 19:36:53 +0000 (12:36 -0700)]
slang: fix terminfo related problems

Do not use the JD_TERMCAP macro since we cannot get the terminfo from
ncurses pkg-config variants, but fix the macro to not reference host
directories.  Also add src/test/Makefile.in so that we can use -ltermcap
if we want to.

Since the recipe DEPENDS on ncurses, we assume terminfo is there.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd: update to 234
Alexander Kanavin [Wed, 2 Aug 2017 15:27:31 +0000 (18:27 +0300)]
systemd: update to 234

The new version fixes gperf 3.1 issues, so the update is included
in this patchset.

Modified patches are all rebases to the new version.

Deleted patches are backports, except 0016-make-test-dir-configurable.patch
which is obsolete in the new version (TEST_DIR define is no longer used anywhere).
--with-testdir is removed from configure for the same reason.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibid3tag: fix build with gperf 3.1
Alexander Kanavin [Wed, 2 Aug 2017 15:27:30 +0000 (18:27 +0300)]
libid3tag: fix build with gperf 3.1

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibcap: fix build with gperf 3.1
Alexander Kanavin [Wed, 2 Aug 2017 15:27:29 +0000 (18:27 +0300)]
libcap: fix build with gperf 3.1

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogperf: upgrade to 3.1
Alexander Kanavin [Wed, 2 Aug 2017 15:27:28 +0000 (18:27 +0300)]
gperf: upgrade to 3.1

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibinput: Upgrade 1.7.3 -> 1.8.1
Jussi Kukkonen [Wed, 9 Aug 2017 07:14:59 +0000 (10:14 +0300)]
libinput: Upgrade 1.7.3 -> 1.8.1

New feature release, see
https://lists.freedesktop.org/archives/wayland-devel/2017-June/034286.html
for the major features. This is the last major release to support
autotools.

Configure flag "--enable-event-gui" changed name.

Configure flags no longer default to "auto": explicitly disable the
things that were previously automatically disabled.

Package the binaries into libinput-bin while being careful with
packaging as the main package gets renamed to libinput10.

Add patch to fix a race in install.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocheckpkg_exceptions: add LLVM
Ross Burton [Fri, 4 Aug 2017 09:43:40 +0000 (10:43 +0100)]
checkpkg_exceptions: add LLVM

The git mirror of LLVM doesn't have any tags we can track for release
announcements, so exclude llvm from the checkpkg test.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agollvm: Raise SkipRecipe exception for unsupported architectures
Nathan Rossi [Wed, 2 Aug 2017 11:09:16 +0000 (21:09 +1000)]
llvm: Raise SkipRecipe exception for unsupported architectures

When parsing this recipe on an unsupported or non-mappable architecture
an error is generated despite no dependencies on the recipe. E.g.

  ERROR: .../llvm_git.bb: cannot map 'microblazeel' to a supported llvm architecture

Instead of generating an error which might confuse users, raise a
SkipRecipe exception similar to other arch-style mapping functions (e.g.
go_map_arch). This avoids showing the error during parse, and prevents
the use of the recipe on unsupported targets. Resulting in an error like
so when trying to build llvm:

  ERROR: Nothing PROVIDES 'llvm'
  llvm was skipped: Cannot map 'microblazeel' to a supported LLVM architecture

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomesa, llvm: Use native version of llvm-config
Khem Raj [Tue, 1 Aug 2017 13:55:30 +0000 (06:55 -0700)]
mesa, llvm: Use native version of llvm-config

We have a variable YOCTO_ALTERNATE_EXE_PATH to point to
target sysroot, utilize this in mesa to use native version
of llvm-config to report values from target sysroot.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomesa: Depend on llvm-native
Khem Raj [Tue, 1 Aug 2017 13:55:29 +0000 (06:55 -0700)]
mesa: Depend on llvm-native

We need to get llvm-config tool staged which is provided by llvm-native

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomesa: Use chrpath to delete rpaths
Khem Raj [Tue, 1 Aug 2017 13:55:28 +0000 (06:55 -0700)]
mesa: Use chrpath to delete rpaths

It adds native sysroot chrpath due to llvm-config in cross compiling
we can delete them via chrpath, since libs are in standard paths rpath
is really not needed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoaction: new bitbake-layer plugin to create a simple layer
Leonardo Sandoval [Tue, 25 Jul 2017 22:37:17 +0000 (15:37 -0700)]
action: new bitbake-layer plugin to create a simple layer

Though the script bitbake-layers (from the bitbake project), this plugin
creates a simple layer with a example recipe, the latter with a single task
(do_build). Layer's license and priority is MIT and 6, respectively. Example
recipe and layer's priority can be specified through the command line.

[YOCTO #11567]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-publish-sdk: use hook to call git update-server-info
Andrea Galbusera [Mon, 31 Jul 2017 09:19:18 +0000 (11:19 +0200)]
scripts/oe-publish-sdk: use hook to call git update-server-info

The author's initial intent was to use a git hook to automatically call
update-server-info, but the wrong hook type was chosen (post-update). A
post-commit one will do the job, hence allowing to drop the explicit call to
update-server-info.

Signed-off-by: Andrea Galbusera <gizero@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtool: sdk-update: fix pulling updates from git
Andrea Galbusera [Mon, 31 Jul 2017 09:19:17 +0000 (11:19 +0200)]
devtool: sdk-update: fix pulling updates from git

Commit 4657bc9d165e51981e034e73e7b92552e873eef7 replaced the git pull logic with
the git fetch + git reset --hard combo, but resetting to HEAD does not really
pull in new commits from remote... Replace with resetting to the upstream branch
instead.

Signed-off-by: Andrea Galbusera <gizero@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopackage_manager: Fix support for NO_RECOMMENDATONS
Richard Röjfors [Sun, 30 Jul 2017 09:12:56 +0000 (11:12 +0200)]
package_manager: Fix support for NO_RECOMMENDATONS

When support for dnf was introduced the check of the
no NO_RECOMMENDATIONS variable got broken.

This fixes the issue by compairing to the string "1"
rather than the number 1.

Signed-off-by: Richard Röjfors <richard@puffinpack.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogtk-icon-utils-native: 3.22.16 -> 3.22.17
Huang Qiyu [Mon, 31 Jul 2017 01:41:50 +0000 (09:41 +0800)]
gtk-icon-utils-native: 3.22.16 -> 3.22.17

Update gtk-icon-utils-native from 3.22.16 to 3.22.17.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogtk+3: 3.22.16 -> 3.22.17
Huang Qiyu [Mon, 31 Jul 2017 01:41:02 +0000 (09:41 +0800)]
gtk+3: 3.22.16 -> 3.22.17

Update gtk+3 from 3.22.16 to 3.22.17.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agox86-base.inc: enable live image type
Ed Bartosh [Sun, 30 Jul 2017 10:30:56 +0000 (13:30 +0300)]
x86-base.inc: enable live image type

live image type was replaced by hddimg recently. This made
NOHDD and NOISO options ineffective as they only influence
live builds. It also causes image building failure for
image sizes >4Gb

Returned back live image type and disabled building iso image.
This doesn't change result (hddimg is built), but it makes
NOHDD and NOISO working as expected.

[YOCTO #11842]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agochrpath: use https for SRC_URI
Ross Burton [Sat, 29 Jul 2017 17:20:07 +0000 (18:20 +0100)]
chrpath: use https for SRC_URI

Alioth always redirects, so we might as well save time by looking in the right
place.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinitramfs-framework/setup-live: remove superfluous break
California Sullivan [Fri, 28 Jul 2017 22:20:02 +0000 (15:20 -0700)]
initramfs-framework/setup-live: remove superfluous break

This causes us to fall out of the module setup/run loop in the base init
script should "root=" be defined, causing a boot failure.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoautomake: Add missing libtool tag for cppasm language
Khem Raj [Thu, 27 Jul 2017 04:18:51 +0000 (21:18 -0700)]
automake: Add missing libtool tag for cppasm language

This is highlighted when CC is passing flags like -fPIE
which are stripped by libtool when building shared libs
and replaced with -fPIC, this actually results in CC
not matching the CC computed from cmdline created for
compiling and as a result libtool heuristic to compute
tags auotmatically fails.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibpng: upgrade to 1.6.31
Maxin B. John [Thu, 27 Jul 2017 12:24:54 +0000 (15:24 +0300)]
libpng: upgrade to 1.6.31

1.6.31 fixes pngpriv.h to work around failure to compile
arm/filter_neon.S.This bug was introduced in libpng-1.6.30beta01

No changes in License.The license checksums changed because of
update in Copyright dates in LICENSE and png.h files.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogettext.bbclass: also search for files in target sysroot
Patrick Ohly [Tue, 25 Jul 2017 14:40:59 +0000 (16:40 +0200)]
gettext.bbclass: also search for files in target sysroot

fwupd contains polkit policy files that it translates using polkit.its
and polkit.loc files that the next polkit release is going to
install (see https://github.com/hughsie/fwupd/issues/107).

In order to make that work with OE-core, the gettext tools must be
told to look also for files in the recipe-sysroot. Otherwise it only
uses the GETTEXTDATADIR set by the gettext-native tool wrappers, and
that only points to the files provided by gettext-native itself.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowebkitgtk: Do not use -isystem forcibly
Khem Raj [Tue, 25 Jul 2017 08:35:30 +0000 (01:35 -0700)]
webkitgtk: Do not use -isystem forcibly

this causes include_next <stdlib.h> to not find
this header since -isystem <sysroot> is added via
cmake, we alrady are using --sysroot so rely on that

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython3-pycairo: Pass -fPIC via CFLAGS
Khem Raj [Tue, 25 Jul 2017 08:35:29 +0000 (01:35 -0700)]
python3-pycairo: Pass -fPIC via CFLAGS

Fixes

| /mnt/a/oe/build/tmp/work/corei7-64-bec-linux/python3-pycairo/1.10.0-r2/recipe-sysroot-native/usr/bin/x86_64-bec-linu
x/x86_64-bec-linux-ld: src/cairomodule.c.1.o: relocation R_X86_64_PC32 against symbol `CairoError' can not be used whe
n making a shared object; recompile with -fPIC

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogo: Remove -fPIE -pie from SECURITY_PIE_CFLAGS
Khem Raj [Mon, 24 Jul 2017 00:47:48 +0000 (17:47 -0700)]
go: Remove -fPIE -pie from SECURITY_PIE_CFLAGS

External compilers will explicitly pass -fPIE -pie flags
unlike internal toolchain which does not use them, so the build
fails with external toolchains because, its passing these
flags to linker when building with -r option and fails to link

| /mnt/a/oe/build/tmp/work/corei7-64-bec-linux/go/1.8.3-r0/recipe-sysroot-native/usr/bin/x86_64-bec-linux/x86_64-bec-linux-ld: -r and -pie may not be used together

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokexec-tools: Remove -fPIE -pie from SECURITY_PIE_CFLAGS
Khem Raj [Mon, 24 Jul 2017 00:47:47 +0000 (17:47 -0700)]
kexec-tools: Remove -fPIE -pie from SECURITY_PIE_CFLAGS

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibsdl: Pass --tag option to libtool invocation
Khem Raj [Mon, 24 Jul 2017 00:47:46 +0000 (17:47 -0700)]
libsdl: Pass --tag option to libtool invocation

Helps in fixing errors when using external toolchain
and hardening flags

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>