]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agolib/oe/package_manager: bail if createrepo can't be found
Ross Burton [Thu, 15 Dec 2016 17:19:46 +0000 (17:19 +0000)]
lib/oe/package_manager: bail if createrepo can't be found

If createrepo isn't found then the errors later are mysterious, so explicitly
check and error out early if it isn't there.

(From OE-Core rev: e09636bbb3ea8ec58984197fd9c691bb908efe00)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotzdata: update to 2016j
Armin Kuster [Thu, 15 Dec 2016 15:21:45 +0000 (07:21 -0800)]
tzdata: update to 2016j

Briefly: Saratov, Russia moves from +03 to +04 on 2016-12-04.

  Changes to future time stamps

    Saratov, Russia switches from +03 to +04 on 2016-12-04 at 02:00.
    This hives off a new zone Europe/Saratov from Europe/Volgograd.
    (Thanks to Yuri Konotopov and Stepan Golosunov.)

  Changes to past time stamps

    The new zone Asia/Atyrau for Atyraū Region, Kazakhstan, is like
    Asia/Aqtau except it switched from +05/+06 to +04/+05 in spring
    1999, not fall 1994.  (Thanks to Stepan Golosunov.)

  Changes to past time zone abbreviations

    Asia/Gaza and Asia/Hebron now use "EEST", not "EET", to denote
summer time before 1948. The old use of "EET" was a typo.

(From OE-Core rev: a0b389b5f3effad5194109f9914dec6125b3569d)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotzcode-native: update to 2016j
Armin Kuster [Thu, 15 Dec 2016 15:21:44 +0000 (07:21 -0800)]
tzcode-native: update to 2016j

Changes to code

    zic no longer mishandles file systems that lack hard links, fixing
    bugs introduced in 2016g.  (Problems reported by Tom Lane.)
    Also, when the destination already contains symbolic links, zic
    should now work better on systems where the 'link' system call
    does not follow symbolic links.

Changes to documentation and commentary

    tz-link.htm now documents the relationship between release version
    numbers and development-repository commit tags.  (Suggested by
    Paul Koning.)

    The 'Theory' file now documents UT.

    iso3166.tab now accents "Curaçao", and commentary now mentions
the names "Cabo Verde" and "Czechia". (Thanks to Jiří Boháč.)

(From OE-Core rev: 3fb5ddce97af1d4ada0dcc7f9c0ceef6ac392918)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogstreamer1.0-plugins-bad: default to using egl
Nicolas Dechesne [Thu, 15 Dec 2016 14:40:11 +0000 (15:40 +0100)]
gstreamer1.0-plugins-bad: default to using egl

With the current set of PACKAGECONFIG, we end up building with 'gles2' and neither
'opengl', nor 'egl'. As a result we are building -bad with neither 'glx' nor
'egl' platform support. So let's make sure that we at least have egl by default
(since we default to 'gles2').

(From OE-Core rev: 4de8447c6536385ca134866682709efebf7d4e3d)

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-firmware: Split out Realtek chipsets rtl8188 rtl8723 rtl8821
Mike Looijmans [Thu, 15 Dec 2016 13:31:57 +0000 (14:31 +0100)]
linux-firmware: Split out Realtek chipsets rtl8188 rtl8723 rtl8821

Add rtl8188 rtl8712 rtl8723 rtl8821 packages to install only firmware for the
corresponding chipset. Uses a rather blunt approach by simply adding all firmware
files with matching prefix, to keep the package count down a bit.

(From OE-Core rev: 62a5c0a40d13594a0f16a01701e70dac5e492125)

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxf86-video-intel: fix upstream version check
Alexander Kanavin [Thu, 15 Dec 2016 12:48:09 +0000 (14:48 +0200)]
xf86-video-intel: fix upstream version check

Even though upstream hasn't tagged new versions for a long while,
we should not report a bogus tag as something that can be updated to.

(From OE-Core rev: e16e4892368ec2475853d69332f3732dbf7b06cd)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoupstream-version-is-even.bbclass: exclude various alphas, betas, pre-releases etc.
Alexander Kanavin [Thu, 15 Dec 2016 12:48:08 +0000 (14:48 +0200)]
upstream-version-is-even.bbclass: exclude various alphas, betas, pre-releases etc.

Was a problem with perl in particular.

(From OE-Core rev: cc40b3ad2c4a725f93d0b984f23d34d247cffb2f)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoghostscript: fix upstream version check
Alexander Kanavin [Thu, 15 Dec 2016 12:48:07 +0000 (14:48 +0200)]
ghostscript: fix upstream version check

(From OE-Core rev: 10001924baf112a4556c5e85c16c482cbf435950)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovala: update to 0.34.4
Alexander Kanavin [Thu, 15 Dec 2016 12:48:06 +0000 (14:48 +0200)]
vala: update to 0.34.4

(From OE-Core rev: 798af66e2e11baf53eff6b7f0e370fb77a1c5f72)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysprof: update to 3.22.3
Alexander Kanavin [Thu, 15 Dec 2016 12:48:05 +0000 (14:48 +0200)]
sysprof: update to 3.22.3

(From OE-Core rev: 4a8ea471e386adff9b8f8b535589e599c1491fa5)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoiso-codes: update to 3.72
Alexander Kanavin [Thu, 15 Dec 2016 12:48:04 +0000 (14:48 +0200)]
iso-codes: update to 3.72

(From OE-Core rev: 232ce36bb17643355b0b282063609147aa51bc1f)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoicu: update to 58.2
Alexander Kanavin [Thu, 15 Dec 2016 12:48:03 +0000 (14:48 +0200)]
icu: update to 58.2

(From OE-Core rev: 68eca85201c2e15ab5c197f3cc70d863fb021493)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognutls: update to 3.5.7
Alexander Kanavin [Thu, 15 Dec 2016 12:48:02 +0000 (14:48 +0200)]
gnutls: update to 3.5.7

Add a 0001-Do-not-add-cli-args.h-to-cli-args.stamp-Makefile-tar.patch
to fix a compile issue (incorrect creation of an empty header).

Add a libunistring dependency as gnutls has gained it.

(From OE-Core rev: b2ec343ad770c26f39f3a6d335e4bb3ccbf41aec)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoffmpeg: update to 3.2.2
Alexander Kanavin [Thu, 15 Dec 2016 12:48:01 +0000 (14:48 +0200)]
ffmpeg: update to 3.2.2

(From OE-Core rev: b9b50814dfb40f8d124be736f7af9ed4d69bc6b3)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocmake: update to 3.7.1
Alexander Kanavin [Thu, 15 Dec 2016 12:48:00 +0000 (14:48 +0200)]
cmake: update to 3.7.1

(From OE-Core rev: 1e15dea62cacdd5c3c1158962a55ca44cfb1726b)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoca-certificates: update to 20161130
Alexander Kanavin [Thu, 15 Dec 2016 12:47:59 +0000 (14:47 +0200)]
ca-certificates: update to 20161130

(From OE-Core rev: 81fa46071060920972f3dd1fe17c8dbada0c63b0)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobtrfs-tools: update to 4.8.5
Alexander Kanavin [Thu, 15 Dec 2016 12:47:58 +0000 (14:47 +0200)]
btrfs-tools: update to 4.8.5

(From OE-Core rev: ea806428471418a319754bd069491de6526e867d)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobabeltrace: update to 1.5.0
Alexander Kanavin [Thu, 15 Dec 2016 12:47:57 +0000 (14:47 +0200)]
babeltrace: update to 1.5.0

(From OE-Core rev: 08761df0559eca197121a27f8f5be1b48fc008cc)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoliburcu: update to 0.9.3
Alexander Kanavin [Thu, 15 Dec 2016 12:47:56 +0000 (14:47 +0200)]
liburcu: update to 0.9.3

Drop 0002-Support-for-aarch64_be.patch, it's merged upstream.

(From OE-Core rev: 2ecb187970c215177f17f2475dee8812ce7f750c)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibfm: update to 1.2.5
Alexander Kanavin [Thu, 15 Dec 2016 12:47:55 +0000 (14:47 +0200)]
libfm: update to 1.2.5

(From OE-Core rev: 4674c0894c268690735b433df40e397c85a073a8)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopigz: fix upstream version check
Alexander Kanavin [Thu, 15 Dec 2016 12:47:54 +0000 (14:47 +0200)]
pigz: fix upstream version check

(From OE-Core rev: 0cfe7cb744466271e196c9a080168b62c4affb9b)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofontconfig: Fix namespace conflicts with glibc
Khem Raj [Thu, 15 Dec 2016 00:06:08 +0000 (16:06 -0800)]
fontconfig: Fix namespace conflicts with glibc

glibc 2.25 will come with TS 18661-1 macro definitions in limits.h which ends with following errors

| ../../fontconfig-2.12.1/src/fcmatch.c:324:63: error: 'PRI_CHAR_WIDTH_STRONG' undeclared here (not in a function)
|  #define FC_OBJECT(NAME, Type, Cmp) { FC_##NAME##_OBJECT, Cmp, PRI_##NAME##_STRONG, PRI_##NAME##_WEAK },
|                                                                ^
| ../../fontconfig-2.12.1/src/fcobjs.h:54:1: note: in expansion of macro 'FC_OBJECT'
|  FC_OBJECT (CHAR_WIDTH,  FcTypeInteger, NULL)
|  ^~~~~~~~~
| ../../fontconfig-2.12.1/src/fcmatch.c:324:84: error: 'PRI_CHAR_WIDTH_WEAK' undeclared here (not in a function)
|  #define FC_OBJECT(NAME, Type, Cmp) { FC_##NAME##_OBJECT, Cmp, PRI_##NAME##_STRONG, PRI_##NAME##_WEAK },
|                                                                                     ^
| ../../fontconfig-2.12.1/src/fcobjs.h:54:1: note: in expansion of macro 'FC_OBJECT'
|  FC_OBJECT (CHAR_WIDTH,  FcTypeInteger, NULL)
|  ^~~~~~~~~
| make[3]: *** [Makefile:632: fcmatch.lo] Error 1

(From OE-Core rev: 3575826752e7140da493c7f560fb5fcf483fc9b4)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosudo: 1.8.17p1 -> 1.8.18p1
Huang Qiyu [Thu, 15 Dec 2016 09:24:07 +0000 (01:24 -0800)]
sudo: 1.8.17p1 -> 1.8.18p1

Upgrade sudo from 1.8.17p1 to 1.8.18p1.

(From OE-Core rev: 31bafcbcb59bdb370a918ad9b96d4b07af3993f2)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoe2fsprogs 1.43 -> 1.43.3
Zheng Ruoqin [Thu, 15 Dec 2016 02:42:30 +0000 (10:42 +0800)]
e2fsprogs 1.43 -> 1.43.3

Upgrade e2fsprogs from 1.43 to 1.43.3

(From OE-Core rev: 250729ed0183e09b8108239eb03b1c5c290ede46)

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonspr: set correct version in pkg-config file
Andreas Müller [Wed, 14 Dec 2016 22:28:24 +0000 (23:28 +0100)]
nspr: set correct version in pkg-config file

while we are at it clean up sed

(From OE-Core rev: 69e9f7ec8ba8649784a27e9c7dc7a6987a53c22e)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobusybox: add comments to separate Runit from SELinux content in defconfig
Robert P. J. Day [Wed, 14 Dec 2016 15:01:01 +0000 (10:01 -0500)]
busybox: add comments to separate Runit from SELinux content in defconfig

There is no break in busybox's "defconfig" file to show where Runit
settings suddenly morph into SELinux settings, so add some comments.

(From OE-Core rev: 0fa590ed6c26aa065a9da8edbf65436fa1f6d04f)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoghostscript 9.19 -> 9.20
Huang Qiyu [Tue, 13 Dec 2016 23:05:39 +0000 (15:05 -0800)]
ghostscript 9.19 -> 9.20

1)Upgrade ghostscript from 9.19 to 9.20.
2)Modify ghostscript-9.15-parallel-make.patch, since the data has been changed.

(From OE-Core rev: 4f3483c3a0ba22f46d768d78d6f56880e8ac5608)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxkbcommon: 0.6.1 -> 0.7.0
Huang Qiyu [Wed, 14 Dec 2016 13:04:00 +0000 (05:04 -0800)]
libxkbcommon: 0.6.1 -> 0.7.0

1)Upgrade libxkbcommon from 0.6.1 to 0.7.0.
2)License checksum changed,since the copyright years were updated.

(From OE-Core rev: 3f972e6a6b69da1b459e75ec1e1a5c9373427ae7)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxi: 1.7.7 -> 1.7.8
Huang Qiyu [Tue, 13 Dec 2016 14:36:55 +0000 (06:36 -0800)]
libxi: 1.7.7 -> 1.7.8

Upgrade libxi from 1.7.7 to 1.7.8.

(From OE-Core rev: f01dc7809a3ce7546e51076066875aabda42aea9)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowpa-supplicant: 2.5 -> 2.6
Zheng Ruoqin [Tue, 13 Dec 2016 07:49:44 +0000 (15:49 +0800)]
wpa-supplicant: 2.5 -> 2.6

1)Upgrade wpa-supplicant from 2.5 to 2.6.
2)Delete 5 patches below, since they are integrated upstream.
  0001-Reject-psk-parameter-set-with-invalid-passphrase-cha.patch
  0001-WPS-Reject-a-Credential-with-invalid-passphrase.patch
  0002-Reject-SET_CRED-commands-with-newline-characters-in-.patch
  0002-Remove-newlines-from-wpa_supplicant-config-network-o.patch
  0003-Reject-SET-commands-with-newline-characters-in-the-s.patch
3)License checksum changes are not related to license changes.

(From OE-Core rev: 878d411eb53e96bf78e902cc2345eccda8807bfc)

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutil-linux: 2.28.1 -> 2.29
Zheng Ruoqin [Tue, 13 Dec 2016 03:30:39 +0000 (11:30 +0800)]
util-linux: 2.28.1 -> 2.29

Upgrade util-linux from 2.28.1 to 2.29

(From OE-Core rev: a675e8219f09a92f1c9c9fccce449d0f0753a53f)

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoharfbuzz: upgrade to 1.3.4
Maxin B. John [Mon, 12 Dec 2016 15:16:23 +0000 (17:16 +0200)]
harfbuzz: upgrade to 1.3.4

1.3.3 -> 1.3.4

(From OE-Core rev: 7c053b83040d68eb17b12e90499f792f602cd340)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibunistring: Update version 0.9.6 -> 0.9.7
Maxin B. John [Mon, 12 Dec 2016 15:16:22 +0000 (17:16 +0200)]
libunistring: Update version 0.9.6 -> 0.9.7

The license has changed from LGPLv3+ to "LGPLv3+ or GPLv2"
        * README (Copyright): Rewrite section
        * doc/libunistring.texi (Licenses): Change accordingly

(From OE-Core rev: e06584e6f5fcf259dcd0a10383aa4d05b3e74b70)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoltp/posix: replace CWD with PWD
Jackie Huang [Mon, 12 Dec 2016 05:59:47 +0000 (13:59 +0800)]
ltp/posix: replace CWD with PWD

Backport a patch to replace CWD with PWD to avoid
error messages in test results:

basename: missing operand
Try 'basename --help' for more information.

(From OE-Core rev: 8665ccb5c3cefca43898caea06198e79504fdeff)

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoltp: avoid segmentation fault in netns tests
Jackie Huang [Mon, 12 Dec 2016 05:59:46 +0000 (13:59 +0800)]
ltp: avoid segmentation fault in netns tests

* backport a patch to avoid segmentation
  fault in netns tests.

* rename previous patch to have ordered
  prefix number.

(From OE-Core rev: 67f67da5d673ad60d3d3138ba32822679f565267)

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosubversion: Upgrade 1.9.4 -> 1.9.5
Richard Purdie [Tue, 13 Dec 2016 10:11:02 +0000 (10:11 +0000)]
subversion: Upgrade 1.9.4 -> 1.9.5

(From OE-Core rev: 4cfb7e9342978e77b0167441360330e66b9931cb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutils: Always use datastore's PATH for host_gcc_version
Ross Burton [Thu, 15 Dec 2016 19:09:16 +0000 (19:09 +0000)]
utils: Always use datastore's PATH for host_gcc_version

BUILD_CC may reference something like ccache and expect this to come from
ccache-native, we at least have some selftests which assume this. Modify the
code to use PATH when runnig BUILD_CC to ensure the tests continue to work
as expected.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest: wic: qemux86: use weak assignment for WKS_FILE
Maciej Borzecki [Thu, 15 Dec 2016 13:31:08 +0000 (14:31 +0100)]
selftest: wic: qemux86: use weak assignment for WKS_FILE

A follow-up of a fix introduced in
1b32c6ed025745cb06b7c28ca0fe9e416ce7abfa (selftest: wic: fix test_qemu).

Wic test_qemu fails on qemux86 due to a direct assignment of WKS_FILE in machine
configuration. Using default assignment allows WKS_FILE to be overwritten in
test setup.

Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts: remove True option to getVarFlag calls
Joshua Lock [Wed, 14 Dec 2016 21:13:07 +0000 (21:13 +0000)]
scripts: remove True option to getVarFlag calls

getVarFlag() now defaults to expanding by default, thus remove the
True option from getVarFlag() calls with a regex search and
replace.

Search made with the following regex:
getVarFlag ?\(( ?[^,()]*, ?[^,()]*), True\)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa: remove True option to getVarFlag calls
Joshua Lock [Wed, 14 Dec 2016 21:13:06 +0000 (21:13 +0000)]
meta: remove True option to getVarFlag calls

getVarFlag() now defaults to expanding by default, thus remove the
True option from getVarFlag() calls with a regex search and
replace.

Search made with the following regex:
getVarFlag ?\(( ?[^,()]*, ?[^,()]*), True\)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts: remove True option to getVar calls
Joshua Lock [Wed, 14 Dec 2016 21:13:05 +0000 (21:13 +0000)]
scripts: remove True option to getVar calls

getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.

Search made with the following regex: getVar ?\(( ?[^,()]*), True\)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa: remove True option to getVar calls
Joshua Lock [Wed, 14 Dec 2016 21:13:04 +0000 (21:13 +0000)]
meta: remove True option to getVar calls

getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.

Search made with the following regex: getVar ?\(( ?[^,()]*), True\)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agovalgrind: make ld-XXX.so strlen intercept optional
Jackie Huang [Wed, 14 Dec 2016 02:26:13 +0000 (10:26 +0800)]
valgrind: make ld-XXX.so strlen intercept optional

Hack: Depending on how glibc was compiled (e.g. optimised
for size or built with _FORTIFY_SOURCE enabled) the strlen
symbol might not be found in ld-XXX.so. Therefore although
we should still try to intercept it, don't make it mandatory
to do so.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuildhistory-diff: report directory renames
Ed Bartosh [Mon, 28 Nov 2016 17:28:03 +0000 (19:28 +0200)]
buildhistory-diff: report directory renames

The script detects directory renaming if two different
directories with the same set of files are added and removed.

[YOCTO #10691]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouninative: rebuild uninative for gcc 4.8 and 4.9
Ed Bartosh [Tue, 13 Dec 2016 23:55:04 +0000 (01:55 +0200)]
uninative: rebuild uninative for gcc 4.8 and 4.9

Some c++ libraries fail to build if uninative is built
with gcc 5.x and host gcc version is either 4.8 or 4.9.

The issue should be solved by making separate uninative sstate
directory structure sstate-cache/universal-<gcc version> for host gcc
versions 4.8 and 4.9. This causes rebuilds of uninative if host gcc
is either 4.8 or 4.9 and it doesn't match gcc version used to build
uninative.

[YOCTO #10441]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosystemd: disable 'libdir' QA check
Mark Asselstine [Mon, 12 Dec 2016 19:36:48 +0000 (14:36 -0500)]
systemd: disable 'libdir' QA check

When building systemd with multilib support enabled in your build you
will get the following QA warnings (if the 'libdir' QA check is
enabled.)

WARNING: systemd-1_232-r0 do_package_qa: QA Issue: systemd-dbg: found \
 library in wrong location: /lib/systemd/.debug/libsystemd-shared-232.so
systemd: found library in wrong location: /lib/systemd/libsystemd-shared.so
systemd: found library in wrong location: /lib/systemd/libsystemd-shared-232.so [libdir]

Since systemd 231 upstream has included an 'internal' library which
they explicitly place in the application specific /lib/systemd
directory. You can see some of the discussion about this placement
here https://github.com/systemd/systemd/issues/3810

This placement is being picked up by the QA checker since when
multilibs are enabled it expects all libraries to be in lib32 or
lib64. Since the systemd and systemd-dbg packages don't contain any
other libraries we can respect the upstream placement and skip this QA
check for these packages. Unfortunately the QA mechanism doesn't allow
us to specify individual files so this approach is the best we can do.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxml2: Fix more NULL pointer derefs
Andrej Valek [Mon, 12 Dec 2016 13:20:21 +0000 (14:20 +0100)]
libxml2: Fix more NULL pointer derefs

The NULL pointer dereferencing could produced some
security problems.
This is a preventive security fix.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxml2: fix CVE-2016-4658 Disallow namespace nodes in XPointer points and ranges
Andrej Valek [Mon, 12 Dec 2016 13:20:20 +0000 (14:20 +0100)]
libxml2: fix CVE-2016-4658 Disallow namespace nodes in XPointer points and ranges

Namespace nodes must be copied to avoid use-after-free errors.
But they don't necessarily have a physical representation in a
document, so simply disallow them in XPointer ranges.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxml2: Necessary changes before fixing CVE-2016-5131
Andrej Valek [Mon, 12 Dec 2016 13:20:19 +0000 (14:20 +0100)]
libxml2: Necessary changes before fixing CVE-2016-5131

xpath:
 - Check for errors after evaluating first operand.
 - Add sanity check for empty stack.
 - Include comparation in changes from xmlXPathCmpNodesExt to xmlXPathCmpNodes

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopostinst: Add a test case to verify postinst scripts behavior
Jose Perez Carranza [Tue, 6 Dec 2016 17:29:01 +0000 (11:29 -0600)]
postinst: Add a test case to verify postinst scripts behavior

Add test case that verify behavior of postinst scripts at
roofts time and when is delayed to the first boot directly
on the target.

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest: Test needed to verify postinst order
Francisco Pedraza [Thu, 24 Nov 2016 21:54:53 +0000 (15:54 -0600)]
selftest: Test needed to verify postinst order

It verifies the following:

1. Compile a minimal image.
2. The compiled image will add the layer with the recipe postinst,
previously created at:
"meta-selftest/recipes-test"
3. Run QEMU.
4. Validate the task execution order.
[YOCTO #5319]

Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/runqemu: Allow to use qemu from host.
Mariano Lopez [Tue, 22 Nov 2016 17:31:53 +0000 (11:31 -0600)]
scripts/runqemu: Allow to use qemu from host.

This will add support to use qemu from the running host,
with this is possible to put qemu-native in ASSUME_PROVIDED
variable.

By default it will try to get qemu from the build sysroot,
and only if it fails will try to use the host's qemu.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosysvinit-inittab: fix getty device removal
Leonardo Sandoval [Tue, 29 Nov 2016 21:56:52 +0000 (15:56 -0600)]
sysvinit-inittab: fix getty device removal

getty devices were not being removed in some cases because device name
was not at the end of the line, for example a ttyS1 device:

S1:12345:respawn:/bin/start_getty 115200 ttyS1 vt102

Removing this limitation allows sed to remove any line containing
the device.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosqlite: build position-independent code
Ross Burton [Thu, 1 Dec 2016 14:56:23 +0000 (14:56 +0000)]
sqlite: build position-independent code

pseudo links against this and uses PIC, so some toolchain combinations will
refuse to link against sqlite unless it is also PIC.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobusybox: allow libiproute to handle table ids larger than 255
Lukasz Nowak [Tue, 13 Dec 2016 16:19:28 +0000 (16:19 +0000)]
busybox: allow libiproute to handle table ids larger than 255

These changes are required for compatibility with ConnMan, which by default
uses table ids greater than 255.

Signed-off-by: Lukasz Nowak <lnowak@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa: move lib/oe tests to oe-selftest
Ross Burton [Tue, 13 Dec 2016 16:31:02 +0000 (16:31 +0000)]
oeqa: move lib/oe tests to oe-selftest

These tests don't get ran often (as demonstrated by the fact that some were not
ported to Python 3), so move them to oeqa/selftest so they get executed
frequently and can be extended easily.

[ YOCTO #7376 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibsdl2: fix build on wayland(-dev)less hosts
Andreas Müller [Tue, 6 Dec 2016 00:19:21 +0000 (01:19 +0100)]
libsdl2: fix build on wayland(-dev)less hosts

* add sysroot prefix to wayland core protocols
* do not use pkg-config to find wayland-scanner

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibsdl2: add wayland-protocols and -native to to depends of PACKAGECONFIG[wayland]
Andreas Müller [Tue, 6 Dec 2016 00:19:20 +0000 (01:19 +0100)]
libsdl2: add wayland-protocols and -native to to depends of PACKAGECONFIG[wayland]

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibsdl2: add EXTRA_OECONF[vardepsexclude] = "MACHINE"
Andreas Müller [Tue, 6 Dec 2016 00:19:19 +0000 (01:19 +0100)]
libsdl2: add EXTRA_OECONF[vardepsexclude] = "MACHINE"

fixes Martin's MACHINE checksum test [1]

[1] http://lists.openembedded.org/pipermail/openembedded-core/2016-November/129464.html

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoextrausers.bbclass: Use PACKAGE_INSTALL instead of IMAGE_INSTALL
Jackie Huang [Tue, 13 Dec 2016 08:24:48 +0000 (16:24 +0800)]
extrausers.bbclass: Use PACKAGE_INSTALL instead of IMAGE_INSTALL

The initramfs image recipes changed to use PACKAGE_INSTALL
so they will not be affected by IMAGE_INSTALL, and will cause
error when inherit extrausers:

| ERROR: core-image-minimal-initramfs-1.0-r0 do_rootfs:
  core-image-minimal-initramfs: usermod command did not succeed.

So use PACKAGE_INSTALL as well in extrausers.bbclass to fix it.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest: buildoptions: skip read-only-image test depending on distro
Leonardo Sandoval [Fri, 18 Nov 2016 17:53:22 +0000 (11:53 -0600)]
selftest: buildoptions: skip read-only-image test depending on distro

Poky-tiny cannot build core-image-sato, so skip test (read-only-image)
in this case.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest: bblayers: remove linux kernel checks for show-recipes check
Leonardo Sandoval [Fri, 18 Nov 2016 18:38:03 +0000 (12:38 -0600)]
selftest: bblayers: remove linux kernel checks for show-recipes check

Preferred kernel recipes depends on the distro, so remove the kernel
checks to avoid failures on non-poky distros and make the test
distro agnostic.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest: bbtests: use minimal image so all distros can execute it
Leonardo Sandoval [Fri, 18 Nov 2016 17:37:53 +0000 (11:37 -0600)]
selftest: bbtests: use minimal image so all distros can execute it

poky-tiny distro cannot build full-cmdline image, so use an image
(core-image-minimal) that can be built in all distros.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest: base: new object member to store the DISTRO value
Leonardo Sandoval [Fri, 18 Nov 2016 17:27:19 +0000 (11:27 -0600)]
selftest: base: new object member to store the DISTRO value

Instead of quering it multiple times, query once and use it on
test method skip checks. Also, rename current distro sstate object
member to a more meaninful name.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/utils/commands.py: Fix get_bb_vars() when called without arguments
Mariano Lopez [Wed, 14 Dec 2016 07:45:21 +0000 (07:45 +0000)]
oeqa/utils/commands.py: Fix get_bb_vars() when called without arguments

Commit 9d55e9d489cd78be592fb9b4d6484f9060c62fdd broke calling get_bb_vars()
when called without arguments. This fix this issue.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-selftest: add basic tinfoil tests
Paul Eggleton [Tue, 13 Dec 2016 07:09:46 +0000 (20:09 +1300)]
oe-selftest: add basic tinfoil tests

Add some tests to verify that the new tinfoil API is operating
correctly.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-selftest: devtool: improve test_devtool_modify slightly
Paul Eggleton [Tue, 13 Dec 2016 07:09:45 +0000 (20:09 +1300)]
oe-selftest: devtool: improve test_devtool_modify slightly

* Check that man .in file actually gets modified, since sed -i doesn't
  fail if it it doesn't
* Use a variable for man file path

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodevtool: prevent BBHandledException from showing traceback
Paul Eggleton [Tue, 13 Dec 2016 07:09:44 +0000 (20:09 +1300)]
devtool: prevent BBHandledException from showing traceback

If we don't catch this then attempting to run devtool in non-memres mode
when bitbake is already running will produce a traceback instead of just
an error message.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodevtool: extract: disable basehash mismatch errors
Paul Eggleton [Tue, 13 Dec 2016 07:09:43 +0000 (20:09 +1300)]
devtool: extract: disable basehash mismatch errors

Using the setVariable commands here followed by buildFile will result in
"basehash mismatch" errors, and that's expected since we are deviating
*at runtime* from what was previously seen by changing these variable
values. Set BB_HASH_IGNORE_MISMATCH to turn off the errors.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe/recipeutils: drop parse_recipe_simple()
Paul Eggleton [Tue, 13 Dec 2016 07:09:42 +0000 (20:09 +1300)]
lib/oe/recipeutils: drop parse_recipe_simple()

This was intended to be used with tinfoil, but tinfoil now has its own
parse_recipe() method to do this which works properly in the memres
case.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodevtool: fix extraction of source to work in memres mode
Paul Eggleton [Tue, 13 Dec 2016 07:09:41 +0000 (20:09 +1300)]
devtool: fix extraction of source to work in memres mode

Extracting the source for a recipe (as used by devtool's extract, modify
and upgrade subcommands) requires us to run do_fetch, do_unpack,
do_patch and any tasks that the recipe has inserted inbetween, and do so
with a modified datastore primarily so that we can redirect WORKDIR and
STAMPS_DIR in order to have the files written out to a place of our
choosing and avoid stamping the tasks as having executed in a real build
context respectively. However, this all gets much more difficult when in
memres mode since we can't call internal functions such as
bb.build.exec_func() directly - instead we need to execute the tasks on
the server. To do this we use the buildFile command which already exists
for the purpose of supporting bitbake -b, and setVariable commands to
set up the appropriate datastore.

(I did look at passing the modified datastore to the buildFile command
instead of using setVar() on the main datastore, however its use of
databuilder makes that very difficult, and we'd also need a different
method of getting the changes in the datastore over to the worker as
well.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorecipetool: add OE lib path
Paul Eggleton [Tue, 13 Dec 2016 07:09:40 +0000 (20:09 +1300)]
recipetool: add OE lib path

The autotools code imports oe.package; we weren't experiencing a problem
with this probably due to OE itself adding that path previously.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/patch: move several functions to oe.patch
Paul Eggleton [Tue, 13 Dec 2016 07:09:39 +0000 (20:09 +1300)]
classes/patch: move several functions to oe.patch

Move patch_path(), src_patches() and should_apply() to oe.patch, making
them easier to call from elsewhere (particularly across the
UI/server boundary).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/patch: move in logic to commit for additional tasks
Paul Eggleton [Tue, 13 Dec 2016 07:09:38 +0000 (20:09 +1300)]
classes/patch: move in logic to commit for additional tasks

If PATCHTOOL is "git", and PATCH_COMMIT_FUNCTIONS is set to "1", for
additional tasks between do_unpack and do_patch, make a git commit. This
logic was previously implemented in devtool itself, but it makes more
sense for it to be implemented in the patch class since that's where the
rest of the logic is for this (or in lib/oe/patch.py). It also makes
it possible for this to work with tinfoil2.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/base: fix license file checksumming when source not under TMPDIR
Paul Eggleton [Tue, 13 Dec 2016 07:09:37 +0000 (20:09 +1300)]
classes/base: fix license file checksumming when source not under TMPDIR

With the changes to the code for extracting source for a recipe, we are
properly executing the tasks for a recipe, which means their stamps (and
therefore signatures) are important. When running devtool extract on
the lsof recipe I noticed that do_fetch and do_unpack were executing a
second time when we called for do_patch, and this turned out to be
because LIC_FILES_CHKSUM in that recipe contains an entry which
is an absolute path (has ${S} at the start). Normally this wouldn't be
an issue since S is under TMPDIR and thus the existing code would ignore
it, however devtool's extraction code extracts to a temporary directory
which is not under TMPDIR; the result was the path to this file was not
being ignored and the second time around when the license file had been
extracted it was incorporated into the signature. We don't want this, so
explicitly exclude S as well as B and WORKDIR for good measure.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodevtool / recipetool: use tinfoil parsing API
Paul Eggleton [Tue, 13 Dec 2016 07:09:36 +0000 (20:09 +1300)]
devtool / recipetool: use tinfoil parsing API

Use Tinfoil.parse_recipe_file() and Tinfoil.parse_recipe() instead of
the recipeutils equivalents, and replace any local duplicate
implementations. This not only tidies up the code but also allows these
calls to work in memres mode.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-selftest: use tinfoil.parse_recipe()
Paul Eggleton [Tue, 13 Dec 2016 07:09:35 +0000 (20:09 +1300)]
oe-selftest: use tinfoil.parse_recipe()

Use tinfoil.parse_recipe() in order to allow oe-selftest to be used in
memres mode.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-selftest: make tinfoil quiet when using to start QEMU
Paul Eggleton [Tue, 13 Dec 2016 07:09:34 +0000 (20:09 +1300)]
oe-selftest: make tinfoil quiet when using to start QEMU

We don't need to see the parsing/cache loading message in the
oe-selftest output, so use the newly added quiet option to disable it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe/recipeutils: use cooker function instead of bb.providers
Paul Eggleton [Tue, 13 Dec 2016 07:09:33 +0000 (20:09 +1300)]
lib/oe/recipeutils: use cooker function instead of bb.providers

We now have a function in cooker itself that can do this lookup;
additionally, the rewritten tinfoil's cooker adapter has its own
implementation that can work remotely, so if we use it then this
function can work in that scenario as well.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodevtool: package: don't try to initialise tinfoil twice
Paul Eggleton [Wed, 14 Dec 2016 08:49:50 +0000 (21:49 +1300)]
devtool: package: don't try to initialise tinfoil twice

setup_tinfoil() already calls prepare(), we don't need to call it again
ourselves and doing so with tinfoil2 results in "ERROR: Only one copy of
bitbake should be run against a build directory". Calling prepare()
twice should probably still be allowed, so that ought to be fixed
separately, but in the mean time this code is still wrong so fix it
here.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/image: suppress log_check mechanism for warnings/errors logged through BitBake
Paul Eggleton [Mon, 12 Dec 2016 22:05:06 +0000 (11:05 +1300)]
classes/image: suppress log_check mechanism for warnings/errors logged through BitBake

If you printed a warning through bb.warn() / bbwarn or an error through
bb.error() / bberror, this was also being picked up by our log_check
mechanism that was designed to pick up warnings and errors printed by
other programs used during do_rootfs. This meant you saw not only the
warning or error itself, you saw it a second time through log_check,
which is a bit ugly. Use the just-added BB_TASK_LOGGER to access the
logger and add a handler that we can use to find out if any warning or
error we find in the logs is one we should ignore as it has already been
printed.

Fixes [YOCTO #8223].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe/rootfs: fix log_check warnings being printed twice with RPM packaging
Paul Eggleton [Mon, 12 Dec 2016 22:05:05 +0000 (11:05 +1300)]
lib/oe/rootfs: fix log_check warnings being printed twice with RPM packaging

We were calling _log_check() in the RPM-specific rootfs class as well as
in the base class; this is unnecessary and resulted in any errors/warnings
generated during the actual package installation time triggering two warnings
instead of one. Drop the call from RpmRootfs._create() to fix this.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-pkgdata-util: Make read-value handle override variables
Ola x Nilsson [Mon, 12 Dec 2016 16:19:29 +0000 (17:19 +0100)]
oe-pkgdata-util: Make read-value handle override variables

Some variables in pkgdata files have a package-name override.  When
the bare variable can not be found, try with the override-variant.

PKGSIZE is one such variable, and already had special code to handle this.

Test included.

Signed-off-by: Ola x Nilsson <ola.x.nilsson@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibpcap: Disable exposed bits of WinPCAP remote capture support
Fabio Berton [Tue, 22 Nov 2016 18:15:59 +0000 (16:15 -0200)]
libpcap: Disable exposed bits of WinPCAP remote capture support

Disable bits of remote capture support inherited from the WinPCAP merge
which cause applications to fails to build if they define HAVE_REMOTE.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxf86-input-libinput: Upgrade 0.22 -> 0.23
Jussi Kukkonen [Mon, 12 Dec 2016 10:11:49 +0000 (12:11 +0200)]
xf86-input-libinput: Upgrade 0.22 -> 0.23

Bug fixes + libinput now supports tablets (but wacom driver is
used instead if it is installed).

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxf86-video-vmware: Upgrade 13.1.0 -> 13.2.1
Jussi Kukkonen [Mon, 12 Dec 2016 10:11:48 +0000 (12:11 +0200)]
xf86-video-vmware: Upgrade 13.1.0 -> 13.2.1

Bug fixes, ABI 23 support.
Rebase the add-option-for-vmwgfx patch.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxf86-video-omap: Upgrade 0.4.4 -> 0.4.5
Jussi Kukkonen [Mon, 12 Dec 2016 10:11:47 +0000 (12:11 +0200)]
xf86-video-omap: Upgrade 0.4.4 -> 0.4.5

Support ABI 23.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxf86-input-synaptics: Remove git recipe
Jussi Kukkonen [Mon, 12 Dec 2016 10:11:46 +0000 (12:11 +0200)]
xf86-input-synaptics: Remove git recipe

Last source revision is from 8 years ago.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxf86-input-synaptics: Upgrade 1.8.3 -> 1.9.0
Jussi Kukkonen [Mon, 12 Dec 2016 10:11:45 +0000 (12:11 +0200)]
xf86-input-synaptics: Upgrade 1.8.3 -> 1.9.0

Bug fixes, new hw support, support for XINPUT ABI 23.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxf86-input-mouse: Remove git recipe
Jussi Kukkonen [Mon, 12 Dec 2016 10:11:44 +0000 (12:11 +0200)]
xf86-input-mouse: Remove git recipe

Last used revision is from 8 years ago.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxf86-input-mouse: Upgrade 1.9.1 -> 1.9.2
Jussi Kukkonen [Mon, 12 Dec 2016 10:11:43 +0000 (12:11 +0200)]
xf86-input-mouse: Upgrade 1.9.1 -> 1.9.2

Tiny update with ABI 23/24 support.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxf86-input-keyboard: Remove git recipe
Jussi Kukkonen [Mon, 12 Dec 2016 10:11:42 +0000 (12:11 +0200)]
xf86-input-keyboard: Remove git recipe

Last used revision was from 8 years ago.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxf86-input-keyboard: Upgrade 1.8.1 -> 1.9.0
Jussi Kukkonen [Mon, 12 Dec 2016 10:11:41 +0000 (12:11 +0200)]
xf86-input-keyboard: Upgrade 1.8.1 -> 1.9.0

Small update with ABI 23 support.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxf86-input-evdev: Upgrade 2.10.3 -> 2.10.4
Jussi Kukkonen [Mon, 12 Dec 2016 10:11:40 +0000 (12:11 +0200)]
xf86-input-evdev: Upgrade 2.10.3 -> 2.10.4

Tiny update to XINPUT ABI 24.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxserver-xorg: Upgrade 1.18.4 -> 1.19.0
Jussi Kukkonen [Mon, 12 Dec 2016 10:11:39 +0000 (12:11 +0200)]
xserver-xorg: Upgrade 1.18.4 -> 1.19.0

* xserver depends on xfont2 now.
* xwayland support requires wayland-scanner: Add patch to find
  wayland-scanner and protocol files while cross-compiling.
* patch MONOTONIC_CLOCK check so it works when cross-compiling
  (otherwise we always end with no monotonic clock and xwayland
  compile fails)
* Add vardepsexclude for MACHINE to ensure consistent hashes (RB)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxfont2: Add recipe
Jussi Kukkonen [Mon, 12 Dec 2016 10:11:38 +0000 (12:11 +0200)]
libxfont2: Add recipe

This is the same old libxfont but with a new API.
xserver-xorg 1.19 depends on libxfont2.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogcr: add missing dependencies for vapi
Jackie Huang [Mon, 12 Dec 2016 05:22:14 +0000 (13:22 +0800)]
gcr: add missing dependencies for vapi

According to the vapi_DEPS definition:
gcr-3.vapi depends on gck-1.vapi,
gcr-ui-3.vapi depends on gck-1.vapi and gcr-3.vapi

But these dependencies are missing for the make targets,
so it will fail when build in parallel:
error: Package `gck-1' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `gcr-3' not found in specified Vala API directories or GObject-Introspection GIR directories

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibtiff: Update to 4.0.7
Armin Kuster [Sat, 10 Dec 2016 17:38:43 +0000 (09:38 -0800)]
libtiff: Update to 4.0.7

Major changes:
The libtiff tools bmp2tiff, gif2tiff, ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from the distribution, used for demos.

CVEs fixed:
CVE-2016-9297
CVE-2016-9448
CVE-2016-9273
CVE-2014-8127
CVE-2016-3658
CVE-2016-5875
CVE-2016-5652
CVE-2016-3632

plus more that are not identified in the changelog.

removed patches integrated into update.
more info: http://libtiff.maptools.org/v4.0.7.html

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoparselogs.py: Don't clog QA with Joule errors
California Sullivan [Sat, 10 Dec 2016 01:00:27 +0000 (17:00 -0800)]
parselogs.py: Don't clog QA with Joule errors

The Joule is very new hardware and there is ongoing kernel and firmware
work to fix these issues, which will be available in future kernel and
firmware releases. In the meantime, don't clog QA reports.

[YOCTO #10611]

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel-yocto: explicitly trap subcommand errors
Bruce Ashfield [Fri, 9 Dec 2016 19:28:00 +0000 (14:28 -0500)]
kernel-yocto: explicitly trap subcommand errors

To trap errors and halt processing, do_kernel_metadata was recently
switched to exit on any non zero return code. While the concept is
sound, there are subcommands that have legitimate non-zero return
codes.

Instead of removing set +e, we'll explicitly check the return code
of the commands that can error, and throw a bbfatal to alert the
user.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>