]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agolsb: update init-functions and remove sendmail
Kai Kang [Mon, 16 Feb 2015 02:25:03 +0000 (10:25 +0800)]
lsb: update init-functions and remove sendmail

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

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

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

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

This reverts commit 2d9763a1c8685e9bd3a6b0aa0995eec5112dc4a7.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agochrpath.bbclass: handle RUNPATH as well as RPATH
Andre McCurdy [Wed, 11 Mar 2015 00:56:27 +0000 (17:56 -0700)]
chrpath.bbclass: handle RUNPATH as well as RPATH

Binaries linked with gold may contain a RUNPATH instead of an RPATH.
Update chrpath.bbclass process_file_linux() to handle both cases.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolicense.bbclass: set dirs for do_populate_lic_setscene
Robert Yang [Wed, 11 Mar 2015 08:35:38 +0000 (01:35 -0700)]
license.bbclass: set dirs for do_populate_lic_setscene

Fixed:
ERROR: Build of do_populate_lic failed
ERROR: Traceback (most recent call last):
  File "bitbake/lib/bb/build.py", line 497, in exec_task
    return _exec_task(fn, task, d, quieterr)
  File "bitbake/lib/bb/build.py", line 437, in _exec_task
    exec_func(func, localdata)
  File "bitbake/lib/bb/build.py", line 212, in exec_func
    exec_func_python(func, d, runfile, cwd=adir)
  File "/home/nxadm/nx/ala-blade44.1/builds-2015-03-09-163005/qemuppc_world_oe_bp/bitbake/lib/bb/build.py", line 237, in exec_func_python
    os.chdir(cwd)
OSError: [Errno 2] No such file or directory: 'bitbake_build/tmp/work/ppc7400-wrs-linux/taglib/1.9.1-r0/build'

When running setscene, the cwd is $B which maybe removed by
autotools.bbclass or cmake.bbclass when rebuild.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevshell: allow the starting directory to be overridden
Ross Burton [Wed, 11 Mar 2015 10:00:41 +0000 (10:00 +0000)]
devshell: allow the starting directory to be overridden

Some people like to have the devshell start in ${B} instead of ${S}, so allow
this to be overridden.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobuildstats.bbclass: typecast argument to os.minor/os.major to long
Khem Raj [Fri, 27 Feb 2015 17:19:56 +0000 (17:19 +0000)]
buildstats.bbclass: typecast argument to os.minor/os.major to long

Started to run into this error on ubuntu 15.04

ERROR: Execution of event handler 'run_buildstats' failed
Traceback (most recent call last):
  File "run_buildstats(e)", line 18, in run_buildstats(e=<bb.event.BuildStarted object at 0x7f93341c1b50>)
  File "buildstats.bbclass", line 17, in set_device(e=<bb.event.BuildStarted object at 0x7f93341c1b50>)
SystemError: ../Objects/longobject.c:998: bad argument to internal function

ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/ubuntu/work/bleeding/openembedded-core/bitbake/lib/bb/command.py", line 102, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/home/ubuntu/work/bleeding/openembedded-core/bitbake/lib/bb/command.py", line 303, in buildTargets
    command.cooker.buildTargets(pkgs_to_build, task)
  File "/home/ubuntu/work/bleeding/openembedded-core/bitbake/lib/bb/cooker.py", line 1336, in buildTargets
    bb.event.fire(bb.event.BuildStarted(buildname, fulltargetlist), self.data)
  File "/home/ubuntu/work/bleeding/openembedded-core/bitbake/lib/bb/event.py", line 163, in fire
    fire_class_handlers(event, d)
  File "/home/ubuntu/work/bleeding/openembedded-core/bitbake/lib/bb/event.py", line 102, in fire_class_handlers
    execute_handler(name, handler, event, d)
  File "/home/ubuntu/work/bleeding/openembedded-core/bitbake/lib/bb/event.py", line 76, in execute_handler
    ret = handler(event)
  File "run_buildstats(e)", line 18, in run_buildstats
  File "buildstats.bbclass", line 17, in set_device
SystemError: ../Objects/longobject.c:998: bad argument to internal function

similar to here
http://pycuda.2962900.n2.nabble.com/bad-argument-to-internal-function-td4063274.html

If it is right fix .. Dont know

Change-Id: I84f3a4043ad5246e080dfd7e2f066e5292d4af91
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agofontcache.bbclass: prepend to PACKAGEFUNCS instead of appending
Jonathan Liu [Mon, 9 Mar 2015 01:13:56 +0000 (12:13 +1100)]
fontcache.bbclass: prepend to PACKAGEFUNCS instead of appending

Appending to PACKAGEFUNCS results in the font packages missing the
postinst/postrm scripts and the fontconfig cache not being generated
in /var/cache/fontconfig when creating images or installing font
packages. This is because the package data has already been emitted
by emit_pkgdata in PACKAGEFUNCS. Prepend to PACKAGEFUNCS to ensure
add_fontcache_postinsts is executed before emit_pkgdata.

[YOCTO #7410]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopostinst-intercepts/update_font_cache: fix ownership of fontconfig cache
Jonathan Liu [Mon, 9 Mar 2015 02:28:37 +0000 (13:28 +1100)]
postinst-intercepts/update_font_cache: fix ownership of fontconfig cache

The file ownership of the cache files in /var/cache/fontconfig needs to
be set to root:root otherwise it inherits the user and group id of the
build user.

[YOCTO #7411]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agonativesdk.bbclass: set PKGDATA_DIR explicitly
Chen Qi [Mon, 9 Mar 2015 06:39:48 +0000 (14:39 +0800)]
nativesdk.bbclass: set PKGDATA_DIR explicitly

For now, if we enable 'multilib' and execute `bitbake uninative-tarball
-c populate_sdk', the command would fail, complaining nativesdk-glibc not
found in package feed.

The problem is that PKGDATA_DIR is not set correctly for nativesdk packages
when multilib is enabled.

For now, we have:
meta/conf/bitbake.conf:PKGDATA_DIR = "${STAGING_DIR_HOST}/pkgdata"

The above is overriden by the following is multilib is enabled.
meta/conf/multilib.conf:PKGDATA_DIR = "${STAGING_DIR}/${MACHINE}/pkgdata"

This is correct for normal packages. However, for nativesdk packages, this
is not correctly. This is because nativesdk.bbclass set STAGING_DIR_HOST as
follows.

meta/classes/nativesdk.bbclass:STAGING_DIR_HOST = "${STAGING_DIR}/${MULTIMACH_HOST_SYS}"

The above overrides the value in multilib.conf.

That's why we need to also set PKGDATA_DIR explicitly in nativesdk.bbclass.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agotest-dependencies.sh: strip only .bb suffix
Martin Jansa [Sat, 7 Mar 2015 08:54:24 +0000 (09:54 +0100)]
test-dependencies.sh: strip only .bb suffix

* we were stripping too much when stripping recipe name from line like this:
  ERROR: Task 12016 (/some/patch/something.dot.bar.bb, do_fetch) failed with exit code '1'
  where the recipe name contains dots and doesn't end with _<version>.bb
* apply the same fix as 8c9a25ae70d249b823ab2b0385d539eb8bbc1374 while
  building individual recipes

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-setup-builddir: output message cleanup
Benjamin Esquivel [Wed, 11 Mar 2015 10:40:46 +0000 (10:40 +0000)]
oe-setup-builddir: output message cleanup

Moved a Yoctoproject documentation banner to the end of the first-time
run messages section

[YOCTO #7368]

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobitbake.conf: use http:// for GNU_MIRROR instead of ftp://
Koen Kooi [Mon, 9 Mar 2015 10:51:11 +0000 (11:51 +0100)]
bitbake.conf: use http:// for GNU_MIRROR instead of ftp://

The past few weeks ftp://ftp.gnu.org has been intermittently giving errors like this:

WARNING: Failed to fetch URL ftp://ftp.gnu.org/gnu/emacs/emacs-23.4.tar.gz;name=tarball, attempting MIRRORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 4, output:
Cannot parse PASV response.
accept: Connection timed out
Cannot parse PASV response.
Error in server response, closing control connection.

Which is annoying because binutils lives there. Using http://ftp.gnu.org hasn't given any problems so far.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolib/oeqa/runtime/systemd: Add a basic runtime test for the journal
Randy Witt [Mon, 9 Mar 2015 20:04:14 +0000 (13:04 -0700)]
lib/oeqa/runtime/systemd: Add a basic runtime test for the journal

The test_systemd_journal() test will fail if journalctl exits with a
non-zero exit status. The exit status is non-zero even if there are no
journal files, which is what drove the creation of this test.

[Yocto #7388]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooeqa/parselogs: Skip hda opcode errors
Richard Purdie [Tue, 10 Mar 2015 14:20:44 +0000 (14:20 +0000)]
oeqa/parselogs: Skip hda opcode errors

These occur when running images under virtualisation on machines with
high load which sometimes trigger timeouts in the kernel DMA code.
They're harmless to ignore in these cases.

Adding this since "failing" the build due to this is more annoying
thank useful.

[YOCTO #7387]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolayer.conf: bump version as error-report interface changed
Ross Burton [Tue, 10 Mar 2015 16:28:08 +0000 (16:28 +0000)]
layer.conf: bump version as error-report interface changed

The error-report tooling command-line options were changed and anyone doing
automated builds and using error-reports needs to know what options to parse.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoxserver-xorg: don't close already-closed connections
Ross Burton [Mon, 9 Mar 2015 17:40:37 +0000 (17:40 +0000)]
xserver-xorg: don't close already-closed connections

On shutdown xserver was closing connections that were already closed, resulting
in a segfault.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemtap: Upgrade to 2.7
Saul Wold [Fri, 6 Mar 2015 03:19:46 +0000 (19:19 -0800)]
systemtap: Upgrade to 2.7

This address issues with the 3.19 kernel and the number of patches to
back port would be to great

[YOCTO #7401]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: Fix the problem of an empty journal on boot
Randy Witt [Fri, 6 Mar 2015 02:11:46 +0000 (18:11 -0800)]
systemd: Fix the problem of an empty journal on boot

systemd by default tries to write the journal to /var/log/journal.
But base-files has a symlink /var/log -> /var/volatile/log. And
/var/volatile is a tmpfs mount in /etc/fstab.

If the journal service started before /var/volatile was mounted (which
was the typical scenario) then the journal would appear empty since
the old location was mounted over.

This change fixes the problem by ensuring that the journal doesn't start
until after the mount happens.

[Yocto #7388]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agomailx: fix SRC_URI
Robert Yang [Fri, 6 Mar 2015 09:32:35 +0000 (01:32 -0800)]
mailx: fix SRC_URI

The old one is not available any more.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: Fix runtime failures in systemd-tmpfiles-setup.service.
Randy Witt [Thu, 5 Mar 2015 03:01:05 +0000 (19:01 -0800)]
systemd: Fix runtime failures in systemd-tmpfiles-setup.service.

There were failures at boot from systemd-tmpfiles-setup.service due to
tmpfiles.d not honoring the ordering of entries in the files.

The patch here fixes the ordering issue which subsequently fixes the
failures on boot.

[Yocto #7393]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoglibc: 'yes' within the path sets wrong variables
Benjamin Esquivel [Thu, 5 Mar 2015 08:17:37 +0000 (08:17 +0000)]
glibc: 'yes' within the path sets wrong variables

The AC_EGREP_CPP macro is looking for a 'yes' string that is likely
to be found in the path where the file is stored. This false positive
match causes variables to be mistakenly set.

The fix is to use a more elaborated string instead.

This has to be done at the configure and the configure.ac files, because
a reconfigure does not happen in the regular build flow.

[YOCTO #6614]

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoopkg: Fix error when recompiled
Gary Thomas [Thu, 5 Mar 2015 15:48:51 +0000 (08:48 -0700)]
opkg: Fix error when recompiled

If this package were ever recompiled, i.e. do_compile is rerun
as a result of a compiler change, etc., the 'opkg.conf' file
would be incorrectly updated, leading to an error:
 * opkg_conf_set_option: Duplicate option lists_dir, using first seen value "/var/lib/opkg".

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogdb: add whitespace to _append
Ross Burton [Thu, 5 Mar 2015 10:59:40 +0000 (10:59 +0000)]
gdb: add whitespace to _append

Add leading whitepace to EXTRA_OECONF_append so it doesn't rely on the original
value ending with trailing whitespace.  Spotted by Robert P. J. Day.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: correct permission mode of /var/volatile/tmp
Kai Kang [Thu, 5 Mar 2015 01:20:08 +0000 (09:20 +0800)]
systemd: correct permission mode of /var/volatile/tmp

Permission mode of directory /var/volatile/tmp should be 1777,
correct it.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: Create packageconfig for ldconfig support
Khem Raj [Thu, 5 Mar 2015 01:23:49 +0000 (01:23 +0000)]
systemd: Create packageconfig for ldconfig support

Useful when we disable ldconfig in glibc, we need to be able to
turn it off in systemd too, otherwise systemd tries to launch
the service and it fails

Change-Id: I170307f809a13def0cafc282e88d4eafa0313c31
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoimage_types: Fix MIN_BTRFS_SIZE to be 1024 blocks to match ROOTFS_SIZE
Saul Wold [Thu, 5 Mar 2015 01:05:24 +0000 (17:05 -0800)]
image_types: Fix MIN_BTRFS_SIZE to be 1024 blocks to match ROOTFS_SIZE

[YOCTO #7392]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: fix systemd-tmpfiles ACL issues
Dan McGregor [Wed, 4 Mar 2015 16:22:00 +0000 (10:22 -0600)]
systemd: fix systemd-tmpfiles ACL issues

On systems where /var/log is not a volatile systemd-tmpfiles creates
duplicate ACL entries. This causes systemd-tmpfiles service to fail.
Also quietly ignore ACL settings on filesystems that don't support ACLs.

Backport the fixes from systemd master to fix these issues.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoopenssl: Upgrade to 1.0.2
Saul Wold [Wed, 4 Mar 2015 17:46:48 +0000 (09:46 -0800)]
openssl: Upgrade to 1.0.2

Rebased numerous patches
removed aarch64 initial work since it's part of upstream now
Imported a few additional patches from Debian to support the version-script
and blacklist additional bad certificates.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobash 3.2.48: disable parallel build
Robert Yang [Wed, 4 Mar 2015 09:23:28 +0000 (01:23 -0800)]
bash 3.2.48: disable parallel build

It's Makefile has the two rules:
$(BUILTINS_LIBRARY): $(BUILTIN_DEFS) $(BUILTIN_C_SRC) config.h ${BASHINCDIR}/memalloc.h version.h
    @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) DEBUG=${DEBUG} libbuiltins.a ) || exit 1

${DEFDIR}/builtext.h: $(BUILTIN_DEFS)
    @(cd $(DEFDIR) && $(MAKE) $(MFLAGS) builtext.h ) || exit 1

which causes parallel issues:
mkbuiltins.o: file not recognized: File truncated
collect2: ld returned 1 exit status

I don't have any good ideas to fix the problem, so disable parallel
build for it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocreate-pull-request: fix git GIT_VERSION
Robert Yang [Wed, 4 Mar 2015 09:29:53 +0000 (01:29 -0800)]
create-pull-request: fix git GIT_VERSION

If the git version is 1.7.9.5, then 1795 is bigger than 210 which causes
errors like:
fatal: No such ref: :rbt/bash
fatal: Needed a single revision
ERROR: git request-pull reported an error

Use the first 3 numbers to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopkg-config: strip system library paths reliably
Ross Burton [Thu, 22 Jan 2015 17:27:38 +0000 (17:27 +0000)]
pkg-config: strip system library paths reliably

pkg-config was skipping every other link flag due to a list manipulation bug,
backport a commit from git to fix this.

This will stop users of zlib.pc from inserting the sysroot directory indirectly
into builds.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorpm: don't put LDFLAGS into the .pc file
Ross Burton [Thu, 22 Jan 2015 17:31:45 +0000 (17:31 +0000)]
rpm: don't put LDFLAGS into the .pc file

The LDFLAGS are not generally useful with pkg-config and mean that the .pc file
contains references to the sysroot directory, so remove it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooeqa/selftest: Added a testcase to verify INCOMPATIBLE_LICENSE option.
Lucian Musat [Tue, 3 Mar 2015 10:31:12 +0000 (12:31 +0200)]
oeqa/selftest: Added a testcase to verify INCOMPATIBLE_LICENSE option.

Fixes bug 6933

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolib/oeqa/selftest/lic-checksum: Verify failure when checksum changes.
Randy Witt [Mon, 2 Mar 2015 18:55:38 +0000 (10:55 -0800)]
lib/oeqa/selftest/lic-checksum: Verify failure when checksum changes.

The test added verifies that when a file with an absolute path in
LIC_FILES_CHKSUM changes without a corresponding change to the md5sum,
it triggers the license qa test again with a failure.

[Yocto #6450]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobase.bbclass: Add LIC_FILES_CHKSUM files to checksum files.
Randy Witt [Mon, 2 Mar 2015 18:55:37 +0000 (10:55 -0800)]
base.bbclass: Add LIC_FILES_CHKSUM files to checksum files.

Previously, files with absolute paths in LIC_FILES_CHKSUM such as
"file://${COMMON_LICENSE_DIR}/foo" would not result in a qa failure
when the license file changed.

To fix this problem, add any files with absolute paths from
LIC_FILES_CHKSUM to the file-checksums varflag, so that changes in the
license file are detected and cause the qa task for licenses to run.

[Yocto #6450]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosed: Cope with ${bindir} and ${base_bindir} being the same
Mike Crowe [Thu, 5 Feb 2015 17:50:23 +0000 (17:50 +0000)]
sed: Cope with ${bindir} and ${base_bindir} being the same

${bindir} and ${base_bindir} may be the same. If they are don't try and
move files onto themselves.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibtool: put libltdl.la in the right package.
Li Zhou [Mon, 2 Mar 2015 10:30:22 +0000 (18:30 +0800)]
libtool: put libltdl.la in the right package.

The libltdl libraries are put in libltdl-* packages, but libltdl.la
is packaged in libtool-dev. This change puts libltdl.la in libltdl-dev
package instead of libtool-dev.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoglibc_2.21.bb: Fix condition to skip parsing the recipe for non-glibc libc
Khem Raj [Fri, 27 Feb 2015 17:19:55 +0000 (17:19 +0000)]
glibc_2.21.bb: Fix condition to skip parsing the recipe for non-glibc libc

The condition should be uclibc 'or' musl then we know its not glibc
right now it checks with 'and' operator, that condition will never be
true

Change-Id: Ifc48e81fd0b3c18d8e1ef76a18c216dc6acda092
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibgpg-error: Add -P option to CPPFLAGS
Khem Raj [Fri, 27 Feb 2015 17:19:53 +0000 (17:19 +0000)]
libgpg-error: Add -P option to CPPFLAGS

Fixes https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1301822.html

libgpg-error FTBFS when built with gcc-5. Here is the relevant excerpt:

| Making all in src
| make[4]: Entering directory '/tmp/buildd/libgpg-error/libgpg-error-1.17/src'
| gawk -f ./mkstrtable.awk -v textidx=3 \
|         ./err-sources.h.in >err-sources.h
| gawk -f ./mkstrtable.awk -v textidx=3 \
|         ./err-codes.h.in >err-codes.h
| gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
| gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
| gcc -E -D_FORTIFY_SOURCE=2  _mkerrcodes.h | grep GPG_ERR_ | \
|                gawk -f ./mkerrcodes.awk >mkerrcodes.h
| rm _mkerrcodes.h
| gcc -I. -I. -o mkerrcodes ./mkerrcodes.c
| In file included from ./mkerrcodes.c:26:0:
| ./mkerrcodes.h:9:5: error: expected expression before ',' token
|    { , "GPG_ERR_E2BIG" },
|      ^

It makes invalid assumptions on undefined behaviour of gcc. To see why,
let us look at the contents of the intermediate steps:

_mkerrcodes.h (deleted):
| ...
| #ifdef E2BIG
| E2BIG   GPG_ERR_E2BIG
| #endif
| #ifdef WSAE2BIG
| WSAE2BIG        GPG_ERR_E2BIG
| #endif
| ...

gcc -E -D_FORTIFY_SOURCE=2  _mkerrcodes.h | grep -v '^$':
| ...
| # 26 "_mkerrcodes.h" 2
| 7
| # 31 "_mkerrcodes.h"
|      GPG_ERR_E2BIG
| # 37 "_mkerrcodes.h" 3 4
| 13
| # 37 "_mkerrcodes.h"
|       GPG_ERR_EACCES
| ...

As can be seen here, the cpp from gcc-5 can split lines and "grep
GPG_ERR_" fails to account for that.

Change-Id: I6f1476e4afc7163ebc3a05106ceaa3b83e3fab3e
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowic: rawcopy: support skipping
Alexandre Belloni [Sun, 1 Mar 2015 12:54:16 +0000 (13:54 +0100)]
wic: rawcopy: support skipping

Add support for skipping the beginning of a file with the rawcopy
plugin.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowic: add fsimage plugin
Alexandre Belloni [Sun, 1 Mar 2015 12:54:15 +0000 (13:54 +0100)]
wic: add fsimage plugin

The fsimage plugin allows to add an already existing filesystem image in
the partition layout.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowic: fix fstab generation
Alexandre Belloni [Sun, 1 Mar 2015 12:54:14 +0000 (13:54 +0100)]
wic: fix fstab generation

Commit 0a6668f6e60b4195ff4163c00fc972bacdb27b4b still included some
debug and is not working properly as the new fstab is generated too
late.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: avoid parsing error when 'networkd' is enabled in PACKAGECONFIG
Chen Qi [Mon, 2 Mar 2015 07:37:48 +0000 (15:37 +0800)]
systemd: avoid parsing error when 'networkd' is enabled in PACKAGECONFIG

If 'networkd' is enabled in PACKAGECONFIG, the do_install variable cannot
be correctly expanded. Error message is like below.

Failure expanding variable do_install: ShellSyntaxError: LexToken(Fi,'fi',0,0)
followed by:
  LexToken(NEWLINE,'\n',0,0)

This patch fixes the above problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogcc-source: fix bug to avoid building error.
Bian Naimeng [Mon, 2 Mar 2015 11:34:48 +0000 (19:34 +0800)]
gcc-source: fix bug to avoid building error.

gcc-source don't do do_package_write_rpm, so we should set
PACKAGES = "" to avoid the building error if we want generate srpm,
otherwise, we get the error as below.

ERROR: Task do_deploy_archives in meta/recipes-devtools/gcc/gcc-source_4.9.bb \
       depends upon non-existent task do_package_write_rpm in \
       meta/recipes-devtools/gcc/gcc-source_4.9.bb

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agometa/lib/oe/utils.py: properly implement both_contain()
Cristian Iorga [Wed, 25 Feb 2015 15:15:46 +0000 (17:15 +0200)]
meta/lib/oe/utils.py: properly implement both_contain()

oe.utils.both_contain() just does a find() on the value
rather than splitting the value and then looking in the
list of split items. The result is that if you add a
feature to MACHINE_FEATURES that itself has a substring
that matches one of the values looked for when building
COMBINED_FEATURES, you end up with an incomprehensible
error (here with "ext2i" in MACHINE_FEATURES):

ERROR: Nothing RPROVIDES 'packagegroup-base-ext2'
(but /home/balister/src/oe-core/oe-core/meta/recipes-core/
/packagegroups/packagegroup-base.bb RDEPENDS on or otherwise requires it)

Fix [YOCTO #6888].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoreport-error: Update information on the submission process
Michael Wood [Fri, 27 Feb 2015 12:15:19 +0000 (12:15 +0000)]
report-error: Update information on the submission process

The new send-error-report will prompt for review of items and the server is
now specified by using the -s argument.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoscripts/send-error-report: Rework script to support new features
Michael Wood [Fri, 27 Feb 2015 11:47:54 +0000 (11:47 +0000)]
scripts/send-error-report: Rework script to support new features

- Add arguments to allow for non-prompted sending, json encoded response
  and link backs.
- Add feature to check the server's max_log_size
- Add feature to allow reviewing of the final data
- Be a bit more helpful if the expected fields aren't filled in instead
  of exiting.
- Remove the redundant urlencode
- Add a user-agent so that the server can identify the encoding method.
- Remove custom proxy handling - urllib should 'just work'

[YOCTO #6736]
[YOCTO #7245]
[YOCTO #7105]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorecipes: add x11 to required DISTRO_FEATURES
Martin Jansa [Mon, 9 Feb 2015 12:25:15 +0000 (13:25 +0100)]
recipes: add x11 to required DISTRO_FEATURES

* it's not complete, but recipes depending on virtual/libx11 are easiest
  to spot, I've long list of PNBLACKLIST for all recipes which cannot
  be built in distro without x11 in DISTRO_FEATURES

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/runqemu: clarify help text
Bernhard Reutner-Fischer [Fri, 27 Feb 2015 19:32:58 +0000 (20:32 +0100)]
scripts/runqemu: clarify help text

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqt4: add patch for BMP denial-of-service vulnerability
Jonathan Liu [Mon, 2 Mar 2015 06:47:46 +0000 (17:47 +1100)]
qt4: add patch for BMP denial-of-service vulnerability

For further details, see:
https://bugreports.qt.io/browse/QTBUG-44547

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoman: fix bugs of makewhatis script
Jian Liu [Thu, 26 Feb 2015 02:35:52 +0000 (10:35 +0800)]
man: fix bugs of makewhatis script

- man-1.6e-whatis2.patch does not delete the tail "fi"
  fix it to avoid syntax error
- Use the command "which" to get the path of awk

Signed-off-by: Jian Liu <jian.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Tue, 3 Mar 2015 13:12:50 +0000 (13:12 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: fix tmpfiles error on images without PAM
Ross Burton [Tue, 3 Mar 2015 11:54:25 +0000 (11:54 +0000)]
systemd: fix tmpfiles error on images without PAM

If PAM isn't enabled then systemd-tmpfiles on boot will fail to start with the
following error message:

Failed to copy files to /etc/pam.d: No such file or directory

This is because systemd-tmpfiles is attempting to build a usable /etc from the
skeleton in /usr/share/factory but pam.d isn't present because PAM is disabled.
Fix this by not attempting to copy pam.d in non-PAM configurations.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogstreamer1.0-plugins-bad: disable Yadif on X32
Ross Burton [Mon, 2 Mar 2015 22:25:52 +0000 (22:25 +0000)]
gstreamer1.0-plugins-bad: disable Yadif on X32

Yadif generates bad assembler when the x32 tune is enabled:

gst/yadif/yadif_template.c:244: Error: `(%edx,%r11)' is not a valid base/index expression

This should be fixed upstream but until then we can disable the Yadif
plugin if x32 is enabled.

[ YOCTO #7385 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglibc: Fix check for -Os.
Peter Urbanec [Mon, 2 Mar 2015 04:28:22 +0000 (15:28 +1100)]
glibc: Fix check for -Os.

The check is supposed to be for -Os, but it's actually testing -O0.

Signed-off-by: Peter Urbanec <openembedded-devel@urbanec.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-player: port to GTK+ 2
Ross Burton [Mon, 2 Mar 2015 11:41:47 +0000 (11:41 +0000)]
gst-player: port to GTK+ 2

Whilst Sato still uses GTK+ 2 we don't want the overhead of building both GTK+ 2
and GKT+ 3.  Luckily gtk-play is a simple application and it's just a small
patch away from building with GTK+ 2.

When Sato is ported to GTK+ 3 (the mythical Shuku proposal) this patch can be
removed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokern-tools: improve patch application performance
Bruce Ashfield [Mon, 2 Mar 2015 21:36:41 +0000 (16:36 -0500)]
kern-tools: improve patch application performance

Update the SRCREV for the following incremental improvement in patch
processing time:

    kgit-meta: skip patches on non-leaf nodes

    In a similar way as commit 0768d697 [kgit-meta: dont run kgit-s2q
    for
    non-leaf nodes], we can save even more processing time by not even
    analysing and linking patches if we aren't on the leaf node of the
    tree.

    This early exit can save nearly 95% of the time required to "patch"
    a tree when no changes are actually applied.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: OcteonIII support
Bruce Ashfield [Mon, 2 Mar 2015 21:36:40 +0000 (16:36 -0500)]
linux-yocto/3.14: OcteonIII support

With these SRCREV updates, we add the following support to the kernel:

The following has been verified with the branch sources:

 On 68xx:

   * SGMII, XAUI Packet IO interfaces.
   * PCIe devices
   * EHCI/OHCI USB driver

 On 78XX:

   * Ran LTP testsuite
   * SGMII, XAUI Packet IO interfaces
   * MMC driver (which covers GPIO interrupts in the driver)
   * PCIe devices
   * XHCI USB driver

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-yocto: inhibit BSP description warnings for custom linux-yocto kernels
Bruce Ashfield [Mon, 2 Mar 2015 21:36:39 +0000 (16:36 -0500)]
kernel-yocto: inhibit BSP description warnings for custom linux-yocto kernels

We don't require that a yocto custom kernel + defconfig have a full BSP
description (but of course it would be better if they did). Since this
isn't a requirement, we shouldn't alarm users by generating a BSP
description warning.

To implement this, we add a bsp audit level flag (like the one that
exists for kconfig audits), and only set it to activate in the versioned
linux-yocto recipes.

[YOCTO: #7370]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto: fix qemux86-64 config warning
Bruce Ashfield [Mon, 2 Mar 2015 21:36:38 +0000 (16:36 -0500)]
linux-yocto: fix qemux86-64 config warning

During the 3.19 update a 32 bit option in the 64 bit config was missed,
which results in the option being dropped (and reported as a warning):

  Value requested for CONFIG_PCI_GOANY not in final ".config"
  Requested value: "CONFIG_PCI_GOANY=y"
  Actual value set: ""

So we split the 32bit only drivers out of the common driver include and
the problem goes away.

[YOCTO: 7354]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotaglib: Fix cmake floating dependency on boost
Richard Purdie [Mon, 2 Mar 2015 18:05:36 +0000 (18:05 +0000)]
taglib: Fix cmake floating dependency on boost

The previous fix for this issue was incomplete. We also need to change
the source file to avoid this error. Grepping the build directory for boost
will show the issue when building taglib after boost has been built.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosecurity_flags: remove PIE flags from flex and gstreamer1.0-plugins-bad
Ross Burton [Mon, 2 Mar 2015 12:56:06 +0000 (12:56 +0000)]
security_flags: remove PIE flags from flex and gstreamer1.0-plugins-bad

These recipes both fail to build with "relocation R_X86_64_PC32 against
undefined hidden symbol `__init_array_start' can not be used when making a
shared object" when using PIE.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Fri, 27 Feb 2015 21:15:53 +0000 (21:15 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-player: only depend on -ugly plugins if commercial licenses enabled
Ross Burton [Fri, 27 Feb 2015 21:12:12 +0000 (21:12 +0000)]
gst-player: only depend on -ugly plugins if commercial licenses enabled

gstreamer1.0-plugins-ugly is protected by the "commercial" LICENSE_FLAGS, so
only recommend it if those licenses are enabled.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Fri, 27 Feb 2015 19:17:32 +0000 (19:17 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: add PACKAGECONFIG for xkbcommon and iptables
Ross Burton [Fri, 27 Feb 2015 14:57:48 +0000 (14:57 +0000)]
systemd: add PACKAGECONFIG for xkbcommon and iptables

systemd has optional support for xkbcommon (verify keymaps when locale changes)
and iptables (configure NAT rules).

Add PACKAGECONFIG options for these, disabling iptables by default and
respecting the X11 DISTRO_FEATURE for libxkbcommon (as the code involves X11
keymaps).

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: use PACKAGECONFIG for PAM enable/disable
Ross Burton [Fri, 27 Feb 2015 14:57:47 +0000 (14:57 +0000)]
systemd: use PACKAGECONFIG for PAM enable/disable

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: add missing util-linux build-dependency
Ross Burton [Fri, 27 Feb 2015 14:57:46 +0000 (14:57 +0000)]
systemd: add missing util-linux build-dependency

This dependency accidently disappeared in the 219 upgrade, so add it back.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoowl-video: remove
Ross Burton [Fri, 27 Feb 2015 14:14:22 +0000 (14:14 +0000)]
owl-video: remove

The testapps packagegroup was the only user of owl-video, and now that has been
replaced by gst-player this can be deleted.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackagegroups: use gst-player instead of owl-video
Ross Burton [Fri, 27 Feb 2015 14:14:21 +0000 (14:14 +0000)]
packagegroups: use gst-player instead of owl-video

owl-video is a bad video player that doesn't work very well, use gst-player
instead for testing.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosato: fix typo in packagegroup
Ross Burton [Fri, 27 Feb 2015 14:14:20 +0000 (14:14 +0000)]
sato: fix typo in packagegroup

The gtk-play binary is packaged in gst-player-bin...

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Fri, 27 Feb 2015 07:43:07 +0000 (07:43 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython: Fix ctypes/libffi configure
Alejandro Hernandez [Thu, 26 Feb 2015 21:27:25 +0000 (15:27 -0600)]
python: Fix ctypes/libffi configure

Forces the creation of a configure script for ctypes/libffi Module
by calling autoreconf after it being deleted on do_configure().

Fixes configuration hence compilation of this Python module.

[YOCTO #7373]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_rpm.bbclass: support packaging of symlinks to directories
Patrick Ohly [Wed, 25 Feb 2015 14:53:29 +0000 (06:53 -0800)]
package_rpm.bbclass: support packaging of symlinks to directories

os.walk() returns symlinks to directories in the "dirs" lists, but then never
enters them by default. As a result, the old code applied neither the
directory handling (because that is active once a directory gets entered) nor
the file handling, and thus never packaged such symlinks.

The fix is simple: find such special directory entries and move them to the
"files" list. However, one has to be careful about the undefined behavior of
modifying a list while iterating over it.

This fix was required for packaging a modified base-files that created
symlinks into /usr for /sbin /lib and /sbin.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibpcap: add pkg-config support
Joe MacDonald [Wed, 25 Feb 2015 04:39:01 +0000 (23:39 -0500)]
libpcap: add pkg-config support

libpcap was not previously installing a pkg-config file.  Add a basic one
that will allow using 'pkg-config --libs libpcap', for example, in recipes
rather than 'pcap-config', which frequently returns incorrect information.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: Upgrade 218 -> 219
Khem Raj [Wed, 25 Feb 2015 02:55:57 +0000 (02:55 +0000)]
systemd: Upgrade 218 -> 219

219 has been in the docks for sometime, the older patch got merged
this patch is now upgrading 218 to 219

Make all patches using git

Change-Id: Ib0350144592aba26cad56c13c9a5522515915c58
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibgpg-error: Upgrade 1.17 -> 1.18
Khem Raj [Wed, 25 Feb 2015 02:31:56 +0000 (02:31 +0000)]
libgpg-error: Upgrade 1.17 -> 1.18

License checksums changed due to year change

-   Copyright (C) 2003, 2004, 2010, 2013, 2014 g10 Code GmbH
+   Copyright (C) 2003, 2004, 2010, 2013, 2014, 2015 g10 Code GmbH

Change-Id: I870446796cf9ffe3acae7aeeac2d96d6305d4186
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogaku: remove (replaced by gst-player)
Ross Burton [Thu, 26 Feb 2015 17:59:02 +0000 (17:59 +0000)]
gaku: remove (replaced by gst-player)

Gaku was buggy and use GStreamer 0.10, gst-player is less buggy and uses
GStreamer 1.x.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosato: use gtk-play (from gst-player) instead of Gaku
Ross Burton [Thu, 26 Feb 2015 17:59:01 +0000 (17:59 +0000)]
sato: use gtk-play (from gst-player) instead of Gaku

The Gaku media player was always a bit incomplete and had some serious bugs.
gst-player doesn't have these bugs, is maintained, and uses GStreamer 1.x.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-player: add
Ross Burton [Thu, 26 Feb 2015 17:59:00 +0000 (17:59 +0000)]
gst-player: add

gst-player is a convenience library for handling media playback in GStreamer.
It also has a sample application that can be used as a basic media player for
testing.

Patch in a file selector for use without a terminal and a desktop file so it
appears in the desktop.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/terminal: fix konsole terminal support for KDE 4.x
Paul Eggleton [Wed, 25 Feb 2015 11:22:25 +0000 (11:22 +0000)]
lib/oe/terminal: fix konsole terminal support for KDE 4.x

It seems that the --nofork option genuinely stops konsole from going
into the background now; I'm not sure when this changed but it does seem
to be working so we can use it. (Tested with Konsole 2.10 and 2.14.2).

Fixes [YOCTO #4934].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/terminal: fix regressions
Paul Eggleton [Wed, 25 Feb 2015 11:22:24 +0000 (11:22 +0000)]
lib/oe/terminal: fix regressions

Fix up some issues introduced by OE-Core commit
818c94f5b9882c2028ef9f056714a0a3c9045551:

* If we want to support versions with more than two parts, versions with
  only one part, or versions with non-integer parts, then we have to
  stay with strings. We can use distutils.version.LooseVersion() to help
  with comparisons.
* We don't want a warning when launching gnome-terminal 3.10+ and
  logger.warn() doesn't take a first integer parameter anyway
  (logger.debug() does).
* Also clean up tabs.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Tue, 24 Feb 2015 23:37:49 +0000 (23:37 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoterminal.py: No --disable-factory for gnome-terminal >= 3.10
Sven Ebenfeld [Mon, 23 Feb 2015 19:39:41 +0000 (20:39 +0100)]
terminal.py: No --disable-factory for gnome-terminal >= 3.10

--disable-factory has been disabled in earlier versions of gnome-terminal
but from version 3.10 it raises an error and quits. This makes devshell
unusable with gnome-terminal >= 3.10. This patch checks for the version and
removes --disable-factory if you have the terminal version 3.10 or higher.

Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: Upgrade 216 -> 218
Khem Raj [Tue, 24 Feb 2015 18:07:26 +0000 (18:07 +0000)]
systemd: Upgrade 216 -> 218

Remove upstreamed patches as well as patches which arent needed anymore
since features are dropped from systemd e.g. userspace firmware download
Tested on qemux86

Change-Id: Ic53aaad198998de146c3a7702ef17de871de9de6
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoutil-linux: disable systemd
Ross Burton [Tue, 24 Feb 2015 18:07:25 +0000 (18:07 +0000)]
util-linux: disable systemd

systemd has a build-dependency on util-linux for libmount, and util-linux has an
optional build dependency on systemd.

The features in util-linux that enabling systemd gives you are:
* lslogins can show recent journal entries from the user
* uuidd can use socket activation and has a service file
* fstrim has a service file
* logger can write journal entries

These are not worth the overhead of maintaining two util-linux recipes to
bootstrap the cycle, so disable systemd support in util-linux.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>