Re: [oe] [meta-oe][PATCH] libkcapi: Add new recipe for v1.1.1

2018-07-11 Thread Krzysztof Kozlowski
On 11 July 2018 at 18:06, Khem Raj  wrote:
> This fails for mips/musl builds
>
> | ../git/lib/kcapi-kernel-if.c: In function '__kcapi_common_getinfo.isra.2':
> | ../git/lib/kcapi-kernel-if.c:632:3: error: 'strncpy' output
> truncated before terminating nul copying as many bytes from a string
> as its length [-Werror=stringop-truncation]
> |strncpy(req.cru.cru_name, ciphername, strlen(ciphername));
> |^
> | ../git/lib/kcapi-kernel-if.c:629:3: error: 'strncpy' output
> truncated before terminating nul copying as many bytes from a string
> as its length [-Werror=stringop-truncation]
> |strncpy(req.cru.cru_driver_name, ciphername,
> |^~~~
> | strlen(ciphername));
> | ~~~
> | cc1: all warnings being treated as errors
> | make: *** [lib/libkcapi_la-kcapi-kernel-if.lo] Error 1

Thanks for letting me know. I'll take a look and fix it.

Best regards,
Krzysztof
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe][PATCH 4/4] xf86-video-armsoc: add new package

2018-07-11 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 .../xorg-driver/xf86-video-armsoc_1.4.1.bb | 14 ++
 1 file changed, 14 insertions(+)
 create mode 100644 
meta-oe/recipes-graphics/xorg-driver/xf86-video-armsoc_1.4.1.bb

diff --git a/meta-oe/recipes-graphics/xorg-driver/xf86-video-armsoc_1.4.1.bb 
b/meta-oe/recipes-graphics/xorg-driver/xf86-video-armsoc_1.4.1.bb
new file mode 100644
index 000..b436ef1
--- /dev/null
+++ b/meta-oe/recipes-graphics/xorg-driver/xf86-video-armsoc_1.4.1.bb
@@ -0,0 +1,14 @@
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+SUMMARY = "X.Org X server -- ARM SOC display driver"
+LICENSE = "MIT-X & GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=10ce5de3b111315ea652a5f74ec0c602"
+
+DEPENDS += "virtual/libx11 libdrm xorgproto"
+
+SRCREV = "8bbdb2ae3bb8ef64a8da33ddbe11a04763b8"
+SRC_URI = "git://anongit.freedesktop.org/xorg/driver/xf86-video-armsoc"
+
+S = "${WORKDIR}/git"
+
+RDEPENDS_${PN} += "xserver-xorg-module-exa"
-- 
2.7.4

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


[oe] [meta-oe][PATCH 3/4] openbox: fix runtime error for missing python and pyXDG

2018-07-11 Thread Armin Kuster
Openbox-Message: Cannot set locale modifiers for the X server.
/usr/bin/env: 'python': No such file or directory

/usr/libexec/openbox-xdg-autostart needs python, add rdepends

Also missing rdepends on pyXDG

Signed-off-by: Armin Kuster 
---
 meta-oe/recipes-graphics/openbox/openbox_3.6.1.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-graphics/openbox/openbox_3.6.1.bb 
b/meta-oe/recipes-graphics/openbox/openbox_3.6.1.bb
index c35a0c7..f4d21b8 100644
--- a/meta-oe/recipes-graphics/openbox/openbox_3.6.1.bb
+++ b/meta-oe/recipes-graphics/openbox/openbox_3.6.1.bb
@@ -39,7 +39,6 @@ python populate_packages_prepend() {
 do_split_packages(d, theme_dir, '(.*)', theme_name, '${PN} theme for %s', 
extra_depends='', allow_dirs=True)
 }
 
-RDEPENDS_${PN} += "${PN}-core ${PN}-config ${PN}-theme-clearlooks"
 FILES_${PN}-core = "${bindir}/openbox ${bindir}/openbox-session 
${libdir}/*${SOLIBS}"
 
 FILES_${PN}-lxde += "${datadir}/lxde/ \
@@ -54,3 +53,5 @@ FILES_${PN}-gnome += " \
 "
 
 FILES_${PN}-config += "${sysconfdir}"
+
+RDEPENDS_${PN} += "${PN}-core ${PN}-config ${PN}-theme-clearlooks python pyxdg"
-- 
2.7.4

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


[oe] [meta-oe][PATCH 1/4] nmap: update to 7.70

2018-07-11 Thread Armin Kuster
Update LIC_FILES_CHKSUM for yr change

Signed-off-by: Armin Kuster 
---
 meta-oe/recipes-security/nmap/{nmap_7.60.bb => nmap_7.70.bb} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename meta-oe/recipes-security/nmap/{nmap_7.60.bb => nmap_7.70.bb} (87%)

diff --git a/meta-oe/recipes-security/nmap/nmap_7.60.bb 
b/meta-oe/recipes-security/nmap/nmap_7.70.bb
similarity index 87%
rename from meta-oe/recipes-security/nmap/nmap_7.60.bb
rename to meta-oe/recipes-security/nmap/nmap_7.70.bb
index 74b4388..e47d09f 100644
--- a/meta-oe/recipes-security/nmap/nmap_7.60.bb
+++ b/meta-oe/recipes-security/nmap/nmap_7.70.bb
@@ -3,15 +3,15 @@ DESCRIPTION = "Nmap ("Network Mapper") is a free and open 
source (license) utili
 SECTION = "security"
 LICENSE = "GPL-2.0"
 
-LIC_FILES_CHKSUM = 
"file://COPYING;beginline=7;endline=12;md5=700c690f4ca6b1754f3f1db8645e42d9"
+LIC_FILES_CHKSUM = 
"file://COPYING;beginline=7;endline=12;md5=1489288f46af415fadc4e8b6345ab9f4"
 
 SRC_URI = "http://nmap.org/dist/${BP}.tar.bz2 \
file://nmap-redefine-the-python-library-dir.patch \
file://nmap-replace-shtool-mkdir-with-coreutils-mkdir-command.patch 
\
 "
 
-SRC_URI[md5sum] = "4e454266559ddf2c4e2109866c62560c"
-SRC_URI[sha256sum] = 
"a8796ecc4fa6c38aad6139d9515dc8113023a82e9d787e5a5fb5fa1b05516f21"
+SRC_URI[md5sum] = "84eb6fbe788e0d4918c2b1e39421bf79"
+SRC_URI[sha256sum] = 
"847b068955f792f4cc247593aca6dc3dc4aae12976169873247488de147a6e18"
 
 inherit autotools-brokensep pkgconfig python3native
 
-- 
2.7.4

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


[oe] [meta-oe][PATCH 2/4] pyxdg: Add new package

2018-07-11 Thread Armin Kuster
needed for openbox

Signed-off-by: Armin Kuster 
---
 meta-oe/recipes-gnome/pyxdg/pyxdg_0.26.bb | 12 
 1 file changed, 12 insertions(+)
 create mode 100644 meta-oe/recipes-gnome/pyxdg/pyxdg_0.26.bb

diff --git a/meta-oe/recipes-gnome/pyxdg/pyxdg_0.26.bb 
b/meta-oe/recipes-gnome/pyxdg/pyxdg_0.26.bb
new file mode 100644
index 000..0128a7c
--- /dev/null
+++ b/meta-oe/recipes-gnome/pyxdg/pyxdg_0.26.bb
@@ -0,0 +1,12 @@
+DESCRIPTION = "A Python module to deal with freedesktop.org specifications"
+HOMEPAGE = "http://freedesktop.org/wiki/Software/pyxdg";
+SECTION = "devel/python"
+LICENSE = "LGPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f30a9716ef3762e3467a2f62bf790f0a"
+
+SRCREV = "7db14dcf4c4305c3859a2d9fcf9f5da2db328330"
+SRC_URI = "git://anongit.freedesktop.org/xdg/pyxdg"
+
+inherit distutils
+
+S = "${WORKDIR}/git"
-- 
2.7.4

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


Re: [oe] [meta-oe][PATCH] kselftest: Add a recipe on kernel selftest

2018-07-11 Thread Khem Raj
bec is my distro config its not a whole different than oe-core nodistro.
The issue is not related to libc, since its happening on glibc or musl alike.
It could be related to parallel compile race, you might want to explore it from
that angle.

On Wed, Jul 11, 2018 at 4:40 AM Hongzhi, Song
 wrote:
>
> Sorry, I didn't reproduce the problem by appending your auto.conf to
>
> my local.conf. It just prompted some error because of using musl-lib
>
> instead of the error about Makefile your encountered.
>
>
> Then I commented off the statement of "TCLIBC_qemux86 = "musl"" and
>
> rebuild the image, it passed.
>
>
> 1. What else can I do to reproduce your case?
>
> 2. What is "bec" in your cross-compiler?
>
> How can I get it?
>
> 3. Could the meta-oe accept it with only glibc support in the bb file.
>
> We can add the support with musl in the future.
>
>
> --Hongzhi
>
>
>
> On 2018年07月10日 15:43, Khem Raj wrote:
>
> Look at the report I sent to oe Devel earlier it should have link to full logs
>
> On Mon, Jul 9, 2018 at 10:51 PM Hongzhi, Song  
> wrote:
>>
>> Could you attach building arguments, conf/local.conf, log.do_compile for me?
>>
>> The text you pasted is not enough.
>>
>> -- Hongzhi
>>
>>
>> On 2018年07月10日 12:11, Khem Raj wrote:
>> > This is failing to build here
>> >
>> > | DEBUG: Executing shell function do_compile
>> > | NOTE: make -j 16 CROSS_COMPILE=x86_64-bec-linux- ARCH=x86
>> > CC=x86_64-bec-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3
>> > -mfpmath=sse -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat
>> > -Wformat-security -Werror=format-security
>> > --sysroot=/mnt/a/oe/build/tmp/work/qemux86_64-bec-linux/kernel-selftest/1.0-r0/recipe-sysroot
>> > AR=x86_64-bec-linux-ar LD=x86_64-bec-linux-ld
>> > --sysroot=/mnt/a/oe/build/tmp/work/qemux86_64-bec-linux/kernel-selftest/1.0-r0/recipe-sysroot
>> >
>> > DESTDIR=/mnt/a/oe/build/tmp/work/qemux86_64-bec-linux/kernel-selftest/1.0-r0/image
>> > -C 
>> > /mnt/a/oe/build/tmp/work/qemux86_64-bec-linux/kernel-selftest/1.0-r0/kernel-selftest-1.0/tools/testing/selftests/bpf
>> > | make: Entering directory
>> > '/mnt/a/oe/build/tmp/work/qemux86_64-bec-linux/kernel-selftest/1.0-r0/kernel-selftest-1.0/tools/testing/selftests/bpf'
>> > | Makefile:19: *** recipe commences before first target.  Stop.
>> > | make: Leaving directory
>> > '/mnt/a/oe/build/tmp/work/qemux86_64-bec-linux/kernel-selftest/1.0-r0/kernel-selftest-1.0/tools/testing/selftests/bpf'
>> > | ERROR: oe_runmake failed
>> > On Sat, Jul 7, 2018 at 11:05 PM Hongzhi.Song  
>> > wrote:
>> >> The recipe builds the framework for kernel-selftest. Now, it just
>> >> contains two sets of testcase, bpf and vm. We are appending others
>> >> to the recipe.
>> >>
>> >> It needs some features which will be written into relevant recipe.
>> >> But now, you should add them to conf/local.conf manually.
>> >> KERNEL_FEATURES_append += "features/bpf/bpf.scc"
>> >>
>> >> Signed-off-by: Dengke Du 
>> >> Signed-off-by: Hongzhi.Song 
>> >> ---
>> >>   .../recipes-kernel/kselftest/kernel-selftest.bb| 94 
>> >> ++
>> >>   1 file changed, 94 insertions(+)
>> >>   create mode 100644 meta-oe/recipes-kernel/kselftest/kernel-selftest.bb
>> >>
>> >> diff --git a/meta-oe/recipes-kernel/kselftest/kernel-selftest.bb 
>> >> b/meta-oe/recipes-kernel/kselftest/kernel-selftest.bb
>> >> new file mode 100644
>> >> index 000..6f20bd3
>> >> --- /dev/null
>> >> +++ b/meta-oe/recipes-kernel/kselftest/kernel-selftest.bb
>> >> @@ -0,0 +1,94 @@
>> >> +SUMMARY = "Kernel selftest for Linux"
>> >> +DESCRIPTION = "Kernel selftest for Linux"
>> >> +LICENSE = "GPLv2"
>> >> +
>> >> +# for bpf and vm
>> >> +DEPENDS = " \
>> >> +elfutils \
>> >> +libcap \
>> >> +libcap-ng \
>> >> +fuse \
>> >> +util-linux \
>> >> +rsync-native \
>> >> +"
>> >> +# for vm
>> >> +RDEPENDS_${PN} += "libgcc \
>> >> +   bash \
>> >> +"
>> >> +
>> >> +do_configure[depends] += "virtual/kernel:do_shared_workdir"
>> >> +
>> >> +inherit linux-kernel-base kernel-arch
>> >> +
>> >> +do_populate_lic[depends] += "virtual/kernel:do_patch"
>> >> +
>> >> +S = "${WORKDIR}/${BP}"
>> >> +
>> >> +# now we just test bpf and vm
>> >> +# we will append other kernel selftest in the future
>> >> +TEST_LIST = "bpf \
>> >> + vm \
>> >> +"
>> >> +
>> >> +EXTRA_OEMAKE = '\
>> >> +CROSS_COMPILE=${TARGET_PREFIX} \
>> >> +ARCH=${ARCH} \
>> >> +CC="${CC}" \
>> >> +AR="${AR}" \
>> >> +LD="${LD}" \
>> >> +'
>> >> +
>> >> +EXTRA_OEMAKE += "\
>> >> +'DESTDIR=${D}' \
>> >> +"
>> >> +
>> >> +KERNEL_SELFTEST_SRC ?= "Makefile \
>> >> +include \
>> >> +tools \
>> >> +scripts \
>> >> +arch \
>> >> +"
>> >> +
>> >> +do_compile() {
>> >> +for i in ${TEST_LIST}
>> >> +do
>> >> +oe_runmake -C ${S}/tools/testing/selftests/${i}
>> >> +done
>> >> +}
>> >> +
>> >> +do_install() {
>> >> + 

Re: [oe] [meta-oe][PATCH] ell: update to 0.6

2018-07-11 Thread Khem Raj
Hi Martin

This fails to build with musl targets with following error.

| In file included from ../git/ell/dhcp.c:30:
| 
/mnt/a/oe/build/tmp/work/core2-64-bec-linux-musl/ell/0.6-r0/recipe-sysroot/usr/include/linux/if_arp.h:116:8:
error: redefinition of 'struct arpreq'
|  struct arpreq {
| ^~
| In file included from
/mnt/a/oe/build/tmp/work/core2-64-bec-linux-musl/ell/0.6-r0/recipe-sysroot/usr/include/netinet/if_ether.h:118,
|  from
/mnt/a/oe/build/tmp/work/core2-64-bec-linux-musl/ell/0.6-r0/recipe-sysroot/usr/include/net/ethernet.h:10,
|  from ../git/ell/dhcp.c:28:
| 
/mnt/a/oe/build/tmp/work/core2-64-bec-linux-musl/ell/0.6-r0/recipe-sysroot/usr/include/net/if_arp.h:101:8:
note: originally defined here
|  struct arpreq {
| ^~
On Tue, Jul 10, 2018 at 3:01 PM Martin Hundebøll  wrote:
>
> Removed patch is upstreamed
>
> Signed-off-by: Martin Hundebøll 
> ---
>  .../0001-ell-fix-build-with-musl-libc.patch   | 39 ---
>  .../ell/{ell_0.4.bb => ell_0.6.bb}|  6 +--
>  2 files changed, 2 insertions(+), 43 deletions(-)
>  delete mode 100644 
> meta-oe/recipes-core/ell/ell/0001-ell-fix-build-with-musl-libc.patch
>  rename meta-oe/recipes-core/ell/{ell_0.4.bb => ell_0.6.bb} (64%)
>
> diff --git 
> a/meta-oe/recipes-core/ell/ell/0001-ell-fix-build-with-musl-libc.patch 
> b/meta-oe/recipes-core/ell/ell/0001-ell-fix-build-with-musl-libc.patch
> deleted file mode 100644
> index a172a93ca..0
> --- a/meta-oe/recipes-core/ell/ell/0001-ell-fix-build-with-musl-libc.patch
> +++ /dev/null
> @@ -1,39 +0,0 @@
> -From 4f8c68757b05d12392cd1a8aed174cb8e56f80e3 Mon Sep 17 00:00:00 2001
> -From: "Maxin B. John" 
> -Date: Thu, 5 Apr 2018 17:19:44 +0300
> -Subject: [PATCH] ell: fix build with musl libc
> -
> -musl libc doesn't implement TEMP_FAILURE_RETRY. Use the
> -TEMP_FAILURE_RETRY from glibc to fix build.
> -
> -Upstream-Status: Submitted 
> [https://lists.01.org/pipermail/ell/2018-April/001209.html]
> -
> -Signed-off-by: Maxin B. John 
> 
> - ell/dbus.h | 10 ++
> - 1 file changed, 10 insertions(+)
> -
> -diff --git a/ell/dbus.h b/ell/dbus.h
> -index a7c08d2..3ff5e0f 100644
>  a/ell/dbus.h
> -+++ b/ell/dbus.h
> -@@ -28,6 +28,16 @@
> - #include 
> - #include 
> -
> -+/* taken from glibc unistd.h for musl support */
> -+#ifndef TEMP_FAILURE_RETRY
> -+#define TEMP_FAILURE_RETRY(expression) \
> -+  (__extension__   \
> -+({ long int __result;  \
> -+   do __result = (long int) (expression);  \
> -+   while (__result == -1L && errno == EINTR);  \
> -+   __result; }))
> -+#endif
> -+
> - #ifdef __cplusplus
> - extern "C" {
> - #endif
> ---
> -2.4.0
> -
> diff --git a/meta-oe/recipes-core/ell/ell_0.4.bb 
> b/meta-oe/recipes-core/ell/ell_0.6.bb
> similarity index 64%
> rename from meta-oe/recipes-core/ell/ell_0.4.bb
> rename to meta-oe/recipes-core/ell/ell_0.6.bb
> index 1524bd6b9..8e7c88c52 100644
> --- a/meta-oe/recipes-core/ell/ell_0.4.bb
> +++ b/meta-oe/recipes-core/ell/ell_0.6.bb
> @@ -7,10 +7,8 @@ SECTION = "libs"
>  inherit autotools pkgconfig
>
>  S = "${WORKDIR}/git"
> -SRCREV = "b4aea06fabb2af1af01f861f8f394c75950b6d47"
> -SRC_URI = "git://git.kernel.org/pub/scm/libs/ell/ell.git \
> -   file://0001-ell-fix-build-with-musl-libc.patch \
> -  "
> +SRCREV = "59ff3160fe55a841e662f8776f0520f2038235f4"
> +SRC_URI = "git://git.kernel.org/pub/scm/libs/ell/ell.git"
>
>  do_configure_prepend () {
>  mkdir ${S}/build-aux
> --
> 2.18.0
>
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe][PATCH] libkcapi: Add new recipe for v1.1.1

2018-07-11 Thread Khem Raj
This fails for mips/musl builds

| ../git/lib/kcapi-kernel-if.c: In function '__kcapi_common_getinfo.isra.2':
| ../git/lib/kcapi-kernel-if.c:632:3: error: 'strncpy' output
truncated before terminating nul copying as many bytes from a string
as its length [-Werror=stringop-truncation]
|strncpy(req.cru.cru_name, ciphername, strlen(ciphername));
|^
| ../git/lib/kcapi-kernel-if.c:629:3: error: 'strncpy' output
truncated before terminating nul copying as many bytes from a string
as its length [-Werror=stringop-truncation]
|strncpy(req.cru.cru_driver_name, ciphername,
|^~~~
| strlen(ciphername));
| ~~~
| cc1: all warnings being treated as errors
| make: *** [lib/libkcapi_la-kcapi-kernel-if.lo] Error 1
On Tue, Jul 10, 2018 at 9:56 AM Krzysztof Kozlowski  wrote:
>
> Add new recipe with libkcapi v1.1.1, Linux Kernel Crypto API User Space
> Interface Library.
>
> Signed-off-by: Krzysztof Kozlowski 
> ---
>  meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb | 24 
>  1 file changed, 24 insertions(+)
>  create mode 100644 meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
>
> diff --git a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb 
> b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
> new file mode 100644
> index ..be25d6e390ea
> --- /dev/null
> +++ b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
> @@ -0,0 +1,24 @@
> +SUMMARY = "Linux Kernel Crypto API User Space Interface Library"
> +HOMEPAGE = "http://www.chronox.de/libkcapi.html";
> +LICENSE = "BSD | GPL-2.0"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=d0421cf231423bda10cea691b613e866"
> +
> +DEPENDS = "libtool"
> +
> +S = "${WORKDIR}/git"
> +# Use v1.1.1 with changes on top for building in OE
> +SRCREV = "342b50fc9225a991c224126c13c188ad9f1ef9f9"
> +PV = "1.1.1+git${SRCPV}"
> +SRC_URI = "git://github.com/smuellerDD/libkcapi.git"
> +
> +inherit autotools
> +
> +PACKAGECONFIG ??= ""
> +PACKAGECONFIG[testapp] = "--enable-kcapi-test,,,"
> +PACKAGECONFIG[apps] = "--enable-kcapi-speed --enable-kcapi-hasher 
> --enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp,,,"
> +
> +do_install_append() {
> +# bindir contains testapp and apps.  However it is always created, even
> +# when no binaries are installed (empty bin_PROGRAMS in Makefile.am),
> +rmdir --ignore-fail-on-non-empty ${D}${bindir}
> +}
> --
> 2.14.1
>
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-python][PATCH] python-gevent: update to version 1.3.4

2018-07-11 Thread Khem Raj
Fails to build on some platforms e.g. qemuarm and raspberrypi3

| In file included from
/mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/python-gevent/1.3.4-r0/recipe-sysroot-native/usr/include/python2.7/Python.h:61,
|  from src/gevent/_greenlet_primitives.c:24:
| 
/mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/python-gevent/1.3.4-r0/recipe-sysroot-native/usr/include/python2.7/pyport.h:895:2:
error: #error "LONG_BIT definition appears wrong for platform (bad
gcc/glibc config?)."
|  #error "LONG_BIT definition appears wrong for platform (bad
gcc/glibc config?)."
|   ^
| In file included from
/mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/python-gevent/1.3.4-r0/recipe-sysroot-native/usr/include/python2.7/Python.h:83,
|  from src/gevent/_greenlet_primitives.c:24:
| src/gevent/_greenlet_primitives.c: In function '__Pyx_PyBool_FromLong':
| 
/mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/python-gevent/1.3.4-r0/recipe-sysroot-native/usr/include/python2.7/object.h:769:6:
warning: dereferencing type-punned pointer will break strict-aliasing
rules [-Wstrict-aliasing]
|  ((PyObject*)(op))->ob_refcnt++)
|  ~^~~~
| src/gevent/_greenlet_primitives.c:668:28: note: in expansion of
macro 'Py_INCREF'
|  #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
| ^
| src/gevent/_greenlet_primitives.c:6007:14: note: in expansion of
macro '__Pyx_NewRef'
|return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
|   ^~~~
| 
/mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/python-gevent/1.3.4-r0/recipe-sysroot-native/usr/include/python2.7/object.h:769:6:
warning: dereferencing type-punned pointer will break strict-aliasing
rules [-Wstrict-aliasing]
|  ((PyObject*)(op))->ob_refcnt++)
|  ~^~~~
| src/gevent/_greenlet_primitives.c:668:28: note: in expansion of
macro 'Py_INCREF'
|  #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
| ^
| src/gevent/_greenlet_primitives.c:6007:38: note: in expansion of
macro '__Pyx_NewRef'
|return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
|   ^~~~
| error: command 'arm-bec-linux-gnueabi-gcc' failed with exit status 1
| ERROR: python setup.py build execution failed.
| WARNING: 
/mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/python-gevent/1.3.4-r0/temp/run.do_compile.6087:1
exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at
/mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/python-gevent/1.3.4-r0/temp/log.do_compile.6087)


On Tue, Jul 10, 2018 at 6:48 AM Derek Straka  wrote:
>
> License-Update: Update the checksum to include a file added in the latest 
> release
>
> Signed-off-by: Derek Straka 
> ---
>  meta-python/recipes-devtools/python/python-gevent.inc   | 6 
> +++---
>  .../python/{python-gevent_1.2.2.bb => python-gevent_1.3.4.bb}   | 0
>  .../python/{python3-gevent_1.2.2.bb => python3-gevent_1.3.4.bb} | 0
>  3 files changed, 3 insertions(+), 3 deletions(-)
>  rename meta-python/recipes-devtools/python/{python-gevent_1.2.2.bb => 
> python-gevent_1.3.4.bb} (100%)
>  rename meta-python/recipes-devtools/python/{python3-gevent_1.2.2.bb => 
> python3-gevent_1.3.4.bb} (100%)
>
> diff --git a/meta-python/recipes-devtools/python/python-gevent.inc 
> b/meta-python/recipes-devtools/python/python-gevent.inc
> index 13513f2..074e62f 100644
> --- a/meta-python/recipes-devtools/python/python-gevent.inc
> +++ b/meta-python/recipes-devtools/python/python-gevent.inc
> @@ -4,7 +4,7 @@ a high-level synchronous API on top of the libevent event 
> loop."
>  HOMEPAGE = "http://www.gevent.org";
>  LICENSE = "MIT & Python-2.0 & BSD"
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=4de99aac27b470c29c6c309e0c279b65 \
> -file://NOTICE;md5=5966cd2c6582656d28ab3c33da3860f8 \
> +file://NOTICE;md5=18108df3583462cafd457f024b9b09b5 \
>  
> file://deps/libev/LICENSE;md5=d6ad416afd040c90698edcdf1cbee347"
>  DEPENDS += "libevent"
>  DEPENDS += "${PYTHON_PN}-greenlet"
> @@ -19,8 +19,8 @@ SRC_URI_append = " \
>  file://libev-conf.patch;patch=1;pnum=1 \
>  "
>
> -SRC_URI[md5sum] = "7f0baf355384fe5ff2ecf66853422554"
> -SRC_URI[sha256sum] = 
> "4791c8ae9c57d6f153354736e1ccab1e2baf6c8d9ae5a77a9ac90f41e2966b2d"
> +SRC_URI[md5sum] = "97deaf53196ba430808e8f18b731112a"
> +SRC_URI[sha256sum] = 
> "53c4dc705886d028f5d81e698b1d1479994a421498cd6529cb9711b5e2a84f74"
>
>  # The python-gevent has no autoreconf ability
>  # and the logic for detecting a cross compile is flawed
> diff --git a/meta-python/recipes-devtools/python/python-gevent_1.2.2.bb 
> b/meta-python/recipes-devtools/python/python-gevent_1.3.4.bb
> similarity index 100%
> rename from meta-python/recipes-devtools/python/python-gevent_1.

Re: [oe] [meta-oe][PATCH] kselftest: Add a recipe on kernel selftest

2018-07-11 Thread Hongzhi, Song

Sorry, I didn't reproduce the problem by appending your auto.conf to

my local.conf. It just prompted some error because of using musl-lib

instead of the error about Makefile your encountered.


Then I commented off the statement of "TCLIBC_qemux86 = "musl"" and

rebuild the image, it passed.


1. What else can I do to reproduce your case?

2. What is "bec" in your cross-compiler?

    How can I get it?

3. Could the meta-oe accept it with only glibc support in the bb file.

    We can add the support with musl in the future.


--Hongzhi



On 2018年07月10日 15:43, Khem Raj wrote:
Look at the report I sent to oe Devel earlier it should have link to 
full logs


On Mon, Jul 9, 2018 at 10:51 PM Hongzhi, Song 
mailto:hongzhi.s...@windriver.com>> wrote:


Could you attach building arguments, conf/local.conf,
log.do_compile for me?

The text you pasted is not enough.

-- Hongzhi


On 2018年07月10日 12:11, Khem Raj wrote:
> This is failing to build here
>
> | DEBUG: Executing shell function do_compile
> | NOTE: make -j 16 CROSS_COMPILE=x86_64-bec-linux- ARCH=x86
> CC=x86_64-bec-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3
> -mfpmath=sse -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat
> -Wformat-security -Werror=format-security
>

--sysroot=/mnt/a/oe/build/tmp/work/qemux86_64-bec-linux/kernel-selftest/1.0-r0/recipe-sysroot
> AR=x86_64-bec-linux-ar LD=x86_64-bec-linux-ld
>

--sysroot=/mnt/a/oe/build/tmp/work/qemux86_64-bec-linux/kernel-selftest/1.0-r0/recipe-sysroot
>

DESTDIR=/mnt/a/oe/build/tmp/work/qemux86_64-bec-linux/kernel-selftest/1.0-r0/image
> -C

/mnt/a/oe/build/tmp/work/qemux86_64-bec-linux/kernel-selftest/1.0-r0/kernel-selftest-1.0/tools/testing/selftests/bpf
> | make: Entering directory
>

'/mnt/a/oe/build/tmp/work/qemux86_64-bec-linux/kernel-selftest/1.0-r0/kernel-selftest-1.0/tools/testing/selftests/bpf'
> | Makefile:19: *** recipe commences before first target.  Stop.
> | make: Leaving directory
>

'/mnt/a/oe/build/tmp/work/qemux86_64-bec-linux/kernel-selftest/1.0-r0/kernel-selftest-1.0/tools/testing/selftests/bpf'
> | ERROR: oe_runmake failed
> On Sat, Jul 7, 2018 at 11:05 PM Hongzhi.Song
mailto:hongzhi.s...@windriver.com>>
wrote:
>> The recipe builds the framework for kernel-selftest. Now, it just
>> contains two sets of testcase, bpf and vm. We are appending others
>> to the recipe.
>>
>> It needs some features which will be written into relevant recipe.
>> But now, you should add them to conf/local.conf manually.
>> KERNEL_FEATURES_append += "features/bpf/bpf.scc"
>>
>> Signed-off-by: Dengke Du mailto:dengke...@windriver.com>>
>> Signed-off-by: Hongzhi.Song mailto:hongzhi.s...@windriver.com>>
>> ---
>>   .../recipes-kernel/kselftest/kernel-selftest.bb
   | 94 ++
>>   1 file changed, 94 insertions(+)
>>   create mode 100644
meta-oe/recipes-kernel/kselftest/kernel-selftest.bb

>>
>> diff --git
a/meta-oe/recipes-kernel/kselftest/kernel-selftest.bb

b/meta-oe/recipes-kernel/kselftest/kernel-selftest.bb

>> new file mode 100644
>> index 000..6f20bd3
>> --- /dev/null
>> +++ b/meta-oe/recipes-kernel/kselftest/kernel-selftest.bb

>> @@ -0,0 +1,94 @@
>> +SUMMARY = "Kernel selftest for Linux"
>> +DESCRIPTION = "Kernel selftest for Linux"
>> +LICENSE = "GPLv2"
>> +
>> +# for bpf and vm
>> +DEPENDS = " \
>> +    elfutils \
>> +    libcap \
>> +    libcap-ng \
>> +    fuse \
>> +    util-linux \
>> +    rsync-native \
>> +"
>> +# for vm
>> +RDEPENDS_${PN} += "libgcc \
>> +                   bash \
>> +"
>> +
>> +do_configure[depends] += "virtual/kernel:do_shared_workdir"
>> +
>> +inherit linux-kernel-base kernel-arch
>> +
>> +do_populate_lic[depends] += "virtual/kernel:do_patch"
>> +
>> +S = "${WORKDIR}/${BP}"
>> +
>> +# now we just test bpf and vm
>> +# we will append other kernel selftest in the future
>> +TEST_LIST = "bpf \
>> +             vm \
>> +"
>> +
>> +EXTRA_OEMAKE = '\
>> +    CROSS_COMPILE=${TARGET_PREFIX} \
>> +    ARCH=${ARCH} \
>> +    CC="${CC}" \
>> +    AR="${AR}" \
>> +    LD="${LD}" \
>> +'
>> +
>> +EXTRA_OEMAKE += "\
>> +    'DESTDIR=${D}' \
>> +"
>> +
>> +KERNEL_SELFTEST_SRC ?= "Makefile \
>> +                        include \
>> +                        tools \
>> +                        scripts \
>> +                        arch \
>> +"
>> +
>> +do_compile() {
>> +    for i in ${TEST_LIST}
>> +    do
>> +        oe_runmake -C ${S}/tools/testing/selftests/${i}
>