]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agolinux-yocto/4.9: bump to v4.9.8
Bruce Ashfield [Tue, 14 Feb 2017 21:14:16 +0000 (16:14 -0500)]
linux-yocto/4.9: bump to v4.9.8

Integrating the -stable releases. Changelog is as follows:

   c8ea2f3b8247 Linux 4.9.8
   b5b4d4a9141e xfs: fix bmv_count confusion w/ shared extents
   5d44dd54bd57 xfs: clear _XBF_PAGES from buffers when readahead page
   29f96b7e9023 xfs: extsize hints are not unlikely in xfs_bmap_btalloc
   aab858dabd5e xfs: remove racy hasattr check from attr ops
   29094164ea99 xfs: verify dirblocklog correctly
   214d55efa255 xfs: fix COW writeback race
   29f319275e76 xfs: fix xfs_mode_to_ftype() prototype
   d062d90c35f2 xfs: don't wrap ID in xfs_dq_get_next_id
   d3201a14b36a xfs: sanity check inode di_mode
   43ce5921773b xfs: sanity check inode mode when creating new dentry
   b5f68e24cc7b xfs: replace xfs_mode_to_ftype table with switch statement
   4fac84ba1da7 xfs: add missing include dependencies to xfs_dir2.h
   e5325fcf70b1 xfs: sanity check directory inode di_size
   624e54b5aff1 xfs: make the ASSERT() condition likely
   4f4d5082ec73 xfs: don't print warnings when xfs_log_force fails
   e9b776519107 xfs: don't rely on ->total in xfs_alloc_space_available
   6b81365b1e57 xfs: adjust allocation length in xfs_alloc_space_available
   c63f4d3aa09d xfs: fix bogus minleft manipulations
   d20e4ad06c4b xfs: bump up reserved blocks in xfs_alloc_set_aside
   9f42bc4f9c1c net: dsa: Bring back device detaching in dsa_slave_suspend()
   e972cce0c833 lwtunnel: Fix oops on state free after encap module unload
   89c2588627c2 net: Specify the owning module for lwtunnel ops
   087c2ecb21af qmi_wwan/cdc_ether: add device ID for HP lt2523 (Novatel E371) WWAN card
   93ff5e03bcba af_unix: move unix_mknod() out of bindlock
   37b27b20a8a9 r8152: don't execute runtime suspend if the tx is not empty
   ad864d9fce0e net: mpls: Fix multipath selection for LSR use case
   74423145d931 bridge: netlink: call br_changelink() during br_dev_newlink()
   087dced61adc net/mlx5e: Do not recycle pages from emergency reserve
   0c687a735cdb tcp: initialize max window for a new fastopen socket
   79453ab88164 ipv6: addrconf: Avoid addrconf_disable_change() using RCU read-side lock
   e9db042dca20 lwtunnel: fix autoload of lwt modules
   b335e6566661 net: phy: bcm63xx: Utilize correct config_intr function
   948e137ad9ba net: fix harmonize_features() vs NETIF_F_HIGHDMA
   d1c95f9ce102 vxlan: fix byte order of vxlan-gpe port number
   1e7cbb413f63 virtio-net: restore VIRTIO_HDR_F_DATA_VALID on receiving
   3eab5dd0eb19 virtio: don't set VIRTIO_NET_HDR_F_DATA_VALID on xmit
   b260a714a638 net sched actions: fix refcnt when GETing of action after bind
   2d6b61ec9d3a ax25: Fix segfault after sock connection timeout
   c7a5df92d1e8 ip6_tunnel: Account for tunnel header in tunnel MTU
   08e650708dd0 ravb: do not use zero-length alignment DMA descriptor
   77ce30dc4df4 mlx4: do not call napi_schedule() without care
   18767acb7b67 openvswitch: maintain correct checksum state in conntrack actions
   3524f64224bd tcp: fix tcp_fastopen unaligned access complaints on sparc
   b66b1f5ac33d net: systemport: Decouple flow control from __bcm_sysport_tx_reclaim
   958bb1bdc2c2 net: ipv4: fix table id in getroute response
   6980c52c4efb net: lwtunnel: Handle lwtunnel_fill_encap failure
   ec1aa8d49532 mlxsw: pci: Fix EQE structure definition
   4ec59d1fe470 mlxsw: switchx2: Fix memory leak at skb reallocation
   7c249f3306b6 mlxsw: spectrum: Fix memory leak at skb reallocation
   5b3df4401064 netvsc: add rcu_read locking to netvsc callback
   a37f2311e63c r8152: fix the sw rx checksum is unavailable
   fd2ffe57dda0 Linux 4.9.7
   b59dd202f231 drm/i915: Remove WaDisableLSQCROPERFforOCL KBL workaround.
   922813f4d66f perf/core: Fix concurrent sys_perf_event_open() vs. 'move_group' race
   f5f415c13209 mm, memcg: do not retry precharge charges
   98185d4b18a1 platform/x86: intel_mid_powerbtn: Set IRQ_ONESHOT
   adb260d15134 platform/x86: mlx-platform: free first dev on error
   776050a9b55e virtio_mmio: Set DMA masks appropriately
   143a9ad4e68c memory_hotplug: make zone_can_shift() return a boolean value
   da1fdb8456ac pinctrl: baytrail: Rectify debounce support
   583eded5860b pinctrl: uniphier: fix Ethernet (RMII) pin-mux setting for LD20
   35948ae694c0 pinctrl: broxton: Use correct PADCFGLOCK offset
   668a827a6c9d s5k4ecgx: select CRC32 helper
   9a335996bfcf IB/rxe: Prevent from completer to operate on non valid QP
   fed1e89a16e3 IB/rxe: Fix rxe dev insertion to rxe_dev_list
   c81ee4ed9c0d IB/umem: Release pid in error and ODP flow
   d7c3d7e453b7 drm/i915: Check for NULL atomic state in intel_crtc_disable_noatomic()
   181478cdb75e drm/i915: Fix calculation of rotated x and y offsets for planar formats
   ff4956555513 drm/i915: Don't init hpd polling for vlv and chv from runtime_suspend()
   8d7c76ae613e drm/i915: Don't leak edid in intel_crt_detect_ddc()
   2cff678d0bb5 drm/i915: prevent crash with .disable_display parameter
   9913aca2d587 drm/i915: Clear ret before unbinding in i915_gem_evict_something()
   1b8ff91ae545 v4l: tvp5150: Don't override output pinmuxing at stream on/off time
   11e5015ae1d1 v4l: tvp5150: Fix comment regarding output pin muxing
   d25f9bfeb62f v4l: tvp5150: Reset device at probe time, not in get/set format handlers
   fe6531075e1d pctv452e: move buffer to heap, no mutex
   0bd3cb8d470b iw_cxgb4: free EQ queue memory on last deref
   cb1d48f55a6d SUNRPC: cleanup ida information when removing sunrpc module
   5637949edb50 NFSv4.0: always send mode in SETATTR after EXCLUSIVE4
   0a7023506112 NFSv4.1: Fix a deadlock in layoutget
   73fdda3b01cd nfs: Don't increment lock sequence ID after NFS4ERR_MOVED
   2b95f1210e50 parisc: Don't use BITS_PER_LONG in userspace-exported swab.h header
   ca332b96ba62 ARC: [arcompact] handle unaligned access delay slot corner case
   9d5f2c151ec0 ARC: udelay: fix inline assembler by adding LP_COUNT to clobber list
   50f5972cc231 can: ti_hecc: add missing prepare and unprepare of the clock
   9f56548b0077 can: c_can_pci: fix null-pointer-deref in c_can_start() - set device pointer
   a1af471b4151 IB/srp: fix invalid indirect_sg_entries parameter value
   c2293e76babe IB/srp: fix mr allocation when the device supports sg gaps
   24be606cd3b4 IB/iser: Fix sg_tablesize calculation
   95600605ffaa IB/cxgb3: fix misspelling in header guard
   d7f56ee1198a s390/ptrace: Preserve previous registers for short regset write
   62d7f2123f19 s390/mm: Fix cmma unused transfer from pgste into pte
   97a2e39b7ab9 RDMA/cma: Fix unknown symbol when CONFIG_IPV6 is not enabled
   ffb97c11d05f Btrfs: remove ->{get, set}_acl() from btrfs_dir_ro_inode_operations
   ad80fada9d6d Btrfs: disable xattr operations on subvolume directories
   79babd4a6ce2 Btrfs: remove old tree_root case in btrfs_read_locked_inode()
   959f9709c025 ISDN: eicon: silence misleading array-bounds warning
   485952414360 xfs: prevent quotacheck from overloading inode lru
   03707d6c36f9 sysctl: fix proc_doulongvec_ms_jiffies_minmax()
   c7556867782e userns: Make ucounts lock irq-safe
   13e39d5930ec vring: Force use of DMA API for ARM-based systems with legacy devices
   96e5cec10e7a mm, page_alloc: fix premature OOM when racing with cpuset mems update
   b678e4ff7ce0 mm, page_alloc: move cpuset seqcount checking to slowpath
   d1656c5aef4d mm, page_alloc: fix fast-path race with cpuset update or removal
   ade7afe9dca6 mm, page_alloc: fix check for NULL preferred_zone
   9b1a1ae9b528 mm/mempolicy.c: do not put mempolicy before using its nodemask
   6676aa65464f mm/huge_memory.c: respect FOLL_FORCE/FOLL_COW for thp
   a2104c7cd3b2 drm/atomic: clear out fence when duplicating state
   bbae3c452596 Revert "drm/radeon: always apply pci shutdown callbacks"
   5270c017f19f drm/vc4: fix a bounds check
   cfba2a001d0e drm/vc4: Return -EINVAL on the overflow checks failing.
   b9edac54cb85 drm/vc4: Fix an integer overflow in temporary allocation layout.
   32600835ebe1 drm/vc4: Fix memory leak of the CRTC state.
   4c741e2adb35 drm/i915: Ignore bogus plane coordinates on SKL when the plane is not visible
   f1dc9aaee029 drm: Fix broken VT switch with video=1366x768 option
   2abb7f408f7c drm: Schedule the output_poll_work with 1s delay if we have delayed event
   e4be4d4942b9 tile/ptrace: Preserve previous registers for short regset write
   544160b6ea18 fbdev: color map copying bounds checking

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-yocto.bbclass: ensure repatching when HEAD is checked out
Awais Belal [Tue, 14 Feb 2017 21:14:15 +0000 (16:14 -0500)]
kernel-yocto.bbclass: ensure repatching when HEAD is checked out

In some cases it is seen that kernel_checkout and validate_branches are
run again in simultaneous builds. During do_patch the kgit-s2q mechanism
looks for a sentinel file inside the .git directory, finds a fence post
and starts picking up patches after that.

This can create trouble as validate_branches checks out the HEAD of the
branch and so the patches should be reapplied rather than skipped due to
finding of the fence post.

We can call kgit-s2q --clean to remove the sentinel file when the
branches are checked out.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: direct: move creation of PartitionedImage to __init__
Ed Bartosh [Fri, 10 Feb 2017 14:44:03 +0000 (16:44 +0200)]
wic: direct: move creation of PartitionedImage to __init__

Moved creation of PartitionedImage object from DirectPlugin.create
method to init. It makes the code a bit more readable and logical.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: move generation of part.realnum to PartitionedImage
Ed Bartosh [Fri, 10 Feb 2017 14:37:22 +0000 (16:37 +0200)]
wic: direct: move generation of part.realnum to PartitionedImage

Moved the code that generates real partition numbers from DirectPlugin
to PartitionedImage.

The idea is to have all code that works with partitions
in PartitionedImage class.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: add PartitionedImage.prepare method
Ed Bartosh [Fri, 10 Feb 2017 14:23:59 +0000 (16:23 +0200)]
wic: direct: add PartitionedImage.prepare method

Moved code that calls prepare method of Partition objects
from DirectPlugin to PartitionedImage.prepare.

The idea is to have all code that works with partitions
in PartitionedImage class.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: set bootloader.source in the __init__
Ed Bartosh [Fri, 10 Feb 2017 10:57:13 +0000 (12:57 +0200)]
wic: direct: set bootloader.source in the __init__

Moved setting of bootloader source from do_create method
to __init__ as it doesn't have anything to do with image
creation.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: move UUID generation to PartitionedImage
Ed Bartosh [Fri, 10 Feb 2017 10:41:15 +0000 (12:41 +0200)]
wic: direct: move UUID generation to PartitionedImage

Moved code that generates partition UUIDs from DirectPlugin to
PartitionedImage class as it's more logical to have it there.
This allows the code to be reused by other imager plugins.

Got rid of having yet another list of partitions in PartitionedImage.
Reused the list passed from DirectPlugin.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: add 'realnum' attribute to partition
Ed Bartosh [Fri, 10 Feb 2017 10:10:22 +0000 (12:10 +0200)]
wic: direct: add 'realnum' attribute to partition

Replaced call of _get_part_num method with an attribute.
This eliminates the need to call the method and loop over
partitions every time we need to know realnum for partition.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: remove useless code
Ed Bartosh [Thu, 9 Feb 2017 18:45:20 +0000 (20:45 +0200)]
wic: direct: remove useless code

Removed catching CreatorError and raising it again.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: don't catch ImagerError
Ed Bartosh [Thu, 9 Feb 2017 18:16:45 +0000 (20:16 +0200)]
wic: direct: don't catch ImagerError

Don't transform ImagerError exception into warning.
Let wic to catch it on the upper level.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: remove set_bootimg_dir setter
Ed Bartosh [Thu, 9 Feb 2017 14:48:55 +0000 (16:48 +0200)]
wic: direct: remove set_bootimg_dir setter

Removed java-like setter set_bootimg_dir. It's more pythonic
to access public attributes directly.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: ksparser: set default disk to 'sda'
Ed Bartosh [Thu, 9 Feb 2017 14:37:57 +0000 (16:37 +0200)]
wic: ksparser: set default disk to 'sda'

Set default value of --ondisk to 'sda' to ensure
we always have disk name for the partition.

This is a first step of replacing --ondisk with
disk <name> attribute of .wks. This is better as
all partitions share the same disk.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove utils/oe/__init__.py
Ed Bartosh [Thu, 9 Feb 2017 14:32:40 +0000 (16:32 +0200)]
wic: remove utils/oe/__init__.py

This file and utils/oe folder are not needed anymore as
all modules were removed or moved out of this directory.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: move PartitionedImage class to direct.py
Ed Bartosh [Thu, 9 Feb 2017 14:28:54 +0000 (16:28 +0200)]
wic: move PartitionedImage class to direct.py

As PartitionedImage is only used in direct.py it makes sense
to move it there. It's easier to maintain (and refactor) it
this way.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: move disk operations to PartitionImage class
Ed Bartosh [Thu, 9 Feb 2017 13:52:55 +0000 (15:52 +0200)]
wic: move disk operations to PartitionImage class

Disk operations were spread over DirectPlugin, DiskImage and Image
code making the code hard to understand.

Renamed Image class to PartitionedImage.
Removed DiskImage class.
Moved disk operations to PartitionedImage.

There was an implicit support for multiple disks: if different devices
were specified in .wks file (e.g. --ondisk sda and --ondisk sdb), wic
would theoretically generate multiple images. This is quite confusing
option and the code supporting it was broken for a long time. The same
effect (multiple output images) can be achieved in obvious and clear
way - by using multiple .wks files.

This functionality was removed. PartitionedImage works only with
one image. This makes the code less complex and easier to maintain.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoselftest/wic: Add tests for --exclude-dir option.
Kristian Amlie [Mon, 6 Feb 2017 16:16:47 +0000 (17:16 +0100)]
selftest/wic: Add tests for --exclude-dir option.

Based partially on an earlier patch by Maciej Borzecki.

Note that because tools now reside in recipe specific sysroots, we
need to import the path from bitbake and apply it during the test.

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: Add --exclude-path option to rootfs source plugin.
Kristian Amlie [Mon, 6 Feb 2017 16:16:46 +0000 (17:16 +0100)]
wic: Add --exclude-path option to rootfs source plugin.

It will omit the given path from the resulting partition, and if the
given path ends in a slash, it will only delete the content, and keep
the directory.

Since mkfs only accepts whole directories as input, we need to copy
the rootfs directory to the workdir so that we can selectively delete
files from it.

Since we want to use the copyhardlinktree() function, we need to put
the generic oe lib in the module search path.

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: remove unused argument scripts_path
Ed Bartosh [Wed, 8 Feb 2017 18:51:33 +0000 (20:51 +0200)]
wic: remove unused argument scripts_path

There is no need to pass scripts_path from main wic module
down the stack as it's not used there.

Removed scripts_path argument from DirectPlugin class
and wic_create function.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: direct: remove unused import
Ed Bartosh [Wed, 8 Feb 2017 18:51:32 +0000 (20:51 +0200)]
wic: direct: remove unused import

Removed unused import of wic.errors module.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: direct: remove unused plugin attributes
Ed Bartosh [Wed, 8 Feb 2017 18:51:31 +0000 (20:51 +0200)]
wic: direct: remove unused plugin attributes

Removed unused _disks, _disk_format and _disk_names
attributes from DirectPlugin class.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: make sure layout_partitions is called once
Ed Bartosh [Wed, 8 Feb 2017 18:51:30 +0000 (20:51 +0200)]
wic: make sure layout_partitions is called once

Removed artificial _partitions_layed_out attribute and
unneeded call of layout_partitions method.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: use the same partition object in direct and partitionedfs
Ed Bartosh [Wed, 8 Feb 2017 18:51:29 +0000 (20:51 +0200)]
wic: use the same partition object in direct and partitionedfs

Partition attributes were copied to the dictionary in partitionedfs
code, which makes the code hard to follow.

Used partition object passed from direct.py module as is in
partitionedfs.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: direct: get rid of _get_parts getter
Ed Bartosh [Wed, 8 Feb 2017 18:51:28 +0000 (20:51 +0200)]
wic: direct: get rid of _get_parts getter

Replaced _get_parts getter with direct attribute
access to self.parts

Removed code that implicitly created partition
if there are no partitions mentioned in .wks file

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: partitionedfs: rename __create_partition and __add_disk
Ed Bartosh [Wed, 8 Feb 2017 18:51:27 +0000 (20:51 +0200)]
wic: partitionedfs: rename __create_partition and __add_disk

Renamed private methods with leading double underscores:
__create_partition -> _create_partition
__add_disk -> _add_disk

There is no point to have those names mangled, one underscore
is enough.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: partitionedfs: get rid of __add_partition
Ed Bartosh [Wed, 8 Feb 2017 18:51:26 +0000 (20:51 +0200)]
wic: partitionedfs: get rid of __add_partition

3 lines long private method __add_partition is called only
from add_partition method. Merged them together to increase
readability.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: partitionedfs: merged __format_disks and create
Ed Bartosh [Wed, 8 Feb 2017 18:51:25 +0000 (20:51 +0200)]
wic: partitionedfs: merged __format_disks and create

Private method __format_disks is called only from create
method making the code less readable. Merged the code
into one method.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agom4: use wildcard for selftest bbappend
Ross Burton [Fri, 10 Feb 2017 14:43:03 +0000 (14:43 +0000)]
m4: use wildcard for selftest bbappend

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobash: fix CVE-2016-9401
Li Zhou [Mon, 13 Feb 2017 02:53:24 +0000 (10:53 +0800)]
bash: fix CVE-2016-9401

popd in bash might allow local users to bypass the restricted shell
and cause a use-after-free via a crafted address.

Porting patch from <https://ftp.gnu.org/pub/gnu/bash/bash-4.4-patches/
bash44-006> to solve CVE-2016-9401.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxslt: Add build fix (with ld-is-gold)
Jussi Kukkonen [Fri, 10 Feb 2017 14:04:38 +0000 (16:04 +0200)]
libxslt: Add build fix (with ld-is-gold)

Libraries must be linked with "-lm", otherwise gold fails to link
binaries with those libraries.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolighttpd: Upgrade 1.4.43 -> 1.4.45
Andrej Valek [Fri, 10 Feb 2017 12:42:29 +0000 (13:42 +0100)]
lighttpd: Upgrade 1.4.43 -> 1.4.45

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 agom4: 1.4.17 -> 1.4.18
Robert Yang [Fri, 10 Feb 2017 03:23:15 +0000 (19:23 -0800)]
m4: 1.4.17 -> 1.4.18

Rebased remove-gets.patch.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomklibs-native: 0.1.41 -> 0.1.43
Robert Yang [Fri, 10 Feb 2017 03:23:14 +0000 (19:23 -0800)]
mklibs-native: 0.1.41 -> 0.1.43

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agostrace: fix gawk's path
Robert Yang [Fri, 10 Feb 2017 03:23:13 +0000 (19:23 -0800)]
strace: fix gawk's path

Fixed:
strace-4.15: /usr/lib/strace/ptest/tests/caps-abbrev.awk contained in package strace-ptest requires /bin/gawk, but no providers found in RDEPENDS_strace-ptest? [file-rdeps]

The path should be /usr/bin/gawk as other scripts use in this package.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agostrace: 4.14 -> 4.15
Robert Yang [Fri, 10 Feb 2017 03:23:12 +0000 (19:23 -0800)]
strace: 4.14 -> 4.15

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowget: 1.18 -> 1.19
Robert Yang [Fri, 10 Feb 2017 03:23:11 +0000 (19:23 -0800)]
wget: 1.18 -> 1.19

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibpcre: 8.39 -> 8.40
Robert Yang [Fri, 10 Feb 2017 03:23:10 +0000 (19:23 -0800)]
libpcre: 8.39 -> 8.40

The LIC_FILES_CHKSUM is changed because the date is changed, here is
diff result:
< Copyright (c) 1997-2017 University of Cambridge

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agohdparm: 9.50 -> 9.51
Robert Yang [Fri, 10 Feb 2017 03:23:09 +0000 (19:23 -0800)]
hdparm: 9.50 -> 9.51

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agognu-efi: 3.0.4 -> 3.0.5
Robert Yang [Fri, 10 Feb 2017 03:23:08 +0000 (19:23 -0800)]
gnu-efi: 3.0.4 -> 3.0.5

* Remove aarch64-initplat.c-fix-const-qualifier.patch which is already
  in the source.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogit: 2.11.0 -> 2.11.1
Robert Yang [Fri, 10 Feb 2017 03:23:07 +0000 (19:23 -0800)]
git: 2.11.0 -> 2.11.1

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoe2fsprogs: 1.43.3 -> 1.43.4
Robert Yang [Fri, 10 Feb 2017 03:23:06 +0000 (19:23 -0800)]
e2fsprogs: 1.43.3 -> 1.43.4

* Rebased Revert-mke2fs-enable-the-metadata_csum-and-64bit-fea.patch.
* The mkfs.ext4dev is gone.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agousbutils: allow udev-hwdb to be optional
Gary Thomas [Fri, 10 Feb 2017 06:05:03 +0000 (07:05 +0100)]
usbutils: allow udev-hwdb to be optional

Use RRECOMMENDS for the udev hardware data base, to allow for this
to be suppressed if desired (saves many MB - useful for smaller systems)

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoperf: add PACKAGECONFIG for jvmti
Stefan Müller-Klieser [Thu, 9 Feb 2017 11:49:39 +0000 (12:49 +0100)]
perf: add PACKAGECONFIG for jvmti

Recent kernel build jvmti, java profiling agent, if a host jdk is
detected. The library will be packaged in -dev and throws a qa error.
Disable the jvmti build per default.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodbus: remove pointless cd
Ross Burton [Thu, 9 Feb 2017 16:47:21 +0000 (16:47 +0000)]
dbus: remove pointless cd

There's no need to cd to the target directory when creating symlinks, so don't.

[ YOCTO #10985 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoelfutils: update homepage and upstream souce
Hongxu Jia [Wed, 8 Feb 2017 03:01:35 +0000 (22:01 -0500)]
elfutils: update homepage and upstream souce

In git://sourceware.org/git/elfutils.git:
----------------
commit 1700fd25e6caf26663af2bd994d1d99fab9df59f
Author: Mark Wielaard <mark@klomp.org>
Date:   Sat Dec 24 22:31:41 2016 +0100

    http://elfutils.org/ is now hosted at http://sourceware.org/elfutils/

    fedorahosted used to be our home, but we are now hosted at sourceware.

    Change the elfutils project home to http://elfutils.org/
    Point hosted services (email, release, git, bug tracker and web pages)
    to https://sourceware.org/elfutils/

    Move design notes from README to NOTES.
    Add URLs for home, releases, bugs, git and mailinglist to README.

    Make the --version output of all tools the same by using a common
    print_version function and update the publicly shown copyright holder
    to the elfutils developers.

Signed-off-by: Mark Wielaard <mark@klomp.org>
------------------

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agoelfutils: 0.166 -> 0.168
Hongxu Jia [Mon, 6 Feb 2017 09:34:46 +0000 (04:34 -0500)]
elfutils: 0.166 -> 0.168

- Backport patches from debian to 0.168 and add US tags.

- Rebase 0001-build-Provide-alternatives-for-glibc-assumptions-hel.patch to support libc musl

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agolibgpg-error: 1.25 -> 1.26
Hongxu Jia [Tue, 7 Feb 2017 04:30:46 +0000 (23:30 -0500)]
libgpg-error: 1.25 -> 1.26

- errorref.txt is part of the documentation so should be in PN-doc.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agogpgme: allow building -native variant
Alexander Kanavin [Mon, 13 Feb 2017 15:05:31 +0000 (17:05 +0200)]
gpgme: allow building -native variant

This is required by various pieces in the dnf stack

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogpgme: 1.6.0 -> 1.8.0
Hongxu Jia [Tue, 7 Feb 2017 03:29:07 +0000 (22:29 -0500)]
gpgme: 1.6.0 -> 1.8.0

- Drop gpgme.pc, it is duplicated with pkgconfig.patch

- Rebase pkgconfig.patch to 1.8.0

- Split cmake config to ${PN}-dev

- Update LIC_FILES_CHKSUM, because copytright year changed.

- The libgpgme-pthread is obsolete by upstream;

- Add package libgpgcpp;

TODO: Do not remove gpgme-pthread.pc from pkgconfig.patch,
      the upstream explains:
      git://git.gnupg.org/gpgme.git
      commit 09b64554328445e99a8cc78fc34ea49c2ea2e7f9
      ------------------------------
      libgpgme-pthread is removed but gpgme-config still supports
      --thread=pthread for compatibility with find scripts.
      ------------------------------

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agosecurity_flags: disable -pie for gpgme
Ross Burton [Mon, 13 Feb 2017 14:23:02 +0000 (14:23 +0000)]
security_flags: disable -pie for gpgme

Otherwise this fails to build the libraries:

relocation R_X86_64_PC32 against undefined hidden symbol `__init_array_start'
can not be used when making a shared object

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agognupg: 2.1.14 -> 2.1.18
Hongxu Jia [Tue, 7 Feb 2017 05:51:48 +0000 (00:51 -0500)]
gnupg: 2.1.14 -> 2.1.18

Update LIC_FILES_CHKSUM md5 checksum, because "http" has been
changed to "https".

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agorpcbind: 0.2.3 -> 0.2.4
Hongxu Jia [Tue, 7 Feb 2017 05:37:22 +0000 (00:37 -0500)]
rpcbind: 0.2.3 -> 0.2.4

Drop obsolete patch
- 0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch

Drop backport patches:
- 0001-handle_reply-Don-t-use-the-xp_auth-pointer-directly.patch
- cve-2015-7236.patch

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agoman-pages: 4.08 -> 4.09
Hongxu Jia [Tue, 7 Feb 2017 05:05:55 +0000 (00:05 -0500)]
man-pages: 4.08 -> 4.09

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agolibgcrypt: 1.7.3 -> 1.7.6
Hongxu Jia [Tue, 7 Feb 2017 04:23:02 +0000 (23:23 -0500)]
libgcrypt: 1.7.3 -> 1.7.6

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agosocat: 1.7.3.1 -> 1.7.3.2
Hongxu Jia [Mon, 6 Feb 2017 08:57:03 +0000 (03:57 -0500)]
socat: 1.7.3.1 -> 1.7.3.2

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agopax-utils: 1.1.6 -> 1.2.2
Hongxu Jia [Mon, 6 Feb 2017 08:48:09 +0000 (03:48 -0500)]
pax-utils: 1.1.6 -> 1.2.2

Export GNULIB_OVERRIDES_WINT_T to fix compile failure
---------
1099 make[4]: *** [printf-args.o] Error 1
1100 make[4]: *** Waiting for unfinished jobs....
1101 In file included from ../../../pax-utils-1.2.2/autotools/gnulib/printf-args.h:41:0,
1102                  from ../../../pax-utils-1.2.2/autotools/gnulib/printf-parse.h:29,
1103                  from ../../../pax-utils-1.2.2/autotools/gnulib/printf-parse.c:36:
1104 ./wchar.h:476:6: error: #if with no expression
1105  # if
1106       ^
1107 make[4]: *** [printf-parse.o] Error 1
---------

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agowatchdog: Add RCONFLICTS to watchdog-keepalive and split RDEPENDS
Fabio Berton [Wed, 25 Jan 2017 11:22:05 +0000 (09:22 -0200)]
watchdog: Add RCONFLICTS to watchdog-keepalive and split RDEPENDS

watchdog-keepalive is a simplified version of the watchdog daemon
and can't be installed along with watchdog daemon, we need to
choose which daemon install.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibcap: Add gperf-native to depends
Khem Raj [Wed, 8 Feb 2017 15:57:59 +0000 (07:57 -0800)]
libcap: Add gperf-native to depends

Fixes
|  gperf_case_strncmp (register const char *s1, register const char *s2, register size_t n)
|                                                                                 ^~~~~~
| ./_caps_output.gperf:96:53: error: unknown type name 'size_t'
|  __cap_hash_name (register const char *str, register size_t len)
|                                                      ^~~~~~
| ./_caps_output.gperf:200:55: error: unknown type name 'size_t'
|  __cap_lookup_name (register const char *str, register size_t len)
|                                                        ^~~~~~
| ./_caps_output.gperf:200:1: error: conflicting types for '__cap_lookup_name'
|  __cap_lookup_name (register const char *str, register size_t len)
|  ^~~~~~~~~~~~~~~~~
| ./_caps_output.gperf:33:29: note: previous declaration of '__cap_lookup_name' was here
|  const struct __cap_token_s *__cap_lookup_name(const char *, unsigned int);
|                              ^~~~~~~~~~~~~~~~~
| cap_text.c: In function 'cap_to_name':
| cap_text.c:291:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
|   asprintf(&tmp, "%u", cap);
|   ^~~~~~~~~~~~~~~~~~~~~~~~~
| make[1]: *** [Makefile:63: cap_text.o] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolttng-tools: no need to delete libxml.m4
Ross Burton [Wed, 8 Feb 2017 14:44:29 +0000 (14:44 +0000)]
lttng-tools: no need to delete libxml.m4

The configure.ac uses pkg-config now and this macro doesn't exist in the tarball
anymore, so remove the deletion.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosecurity_flags: enable string formatting check for console tools
Chen Qi [Wed, 8 Feb 2017 09:25:37 +0000 (17:25 +0800)]
security_flags: enable string formatting check for console tools

As we've fixed the string formatting issue in console-tools, we don't
need to override SECURITY_STRINGFORMAT for console-tools any more.

[YOCTO #9540]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoconsole-tools: fix string formatting issue
Chen Qi [Wed, 8 Feb 2017 09:25:36 +0000 (17:25 +0800)]
console-tools: fix string formatting issue

Fix string formatting issue in console-tools. Otherwise, when compiling with
'-Wformat -Wformat-security -Werror=format-security', we would have compilation
error.

[YOCTO #9540]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoltp: Fix containers/userns05 failure for lib32
He Zhe [Wed, 8 Feb 2017 02:58:46 +0000 (10:58 +0800)]
ltp: Fix containers/userns05 failure for lib32

Backport a patch to fix userns05 case:
<<<test_output>>>
user_namespace5 1 TFAIL : userns05.c:95: userns:parent should be not equal to cpid2
user_namespace5 1 TFAIL : userns05.c:95: userns:parent should be not equal to cpid2
user_namespace5 0 TINFO : Child process returned TPASS
user_namespace5 0 TINFO : Child process returned TPASS
user_namespace5 0 TINFO : Child process returned TFAIL
incrementing stop

Rename the previous patch to add a number prefix

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython: Don't use getentropy on Linux
Andreas Oberritter [Tue, 7 Feb 2017 23:48:54 +0000 (00:48 +0100)]
python: Don't use getentropy on Linux

Backport a patch from 2.7 branch to fix a regression with glibc
2.24 causing "OSError: [Errno 38] Function not implemented" when
calling urandom() with older kernels.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopseudo: update to 1.8.2
Joshua Lock [Tue, 7 Feb 2017 15:53:00 +0000 (15:53 +0000)]
pseudo: update to 1.8.2

Update to the newly minted 1.8.2, dropping several patches we'd
backported since the last release.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosmartpm: if RPM transaction fails with an empty list of problems in attempt mode...
Herve Jourdain [Thu, 9 Jun 2016 07:41:31 +0000 (15:41 +0800)]
smartpm: if RPM transaction fails with an empty list of problems in attempt mode, ignore it!

Since commit be0cabf816a84c59e0e951b92a570121ed843822 on 2016/05/17, smartpm will retry the transaction if ts.run() returns with an empty list of problems, and we're in attempt mode.
But then, since all the packages are already installed, the transaction will fail with "package already installed" error.

In attempt mode, it's fine to not retry nor generate an error when the transaction fails for no reason linked to files/packages conflicts, so this patch fixes this behaviour.

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoglibc: Update to 2.25 release
Khem Raj [Mon, 6 Feb 2017 19:38:04 +0000 (11:38 -0800)]
glibc: Update to 2.25 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopulseaudio: 9.0 -> 10.0
Tanu Kaskinen [Fri, 3 Feb 2017 07:06:35 +0000 (09:06 +0200)]
pulseaudio: 9.0 -> 10.0

Relase notes:
https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/10.0/

The checksum of the LICENSE file changed due to some clarifications.
There were no changes to the actual licensing terms.

The LICENSE variable was not accurate, so I made changes to it.
Specifically:
 * there's no GPL code in PulseAudio so I dropped GPL from the list
 * the LGPL code allows using later versions of the license rather than
   limiting to just 2.1
 * there are some MIT and BSD licensed bits

I added more files to LIC_FILES_CHKSUM to have better coverage of all
the differently licensed code.

Dropped json-c and gdbm from DEPENDS. The new release doesn't use json-c
any more. gdbm isn't used when --with-database=simple is passed to
configure, so it should have been removed from DEPENDS a long time ago.

The new release dropped the Xen module, so the --without-xen configure
option isn't needed any more.

Added a comment for why --without-fftw is used.

Disabled the adrian echo canceller, because it has an unusual license,
and disabling the code was simpler than adding a new license to OE-Core.

Dropped upstreamed patches.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxz: upgrade to 5.2.3
Andreas Horsthemke [Sat, 4 Feb 2017 13:34:55 +0000 (14:34 +0100)]
xz: upgrade to 5.2.3

Signed-off-by: Andreas Horsthemke <andhorsthemke@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibepoxy: upgrade to 1.4.0
Ross Burton [Mon, 6 Feb 2017 23:26:34 +0000 (23:26 +0000)]
libepoxy: upgrade to 1.4.0

Drop the two patches that add the ability to disable GLX, this has been added
upstream.

Drop the Python3 patch as the code generator works with Py3 now.

(From OE-Core rev: 8ba197b3ae10a90ca988f0021597dfd20463c2d2)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest: remove result file log awkward checking
Benjamin Esquivel [Sun, 12 Feb 2017 19:00:38 +0000 (19:00 +0000)]
selftest: remove result file log awkward checking

because of the way that the test cases are looked in the results,
the file logger is incompatible with extended implementations of the
unittest runner.

as the xml runner extends the unittest runner, it shares the id()
method which returns the full name of the test, not only the test
function name. With that, a single check of the full name reviews at
the same time the class name as well as the function name.

[YOCTO#11012]

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-perf-test-wrapper.sh: fix issues with non-existing path arguments
Markus Lehtonen [Fri, 27 Jan 2017 13:24:25 +0000 (15:24 +0200)]
build-perf-test-wrapper.sh: fix issues with non-existing path arguments

Without the '-s' option realpath will error out if the given path does
not exist.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-build-perf-test: drop --commit-results
Markus Lehtonen [Fri, 3 Feb 2017 17:58:54 +0000 (19:58 +0200)]
oe-build-perf-test: drop --commit-results

Drop support for committing results into Git repository. The
functionality was not directly related to testing and feels unnecessary
complication of the script. The functionality has been moved into a
separate oe-git-archive script.

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-perf-test-wrapper.sh: use oe-git-archive
Markus Lehtonen [Fri, 3 Feb 2017 17:53:55 +0000 (19:53 +0200)]
build-perf-test-wrapper.sh: use oe-git-archive

Start to use the new helper script for archiving results data in Git.

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/oe-git-archive: support creating bare repositories
Markus Lehtonen [Fri, 3 Feb 2017 14:40:35 +0000 (16:40 +0200)]
scripts/oe-git-archive: support creating bare repositories

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.utils.git: support bare repos
Markus Lehtonen [Fri, 3 Feb 2017 08:53:32 +0000 (10:53 +0200)]
oeqa.utils.git: support bare repos

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts: Implement oe-git-archive
Markus Lehtonen [Thu, 2 Feb 2017 14:30:57 +0000 (16:30 +0200)]
scripts: Implement oe-git-archive

A helper script for committing data to git and pushing it upstream. The
motivation for the script stems from the need to archiving QA test
results in git, but it could be used elsewhere, of course. The script
needs to be run under an initialized build environment because it
utilizes bitbake configuration information.

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.utils.git: add git_dir property
Markus Lehtonen [Thu, 2 Feb 2017 14:02:15 +0000 (16:02 +0200)]
oeqa.utils.git: add git_dir property

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/buildperf: don't archive stdout/stderr of commands
Markus Lehtonen [Fri, 27 Jan 2017 14:54:53 +0000 (16:54 +0200)]
oeqa/buildperf: don't archive stdout/stderr of commands

Stop capturing output of the shell commands into <test>/commands.log.
Redirecting output into a file prevented the unittest framework from
capturing it, causing useless errors (with empty output) like:
oeqa.utils.CommandError: Command '['bitbake', 'core-image-sato']'
returned non-zero exit status 1 with output:

In general, the console output of commands is only interesting when
something fails. Also, dropping the commands.log file is a huge saving
in disk space, and thus, repository size when results are archived in
Git.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/license: Respect beginline and endline
Joshua Watt [Sat, 11 Feb 2017 03:35:37 +0000 (21:35 -0600)]
classes/license: Respect beginline and endline

Recipes have the option of specifying a 'beginline' and 'endline'
options in LIC_FILES_CHKSUM which will cause the license bbclass to
only extract those specific lines from the license file when generating
the license database.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinsane.bbclass: print QA message correctly
Stephano Cetola [Fri, 10 Feb 2017 22:50:02 +0000 (14:50 -0800)]
insane.bbclass: print QA message correctly

Replace call to non-existent method "messages" with call to correct
QA logging method.

Fixes [YOCTO #11014]

introduced in OE-core revision 1dcb38ca9d6

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackage_deb.bbclass: Ignore file paths in RPROVIDES
Amarnath Valluri [Fri, 10 Feb 2017 13:42:17 +0000 (15:42 +0200)]
package_deb.bbclass: Ignore file paths in RPROVIDES

Unlike rpm, debian packaging does not allow file paths in 'Provides:' field.
When 'usrmerge' distro feature enabled bash/busybox packages adds '/bin/sh' to
it's RPROVIDES to satisfy build dependencies, this entry should be filtered out.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotestimage.bbclass: Add check for empty test suite
Mariano Lopez [Thu, 9 Feb 2017 13:15:14 +0000 (13:15 +0000)]
testimage.bbclass: Add check for empty test suite

If for some reason (most likely incorrect TEST_SUITES var)
you end with an empty test suite, testimage will start the
target (qemu by default) and will run an empty suite, so
better have a check before starting the target.

[YOCTO #10979]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoimage.bbclass: Use 'populate_sdk_base' for non-linux targets
Nathan Rossi [Mon, 30 Jan 2017 07:39:12 +0000 (17:39 +1000)]
image.bbclass: Use 'populate_sdk_base' for non-linux targets

When 'populate_sdk_ext' was first introduced in commit bf81d6bb7f6 it
replaced the inheriting of 'populate_sdk_base'. For non-linux targets
building the extensible SDK caused build errors, and the image class was
changed to inherit 'populate_sdk' when targeting a non-linux SDK_OS (in
commmit e471ce3464d). However inheriting 'populate_sdk' instead of
'populate_sdk_base' causes the SDK to always be built, this is not
expected for the image class.

This change makes the image class inherit 'populate_sdk_base' in the
non-linux SDK_OS case so that it behaves the same as it is expected to
behave where 'bitbake <image> -c populate_sdk' must be executed to
generate the SDK deployables.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosanity.bbclass: Add which to SANITY_REQUIRED_UTILITIES.
Philip Balister [Wed, 8 Feb 2017 20:27:06 +0000 (15:27 -0500)]
sanity.bbclass: Add which to SANITY_REQUIRED_UTILITIES.

Using docker with the Fedora 23 container exposed an issue with
the rpm-native configure step. If which is not present the configure
script fork bombs. After much pain, I tracked this to which not being
present in the default container. Add a check for which so others
do not have to have this experience.

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouboot-extlinux-config.bbclass: add support for timeout & default
Dalon Westergreen [Tue, 7 Feb 2017 23:46:29 +0000 (15:46 -0800)]
uboot-extlinux-config.bbclass: add support for timeout & default

When multible targets are defined it is useful to allow for
a default target along with a timeout.  After timeout, the
default target will be selected.

Signed-off-by: Dalon Westergreen <dwesterg@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/copyleft_filter: include AGPL in default included list
Paul Eggleton [Tue, 7 Feb 2017 19:12:29 +0000 (08:12 +1300)]
classes/copyleft_filter: include AGPL in default included list

If we're including all GPL licenses then we should include AGPL in
the default COPYLEFT_LICENSE_INCLUDE since it has similar terms (and
currently we do have one AGPL-licensed recipe in OE-Core, namely db).

(Note that the default list isn't meant to be a guaranteed complete
safe list - seek legal advice based on what you're distributing if
unsure.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel.bbclass: Make symbol to vmlinuz.bin in boot directory
Andrea Adami [Wed, 25 Jan 2017 23:56:08 +0000 (00:56 +0100)]
kernel.bbclass: Make symbol to vmlinuz.bin in boot directory

The changes committed with 6e58f54be103814b6b8a85b236510633c49e6832 did only
consider the vmlinuz ELF kernel but some devices do reqire a raw vmlinuz.bin
(as for example gcw0 in meta-handheld booted by ubiboot).
Expand the above mentioned patch to consider this case.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocve-check-tool: Use CA cert bundle in correct sysroot
Jussi Kukkonen [Thu, 9 Feb 2017 19:38:33 +0000 (21:38 +0200)]
cve-check-tool: Use CA cert bundle in correct sysroot

Native libcurl looks for CA certs in the wrong place by
default.
* Add patch that allows overriding the default CA certificate
  location. Patch is originally from meta-security-isafw.
* Use the new --cacert to set the correct CA bundle path

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocve-check-tool: Fixes for recipe sysroots
Jussi Kukkonen [Thu, 9 Feb 2017 19:38:32 +0000 (21:38 +0200)]
cve-check-tool: Fixes for recipe sysroots

* Use --enable-relative-plugins so cve-check-tool looks for
  loadable modules relative to binary location instead of
  hard-coding a wrong sysroot location
* do_populate_cve_db() assumes that the binary cve-check-update is in
  the sysroot. Ensure that this is true by adding a task dependency

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocve-check.bbclass: Fix dependencies
Jussi Kukkonen [Thu, 9 Feb 2017 19:38:31 +0000 (21:38 +0200)]
cve-check.bbclass: Fix dependencies

With recipe-specific sysroots the cve_check task must depend on
cve-check-tool-native:do_populate_sysroot to get the cve-check-tool
binary into the recipe sysroot.

A normal DEPENDS isn't used to avoid cyclic dependencies.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotestimage: Implement custom target loading
Juro Bystricky [Mon, 6 Feb 2017 17:49:37 +0000 (09:49 -0800)]
testimage: Implement custom target loading

This patch implements custom target loading for testimage, currently
missing due to major changes to the test framework.
Custom targets can be defined in various meta-layers, so we
need an extra path information in order to find them.
Any other additional info is retrieved as usual via the variables
TEST_TARGET and TEST_SUITES

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/loader.py: Avoid error in TypeError exception
Juro Bystricky [Mon, 6 Feb 2017 17:27:22 +0000 (09:27 -0800)]
oeqa/loader.py: Avoid error in TypeError exception

Without this an exception would occur

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemu.py: add 'elf' as supported fstype
Juro Bystricky [Mon, 6 Feb 2017 18:05:15 +0000 (10:05 -0800)]
qemu.py: add 'elf' as supported fstype

Add 'elf' as also supported by OEQemuTarget.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibva: Update to new 01.org github location
Saul Wold [Tue, 7 Feb 2017 18:58:17 +0000 (10:58 -0800)]
libva: Update to new 01.org github location

Upstream has moved to use 01.org and github, Update the various URIs
that track info. S needs to be changed to WORKDIR/git as we are now a
git repo.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/core/runner.py: OEStreamLogger fix logging
Aníbal Limón [Thu, 9 Feb 2017 20:53:17 +0000 (14:53 -0600)]
oeqa/core/runner.py: OEStreamLogger fix logging

Change conditional to avoid losing stack traces when log
into the logger. The logic only needs to don't log empty lines.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses: Drop now unneeded update_data calls
Richard Purdie [Thu, 9 Feb 2017 17:11:38 +0000 (17:11 +0000)]
classes: Drop now unneeded update_data calls

Now that the datastore works dynamically we don't need the update_data calls
so we can just remove them. They're not actually done anything at all for
a while.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonss: Fix nss-native so the checksum doesn't change with BUILD_ARCH
Richard Purdie [Wed, 8 Feb 2017 21:29:43 +0000 (21:29 +0000)]
nss: Fix nss-native so the checksum doesn't change with BUILD_ARCH

Switching between 32 and 64 bit BUILD_ARCH shows:

$ bitbake-diffsigs tmp-sstatesamehash*/stamps/*/nss-native/3.27.1-r0.do_compile.sigdata.*
basehash changed from 944cc4554a823ba966aeda0ac3d33b79 to 2475db3659c248d81d0e4dadb3c1b4cd
Variable SITEINFO_BITS value changed from '32' to '64'

We shouldn't have this dependency and it would fail oe-selftest test_sstate_32_64_same_hash
if nss-native were included, therefore exclude it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate: Make absolute symlinks an error
Richard Purdie [Wed, 8 Feb 2017 16:17:09 +0000 (16:17 +0000)]
sstate: Make absolute symlinks an error

The current relocation code is broken, at least in the native case. Fixing it
would mean trying pass in new data on sstate tasks about the relative positioning
of symlinks compared to the sstate relocation paths. Whilst we could do this,
right now I'm favouring making this an error and fixing the small number of
problematic recipes we have in OE-Core (3).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssl/fontconfig/bzip2: Use relative symlinks instead of absolute ones (using a...
Richard Purdie [Wed, 8 Feb 2017 16:10:50 +0000 (16:10 +0000)]
openssl/fontconfig/bzip2: Use relative symlinks instead of absolute ones (using a new class)

Absolute path symlinks are a bit of a pain for sstate and the native versions
of these recipes currently contain broken symlinks as a result. There are
only a small number of problematic recipes, at least in OE-Core, namely the
three here.

Rather than trying to make sstate handle this magically, which turns out to
be a harder problem than you'd first realise, simply make the symlinks relative
early in the process and avoid all the problems.

The alternative is adding new complexity to sstate which we could really
do without as without the complexity, you can't always tell where the
absolute symlink is relative to (due to prefixes used for native sstate).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/path: Add replace_absolute_symlinks function
Richard Purdie [Wed, 8 Feb 2017 15:08:54 +0000 (15:08 +0000)]
lib/oe/path: Add replace_absolute_symlinks function

We need a function to walk a directory and replace absolute symlinks with
relative ones. Add such a function to the path module of lib/oe.

It does this relative to the directory being walked for files.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc-cross-initial: Remove unneeded temporary sysroot
Richard Purdie [Wed, 8 Feb 2017 15:00:50 +0000 (15:00 +0000)]
gcc-cross-initial: Remove unneeded temporary sysroot

We used to need to build gcc-cross-initial against a bare sysroot to avoid
contamination. With RSS, we no longer need to do this since the recipe sysroot
is already bare. We can therefore simply point at that and drop this code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>