[OE-core] [PATCH] gst-validate: inherit upstream-version-is-even

2018-02-19 Thread Anuj Mittal
gst-validate follows GStreamer versioning. Inherit class to make
sure development releases aren't marked as latest.

Signed-off-by: Anuj Mittal 
---
 meta/recipes-multimedia/gstreamer/gst-validate_1.12.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-multimedia/gstreamer/gst-validate_1.12.4.bb 
b/meta/recipes-multimedia/gstreamer/gst-validate_1.12.4.bb
index d2dbb41..0f2585a 100644
--- a/meta/recipes-multimedia/gstreamer/gst-validate_1.12.4.bb
+++ b/meta/recipes-multimedia/gstreamer/gst-validate_1.12.4.bb
@@ -15,7 +15,7 @@ RRECOMMENDS_${PN} = "git"
 
 FILES_${PN} += "${datadir}/gstreamer-1.0/* ${libdir}/gst-validate-launcher/* 
${libdir}/gstreamer-1.0/*"
 
-inherit pkgconfig gettext autotools gobject-introspection gtk-doc
+inherit pkgconfig gettext autotools gobject-introspection gtk-doc 
upstream-version-is-even
 
 # With gtk-doc enabled this recipe fails to build, so forcibly disable it:
 # WORKDIR/build/docs/validate/gst-validate-scan: line 117:
-- 
2.7.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2] make-mod-scripts: change how some kernel module tools are built

2018-02-19 Thread Bruce Ashfield
On Mon, Feb 19, 2018 at 6:45 PM, Richard Purdie
 wrote:
> On Mon, 2018-02-19 at 10:37 -0500, Bruce Ashfield wrote:
>> From: Joe Slater 
>>
>> Remove do_make_scripts() from module-base.bbclass and put
>> functionality in a recipe.  This will build the scripts only
>> once instead of each time an external module is built.
>>
>> [YOCTO #12228]
>>
>> Signed-off-by: Joe Slater 
>> Signed-off-by: Bruce Ashfield 
>> ---
>>
>> v2: added the LIC_FILES_CHECKSUM
>>
>
> Sadly this doesn't pass all our tests:
>
> https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/827/steps/Running%20oe-selftest/logs/stdio
>
> oe-selftest -r sstatetests.SStateTests.test_sstate_sametune_samesigs
>
> should reproduce.
>
> I suspect that the recipe may need:
>
> PACKAGE_ARCH = "${MACHINE_ARCH}"

I'll see what I can do. I don't hold a lot of in-depth knowledge on
this topic, but I made that change locally and am starting a build.

Bruce

>
> Cheers,
>
> Richard
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] kernel.bbclass: explicitly depend on bison-native for deterministic builds

2018-02-19 Thread Denys Dmytriyenko
On Mon, Feb 19, 2018 at 09:36:22PM -0300, Otavio Salvador wrote:
> On Mon, Feb 19, 2018 at 8:54 PM, Denys Dmytriyenko  wrote:
> > From: Denys Dmytriyenko 
> >
> > Explicitly depend on bison-native for deterministic builds, as it is 
> > required
> > for the build:
> >
> > |   HOSTCC  scripts/basic/fixdep
> > |   GEN ./Makefile
> > |   HOSTCC  scripts/kconfig/conf.o
> > |   YACCscripts/kconfig/zconf.tab.c
> > | /bin/sh: bison: command not found
> > | scripts/Makefile.lib:217: recipe for target 'scripts/kconfig/zconf.tab.c' 
> > failed
> >
> > In most cases, this dependency comes indirectly via toolchain dependencies,
> > specifically binutils-cross, which pulls bison-native. Different setups,
> > such as with external toolchain, would expose this problem, since correct
> > dependency is not marked explicitly.
> >
> > Signed-off-by: Denys Dmytriyenko 
> > ---
> > I'm seeing this now on 4.16-rc2 with external toolchain.
> 
> I am not against the addition but in fact, it is because 4.16 stopped
> of using pre-generated files and now requires bison to be available.

Ok, good, I was wondering why I didn't see it before 4.16...


> I am unsure it ought to be on kernel.bbclass at this moment.

Why not? Because it's 4.16+ specific?

By default bison-native dependency gets added implicitly when built with the 
toolchain from oe-core, so this doesn't add any extra dependencies, only makes 
it explicit.

-- 
Denys
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH V2] binutils: Upgrade to 2.30 release

2018-02-19 Thread Burton, Ross
Can't remember if this failed anywhere that wasn't related to the glibc
upgrade, so I just fired this patch standalone on the autobuilder.

Ross

On 16 February 2018 at 03:03, Khem Raj  wrote:

> ping
>
> On Thu, Feb 8, 2018 at 9:35 AM, Khem Raj  wrote:
> > Additionally cherry-pick
> >
> > 5ffeba4a09 Revert "PowerPC PLT speculative execution barriers"
> > b01452b1d4 [PR22764][LD][AARCH64]Allow R_AARCH64_ABS16 and
> R_AARCH64_ABS32 against absolution symbol or undefine symbol in shared
> object.
> > a985e9b9de Import patch from mainline to remove PROVODE qualifiers
> around definitions of __CTOR_LIST__ and __DTOR_LIST__ in PE linker scripts.
> > eec4607fc5 Add support for DWARF-4 line number tables.
> >
> > Signed-off-by: Khem Raj 
> > ---
> > Changes since v1:
> >
> > - Backport fixes for aarch64 relocs
> > - ppc plt fix, dwarf-4 line number support and linker script fix for
> removing PROVODE
> >
> >  meta/conf/distro/include/tcmode-default.inc|  2 +-
> >  .../{binutils-2.29.1.inc => binutils-2.30.inc} |  2 +-
> >  ...n_2.29.1.bb => binutils-cross-canadian_2.30.bb} |  0
> >  ...tils-cross_2.29.1.bb => binutils-cross_2.30.bb} |  0
> >  ...rosssdk_2.29.1.bb => binutils-crosssdk_2.30.bb} |  0
> >  ...nutils-crosssdk-Generate-relocatable-SDKs.patch | 14 ++---
> >  ...oss-Do-not-generate-linker-script-directo.patch |  6 +-
> >  ...ure-widen-the-regexp-for-SH-architectures.patch | 14 ++---
> >  .../0004-Point-scripts-location-to-libdir.patch|  8 +--
> >  ...te-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch | 10 ++--
> >  .../binutils/binutils/0006-Use-libtool-2.4.patch   | 66
> 
> >  ...7-Add-the-armv5e-architecture-to-binutils.patch |  8 +--
> >  ...he-distro-compiler-point-to-the-wrong-ins.patch |  6 +-
> >  ...es-of-system-directories-when-cross-linki.patch | 24 
> >  ...-rpath-in-libtool-when-sysroot-is-enabled.patch |  4 +-
> >  ...Change-default-emulation-for-mips64-linux.patch | 14 ++---
> >  .../0012-Add-support-for-Netlogic-XLP.patch| 70
> +++---
> >  ...ncorrect-assembling-for-ppc-wait-mnemonic.patch | 10 ++--
> >  .../binutils/0014-Detect-64-bit-MIPS-targets.patch |  6 +-
> >  .../0015-sync-with-OE-libtool-changes.patch|  4 +-
> >  .../{binutils_2.29.1.bb => binutils_2.30.bb}   |  0
> >  21 files changed, 127 insertions(+), 141 deletions(-)
> >  rename meta/recipes-devtools/binutils/{binutils-2.29.1.inc =>
> binutils-2.30.inc} (97%)
> >  rename meta/recipes-devtools/binutils/{binutils-cross-
> canadian_2.29.1.bb => binutils-cross-canadian_2.30.bb} (100%)
> >  rename meta/recipes-devtools/binutils/{binutils-cross_2.29.1.bb =>
> binutils-cross_2.30.bb} (100%)
> >  rename meta/recipes-devtools/binutils/{binutils-crosssdk_2.29.1.bb =>
> binutils-crosssdk_2.30.bb} (100%)
> >  rename meta/recipes-devtools/binutils/{binutils_2.29.1.bb =>
> binutils_2.30.bb} (100%)
> >
> > diff --git a/meta/conf/distro/include/tcmode-default.inc
> b/meta/conf/distro/include/tcmode-default.inc
> > index da45642440..037d331605 100644
> > --- a/meta/conf/distro/include/tcmode-default.inc
> > +++ b/meta/conf/distro/include/tcmode-default.inc
> > @@ -24,7 +24,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
> >
> >  GCCVERSION ?= "7.%"
> >  SDKGCCVERSION ?= "${GCCVERSION}"
> > -BINUVERSION ?= "2.29%"
> > +BINUVERSION ?= "2.30%"
> >  GDBVERSION ?= "8.0%"
> >  LINUXLIBCVERSION ?= "4.14%"
> >  GLIBCVERSION ?= "2.27%"
> > diff --git a/meta/recipes-devtools/binutils/binutils-2.29.1.inc
> b/meta/recipes-devtools/binutils/binutils-2.30.inc
> > similarity index 97%
> > rename from meta/recipes-devtools/binutils/binutils-2.29.1.inc
> > rename to meta/recipes-devtools/binutils/binutils-2.30.inc
> > index 07a72e2b5a..9c883acc52 100644
> > --- a/meta/recipes-devtools/binutils/binutils-2.29.1.inc
> > +++ b/meta/recipes-devtools/binutils/binutils-2.30.inc
> > @@ -18,7 +18,7 @@ BINUPV = "${@binutils_branch_version(d)}"
> >
> >  UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P\d+_(\d_?)*)"
> >
> > -SRCREV ?= "90276f15379d380761fc499da2ba24cfb3c12a94"
> > +SRCREV ?= "caa839fba66600a6c36d3639906ed9110b79c307"
> >  BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=
> binutils-${BINUPV}-branch;protocol=git"
> >  SRC_URI = "\
> >   ${BINUTILS_GIT_URI} \
> > diff --git a/meta/recipes-devtools/binutils/binutils-cross-
> canadian_2.29.1.bb b/meta/recipes-devtools/binutils/binutils-cross-
> canadian_2.30.bb
> > similarity index 100%
> > rename from meta/recipes-devtools/binutils/binutils-cross-
> canadian_2.29.1.bb
> > rename to meta/recipes-devtools/binutils/binutils-cross-canadian_2.30.bb
> > diff --git a/meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb
> b/meta/recipes-devtools/binutils/binutils-cross_2.30.bb
> > similarity index 100%
> > rename from meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb
> > rename to meta/recipes-devtools/binutils/binutils-cross_2.30.bb
> > diff 

[OE-core] [PATCH 2/2] libtirpc: refresh patches

2018-02-19 Thread Ross Burton
Signed-off-by: Ross Burton 
---
 .../0001-include-stdint.h-for-uintptr_t.patch  | 23 -
 .../0001-replace-__bzero-with-memset-API.patch | 58 +-
 .../libtirpc/export_key_secretkey_is_set.patch | 29 +++
 3 files changed, 74 insertions(+), 36 deletions(-)

diff --git 
a/meta/recipes-extended/libtirpc/libtirpc/0001-include-stdint.h-for-uintptr_t.patch
 
b/meta/recipes-extended/libtirpc/libtirpc/0001-include-stdint.h-for-uintptr_t.patch
index 1fe9833afed..7e3e2f86ad4 100644
--- 
a/meta/recipes-extended/libtirpc/libtirpc/0001-include-stdint.h-for-uintptr_t.patch
+++ 
b/meta/recipes-extended/libtirpc/libtirpc/0001-include-stdint.h-for-uintptr_t.patch
@@ -1,17 +1,15 @@
-From b80d3b573c1dade2b29b22f8acc3b9e2c7ddefd7 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Sat, 20 May 2017 13:36:43 -0700
-Subject: [PATCH] include stdint.h for uintptr_t
+Upstream-Status: Backport
+Signed-off-by: Ross Burton 
 
-Fixes
-| ../../libtirpc-1.0.1/src/xdr_sizeof.c:93:13: error: 'uintptr_t' undeclared 
(first use in this function); did you mean '__intptr_t'?
-|   if (len < (uintptr_t)xdrs->x_base) {
-|  ^
+From acb9a37977cf0a9630eac74af9adebf35e38e719 Mon Sep 17 00:00:00 2001
+From: Thorsten Kukuk 
+Date: Tue, 14 Nov 2017 10:39:08 -0500
+Subject: [PATCH] Include stdint.h from xdr_sizeof.c to avoid missing
+ declaration errors.
 
-Signed-off-by: Khem Raj 
+Signed-off-by: Thorsten Kukuk 
+Signed-off-by: Steve Dickson 
 ---
-Upstream-Status: Pending
-
  src/xdr_sizeof.c | 1 +
  1 file changed, 1 insertion(+)
 
@@ -28,5 +26,4 @@ index d23fbd1..79d6707 100644
  
  /* ARGSUSED */
 -- 
-2.13.0
-
+1.8.3.1
diff --git 
a/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch
 
b/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch
index d2b4da6ae2c..7ae19cb3196 100644
--- 
a/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch
+++ 
b/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch
@@ -1,17 +1,39 @@
-From 20badc3e3608953fb5b36bb2e16fa51bd731aebc Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Tue, 18 Apr 2017 09:35:35 -0700
-Subject: [PATCH] replace __bzero() with memset() API
+Upstream-Status: Backport
+Signed-off-by: Ross Burton 
 
-memset is available across all libc implementation
+From 5356b63005e9d8169e0399cb76f26fbd29a78dee Mon Sep 17 00:00:00 2001
+From: Joshua Kinard 
+Date: Wed, 23 Aug 2017 14:31:36 -0400
+Subject: [PATCH] Replace bzero() calls with equivalent memset() calls
 
-Signed-off-by: Khem Raj 

-Upstream-Status: Pending
+As annotated in the bzero(3) man page, bzero() was marked as LEGACY in
+POSIX.1-2001 and removed in POSIX.1-2008, and should be replaced with
+memset() calls to write zeros to a memory region.  The attached patch
+replaces two bzero() calls and one __bzero() call in libtirpc with
+equivalent memset() calls.  The latter replacement fixes a compile error
+under uclibc-ng, which lacks a definition for __bzero()
 
- src/des_impl.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
+Signed-off-by: Joshua Kinard 
+Signed-off-by: Steve Dickson 
+---
+ src/auth_time.c| 2 +-
+ src/des_impl.c | 2 +-
+ src/svc_auth_des.c | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
 
+diff --git a/src/auth_time.c b/src/auth_time.c
+index 7f83ab4..69400bc 100644
+--- a/src/auth_time.c
 b/src/auth_time.c
+@@ -317,7 +317,7 @@ __rpc_get_time_offset(td, srv, thost, uaddr, netid)
+   sprintf(ipuaddr, "%d.%d.%d.%d.0.111", a1, a2, a3, a4);
+   useua = [0];
+ 
+-  bzero((char *), sizeof(sin));
++  memset(, 0, sizeof(sin));
+   if (uaddr_to_sockaddr(useua, )) {
+   msg("unable to translate uaddr to sockaddr.");
+   if (needfree)
 diff --git a/src/des_impl.c b/src/des_impl.c
 index 9dbccaf..15bec2a 100644
 --- a/src/des_impl.c
@@ -25,6 +47,18 @@ index 9dbccaf..15bec2a 100644
  
return (1);
  }
+diff --git a/src/svc_auth_des.c b/src/svc_auth_des.c
+index 2e90146..19a7c60 100644
+--- a/src/svc_auth_des.c
 b/src/svc_auth_des.c
+@@ -356,7 +356,7 @@ cache_init()
+ 
+   authdes_cache = (struct cache_entry *)
+   mem_alloc(sizeof(struct cache_entry) * AUTHDES_CACHESZ);
+-  bzero((char *)authdes_cache, 
++  memset(authdes_cache, 0,
+   sizeof(struct cache_entry) * AUTHDES_CACHESZ);
+ 
+   authdes_lru = (short *)mem_alloc(sizeof(short) * AUTHDES_CACHESZ);
 -- 
-2.12.2
-
+1.8.3.1
diff --git 
a/meta/recipes-extended/libtirpc/libtirpc/export_key_secretkey_is_set.patch 
b/meta/recipes-extended/libtirpc/libtirpc/export_key_secretkey_is_set.patch
index a276ba27a59..d7f49686696 100644
--- 

[OE-core] [PATCH 1/2] libtirpc: stop dropping in NIS headers

2018-02-19 Thread Ross Burton
libtirpc prior to 1.0.2 assumed that the system provided nis.h but this isn't
always true.  Until now we've been using a tarball of the missing files from
Gentoo, but libtirpc 1.0.2 added a copy of nis.h to the sources so this isn't
required anymore.

Signed-off-by: Ross Burton 
---
 meta/recipes-extended/libtirpc/libtirpc_1.0.2.bb | 13 +++--
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/meta/recipes-extended/libtirpc/libtirpc_1.0.2.bb 
b/meta/recipes-extended/libtirpc/libtirpc_1.0.2.bb
index f9718c576b6..1a73de9db05 100644
--- a/meta/recipes-extended/libtirpc/libtirpc_1.0.2.bb
+++ b/meta/recipes-extended/libtirpc/libtirpc_1.0.2.bb
@@ -9,8 +9,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=f835cce8852481e4b2bbbdd23b5e47f3 \
 
 PROVIDES = "virtual/librpc"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2;name=libtirpc \
-   ${GENTOO_MIRROR}/${BPN}-glibc-nfs.tar.xz;name=glibc-nfs \
+SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \
file://export_key_secretkey_is_set.patch \
file://0001-replace-__bzero-with-memset-API.patch \
file://0001-include-stdint.h-for-uintptr_t.patch \
@@ -20,19 +19,13 @@ SRC_URI_append_libc-musl = " \
  file://Use-netbsd-queue.h.patch \
"
 
-SRC_URI[libtirpc.md5sum] = "d5a37f1dccec484f9cabe2b97e54e9a6"
-SRC_URI[libtirpc.sha256sum] = 
"723c5ce92706cbb601a8db09110df1b4b69391643158f20ff587e20e7c5f90f5"
-SRC_URI[glibc-nfs.md5sum] = "5ae500b9d0b6b72cb875bc04944b9445"
-SRC_URI[glibc-nfs.sha256sum] = 
"2677cfedf626f3f5a8f6e507aed5bb8f79a7453b589d684dbbc086e755170d83"
+SRC_URI[md5sum] = "d5a37f1dccec484f9cabe2b97e54e9a6"
+SRC_URI[sha256sum] = 
"723c5ce92706cbb601a8db09110df1b4b69391643158f20ff587e20e7c5f90f5"
 
 inherit autotools pkgconfig
 
 EXTRA_OECONF = "--disable-gssapi"
 
-do_configure_prepend () {
-cp -r ${WORKDIR}/tirpc ${S}
-}
-
 do_install_append() {
 chown root:root ${D}${sysconfdir}/netconfig
 }
-- 
2.11.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] kernel.bbclass: explicitly depend on bison-native for deterministic builds

2018-02-19 Thread Otavio Salvador
On Mon, Feb 19, 2018 at 8:54 PM, Denys Dmytriyenko  wrote:
> From: Denys Dmytriyenko 
>
> Explicitly depend on bison-native for deterministic builds, as it is required
> for the build:
>
> |   HOSTCC  scripts/basic/fixdep
> |   GEN ./Makefile
> |   HOSTCC  scripts/kconfig/conf.o
> |   YACCscripts/kconfig/zconf.tab.c
> | /bin/sh: bison: command not found
> | scripts/Makefile.lib:217: recipe for target 'scripts/kconfig/zconf.tab.c' 
> failed
>
> In most cases, this dependency comes indirectly via toolchain dependencies,
> specifically binutils-cross, which pulls bison-native. Different setups,
> such as with external toolchain, would expose this problem, since correct
> dependency is not marked explicitly.
>
> Signed-off-by: Denys Dmytriyenko 
> ---
> I'm seeing this now on 4.16-rc2 with external toolchain.

I am not against the addition but in fact, it is because 4.16 stopped
of using pre-generated files and now requires bison to be available. I
am unsure it ought to be on kernel.bbclass at this moment.

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9981-7854Mobile: +1 (347) 903-9750
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2][rocko] linux-yocto/4.12: update to v4.12.20

2018-02-19 Thread Richard Purdie
On Mon, 2018-02-19 at 11:45 -0500, Bruce Ashfield wrote:
> On Mon, Feb 19, 2018 at 11:37 AM, Richard Purdie
>  wrote:
> > 
> > On Mon, 2018-02-19 at 08:16 -0800, akuster808 wrote:
> > > 
> > > Bruce,
> > > 
> > > thanks. I hand applied this as I have another kernel change
> > > sitting
> > > in
> > > stable/rocko-next
> > > 
> > > I will build this once RP is done with master
> > You correctly pointed out I needed to sort master first! :)
> > 
> > Bruce: Is there an update for 4.9 in rocko? If so we should perhaps
> > pull that in too before we rebuild 2.4.2?
> I haven't done a patch for 4.9 in rocko, but can. Give me a few
> minutes and
> will send one out.

Thanks. Master is sorted apart from the scripts sigs issue which should
be simple to fix.

Rocko is looking a bit tricky, the qemuarm64 kernel is failing to boot:

https://autobuilder.yocto.io/builders/nightly-arm64/builds/755/steps/Running%20Sanity%20Tests/logs/stdio

so 4.12 qemuarm64 looks like it may be bust. Armin ran it twice and it
happened twice on different builders.

Cheers,

Richard
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] kernel.bbclass: explicitly depend on bison-native for deterministic builds

2018-02-19 Thread Denys Dmytriyenko
From: Denys Dmytriyenko 

Explicitly depend on bison-native for deterministic builds, as it is required
for the build:

|   HOSTCC  scripts/basic/fixdep
|   GEN ./Makefile
|   HOSTCC  scripts/kconfig/conf.o
|   YACCscripts/kconfig/zconf.tab.c
| /bin/sh: bison: command not found
| scripts/Makefile.lib:217: recipe for target 'scripts/kconfig/zconf.tab.c' 
failed

In most cases, this dependency comes indirectly via toolchain dependencies,
specifically binutils-cross, which pulls bison-native. Different setups,
such as with external toolchain, would expose this problem, since correct
dependency is not marked explicitly.

Signed-off-by: Denys Dmytriyenko 
---
I'm seeing this now on 4.16-rc2 with external toolchain.

 meta/classes/kernel.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 943938d..321c0a4 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -4,7 +4,7 @@ KERNEL_PACKAGE_NAME ??= "kernel"
 KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == 
"kernel") else d.getVar("KERNEL_PACKAGE_NAME") }"
 
 PROVIDES += "${@ "virtual/kernel" if (d.getVar("KERNEL_PACKAGE_NAME") == 
"kernel") else "" }"
-DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc 
kmod-native bc-native lzop-native"
+DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc 
kmod-native bc-native lzop-native bison-native"
 PACKAGE_WRITE_DEPS += "depmodwrapper-cross"
 
 do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot"
-- 
2.7.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2] make-mod-scripts: change how some kernel module tools are built

2018-02-19 Thread Richard Purdie
On Mon, 2018-02-19 at 10:37 -0500, Bruce Ashfield wrote:
> From: Joe Slater 
> 
> Remove do_make_scripts() from module-base.bbclass and put
> functionality in a recipe.  This will build the scripts only
> once instead of each time an external module is built.
> 
> [YOCTO #12228]
> 
> Signed-off-by: Joe Slater 
> Signed-off-by: Bruce Ashfield 
> ---
> 
> v2: added the LIC_FILES_CHECKSUM
> 

Sadly this doesn't pass all our tests:

https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/827/steps/Running%20oe-selftest/logs/stdio

oe-selftest -r sstatetests.SStateTests.test_sstate_sametune_samesigs

should reproduce.

I suspect that the recipe may need:

PACKAGE_ARCH = "${MACHINE_ARCH}"

Cheers,

Richard
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 3/3] icecc.bbclass: Remove icecream from uninative

2018-02-19 Thread Joshua Watt
The icecream native tools should not be included in uninative tarballs
even though it is nativesdk

Signed-off-by: Joshua Watt 
---
 meta/classes/icecc.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index bfab61dfa36..48a51310c21 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -403,5 +403,8 @@ do_install_prepend() {
 ICECC_SDK_HOST_TASK = "nativesdk-icecc-toolchain"
 ICECC_SDK_HOST_TASK_task-populate-sdk-ext = ""
 
+# Don't include IceCream in uninative tarball
+ICECC_SDK_HOST_TASK_pn-uninative-tarball = ""
+
 # Add the toolchain scripts to the SDK
 TOOLCHAIN_HOST_TASK_append = " ${ICECC_SDK_HOST_TASK}"
-- 
2.14.3

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 2/3] icecc.bbclass: Add environment version

2018-02-19 Thread Joshua Watt
Adds a version to the environment which can be used to invalidate any
previous environments on the remote compile nodes

Signed-off-by: Joshua Watt 
---
 meta/classes/icecc.bbclass | 15 ++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index 2bf6cdb003d..bfab61dfa36 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -34,6 +34,15 @@ BB_HASHBASE_WHITELIST += "ICECC_PARALLEL_MAKE ICECC_DISABLED 
ICECC_USER_PACKAGE_
 
 ICECC_ENV_EXEC ?= "${STAGING_BINDIR_NATIVE}/icecc-create-env"
 
+# This version can be incremented when changes are made to the environment that
+# invalidate the version on the compile nodes. Changing it will cause a new
+# environment to be created.
+#
+# A useful thing to do for testing Icecream changes locally is to add a
+# subversion in local.conf:
+#  ICECC_ENV_VERSION_append = "-my-ver-1"
+ICECC_ENV_VERSION = "1"
+
 # Default to disabling the caret workaround, If set to "1" in local.conf, icecc
 # will locally recompile any files that have warnings, which can adversely
 # affect performance.
@@ -203,7 +212,11 @@ def icecc_version(bb, d):
 
 import socket
 ice_dir = icecc_dir(bb, d)
-tar_file = os.path.join(ice_dir, archive_name + "-@VERSION@-" + 
socket.gethostname() + '.tar.gz')
+tar_file = os.path.join(ice_dir, 
"{archive}-{version}-@VERSION@-{hostname}.tar.gz".format(
+archive=archive_name,
+version=d.getVar('ICECC_ENV_VERSION', True),
+hostname=socket.gethostname()
+))
 
 return tar_file
 
-- 
2.14.3

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 1/3] icecc.bbclass: Fix combining with ccache

2018-02-19 Thread Joshua Watt
Fixes the case where ccache is enabled along with Icecream. In these
cases, there is the danger that Icecream will accidentally add the
ccache executable to the toolchain, which prevents it from working. In
particular, Fedora enables ccache by default via symbolic links in PATH.

Signed-off-by: Joshua Watt 
---
 meta/classes/icecc.bbclass | 31 ++-
 1 file changed, 26 insertions(+), 5 deletions(-)

diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index e8f7eab1bc1..2bf6cdb003d 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -224,13 +224,31 @@ def icecc_get_external_tool(bb, d, tool):
 target_prefix = d.expand('${TARGET_PREFIX}')
 return os.path.join(external_toolchain_bindir, '%s%s' % (target_prefix, 
tool))
 
+def icecc_get_tool_link(tool, d):
+import subprocess
+return subprocess.check_output("readlink -f %s" % tool, 
shell=True).decode("utf-8")[:-1]
+
+def icecc_get_path_tool(tool, d):
+# This is a little ugly, but we want to make sure we add an actual
+# compiler to the toolchain, not ccache. Some distros (e.g. Fedora)
+# have ccache enabled by default using symlinks PATH, meaning ccache
+# would be found first when looking for the compiler.
+paths = os.getenv("PATH").split(':')
+while True:
+p, hist = bb.utils.which(':'.join(paths), tool, history=True)
+if not p or os.path.basename(icecc_get_tool_link(p, d)) != 'ccache':
+return p
+paths = paths[len(hist):]
+
+return ""
+
 # Don't pollute native signatures with target TUNE_PKGARCH through 
STAGING_BINDIR_TOOLCHAIN
 icecc_get_tool[vardepsexclude] += "STAGING_BINDIR_TOOLCHAIN"
 def icecc_get_tool(bb, d, tool):
 if icecc_is_native(bb, d):
-return bb.utils.which(os.getenv("PATH"), tool)
+return icecc_get_path_tool(tool, d)
 elif icecc_is_kernel(bb, d):
-return bb.utils.which(os.getenv("PATH"), get_cross_kernel_cc(bb, d))
+return icecc_get_path_tool(get_cross_kernel_cc(bb, d), d)
 else:
 ice_dir = d.expand('${STAGING_BINDIR_TOOLCHAIN}')
 target_sys = d.expand('${TARGET_SYS}')
@@ -249,8 +267,7 @@ def icecc_get_and_check_tool(bb, d, tool):
 # compiler environment package.
 t = icecc_get_tool(bb, d, tool)
 if t:
-import subprocess
-link_path = subprocess.check_output("readlink -f %s" % t, 
shell=True).decode("utf-8")[:-1]
+link_path = icecc_get_tool_link(tool, d)
 if link_path == get_icecc(d):
 bb.error("%s is a symlink to %s in PATH and this prevents icecc 
from working" % (t, get_icecc(d)))
 return ""
@@ -342,9 +359,13 @@ set_icecc_env() {
 fi
 fi
 
+# Don't let ccache find the icecream compiler links that have been 
created, otherwise
+# it can end up invoking icecream recursively.
+export CCACHE_PATH="$PATH"
+export CCACHE_DISBALE="1"
+
 export ICECC_VERSION ICECC_CC ICECC_CXX
 export PATH="$ICE_PATH:$PATH"
-export CCACHE_PATH="$PATH"
 
 bbnote "Using icecc"
 }
-- 
2.14.3

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] glibc: Upgrade to 2.27 release

2018-02-19 Thread Khem Raj
On Mon, Feb 19, 2018 at 12:06 PM, Burton, Ross  wrote:
> Hi Khem,
>
> Sigh, sorry, should have realised.  So locale-archives are not compatible
> between glibc releases?  Good to know, I guess.
>

they are not and its recommended that static binaries be relinked.  I
am not sure
if our usecase is a supported one either

> Ross
>
> On 18 February 2018 at 07:58, Khem Raj  wrote:
>>
>> Wanted to send update on this issue
>>
>> I got to bottom of this issue and Ross you should have known it :)
>>
>> https://patchwork.openembedded.org/patch/127105/
>>
>> introduced an optimization into nativesdk glibc to let it ride on
>> localedate from SDK host. This has now broken in glibc with
>>
>>
>> https://github.com/kraj/glibc/commit/95cb863a1ef7760a11272bbd7ba5fe62dc41be54
>>
>> it is recommended for static programs to be relinked if using glibc 2.27
>> our case is also similar mismatch of libc version and localedata just in
>> opposite direction where we are trying to read old data with new glibc
>> instead.
>>
>> I have initiated a discussion within glibc community on it to explore what
>> options we have, but be prepared to ship full localedata in worst case with
>> glibc 2.27,  this might be the worst case option if no alternative is found.
>>
>> Thank you
>> -Khem
>>
>> On 2/15/18 4:12 AM, Burton, Ross wrote:
>>>
>>> Yes, that's it.
>>>
>>> Ross
>>>
>>> On 12 February 2018 at 07:32, Khem Raj >> > wrote:
>>>
>>> On Sat, Feb 3, 2018 at 2:21 AM, Burton, Ross >> > wrote:
>>> > Getting there: https://autobuilder.yocto.io/tgrid
>>> 
>>> >
>>> > Just two actual problems:
>>> > - The non-gplv3 build failed as the make fix needs to be backported
>>> to
>>> > meta-gplv2
>>> > - The eSDK selftests all failed with en_US.UTF-8 problems, the new
>>> glibc
>>> > shouldn't be causing a problem with uninative so this is
>>> interesting, maybe
>>> > the new one is behaving slightly differently.  Should be easy to
>>> replicate.
>>> > The same problem caused selftest to fail.
>>> >
>>>
>>> is the UTF error like this one
>>> https://gist.github.com/25a84d23618824f0e5e6857a960eaca4
>>> 
>>>
>>>  > Ross
>>>
>>>
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] glibc: Upgrade to 2.27 release

2018-02-19 Thread Burton, Ross
Hi Khem,

Sigh, sorry, should have realised.  So locale-archives are not compatible
between glibc releases?  Good to know, I guess.

Ross

On 18 February 2018 at 07:58, Khem Raj  wrote:

> Wanted to send update on this issue
>
> I got to bottom of this issue and Ross you should have known it :)
>
> https://patchwork.openembedded.org/patch/127105/
>
> introduced an optimization into nativesdk glibc to let it ride on
> localedate from SDK host. This has now broken in glibc with
>
> https://github.com/kraj/glibc/commit/95cb863a1ef7760a11272bb
> d7ba5fe62dc41be54
>
> it is recommended for static programs to be relinked if using glibc 2.27
> our case is also similar mismatch of libc version and localedata just in
> opposite direction where we are trying to read old data with new glibc
> instead.
>
> I have initiated a discussion within glibc community on it to explore what
> options we have, but be prepared to ship full localedata in worst case with
> glibc 2.27,  this might be the worst case option if no alternative is found.
>
> Thank you
> -Khem
>
> On 2/15/18 4:12 AM, Burton, Ross wrote:
>
>> Yes, that's it.
>>
>> Ross
>>
>> On 12 February 2018 at 07:32, Khem Raj  raj.k...@gmail.com>> wrote:
>>
>> On Sat, Feb 3, 2018 at 2:21 AM, Burton, Ross > > wrote:
>> > Getting there: https://autobuilder.yocto.io/tgrid <
>> https://autobuilder.yocto.io/tgrid>
>> >
>> > Just two actual problems:
>> > - The non-gplv3 build failed as the make fix needs to be backported
>> to
>> > meta-gplv2
>> > - The eSDK selftests all failed with en_US.UTF-8 problems, the new
>> glibc
>> > shouldn't be causing a problem with uninative so this is
>> interesting, maybe
>> > the new one is behaving slightly differently.  Should be easy to
>> replicate.
>> > The same problem caused selftest to fail.
>> >
>>
>> is the UTF error like this one
>> https://gist.github.com/25a84d23618824f0e5e6857a960eaca4
>> 
>>
>>  > Ross
>>
>>
>>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] pseudo: update to latest master

2018-02-19 Thread Seebs
On Mon, 19 Feb 2018 20:01:31 +0100
Martin Jansa  wrote:

> I did quick check for UID/GID issue:
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=12434

Hmm. glibc-locale, in particular, is a really weird case; does it still
do the strange thing with copying the files around through scratch
space to get them from one package to another? (My vague memory from
five years ago is staying vague.)

-s
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH][rocko] kernel-yocto/4.9: update to v4.9.82

2018-02-19 Thread akuster808

On 02/19/2018 10:08 AM, Bruce Ashfield wrote:
> Updating to the korg -stable release of 4.9.82 which comprises the
> following commits:

Thanks,
merged into stable/rocko-next.

- armin
>
>3e598a7089ee Linux 4.9.82
>2de1085e8deb ftrace: Remove incorrect setting of glob search field
>df113487f844 mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a 
> failed user copy
>38e3bc59e0dd ovl: fix failure to fsync lower dir
>a468a3749bb5 acpi, nfit: fix register dimm error handling
>623c28ee02b3 ACPI: sbshc: remove raw pointer from printk() message
>3169a7c06e91 drm/i915: Avoid PPS HW/SW state mismatch due to rounding
>8fe7ceaf8a4e btrfs: Handle btrfs_set_extent_delalloc failure in fixup 
> worker
>3c83fe52b5c1 lib/ubsan: add type mismatch handler for new GCC/Clang
>3f8130127c0c lib/ubsan.c: s/missaligned/misaligned/
>1bb09d05a41c clocksource/drivers/stm32: Fix kernel panic with multiple 
> timers
>944723bf84d3 pktcdvd: Fix pkt_setup_dev() error path
>86d408d10efd pinctrl: intel: Initialize GPIO properly when used through 
> irqchip
>10ddc77ffb92 EDAC, octeon: Fix an uninitialized variable warning
>2d4e295284a9 xtensa: fix futex_atomic_cmpxchg_inatomic
>71611b37cca4 alpha: fix formating of stack content
>7d22d92ca6c9 alpha: fix reboot on Avanti platform
>68d18e90eeec alpha: fix crash if pthread_create races with signal delivery
>21f94109d0f1 signal/sh: Ensure si_signo is initialized in do_divide_error
>498b8b7453a3 signal/openrisc: Fix do_unaligned_access to send the proper 
> signal
>5795b076bd7f Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a 
> "rewritten" version
>84bf682f5342 Revert "Bluetooth: btusb: fix QCA Rome suspend/resume"
>6913d1b190b9 Bluetooth: btsdio: Do not bind to non-removable BCM43341
>df9658e80605 HID: quirks: Fix keyboard + touchpad on Toshiba Click Mini 
> not working
>71baf27d8c2b pipe: fix off-by-one error when checking buffer limits
>a705c24b5d50 pipe: actually allow root to exceed the pipe buffer limits
>91cebf98cd94 kernel/relay.c: revert "kernel/relay.c: fix potential memory 
> leak"
>33a4459bdef1 kernel/async.c: revert "async: simplify lowest_in_progress()"
>da3b224658d3 fs/proc/kcore.c: use probe_kernel_read() instead of memcpy()
>1666d38f4ed6 media: cxusb, dib0700: ignore XC2028_I2C_FLUSH
>b2e7c63cad18 media: ts2020: avoid integer overflows on 32 bit machines
>d1d85ae79d5e media: dvb-frontends: fix i2c access helpers for KASAN
>b7f9df60f410 watchdog: imx2_wdt: restore previous timeout after 
> suspend+resume
>eb10c5973eb2 ASoC: skl: Fix kernel warning due to zero NHTL entry
>76376783a453 ASoC: rockchip: i2s: fix playback after runtime resume
>f6741799aa53 KVM: arm/arm64: Handle CPU_PM_ENTER_FAILED
>ba88289e7acb KVM: nVMX: Fix races when sending nested PI while dest 
> enters/leaves L2
>51e22c571fad arm: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls
>68f2013e1ff8 crypto: sha512-mb - initialize pending lengths correctly
>a96e82079025 crypto: caam - fix endless loop when DECO acquire fails
>f2d4bed9eabf media: v4l2-compat-ioctl32.c: refactor compat ioctl32 logic
>437c4ec62efb media: v4l2-compat-ioctl32.c: don't copy back the result for 
> certain errors
>30dcb0756b0f media: v4l2-compat-ioctl32.c: drop pr_info for unknown buffer 
> type
>30ac343c4222 media: v4l2-compat-ioctl32.c: copy clip list in 
> put_v4l2_window32
>55e3f3e6846c media: v4l2-compat-ioctl32: Copy v4l2_window->global_alpha
>8465657a3be4 media: v4l2-compat-ioctl32.c: make ctrl_is_pointer work for 
> subdevs
>9a7cd41be3ad media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer
>eec955463de3 media: v4l2-compat-ioctl32.c: copy m.userptr in 
> put_v4l2_plane32
>daff4d009f4f media: v4l2-compat-ioctl32.c: avoid sizeof(type)
>81e0acf07015 media: v4l2-compat-ioctl32.c: move 'helper' functions to 
> __get/put_v4l2_format32
>02129c9bc235 media: v4l2-compat-ioctl32.c: fix the indentation
>f294548da645 media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF
>e78d9fdf5ecc media: v4l2-ioctl.c: don't copy back the result for -ENOTTY
>daaa81c48402 nsfs: mark dentry with DCACHE_RCUACCESS
>b93728341fb7 crypto: poly1305 - remove ->setkey() method
>45f31106baa3 crypto: mcryptd - pass through absence of ->setkey()
>c1ebf9f83547 crypto: cryptd - pass through absence of ->setkey()
>d2b492bda560 crypto: hash - introduce crypto_hash_alg_has_setkey()
>016572d31d32 ahci: Add Intel Cannon Lake PCH-H PCI ID
>72c0031a914e ahci: Add PCI ids for Intel Bay Trail, Cherry Trail and 
> Apollo Lake AHCI
>3332b6f3276b ahci: Annotate PCI ids for mobile Intel chipsets as such
>058d13f85da6 kernfs: fix regression in kernfs_fop_write caused by wrong 
> type
>b79d8854ee0e NFS: Fix a race between mmap() and O_DIRECT
>967f650f8835 NFS: reject request for id_legacy key without auxdata
>   

Re: [OE-core] [PATCH] pseudo: update to latest master

2018-02-19 Thread Martin Jansa
I've bumped SRCREV to include your latest fix and re-enabled epoll and now
it doesn't get stuck for me, thanks!

I did quick check for UID/GID issue:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=12434

without epoll disabled and SRCREV "b6a015a Handle O_TMPFILE more better" it
was still reproducible, now I'm testing with epoll enabled and latest
SRCREV "f3f4459 Epoll: use the correct client"

Regards,


On Mon, Feb 19, 2018 at 6:55 PM, Seebs  wrote:

> On Mon, 19 Feb 2018 11:27:56 +0200
> Alexander Kanavin  wrote:
>
> > > Huh. It's possible that the initial "don't try to close fd 0" was
> > > correct, and the real problem is that the attempt is getting made
> > > mistakenly. I'll study that more; the epoll code was a contribution
> > > and I may not have fully understood it.
> >
> > To be honest, it would have been better to apply my epoll patch as it
> > is, and then do additional modifications as separate commits. That
> > would make it simpler to isolate the issue. We've used my epoll patch
> > for many months without problems on the autobuilder and elsewhere.
>
> ... Wow, you know, now that you *mention* it, that is a really good
> idea. *sigh* Sorry about that.
>
> Hmm.
>
> > if (clients[events[i].data.u64].fd == listen_fd) {
>
> Just a sanity-check: Should this be equivalent to:
> if (events[[i].data.u64 == 0)
> ?
>
> The reason I ask is that, looking at the code, we should never, ever,
> be getting into close_client(0). The "<=" check was right.
>
> The only call to close_client anywhere in the epoll case is:
>
> > } else {
> >   int n = 0;
> >   ioctl(clients[i].fd, FIONREAD, );
> >   if (n == 0) {
> >   close_client(i);
> >   } else {
> >   serve_client(i);
> >   }
>
> And that's the else for clients... oh hey
>
>
> > if (clients[events[i].data.u64].fd == listen_fd) {
> ...
> > ioctl(clients[i].fd, FIONREAD, );
>
> do you see the error? I do.
>
> This gets back to "and one of the problems with testing is that
> if I don't actually check the logs, I often don't see problems",
> because pseudo does enough internal disaster recovery that things can
> explode horribly without observable failures.
>
> Now extracting the data.u64 value and using that consistently as the
> index. Pushed fix to master.
>
> -s
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] pseudo: update to latest master

2018-02-19 Thread Alexander Kanavin

On 02/19/2018 07:55 PM, Seebs wrote:

This gets back to "and one of the problems with testing is that
if I don't actually check the logs, I often don't see problems",
because pseudo does enough internal disaster recovery that things can
explode horribly without observable failures.

Now extracting the data.u64 value and using that consistently as the
index. Pushed fix to master.


Thanks; with this change things seem to work again on my side. I've 
updated and force pushed the branch on poky-contrib, so please test. 
I'll be on holiday until next Tuesday.


http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=akanavin/pseudo-1.9.0


Alex
--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH][rocko] kernel-yocto/4.9: update to v4.9.82

2018-02-19 Thread Bruce Ashfield
Updating to the korg -stable release of 4.9.82 which comprises the
following commits:

   3e598a7089ee Linux 4.9.82
   2de1085e8deb ftrace: Remove incorrect setting of glob search field
   df113487f844 mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a 
failed user copy
   38e3bc59e0dd ovl: fix failure to fsync lower dir
   a468a3749bb5 acpi, nfit: fix register dimm error handling
   623c28ee02b3 ACPI: sbshc: remove raw pointer from printk() message
   3169a7c06e91 drm/i915: Avoid PPS HW/SW state mismatch due to rounding
   8fe7ceaf8a4e btrfs: Handle btrfs_set_extent_delalloc failure in fixup worker
   3c83fe52b5c1 lib/ubsan: add type mismatch handler for new GCC/Clang
   3f8130127c0c lib/ubsan.c: s/missaligned/misaligned/
   1bb09d05a41c clocksource/drivers/stm32: Fix kernel panic with multiple timers
   944723bf84d3 pktcdvd: Fix pkt_setup_dev() error path
   86d408d10efd pinctrl: intel: Initialize GPIO properly when used through 
irqchip
   10ddc77ffb92 EDAC, octeon: Fix an uninitialized variable warning
   2d4e295284a9 xtensa: fix futex_atomic_cmpxchg_inatomic
   71611b37cca4 alpha: fix formating of stack content
   7d22d92ca6c9 alpha: fix reboot on Avanti platform
   68d18e90eeec alpha: fix crash if pthread_create races with signal delivery
   21f94109d0f1 signal/sh: Ensure si_signo is initialized in do_divide_error
   498b8b7453a3 signal/openrisc: Fix do_unaligned_access to send the proper 
signal
   5795b076bd7f Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a 
"rewritten" version
   84bf682f5342 Revert "Bluetooth: btusb: fix QCA Rome suspend/resume"
   6913d1b190b9 Bluetooth: btsdio: Do not bind to non-removable BCM43341
   df9658e80605 HID: quirks: Fix keyboard + touchpad on Toshiba Click Mini not 
working
   71baf27d8c2b pipe: fix off-by-one error when checking buffer limits
   a705c24b5d50 pipe: actually allow root to exceed the pipe buffer limits
   91cebf98cd94 kernel/relay.c: revert "kernel/relay.c: fix potential memory 
leak"
   33a4459bdef1 kernel/async.c: revert "async: simplify lowest_in_progress()"
   da3b224658d3 fs/proc/kcore.c: use probe_kernel_read() instead of memcpy()
   1666d38f4ed6 media: cxusb, dib0700: ignore XC2028_I2C_FLUSH
   b2e7c63cad18 media: ts2020: avoid integer overflows on 32 bit machines
   d1d85ae79d5e media: dvb-frontends: fix i2c access helpers for KASAN
   b7f9df60f410 watchdog: imx2_wdt: restore previous timeout after 
suspend+resume
   eb10c5973eb2 ASoC: skl: Fix kernel warning due to zero NHTL entry
   76376783a453 ASoC: rockchip: i2s: fix playback after runtime resume
   f6741799aa53 KVM: arm/arm64: Handle CPU_PM_ENTER_FAILED
   ba88289e7acb KVM: nVMX: Fix races when sending nested PI while dest 
enters/leaves L2
   51e22c571fad arm: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls
   68f2013e1ff8 crypto: sha512-mb - initialize pending lengths correctly
   a96e82079025 crypto: caam - fix endless loop when DECO acquire fails
   f2d4bed9eabf media: v4l2-compat-ioctl32.c: refactor compat ioctl32 logic
   437c4ec62efb media: v4l2-compat-ioctl32.c: don't copy back the result for 
certain errors
   30dcb0756b0f media: v4l2-compat-ioctl32.c: drop pr_info for unknown buffer 
type
   30ac343c4222 media: v4l2-compat-ioctl32.c: copy clip list in 
put_v4l2_window32
   55e3f3e6846c media: v4l2-compat-ioctl32: Copy v4l2_window->global_alpha
   8465657a3be4 media: v4l2-compat-ioctl32.c: make ctrl_is_pointer work for 
subdevs
   9a7cd41be3ad media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer
   eec955463de3 media: v4l2-compat-ioctl32.c: copy m.userptr in put_v4l2_plane32
   daff4d009f4f media: v4l2-compat-ioctl32.c: avoid sizeof(type)
   81e0acf07015 media: v4l2-compat-ioctl32.c: move 'helper' functions to 
__get/put_v4l2_format32
   02129c9bc235 media: v4l2-compat-ioctl32.c: fix the indentation
   f294548da645 media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF
   e78d9fdf5ecc media: v4l2-ioctl.c: don't copy back the result for -ENOTTY
   daaa81c48402 nsfs: mark dentry with DCACHE_RCUACCESS
   b93728341fb7 crypto: poly1305 - remove ->setkey() method
   45f31106baa3 crypto: mcryptd - pass through absence of ->setkey()
   c1ebf9f83547 crypto: cryptd - pass through absence of ->setkey()
   d2b492bda560 crypto: hash - introduce crypto_hash_alg_has_setkey()
   016572d31d32 ahci: Add Intel Cannon Lake PCH-H PCI ID
   72c0031a914e ahci: Add PCI ids for Intel Bay Trail, Cherry Trail and Apollo 
Lake AHCI
   3332b6f3276b ahci: Annotate PCI ids for mobile Intel chipsets as such
   058d13f85da6 kernfs: fix regression in kernfs_fop_write caused by wrong type
   b79d8854ee0e NFS: Fix a race between mmap() and O_DIRECT
   967f650f8835 NFS: reject request for id_legacy key without auxdata
   ca2c316f7cb4 NFS: commit direct writes even if they fail partially
   d1840343f948 NFS: Add a cond_resched() to nfs_commit_release_pages()
   e1df8c682df6 nfs/pnfs: fix nfs_direct_req ref leak when i/o falls back to 
the mds
   298dc6c6696b ubifs: Massage assert in 

Re: [OE-core] [PATCH] pseudo: update to latest master

2018-02-19 Thread Seebs
On Mon, 19 Feb 2018 11:27:56 +0200
Alexander Kanavin  wrote:

> > Huh. It's possible that the initial "don't try to close fd 0" was
> > correct, and the real problem is that the attempt is getting made
> > mistakenly. I'll study that more; the epoll code was a contribution
> > and I may not have fully understood it.
> 
> To be honest, it would have been better to apply my epoll patch as it 
> is, and then do additional modifications as separate commits. That
> would make it simpler to isolate the issue. We've used my epoll patch
> for many months without problems on the autobuilder and elsewhere.

... Wow, you know, now that you *mention* it, that is a really good
idea. *sigh* Sorry about that.

Hmm.

> if (clients[events[i].data.u64].fd == listen_fd) {

Just a sanity-check: Should this be equivalent to:
if (events[[i].data.u64 == 0)
?

The reason I ask is that, looking at the code, we should never, ever,
be getting into close_client(0). The "<=" check was right.

The only call to close_client anywhere in the epoll case is:

> } else {
>   int n = 0;
>   ioctl(clients[i].fd, FIONREAD, );
>   if (n == 0) {
>   close_client(i);
>   } else {
>   serve_client(i);
>   }

And that's the else for clients... oh hey


> if (clients[events[i].data.u64].fd == listen_fd) {
...
> ioctl(clients[i].fd, FIONREAD, );

do you see the error? I do.

This gets back to "and one of the problems with testing is that
if I don't actually check the logs, I often don't see problems",
because pseudo does enough internal disaster recovery that things can
explode horribly without observable failures.

Now extracting the data.u64 value and using that consistently as the
index. Pushed fix to master.

-s
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2][rocko] linux-yocto/4.12: update to v4.12.20

2018-02-19 Thread Bruce Ashfield
On Mon, Feb 19, 2018 at 11:37 AM, Richard Purdie
 wrote:
> On Mon, 2018-02-19 at 08:16 -0800, akuster808 wrote:
>> Bruce,
>>
>> thanks. I hand applied this as I have another kernel change sitting
>> in
>> stable/rocko-next
>>
>> I will build this once RP is done with master
>
> You correctly pointed out I needed to sort master first! :)
>
> Bruce: Is there an update for 4.9 in rocko? If so we should perhaps
> pull that in too before we rebuild 2.4.2?

I haven't done a patch for 4.9 in rocko, but can. Give me a few minutes and
will send one out.

Bruce

>
> (and thanks for the 4.12 fixes, I was going to ask about them but Armin
> beat me to it)
>
> Cheers,
>
> Richard
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2][rocko] linux-yocto/4.12: update to v4.12.20

2018-02-19 Thread Richard Purdie
On Mon, 2018-02-19 at 08:16 -0800, akuster808 wrote:
> Bruce,
> 
> thanks. I hand applied this as I have another kernel change sitting
> in
> stable/rocko-next
> 
> I will build this once RP is done with master

You correctly pointed out I needed to sort master first! :)

Bruce: Is there an update for 4.9 in rocko? If so we should perhaps
pull that in too before we rebuild 2.4.2?

(and thanks for the 4.12 fixes, I was going to ask about them but Armin
beat me to it)

Cheers,

Richard
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2][rocko] linux-yocto/4.12: update to v4.12.20

2018-02-19 Thread akuster808
Bruce,

thanks. I hand applied this as I have another kernel change sitting in
stable/rocko-next

I will build this once RP is done with master

- armin


On 02/19/2018 07:40 AM, Bruce Ashfield wrote:
> Updating to Paul Gortmaker's 4.12.20 release, which comprises
> the following commits:
>
>26041ea62c10 Linux 4.12.20
>80da9fc42759 kvm: x86: fix RSM when PCID is non-zero
>94ff73e84af3 x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN
>1c6aaef6e08f x86/alternatives: Add missing '\n' at end of ALTERNATIVE 
> inline asm
>a14ac5bc4953 x86/tlb: Drop the _GPL from the cpu_tlbstate export
>a95cc558c4ba x86/events/intel/ds: Use the proper cache flush method for 
> mapping ds buffers
>e94e2440d266 x86/kaslr: Fix the vaddr_end mess
>ec2c4771ab78 x86/mm: Map cpu_entry_area at the same place on 4/5 level
>21390d1cf697 x86/mm: Set MODULES_END to 0xff00
>a657f6bde81f x86/process: Define cpu_tss_rw in same section as declaration
>f0ca9ecfacd8 x86/pti: Switch to kernel CR3 at early in 
> entry_SYSCALL_compat()
>882c46ebc1eb x86/pti: Make sure the user/kernel PTEs match
>0920dd036f51 x86/cpu, x86/pti: Do not enable PTI on AMD processors
>2832199b24b5 x86/pti: Enable PTI by default
>abe84bdf0450 mm/mprotect: add a cond_resched() inside change_pmd_range()
>79c74e87dd70 kernel/acct.c: fix the acct->needcheck check in 
> check_free_space()
>8097b1b3ed8e x86/espfix/64: Fix espfix double-fault handling on 5-level 
> systems
>1a698b5094c6 x86/decoder: Fix and update the opcodes map
>3bc0a0230c85 x86/idt: Load idt early in start_secondary
>96523a6b3c9f x86/ldt: Make LDT pgtable free conditional
>0930c225b7fd x86/ldt: Plug memory leak in error path
>7b392c0fd57c x86/mm: Remove preempt_disable/enable() from 
> __native_flush_tlb()
>a569be19aca4 x86/smpboot: Remove stale TLB flush invocations
>171c680cd430 x86/ldt: Make the LDT mapping RO
>b20a4e9c0824 x86/mm/dump_pagetables: Allow dumping current pagetables
>4cb373d5878c x86/mm/dump_pagetables: Check user space page table for WX 
> pages
>419aaf9950b0 x86/mm/dump_pagetables: Add page table directory to the 
> debugfs VFS hierarchy
>f2ea744855ef x86/mm/pti: Add Kconfig
>21ee6ef0b6da x86/dumpstack: Indicate in Oops whether PTI is configured and 
> enabled
>4792df02eaa2 x86/mm: Clarify the whole ASID/kernel PCID/user PCID naming
>079aafe7e55e x86/mm: Use INVPCID for __native_flush_tlb_single()
>f82db33b19f6 x86/mm: Optimize RESTORE_CR3
>156823d62b52 x86/mm: Use/Fix PCID to optimize user/kernel switches
>3c6ddf8979d7 x86/mm: Abstract switching CR3
>842c1304aa61 x86/mm: Allow flushing for future ASID switches
>54ccd28274b7 x86/pti: Map the vsyscall page if needed
>05347c693d0a x86/pti: Put the LDT in its own PGD if PTI is on
>86aa46082664 x86/mm/64: Make a full PGD-entry size hole in the memory map
>bd91c7622d4b x86/events/intel/ds: Map debug buffers in cpu_entry_area
>f2a19cac5364 x86/cpu_entry_area: Add debugstore entries to cpu_entry_area
>788856fff986 x86/mm/pti: Map ESPFIX into user space
>2946dc511e38 x86/mm/pti: Share entry text PMD
>8f01f3ca70af x86/entry: Align entry text section to PMD boundary
>419ac1b145f8 x86/mm/pti: Share cpu_entry_area with user space page tables
>43ac2d12a830 x86/mm/pti: Force entry through trampoline when PTI active
>c0226c119bb4 x86/mm/pti: Add functions to clone kernel PMDs
>0de21941f44c x86/mm/pti: Populate user PGD
>dc46e9eafde8 x86/mm/pti: Allocate a separate user PGD
>a3293057588e x86/mm/pti: Allow NX poison to be set in p4d/pgd
>b51aa0399145 x86/mm/pti: Add mapping helper functions
>66d1447e7cd8 x86/pti: Add the pti= cmdline option and documentation
>399981179cc2 x86/mm/pti: Add infrastructure for page table isolation
>ff4703d2378d x86/mm/pti: Prepare the x86/entry assembly code for 
> entry/exit CR3 switching
>6eb83fa9c76d x86/mm/pti: Disable global pages if PAGE_TABLE_ISOLATION=y
>0cbc392772c6 x86/cpufeatures: Add X86_BUG_CPU_INSECURE
>bb426b09a2b3 nohz: Prevent a timer interrupt storm in 
> tick_nohz_stop_sched_tick()
>f8da34e6aea2 ring-buffer: Do no reuse reader page if still in use
>f56cc813891f ring-buffer: Mask out the info bits when returning buffer 
> page length
>99df0a6bd678 x86/cpu_entry_area: Prevent wraparound in 
> setup_cpu_entry_area_ptes() on 32bit
>dd6eac2b6f66 init: Invoke init_espfix_bsp() from mm_init()
>fc78bbdec893 x86/cpu_entry_area: Move it out of the fixmap
>b73f4c11bfb7 x86/cpu_entry_area: Move it to a separate unit
>90383f5be7ac x86/mm: Create asm/invpcid.h
>f7938aecc9e1 x86/mm: Put MMU to hardware ASID translation in one place
>21c7af3777f8 x86/mm: Remove hard-coded ASID limit checks
>546fe7d48686 x86/mm: Move the CR3 construction functions to tlbflush.h
>029ed77f57b6 x86/mm: Add comments to clarify which TLB-flush functions are 
> 

[OE-core] [PATCH 2/2] libsolv: upgrade to version 0.6.32

2018-02-19 Thread Maxin B. John
0.6.31 -> 0.6.32

Signed-off-by: Maxin B. John 
---
 meta/recipes-extended/libsolv/{libsolv_0.6.31.bb => libsolv_0.6.32.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-extended/libsolv/{libsolv_0.6.31.bb => libsolv_0.6.32.bb} 
(94%)

diff --git a/meta/recipes-extended/libsolv/libsolv_0.6.31.bb 
b/meta/recipes-extended/libsolv/libsolv_0.6.32.bb
similarity index 94%
rename from meta/recipes-extended/libsolv/libsolv_0.6.31.bb
rename to meta/recipes-extended/libsolv/libsolv_0.6.32.bb
index 96c366b..77481f6 100644
--- a/meta/recipes-extended/libsolv/libsolv_0.6.31.bb
+++ b/meta/recipes-extended/libsolv/libsolv_0.6.32.bb
@@ -13,7 +13,7 @@ SRC_URI_append_libc-musl = " 
file://0001-Add-fallback-fopencookie-implementation
  
file://0002-Fixes-to-internal-fopencookie-implementation.patch \
"
 
-SRCREV = "bef46d75f6d2537060114eea0f3a892e958ad5e0"
+SRCREV = "b8e6eda168f672949cc2fabf591897be7f3b4495"
 UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+(\.\d+)+)"
 
 S = "${WORKDIR}/git"
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 1/2] mmc-utils: Upgrade to latest revision

2018-02-19 Thread Maxin B. John
updates:

mmc-utils: manpage: fix arguments for TH macro
mmc-utils: remove unused #includes
mmc-utils: move offsetof from mmc.h to only user
mmc-utils: expand .gitignore
mmc-utils: make use of dependency information
mmc-utils: drop unused header
mmc-utils: drop macro CHECK

Signed-off-by: Maxin B. John 
---
 meta/recipes-devtools/mmc/mmc-utils_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/mmc/mmc-utils_git.bb 
b/meta/recipes-devtools/mmc/mmc-utils_git.bb
index efaabc1..8977a87 100644
--- a/meta/recipes-devtools/mmc/mmc-utils_git.bb
+++ b/meta/recipes-devtools/mmc/mmc-utils_git.bb
@@ -4,7 +4,7 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = 
"file://mmc.c;beginline=1;endline=20;md5=fae32792e20f4d27ade1c5a762d16b7d"
 
 SRCBRANCH ?= "master"
-SRCREV = "37c86e60c0442fef570b75cd81aeb1db4d0cbafd"
+SRCREV = "7bcad171173fd9a9401e7ce81906605bd6f4eddc"
 
 PV = "0.1"
 
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2][rocko] linux-yocto/4.12: update to v4.12.20

2018-02-19 Thread Bruce Ashfield
Updating to Paul Gortmaker's 4.12.20 release, which comprises
the following commits:

   26041ea62c10 Linux 4.12.20
   80da9fc42759 kvm: x86: fix RSM when PCID is non-zero
   94ff73e84af3 x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN
   1c6aaef6e08f x86/alternatives: Add missing '\n' at end of ALTERNATIVE inline 
asm
   a14ac5bc4953 x86/tlb: Drop the _GPL from the cpu_tlbstate export
   a95cc558c4ba x86/events/intel/ds: Use the proper cache flush method for 
mapping ds buffers
   e94e2440d266 x86/kaslr: Fix the vaddr_end mess
   ec2c4771ab78 x86/mm: Map cpu_entry_area at the same place on 4/5 level
   21390d1cf697 x86/mm: Set MODULES_END to 0xff00
   a657f6bde81f x86/process: Define cpu_tss_rw in same section as declaration
   f0ca9ecfacd8 x86/pti: Switch to kernel CR3 at early in entry_SYSCALL_compat()
   882c46ebc1eb x86/pti: Make sure the user/kernel PTEs match
   0920dd036f51 x86/cpu, x86/pti: Do not enable PTI on AMD processors
   2832199b24b5 x86/pti: Enable PTI by default
   abe84bdf0450 mm/mprotect: add a cond_resched() inside change_pmd_range()
   79c74e87dd70 kernel/acct.c: fix the acct->needcheck check in 
check_free_space()
   8097b1b3ed8e x86/espfix/64: Fix espfix double-fault handling on 5-level 
systems
   1a698b5094c6 x86/decoder: Fix and update the opcodes map
   3bc0a0230c85 x86/idt: Load idt early in start_secondary
   96523a6b3c9f x86/ldt: Make LDT pgtable free conditional
   0930c225b7fd x86/ldt: Plug memory leak in error path
   7b392c0fd57c x86/mm: Remove preempt_disable/enable() from 
__native_flush_tlb()
   a569be19aca4 x86/smpboot: Remove stale TLB flush invocations
   171c680cd430 x86/ldt: Make the LDT mapping RO
   b20a4e9c0824 x86/mm/dump_pagetables: Allow dumping current pagetables
   4cb373d5878c x86/mm/dump_pagetables: Check user space page table for WX pages
   419aaf9950b0 x86/mm/dump_pagetables: Add page table directory to the debugfs 
VFS hierarchy
   f2ea744855ef x86/mm/pti: Add Kconfig
   21ee6ef0b6da x86/dumpstack: Indicate in Oops whether PTI is configured and 
enabled
   4792df02eaa2 x86/mm: Clarify the whole ASID/kernel PCID/user PCID naming
   079aafe7e55e x86/mm: Use INVPCID for __native_flush_tlb_single()
   f82db33b19f6 x86/mm: Optimize RESTORE_CR3
   156823d62b52 x86/mm: Use/Fix PCID to optimize user/kernel switches
   3c6ddf8979d7 x86/mm: Abstract switching CR3
   842c1304aa61 x86/mm: Allow flushing for future ASID switches
   54ccd28274b7 x86/pti: Map the vsyscall page if needed
   05347c693d0a x86/pti: Put the LDT in its own PGD if PTI is on
   86aa46082664 x86/mm/64: Make a full PGD-entry size hole in the memory map
   bd91c7622d4b x86/events/intel/ds: Map debug buffers in cpu_entry_area
   f2a19cac5364 x86/cpu_entry_area: Add debugstore entries to cpu_entry_area
   788856fff986 x86/mm/pti: Map ESPFIX into user space
   2946dc511e38 x86/mm/pti: Share entry text PMD
   8f01f3ca70af x86/entry: Align entry text section to PMD boundary
   419ac1b145f8 x86/mm/pti: Share cpu_entry_area with user space page tables
   43ac2d12a830 x86/mm/pti: Force entry through trampoline when PTI active
   c0226c119bb4 x86/mm/pti: Add functions to clone kernel PMDs
   0de21941f44c x86/mm/pti: Populate user PGD
   dc46e9eafde8 x86/mm/pti: Allocate a separate user PGD
   a3293057588e x86/mm/pti: Allow NX poison to be set in p4d/pgd
   b51aa0399145 x86/mm/pti: Add mapping helper functions
   66d1447e7cd8 x86/pti: Add the pti= cmdline option and documentation
   399981179cc2 x86/mm/pti: Add infrastructure for page table isolation
   ff4703d2378d x86/mm/pti: Prepare the x86/entry assembly code for entry/exit 
CR3 switching
   6eb83fa9c76d x86/mm/pti: Disable global pages if PAGE_TABLE_ISOLATION=y
   0cbc392772c6 x86/cpufeatures: Add X86_BUG_CPU_INSECURE
   bb426b09a2b3 nohz: Prevent a timer interrupt storm in 
tick_nohz_stop_sched_tick()
   f8da34e6aea2 ring-buffer: Do no reuse reader page if still in use
   f56cc813891f ring-buffer: Mask out the info bits when returning buffer page 
length
   99df0a6bd678 x86/cpu_entry_area: Prevent wraparound in 
setup_cpu_entry_area_ptes() on 32bit
   dd6eac2b6f66 init: Invoke init_espfix_bsp() from mm_init()
   fc78bbdec893 x86/cpu_entry_area: Move it out of the fixmap
   b73f4c11bfb7 x86/cpu_entry_area: Move it to a separate unit
   90383f5be7ac x86/mm: Create asm/invpcid.h
   f7938aecc9e1 x86/mm: Put MMU to hardware ASID translation in one place
   21c7af3777f8 x86/mm: Remove hard-coded ASID limit checks
   546fe7d48686 x86/mm: Move the CR3 construction functions to tlbflush.h
   029ed77f57b6 x86/mm: Add comments to clarify which TLB-flush functions are 
supposed to flush what
   c786774ceccb x86/mm: Remove superfluous barriers
   f0c8c4bd2347 x86/mm: Use __flush_tlb_one() for kernel memory
   c1d18bf3f32b x86/microcode: Dont abuse the TLB-flush interface
   cba3ab6a6841 x86/uv: Use the right TLB-flush API
   8a7c2006beba x86/entry: Rename SYSENTER_stack to CPU_ENTRY_AREA_entry_stack
   d6a432d4d3a0 x86/doc: Remove obvious 

[OE-core] [PATCH v2] make-mod-scripts: change how some kernel module tools are built

2018-02-19 Thread Bruce Ashfield
From: Joe Slater 

Remove do_make_scripts() from module-base.bbclass and put
functionality in a recipe.  This will build the scripts only
once instead of each time an external module is built.

[YOCTO #12228]

Signed-off-by: Joe Slater 
Signed-off-by: Bruce Ashfield 
---

v2: added the LIC_FILES_CHECKSUM

 meta/classes/module-base.bbclass   | 12 +++---
 meta/classes/module.bbclass|  4 
 .../make-mod-scripts/make-mod-scripts_1.0.bb   | 26 ++
 3 files changed, 29 insertions(+), 13 deletions(-)
 create mode 100644 meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb

diff --git a/meta/classes/module-base.bbclass b/meta/classes/module-base.bbclass
index f851b851639a..27bd69ff33bf 100644
--- a/meta/classes/module-base.bbclass
+++ b/meta/classes/module-base.bbclass
@@ -1,7 +1,8 @@
 inherit kernel-arch
 
-# This is instead of DEPENDS = "virtual/kernel"
-do_configure[depends] += "virtual/kernel:do_compile_kernelmodules"
+# We do the dependency this way because the output is not preserved
+# in sstate, so we must force do_compile to run (once).
+do_configure[depends] += "make-mod-scripts:do_compile"
 
 export OS = "${TARGET_OS}"
 export CROSS_COMPILE = "${TARGET_PREFIX}"
@@ -18,10 +19,3 @@ KERNEL_OBJECT_SUFFIX = ".ko"
 # kernel modules are generally machine specific
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-# Function to ensure the kernel scripts are created. Expected to
-# be called before do_compile. See module.bbclass for an example.
-do_make_scripts() {
-   unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS 
-   make CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \
-  -C ${STAGING_KERNEL_DIR} O=${STAGING_KERNEL_BUILDDIR} scripts
-}
diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
index 78d1b21dbd83..e34496024434 100644
--- a/meta/classes/module.bbclass
+++ b/meta/classes/module.bbclass
@@ -1,9 +1,5 @@
 inherit module-base kernel-module-split pkgconfig
 
-addtask make_scripts after do_prepare_recipe_sysroot before do_configure
-do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
-do_make_scripts[depends] += "virtual/kernel:do_shared_workdir"
-
 EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}"
 
 MODULES_INSTALL_TARGET ?= "modules_install"
diff --git a/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb 
b/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
new file mode 100644
index ..845b409452dc
--- /dev/null
+++ b/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
@@ -0,0 +1,26 @@
+SUMMARY = "Build tools needed by external modules"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = 
"file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+inherit kernel-arch
+inherit pkgconfig
+
+S = "${WORKDIR}"
+
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+do_compile[depends] += "virtual/kernel:do_compile_kernelmodules"
+
+# Build some host tools under work-shared.  CC, LD, and AR are probably
+# not used, but this is the historical way of invoking "make scripts".
+#
+do_configure() {
+   unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+   make CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \
+  -C ${STAGING_KERNEL_DIR} O=${STAGING_KERNEL_BUILDDIR} scripts
+}
+
+
+# There is no reason to build this on its own.
+#
+EXCLUDE_FROM_WORLD = "1"
+
-- 
2.5.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2] linux-yocto/4.12: update to v4.12.20

2018-02-19 Thread Bruce Ashfield
Updating to Paul Gortmaker's 4.12.20 release, which comprises
the following commits:

   26041ea62c10 Linux 4.12.20
   80da9fc42759 kvm: x86: fix RSM when PCID is non-zero
   94ff73e84af3 x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN
   1c6aaef6e08f x86/alternatives: Add missing '\n' at end of ALTERNATIVE inline 
asm
   a14ac5bc4953 x86/tlb: Drop the _GPL from the cpu_tlbstate export
   a95cc558c4ba x86/events/intel/ds: Use the proper cache flush method for 
mapping ds buffers
   e94e2440d266 x86/kaslr: Fix the vaddr_end mess
   ec2c4771ab78 x86/mm: Map cpu_entry_area at the same place on 4/5 level
   21390d1cf697 x86/mm: Set MODULES_END to 0xff00
   a657f6bde81f x86/process: Define cpu_tss_rw in same section as declaration
   f0ca9ecfacd8 x86/pti: Switch to kernel CR3 at early in entry_SYSCALL_compat()
   882c46ebc1eb x86/pti: Make sure the user/kernel PTEs match
   0920dd036f51 x86/cpu, x86/pti: Do not enable PTI on AMD processors
   2832199b24b5 x86/pti: Enable PTI by default
   abe84bdf0450 mm/mprotect: add a cond_resched() inside change_pmd_range()
   79c74e87dd70 kernel/acct.c: fix the acct->needcheck check in 
check_free_space()
   8097b1b3ed8e x86/espfix/64: Fix espfix double-fault handling on 5-level 
systems
   1a698b5094c6 x86/decoder: Fix and update the opcodes map
   3bc0a0230c85 x86/idt: Load idt early in start_secondary
   96523a6b3c9f x86/ldt: Make LDT pgtable free conditional
   0930c225b7fd x86/ldt: Plug memory leak in error path
   7b392c0fd57c x86/mm: Remove preempt_disable/enable() from 
__native_flush_tlb()
   a569be19aca4 x86/smpboot: Remove stale TLB flush invocations
   171c680cd430 x86/ldt: Make the LDT mapping RO
   b20a4e9c0824 x86/mm/dump_pagetables: Allow dumping current pagetables
   4cb373d5878c x86/mm/dump_pagetables: Check user space page table for WX pages
   419aaf9950b0 x86/mm/dump_pagetables: Add page table directory to the debugfs 
VFS hierarchy
   f2ea744855ef x86/mm/pti: Add Kconfig
   21ee6ef0b6da x86/dumpstack: Indicate in Oops whether PTI is configured and 
enabled
   4792df02eaa2 x86/mm: Clarify the whole ASID/kernel PCID/user PCID naming
   079aafe7e55e x86/mm: Use INVPCID for __native_flush_tlb_single()
   f82db33b19f6 x86/mm: Optimize RESTORE_CR3
   156823d62b52 x86/mm: Use/Fix PCID to optimize user/kernel switches
   3c6ddf8979d7 x86/mm: Abstract switching CR3
   842c1304aa61 x86/mm: Allow flushing for future ASID switches
   54ccd28274b7 x86/pti: Map the vsyscall page if needed
   05347c693d0a x86/pti: Put the LDT in its own PGD if PTI is on
   86aa46082664 x86/mm/64: Make a full PGD-entry size hole in the memory map
   bd91c7622d4b x86/events/intel/ds: Map debug buffers in cpu_entry_area
   f2a19cac5364 x86/cpu_entry_area: Add debugstore entries to cpu_entry_area
   788856fff986 x86/mm/pti: Map ESPFIX into user space
   2946dc511e38 x86/mm/pti: Share entry text PMD
   8f01f3ca70af x86/entry: Align entry text section to PMD boundary
   419ac1b145f8 x86/mm/pti: Share cpu_entry_area with user space page tables
   43ac2d12a830 x86/mm/pti: Force entry through trampoline when PTI active
   c0226c119bb4 x86/mm/pti: Add functions to clone kernel PMDs
   0de21941f44c x86/mm/pti: Populate user PGD
   dc46e9eafde8 x86/mm/pti: Allocate a separate user PGD
   a3293057588e x86/mm/pti: Allow NX poison to be set in p4d/pgd
   b51aa0399145 x86/mm/pti: Add mapping helper functions
   66d1447e7cd8 x86/pti: Add the pti= cmdline option and documentation
   399981179cc2 x86/mm/pti: Add infrastructure for page table isolation
   ff4703d2378d x86/mm/pti: Prepare the x86/entry assembly code for entry/exit 
CR3 switching
   6eb83fa9c76d x86/mm/pti: Disable global pages if PAGE_TABLE_ISOLATION=y
   0cbc392772c6 x86/cpufeatures: Add X86_BUG_CPU_INSECURE
   bb426b09a2b3 nohz: Prevent a timer interrupt storm in 
tick_nohz_stop_sched_tick()
   f8da34e6aea2 ring-buffer: Do no reuse reader page if still in use
   f56cc813891f ring-buffer: Mask out the info bits when returning buffer page 
length
   99df0a6bd678 x86/cpu_entry_area: Prevent wraparound in 
setup_cpu_entry_area_ptes() on 32bit
   dd6eac2b6f66 init: Invoke init_espfix_bsp() from mm_init()
   fc78bbdec893 x86/cpu_entry_area: Move it out of the fixmap
   b73f4c11bfb7 x86/cpu_entry_area: Move it to a separate unit
   90383f5be7ac x86/mm: Create asm/invpcid.h
   f7938aecc9e1 x86/mm: Put MMU to hardware ASID translation in one place
   21c7af3777f8 x86/mm: Remove hard-coded ASID limit checks
   546fe7d48686 x86/mm: Move the CR3 construction functions to tlbflush.h
   029ed77f57b6 x86/mm: Add comments to clarify which TLB-flush functions are 
supposed to flush what
   c786774ceccb x86/mm: Remove superfluous barriers
   f0c8c4bd2347 x86/mm: Use __flush_tlb_one() for kernel memory
   c1d18bf3f32b x86/microcode: Dont abuse the TLB-flush interface
   cba3ab6a6841 x86/uv: Use the right TLB-flush API
   8a7c2006beba x86/entry: Rename SYSENTER_stack to CPU_ENTRY_AREA_entry_stack
   d6a432d4d3a0 x86/doc: Remove obvious 

Re: [OE-core] Missing git tags for latest Morty release?

2018-02-19 Thread Richard Purdie
On Mon, 2018-02-19 at 12:15 +, Mauno Niko wrote:
> Even  states "Current
> Version" is "2.2.3" for Codename Morty, associated "yocto-2.2.3",
> "morty-16.0.3" tags do not seem to exist, could someone please create
> those?

2.2.3 is actually undergoing QA testing at the moment and has not been
released yet but has been built. I suspect someone updated the wiki
prematurely.

Cheers,

Richard
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 0/1] cve-check-tool: correctly exported web proxies

2018-02-19 Thread Konstantin Shemyak
Commit 0466c81f has lost passing web proxies to the download process,
which makes whole CVE checking fail.
In turn, in cve-check.bbclass setting the proxies is not needed, as the
called process does not connect to the network.

Konstantin Shemyak (1):
  cve-check-tool: correctly exported proxies for updating the DB

 meta/classes/cve-check.bbclass   | 3 ---
 meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)

-- 
2.7.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH][rocko] linux-yocto/4.12: update to v4.12.20

2018-02-19 Thread Bruce Ashfield
On Sun, Feb 18, 2018 at 10:23 PM, akuster808  wrote:
> Bruce,
>
> Sorry, I just saw this one. it would not apply so I am hand applying it.
> Arm64 and PPC hash still did not change.
>
> I looked at
> http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-4.12/log/?h=standard/qemuarm64
> and its still on 4.12.19 and so is PPC. Check tiny too. Looks like .20
> was not propagated to those branches.

I'll send a v2 shortly.

I fixed a conflict in preemp-rt, and then didn't go back to complete
the standard/*
merges .. so I just re-ran my scripts and everything is up to date.

gmail threaded things terribly (again), so I can't easily see my [rocko] version
that I sent you .. but I'll re-send one to master and one to rocko shortly.

Bruce

>
> - armin
>
>
> On 02/18/2018 06:38 PM, Bruce Ashfield wrote:
>> Updating to Paul Gortmaker's 4.12.20 release, which comprises
>> the following commits:
>>
>>26041ea62c10 Linux 4.12.20
>>80da9fc42759 kvm: x86: fix RSM when PCID is non-zero
>>94ff73e84af3 x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN
>>1c6aaef6e08f x86/alternatives: Add missing '\n' at end of ALTERNATIVE 
>> inline asm
>>a14ac5bc4953 x86/tlb: Drop the _GPL from the cpu_tlbstate export
>>a95cc558c4ba x86/events/intel/ds: Use the proper cache flush method for 
>> mapping ds buffers
>>e94e2440d266 x86/kaslr: Fix the vaddr_end mess
>>ec2c4771ab78 x86/mm: Map cpu_entry_area at the same place on 4/5 level
>>21390d1cf697 x86/mm: Set MODULES_END to 0xff00
>>a657f6bde81f x86/process: Define cpu_tss_rw in same section as declaration
>>f0ca9ecfacd8 x86/pti: Switch to kernel CR3 at early in 
>> entry_SYSCALL_compat()
>>882c46ebc1eb x86/pti: Make sure the user/kernel PTEs match
>>0920dd036f51 x86/cpu, x86/pti: Do not enable PTI on AMD processors
>>2832199b24b5 x86/pti: Enable PTI by default
>>abe84bdf0450 mm/mprotect: add a cond_resched() inside change_pmd_range()
>>79c74e87dd70 kernel/acct.c: fix the acct->needcheck check in 
>> check_free_space()
>>8097b1b3ed8e x86/espfix/64: Fix espfix double-fault handling on 5-level 
>> systems
>>1a698b5094c6 x86/decoder: Fix and update the opcodes map
>>3bc0a0230c85 x86/idt: Load idt early in start_secondary
>>96523a6b3c9f x86/ldt: Make LDT pgtable free conditional
>>0930c225b7fd x86/ldt: Plug memory leak in error path
>>7b392c0fd57c x86/mm: Remove preempt_disable/enable() from 
>> __native_flush_tlb()
>>a569be19aca4 x86/smpboot: Remove stale TLB flush invocations
>>171c680cd430 x86/ldt: Make the LDT mapping RO
>>b20a4e9c0824 x86/mm/dump_pagetables: Allow dumping current pagetables
>>4cb373d5878c x86/mm/dump_pagetables: Check user space page table for WX 
>> pages
>>419aaf9950b0 x86/mm/dump_pagetables: Add page table directory to the 
>> debugfs VFS hierarchy
>>f2ea744855ef x86/mm/pti: Add Kconfig
>>21ee6ef0b6da x86/dumpstack: Indicate in Oops whether PTI is configured 
>> and enabled
>>4792df02eaa2 x86/mm: Clarify the whole ASID/kernel PCID/user PCID naming
>>079aafe7e55e x86/mm: Use INVPCID for __native_flush_tlb_single()
>>f82db33b19f6 x86/mm: Optimize RESTORE_CR3
>>156823d62b52 x86/mm: Use/Fix PCID to optimize user/kernel switches
>>3c6ddf8979d7 x86/mm: Abstract switching CR3
>>842c1304aa61 x86/mm: Allow flushing for future ASID switches
>>54ccd28274b7 x86/pti: Map the vsyscall page if needed
>>05347c693d0a x86/pti: Put the LDT in its own PGD if PTI is on
>>86aa46082664 x86/mm/64: Make a full PGD-entry size hole in the memory map
>>bd91c7622d4b x86/events/intel/ds: Map debug buffers in cpu_entry_area
>>f2a19cac5364 x86/cpu_entry_area: Add debugstore entries to cpu_entry_area
>>788856fff986 x86/mm/pti: Map ESPFIX into user space
>>2946dc511e38 x86/mm/pti: Share entry text PMD
>>8f01f3ca70af x86/entry: Align entry text section to PMD boundary
>>419ac1b145f8 x86/mm/pti: Share cpu_entry_area with user space page tables
>>43ac2d12a830 x86/mm/pti: Force entry through trampoline when PTI active
>>c0226c119bb4 x86/mm/pti: Add functions to clone kernel PMDs
>>0de21941f44c x86/mm/pti: Populate user PGD
>>dc46e9eafde8 x86/mm/pti: Allocate a separate user PGD
>>a3293057588e x86/mm/pti: Allow NX poison to be set in p4d/pgd
>>b51aa0399145 x86/mm/pti: Add mapping helper functions
>>66d1447e7cd8 x86/pti: Add the pti= cmdline option and documentation
>>399981179cc2 x86/mm/pti: Add infrastructure for page table isolation
>>ff4703d2378d x86/mm/pti: Prepare the x86/entry assembly code for 
>> entry/exit CR3 switching
>>6eb83fa9c76d x86/mm/pti: Disable global pages if PAGE_TABLE_ISOLATION=y
>>0cbc392772c6 x86/cpufeatures: Add X86_BUG_CPU_INSECURE
>>bb426b09a2b3 nohz: Prevent a timer interrupt storm in 
>> tick_nohz_stop_sched_tick()
>>f8da34e6aea2 ring-buffer: Do no reuse reader page if still in use
>>f56cc813891f ring-buffer: Mask 

[OE-core] [PATCH 1/1] cve-check-tool: correctly exported web proxies

2018-02-19 Thread Konstantin Shemyak
The binary 'cve-check-update' downloads the CVE database from the Internet.
If the system is behind a web proxy, the download fails, as proxy-related
variables are not exported.
In turn, 'cve-check-tool' does not connect to the network and correspondingly
does not need exported proxies.

Exported all proxy-related environment variables to 'cve-check-update' and
removed the unneeded export from 'cve-check-tool'.

Signed-off-by: Konstantin Shemyak 
---
 meta/classes/cve-check.bbclass   | 3 ---
 meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index d8087dd..537659d 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -184,9 +184,6 @@ def check_cves(d, patched_cves):
 bb.note("Recipe has been whitelisted, skipping check")
 return ([], [])
 
-# It is needed to export the proxies to download the database using HTTP
-bb.utils.export_proxies(d)
-
 try:
 # Write the faux CSV file to be used with cve-check-tool
 fd, faux = tempfile.mkstemp(prefix="cve-faux-")
diff --git a/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb 
b/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb
index 7b70daa..1c84fb1 100644
--- a/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb
+++ b/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb
@@ -41,6 +41,7 @@ do_populate_cve_db() {
 [ -z "${cve_dir}" ] && cve_dir="${DL_DIR}/CVE_CHECK"
 [ -z "${cve_file}" ] && cve_file="${TMPDIR}/cve_check"
 
+unused="${@bb.utils.export_proxies(d)}"
 bbdebug 2 "Updating cve-check-tool database located in $cve_dir"
 # --cacert works around curl-native not finding the CA bundle
 if cve-check-update --cacert ${sysconfdir}/ssl/certs/ca-certificates.crt 
-d "$cve_dir" ; then
-- 
2.7.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Missing git tags for latest Morty release?

2018-02-19 Thread Mauno Niko
Even  states "Current Version" is 
"2.2.3" for Codename Morty, associated "yocto-2.2.3", "morty-16.0.3" tags do 
not seem to exist, could someone please create those?
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] pseudo: update to latest master

2018-02-19 Thread Alexander Kanavin

On 02/18/2018 10:23 PM, Martin Jansa wrote:

==> update-rc.d/0.7-r5/pseudo/pseudo.log <==
debug_logfile: fd 2
pid 8488 [parent 8481], doing new pid setup and server start
Setup complete, sending SIGUSR1 to pid 8481.
tried to close client 0 (highest is 1)
tried to close client 0 (highest is 1)
PSEUDO_LOCALSTATEDIR=${PSEUDO_LOCALSTATEDIR} 
PSEUDO_PASSWD=${PSEUDO_PASSWD} PSEUDO_NOSYMLINKEXP=1 PSEUDO_DEBUG=4 
PSEUDO_DISABLED=0"


It might be there's an off by one error somewhere. Still, a mystery why 
an I not seeing this. Not sure how client ids are allocated.



Alex
--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] cve-check: put log in T so it doesn't get deleted by rm_work

2018-02-19 Thread Alexander Kanavin

Cheers, can you nevertheless post the missing patches here please?

Alex


On 02/18/2018 02:19 AM, Burton, Ross wrote:
Because I failed to post them to the list and Richard merged a chunk of 
MUT on my approval, forgetting that I hadn't posted them.  My mistake, 
apologies.


Ross

On 17 February 2018 at 14:38, Alexander Kanavin 
> wrote:


On 02/09/2018 01:09 AM, Ross Burton wrote:

This is where the other task logs go, so it's a sensible place
to put it.


There is a bunch of other cve-check related commits in master now
that were never posted here, why is that?

Alex




--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] pseudo: update to latest master

2018-02-19 Thread Alexander Kanavin

On 02/17/2018 10:17 PM, Seebs wrote:

For me, with epoll enabled:

b6a015a works
23f089f and 26e30fa both lock up


Huh. It's possible that the initial "don't try to close fd 0" was
correct, and the real problem is that the attempt is getting made
mistakenly. I'll study that more; the epoll code was a contribution and
I may not have fully understood it.


To be honest, it would have been better to apply my epoll patch as it 
is, and then do additional modifications as separate commits. That would 
make it simpler to isolate the issue. We've used my epoll patch for many 
months without problems on the autobuilder and elsewhere.


Alex
--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 00/27] replace freedesktop.org pkg-config with pkgconf

2018-02-19 Thread Alexander Kanavin

On 02/19/2018 10:36 AM, Maxin B. John wrote:

Reasons behind this patch set:

1. pkgconf is actively maintained
2. pkgconf has better cross-compiling support (According to the author of
pkgconf, it was created as he got tired of patching .pc files to add 
${pc_sysrootdir})
3. oe-core can drop a number of work-around patches that deals with pkg-config


Thanks! I too was getting tired of all those workaround patches.

pkg-config is still better than the too clever by half discovery macros 
of autoconf :)


Alex
--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 27/27] librsvg: unset PKG_CONFIG_SYSROOT_DIR for relative path

2018-02-19 Thread Maxin B. John
pkgconf needs to unset PKG_CONFIG_SYSROOT_DIR for relative path.

Signed-off-by: Maxin B. John 
---
 .../0001-configure.ac-fix-build-with-pkgconf.patch | 32 ++
 meta/recipes-gnome/librsvg/librsvg_2.40.20.bb  |  4 ++-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-gnome/librsvg/librsvg/0001-configure.ac-fix-build-with-pkgconf.patch

diff --git 
a/meta/recipes-gnome/librsvg/librsvg/0001-configure.ac-fix-build-with-pkgconf.patch
 
b/meta/recipes-gnome/librsvg/librsvg/0001-configure.ac-fix-build-with-pkgconf.patch
new file mode 100644
index 000..54c0e35
--- /dev/null
+++ 
b/meta/recipes-gnome/librsvg/librsvg/0001-configure.ac-fix-build-with-pkgconf.patch
@@ -0,0 +1,32 @@
+From 5935c18d1748f9b3324a4b13980df54d9a8c779f Mon Sep 17 00:00:00 2001
+From: "Maxin B. John" 
+Date: Sun, 18 Feb 2018 13:41:28 +0200
+Subject: [PATCH] configure.ac: fix build with pkgconf
+
+pkgconf requires to unset PKG_CONFIG_SYSROOT_DIR for relative path.
+
+Upstream-Status: Inappropriate [specific to pkgconf]
+
+Signed-off-by: Maxin B. John 
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 8852862..7151503 100644
+--- a/configure.ac
 b/configure.ac
+@@ -170,8 +170,8 @@ if test "$enable_pixbuf_loader" = "yes"; then
+ 
+   # First try the standalone gdk-pixbuf
+   gdk_pixbuf_binary_version="`$PKG_CONFIG 
--variable=gdk_pixbuf_binary_version gdk-pixbuf-2.0`"
+-  gdk_pixbuf_binarydir="`$PKG_CONFIG --variable=gdk_pixbuf_binarydir 
gdk-pixbuf-2.0`"
+-  gdk_pixbuf_moduledir=`$PKG_CONFIG --variable gdk_pixbuf_moduledir 
gdk-pixbuf-2.0`
++  gdk_pixbuf_binarydir="`unset PKG_CONFIG_SYSROOT_DIR; $PKG_CONFIG 
--variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0`"
++  gdk_pixbuf_moduledir=`unset PKG_CONFIG_SYSROOT_DIR; $PKG_CONFIG --variable 
gdk_pixbuf_moduledir gdk-pixbuf-2.0`
+   gdk_pixbuf_cache_file=`$PKG_CONFIG --variable gdk_pixbuf_cache_file 
gdk-pixbuf-2.0`
+ fi
+ 
+-- 
+2.4.0
+
diff --git a/meta/recipes-gnome/librsvg/librsvg_2.40.20.bb 
b/meta/recipes-gnome/librsvg/librsvg_2.40.20.bb
index cd44530..edd37c3 100644
--- a/meta/recipes-gnome/librsvg/librsvg_2.40.20.bb
+++ b/meta/recipes-gnome/librsvg/librsvg_2.40.20.bb
@@ -12,7 +12,9 @@ BBCLASSEXTEND = "native"
 
 inherit autotools pkgconfig gnomebase gtk-doc pixbufcache 
upstream-version-is-even gobject-introspection
 
-SRC_URI += "file://gtk-option.patch"
+SRC_URI += "file://gtk-option.patch \
+file://0001-configure.ac-fix-build-with-pkgconf.patch \
+   "
 
 SRC_URI[archive.md5sum] = "4949d313b0c5d9161a5c259104af5568"
 SRC_URI[archive.sha256sum] = 
"cff4dd3c3b78bfe99d8fcfad3b8ba1eee3289a0823c0e118d78106be6b84c92b"
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 26/27] btrfs-tools: unset PKG_CONFIG_SYSROOT_DIR for relative path

2018-02-19 Thread Maxin B. John
pkgconf needs to unset PKG_CONFIG_SYSROOT_DIR for relative path.

Signed-off-by: Maxin B. John 
---
 ...c-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch | 31 ++
 .../btrfs-tools/btrfs-tools_4.13.3.bb  |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 
meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch

diff --git 
a/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch
 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch
new file mode 100644
index 000..2fcee50
--- /dev/null
+++ 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch
@@ -0,0 +1,31 @@
+From 5aca78ff82a5f79ec33c4eda1e5d8c214ee14e65 Mon Sep 17 00:00:00 2001
+From: "Maxin B. John" 
+Date: Fri, 16 Feb 2018 09:44:48 +0200
+Subject: [PATCH] configure.ac: unset  PKG_CONFIG_SYSROOT_DIR for relative path
+
+pkgconf requires unsetting  PKG_CONFIG_SYSROOT_DIR to find the relative
+path.
+
+Upstream-Status: Inappropriate [specific to pkgconf]
+
+Signed-off-by: Maxin B. John 
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 290dc1d..305337d 100644
+--- a/configure.ac
 b/configure.ac
+@@ -204,7 +204,7 @@ AC_SUBST(BTRFSRESTORE_ZSTD)
+ # on earlier releases.
+ UDEVDIR=
+ if pkg-config udev --atleast-version 190; then
+-  UDEVDIR="$(pkg-config udev --variable=udevdir)"
++  UDEVDIR="'unset PKG_CONFIG_SYSROOT_DIR; $(pkg-config udev 
--variable=udevdir)'"
+ fi
+ AC_SUBST(UDEVDIR)
+ 
+-- 
+2.4.0
+
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.13.3.bb 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.13.3.bb
index 263fc65..8ec652f 100644
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.13.3.bb
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.13.3.bb
@@ -18,6 +18,7 @@ SRCREV = "a7a1ea0f4f2a1d6eeeb3d106e062c7f1034f16d4"
 SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git 
\
file://0001-Makefile-build-mktables-using-native-gcc.patch \

file://0001-Fix-build-with-musl-missing-header-include-for-dev_t.patch \
+   
file://0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch \
"
 
 inherit autotools-brokensep pkgconfig manpages
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 25/27] glib-networking: unset PKG_CONFIG_SYSROOT_DIR for relative path

2018-02-19 Thread Maxin B. John
pkgconf needs to unset PKG_CONFIG_SYSROOT_DIR for relative path.

Signed-off-by: Maxin B. John 
---
 ...c-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch | 31 ++
 .../glib-networking/glib-networking_2.54.1.bb  |  2 ++
 2 files changed, 33 insertions(+)
 create mode 100644 
meta/recipes-core/glib-networking/glib-networking/0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch

diff --git 
a/meta/recipes-core/glib-networking/glib-networking/0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch
 
b/meta/recipes-core/glib-networking/glib-networking/0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch
new file mode 100644
index 000..08879b9
--- /dev/null
+++ 
b/meta/recipes-core/glib-networking/glib-networking/0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch
@@ -0,0 +1,31 @@
+From f0fe611b1b24cbeafed380b1956ab21b09419c64 Mon Sep 17 00:00:00 2001
+From: "Maxin B. John" 
+Date: Fri, 16 Feb 2018 16:12:22 +0200
+Subject: [PATCH] configure.ac: unset PKG_CONFIG_SYSROOT_DIR for relative path
+
+pkgconf requires unsetting  PKG_CONFIG_SYSROOT_DIR to find
+the relative path of giomoduledir.
+
+Upstream-Status: Inappropriate [specific to pkgconf]
+
+Signed-off-by: Maxin B. John 
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index ddee2a7..e31f397 100644
+--- a/configure.ac
 b/configure.ac
+@@ -35,7 +35,7 @@ dnl *
+ AM_PATH_GLIB_2_0(2.46.0,,AC_MSG_ERROR(GLIB not found),gio)
+ GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_46"
+ 
+-GIO_MODULE_DIR=$($PKG_CONFIG --variable giomoduledir gio-2.0)
++GIO_MODULE_DIR=$(unset PKG_CONFIG_SYSROOT_DIR; $PKG_CONFIG --variable 
giomoduledir gio-2.0)
+ AS_IF([test "$GIO_MODULE_DIR" = ""],
+   [AC_MSG_FAILURE(GIO_MODULE_DIR is missing from gio-2.0.pc)])
+ AC_SUBST(GIO_MODULE_DIR)
+-- 
+2.4.0
+
diff --git a/meta/recipes-core/glib-networking/glib-networking_2.54.1.bb 
b/meta/recipes-core/glib-networking/glib-networking_2.54.1.bb
index 2a6f8af..c9dceae 100644
--- a/meta/recipes-core/glib-networking/glib-networking_2.54.1.bb
+++ b/meta/recipes-core/glib-networking/glib-networking_2.54.1.bb
@@ -9,6 +9,8 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2"
 SECTION = "libs"
 DEPENDS = "glib-2.0"
 
+SRC_URI_append = " 
file://0001-configure.ac-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch"
+
 SRC_URI[archive.md5sum] = "99867463f182c2767bce0c74bc9cc981"
 SRC_URI[archive.sha256sum] = 
"eaa787b653015a0de31c928e9a17eb57b4ce23c8cf6f277afaec0d685335012f"
 
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 19/27] connman: specify dbusconfdir

2018-02-19 Thread Maxin B. John
Explicitly specify the dbusconfdir.

Signed-off-by: Maxin B. John 
---
 meta/recipes-connectivity/connman/connman.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-connectivity/connman/connman.inc 
b/meta/recipes-connectivity/connman/connman.inc
index 2b03f9c..e2b5f47 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -28,6 +28,7 @@ EXTRA_OECONF += "\
 --enable-tools \
 --disable-polkit \
 --enable-client \
+--with-dbusconfdir=${sysconfdir} \
 "
 
 PACKAGECONFIG ??= "wispr \
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 18/27] ofono: specify dbusconfdir

2018-02-19 Thread Maxin B. John
Explicitly specify the dbusconfdir.

Signed-off-by: Maxin B. John 
---
 meta/recipes-connectivity/ofono/ofono.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/ofono/ofono.inc 
b/meta/recipes-connectivity/ofono/ofono.inc
index 0472414..dc6b0b8 100644
--- a/meta/recipes-connectivity/ofono/ofono.inc
+++ b/meta/recipes-connectivity/ofono/ofono.inc
@@ -19,7 +19,7 @@ PACKAGECONFIG ??= "\
 PACKAGECONFIG[systemd] = 
"--with-systemdunitdir=${systemd_unitdir}/system/,--with-systemdunitdir="
 PACKAGECONFIG[bluez] = "--enable-bluetooth, --disable-bluetooth, ${BLUEZ}"
 
-EXTRA_OECONF += "--enable-test"
+EXTRA_OECONF += "--enable-test --with-dbusconfdir=${sysconfdir}"
 
 SYSTEMD_SERVICE_${PN} = "ofono.service"
 
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 20/27] bluez5: specify udev, dbus and systemd configurations

2018-02-19 Thread Maxin B. John
configure udevdir, systemd-unitsdir and dbusconfdir.
Also provide a packageconfig for systemd.

Signed-off-by: Maxin B. John 
---
 meta/recipes-connectivity/bluez5/bluez5.inc | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc 
b/meta/recipes-connectivity/bluez5/bluez5.inc
index 2607a05..cf61a9e 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -27,7 +27,7 @@ PACKAGECONFIG[obex-profiles] = 
"--enable-obex,--disable-obex,libical"
 PACKAGECONFIG[readline] = "--enable-client,--disable-client,readline,"
 PACKAGECONFIG[testing] = "--enable-testing,--disable-testing"
 PACKAGECONFIG[midi] = "--enable-midi,--disable-midi,alsa-lib"
-PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd"
+PACKAGECONFIG[systemd] = "--enable-systemd 
--with-systemdsystemunitdir=${systemd_system_unitdir} 
--with-systemduserunitdir=${systemd_user_unitdir},--disable-systemd"
 PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,,cups"
 PACKAGECONFIG[nfc] = "--enable-nfc,--disable-nfc"
 PACKAGECONFIG[sap-profiles] = "--enable-sap,--disable-sap"
@@ -61,7 +61,11 @@ EXTRA_OECONF = "\
   --enable-test \
   --enable-datafiles \
   --enable-library \
-"
+  --with-udevdir=`unset PKG_CONFIG_SYSROOT_DIR;pkg-config --variable=udevdir 
udev` \
+  --with-dbusconfdir=${sysconfdir}/dbus-1/system.d \
+  --with-dbussessionbusdir=${datadir}/dbus-1/services/ \
+  --with-dbussystembusdir=${datadir}/dbus-1/system-services/ \
+  "
 
 # bluez5 builds a large number of useful utilities but does not
 # install them.  Specify which ones we want put into ${PN}-noinst-tools.
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 22/27] xf86-input-mouse: fix header-file installation path

2018-02-19 Thread Maxin B. John
Fix the header-file installation paths of xf86-input-mouse.
This was caused by the change of pkg-config provider to pkgconf.

Signed-off-by: Maxin B. John 
---
 meta/recipes-graphics/xorg-driver/xf86-input-mouse_1.9.2.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-mouse_1.9.2.bb 
b/meta/recipes-graphics/xorg-driver/xf86-input-mouse_1.9.2.bb
index 0750476..2945eb0 100644
--- a/meta/recipes-graphics/xorg-driver/xf86-input-mouse_1.9.2.bb
+++ b/meta/recipes-graphics/xorg-driver/xf86-input-mouse_1.9.2.bb
@@ -12,3 +12,5 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=90ea9f90d72b6d9327dede5ffdb2a510"
 
 SRC_URI[md5sum] = "ce2d679283a22c8e0dccdd9248594845"
 SRC_URI[sha256sum] = 
"f425d5b05c6ab412a27e0a1106bb83f9e2662b307210abbe48270892387f4b2f"
+
+EXTRA_OECONF += "--with-sdkdir=${includedir}/xorg"
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 23/27] xf86-input-libinput: fix header-file installation path

2018-02-19 Thread Maxin B. John
Fix the header-file installation path (sdkdir) of xf86-input-libinput.
This was caused by the change of pkg-config provider to pkgconf.

Signed-off-by: Maxin B. John 
---
 meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.26.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.26.0.bb 
b/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.26.0.bb
index 54c33d7..edc9037 100644
--- a/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.26.0.bb
+++ b/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.26.0.bb
@@ -9,3 +9,5 @@ SRC_URI[md5sum] = "da47ef62eab1d0e922a8fa929ff81758"
 SRC_URI[sha256sum] = 
"abca558fc2226f295691f1cf3412d4c0edeaa439f677ca25b5c9fab310d2387b"
 
 FILES_${PN} += "${datadir}/X11/xorg.conf.d"
+
+EXTRA_OECONF += "--with-sdkdir=${includedir}/xorg"
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 17/27] alsa-utils: fix udev path for pkgconf

2018-02-19 Thread Maxin B. John
Here we need udev path to be relative, inside the sysroot.
Unset PKG_CONFIG_SYSROOT_DIR to fix it.

Signed-off-by: Maxin B. John 
---
 meta/recipes-multimedia/alsa/alsa-utils_1.1.5.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-multimedia/alsa/alsa-utils_1.1.5.bb 
b/meta/recipes-multimedia/alsa/alsa-utils_1.1.5.bb
index f2231f3..1ee5285 100644
--- a/meta/recipes-multimedia/alsa/alsa-utils_1.1.5.bb
+++ b/meta/recipes-multimedia/alsa/alsa-utils_1.1.5.bb
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
 
file://alsactl/utils.c;beginline=1;endline=20;md5=fe9526b055e246b5558809a5ae25c0b9"
 DEPENDS = "alsa-lib ncurses libsamplerate0"
 
-PACKAGECONFIG ??= "udev"
+PACKAGECONFIG ??= "udev ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
 
 # alsabat can be built also without fftw support (with reduced functionality).
 # It would be better to always enable alsabat, but provide an option for
@@ -16,8 +16,9 @@ PACKAGECONFIG ??= "udev"
 # or no alsabat at all.
 PACKAGECONFIG[bat] = "--enable-bat,--disable-bat,fftwf"
 
-PACKAGECONFIG[udev] = "--with-udev-rules-dir=`pkg-config --variable=udevdir 
udev`/rules.d,,udev"
+PACKAGECONFIG[udev] = "--with-udev-rules-dir=`unset PKG_CONFIG_SYSROOT_DIR; 
pkg-config --variable=udevdir udev`/rules.d,,udev"
 PACKAGECONFIG[manpages] = "--enable-xmlto, --disable-xmlto, xmlto-native 
docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
+PACKAGECONFIG[systemd] = 
"--with-systemdsystemunitdir=${systemd_unitdir}/system/,,systemd"
 
 SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \

file://0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch \
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 24/27] xf86-input-evdev: fix header-file installation path

2018-02-19 Thread Maxin B. John
Fix the header-file installation path (sdkdir) of xf86-input-evdev.
This was caused by the change of pkg-config provider to pkgconf.

Signed-off-by: Maxin B. John 
---
 meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.10.5.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.10.5.bb 
b/meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.10.5.bb
index 96b220c..eaa7507 100644
--- a/meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.10.5.bb
+++ b/meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.10.5.bb
@@ -19,3 +19,4 @@ DEPENDS += "mtdev libevdev"
 SRC_URI[md5sum] = "94c2c8354c74ab1cfbbb0a222078b9c6"
 SRC_URI[sha256sum] = 
"9edaa6205baf6d2922cc4db3d8e54a7e7773b5f733b0ae90f6be7725f983b70d"
 
+EXTRA_OECONF += "--with-sdkdir=${includedir}/xorg"
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 21/27] xf86-input-synaptics: fix installation paths

2018-02-19 Thread Maxin B. John
Fix the installations paths of xf86-input-synaptics.
This was caused by the change of pkg-config provider to pkgconf.

Signed-off-by: Maxin B. John 
---
 meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.9.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.9.0.bb 
b/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.9.0.bb
index d327a3b..35dbe50 100644
--- a/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.9.0.bb
+++ b/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.9.0.bb
@@ -14,3 +14,5 @@ SRC_URI[md5sum] = "58e5b7722a402114093bf193962d1e3a"
 SRC_URI[sha256sum] = 
"afba3289d7a40217a19d90db98ce181772f9ca6d77e1898727b0afcf02073b5a"
 
 DEPENDS += "libxi mtdev libxtst libevdev"
+
+EXTRA_OECONF += "--with-sdkdir=${includedir}/xorg 
--with-xorg-conf-dir=${datadir}/X11/xorg.conf.d"
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 15/27] libinput: fix udev path for pkgconf

2018-02-19 Thread Maxin B. John
Here we need udev path to be relative, inside the sysroot.
Unset PKG_CONFIG_SYSROOT_DIR to fix it.

Signed-off-by: Maxin B. John 
---
 meta/recipes-graphics/wayland/libinput_1.9.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/wayland/libinput_1.9.4.bb 
b/meta/recipes-graphics/wayland/libinput_1.9.4.bb
index 67a49df..32b98ab 100644
--- a/meta/recipes-graphics/wayland/libinput_1.9.4.bb
+++ b/meta/recipes-graphics/wayland/libinput_1.9.4.bb
@@ -19,7 +19,7 @@ PACKAGECONFIG ??= ""
 PACKAGECONFIG[libwacom] = "-Dlibwacom=true,-Dlibwacom=false,libwacom"
 PACKAGECONFIG[gui] = "-Ddebug-gui=true,-Ddebug-gui=false,cairo gtk+3"
 
-UDEVDIR = "`pkg-config --variable=udevdir udev`"
+UDEVDIR = "`unset PKG_CONFIG_SYSROOT_DIR; pkg-config --variable=udevdir udev`"
 
 EXTRA_OEMESON += "-Dudev-dir=${UDEVDIR} -Ddocumentation=false -Dtests=false"
 
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 16/27] pulseaudio: fix udev path for pkgconf

2018-02-19 Thread Maxin B. John
Here we need udev path to be relative, inside the sysroot.
Unset PKG_CONFIG_SYSROOT_DIR to fix it.

Signed-off-by: Maxin B. John 
---
 meta/recipes-multimedia/pulseaudio/pulseaudio.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc 
b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
index 8189a56..821a12d 100644
--- a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
+++ b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
@@ -80,7 +80,7 @@ EXTRA_OECONF = "\
--disable-openssl \
--with-database=simple \
--without-zsh-completion-dir \
-   --with-udev-rules-dir=`pkg-config --variable=udevdir 
udev`/rules.d \
+   --with-udev-rules-dir=`unset PKG_CONFIG_SYSROOT_DIR;pkg-config 
--variable=udevdir udev`/rules.d \
 ac_cv_header_valgrind_memcheck_h=no \
 --disable-tests \
 "
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 14/27] systemd: define bashcompletiondir

2018-02-19 Thread Maxin B. John
After moving to pkgconf, systemd package qa test fails without it.

Signed-off-by: Maxin B. John 
---
 meta/recipes-core/systemd/systemd_234.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/systemd/systemd_234.bb 
b/meta/recipes-core/systemd/systemd_234.bb
index d12e94f..217922c 100644
--- a/meta/recipes-core/systemd/systemd_234.bb
+++ b/meta/recipes-core/systemd/systemd_234.bb
@@ -185,6 +185,7 @@ EXTRA_OECONF = " \
 --with-rootprefix=${rootprefix} \
 --with-sysvrcnd-path=${sysconfdir} \
 --with-firmware-path=${nonarch_base_libdir}/firmware \
+--with-bashcompletiondir=${datadir}/bash-completion \
 "
 
 # per the systemd README, define VALGRIND=1 to run under valgrind
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 13/27] util-linux: define bashcompletiondir

2018-02-19 Thread Maxin B. John
After moving to pkgconf, util-linux package qa test fails without it.

Signed-off-by: Maxin B. John 
---
 meta/recipes-core/util-linux/util-linux.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/util-linux/util-linux.inc 
b/meta/recipes-core/util-linux/util-linux.inc
index 248e8be..0104ca1 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -50,6 +50,7 @@ SHARED_EXTRA_OECONF = "--disable-use-tty-group \
--enable-libuuid --enable-libblkid --enable-fsck \
--disable-minix --disable-bfs --without-udev \
usrsbin_execdir='${sbindir}' \
+   --with-bashcompletiondir='${datadir}/bash-completion/' \
 "
 
 EXTRA_OECONF = "${SHARED_EXTRA_OECONF} --libdir=${base_libdir}"
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 12/27] kmod: define bashcompletiondir

2018-02-19 Thread Maxin B. John
After moving to pkgconf, kmod package qa test fails without it.

Signed-off-by: Maxin B. John 
---
 meta/recipes-kernel/kmod/kmod_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-kernel/kmod/kmod_git.bb 
b/meta/recipes-kernel/kmod/kmod_git.bb
index 69185b2..251681f 100644
--- a/meta/recipes-kernel/kmod/kmod_git.bb
+++ b/meta/recipes-kernel/kmod/kmod_git.bb
@@ -17,6 +17,8 @@ bindir = "${base_bindir}"
 sbindir = "${base_sbindir}"
 # libdir = "${base_libdir}"
 
+EXTRA_OECONF = "--with-bashcompletiondir='${datadir}/bash-completion/'"
+
 do_install_append () {
 install -dm755 ${D}${base_bindir}
 install -dm755 ${D}${base_sbindir}
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 09/27] libdnf: remove PKG_CONFIG_SYSROOT_DIR work-around

2018-02-19 Thread Maxin B. John
We are moving from freedesktop.org's pkg-config to pkgconf.
This helps us to remove the following patch as PKG_CONFIG_SYSROOT_DIR
behaves consistently with pkgconf:

 1) 0002-Prefix-sysroot-path-to-introspection-tools-path.patch

Signed-off-by: Maxin B. John 
---
 ...-sysroot-path-to-introspection-tools-path.patch | 36 --
 meta/recipes-devtools/libdnf/libdnf_0.11.1.bb  |  1 -
 2 files changed, 37 deletions(-)
 delete mode 100644 
meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch

diff --git 
a/meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch
 
b/meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch
deleted file mode 100644
index 7eecc3d..000
--- 
a/meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From c8211ad99ccaa4af4a75e0ba639527267fcfd69e Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Fri, 30 Dec 2016 18:17:19 +0200
-Subject: [PATCH 2/4] Prefix sysroot path to introspection tools path.
-
-Upstream-Status: Submitted 
[https://github.com/rpm-software-management/libdnf/pull/312]
-Signed-off-by: Alexander Kanavin 

- libdnf/CMakeLists.txt | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/libdnf/CMakeLists.txt b/libdnf/CMakeLists.txt
-index 63f07bf..837792b 100644
 a/libdnf/CMakeLists.txt
-+++ b/libdnf/CMakeLists.txt
-@@ -133,7 +133,7 @@ if (GOBJECT_INTROSPECTION_FOUND)
- set(GIR_TYPELIB "${GIR_PREFIX}.typelib")
- 
- add_custom_command(OUTPUT ${GIR_XML}
--COMMAND env CFLAGS=${CMAKE_C_FLAGS} 
${GOBJECT_INTROSPECTION_1.0_G_IR_SCANNER}
-+COMMAND env CFLAGS=${CMAKE_C_FLAGS} 
$ENV{PKG_CONFIG_SYSROOT_DIR}${GOBJECT_INTROSPECTION_1.0_G_IR_SCANNER}
- --namespace=Dnf
- --nsversion=${DNF_SO_VERSION}.0
- --library-path=${CMAKE_CURRENT_BINARY_DIR}
-@@ -153,7 +153,7 @@ if (GOBJECT_INTROSPECTION_FOUND)
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
- 
- add_custom_command(OUTPUT ${GIR_TYPELIB}
--COMMAND ${GOBJECT_INTROSPECTION_1.0_G_IR_COMPILER}
-+COMMAND 
$ENV{PKG_CONFIG_SYSROOT_DIR}${GOBJECT_INTROSPECTION_1.0_G_IR_COMPILER}
- -o ${GIR_TYPELIB}
- ${GIR_XML}
- DEPENDS ${GIR_XML}
--- 
-2.11.0
-
diff --git a/meta/recipes-devtools/libdnf/libdnf_0.11.1.bb 
b/meta/recipes-devtools/libdnf/libdnf_0.11.1.bb
index 4fc1d6d..a79fcdf 100644
--- a/meta/recipes-devtools/libdnf/libdnf_0.11.1.bb
+++ b/meta/recipes-devtools/libdnf/libdnf_0.11.1.bb
@@ -4,7 +4,6 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
 SRC_URI = "git://github.com/rpm-software-management/libdnf \

file://0001-FindGtkDoc.cmake-drop-the-requirement-for-GTKDOC_SCA.patch \
-   file://0002-Prefix-sysroot-path-to-introspection-tools-path.patch \
file://0003-Set-the-library-installation-directory-correctly.patch \

file://0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch \

file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 06/27] gstreamer1.0-plugins-base: remove PKG_CONFIG_SYSROOT_DIR work-around

2018-02-19 Thread Maxin B. John
We are moving from freedesktop.org's pkg-config to pkgconf.
This enables us to remove the following patch as PKG_CONFIG_SYSROOT_DIR
behaves consistently with pkgconf:

1) 0002-Makefile.am-prefix-calls-to-pkg-config-with-PKG_CONF.patch

Signed-off-by: Maxin B. John 
---
 .../gstreamer/gstreamer1.0-plugins-base.inc|   1 -
 ...-prefix-calls-to-pkg-config-with-PKG_CONF.patch | 298 -
 2 files changed, 299 deletions(-)
 delete mode 100644 
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-Makefile.am-prefix-calls-to-pkg-config-with-PKG_CONF.patch

diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base.inc 
b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base.inc
index 08130c1..0d0a83b 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base.inc
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base.inc
@@ -2,7 +2,6 @@ require gstreamer1.0-plugins.inc
 
 SRC_URI_append = "\
 file://0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch \
-file://0002-Makefile.am-prefix-calls-to-pkg-config-with-PKG_CONF.patch \
 file://0003-riff-add-missing-include-directories-when-calling-in.patch \
 file://0004-rtsp-drop-incorrect-reference-to-gstreamer-sdp-in-Ma.patch \
 "
diff --git 
a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-Makefile.am-prefix-calls-to-pkg-config-with-PKG_CONF.patch
 
b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-Makefile.am-prefix-calls-to-pkg-config-with-PKG_CONF.patch
deleted file mode 100644
index 0a8bc9b..000
--- 
a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-Makefile.am-prefix-calls-to-pkg-config-with-PKG_CONF.patch
+++ /dev/null
@@ -1,298 +0,0 @@
-From 990b653c7b6de1937ec759019982d6c5f15770f7 Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Mon, 26 Oct 2015 16:38:18 +0200
-Subject: [PATCH 2/4] Makefile.am: prefix calls to pkg-config with
- PKG_CONFIG_SYSROOT_DIR
-
-Upstream-Status: Pending [review on oe-core maillist]
-Signed-off-by: Alexander Kanavin 

- gst-libs/gst/allocators/Makefile.am |  4 ++--
- gst-libs/gst/app/Makefile.am|  4 ++--
- gst-libs/gst/audio/Makefile.am  | 12 ++--
- gst-libs/gst/fft/Makefile.am|  4 ++--
- gst-libs/gst/pbutils/Makefile.am| 12 ++--
- gst-libs/gst/riff/Makefile.am   |  8 
- gst-libs/gst/rtp/Makefile.am|  8 
- gst-libs/gst/rtsp/Makefile.am   |  4 ++--
- gst-libs/gst/sdp/Makefile.am|  4 ++--
- gst-libs/gst/tag/Makefile.am|  8 
- gst-libs/gst/video/Makefile.am  |  8 
- 11 files changed, 38 insertions(+), 38 deletions(-)
-
-diff --git a/gst-libs/gst/allocators/Makefile.am 
b/gst-libs/gst/allocators/Makefile.am
-index bc7f53a..0ef5f86 100644
 a/gst-libs/gst/allocators/Makefile.am
-+++ b/gst-libs/gst/allocators/Makefile.am
-@@ -35,7 +35,7 @@ GstAllocators-@GST_API_VERSION@.gir: 
$(INTROSPECTION_SCANNER) libgstallocators-@
-   --c-include "gst/allocators/allocators.h" \
-   -I$(top_srcdir)/gst-libs \
-   -I$(top_builddir)/gst-libs \
--  --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" 
$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
-+  
--add-include-path=$(PKG_CONFIG_SYSROOT_DIR)`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)"
 $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
-   --library=libgstallocators-@GST_API_VERSION@.la \
-   --include=Gst-@GST_API_VERSION@ \
-   --libtool="$(LIBTOOL)" \
-@@ -59,7 +59,7 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
-   $(INTROSPECTION_COMPILER) \
-   --includedir=$(srcdir) \
-   --includedir=$(builddir) \
--  --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" 
$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
-+  
--includedir=$(PKG_CONFIG_SYSROOT_DIR)`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" 
$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
-   $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
- 
- CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
-diff --git a/gst-libs/gst/app/Makefile.am b/gst-libs/gst/app/Makefile.am
-index dcc2fe0..dc076cb 100644
 a/gst-libs/gst/app/Makefile.am
-+++ b/gst-libs/gst/app/Makefile.am
-@@ -48,8 +48,8 @@ GstApp-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) 
libgstapp-@GST_API_VERSIO
-   --c-include "gst/app/app.h" \
-   -I$(top_srcdir)/gst-libs \
-   -I$(top_builddir)/gst-libs \
--  --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" 
$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
--  --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" 
$(PKG_CONFIG) --variable=girdir 

[OE-core] [PATCH 10/27] vala: remove PKG_CONFIG_SYSROOT_DIR work-around

2018-02-19 Thread Maxin B. John
We are moving from freedesktop.org's pkg-config to pkgconf.
This helps us to remove the following patch as PKG_CONFIG_SYSROOT_DIR
behaves consistently with pkgconf:

1) 0001-vapigen.m4-use-PKG_CONFIG_SYSROOT_DIR.patch

Signed-off-by: Maxin B. John 
---
 ...001-vapigen.m4-use-PKG_CONFIG_SYSROOT_DIR.patch | 38 --
 meta/recipes-devtools/vala/vala_0.38.6.bb  |  1 -
 2 files changed, 39 deletions(-)
 delete mode 100644 
meta/recipes-devtools/vala/vala/0001-vapigen.m4-use-PKG_CONFIG_SYSROOT_DIR.patch

diff --git 
a/meta/recipes-devtools/vala/vala/0001-vapigen.m4-use-PKG_CONFIG_SYSROOT_DIR.patch
 
b/meta/recipes-devtools/vala/vala/0001-vapigen.m4-use-PKG_CONFIG_SYSROOT_DIR.patch
deleted file mode 100644
index ecab0fc..000
--- 
a/meta/recipes-devtools/vala/vala/0001-vapigen.m4-use-PKG_CONFIG_SYSROOT_DIR.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From dbb1c58e86f2af4613f3ac9571d9b163d4bca675 Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Fri, 23 Oct 2015 16:13:54 +0300
-Subject: [PATCH] vapigen.m4: use $PKG_CONFIG_SYSROOT_DIR
-
-This is necessary in cross-compiling environments, where directories
-returned by pkg-config should be prefixed with sysroot location.
-
-Upstream-Status: Pending [review in oe-core list]
-Signed-off-by: Alexander Kanavin 

- vapigen/vapigen.m4 | 8 
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/vapigen/vapigen.m4 b/vapigen/vapigen.m4
-index 2c435e7..6228991 100644
 a/vapigen/vapigen.m4
-+++ b/vapigen/vapigen.m4
-@@ -82,12 +82,12 @@ AC_DEFUN([VAPIGEN_CHECK],
- 
-   AS_CASE([$enable_vala],
- [yes], [
--  VAPIGEN=`$PKG_CONFIG --variable=vapigen $vapigen_pkg_name`
--  VAPIGEN_MAKEFILE=`$PKG_CONFIG --variable=datadir 
$vapigen_pkg_name`/vala/Makefile.vapigen
-+  VAPIGEN=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=vapigen 
$vapigen_pkg_name`
-+  VAPIGEN_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir 
$vapigen_pkg_name`/vala/Makefile.vapigen
-   AS_IF([test "x$2" = "x"], [
--  VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir $vapigen_pkg_name`
-+  VAPIGEN_VAPIDIR=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG 
--variable=vapidir $vapigen_pkg_name`
- ], [
--  VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned 
$vapigen_pkg_name`
-+  VAPIGEN_VAPIDIR=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG 
--variable=vapidir_versioned $vapigen_pkg_name`
- ])
- ])
- 
--- 
-2.1.4
-
diff --git a/meta/recipes-devtools/vala/vala_0.38.6.bb 
b/meta/recipes-devtools/vala/vala_0.38.6.bb
index b0b8e00..f1a2a51 100644
--- a/meta/recipes-devtools/vala/vala_0.38.6.bb
+++ b/meta/recipes-devtools/vala/vala_0.38.6.bb
@@ -1,7 +1,6 @@
 require ${BPN}.inc
 
 SRC_URI += " 
file://0001-git-version-gen-don-t-append-dirty-if-we-re-not-in-g.patch \
- file://0001-vapigen.m4-use-PKG_CONFIG_SYSROOT_DIR.patch \
 file://disable-graphviz.patch \
 file://0001-Disable-valadoc.patch \
 "
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 08/27] meson: remove PKG_CONFIG_SYSROOT_DIR work-around

2018-02-19 Thread Maxin B. John
We are moving from freedesktop.org's pkg-config to pkgconf.
This helps us to update the following patch as PKG_CONFIG_SYSROOT_DIR
behaves consistently with pkgconf:

1) 0002-gobject-introspection-determine-g-ir-scanner-and-g-i.patch

Signed-off-by: Maxin B. John 
---
 .../0002-gobject-introspection-determine-g-ir-scanner-and-g-i.patch   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/meta/recipes-devtools/meson/meson/0002-gobject-introspection-determine-g-ir-scanner-and-g-i.patch
 
b/meta/recipes-devtools/meson/meson/0002-gobject-introspection-determine-g-ir-scanner-and-g-i.patch
index ded42d1..440f637 100644
--- 
a/meta/recipes-devtools/meson/meson/0002-gobject-introspection-determine-g-ir-scanner-and-g-i.patch
+++ 
b/meta/recipes-devtools/meson/meson/0002-gobject-introspection-determine-g-ir-scanner-and-g-i.patch
@@ -32,8 +32,8 @@ index 4f7fe30..9610cf6 100644
  self.gir_dep = 
PkgConfigDependency('gobject-introspection-1.0',
 state.environment,
 {'native': True})
-+giscanner = os.environ['PKG_CONFIG_SYSROOT_DIR'] + 
self.gir_dep.get_pkgconfig_variable('g_ir_scanner', {})
-+gicompiler = os.environ['PKG_CONFIG_SYSROOT_DIR'] + 
self.gir_dep.get_pkgconfig_variable('g_ir_compiler', {})
++giscanner =  self.gir_dep.get_pkgconfig_variable('g_ir_scanner', 
{})
++gicompiler = self.gir_dep.get_pkgconfig_variable('g_ir_compiler', 
{})
  pkgargs = self.gir_dep.get_compile_args()
  except Exception:
  raise MesonException('gobject-introspection dependency was not 
found, gir cannot be generated.')
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 11/27] gobject-introspection: remove PKG_CONFIG_SYSROOT_DIR work-around

2018-02-19 Thread Maxin B. John
We are moving from freedesktop.org's pkg-config to pkgconf.
This helps us to remove the following patch as PKG_CONFIG_SYSROOT_DIR
behaves consistently with pkgconf:

1) 0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch

Signed-off-by: Maxin B. John 
---
 ...config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch | 96 --
 .../gobject-introspection_1.54.1.bb|  1 -
 2 files changed, 97 deletions(-)
 delete mode 100644 
meta/recipes-gnome/gobject-introspection/gobject-introspection/0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch

diff --git 
a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch
 
b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch
deleted file mode 100644
index 47a18ec..000
--- 
a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch
+++ /dev/null
@@ -1,96 +0,0 @@
-From e08b3677dd04d6ec407ba8f74f601b2d51310eff Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Thu, 8 Oct 2015 18:30:35 +0300
-Subject: [PATCH 5/5] Prefix pkg-config paths with PKG_CONFIG_SYSROOT_DIR
- environment variable
-
-This environment variable sets the location of sysroot directory in 
cross-compilation
-environments; if the variable is not set, the prefix will be empty.
-
-Upstream-Status: Pending [review on oe-core list]
-Signed-off-by: Alexander Kanavin 

- Makefile-gir.am | 18 +-
- m4/introspection.m4 |  8 
- 2 files changed, 13 insertions(+), 13 deletions(-)
-
-diff --git a/Makefile-gir.am b/Makefile-gir.am
-index a09260a..ba6e89e 100644
 a/Makefile-gir.am
-+++ b/Makefile-gir.am
-@@ -55,8 +55,8 @@ else
- endif
- 
- # glib
--GLIB_INCLUDEDIR=$(shell "${PKG_CONFIG}" --variable=includedir 
glib-2.0)/glib-2.0
--GLIB_LIBDIR=$(shell "${PKG_CONFIG}" --variable=libdir glib-2.0)
-+GLIB_INCLUDEDIR=$(PKG_CONFIG_SYSROOT_DIR)$(shell "${PKG_CONFIG}" 
--variable=includedir glib-2.0)/glib-2.0
-+GLIB_LIBDIR=$(PKG_CONFIG_SYSROOT_DIR)$(shell "${PKG_CONFIG}" 
--variable=libdir glib-2.0)
- 
- GLIB_LIBRARY=glib-2.0
- 
-@@ -92,8 +92,8 @@ GLib-2.0.gir: g-ir-scanner g-ir-compiler$(EXEEXT)
- gir/DBusGLib-1.0.typelib: GObject-2.0.gir
- 
- # gobject
--GOBJECT_INCLUDEDIR=$(shell "${PKG_CONFIG}" --variable=includedir 
gobject-2.0)/glib-2.0
--GOBJECT_LIBDIR=$(shell "${PKG_CONFIG}" --variable=libdir gobject-2.0)
-+GOBJECT_INCLUDEDIR=$(PKG_CONFIG_SYSROOT_DIR)$(shell "${PKG_CONFIG}" 
--variable=includedir gobject-2.0)/glib-2.0
-+GOBJECT_LIBDIR=$(PKG_CONFIG_SYSROOT_DIR)$(shell "${PKG_CONFIG}" 
--variable=libdir gobject-2.0)
- 
- GOBJECT_LIBRARY=gobject-2.0
- 
-@@ -120,8 +120,8 @@ GObject_2_0_gir_FILES = \
- BUILT_GIRSOURCES += GObject-2.0.gir
- 
- # gmodule
--GMODULE_INCLUDEDIR=$(shell "${PKG_CONFIG}" --variable=includedir 
gmodule-2.0)/glib-2.0
--GMODULE_LIBDIR=$(shell "${PKG_CONFIG}" --variable=libdir gmodule-2.0)
-+GMODULE_INCLUDEDIR=$(PKG_CONFIG_SYSROOT_DIR)$(shell "${PKG_CONFIG}" 
--variable=includedir gmodule-2.0)/glib-2.0
-+GMODULE_LIBDIR=$(PKG_CONFIG_SYSROOT_DIR)$(shell "${PKG_CONFIG}" 
--variable=libdir gmodule-2.0)
- 
- GMODULE_LIBRARY=gmodule-2.0
- 
-@@ -146,13 +146,13 @@ GModule_2_0_gir_FILES = $(GLIB_INCLUDEDIR)/gmodule.h \
- BUILT_GIRSOURCES += GModule-2.0.gir
- 
- # gio
--GIO_INCLUDEDIR=$(shell "${PKG_CONFIG}" --variable=includedir gio-2.0)/glib-2.0
--GIO_LIBDIR=$(shell "${PKG_CONFIG}" --variable=libdir gio-2.0)
-+GIO_INCLUDEDIR=$(PKG_CONFIG_SYSROOT_DIR)$(shell "${PKG_CONFIG}" 
--variable=includedir gio-2.0)/glib-2.0
-+GIO_LIBDIR=$(PKG_CONFIG_SYSROOT_DIR)$(shell "${PKG_CONFIG}" --variable=libdir 
gio-2.0)
- 
- GIO_LIBRARY=gio-2.0
- 
- if HAVE_GIO_UNIX
--GIO_UNIX_INCLUDEDIR = $(shell "${PKG_CONFIG}" --variable=includedir 
gio-unix-2.0)/gio-unix-2.0
-+GIO_UNIX_INCLUDEDIR = $(PKG_CONFIG_SYSROOT_DIR)$(shell "${PKG_CONFIG}" 
--variable=includedir gio-unix-2.0)/gio-unix-2.0
- GIO_UNIX_HDRS = $(GIO_UNIX_INCLUDEDIR)/gio/*.h
- GIO_UNIX_PACKAGES = gio-unix-2.0
- else
-diff --git a/m4/introspection.m4 b/m4/introspection.m4
-index d89c3d9..b562266 100644
 a/m4/introspection.m4
-+++ b/m4/introspection.m4
-@@ -56,14 +56,14 @@ m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
- INTROSPECTION_GIRDIR=
- INTROSPECTION_TYPELIBDIR=
- if test "x$found_introspection" = "xyes"; then
--   INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner 
gobject-introspection-1.0`
--   INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler 
gobject-introspection-1.0`
--   INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate 
gobject-introspection-1.0`
-+   INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG 
--variable=g_ir_scanner gobject-introspection-1.0`
-+   

[OE-core] [PATCH 04/27] webkitgtk: remove PKG_CONFIG_SYSROOT_DIR work-around

2018-02-19 Thread Maxin B. John
We are moving from freedesktop.org's pkg-config to pkgconf. This enables
us to remove the following patch as PKG_CONFIG_SYSROOT_DIR behaves
consistently with pkgconf:

1. 0001-FindGObjectIntrospection.cmake-prefix-variables-obta.patch

Signed-off-by: Maxin B. John 
---
 ...Introspection.cmake-prefix-variables-obta.patch | 27 --
 meta/recipes-sato/webkit/webkitgtk_2.18.6.bb   |  1 -
 2 files changed, 28 deletions(-)
 delete mode 100644 
meta/recipes-sato/webkit/webkitgtk/0001-FindGObjectIntrospection.cmake-prefix-variables-obta.patch

diff --git 
a/meta/recipes-sato/webkit/webkitgtk/0001-FindGObjectIntrospection.cmake-prefix-variables-obta.patch
 
b/meta/recipes-sato/webkit/webkitgtk/0001-FindGObjectIntrospection.cmake-prefix-variables-obta.patch
deleted file mode 100644
index fae3b0b..000
--- 
a/meta/recipes-sato/webkit/webkitgtk/0001-FindGObjectIntrospection.cmake-prefix-variables-obta.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 317a5ac120c44987219bc03486cd2f2d1842c9b9 Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Tue, 27 Oct 2015 16:02:19 +0200
-Subject: [PATCH] FindGObjectIntrospection.cmake: prefix variables obtained
- from pkg-config with PKG_CONFIG_SYSROOT_DIR
-
-Upstream-Status: Pending [review on oe-core list]
-Signed-off-by: Alexander Kanavin 

- Source/cmake/FindGObjectIntrospection.cmake | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/Source/cmake/FindGObjectIntrospection.cmake 
b/Source/cmake/FindGObjectIntrospection.cmake
-index e1f49b4..03a4446 100644
 a/Source/cmake/FindGObjectIntrospection.cmake
-+++ b/Source/cmake/FindGObjectIntrospection.cmake
-@@ -26,6 +26,7 @@ macro(_GIR_GET_PKGCONFIG_VAR _outvar _varname _extra_args)
- else ()
- string(REGEX REPLACE "[\r\n]" " " _result "${_result}")
- string(REGEX REPLACE " +$" ""  _result "${_result}")
-+string(CONCAT _result $ENV{PKG_CONFIG_SYSROOT_DIR} "${_result}")
- separate_arguments(_result)
- set(${_outvar} ${_result} CACHE INTERNAL "")
- endif ()
--- 
-2.1.4
-
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.18.6.bb 
b/meta/recipes-sato/webkit/webkitgtk_2.18.6.bb
index ff0ff8f..f88306c 100644
--- a/meta/recipes-sato/webkit/webkitgtk_2.18.6.bb
+++ b/meta/recipes-sato/webkit/webkitgtk_2.18.6.bb
@@ -10,7 +10,6 @@ LIC_FILES_CHKSUM = 
"file://Source/JavaScriptCore/COPYING.LIB;md5=d0c6d6397a5d842
   "
 
 SRC_URI = "http://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \
-   
file://0001-FindGObjectIntrospection.cmake-prefix-variables-obta.patch \

file://0001-When-building-introspection-files-add-CMAKE_C_FLAGS-.patch \

file://0001-OptionsGTK.cmake-drop-the-hardcoded-introspection-gt.patch \
file://0001-Fix-racy-parallel-build-of-WebKit2-4.0.gir.patch \
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 05/27] gstreamer1.0: remove PKG_CONFIG_SYSROOT_DIR work-around

2018-02-19 Thread Maxin B. John
We are moving from freedesktop.org's pkg-config to pkgconf.
This enables us to remove the following patch as PKG_CONFIG_SYSROOT_DIR
behaves consistently with pkgconf:

1) 0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch

Signed-off-by: Maxin B. John 
---
 ...on.m4-prefix-pkgconfig-paths-with-PKG_CON.patch | 42 --
 .../gstreamer/gstreamer1.0-plugins-bad_1.12.4.bb   |  1 -
 .../gstreamer/gstreamer1.0-plugins-base_1.12.4.bb  |  1 -
 .../gstreamer/gstreamer1.0-plugins-good_1.12.4.bb  |  1 -
 .../gstreamer/gstreamer1.0-plugins-ugly_1.12.4.bb  |  1 -
 .../gstreamer/gstreamer1.0-rtsp-server.inc |  1 -
 meta/recipes-multimedia/gstreamer/gstreamer1.0.inc |  1 -
 7 files changed, 48 deletions(-)
 delete mode 100644 
meta/recipes-multimedia/gstreamer/files/0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch

diff --git 
a/meta/recipes-multimedia/gstreamer/files/0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch
 
b/meta/recipes-multimedia/gstreamer/files/0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch
deleted file mode 100644
index 2cab87f..000
--- 
a/meta/recipes-multimedia/gstreamer/files/0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 90916f96262fa7b27a0a99788c69f9fd6df11000 Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Tue, 24 Nov 2015 16:46:27 +0200
-Subject: [PATCH] introspection.m4: prefix pkgconfig paths with
- PKG_CONFIG_SYSROOT_DIR
-
-We can't use our tweaked introspection.m4 from gobject-introspection tarball
-because gstreamer also defines INTROSPECTION_INIT in its introspection.m4, 
which
-is later supplied to g-ir-scanner.
-
-Upstream-Status: Pending [review on oe-core list]
-Signed-off-by: Alexander Kanavin 

- common/m4/introspection.m4 | 12 ++--
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/common/m4/introspection.m4 b/common/m4/introspection.m4
-index 162be57..217a6ae 100644
 a/common/m4/introspection.m4
-+++ b/common/m4/introspection.m4
-@@ -54,14 +54,14 @@ m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
- INTROSPECTION_GIRDIR=
- INTROSPECTION_TYPELIBDIR=
- if test "x$found_introspection" = "xyes"; then
--   INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner 
gobject-introspection-1.0`
--   INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler 
gobject-introspection-1.0`
--   INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate 
gobject-introspection-1.0`
-+   INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG 
--variable=g_ir_scanner gobject-introspection-1.0`
-+   INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG 
--variable=g_ir_compiler gobject-introspection-1.0`
-+   INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG 
--variable=g_ir_generate gobject-introspection-1.0`
-INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir 
gobject-introspection-1.0`
-INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir 
gobject-introspection-1.0)"
-INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
-INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
--   INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir 
gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
-+   INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG 
--variable=datadir 
gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
-INTROSPECTION_INIT="extern void gst_init(gint*,gchar**); 
gst_init(NULL,NULL);"
- fi
- AC_SUBST(INTROSPECTION_SCANNER)
--- 
-2.6.2
-
diff --git 
a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.4.bb 
b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.4.bb
index 82c7ffc..f341d3e 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.4.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.4.bb
@@ -11,7 +11,6 @@ SRC_URI = " \
 file://ensure-valid-sentinels-for-gst_structure_get-etc.patch \
 file://0001-gstreamer-gl.pc.in-don-t-append-GL_CFLAGS-to-CFLAGS.patch \
 file://0009-glimagesink-Downrank-to-marginal.patch \
-file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch \
 file://link-with-libvchostif.patch \
 file://0001-vkdisplay-Use-ifdef-for-platform-specific-defines.patch \
 file://0002-vulkan-Use-the-generated-version-of-vkconfig.h.patch \
diff --git 
a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.4.bb 
b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.4.bb
index dd895bb..84f6292 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.4.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.4.bb
@@ -10,7 +10,6 @@ SRC_URI = " \
 

[OE-core] [PATCH 07/27] libxcb: remove PKG_CONFIG_SYSROOT_DIR work-around

2018-02-19 Thread Maxin B. John
We are moving from freedesktop.org's pkg-config to pkgconf.
This enables us to remove the following patch as PKG_CONFIG_SYSROOT_DIR
behaves consistently with pkgconf:

1) xcbincludedir.patch

Signed-off-by: Maxin B. John 
---
 .../xorg-lib/libxcb/xcbincludedir.patch| 28 --
 meta/recipes-graphics/xorg-lib/libxcb_1.12.bb  |  1 -
 2 files changed, 29 deletions(-)
 delete mode 100644 meta/recipes-graphics/xorg-lib/libxcb/xcbincludedir.patch

diff --git a/meta/recipes-graphics/xorg-lib/libxcb/xcbincludedir.patch 
b/meta/recipes-graphics/xorg-lib/libxcb/xcbincludedir.patch
deleted file mode 100644
index 46297c3..000
--- a/meta/recipes-graphics/xorg-lib/libxcb/xcbincludedir.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-As pkg-config --variable doesn't respect the sysroot, add the pkg-config 
sysroot
-to the beginning of variables that are used later on the host.
-
-Upstream-Status: Pending
-Signed-off-by: Ross Burton 
-
-diff --git a/configure.ac b/configure.ac
-index 94da4f7..d29cd6a 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -64,7 +64,7 @@ AC_SUBST(NEEDED)
- 
- # Find the xcb-proto protocol descriptions
- AC_MSG_CHECKING(XCBPROTO_XCBINCLUDEDIR)
--XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
-+XCBPROTO_XCBINCLUDEDIR=$PKG_CONFIG_SYSROOT_DIR/`$PKG_CONFIG 
--variable=xcbincludedir xcb-proto`
- AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR)
- AC_SUBST(XCBPROTO_XCBINCLUDEDIR)
- 
-@@ -74,7 +74,7 @@ AC_SUBST(XCBPROTO_VERSION)
- 
- # Find the xcbgen Python package
- AC_MSG_CHECKING(XCBPROTO_XCBPYTHONDIR)
--XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
-+XCBPROTO_XCBPYTHONDIR=$PKG_CONFIG_SYSROOT_DIR/`$PKG_CONFIG 
--variable=pythondir xcb-proto`
- AC_MSG_RESULT($XCBPROTO_XCBPYTHONDIR)
- AC_SUBST(XCBPROTO_XCBPYTHONDIR)
- 
diff --git a/meta/recipes-graphics/xorg-lib/libxcb_1.12.bb 
b/meta/recipes-graphics/xorg-lib/libxcb_1.12.bb
index a38bdea..e1c461e 100644
--- a/meta/recipes-graphics/xorg-lib/libxcb_1.12.bb
+++ b/meta/recipes-graphics/xorg-lib/libxcb_1.12.bb
@@ -10,7 +10,6 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d763b081cb10c223435b01e00dc0aba7"
 
 SRC_URI = "http://xcb.freedesktop.org/dist/libxcb-${PV}.tar.bz2 \
-   file://xcbincludedir.patch \
file://disable-check.patch \
file://gcc-mips-pr68302-mips-workaround.patch \
file://Fix-inconsistent-use-of-tabs-vs.-space.patch \
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 01/27] pkgconf: upgrade to version 1.4.2

2018-02-19 Thread Maxin B. John
pkgconf improved compatibility with freedesktop.org pkg-config.
So, we don't need to unset PKG_CONFIG_SYSROOT_DIR in wrappers.

Signed-off-by: Maxin B. John 
---
 meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in | 4 +---
 meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in   | 1 -
 meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper | 9 -
 .../pkgconf/{pkgconf_1.4.0.bb => pkgconf_1.4.2.bb}   | 4 ++--
 4 files changed, 3 insertions(+), 15 deletions(-)
 rename meta/recipes-devtools/pkgconf/{pkgconf_1.4.0.bb => pkgconf_1.4.2.bb} 
(95%)

diff --git a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in 
b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in
index 4fc9b0a..d4ac71d 100644
--- a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in
+++ b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in
@@ -5,7 +5,6 @@
 if [ "pkg-config-native" = "`basename $0`" ] ; then
PKG_CONFIG_PATH="@PATH_NATIVE@"
PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@"
-   unset PKG_CONFIG_SYSROOT_DIR
 else
# in this case check if we are in the esdk
if [ "$OE_SKIP_SDK_CHECK" = "1" ] ; then
@@ -16,9 +15,8 @@ else
if ( echo $parentpid_info | grep -q check-lxdialog ) ; then
PKG_CONFIG_PATH="@PATH_NATIVE@"
PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@"
-   unset PKG_CONFIG_SYSROOT_DIR
fi
fi
 fi
 
-pkg-config.real "$@"
+pkg-config "$@"
diff --git a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in 
b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in
index 9ed30a0..c2e86e5 100644
--- a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in
+++ b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in
@@ -1,6 +1,5 @@
 #! /bin/sh
 
 PKG_CONFIG_PATH="@PATH_NATIVE@"
-unset PKG_CONFIG_SYSROOT_DIR
 
 pkg-config "$@"
diff --git a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper 
b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper
index 695f349..fc9b488 100755
--- a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper
+++ b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper
@@ -4,13 +4,4 @@
 # Copyright (C) 2015 Christopher Larson 
 # License: MIT (see COPYING.MIT at the root of the repository for terms)
 
-for arg; do
-case "$arg" in
---variable|--variable=*)
-# pkg-config doesn't sysroot-prefix user variables
-unset PKG_CONFIG_SYSROOT_DIR
-;;
-esac
-done
-
 exec pkgconf "$@"
diff --git a/meta/recipes-devtools/pkgconf/pkgconf_1.4.0.bb 
b/meta/recipes-devtools/pkgconf/pkgconf_1.4.2.bb
similarity index 95%
rename from meta/recipes-devtools/pkgconf/pkgconf_1.4.0.bb
rename to meta/recipes-devtools/pkgconf/pkgconf_1.4.2.bb
index 48ba598..ea7b666 100644
--- a/meta/recipes-devtools/pkgconf/pkgconf_1.4.0.bb
+++ b/meta/recipes-devtools/pkgconf/pkgconf_1.4.2.bb
@@ -21,8 +21,8 @@ SRC_URI = "\
 file://pkg-config-native.in \
 file://pkg-config-esdk.in \
 "
-SRC_URI[md5sum] = "c509c0dad5a70aa4bc3210557b7eafce"
-SRC_URI[sha256sum] = 
"1d112ff35dad516ffbfbdb013df3a035140618fe7632ec44ffa894a9c713301b"
+SRC_URI[md5sum] = "678d242b4eef1754bba6a58642af10bb"
+SRC_URI[sha256sum] = 
"bab39371d4ab972be1d539a8b10b6cc21f8eafc97f617102e667e82bd32eb234"
 
 inherit autotools update-alternatives
 
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 02/27] default-providers.inc: set pkgconf as default pkg-config provider

2018-02-19 Thread Maxin B. John
Move from freedesktop.org's pkg-config to pkgconf

Signed-off-by: Maxin B. John 
---
 meta/conf/distro/include/default-providers.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/conf/distro/include/default-providers.inc 
b/meta/conf/distro/include/default-providers.inc
index e65c1ed..95a7dfc 100644
--- a/meta/conf/distro/include/default-providers.inc
+++ b/meta/conf/distro/include/default-providers.inc
@@ -50,7 +50,7 @@ PREFERRED_PROVIDER_getopt ?= "util-linux-getopt"
 PREFERRED_PROVIDER_openssl ?= "openssl"
 PREFERRED_PROVIDER_openssl-native ?= "openssl-native"
 PREFERRED_PROVIDER_nativesdk-openssl ?= "nativesdk-openssl"
-PREFERRED_PROVIDER_pkgconfig ?= "pkgconfig"
-PREFERRED_PROVIDER_nativesdk-pkgconfig ?= "nativesdk-pkgconfig"
-PREFERRED_PROVIDER_pkgconfig-native ?= "pkgconfig-native"
+PREFERRED_PROVIDER_pkgconfig ?= "pkgconf"
+PREFERRED_PROVIDER_nativesdk-pkgconfig ?= "nativesdk-pkgconf"
+PREFERRED_PROVIDER_pkgconfig-native ?= "pkgconf-native"
 PREFERRED_RPROVIDER_initd-functions ?= "initscripts"
-- 
2.4.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 03/27] pkgconfig: remove from oe-core

2018-02-19 Thread Maxin B. John
Move freedesktop.org's pkg-config as we are replacing it with pkgconf

Signed-off-by: Maxin B. John 
---
 ...t.m4-Update-AM_GLIB_GNU_GETTEXT-to-match-.patch | 41 
 .../fix-glib-configure-libtool-usage.patch | 45 -
 .../pkgconfig/pkgconfig/pkg-config-esdk.in | 24 ---
 .../pkgconfig/pkgconfig/pkg-config-native.in   |  7 ---
 meta/recipes-devtools/pkgconfig/pkgconfig_git.bb   | 73 --
 5 files changed, 190 deletions(-)
 delete mode 100644 
meta/recipes-devtools/pkgconfig/pkgconfig/0001-glib-gettext.m4-Update-AM_GLIB_GNU_GETTEXT-to-match-.patch
 delete mode 100644 
meta/recipes-devtools/pkgconfig/pkgconfig/fix-glib-configure-libtool-usage.patch
 delete mode 100644 meta/recipes-devtools/pkgconfig/pkgconfig/pkg-config-esdk.in
 delete mode 100644 
meta/recipes-devtools/pkgconfig/pkgconfig/pkg-config-native.in
 delete mode 100644 meta/recipes-devtools/pkgconfig/pkgconfig_git.bb

diff --git 
a/meta/recipes-devtools/pkgconfig/pkgconfig/0001-glib-gettext.m4-Update-AM_GLIB_GNU_GETTEXT-to-match-.patch
 
b/meta/recipes-devtools/pkgconfig/pkgconfig/0001-glib-gettext.m4-Update-AM_GLIB_GNU_GETTEXT-to-match-.patch
deleted file mode 100644
index 80310cd..000
--- 
a/meta/recipes-devtools/pkgconfig/pkgconfig/0001-glib-gettext.m4-Update-AM_GLIB_GNU_GETTEXT-to-match-.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From e404e27de77d8b993c4cc87013d707200b3a5547 Mon Sep 17 00:00:00 2001
-From: Jussi Kukkonen 
-Date: Tue, 17 May 2016 13:26:27 +0300
-Subject: [PATCH] glib-gettext.m4: Update AM_GLIB_GNU_GETTEXT to match glib
-
-This avoids
-  error: m4_copy: won't overwrite defined macro: glib_DEFUN
-
-Signed-off-by: Jussi Kukkonen 
-Upstream-Status: Pending
-

- glib/m4macros/glib-gettext.m4 | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/glib/m4macros/glib-gettext.m4 b/glib/m4macros/glib-gettext.m4
-index 5217fd8..155b1d8 100644
 a/glib/m4macros/glib-gettext.m4
-+++ b/glib/m4macros/glib-gettext.m4
-@@ -313,7 +313,7 @@ msgstr ""
- # on various variables needed by the Makefile.in.in installed by 
- # glib-gettextize.
- dnl
--glib_DEFUN([GLIB_GNU_GETTEXT],
-+AU_DEFUN([GLIB_GNU_GETTEXT],
-   [AC_REQUIRE([AC_PROG_CC])dnl
-
-GLIB_LC_MESSAGES
-@@ -383,7 +383,8 @@ glib_DEFUN([GLIB_GNU_GETTEXT],
-rm -f po/POTFILES
-sed -e "/^#/d" -e "/^\$/d" -e "s,.*,   $posrcprefix& ," -e 
"\$s/\(.*\) /\1/" \
-   < $srcdir/po/POTFILES.in > po/POTFILES
--  ])
-+  ],
-+  [[$0: This macro is deprecated. You should use upstream gettext instead.]])
- 
- # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
- # ---
--- 
-2.1.4
-
diff --git 
a/meta/recipes-devtools/pkgconfig/pkgconfig/fix-glib-configure-libtool-usage.patch
 
b/meta/recipes-devtools/pkgconfig/pkgconfig/fix-glib-configure-libtool-usage.patch
deleted file mode 100644
index 01c6247..000
--- 
a/meta/recipes-devtools/pkgconfig/pkgconfig/fix-glib-configure-libtool-usage.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-
-Upstream-Status: Inappropriate [embedded specific]
-
-Signed-off-by: Saul Wold 
-
-
-Index: pkg-config-0.28/glib/configure.ac
-===
 pkg-config-0.28.orig/glib/configure.ac
-+++ pkg-config-0.28/glib/configure.ac
-@@ -1438,7 +1438,7 @@ if test x"$glib_native_win32" = xyes; th
-   G_MODULE_LDFLAGS=
- else
-   export SED
--  G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo 
\\$export_dynamic_flag_spec) | sh`
-+  G_MODULE_LDFLAGS=`(./${host_alias}-libtool --config; echo eval echo 
\\$export_dynamic_flag_spec) | sh`
- fi
- dnl G_MODULE_IMPL= don't reset, so cmd-line can override
- G_MODULE_NEED_USCORE=0
-@@ -1503,13 +1503,13 @@ if test "$G_MODULE_IMPL" = "G_MODULE_IMP
-   LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
- dnl *** check for OSF1/5.0 RTLD_GLOBAL brokenness
-   echo "void glib_plugin_test(void) { }" > plugin.c
--  ${SHELL} ./libtool --mode=compile --tag=CC ${CC} ${CFLAGS} \
-+  ${SHELL} ./${host_alias}-libtool --mode=compile --tag=CC ${CC} 
${CFLAGS} \
-   ${CPPFLAGS} -c -o plugin.lo plugin.c >/dev/null 2>&1
--  ${SHELL} ./libtool --mode=link --tag=CC ${CC} ${CFLAGS} \
-+  ${SHELL} ./${host_alias}-libtool --mode=link --tag=CC ${CC} ${CFLAGS} \
-   ${LDFLAGS} -module -o plugin.la -export-dynamic \
-   -shrext ".o" -avoid-version plugin.lo \
-   -rpath /dont/care >/dev/null 2>&1
--  eval `./libtool --config | grep ^objdir`
-+  eval `./${host_alias}-libtool --config | grep ^objdir`
-   AC_CACHE_CHECK([for RTLD_GLOBAL brokenness],
-   glib_cv_rtldglobal_broken,[
-   AC_TRY_RUN([
-@@ -1582,7 +1582,7 @@ fi
- 
- AC_MSG_CHECKING(for the suffix of module shared libraries)
- export SED
--shrext_cmds=`./libtool --config | grep '^shrext_cmds='`
-+shrext_cmds=`./${host_alias}-libtool --config | grep 

[OE-core] [PATCH 00/27] replace freedesktop.org pkg-config with pkgconf

2018-02-19 Thread Maxin B. John
Reasons behind this patch set:

1. pkgconf is actively maintained
2. pkgconf has better cross-compiling support (According to the author of
pkgconf, it was created as he got tired of patching .pc files to add 
${pc_sysrootdir})
3. oe-core can drop a number of work-around patches that deals with pkg-config

pkgconf and freedesktop.org pkg-config intentionally have different behaviour
for cross-compile. So, when we use paths relative to inside the sysroot for
installation, pkgconf could break build.

example scenario where pkgconf could break build:

UDEVDIR := $(shell $(PKG_CONFIG) --variable=udevdir udev 2>/dev/null)
$(INSTALL) -D -m 644 test.rules $(DESTDIR)$(UDEVDIR)/rules.d/test.rules

here, freedesktop.org pkg-config, UDEVDIR can be:
"/usr/lib/udev"
For pkgconf, UDEVDIR can be:
"/tmp/work/i586-poky-linux/bluez5/5.48-r0/recipe-sysroot/lib/udev"

The right thing (TM) to do in this situation is to provide a
configuration option to override those paths. Otherwise, we can
prepend "unset PKG_CONFIG_SYSROOT_DIR" or "PKG_CONFIG_SYSROOT_DIR='/'"
to get the relative path.

We could move the freedesktop.org pkg-config recipe to meta-oe.

[YOCTO #11308]

Maxin B. John (27):
  pkgconf: upgrade to version 1.4.2
  default-providers.inc: set pkgconf as default pkg-config provider
  pkgconfig: remove from oe-core
  webkitgtk: remove PKG_CONFIG_SYSROOT_DIR work-around
  gstreamer1.0: remove PKG_CONFIG_SYSROOT_DIR work-around
  gstreamer1.0-plugins-base: remove PKG_CONFIG_SYSROOT_DIR work-around
  libxcb: remove PKG_CONFIG_SYSROOT_DIR work-around
  meson: remove PKG_CONFIG_SYSROOT_DIR work-around
  libdnf: remove PKG_CONFIG_SYSROOT_DIR work-around
  vala: remove PKG_CONFIG_SYSROOT_DIR work-around
  gobject-introspection: remove PKG_CONFIG_SYSROOT_DIR work-around
  kmod: define bashcompletiondir
  util-linux: define bashcompletiondir
  systemd: define bashcompletiondir
  libinput: fix udev path for pkgconf
  pulseaudio: fix udev path for pkgconf
  alsa-utils: fix udev path for pkgconf
  ofono: specify dbusconfdir
  connman: specify dbusconfdir
  bluez5: specify udev, dbus and systemd configurations
  xf86-input-synaptics: fix installation paths
  xf86-input-mouse: fix header-file installation path
  xf86-input-libinput: fix header-file installation path
  xf86-input-evdev: fix header-file installation path
  glib-networking: unset PKG_CONFIG_SYSROOT_DIR for relative path
  btrfs-tools: unset PKG_CONFIG_SYSROOT_DIR for relative path
  librsvg: unset PKG_CONFIG_SYSROOT_DIR for relative path

 meta/conf/distro/include/default-providers.inc |   6 +-
 meta/recipes-connectivity/bluez5/bluez5.inc|   8 +-
 meta/recipes-connectivity/connman/connman.inc  |   1 +
 meta/recipes-connectivity/ofono/ofono.inc  |   2 +-
 ...c-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch |  31 +++
 .../glib-networking/glib-networking_2.54.1.bb  |   2 +
 meta/recipes-core/systemd/systemd_234.bb   |   1 +
 meta/recipes-core/util-linux/util-linux.inc|   1 +
 ...c-unset-PKG_CONFIG_SYSROOT_DIR-for-relati.patch |  31 +++
 .../btrfs-tools/btrfs-tools_4.13.3.bb  |   1 +
 ...-sysroot-path-to-introspection-tools-path.patch |  36 ---
 meta/recipes-devtools/libdnf/libdnf_0.11.1.bb  |   1 -
 ...rospection-determine-g-ir-scanner-and-g-i.patch |   4 +-
 .../pkgconf/pkgconf/pkg-config-esdk.in |   4 +-
 .../pkgconf/pkgconf/pkg-config-native.in   |   1 -
 .../pkgconf/pkgconf/pkg-config-wrapper |   9 -
 .../pkgconf/{pkgconf_1.4.0.bb => pkgconf_1.4.2.bb} |   4 +-
 ...t.m4-Update-AM_GLIB_GNU_GETTEXT-to-match-.patch |  41 ---
 .../fix-glib-configure-libtool-usage.patch |  45 
 .../pkgconfig/pkgconfig/pkg-config-esdk.in |  24 --
 .../pkgconfig/pkgconfig/pkg-config-native.in   |   7 -
 meta/recipes-devtools/pkgconfig/pkgconfig_git.bb   |  73 -
 ...001-vapigen.m4-use-PKG_CONFIG_SYSROOT_DIR.patch |  38 ---
 meta/recipes-devtools/vala/vala_0.38.6.bb  |   1 -
 ...config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch |  96 ---
 .../gobject-introspection_1.54.1.bb|   1 -
 .../0001-configure.ac-fix-build-with-pkgconf.patch |  32 +++
 meta/recipes-gnome/librsvg/librsvg_2.40.20.bb  |   4 +-
 meta/recipes-graphics/wayland/libinput_1.9.4.bb|   2 +-
 .../xorg-driver/xf86-input-evdev_2.10.5.bb |   1 +
 .../xorg-driver/xf86-input-libinput_0.26.0.bb  |   2 +
 .../xorg-driver/xf86-input-mouse_1.9.2.bb  |   2 +
 .../xorg-driver/xf86-input-synaptics_1.9.0.bb  |   2 +
 .../xorg-lib/libxcb/xcbincludedir.patch|  28 --
 meta/recipes-graphics/xorg-lib/libxcb_1.12.bb  |   1 -
 meta/recipes-kernel/kmod/kmod_git.bb   |   2 +
 meta/recipes-multimedia/alsa/alsa-utils_1.1.5.bb   |   5 +-
 ...on.m4-prefix-pkgconfig-paths-with-PKG_CON.patch |  42 ---
 .../gstreamer/gstreamer1.0-plugins-bad_1.12.4.bb   |   1 -
 .../gstreamer/gstreamer1.0-plugins-base.inc|   1 -