Re: [OE-core] [PATCH v3 00/13] go1.10 update and misc improvements

2018-03-01 Thread Khem Raj
On Thu, Mar 1, 2018 at 9:43 PM, Khem Raj  wrote:
>
>
> On 3/1/18 3:16 PM, Matt Madison wrote:
>>
>> New in v3:
>>  * reduced one of the go source patches,
>>eliminating an unneeded change (thanks
>>Otavio)
>>  * Added bbclass and recipe patches to
>>handle SECURITY_CFLAGS settings if
>>they're enabled
>>  * Added go-runtime-staticdev to target-side
>>SDK, needed for go static builds (fixes
>>test case failure in oe-selftest)
>>  * two more minor cleanups
>>
>> New in v2:
>>  * Fixed Upstream-Status line in go patches
>>  * Added GOTMPDIR to do_configure[dirs]
>>
>> Updates to the go recipes and bbclasses for go1.10, which
>> moves the bulk of the toolchain bootstrap and build out
>> of the 'make.bash' script and to the 'dist' tool.  This
>> required a rework of the patches to the go source.
>>
>> go1.10 introduces significant changes to the go build
>> tool as well, requiring some further patches to make
>> it work for OE builds.
>
>
> The errors from v2 are gone but here I am seeing another error in
> meta-influx with this patchset with ptest enabled
>
> DISTRO_FEATURES_append = " ptest"
>
>
> bitbake github.com-eapache-go-xerial-snappy
>

for github.com-alicebob-miniredis you dont even need to ptest enabled

>
> | DEBUG: Executing shell function do_compile_ptest_base
> | go build github.com/golang/snappy: missing or invalid GOROOT-resident
> package
> | WARNING:
> /mnt/a/zonit/build/tmp/work/aarch64-bec-linux/github.com-eapache-go-xerial-snappy/1.0-r0/temp/run.do_compile_ptest_base.21897:1
> exit 1 from 'go_list_package_tests'
>
> This error seems to be due to a patch
> 0007-cmd-go-make-GOROOT-precious-by-default.patch
>
> It worked fine with 1.9
>
>
>>
>> See https://golang.org/doc/go1.10 for a complete list
>> of new features and changes.
>>
>> Following the update are some cleanup/improvement
>> patches.
>>
>> Matt Madison (13):
>>go: update go 1.9 -> go 1.10
>>go: set GOMIPS envrionment variable
>>go.bbclass: rename GO_TMPDIR -> GOTMPDIR
>>go.bbclass: remove debug-related commands
>>go.bbclass: don't stage test data with sources
>>go.bbclass: ptest cleanup and improvements
>>goarch.bbclass: disable shared runtime for nativesdk builds
>>go: move common settings to go-common.inc
>>go.bbclass, goarch.bbclass: update SECURITY_CFLAGS
>>go: disable PIE CFLAGS for nativesdk and cross-canadian builds
>>packagegroup-go-sdk-target: add go-runtime-staticdev
>>go-runtime: remove unneeded nativesdk override, rename variable
>>go-cross-canadian: remove verbosity setting from GO_LDFLAGS
>>
>>   meta/classes/go.bbclass| 108 
>>   meta/classes/goarch.bbclass|  13 +
>>   .../packagegroups/packagegroup-go-sdk-target.bb|   1 +
>>   meta/recipes-devtools/go/go-1.10.inc   |  21 ++
>>   ...1-allow-CC-and-CXX-to-have-multiple-words.patch |  33 +++
>>   ...-content-based-hash-generation-less-pedan.patch | 220
>> 
>>   ...OLDIR-to-be-overridden-in-the-environment.patch |  64 +
>>   .../0004-ld-add-soname-to-shareable-objects.patch  |  47 
>>   ...verride-CC-when-building-dist-and-go_boot.patch |  40 +++
>>   ...-cmd-dist-separate-host-and-target-builds.patch | 277
>> +
>>   ...07-cmd-go-make-GOROOT-precious-by-default.patch |  97 
>>   ...ld-replace-glibc-dynamic-linker-with-musl.patch | 130 ++
>>   meta/recipes-devtools/go/go-1.9.inc|  26 --
>>   .../0001-make.bash-quote-CC_FOR_TARGET.patch   |  32 ---
>>   ...CC-and-CXX-environment-variable-construct.patch |  67 -
>>   ...sh-better-separate-host-and-target-builds.patch |  92 ---
>>   ...w-GOTOOLDIR-to-be-overridden-in-the-envir.patch |  68 -
>>   ...05-cmd-go-make-GOROOT-precious-by-default.patch |  41 ---
>>   ...dd-GOTOOLDIR_BOOTSTRAP-environment-variab.patch |  36 ---
>>   .../0007-ld-add-soname-to-shareable-objects.patch  |  46 
>>   ...dd-GOHOSTxx-indirection-for-cross-canadia.patch |  33 ---
>>   ...dmode-pie-forces-external-linking-mode-on.patch |  47 
>>   ...verride-CC-when-building-dist-and-go_boot.patch |  43 
>>   .../go/go-1.9/set-external-linker.patch| 111 -
>>   meta/recipes-devtools/go/go-common.inc |   6 +
>>   meta/recipes-devtools/go/go-cross-canadian.inc |  26 +-
>>   ...s-canadian_1.9.bb => go-cross-canadian_1.10.bb} |   0
>>   meta/recipes-devtools/go/go-cross.inc  |  56 ++---
>>   .../go/{go-cross_1.9.bb => go-cross_1.10.bb}   |   0
>>   meta/recipes-devtools/go/go-crosssdk.inc   |  14 +-
>>   .../go/{go-crosssdk_1.9.bb => go-crosssdk_1.10.bb} |   0
>>   meta/recipes-devtools/go/go-native.inc |  25 +-
>>   .../go/{go-native_1.9.bb => go-native_1.10.bb} |   0
>>   meta/recipes-devtools/go/go-runtime.inc|  56 ++---
>>   .../go/{go-runtime_1.9.bb => 

Re: [OE-core] Questions about udev rule and systemd-udev,relevant to mounting block device

2018-03-01 Thread Hongzhi, Song

Hi all,

Does anyone have suggestion for me?

Thanks.

Hongzhi.Song


On 2018年03月01日 18:35, Hongzhi, Song wrote:


Defect:

    The exiting method of automount of udev in /oe-core/meta/ /is using

/automount.rules/ which call /mount.sh/ that using //bin/mount/ to 
mount device.


But systemd-udevd detaches /mount()/ operations done within the service

from the rest of the system with MountFlag=slave, this means host can

not access device. (e.g. Executing /mkfs.ext4 /dev/sda1// prompts

//dev/sda1 is apparently in use by the system; will not make a 
filesystem here!/)



Solution:

    Systemd upstream suggest that the best way is to use "systemd-mount"

in udev rules, which will request the mount operation to be executed 
by PID 1.


And I have tested it was effective.


Uncertain:

    The exiting method is designed for /SysV-init /which is not 
compatible to


systemd-udev, at least that's what I think. So I think that we should 
design


a new rule or organizational structure to be suitable for systemd-udev 
and


to mount deferent device. Dose anyone help do this? Or I can make some

improvements on the basis of the existing with "systemd-mount".





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


Re: [OE-core] [PATCH v3 00/13] go1.10 update and misc improvements

2018-03-01 Thread Khem Raj



On 3/1/18 3:16 PM, Matt Madison wrote:

New in v3:
 * reduced one of the go source patches,
   eliminating an unneeded change (thanks
   Otavio)
 * Added bbclass and recipe patches to
   handle SECURITY_CFLAGS settings if
   they're enabled
 * Added go-runtime-staticdev to target-side
   SDK, needed for go static builds (fixes
   test case failure in oe-selftest)
 * two more minor cleanups

New in v2:
 * Fixed Upstream-Status line in go patches
 * Added GOTMPDIR to do_configure[dirs]

Updates to the go recipes and bbclasses for go1.10, which
moves the bulk of the toolchain bootstrap and build out
of the 'make.bash' script and to the 'dist' tool.  This
required a rework of the patches to the go source.

go1.10 introduces significant changes to the go build
tool as well, requiring some further patches to make
it work for OE builds.


The errors from v2 are gone but here I am seeing another error in 
meta-influx with this patchset with ptest enabled


DISTRO_FEATURES_append = " ptest"


bitbake github.com-eapache-go-xerial-snappy


| DEBUG: Executing shell function do_compile_ptest_base
| go build github.com/golang/snappy: missing or invalid GOROOT-resident 
package
| WARNING: 
/mnt/a/zonit/build/tmp/work/aarch64-bec-linux/github.com-eapache-go-xerial-snappy/1.0-r0/temp/run.do_compile_ptest_base.21897:1 
exit 1 from 'go_list_package_tests'


This error seems to be due to a patch 
0007-cmd-go-make-GOROOT-precious-by-default.patch


It worked fine with 1.9



See https://golang.org/doc/go1.10 for a complete list
of new features and changes.

Following the update are some cleanup/improvement
patches.

Matt Madison (13):
   go: update go 1.9 -> go 1.10
   go: set GOMIPS envrionment variable
   go.bbclass: rename GO_TMPDIR -> GOTMPDIR
   go.bbclass: remove debug-related commands
   go.bbclass: don't stage test data with sources
   go.bbclass: ptest cleanup and improvements
   goarch.bbclass: disable shared runtime for nativesdk builds
   go: move common settings to go-common.inc
   go.bbclass, goarch.bbclass: update SECURITY_CFLAGS
   go: disable PIE CFLAGS for nativesdk and cross-canadian builds
   packagegroup-go-sdk-target: add go-runtime-staticdev
   go-runtime: remove unneeded nativesdk override, rename variable
   go-cross-canadian: remove verbosity setting from GO_LDFLAGS

  meta/classes/go.bbclass| 108 
  meta/classes/goarch.bbclass|  13 +
  .../packagegroups/packagegroup-go-sdk-target.bb|   1 +
  meta/recipes-devtools/go/go-1.10.inc   |  21 ++
  ...1-allow-CC-and-CXX-to-have-multiple-words.patch |  33 +++
  ...-content-based-hash-generation-less-pedan.patch | 220 
  ...OLDIR-to-be-overridden-in-the-environment.patch |  64 +
  .../0004-ld-add-soname-to-shareable-objects.patch  |  47 
  ...verride-CC-when-building-dist-and-go_boot.patch |  40 +++
  ...-cmd-dist-separate-host-and-target-builds.patch | 277 +
  ...07-cmd-go-make-GOROOT-precious-by-default.patch |  97 
  ...ld-replace-glibc-dynamic-linker-with-musl.patch | 130 ++
  meta/recipes-devtools/go/go-1.9.inc|  26 --
  .../0001-make.bash-quote-CC_FOR_TARGET.patch   |  32 ---
  ...CC-and-CXX-environment-variable-construct.patch |  67 -
  ...sh-better-separate-host-and-target-builds.patch |  92 ---
  ...w-GOTOOLDIR-to-be-overridden-in-the-envir.patch |  68 -
  ...05-cmd-go-make-GOROOT-precious-by-default.patch |  41 ---
  ...dd-GOTOOLDIR_BOOTSTRAP-environment-variab.patch |  36 ---
  .../0007-ld-add-soname-to-shareable-objects.patch  |  46 
  ...dd-GOHOSTxx-indirection-for-cross-canadia.patch |  33 ---
  ...dmode-pie-forces-external-linking-mode-on.patch |  47 
  ...verride-CC-when-building-dist-and-go_boot.patch |  43 
  .../go/go-1.9/set-external-linker.patch| 111 -
  meta/recipes-devtools/go/go-common.inc |   6 +
  meta/recipes-devtools/go/go-cross-canadian.inc |  26 +-
  ...s-canadian_1.9.bb => go-cross-canadian_1.10.bb} |   0
  meta/recipes-devtools/go/go-cross.inc  |  56 ++---
  .../go/{go-cross_1.9.bb => go-cross_1.10.bb}   |   0
  meta/recipes-devtools/go/go-crosssdk.inc   |  14 +-
  .../go/{go-crosssdk_1.9.bb => go-crosssdk_1.10.bb} |   0
  meta/recipes-devtools/go/go-native.inc |  25 +-
  .../go/{go-native_1.9.bb => go-native_1.10.bb} |   0
  meta/recipes-devtools/go/go-runtime.inc|  56 ++---
  .../go/{go-runtime_1.9.bb => go-runtime_1.10.bb}   |   0
  meta/recipes-devtools/go/go-target.inc |  24 +-
  meta/recipes-devtools/go/{go_1.9.bb => go_1.10.bb} |   0
  37 files changed, 1095 insertions(+), 805 deletions(-)
  create mode 100644 meta/recipes-devtools/go/go-1.10.inc
  create mode 100644 
meta/recipes-devtools/go/go-1.10/0001-allow-CC-and-CXX-to-have-multiple-words.patch
  create mode 100644 

[OE-core] ✗ patchtest: failure for python-matplotlib: Change download name (rev2)

2018-03-01 Thread Patchwork
== Series Details ==

Series: python-matplotlib: Change download name (rev2)
Revision: 2
URL   : https://patchwork.openembedded.org/series/11184/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch[meta-oe,v2] python-matplotlib: Change download name
 Issue Series sent to the wrong mailing list 
[test_target_mailing_list] 
  Suggested fixCheck the project's README (meta-oe,v2) and send the patch 
to the indicated list

* Issue Series does not apply on top of target branch 
[test_series_merge_on_head] 
  Suggested fixRebase your series on top of targeted branch
  Targeted branch  master (currently at 8e4ece7bf0)



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


[OE-core] ✗ patchtest: failure for python-matplotlib: Change download name

2018-03-01 Thread Patchwork
== Series Details ==

Series: python-matplotlib: Change download name
Revision: 1
URL   : https://patchwork.openembedded.org/series/11184/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch[meta-oe] python-matplotlib: Change download name
 Issue Series sent to the wrong mailing list 
[test_target_mailing_list] 
  Suggested fixCheck the project's README (meta-oe) and send the patch to 
the indicated list

* Issue Series does not apply on top of target branch 
[test_series_merge_on_head] 
  Suggested fixRebase your series on top of targeted branch
  Targeted branch  master (currently at 8e4ece7bf0)

* Patch[meta-oe] python-matplotlib: Change download name
 Issue Patch is missing Signed-off-by [test_signed_off_by_presence] 
  Suggested fixSign off the patch (either manually or with "git commit 
--amend -s")



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


[OE-core] [meta-oe][PATCH v2] python-matplotlib: Change download name

2018-03-01 Thread Maxime Roussin-Bélanger
Just having "v2.0.2.tar.gz" was causing problems with other
similarly misconfigured packages.

Signed-off-by: Maxime Roussin-Bélanger 
---
 meta-python/recipes-devtools/python/python-matplotlib_2.0.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-python/recipes-devtools/python/python-matplotlib_2.0.2.bb 
b/meta-python/recipes-devtools/python/python-matplotlib_2.0.2.bb
index 5b1c3f05b..b7a3fcfc1 100644
--- a/meta-python/recipes-devtools/python/python-matplotlib_2.0.2.bb
+++ b/meta-python/recipes-devtools/python/python-matplotlib_2.0.2.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = 
"file://LICENSE/LICENSE;md5=afec61498aa5f0c45936687da9a53d74"
 DEPENDS += "python-numpy freetype libpng python-dateutil python-pytz"
 RDEPENDS_${PN} = "python-core python-distutils python-numpy freetype libpng 
python-dateutil python-pytz"
 
-SRC_URI = "https://github.com/matplotlib/matplotlib/archive/v${PV}.tar.gz \
+SRC_URI = 
"https://github.com/matplotlib/matplotlib/archive/v${PV}.tar.gz;downloadfilename=${BP}-${PN}.tar.gz
 \
file://fix_setupext.patch \
 "
 SRC_URI[md5sum] = "89717c1ef3c6fdcd6fb1f3b597a4858c"
-- 
2.11.0

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


[OE-core] [meta-oe][PATCH] python-matplotlib: Change download name

2018-03-01 Thread Maxime Roussin-Bélanger
gflags: change download name.

Just having "v2.0.2.tar.gz" was causing problems with other
similarly misconfigured packages.
---
 meta-python/recipes-devtools/python/python-matplotlib_2.0.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-python/recipes-devtools/python/python-matplotlib_2.0.2.bb 
b/meta-python/recipes-devtools/python/python-matplotlib_2.0.2.bb
index 5b1c3f05b..b7a3fcfc1 100644
--- a/meta-python/recipes-devtools/python/python-matplotlib_2.0.2.bb
+++ b/meta-python/recipes-devtools/python/python-matplotlib_2.0.2.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = 
"file://LICENSE/LICENSE;md5=afec61498aa5f0c45936687da9a53d74"
 DEPENDS += "python-numpy freetype libpng python-dateutil python-pytz"
 RDEPENDS_${PN} = "python-core python-distutils python-numpy freetype libpng 
python-dateutil python-pytz"
 
-SRC_URI = "https://github.com/matplotlib/matplotlib/archive/v${PV}.tar.gz \
+SRC_URI = 
"https://github.com/matplotlib/matplotlib/archive/v${PV}.tar.gz;downloadfilename=${BP}-${PN}.tar.gz
 \
file://fix_setupext.patch \
 "
 SRC_URI[md5sum] = "89717c1ef3c6fdcd6fb1f3b597a4858c"
-- 
2.11.0

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


Re: [OE-core] [PATCH V3 1/2] binutils: Upgrade to 2.30 release

2018-03-01 Thread Bruce Ashfield
On Thu, Mar 1, 2018 at 11:44 AM, Burton, Ross  wrote:
> Filed a bug for this:
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=12577

Thank goodness this was discussed on the list. While trying to test my
new kernel-devsrc package
against musl, I was running into this same error for at-spi2-core, and
I was at a loss to explain it.

I've tried reverting the binutils update locally in the hopes I'll get
a working build.

Bruce

>
> On 1 March 2018 at 09:43, Alexander Kanavin
>  wrote:
>>
>> On 02/21/2018 05:12 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 in v2:
>>>
>>> - Backport fixes for aarch64 relocs
>>> - ppc plt fix, dwarf-4 line number support and linker script fix for
>>> removing PROVODE
>>>
>>> Changes in v3:
>>> - None
>>
>>
>> I did some bisection and unfortunately this cases breakage when musl,
>> systemd and gobject introspection are all enabled:
>>
>> | i586-poky-linux-musl-libtool: link: i586-poky-linux-musl-gcc -m32
>> -march=i586 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat
>> -Wformat-security -Werror=format-security
>> --sysroot=/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot
>> -o
>> /home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/build/avahi-gobject/tmp-introspectcefd3msq/.libs/Avahi-0.6
>> -O2 -pipe -g -feliminate-unused-debug-types
>> -fdebug-prefix-map=/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0=/usr/src/debug/avahi/0.7-r0
>> -fdebug-prefix-map=/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot-native=
>> -fdebug-prefix-map=/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot=
>> -std=c99 -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition
>> -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations
>> -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls
>> -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith
>> -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings
>> -fdiagnostics-show-option -Wno-cast-qual -fno-strict-aliasing
>> /home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/build/avahi-gobject/tmp-introspectcefd3msq/Avahi-0.6.o
>> -Wl,--export-dynamic -pthread -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
>> -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z -Wl,now
>> -Wl,--export-dynamic  -L. ./.libs/libavahi-gobject.so
>> /home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/build/avahi-client/.libs/libavahi-client.so
>> -ldbus-1 -ldl
>> /home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/build/avahi-glib/.libs/libavahi-glib.so
>> /home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/build/avahi-common/.libs/libavahi-common.so
>> -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -pthread
>> | Error relocating
>> /home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot//lib/libsystemd.so.0:
>> __start_BUS_ERROR_MAP: symbol not found
>> | Error relocating
>> /home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot//lib/libsystemd.so.0:
>> __stop_BUS_ERROR_MAP: symbol not found
>>
>>
>>
>> Alex
>>
>> --
>> ___
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
>
> --
> ___
> 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


[OE-core] [PATCH 2/2] perf: enable support for libaudit

2018-03-01 Thread Anuj Mittal
perf needs audit-python to be able to show syscall names and for
'perf trace' to work.

Enable dependency on audit-python if present in PACKAGECONFIG. It's
disabled by default since audit as of now is in meta-selinux.

Fixes [YOCTO #3343]
Fixes [YOCTO #3358]

Signed-off-by: Anuj Mittal 
---
 meta/recipes-kernel/perf/perf.bb | 12 
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index d798492..abd9290 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -12,7 +12,7 @@ LICENSE = "GPLv2"
 PR = "r9"
 
 PACKAGECONFIG ??= "scripting tui libunwind"
-PACKAGECONFIG[scripting] = ",NO_LIBPERL=1 NO_LIBPYTHON=1,perl python"
+PACKAGECONFIG[scripting] = ",NO_LIBPERL=1,perl python"
 # gui support was added with kernel 3.6.35
 # since 3.10 libnewt was replaced by slang
 # to cover a wide range of kernel we add both dependencies
@@ -22,6 +22,10 @@ PACKAGECONFIG[libnuma] = ",NO_LIBNUMA=1"
 PACKAGECONFIG[systemtap] = ",NO_SDT=1,systemtap"
 PACKAGECONFIG[jvmti] = ",NO_JVMTI=1"
 
+# libaudit support needs python to be present
+PACKAGECONFIG[audit] = ",NO_LIBAUDIT=1,audit python"
+PACKAGECONFIG_CONFARGS += "${@bb.utils.contains_any('PACKAGECONFIG', 
'scripting audit', '', 'NO_LIBPYTHON=1', d)}"
+
 DEPENDS = " \
 virtual/${MLPREFIX}libc \
 ${MLPREFIX}elfutils \
@@ -38,7 +42,7 @@ PROVIDES = "virtual/perf"
 inherit linux-kernel-base kernel-arch
 
 # needed for building the tools/perf Python bindings
-inherit ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'pythonnative', '', 
d)}
+inherit ${@bb.utils.contains_any('PACKAGECONFIG', 'scripting audit', 
'pythonnative', '', d)}
 inherit python-dir
 export PYTHON_SITEPACKAGES_DIR
 
@@ -111,7 +115,7 @@ do_install() {
unset CFLAGS
oe_runmake install
# we are checking for this make target to be compatible with older perf 
versions
-   if ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'true', 'false', 
d)} && grep -q install-python_ext ${S}/tools/perf/Makefile*; then
+   if ${@bb.utils.contains_any('PACKAGECONFIG', 'scripting audit', 'true', 
'false', d)} && grep -q install-python_ext ${S}/tools/perf/Makefile*; then
oe_runmake DESTDIR=${D} install-python_ext
fi
 }
@@ -216,7 +220,7 @@ PACKAGES =+ "${PN}-archive ${PN}-tests ${PN}-perl 
${PN}-python"
 RDEPENDS_${PN} += "elfutils bash"
 RDEPENDS_${PN}-doc += "man"
 RDEPENDS_${PN}-archive =+ "bash"
-RDEPENDS_${PN}-python =+ "bash python python-modules"
+RDEPENDS_${PN}-python =+ "bash python python-modules 
${@bb.utils.contains('PACKAGECONFIG', 'audit', 'audit-python', '', d)}"
 RDEPENDS_${PN}-perl =+ "bash perl perl-modules"
 RDEPENDS_${PN}-tests =+ "python"
 
-- 
2.7.4

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


[OE-core] [PATCH 1/2] perf: fix packaging of scripting modules

2018-03-01 Thread Anuj Mittal
Make sure that python and perl scripts are packaged in the correct rpm.

Signed-off-by: Anuj Mittal 
---
 meta/recipes-kernel/perf/perf.bb | 9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 1bad6f4..d798492 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -223,13 +223,14 @@ RDEPENDS_${PN}-tests =+ "python"
 RSUGGESTS_SCRIPTING = "${@bb.utils.contains('PACKAGECONFIG', 'scripting', 
'${PN}-perl ${PN}-python', '',d)}"
 RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}"
 
-#FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core 
/usr/lib64/traceevent ${libdir}/traceevent"
 FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core 
${libdir}/traceevent"
 FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive"
 FILES_${PN}-tests = "${libdir}/perf/perf-core/tests 
${libexecdir}/perf-core/tests"
-FILES_${PN}-python = "${libdir}/perf/perf-core/scripts/python 
${PYTHON_SITEPACKAGES_DIR}"
-FILES_${PN}-python += "${libexecdir}/perf-core/scripts/python/*"
-FILES_${PN}-perl = "${libdir}/perf/perf-core/scripts/perl"
+FILES_${PN}-python = " \
+   ${PYTHON_SITEPACKAGES_DIR} \
+   ${libexecdir}/perf-core/scripts/python \
+   "
+FILES_${PN}-perl = "${libexecdir}/perf-core/scripts/perl"
 
 
 INHIBIT_PACKAGE_DEBUG_SPLIT="1"
-- 
2.7.4

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


[OE-core] ✗ patchtest: failure for go1.10 update and misc improvements (rev3)

2018-03-01 Thread Patchwork
== Series Details ==

Series: go1.10 update and misc improvements (rev3)
Revision: 3
URL   : https://patchwork.openembedded.org/series/11102/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch[v3, 12/13] go-runtime: remove unneeded nativesdk override, 
rename variable
 Issue Patch is missing Signed-off-by [test_signed_off_by_presence] 
  Suggested fixSign off the patch (either manually or with "git commit 
--amend -s")



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


Re: [OE-core] [PATCH 07/15] gtk-doc.bbclass: inherit python3native

2018-03-01 Thread Burton, Ross
Can the inherit of python3native be avoided if gtk-doc isn't enabled?  (I
just removed the dependency on py3native in glib)

Ross

On 1 March 2018 at 14:00, Alexander Kanavin <
alexander.kana...@linux.intel.com> wrote:

> Previously the use of native python3 was non-deterministic based on what
> specific recipes pulled in,
> and could cause a failure if host python3 did not have python3-six
> installed.
>
> Signed-off-by: Alexander Kanavin 
> ---
>  meta/classes/gtk-doc.bbclass | 5 +
>  1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/meta/classes/gtk-doc.bbclass b/meta/classes/gtk-doc.bbclass
> index 5201c7151c6..9bc8fa2b21d 100644
> --- a/meta/classes/gtk-doc.bbclass
> +++ b/meta/classes/gtk-doc.bbclass
> @@ -33,7 +33,7 @@ do_configure_prepend () {
> ( cd ${S}; gtkdocize --docdir ${GTKDOC_DOCDIR} || true )
>  }
>
> -inherit qemu
> +inherit qemu pkgconfig python3native
>
>  export STAGING_DIR_HOST
>
> @@ -65,6 +65,3 @@ fi
>  EOF
>  chmod +x ${B}/gtkdoc-qemuwrapper
>  }
> -
> -
> -inherit pkgconfig
> --
> 2.15.1
>
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] ✗ patchtest: failure for libepoxy: improve musl patch

2018-03-01 Thread Burton, Ross
Note that this is expected to fail as this is based on top of the 1.5.0
upgrade.

Ross

On 1 March 2018 at 23:07, Patchwork 
wrote:

> == Series Details ==
>
> Series: libepoxy: improve musl patch
> Revision: 1
> URL   : https://patchwork.openembedded.org/series/11175/
> State : failure
>
> == Summary ==
>
>
> Thank you for submitting this patch series to OpenEmbedded Core. This is
> an automated response. Several tests have been executed on the proposed
> series by patchtest resulting in the following failures:
>
>
>
> * Issue Series does not apply on top of target branch
> [test_series_merge_on_head]
>   Suggested fixRebase your series on top of targeted branch
>   Targeted branch  master (currently at 8e4ece7bf0)
>
> * Issue Upstream-Status is Submitted, but it is not mentioned
> where [test_upstream_status_presence_format]
>   Suggested fixInclude where no-tests.patch was submitted
>   Current  Upstream-Status: Submitted (https://github.com/anholt/
> libepoxy/pull/158)
>   Standard format  Upstream-Status: Submitted [where]
>
>
>
> If you believe any of these test results are incorrect, please reply to the
> mailing list (openembedded-core@lists.openembedded.org) raising your
> concerns.
> Otherwise we would appreciate you correcting the issues and submitting a
> new
> version of the patchset if applicable. Please ensure you add/increment the
> version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
> [PATCH v3] -> ...).
>
> ---
> Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_
> Guidelines
> Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
> Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
>
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v3 13/13] go-cross-canadian: remove verbosity setting from GO_LDFLAGS

2018-03-01 Thread Matt Madison
This was another setting left over from debugging the
recipes, and isn't needed by default.

Signed-off-by: Matt Madison 
---
 meta/recipes-devtools/go/go-cross-canadian.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/go/go-cross-canadian.inc 
b/meta/recipes-devtools/go/go-cross-canadian.inc
index 1d6453712e..ea68b8875d 100644
--- a/meta/recipes-devtools/go/go-cross-canadian.inc
+++ b/meta/recipes-devtools/go/go-cross-canadian.inc
@@ -12,7 +12,7 @@ export GOTOOLDIR_BOOTSTRAP = 
"${STAGING_LIBDIR_NATIVE}/${HOST_SYS}/go/pkg/tool/$
 export GOROOT_FINAL = "${libdir}/go"
 export CGO_CFLAGS = "${CFLAGS}"
 export CGO_LDFLAGS = "${LDFLAGS}"
-export GO_LDFLAGS = '-v -linkmode external -extld ${HOST_PREFIX}gcc 
-extldflags "--sysroot=${STAGING_DIR_HOST} ${SECURITY_NOPIE_CFLAGS} 
${HOST_CC_ARCH} ${LDFLAGS}"'
+export GO_LDFLAGS = '-linkmode external -extld ${HOST_PREFIX}gcc -extldflags 
"--sysroot=${STAGING_DIR_HOST} ${SECURITY_NOPIE_CFLAGS} ${HOST_CC_ARCH} 
${LDFLAGS}"'
 
 do_configure[noexec] = "1"
 
-- 
2.14.1

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


[OE-core] [PATCH v3 11/13] packagegroup-go-sdk-target: add go-runtime-staticdev

2018-03-01 Thread Matt Madison
to allow go programs to be linked either statically or
dynamically when cross-compiling with the SDK.

Signed-off-by: Matt Madison 
---
 meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb 
b/meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb
index 3e190770a7..7d2ccbda22 100644
--- a/meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb
@@ -5,4 +5,5 @@ inherit packagegroup goarch
 RDEPENDS_${PN} = " \
 go-runtime \
 go-runtime-dev \
+go-runtime-staticdev \
 "
-- 
2.14.1

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


[OE-core] [PATCH v3 12/13] go-runtime: remove unneeded nativesdk override, rename variable

2018-03-01 Thread Matt Madison
since GO_LDFLAGS is also used by the dist tool, and it's confusing
to use a variable with the same name (but not exported, so unused
by make.bash/dist).
---
 meta/recipes-devtools/go/go-runtime.inc | 6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-devtools/go/go-runtime.inc 
b/meta/recipes-devtools/go/go-runtime.inc
index a79295df47..0041e8afab 100644
--- a/meta/recipes-devtools/go/go-runtime.inc
+++ b/meta/recipes-devtools/go/go-runtime.inc
@@ -17,9 +17,7 @@ export CGO_CXXFLAGS = "${CXXFLAGS}"
 export CGO_LDFLAGS = "${LDFLAGS}"
 
 GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}"
-GO_LINKMODE ?= ""
-GO_LINKMODE_class-nativesdk = "--linkmode=external"
-GO_LDFLAGS ?= '-ldflags="${GO_LINKMODE} -extldflags '${GO_EXTLDFLAGS}'"'
+GO_SHLIB_LDFLAGS ?= '-ldflags="--linkmode=external -extldflags 
'${GO_EXTLDFLAGS}'"'
 
 do_configure() {
:
@@ -38,7 +36,7 @@ do_compile() {
if [ -n "${GO_DYNLINK}" ]; then
export GOTOOLDIR="${B}/pkg/tool/native_native"
CC="$CC_FOR_${TARGET_GOOS}_${TARGET_GOARCH}" 
GOARCH="${TARGET_GOARCH}" GOOS="${TARGET_GOOS}" GOROOT=${B} \
-   $GOTOOLDIR/go_bootstrap install -linkshared 
-buildmode=shared ${GO_LDFLAGS} std
+   $GOTOOLDIR/go_bootstrap install -linkshared 
-buildmode=shared ${GO_SHLIB_LDFLAGS} std
fi
cd ${B}
 }
-- 
2.14.1

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


[OE-core] [PATCH v3 09/13] go.bbclass, goarch.bbclass: update SECURITY_CFLAGS

2018-03-01 Thread Matt Madison
With go1.10 the NOPIE flags are only required for
MIPS target builds, and are now incompatible for
the other architectures.

Signed-off-by: Matt Madison 
---
 meta/classes/go.bbclass | 3 ---
 meta/classes/goarch.bbclass | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index 080fb4ae69..90863acbdb 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -34,9 +34,6 @@ GOTOOLDIR = 
"${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go/pkg/tool/${BUILD_GOTUPLE}
 GOTOOLDIR_class-native = 
"${STAGING_LIBDIR_NATIVE}/go/pkg/tool/${BUILD_GOTUPLE}"
 export GOTOOLDIR
 
-SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}"
-SECURITY_LDFLAGS = ""
-
 export CGO_ENABLED ?= "1"
 export CGO_CFLAGS ?= "${CFLAGS}"
 export CGO_CPPFLAGS ?= "${CPPFLAGS}"
diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass
index 5c8ed33b15..eb8b32d35b 100644
--- a/meta/classes/goarch.bbclass
+++ b/meta/classes/goarch.bbclass
@@ -35,6 +35,7 @@ COMPATIBLE_HOST_powerpc64 = "null"
 COMPATIBLE_HOST_mipsarchn32 = "null"
 ARM_INSTRUCTION_SET = "arm"
 TUNE_CCARGS_remove = "-march=mips32r2"
+SECURITY_CFLAGS_mips = "${SECURITY_NOPIE_CFLAGS}"
 
 def go_map_arch(a, d):
 import re
-- 
2.14.1

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


[OE-core] [PATCH v3 10/13] go: disable PIE CFLAGS for nativesdk and cross-canadian builds

2018-03-01 Thread Matt Madison
The statically-linked Go code in the toolchain is not compatible
with PIE, so disable its use in the C compiler during the
toolchain build.

Signed-off-by: Matt Madison 
---
 meta/recipes-devtools/go/go-cross-canadian.inc | 6 +++---
 meta/recipes-devtools/go/go-target.inc | 3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-devtools/go/go-cross-canadian.inc 
b/meta/recipes-devtools/go/go-cross-canadian.inc
index 7a39e4509b..1d6453712e 100644
--- a/meta/recipes-devtools/go/go-cross-canadian.inc
+++ b/meta/recipes-devtools/go/go-cross-canadian.inc
@@ -12,13 +12,13 @@ export GOTOOLDIR_BOOTSTRAP = 
"${STAGING_LIBDIR_NATIVE}/${HOST_SYS}/go/pkg/tool/$
 export GOROOT_FINAL = "${libdir}/go"
 export CGO_CFLAGS = "${CFLAGS}"
 export CGO_LDFLAGS = "${LDFLAGS}"
-export GO_LDFLAGS = '-v -linkmode external -extld ${HOST_PREFIX}gcc 
-extldflags "--sysroot=${STAGING_DIR_HOST} ${HOST_CC_ARCH} ${LDFLAGS}"'
+export GO_LDFLAGS = '-v -linkmode external -extld ${HOST_PREFIX}gcc 
-extldflags "--sysroot=${STAGING_DIR_HOST} ${SECURITY_NOPIE_CFLAGS} 
${HOST_CC_ARCH} ${LDFLAGS}"'
 
 do_configure[noexec] = "1"
 
 do_compile() {
-   export CC_FOR_${HOST_GOOS}_${HOST_GOARCH}="${HOST_PREFIX}gcc 
--sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE}"
-   export CXX_FOR_${HOST_GOOS}_${HOST_GOARCH}="${HOST_PREFIX}gxx 
--sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE}"
+   export CC_FOR_${HOST_GOOS}_${HOST_GOARCH}="${HOST_PREFIX}gcc 
--sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE} ${SECURITY_NOPIE_CFLAGS}"
+   export CXX_FOR_${HOST_GOOS}_${HOST_GOARCH}="${HOST_PREFIX}gxx 
--sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE} ${SECURITY_NOPIE_CFLAGS}"
cd src
./make.bash --host-only --no-banner
cd ${B}
diff --git a/meta/recipes-devtools/go/go-target.inc 
b/meta/recipes-devtools/go/go-target.inc
index 3bc32f3bec..29a1344675 100644
--- a/meta/recipes-devtools/go/go-target.inc
+++ b/meta/recipes-devtools/go/go-target.inc
@@ -14,8 +14,7 @@ GO_LDFLAGS = ""
 GO_LDFLAGS_class-nativesdk = "-linkmode external"
 export GO_LDFLAGS
 
-SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}"
-SECURITY_LDFLAGS = ""
+CC_append_class-nativesdk = " ${SECURITY_NOPIE_CFLAGS}"
 
 do_configure[noexec] = "1"
 
-- 
2.14.1

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


[OE-core] [PATCH v3 08/13] go: move common settings to go-common.inc

2018-03-01 Thread Matt Madison
Eliminate some redundancy in the recipes by moving
some commonly-used variable settings to the common
include file.  Also removed a duplicate inherit
from go-target.inc that was already in go-common.inc.

Signed-off-by: Matt Madison 
---
 meta/recipes-devtools/go/go-common.inc | 4 
 meta/recipes-devtools/go/go-cross-canadian.inc | 5 -
 meta/recipes-devtools/go/go-cross.inc  | 3 ---
 meta/recipes-devtools/go/go-crosssdk.inc   | 4 
 meta/recipes-devtools/go/go-native.inc | 4 
 meta/recipes-devtools/go/go-runtime.inc| 5 +
 meta/recipes-devtools/go/go-target.inc | 5 -
 7 files changed, 5 insertions(+), 25 deletions(-)

diff --git a/meta/recipes-devtools/go/go-common.inc 
b/meta/recipes-devtools/go/go-common.inc
index 611775b2cc..11d55c4d36 100644
--- a/meta/recipes-devtools/go/go-common.inc
+++ b/meta/recipes-devtools/go/go-common.inc
@@ -23,6 +23,10 @@ INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
 SSTATE_SCAN_CMD = "true"
 
 export GOROOT_OVERRIDE = "1"
+export GOTMPDIR ?= "${WORKDIR}/go-tmp"
+GOTMPDIR[vardepvalue] = ""
+export GOCACHE = "off"
+export CGO_ENABLED = "1"
 
 do_compile_prepend() {
BUILD_CC=${BUILD_CC}
diff --git a/meta/recipes-devtools/go/go-cross-canadian.inc 
b/meta/recipes-devtools/go/go-cross-canadian.inc
index 3b98ea449f..7a39e4509b 100644
--- a/meta/recipes-devtools/go/go-cross-canadian.inc
+++ b/meta/recipes-devtools/go/go-cross-canadian.inc
@@ -10,11 +10,6 @@ export GOHOSTARCH = "${BUILD_GOARCH}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOTOOLDIR_BOOTSTRAP = 
"${STAGING_LIBDIR_NATIVE}/${HOST_SYS}/go/pkg/tool/${BUILD_GOTUPLE}"
 export GOROOT_FINAL = "${libdir}/go"
-export CGO_ENABLED = "1"
-export GOCACHE = "off"
-export GOTMPDIR ?= "${WORKDIR}/go-tmp"
-GOTMPDIR[vardepvalue] = ""
-#CC = "${HOST_PREFIX}gcc"
 export CGO_CFLAGS = "${CFLAGS}"
 export CGO_LDFLAGS = "${LDFLAGS}"
 export GO_LDFLAGS = '-v -linkmode external -extld ${HOST_PREFIX}gcc 
-extldflags "--sysroot=${STAGING_DIR_HOST} ${HOST_CC_ARCH} ${LDFLAGS}"'
diff --git a/meta/recipes-devtools/go/go-cross.inc 
b/meta/recipes-devtools/go/go-cross.inc
index 289ae77104..44f230b8bc 100644
--- a/meta/recipes-devtools/go/go-cross.inc
+++ b/meta/recipes-devtools/go/go-cross.inc
@@ -15,9 +15,6 @@ export GOMIPS = "${TARGET_GOMIPS}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
 export GOCACHE = "off"
-export GOTMPDIR ?= "${WORKDIR}/go-tmp"
-GOTMPDIR[vardepvalue] = ""
-export CGO_ENABLED = "1"
 CC = "${@d.getVar('BUILD_CC').strip()}"
 
 do_configure[noexec] = "1"
diff --git a/meta/recipes-devtools/go/go-crosssdk.inc 
b/meta/recipes-devtools/go/go-crosssdk.inc
index 05ca62eba8..4391b32424 100644
--- a/meta/recipes-devtools/go/go-crosssdk.inc
+++ b/meta/recipes-devtools/go/go-crosssdk.inc
@@ -10,10 +10,6 @@ export GOOS = "${TARGET_GOOS}"
 export GOARCH = "${TARGET_GOARCH}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
-export CGO_ENABLED = "1"
-export GOCACHE = "off"
-export GOTMPDIR ?= "${WORKDIR}/go-tmp"
-GOTMPDIR[vardepvalue] = ""
 
 do_configure[noexec] = "1"
 
diff --git a/meta/recipes-devtools/go/go-native.inc 
b/meta/recipes-devtools/go/go-native.inc
index 31e899da82..5fbb72b087 100644
--- a/meta/recipes-devtools/go/go-native.inc
+++ b/meta/recipes-devtools/go/go-native.inc
@@ -10,12 +10,8 @@ SRC_URI[bootstrap.sha256sum] = 
"f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96
 
 export GOOS = "${BUILD_GOOS}"
 export GOARCH = "${BUILD_GOARCH}"
-export GOTMPDIR ?= "${WORKDIR}/go-tmp"
-GOTMPDIR[vardepvalue] = ""
 CC = "${@d.getVar('BUILD_CC').strip()}"
 
-export CGO_ENABLED = "1"
-
 do_configure() {
cd ${WORKDIR}/go1.4/go/src
CGO_ENABLED=0 GOROOT=${WORKDIR}/go1.4/go ./make.bash
diff --git a/meta/recipes-devtools/go/go-runtime.inc 
b/meta/recipes-devtools/go/go-runtime.inc
index 0fe4566360..a79295df47 100644
--- a/meta/recipes-devtools/go/go-runtime.inc
+++ b/meta/recipes-devtools/go/go-runtime.inc
@@ -11,14 +11,11 @@ export GO386 = "${TARGET_GO386}"
 export GOMIPS = "${TARGET_GOMIPS}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
-export CGO_ENABLED = "1"
 export CGO_CFLAGS = "${CFLAGS}"
 export CGO_CPPFLAGS = "${CPPFLAGS}"
 export CGO_CXXFLAGS = "${CXXFLAGS}"
 export CGO_LDFLAGS = "${LDFLAGS}"
-export GOCACHE = "off"
-export GOTMPDIR ?= "${WORKDIR}/go-tmp"
-GOTMPDIR[vardepvalue] = ""
+
 GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}"
 GO_LINKMODE ?= ""
 GO_LINKMODE_class-nativesdk = "--linkmode=external"
diff --git a/meta/recipes-devtools/go/go-target.inc 
b/meta/recipes-devtools/go/go-target.inc
index 141a456cca..3bc32f3bec 100644
--- a/meta/recipes-devtools/go/go-target.inc
+++ b/meta/recipes-devtools/go/go-target.inc
@@ -1,4 +1,3 @@
-inherit goarch
 DEPENDS = "virtual/${TARGET_PREFIX}go go-native"
 DEPENDS_class-nativesdk = 

[OE-core] [PATCH v3 03/13] go.bbclass: rename GO_TMPDIR -> GOTMPDIR

2018-03-01 Thread Matt Madison
and export it. Go 1.10 now supports using this
separate variable locating its temporary files,
so TMPDIR doesn't have to be modified.

Signed-off-by: Matt Madison 
---
 meta/classes/go.bbclass | 11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index 43a262d599..a126d531b8 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -49,8 +49,8 @@ GO_INSTALL_FILTEROUT ?= "${GO_IMPORT}/vendor/"
 B = "${WORKDIR}/build"
 export GOPATH = "${B}"
 export GOCACHE = "off"
-GO_TMPDIR ?= "${WORKDIR}/go-tmp"
-GO_TMPDIR[vardepvalue] = ""
+export GOTMPDIR ?= "${WORKDIR}/go-tmp"
+GOTMPDIR[vardepvalue] = ""
 
 python go_do_unpack() {
 src_uri = (d.getVar('SRC_URI') or "").split()
@@ -85,19 +85,18 @@ go_list_package_tests() {
 go_do_configure() {
ln -snf ${S}/src ${B}/
 }
+do_configure[dirs] =+ "${GOTMPDIR}"
 
 go_do_compile() {
-   export TMPDIR="${GO_TMPDIR}"
${GO} env
if [ -n "${GO_INSTALL}" ]; then
${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} 
`go_list_packages`
fi
 }
-do_compile[dirs] =+ "${GO_TMPDIR}"
+do_compile[dirs] =+ "${GOTMPDIR}"
 do_compile[cleandirs] = "${B}/bin ${B}/pkg"
 
 do_compile_ptest() {
-export TMPDIR="${GO_TMPDIR}"
 rm -f ${B}/.go_compiled_tests.list
go_list_package_tests | while read pkg; do
cd ${B}/src/$pkg
@@ -106,7 +105,7 @@ do_compile_ptest() {
sed -e's,/\./,/,'>> ${B}/.go_compiled_tests.list
done
 }
-do_compile_ptest_base[dirs] =+ "${GO_TMPDIR}"
+do_compile_ptest_base[dirs] =+ "${GOTMPDIR}"
 
 go_do_install() {
install -d ${D}${libdir}/go/src/${GO_IMPORT}
-- 
2.14.1

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


[OE-core] [PATCH v3 07/13] goarch.bbclass: disable shared runtime for nativesdk builds

2018-03-01 Thread Matt Madison
While useful on embedded devices for saving disk space, use
of shared runtime in Go is not the usual practice, so disable
it for nativesdk builds.  We don't use it for native builds,
either, so this makes the SDK match the native environment
more closely.

Signed-off-by: Matt Madison 
---
 meta/classes/goarch.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass
index 1021b94d4c..5c8ed33b15 100644
--- a/meta/classes/goarch.bbclass
+++ b/meta/classes/goarch.bbclass
@@ -24,6 +24,7 @@ GO_DYNLINK_x86 = "1"
 GO_DYNLINK_x86-64 = "1"
 GO_DYNLINK_powerpc64 = "1"
 GO_DYNLINK_class-native = ""
+GO_DYNLINK_class-nativesdk = ""
 
 # define here because everybody inherits this class
 #
-- 
2.14.1

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


[OE-core] [PATCH v3 06/13] go.bbclass: ptest cleanup and improvements

2018-03-01 Thread Matt Madison
* Don't enable verbose test output (-test.v)
  by default, as it generates too much noise
  for automated results parsing

* Override do_install_ptest_base in the bbclass,
  so recipes can provide their own modifications
  with do_install_ptest.

* Improve the generated run-ptest script to better
  handle large numbers of tests, and to generate
  'status: test name' output similar to Automake
  tests.

* Install all non-vendored 'testdata' directories
  from the source into the ptest package, as some
  packages share test data among multiple tests.

Signed-off-by: Matt Madison 
---
 meta/classes/go.bbclass | 87 +
 1 file changed, 51 insertions(+), 36 deletions(-)

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index cd3d9d5bfb..080fb4ae69 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -26,7 +26,7 @@ GO_LDFLAGS ?= '-ldflags="${GO_RPATH} ${GO_LINKMODE} 
-extldflags '${GO_EXTLDFLAGS
 export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS}"
 export GOPATH_OMIT_IN_ACTIONID ?= "1"
 export GOPTESTBUILDFLAGS ?= "${GOBUILDFLAGS} -c"
-export GOPTESTFLAGS ?= "-test.v"
+export GOPTESTFLAGS ?= ""
 GOBUILDFLAGS_prepend_task-compile = "${GO_PARALLEL_BUILD} "
 
 export GO = "${HOST_PREFIX}go"
@@ -76,7 +76,7 @@ go_list_packages() {
 }
 
 go_list_package_tests() {
-${GO} list -f '{{.ImportPath}} {{.TestGoFiles}}' ${GOBUILDFLAGS} 
${GO_INSTALL} | \
+   ${GO} list -f '{{.ImportPath}} {{.TestGoFiles}}' ${GOBUILDFLAGS} 
${GO_INSTALL} | \
grep -v '\[\]$' | \
egrep -v '${GO_INSTALL_FILTEROUT}' | \
awk '{ print $1 }'
@@ -95,14 +95,15 @@ go_do_compile() {
 do_compile[dirs] =+ "${GOTMPDIR}"
 do_compile[cleandirs] = "${B}/bin ${B}/pkg"
 
-do_compile_ptest() {
-rm -f ${B}/.go_compiled_tests.list
+do_compile_ptest_base() {
+   rm -f ${B}/.go_compiled_tests.list
go_list_package_tests | while read pkg; do
cd ${B}/src/$pkg
${GO} test ${GOPTESTBUILDFLAGS} $pkg
find . -mindepth 1 -maxdepth 1 -type f -name '*.test' -exec 
echo $pkg/{} \; | \
sed -e's,/\./,/,'>> ${B}/.go_compiled_tests.list
done
+   do_compile_ptest
 }
 do_compile_ptest_base[dirs] =+ "${GOTMPDIR}"
 
@@ -118,40 +119,54 @@ go_do_install() {
fi
 }
 
-do_install_ptest_base() {
-test -f "${B}/.go_compiled_tests.list" || exit 0
-tests=""
-while read test; do
-tests="$tests${tests:+ }${test%.test}"
-testdir=`dirname $test`
-install -d ${D}${PTEST_PATH}/$testdir
-install -m 0755 ${B}/src/$test ${D}${PTEST_PATH}/$test
-if [ -d "${B}/src/$testdir/testdata" ]; then
-cp --preserve=mode,timestamps -R "${B}/src/$testdir/testdata" 
${D}${PTEST_PATH}/$testdir
-fi
-done < ${B}/.go_compiled_tests.list
-if [ -n "$tests" ]; then
-install -d ${D}${PTEST_PATH}
-cat >${D}${PTEST_PATH}/run-ptest <${D}${PTEST_PATH}/run-ptest <&1; then
-ANYFAILED=1
-fi
-done
-if [ \$ANYFAILED -ne 0 ]; then
-echo "FAIL: ${PN}"
-exit 1
-fi
-echo "PASS: ${PN}"
-exit 0
+RC=0
+run_test() (
+cd "\$1"
+./\$2 ${GOPTESTFLAGS}; echo \$? >&3) | sed -r 
-e"s,^(PASS|SKIP|FAIL)\$,\\1: \$1/\$2," >&4) 3>&1) | (read rc; exit \$rc)) 4>&1
+exit \$?)
 EOF
-chmod +x ${D}${PTEST_PATH}/run-ptest
-else
-rm -rf ${D}${PTEST_PATH}
-fi
+
+}
+
+go_stage_testdata() {
+   oldwd="$PWD"
+   cd ${S}/src
+   find ${GO_IMPORT} -depth -type d -name testdata | while read d; do
+   if echo "$d" | grep -q '/vendor/'; then
+   continue
+   fi
+   parent=`dirname $d`
+   install -d ${D}${PTEST_PATH}/$parent
+   cp --preserve=mode,timestamps -R $d ${D}${PTEST_PATH}/$parent/
+   done
+   cd "$oldwd"
+}
+
+do_install_ptest_base() {
+   test -f "${B}/.go_compiled_tests.list" || exit 0
+   install -d ${D}${PTEST_PATH}
+   go_stage_testdata
+   go_make_ptest_wrapper
+   havetests=""
+   while read test; do
+   testdir=`dirname $test`
+   testprog=`basename $test`
+   install -d ${D}${PTEST_PATH}/$testdir
+   install -m 0755 ${B}/src/$test ${D}${PTEST_PATH}/$test
+   echo "run_test $testdir $testprog || RC=1" >> 
${D}${PTEST_PATH}/run-ptest
+   havetests="yes"
+   done < ${B}/.go_compiled_tests.list
+   if [ -n "$havetests" ]; then
+   echo "exit \$RC" >> ${D}${PTEST_PATH}/run-ptest
+   chmod +x ${D}${PTEST_PATH}/run-ptest
+   else
+   rm -rf ${D}${PTEST_PATH}
+   fi
+   do_install_ptest
+   chown -R root:root ${D}${PTEST_PATH}
 }
 
 EXPORT_FUNCTIONS do_unpack do_configure do_compile do_install
-- 
2.14.1

-- 
___
Openembedded-core mailing list

[OE-core] [PATCH v3 05/13] go.bbclass: don't stage test data with sources

2018-03-01 Thread Matt Madison
Any directory in a Go package's source tree called
'testdata' contains test data, and isn't necessary
for building.

Some packages include ELF files and other binaries
as test data, and staging them in the sysroot and
-dev package leads to unnecessary QA warnings.

Signed-off-by: Matt Madison 
---
 meta/classes/go.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index a20d2dc0a7..cd3d9d5bfb 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -108,7 +108,7 @@ do_compile_ptest_base[dirs] =+ "${GOTMPDIR}"
 
 go_do_install() {
install -d ${D}${libdir}/go/src/${GO_IMPORT}
-   tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' . | 
\
+   tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' 
--exclude 'testdata' . | \
tar -C ${D}${libdir}/go/src/${GO_IMPORT} --no-same-owner -xf -
tar -C ${B} -cf - pkg | tar -C ${D}${libdir}/go --no-same-owner -xf -
 
-- 
2.14.1

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


[OE-core] [PATCH v3 02/13] go: set GOMIPS envrionment variable

2018-03-01 Thread Matt Madison
Go 1.10 adds support for selecting hard/soft float
object code through the GOMIPS environment variable.

Signed-off-by: Matt Madison 
---
 meta/classes/goarch.bbclass| 11 +++
 meta/recipes-devtools/go/go-cross-canadian.inc |  1 +
 meta/recipes-devtools/go/go-cross.inc  |  2 ++
 meta/recipes-devtools/go/go-runtime.inc|  1 +
 meta/recipes-devtools/go/go-target.inc |  1 +
 5 files changed, 16 insertions(+)

diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass
index 922c0cc8f3..1021b94d4c 100644
--- a/meta/classes/goarch.bbclass
+++ b/meta/classes/goarch.bbclass
@@ -5,11 +5,13 @@ HOST_GOOS = "${@go_map_os(d.getVar('HOST_OS'), d)}"
 HOST_GOARCH = "${@go_map_arch(d.getVar('HOST_ARCH'), d)}"
 HOST_GOARM = "${@go_map_arm(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), 
d)}"
 HOST_GO386 = "${@go_map_386(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), 
d)}"
+HOST_GOMIPS = "${@go_map_mips(d.getVar('HOST_ARCH'), 
d.getVar('TUNE_FEATURES'), d)}"
 HOST_GOTUPLE = "${HOST_GOOS}_${HOST_GOARCH}"
 TARGET_GOOS = "${@go_map_os(d.getVar('TARGET_OS'), d)}"
 TARGET_GOARCH = "${@go_map_arch(d.getVar('TARGET_ARCH'), d)}"
 TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH'), 
d.getVar('TUNE_FEATURES'), d)}"
 TARGET_GO386 = "${@go_map_386(d.getVar('TARGET_ARCH'), 
d.getVar('TUNE_FEATURES'), d)}"
+TARGET_GOMIPS = "${@go_map_mips(d.getVar('TARGET_ARCH'), 
d.getVar('TUNE_FEATURES'), d)}"
 TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}"
 GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') 
== d.getVar('HOST_GOTUPLE')]}"
 
@@ -78,6 +80,15 @@ def go_map_386(a, f, d):
 return '387'
 return ''
 
+def go_map_mips(a, f, d):
+import re
+if a == 'mips' or a == 'mipsel':
+if 'fpu-hard' in f:
+return 'hardfloat'
+else:
+return 'softfloat'
+return ''
+
 def go_map_os(o, d):
 if o.startswith('linux'):
 return 'linux'
diff --git a/meta/recipes-devtools/go/go-cross-canadian.inc 
b/meta/recipes-devtools/go/go-cross-canadian.inc
index c84aa4c9eb..3b98ea449f 100644
--- a/meta/recipes-devtools/go/go-cross-canadian.inc
+++ b/meta/recipes-devtools/go/go-cross-canadian.inc
@@ -42,6 +42,7 @@ export GOARCH="${TARGET_GOARCH}"
 export GOOS="${TARGET_GOOS}"
 test -n "\$GOARM" || export GOARM="${TARGET_GOARM}"
 test -n "\$GO386" || export GO386="${TARGET_GO386}"
+test -n "\$GOMIPS" || export GOMIPS="${TARGET_GOMIPS}"
 export GOTOOLDIR="\$native_goroot/pkg/tool/${HOST_GOTUPLE}"
 test -n "\$GOROOT" || export 
GOROOT="\$OECORE_TARGET_SYSROOT/${target_libdir}/go"
 \$here/../../lib/${TARGET_SYS}/go/bin/$1 "\$@"
diff --git a/meta/recipes-devtools/go/go-cross.inc 
b/meta/recipes-devtools/go/go-cross.inc
index fe92651581..289ae77104 100644
--- a/meta/recipes-devtools/go/go-cross.inc
+++ b/meta/recipes-devtools/go/go-cross.inc
@@ -11,6 +11,7 @@ export GOOS = "${TARGET_GOOS}"
 export GOARCH = "${TARGET_GOARCH}"
 export GOARM = "${TARGET_GOARM}"
 export GO386 = "${TARGET_GO386}"
+export GOMIPS = "${TARGET_GOMIPS}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
 export GOCACHE = "off"
@@ -40,6 +41,7 @@ export GOARCH="${TARGET_GOARCH}"
 export GOOS="${TARGET_GOOS}"
 export GOARM="\${GOARM:-${TARGET_GOARM}}"
 export GO386="\${GO386:-${TARGET_GO386}}"
+export GOMIPS="\${GOMIPS:-${TARGET_GOMIPS}}"
 \$here/../../lib/${CROSS_TARGET_SYS_DIR}/go/bin/$1 "\$@"
 END
chmod +x ${D}${bindir}/$2
diff --git a/meta/recipes-devtools/go/go-runtime.inc 
b/meta/recipes-devtools/go/go-runtime.inc
index 7a3b415b3f..0fe4566360 100644
--- a/meta/recipes-devtools/go/go-runtime.inc
+++ b/meta/recipes-devtools/go/go-runtime.inc
@@ -8,6 +8,7 @@ export GOOS = "${TARGET_GOOS}"
 export GOARCH = "${TARGET_GOARCH}"
 export GOARM = "${TARGET_GOARM}"
 export GO386 = "${TARGET_GO386}"
+export GOMIPS = "${TARGET_GOMIPS}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
 export CGO_ENABLED = "1"
diff --git a/meta/recipes-devtools/go/go-target.inc 
b/meta/recipes-devtools/go/go-target.inc
index a53a314c78..141a456cca 100644
--- a/meta/recipes-devtools/go/go-target.inc
+++ b/meta/recipes-devtools/go/go-target.inc
@@ -8,6 +8,7 @@ export GOOS = "${TARGET_GOOS}"
 export GOARCH = "${TARGET_GOARCH}"
 export GOARM = "${TARGET_GOARM}"
 export GO386 = "${TARGET_GO386}"
+export GOMIPS = "${TARGET_GOMIPS}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
 export CGO_ENABLED = "1"
-- 
2.14.1

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


[OE-core] [PATCH v3 04/13] go.bbclass: remove debug-related commands

2018-03-01 Thread Matt Madison
The 'go env' in the do_compile function and
the set -x/+x in the do_install_ptest function
were used for debugging the bbclass, and aren't
really needed.

Signed-off-by: Matt Madison 
---
 meta/classes/go.bbclass | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index a126d531b8..a20d2dc0a7 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -88,7 +88,6 @@ go_do_configure() {
 do_configure[dirs] =+ "${GOTMPDIR}"
 
 go_do_compile() {
-   ${GO} env
if [ -n "${GO_INSTALL}" ]; then
${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} 
`go_list_packages`
fi
@@ -120,7 +119,6 @@ go_do_install() {
 }
 
 do_install_ptest_base() {
-set -x
 test -f "${B}/.go_compiled_tests.list" || exit 0
 tests=""
 while read test; do
@@ -154,7 +152,6 @@ EOF
 else
 rm -rf ${D}${PTEST_PATH}
 fi
-set +x
 }
 
 EXPORT_FUNCTIONS do_unpack do_configure do_compile do_install
-- 
2.14.1

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


[OE-core] [PATCH v3 01/13] go: update go 1.9 -> go 1.10

2018-03-01 Thread Matt Madison
* Patches and recipes reworked for go 1.10's significant
  changes to its bootstrap and build steps

* Update go1.4 source tarball used for go-native
  bootstrapping to the version recommended
  in the current go documentation

* Remove test data from installed sources to eliminate
  some packaging QA warnings

* Set GOCACHE to 'off' to disable 1.10's build caching
  in the go recipes and bbclass

Signed-off-by: Matt Madison 
---
 meta/classes/go.bbclass|   2 +
 meta/recipes-devtools/go/go-1.10.inc   |  21 ++
 ...1-allow-CC-and-CXX-to-have-multiple-words.patch |  33 +++
 ...-content-based-hash-generation-less-pedan.patch | 220 
 ...OLDIR-to-be-overridden-in-the-environment.patch |  64 +
 .../0004-ld-add-soname-to-shareable-objects.patch  |  47 
 ...verride-CC-when-building-dist-and-go_boot.patch |  40 +++
 ...-cmd-dist-separate-host-and-target-builds.patch | 277 +
 ...07-cmd-go-make-GOROOT-precious-by-default.patch |  97 
 ...ld-replace-glibc-dynamic-linker-with-musl.patch | 130 ++
 meta/recipes-devtools/go/go-1.9.inc|  26 --
 .../0001-make.bash-quote-CC_FOR_TARGET.patch   |  32 ---
 ...CC-and-CXX-environment-variable-construct.patch |  67 -
 ...sh-better-separate-host-and-target-builds.patch |  92 ---
 ...w-GOTOOLDIR-to-be-overridden-in-the-envir.patch |  68 -
 ...05-cmd-go-make-GOROOT-precious-by-default.patch |  41 ---
 ...dd-GOTOOLDIR_BOOTSTRAP-environment-variab.patch |  36 ---
 .../0007-ld-add-soname-to-shareable-objects.patch  |  46 
 ...dd-GOHOSTxx-indirection-for-cross-canadia.patch |  33 ---
 ...dmode-pie-forces-external-linking-mode-on.patch |  47 
 ...verride-CC-when-building-dist-and-go_boot.patch |  43 
 .../go/go-1.9/set-external-linker.patch| 111 -
 meta/recipes-devtools/go/go-common.inc |   2 +
 meta/recipes-devtools/go/go-cross-canadian.inc |  28 +--
 ...s-canadian_1.9.bb => go-cross-canadian_1.10.bb} |   0
 meta/recipes-devtools/go/go-cross.inc  |  55 ++--
 .../go/{go-cross_1.9.bb => go-cross_1.10.bb}   |   0
 meta/recipes-devtools/go/go-crosssdk.inc   |  16 +-
 .../go/{go-crosssdk_1.9.bb => go-crosssdk_1.10.bb} |   0
 meta/recipes-devtools/go/go-native.inc |  25 +-
 .../go/{go-native_1.9.bb => go-native_1.10.bb} |   0
 meta/recipes-devtools/go/go-runtime.inc|  58 +++--
 .../go/{go-runtime_1.9.bb => go-runtime_1.10.bb}   |   0
 meta/recipes-devtools/go/go-target.inc |  21 +-
 meta/recipes-devtools/go/{go_1.9.bb => go_1.10.bb} |   0
 35 files changed, 1032 insertions(+), 746 deletions(-)
 create mode 100644 meta/recipes-devtools/go/go-1.10.inc
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0001-allow-CC-and-CXX-to-have-multiple-words.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0002-cmd-go-make-content-based-hash-generation-less-pedan.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0004-ld-add-soname-to-shareable-objects.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0005-make.bash-override-CC-when-building-dist-and-go_boot.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0006-cmd-dist-separate-host-and-target-builds.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0007-cmd-go-make-GOROOT-precious-by-default.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0008-ld-replace-glibc-dynamic-linker-with-musl.patch
 delete mode 100644 meta/recipes-devtools/go/go-1.9.inc
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0001-make.bash-quote-CC_FOR_TARGET.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0002-cmd-go-fix-CC-and-CXX-environment-variable-construct.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0003-make.bash-better-separate-host-and-target-builds.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0004-cmd-go-allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0005-cmd-go-make-GOROOT-precious-by-default.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0006-make.bash-add-GOTOOLDIR_BOOTSTRAP-environment-variab.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0007-ld-add-soname-to-shareable-objects.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0008-make.bash-add-GOHOSTxx-indirection-for-cross-canadia.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0009-cmd-go-buildmode-pie-forces-external-linking-mode-on.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0010-make.bash-override-CC-when-building-dist-and-go_boot.patch
 delete mode 100644 meta/recipes-devtools/go/go-1.9/set-external-linker.patch
 rename meta/recipes-devtools/go/{go-cross-canadian_1.9.bb => 
go-cross-canadian_1.10.bb} (100%)
 rename 

[OE-core] [PATCH v3 00/13] go1.10 update and misc improvements

2018-03-01 Thread Matt Madison
New in v3:
* reduced one of the go source patches,
  eliminating an unneeded change (thanks
  Otavio)
* Added bbclass and recipe patches to
  handle SECURITY_CFLAGS settings if
  they're enabled
* Added go-runtime-staticdev to target-side
  SDK, needed for go static builds (fixes
  test case failure in oe-selftest)
* two more minor cleanups

New in v2:
* Fixed Upstream-Status line in go patches
* Added GOTMPDIR to do_configure[dirs]

Updates to the go recipes and bbclasses for go1.10, which
moves the bulk of the toolchain bootstrap and build out
of the 'make.bash' script and to the 'dist' tool.  This
required a rework of the patches to the go source.

go1.10 introduces significant changes to the go build
tool as well, requiring some further patches to make
it work for OE builds.

See https://golang.org/doc/go1.10 for a complete list
of new features and changes.

Following the update are some cleanup/improvement
patches.

Matt Madison (13):
  go: update go 1.9 -> go 1.10
  go: set GOMIPS envrionment variable
  go.bbclass: rename GO_TMPDIR -> GOTMPDIR
  go.bbclass: remove debug-related commands
  go.bbclass: don't stage test data with sources
  go.bbclass: ptest cleanup and improvements
  goarch.bbclass: disable shared runtime for nativesdk builds
  go: move common settings to go-common.inc
  go.bbclass, goarch.bbclass: update SECURITY_CFLAGS
  go: disable PIE CFLAGS for nativesdk and cross-canadian builds
  packagegroup-go-sdk-target: add go-runtime-staticdev
  go-runtime: remove unneeded nativesdk override, rename variable
  go-cross-canadian: remove verbosity setting from GO_LDFLAGS

 meta/classes/go.bbclass| 108 
 meta/classes/goarch.bbclass|  13 +
 .../packagegroups/packagegroup-go-sdk-target.bb|   1 +
 meta/recipes-devtools/go/go-1.10.inc   |  21 ++
 ...1-allow-CC-and-CXX-to-have-multiple-words.patch |  33 +++
 ...-content-based-hash-generation-less-pedan.patch | 220 
 ...OLDIR-to-be-overridden-in-the-environment.patch |  64 +
 .../0004-ld-add-soname-to-shareable-objects.patch  |  47 
 ...verride-CC-when-building-dist-and-go_boot.patch |  40 +++
 ...-cmd-dist-separate-host-and-target-builds.patch | 277 +
 ...07-cmd-go-make-GOROOT-precious-by-default.patch |  97 
 ...ld-replace-glibc-dynamic-linker-with-musl.patch | 130 ++
 meta/recipes-devtools/go/go-1.9.inc|  26 --
 .../0001-make.bash-quote-CC_FOR_TARGET.patch   |  32 ---
 ...CC-and-CXX-environment-variable-construct.patch |  67 -
 ...sh-better-separate-host-and-target-builds.patch |  92 ---
 ...w-GOTOOLDIR-to-be-overridden-in-the-envir.patch |  68 -
 ...05-cmd-go-make-GOROOT-precious-by-default.patch |  41 ---
 ...dd-GOTOOLDIR_BOOTSTRAP-environment-variab.patch |  36 ---
 .../0007-ld-add-soname-to-shareable-objects.patch  |  46 
 ...dd-GOHOSTxx-indirection-for-cross-canadia.patch |  33 ---
 ...dmode-pie-forces-external-linking-mode-on.patch |  47 
 ...verride-CC-when-building-dist-and-go_boot.patch |  43 
 .../go/go-1.9/set-external-linker.patch| 111 -
 meta/recipes-devtools/go/go-common.inc |   6 +
 meta/recipes-devtools/go/go-cross-canadian.inc |  26 +-
 ...s-canadian_1.9.bb => go-cross-canadian_1.10.bb} |   0
 meta/recipes-devtools/go/go-cross.inc  |  56 ++---
 .../go/{go-cross_1.9.bb => go-cross_1.10.bb}   |   0
 meta/recipes-devtools/go/go-crosssdk.inc   |  14 +-
 .../go/{go-crosssdk_1.9.bb => go-crosssdk_1.10.bb} |   0
 meta/recipes-devtools/go/go-native.inc |  25 +-
 .../go/{go-native_1.9.bb => go-native_1.10.bb} |   0
 meta/recipes-devtools/go/go-runtime.inc|  56 ++---
 .../go/{go-runtime_1.9.bb => go-runtime_1.10.bb}   |   0
 meta/recipes-devtools/go/go-target.inc |  24 +-
 meta/recipes-devtools/go/{go_1.9.bb => go_1.10.bb} |   0
 37 files changed, 1095 insertions(+), 805 deletions(-)
 create mode 100644 meta/recipes-devtools/go/go-1.10.inc
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0001-allow-CC-and-CXX-to-have-multiple-words.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0002-cmd-go-make-content-based-hash-generation-less-pedan.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0004-ld-add-soname-to-shareable-objects.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0005-make.bash-override-CC-when-building-dist-and-go_boot.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0006-cmd-dist-separate-host-and-target-builds.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0007-cmd-go-make-GOROOT-precious-by-default.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0008-ld-replace-glibc-dynamic-linker-with-musl.patch
 delete mode 100644 

[OE-core] ✗ patchtest: failure for libepoxy: improve musl patch

2018-03-01 Thread Patchwork
== Series Details ==

Series: libepoxy: improve musl patch
Revision: 1
URL   : https://patchwork.openembedded.org/series/11175/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue Series does not apply on top of target branch 
[test_series_merge_on_head] 
  Suggested fixRebase your series on top of targeted branch
  Targeted branch  master (currently at 8e4ece7bf0)

* Issue Upstream-Status is Submitted, but it is not mentioned where 
[test_upstream_status_presence_format] 
  Suggested fixInclude where no-tests.patch was submitted
  Current  Upstream-Status: Submitted 
(https://github.com/anholt/libepoxy/pull/158)
  Standard format  Upstream-Status: Submitted [where]



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


[OE-core] [PATCH] ttf-bitstream-vera: cleanup recipe

2018-03-01 Thread Ross Burton
Signed-off-by: Ross Burton 
---
 .../ttf-fonts/ttf-bitstream-vera_1.10.bb   | 34 +-
 1 file changed, 14 insertions(+), 20 deletions(-)

diff --git a/meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb 
b/meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb
index b2e4cef39d9..70b32cf8f11 100644
--- a/meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb
+++ b/meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb
@@ -13,26 +13,20 @@ inherit fontcache
 
 FONT_PACKAGES = "${PN}"
 
-SRC_URI = 
"${GNOME_MIRROR}/ttf-bitstream-vera/1.10/ttf-bitstream-vera-${PV}.tar.bz2" 
-
-do_install () { 
-install -d ${D}${prefix}/share/fonts/ttf/ 
-for i in *.ttf; do 
-install -m 644 $i ${D}${prefix}/share/fonts/ttf/${i} 
-done 
-
-   # fontconfig ships this too.  not sure what to do about it.
-#install -d ${D}${sysconfdir}/fonts 
-#install -m 644 local.conf ${D}${sysconfdir}/fonts/local.conf 
-
+SRC_URI = 
"${GNOME_MIRROR}/ttf-bitstream-vera/1.10/ttf-bitstream-vera-${PV}.tar.bz2"
+SRC_URI[md5sum] = "bb22bd5b4675f5dbe17c6963d8c00ed6"
+SRC_URI[sha256sum] = 
"db5b27df7bbb318036ebdb75acd3e98f1bd6eb6608fb70a67d478cd243d178dc"
 
-install -d ${D}${prefix}/share/doc/${BPN}/
-for i in *.TXT; do 
-install -m 644 $i ${D}${prefix}/share/doc/${BPN}/$i
-done 
-} 
+do_install () {
+install -d ${D}${datadir}/fonts/ttf
+for i in *.ttf; do
+install -m 644 $i ${D}${datadir}/fonts/ttf
+done
 
-FILES_${PN} = "/etc ${datadir}/fonts"
+install -d ${D}${docdir}/${BPN}
+for i in *.TXT; do
+install -m 644 $i ${D}${docdir}/${BPN}
+done
+}
 
-SRC_URI[md5sum] = "bb22bd5b4675f5dbe17c6963d8c00ed6"
-SRC_URI[sha256sum] = 
"db5b27df7bbb318036ebdb75acd3e98f1bd6eb6608fb70a67d478cd243d178dc"
+FILES_${PN} = "${datadir}/fonts"
-- 
2.11.0

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


[OE-core] [PATCH] libjpeg-turbo: improve reproducibility

2018-03-01 Thread Juro Bystricky
Build date ends up embbedded in binary images, breaking reproducibility
of jpeg-tools and libturbojpeg. To enable reproducible builds, build date can be
specified during configuration, via "--with_build_date=".
If SOURCE_DATE_EPOCH is specified we configure libjpeg-turbo with this value as
build date. Although the build date is a generic string, we keep it in the same
format MMDD.

[YOCTO #12526]

Signed-off-by: Juro Bystricky 
---
 meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.3.bb | 8 
 1 file changed, 8 insertions(+)

diff --git a/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.3.bb 
b/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.3.bb
index 8809f2c..50a5ae0 100644
--- a/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.3.bb
+++ b/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.3.bb
@@ -40,6 +40,14 @@ EXTRA_OECONF_append_class-target = " 
${@bb.utils.contains("MIPSPKGSFX_FPU", "-nf
 EXTRA_OECONF_append_class-target_powerpc = " 
${@bb.utils.contains("TUNE_FEATURES", "altivec", "", "--without-simd", d)}"
 EXTRA_OECONF_append_class-target_powerpc64 = " 
${@bb.utils.contains("TUNE_FEATURES", "altivec", "", "--without-simd", d)}"
 
+def get_build_time(d):
+if d.getVar('SOURCE_DATE_EPOCH') != None:
+import datetime
+return " --with-build-date="+ 
datetime.datetime.fromtimestamp(float(d.getVar('SOURCE_DATE_EPOCH'))).strftime("%Y%m%d")
+return ""
+
+EXTRA_OECONF_append_class-target = "${@get_build_time(d)}"
+
 PACKAGES =+ "jpeg-tools libturbojpeg"
 
 DESCRIPTION_jpeg-tools = "The jpeg-tools package includes client programs to 
access libjpeg functionality.  These tools allow for the compression, 
decompression, transformation and display of JPEG files and benchmarking of the 
libjpeg library."
-- 
2.7.4

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


[OE-core] [PATCH] libepoxy: improve musl patch

2018-03-01 Thread Ross Burton
dlvsym() is used by the libepoxy test suite, but this is glibc-specific and
isn't present in musl.

Instead of adding an option to control whether dlvsym is available (which could
be detected by Meson), as we don't install the test suite simply add an option
to disable the entire test suite (and submit the patch upstream).

Also remove the build dependency on util-macros as that is a remnant of the
autotools build.

Signed-off-by: Ross Burton 
---
 ...sible-to-disable-the-use-of-dlvsym-needed.patch | 58 --
 .../libepoxy/libepoxy/no-tests.patch   | 33 
 meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb   |  6 +--
 3 files changed, 35 insertions(+), 62 deletions(-)
 delete mode 100644 
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch
 create mode 100644 meta/recipes-graphics/libepoxy/libepoxy/no-tests.patch

diff --git 
a/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch
 
b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch
deleted file mode 100644
index bd49e36314f..000
--- 
a/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-From 9c964427656ef71210e2c5b48b279857806574e9 Mon Sep 17 00:00:00 2001
-From: Francesco Giancane 
-Date: Wed, 28 Feb 2018 21:32:24 +0100
-Subject: [PATCH] Make it possible to disable the use of dlvsym() (needed for
- musl)
-
-Add a patch to work around absence of dlvsym() on musl
-(wasn't previously a problem as autotools weren't building tests by default)
-
-Upstream-Status: Pending
-Signed-off-by: Alexander Kanavin 
-Signed-off-by: Francesco Giancane 

- meson_options.txt | 3 +++
- test/meson.build  | 6 +++---
- 2 files changed, 6 insertions(+), 3 deletions(-)
-
-diff --git a/meson_options.txt b/meson_options.txt
-index b5d7c98..aa849c2 100644
 a/meson_options.txt
-+++ b/meson_options.txt
-@@ -1,6 +1,9 @@
- option('docs',
-type: 'boolean', value: false,
-description: 'Enable generating the Epoxy API reference (depends on 
Doxygen)')
-+option('has-dlvsym',
-+   type: 'boolean', value: true,
-+   description: 'Whether dlvsym() is available (it is not when using musl 
C library)')
- option('glx',
-type: 'combo',
-choices: [ 'auto', 'yes', 'no' ],
-diff --git a/test/meson.build b/test/meson.build
-index c5788b4..4c46ae6 100644
 a/test/meson.build
-+++ b/test/meson.build
-@@ -92,8 +92,8 @@ if build_glx
- [ 'glx_has_extension_nocontext', [ 'glx_has_extension_nocontext.c' ], [], 
[], true ],
- [ 'glx_static', [ 'glx_static.c' ], [ '-DNEEDS_TO_BE_STATIC'], [ 
'-static' ], libtype == 'static' ],
- [ 'glx_shared_znow', [ 'glx_static.c', ], [], [ '-Wl,-z,now' ], has_znow 
],
--[ 'glx_alias_prefer_same_name', [ 'glx_alias_prefer_same_name.c', 
'dlwrap.c', 'dlwrap.h' ], [], [ '-rdynamic' ], not build_apple ],
--[ 'glx_gles2', [ 'glx_gles2.c', 'dlwrap.c', 'dlwrap.h' ], [], [ 
'-rdynamic' ], not build_apple ],
-+[ 'glx_alias_prefer_same_name', [ 'glx_alias_prefer_same_name.c', 
'dlwrap.c', 'dlwrap.h' ], [], [ '-rdynamic' ], not build_apple and 
get_option('has-dlvsym') == true ],
-+[ 'glx_gles2', [ 'glx_gles2.c', 'dlwrap.c', 'dlwrap.h' ], [], [ 
'-rdynamic' ], not build_apple and get_option('has-dlvsym') == true ],
-   ]
- 
-   foreach test: glx_tests
-@@ -114,7 +114,7 @@ if build_glx
- endif
-   endforeach
- 
--  if not build_apple
-+  if not build_apple and get_option('has-dlvsym') == true
- # GLX/EGL tests
- if build_egl
-   glx_egl_sources = [
--- 
-2.14.3
-
diff --git a/meta/recipes-graphics/libepoxy/libepoxy/no-tests.patch 
b/meta/recipes-graphics/libepoxy/libepoxy/no-tests.patch
new file mode 100644
index 000..d2b6c1a254c
--- /dev/null
+++ b/meta/recipes-graphics/libepoxy/libepoxy/no-tests.patch
@@ -0,0 +1,33 @@
+Add option to disable tests.
+
+Upstream-Status: Submitted (https://github.com/anholt/libepoxy/pull/158)
+Signed-off-by: Ross Burton 
+
+diff --git a/meson.build b/meson.build
+index b2ebaef..9632c7a 100644
+--- a/meson.build
 b/meson.build
+@@ -242,7 +242,10 @@ libepoxy_inc = [
+ 
+ subdir('include/epoxy')
+ subdir('src')
+-subdir('test')
++
++if get_option('tests')
++  subdir('test')
++endif
+ 
+ if get_option('docs')
+   doxygen = find_program('doxygen', required: false)
+diff --git a/meson_options.txt b/meson_options.txt
+index b5d7c98..dc30e68 100644
+--- a/meson_options.txt
 b/meson_options.txt
+@@ -15,3 +15,7 @@ option('x11',
+type: 'boolean',
+value: true,
+description: 'Enable X11 support (GLX or EGL-X11)')
++option('tests',
++   type: 'boolean',
++   value: true,
++   description: 'Build the 

[OE-core] [PATCH] glib: no need to depend on python3native

2018-03-01 Thread Ross Burton
The glib build doesn't appear to use python3native, so remove it to streamline
build dependencies.

Signed-off-by: Ross Burton 
---
 meta/recipes-core/glib-2.0/glib.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/glib-2.0/glib.inc 
b/meta/recipes-core/glib-2.0/glib.inc
index dc24a41a6a4..7e062eeb5da 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -30,7 +30,7 @@ PACKAGES += "${PN}-codegen ${PN}-utils"
 
 LEAD_SONAME = "libglib-2.0.*"
 
-inherit autotools gettext gtk-doc pkgconfig ptest-gnome 
upstream-version-is-even bash-completion gio-module-cache python3native manpages
+inherit autotools gettext gtk-doc pkgconfig ptest-gnome 
upstream-version-is-even bash-completion gio-module-cache manpages
 
 S = "${WORKDIR}/glib-${PV}"
 
-- 
2.11.0

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


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

2018-03-01 Thread Khem Raj
whole series LGTM

On Thu, Mar 1, 2018 at 10:26 AM, Ross Burton  wrote:
> Signed-off-by: Khem Raj 
> Signed-off-by: Ross Burton 
> ---
>  meta/conf/distro/include/tcmode-default.inc|  2 +-
>  ...tive_2.26.bb => cross-localedef-native_2.27.bb} |  4 +-
>  ...glibc-initial_2.26.bb => glibc-initial_2.27.bb} |  0
>  .../{glibc-locale_2.26.bb => glibc-locale_2.27.bb} |  0
>  .../{glibc-mtrace_2.26.bb => glibc-mtrace_2.27.bb} |  0
>  ...glibc-scripts_2.26.bb => glibc-scripts_2.27.bb} |  0
>  ...libc-Look-for-host-system-ld.so.cache-as-.patch | 12 +--
>  ...libc-Fix-buffer-overrun-with-a-relocated-.patch | 10 +--
>  ...libc-Raise-the-size-of-arrays-containing-.patch | 28 +++
>  ...ivesdk-glibc-Allow-64-bit-atomics-for-x86.patch |  8 +-
>  ...500-e5500-e6500-603e-fsqrt-implementation.patch |  6 +-
>  ...-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch |  8 +-
>  ...-Fix-undefined-reference-to-__sqrt_finite.patch |  6 +-
>  ...qrt-f-are-now-inline-functions-and-call-o.patch |  6 +-
>  ...bug-1443-which-explains-what-the-patch-do.patch | 10 +--
>  ...n-libm-err-tab.pl-with-specific-dirs-in-S.patch | 10 +--
>  ...qrt-f-are-now-inline-functions-and-call-o.patch |  6 +-
>  ...-configure.ac-handle-correctly-libc_cv_ro.patch |  8 +-
>  .../glibc/glibc/0013-Add-unused-attribute.patch|  8 +-
>  ...thin-the-path-sets-wrong-config-variables.patch | 10 +--
>  ...-timezone-re-written-tzselect-as-posix-sh.patch |  8 +-
>  ...move-bash-dependency-for-nscd-init-script.patch |  6 +-
>  ...c-Cross-building-and-testing-instructions.patch |  6 +-
>  ...018-eglibc-Help-bootstrap-cross-toolchain.patch |  8 +-
>  .../0019-eglibc-Clear-cache-lines-on-ppc8xx.patch  | 10 +--
>  ...0020-eglibc-Resolve-__fpscr_values-on-SH4.patch |  8 +-
>  .../glibc/0021-eglibc-Install-PIC-archives.patch   | 20 ++---
>  ...ward-port-cross-locale-generation-support.patch | 90 
> +++---
>  ...0023-Define-DUMMY_LOCALE_T-if-not-defined.patch |  8 +-
>  c-Make-_dl_build_local_scope-breadth-fir.patch | 10 +--
>  ...-locale-fix-hard-coded-reference-to-gcc-E.patch |  6 +-
>  ...6-reset-dl_load_write_lock-after-forking.patch} | 29 +++
>  ...o-lock-before-switching-to-malloc_atfork.patch} | 27 +--
>  .../glibc/{glibc_2.26.bb => glibc_2.27.bb} | 10 +--
>  34 files changed, 200 insertions(+), 188 deletions(-)
>  rename meta/recipes-core/glibc/{cross-localedef-native_2.26.bb => 
> cross-localedef-native_2.27.bb} (93%)
>  rename meta/recipes-core/glibc/{glibc-initial_2.26.bb => 
> glibc-initial_2.27.bb} (100%)
>  rename meta/recipes-core/glibc/{glibc-locale_2.26.bb => 
> glibc-locale_2.27.bb} (100%)
>  rename meta/recipes-core/glibc/{glibc-mtrace_2.26.bb => 
> glibc-mtrace_2.27.bb} (100%)
>  rename meta/recipes-core/glibc/{glibc-scripts_2.26.bb => 
> glibc-scripts_2.27.bb} (100%)
>  rename 
> meta/recipes-core/glibc/glibc/{0027-glibc-reset-dl-load-write-lock-after-forking.patch
>  => 0026-reset-dl_load_write_lock-after-forking.patch} (63%)
>  rename 
> meta/recipes-core/glibc/glibc/{0028-Bug-4578-add-ld.so-lock-while-fork.patch 
> => 0027-Acquire-ld.so-lock-before-switching-to-malloc_atfork.patch} (76%)
>  rename meta/recipes-core/glibc/{glibc_2.26.bb => glibc_2.27.bb} (92%)
>
> diff --git a/meta/conf/distro/include/tcmode-default.inc 
> b/meta/conf/distro/include/tcmode-default.inc
> index 075d2c5b242..87a5920cada 100644
> --- a/meta/conf/distro/include/tcmode-default.inc
> +++ b/meta/conf/distro/include/tcmode-default.inc
> @@ -26,7 +26,7 @@ GCCVERSION ?= "7.%"
>  SDKGCCVERSION ?= "${GCCVERSION}"
>  BINUVERSION ?= "2.30%"
>  GDBVERSION ?= "8.0%"
> -GLIBCVERSION ?= "2.26%"
> +GLIBCVERSION ?= "2.27%"
>  LINUXLIBCVERSION ?= "4.15%"
>
>  PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
> diff --git a/meta/recipes-core/glibc/cross-localedef-native_2.26.bb 
> b/meta/recipes-core/glibc/cross-localedef-native_2.27.bb
> similarity index 93%
> rename from meta/recipes-core/glibc/cross-localedef-native_2.26.bb
> rename to meta/recipes-core/glibc/cross-localedef-native_2.27.bb
> index af02a0ce1df..d633e9bc37e 100644
> --- a/meta/recipes-core/glibc/cross-localedef-native_2.26.bb
> +++ b/meta/recipes-core/glibc/cross-localedef-native_2.27.bb
> @@ -21,8 +21,8 @@ SRCBRANCH ?= "release/${PV}/master"
>  GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git"
>  UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+\.\d+(\.\d+)*)"
>
> -SRCREV_glibc ?= "d300041c533a3d837c9f37a099bcc95466860e98"
> -SRCREV_localedef ?= "dfb4afe551c6c6e94f9cc85417bd1f582168c843"
> +SRCREV_glibc ?= "23158b08a0908f381459f273a984c6fd328363cb"
> +SRCREV_localedef ?= "de5bdbd5e76b5403a4151b9b9f958b6cca36b3e7"
>
>  SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
> 
> git://github.com/kraj/localedef;branch=master;name=localedef;destsuffix=git/localedef
>  \
> diff --git a/meta/recipes-core/glibc/glibc-initial_2.26.bb 
> b/meta/recipes-core/glibc/glibc-initial_2.27.bb
> similarity index 100%
> rename 

[OE-core] ✗ patchtest: failure for "glibc: Upgrade to 2.27 release..." and 10 more

2018-03-01 Thread Patchwork
== Series Details ==

Series: "glibc: Upgrade to 2.27 release..." and 10 more
Revision: 1
URL   : https://patchwork.openembedded.org/series/11173/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue Upstream-Status is Inappropriate, but no reason was 
provided [test_upstream_status_presence_format] 
  Suggested fixInclude a brief reason why relocate-locales.patch is 
inappropriate
  Current  Upstream-Status: Inappropriate (OE-specific)
  Standard format  Upstream-Status: Inappropriate [reason]



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


[OE-core] [PATCH 11/11] glibc: Enable static PIE support when security_flags are enabled

2018-03-01 Thread Ross Burton
From: Khem Raj 

Signed-off-by: Khem Raj 
Signed-off-by: Ross Burton 
---
 meta/conf/distro/include/security_flags.inc | 2 ++
 meta/recipes-core/glibc/glibc_2.27.bb   | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/meta/conf/distro/include/security_flags.inc 
b/meta/conf/distro/include/security_flags.inc
index 49d2417a882..d66dd576493 100644
--- a/meta/conf/distro/include/security_flags.inc
+++ b/meta/conf/distro/include/security_flags.inc
@@ -6,6 +6,7 @@
 # in the DISTRO="poky-lsb" configuration.
 
 GCCPIE ?= "--enable-default-pie"
+GLIBCPIE ?= "--enable-static-pie"
 
 # _FORTIFY_SOURCE requires -O1 or higher, so disable in debug builds as they 
use
 # -O0 which then results in a compiler warning.
@@ -30,6 +31,7 @@ SECURITY_X_LDFLAGS ?= "-fstack-protector-strong -Wl,-z,relro"
 SECURITY_CFLAGS_powerpc = "-fstack-protector-strong ${lcl_maybe_fortify} 
${SECURITY_NOPIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libgcc_powerpc = ""
 GCCPIE_powerpc = ""
+GLIBCPIE_powerpc = ""
 
 # arm specific security flag issues
 SECURITY_CFLAGS_pn-glibc = ""
diff --git a/meta/recipes-core/glibc/glibc_2.27.bb 
b/meta/recipes-core/glibc/glibc_2.27.bb
index 2434c061056..bcc1acfbc28 100644
--- a/meta/recipes-core/glibc/glibc_2.27.bb
+++ b/meta/recipes-core/glibc/glibc_2.27.bb
@@ -69,6 +69,8 @@ GLIBC_BROKEN_LOCALES = ""
 #
 COMPATIBLE_HOST_libc-musl_class-target = "null"
 
+GLIBCPIE ??= ""
+
 EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
 --without-cvs --disable-profile \
 --disable-debug --without-gd \
@@ -82,6 +84,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
 --enable-bind-now \
 --enable-stack-protector=strong \
 --enable-stackguard-randomization \
+${GLIBCPIE} \
 ${GLIBC_EXTRA_OECONF}"
 
 EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
-- 
2.11.0

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


[OE-core] [PATCH 04/11] glibc: relocate locale paths in nativesdk

2018-03-01 Thread Ross Burton
nativesdk is built with a specific prefix but this will be different at install
time, however glibc hard-codes the path to locale files. Expand these strings 
to 4K and move them to a magic segment which we can relocate when the SDK is 
installed.

Signed-off-by: Ross Burton 
---
 .../glibc/glibc/relocate-locales.patch | 55 ++
 meta/recipes-core/glibc/glibc_2.27.bb  |  1 +
 2 files changed, 56 insertions(+)
 create mode 100644 meta/recipes-core/glibc/glibc/relocate-locales.patch

diff --git a/meta/recipes-core/glibc/glibc/relocate-locales.patch 
b/meta/recipes-core/glibc/glibc/relocate-locales.patch
new file mode 100644
index 000..2aea37f5cad
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc/relocate-locales.patch
@@ -0,0 +1,55 @@
+The glibc locale path is hard-coded to the install prefix, but in SDKs we need
+to be able to relocate the binaries.  Expand the strings to 4K and put them in 
a
+magic segment that we can relocate at install time.
+
+Upstream-Status: Inappropriate (OE-specific)
+Signed-off-by: Ross Burton 
+
+diff --git a/locale/findlocale.c b/locale/findlocale.c
+index 872cadb5..da14fa39 100644
+--- a/locale/findlocale.c
 b/locale/findlocale.c
+@@ -56,7 +56,7 @@ struct __locale_data *const _nl_C[] attribute_hidden =
+which are somehow addressed.  */
+ struct loaded_l10nfile *_nl_locale_file_list[__LC_LAST];
+ 
+-const char _nl_default_locale_path[] attribute_hidden = COMPLOCALEDIR;
++char _nl_default_locale_path[4096] attribute_hidden __attribute__ ((section 
(".gccrelocprefix"))) = COMPLOCALEDIR;
+ 
+ /* Checks if the name is actually present, that is, not NULL and not
+empty.  */
+@@ -167,7 +167,7 @@ _nl_find_locale (const char *locale_path, size_t 
locale_path_len,
+ 
+   /* Nothing in the archive.  Set the default path to search below.  */
+   locale_path = _nl_default_locale_path;
+-  locale_path_len = sizeof _nl_default_locale_path;
++  locale_path_len = strlen(locale_path) + 1;
+ }
+   else
+ /* We really have to load some data.  First see whether the name is
+diff --git a/locale/localeinfo.h b/locale/localeinfo.h
+index 68822a63..537bc351 100644
+--- a/locale/localeinfo.h
 b/locale/localeinfo.h
+@@ -325,7 +325,7 @@ _nl_lookup_word (locale_t l, int category, int item)
+ }
+ 
+ /* Default search path if no LOCPATH environment variable.  */
+-extern const char _nl_default_locale_path[] attribute_hidden;
++extern char _nl_default_locale_path[4096] attribute_hidden;
+ 
+ /* Load the locale data for CATEGORY from the file specified by *NAME.
+If *NAME is "", use environment variables as specified by POSIX, and
+diff --git a/locale/loadarchive.c b/locale/loadarchive.c
+index 516d30d8..792b37fb 100644
+--- a/locale/loadarchive.c
 b/locale/loadarchive.c
+@@ -42,7 +43,7 @@
+ 
+ 
+ /* Name of the locale archive file.  */
+-static const char archfname[] = COMPLOCALEDIR "/locale-archive";
++static const char archfname[4096] __attribute__ ((section 
(".gccrelocprefix"))) = COMPLOCALEDIR "/locale-archive";
+ 
+ /* Size of initial mapping window, optimal if large enough to
+cover the header plus the initial locale.  */
diff --git a/meta/recipes-core/glibc/glibc_2.27.bb 
b/meta/recipes-core/glibc/glibc_2.27.bb
index b6b66250224..2434c061056 100644
--- a/meta/recipes-core/glibc/glibc_2.27.bb
+++ b/meta/recipes-core/glibc/glibc_2.27.bb
@@ -50,6 +50,7 @@ NATIVESDKFIXES_class-nativesdk = "\

file://0002-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch \

file://0003-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch \
file://0004-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch \
+   file://relocate-locales.patch \
 "
 
 S = "${WORKDIR}/git"
-- 
2.11.0

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


[OE-core] [PATCH 09/11] populate_sdk: install UTF-8 locales in SDKs

2018-03-01 Thread Ross Burton
As glibc 2.27 can't read older locale-archives, SDKs using glibc 2.27 on hosts
using glibc earlier than 2.27 won't be able to find any locales, so bitbake
won't start and Python can't use UTF-8.

So by default install all locales into the SDK.  Special-case Extensible SDKs by
installing no locales as they ship glibc in a buildtools, and that will have the
locales.

Locale installation requires cross-localedef, so add that to DEPENDS.

Also remove the explicit en_US addition in buildtools-tarball as it is now
redundant.

Signed-off-by: Ross Burton 
---
 meta/classes/populate_sdk_base.bbclass   | 5 -
 meta/classes/populate_sdk_ext.bbclass| 3 ++-
 meta/recipes-core/meta/buildtools-tarball.bb | 1 -
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/meta/classes/populate_sdk_base.bbclass 
b/meta/classes/populate_sdk_base.bbclass
index acb91d7d63a..be5970a4bbc 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -23,6 +23,9 @@ SDKIMAGE_INSTALL_COMPLEMENTARY = 
'${@complementary_globs("SDKIMAGE_FEATURES", d)
 PACKAGE_ARCHS_append_task-populate-sdk = " sdk-provides-dummy-target"
 SDK_PACKAGE_ARCHS += "sdk-provides-dummy-${SDKPKGSUFFIX}"
 
+# List of locales to install, or "all" for all of them, or unset for none.
+SDKIMAGE_LINGUAS ?= "all"
+
 inherit rootfs_${IMAGE_PKGTYPE}
 
 SDK_DIR = "${WORKDIR}/sdk"
@@ -43,7 +46,7 @@ TOOLCHAIN_TARGET_TASK_ATTEMPTONLY ?= ""
 TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
 
 SDK_RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}"
-SDK_DEPENDS = "virtual/fakeroot-native pixz-native"
+SDK_DEPENDS = "virtual/fakeroot-native pixz-native cross-localedef-native"
 
 # We want the MULTIARCH_TARGET_SYS to point to the TUNE_PKGARCH, not 
PACKAGE_ARCH as it
 # could be set to the MACHINE_ARCH
diff --git a/meta/classes/populate_sdk_ext.bbclass 
b/meta/classes/populate_sdk_ext.bbclass
index d7a08840371..655375416be 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -655,7 +655,8 @@ fakeroot python do_populate_sdk_ext() {
 d.setVar('SDK_REQUIRED_UTILITIES', 
get_sdk_required_utilities(buildtools_fn, d))
 d.setVar('SDK_BUILDTOOLS_INSTALLER', buildtools_fn)
 d.setVar('SDKDEPLOYDIR', '${SDKEXTDEPLOYDIR}')
-
+# ESDKs have a libc from the buildtools so ensure we don't ship linguas 
twice
+d.delVar('SDKIMAGE_LINGUAS')
 populate_sdk_common(d)
 }
 
diff --git a/meta/recipes-core/meta/buildtools-tarball.bb 
b/meta/recipes-core/meta/buildtools-tarball.bb
index be37c442104..d98a9c901ce 100644
--- a/meta/recipes-core/meta/buildtools-tarball.bb
+++ b/meta/recipes-core/meta/buildtools-tarball.bb
@@ -21,7 +21,6 @@ TOOLCHAIN_HOST_TASK ?= "\
 nativesdk-wget \
 nativesdk-ca-certificates \
 nativesdk-texinfo \
-nativesdk-locale-base-en-us \
 "
 
 MULTIMACH_TARGET_SYS = "${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}"
-- 
2.11.0

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


[OE-core] [PATCH 07/11] package-manager: add install_glob()

2018-03-01 Thread Ross Burton
Signed-off-by: Ross Burton 
---
 meta/lib/oe/package_manager.py | 23 +++
 1 file changed, 23 insertions(+)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index e37dd4e8a2f..7a5796a3a57 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -371,6 +371,29 @@ class PackageManager(object, metaclass=ABCMeta):
 pass
 
 """
+Install all packages that match a glob.
+"""
+def install_glob(self, globs, sdk=False):
+# TODO don't have sdk here but have a property on the superclass
+# (and respect in install_complementary)
+if sdk:
+pkgdatadir = self.d.expand("${TMPDIR}/pkgdata/${SDK_SYS}")
+else:
+pkgdatadir = self.d.getVar("PKGDATA_DIR")
+
+try:
+bb.note("Installing globbed packages...")
+cmd = ["oe-pkgdata-util", "-p", pkgdatadir, "list-pkgs", globs]
+pkgs = subprocess.check_output(cmd, 
stderr=subprocess.STDOUT).decode("utf-8")
+self.install(pkgs.split(), attempt_only=True)
+except subprocess.CalledProcessError as e:
+# Return code 1 means no packages matched
+if e.returncode != 1:
+bb.fatal("Could not compute globbed packages list. Command "
+ "'%s' returned %d:\n%s" %
+ (' '.join(cmd), e.returncode, 
e.output.decode("utf-8")))
+
+"""
 Install complementary packages based upon the list of currently installed
 packages e.g. locales, *-dev, *-dbg, etc. This will only attempt to install
 these packages, if they don't exist then no error will occur.  Note: every
-- 
2.11.0

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


[OE-core] [PATCH 10/11] sdk: generate locale archive and remove packages

2018-03-01 Thread Ross Burton
Signed-off-by: Ross Burton 
---
 meta/lib/oe/sdk.py | 56 --
 1 file changed, 54 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index aa6597a8495..76fe02c37b2 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -7,6 +7,51 @@ import shutil
 import glob
 import traceback
 
+def generate_locale_archive(d, rootfs):
+# Pretty sure we don't need this for SDK archive generation but
+# keeping it to be safe...
+target_arch = d.getVar('SDK_ARCH')
+locale_arch_options = { \
+"arm": ["--uint32-align=4", "--little-endian"],
+"armeb": ["--uint32-align=4", "--big-endian"],
+"aarch64": ["--uint32-align=4", "--little-endian"],
+"aarch64_be": ["--uint32-align=4", "--big-endian"],
+"sh4": ["--uint32-align=4", "--big-endian"],
+"powerpc": ["--uint32-align=4", "--big-endian"],
+"powerpc64": ["--uint32-align=4", "--big-endian"],
+"mips": ["--uint32-align=4", "--big-endian"],
+"mipsisa32r6": ["--uint32-align=4", "--big-endian"],
+"mips64": ["--uint32-align=4", "--big-endian"],
+"mipsisa64r6": ["--uint32-align=4", "--big-endian"],
+"mipsel": ["--uint32-align=4", "--little-endian"],
+"mipsisa32r6el": ["--uint32-align=4", "--little-endian"],
+"mips64el": ["--uint32-align=4", "--little-endian"],
+"mipsisa64r6el": ["--uint32-align=4", "--little-endian"],
+"i586": ["--uint32-align=4", "--little-endian"],
+"i686": ["--uint32-align=4", "--little-endian"],
+"x86_64": ["--uint32-align=4", "--little-endian"]
+}
+if target_arch in locale_arch_options:
+arch_options = locale_arch_options[target_arch]
+else:
+bb.error("locale_arch_options not found for target_arch=" + 
target_arch)
+bb.fatal("unknown arch:" + target_arch + " for locale_arch_options")
+
+localedir = oe.path.join(rootfs, d.getVar("libdir_nativesdk"), "locale")
+# Need to set this so cross-localedef knows where the archive is
+env = dict(os.environ)
+env["LOCALEARCHIVE"] = oe.path.join(localedir, "locale-archive")
+
+for name in os.listdir(localedir):
+path = os.path.join(localedir, name)
+if os.path.isdir(path):
+try:
+cmd = ["cross-localedef", "--verbose"]
+cmd += arch_options
+cmd += ["--add-to-archive", path]
+subprocess.check_output(cmd, env=env, stderr=subprocess.STDOUT)
+except Exception as e:
+bb.fatal("Cannot create locale archive: %s" % e.output)
 
 class Sdk(object, metaclass=ABCMeta):
 def __init__(self, d, manifest_dir):
@@ -87,11 +132,18 @@ class Sdk(object, metaclass=ABCMeta):
 def install_locales(self, pm):
 linguas = self.d.getVar("SDKIMAGE_LINGUAS")
 if linguas:
+import fnmatch
+# Install the binary locales
 if linguas == "all":
-pm.install_glob("nativesdk-locale-base-*.utf-8", sdk=True)
+pm.install_glob("nativesdk-glibc-binary-localedata-*.utf-8", 
sdk=True)
 else:
 for lang in linguas.split():
-pm.install("nativesdk-locale-base-%s.utf-8" % lang)
+pm.install("nativesdk-glibc-binary-localedata-%s.utf-8" % 
lang)
+# Generate a locale archive of them
+generate_locale_archive(self.d, 
oe.path.join(self.sdk_host_sysroot, self.sdk_native_path))
+# And now delete the binary locales
+pkgs = fnmatch.filter(pm.list_installed(), 
"nativesdk-glibc-binary-localedata-*.utf-8")
+pm.remove(pkgs)
 else:
 # No linguas so do nothing
 pass
-- 
2.11.0

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


[OE-core] [PATCH 06/11] package_manager: improve install_complementary

2018-03-01 Thread Ross Burton
- No need to use bb.utils.which() as subprocess will search $PATH
- Clarity flow by moving the install inside the try/except

Signed-off-by: Ross Burton 
---
 meta/lib/oe/package_manager.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index f7e013437c9..e37dd4e8a2f 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -402,7 +402,7 @@ class PackageManager(object, metaclass=ABCMeta):
 installed_pkgs.write(output)
 installed_pkgs.flush()
 
-cmd = [bb.utils.which(os.getenv('PATH'), "oe-pkgdata-util"),
+cmd = ["oe-pkgdata-util",
"-p", self.d.getVar('PKGDATA_DIR'), "glob", 
installed_pkgs.name,
globs]
 exclude = self.d.getVar('PACKAGE_EXCLUDE_COMPLEMENTARY')
@@ -412,11 +412,11 @@ class PackageManager(object, metaclass=ABCMeta):
 bb.note("Installing complementary packages ...")
 bb.note('Running %s' % cmd)
 complementary_pkgs = subprocess.check_output(cmd, 
stderr=subprocess.STDOUT).decode("utf-8")
+self.install(complementary_pkgs.split(), attempt_only=True)
 except subprocess.CalledProcessError as e:
 bb.fatal("Could not compute complementary packages list. 
Command "
  "'%s' returned %d:\n%s" %
  (' '.join(cmd), e.returncode, 
e.output.decode("utf-8")))
-self.install(complementary_pkgs.split(), attempt_only=True)
 
 def deploy_dir_lock(self):
 if self.deploy_dir is None:
-- 
2.11.0

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


[OE-core] [PATCH 05/11] cross-localedef-native: add way to specify which locale archive to write

2018-03-01 Thread Ross Burton
localedef has no way to specify which locale archive to use, and the
compile-time default isn't useful as it points to the work directory.

Add support to read an environmental variable for the path, and don't fail to
write a new locale archive.

Signed-off-by: Ross Burton 
---
 .../glibc/cross-localedef-native_2.27.bb   |  1 +
 meta/recipes-core/glibc/glibc/archive-path.patch   | 39 ++
 2 files changed, 40 insertions(+)
 create mode 100644 meta/recipes-core/glibc/glibc/archive-path.patch

diff --git a/meta/recipes-core/glibc/cross-localedef-native_2.27.bb 
b/meta/recipes-core/glibc/cross-localedef-native_2.27.bb
index d633e9bc37e..f1e4a657cf4 100644
--- a/meta/recipes-core/glibc/cross-localedef-native_2.27.bb
+++ b/meta/recipes-core/glibc/cross-localedef-native_2.27.bb
@@ -35,6 +35,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
file://0021-eglibc-Install-PIC-archives.patch \

file://0022-eglibc-Forward-port-cross-locale-generation-support.patch \
file://0023-Define-DUMMY_LOCALE_T-if-not-defined.patch \
+   file://archive-path.patch \
 "
 # Makes for a rather long rev (22 characters), but...
 #
diff --git a/meta/recipes-core/glibc/glibc/archive-path.patch 
b/meta/recipes-core/glibc/glibc/archive-path.patch
new file mode 100644
index 000..b0d3158cfe4
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc/archive-path.patch
@@ -0,0 +1,39 @@
+localedef --add-to-archive uses a hard-coded locale path which doesn't exist in
+normal use, and there's no way to pass an alternative filename.
+
+Add a fallback of $LOCALEARCHIVE from the environment, and allow creation of 
new locale archives that are not the system archive.
+
+Upstream-Status: Inappropriate (OE-specific)
+Signed-off-by: Ross Burton 
+
+diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c
+index ca332a34..6b7ba9b2 100644
+--- a/locale/programs/locarchive.c
 b/locale/programs/locarchive.c
+@@ -569,10 +569,13 @@ open_archive (struct locarhandle *ah, bool readonly)
+   /* If ah has a non-NULL fname open that otherwise open the default.  */
+   if (archivefname == NULL)
+ {
+-  archivefname = default_fname;
+-  if (output_prefix)
+-memcpy (default_fname, output_prefix, prefix_len);
+-  strcpy (default_fname + prefix_len, ARCHIVE_NAME);
++  archivefname = getenv("LOCALEARCHIVE");
++  if (archivefname == NULL) {
++  archivefname = default_fname;
++  if (output_prefix)
++memcpy (default_fname, output_prefix, prefix_len);
++  strcpy (default_fname + prefix_len, ARCHIVE_NAME);
++  }
+ }
+ 
+   while (1)
+@@ -585,7 +588,7 @@ open_archive (struct locarhandle *ah, bool readonly)
+the default locale archive we ignore the failure and
+list an empty archive, otherwise we print an error
+and exit.  */
+-if (errno == ENOENT && archivefname == default_fname)
++if (errno == ENOENT)
+   {
+ if (readonly)
+   {
-- 
2.11.0

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


[OE-core] [PATCH 08/11] sdk: install specified locales into SDK

2018-03-01 Thread Ross Burton
Signed-off-by: Ross Burton 
---
 meta/lib/oe/sdk.py | 16 
 1 file changed, 16 insertions(+)

diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index 6dc96b5f064..aa6597a8495 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -84,6 +84,19 @@ class Sdk(object, metaclass=ABCMeta):
 bb.debug(1, "printing the stack trace\n %s" 
%traceback.format_exc())
 bb.warn("cannot remove SDK dir: %s" % path)
 
+def install_locales(self, pm):
+linguas = self.d.getVar("SDKIMAGE_LINGUAS")
+if linguas:
+if linguas == "all":
+pm.install_glob("nativesdk-locale-base-*.utf-8", sdk=True)
+else:
+for lang in linguas.split():
+pm.install("nativesdk-locale-base-%s.utf-8" % lang)
+else:
+# No linguas so do nothing
+pass
+
+
 class RpmSdk(Sdk):
 def __init__(self, d, manifest_dir=None, rpm_workdir="oe-sdk-repo"):
 super(RpmSdk, self).__init__(d, manifest_dir)
@@ -147,6 +160,7 @@ class RpmSdk(Sdk):
 
 bb.note("Installing NATIVESDK packages")
 self._populate_sysroot(self.host_pm, self.host_manifest)
+self.install_locales(self.host_pm)
 
 execute_pre_post_process(self.d, 
self.d.getVar("POPULATE_SDK_POST_HOST_COMMAND"))
 
@@ -230,6 +244,7 @@ class OpkgSdk(Sdk):
 
 bb.note("Installing NATIVESDK packages")
 self._populate_sysroot(self.host_pm, self.host_manifest)
+self.install_locales(self.host_pm)
 
 execute_pre_post_process(self.d, 
self.d.getVar("POPULATE_SDK_POST_HOST_COMMAND"))
 
@@ -316,6 +331,7 @@ class DpkgSdk(Sdk):
 
 bb.note("Installing NATIVESDK packages")
 self._populate_sysroot(self.host_pm, self.host_manifest)
+self.install_locales(self.host_pm)
 
 execute_pre_post_process(self.d, 
self.d.getVar("POPULATE_SDK_POST_HOST_COMMAND"))
 
-- 
2.11.0

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


[OE-core] [PATCH 01/11] glibc: Upgrade to 2.27 release

2018-03-01 Thread Ross Burton
Signed-off-by: Khem Raj 
Signed-off-by: Ross Burton 
---
 meta/conf/distro/include/tcmode-default.inc|  2 +-
 ...tive_2.26.bb => cross-localedef-native_2.27.bb} |  4 +-
 ...glibc-initial_2.26.bb => glibc-initial_2.27.bb} |  0
 .../{glibc-locale_2.26.bb => glibc-locale_2.27.bb} |  0
 .../{glibc-mtrace_2.26.bb => glibc-mtrace_2.27.bb} |  0
 ...glibc-scripts_2.26.bb => glibc-scripts_2.27.bb} |  0
 ...libc-Look-for-host-system-ld.so.cache-as-.patch | 12 +--
 ...libc-Fix-buffer-overrun-with-a-relocated-.patch | 10 +--
 ...libc-Raise-the-size-of-arrays-containing-.patch | 28 +++
 ...ivesdk-glibc-Allow-64-bit-atomics-for-x86.patch |  8 +-
 ...500-e5500-e6500-603e-fsqrt-implementation.patch |  6 +-
 ...-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch |  8 +-
 ...-Fix-undefined-reference-to-__sqrt_finite.patch |  6 +-
 ...qrt-f-are-now-inline-functions-and-call-o.patch |  6 +-
 ...bug-1443-which-explains-what-the-patch-do.patch | 10 +--
 ...n-libm-err-tab.pl-with-specific-dirs-in-S.patch | 10 +--
 ...qrt-f-are-now-inline-functions-and-call-o.patch |  6 +-
 ...-configure.ac-handle-correctly-libc_cv_ro.patch |  8 +-
 .../glibc/glibc/0013-Add-unused-attribute.patch|  8 +-
 ...thin-the-path-sets-wrong-config-variables.patch | 10 +--
 ...-timezone-re-written-tzselect-as-posix-sh.patch |  8 +-
 ...move-bash-dependency-for-nscd-init-script.patch |  6 +-
 ...c-Cross-building-and-testing-instructions.patch |  6 +-
 ...018-eglibc-Help-bootstrap-cross-toolchain.patch |  8 +-
 .../0019-eglibc-Clear-cache-lines-on-ppc8xx.patch  | 10 +--
 ...0020-eglibc-Resolve-__fpscr_values-on-SH4.patch |  8 +-
 .../glibc/0021-eglibc-Install-PIC-archives.patch   | 20 ++---
 ...ward-port-cross-locale-generation-support.patch | 90 +++---
 ...0023-Define-DUMMY_LOCALE_T-if-not-defined.patch |  8 +-
 c-Make-_dl_build_local_scope-breadth-fir.patch | 10 +--
 ...-locale-fix-hard-coded-reference-to-gcc-E.patch |  6 +-
 ...6-reset-dl_load_write_lock-after-forking.patch} | 29 +++
 ...o-lock-before-switching-to-malloc_atfork.patch} | 27 +--
 .../glibc/{glibc_2.26.bb => glibc_2.27.bb} | 10 +--
 34 files changed, 200 insertions(+), 188 deletions(-)
 rename meta/recipes-core/glibc/{cross-localedef-native_2.26.bb => 
cross-localedef-native_2.27.bb} (93%)
 rename meta/recipes-core/glibc/{glibc-initial_2.26.bb => 
glibc-initial_2.27.bb} (100%)
 rename meta/recipes-core/glibc/{glibc-locale_2.26.bb => glibc-locale_2.27.bb} 
(100%)
 rename meta/recipes-core/glibc/{glibc-mtrace_2.26.bb => glibc-mtrace_2.27.bb} 
(100%)
 rename meta/recipes-core/glibc/{glibc-scripts_2.26.bb => 
glibc-scripts_2.27.bb} (100%)
 rename 
meta/recipes-core/glibc/glibc/{0027-glibc-reset-dl-load-write-lock-after-forking.patch
 => 0026-reset-dl_load_write_lock-after-forking.patch} (63%)
 rename 
meta/recipes-core/glibc/glibc/{0028-Bug-4578-add-ld.so-lock-while-fork.patch => 
0027-Acquire-ld.so-lock-before-switching-to-malloc_atfork.patch} (76%)
 rename meta/recipes-core/glibc/{glibc_2.26.bb => glibc_2.27.bb} (92%)

diff --git a/meta/conf/distro/include/tcmode-default.inc 
b/meta/conf/distro/include/tcmode-default.inc
index 075d2c5b242..87a5920cada 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -26,7 +26,7 @@ GCCVERSION ?= "7.%"
 SDKGCCVERSION ?= "${GCCVERSION}"
 BINUVERSION ?= "2.30%"
 GDBVERSION ?= "8.0%"
-GLIBCVERSION ?= "2.26%"
+GLIBCVERSION ?= "2.27%"
 LINUXLIBCVERSION ?= "4.15%"
 
 PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
diff --git a/meta/recipes-core/glibc/cross-localedef-native_2.26.bb 
b/meta/recipes-core/glibc/cross-localedef-native_2.27.bb
similarity index 93%
rename from meta/recipes-core/glibc/cross-localedef-native_2.26.bb
rename to meta/recipes-core/glibc/cross-localedef-native_2.27.bb
index af02a0ce1df..d633e9bc37e 100644
--- a/meta/recipes-core/glibc/cross-localedef-native_2.26.bb
+++ b/meta/recipes-core/glibc/cross-localedef-native_2.27.bb
@@ -21,8 +21,8 @@ SRCBRANCH ?= "release/${PV}/master"
 GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git"
 UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+\.\d+(\.\d+)*)"
 
-SRCREV_glibc ?= "d300041c533a3d837c9f37a099bcc95466860e98"
-SRCREV_localedef ?= "dfb4afe551c6c6e94f9cc85417bd1f582168c843"
+SRCREV_glibc ?= "23158b08a0908f381459f273a984c6fd328363cb"
+SRCREV_localedef ?= "de5bdbd5e76b5403a4151b9b9f958b6cca36b3e7"
 
 SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \

git://github.com/kraj/localedef;branch=master;name=localedef;destsuffix=git/localedef
 \
diff --git a/meta/recipes-core/glibc/glibc-initial_2.26.bb 
b/meta/recipes-core/glibc/glibc-initial_2.27.bb
similarity index 100%
rename from meta/recipes-core/glibc/glibc-initial_2.26.bb
rename to meta/recipes-core/glibc/glibc-initial_2.27.bb
diff --git a/meta/recipes-core/glibc/glibc-locale_2.26.bb 
b/meta/recipes-core/glibc/glibc-locale_2.27.bb
similarity index 100%
rename from 

[OE-core] [PATCH 02/11] default-distrovars: don't rename locales for nativesdk

2018-03-01 Thread Ross Burton
Signed-off-by: Ross Burton 
---
 meta/conf/distro/include/default-distrovars.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/conf/distro/include/default-distrovars.inc 
b/meta/conf/distro/include/default-distrovars.inc
index 08542a743f9..76d09af7266 100644
--- a/meta/conf/distro/include/default-distrovars.inc
+++ b/meta/conf/distro/include/default-distrovars.inc
@@ -8,6 +8,7 @@ IMAGE_LINGUAS ?= "en-us en-gb"
 ENABLE_BINARY_LOCALE_GENERATION ?= "1"
 LOCALE_UTF8_ONLY ?= "0"
 LOCALE_UTF8_IS_DEFAULT ?= "1"
+LOCALE_UTF8_IS_DEFAULT_class-nativesdk = "0"
 
 DISTRO_FEATURES_DEFAULT ?= "acl alsa argp bluetooth ext2 irda largefile pcmcia 
usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11"
 DISTRO_FEATURES_LIBC_DEFAULT ?= "ipv4 ipv6 libc-backtrace libc-big-macros 
libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt \
-- 
2.11.0

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


[OE-core] [PATCH 03/11] glibc: don't use host locales in nativesdk

2018-03-01 Thread Ross Burton
Signed-off-by: Ross Burton 
---
 meta/recipes-core/glibc/glibc_2.27.bb | 6 --
 1 file changed, 6 deletions(-)

diff --git a/meta/recipes-core/glibc/glibc_2.27.bb 
b/meta/recipes-core/glibc/glibc_2.27.bb
index e9d4117a470..b6b66250224 100644
--- a/meta/recipes-core/glibc/glibc_2.27.bb
+++ b/meta/recipes-core/glibc/glibc_2.27.bb
@@ -133,12 +133,6 @@ do_compile () {
 
 }
 
-# Use the host locale archive when built for nativesdk so that we don't need to
-# ship a complete (100MB) locale set.
-do_compile_prepend_class-nativesdk() {
-echo "complocaledir=/usr/lib/locale" >> ${S}/configparms
-}
-
 require glibc-package.inc
 
 BBCLASSEXTEND = "nativesdk"
-- 
2.11.0

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


Re: [OE-core] [PATCH v3 04/21] grub-efi: if installed and EFI_PROVIDER, install as bootx64 or bootia32

2018-03-01 Thread Cal Sullivan



On 02/28/2018 06:34 PM, Anuj Mittal wrote:

Hi Cal,

On 03/01/2018 10:15 AM, California Sullivan wrote:

This way we could theoretically support multiple bootloaders, and we
keep the convention of boot(x64|ia32).

Signed-off-by: California Sullivan 
---
  meta/recipes-bsp/grub/grub-efi_2.02.bb | 13 -
  1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-bsp/grub/grub-efi_2.02.bb 
b/meta/recipes-bsp/grub/grub-efi_2.02.bb
index c5a68f01cef..ed27b90fdbc 100644
--- a/meta/recipes-bsp/grub/grub-efi_2.02.bb
+++ b/meta/recipes-bsp/grub/grub-efi_2.02.bb
@@ -15,16 +15,19 @@ S = "${WORKDIR}/grub-${PV}"
  python __anonymous () {
  import re
  target = d.getVar('TARGET_ARCH')
+prefix = "" if d.getVar('EFI_PROVIDER') == "grub-efi" else "grub-efi-"
  if target == "x86_64":
  grubtarget = 'x86_64'
-grubimage = "grub-efi-bootx64.efi"
+grubimage = prefix + "bootx64.efi"
  elif re.match('i.86', target):
  grubtarget = 'i386'
-grubimage = "grub-efi-bootia32.efi"
+grubimage = prefix + "bootia32.efi"
  else:
  raise bb.parse.SkipRecipe("grub-efi is incompatible with target %s" % 
target)
  d.setVar("GRUB_TARGET", grubtarget)
  d.setVar("GRUB_IMAGE", grubimage)
+prefix = "grub-efi-" if prefix == "" else ""
+d.setVar("GRUB_IMAGE_PREFIX", prefix)
  }
  
  inherit deploy

@@ -41,7 +44,7 @@ do_mkimage() {
# Search for the grub.cfg on the local boot media by using the
# built in cfg file provided via this recipe
grub-mkimage -c ../cfg -p /EFI/BOOT -d ./grub-core/ \
-  -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE} \
+  -O ${GRUB_TARGET}-efi -o 
./${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} \
   ${GRUB_BUILDIN}
  }
  
@@ -55,7 +58,7 @@ do_install_append_class-target() {

install -d ${D}/boot
install -d ${D}/boot/EFI
install -d ${D}/boot/EFI/BOOT
-   install -m 644 ${B}/${GRUB_IMAGE} ${D}/boot/EFI/BOOT/
+   install -m 644 ${B}/${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} 
${D}/boot/EFI/BOOT/${GRUB_IMAGE}
  }
  
  do_install_class-native() {

@@ -79,7 +82,7 @@ GRUB_BUILDIN ?= "boot linux ext2 fat serial part_msdos 
part_gpt normal \
   efi_gop iso9660 configfile search loadenv test"
  
  do_deploy() {

-   install -m 644 ${B}/${GRUB_IMAGE} ${DEPLOYDIR}
+   install -m 644 ${B}/${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} ${DEPLOYDIR}
  }
  
  do_deploy_class-native() {



Should FILES_${PN} also be changed to add prefix?
Nope, only ${GRUB_IMAGE}. It gets installed as ${GRUB_IMAGE}, which will 
either be grub-efi-bootx64.efi or bootx64.efi (or ia32 equivalents). 
${GRUB_IMAGE_PREFIX} is only used to set the build target, input file 
for installation, and deploy target. ${GRUB_IMAGE_PREFIX} will always be 
either "grub-efi" or "", and together ${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} 
will always create grub-efi-boot(x64|ia32).efi.


The goal of this is to install as boot(x64|ia32).efi if it is selected 
as the EFI_PROVIDER, and install as the complete name otherwise. This 
allows one efi bootloader to be installed as the standard 
boot(x64|ia32).efi, while still being able to coexist with other efi 
bootloaders.


Thanks,
Cal


Thanks,
Anuj



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


Re: [OE-core] [PATCH V3 1/2] binutils: Upgrade to 2.30 release

2018-03-01 Thread Burton, Ross
Filed a bug for this:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=12577

On 1 March 2018 at 09:43, Alexander Kanavin <
alexander.kana...@linux.intel.com> wrote:

> On 02/21/2018 05:12 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 in v2:
>>
>> - Backport fixes for aarch64 relocs
>> - ppc plt fix, dwarf-4 line number support and linker script fix for
>> removing PROVODE
>>
>> Changes in v3:
>> - None
>>
>
> I did some bisection and unfortunately this cases breakage when musl,
> systemd and gobject introspection are all enabled:
>
> | i586-poky-linux-musl-libtool: link: i586-poky-linux-musl-gcc -m32
> -march=i586 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat
> -Wformat-security -Werror=format-security --sysroot=/home/ak/development
> /poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot -o
> /home/ak/development/poky/build/tmp/work/i586-poky-linux-
> musl/avahi/0.7-r0/build/avahi-gobject/tmp-introspectcefd3msq/.libs/Avahi-0.6
> -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/ak/de
> velopment/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.
> 7-r0=/usr/src/debug/avahi/0.7-r0 -fdebug-prefix-map=/home/ak/de
> velopment/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot-native=
> -fdebug-prefix-map=/home/ak/development/poky/build/tmp/work/
> i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot= -std=c99 -Wall -W
> -Wextra -pedantic -pipe -Wformat -Wold-style-definition
> -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations
> -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls
> -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith
> -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings
> -fdiagnostics-show-option -Wno-cast-qual -fno-strict-aliasing
> /home/ak/development/poky/build/tmp/work/i586-poky-linux-
> musl/avahi/0.7-r0/build/avahi-gobject/tmp-introspectcefd3msq/Avahi-0.6.o
> -Wl,--export-dynamic -pthread -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
> -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z -Wl,now
> -Wl,--export-dynamic  -L. ./.libs/libavahi-gobject.so
> /home/ak/development/poky/build/tmp/work/i586-poky-linux-
> musl/avahi/0.7-r0/build/avahi-client/.libs/libavahi-client.so -ldbus-1
> -ldl /home/ak/development/poky/build/tmp/work/i586-poky-linux-
> musl/avahi/0.7-r0/build/avahi-glib/.libs/libavahi-glib.so
> /home/ak/development/poky/build/tmp/work/i586-poky-linux-
> musl/avahi/0.7-r0/build/avahi-common/.libs/libavahi-common.so -lgio-2.0
> -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -pthread
> | Error relocating /home/ak/development/poky/buil
> d/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot//lib/libsystemd.so.0:
> __start_BUS_ERROR_MAP: symbol not found
> | Error relocating /home/ak/development/poky/buil
> d/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot//lib/libsystemd.so.0:
> __stop_BUS_ERROR_MAP: symbol not found
>
>
>
> Alex
>
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] dbus-test_1.12.2: various fixes

2018-03-01 Thread Ross Burton
From: Juro Bystricky 

The result of running dbus-test-ptest was a series of
various segfaults, interpreted as FAILs. This was a direct consequence
of the test suite loading the installed shared library libdbus-1.so, not the
one built along the test suite.

While we normally want to test against the installed libraries, we cannot
do this in this case as the test suite expects a library that is 
configured/compiled
differently from the installed one. We could configure the installed library
identically as the test suite expects, (and there should be no issues), however
this is not desirable for performance reasons.

Hence we need to use the library built along with the test suite.
Of course, running the test suite against its own library does not
test the installed library, however they are both built from the same
sources so that can give us some kind of indication.

The following changes were made:

1. Configure the test library as close as possible to the installed one,
   with some additional configuration options that are needed for testing.
   (Use dbus_1.12.2.bb recipe as a template)
2. Include the shared libraries in the package, use LD_LIBRARY_PATH during
   testing to load them instead of the installed ones.
3. Add a few more tests. (There are still some additional tests built that
   are not used, but they would have to be special-cased).
4. When evaluating the test results, differentiate between "FAIL" and "SKIP"

[YOCTO #10841]
[YOCTO #12277]

(From OE-Core rev: 5d148aa9c3c338fabab1e60e2ca64d09c9b8477f)

Signed-off-by: Juro Bystricky 
Signed-off-by: Richard Purdie 
Signed-off-by: Ross Burton 
---
 meta/recipes-core/dbus/dbus-test_1.12.2.bb | 32 ++
 meta/recipes-core/dbus/dbus/run-ptest  | 20 ---
 2 files changed, 45 insertions(+), 7 deletions(-)

diff --git a/meta/recipes-core/dbus/dbus-test_1.12.2.bb 
b/meta/recipes-core/dbus/dbus-test_1.12.2.bb
index c3891a33701..26556ed2468 100644
--- a/meta/recipes-core/dbus/dbus-test_1.12.2.bb
+++ b/meta/recipes-core/dbus/dbus-test_1.12.2.bb
@@ -34,25 +34,49 @@ EXTRA_OECONF = "--enable-tests \
 --enable-checks \
 --enable-asserts \
 --enable-verbose-mode \
+--enable-largefile \
 --disable-xml-docs \
 --disable-doxygen-docs \
 --disable-libaudit \
---disable-systemd \
---without-systemdsystemunitdir \
 --with-dbus-test-dir=${PTEST_PATH} \
 ${EXTRA_OECONF_X}"
 
+EXTRA_OECONF_append_class-target = " SYSTEMCTL=${base_bindir}/systemctl"
+
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11', d)}"
+PACKAGECONFIG_class-native = ""
+PACKAGECONFIG_class-nativesdk = ""
+
+PACKAGECONFIG[systemd] = "--enable-systemd 
--with-systemdsystemunitdir=${systemd_system_unitdir},--disable-systemd 
--without-systemdsystemunitdir,systemd"
+PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x 
--disable-x11-autolaunch, virtual/libx11 libsm"
+PACKAGECONFIG[user-session] = "--enable-user-session 
--with-systemduserunitdir=${systemd_user_unitdir},--disable-user-session"
+
 do_install() {
 :
 }
 
 do_install_ptest() {
install -d ${D}${PTEST_PATH}/test
-   l="shell printf refs syslog marshal syntax corrupt dbus-daemon 
dbus-daemon-eavesdrop loopback relay"
+   l="shell printf refs syslog marshal syntax corrupt dbus-daemon 
dbus-daemon-eavesdrop loopback relay \
+  variant uid-permissions syntax spawn sd-activation names monitor 
message fdpass "
for i in $l; do install ${B}/test/.libs/test-$i ${D}${PTEST_PATH}/test; 
done
+
l="bus bus-system bus-launch-helper"
for i in $l; do install ${B}/bus/.libs/test-$i ${D}${PTEST_PATH}/test; 
done
-   install ${B}/dbus/.libs/test-dbus ${D}${PTEST_PATH}/test
+
cp -r ${B}/test/data ${D}${PTEST_PATH}/test
+   install ${B}/dbus/.libs/test-dbus ${D}${PTEST_PATH}/test
+
+   install -d ${D}${PTEST_PATH}/test/.libs
+   cp -a ${B}/dbus/.libs/*.so* ${D}${PTEST_PATH}/test/.libs
+
+   # Remove build host references...
+   find "${D}${PTEST_PATH}/test/data" \( -name *.service -o -name *.conf 
\) -type f -exec \
+   sed -i \
+-e 's:${B}:${PTEST_PATH}:g' \
+{} +
 }
+
 RDEPENDS_${PN}-ptest += "bash"
+
+PRIVATE_LIBS_${PN}-ptest = "libdbus-1.so.3"
diff --git a/meta/recipes-core/dbus/dbus/run-ptest 
b/meta/recipes-core/dbus/dbus/run-ptest
index c72d083a917..8a8970ee208 100755
--- a/meta/recipes-core/dbus/dbus/run-ptest
+++ b/meta/recipes-core/dbus/dbus/run-ptest
@@ -1,10 +1,24 @@
 #!/bin/sh
 
 output() {
-  if [ $? -eq 0 ]
+  retcode=$?
+  if [ $retcode -eq 0 ]
 then echo "PASS: $i"
-else echo "FAIL: $i"
+  elif [ $retcode -eq 77 ]
+then echo "SKIP: $i"
+  else echo 

[OE-core] [meta][PATCH v4] libepoxy: update to version 1.5.0

2018-03-01 Thread Francesco Giancane
libepoxy 1.4.3 did not compile successfully because of
implicit symbol definitions and link-time errors.

Patch to disable 'dlvsym' has also been forward-ported
to be applicable to version 1.5.0.
The patch 'Add-fallback-definition-for-EGL-CAST.patch' is
mainline now; thus it can be safely removed.
Also, the patch
0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
is no longer required since mainline fixed this too.

Signed-off-by: Francesco Giancane 
---
 ..._EGL_NO_X11_HEADERS-before-including-eglp.patch | 30 
 ...sible-to-disable-the-use-of-dlvsym-needed.patch | 27 ++
 .../Add-fallback-definition-for-EGL-CAST.patch | 33 --
 .../{libepoxy_1.4.3.bb => libepoxy_1.5.0.bb}   | 10 +++
 4 files changed, 19 insertions(+), 81 deletions(-)
 delete mode 100644 
meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
 delete mode 100644 
meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch
 rename meta/recipes-graphics/libepoxy/{libepoxy_1.4.3.bb => libepoxy_1.5.0.bb} 
(61%)

diff --git 
a/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
 
b/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
deleted file mode 100644
index ebe5754a7a..00
--- 
a/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 62e178ddae24c7633d2a03b129dc52261e0a15bf Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Wed, 7 Feb 2018 00:48:03 -0800
-Subject: [PATCH] Define MESA_EGL_NO_X11_HEADERS before including eglplatform.h
- when X11 is disabled
-
-This helps in compiling when GL implementations e.g. mesa use
-this define to exclude X11 headers
-
-Signed-off-by: Khem Raj 

-Upstream-Status: Submitted [https://github.com/anholt/libepoxy/pull/153]
-
- src/dispatch_common.h | 3 +++
- 1 file changed, 3 insertions(+)
-
-Index: libepoxy-1.4.3/src/dispatch_common.h
-===
 libepoxy-1.4.3.orig/src/dispatch_common.h
-+++ libepoxy-1.4.3/src/dispatch_common.h
-@@ -46,6 +46,9 @@
- #include "epoxy/glx.h"
- #endif
- #if PLATFORM_HAS_EGL
-+#if !PLATFORM_HAS_GLX
-+#define MESA_EGL_NO_X11_HEADERS 1
-+#endif
- #include "epoxy/egl.h"
- #endif
- #if PLATFORM_HAS_WGL
diff --git 
a/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch
 
b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch
index c2a2fa3453..bd49e36314 100644
--- 
a/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch
+++ 
b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch
@@ -1,36 +1,39 @@
-From 7bcefd311cd696955376fe2c5298ec85e8f954ce Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Wed, 15 Nov 2017 12:48:27 +0200
+From 9c964427656ef71210e2c5b48b279857806574e9 Mon Sep 17 00:00:00 2001
+From: Francesco Giancane 
+Date: Wed, 28 Feb 2018 21:32:24 +0100
 Subject: [PATCH] Make it possible to disable the use of dlvsym() (needed for
  musl)
 
-Upstream-Status: Pending
-Signed-off-by: Alexander Kanavin 
+Add a patch to work around absence of dlvsym() on musl
+(wasn't previously a problem as autotools weren't building tests by default)
 
+Upstream-Status: Pending
+Signed-off-by: Alexander Kanavin 
+Signed-off-by: Francesco Giancane 
 ---
  meson_options.txt | 3 +++
  test/meson.build  | 6 +++---
  2 files changed, 6 insertions(+), 3 deletions(-)
 
 diff --git a/meson_options.txt b/meson_options.txt
-index 244476a..071f0b6 100644
+index b5d7c98..aa849c2 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
 @@ -1,6 +1,9 @@
- option('enable-docs',
+ option('docs',
 type: 'boolean', value: false,
 description: 'Enable generating the Epoxy API reference (depends on 
Doxygen)')
 +option('has-dlvsym',
 +   type: 'boolean', value: true,
 +   description: 'Whether dlvsym() is available (it is not when using musl 
C library)')
- option('enable-glx',
+ option('glx',
 type: 'combo',
 choices: [ 'auto', 'yes', 'no' ],
 diff --git a/test/meson.build b/test/meson.build
-index 2340fc6..bc4330b 100644
+index c5788b4..4c46ae6 100644
 --- a/test/meson.build
 +++ b/test/meson.build
-@@ -86,8 +86,8 @@ if build_glx
+@@ -92,8 +92,8 @@ if build_glx
  [ 'glx_has_extension_nocontext', [ 'glx_has_extension_nocontext.c' ], [], 
[], true ],
  [ 'glx_static', [ 'glx_static.c' ], [ '-DNEEDS_TO_BE_STATIC'], [ 
'-static' ], libtype == 'static' 

Re: [OE-core] [meta-oe][PATCH v3] libepoxy: New recipe updated to latest release

2018-03-01 Thread Francesco Giancane
v4 is being sent with updated commit description and Upstream-Status
included.
Thanks!

Francesco Giancane

2018-02-28 23:57 GMT+01:00 Peter Kjellerstedt :

> > -Original Message-
> > From: openembedded-core-boun...@lists.openembedded.org
> > [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of
> > Francesco Giancane
> > Sent: den 28 februari 2018 23:09
> > To: openembedded-core@lists.openembedded.org
> > Subject: [OE-core] [meta-oe][PATCH v3] libepoxy: New recipe updated to
> latest release
>
> This isn't in meta-oe, it's in meta. ;)
>
> I suggest changing the subject to:
>
> libepoxy: Update to 1.5.0
>
> since it's not a new recipe, and "latest release" carries a lot
> less information than the actual version.
>
> > libepoxy 1.4.3 did not compile successfully because of
> > implicit symbol definitions and link-time errors.
> > A new recipe with latest libepoxy release (1.5.0) which
> > successfully compiles is provided.
>
> I'd remove the second sentence. All that information is
> conveyed by the updated subject anyway.
>
> > Patch to disable 'dlvsym' has also been forward-ported
> > to be applicable to version 1.5.0.
> > The patch 'Add-fallback-definition-for-EGL-CAST.patch' is
> > mainline now; thus it can be safely removed.
> > Also, the patch
> > 0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
> > is no longer required since mainline fixed this too.
> >
> > Signed-off-by: Francesco Giancane 
> > ---
> >  ..._EGL_NO_X11_HEADERS-before-including-eglp.patch | 30
> 
> >  ...sible-to-disable-the-use-of-dlvsym-needed.patch | 26
> +
> >  .../Add-fallback-definition-for-EGL-CAST.patch | 33
> --
> >  .../{libepoxy_1.4.3.bb => libepoxy_1.5.0.bb}   | 10 +++
> >  4 files changed, 18 insertions(+), 81 deletions(-)
> >  delete mode 100644 meta/recipes-graphics/libepoxy/libepoxy/0001-Define-
> MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
> >  delete mode 100644 meta/recipes-graphics/libepoxy/libepoxy/Add-
> fallback-definition-for-EGL-CAST.patch
> >  rename meta/recipes-graphics/libepoxy/{libepoxy_1.4.3.bb =>
> libepoxy_1.5.0.bb} (61%)
> >
> > diff --git a/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-
> MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
> b/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-
> MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
> > deleted file mode 100644
> > index ebe5754a7a..00
> > --- a/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-
> MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
> > +++ /dev/null
> > @@ -1,30 +0,0 @@
> > -From 62e178ddae24c7633d2a03b129dc52261e0a15bf Mon Sep 17 00:00:00 2001
> > -From: Khem Raj 
> > -Date: Wed, 7 Feb 2018 00:48:03 -0800
> > -Subject: [PATCH] Define MESA_EGL_NO_X11_HEADERS before including
> eglplatform.h
> > - when X11 is disabled
> > -
> > -This helps in compiling when GL implementations e.g. mesa use
> > -this define to exclude X11 headers
> > -
> > -Signed-off-by: Khem Raj 
> > 
> > -Upstream-Status: Submitted
> > [https://github.com/anholt/libepoxy/pull/153]
> > -
> > - src/dispatch_common.h | 3 +++
> > - 1 file changed, 3 insertions(+)
> > -
> > -Index: libepoxy-1.4.3/src/dispatch_common.h
> > -===
> >  libepoxy-1.4.3.orig/src/dispatch_common.h
> > -+++ libepoxy-1.4.3/src/dispatch_common.h
> > -@@ -46,6 +46,9 @@
> > - #include "epoxy/glx.h"
> > - #endif
> > - #if PLATFORM_HAS_EGL
> > -+#if !PLATFORM_HAS_GLX
> > -+#define MESA_EGL_NO_X11_HEADERS 1
> > -+#endif
> > - #include "epoxy/egl.h"
> > - #endif
> > - #if PLATFORM_HAS_WGL
> > diff --git a/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-
> it-possible-to-disable-the-use-of-dlvsym-needed.patch
> b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-
> it-possible-to-disable-the-use-of-dlvsym-needed.patch
> > index c2a2fa3453..5bddc12033 100644
> > --- a/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-
> it-possible-to-disable-the-use-of-dlvsym-needed.patch
> > +++ b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-
> it-possible-to-disable-the-use-of-dlvsym-needed.patch
> > @@ -1,36 +1,38 @@
> > -From 7bcefd311cd696955376fe2c5298ec85e8f954ce Mon Sep 17 00:00:00 2001
> > -From: Alexander Kanavin 
> > -Date: Wed, 15 Nov 2017 12:48:27 +0200
> > +From 9c964427656ef71210e2c5b48b279857806574e9 Mon Sep 17 00:00:00 2001
> > +From: Francesco Giancane 
> > +Date: Wed, 28 Feb 2018 21:32:24 +0100
> >  Subject: [PATCH] Make it possible to disable the use of dlvsym()
> (needed for
> >   musl)
> >
> > -Upstream-Status: Pending
>
> Don't remove the Upstream-Status.
>
> > -Signed-off-by: Alexander Kanavin 
> > +Add a patch to work around absence of dlvsym() on musl
> > +(wasn't previously a problem as autotools 

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

2018-03-01 Thread Seebs
On Thu,  1 Mar 2018 15:53:46 +0200
Alexander Kanavin  wrote:

> toomanyfiles.patch rebased

Do we still have a reason for that, if we're using epoll to address
that?

That said, with the new fastop sanity-fix, that is probably much less
dangerous than it used to be.

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


Re: [OE-core] [PATCH v2] kernel-devsrc: restructure for out of tree (and on target) module builds

2018-03-01 Thread Burton, Ross
Ah ok, I misunderstood.

Ross

On 1 March 2018 at 14:45, Bruce Ashfield 
wrote:

> On 2018-03-01 9:22 AM, Burton, Ross wrote:
>
>> Swore I picked the v2 patch for the second run, I've fired a mini test
>> build to see.
>>
>
> The other failures reported were valid and not addressed by v2. So only
> 32 bit ARM would have been fixed (packaging wise), the rest were ok.
>
> I build and deployed kernel-devsrc for ARM multiple times, so if it does
> actually fail again .. I'm *very* interested to hear.
>
> Bruce
>
>
>> Ross
>>
>> On 1 March 2018 at 13:59, Bruce Ashfield > > wrote:
>>
>> On 2018-03-01 5:58 AM, Maxin B. John wrote:
>>
>>
>> Also fails on musl:
>>
>> ERROR: Nothing RPROVIDES 'glibc-utils' (but
>> /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-musl/
>> build/meta/recipes-kernel/linux/kernel-devsrc.bb
>>  RDEPENDS on or otherwise requires
>> it)
>>
>> Ross
>>
>> On 1 March 2018 at 08:28, Maxin B. John
>> > wrote:
>>
>>
>>>On Wed, Feb 28, 2018 at 02:20:45PM -0500, Bruce Ashfield
>> wrote:
>>>> The existing kernel-devsrc package starts with a full copy
>> of the kernel
>>>> source and then starts to strip out elements that are not
>> required.
>>>>
>>>> This results in extra time (I/O) and extra space being
>> taken up in the
>>>> final package. The main purpose of the kernel-devsrc
>> package has been to
>>>> build modules against the running kernel, not to include a
>> full copy of
>>>> the source code for re-building the kernel. The end result
>> was a
>>>> 600M kernel-devsrc package.
>>
>>Other failures are listed below:
>>  arm64:
>> https://autobuilder.yocto.io/builders/nightly-arm64/builds/7
>> 90/steps/Running%20Sanity%20Tests/logs/stdio
>> > 790/steps/Running%20Sanity%20Tests/logs/stdio>
>>
>>RESULTS - kernelmodule.KernelModuleTest.test_kernel_module -
>> Testcase 1541: FAILED
>>
>> HOSTCC  scripts/sortextable
>>scripts/sortextable.c:31:10: fatal error:
>> tools/be_byteshift.h: No such file or directory
>> #include 
>> ^~
>> compilation terminated.
>> make[1]: *** [scripts/Makefile.host:102: scripts/sortextable]
>> Error 1
>> make: *** [Makefile:557: scripts] Error 2
>> 
>> --
>>
>> Similar on qemuarm - poky-lsb :
>>
>> https://autobuilder.yocto.io/builders/nightly-arm-lsb/builds
>> /812/steps/Running%20Sanity%20Tests/logs/stdio
>> > s/812/steps/Running%20Sanity%20Tests/logs/stdio>
>>
>> HOSTCC  scripts/recordmcount
>> HOSTCC  scripts/sortextable
>> scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h:
>> No such file or directory
>>   #include 
>> ^~
>> compilation terminated.
>> make[1]: *** [scripts/Makefile.host:102:
>> scripts/sortextable] Error 1
>> make: *** [Makefile:557: scripts] Error 2
>> 
>> -
>>
>> Also on PowerPC:
>>
>> https://autobuilder.yocto.io/builders/nightly-ppc-lsb/builds
>> /814/steps/Running%20Sanity%20Tests/logs/stdio
>> > s/814/steps/Running%20Sanity%20Tests/logs/stdio>
>>
>> scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h:
>> No such file or directory
>>#include 
>>  ^~
>> compilation terminated.
>> make[1]: *** [scripts/Makefile.host:102: scripts/sortextable]
>> Error 1
>> make: *** [Makefile:557: scripts] Error 2
>>
>>
>> I have all these fixed now.
>>
>> Will have a look at musl next.
>>
>> Cheers,
>>
>> Bruce
>>
>>
>> Best Regards,
>> Maxin
>>
>>
>>
>>
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2] kernel-devsrc: restructure for out of tree (and on target) module builds

2018-03-01 Thread Bruce Ashfield

On 2018-03-01 9:22 AM, Burton, Ross wrote:
Swore I picked the v2 patch for the second run, I've fired a mini test 
build to see.


The other failures reported were valid and not addressed by v2. So only
32 bit ARM would have been fixed (packaging wise), the rest were ok.

I build and deployed kernel-devsrc for ARM multiple times, so if it does
actually fail again .. I'm *very* interested to hear.

Bruce



Ross

On 1 March 2018 at 13:59, Bruce Ashfield > wrote:


On 2018-03-01 5:58 AM, Maxin B. John wrote:


Also fails on musl:

ERROR: Nothing RPROVIDES 'glibc-utils' (but

/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-musl/build/meta/recipes-kernel/linux/kernel-devsrc.bb
 RDEPENDS on or otherwise requires it)

Ross

On 1 March 2018 at 08:28, Maxin B. John
> wrote:


   >On Wed, Feb 28, 2018 at 02:20:45PM -0500, Bruce Ashfield wrote:
   >> The existing kernel-devsrc package starts with a full copy
of the kernel
   >> source and then starts to strip out elements that are not
required.
   >>
   >> This results in extra time (I/O) and extra space being
taken up in the
   >> final package. The main purpose of the kernel-devsrc
package has been to
   >> build modules against the running kernel, not to include a
full copy of
   >> the source code for re-building the kernel. The end result
was a
   >> 600M kernel-devsrc package.

   Other failures are listed below:
     arm64:

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



   RESULTS - kernelmodule.KernelModuleTest.test_kernel_module -
Testcase 1541: FAILED

HOSTCC  scripts/sortextable
   scripts/sortextable.c:31:10: fatal error:
tools/be_byteshift.h: No such file or directory
#include 
    ^~
compilation terminated.
make[1]: *** [scripts/Makefile.host:102: scripts/sortextable]
Error 1
make: *** [Makefile:557: scripts] Error 2
--

Similar on qemuarm - poky-lsb :


https://autobuilder.yocto.io/builders/nightly-arm-lsb/builds/812/steps/Running%20Sanity%20Tests/logs/stdio



HOSTCC  scripts/recordmcount
HOSTCC  scripts/sortextable
scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h:
No such file or directory
      #include 
                ^~
                compilation terminated.
                make[1]: *** [scripts/Makefile.host:102:
scripts/sortextable] Error 1
                make: *** [Makefile:557: scripts] Error 2

-

Also on PowerPC:


https://autobuilder.yocto.io/builders/nightly-ppc-lsb/builds/814/steps/Running%20Sanity%20Tests/logs/stdio



scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h:
No such file or directory
   #include 
             ^~
compilation terminated.
make[1]: *** [scripts/Makefile.host:102: scripts/sortextable]
Error 1
make: *** [Makefile:557: scripts] Error 2


I have all these fixed now.

Will have a look at musl next.

Cheers,

Bruce


Best Regards,
Maxin





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


Re: [OE-core] [PATCH v2] kernel-devsrc: restructure for out of tree (and on target) module builds

2018-03-01 Thread Burton, Ross
Swore I picked the v2 patch for the second run, I've fired a mini test
build to see.

Ross

On 1 March 2018 at 13:59, Bruce Ashfield 
wrote:

> On 2018-03-01 5:58 AM, Maxin B. John wrote:
>
>>
>> Also fails on musl:
>>>
>>> ERROR: Nothing RPROVIDES 'glibc-utils' (but
>>> /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-musl/
>>> build/meta/recipes-kernel/linux/kernel-devsrc.bb RDEPENDS on or
>>> otherwise requires it)
>>>
>>> Ross
>>>
>>> On 1 March 2018 at 08:28, Maxin B. John  wrote:
>>>
>>
>>   >On Wed, Feb 28, 2018 at 02:20:45PM -0500, Bruce Ashfield wrote:
>>   >> The existing kernel-devsrc package starts with a full copy of the
>> kernel
>>   >> source and then starts to strip out elements that are not required.
>>   >>
>>   >> This results in extra time (I/O) and extra space being taken up in
>> the
>>   >> final package. The main purpose of the kernel-devsrc package has
>> been to
>>   >> build modules against the running kernel, not to include a full copy
>> of
>>   >> the source code for re-building the kernel. The end result was a
>>   >> 600M kernel-devsrc package.
>>
>>   Other failures are listed below:
>> arm64:
>>   https://autobuilder.yocto.io/builders/nightly-arm64/builds/7
>> 90/steps/Running%20Sanity%20Tests/logs/stdio
>>
>>   RESULTS - kernelmodule.KernelModuleTest.test_kernel_module - Testcase
>> 1541: FAILED
>>
>> HOSTCC  scripts/sortextable
>>   scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h: No such
>> file or directory
>> #include 
>>^~
>> compilation terminated.
>> make[1]: *** [scripts/Makefile.host:102: scripts/sortextable] Error 1
>> make: *** [Makefile:557: scripts] Error 2
>> --
>>
>> Similar on qemuarm - poky-lsb :
>>
>> https://autobuilder.yocto.io/builders/nightly-arm-lsb/builds
>> /812/steps/Running%20Sanity%20Tests/logs/stdio
>>
>> HOSTCC  scripts/recordmcount
>> HOSTCC  scripts/sortextable
>> scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h: No such
>> file or directory
>>  #include 
>>^~
>>compilation terminated.
>>make[1]: *** [scripts/Makefile.host:102:
>> scripts/sortextable] Error 1
>>make: *** [Makefile:557: scripts] Error 2
>> -
>>
>> Also on PowerPC:
>>
>> https://autobuilder.yocto.io/builders/nightly-ppc-lsb/builds
>> /814/steps/Running%20Sanity%20Tests/logs/stdio
>>
>> scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h: No such
>> file or directory
>>   #include 
>> ^~
>> compilation terminated.
>> make[1]: *** [scripts/Makefile.host:102: scripts/sortextable] Error 1
>> make: *** [Makefile:557: scripts] Error 2
>>
>
> I have all these fixed now.
>
> Will have a look at musl next.
>
> Cheers,
>
> Bruce
>
>
>> Best Regards,
>> Maxin
>>
>>
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 15/15] trace-cmd: update to 2.7

2018-03-01 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 meta/recipes-kernel/trace-cmd/trace-cmd.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd.inc 
b/meta/recipes-kernel/trace-cmd/trace-cmd.inc
index 0ea8b13f24d..0a1789c4590 100644
--- a/meta/recipes-kernel/trace-cmd/trace-cmd.inc
+++ b/meta/recipes-kernel/trace-cmd/trace-cmd.inc
@@ -1,11 +1,11 @@
-SRCREV = "57371aaa2f469d0ba15fd85276deca7bfdd7ce36"
-PV = "2.6.2"
+SRCREV = "7d0147bbba3ed1d5ef6eea4eec3f0ad4c98f02b5"
+PV = "2.7"
 
 inherit pkgconfig
 
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/trace-cmd:"
 
-SRC_URI = 
"git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;branch=trace-cmd-stable-v2.6
 \
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git 
\
file://blktrace-api-compatibility.patch \

file://0001-Include-limits.h-so-that-PATH_MAX-is-defined-an-issu.patch \
 "
-- 
2.15.1

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


[OE-core] [PATCH 10/15] ffmpeg: upgrade 3.4.1 -> 3.4.2

2018-03-01 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 meta/recipes-multimedia/ffmpeg/{ffmpeg_3.4.1.bb => ffmpeg_3.4.2.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-multimedia/ffmpeg/{ffmpeg_3.4.1.bb => ffmpeg_3.4.2.bb} 
(97%)

diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_3.4.1.bb 
b/meta/recipes-multimedia/ffmpeg/ffmpeg_3.4.2.bb
similarity index 97%
rename from meta/recipes-multimedia/ffmpeg/ffmpeg_3.4.1.bb
rename to meta/recipes-multimedia/ffmpeg/ffmpeg_3.4.2.bb
index 1837956904d..879cf7ffb94 100644
--- a/meta/recipes-multimedia/ffmpeg/ffmpeg_3.4.1.bb
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_3.4.2.bb
@@ -26,8 +26,8 @@ LIC_FILES_CHKSUM = 
"file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
 SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \
file://mips64_cpu_detection.patch \
"
-SRC_URI[md5sum] = "726212db1b8a7eff6c25a2bc2e6fa75c"
-SRC_URI[sha256sum] = 
"5a77278a63741efa74e26bf197b9bb09ac6381b9757391b922407210f0f991c0"
+SRC_URI[md5sum] = "cbf4ead227fcedddf54c86013705a988"
+SRC_URI[sha256sum] = 
"2b92e9578ef8b3e49eeab229e69305f5f4cbc1fdaa22e927fc7fca18acccd740"
 
 # Build fails when thumb is enabled: 
https://bugzilla.yoctoproject.org/show_bug.cgi?id=7717
 ARM_INSTRUCTION_SET = "arm"
-- 
2.15.1

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


[OE-core] [PATCH 13/15] meson: upgrade 0.44.0 -> 0.44.1

2018-03-01 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 .../meson/meson/0003-native_bindir.patch   | 29 +-
 .../meson/{meson_0.44.0.bb => meson_0.44.1.bb} |  4 +--
 2 files changed, 19 insertions(+), 14 deletions(-)
 rename meta/recipes-devtools/meson/{meson_0.44.0.bb => meson_0.44.1.bb} (83%)

diff --git a/meta/recipes-devtools/meson/meson/0003-native_bindir.patch 
b/meta/recipes-devtools/meson/meson/0003-native_bindir.patch
index 8911dd6b34e..af5e6a190bf 100644
--- a/meta/recipes-devtools/meson/meson/0003-native_bindir.patch
+++ b/meta/recipes-devtools/meson/meson/0003-native_bindir.patch
@@ -1,6 +1,7 @@
+From ffa72eac56558aa4171dd70ac1e9c27a07338fa2 Mon Sep 17 00:00:00 2001
 From: Ricardo Ribalda Delgado 
 Date: Wed, 15 Nov 2017 15:05:01 +0100
-Subject: [PATCH] native_bindir
+Subject: [PATCH 4/4] native_bindir
 
 Some libraries, like QT, have pre-processors that convert their input
 files into something that the cross-compiler can process. We find the
@@ -14,16 +15,17 @@ that is is OE only. 
https://github.com/mesonbuild/meson/issues/1849#issuecomment
 
 Upstream-Status: Inappropriate [OE specific]
 Signed-off-by: Ricardo Ribalda Delgado 
+
 ---
- mesonbuild/dependencies/base.py | 14 +-
+ mesonbuild/dependencies/base.py | 16 ++--
  mesonbuild/dependencies/ui.py   |  6 +++---
- 2 files changed, 12 insertions(+), 8 deletions(-)
+ 2 files changed, 13 insertions(+), 9 deletions(-)
 
 diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py
-index 0ef33722f196..b3f7e7c06822 100644
+index bf79bc5..c9fd08c 100644
 --- a/mesonbuild/dependencies/base.py
 +++ b/mesonbuild/dependencies/base.py
-@@ -130,7 +130,7 @@ class Dependency:
+@@ -131,7 +131,7 @@ class Dependency:
  def need_threads(self):
  return False
  
@@ -32,7 +34,7 @@ index 0ef33722f196..b3f7e7c06822 100644
  raise DependencyException('{!r} is not a pkgconfig 
dependency'.format(self.name))
  
  def get_configtool_variable(self, variable_name):
-@@ -149,7 +149,7 @@ class InternalDependency(Dependency):
+@@ -150,7 +150,7 @@ class InternalDependency(Dependency):
  self.sources = sources
  self.ext_deps = ext_deps
  
@@ -41,7 +43,7 @@ index 0ef33722f196..b3f7e7c06822 100644
  raise DependencyException('Method "get_pkgconfig_variable()" is '
'invalid for an internal dependency')
  
-@@ -414,10 +414,14 @@ class PkgConfigDependency(ExternalDependency):
+@@ -425,10 +425,14 @@ class PkgConfigDependency(ExternalDependency):
  return s.format(self.__class__.__name__, self.name, self.is_found,
  self.version_reqs)
  
@@ -58,16 +60,16 @@ index 0ef33722f196..b3f7e7c06822 100644
  return p.returncode, out.strip()
  
  def _convert_mingw_paths(self, args):
-@@ -499,7 +503,7 @@ class PkgConfigDependency(ExternalDependency):
- self.is_libtool = True
- self.link_args.append(lib)
+@@ -522,7 +526,7 @@ class PkgConfigDependency(ExternalDependency):
+ # linkers such as MSVC, so prepend them.
+ self.link_args = ['-L' + lp for lp in libpaths] + self.link_args
  
 -def get_pkgconfig_variable(self, variable_name, kwargs):
 +def get_pkgconfig_variable(self, variable_name, kwargs, use_native=False):
  options = ['--variable=' + variable_name, self.name]
  
  if 'define_variable' in kwargs:
-@@ -512,7 +516,7 @@ class PkgConfigDependency(ExternalDependency):
+@@ -535,7 +539,7 @@ class PkgConfigDependency(ExternalDependency):
  
  options = ['--define-variable=' + '='.join(definition)] + options
  
@@ -77,7 +79,7 @@ index 0ef33722f196..b3f7e7c06822 100644
  if ret != 0:
  if self.required:
 diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py
-index 1db518c12477..4ed1d041f6f4 100644
+index 1db518c..4ed1d04 100644
 --- a/mesonbuild/dependencies/ui.py
 +++ b/mesonbuild/dependencies/ui.py
 @@ -239,7 +239,7 @@ class QtBaseDependency(ExternalDependency):
@@ -107,3 +109,6 @@ index 1db518c12477..4ed1d041f6f4 100644
  
  
  # There are three different ways of depending on SDL2:
+-- 
+2.15.1
+
diff --git a/meta/recipes-devtools/meson/meson_0.44.0.bb 
b/meta/recipes-devtools/meson/meson_0.44.1.bb
similarity index 83%
rename from meta/recipes-devtools/meson/meson_0.44.0.bb
rename to meta/recipes-devtools/meson/meson_0.44.1.bb
index d9c691c7f8b..6a81dab2650 100644
--- a/meta/recipes-devtools/meson/meson_0.44.0.bb
+++ b/meta/recipes-devtools/meson/meson_0.44.1.bb
@@ -10,8 +10,8 @@ SRC_URI = 
"https://github.com/mesonbuild/meson/releases/download/${PV}/${BP}.tar

file://0001-Linker-rules-move-cross_args-in-front-of-output_args.patch \
file://0003-native_bindir.patch \
"
-SRC_URI[md5sum] = "26a7ca93ec9cea5facb365664261f9c6"
-SRC_URI[sha256sum] = 

[OE-core] [PATCH 14/15] expect: upgrade 5.45.3 -> 5.45.4

2018-03-01 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 meta/recipes-devtools/expect/{expect_5.45.3.bb => expect_5.45.4.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/expect/{expect_5.45.3.bb => expect_5.45.4.bb} 
(95%)

diff --git a/meta/recipes-devtools/expect/expect_5.45.3.bb 
b/meta/recipes-devtools/expect/expect_5.45.4.bb
similarity index 95%
rename from meta/recipes-devtools/expect/expect_5.45.3.bb
rename to meta/recipes-devtools/expect/expect_5.45.4.bb
index 445eca5742d..96eacd92934 100644
--- a/meta/recipes-devtools/expect/expect_5.45.3.bb
+++ b/meta/recipes-devtools/expect/expect_5.45.4.bb
@@ -26,8 +26,8 @@ SRC_URI = 
"${SOURCEFORGE_MIRROR}/expect/Expect/${PV}/${BPN}${PV}.tar.gz \
file://0001-Resolve-string-formatting-issues.patch \

file://0001-expect-Fix-segfaults-if-Tcl-is-built-with-stubs-and-.patch \
   "
-SRC_URI[md5sum] = "a8855cd41c1ef004b9794db9e2a57a9d"
-SRC_URI[sha256sum] = 
"c520717b7195944a69ce1492ec82ca0ac3f3baf060804e6c5ee6d505ea512be9"
+SRC_URI[md5sum] = "00fce8de158422f5ccd2666512329bd2"
+SRC_URI[sha256sum] = 
"49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34"
 
 UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/expect/files/Expect/;
 UPSTREAM_CHECK_REGEX = "/Expect/(?P(\d+[\.\-_]*)+)/"
-- 
2.15.1

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


[OE-core] [PATCH 12/15] vala: upgrade 0.38.6 -> 0.38.8

2018-03-01 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 meta/recipes-devtools/vala/{vala_0.38.6.bb => vala_0.38.8.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/vala/{vala_0.38.6.bb => vala_0.38.8.bb} (64%)

diff --git a/meta/recipes-devtools/vala/vala_0.38.6.bb 
b/meta/recipes-devtools/vala/vala_0.38.8.bb
similarity index 64%
rename from meta/recipes-devtools/vala/vala_0.38.6.bb
rename to meta/recipes-devtools/vala/vala_0.38.8.bb
index b0b8e00824f..e2baf655596 100644
--- a/meta/recipes-devtools/vala/vala_0.38.6.bb
+++ b/meta/recipes-devtools/vala/vala_0.38.8.bb
@@ -6,5 +6,5 @@ SRC_URI += " 
file://0001-git-version-gen-don-t-append-dirty-if-we-re-not-in-g.pa
 file://0001-Disable-valadoc.patch \
 "
 
-SRC_URI[md5sum] = "e0e834869f636fde981ba63d46f31c9c"
-SRC_URI[sha256sum] = 
"8c676b8307a12fba3420f861463c7e40b2743b0d6fef91f9516a3441ea25029a"
+SRC_URI[md5sum] = "37edd0467d056fd9e3937d0bbceda80b"
+SRC_URI[sha256sum] = 
"2fa746b51cd66e43577d1da06a80b708c2875cadaafee77e9700ea35cf23882c"
-- 
2.15.1

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


[OE-core] [PATCH 11/15] epiphany: upgrade 3.26.5.1 -> 3.26.6

2018-03-01 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 .../epiphany/{epiphany_3.26.5.1.bb => epiphany_3.26.6.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-gnome/epiphany/{epiphany_3.26.5.1.bb => 
epiphany_3.26.6.bb} (84%)

diff --git a/meta/recipes-gnome/epiphany/epiphany_3.26.5.1.bb 
b/meta/recipes-gnome/epiphany/epiphany_3.26.6.bb
similarity index 84%
rename from meta/recipes-gnome/epiphany/epiphany_3.26.5.1.bb
rename to meta/recipes-gnome/epiphany/epiphany_3.26.6.bb
index eee53c6015e..e250f76ed1e 100644
--- a/meta/recipes-gnome/epiphany/epiphany_3.26.5.1.bb
+++ b/meta/recipes-gnome/epiphany/epiphany_3.26.6.bb
@@ -13,8 +13,8 @@ REQUIRED_DISTRO_FEATURES = "x11"
 SRC_URI = 
"${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive
 \
file://0002-help-meson.build-disable-the-use-of-yelp.patch \
"
-SRC_URI[archive.md5sum] = "8c2062debde6377320596e2685bb1732"
-SRC_URI[archive.sha256sum] = 
"4b2f1c48e6f50793ff205d9215add5596ab5c7ebf4cef76907868fcd5a029221"
+SRC_URI[archive.md5sum] = "8449968366a6f9aaff3ac228ddfc7c66"
+SRC_URI[archive.sha256sum] = 
"01b16aa55d312ae0f17d3136f90d8c68ac748715f119412fb1917023c6f630a8"
 
 EXTRA_OEMESON += " -Ddistributor_name=${DISTRO}"
 
-- 
2.15.1

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


[OE-core] [PATCH 07/15] gtk-doc.bbclass: inherit python3native

2018-03-01 Thread Alexander Kanavin
Previously the use of native python3 was non-deterministic based on what 
specific recipes pulled in,
and could cause a failure if host python3 did not have python3-six installed.

Signed-off-by: Alexander Kanavin 
---
 meta/classes/gtk-doc.bbclass | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/meta/classes/gtk-doc.bbclass b/meta/classes/gtk-doc.bbclass
index 5201c7151c6..9bc8fa2b21d 100644
--- a/meta/classes/gtk-doc.bbclass
+++ b/meta/classes/gtk-doc.bbclass
@@ -33,7 +33,7 @@ do_configure_prepend () {
( cd ${S}; gtkdocize --docdir ${GTKDOC_DOCDIR} || true )
 }
 
-inherit qemu
+inherit qemu pkgconfig python3native
 
 export STAGING_DIR_HOST
 
@@ -65,6 +65,3 @@ fi
 EOF
 chmod +x ${B}/gtkdoc-qemuwrapper
 }
-
-
-inherit pkgconfig
-- 
2.15.1

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


[OE-core] [PATCH 09/15] mpg123: upgrade 1.25.8 -> 1.25.10

2018-03-01 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 .../recipes-multimedia/mpg123/{mpg123_1.25.8.bb => mpg123_1.25.10.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-multimedia/mpg123/{mpg123_1.25.8.bb => mpg123_1.25.10.bb} 
(94%)

diff --git a/meta/recipes-multimedia/mpg123/mpg123_1.25.8.bb 
b/meta/recipes-multimedia/mpg123/mpg123_1.25.10.bb
similarity index 94%
rename from meta/recipes-multimedia/mpg123/mpg123_1.25.8.bb
rename to meta/recipes-multimedia/mpg123/mpg123_1.25.10.bb
index 45f3538d70a..929069ab494 100644
--- a/meta/recipes-multimedia/mpg123/mpg123_1.25.8.bb
+++ b/meta/recipes-multimedia/mpg123/mpg123_1.25.10.bb
@@ -11,8 +11,8 @@ LICENSE_FLAGS = "commercial"
 LIC_FILES_CHKSUM = "file://COPYING;md5=1e86753638d3cf2512528b99079bc4f3"
 
 SRC_URI = "https://www.mpg123.de/download/${BP}.tar.bz2;
-SRC_URI[md5sum] = "62ef1e417eb50f82bf241866d9e6e19b"
-SRC_URI[sha256sum] = 
"79da51efae011814491f07c95cb5e46de0476aca7a0bf240ba61cfc27af8499b"
+SRC_URI[md5sum] = "ea32caa61d41d8be797f0b04a1b43ad9"
+SRC_URI[sha256sum] = 
"6c1337aee2e4bf993299851c70b7db11faec785303cfca3a5c3eb5f329ba7023"
 
 inherit autotools pkgconfig
 
-- 
2.15.1

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


[OE-core] [PATCH 06/15] btrfs-tools: update to 4.15.1

2018-03-01 Thread Alexander Kanavin
Drop upstreamed 0001-Fix-build-with-musl-missing-header-include-for-dev_t.patch

Add --disable-zstd as libzstd isn't provided in oe-core.

Signed-off-by: Alexander Kanavin 
---
 ...ith-musl-missing-header-include-for-dev_t.patch | 26 --
 ...btrfs-tools_4.13.3.bb => btrfs-tools_4.15.1.bb} |  4 ++--
 2 files changed, 2 insertions(+), 28 deletions(-)
 delete mode 100644 
meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Fix-build-with-musl-missing-header-include-for-dev_t.patch
 rename meta/recipes-devtools/btrfs-tools/{btrfs-tools_4.13.3.bb => 
btrfs-tools_4.15.1.bb} (90%)

diff --git 
a/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Fix-build-with-musl-missing-header-include-for-dev_t.patch
 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Fix-build-with-musl-missing-header-include-for-dev_t.patch
deleted file mode 100644
index 790676b9cbf..000
--- 
a/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Fix-build-with-musl-missing-header-include-for-dev_t.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From bc35c4caebb57cc8b96c30c25432b12ca8dc18d5 Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Fri, 6 Oct 2017 15:03:49 +0300
-Subject: [PATCH] Fix build with musl (missing header include for dev_t).
-
-Upstream-Status: Pending
-Signed-off-by: Alexander Kanavin 

- convert/source-fs.h | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/convert/source-fs.h b/convert/source-fs.h
-index 23f3356..6fd770f 100644
 a/convert/source-fs.h
-+++ b/convert/source-fs.h
-@@ -20,6 +20,7 @@
- #include "kerncompat.h"
- #include 
- #include 
-+#include 
- 
- #define CONV_IMAGE_SUBVOL_OBJECTID BTRFS_FIRST_FREE_OBJECTID
- 
--- 
-2.14.1
-
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.13.3.bb 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.15.1.bb
similarity index 90%
rename from meta/recipes-devtools/btrfs-tools/btrfs-tools_4.13.3.bb
rename to meta/recipes-devtools/btrfs-tools/btrfs-tools_4.15.1.bb
index 263fc657550..4490b82d91d 100644
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.13.3.bb
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.15.1.bb
@@ -14,15 +14,15 @@ DEPENDS = "util-linux attr e2fsprogs lzo acl"
 DEPENDS_append_class-target = " udev"
 RDEPENDS_${PN} = "libgcc"
 
-SRCREV = "a7a1ea0f4f2a1d6eeeb3d106e062c7f1034f16d4"
+SRCREV = "3097f02c948f69f520c565ff8f8ba476aa6edb88"
 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 \
"
 
 inherit autotools-brokensep pkgconfig manpages
 
 PACKAGECONFIG[manpages] = "--enable-documentation, --disable-documentation, 
asciidoc-native xmlto-native"
+EXTRA_OECONF = " --disable-zstd"
 EXTRA_OECONF_append_libc-musl = " --disable-backtrace "
 
 do_configure_prepend() {
-- 
2.15.1

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


[OE-core] [PATCH 08/15] strace: use strace.io as the tarball location

2018-03-01 Thread Alexander Kanavin
As explained here:
https://sourceforge.net/projects/strace/files/

Signed-off-by: Alexander Kanavin 
---
 meta/recipes-devtools/strace/strace_4.20.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/strace/strace_4.20.bb 
b/meta/recipes-devtools/strace/strace_4.20.bb
index d5df25eba8f..869c12f65a7 100644
--- a/meta/recipes-devtools/strace/strace_4.20.bb
+++ b/meta/recipes-devtools/strace/strace_4.20.bb
@@ -1,10 +1,10 @@
 SUMMARY = "System call tracing tool"
-HOMEPAGE = "http://strace.sourceforge.net;
+HOMEPAGE = "http://strace.io;
 SECTION = "console/utils"
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=f132b4d2adfccc63da4139a609367711"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.xz \
+SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
file://disable-git-version-gen.patch \
file://more-robust-test-for-m32-mx32-compile-support.patch \
file://update-gawk-paths.patch \
-- 
2.15.1

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


[OE-core] [PATCH 04/15] latencytop: remove recipe

2018-03-01 Thread Alexander Kanavin
Last commit and release were in 2009; website is down; it's a dead project.

Signed-off-by: Alexander Kanavin 
---
 meta/conf/distro/include/distro_alias.inc  |  1 -
 meta/conf/distro/include/maintainers.inc   |  1 -
 .../packagegroup-core-tools-profile.bb |  1 -
 ...-function-signatures-to-fix-prototype-mis.patch | 64 --
 .../latencytop-0.5/latencytop-fsync.patch  | 49 -
 .../latencytop-0.5/latencytop-makefile.patch   | 43 ---
 meta/recipes-kernel/latencytop/latencytop_0.5.bb   | 32 ---
 7 files changed, 191 deletions(-)
 delete mode 100644 
meta/recipes-kernel/latencytop/latencytop-0.5/0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch
 delete mode 100644 
meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-fsync.patch
 delete mode 100644 
meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-makefile.patch
 delete mode 100644 meta/recipes-kernel/latencytop/latencytop_0.5.bb

diff --git a/meta/conf/distro/include/distro_alias.inc 
b/meta/conf/distro/include/distro_alias.inc
index 1a217daa390..8ec623befbd 100644
--- a/meta/conf/distro/include/distro_alias.inc
+++ b/meta/conf/distro/include/distro_alias.inc
@@ -159,7 +159,6 @@ DISTRO_PN_ALIAS_pn-kern-tools-native = "Windriver"
 DISTRO_PN_ALIAS_pn-keymaps = "OE-Core"
 DISTRO_PN_ALIAS_pn-kf = "OSPDT"
 DISTRO_PN_ALIAS_pn-lame = "Debian=lame Ubuntu=lame"
-DISTRO_PN_ALIAS_pn-latencytop = "Meego=latencytop Fedora=latencytop 
Debian=latencytop OpenSuSE=latencytop"
 DISTRO_PN_ALIAS_pn-ldconfig-native = "Ubuntu=libc-bin Fedora=glibc"
 DISTRO_PN_ALIAS_pn-liba52 = "Mandriva=a52dec Debian=a52dec"
 DISTRO_PN_ALIAS_pn-libacpi = "Ubuntu=libacpi Mandriva=libacpi"
diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 50392487903..965fd34ca04 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -304,7 +304,6 @@ RECIPE_MAINTAINER_pn-kmod-native = "Chen Qi 
"
 RECIPE_MAINTAINER_pn-kmscube = "Carlos Rafael Giani "
 RECIPE_MAINTAINER_pn-l3afpad = "Maxin B. John "
 RECIPE_MAINTAINER_pn-lame = "Tanu Kaskinen "
-RECIPE_MAINTAINER_pn-latencytop = "Alexander Kanavin 
"
 RECIPE_MAINTAINER_pn-ldconfig-native = "Khem Raj "
 RECIPE_MAINTAINER_pn-less = "Yi Zhao "
 RECIPE_MAINTAINER_pn-liba52 = "Tanu Kaskinen "
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb 
b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
index a8e47da40cd..e3814a44bc2 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
@@ -26,7 +26,6 @@ RRECOMMENDS_${PN} = "\
 
 PROFILETOOLS = "\
 powertop \
-latencytop \
 "
 PERF = "perf"
 PERF_libc-musl = ""
diff --git 
a/meta/recipes-kernel/latencytop/latencytop-0.5/0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch
 
b/meta/recipes-kernel/latencytop/latencytop-0.5/0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch
deleted file mode 100644
index b248133460e..000
--- 
a/meta/recipes-kernel/latencytop/latencytop-0.5/0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From db112739dc4f608a968b8104b382955dc3d96ca3 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Mon, 7 Sep 2015 07:40:10 +
-Subject: [PATCH] Rectify the function signatures to fix prototype mismatches
-
-clang is less forgiving when it comes to coding standards, correct the
-function signatures to reflect the function logic
-
-Signed-off-by: Khem Raj 

-Upstream-Status: Pending
-
- fsync.c  | 7 ---
- latencytop.h | 2 +-
- 2 files changed, 5 insertions(+), 4 deletions(-)
-
-diff --git a/fsync.c b/fsync.c
-index 82dff0e..5cefba9 100644
 a/fsync.c
-+++ b/fsync.c
-@@ -51,7 +51,7 @@ struct fsync_files {
- static GList *fsync_data;
- 
- 
--static chain_file(struct fsync_process *proc, char *filename)
-+static void chain_file(struct fsync_process *proc, char *filename)
- {
-   struct fsync_files *file;
-   GList *item;
-@@ -75,7 +75,7 @@ static chain_file(struct fsync_process *proc, char *filename)
-   proc->files = g_list_append(proc->files, file);
- }
- 
--static report_file(char *process, char *file)
-+static void report_file(char *process, char *file)
- {
-   struct fsync_process *proc;
-   GList *item;
-@@ -157,9 +157,10 @@ int enable_fsync_tracer(void)
-   write_to_file("/sys/kernel/debug/tracing/current_tracer", "fsync"); 
-   write_to_file("/sys/kernel/debug/tracing/iter_ctrl", "ftrace_printk");  
-   write_to_file("/sys/kernel/debug/tracing/tracing_on", "1");
-+  

[OE-core] [PATCH 05/15] lsbinitscripts: update to 9.79

2018-03-01 Thread Alexander Kanavin
Switch to github as pkgs.fedoraproject.org is down.

Signed-off-by: Alexander Kanavin 
---
 .../lsb/lsbinitscripts/functions.patch  | 21 +++--
 ...sbinitscripts_9.72.bb => lsbinitscripts_9.79.bb} |  8 +---
 2 files changed, 16 insertions(+), 13 deletions(-)
 rename meta/recipes-extended/lsb/{lsbinitscripts_9.72.bb => 
lsbinitscripts_9.79.bb} (73%)

diff --git a/meta/recipes-extended/lsb/lsbinitscripts/functions.patch 
b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
index 9c58d90c382..e912daa701a 100644
--- a/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
+++ b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
@@ -1,7 +1,7 @@
-From 57468c5f4e364bdad556604dca09046e1afca929 Mon Sep 17 00:00:00 2001
+From e46b056282c8420f096d5c34d78c00f816788784 Mon Sep 17 00:00:00 2001
 From: Fan Xin 
 Date: Mon, 5 Jun 2017 16:26:47 +0900
-Subject: [PATCH] Upstream-Status: Inappropriate [configuration]
+Subject: [PATCH 1/2] Upstream-Status: Inappropriate [configuration]
 
 Signed-off-by: Xiaofeng Yan 
 Signed-off-by: Saul Wold 
@@ -10,23 +10,24 @@ Rebase on 9.72
 
 Signed-off-by: Fan Xin 
 Upstream-Status: Pending
+
 ---
- initscripts-9.72/rc.d/init.d/functions | 2 +-
+ rc.d/init.d/functions | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-diff --git a/initscripts-9.72/rc.d/init.d/functions 
b/initscripts-9.72/rc.d/init.d/functions
-index 0f627f1..a6aa092 100644
 a/initscripts-9.72/rc.d/init.d/functions
-+++ b/initscripts-9.72/rc.d/init.d/functions
+diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
+index 2e3da964..1a204dec 100644
+--- a/rc.d/init.d/functions
 b/rc.d/init.d/functions
 @@ -59,7 +59,7 @@ systemctl_redirect () {
  [ -z "${COLUMNS:-}" ] && COLUMNS=80
  
  if [ -z "${CONSOLETYPE:-}" ]; then
--if [ -c "/dev/stderr" -a -r "/dev/stderr" ]; then
-+if [ -c "/dev/stderr" -a -r "/dev/stderr" -a -e /sbin/consoletype ]; then
+-if [ -c "/dev/stderr" ] && [ -r "/dev/stderr" ]; then
++if [ -c "/dev/stderr" ] && [ -r "/dev/stderr" ] && [ -e /sbin/consoletype 
]; then
  CONSOLETYPE="$(/sbin/consoletype < /dev/stderr 2>/dev/null)"
  else
  CONSOLETYPE="serial"
 -- 
-1.9.1
+2.15.1
 
diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.72.bb 
b/meta/recipes-extended/lsb/lsbinitscripts_9.79.bb
similarity index 73%
rename from meta/recipes-extended/lsb/lsbinitscripts_9.72.bb
rename to meta/recipes-extended/lsb/lsbinitscripts_9.79.bb
index 2d74a6f9d3b..46edeed8a48 100644
--- a/meta/recipes-extended/lsb/lsbinitscripts_9.72.bb
+++ b/meta/recipes-extended/lsb/lsbinitscripts_9.79.bb
@@ -10,11 +10,13 @@ RCONFLICTS_${PN} = "initscripts-functions"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6"
 
-S="${WORKDIR}/initscripts-${PV}"
-SRC_URI = 
"http://pkgs.fedoraproject.org/repo/pkgs/initscripts/initscripts-${PV}.tar.gz/sha512/b6ed38f9576e9227c2ecf047e2d60e1e872f40d51d13861b0c91dddb282f10f7e6b79706a4d1435d7a57a14a0b73a1b71541cfe44c00e8e03ef96b08de19ec32/initscripts-${PV}.tar.gz
 \
-   file://functions.patch;striplevel=2 \
+S = "${WORKDIR}/git"
+SRC_URI = "git://github.com/fedora-sysv/initscripts \
+   file://functions.patch \

file://0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch \
   " 
+SRCREV = "a51c1b4f7dcf55b568b2ee4c2b18078849943469"
+UPSTREAM_CHECK_GITTAGREGEX = "^(?P\d+(\.\d+)+)"
 
 SRC_URI[md5sum] = "d6c798f40dceb117e12126d94cb25a9a"
 SRC_URI[sha256sum] = 
"1793677bdd1f7ee4cb00878ce43346196374f848a4c8e4559e086040fc7487db"
-- 
2.15.1

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


[OE-core] [PATCH 03/15] oe-selftest: add a test for failing package post-installation scriptlets

2018-03-01 Thread Alexander Kanavin
The test runs a scriptlet that has an intentionally failing command in the 
middle
and checks for two things:
1) that bitbake does warn the user about the failure
2) that scriptlet execution stops at that point.

The test is run for all three package types: rpm, deb, ipk.

Signed-off-by: Alexander Kanavin 
---
 .../recipes-test/postinst/postinst_1.0.bb  | 14 +++-
 meta/lib/oeqa/selftest/cases/runtime_test.py   | 37 ++
 2 files changed, 50 insertions(+), 1 deletion(-)

diff --git a/meta-selftest/recipes-test/postinst/postinst_1.0.bb 
b/meta-selftest/recipes-test/postinst/postinst_1.0.bb
index d4bab6dcc22..913bfabf89e 100644
--- a/meta-selftest/recipes-test/postinst/postinst_1.0.bb
+++ b/meta-selftest/recipes-test/postinst/postinst_1.0.bb
@@ -3,11 +3,12 @@ LICENSE = "MIT"
 
 inherit allarch
 
-PACKAGES = "${PN}-rootfs ${PN}-delayed-a ${PN}-delayed-b"
+PACKAGES = "${PN}-rootfs ${PN}-delayed-a ${PN}-delayed-b ${PN}-rootfs-failing"
 
 ALLOW_EMPTY_${PN}-rootfs = "1"
 ALLOW_EMPTY_${PN}-delayed-a = "1"
 ALLOW_EMPTY_${PN}-delayed-b = "1"
+ALLOW_EMPTY_${PN}-rootfs-failing = "1"
 
 RDEPENDS_${PN}-delayed-a = "${PN}-rootfs"
 RDEPENDS_${PN}-delayed-b = "${PN}-delayed-a"
@@ -58,3 +59,14 @@ pkg_postinst_ontarget_${PN}-delayed-b () {
 
 touch ${TESTDIR}/delayed-b
 }
+
+# This scriptlet intentionally includes a bogus command in the middle to test 
+# that we catch and report such errors properly.
+pkg_postinst_${PN}-rootfs-failing () {
+mkdir -p $D${TESTDIR}
+touch $D${TESTDIR}/rootfs-before-failure
+run_a_really_broken_command
+# Scriptlet execution should stop here; the following commands are NOT 
supposed to run.
+# (oe-selftest checks for it).
+touch $D${TESTDIR}/rootfs-after-failure
+}
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py 
b/meta/lib/oeqa/selftest/cases/runtime_test.py
index 1c69255b568..9c9b4b34111 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -221,3 +221,40 @@ class Postinst(OESelftestTestCase):
 for filename in ("rootfs", "delayed-a", "delayed-b"):
 status, output = qemu.run_serial("test -f %s && 
echo found" % os.path.join(targettestdir, filename))
 self.assertEqual(output, "found", "%s was not 
present on boot" % filename)
+
+
+
+def test_failing_postinst(self):
+"""
+Summary:The purpose of this test case is to verify that 
post-installation
+scripts that contain errors are properly reported.
+Expected:   The scriptlet failure is properly reported.
+The file that is created after the error in the 
scriptlet is not present.
+Product: oe-core
+Author: Alexander Kanavin 
+"""
+
+import oe.path
+
+vars = get_bb_vars(("IMAGE_ROOTFS", "sysconfdir"), 
"core-image-minimal")
+rootfs = vars["IMAGE_ROOTFS"]
+self.assertIsNotNone(rootfs)
+sysconfdir = vars["sysconfdir"]
+self.assertIsNotNone(sysconfdir)
+# Need to use oe.path here as sysconfdir starts with /
+hosttestdir = oe.path.join(rootfs, sysconfdir, "postinst-test")
+
+for classes in ("package_rpm", "package_deb", "package_ipk"):
+with self.subTest(package_class=classes):
+features = 'CORE_IMAGE_EXTRA_INSTALL = 
"postinst-rootfs-failing"\n'
+features += 'PACKAGE_CLASSES = "%s"\n' % classes
+self.write_config(features)
+bb_result = bitbake('core-image-minimal')
+self.assertGreaterEqual(bb_result.output.find("Intentionally 
failing postinstall scriptlets of ['postinst-rootfs-failing'] to defer them to 
first boot is deprecated."), 0,
+"Warning about a failed scriptlet not found in bitbake 
output: %s" %(bb_result.output))
+
+self.assertTrue(os.path.isfile(os.path.join(hosttestdir, 
"rootfs-before-failure")),
+"rootfs-before-failure file was not 
created")
+self.assertFalse(os.path.isfile(os.path.join(hosttestdir, 
"rootfs-after-failure")),
+"rootfs-after-failure file was created")
+
-- 
2.15.1

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


[OE-core] [PATCH 01/15] package.bbclass: run pre/post installation/removal scriptlets using sh -e

2018-03-01 Thread Alexander Kanavin
This allows catching errors in the scriptlets which would otherwise
go unnoticed, e.g. this sequence:

bogus_command
proper_command

would work just fine without any visible warnings or errors.

This was previously done only for rpm packages; this patch replaces
the rpm-specific tweak with one that works for all package types.

Signed-off-by: Alexander Kanavin 
---
 meta/classes/package.bbclass | 12 
 meta/classes/package_rpm.bbclass |  8 
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index e7e93a067a6..56b3beb2e65 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1343,6 +1343,17 @@ fi
 postinst += postinst_ontarget
 d.setVar('pkg_postinst_%s' % pkg, postinst)
 
+def add_set_e_to_scriptlets(pkg):
+for scriptlet_name in ('pkg_preinst', 'pkg_postinst', 'pkg_prerm', 
'pkg_postrm'):
+scriptlet = d.getVar('%s_%s' % (scriptlet_name, pkg))
+if scriptlet:
+scriptlet_split = scriptlet.split('\n')
+if scriptlet_split[0].startswith("#!"):
+scriptlet = scriptlet_split[0] + "\nset -e\n" + 
"\n".join(scriptlet_split[1:])
+else:
+scriptlet = "set -e\n" + "\n".join(scriptlet_split[0:])
+d.setVar('%s_%s' % (scriptlet_name, pkg), scriptlet)
+
 def write_if_exists(f, pkg, var):
 def encode(str):
 import codecs
@@ -1439,6 +1450,7 @@ fi
 write_if_exists(sf, pkg, 'FILES')
 write_if_exists(sf, pkg, 'CONFFILES')
 process_postinst_on_target(pkg, d.getVar("MLPREFIX"))
+add_set_e_to_scriptlets(pkg)
 write_if_exists(sf, pkg, 'pkg_postinst')
 write_if_exists(sf, pkg, 'pkg_postrm')
 write_if_exists(sf, pkg, 'pkg_preinst')
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index e26b2ad6625..af64ef62c58 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -470,12 +470,12 @@ python write_specfile () {
 
 # Now process scriptlets
 if splitrpreinst:
-spec_scriptlets_bottom.append('%%pre -n %s -p "/bin/sh -e"' % 
splitname)
+spec_scriptlets_bottom.append('%%pre -n %s' % splitname)
 spec_scriptlets_bottom.append('# %s - preinst' % splitname)
 spec_scriptlets_bottom.append(splitrpreinst)
 spec_scriptlets_bottom.append('')
 if splitrpostinst:
-spec_scriptlets_bottom.append('%%post -n %s -p "/bin/sh -e"' % 
splitname)
+spec_scriptlets_bottom.append('%%post -n %s' % splitname)
 spec_scriptlets_bottom.append('# %s - postinst' % splitname)
 spec_scriptlets_bottom.append(splitrpostinst)
 spec_scriptlets_bottom.append('')
@@ -564,12 +564,12 @@ python write_specfile () {
 spec_preamble_top.append('')
 
 if srcrpreinst:
-spec_scriptlets_top.append('%pre -p "/bin/sh -e"')
+spec_scriptlets_top.append('%pre')
 spec_scriptlets_top.append('# %s - preinst' % srcname)
 spec_scriptlets_top.append(srcrpreinst)
 spec_scriptlets_top.append('')
 if srcrpostinst:
-spec_scriptlets_top.append('%post -p "/bin/sh -e"')
+spec_scriptlets_top.append('%post')
 spec_scriptlets_top.append('# %s - postinst' % srcname)
 spec_scriptlets_top.append(srcrpostinst)
 spec_scriptlets_top.append('')
-- 
2.15.1

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


[OE-core] [PATCH 02/15] meta/lib/oe/package_manager.py: warn about failing scriptlets for all package types

2018-03-01 Thread Alexander Kanavin
Previously this was done only for rpm packages; now also ipk/deb scriptlet
failures are reported.

In the future this will become a hard error, but it can't yet happen
due to the legacy 'exit 1' way of deferring scriptlet execution to first boot 
which
needs a deprecation period.

Signed-off-by: Alexander Kanavin 
---
 meta/lib/oe/package_manager.py | 18 +++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index f7e013437c9..1ae31f8e744 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -83,6 +83,11 @@ def opkg_query(cmd_output):
 
 return output
 
+# Note: this should be bb.fatal in the future.
+def failed_postinsts_warn(pkgs, log_path):
+bb.warn("""Intentionally failing postinstall scriptlets of %s to defer 
them to first boot is deprecated. Please place them into 
pkg_postinst_ontarget_${PN} ().
+If deferring to first boot wasn't the intent, then scriptlet failure may mean 
an issue in the recipe, or a regression elsewhere.
+Details of the failure are in %s.""" %(pkgs, log_path))
 
 class Indexer(object, metaclass=ABCMeta):
 def __init__(self, d, deploy_dir):
@@ -605,8 +610,7 @@ class RpmPM(PackageManager):
 failed_scriptlets_pkgnames[line.split()[-1]] = True
 
 if len(failed_scriptlets_pkgnames) > 0:
-bb.warn("Intentionally failing postinstall scriptlets of %s to 
defer them to first boot is deprecated. Please place them into 
pkg_postinst_ontarget_${PN} ()." %(list(failed_scriptlets_pkgnames.keys(
-bb.warn("If deferring to first boot wasn't the intent, then 
scriptlet failure may mean an issue in the recipe, or a regression elsewhere.")
+failed_postinsts_warn(list(failed_scriptlets_pkgnames.keys()), 
self.d.expand("${T}/log.do_rootfs"))
 for pkg in failed_scriptlets_pkgnames.keys():
 self.save_rpmpostinst(pkg)
 
@@ -1068,6 +1072,13 @@ class OpkgPM(OpkgDpkgPM):
 bb.note(cmd)
 output = subprocess.check_output(cmd.split(), 
stderr=subprocess.STDOUT).decode("utf-8")
 bb.note(output)
+failed_pkgs = []
+for line in output.split('\n'):
+if line.endswith("configuration required on target."):
+bb.warn(line)
+failed_pkgs.append(line.split(".")[0])
+if failed_pkgs:
+failed_postinsts_warn(failed_pkgs, 
self.d.expand("${T}/log.do_rootfs"))
 except subprocess.CalledProcessError as e:
 (bb.fatal, bb.note)[attempt_only]("Unable to install packages. "
   "Command '%s' returned %d:\n%s" %
@@ -1331,9 +1342,10 @@ class DpkgPM(OpkgDpkgPM):
 stderr=subprocess.STDOUT).decode("utf-8")
 bb.note(output)
 except subprocess.CalledProcessError as e:
-bb.note("%s for package %s failed with %d:\n%s" %
+bb.warn("%s for package %s failed with %d:\n%s" %
 (control_script.name, pkg_name, e.returncode,
 e.output.decode("utf-8")))
+failed_postinsts_warn([pkg_name], 
self.d.expand("${T}/log.do_rootfs"))
 failed_pkgs.append(pkg_name)
 break
 
-- 
2.15.1

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


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

2018-03-01 Thread Alexander Kanavin
Dropped patches:
0001-Use-epoll-API-on-Linux.patch replaced by
http://git.yoctoproject.org/cgit/cgit.cgi/pseudo/commit/?id=0a3e435085046f535074f498a3de75a7704fb14c
(also add --enable-epoll to configure options)

b6b68db896f9963558334aff7fca61adde4ec10f.patch merged upstream

efe0be279901006f939cd357ccee47b651c786da.patch merged upstream

fastopreply.patch replaced by
http://git.yoctoproject.org/cgit/cgit.cgi/pseudo/commit/?id=449c234d3030328fb997b309511bb54598848a05

toomanyfiles.patch rebased

Signed-off-by: Alexander Kanavin 
---
 .../pseudo/files/0001-Use-epoll-API-on-Linux.patch | 292 -
 .../b6b68db896f9963558334aff7fca61adde4ec10f.patch |  48 
 .../efe0be279901006f939cd357ccee47b651c786da.patch |  99 ---
 .../pseudo/files/fastopreply.patch |  76 --
 .../pseudo/files/toomanyfiles.patch|  44 ++--
 meta/recipes-devtools/pseudo/pseudo.inc|   2 +-
 meta/recipes-devtools/pseudo/pseudo_1.8.2.bb   |  16 --
 meta/recipes-devtools/pseudo/pseudo_git.bb |  11 +-
 8 files changed, 34 insertions(+), 554 deletions(-)
 delete mode 100644 
meta/recipes-devtools/pseudo/files/0001-Use-epoll-API-on-Linux.patch
 delete mode 100644 
meta/recipes-devtools/pseudo/files/b6b68db896f9963558334aff7fca61adde4ec10f.patch
 delete mode 100644 
meta/recipes-devtools/pseudo/files/efe0be279901006f939cd357ccee47b651c786da.patch
 delete mode 100644 meta/recipes-devtools/pseudo/files/fastopreply.patch
 delete mode 100644 meta/recipes-devtools/pseudo/pseudo_1.8.2.bb

diff --git 
a/meta/recipes-devtools/pseudo/files/0001-Use-epoll-API-on-Linux.patch 
b/meta/recipes-devtools/pseudo/files/0001-Use-epoll-API-on-Linux.patch
deleted file mode 100644
index 42557b17a7f..000
--- a/meta/recipes-devtools/pseudo/files/0001-Use-epoll-API-on-Linux.patch
+++ /dev/null
@@ -1,292 +0,0 @@
-From 9e407e0be01695e7b927f5820ade87ee9602c248 Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Fri, 15 Sep 2017 17:00:14 +0300
-Subject: [PATCH] Use epoll API on Linux
-
-Also a couple of other modifications due to epoll having
-a different approach to how the working set of fds is defined
-and used:
-1) open_client() returns an index into the array of clients
-2) close_client() has a protection against being called twice
-with the same client (which would mess up the active_clients
-counter)
-
-Upstream-Status: Submitted [Seebs CC'd by email]
-Signed-off-by: Alexander Kanavin 
-

- enums/exit_status.in |   3 +
- pseudo_server.c  | 189 ++-
- 2 files changed, 190 insertions(+), 2 deletions(-)
-
-diff --git a/enums/exit_status.in b/enums/exit_status.in
-index 6be44d3..88f94cd 100644
 a/enums/exit_status.in
-+++ b/enums/exit_status.in
-@@ -18,3 +18,6 @@ listen_fd, "server loop had no valid listen fd"
- pseudo_loaded, "server couldn't get out of pseudo environment"
- pseudo_prefix, "couldn't get valid pseudo prefix"
- pseudo_invocation, "invalid server command arguments"
-+epoll_create, "epoll_create() failed"
-+epoll_ctl, "epoll_ctl() failed"
-+
-diff --git a/pseudo_server.c b/pseudo_server.c
-index ff16efd..14d34de 100644
 a/pseudo_server.c
-+++ b/pseudo_server.c
-@@ -40,6 +40,12 @@
- #include "pseudo_client.h"
- #include "pseudo_db.h"
- 
-+// This has to come after pseudo includes, as that's where PSEUDO_PORT 
defines are
-+#ifdef PSEUDO_PORT_LINUX
-+#include 
-+#endif
-+
-+
- static int listen_fd = -1;
- 
- typedef struct {
-@@ -59,6 +65,7 @@ static int active_clients = 0, highest_client = 0, 
max_clients = 0;
- 
- #define LOOP_DELAY 2
- #define DEFAULT_PSEUDO_SERVER_TIMEOUT 30
-+#define EPOLL_MAX_EVENTS 10
- int pseudo_server_timeout = DEFAULT_PSEUDO_SERVER_TIMEOUT;
- static int die_peacefully = 0;
- static int die_forcefully = 0;
-@@ -80,6 +87,9 @@ quit_now(int signal) {
- static int messages = 0, responses = 0;
- static struct timeval message_time = { .tv_sec = 0 };
- 
-+#ifdef PSEUDO_PORT_LINUX
-+static void pseudo_server_loop_epoll(void);
-+#endif
- static void pseudo_server_loop(void);
- 
- /* helper function to make a directory, just like mkdir -p.
-@@ -369,12 +379,16 @@ pseudo_server_start(int daemonize) {
-   kill(ppid, SIGUSR1);
-   }
-   }
-+#ifdef PSEUDO_PORT_LINUX
-+  pseudo_server_loop_epoll();
-+#else
-   pseudo_server_loop();
-+#endif
-   return 0;
- }
- 
- /* mess with internal tables as needed */
--static void
-+static unsigned int
- open_client(int fd) {
-   pseudo_client_t *new_clients;
-   int i;
-@@ -390,7 +404,7 @@ open_client(int fd) {
-   ++active_clients;
-   if (i > highest_client)
-   highest_client = i;
--  return;
-+  return i;
-   }
-   }
- 
-@@ -414,9 +428,11 @@ open_client(int fd) {
- 
-   max_clients 

Re: [OE-core] [PATCH v2] kernel-devsrc: restructure for out of tree (and on target) module builds

2018-03-01 Thread Bruce Ashfield

On 2018-03-01 5:58 AM, Maxin B. John wrote:



Also fails on musl:

ERROR: Nothing RPROVIDES 'glibc-utils' (but 
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-musl/build/meta/recipes-kernel/linux/kernel-devsrc.bb
 RDEPENDS on or otherwise requires it)

Ross

On 1 March 2018 at 08:28, Maxin B. John  wrote:


  >On Wed, Feb 28, 2018 at 02:20:45PM -0500, Bruce Ashfield wrote:
  >> The existing kernel-devsrc package starts with a full copy of the kernel
  >> source and then starts to strip out elements that are not required.
  >>
  >> This results in extra time (I/O) and extra space being taken up in the
  >> final package. The main purpose of the kernel-devsrc package has been to
  >> build modules against the running kernel, not to include a full copy of
  >> the source code for re-building the kernel. The end result was a
  >> 600M kernel-devsrc package.

  Other failures are listed below:
  
  arm64:

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

  RESULTS - kernelmodule.KernelModuleTest.test_kernel_module - Testcase 1541: 
FAILED

HOSTCC  scripts/sortextable
  scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h: No such file 
or directory
#include 
   ^~
compilation terminated.
make[1]: *** [scripts/Makefile.host:102: scripts/sortextable] Error 1
make: *** [Makefile:557: scripts] Error 2
--

Similar on qemuarm - poky-lsb :

https://autobuilder.yocto.io/builders/nightly-arm-lsb/builds/812/steps/Running%20Sanity%20Tests/logs/stdio

HOSTCC  scripts/recordmcount
HOSTCC  scripts/sortextable
scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h: No such file or 
directory
 #include 
   ^~
   compilation terminated.
   make[1]: *** [scripts/Makefile.host:102: scripts/sortextable] 
Error 1
   make: *** [Makefile:557: scripts] Error 2
-

Also on PowerPC:

https://autobuilder.yocto.io/builders/nightly-ppc-lsb/builds/814/steps/Running%20Sanity%20Tests/logs/stdio

scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h: No such file or 
directory
  #include 
^~
compilation terminated.
make[1]: *** [scripts/Makefile.host:102: scripts/sortextable] Error 1
make: *** [Makefile:557: scripts] Error 2


I have all these fixed now.

Will have a look at musl next.

Cheers,

Bruce



Best Regards,
Maxin



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


Re: [OE-core] [PATCH v2] kernel-devsrc: restructure for out of tree (and on target) module builds

2018-03-01 Thread Bruce Ashfield
Interesting. I'll look at the errors and send a v3 next week.

I unfortunately have no capability to run the oe-selftests on my
builder, so I can only fix these
by inspection.

Cheers,

Bruce

On Thu, Mar 1, 2018 at 5:58 AM, Maxin B. John  wrote:
>
>>Also fails on musl:
>>
>>ERROR: Nothing RPROVIDES 'glibc-utils' (but 
>>/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-musl/build/meta/recipes-kernel/linux/kernel-devsrc.bb
>> RDEPENDS on or otherwise requires it)
>>
>>Ross
>>
>>On 1 March 2018 at 08:28, Maxin B. John  wrote:
>
>  >On Wed, Feb 28, 2018 at 02:20:45PM -0500, Bruce Ashfield wrote:
>  >> The existing kernel-devsrc package starts with a full copy of the kernel
>  >> source and then starts to strip out elements that are not required.
>  >>
>  >> This results in extra time (I/O) and extra space being taken up in the
>  >> final package. The main purpose of the kernel-devsrc package has been to
>  >> build modules against the running kernel, not to include a full copy of
>  >> the source code for re-building the kernel. The end result was a
>  >> 600M kernel-devsrc package.
>
>  Other failures are listed below:
>
>  arm64:
>  
> https://autobuilder.yocto.io/builders/nightly-arm64/builds/790/steps/Running%20Sanity%20Tests/logs/stdio
>
>  RESULTS - kernelmodule.KernelModuleTest.test_kernel_module - Testcase 1541: 
> FAILED
>
> HOSTCC  scripts/sortextable
>  scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h: No such file 
> or directory
> #include 
>   ^~
> compilation terminated.
> make[1]: *** [scripts/Makefile.host:102: scripts/sortextable] Error 1
> make: *** [Makefile:557: scripts] Error 2
> --
>
> Similar on qemuarm - poky-lsb :
>
> https://autobuilder.yocto.io/builders/nightly-arm-lsb/builds/812/steps/Running%20Sanity%20Tests/logs/stdio
>
> HOSTCC  scripts/recordmcount
> HOSTCC  scripts/sortextable
> scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h: No such file 
> or directory
> #include 
>   ^~
>   compilation terminated.
>   make[1]: *** [scripts/Makefile.host:102: scripts/sortextable] 
> Error 1
>   make: *** [Makefile:557: scripts] Error 2
> -
>
> Also on PowerPC:
>
> https://autobuilder.yocto.io/builders/nightly-ppc-lsb/builds/814/steps/Running%20Sanity%20Tests/logs/stdio
>
> scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h: No such file 
> or directory
>  #include 
>^~
> compilation terminated.
> make[1]: *** [scripts/Makefile.host:102: scripts/sortextable] Error 1
> make: *** [Makefile:557: scripts] Error 2
>
> Best Regards,
> Maxin
> --
> ___
> 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] kernel-devsrc: restructure for out of tree (and on target) module builds

2018-03-01 Thread Bruce Ashfield
On Thu, Mar 1, 2018 at 3:28 AM, Maxin B. John  wrote:
> Hi,
>
> On Wed, Feb 28, 2018 at 02:20:45PM -0500, Bruce Ashfield wrote:
>> The existing kernel-devsrc package starts with a full copy of the kernel
>> source and then starts to strip out elements that are not required.
>>
>> This results in extra time (I/O) and extra space being taken up in the
>> final package. The main purpose of the kernel-devsrc package has been to
>> build modules against the running kernel, not to include a full copy of
>> the source code for re-building the kernel. The end result was a
>> 600M kernel-devsrc package.
>>
>> This restructuring of the package uses an approach similar to other
>> distros, where the kernel-devsrc package is for building against the
>> running kernel and uses a curated set of copied infrastructure, versus
>> a mass copy of the entire kernel.
>>
>> The differences in this approach versus other is largely due to the
>> architecture support and the split build/source directory of the
>> kernel.
>>
>> The result is a kernel-devsrc package of about 10M, which is capable
>> of running "make scripts" and compiling kernel modules against the
>> running kernel.
>>
>> Along with the changes to the copying of the infrascture, we also
>> have the following changes:
>>
>>  - a better/more explicit listing of dependencies for on-target
>>builds of "make scripts" or "make modules_prepare"
>>
>>  - The kernel source is installed into /lib/modules//build
>>and a symlink created from /usr/src/kernel to the new location.
>>This aligns with the standard location for module support
>>code
>>
>>  - There is also a symlink from /lib/modules//source -> build
>>to reserve a spot for a new package that is simply the kernel
>>source. That package is not part of this update.
>>
>> [YOCTO #12535]
>>
>> Signed-off-by: Bruce Ashfield 
>> ---
>>
>>  v2: fix arch/arm devsrc builds
>
> Noticed one kernel-devsrc build failure in autobuilder (qemuarm) :
>
> https://autobuilder.yocto.io/builders/nightly-arm/builds/876/steps/BuildImages/logs/stdio

This failure actually can't be from v2, it is the v1 issue I fixed.
The offending lines of
code are completely gone.

Bruce

>
> ERROR: kernel-devsrc-1.0-r0 do_install: Function failed: do_install (log file 
> is located at 
> /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/build/tmp/work/qemuarm-poky-linux-gnueabi/kernel-devsrc/1.0-r0/temp/log.do_install.25822)
> ERROR: Logfile of failure stored in: 
> /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/build/tmp/work/qemuarm-poky-linux-gnueabi/kernel-devsrc/1.0-r0/temp/log.do_install.25822
> Log data follows:
> | DEBUG: Executing python function extend_recipe_sysroot
> | NOTE: Direct dependencies are 
> ['/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/binutils/binutils-cross_2.30.bb:do_populate_sysroot',
>  
> 'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-extended/xz/xz_5.2.3.bb:do_populate_sysroot',
>  
> 'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot',
>  
> 'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot',
>  
> '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot',
>  
> '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot',
>  
> '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/gcc/gcc-cross_
 7.
>  3.bb:do_populate_sysroot', 
> 'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot',
>  
> 'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot',
>  
> '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot',
>  
> '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot',
>  
> 'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot',
>  
> '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot',
>  
> 'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-connectivity/openssl/openssl_1.0.2n.bb
 :d
>  o_populate_sysroot']
> | NOTE: Installed into sysroot: ['pkgconfig-native', 'lzop-native', 
> 'kern-tools-native', 'pseudo-native', 

[OE-core] [PATCH] package.bbclass: fetch PRIVATE_LIBS twice as we iterate twice

2018-03-01 Thread Ross Burton
The shlibs detection/handling iterates the package list twice, but PRIVATE_LIBS
is only fetched in the first loop which means the second loop only considers the
value set.

Signed-off-by: Ross Burton 
---
 meta/classes/package.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index e7e93a067a6..317c77585fc 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1773,6 +1773,9 @@ python package_do_shlibs() {
 for pkg in packages.split():
 bb.debug(2, "calculating shlib requirements for %s" % pkg)
 
+private_libs = d.getVar('PRIVATE_LIBS_' + pkg) or 
d.getVar('PRIVATE_LIBS') or ""
+private_libs = private_libs.split()
+
 deps = list()
 for n in needed[pkg]:
 # if n is in private libraries, don't try to search provider for it
-- 
2.11.0

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


Re: [OE-core] [PATCH 2/4] systemd: upgrade to 236

2018-03-01 Thread Burton, Ross
>
> The PACKAGECONFIG 'manpages' is now renamed to 'man'. I forgot to mention
> this in commit message.
> I renamed it to 'man' because in meson_options.txt, we have:
> option('man', type : 'combo', choices : ['auto', 'true', 'false'],
>description : 'build and install man pages')


For compatibility with people changing the value can we keep the
PACKAGECONFIG as manpages please.

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


Re: [OE-core] [PATCH v2] kernel-devsrc: restructure for out of tree (and on target) module builds

2018-03-01 Thread Maxin B. John

>Also fails on musl:
>
>ERROR: Nothing RPROVIDES 'glibc-utils' (but 
>/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-musl/build/meta/recipes-kernel/linux/kernel-devsrc.bb
> RDEPENDS on or otherwise requires it)
>
>Ross
>
>On 1 March 2018 at 08:28, Maxin B. John  wrote:

 >On Wed, Feb 28, 2018 at 02:20:45PM -0500, Bruce Ashfield wrote:
 >> The existing kernel-devsrc package starts with a full copy of the kernel
 >> source and then starts to strip out elements that are not required.
 >>
 >> This results in extra time (I/O) and extra space being taken up in the
 >> final package. The main purpose of the kernel-devsrc package has been to
 >> build modules against the running kernel, not to include a full copy of
 >> the source code for re-building the kernel. The end result was a
 >> 600M kernel-devsrc package.

 Other failures are listed below:
 
 arm64:
 
https://autobuilder.yocto.io/builders/nightly-arm64/builds/790/steps/Running%20Sanity%20Tests/logs/stdio

 RESULTS - kernelmodule.KernelModuleTest.test_kernel_module - Testcase 1541: 
FAILED

HOSTCC  scripts/sortextable
 scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h: No such file 
or directory
#include 
  ^~
compilation terminated.
make[1]: *** [scripts/Makefile.host:102: scripts/sortextable] Error 1
make: *** [Makefile:557: scripts] Error 2
--

Similar on qemuarm - poky-lsb :

https://autobuilder.yocto.io/builders/nightly-arm-lsb/builds/812/steps/Running%20Sanity%20Tests/logs/stdio

HOSTCC  scripts/recordmcount
HOSTCC  scripts/sortextable
scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h: No such file or 
directory
#include 
  ^~
  compilation terminated.
  make[1]: *** [scripts/Makefile.host:102: scripts/sortextable] 
Error 1
  make: *** [Makefile:557: scripts] Error 2
-

Also on PowerPC:

https://autobuilder.yocto.io/builders/nightly-ppc-lsb/builds/814/steps/Running%20Sanity%20Tests/logs/stdio

scripts/sortextable.c:31:10: fatal error: tools/be_byteshift.h: No such file or 
directory
 #include 
   ^~
compilation terminated.
make[1]: *** [scripts/Makefile.host:102: scripts/sortextable] Error 1
make: *** [Makefile:557: scripts] Error 2

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


[OE-core] ✗ patchtest: failure for glibc: Enable static PIE support when security_flags are enabled

2018-03-01 Thread Patchwork
== Series Details ==

Series: glibc: Enable static PIE support when security_flags are enabled
Revision: 1
URL   : https://patchwork.openembedded.org/series/11161/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue Series does not apply on top of target branch 
[test_series_merge_on_head] 
  Suggested fixRebase your series on top of targeted branch
  Targeted branch  master (currently at b30153a157)



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


[OE-core] Questions about udev rule and systemd-udev,relevant to mounting block device

2018-03-01 Thread Hongzhi, Song

Defect:

    The exiting method of automount of udev in /oe-core/meta/ /is using

/automount.rules/ which call /mount.sh/ that using //bin/mount/ to mount 
device.


But systemd-udevd detaches /mount()/ operations done within the service

from the rest of the system with MountFlag=slave, this means host can

not access device. (e.g. Executing /mkfs.ext4 /dev/sda1// prompts

//dev/sda1 is apparently in use by the system; will not make a 
filesystem here!/)



Solution:

    Systemd upstream suggest that the best way is to use "systemd-mount"

in udev rules, which will request the mount operation to be executed by 
PID 1.


And I have tested it was effective.


Uncertain:

    The exiting method is designed for /SysV-init /which is not 
compatible to


systemd-udev, at least that's what I think. So I think that we should design

a new rule or organizational structure to be suitable for systemd-udev and

to mount deferent device. Dose anyone help do this? Or I can make some

improvements on the basis of the existing with "systemd-mount".

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


Re: [OE-core] [PATCH] oeqa/runtime/dpkg.py: add runtime test for dpkg

2018-03-01 Thread Alexander Kanavin

On 03/01/2018 04:11 AM, Yeoh Ee Peng wrote:

Add runtime test for dpkg to test that it can install deb
package from remote source.

Signed-off-by: Yeoh Ee Peng 
---
  meta/lib/oeqa/runtime/cases/dpkg.py | 47 +
  1 file changed, 47 insertions(+)
  create mode 100644 meta/lib/oeqa/runtime/cases/dpkg.py

diff --git a/meta/lib/oeqa/runtime/cases/dpkg.py 
b/meta/lib/oeqa/runtime/cases/dpkg.py
new file mode 100644
index 000..adf5195
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/dpkg.py
@@ -0,0 +1,47 @@
+import os
+from oeqa.utils.httpserver import HTTPService
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature
+from oeqa.runtime.decorator.package import OEHasPackage
+
+class DpkgTest(OERuntimeTestCase):
+
+def pkg(self, command, expected = 0):
+command = 'apt-get %s' % command
+status, output = self.target.run(command, 1500)
+message = os.linesep.join([command, output])
+self.assertEqual(status, expected, message)
+return output


This is testing apt, not dpkg. So the file name and the testcases/class 
names should be renamed accoridngly.




+def test_dpkg_install_from_repo(self):
+self.setup_source_config_for_package_install()
+self.pkg('update')
+self.pkg('remove --yes run-postinsts-dev')
+self.pkg('install --yes --allow-unauthenticated run-postinsts-dev')
+self.cleanup_source_config_for_package_install()


That's a good start, but apt can do more, right? Play with its various 
utilities (apt-get, apt-cache, etc.) on the command line. What kind of 
features it has? Can those be tested automatically? Should they be tested?


Also, before you do advanced package installation/removal, it's good to 
run a few sanity checks. Check that apt is able to print a help message 
without crashing, that it can list installed and available packages and 
so on. You can look at dnf test cases for examples.


And same applies to opkg test cases as well.

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


[OE-core] [PATCHv3] libpam: be more strict about user's sanity

2018-03-01 Thread Martin Jansa
* replace do_pam_sanity function with distro_features_check inherit
* fixes:
  WARNING: libpam-1.3.0-r5 do_pam_sanity: Building libpam but 'pam' isn't in 
DISTRO_FEATURES, PAM won't work correctly
  in world builds and prevents user to build libpam at all without pam
  in DISTRO_FEATURES, I don't see any users of this which wouldn't respect
  pam in DISTRO_FEATURES
* only libuser is depending on libpam without respecting DISTRO_FEATURES
* there are few recipes in meta-oe layers depending on libpam without
  respecting DISTRO_FEATURES, I've sent patch for them:
  samba, openwsman, pam-ssh-agent-auth, sblim-sfcb, passwdqc, python-pam, 
smbnetfs
  and omxplayer in meta-raspberrypi, I've sent PR for that one:
  https://github.com/agherzan/meta-raspberrypi/pull/192
* poky-lsb will need to add pam to DISTRO_FEATURES in order to build
  packagegroup-core-lsb

Signed-off-by: Martin Jansa 
---
 meta/recipes-extended/libuser/libuser_0.62.bb| 3 +++
 meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb | 3 +++
 meta/recipes-extended/pam/libpam_1.3.0.bb| 7 ++-
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-extended/libuser/libuser_0.62.bb 
b/meta/recipes-extended/libuser/libuser_0.62.bb
index 1765346646..7ec54eb16e 100644
--- a/meta/recipes-extended/libuser/libuser_0.62.bb
+++ b/meta/recipes-extended/libuser/libuser_0.62.bb
@@ -22,6 +22,9 @@ SRC_URI[sha256sum] = 
"a58ff4fabb01a25043b142185a33eeea961109dd60d4b40b6a9df4fa3c
 
 DEPENDS = "popt libpam glib-2.0 python3"
 
+inherit distro_features_check
+REQUIRED_DISTRO_FEATURES = "pam"
+
 inherit autotools gettext python3native python3-dir pkgconfig gtk-doc
 
 EXTRA_OEMAKE = "PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"
diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb 
b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
index 8959e3c8f4..53d100ce74 100644
--- a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
+++ b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
@@ -14,6 +14,9 @@ REQUIRED_DISTRO_FEATURES = "x11"
 # libglu needs virtual/libgl, which requires opengl in DISTRO_FEATURES
 REQUIRED_DISTRO_FEATURES += "opengl"
 
+# libpam, pam-plugin-wheel requires pam in DISTRO_FEATURES
+REQUIRED_DISTRO_FEATURES += "pam"
+
 #
 # We will skip parsing this packagegeoup for non-glibc systems
 #
diff --git a/meta/recipes-extended/pam/libpam_1.3.0.bb 
b/meta/recipes-extended/pam/libpam_1.3.0.bb
index 8f7753d001..92ab72a42f 100644
--- a/meta/recipes-extended/pam/libpam_1.3.0.bb
+++ b/meta/recipes-extended/pam/libpam_1.3.0.bb
@@ -151,11 +151,8 @@ do_install() {
fi
 }
 
-python do_pam_sanity () {
-if not bb.utils.contains('DISTRO_FEATURES', 'pam', True, False, d):
-bb.warn("Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't 
work correctly")
-}
-addtask pam_sanity before do_configure
+inherit distro_features_check
+REQUIRED_DISTRO_FEATURES = "pam"
 
 BBCLASSEXTEND = "nativesdk native"
 
-- 
2.15.1

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


[OE-core] [PATCH V2] glibc: Enable static PIE support when security_flags are enabled

2018-03-01 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta/conf/distro/include/security_flags.inc | 2 ++
 meta/recipes-core/glibc/glibc_2.27.bb   | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/meta/conf/distro/include/security_flags.inc 
b/meta/conf/distro/include/security_flags.inc
index 49d2417a88..d66dd57649 100644
--- a/meta/conf/distro/include/security_flags.inc
+++ b/meta/conf/distro/include/security_flags.inc
@@ -6,6 +6,7 @@
 # in the DISTRO="poky-lsb" configuration.
 
 GCCPIE ?= "--enable-default-pie"
+GLIBCPIE ?= "--enable-static-pie"
 
 # _FORTIFY_SOURCE requires -O1 or higher, so disable in debug builds as they 
use
 # -O0 which then results in a compiler warning.
@@ -30,6 +31,7 @@ SECURITY_X_LDFLAGS ?= "-fstack-protector-strong -Wl,-z,relro"
 SECURITY_CFLAGS_powerpc = "-fstack-protector-strong ${lcl_maybe_fortify} 
${SECURITY_NOPIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libgcc_powerpc = ""
 GCCPIE_powerpc = ""
+GLIBCPIE_powerpc = ""
 
 # arm specific security flag issues
 SECURITY_CFLAGS_pn-glibc = ""
diff --git a/meta/recipes-core/glibc/glibc_2.27.bb 
b/meta/recipes-core/glibc/glibc_2.27.bb
index e9d4117a47..f5dd086ffc 100644
--- a/meta/recipes-core/glibc/glibc_2.27.bb
+++ b/meta/recipes-core/glibc/glibc_2.27.bb
@@ -68,6 +68,8 @@ GLIBC_BROKEN_LOCALES = ""
 #
 COMPATIBLE_HOST_libc-musl_class-target = "null"
 
+GLIBCPIE ??= ""
+
 EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
 --without-cvs --disable-profile \
 --disable-debug --without-gd \
@@ -81,6 +83,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
 --enable-bind-now \
 --enable-stack-protector=strong \
 --enable-stackguard-randomization \
+${GLIBCPIE} \
 ${GLIBC_EXTRA_OECONF}"
 
 EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
-- 
2.16.2

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


Re: [OE-core] [PATCH] glibc: Enable static PIE support

2018-03-01 Thread Khem Raj
On Thu, Mar 1, 2018 at 12:35 AM, Burton, Ross  wrote:
> Would this be the cause of glibc failing to build like this on PPC?
>
> |
> /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc/build/build/tmp/work/ppc7400-poky-linux/glibc/2.27-r0/recipe-sysroot-native/usr/bin/powerpc-poky-linux.gcc-cross-initial-powerpc/../../libexec/powerpc-poky-linux.gcc-cross-initial-powerpc/gcc/powerpc-poky-linux/7.3.0/ld:
> read-only segment has dynamic relocations.
>

yes, I think we need to enable this option only for x86/x86_64/aarch64
since they alone support static PIE and may be we should limit this
to only with security_flags are enabled.

> The previous glibc run was all green, added this patch and it fails.
>
> Ross
>
> On 28 February 2018 at 20:46, Khem Raj  wrote:
>>
>> go programs when compiled with PIE fails otherwise on aarch64
>>
>> Signed-off-by: Khem Raj 
>> ---
>>  meta/recipes-core/glibc/glibc_2.27.bb | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/recipes-core/glibc/glibc_2.27.bb
>> b/meta/recipes-core/glibc/glibc_2.27.bb
>> index e9d4117a47..62db3e9d02 100644
>> --- a/meta/recipes-core/glibc/glibc_2.27.bb
>> +++ b/meta/recipes-core/glibc/glibc_2.27.bb
>> @@ -81,6 +81,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
>>  --enable-bind-now \
>>  --enable-stack-protector=strong \
>>  --enable-stackguard-randomization \
>> +--enable-static-pie \
>>  ${GLIBC_EXTRA_OECONF}"
>>
>>  EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
>> --
>> 2.16.2
>>
>> --
>> ___
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH V3 1/2] binutils: Upgrade to 2.30 release

2018-03-01 Thread Alexander Kanavin

On 02/21/2018 05:12 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 in v2:

- Backport fixes for aarch64 relocs
- ppc plt fix, dwarf-4 line number support and linker script fix for removing 
PROVODE

Changes in v3:
- None


I did some bisection and unfortunately this cases breakage when musl, 
systemd and gobject introspection are all enabled:


| i586-poky-linux-musl-libtool: link: i586-poky-linux-musl-gcc -m32 
-march=i586 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat 
-Wformat-security -Werror=format-security 
--sysroot=/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot 
-o 
/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/build/avahi-gobject/tmp-introspectcefd3msq/.libs/Avahi-0.6 
-O2 -pipe -g -feliminate-unused-debug-types 
-fdebug-prefix-map=/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0=/usr/src/debug/avahi/0.7-r0 
-fdebug-prefix-map=/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot-native= 
-fdebug-prefix-map=/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot= 
-std=c99 -Wall -W -Wextra -pedantic -pipe -Wformat 
-Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal 
-Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes 
-Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels 
-Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align 
-Wwrite-strings -fdiagnostics-show-option -Wno-cast-qual 
-fno-strict-aliasing 
/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/build/avahi-gobject/tmp-introspectcefd3msq/Avahi-0.6.o 
-Wl,--export-dynamic -pthread -Wl,-O1 -Wl,--hash-style=gnu 
-Wl,--as-needed -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z -Wl,now 
-Wl,--export-dynamic  -L. ./.libs/libavahi-gobject.so 
/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/build/avahi-client/.libs/libavahi-client.so 
-ldbus-1 -ldl 
/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/build/avahi-glib/.libs/libavahi-glib.so 
/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/build/avahi-common/.libs/libavahi-common.so 
-lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -pthread
| Error relocating 
/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot//lib/libsystemd.so.0: 
__start_BUS_ERROR_MAP: symbol not found
| Error relocating 
/home/ak/development/poky/build/tmp/work/i586-poky-linux-musl/avahi/0.7-r0/recipe-sysroot//lib/libsystemd.so.0: 
__stop_BUS_ERROR_MAP: symbol not found




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


Re: [OE-core] [PATCH v2] kernel-devsrc: restructure for out of tree (and on target) module builds

2018-03-01 Thread Burton, Ross
Also fails on musl:

ERROR: Nothing RPROVIDES 'glibc-utils' (but
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-musl/build/meta/recipes-kernel/linux/
kernel-devsrc.bb RDEPENDS on or otherwise requires it)

Ross

On 1 March 2018 at 08:28, Maxin B. John  wrote:

> Hi,
>
> On Wed, Feb 28, 2018 at 02:20:45PM -0500, Bruce Ashfield wrote:
> > The existing kernel-devsrc package starts with a full copy of the kernel
> > source and then starts to strip out elements that are not required.
> >
> > This results in extra time (I/O) and extra space being taken up in the
> > final package. The main purpose of the kernel-devsrc package has been to
> > build modules against the running kernel, not to include a full copy of
> > the source code for re-building the kernel. The end result was a
> > 600M kernel-devsrc package.
> >
> > This restructuring of the package uses an approach similar to other
> > distros, where the kernel-devsrc package is for building against the
> > running kernel and uses a curated set of copied infrastructure, versus
> > a mass copy of the entire kernel.
> >
> > The differences in this approach versus other is largely due to the
> > architecture support and the split build/source directory of the
> > kernel.
> >
> > The result is a kernel-devsrc package of about 10M, which is capable
> > of running "make scripts" and compiling kernel modules against the
> > running kernel.
> >
> > Along with the changes to the copying of the infrascture, we also
> > have the following changes:
> >
> >  - a better/more explicit listing of dependencies for on-target
> >builds of "make scripts" or "make modules_prepare"
> >
> >  - The kernel source is installed into /lib/modules//build
> >and a symlink created from /usr/src/kernel to the new location.
> >This aligns with the standard location for module support
> >code
> >
> >  - There is also a symlink from /lib/modules//source -> build
> >to reserve a spot for a new package that is simply the kernel
> >source. That package is not part of this update.
> >
> > [YOCTO #12535]
> >
> > Signed-off-by: Bruce Ashfield 
> > ---
> >
> >  v2: fix arch/arm devsrc builds
>
> Noticed one kernel-devsrc build failure in autobuilder (qemuarm) :
>
> https://autobuilder.yocto.io/builders/nightly-arm/builds/
> 876/steps/BuildImages/logs/stdio
>
> ERROR: kernel-devsrc-1.0-r0 do_install: Function failed: do_install (log
> file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/
> nightly-arm/build/build/tmp/work/qemuarm-poky-linux-
> gnueabi/kernel-devsrc/1.0-r0/temp/log.do_install.25822)
> ERROR: Logfile of failure stored in: /home/pokybuild/yocto-
> autobuilder/yocto-worker/nightly-arm/build/build/tmp/
> work/qemuarm-poky-linux-gnueabi/kernel-devsrc/1.0-r0/
> temp/log.do_install.25822
> Log data follows:
> | DEBUG: Executing python function extend_recipe_sysroot
> | NOTE: Direct dependencies are ['/home/pokybuild/yocto-
> autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/binutils/
> binutils-cross_2.30.bb:do_populate_sysroot', 'virtual:native:/home/
> pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/
> build/meta/recipes-extended/xz/xz_5.2.3.bb:do_populate_sysroot',
> 'virtual:native:/home/pokybuild/yocto-autobuilder/
> yocto-worker/nightly-arm/build/meta/recipes-devtools/
> pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/home/
> pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/
> build/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot',
> '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/
> recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot',
> '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/
> recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot',
> '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/
> recipes-devtools/gcc/gcc-cross_7.
>  3.bb:do_populate_sysroot', 'virtual:native:/home/
> pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/
> build/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot',
> 'virtual:native:/home/pokybuild/yocto-autobuilder/
> yocto-worker/nightly-arm/build/meta/recipes-devtools/
> pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home/pokybuild/yocto-
> autobuilder/yocto-worker/nightly-arm/build/meta/
> recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot',
> '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/
> recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot',
> 'virtual:native:/home/pokybuild/yocto-autobuilder/
> yocto-worker/nightly-arm/build/meta/recipes-extended/bc/bc_1.06.bb:
> do_populate_sysroot', '/home/pokybuild/yocto-autobuilder/yocto-worker/
> nightly-arm/build/meta/recipes-devtools/quilt/quilt-native_0.65.bb:
> do_populate_sysroot', 'virtual:native:/home/pokybuild/yocto-autobuilder/
> yocto-worker/nightly-arm/build/meta/recipes-connectivity/openssl/openssl_
> 

Re: [OE-core] [PATCH 1/3] linux-yocto/4.14/4.15: yaffs2 fixes

2018-03-01 Thread Burton, Ross
This is most likely to be the kernel-devsrc change.  There's a number of
failures across the autobuilder, I've just asked Maxin to collate the
failures. :)

On 1 March 2018 at 08:53, Maxin B. John  wrote:

> Hi Bruce,
>
> On Tue, Feb 27, 2018 at 09:06:54PM -0500, Bruce Ashfield wrote:
> > Integrating the following fixes for yaffs2:
> >
> >   9f9649fffac9 yaffs2: Adjust the timer callback and init functions
> >   0ef24a829eee yaffs2: include rawnand.h instead of nand.h
> >
> > Signed-off-by: Kevin Hao 
> > Signed-off-by: Bruce Ashfield 
> > ---
> >  meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb   |  4 ++--
> >  meta/recipes-kernel/linux/linux-yocto-rt_4.15.bb   |  4 ++--
> >  meta/recipes-kernel/linux/linux-yocto-tiny_4.14.bb |  4 ++--
> >  meta/recipes-kernel/linux/linux-yocto-tiny_4.15.bb |  4 ++--
> >  meta/recipes-kernel/linux/linux-yocto_4.14.bb  | 18
> +-
> >  meta/recipes-kernel/linux/linux-yocto_4.15.bb  | 18
> +-
> >  6 files changed, 26 insertions(+), 26 deletions(-)
> 
>
> For MIPS, KernelModuleTest fails in autobuilder ( probably due to this
> change - haven't bisected it)
>
> https://autobuilder.yocto.io/builders/nightly-mips/builds/
> 806/steps/Running%20Sanity%20Tests/logs/stdio
>
> RESULTS - kernelmodule.KernelModuleTest.test_kernel_module - Testcase
> 1541: FAILED
>
> NOTE: 
> ==
> | NOTE: FAIL: test_kernel_module (kernelmodule.KernelModuleTest)
> | NOTE: 
> --
> | NOTE: Traceback (most recent call last):
> |   File "/home/pokybuild/yocto-autobuilder/yocto-worker/
> nightly-mips/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in
> wrapped_f
> | return func(*args, **kwargs)
> |   File "/home/pokybuild/yocto-autobuilder/yocto-worker/
> nightly-mips/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in
> wrapped_f
> | return func(*args, **kwargs)
> |   File "/home/pokybuild/yocto-autobuilder/yocto-worker/
> nightly-mips/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in
> wrapped_f
> | return func(*args, **kwargs)
> |   File "/home/pokybuild/yocto-autobuilder/yocto-worker/
> nightly-mips/build/meta/lib/oeqa/runtime/cases/kernelmodule.py", line 40,
> in test_kernel_module
> | self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
> | AssertionError: 2 != 0 : cd /usr/src/kernel && make scripts
> | arch/mips/Makefile:240: arch/mips/Kbuild.platforms: No such file or
> directory
> | make: *** No rule to make target 'arch/mips/Kbuild.platforms'.  Stop.
>
> Best Regards,
> Maxin
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] oeqa/runtime/dpkg.py: add runtime test for dpkg

2018-03-01 Thread Yeoh Ee Peng
Add runtime test for dpkg to test that it can install deb
package from remote source.

Signed-off-by: Yeoh Ee Peng 
---
 meta/lib/oeqa/runtime/cases/dpkg.py | 47 +
 1 file changed, 47 insertions(+)
 create mode 100644 meta/lib/oeqa/runtime/cases/dpkg.py

diff --git a/meta/lib/oeqa/runtime/cases/dpkg.py 
b/meta/lib/oeqa/runtime/cases/dpkg.py
new file mode 100644
index 000..adf5195
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/dpkg.py
@@ -0,0 +1,47 @@
+import os
+from oeqa.utils.httpserver import HTTPService
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature
+from oeqa.runtime.decorator.package import OEHasPackage
+
+class DpkgTest(OERuntimeTestCase):
+
+def pkg(self, command, expected = 0):
+command = 'apt-get %s' % command
+status, output = self.target.run(command, 1500)
+message = os.linesep.join([command, output])
+self.assertEqual(status, expected, message)
+return output
+
+class DpkgRepoTest(DpkgTest):
+
+@classmethod
+def setUpClass(cls):
+service_repo = os.path.join(cls.tc.td['DEPLOY_DIR_DEB'], 'all')
+cls.repo_server = HTTPService(service_repo, cls.tc.target.server_ip)
+cls.repo_server.start()
+
+@classmethod
+def tearDownClass(cls):
+cls.repo_server.stop()
+
+def setup_source_config_for_package_install(self):
+apt_get_source_server = 'http://%s:%s/' % (self.tc.target.server_ip, 
self.repo_server.port)
+apt_get_sourceslist_dir = '/etc/apt/'
+self.target.run('cd %s; echo deb %s ./ > sources.list' % 
(apt_get_sourceslist_dir, apt_get_source_server))
+
+def cleanup_source_config_for_package_install(self):
+apt_get_sourceslist_dir = '/etc/apt/'
+self.target.run('cd %s; rm sources.list' % (apt_get_sourceslist_dir))
+
+@skipIfNotFeature('package-management',
+  'Test requires package-management to be in 
IMAGE_FEATURES')
+@skipIfNotDataVar('IMAGE_PKGTYPE', 'deb',
+  'DEB is not the primary package manager')
+@OEHasPackage(['dpkg','apt'])
+def test_dpkg_install_from_repo(self):
+self.setup_source_config_for_package_install()
+self.pkg('update')
+self.pkg('remove --yes run-postinsts-dev')
+self.pkg('install --yes --allow-unauthenticated run-postinsts-dev')
+self.cleanup_source_config_for_package_install()
-- 
2.7.4

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


[OE-core] [PATCH] oeqa/runtime/opkg.py: add runtime test for opkg

2018-03-01 Thread Yeoh Ee Peng
Add runtime test for opkg to test that it can install ipk
package from remote source.

Signed-off-by: Yeoh Ee Peng 
---
 meta/lib/oeqa/runtime/cases/opkg.py | 47 +
 1 file changed, 47 insertions(+)
 create mode 100644 meta/lib/oeqa/runtime/cases/opkg.py

diff --git a/meta/lib/oeqa/runtime/cases/opkg.py 
b/meta/lib/oeqa/runtime/cases/opkg.py
new file mode 100644
index 000..671ee06
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/opkg.py
@@ -0,0 +1,47 @@
+import os
+from oeqa.utils.httpserver import HTTPService
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature
+from oeqa.runtime.decorator.package import OEHasPackage
+
+class OpkgTest(OERuntimeTestCase):
+
+def pkg(self, command, expected = 0):
+command = 'opkg %s' % command
+status, output = self.target.run(command, 1500)
+message = os.linesep.join([command, output])
+self.assertEqual(status, expected, message)
+return output
+
+class OpkgRepoTest(OpkgTest):
+
+@classmethod
+def setUpClass(cls):
+service_repo = os.path.join(cls.tc.td['DEPLOY_DIR_IPK'], 'all')
+cls.repo_server = HTTPService(service_repo, cls.tc.target.server_ip)
+cls.repo_server.start()
+
+@classmethod
+def tearDownClass(cls):
+cls.repo_server.stop()
+
+def setup_source_config_for_package_install(self):
+apt_get_source_server = 'http://%s:%s/' % (self.tc.target.server_ip, 
self.repo_server.port)
+apt_get_sourceslist_dir = '/etc/opkg/'
+self.target.run('cd %s; echo src/gz all %s >> opkg.conf' % 
(apt_get_sourceslist_dir, apt_get_source_server))
+
+def cleanup_source_config_for_package_install(self):
+apt_get_sourceslist_dir = '/etc/opkg/'
+self.target.run('cd %s; sed -i "/^src/d" opkg.conf' % 
(apt_get_sourceslist_dir))
+
+@skipIfNotFeature('package-management',
+  'Test requires package-management to be in 
IMAGE_FEATURES')
+@skipIfNotDataVar('IMAGE_PKGTYPE', 'ipk',
+  'IPK is not the primary package manager')
+@OEHasPackage(['opkg'])
+def test_opkg_install_from_repo(self):
+self.setup_source_config_for_package_install()
+self.pkg('update')
+self.pkg('remove run-postinsts-dev')
+self.pkg('install run-postinsts-dev')
+self.cleanup_source_config_for_package_install()
-- 
2.7.4

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


Re: [OE-core] [PATCH 1/3] linux-yocto/4.14/4.15: yaffs2 fixes

2018-03-01 Thread Maxin B. John
Hi Bruce,

On Tue, Feb 27, 2018 at 09:06:54PM -0500, Bruce Ashfield wrote:
> Integrating the following fixes for yaffs2:
> 
>   9f9649fffac9 yaffs2: Adjust the timer callback and init functions
>   0ef24a829eee yaffs2: include rawnand.h instead of nand.h
> 
> Signed-off-by: Kevin Hao 
> Signed-off-by: Bruce Ashfield 
> ---
>  meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb   |  4 ++--
>  meta/recipes-kernel/linux/linux-yocto-rt_4.15.bb   |  4 ++--
>  meta/recipes-kernel/linux/linux-yocto-tiny_4.14.bb |  4 ++--
>  meta/recipes-kernel/linux/linux-yocto-tiny_4.15.bb |  4 ++--
>  meta/recipes-kernel/linux/linux-yocto_4.14.bb  | 18 +-
>  meta/recipes-kernel/linux/linux-yocto_4.15.bb  | 18 +-
>  6 files changed, 26 insertions(+), 26 deletions(-)


For MIPS, KernelModuleTest fails in autobuilder ( probably due to this change - 
haven't bisected it)

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

RESULTS - kernelmodule.KernelModuleTest.test_kernel_module - Testcase 1541: 
FAILED

NOTE: ==
| NOTE: FAIL: test_kernel_module (kernelmodule.KernelModuleTest)
| NOTE: --
| NOTE: Traceback (most recent call last):
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/meta/lib/oeqa/core/decorator/__init__.py",
 line 32, in wrapped_f
| return func(*args, **kwargs)
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/meta/lib/oeqa/core/decorator/__init__.py",
 line 32, in wrapped_f
| return func(*args, **kwargs)
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/meta/lib/oeqa/core/decorator/__init__.py",
 line 32, in wrapped_f
| return func(*args, **kwargs)
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/meta/lib/oeqa/runtime/cases/kernelmodule.py",
 line 40, in test_kernel_module
| self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
| AssertionError: 2 != 0 : cd /usr/src/kernel && make scripts
| arch/mips/Makefile:240: arch/mips/Kbuild.platforms: No such file or directory
| make: *** No rule to make target 'arch/mips/Kbuild.platforms'.  Stop.

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


Re: [OE-core] [PATCH] glibc: Enable static PIE support

2018-03-01 Thread Burton, Ross
Would this be the cause of glibc failing to build like this on PPC?

|
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc/build/build/tmp/work/ppc7400-poky-linux/glibc/2.27-r0/recipe-sysroot-native/usr/bin/powerpc-poky-linux.gcc-cross-initial-powerpc/../../libexec/powerpc-poky-linux.gcc-cross-initial-powerpc/gcc/powerpc-poky-linux/7.3.0/ld:
read-only segment has dynamic relocations.

The previous glibc run was all green, added this patch and it fails.

Ross

On 28 February 2018 at 20:46, Khem Raj  wrote:

> go programs when compiled with PIE fails otherwise on aarch64
>
> Signed-off-by: Khem Raj 
> ---
>  meta/recipes-core/glibc/glibc_2.27.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-core/glibc/glibc_2.27.bb
> b/meta/recipes-core/glibc/glibc_2.27.bb
> index e9d4117a47..62db3e9d02 100644
> --- a/meta/recipes-core/glibc/glibc_2.27.bb
> +++ b/meta/recipes-core/glibc/glibc_2.27.bb
> @@ -81,6 +81,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
>  --enable-bind-now \
>  --enable-stack-protector=strong \
>  --enable-stackguard-randomization \
> +--enable-static-pie \
>  ${GLIBC_EXTRA_OECONF}"
>
>  EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
> --
> 2.16.2
>
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2] kernel-devsrc: restructure for out of tree (and on target) module builds

2018-03-01 Thread Maxin B. John
Hi,

On Wed, Feb 28, 2018 at 02:20:45PM -0500, Bruce Ashfield wrote:
> The existing kernel-devsrc package starts with a full copy of the kernel
> source and then starts to strip out elements that are not required.
> 
> This results in extra time (I/O) and extra space being taken up in the
> final package. The main purpose of the kernel-devsrc package has been to
> build modules against the running kernel, not to include a full copy of
> the source code for re-building the kernel. The end result was a
> 600M kernel-devsrc package.
> 
> This restructuring of the package uses an approach similar to other
> distros, where the kernel-devsrc package is for building against the
> running kernel and uses a curated set of copied infrastructure, versus
> a mass copy of the entire kernel.
> 
> The differences in this approach versus other is largely due to the
> architecture support and the split build/source directory of the
> kernel.
> 
> The result is a kernel-devsrc package of about 10M, which is capable
> of running "make scripts" and compiling kernel modules against the
> running kernel.
> 
> Along with the changes to the copying of the infrascture, we also
> have the following changes:
> 
>  - a better/more explicit listing of dependencies for on-target
>builds of "make scripts" or "make modules_prepare"
> 
>  - The kernel source is installed into /lib/modules//build
>and a symlink created from /usr/src/kernel to the new location.
>This aligns with the standard location for module support
>code
> 
>  - There is also a symlink from /lib/modules//source -> build
>to reserve a spot for a new package that is simply the kernel
>source. That package is not part of this update.
> 
> [YOCTO #12535]
> 
> Signed-off-by: Bruce Ashfield 
> ---
> 
>  v2: fix arch/arm devsrc builds

Noticed one kernel-devsrc build failure in autobuilder (qemuarm) :

https://autobuilder.yocto.io/builders/nightly-arm/builds/876/steps/BuildImages/logs/stdio

ERROR: kernel-devsrc-1.0-r0 do_install: Function failed: do_install (log file 
is located at 
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/build/tmp/work/qemuarm-poky-linux-gnueabi/kernel-devsrc/1.0-r0/temp/log.do_install.25822)
ERROR: Logfile of failure stored in: 
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/build/tmp/work/qemuarm-poky-linux-gnueabi/kernel-devsrc/1.0-r0/temp/log.do_install.25822
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are 
['/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/binutils/binutils-cross_2.30.bb:do_populate_sysroot',
 
'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-extended/xz/xz_5.2.3.bb:do_populate_sysroot',
 
'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot',
 
'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot',
 
'/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot',
 
'/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot',
 
'/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/gcc/gcc-cross_7.
 3.bb:do_populate_sysroot', 
'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot',
 
'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot',
 
'/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot',
 
'/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot',
 
'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot',
 
'/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot',
 
'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-connectivity/openssl/openssl_1.0.2n.bb:d
 o_populate_sysroot']
| NOTE: Installed into sysroot: ['pkgconfig-native', 'lzop-native', 
'kern-tools-native', 'pseudo-native', 'kmod-native', 'bc-native', 
'openssl-native', 'gtk-doc-native', 'lzo-native', 'makedepend-native', 
'cryptodev-linux-native', 'util-macros-native', 'xproto-native']
| NOTE: Skipping as already exists in sysroot: ['binutils-cross-arm', 
'xz-native', 'gcc-runtime', 'gcc-cross-arm', 'bison-native', 'glibc', 
'quilt-native',