]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agocantarell-fonts: fix upstream check
Alexander Kanavin [Fri, 3 Jun 2016 09:14:43 +0000 (12:14 +0300)]
cantarell-fonts: fix upstream check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotzcode, tzdata: fix upstream version check
Alexander Kanavin [Fri, 3 Jun 2016 09:14:42 +0000 (12:14 +0300)]
tzcode, tzdata: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocups: fix upstream version check
Alexander Kanavin [Fri, 3 Jun 2016 09:14:41 +0000 (12:14 +0300)]
cups: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowebkitgtk: upgrade to 2.12.3
Alexander Kanavin [Fri, 3 Jun 2016 09:14:40 +0000 (12:14 +0300)]
webkitgtk: upgrade to 2.12.3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agort-tests, hwlatdetect: upgrade to 2.0
Alexander Kanavin [Fri, 3 Jun 2016 09:14:39 +0000 (12:14 +0300)]
rt-tests, hwlatdetect: upgrade to 2.0

0001-Makefile-Set-CC-AR-variable-only-if-it-doesn-t-have-.patch has been merged upstream

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogdbm: upgrade to 1.12
Alexander Kanavin [Fri, 3 Jun 2016 09:14:38 +0000 (12:14 +0300)]
gdbm: upgrade to 1.12

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotoasterconf.json: exclude releases Toaster can't build
Elliot Smith [Fri, 3 Jun 2016 13:59:26 +0000 (14:59 +0100)]
toasterconf.json: exclude releases Toaster can't build

Due to the switch to Python 3, Toaster master can only build
with master and not with earlier releases.

Make master the default release for projects and remove previous
releases from configuration.

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/pybootchart: Fix print statement
Richard Purdie [Fri, 3 Jun 2016 13:06:09 +0000 (14:06 +0100)]
scripts/pybootchart: Fix print statement

This was broken with the python3 fixes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosend-error-report: encode data to bytes python3
Ed Bartosh [Fri, 3 Jun 2016 09:04:22 +0000 (12:04 +0300)]
send-error-report: encode data to bytes

Encoded data before sending it through http as urllib expecting bytes.
Fixed TypeError: POST data should be bytes or an iterable of bytes. It
cannot be of type str.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/buildhistory_analysis: fix for Python 3
Joshua Lock [Fri, 3 Jun 2016 08:17:47 +0000 (09:17 +0100)]
lib/oe/buildhistory_analysis: fix for Python 3

The read method of the data_stream File object now returns bytes,
not a str, so we must decode it.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosecurity_flags.inc: add an entry for python3-numpy
Alexander Kanavin [Fri, 3 Jun 2016 09:21:05 +0000 (12:21 +0300)]
security_flags.inc: add an entry for python3-numpy

The entry is same as for python-numpy and prevents build failures
when extra security flags are in use (e.g. in poky-lsb).

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestexport.bbclass: Update to use python3
Mariano Lopez [Thu, 2 Jun 2016 13:09:58 +0000 (13:09 +0000)]
testexport.bbclass: Update to use python3

Remove deprecated attributes in order to use python3.

runexported was changed to use python3.

[YOCTO #9702]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodosfstools: Upgrade 3.0.28 -> 4.0
Jussi Kukkonen [Thu, 2 Jun 2016 10:49:34 +0000 (13:49 +0300)]
dosfstools: Upgrade 3.0.28 -> 4.0

* Build system is now autotools
* Patches are no longer required
* Enable compatibility symlinks

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage-live, image-vm, wic: Remove fs size workaround
Jussi Kukkonen [Thu, 2 Jun 2016 10:49:33 +0000 (13:49 +0300)]
image-live, image-vm, wic: Remove fs size workaround

Since mtools has been patched to live with filesystems with sizes
not divisible by sectors-per-track, we no longer need to try to
set the size based on our guess of the sectors-per-track dosfstools is
going to use.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomtools: Patch out a useless sanity check
Jussi Kukkonen [Thu, 2 Jun 2016 10:49:32 +0000 (13:49 +0300)]
mtools: Patch out a useless sanity check

The sanity check is ensuring that filesystem size is divisible by
sectors-per-track. That seems to be just an optimization for ancient
media, and quite tricky to accomplish as different dosfstools versions
produce filesystems with different sectors-per-track.

Continue processing even if filesystem size is not divisible by
sectors-per-track.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoca-certificates: add dependency for native/nativesdk on openssl-native
Paul Eggleton [Thu, 2 Jun 2016 20:22:46 +0000 (08:22 +1200)]
ca-certificates: add dependency for native/nativesdk on openssl-native

When running update-ca-certificates on the build host, as we do during
do_install for ca-certificates-native (and nativesdk-ca-certificates),
as of OE-Core commit cea46e7b8d9463306779301fa97f651d750f380f we now
need openssl-native so it can run c_rehash.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: python3: change python to python3 in shebang
Ed Bartosh [Thu, 2 Jun 2016 10:13:02 +0000 (13:13 +0300)]
scripts: python3: change python to python3 in shebang

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: python3: decode subprocess output
Ed Bartosh [Thu, 2 Jun 2016 10:13:00 +0000 (13:13 +0300)]
scripts: python3: decode subprocess output

stdeout and stderr content returned by subprocess API has different
types in Python 3(bytes) and Python 2(string). Decoding it to
'utf-8' makes it unicode on both pythons.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocombo-layer: python3: use tempfile.TemporaryFile
Ed Bartosh [Thu, 2 Jun 2016 10:13:01 +0000 (13:13 +0300)]
combo-layer: python3: use tempfile.TemporaryFile

Used tempfile.TemporaryFile() API instead of deprecated
os.tmpfile().

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodirsize: python3: fix TypeError: unorderable types
Ed Bartosh [Thu, 2 Jun 2016 10:12:59 +0000 (13:12 +0300)]
dirsize: python3: fix TypeError: unorderable types

Python 3 ignores the __cmp__() method and doesn't have cmp() builtin
function. This caused sorted() call to raise
    TypeError: unorderable types: Record() < Record()

Removing __cmp__ method and implementing __lt__ should solve the
problem as __lt__ is the only method needed for sort[ed] to work.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocombo-layer: python3: import reduce
Ed Bartosh [Thu, 2 Jun 2016 10:12:54 +0000 (13:12 +0300)]
combo-layer: python3: import reduce

Reduce is not a builtin function in python3.
It has to be imported from functools.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: python3: use new metaclass syntax
Ed Bartosh [Thu, 2 Jun 2016 10:12:53 +0000 (13:12 +0300)]
scripts: python3: use new metaclass syntax

Used metaclass=<metaclass> syntax instead old
__metaclass__ = <metaclass> as only new one is supported
in python 3.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: python3: get rid of __future__ imports
Ed Bartosh [Thu, 2 Jun 2016 10:12:52 +0000 (13:12 +0300)]
scripts: python3: get rid of __future__ imports

Removed print_function and with_statement imports from __future__
as they're supported by python 3 by default.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: python3: rename raw_input to input
Ed Bartosh [Thu, 2 Jun 2016 10:12:49 +0000 (13:12 +0300)]
scripts: python3: rename raw_input to input

Renamed raw_input to input as raw_input does not
exist in python 3.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoksize.py: python3: get rid of strings.join
Ed Bartosh [Thu, 2 Jun 2016 10:12:51 +0000 (13:12 +0300)]
ksize.py: python3: get rid of strings.join

Used join method instead of strings.join as stings.join
doesn't exist in python 3.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: python3: fix urllib imports
Ed Bartosh [Thu, 2 Jun 2016 10:12:50 +0000 (13:12 +0300)]
scripts: python3: fix urllib imports

Some functions and classes have been moved from urllib[2]
to urllib.request and urllib.error in python 3.

Used new imports to make the code working in python 3.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: python3: use new style except statement
Ed Bartosh [Thu, 2 Jun 2016 10:12:48 +0000 (13:12 +0300)]
scripts: python3: use new style except statement

Changed old syle except statements 'except <exception>, var'
to new style 'except <exception> as var' as old style is not
supported in python3.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: python3: convert iterables to lists
Ed Bartosh [Thu, 2 Jun 2016 10:12:47 +0000 (13:12 +0300)]
scripts: python3: convert iterables to lists

Converted return value of items() keys() and values() to
lists when dictionary is modified in the loop and when
the result is added to the list.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoautomake: drop the Python scriptlets to determine Python's directories
Alexander Kanavin [Thu, 2 Jun 2016 09:26:08 +0000 (12:26 +0300)]
automake: drop the Python scriptlets to determine Python's directories

python.m4 has python scriptlets that determine where the system's library
directory is. For Python 2.x distutils.sysconfig is used (which works because
we patch it), for Python 3.x plain sysconfig is used (which doesn't work
for example on x32). There is also a hardcoded fallback if the scriptlets fail.

This commit removes the scriptlets altogether and just uses the hardcoded path always,
due to above mentioned issues with x32.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-numpy: add a recipe
Alexander Kanavin [Thu, 2 Jun 2016 09:26:07 +0000 (12:26 +0300)]
python3-numpy: add a recipe

This is needed for updating piglit to use Python 3.
Python 2 based recipe can be later moved to meta-oe.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agohwlatdetect: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:26:06 +0000 (12:26 +0300)]
hwlatdetect: move to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibcap-ng: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:26:05 +0000 (12:26 +0300)]
libcap-ng: move to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemtap: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:26:04 +0000 (12:26 +0300)]
systemtap: move to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-ust: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:26:03 +0000 (12:26 +0300)]
lttng-ust: move to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-tools: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:26:02 +0000 (12:26 +0300)]
lttng-tools: move to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognome-doc-utils: remove recipe
Alexander Kanavin [Thu, 2 Jun 2016 09:26:01 +0000 (12:26 +0300)]
gnome-doc-utils: remove recipe

Nothing in oe-core actually requires it.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibnewt-python: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:26:00 +0000 (12:26 +0300)]
libnewt-python: move to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibuser: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:59 +0000 (12:25 +0300)]
libuser: move to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-docutils: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:58 +0000 (12:25 +0300)]
python-docutils: move to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-imaging: remove unused recipe
Alexander Kanavin [Thu, 2 Jun 2016 09:25:57 +0000 (12:25 +0300)]
python-imaging: remove unused recipe

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-pyrex: remove unused recipe
Alexander Kanavin [Thu, 2 Jun 2016 09:25:56 +0000 (12:25 +0300)]
python-pyrex: remove unused recipe

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoswig: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:55 +0000 (12:25 +0300)]
swig: move to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogdb: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:54 +0000 (12:25 +0300)]
gdb: move to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobootchart2: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:53 +0000 (12:25 +0300)]
bootchart2: move to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-pycairo: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:52 +0000 (12:25 +0300)]
python-pycairo: move to Python 3

The Python 3 version comes in a separate tarball, and is relicensed
under LGPLv3:
http://cairographics.org/pycairo/

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutil-linux: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:51 +0000 (12:25 +0300)]
util-linux: move to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd: drop python dependency for ptests
Alexander Kanavin [Thu, 2 Jun 2016 09:25:50 +0000 (12:25 +0300)]
systemd: drop python dependency for ptests

Python tests are not actually used, because systemd is configured
using --without-python

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonfs-utils: switch to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:49 +0000 (12:25 +0300)]
nfs-utils: switch to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackagegroup-core-full-cmdline: drop python-dbus from the list of services
Alexander Kanavin [Thu, 2 Jun 2016 09:25:48 +0000 (12:25 +0300)]
packagegroup-core-full-cmdline: drop python-dbus from the list of services

Any Python scripts should include this dependency explicitly.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoofono: drop the custom-made revert to Python 2 from Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:47 +0000 (12:25 +0300)]
ofono: drop the custom-made revert to Python 2 from Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoconnman: do not install Python test scripts
Alexander Kanavin [Thu, 2 Jun 2016 09:25:46 +0000 (12:25 +0300)]
connman: do not install Python test scripts

They are not compatible with python 3, and require python-dbus
and python-gobject (which are provided only for Python 3).

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobluez5: switch to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:45 +0000 (12:25 +0300)]
bluez5: switch to Python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoneard: do not package python test scripts
Alexander Kanavin [Thu, 2 Jun 2016 09:25:44 +0000 (12:25 +0300)]
neard: do not package python test scripts

They require python-dbus and python-gobject
(which are only provided for Python 3), and have not
been ported to Python 3.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-pygobject: port to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:43 +0000 (12:25 +0300)]
python-pygobject: port to Python 3

This reverts commit 7f7c9ab29eba0e58916629ca13dc4a494535ce19.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodbus-test: remove unneeded pygobject dependency
Alexander Kanavin [Thu, 2 Jun 2016 09:25:42 +0000 (12:25 +0300)]
dbus-test: remove unneeded pygobject dependency

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglib: move to Python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:41 +0000 (12:25 +0300)]
glib: move to Python 3

Drop python-pygobject and python-dbus dependencies, because nothing in
ptests depends on them, and it creates a circular dependency chain.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3: drop 110-enable-zlib.patch
Alexander Kanavin [Thu, 2 Jun 2016 09:25:40 +0000 (12:25 +0300)]
python3: drop 110-enable-zlib.patch

With the patch, the zlib extension wasn't built at all.
Without the patch, it gets build just fine.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-dbus: update to 1.2.4, port to python 3
Alexander Kanavin [Thu, 2 Jun 2016 09:25:39 +0000 (12:25 +0300)]
python-dbus: update to 1.2.4, port to python 3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobind: switch Python dependency to Python 3.x
Alexander Kanavin [Thu, 2 Jun 2016 09:25:38 +0000 (12:25 +0300)]
bind: switch Python dependency to Python 3.x

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd: support systemd-boot as a stand-alone EFI bootloader
Jianxun Zhang [Thu, 5 May 2016 18:20:37 +0000 (11:20 -0700)]
systemd: support systemd-boot as a stand-alone EFI bootloader

The "systemd-boot" is gummiboot now included into systemd project.
The old gummiboot project supported in OE is dead.

Our intention is to get a gummiboot-like EFI bootloader without
much dependency on systemd and its features.

This work is largely derived from the existing bbclass and recipes
of gummiboot and systemd.
(commit tip: ee25d0e3987d7732a2e46e1640693b4cf419a9fc)

Please refer to the history up to the tip for authorship and
credit information for the original works.

To enable the systemd-boot in build, add this line
EFI_PROVIDER = "systemd-boot" in your machine conf file.

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopango_1.40.1.bb: Fix compilation error
Dmitry Rozhkov [Tue, 31 May 2016 08:35:05 +0000 (11:35 +0300)]
pango_1.40.1.bb: Fix compilation error

On a build host not having libglib-2.0 installed compiling pango
fails with the error message

./gen-all-unicode: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory

The executable doesn't have RPATH set to the library installed in
the native sysroot.

The fix sets RPATH.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibpam: update dependency list
Maxin B. John [Wed, 1 Jun 2016 13:25:56 +0000 (16:25 +0300)]
libpam: update dependency list

Depend only on bison-native as configure script is checking
only for bison binary and libpam itself doesn't need target bison.

Add libxml2-native for deterministic build (it detects xmlcatalog
and xmllint)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoiw: update to version 4.7
Maxin B. John [Wed, 1 Jun 2016 13:25:55 +0000 (16:25 +0300)]
iw: update to version 4.7

4.3 -> 4.7

Refreshed the patch for new version:
    1) 0001-iw-version.sh-don-t-use-git-describe-for-versioning.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibsdl2: Fix build with wayland 1.10
Martin Jansa [Wed, 1 Jun 2016 12:49:36 +0000 (14:49 +0200)]
libsdl2: Fix build with wayland 1.10

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosyslinux.bbclass: Added configurable SYSLINUX_ALLOWOPTIONS variable
Davis, Michael [Wed, 1 Jun 2016 19:02:46 +0000 (19:02 +0000)]
syslinux.bbclass: Added configurable SYSLINUX_ALLOWOPTIONS variable

The new variable allows for images to be created without an
editable boot line in syslinux.  Default behavior remains unchanged.

Signed-off-by: Michael Davis <michael.davis@essvote.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodistro_check.py: Don't mix tabs and spaces
Jussi Kukkonen [Tue, 31 May 2016 07:17:20 +0000 (10:17 +0300)]
distro_check.py: Don't mix tabs and spaces

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/selftest/recipetool.py: Tweak matching of warning line
Leonardo Sandoval [Tue, 31 May 2016 14:24:03 +0000 (09:24 -0500)]
oeqa/selftest/recipetool.py: Tweak matching of warning line

We are observing cases (see below) where the 'WARNING:' prefix is not at the
beginning of a line, so instead of expecting it in the beginning, match it
within the string.

    ======================================================================
    FAIL: test_recipetool_appendfile_patch (oeqa.selftest.recipetool.RecipetoolTests)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py", line 109, in wrapped_f
        return func(*args, **kwargs)
      File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/recipetool.py", line 285, in test_recipetool_appendfile_patch
        self.fail('Patch warning not found in output:\n%s' % output)
    AssertionError: Patch warning not found in output:
    Parsing recipes..WARNING: File /etc/selftest-replaceme-patched is added by the patch /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta-selftest/recipes-test/recipetool/files/add-file.patch - you may need to remove or replace this patch in order to replace the file.
    NOTE: Writing append file /tmp/recipetoolqaug0kdb4x/recipes-test/recipetool/selftest-recipetool-appendfile.bbappend
    NOTE: Copying /tmp/recipetoolqagci9tita/testfile to /tmp/recipetoolqaug0kdb4x/recipes-test/recipetool/selftest-recipetool-appendfile/testfile
    done.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemurunner: Use surrogateescape decoding
Richard Purdie [Wed, 1 Jun 2016 12:27:25 +0000 (13:27 +0100)]
qemurunner: Use surrogateescape decoding

Since the stream can contain invalid binary characters (e.g. from
ppc's bootloader) use surrogateescape decoding to ensure we do process
the character stream, else it can hang/timeout.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool.py: Fix parsing of bitbake-layers' output
Leonardo Sandoval [Tue, 31 May 2016 06:57:45 +0000 (01:57 -0500)]
devtool.py: Fix parsing of bitbake-layers' output

Current parsing was picking wrong targets, leading to the following problem:

AssertionError: Command 'bitbake  Parsing recipes..done. -e' returned non-zero exit status 1:

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuildhistory_analysis: Convert stream data (bytes) to strings
Leonardo Sandoval [Wed, 25 May 2016 09:19:34 +0000 (04:19 -0500)]
buildhistory_analysis: Convert stream data (bytes) to strings

The bytes type variables are threat different as strings variables in python3,
so convert bytes to strings. This was found when using the
script buildhistory-diff, where the interpreter was yielding this error

    TypeError: Type str doesn't support the buffer API

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/devtool: Compare sets instead of arrays on AssertEqual
Leonardo Sandoval [Wed, 25 May 2016 08:30:47 +0000 (03:30 -0500)]
selftest/devtool: Compare sets instead of arrays on AssertEqual

Sets are safer when comparing internal elements and positions are not
important. This commit avoid errors observed on python3 builds as reported
on the below bugzilla entry.

[YOCTO #9661]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/lib: Complete transition to python3
Richard Purdie [Fri, 20 May 2016 10:57:44 +0000 (11:57 +0100)]
classes/lib: Complete transition to python3

This patch contains all the other misc pieces of the transition to
python3 which didn't make sense to be broken into individual patches.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: use python3 in shebang
Ed Bartosh [Fri, 20 May 2016 08:57:25 +0000 (11:57 +0300)]
scripts: use python3 in shebang

As most of oe-test cases work for devtool and recipetool
it makes sense to switch both tools to python 3 by
explicitly referring to python3 in their shebangs.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoscripts: Fix urlparse imports for python3
Ed Bartosh [Thu, 19 May 2016 09:33:44 +0000 (12:33 +0300)]
scripts: Fix urlparse imports for python3

Used urllib.parse instead of urlparse to make code
working in python 3.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoscripts: Rename ConfigParser -> configparser for python3
Ed Bartosh [Thu, 19 May 2016 09:28:12 +0000 (12:28 +0300)]
scripts: Rename ConfigParser -> configparser for python3

The ConfigParser API was renamed to configparser in python 3.
Renamed ConfigParser -> configparser in scripts/ to make the
code working in python 3.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoscripts: Fix encoding errors for python3
Ed Bartosh [Wed, 18 May 2016 18:57:23 +0000 (21:57 +0300)]
scripts: Fix encoding errors for python3

Moved call of decode('utf-8') as close as possible to
call of subprocess API to avoid calling it in a lot of
other places.

Decoded binary data to utf-8 where appropriate to fix devtool
and recipetool tests in python 3 environment.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoscripts: Replace basestring -> str for python3
Ed Bartosh [Wed, 18 May 2016 18:52:33 +0000 (21:52 +0300)]
scripts: Replace basestring -> str for python3

Python 3 doesn't have basestring type as all string
are unicode strings.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoscripts: Fix deprecated dict methods for python3
Ed Bartosh [Wed, 18 May 2016 18:39:44 +0000 (21:39 +0300)]
scripts: Fix deprecated dict methods for python3

Replaced iteritems -> items, itervalues -> values,
iterkeys -> keys or 'in'

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoqemurunner: convert data when working with socket
Ed Bartosh [Mon, 16 May 2016 15:40:39 +0000 (18:40 +0300)]
qemurunner: convert data when working with socket

Converted str to bytes before sending to socket.
Converted bytes to str after receiving from socket.

This should fix TypeError: 'str' does not support the buffer interface
for qemurunner.run_serial method.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: encode help text
Ed Bartosh [Mon, 16 May 2016 15:37:26 +0000 (18:37 +0300)]
wic: encode help text

Encoded help text before sending it to pager.communicate as
it expects binary.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: use python3 in shebang
Ed Bartosh [Mon, 16 May 2016 14:49:27 +0000 (17:49 +0300)]
wic: use python3 in shebang

Switched scripts/wic to use python3 as a default
python interpreter.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosanity: Switch urlparse to urllib.parse
Jeremy Puhlman [Thu, 12 May 2016 22:41:50 +0000 (15:41 -0700)]
sanity: Switch urlparse to urllib.parse

urlparse is replaced with urllib.parse functionality in python3

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/lib: Update xrange -> range for python3
Richard Purdie [Fri, 20 May 2016 10:56:05 +0000 (11:56 +0100)]
classes/lib: Update xrange -> range for python3

xrange() no longer exists in python 3, use range()

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/lib: Update to explictly create lists where needed
Richard Purdie [Fri, 20 May 2016 10:53:11 +0000 (11:53 +0100)]
classes/lib: Update to explictly create lists where needed

Iterators now return views, not lists in python3. Where we need
lists, handle this explicitly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/lib: Update to match python3 iter requirements
Richard Purdie [Fri, 20 May 2016 10:49:34 +0000 (11:49 +0100)]
classes/lib: Update to match python3 iter requirements

python3 standardises its use of iteration operations. Update
the code to match the for python3 requires.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/lib: Update to use python3 command pipeline decoding
Richard Purdie [Fri, 20 May 2016 10:17:05 +0000 (11:17 +0100)]
classes/lib: Update to use python3 command pipeline decoding

In python3, strings are unicode by default. We need to encode/decode
from command pipelines and other places where we interface with the
real world using the correct locales. This patch updates various
call sites to use the correct encoding/decodings.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/lib: Convert to use python3 octal syntax
Richard Purdie [Tue, 7 May 2013 10:23:40 +0000 (11:23 +0100)]
classes/lib: Convert to use python3 octal syntax

The syntax for octal values changed in python3, adapt to it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-buildenv-internal: Update to python3
Richard Purdie [Wed, 1 Jun 2016 12:17:23 +0000 (13:17 +0100)]
oe-buildenv-internal: Update to python3

Check that 'python' is a python v2 since that is what we assume everywhere
and upstream python devs recommend. We can need both python2 and python3
available since we don't control the software we might download and run.

Also check that python 3 is >= 3.4.0, our minimum version for bitbake.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosanity: Drop setting C locale
Richard Purdie [Wed, 1 Jun 2016 14:03:58 +0000 (15:03 +0100)]
sanity: Drop setting C locale

We really want the en_US locale as per the configuration and
previous patches. Don't set it back to C as things will break
under python3.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/lnr: update for python3
Allen Wild [Sun, 29 May 2016 18:49:49 +0000 (14:49 -0400)]
scripts/lnr: update for python3

Change shebang line to python3 and add parentheses to print

Signed-off-by: Allen Wild <allenwild93@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: python3: Use print function
Ed Bartosh [Mon, 30 May 2016 15:14:46 +0000 (18:14 +0300)]
scripts: python3: Use print function

Used print function instead of print statement to make
the code work in python 3.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd: allow add users as a rootfs postprocess cmd
Stephano Cetola [Tue, 31 May 2016 20:59:54 +0000 (13:59 -0700)]
systemd: allow add users as a rootfs postprocess cmd

Adding all the users / groups to systemd is only available for readonly
file systems. This change allows users to add them to read / write file
systems as well by specifying:

ROOTFS_POSTPROCESS_COMMAND += "systemd_create_users"

Also, add "--shell /sbin/nologin" to each user's add params.

[ YOCTO #9497 ]

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssl: fix the dangling libcrypto.a symlink
Maxin B. John [Tue, 31 May 2016 15:26:03 +0000 (18:26 +0300)]
openssl: fix the dangling libcrypto.a symlink

Update libcrypto.a symlink to the proper location.

[YOCTO #9523]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage.bbclass: fix strip and split logic
Stephano Cetola [Thu, 26 May 2016 20:40:37 +0000 (13:40 -0700)]
package.bbclass: fix strip and split logic

In order for strip and split to work together, we need to populate the
data structors if either split OR strip are not inhibited.

Original behaviour:

INHIBIT_PACKAGE_STRIP: no strip, no debug split
INHIBIT_PACKAGE_DEBUG_SPLIT: strip, no split

Behaviour after this patch:

INHIBIT_PACKAGE_STRIP: no strip, debug split
INHIBIT_PACKAGE_DEBUG_SPLIT: strip, no split
BOTH: no strip, no split, DNP data structures

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoperl-ptest.inc: fix tar call to prevent objcopy failure
Enrico Jorns [Mon, 30 May 2016 13:04:05 +0000 (15:04 +0200)]
perl-ptest.inc: fix tar call to prevent objcopy failure

With tar version 1.29, the tar call used to copy the ptest files will
not work anymore. While the call did not match the man page (but worked)
before, anyway, the latest update of tar seems to have a more strict argument
handling.

With the current version of the tar call, the copying of files still
works with latest tar version, but the excludes will not be handled
properly anymore.
This results in having binaries compiled with host GCC in the package.
When doing the strip_and_split files in do_package() with the target
objcopy, bitbake will fail with this error:

  ERROR: objcopy failed with exit code 256 (cmd was [...])
  [...]
  File format not recognized

Thus, the current argument issues and required changes are:

 * Options must be placed _before_ the pathnames.

 * --exclude must be followd by a '=' in order to work properly

 * 'f' options is for providing an archive file, which is unnecessary in
   this case

Note that this could also be a candidate for backporting.

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinsane: return line-feeds to qa.log
Martin Jansa [Mon, 30 May 2016 10:20:28 +0000 (12:20 +0200)]
insane: return line-feeds to qa.log

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobluez5: update to 5.40
Maxin B. John [Mon, 30 May 2016 15:20:23 +0000 (18:20 +0300)]
bluez5: update to 5.40

5.39 -> 5.40

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibpng: update to 1.6.22
Maxin B. John [Mon, 30 May 2016 15:20:22 +0000 (18:20 +0300)]
libpng: update to 1.6.22

1.6.21 -> 1.6.22

License files updates are not real license changes (updates in Copyright
date and Version)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agounzip: fix security issues
Edwin Plauchu [Fri, 27 May 2016 20:29:21 +0000 (15:29 -0500)]
unzip: fix security issues

This patch avoids unzip fails to compile with compiler flags which elevate common string formatting issues into an error (-Wformat -Wformat-security -Werror=format-security).

[YOCTO #9551]

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibarchive: Upgrade to v3.2.0
Paul Barker [Sat, 28 May 2016 13:26:15 +0000 (14:26 +0100)]
libarchive: Upgrade to v3.2.0

All patches are removed as they are no longer needed. Most were merged into this
release of libarchive. "0001-Set-xattrs-after-setting-times.patch" was dropped
upstream after discussion, see https://github.com/libarchive/libarchive/pull/664.

The COPYING file in libarchive had a couple of minor changes to clarify which
files are under which copyrights but the overall license is unaffected.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>