]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
7 years agoopenssh: Fix key generation with systemd
Joshua Watt [Tue, 4 Jul 2017 01:18:18 +0000 (20:18 -0500)]
openssh: Fix key generation with systemd

106b59d9 broke SSH host key generation when systemd and a read-only root file
system are in use because there isn't a way for systemd to get the optional
weak assigment of SYSCONFDIR from /etc/default/sshd and still provide a default
value if it is not specified. Instead, move the logic for determining if keys
need to be created to a helper script that both the SysV init script and the
systemd unit file can reference.

This does mean that the systemd unit file can't check for file existence to
know if it should start the service, but it wasn't able to do that correctly
anyway anymore. This should be a problem since the serivce is only run once per
power cycle by systemd, and should exit quickly if the keys already exist

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: allow multiple /boot partitions with different content
Enrico Scholz [Fri, 8 Sep 2017 17:33:02 +0000 (19:33 +0200)]
wic: allow multiple /boot partitions with different content

It can be useful to have multiple partitions with '--source bootimg-partition'
but different content.

E.g. for TI AM335x, one boot partition can contain an first stage
bootloader ("MLO"), while the real bootloader and kernel plus devicetree
are in another one.

Patch allows to specify multiple IMAGE_BOOT_FILES with optional "_label-XXX"
or "_uuid-XXX" overrides.

E.g. with this patch, a .wks file with

| part --source bootimg-partition ... --label=mlo --active
| part --source bootimg-partition ... --label=boot0
| part --source bootimg-partition ... --label=boot1

and a recipe with

| IMAGE_BOOT_FILES_label-mlo = "\
|   MLO-${MACHINE}.img;MLO \
| "
|
| IMAGE_BOOT_FILES_label-boot0 = "\
|   u-boot-${MACHINE}.img;u-boot.img \
|   zImage \
| "
|
| IMAGE_BOOT_FILES_label-boot1 = "${IMAGE_BOOT_FILES_label-boot0}"
|
| WICVARS += " \
|   IMAGE_BOOT_FILES_label-mlo \
|   IMAGE_BOOT_FILES_label-boot0 \
|   IMAGE_BOOT_FILES_label-boot1 \
| "

is possible.  It will create one partition with the MLO and two redundant
ones with the uboot + kernel.

Signed-off-by: Enrico Scholz <enrico.scholz@ensc.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoqemu: Security fixes
Yi Zhao [Thu, 21 Sep 2017 00:34:37 +0000 (08:34 +0800)]
qemu: Security fixes

Fix CVE-2017-13672, CVE-2017-13673, CVE-2017-13711, CVE-2017-14167

References:
https://nvd.nist.gov/vuln/detail/CVE-2017-13672
https://nvd.nist.gov/vuln/detail/CVE-2017-13673
https://nvd.nist.gov/vuln/detail/CVE-2017-13711
https://nvd.nist.gov/vuln/detail/CVE-2017-14167

Patches from:
CVE-2017-13672:
https://git.qemu.org/?p=qemu.git;a=commit;h=3d90c6254863693a6b13d918d2b8682e08bbc681
CVE-2017-13673:
https://git.qemu.org/?p=qemu.git;a=commit;h=e65294157d4b69393b3f819c99f4f647452b48e3
CVE-2017-13711:
https://git.qemu.org/?p=qemu.git;a=commit;h=1201d308519f1e915866d7583d5136d03cc1d384
CVE-2017-14167:
https://git.qemu.org/?p=qemu.git;a=commit;h=ed4f86e8b6eff8e600c69adee68c7cd34dd2cccb

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoqemu: remove unused patches
Yi Zhao [Thu, 21 Sep 2017 00:34:36 +0000 (08:34 +0800)]
qemu: remove unused patches

Remove the following patches since they are unused after qemu update to
2.10:
  0001-replace-struct-ucontext-with-ucontext_t-type.patch
  CVE-2016-9908.patch
  CVE-2016-9912.patch
  configure-fix-Darwin-target-detection.patch

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoptest-runner: fix segfault with -t option
Yi Zhao [Thu, 21 Sep 2017 03:18:31 +0000 (11:18 +0800)]
ptest-runner: fix segfault with -t option

The ptest-runner would segfault with -t option:
root@qemux86-64:~# ptest-runner -d /usr/lib test_pkg -t 5
[  237.234112] ptest-runner[810]: segfault at 0 ip 000000382e638060 sp
00007fff9130f400 error 4 in libc-2.26.so[382e600000+1a7000]

It is safe to bump SRCREV to latest upstream commit to fix this issue
because there is only one commit since the last update:

  commit 8a93832dad621535e90aa8e1fb74ae5ba743fc3e
  Author: Anders Wallin <wallinux@gmail.com>
  Date:   Sun May 28 11:47:00 2017 +0200

      timeout option missing the argument option ":" to getopt

      ptest-runner -t xx gives segfault

Signed-off-by: Anders Wallin <wallinux@gmail.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agostrace_4.18.bb: improve reproducibility
Juro Bystricky [Wed, 20 Sep 2017 17:27:59 +0000 (10:27 -0700)]
strace_4.18.bb: improve reproducibility

Remove build host references from strace-ptest package.
Also removed some unneeded timestaps.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogzip_1.8.bb: improve reproducibility
Juro Bystricky [Wed, 20 Sep 2017 17:27:17 +0000 (10:27 -0700)]
gzip_1.8.bb: improve reproducibility

Remove build host references from gzip-ptest package.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolinux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.12
Alejandro Hernandez [Wed, 20 Sep 2017 17:17:17 +0000 (10:17 -0700)]
linux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.12

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolinux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.10
Alejandro Hernandez [Wed, 20 Sep 2017 17:17:16 +0000 (10:17 -0700)]
linux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.10

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolinux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.9
Alejandro Hernandez [Wed, 20 Sep 2017 17:17:15 +0000 (10:17 -0700)]
linux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.9

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolinux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.4
Alejandro Hernandez [Wed, 20 Sep 2017 17:17:14 +0000 (10:17 -0700)]
linux-yocto-tiny: Enable qemux86-64 on linux-yocto-tiny 4.4

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocore-image-tiny-initramfs: Enable running poky-tiny on qemux86-64
Alejandro Hernandez [Wed, 20 Sep 2017 17:17:13 +0000 (10:17 -0700)]
core-image-tiny-initramfs: Enable running poky-tiny on qemux86-64

Building poky-tiny for x86-64 seems fine, but when executing qemu
it complains during boot time about not being able to execute init:

[    5.409730] Failed to execute /init (error -8)

And then it drops to a login prompt (which it should't do on tiny)

This is supposed to be complaining about init's format, it only happens
on x86-64 architectures so perhaps is a 32/64 bit issue, but since
core-image-tiny-initramfs does not actually provide a traditional init,
the script is simply meant to drop to shell, we can workaround the issue
by specifying the kernel to run the init script via busybox's sh,
dropping to shell correctly on x86-64 leaving x86 unaffected.

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoltp: fix hanging issue for gdb01 case
Yi Zhao [Thu, 21 Sep 2017 07:54:58 +0000 (15:54 +0800)]
ltp: fix hanging issue for gdb01 case

If gdb01 testcase runs as background process, gdb can receive SIGTTOU
and then the case gets stuck. Replace stdin with /dev/null to fix this
issue. The patch is backported from upstream.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopsmisc: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 21 Sep 2017 06:41:44 +0000 (14:41 +0800)]
psmisc: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibffi: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 21 Sep 2017 06:41:43 +0000 (14:41 +0800)]
libffi: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibcgroup: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 21 Sep 2017 06:41:42 +0000 (14:41 +0800)]
libcgroup: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agohdparm: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 21 Sep 2017 06:41:41 +0000 (14:41 +0800)]
hdparm: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotiff: Security fix CVE-2017-13726 and CVE-2017-13727
Yi Zhao [Thu, 21 Sep 2017 03:21:39 +0000 (11:21 +0800)]
tiff: Security fix CVE-2017-13726 and CVE-2017-13727

References:
https://nvd.nist.gov/vuln/detail/CVE-2017-13726
https://nvd.nist.gov/vuln/detail/CVE-2017-13727

Patches from:
CVE-2017-13726:
https://github.com/vadz/libtiff/commit/f91ca83a21a6a583050e5a5755ce1441b2bf1d7e

CVE-2017-13727:
https://github.com/vadz/libtiff/commit/b6af137bf9ef852f1a48a50a5afb88f9e9da01cc

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agometa/lib/oe/rootfs.py: clean up dnf cache after creating an image
Alexander Kanavin [Wed, 20 Sep 2017 12:51:00 +0000 (15:51 +0300)]
meta/lib/oe/rootfs.py: clean up dnf cache after creating an image

It contains cached metadata for a transient repository that is used
only when creating images on the host, and so is of no use on target
images. Dnf will recreate the cache on target when needed.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosanity: check that path variables don't use ~
Ross Burton [Wed, 20 Sep 2017 12:57:33 +0000 (13:57 +0100)]
sanity: check that path variables don't use ~

The core path variables (TMPDIR, DL_DIR, SSTATE_DIR) don't use tilde expansion
but if the user does then the errors are very mysterious, so check on startup.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosanity: correct Python version sanity check
Ross Burton [Wed, 20 Sep 2017 12:43:50 +0000 (13:43 +0100)]
sanity: correct Python version sanity check

We now require Python 3.4, not 2.7.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooe-build-perf-report-email.py: add cc and bcc options
Joshua Lock [Thu, 21 Sep 2017 10:18:34 +0000 (11:18 +0100)]
oe-build-perf-report-email.py: add cc and bcc options

Enable carbon copy and blind carbon copy recipients for the performance
report emails.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoscripts: rename yocto-compat-layer to remove "compatible" nomenclature
Paul Eggleton [Tue, 19 Sep 2017 03:57:07 +0000 (15:57 +1200)]
scripts: rename yocto-compat-layer to remove "compatible" nomenclature

"Yocto Project Compatible" [1] is a programme which requires you meet
specific criteria including going through an application process - it is
not sufficient simply to run the script we have created here and have it
produce no warnings/errors. To avoid people being confused by the fact
that this script uses the term "compatible" or variations thereof,
substitute usage of that word with "check" instead. The functionality of
the script is unchanged.

[1] https://www.yoctoproject.org/ecosystem/yocto-project-branding-program

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoncurses: CVE-2017-13732, CVE-2017-13734, CVE-2017-13730, CVE-2017-13729, CVE-2017...
Ovidiu Panait [Wed, 20 Sep 2017 10:13:49 +0000 (13:13 +0300)]
ncurses: CVE-2017-13732, CVE-2017-13734, CVE-2017-13730, CVE-2017-13729, CVE-2017-13728, CVE-2017-13731

There is an illegal address access in the function dump_uses() in progs/dump_entry.c
in ncurses 6.0 that might lead to a remote denial of service attack.

There is an illegal address access in the _nc_safe_strcat function in
strings.c in ncurses 6.0 that will lead to a remote denial of service attack.

There is an illegal address access in the function _nc_read_entry_source()
in progs/tic.c in ncurses 6.0 that might lead to a remote denial of service attack.

There is an illegal address access in the _nc_save_str function in
alloc_entry.c in ncurses 6.0. It will lead to a remote denial of service attack.

There is an infinite loop in the next_char function in comp_scan.c in
ncurses 6.0, related to libtic. A crafted input will lead to a remote denial of service attack.

There is an illegal address access in the function postprocess_termcap()
in parse_entry.c in ncurses 6.0 that will lead to a remote denial of service attack.

References:
https://nvd.nist.gov/vuln/detail/CVE-2017-13734
https://nvd.nist.gov/vuln/detail/CVE-2017-13732
https://nvd.nist.gov/vuln/detail/CVE-2017-13731
https://nvd.nist.gov/vuln/detail/CVE-2017-13730
https://nvd.nist.gov/vuln/detail/CVE-2017-13729
https://nvd.nist.gov/vuln/detail/CVE-2017-13728

Upstream patch:
https://anonscm.debian.org/cgit/collab-maint/ncurses.git/commit/?id=129aac80802d997b86ab0663836b7fdafb8e3926

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokernel.bbclass: build host programs with native sysroots
Wenzong Fan [Wed, 20 Sep 2017 08:17:05 +0000 (01:17 -0700)]
kernel.bbclass: build host programs with native sysroots

Allow to search header files and libs from native sysroots.

For example, an expanded BUILD_CFLAGS includes:
  '-isystem/builddir/to/linux-yocto/recipe-sysroot-native/usr/include'

And an expanded BUILD_LDFLAGS includes:
  '-L/builddir/to/linux-yocto/recipe-sysroot-native/usr/lib
   -Wl,-rpath-link,/builddir/to/linux-yocto/recipe-sysroot-native/usr/lib
   -Wl,-rpath,/builddir/to/linux-yocto/recipe-sysroot-native/usr/lib'

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoimage.bbclass: Sorted ctypes to avoid basehash error
Gerson Fernando Budke [Tue, 19 Sep 2017 17:15:36 +0000 (14:15 -0300)]
image.bbclass: Sorted ctypes to avoid basehash error

When selected multiple subimages a similar error could happend:
  Variable do_image_cpio[subimages] value changed \
    from 'cpio.gz.u-boot cpio.gz' to 'cpio.gz cpio.gz.u-boot'
To avoid this, 'ctypes' should be sorted at 'gen_conversion_cmds'.

This garantee that 'CONVERSION_CMD_xxx' are always written in tha same
order and consequently 'do_image_cpio' have the same hash.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoclasses/image: move image_qa to between rootfs and image
Ross Burton [Tue, 19 Sep 2017 16:20:37 +0000 (17:20 +0100)]
classes/image: move image_qa to between rootfs and image

It was noticed that do_image_qa is useless when rm_work is enabled as the rootfs
directory is deleted before image_qa is called.

This indicates that image_qa is incorrectly scheduled as it failing should mean
images don't get generated, so move it between do_rootfs and do_image.

Also, add a little bit more documentation to the comments.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agou-boot-fw-utils: Fix cross and target builds
Otavio Salvador [Tue, 19 Sep 2017 13:19:41 +0000 (10:19 -0300)]
u-boot-fw-utils: Fix cross and target builds

 - The environment tools target has change to envtools;
 - The HOSTCC variable must be used to set CC for cross;
 - Drop ARCH variable as it is set on config;

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agostrace: Fix ptest bulds with musl/mips
Khem Raj [Tue, 19 Sep 2017 05:55:51 +0000 (22:55 -0700)]
strace: Fix ptest bulds with musl/mips

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoclasses/image_live: fix using squashfs as image filesystem
Tomasz Meresiński [Tue, 19 Sep 2017 10:36:00 +0000 (12:36 +0200)]
classes/image_live: fix using squashfs as image filesystem

Different squashfs versions have IMAGE_TYPE with hyphen (eg squashfs-lz4).
Tasks on the other hand have names with underscore (eg do_image_squashfs_lz4).

Signed-off-by: Tomasz Meresiński <tomasz.meresinski@comarch.pl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agonspr: Fix build with musl/mips
Khem Raj [Tue, 19 Sep 2017 00:27:16 +0000 (17:27 -0700)]
nspr: Fix build with musl/mips

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoeudev: use archive tarball instead of Github generated tarball
Ross Burton [Mon, 18 Sep 2017 22:29:54 +0000 (23:29 +0100)]
eudev: use archive tarball instead of Github generated tarball

The Github-generated tarballs can and do change over time, so point at the
archived tarball website that the maintainer hosts.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocross-canadian.bbclass: drop TARGET_* flags overrides
Ming Liu [Sun, 17 Sep 2017 09:53:43 +0000 (11:53 +0200)]
cross-canadian.bbclass: drop TARGET_* flags overrides

A regression was introduced by me in commit 767335c9:
[ cross-canadian.bbclass: override TARGET_* flags ]

it causes BUILDSDK_C/CXXFLAGS being exported in environment-setup
script built from meta-environment recipe, which is wrong, restore to
TARGET_C/CXXFLAGS.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd-serialgetty: remove systemd from RDEPENDS
Chen Qi [Tue, 5 Sep 2017 08:08:00 +0000 (16:08 +0800)]
systemd-serialgetty: remove systemd from RDEPENDS

By setting systemd-serialgetty to rdepend on systemd, we are making
configuration files have runtime dependency on the main utility that
uses those configuration files. Applied with the same logic, we should
make any package that provides service files under /etc/init.d/ to have
runtime dependency on sysvinit. And this is not right.

So we should remove systemd from RDEPENDS of systemd-serialgetty.

Besides, as we have changed systemd to have systemd-serialgetty in its
RDEPENDS by default, we should avoid circular dependency issue.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd: change some RRECOMMENDS to RDEPENDS
Chen Qi [Tue, 5 Sep 2017 08:07:59 +0000 (16:07 +0800)]
systemd: change some RRECOMMENDS to RDEPENDS

Set NO_RECOMMENDATIONS to "1", build and start a systemd image, and we
could not get serial getty spawned, thus causing the user not able to
login via serial port.

E.g.
MACHINE=qemux86-64 bitbake core-image-minimal
runqemu qemux86-64 nographic

And we cannot login onto the system.

Move util-linux-agetty and systemd-serialgetty (determined by PACKAGECONFIG)
from RRECOMMENDS to RDEPENDS to fix the above problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoclasses/externalsrc: delete symlinks at start of do_buildclean
Paul Eggleton [Mon, 18 Sep 2017 04:54:42 +0000 (16:54 +1200)]
classes/externalsrc: delete symlinks at start of do_buildclean

To help users find the work and log directories (especially within the
eSDK) we create symlinks to these from the source tree. However during
do_buildclean we call "make clean", and some project Makefiles which
delete something like "*/*/lib" which will match files underneath the
oe-workdir symlink and fail. do_buildclean is called from do_clean which
is in turn called by devtool reset by default, and thus devtool reset is
blocked. An example of a recipe where this is visible is the openssl-qat
recipe in meta-intel.

In order to fix this, delete the symlinks at the start of do_buildclean
since we shouldn't need them at that point anyway, and thus make clean
won't be able to trip over them.

Fixes [YOCTO #11036].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobzip2: Create Makefile for run-ptest
Ooi Cinly [Thu, 14 Sep 2017 09:35:48 +0000 (17:35 +0800)]
bzip2: Create Makefile for run-ptest

To improve binary reproducibility, only the
relevent part of the Makefile in bzip2-ptest
package that run-ptest needs are copied to
the destination directory.

bzip2-ptest requires Makefile. The original
Makefile contains references to build host.
By copying only the relevent part,
we avoid those references making their way
into the target system

Used Makefile.am as the source to extract
the revelent part instead of Makefile as
it is easier to parse than Makefile.

A redundant command  in do_install_ptest()
that repeat the copying of Makefile that
was already copied by  Makefile's install-ptest
step is removed because it now interfers with
the creation of the new Makefile by
make's install-ptest.

[YOCTO #11596]

Signed-off-by: Ooi Cinly <cinly.ooi@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoutil-linux: package switch_root separately
Ioan-Adrian Ratiu [Mon, 18 Sep 2017 12:22:02 +0000 (15:22 +0300)]
util-linux: package switch_root separately

Having only this utility is useful for tiny initramfs'es which don't
need the whole util-linux package (and neither the busybox binary
which is much bigger than switch_root) to do operations like decrypt
a rootfs & switch to it in the init file.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobluez5: Correct support for building without systemd
Peter Kjellerstedt [Sun, 17 Sep 2017 09:06:04 +0000 (11:06 +0200)]
bluez5: Correct support for building without systemd

This avoids the following error when the systemd DISTRO_FEATURE is
enabled, but the systemd PACKAGECONFIG is not:

  ERROR: bluez5-5.46-r0 do_package: SYSTEMD_SERVICE_bluez5 value
  bluetooth.service does not exist

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosysvinit-inittab: start_getty: Cleanup comments
Andrea Adami [Fri, 15 Sep 2017 23:35:50 +0000 (01:35 +0200)]
sysvinit-inittab: start_getty: Cleanup comments

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosysvinit-inittab: start_getty: consider whitespaces in tty driver name
Andrea Adami [Fri, 15 Sep 2017 23:35:49 +0000 (01:35 +0200)]
sysvinit-inittab: start_getty: consider whitespaces in tty driver name

Unbreak serial console when driver name contains spaces (PXA serial).

Fix commit ac0e954
"start_getty: Over added SERIAL_CONSOLE cause error in userspace log"

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocore-image-tiny-initramfs: initramfs recipes should not generate an actual image...
Alejandro Hernandez [Fri, 15 Sep 2017 18:22:44 +0000 (11:22 -0700)]
core-image-tiny-initramfs: initramfs recipes should not generate an actual image file

core-image-tiny-initramfs was used to generate a wic image, which was conceptually wrong
since initrafms recipes should only generate the boot artifacts that can later be used
by another recipe to generate an image using the tool of their choice.

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtools: qemu: Remove obsolete '--with-system-pixman' option
Alistair Francis [Fri, 15 Sep 2017 16:56:29 +0000 (09:56 -0700)]
devtools: qemu: Remove obsolete '--with-system-pixman' option

QEMU version 2.11 will remove the pixman submodule. This means users are
always required to supply pixman from the system if building softmmu
support in QEMU.

Without specifying a pixman configure option QEMU will default to using
the system pixman if it is avaliable. In which case let's remove the
config option as it is no longer supported in recent commits and is not
required in older builds as the configure system defaults are already
using system pixman.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoAdd Go toolchain support
Otavio Salvador [Thu, 14 Sep 2017 19:22:31 +0000 (16:22 -0300)]
Add Go toolchain support

This adds the meta-go-toolchain. It enables the generation of a Go
toolchain allowing for cross compiling for target architecture.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogo.bbclass: set TMPDIR during compilation
Matt Madison [Thu, 14 Sep 2017 19:22:30 +0000 (16:22 -0300)]
go.bbclass: set TMPDIR during compilation

The go build tool creates working directories under
$TMPDIR for all of its processing.  Create a directory
under ${WORKDIR} for this and point TMPDIR at it during
compilation, so that systems that have a relatively
small /tmp filesystems can still compile larger Go
packages.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogo: fixes for cross-canadian builds
Matt Madison [Thu, 14 Sep 2017 19:22:29 +0000 (16:22 -0300)]
go: fixes for cross-canadian builds

* Add patch for go's make script to allow for
  build system != host system

* Add dependencies on the appropriate crosssdk recipes,
  and use the crosssdk C compiler and linker

* Remove bashism in the wrapper script

* Restrict installation to only the tool binaries
  to address some packaging errors

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogo: fix linking issues for nativesdk builds
Matt Madison [Thu, 14 Sep 2017 19:22:28 +0000 (16:22 -0300)]
go: fix linking issues for nativesdk builds

Switch to using an external linker for nativesdk
go, go-runtime, and go package builds, which works
more reliably when building 32-bit SDKs.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogo-crosssdk: fix host/target references and cleanup
Matt Madison [Thu, 14 Sep 2017 19:22:27 +0000 (16:22 -0300)]
go-crosssdk: fix host/target references and cleanup

* The _FOR_TARGET variables need to include SDKNATIVEPATH
* Install tools (cmd) only, and for the build host
* Remove unnecessary FILES setting

Corrects some errors when the build host architecture
is different from the SDKMACHINE's.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoalsa-state: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:06 +0000 (11:40 +0800)]
alsa-state: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoudev-extraconf: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:24 +0000 (11:40 +0800)]
udev-extraconf: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotrace-cmd: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:23 +0000 (11:40 +0800)]
trace-cmd: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd-serialgetty: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:22 +0000 (11:40 +0800)]
systemd-serialgetty: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd-compat-units: Add HOMEPAGE info into recipe.
Huang Qiyu [Mon, 18 Sep 2017 03:40:21 +0000 (11:40 +0800)]
systemd-compat-units: Add HOMEPAGE info into recipe.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoqemuwrapper-cross: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:20 +0000 (11:40 +0800)]
qemuwrapper-cross: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoopkg-arch-config: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:19 +0000 (11:40 +0800)]
opkg-arch-config: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomobile-broadband-provider-info: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:18 +0000 (11:40 +0800)]
mobile-broadband-provider-info: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolsbtest: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:17 +0000 (11:40 +0800)]
lsbtest: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolsbinitscripts: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:16 +0000 (11:40 +0800)]
lsbinitscripts: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxml-sax-perl: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:15 +0000 (11:40 +0800)]
libxml-sax-perl: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxml-sax-base-perl: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:14 +0000 (11:40 +0800)]
libxml-sax-base-perl: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxml-parser-perl: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:13 +0000 (11:40 +0800)]
libxml-parser-perl: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtimedate-perl: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:12 +0000 (11:40 +0800)]
libtimedate-perl: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokbd: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:10 +0000 (11:40 +0800)]
kbd: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinitscripts: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:09 +0000 (11:40 +0800)]
initscripts: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoi2c-tools: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:08 +0000 (11:40 +0800)]
i2c-tools: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodtc: Add HOMEPAGE info into recipe file.
Huang Qiyu [Mon, 18 Sep 2017 03:40:07 +0000 (11:40 +0800)]
dtc: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoconf: add maintainers.inc from meta-poky
Ross Burton [Thu, 14 Sep 2017 11:01:21 +0000 (12:01 +0100)]
conf: add maintainers.inc from meta-poky

7 years agogawk: Enable native building
Nathan Rossi [Sun, 10 Sep 2017 12:59:08 +0000 (22:59 +1000)]
gawk: Enable native building

Also update the ASSUME_PROVIDED in bitbake.conf to contain gawk-native
as the dependency is passed in via HOSTTOOLS for native builds.

This allows for recipes to depend on gawk-native, and have the
dependency met if not already provided by the host tools.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agouseradd.bbclass: Unify writing of script file in useradd_sysroot_sstate()
Peter Kjellerstedt [Fri, 15 Sep 2017 14:48:59 +0000 (16:48 +0200)]
useradd.bbclass: Unify writing of script file in useradd_sysroot_sstate()

There were two identical code blocks for writing the
postinst-useradd-${PN} scripts. This combines them into one.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobinutils: apply mingw fix only for binutils-cross-canadian
Samuli Piippo [Fri, 15 Sep 2017 10:07:07 +0000 (13:07 +0300)]
binutils: apply mingw fix only for binutils-cross-canadian

Whenever SDKMACHINE is set to mingw32, sdkmingw32 override is defined
everywhere. This meant that value of LDGOLD was different also for
binutils and binutils-cross depending whether SDKMACHINE was set or not.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: show recipe version changes in html report
Markus Lehtonen [Fri, 15 Sep 2017 13:04:40 +0000 (16:04 +0300)]
scripts/oe-build-perf-report: show recipe version changes in html report

If buildstats are available (for a certain measurement), show recipe
version changes between the two builds that are being compared. The
information shown includes new and dropped recipes as well as changes in
recipe version, revision or epoch.

[YOCTO #11382]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/buildstats-diff: move more code to lib/buildstats.py
Markus Lehtonen [Fri, 15 Sep 2017 13:04:39 +0000 (16:04 +0300)]
scripts/buildstats-diff: move more code to lib/buildstats.py

More refactoring of buildstats-diff script. Move recipe version
comparison functionality to scripts/lib/buildstats.py. This patch also
compasses some wording changes, i.e. changing 'package' to 'recipe'.

[YOCTO #11382]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: summary of task resource usage
Markus Lehtonen [Fri, 15 Sep 2017 13:04:38 +0000 (16:04 +0300)]
scripts/oe-build-perf-report: summary of task resource usage

Utilize buildstats, if available, and show a summary of the resource
usage of bitbake tasks in the html report. The details provided are:
- total number of tasks
- top 5 resource-hungry tasks (cputime)
- top 5 increase in resource usage (cputime)
- top 5 decrease in resource usage (cputime)

[YOCTO #11381]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/buildstats-diff: move code to lib/buildstats.py
Markus Lehtonen [Fri, 15 Sep 2017 13:04:37 +0000 (16:04 +0300)]
scripts/buildstats-diff: move code to lib/buildstats.py

Move over code from buildstats-diff to new scripts/lib/buildstats.py
module in order to share code related to buildstats processing.  Also,
refactor the code, introducing new classes to make the code readable,
maintainable and easier to debug.

[YOCTO #11381]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: tidy up html syntax
Markus Lehtonen [Fri, 15 Sep 2017 12:54:55 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: tidy up html syntax

Fix some problems in the html syntax of the generated report:
- prevent empty rows in the summary table
- add one missing column in the results table

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: provide valid title in the html report
Markus Lehtonen [Fri, 15 Sep 2017 12:54:54 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: provide valid title in the html report

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: remove dead code
Markus Lehtonen [Fri, 15 Sep 2017 12:54:53 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: remove dead code

Some leftover from an early prototype.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: use --hostname in --list
Markus Lehtonen [Fri, 15 Sep 2017 12:54:52 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: use --hostname in --list

Makes it possible to list test results for certain host only, instead of
always listing all results from all hosts.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: fix handling of --history-length
Markus Lehtonen [Fri, 15 Sep 2017 12:54:51 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: fix handling of --history-length

Don't crash if 'left' revision is older than the range of commits
specified with '--history-length'. In this case the 'left' revision
takes precedence.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: add AggregateTestData class
Markus Lehtonen [Fri, 15 Sep 2017 12:54:50 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: add AggregateTestData class

Making the code a bit more readable.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-build-perf-report: fix dumping buildstats
Markus Lehtonen [Fri, 15 Sep 2017 12:54:49 +0000 (15:54 +0300)]
scripts/oe-build-perf-report: fix dumping buildstats

Fix a misbehavior when some of the buildstats are missing.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoruby: CVE-2017-14064
Ovidiu Panait [Fri, 15 Sep 2017 11:36:58 +0000 (14:36 +0300)]
ruby: CVE-2017-14064

Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose
arbitrary memory during a JSON.generate call. The issues lies in using
strdup in ext/json/ext/generator/generator.c, which will stop after
encountering a '\0' byte, returning a pointer to a string of length zero,
which is not the length stored in space_len.

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2017-14064

Upstream patch:
https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoattr: Backports to fix exported headers
Khem Raj [Fri, 15 Sep 2017 04:13:28 +0000 (21:13 -0700)]
attr: Backports to fix exported headers

Packages which depends on attr headers fail due
to uint32_t not being defined, this needed header
to include sys/types.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogcc-6.3.inc: Use ucontext_t not struct ucontext.
Juro Bystricky [Thu, 14 Sep 2017 23:18:08 +0000 (16:18 -0700)]
gcc-6.3.inc: Use ucontext_t not struct ucontext.

Use ucontext_t not struct ucontext in linux-unwind.h files.

Current glibc no longer gives the ucontext_t type the tag struct
ucontext, to conform with POSIX namespace rules.  This requires
various linux-unwind.h files in libgcc, that were previously using
struct ucontext, to be fixed to use ucontext_t instead.  This is
similar to the removal of the struct siginfo tag from siginfo_t some
years ago.

Backport of patches by Joseph Myers, taken from
https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=249957

[YOCTO #12083]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/selftest/recipetool: use stable tarball for recipetool create test
Ross Burton [Fri, 15 Sep 2017 11:15:25 +0000 (12:15 +0100)]
oeqa/selftest/recipetool: use stable tarball for recipetool create test

GitHub dynamically generates the /archive/ tarballs but we're encoding checksums
in the test suite.  Change the URL to use a static tarball, and update the
checksums.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agologrotate: use stable download URL
Ross Burton [Fri, 15 Sep 2017 10:41:35 +0000 (11:41 +0100)]
logrotate: use stable download URL

GitHub automatically-generated tarballs from tags can and do change over time,
so change logrotate to use the uploaded tarball.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibproxy: use stable download URL
Ross Burton [Fri, 15 Sep 2017 10:41:35 +0000 (11:41 +0100)]
libproxy: use stable download URL

GitHub automatically-generated tarballs from tags can and do change over time,
so change libproxy to use the uploaded tarball.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agouseradd: don't override pseudo environment
Ross Burton [Thu, 14 Sep 2017 16:32:24 +0000 (17:32 +0100)]
useradd: don't override pseudo environment

Back in the dark days before recipe-specific-sysroots the paths being passed in
this manual construction of the pseudo environment made sense, but now they're
incorrect and result in pseudo writing to two different databases during a
single build.  The result is that pseudo doesn't follow changes to /etc/passwd
in the sysroot, and warns in the logs.

Remove the PSEUDO_LOCALSTATEDIR assignment and inherit the correct assignment in
FAKEROOTENV.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd-machine-units: update LIC_FILES_CHKSUM
Robert Yang [Thu, 14 Sep 2017 09:13:18 +0000 (02:13 -0700)]
systemd-machine-units: update LIC_FILES_CHKSUM

Fixed:
WARNING: systemd-machine-units-1.0-r19 do_populate_lic: ${COREBASE}/LICENSE is not a valid license file, please use '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in LIC_FILES_CHKSUM. This will become an error in the future

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoe2fsprogs: set dir's mode correctly
Robert Yang [Thu, 14 Sep 2017 09:13:17 +0000 (02:13 -0700)]
e2fsprogs: set dir's mode correctly

Fixed:
1) in pkg_postinst task set wanted file permissions:
---> chmod -R 521 "$D/opt/my_folder"
2) generate the rootfs image

Results:
my_folder hasn't correct permissions on rootfs ext4 image -> permissions are changed to 721

But it should be 521.

[YOCTO #11652]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobitbake.conf: Add default FILESYSTEM_PERMS_TABLES
Mark Hatle [Wed, 13 Sep 2017 22:40:15 +0000 (17:40 -0500)]
bitbake.conf: Add default FILESYSTEM_PERMS_TABLES

If FILESYSTEM_PERMS_TABLES was not defined, the default was selected by the
packages.bbclass.  This made it difficult for a recipe or layer to 'append'
to the default.

Copy the default into the bitbake.conf, allowing future _append and += style
actions.

Default was remove from package.bbclass.  If a value is not set, only the
built-in perms fixes will be used.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotcp-wrappers: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 09:06:25 +0000 (17:06 +0800)]
tcp-wrappers: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosysprof: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 09:06:24 +0000 (17:06 +0800)]
sysprof: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agominicom: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 09:06:23 +0000 (17:06 +0800)]
minicom: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxml-perl: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 09:06:22 +0000 (17:06 +0800)]
libxml-perl: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxml-namespacesupport-perl: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 09:06:21 +0000 (17:06 +0800)]
libxml-namespacesupport-perl: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibnotify: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 09:06:20 +0000 (17:06 +0800)]
libnotify: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibgudev: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 02:07:03 +0000 (10:07 +0800)]
libgudev: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoblktrace: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 14 Sep 2017 02:07:02 +0000 (10:07 +0800)]
blktrace: Add HOMEPAGE info into recipe file.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtool: ensure recipes devtool is working on are unlocked within the eSDK
Paul Eggleton [Wed, 6 Sep 2017 09:55:01 +0000 (21:55 +1200)]
devtool: ensure recipes devtool is working on are unlocked within the eSDK

Alongside reworking the way devtool extracts source, we now need to
ensure that within the extensible SDK where task signatures are locked,
the signatures of the tasks for the recipes being worked on get unlocked
at the right time or otherwise we'll now get taskhash mismatches when
running devtool modify on a recipe that was included in the eSDK such as
the kernel (due to a separate bug). The existing mechanism for
auto-unlocking recipes was a little weak and was happening too late, so
I've reimplemented it so that:
(a) it gets triggered immediately when the recipe/append is created
(b) we avoid writing to the unlocked signatures file unnecessarily
    (since it's a global configuration file) and
(c) within the eSDK configuration we whitelist SIGGEN_UNLOCKED_RECIPES
    to avoid unnecessary reparses every time we perform one of the
    devtool operations that does need to change this list.

Fixes [YOCTO #11883] (not the underlying cause, but this manifestation
of the issue).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>