[OE-core] [PATCH] generate-manifest-3.5.py: add logic to generate native manifest

2017-02-25 Thread liu . ming50
From: Ming Liu 

python3-native supposes to RPROVIDE all native packages as added in
generate-manifest-3.5.py, but it does not so far, this leads a problem
that sometimes bitbake cant find a runtime provider for a python3-*-native
when a new runtime dependency on it being required, this usualy happens
after a new native python3-* recipe is created or the old native python3-*
recipes are upgraded.

To avoid manually extending RPROVIDE every time when a new runtime
dependency is introduced, an argument '-n/--native' is added to the
manifest generator, allowing it create a native python3 manifest, with a
RPROVIDE line only, the RPROVIDE should contain all the sub-packages.

The generated python-native-3.5-manifest.inc is also added which is
included by python3-native recipe.

Signed-off-by: Ming Liu 
---
 .../python/python-native-3.5-manifest.inc  | 11 +++
 .../python/python3-native_3.5.2.bb | 27 +---
 scripts/contrib/python/generate-manifest-3.5.py| 37 ++
 3 files changed, 42 insertions(+), 33 deletions(-)
 create mode 100644 meta/recipes-devtools/python/python-native-3.5-manifest.inc

diff --git a/meta/recipes-devtools/python/python-native-3.5-manifest.inc 
b/meta/recipes-devtools/python/python-native-3.5-manifest.inc
new file mode 100644
index 000..aa4c4f5
--- /dev/null
+++ b/meta/recipes-devtools/python/python-native-3.5-manifest.inc
@@ -0,0 +1,11 @@
+
+# WARNING: This file is AUTO GENERATED: Manual edits will be lost next time I 
regenerate the file.
+# Generator: '../../../scripts/contrib/python/generate-manifest-3.5.py 
--native' Version 20140131 (C) 2002-2010 Michael 'Mickey' Lauer 

+# Visit the Python for Embedded Systems Site => 
http://www.Vanille.de/projects/python.spy
+
+ 
+
+RPROVIDES+="python3-2to3-native python3-argparse-native python3-asyncio-native 
python3-audio-native python3-codecs-native python3-compile-native 
python3-compression-native python3-core-native python3-crypt-native 
python3-ctypes-native python3-curses-native python3-datetime-native 
python3-db-native python3-debugger-native python3-dev-native 
python3-difflib-native python3-distutils-native 
python3-distutils-staticdev-native python3-doctest-native python3-email-native 
python3-enum-native python3-fcntl-native python3-gdbm-native 
python3-html-native python3-idle-native python3-image-native 
python3-importlib-native python3-io-native python3-json-native 
python3-lang-native python3-logging-native python3-mailbox-native 
python3-math-native python3-mime-native python3-mmap-native 
python3-multiprocessing-native python3-netclient-native 
python3-netserver-native python3-numbers-native python3-pickle-native 
python3-pkgutil-native python3-pprint-native python3-profile-native 
python3-pydoc-n
 ative python3-re-native python3-readline-native python3-reprlib-native 
python3-resource-native python3-selectors-native python3-shell-native 
python3-signal-native python3-smtpd-native python3-sqlite3-native 
python3-sqlite3-tests-native python3-stringold-native python3-subprocess-native 
python3-syslog-native python3-terminal-native python3-tests-native 
python3-textutils-native python3-threading-native python3-tkinter-native 
python3-typing-native python3-unittest-native python3-unixadmin-native 
python3-xml-native python3-xmlrpc-native "
+
+
+
diff --git a/meta/recipes-devtools/python/python3-native_3.5.2.bb 
b/meta/recipes-devtools/python/python3-native_3.5.2.bb
index bf4e686..edcf224 100644
--- a/meta/recipes-devtools/python/python3-native_3.5.2.bb
+++ b/meta/recipes-devtools/python/python3-native_3.5.2.bb
@@ -41,32 +41,7 @@ DEPENDS = "openssl-native bzip2-replacement-native 
zlib-native readline-native s
 
 inherit native
 
-RPROVIDES += " \
-python3-compression-native \
-python3-core-native \
-python3-distutils-native \
-python3-datetime-native \
-python3-enum-native \
-python3-terminal-native \
-python3-email-native \
-python3-importlib-native \
-python3-io-native \
-python3-json-native \
-python3-lang-native \
-python3-misc-native \
-python3-modules-native \
-python3-netclient-native \
-python3-netserver-native \
-python3-numbers-native \
-python3-pkgutil-native \
-python3-pprint-native \
-python3-re-native \
-python3-shell-native \
-python3-subprocess-native \
-python3-textutils-native \
-python3-threading-native \
-python3-unittest-native \
-"
+require python-native-${PYTHON_MAJMIN}-manifest.inc
 
 EXTRA_OECONF_append = " --bindir=${bindir}/${PN} --without-ensurepip"
 
diff --git a/scripts/contrib/python/generate-manifest-3.5.py 
b/scripts/contrib/python/generate-manifest-3.5.py
index 5e2eeb7..a7fc8ba 100755
--- a/scripts/contrib/python/generate-manifest-3.5.py
+++ b/scripts/contrib/python/generate-manifest-3.5.py
@@ -13,9 +13,13 @@
 # 2014 Khem Raj 
 # Added python3 support
 #
+# February 26, 2017 -- Ming Liu 
+# * Updated to support generating manifest for native

[OE-core] [PATCH] generate-manifest-2.7.py: add logic to generate native manifest

2017-02-25 Thread liu . ming50
From: Ming Liu 

python-native supposes to RPROVIDE all native packages as added in
generate-manifest-2.7.py, but it does not so far, this leads a problem
that sometimes bitbake cant find a runtime provider for a python-*-native
when a new runtime dependency on it being required, this usualy happens
after a new native python-* recipe is created or the old native python-*
recipes are upgraded.

To give a example, the following commit is trying to address such a issue:
commit 4583cd1bb15306e8f0ab7bcd80732e6f35aa4533:
[ python-native: Make python-native also RPROVIDE python-unittest-native ]

To avoid manually extending RPROVIDE every time when a new runtime
dependency is introduced, an argument '-n/--native' is added to the
manifest generator, allowing it create a native python manifest, with a
RPROVIDE line only, the RPROVIDE should contain all the sub-packages.

The generated python-native-2.7-manifest.inc is also added which is
included by python-native recipe.

Signed-off-by: Ming Liu 
---
 .../python/python-native-2.7-manifest.inc  | 11 +++
 .../python/python-native_2.7.12.bb |  9 +-
 scripts/contrib/python/generate-manifest-2.7.py| 37 ++
 3 files changed, 42 insertions(+), 15 deletions(-)
 create mode 100644 meta/recipes-devtools/python/python-native-2.7-manifest.inc

diff --git a/meta/recipes-devtools/python/python-native-2.7-manifest.inc 
b/meta/recipes-devtools/python/python-native-2.7-manifest.inc
new file mode 100644
index 000..f45147b
--- /dev/null
+++ b/meta/recipes-devtools/python/python-native-2.7-manifest.inc
@@ -0,0 +1,11 @@
+
+# WARNING: This file is AUTO GENERATED: Manual edits will be lost next time I 
regenerate the file.
+# Generator: '../../../scripts/contrib/python/generate-manifest-2.7.py 
--native' Version 20110222.2 (C) 2002-2010 Michael 'Mickey' Lauer 

+# Visit the Python for Embedded Systems Site => 
http://www.Vanille.de/projects/python.spy
+
+ 
+
+RPROVIDES+="python-2to3-native python-argparse-native python-audio-native 
python-bsddb-native python-codecs-native python-compile-native 
python-compiler-native python-compression-native python-contextlib-native 
python-core-native python-crypt-native python-ctypes-native 
python-curses-native python-datetime-native python-db-native 
python-debugger-native python-dev-native python-difflib-native 
python-distutils-native python-distutils-staticdev-native python-doctest-native 
python-email-native python-fcntl-native python-gdbm-native 
python-hotshot-native python-html-native python-idle-native python-image-native 
python-importlib-native python-io-native python-json-native python-lang-native 
python-logging-native python-mailbox-native python-math-native 
python-mime-native python-mmap-native python-multiprocessing-native 
python-netclient-native python-netserver-native python-numbers-native 
python-pickle-native python-pkgutil-native python-plistlib-native 
python-pprint-native python-p
 rofile-native python-pydoc-native python-re-native python-readline-native 
python-resource-native python-robotparser-native python-shell-native 
python-smtpd-native python-sqlite3-native python-sqlite3-tests-native 
python-stringold-native python-subprocess-native python-syslog-native 
python-terminal-native python-tests-native python-textutils-native 
python-threading-native python-tkinter-native python-unittest-native 
python-unixadmin-native python-xml-native python-xmlrpc-native 
python-zlib-native "
+
+
+
diff --git a/meta/recipes-devtools/python/python-native_2.7.12.bb 
b/meta/recipes-devtools/python/python-native_2.7.12.bb
index 9a6430d..7edf153 100644
--- a/meta/recipes-devtools/python/python-native_2.7.12.bb
+++ b/meta/recipes-devtools/python/python-native_2.7.12.bb
@@ -25,14 +25,7 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/${PN}:"
 
 inherit native
 
-RPROVIDES += "python-distutils-native \
-python-compression-native \
-python-textutils-native \
-python-codecs-native \
-python-core-native \
-python-unittest-native \
-python-io-native \
-"
+require python-native-${PYTHON_MAJMIN}-manifest.inc
 
 EXTRA_OECONF_append = " --bindir=${bindir}/${PN} 
--with-system-expat=${STAGING_DIR_HOST}"
 
diff --git a/scripts/contrib/python/generate-manifest-2.7.py 
b/scripts/contrib/python/generate-manifest-2.7.py
index f2ecf8d..6f7a4c3 100755
--- a/scripts/contrib/python/generate-manifest-2.7.py
+++ b/scripts/contrib/python/generate-manifest-2.7.py
@@ -9,10 +9,14 @@
 #  * Updated to no longer generate special -dbg package, instead use the
 #single system -dbg
 #  * Update version with ".1" to indicate this change
+#
+# February 26, 2017 -- Ming Liu 
+#  * Updated to support generating manifest for native python
 
 import os
 import sys
 import time
+import argparse
 
 VERSION = "2.7.2"
 
@@ -21,16 +25,17 @@ __version__ = "20110222.2"
 
 class MakefileMaker:
 
-def __init__( self, outfile ):
+def __init__( self, outfile, isNative ):
 """initialize"""
 

[OE-core] [PATCH 2/2] lttng-tools: update to 2.9.4

2017-02-25 Thread Nathan Lynch
Drop upstreamed patch.

Signed-off-by: Nathan Lynch 
---
 .../utils-remove-bogus-interpreter.patch   | 35 --
 .../{lttng-tools_2.9.3.bb => lttng-tools_2.9.4.bb} |  8 ++---
 2 files changed, 4 insertions(+), 39 deletions(-)
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-tools/utils-remove-bogus-interpreter.patch
 rename meta/recipes-kernel/lttng/{lttng-tools_2.9.3.bb => 
lttng-tools_2.9.4.bb} (95%)

diff --git 
a/meta/recipes-kernel/lttng/lttng-tools/utils-remove-bogus-interpreter.patch 
b/meta/recipes-kernel/lttng/lttng-tools/utils-remove-bogus-interpreter.patch
deleted file mode 100644
index f08198208d4f..
--- a/meta/recipes-kernel/lttng/lttng-tools/utils-remove-bogus-interpreter.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 4545eae3bccb0f5a97509d1405a2829a8d7d Mon Sep 17 00:00:00 2001
-From: Nathan Lynch 
-Date: Mon, 9 Jan 2017 16:14:28 -0600
-Subject: [PATCH] lttng-tools: remove bogus interpreter line from utils shell
- library
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-tests/utils/utils.sh is always sourced, never executed, and
-/src/bin/bash is not a typical path for a shell interpreter.  Just
-delete it.
-
-Signed-off-by: Nathan Lynch 
-Signed-off-by: Jérémie Galarneau 

-
-Upstream-Status: Backport
-
- tests/utils/utils.sh | 2 --
- 1 file changed, 2 deletions(-)
-
-diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh
-index 05d88650e9f3..9db0640b70f3 100644
 a/tests/utils/utils.sh
-+++ b/tests/utils/utils.sh
-@@ -1,5 +1,3 @@
--#!/src/bin/bash
--#
- # Copyright (C) - 2012 David Goulet 
- #
- # This library is free software; you can redistribute it and/or modify it 
under
--- 
-2.7.4
-
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.9.3.bb 
b/meta/recipes-kernel/lttng/lttng-tools_2.9.4.bb
similarity index 95%
rename from meta/recipes-kernel/lttng/lttng-tools_2.9.3.bb
rename to meta/recipes-kernel/lttng/lttng-tools_2.9.4.bb
index 4c11e5b73dc3..fbf3ae985167 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.9.3.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.9.4.bb
@@ -28,11 +28,11 @@ PACKAGECONFIG_remove_libc-musl = "lttng-ust"
 
 SRC_URI = "https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \
file://x32.patch \
-   file://utils-remove-bogus-interpreter.patch \
-   file://run-ptest"
+   file://run-ptest \
+   "
 
-SRC_URI[md5sum] = "19fdcc5e9c307ef66581a2743a08a541"
-SRC_URI[sha256sum] = 
"a6e6b977dcbc9bce6b675881eec664599b86f0d905a7b0b508539407b24e"
+SRC_URI[md5sum] = "10f47abfa214b167580358388428770d"
+SRC_URI[sha256sum] = 
"3c72456bceef961fad1d0861f07478db16b7659efa69099ba36645da89ca2cc5"
 
 inherit autotools ptest pkgconfig useradd python3-dir manpages
 
-- 
2.9.3

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


[OE-core] [PATCH 1/2] lttng-modules: update to 2.9.1

2017-02-25 Thread Nathan Lynch
This includes a significant fix for kernel tracing on 32-bit systems;
kernel and user space events may be uncorrelated without it.

Signed-off-by: Nathan Lynch 
---
 .../lttng/{lttng-modules_2.9.0.bb => lttng-modules_2.9.1.bb}  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-kernel/lttng/{lttng-modules_2.9.0.bb => 
lttng-modules_2.9.1.bb} (89%)

diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.9.0.bb 
b/meta/recipes-kernel/lttng/lttng-modules_2.9.1.bb
similarity index 89%
rename from meta/recipes-kernel/lttng/lttng-modules_2.9.0.bb
rename to meta/recipes-kernel/lttng/lttng-modules_2.9.1.bb
index e59d6bc1379c..8e47c6f0a1bc 100644
--- a/meta/recipes-kernel/lttng/lttng-modules_2.9.0.bb
+++ b/meta/recipes-kernel/lttng/lttng-modules_2.9.1.bb
@@ -13,8 +13,8 @@ COMPATIBLE_HOST = 
'(x86_64|i.86|powerpc|aarch64|mips|nios2|arm).*-linux'
 SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \
file://Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch"
 
-SRC_URI[md5sum] = "717df375ccb6f32bb297cc2f2e692bbf"
-SRC_URI[sha256sum] = 
"af914e5954081cfb6bd4c6dcf9390474e0c13fe056b12b3dfc86d1b88b8340a0"
+SRC_URI[md5sum] = "5a16bca52233cc2bdff572b1120a88f6"
+SRC_URI[sha256sum] = 
"62078fe3254ca65969db4b72e59042cd797dbf2740848f8f82384877ae460d54"
 
 export INSTALL_MOD_DIR="kernel/lttng-modules"
 
-- 
2.9.3

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


Re: [OE-core] [PATCH 3/5] lttng-modules: upgrade to 2.9.0

2017-02-25 Thread Nathan Lynch
Bruce Ashfield  writes:

> Following up on this old patch .. since it causing a problem with my
> introduction of
> the 4.10 kernel.
>
> I'm going to have to switch back to the git fetching of lttng to easily
> pull in the latest
> changes to adapt to the 4.10 kernel.

I don't see why.  Support for 4.10 has been in lttng-modules' stable-2.9
branch since January, and is included in the v2.9.1 release, which was
tagged a week ago, right before the 4.10 release.  I had intended to
send the update for lttng-modules on Monday but since I've got it ready
I'll send it in a few minutes.

You should not need to use lttng-modules' master branch to work with
released Linux versions.


> lttng just doesn't release often enough for bleeding edge kernels,

That's not my impression at all. The LTTng project diligently tracks
upstream kernel development and ensures that the latest stable branch of
lttng-modules supports the latest released kernel.


> while maintaining
> a set of patches on top of the released version is possible .. I don't see
> the point.

Maintaining a set of patches on top of the released version of
lttng-modules should not be necessary.


> I missed the discussion on this one when it first came out, so I missed the
> reason that
> we switched away from git to the release tarballs ?

I know there's a diversity of opinion on the subject in general, but in
the absence of a need to use git, I think using a release tarball should
be preferred.
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] ell: Initial recipe for Embedded Linux Library

2017-02-25 Thread Burton, Ross
On 25 February 2017 at 15:47, Ankit Navik  wrote:

> I think, gdbus APIs will be replaced soon with ell APIs, I was the early
> adopter of ell APIs in OMA DM IMEI Sync (ODIS) Implementation.
> When I was implementing ODIS, there was license issue since gdbus uses GPL
> v2. I took help maintainer and they suggested ell. I remember they were
> mentioned that soon gdbus API will changes to ell in other components e.g.
> ofono, bluez, etc.
> I dont know thier exect timelines.
>

In that case ell can be considered for oe-core when a dependency of it
needs it - until then feel free to submit it to meta-oe or similar.

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


[OE-core] [PATCH 2/4] go-examples: Add an example, helloworld written in go

2017-02-25 Thread Khem Raj
This should serve as temlate for writing go recipes

Signed-off-by: Khem Raj 
---
 meta/recipes-extended/go-examples/files/helloworld.go  | 10 ++
 meta/recipes-extended/go-examples/go-examples.inc  | 10 ++
 meta/recipes-extended/go-examples/go-helloworld_0.1.bb | 15 +++
 3 files changed, 35 insertions(+)
 create mode 100644 meta/recipes-extended/go-examples/files/helloworld.go
 create mode 100644 meta/recipes-extended/go-examples/go-examples.inc
 create mode 100644 meta/recipes-extended/go-examples/go-helloworld_0.1.bb

diff --git a/meta/recipes-extended/go-examples/files/helloworld.go 
b/meta/recipes-extended/go-examples/files/helloworld.go
new file mode 100644
index 00..0253c40411
--- /dev/null
+++ b/meta/recipes-extended/go-examples/files/helloworld.go
@@ -0,0 +1,10 @@
+// You can edit this code!
+// Click here and start typing.
+// taken from https://golang.org/
+package main
+
+import "fmt"
+
+func main() {
+   fmt.Println("Hello, 世界")
+}
diff --git a/meta/recipes-extended/go-examples/go-examples.inc 
b/meta/recipes-extended/go-examples/go-examples.inc
new file mode 100644
index 00..c63268116b
--- /dev/null
+++ b/meta/recipes-extended/go-examples/go-examples.inc
@@ -0,0 +1,10 @@
+DESCRIPTION = "This is a simple example recipe that cross-compiles a Go 
program."
+SECTION = "examples"
+HOMEPAGE = "https://golang.org/";
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+S = "${WORKDIR}"
+
+inherit go
diff --git a/meta/recipes-extended/go-examples/go-helloworld_0.1.bb 
b/meta/recipes-extended/go-examples/go-helloworld_0.1.bb
new file mode 100644
index 00..af9d3b7454
--- /dev/null
+++ b/meta/recipes-extended/go-examples/go-helloworld_0.1.bb
@@ -0,0 +1,15 @@
+require go-examples.inc
+
+
+SRC_URI += " \
+  file://helloworld.go \
+"
+
+do_compile() {
+  go build helloworld.go
+}
+
+do_install() {
+  install -d "${D}/${bindir}"
+  install -m 0755 "${S}/helloworld" "${D}/${bindir}"
+}
-- 
2.11.1

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


[OE-core] [PATCH 1/4] go: Add recipes for golang compilers and tools

2017-02-25 Thread Khem Raj
This is converging the recipes for go from
meta-virtualization and oe-meta-go

Add recipes for go 1.7

go.bbclass is added to ease out writing
recipes for go packages

Signed-off-by: Khem Raj 
---
 meta/classes/go.bbclass|  74 +++
 meta/classes/goarch.bbclass|  46 +
 meta/recipes-devtools/go/go-1.4.inc|  15 ++
 .../go/go-1.4/016-armhf-elf-header.patch   |  24 +++
 ...ckport-cmd-link-support-new-386-amd64-rel.patch | 225 +
 meta/recipes-devtools/go/go-1.4/syslog.patch   |  62 ++
 meta/recipes-devtools/go/go-1.6.inc|  19 ++
 .../go/go-1.6/armhf-elf-header.patch   |  23 +++
 .../go/go-1.6/fix-cc-handling.patch|  50 +
 .../go/go-1.6/fix-target-cc-for-build.patch|  17 ++
 meta/recipes-devtools/go/go-1.6/gotooldir.patch|  30 +++
 .../go/go-1.6/split-host-and-target-build.patch|  63 ++
 meta/recipes-devtools/go/go-1.6/syslog.patch   |  62 ++
 meta/recipes-devtools/go/go-1.7.inc|  19 ++
 .../go/go-1.7/armhf-elf-header.patch   |  23 +++
 .../go/go-1.7/fix-cc-handling.patch|  50 +
 .../go/go-1.7/fix-target-cc-for-build.patch|  17 ++
 meta/recipes-devtools/go/go-1.7/gotooldir.patch|  30 +++
 .../go/go-1.7/split-host-and-target-build.patch|  62 ++
 meta/recipes-devtools/go/go-1.7/syslog.patch   |  62 ++
 meta/recipes-devtools/go/go-common.inc |  21 ++
 meta/recipes-devtools/go/go-native.inc |  54 +
 meta/recipes-devtools/go/go-native_1.4.bb  |   2 +
 meta/recipes-devtools/go/go.inc|  76 +++
 meta/recipes-devtools/go/go_1.6.bb |   4 +
 meta/recipes-devtools/go/go_1.7.bb |   4 +
 26 files changed, 1134 insertions(+)
 create mode 100644 meta/classes/go.bbclass
 create mode 100644 meta/classes/goarch.bbclass
 create mode 100644 meta/recipes-devtools/go/go-1.4.inc
 create mode 100644 meta/recipes-devtools/go/go-1.4/016-armhf-elf-header.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.4/go-cross-backport-cmd-link-support-new-386-amd64-rel.patch
 create mode 100644 meta/recipes-devtools/go/go-1.4/syslog.patch
 create mode 100644 meta/recipes-devtools/go/go-1.6.inc
 create mode 100644 meta/recipes-devtools/go/go-1.6/armhf-elf-header.patch
 create mode 100644 meta/recipes-devtools/go/go-1.6/fix-cc-handling.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.6/fix-target-cc-for-build.patch
 create mode 100644 meta/recipes-devtools/go/go-1.6/gotooldir.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.6/split-host-and-target-build.patch
 create mode 100644 meta/recipes-devtools/go/go-1.6/syslog.patch
 create mode 100644 meta/recipes-devtools/go/go-1.7.inc
 create mode 100644 meta/recipes-devtools/go/go-1.7/armhf-elf-header.patch
 create mode 100644 meta/recipes-devtools/go/go-1.7/fix-cc-handling.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.7/fix-target-cc-for-build.patch
 create mode 100644 meta/recipes-devtools/go/go-1.7/gotooldir.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.7/split-host-and-target-build.patch
 create mode 100644 meta/recipes-devtools/go/go-1.7/syslog.patch
 create mode 100644 meta/recipes-devtools/go/go-common.inc
 create mode 100644 meta/recipes-devtools/go/go-native.inc
 create mode 100644 meta/recipes-devtools/go/go-native_1.4.bb
 create mode 100644 meta/recipes-devtools/go/go.inc
 create mode 100644 meta/recipes-devtools/go/go_1.6.bb
 create mode 100644 meta/recipes-devtools/go/go_1.7.bb

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
new file mode 100644
index 00..e10864d99b
--- /dev/null
+++ b/meta/classes/go.bbclass
@@ -0,0 +1,74 @@
+inherit goarch
+
+GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go"
+GOROOT = "${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
+GOBIN_FINAL_class-native = "${GOROOT_FINAL}/bin"
+GOBIN_FINAL = "${GOROOT_FINAL}/bin/${GOOS}_${GOARCH}"
+
+export GOOS = "${TARGET_GOOS}"
+export GOARCH = "${TARGET_GOARCH}"
+export GOARM = "${TARGET_GOARM}"
+export CGO_ENABLED = "1"
+export GOROOT
+export GOROOT_FINAL = "${libdir}/${TARGET_SYS}/go"
+export GOBIN_FINAL
+export GOPKG_FINAL = "${GOROOT_FINAL}/pkg/${GOOS}_${GOARCH}"
+export GOSRC_FINAL = "${GOROOT_FINAL}/src"
+export GO_GCFLAGS = "${TARGET_CFLAGS}"
+export GO_LDFLAGS = "${TARGET_LDFLAGS}"
+export CGO_CFLAGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS} ${TARGET_CFLAGS}"
+export CGO_CPPFLAGS = "${TARGET_CPPFLAGS}"
+export CGO_CXXFLAGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS} 
${TARGET_CXXFLAGS}"
+export CGO_LDFLAGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS} ${TARGET_LDFLAGS}"
+
+DEPENDS += "go-cross"
+DEPENDS_class-native += "go-native"
+
+INHIBIT_PACKAGE_STRIP = "1"
+
+FILES_${PN}-staticdev += "${GOSRC_FINAL}/${GO_IMPORT}"
+FILES_${PN}-staticdev += "${GOPKG_FINAL}/${GO_IMPORT}*"
+
+GO_INSTALL ?= "${GO_IMPORT}/..."
+
+do_go_compil

[OE-core] [PATCH 0/4] Add golang basic infrastructure

2017-02-25 Thread Khem Raj
This patchset adds go to core, the bits has been fused from
oe-meta-go and meta-virtualtization layers with additional
changes needed for it to fit into oe-core

The following changes since commit 65cfc8aca3ff7e39453977a0215a350d13cb85ef:

  libva: Find the correct wayland-scanner (2017-02-23 12:29:21 -0800)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib kraj/go
  http://cgit.openembedded.org/openembedded-core-contrib/log/?h=kraj/go

Khem Raj (4):
  go: Add recipes for golang compilers and tools
  go-examples: Add an example, helloworld written in go
  go: Fix go cross build with rss
  go: Use CC for CC_FOR_TARGET and CXX for CXX_FOR_TARGET

 meta/classes/go.bbclass|  74 +++
 meta/classes/goarch.bbclass|  46 +
 meta/recipes-devtools/go/go-1.4.inc|  15 ++
 .../go/go-1.4/016-armhf-elf-header.patch   |  24 +++
 ...ckport-cmd-link-support-new-386-amd64-rel.patch | 225 +
 meta/recipes-devtools/go/go-1.4/syslog.patch   |  62 ++
 meta/recipes-devtools/go/go-1.6.inc|  19 ++
 .../go/go-1.6/armhf-elf-header.patch   |  23 +++
 .../go/go-1.6/fix-cc-handling.patch|  50 +
 .../go/go-1.6/fix-target-cc-for-build.patch|  17 ++
 meta/recipes-devtools/go/go-1.6/gotooldir.patch|  30 +++
 .../go/go-1.6/split-host-and-target-build.patch|  63 ++
 meta/recipes-devtools/go/go-1.6/syslog.patch   |  62 ++
 meta/recipes-devtools/go/go-1.7.inc|  19 ++
 .../go/go-1.7/armhf-elf-header.patch   |  23 +++
 .../go/go-1.7/fix-cc-handling.patch|  50 +
 .../go/go-1.7/fix-target-cc-for-build.patch|  17 ++
 meta/recipes-devtools/go/go-1.7/gotooldir.patch|  30 +++
 .../go/go-1.7/split-host-and-target-build.patch|  62 ++
 meta/recipes-devtools/go/go-1.7/syslog.patch   |  62 ++
 meta/recipes-devtools/go/go-common.inc |  21 ++
 meta/recipes-devtools/go/go-cross.inc  |  10 +
 meta/recipes-devtools/go/go-cross_1.7.bb   |   5 +
 meta/recipes-devtools/go/go-native.inc |  54 +
 meta/recipes-devtools/go/go-native_1.4.bb  |   2 +
 meta/recipes-devtools/go/go.inc|  76 +++
 meta/recipes-devtools/go/go_1.6.bb |   4 +
 meta/recipes-devtools/go/go_1.7.bb |   2 +
 .../go-examples/files/helloworld.go|  10 +
 meta/recipes-extended/go-examples/go-examples.inc  |  10 +
 .../go-examples/go-helloworld_0.1.bb   |  15 ++
 31 files changed, 1182 insertions(+)
 create mode 100644 meta/classes/go.bbclass
 create mode 100644 meta/classes/goarch.bbclass
 create mode 100644 meta/recipes-devtools/go/go-1.4.inc
 create mode 100644 meta/recipes-devtools/go/go-1.4/016-armhf-elf-header.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.4/go-cross-backport-cmd-link-support-new-386-amd64-rel.patch
 create mode 100644 meta/recipes-devtools/go/go-1.4/syslog.patch
 create mode 100644 meta/recipes-devtools/go/go-1.6.inc
 create mode 100644 meta/recipes-devtools/go/go-1.6/armhf-elf-header.patch
 create mode 100644 meta/recipes-devtools/go/go-1.6/fix-cc-handling.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.6/fix-target-cc-for-build.patch
 create mode 100644 meta/recipes-devtools/go/go-1.6/gotooldir.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.6/split-host-and-target-build.patch
 create mode 100644 meta/recipes-devtools/go/go-1.6/syslog.patch
 create mode 100644 meta/recipes-devtools/go/go-1.7.inc
 create mode 100644 meta/recipes-devtools/go/go-1.7/armhf-elf-header.patch
 create mode 100644 meta/recipes-devtools/go/go-1.7/fix-cc-handling.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.7/fix-target-cc-for-build.patch
 create mode 100644 meta/recipes-devtools/go/go-1.7/gotooldir.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.7/split-host-and-target-build.patch
 create mode 100644 meta/recipes-devtools/go/go-1.7/syslog.patch
 create mode 100644 meta/recipes-devtools/go/go-common.inc
 create mode 100644 meta/recipes-devtools/go/go-cross.inc
 create mode 100644 meta/recipes-devtools/go/go-cross_1.7.bb
 create mode 100644 meta/recipes-devtools/go/go-native.inc
 create mode 100644 meta/recipes-devtools/go/go-native_1.4.bb
 create mode 100644 meta/recipes-devtools/go/go.inc
 create mode 100644 meta/recipes-devtools/go/go_1.6.bb
 create mode 100644 meta/recipes-devtools/go/go_1.7.bb
 create mode 100644 meta/recipes-extended/go-examples/files/helloworld.go
 create mode 100644 meta/recipes-extended/go-examples/go-examples.inc
 create mode 100644 meta/recipes-extended/go-examples/go-helloworld_0.1.bb

-- 
2.11.1

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


[OE-core] [PATCH 4/4] go: Use CC for CC_FOR_TARGET and CXX for CXX_FOR_TARGET

2017-02-25 Thread Khem Raj
Helps building with clang

Signed-off-by: Khem Raj 
---
 meta/recipes-devtools/go/go.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/go/go.inc b/meta/recipes-devtools/go/go.inc
index 2449936dab..754fa34c1b 100644
--- a/meta/recipes-devtools/go/go.inc
+++ b/meta/recipes-devtools/go/go.inc
@@ -13,8 +13,8 @@ export GOARM = "${TARGET_GOARM}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
 export CGO_ENABLED = "1"
-export CC_FOR_TARGET="${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} 
--sysroot=${STAGING_DIR_TARGET}"
-export CXX_FOR_TARGET="${TARGET_PREFIX}g++ ${TARGET_CC_ARCH} 
--sysroot=${STAGING_DIR_TARGET}"
+export CC_FOR_TARGET = "${CC}"
+export CXX_FOR_TARGET = "${CXX}"
 
 do_configure[noexec] = "1"
 
-- 
2.11.1

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


[OE-core] [PATCH 3/4] go: Fix go cross build with rss

2017-02-25 Thread Khem Raj
recipe specific sysroot demanded changes how cross go compiler was built
rename PN to include ARCH_NAME for cross recipe

Signed-off-by: Khem Raj 
---
 meta/classes/go.bbclass  |  2 +-
 meta/recipes-devtools/go/go-cross.inc| 10 ++
 meta/recipes-devtools/go/go-cross_1.7.bb |  5 +
 meta/recipes-devtools/go/go_1.7.bb   |  2 --
 4 files changed, 16 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-devtools/go/go-cross.inc
 create mode 100644 meta/recipes-devtools/go/go-cross_1.7.bb

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index e10864d99b..293194d39a 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -21,7 +21,7 @@ export CGO_CPPFLAGS = "${TARGET_CPPFLAGS}"
 export CGO_CXXFLAGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS} 
${TARGET_CXXFLAGS}"
 export CGO_LDFLAGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS} ${TARGET_LDFLAGS}"
 
-DEPENDS += "go-cross"
+DEPENDS += "go-cross-${TARGET_ARCH}"
 DEPENDS_class-native += "go-native"
 
 INHIBIT_PACKAGE_STRIP = "1"
diff --git a/meta/recipes-devtools/go/go-cross.inc 
b/meta/recipes-devtools/go/go-cross.inc
new file mode 100644
index 00..fa9c339b93
--- /dev/null
+++ b/meta/recipes-devtools/go/go-cross.inc
@@ -0,0 +1,10 @@
+inherit cross
+
+DEPENDS += "gcc-cross-${TARGET_ARCH}"
+
+PN = "go-cross-${TARGET_ARCH}"
+
+FILESEXTRAPATHS =. "${FILE_DIRNAME}/go-cross:"
+
+GOROOT_FINAL ="${libdir}/go"
+export GOROOT_FINAL
diff --git a/meta/recipes-devtools/go/go-cross_1.7.bb 
b/meta/recipes-devtools/go/go-cross_1.7.bb
new file mode 100644
index 00..56ee084b10
--- /dev/null
+++ b/meta/recipes-devtools/go/go-cross_1.7.bb
@@ -0,0 +1,5 @@
+require go-cross.inc
+require go_${PV}.bb
+
+# Go binaries are not understood by the strip tool.
+INHIBIT_SYSROOT_STRIP = "1"
diff --git a/meta/recipes-devtools/go/go_1.7.bb 
b/meta/recipes-devtools/go/go_1.7.bb
index 8186427933..e7a6ab277e 100644
--- a/meta/recipes-devtools/go/go_1.7.bb
+++ b/meta/recipes-devtools/go/go_1.7.bb
@@ -1,4 +1,2 @@
 require go-${PV}.inc
 require go.inc
-
-BBCLASSEXTEND = "cross"
-- 
2.11.1

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


Re: [OE-core] [PATCH 3/5] lttng-modules: upgrade to 2.9.0

2017-02-25 Thread Bruce Ashfield
Following up on this old patch .. since it causing a problem with my
introduction of
the 4.10 kernel.

I'm going to have to switch back to the git fetching of lttng to easily
pull in the latest
changes to adapt to the 4.10 kernel.

lttng just doesn't release often enough for bleeding edge kernels, and
while maintaining
a set of patches on top of the released version is possible .. I don't see
the point.

I missed the discussion on this one when it first came out, so I missed the
reason that
we switched away from git to the release tarballs ?

I also didn't find it in my archived email, so before I go ahead and make a
_git variant of
the recipe again I wanted to check in and make sure that I'm not going to
break a
workflow or undo something that was being fixed.

Cheers,

Bruce


On Tue, Jan 10, 2017 at 6:06 PM, Nathan Lynch 
wrote:

> Switch to using release tarballs.
>
> Signed-off-by: Nathan Lynch 
> ---
>  .../lttng/{lttng-modules_git.bb => lttng-modules_2.9.0.bb} | 10
> --
>  1 file changed, 4 insertions(+), 6 deletions(-)
>  rename meta/recipes-kernel/lttng/{lttng-modules_git.bb =>
> lttng-modules_2.9.0.bb} (84%)
>
> diff --git a/meta/recipes-kernel/lttng/lttng-modules_git.bb
> b/meta/recipes-kernel/lttng/lttng-modules_2.9.0.bb
> similarity index 84%
> rename from meta/recipes-kernel/lttng/lttng-modules_git.bb
> rename to meta/recipes-kernel/lttng/lttng-modules_2.9.0.bb
> index 8a287131d06d..e59d6bc1379c 100644
> --- a/meta/recipes-kernel/lttng/lttng-modules_git.bb
> +++ b/meta/recipes-kernel/lttng/lttng-modules_2.9.0.bb
> @@ -8,20 +8,18 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=
> 362844633a08753bd96ab322a6c7f9f6 \
>
>  inherit module
>
> -SRCREV = "6e4fc6f36d68fb3c8d40113f8670eb6e9c8ffd76"
> -PV = "2.8.0+git${SRCPV}"
> -
>  COMPATIBLE_HOST = '(x86_64|i.86|powerpc|aarch64|mips|nios2|arm).*-linux'
>
> -SRC_URI = "git://git.lttng.org/lttng-modules.git;branch=stable-2.8 \
> +SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \
> file://Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-
> en.patch"
>
> +SRC_URI[md5sum] = "717df375ccb6f32bb297cc2f2e692bbf"
> +SRC_URI[sha256sum] = "af914e5954081cfb6bd4c6dcf93904
> 74e0c13fe056b12b3dfc86d1b88b8340a0"
> +
>  export INSTALL_MOD_DIR="kernel/lttng-modules"
>
>  EXTRA_OEMAKE += "KERNELDIR='${STAGING_KERNEL_DIR}'"
>
> -S = "${WORKDIR}/git"
> -
>  do_install_append() {
> # Delete empty directories to avoid QA failures if no modules were
> built
> find ${D}/lib -depth -type d -empty -exec rmdir {} \;
> --
> 2.7.4
>
> --
> ___
> 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] pulseaudio: 9.0 -> 10.0

2017-02-25 Thread Tanu Kaskinen
On Wed, 2017-02-22 at 14:48 +, Burton, Ross wrote:
> On 3 February 2017 at 07:06, Tanu Kaskinen  wrote:
> 
> > Relase notes:
> > https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/10.0/
> > 
> 
> I'm seeing a new warning now:
> 
> WARNING: pulseaudio-10.0-r0 do_package_qa: QA Issue: ELF binary
> '/data/poky-master/tmp-glibc/work/corei7-64-poky-linux/pulseaudio/10.0-r0/packages-split/pulseaudio-server/usr/bin/pulseaudio'
> has relocations in .text [textrel]
> 
> Would you be able to identify where this comes from?

I couldn't reproduce the problem. I don't get the warning, and "readelf
-d tmp/work/corei7-64-poky-linux/pulseaudio/10.0-r0/packages-
split/pulseaudio-server/usr/bin/pulseaudio | grep TEXT" returns
nothing.

My test was performed on a fresh poky clone with default configuration,
using command "bitbake pulseaudio". In addition to the default qemux86,
I tried with genericx86-64 and also intel-corei7-64 from meta-intel,
since your error message seemed to be from a corei7 build.

-- 
Tanu

https://www.patreon.com/tanuk
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core