]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
7 years agogo: rename go.inc -> go-target.inc
Matt Madison [Tue, 12 Sep 2017 12:50:26 +0000 (09:50 -0300)]
go: rename go.inc -> go-target.inc

to make it clearer that it is only used for building
the toolchain for the target.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: clean up CGO_xxx settings
Matt Madison [Tue, 12 Sep 2017 12:50:25 +0000 (09:50 -0300)]
go.bbclass: clean up CGO_xxx settings

* use conditional assignment for  the CGO_xxx
  variables, so they can be overridden more easily
* remove the TOOLCHAIN_OPTIONS and TARGET_CC_ARCH
  references, since those are already present in
  CC and CXX
* remove the TARGET_ prefix so the values are
  appropriate for native, nativesdk, etc. builds
* move the GOROOT export away from the CGO settings
  and closer to its definition

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo-dep: Move bash dependency to -dev package
Otavio Salvador [Tue, 12 Sep 2017 12:50:24 +0000 (09:50 -0300)]
go-dep: Move bash dependency to -dev package

The src content has been moved to -dev package, so does the test
routines. Fix the runtime dependency accordingly.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: remove some xxx_FINAL variables
Matt Madison [Tue, 12 Sep 2017 12:50:23 +0000 (09:50 -0300)]
go.bbclass: remove some xxx_FINAL variables

GOROOT_FINAL is used by the Go linker for rewriting
source paths when the build GOROOT is not the same
as the runtime GOROOT, but the other _FINAL variables
aren't really needed.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: remove GO_GCFLAGS nad GO_LDFLAGS
Matt Madison [Tue, 12 Sep 2017 12:50:22 +0000 (09:50 -0300)]
go.bbclass: remove GO_GCFLAGS nad GO_LDFLAGS

These variables are not used anywhere.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo: split out go-runtime into separate recipe
Matt Madison [Tue, 12 Sep 2017 12:50:21 +0000 (09:50 -0300)]
go: split out go-runtime into separate recipe

Reorganize the Go toolchain build to split out
the Go standard runtime libraries into a separate
recipe.  This simplifies the extension to crosssdk
and cross-canadian builds.

* Adds a patch to the go build tool to prevent it
  from trying to rebuild anything in GOROOT, which
  is now resident in the target sysroot.

* 'go' bb and inc files are now for building the
  compiler for the target only.

* 'go-cross' bb and inc files are now just for
  the cross-compiler.

* Adds virtual/<prefix> PROVIDES for the compiler
  and runtime

* Removes testdata directories from the sysroot
  during staging, as they are unnecessary and
  can cause strip errors (some of the test files
  are ELF files).

* Re-enables pacakage QA checks, adding selective
  INSANE_SKIP settings where needed.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo-bootstrap-native: remove recipe
Matt Madison [Tue, 12 Sep 2017 12:50:20 +0000 (09:50 -0300)]
go-bootstrap-native: remove recipe

No longer needed, with go-native handling its own
bootstrap phase.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo-native: remove dependency on go-bootstrap-native
Matt Madison [Tue, 12 Sep 2017 12:50:19 +0000 (09:50 -0300)]
go-native: remove dependency on go-bootstrap-native

The go1.4 toolchain is only required for bootstrapping
go-native, and should not be used for anything else,
so build it as part of the go-native build. This way,
we don't have to carry around its built artifacts in
the native sysroot.

The go-cross and target toolchains can then just depend
on go-native, using that for their 'bootstrap' toolchain.

Also removed some unnecessary package-related noexec
settings, since native recipes inherit nopackages.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoiproute2: Default to tipc enabled, and include libmnl dependency
Mark Hatle [Wed, 6 Sep 2017 19:26:54 +0000 (14:26 -0500)]
iproute2: Default to tipc enabled, and include libmnl dependency

iproute2 has the ability to include a tipc tool.  When enabled this requires
the libmnl package (formerly supplied by meta-openembedded).  So both are
needed at the same time.

The change itself is needed because of the tipc-utils package (in
meta-openembedded) which RDEPENDS on iproute2-tipc.  Without this package
the yocto-compat-layer script indicates there is no way for me to have
meta-openembedded pass the checker.  This is because meta-openembedded is
not allowed to just enable 'tipc' on it's own.  (A layer may not make distro
wide changes without a user saying to do it.)  The checker script invokes
bitbake -S none world, which will fail on dependency resolution due to there
being no iproute2-tipc package.  The tipc-utils package does not have a way
to check the PACKAGECONFIG of the iproute2 package so disable itself if the
dependency can not be met.  So the default system behavior needs to be:

iproute2 w/ tipc enabled
tipc-utils RDEPENDS on iproute2-tipc

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibarchive: fix bug929 and CVE-2017-14166
Andrej Valek [Mon, 11 Sep 2017 14:20:37 +0000 (16:20 +0200)]
libarchive: fix bug929 and CVE-2017-14166

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselftest/cases/signing: ignore removal errors when cleaning temporary gpg directory
Leonardo Sandoval [Thu, 7 Sep 2017 20:52:54 +0000 (15:52 -0500)]
selftest/cases/signing: ignore removal errors when cleaning temporary gpg directory

The high-level method tempfile.TemporaryDirectory give us no way to
ignore erros on removal thus use tempfile.mkdtemp instead. Ignoring possible issues
on removal is neccesary because it contains gpg sockets that are automatically removed
by the system once the process terminates, otherwise the following log is observed:

  ..
  ..
  File "/usr/lib/python3.5/shutil.py", line 436, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
  FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.browser'

[YOCTO #11821]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselftest/devtool: Avoid writing on TOPDIR on kernel test case
Jose Perez Carranza [Fri, 8 Sep 2017 19:08:43 +0000 (12:08 -0700)]
selftest/devtool: Avoid writing on TOPDIR on kernel test case

Use a tempdir to copy the .config file from the kernel instead of being
copied to build directory.

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake.conf: add bzr to HOSTTOOLS_NONFATAL
Martin Jansa [Fri, 8 Sep 2017 16:27:38 +0000 (18:27 +0200)]
bitbake.conf: add bzr to HOSTTOOLS_NONFATAL

* it's used by bzr fetcher:
  meta/conf/bitbake.conf:FETCHCMD_bzr = "/usr/bin/env bzr"
  and when it isn't available in PATH do_fetch tasks fail with:
  /usr/bin/env: ‘bzr’: No such file or directory
* it was also added in:
  https://patchwork.openembedded.org/patch/140107/
  but this change wasn't merged (nor rejected AFAIS)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoRevert "kernel-module-split: rrecommend kernel-image instead of rdepend"
Martin Hundebøll [Mon, 11 Sep 2017 12:28:36 +0000 (14:28 +0200)]
Revert "kernel-module-split: rrecommend kernel-image instead of rdepend"

This reverts commit e0ed52c51464855e9a6a37ea49df7efde7e91076.

Commit e0ed52c514 ('kernel-module-split: rrecommend kernel-image instead
of rdepend') changed kernel modules to rrecommend kernel-image instead
of rdepend on kernel. This broke existing setups, where the kernel is
omitted by setting RDEPEND_kernel-base = "".

Revert the patch, as the existing way of omitting kernel-image in images
works just fine.

Signed-off-by: Martin Hundebøll <mnhu@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomusl: Upgrade to latest master
Khem Raj [Mon, 11 Sep 2017 05:43:31 +0000 (22:43 -0700)]
musl: Upgrade to latest master

Alexander Monakov (3):
      overhaul environment functions
      free allocations in clearenv
      fix OOB reads in Xbyte_memmem

Bartosz Brachaczek (1):
      handle whitespace before %% in scanf

Rich Felker (6):
      fix erroneous stop before input limit in mbsnrtowcs and wcsnrtombs
      fix erroneous acceptance of f4 9x xx xx code sequences by utf-8 decoder
      fix signal masking race in pthread_create with priority attributes
      don't treat numeric port strings as servent records in getservby*()
      fix glob descent into . and .. with GLOB_PERIOD
      work around incorrect EPERM from mmap syscall

Szabolcs Nagy (4):
      s390x: add bits/hwcap.h
      add a_clz_64 helper function
      arm: add HWCAP_ARM_ hwcap macros
      make syscall.h consistent with linux

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoinitramfs-framework: Allow directories with spaces
Otavio Salvador [Mon, 11 Sep 2017 17:37:16 +0000 (14:37 -0300)]
initramfs-framework: Allow directories with spaces

When mdev module loads the Linux kernel modules, it can visit
directories with spaces. To allow that, we must quote the variable
otherwise it misunderstand it arguments as multiple entries.

Fixes:

,----
| Freeing unused kernel memory: 3072K (80d00000 - 81000000)
| cat: can't open '/sys/devices/platform/Vivante': No such file or directory
| cat: can't open 'GCCore/modalias': No such file or directory
`----

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoglibc-locale: add runtime dependency on glibc
Martin Jansa [Mon, 11 Sep 2017 17:05:33 +0000 (19:05 +0200)]
glibc-locale: add runtime dependency on glibc

* the libc.so.6 dependency is detected always:
  $ grep FILERDEPENDS BUILD-*/pkgdata/qemux86/runtime/localedef
  BUILD-bad/pkgdata/qemux86/runtime/localedef:FILERDEPENDSFLIST_localedef: /usr/bin/localedef
  BUILD-bad/pkgdata/qemux86/runtime/localedef:FILERDEPENDS_/usr/bin/localedef_localedef: libc.so.6(GLIBC_2.15) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.0) libc.so.6
  BUILD-ok/pkgdata/qemux86/runtime/localedef:FILERDEPENDSFLIST_localedef: /usr/bin/localedef
  BUILD-ok/pkgdata/qemux86/runtime/localedef:FILERDEPENDS_/usr/bin/localedef_localedef: libc.so.6(GLIBC_2.15) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.0) libc.so.6

* but in some builds the glibc dependency isn't built soon enough:
  $ diff -uNr BUILD-*/pkgdata/qemux86/runtime/localedef
  --- BUILD-bad/pkgdata/qemux86/runtime/localedef 2017-09-02 21:17:50.000000000 +0000
  +++ BUILD-ok/pkgdata/qemux86/runtime/localedef  2017-09-11 10:15:49.954381592 +0000
  @@ -6,6 +6,7 @@
   LICENSE: GPLv2 & LGPLv2.1
   DESCRIPTION_localedef: glibc: compile locale definition files
   SUMMARY: Locale data from glibc
  +RDEPENDS_localedef: glibc (>= 2.26)
   SECTION: base
   PKG_localedef: localedef
   FILES_localedef: /usr/bin/localedef
  and the build fails with QA issues:
  http://errors.yoctoproject.org/Errors/Details/155529/

  ERROR: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.0), but no providers found in RDEPENDS_localedef? [file-rdeps]
  ERROR: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.15), but no providers found in RDEPENDS_localedef? [file-rdeps]
  ERROR: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.3), but no providers found in RDEPENDS_localedef? [file-rdeps]
  ERROR: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.2), but no providers found in RDEPENDS_localedef? [file-rdeps]
  ERROR: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.1), but no providers found in RDEPENDS_localedef? [file-rdeps]
  ERROR: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6, but no providers found in RDEPENDS_localedef? [file-rdeps]
  ERROR: QA run found fatal errors. Please consider fixing them.

* easily reproducible with empty TMPDIR and:
  bitbake -c cleansstate glibc-locale && bitbake -c package_qa glibc-locale

* reproducible with Yocto 2.2 Morty as well, with slightly different
  error message:
  ERROR: glibc-locale-2.24-r0 do_package_qa: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.4), but no providers found in RDEPENDS_localedef? [file-rdeps]

* with Yocto 2.3 Pyro it's not reproducible by default, because rpmdeps
  aren't enabled to populate FILERDEPENDS, but once you add:
  ENABLE_RPM_FILEDEPS_FOR_PYRO = "1"
  similar QA issue is shown as well:
  ERROR: glibc-locale-2.25-r0 do_package_qa: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.15), but no providers found in RDEPENDS_localedef? [file-rdeps]
  ERROR: glibc-locale-2.25-r0 do_package_qa: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6(GLIBC_2.4), but no providers found in RDEPENDS_localedef? [file-rdeps]
  ERROR: glibc-locale-2.25-r0 do_package_qa: QA Issue: /usr/bin/localedef contained in package localedef requires libc.so.6, but no providers found in RDEPENDS_localedef? [file-rdeps]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoinitramfs-framework: bump PR and fix install-efi and setup-live modules
California Sullivan [Mon, 11 Sep 2017 21:33:26 +0000 (14:33 -0700)]
initramfs-framework: bump PR and fix install-efi and setup-live modules

Bump initramfs-framework PR, as it was missed in the previous
initramfs-framework patch.

These modules are shell scripts so they can be allarch.

Fix the SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS in layer.conf, as these
dependencies moved from the main recipe to these modules.

Finally, set the PR to 4 in the new module recipes to avoid breaking
package feeds.

Fixes [YOCTO #12024].

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agostaging: gracefully abort if two recipes conflict in the sysroot
Ross Burton [Tue, 5 Sep 2017 19:24:20 +0000 (20:24 +0100)]
staging: gracefully abort if two recipes conflict in the sysroot

When building the per-recipe sysroot keep track of what files we're installing
and where they came from, so we can detect when a file is installed by two
different recipes and tell the user what these recipes are (instead of just
showing a os.link() stack trace).

[ YOCTO #11631 ]

(From OE-Core rev: 606a8e0ca218f023e362c3678122d36d537f95de)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodevtool: upgrade: check that user has configured git properly
Paul Eggleton [Wed, 30 Aug 2017 23:54:07 +0000 (11:54 +1200)]
devtool: upgrade: check that user has configured git properly

If user.name or user.email haven't been set then git rebase can't really
work properly. Check that the user has set these and error out if not.
(Elsewhere we are relying on OE's git patch functionality which forces
a dummy OE value - that's OK there as it's completely under OE's control
and therefore it's OK for a dummy OE user to be the committer, but here
the rebase may require intervention so it's reasonable to have the
user's actual name and email on the operation.)

Fixes [YOCTO #11947].

(From OE-Core rev: 129a3be07e272013be2db17552c13b4d8cc2cf6e)

Signed-off-by: paul <paul@peggleto-mobl.ger.corp.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo-helloworld: Use the Golang examples repository
Otavio Salvador [Fri, 8 Sep 2017 21:04:44 +0000 (18:04 -0300)]
go-helloworld: Use the Golang examples repository

This updates the recipe to use the Golang examples repository so it
makes use of the unpack as well as standard tasks showing how easy it
can be.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo-dep: Add 0.3.0 release
Otavio Salvador [Fri, 8 Sep 2017 21:04:43 +0000 (18:04 -0300)]
go-dep: Add 0.3.0 release

This is the Golang dependency management tool under development; it is
ready for production use and intended to be merged onto Golang
1.10. Until that, projects are starting to use it and making it
available on OE-Core reduces the Golang integration work for new
recipes.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: add GO_INSTALL_FILTEROUT variable
Matt Madison [Fri, 8 Sep 2017 21:04:42 +0000 (18:04 -0300)]
go.bbclass: add GO_INSTALL_FILTEROUT variable

When using the Go 'vendor' mechanism to bring in
dependencies for a Go package, the default GO_INSTALL
setting, which uses the '...' wildcard, will include
the vendored packages in the build, which produces
incorrect results.

There are also some Go packages that are structured
poorly, so that the '...' wildcard results in building
example or test code that should not be included in
the build, or fail to build.

This patch adds a mechanism for filtering out a
subset of the sources.  It defaults to filtering
out everything under the 'vendor' subdirectory
under package's main directory, which is the
normal location for vendored packages, but can
be overridden by a recipe to filter out other
subdirectories, if needed.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: add do_unpack function to handle common cases
Matt Madison [Fri, 8 Sep 2017 21:04:41 +0000 (18:04 -0300)]
go.bbclass: add do_unpack function to handle common cases

Go source trees have a particular structure, with all
sources located under ${GOROOT}/src/<import-path>.
The fetcher step implemented by the 'go get' command
automatically follows this structure, so we need
to do the same here.

Since most Go packages are hosted in git repositories,
this adds a custom do_unpack() function that sets
the destsuffix to match the expected directory structure,
for any git SRC_URIs that haven't had a destsuffix
explicitly set in the recipe.

This simplifies recipe writing for the most common
cases.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: separate ${S} and ${B}
Matt Madison [Fri, 8 Sep 2017 21:04:40 +0000 (18:04 -0300)]
go.bbclass: separate ${S} and ${B}

Add a do_configure task to populate ${B} by symlinking
in the src subdirectory under ${S}, which lets us point
GOPATH at ${B}.  This lets us take advantage of the
automatic directory creation and cleaning for do_configure.

This necessitates a change to do_install to split the
installation of the sources and built artifacts.  Taking
advantage of some additional tar options, we can eliminate
the extra staging area and extra recursive chown command.
So overall efficiency should be improved.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: Use an auxiliary variable to add the build dependencies
Otavio Salvador [Fri, 8 Sep 2017 21:04:39 +0000 (18:04 -0300)]
go.bbclass: Use an auxiliary variable to add the build dependencies

This is going to easy the addition of nativesdk and virtual providers
in the future.

This change is based on the meta-golang[1] layer. Thanks to Matt
Madison <matt@madison.systems> for his work on this.

1. https://github.com/madisongh/meta-golang

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: exported function cleanup
Matt Madison [Fri, 8 Sep 2017 21:04:38 +0000 (18:04 -0300)]
go.bbclass: exported function cleanup

Since this is a class, it should follow the
class function export mechanism for its task
functions, and should set directory-related
flags for directories they need.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: Enable parallel build
Otavio Salvador [Fri, 8 Sep 2017 21:04:37 +0000 (18:04 -0300)]
go.bbclass: Enable parallel build

The parallel build is based on PARALLEL_MAKE variable but can be
overriden setting the GO_PARALLEL_BUILD one.

This change is based on the meta-golang[1] layer. Thanks to Matt
Madison <matt@madison.systems> for his work on this.

1. https://github.com/madisongh/meta-golang

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: Use a global Go build flags
Otavio Salvador [Fri, 8 Sep 2017 21:04:36 +0000 (18:04 -0300)]
go.bbclass: Use a global Go build flags

We now use a GOBUILDFLAGS to provide a global variable to control the
build flags to be given to Go.

This change is based on the meta-golang[1] layer. Thanks to Matt
Madison <matt@madison.systems> for his work on this.

1. https://github.com/madisongh/meta-golang

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogoarch.bbclass: Add support for ARMv5
Otavio Salvador [Fri, 8 Sep 2017 21:04:35 +0000 (18:04 -0300)]
goarch.bbclass: Add support for ARMv5

This adds support to return the proper ARMv5 format.

This change is based on the meta-golang[1] layer. Thanks to Matt
Madison <matt@madison.systems> for his work on this.

1. https://github.com/madisongh/meta-golang

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogoarch.bbclass: Replace logic for setting GOARM
Will Newton [Fri, 8 Sep 2017 21:04:34 +0000 (18:04 -0300)]
goarch.bbclass: Replace logic for setting GOARM

The previous logic applied a regex to TUNE_FEATURES which could
set the GOARM value to 7 incorrectly, for example when dealing
with an arm1176 core. Simplify to check for the presence of
"armv7" instead. At the same time add a check for "armv6" and
set GOARM to 6 in that case.

Signed-off-by: Will Newton <willn@resin.io>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo: Remove Go 1.6 and 1.7 releases
Otavio Salvador [Fri, 8 Sep 2017 21:04:33 +0000 (18:04 -0300)]
go: Remove Go 1.6 and 1.7 releases

The OE-Core has no reason to support multiple versions of Go as this
increases the maintenance work and testing efforts. So we are going to
support just a single version from now on which currently is 1.8.3.

The 1.4 release is kept around as it is used for bootstrap, as such,
it cannot be removed.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo.bbclass: Fix binary installation path detection
Otavio Salvador [Fri, 8 Sep 2017 21:04:32 +0000 (18:04 -0300)]
go.bbclass: Fix binary installation path detection

Go toolchain changes the installation path when building for the same
architecture as the build host. This was already been considered in
the GO_BUILD_BINDIR variable but was not being used by the go class.

This fixes following error:

,----
| ERROR: go-dep-0.3.0-r0 do_package: QA Issue: go-dep: Files/directories
| were installed but not shipped in any package:
|   /usr/lib/x86_64-oel-linux/go/bin/dep
| Please set FILES such that these items are packaged. Alternatively if
| they are unneeded, avoid installing them or delete them within
| do_install.
`----

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogoarch.bbclass: Stop passing True as second argument of d.getVar
Otavio Salvador [Fri, 8 Sep 2017 21:04:31 +0000 (18:04 -0300)]
goarch.bbclass: Stop passing True as second argument of d.getVar

The d.getVar has the second argument as True by default, avoid passing
it here.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto: Make LINUX_VERSION_EXTENSION weaker
Saul Wold [Thu, 7 Sep 2017 14:18:21 +0000 (07:18 -0700)]
linux-yocto: Make LINUX_VERSION_EXTENSION weaker

This allows for other layers to override this variable in addition
to providing the distro or local.conf to override it.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/buildhistory-diff: use of argparse instead of optparse
Daniela Plascencia [Mon, 4 Sep 2017 21:05:26 +0000 (16:05 -0500)]
scripts/buildhistory-diff: use of argparse instead of optparse

Optparse is deprecated since version 2.7 and won't be developed further.
Argparse should be used instead as it provides better tools for parsing
and handling arguments.

[YOCTO #9635]

Signed-off-by: Daniela Plascencia <daniela.plascencia@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibfm: remove file which conflicts with libfm-extra
Ross Burton [Thu, 7 Sep 2017 12:30:35 +0000 (13:30 +0100)]
libfm: remove file which conflicts with libfm-extra

Both libfm and libfm-extra provide /usr/include/libfm, so remove it from libfm
to avoid sysroot conflicts.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosubversion: fix CVE-2017-9800
Wenzong Fan [Thu, 7 Sep 2017 09:49:06 +0000 (02:49 -0700)]
subversion: fix CVE-2017-9800

A maliciously constructed svn+ssh:// URL would cause Subversion clients
before 1.8.19, 1.9.x before 1.9.7, and 1.10.0.x through 1.10.0-alpha3
to run an arbitrary shell command. Such a URL could be generated by a
malicious server, by a malicious user committing to a honest server(to
attack another user of that server's repositories), or by a proxy
server.

The vulnerability affects all clients, including those that use
file://, http://, and plain (untunneled) svn://.

Backport patch from:
http://svn.apache.org/viewvc?view=revision&amp;sortby=rev&amp;revision=1804691

Reference:
http://subversion.apache.org/security/CVE-2017-9800-advisory.txt

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agofoomatic: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 7 Sep 2017 09:05:09 +0000 (17:05 +0800)]
foomatic: 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 agodiffutils: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 7 Sep 2017 09:05:08 +0000 (17:05 +0800)]
diffutils: 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 agoiputils: backport patch to fix arping hang problem
Chen Qi [Thu, 7 Sep 2017 02:37:10 +0000 (10:37 +0800)]
iputils: backport patch to fix arping hang problem

arping hangs if SIGALARM is blocked. Backport a patch to fix this problem.

Unblock SIGALRM so that the previously called alarm() can prevent recvfrom()
from blocking forever in case the inherited procmask is blocking SIGALRM and
no packet is received.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoutil-linux: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 7 Sep 2017 04:02:44 +0000 (12:02 +0800)]
util-linux: 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 agoglibc: do the multilib_header magic also for bits/pthreadtypes-arch.h
Chunrong Guo [Thu, 7 Sep 2017 03:26:36 +0000 (11:26 +0800)]
glibc: do the multilib_header magic also for bits/pthreadtypes-arch.h

Otherwise it will cause conflicts in mutlilib setting, as it
varies from one machine to another.

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotexinfo-dummy-native: port to Python 3
Ross Burton [Wed, 2 Aug 2017 19:22:10 +0000 (20:22 +0100)]
texinfo-dummy-native: port to Python 3

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: run bmaptool with native Python3
Ed Bartosh [Wed, 6 Sep 2017 12:08:25 +0000 (15:08 +0300)]
wic: run bmaptool with native Python3

Modified wic code to run bmaptool using native Python3
from wic-tools native sysroot.

[YOCTO #11891]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobmap-tools: switch to Python 3
Ed Bartosh [Wed, 6 Sep 2017 12:08:24 +0000 (15:08 +0300)]
bmap-tools: switch to Python 3

bmap-tools is the only recipe in oe-core that still uses
Python 2. Switching it to Python 3 should help to get rid of
building native Python 2 and its dependencies.

[YOCTO #11891]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobmap-tools: upgrade to v3.4
Ed Bartosh [Wed, 6 Sep 2017 12:08:23 +0000 (15:08 +0300)]
bmap-tools: upgrade to v3.4

Upgraded to the latest upstream release.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocve-check-tool: change BB_NO_NETWORK error to a warning
Mikko Rapeli [Wed, 6 Sep 2017 11:08:16 +0000 (14:08 +0300)]
cve-check-tool: change BB_NO_NETWORK error to a warning

It is perfectly fine to execute cve_check tasks against a cached
CVE database during a BB_NO_NETWORK build.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobootchart2: update python interpreter
Kai Kang [Wed, 6 Sep 2017 10:22:46 +0000 (18:22 +0800)]
bootchart2: update python interpreter

For bootchart2-native, the python interpreter "#!FIXMESTAGINGDIRHOST/usr/bin/python3"
of file pybootchartgui is not right.

Use '#!${USRBINPATH}/env python3' instead to fix the issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoxdg-utils: Add HOMEPAGE info into recipe file.
Huang Qiyu [Wed, 6 Sep 2017 07:13:53 +0000 (15:13 +0800)]
xdg-utils: 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 agopython3-setuptools: extend to nativesdk
Chen Qi [Wed, 6 Sep 2017 04:54:46 +0000 (12:54 +0800)]
python3-setuptools: extend to nativesdk

Extend python3-setuptools to nativesdk because nativesdk-python3-pip needs
it.

Also, adjust RDEPENDS variable setting to keep the runtime dependencies
for nativesdk package the same with the target one. The native package and
the target package's dependencies remain the same as before.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython3-pip: extend to nativesdk
Chen Qi [Wed, 6 Sep 2017 04:54:45 +0000 (12:54 +0800)]
python3-pip: extend to nativesdk

Extend python3-pip to nativesdk because some nativesdk python3 packages
need it, e.g. nativesdk-python3-django from meta-python layer.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemtap: Bump SRCREV for 4.12 Linux kernel support
Saul Wold [Tue, 5 Sep 2017 23:22:02 +0000 (16:22 -0700)]
systemtap: Bump SRCREV for 4.12 Linux kernel support

This SRCREV bump brings in support for the 4.12 Linux Kernel, this kernel
also has some newer CONFIG settings. The newer DEBUG_INFO and DEBUG_INFO_DWARF4
settings can be used with systemtap to get the full information.  We do not
normally enabled these for a 'production' (standard) kernel, but can be
enabled via menuconfig.

When installing staprun and stapbpf on the target and native ensure we
don't try to create a new group and chown it.  There is no need since we
will be running as root, so we add a patch to comment that code out.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglib-2.0: recommend shared-mime-info
Ross Burton [Tue, 5 Sep 2017 15:06:06 +0000 (16:06 +0100)]
glib-2.0: recommend shared-mime-info

Large portions of GIO are not that useful without the MIME database.  Add a
recommends to shared-mime-info so that GIO works out of the box, but can be
removed (using BAD_RECOMMENDATIONS) if shared-mime-info is too large and isn't
required.

[ YOCTO #11792 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoshared-mime-info: enable nativesdk builds
Ross Burton [Tue, 5 Sep 2017 16:15:30 +0000 (17:15 +0100)]
shared-mime-info: enable nativesdk builds

Also remove the redundant DEPENDS_class-native, as the native class generates
this value automatically.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: selftest: add test_wic_rm_ext test case
Ed Bartosh [Tue, 5 Sep 2017 11:54:42 +0000 (14:54 +0300)]
wic: selftest: add test_wic_rm_ext test case

Tested if 'wic rm' correctly removes files from the ext4 partition
of the wic image.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: selftest: add test_wic_cp_ext test case
Ed Bartosh [Tue, 5 Sep 2017 11:54:41 +0000 (14:54 +0300)]
wic: selftest: add test_wic_cp_ext test case

Tested if 'wic cp' correctly copies files to the ext4 partition
of the wic image.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: selftest: add test_wic_ls_ext test case
Ed Bartosh [Tue, 5 Sep 2017 11:54:40 +0000 (14:54 +0300)]
wic: selftest: add test_wic_ls_ext test case

Tested if 'wic ls' correctly lists directory contents
of the ext* partition.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: update help content
Ed Bartosh [Tue, 5 Sep 2017 11:54:39 +0000 (14:54 +0300)]
wic: update help content

Added ext* partitions to the description of 'wic ls',
'wic cp' and 'wic rm' commands.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: implement ext fs support for 'wic rm'
Ed Bartosh [Tue, 5 Sep 2017 11:54:38 +0000 (14:54 +0300)]
wic: implement ext fs support for 'wic rm'

Implemented removing files or directories from the ext
partition using debugfs tool.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: implement ext fs support for 'wic cp'
Ed Bartosh [Tue, 5 Sep 2017 11:54:37 +0000 (14:54 +0300)]
wic: implement ext fs support for 'wic cp'

Implemented copying files to the ext partition
using debugfs tool.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: implement ext fs support for 'wic ls'
Ed Bartosh [Tue, 5 Sep 2017 11:54:36 +0000 (14:54 +0300)]
wic: implement ext fs support for 'wic ls'

Implemented listing directory contents for ext file
system using debugfs tool.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosysstat: Add ability to enable lm-sensors
Mark Hatle [Tue, 5 Sep 2017 02:10:52 +0000 (21:10 -0500)]
sysstat: Add ability to enable lm-sensors

Add lm-sensors PACKAGECONFIG option.

Change from setting LFLAGS="" to --disable-strip, otherwise lm-sensors will not link
properly.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopsplash: Initialize psplash only if a framebuffer exists
Mark Hatle [Tue, 5 Sep 2017 02:10:32 +0000 (21:10 -0500)]
psplash: Initialize psplash only if a framebuffer exists

psplash-init exits if there is no framebuffer device detected.
This is done to avoid the following error message from
occurring when booting up:

"Error opening /dev/fb0: No such file or directory"

Signed-off-by: Aws Ismail <aws.ismail@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoyocto-compat-layer.py: Fix trace when layers can't be processed
Mark Hatle [Tue, 5 Sep 2017 02:10:11 +0000 (21:10 -0500)]
yocto-compat-layer.py: Fix trace when layers can't be processed

When all of the requested layers have unsatisfied dependencies, an error
can occur.  Check for the condition to avoid the traceback:

Traceback (most recent call last):
  File "../scripts/yocto-compat-layer.py", line 203, in <module>
    ret =  main()
  File "../scripts/yocto-compat-layer.py", line 194, in main
    if not results[layer_name].wasSuccessful():
AttributeError: 'NoneType' object has no attribute 'wasSuccessful'

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokernel: Stop using update-alternatives
Otavio Salvador [Tue, 5 Sep 2017 06:04:44 +0000 (03:04 -0300)]
kernel: Stop using update-alternatives

The update-alternatives where using relative links so not being really
in use since December 2016 (see OE-Core:c7bc46b9 "kernel: Fix
symlinks") so instead we now generate the relative symlinks during the
do_install task and drop the update-alternatives use at all.

Acked-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglibc: add ld.so locks in _libc_fork
Zhixiong Chi [Tue, 5 Sep 2017 04:29:44 +0000 (12:29 +0800)]
glibc: add ld.so locks in _libc_fork

The patch in this Bugzilla entry was requested by a customer:
  https://sourceware.org/bugzilla/show_bug.cgi?id=4578
  https://www.sourceware.org/bugzilla/show_bug.cgi?id=19282

If a thread happens to hold dl_load_lock and have r_state set to RT_ADD or
RT_DELETE at the time another thread calls fork(), then the child exit code
from fork (in nptl/sysdeps/unix/sysv/linux/fork.c in our case) re-initializes
dl_load_lock but does not restore r_state to RT_CONSISTENT. If the child
subsequently requires ld.so functionality before calling exec(), then the
assertion will fire.

The patch acquires dl_load_lock on entry to fork() and releases it on exit
from the parent path.  The child path is initialized as currently done.
This is essentially pthreads_atfork, but forced to be first because the
acquisition of dl_load_lock must happen before malloc_atfork is active
to avoid a deadlock.

The __libc_fork() code reset dl_load_lock, but it also needed to reset
dl_load_write_lock.

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopackage_[deb|ipk]: improve multiprocess logic when creating deb/ipk packages
Leonardo Sandoval [Mon, 4 Sep 2017 21:35:48 +0000 (14:35 -0700)]
package_[deb|ipk]: improve multiprocess logic when creating deb/ipk packages

Current implementation does not handle possible exceptions coming from child
processes, the latter responsible for creating packages. With the aim to have more
control, use pipes to communicate exceptions and stop package creation in case
of failure.

Helps to debug [YOCTO #12012].

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopackage_deb, ipk: improve subprocess output on package manager command
Leonardo Sandoval [Mon, 4 Sep 2017 21:35:47 +0000 (14:35 -0700)]
package_deb, ipk: improve subprocess output on package manager command

Redirecting stderr to stdout helps debugging issues, i.e instead of just
getting the return code, get also the error log from the pkg manger
This commit is in the way to figure out the root cause of [YOCTO #12012],
where dpkg-deb fails with a 2 return code and according to the man page,
there are multiple issues leading to the same code.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtool: status: Sort entries before printing
Ola x Nilsson [Mon, 4 Sep 2017 14:18:37 +0000 (16:18 +0200)]
devtool: status: Sort entries before printing

Sorted entries are easier to read.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogtk-doc.bbclass: add all directories where .so files are found to library search...
Alexander Kanavin [Wed, 23 Aug 2017 17:06:21 +0000 (20:06 +0300)]
gtk-doc.bbclass: add all directories where .so files are found to library search path

This should reduce the need to manually specify the path in recipes.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinsane.bbclass: write QA issues to log file only when they are in ERROR_QA or WARN_QA
Martin Jansa [Mon, 21 Aug 2017 20:56:24 +0000 (22:56 +0200)]
insane.bbclass: write QA issues to log file only when they are in ERROR_QA or WARN_QA

* QA check which aren't included in WARN_QA and ERROR_QA are shown
  during the build only as NOTE message (not shown at all with default
  knotty setting), so it might be surprising to see them later in qa.log
  file

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agorootfs: improve postinst intercept logging
Ross Burton [Mon, 4 Sep 2017 20:13:17 +0000 (21:13 +0100)]
rootfs: improve postinst intercept logging

Ensure we capture stderr, always write the output to the log, and don't be so
emotional in the warning message.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa: Replace "append +=" with normal "append =" in layerappend.py
Robert P. J. Day [Sat, 2 Sep 2017 16:49:20 +0000 (12:49 -0400)]
oeqa: Replace "append +=" with normal "append =" in layerappend.py

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinitramfs-framework: split setup-live and install-efi into separate recipes
California Sullivan [Sat, 2 Sep 2017 00:04:58 +0000 (17:04 -0700)]
initramfs-framework: split setup-live and install-efi into separate recipes

Having these the initramfs-framework recipe forced initramfs-framework
users to build several tools they didn't need, and made it more
difficult to declare the recipe as allarch.

Fixes [YOCTO #12024].

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopsplash: upgrade to latest git revision
Ross Burton [Sat, 2 Sep 2017 00:23:31 +0000 (01:23 +0100)]
psplash: upgrade to latest git revision

Non-housekeeping commits:

2015f70 Fix text width calculation.
5b3c1cc Add --fbdev option to psplash like --rotation.
505aeca psplash: fix remaining unused-parameter warnings
e3e0ab4 psplash: remove unused parameter length from parse_command
121720e psplash-fb: remove unused parameter from psplash_fb_text_size
9f6baa6 psplash-fb: fix sign-compare warning

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoalsa-utils: Do not hardcode path to /lib/udev
Peter Kjellerstedt [Fri, 1 Sep 2017 17:49:29 +0000 (19:49 +0200)]
alsa-utils: Do not hardcode path to /lib/udev

Use ${nonarch_base_libdir}/udev instead. This avoids problems when
usrmerge is enabled in DISTRO_FEATURES and udev support is disabled.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/selftest/case: Add recipeinc method
Ola x Nilsson [Mon, 28 Aug 2017 14:58:15 +0000 (16:58 +0200)]
oeqa/selftest/case: Add recipeinc method

The recipeinc method returns the absolute path of the test_recipe.inc
file of a specified recipe.  It replaces four instances of identical
code, and make it possible to access the filename from a testcase for
cleanup.

The write_recipeinc and append_recipeinc methods are changed to return
the path to the file in case that is useful.

The test_recipe.inc file is usually cleaned up in a finally block,
but that block executes before any teardown operations.  This blocks
any teardown that requires the presence of the test_recipe.inc file.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/selftest: Add missing IDs to various test cases
Jose Perez Carranza [Fri, 1 Sep 2017 20:30:24 +0000 (13:30 -0700)]
oeqa/selftest: Add missing IDs to various test cases

Add decorator @OETestID() with Tesopia TC-ID to the test cases
that did not have it properly set.

[YOCTO #11873]

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopulseaudio: Backport a patch to replace use of VLAIS
Khem Raj [Fri, 1 Sep 2017 05:20:40 +0000 (22:20 -0700)]
pulseaudio: Backport a patch to replace use of VLAIS

Fix build with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoqemurunner.py: refactor searching for QEMU PID
Juro Bystricky [Thu, 7 Sep 2017 00:33:58 +0000 (17:33 -0700)]
qemurunner.py: refactor searching for QEMU PID

Ask QEMU to store the QEMU process PID in a file, this way we don't
have to parse running processes and analyze descendents.
This is done via QEMU command line argument "-pidfile".

[YOCTO #12001]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/qemurunner: Improve logging
Richard Purdie [Thu, 7 Sep 2017 09:49:19 +0000 (10:49 +0100)]
oeqa/qemurunner: Improve logging

Python unittest intercepts stdout and stderr however qemurunner sets
up a streamhandler before that interception occurs, hence the messages
spam the unittest output.

By moving the logging init to the class init time, we use the unittest
stdout/stderr and this means unittest can only show the log output upon
failure. This cleans up the selftest and testimage output whilst still
showing logging upon failure.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomesa-gl: Fix build after recent mesa PACKAGECONFIG changes
Jussi Kukkonen [Mon, 4 Sep 2017 08:39:24 +0000 (11:39 +0300)]
mesa-gl: Fix build after recent mesa PACKAGECONFIG changes

48d39cf43b added "opengl" PACKAGECONFIG option to mesa: before that
the configuration was always enabled. "opengl" should have been added
to mesa-gl default PACKAGECONFIG but wasn't: do it now.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0-plugins-good: fix 4k playback for v4l2 decoder
Nicolas Dechesne [Mon, 4 Sep 2017 08:23:34 +0000 (10:23 +0200)]
gstreamer1.0-plugins-good: fix 4k playback for v4l2 decoder

Backport a fix already merged upstream in master and 1.12 branch, it fixes 4K video
playback on any platform that uses v4l2 codecs, such as Dragonboard 820c.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoutil-linux: split out ionice into its own package
André Draszik [Mon, 4 Sep 2017 07:57:02 +0000 (08:57 +0100)]
util-linux: split out ionice into its own package

For systems that don't otherwise depend on the full
util-linux package, ionice is a mere 31k (on mipsel).

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocve-check.bbclass: detect patched CVE's also from patch file names
Mikko Rapeli [Mon, 4 Sep 2017 06:22:14 +0000 (09:22 +0300)]
cve-check.bbclass: detect patched CVE's also from patch file names

While poky master branch has been fixed so that all CVE patch files have
the:

CVE: CVE-2017-1234556

strings in the patch comments, many older versions of poky and other meta
layers are not, but the CVE patches quite often have the CVE id in the
patch file name.

If the CVE: string also found, there are no duplicates in the report.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorootfs-postcommands: add test for unsatisfied RRECOMMENDS
Jose Alarcon [Mon, 4 Sep 2017 05:12:24 +0000 (08:12 +0300)]
rootfs-postcommands: add test for unsatisfied RRECOMMENDS

The do_rootfs log contains a number of unsatisfied package
recommendations. At the moment those are only visible when
reviewing the rootfs log.

This patch adds an extra check to surface any unsatisfied
recommendation  as WARNINGS to the build output.

Enable this check with:
ROOTFS_POSTPROCESS_COMMAND += "rootfs_log_check_recommends;"

Signed-off-by: Jose Alarcon <jose.alarcon@ge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorootfs-postcommands: remove empty line
Jose Alarcon [Mon, 4 Sep 2017 05:12:23 +0000 (08:12 +0300)]
rootfs-postcommands: remove empty line

Signed-off-by: Jose Alarcon <jose.alarcon@ge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemtap: Add HOMEPAGE info into recipe file.
Fan Xin [Mon, 4 Sep 2017 04:55:08 +0000 (13:55 +0900)]
systemtap: Add HOMEPAGE info into recipe file.

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocurl: fix CVE-2017-1000099, 1000100, 1000101
Wenzong Fan [Mon, 4 Sep 2017 03:31:10 +0000 (20:31 -0700)]
curl: fix CVE-2017-100009910001001000101

Backport upstream commits to fix:
- CVE-2017-1000099
  https://curl.haxx.se/docs/adv_20170809C.html
  https://curl.haxx.se/CVE-2017-1000099.patch

- CVE-2017-1000100
  https://curl.haxx.se/docs/adv_20170809B.html
  https://curl.haxx.se/CVE-2017-1000100.patch

- CVE-2017-1000101
  https://curl.haxx.se/docs/adv_20170809A.html
  https://curl.haxx.se/CVE-2017-1000101.patch

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogconf: Add HOMEPAGE info into recipe file.
Fan Xin [Mon, 4 Sep 2017 03:15:53 +0000 (12:15 +0900)]
gconf: Add HOMEPAGE info into recipe file.

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoreadline: Add HOMEPAGE info into recipe file.
Fan Xin [Mon, 4 Sep 2017 03:06:02 +0000 (12:06 +0900)]
readline: Add HOMEPAGE info into recipe file.

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoperf: Add HOMEPAGE info into recipe file.
Fan Xin [Mon, 4 Sep 2017 03:00:18 +0000 (12:00 +0900)]
perf: Add HOMEPAGE info into recipe file.

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocups: Add HOMEPAGE info into recipe file.
Fan Xin [Mon, 4 Sep 2017 01:58:40 +0000 (10:58 +0900)]
cups: Add HOMEPAGE info into recipe file.

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocurl: enable threaded resolver
André Draszik [Mon, 4 Sep 2017 09:42:44 +0000 (10:42 +0100)]
curl: enable threaded resolver

Multi-threaded applications using libcurl crash
on DNS timeouts when built using OE.

The reason is as follows:
By default, libcurl implements DNS timeouts using a
timer (alarm()) and a pair of setjmp()/longjmp().
This approach is unsafe in multi-threaded applications
for various reasons, as e.g. explained in the relevant
man-pages.

To avoid this, libcurl can be compiled with a built-in
threaded resolver, or against the c-ares asynchronous
resolver library.

To keep extra dependencies to a minimum, and to mimic
other distributions (debian at least), and because
c-ares is not available in OE-core, add a PACKAGECONFIG
to be able to enable use of of the built-in threaded
resolver and enable it by default.

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoinsane.bbclass: Warn if ${COREBASE}/LICENSE is used
Saul Wold [Fri, 1 Sep 2017 21:53:25 +0000 (14:53 -0700)]
insane.bbclass: Warn if ${COREBASE}/LICENSE is used

The top level LICENSE file is not actually a license, it refers
other licenses that are used by Bitbake and Meta-data. Relying
on this file could cause problems for recipes when this file
changes, which it is about to.

(From OE-Core rev: a1948ab38c9cb7f0b16cce9dadc03ae6e2fe44ad)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_deb.bbclass: Handle colons in dependencies
Peter Kjellerstedt [Fri, 1 Sep 2017 16:28:36 +0000 (18:28 +0200)]
package_deb.bbclass: Handle colons in dependencies

Perl dependencies may look as "Perl(Foo::Bar)", but dpkg does not
support the non-alphanumeric characters. There was already special
handling present for turning '(' and ')' into '__'. This change does
the same for ':'.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage: Change PACKAGE_BBCLASS_VERSION
Richard Purdie [Fri, 1 Sep 2017 14:25:32 +0000 (15:25 +0100)]
package: Change PACKAGE_BBCLASS_VERSION

The silent rpmdeps failures fixed in a preceeding commit mean we
need to rerun all packaging.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoinitramfs-live-boot: disable systemd-update-done.service on live images
Carlos Alberto Lopez Perez [Thu, 31 Aug 2017 12:23:35 +0000 (14:23 +0200)]
initramfs-live-boot: disable systemd-update-done.service on live images

When systemd is used, it will invoke a service on first boot that triggers
a rebuild of ldconfig caches (rebuild dynamic linker cache).

This is fine on the first boot of a system that has been installed, but it
makes no sense on a live system. The worst part is that rebuilding this
caches is slow and it causes the live system to take longer to boot.
(I measured this in 30 seconds longer on a standard PC system booting
core-image-sato live from an USB memory).

Disable this by touching /etc/.updated and /var/.updated on the live initramfs.

For more details see https://bugzilla.redhat.com/show_bug.cgi?id=1201725 and
https://www.freedesktop.org/software/systemd/man/systemd-update-done.service.html

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agognupg: 2.1.23 -> 2.2.0
Hongxu Jia [Tue, 29 Aug 2017 07:00:43 +0000 (03:00 -0400)]
gnupg: 2.1.23 -> 2.2.0

https://lists.gnupg.org/pipermail/gnupg-announce/2017q3/000413.html

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>