Re: [OE-core] [meta-oe] [PATCH V2] rrdtool: only unset PERLHOSTLIB in do_configure

2016-05-12 Thread Robert Yang


I'm very sorry, they should go into oe-devel.

// Robert

On 05/13/2016 11:37 AM, Robert Yang wrote:

The do_compile requires it, otherwise it can't find the native module
correctly when perl-native is mirrored from another build.

Fixed:
| Compilation failed in require.
| BEGIN failed--compilation aborted.
| Can't locate loadable object for module File::Glob in @INC

Signed-off-by: Robert Yang 
---
  meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb 
b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
index 216aafc..73a5d0e 100644
--- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
+++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
@@ -58,9 +58,9 @@ export STAGING_INCDIR
  # emulate cpan_do_configure
  EXTRA_OEMAKE = ' PERL5LIB="${PERL_ARCHLIB}" '
  # Avoid do_configure error on some hosts
-export PERLHOSTLIB = ""

  do_configure() {
+unset PERLHOSTLIB
  #fix the pkglib problem with newer automake
  #perl
  sed -i -e "s|-Wl,--rpath -Wl,\$rp||g" \


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


[OE-core] [meta-oe] [PATCH V2] rrdtool: only unset PERLHOSTLIB in do_configure

2016-05-12 Thread Robert Yang
The do_compile requires it, otherwise it can't find the native module
correctly when perl-native is mirrored from another build.

Fixed:
| Compilation failed in require.
| BEGIN failed--compilation aborted.
| Can't locate loadable object for module File::Glob in @INC

Signed-off-by: Robert Yang 
---
 meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb 
b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
index 216aafc..73a5d0e 100644
--- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
+++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
@@ -58,9 +58,9 @@ export STAGING_INCDIR
 # emulate cpan_do_configure
 EXTRA_OEMAKE = ' PERL5LIB="${PERL_ARCHLIB}" '
 # Avoid do_configure error on some hosts
-export PERLHOSTLIB = ""
 
 do_configure() {
+unset PERLHOSTLIB
 #fix the pkglib problem with newer automake
 #perl
 sed -i -e "s|-Wl,--rpath -Wl,\$rp||g" \
-- 
2.8.0

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


[OE-core] [meta-oe] [PATCH V2] rrdtool: only unset PERLHOSTLIB in do_configure

2016-05-12 Thread Robert Yang
The do_compile requires it, otherwise it can't find the native module
correctly when perl-native is mirrored from another build.

Fixed:
| Compilation failed in require.
| BEGIN failed--compilation aborted.
| Can't locate loadable object for module File::Glob in @INC

Signed-off-by: Robert Yang 
---
 meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb 
b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
index 216aafc..73a5d0e 100644
--- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
+++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
@@ -58,9 +58,9 @@ export STAGING_INCDIR
 # emulate cpan_do_configure
 EXTRA_OEMAKE = ' PERL5LIB="${PERL_ARCHLIB}" '
 # Avoid do_configure error on some hosts
-export PERLHOSTLIB = ""
 
 do_configure() {
+unset PERLHOSTLIB
 #fix the pkglib problem with newer automake
 #perl
 sed -i -e "s|-Wl,--rpath -Wl,\$rp||g" \
-- 
2.8.0

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


[OE-core] Please help edit OEDAM minutes

2016-05-12 Thread Jeff Osier-Mixon
I admit defeat. I have been "trying to get to" the OEDAM minutes for a
month and I am clearly not getting to it, so I am now getting out of
the way. We are crowdsourcing these minutes, because collaborative
effort is what we do best.

My raw notes from the meeting are here. If you were present, please
help edit, fill in gaps, etc.

https://docs.google.com/document/d/1rPvy-QQkP0Z4a0PGOBkljfzGGzFVWREDz18vZzWyL9s/edit?usp=sharing


-- 
Jeff Osier-Mixon - Open Source Community Engineer, Intel Corporation
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core



Re: [OE-core] [PATCH] gcc-4.9: fix build with gcc 6

2016-05-12 Thread Dan McGregor
On 12 May 2016 9:15 a.m., "Richard Purdie" <
richard.pur...@linuxfoundation.org> wrote:
>
> On Thu, 2016-05-12 at 17:45 +0300, Ioan-Adrian Ratiu wrote:
> > On Thu, 12 May 2016 07:38:00 -0700
> > Khem Raj  wrote:
> >
> > > On Thu, May 12, 2016 at 6:12 AM, Ioan-Adrian Ratiu <
> > > adrian.ra...@ni.com> wrote:
> > > > Building gcc-cross 4.9.3 with gcc 6 fails with the following
> > > > error:
> > > >
> > > > error: 'const char* libc_name_p(const char*, unsigned int)'
> > > > redeclared inline with 'gnu_inline' attribute
> > > >
> > > > This is a backport of the upstream fix.
> > >
> > > I have seen couple of such patches being proposed. I was of the
> > > opinion to drop 4.9 from master however if we still want to
> > > refresh it the I would propose that we change the SRC_URI to point
> > > to
> > > latest on gcc-4_9-branch and remove any backports
> > > we have done since 4.9.3 release. It can also be merged into
> > > krogoth.
> > > Then we can latest decide if we want to keep 4.9 in
> > > 2.2 release or not. Would you be able to test such a patch
> >
> > Actually I'm all for dropping gcc 4 from master. It's about time IMO.
> >
> > I need this patch to fix the build in krogoth and was just waiting
> > for
> > feedback on master before I sent this patch there.
> >
> > I'll resend for krogoth directly then :)
>
> Since several people are hitting this and we have the patch, lets merge
> it, then drop 4.9 as a followup.
>

I also sent a patch for gcc 5.3. It has the same issue.

> Cheers,
>
> Richard
> --
> ___
> 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] [python3][PATCH] Switch urlparse to urllib.parse

2016-05-12 Thread Jeremy Puhlman
urlparse is replaced with urllib.parse functionality in python3

Signed-off-by: Jeremy Puhlman 
---
 meta/classes/sanity.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 27e061d..e04a236 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -891,13 +891,13 @@ def check_sanity_everybuild(status, d):
 continue
 
 if mirror.startswith('file://'):
-import urlparse
-check_symlink(urlparse.urlparse(mirror).path, d)
+import urllib
+check_symlink(urllib.parse.urlparse(mirror).path, d)
 # SSTATE_MIRROR ends with a /PATH string
 if mirror.endswith('/PATH'):
 # remove /PATH$ from SSTATE_MIRROR to get a working
 # base directory path
-mirror_base = 
urlparse.urlparse(mirror[:-1*len('/PATH')]).path
+mirror_base = 
urllib.parse.urlparse(mirror[:-1*len('/PATH')]).path
 check_symlink(mirror_base, d)
 
 # Check that TMPDIR hasn't changed location since the last time we were run
-- 
2.6.2

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


[OE-core] [PATCH v1] runqemu: Add suport for qemuzynqmp

2016-05-12 Thread Alistair Francis
Signed-off-by: Alistair Francis 
---
 scripts/runqemu  |  9 -
 scripts/runqemu-internal | 21 +
 2 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index d7fa941..de05035 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -121,7 +121,7 @@ while true; do
 arg=${1}
 case "$arg" in
 "qemux86" | "qemux86-64" | "qemuarm" | "qemuarm64" | "qemumips" | 
"qemumipsel" | \
-"qemumips64" | "qemush4"  | "qemuppc" | "qemumicroblaze" | "qemuzynq")
+"qemumips64" | "qemush4"  | "qemuppc" | "qemumicroblaze" | "qemuzynq" 
| "qemuzynqmp")
 [ -z "$MACHINE" -o "$MACHINE" = "$arg" ] && MACHINE=$arg || \
 error "conflicting MACHINE types [$MACHINE] and [$arg]"
 ;;
@@ -350,6 +350,10 @@ QEMUMICROBLAZE_DEFAULT_FSTYPE=cpio
 QEMUZYNQ_DEFAULT_KERNEL=uImage
 QEMUZYNQ_DEFAULT_FSTYPE=cpio
 
+# Default to booting u-boot as a direct Linux boot isn't supported yet.
+QEMUZYNQMP_DEFAULT_KERNEL=u-boot-qemuzynqmp.elf
+QEMUZYNQMP_DEFAULT_FSTYPE=cpio
+
 setup_path_vars() {
 if [ -z "$OE_TMPDIR" ] ; then
 PATHS_REQUIRED=true
@@ -382,6 +386,9 @@ setup_path_vars() {
 if [ -z "$DEPLOY_DIR_IMAGE" ] ; then
 DEPLOY_DIR_IMAGE=`sed -n 's/^DEPLOY_DIR_IMAGE=\"\(.*\)\"/\1/p' 
$BITBAKE_ENV_TMPFILE`
 fi
+if [ -z "$QEMU_DTB" ] ; then
+QEMU_DTB=`sed -n 's/^QEMU_DTB=\"\(.*\)\"/\1/p' 
$BITBAKE_ENV_TMPFILE`
+fi
 if [ -z "$OE_TMPDIR" ]; then
 # Check for errors from bitbake that the user needs to know about
 BITBAKE_OUTPUT=`cat $BITBAKE_ENV_TMPFILE | wc -l`
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index ac1c703..5671b4f 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -498,6 +498,24 @@ config_qemuzynq() {
 fi
 }
 
+config_qemuzynqmp() {
+set_mem_size 2048
+QEMU=qemu-system-aarch64
+
+export QEMU_AUDIO_DRV="none"
+if [ "x$SERIALSTDIO" = "x" ] ; then
+QEMU_UI_OPTIONS="-nographic"
+else
+QEMU_UI_OPTIONS=""
+fi
+
+# Networking and system options required for QEMU ZynqMP machine
+QEMU_NETWORK_CMD="-net nic -net nic -net nic -net nic -net 
user,net=10.10.70.0,dhcpstart=10.10.70.1,host=10.10.70.101"
+QEMU_SYSTEM_OPTIONS="$QEMU_NETWORK_CMD -M xlnx-ep108 -serial mon:stdio 
-dtb $DEPLOY_DIR_IMAGE/${QEMU_DTB}.dtb"
+
+QEMUOPTIONS="$QEMU_SYSTEM_OPTIONS $QEMU_UI_OPTIONS -tftp $DEPLOY_DIR_IMAGE"
+}
+
 config_qemumicroblaze() {
 set_mem_size 256
 QEMU=qemu-system-microblazeel
@@ -533,6 +551,9 @@ case "$MACHINE" in
 "qemuzynq")
 config_qemuzynq
 ;;
+"qemuzynqmp")
+config_qemuzynqmp
+;;
 "qemumicroblaze")
 config_qemumicroblaze
 ;;
-- 
2.7.4

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


[OE-core] [PATCH] qemu: Upgrade to 2.5.1.1 for fix CVE-2016-3710 and CVE-2016-3712

2016-05-12 Thread Aníbal Limón
This is a minor upgrade only comes with security fixes in qemu VGA
and UART code to avoid corruptions.

For review details,
http://git.qemu.org/?p=qemu.git;a=log;h=v2.5.1.1

Signed-off-by: Aníbal Limón 
---
 meta/recipes-devtools/qemu/{qemu_2.5.1.bb => qemu_2.5.1.1.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/qemu/{qemu_2.5.1.bb => qemu_2.5.1.1.bb} (88%)

diff --git a/meta/recipes-devtools/qemu/qemu_2.5.1.bb 
b/meta/recipes-devtools/qemu/qemu_2.5.1.1.bb
similarity index 88%
rename from meta/recipes-devtools/qemu/qemu_2.5.1.bb
rename to meta/recipes-devtools/qemu/qemu_2.5.1.1.bb
index 3db6e36..ba2dfc6 100644
--- a/meta/recipes-devtools/qemu/qemu_2.5.1.bb
+++ b/meta/recipes-devtools/qemu/qemu_2.5.1.1.bb
@@ -15,8 +15,8 @@ SRC_URI += 
"file://configure-fix-Darwin-target-detection.patch \
 file://CVE-2016-2858.patch \
"
 SRC_URI_prepend = "http://wiki.qemu-project.org/download/${BP}.tar.bz2;
-SRC_URI[md5sum] = "42e73182dea8b9213fa7050e168a4615"
-SRC_URI[sha256sum] = 
"028752c33bb786abbfe496ba57315dc5a7d0a33b5a7a767f6d7a29020c525d2c"
+SRC_URI[md5sum] = "f5ff0e71398b9e428b4f177001ba4285"
+SRC_URI[sha256sum] = 
"28d9946e43765a44ca3cba5f4f9034f2759ec1f2ce16594ddb6776c8efe6"
 
 COMPATIBLE_HOST_class-target_mips64 = "null"
 
-- 
2.1.4

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


[OE-core] [PATCHv2 1/3] package_manager.py: Move opkg_query() outside of Indexer class

2016-05-12 Thread mariano . lopez
From: Mariano Lopez 

When using the opkg and apt-get package managers the function
opkg_query() can be useful when query for package information.

This change moves the function outside the Indexer class so
the Indexer, OpkgPM, DpkgPM can benefit from it.

[YOCTO #9569]

Signed-off-by: Mariano Lopez 
---
 meta/lib/oe/package_manager.py | 104 -
 1 file changed, 51 insertions(+), 53 deletions(-)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index b4b359a..427518d 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -27,6 +27,55 @@ def create_index(arg):
 
 return None
 
+"""
+This method parse the output from the package managerand return
+a dictionary with the information of the packages. This is used
+when the packages are in deb or ipk format.
+"""
+def opkg_query(cmd_output):
+verregex = re.compile(' \([=<>]* [^ )]*\)')
+output = dict()
+filename = ""
+dep = []
+pkg = ""
+for line in cmd_output.splitlines():
+line = line.rstrip()
+if ':' in line:
+if line.startswith("Package: "):
+pkg = line.split(": ")[1]
+elif line.startswith("Architecture: "):
+arch = line.split(": ")[1]
+elif line.startswith("Version: "):
+ver = line.split(": ")[1]
+elif line.startswith("File: "):
+filename = line.split(": ")[1]
+elif line.startswith("Depends: "):
+depends = verregex.sub('', line.split(": ")[1])
+for depend in depends.split(", "):
+dep.append(depend)
+elif line.startswith("Recommends: "):
+recommends = verregex.sub('', line.split(": ")[1])
+for recommend in recommends.split(", "):
+dep.append("%s [REC]" % recommend)
+else:
+# IPK doesn't include the filename
+if not filename:
+filename = "%s_%s_%s.ipk" % (pkg, ver, arch)
+if pkg:
+output[pkg] = {"arch":arch, "ver":ver,
+"filename":filename, "deps": dep }
+pkg = ""
+filename = ""
+dep = []
+
+if pkg:
+if not filename:
+filename = "%s_%s_%s.ipk" % (pkg, ver, arch)
+output[pkg] = {"arch":arch, "ver":ver,
+"filename":filename, "deps": dep }
+
+return output
+
 
 class Indexer(object):
 __metaclass__ = ABCMeta
@@ -293,57 +342,6 @@ class PkgsList(object):
 pass
 
 
-"""
-This method parse the output from the package manager
-and return a dictionary with the information of the
-installed packages. This is used whne the packages are
-in deb or ipk format
-"""
-def opkg_query(self, cmd_output):
-verregex = re.compile(' \([=<>]* [^ )]*\)')
-output = dict()
-filename = ""
-dep = []
-pkg = ""
-for line in cmd_output.splitlines():
-line = line.rstrip()
-if ':' in line:
-if line.startswith("Package: "):
-pkg = line.split(": ")[1]
-elif line.startswith("Architecture: "):
-arch = line.split(": ")[1]
-elif line.startswith("Version: "):
-ver = line.split(": ")[1]
-elif line.startswith("File: "):
-filename = line.split(": ")[1]
-elif line.startswith("Depends: "):
-depends = verregex.sub('', line.split(": ")[1])
-for depend in depends.split(", "):
-dep.append(depend)
-elif line.startswith("Recommends: "):
-recommends = verregex.sub('', line.split(": ")[1])
-for recommend in recommends.split(", "):
-dep.append("%s [REC]" % recommend)
-else:
-# IPK doesn't include the filename
-if not filename:
-filename = "%s_%s_%s.ipk" % (pkg, ver, arch)
-if pkg:
-output[pkg] = {"arch":arch, "ver":ver,
-"filename":filename, "deps": dep }
-pkg = ""
-filename = ""
-dep = []
-
-if pkg:
-if not filename:
-filename = "%s_%s_%s.ipk" % (pkg, ver, arch)
-output[pkg] = {"arch":arch, "ver":ver,
-"filename":filename, "deps": dep }
-
-return output
-
-
 class RpmPkgsList(PkgsList):
 def __init__(self, d, rootfs_dir, arch_var=None, os_var=None):
 super(RpmPkgsList, self).__init__(d, rootfs_dir)
@@ -479,7 +477,7 @@ class OpkgPkgsList(PkgsList):
 bb.fatal("Cannot get the installed packages list. Command '%s' "
   

[OE-core] [PATCHv2 2/3] package_manager.py: Add extract() method for opkg and dpkg

2016-05-12 Thread mariano . lopez
From: Mariano Lopez 

Sometimes it is needed to have the content of a package outside
the recipe context.  This new method extract the content of an
IPK/DEB file to a tmpdir, without actually installing the package.

A new OpkgDpkgPM class was added to share the code for opkg and dpkg.

There were need some changes to opkg_query() in order to use it
with apt-cache output. Also set default values to avoid UnboundLocalError

[YOCTO #9569]

Signed-off-by: Mariano Lopez 
---
 meta/lib/oe/package_manager.py | 140 +++--
 1 file changed, 134 insertions(+), 6 deletions(-)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 427518d..f5517a4 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -35,9 +35,12 @@ when the packages are in deb or ipk format.
 def opkg_query(cmd_output):
 verregex = re.compile(' \([=<>]* [^ )]*\)')
 output = dict()
+pkg = ""
+arch = ""
+ver = ""
 filename = ""
 dep = []
-pkg = ""
+pkgarch = ""
 for line in cmd_output.splitlines():
 line = line.rstrip()
 if ':' in line:
@@ -47,8 +50,10 @@ def opkg_query(cmd_output):
 arch = line.split(": ")[1]
 elif line.startswith("Version: "):
 ver = line.split(": ")[1]
-elif line.startswith("File: "):
+elif line.startswith("File: ") or line.startswith("Filename:"):
 filename = line.split(": ")[1]
+if "/" in filename:
+filename = os.path.basename(filename)
 elif line.startswith("Depends: "):
 depends = verregex.sub('', line.split(": ")[1])
 for depend in depends.split(", "):
@@ -57,16 +62,23 @@ def opkg_query(cmd_output):
 recommends = verregex.sub('', line.split(": ")[1])
 for recommend in recommends.split(", "):
 dep.append("%s [REC]" % recommend)
-else:
+elif line.startswith("PackageArch: "):
+pkgarch = line.split(": ")[1]
+
+# When there is a blank line save the package information
+elif not line:
 # IPK doesn't include the filename
 if not filename:
 filename = "%s_%s_%s.ipk" % (pkg, ver, arch)
 if pkg:
 output[pkg] = {"arch":arch, "ver":ver,
-"filename":filename, "deps": dep }
+"filename":filename, "deps": dep, "pkgarch":pkgarch }
 pkg = ""
+arch = ""
+ver = ""
 filename = ""
 dep = []
+pkgarch = ""
 
 if pkg:
 if not filename:
@@ -1397,7 +1409,70 @@ class RpmPM(PackageManager):
 bb.utils.remove(f, True)
 
 
-class OpkgPM(PackageManager):
+class OpkgDpkgPM(PackageManager):
+"""
+This is an abstract class. Do not instantiate this directly.
+"""
+def __init__(self, d):
+super(OpkgDpkgPM, self).__init__(d)
+
+"""
+Returns a dictionary with the package info.
+
+This method extracts the common parts for Opkg and Dpkg
+"""
+def package_info(self, pkg, cmd):
+
+try:
+output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, 
shell=True)
+except subprocess.CalledProcessError as e:
+bb.fatal("Unable to list available packages. Command '%s' "
+ "returned %d:\n%s" % (cmd, e.returncode, e.output))
+return opkg_query(output)
+
+"""
+Returns the path to a tmpdir where resides the contents of a package.
+
+Deleting the tmpdir is responsability of the caller.
+
+This method extracts the common parts for Opkg and Dpkg
+"""
+def extract(self, pkg, pkg_path):
+
+ar_cmd = bb.utils.which(os.getenv("PATH"), "ar")
+tar_cmd = bb.utils.which(os.getenv("PATH"), "tar")
+
+if not os.path.isfile(pkg_path):
+bb.fatal("Unable to extract package for '%s'."
+ "File %s doesn't exists" % (pkg, pkg_path))
+
+tmp_dir = tempfile.mkdtemp()
+current_dir = os.getcwd()
+os.chdir(tmp_dir)
+
+try:
+cmd = "%s x %s" % (ar_cmd, pkg_path)
+output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, 
shell=True)
+cmd = "%s xf data.tar.*" % tar_cmd
+output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, 
shell=True)
+except subprocess.CalledProcessError as e:
+bb.utils.remove(tmp_dir, recurse=True)
+bb.fatal("Unable to extract %s package. Command '%s' "
+ "returned %d:\n%s" % (pkg_path, cmd, e.returncode, 
e.output))
+except OSError as e:
+bb.utils.remove(tmp_dir, recurse=True)
+bb.fatal("Unable to extract %s package. Command '%s' "
+ 

[OE-core] [PATCHv2 0/3] Add extract() method to package manager

2016-05-12 Thread mariano . lopez
From: Mariano Lopez 

Sometimes it is needed to have the content of a package outside of an image,
these series add this capability using a temp directory.

Changes in v2:

- Add default values when parsing package information. This way it won't
  throw an exception when trying to save an undefined variable


The following changes since commit 28433319ad8299aa23b1fcfdddbe100b29e86517:

  bitbake: toaster: tests browser Add test for creating a project (2016-05-11 
11:32:58 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib mariano/bug9569v2
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=mariano/bug9569v2

Mariano Lopez (3):
  package_manager.py: Move opkg_query() outside of Indexer class
  package_manager.py: Add extract() method for opkg and dpkg
  package_manager.py: Add extract() method for RPM package manager

 meta/lib/oe/package_manager.py | 321 ++---
 1 file changed, 266 insertions(+), 55 deletions(-)

-- 
2.6.6

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


[OE-core] [PATCHv2 3/3] package_manager.py: Add extract() method for RPM package manager

2016-05-12 Thread mariano . lopez
From: Mariano Lopez 

This new method extract the content of RPM file to a tmpdir,
without actually installing the package.

[YOCTO #9569]

Signed-off-by: Mariano Lopez 
---
 meta/lib/oe/package_manager.py | 85 ++
 1 file changed, 85 insertions(+)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index f5517a4..1eedeb8 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1408,6 +1408,91 @@ class RpmPM(PackageManager):
 for f in rpm_db_locks:
 bb.utils.remove(f, True)
 
+"""
+Returns a dictionary with the package info.
+"""
+def package_info(self, pkg):
+cmd = "%s %s info --urls %s" % (self.smart_cmd, self.smart_opt, pkg)
+try:
+output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, 
shell=True)
+except subprocess.CalledProcessError as e:
+bb.fatal("Unable to list available packages. Command '%s' "
+ "returned %d:\n%s" % (cmd, e.returncode, e.output))
+
+# Set default values to avoid UnboundLocalError
+arch = ""
+ver = ""
+filename = ""
+
+#Parse output
+for line in output.splitlines():
+line = line.rstrip()
+if line.startswith("Name:"):
+pkg = line.split(": ")[1]
+elif line.startswith("Version:"):
+tmp_str = line.split(": ")[1]
+ver, arch = tmp_str.split("@")
+break
+
+# Get filename
+index = re.search("^URLs", output, re.MULTILINE)
+tmp_str = output[index.end():]
+for line in tmp_str.splitlines():
+if "/" in line:
+line = line.lstrip()
+filename = line.split(" ")[0]
+break
+
+# To have the same data type than other package_info methods
+pkg_dict = {}
+pkg_dict[pkg] = {"arch":arch, "ver":ver, "filename":filename}
+
+return pkg_dict
+
+"""
+Returns the path to a tmpdir where resides the contents of a package.
+
+Deleting the tmpdir is responsability of the caller.
+
+"""
+def extract(self, pkg):
+pkg_info = self.package_info(pkg)
+if not pkg_info:
+bb.fatal("Unable to get information for package '%s' while "
+ "trying to extract the package."  % pkg)
+
+pkg_arch = pkg_info[pkg]["arch"]
+pkg_filename = pkg_info[pkg]["filename"]
+pkg_path = os.path.join(self.deploy_dir, pkg_arch, pkg_filename)
+
+cpio_cmd = bb.utils.which(os.getenv("PATH"), "cpio")
+rpm2cpio_cmd = bb.utils.which(os.getenv("PATH"), "rpm2cpio")
+
+if not os.path.isfile(pkg_path):
+bb.fatal("Unable to extract package for '%s'."
+ "File %s doesn't exists" % (pkg, pkg_path))
+
+tmp_dir = tempfile.mkdtemp()
+current_dir = os.getcwd()
+os.chdir(tmp_dir)
+
+try:
+cmd = "%s %s | %s -idmv" % (rpm2cpio_cmd, pkg_path, cpio_cmd)
+output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, 
shell=True)
+except subprocess.CalledProcessError as e:
+bb.utils.remove(tmp_dir, recurse=True)
+bb.fatal("Unable to extract %s package. Command '%s' "
+ "returned %d:\n%s" % (pkg_path, cmd, e.returncode, 
e.output))
+except OSError as e:
+bb.utils.remove(tmp_dir, recurse=True)
+bb.fatal("Unable to extract %s package. Command '%s' "
+ "returned %d:\n%s at %s" % (pkg_path, cmd, e.errno, 
e.strerror, e.filename))
+
+bb.note("Extracted %s to %s" % (pkg_path, tmp_dir))
+os.chdir(current_dir)
+
+return tmp_dir
+
 
 class OpkgDpkgPM(PackageManager):
 """
-- 
2.6.6

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


[OE-core] [PATCH] cmake: enable verbose builds

2016-05-12 Thread Ross Burton
To help debugging build problems pass VERBOSE=1 to make so that the makefiles
print their commands, just like we do with autotools.

Signed-off-by: Ross Burton 
---
 meta/classes/cmake.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 02f313a..e788310 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -126,7 +126,7 @@ cmake_do_configure() {
 
 cmake_do_compile()  {
cd ${B}
-   base_do_compile
+   base_do_compile VERBOSE=1
 }
 
 cmake_do_install() {
-- 
2.8.0.rc3

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


Re: [OE-core] [PATCH 3/3] package_manager.py: Add extract() method for RPM package manager

2016-05-12 Thread Mariano Lopez

On 05/12/2016 04:31 AM, Joshua G Lock wrote:

On Wed, 2016-05-11 at 12:31 +, mariano.lo...@linux.intel.com wrote:

From: Mariano Lopez 

+#Parse output
+for line in output.splitlines():
+line = line.rstrip()
+if line.startswith("Name:"):
+pkg = line.split(": ")[1]
+elif line.startswith("Version:"):
+tmp_str = line.split(": ")[1]
+ver, arch = tmp_str.split("@")
+break

Could pkg, ver and arch be potentially undefined here?




I'll send a v2 with default values

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


Re: [OE-core] [PATCH 18/42] conf: bump minimum kernel to 3.2.0

2016-05-12 Thread Khem Raj

> On May 12, 2016, at 10:18 AM, Ruslan Bilovol  wrote:
> 
> Hi,
> 
> On 05/11/2016 08:35 PM, Khem Raj wrote:
>> glibc 2.24 have raised the bar for minimum supported kernel
>> for more details see
>> 
>> http://repo.or.cz/glibc.git/commit/5b4ecd3f95695ef593e4474b4ab5a117291ba5fc
>> 
>> Signed-off-by: Khem Raj 
>> ---
>>  meta/classes/populate_sdk_base.bbclass | 2 +-
>>  meta/conf/bitbake.conf | 2 +-
>>  2 files changed, 2 insertions(+), 2 deletions(-)
>> 
>> diff --git a/meta/classes/populate_sdk_base.bbclass 
>> b/meta/classes/populate_sdk_base.bbclass
>> index 008bb57..645a7f4 100644
>> --- a/meta/classes/populate_sdk_base.bbclass
>> +++ b/meta/classes/populate_sdk_base.bbclass
>> @@ -90,7 +90,7 @@ SDK_POSTPROCESS_COMMAND = " create_sdk_files; 
>> check_sdk_sysroots; tar_sdk; ${SDK
>>  # Some archs override this, we need the nativesdk version
>>  # turns out this is hard to get from the datastore due to 
>> TRANSLATED_TARGET_ARCH
>>  # manipulation.
>> -SDK_OLDEST_KERNEL = "2.6.32"
>> +SDK_OLDEST_KERNEL = "3.2.0"
>>fakeroot python do_populate_sdk() {
>>  from oe.sdk import populate_sdk
>> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
>> index 8e02e91..07d171d 100644
>> --- a/meta/conf/bitbake.conf
>> +++ b/meta/conf/bitbake.conf
>> @@ -403,7 +403,7 @@ SDKPATHNATIVE = "${SDKPATH}/sysroots/${SDK_SYS}"
>>  # Kernel info.
>>  ##
>>  -OLDEST_KERNEL = "2.6.32"
>> +OLDEST_KERNEL = "3.2.0"
>>  OLDEST_KERNEL_aarch64 = "3.14"
>>  STAGING_KERNEL_DIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-source"
>>  STAGING_KERNEL_BUILDDIR = 
>> "${TMPDIR}/work-shared/${MACHINE}/kernel-build-artifacts"
> Could you please keep 2.6.32 for i386/x86_64? In mentioned glibc commit
> http://repo.or.cz/glibc.git/commit/5b4ecd3f95695ef593e4474b4ab5a117291ba5fc
> I see that Linux v3.2 is required for all architectures except x86 / x86_64.
> Currently we build OE and use SDK on x86_64 hosts and some of them
> run Linux based on kernel 2.6.32 so we would like to still have ability
> to use OE/SDK on such machines
> 

this is for sdkhost and build host, then lets not hold x86 targets for that
you can override the OLDEST_KERNEL for native and nativesdk glibc
in your local config metadata.

> Thanks,
> Ruslan



signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] pseudo: obey our LDFLAGS

2016-05-12 Thread Peter Seebach
On Wed, 11 May 2016 09:25:27 -0700
Christopher Larson  wrote:

> +Subject: [PATCH] Obey external LDFLAGS the way we obey CFLAGS

This has been merged into pseudo's upstream, now, but it's on top of some
large changes, so we should probably go ahead with the local patch until
later.

-s
-- 
Listen, get this.  Nobody with a good compiler needs to be justified.
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [master][PATCH 0/3] Fix a few recipes to obey LDFLAGS

2016-05-12 Thread Christopher Larson
On Thu, May 5, 2016 at 12:30 PM, Christopher Larson 
wrote:

> From: Christopher Larson 
>
> The following changes since commit
> 1a0e56630c5c27d8899dd0979ae0b86bbe227881:
>
>   utils.bbclass: note for deprecated base_contains (2016-04-29 07:53:58
> +0100)
>
> are available in the git repository at:
>
>   git://github.com/kergoth/openembedded-core more-ldflags-fixes
>   https://github.com/kergoth/openembedded-core/tree/more-ldflags-fixes
>
> Christopher Larson (3):
>   ruby: obey LDFLAGS for the link of libruby
>   mkelfimage: obey LDFLAGS, sort out HOST_ flags
>   pong-clock: obey CFLAGS, LDFLAGS
>

Just a ping to check status on this, as the autobuilder hit at least 2 of
these 3 issues testing the ldflags "poison" patch.
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [for-master][RFC PATCH 0/3] Support template files for wic wks

2016-05-12 Thread Christopher Larson
On Thu, May 12, 2016 at 11:06 AM, Christopher Larson 
wrote:

>
> On Sun, May 8, 2016 at 9:05 AM, Jeremy ROSEN 
> wrote:
>
>> Le 02/05/2016 21:23, Christopher Larson a écrit :
>>
>>> From: Christopher Larson 
>>>
>>> This adds support for .wks.in files as WKS_FILE.
>>>
>>> These files are treated as the contents of a bitbake variable, so usual
>>> bitbake variable references are supported. I considered using another
>>> templating mechanism, for example the one used by yocto-layer, but then
>>> we'd
>>> end up largely mapping metadata variables to template fields anyway,
>>> which is
>>> a pointless indirection. Let bitbake expand the variables directly
>>> instead.
>>>
>>> This feature lets us, for example, reference ${APPEND} in --append, and
>>> avoid
>>> hardcoding the serial console tty in the wks file, and let the user's
>>> changes
>>> to APPEND affect wic the way they do the other image construction
>>> mechanisms.
>>>
>>> The template is read in and set in a variable at parse time, so changes
>>> to the
>>> variables referenced by the template will result in rebuilding the image.
>>>
>>> It's been suggested that the name should better reflect how its contents
>>> are
>>> used, i.e. .bbin or so. I've also considered including something like
>>> 'bbv' or
>>> similar, to indicate its contents are that of a bitbake value. I think
>>> this
>>> should be discussed.
>>>
>>> I'd love to hear questions or comments on this. I think the value is
>>> clear,
>>> and it's something we need to solve, but I'd like to hear if others
>>> agree or
>>> disagree on that, and whether this implementation is appropriate.
>>
>>
Given that there don't seem to be any real objections here, I'm going to
re-submit this as a non-RFC patch series to try to get it merged. If anyone
has any issues adding this feature, let me know. Thanks for the feedback.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [for-master][RFC PATCH 0/3] Support template files for wic wks

2016-05-12 Thread Christopher Larson
On Sun, May 8, 2016 at 9:05 AM, Jeremy ROSEN  wrote:

> Le 02/05/2016 21:23, Christopher Larson a écrit :
>
>> From: Christopher Larson 
>>
>> This adds support for .wks.in files as WKS_FILE.
>>
>> These files are treated as the contents of a bitbake variable, so usual
>> bitbake variable references are supported. I considered using another
>> templating mechanism, for example the one used by yocto-layer, but then
>> we'd
>> end up largely mapping metadata variables to template fields anyway,
>> which is
>> a pointless indirection. Let bitbake expand the variables directly
>> instead.
>>
>> This feature lets us, for example, reference ${APPEND} in --append, and
>> avoid
>> hardcoding the serial console tty in the wks file, and let the user's
>> changes
>> to APPEND affect wic the way they do the other image construction
>> mechanisms.
>>
>> The template is read in and set in a variable at parse time, so changes
>> to the
>> variables referenced by the template will result in rebuilding the image.
>>
>> It's been suggested that the name should better reflect how its contents
>> are
>> used, i.e. .bbin or so. I've also considered including something like
>> 'bbv' or
>> similar, to indicate its contents are that of a bitbake value. I think
>> this
>> should be discussed.
>>
>> I'd love to hear questions or comments on this. I think the value is
>> clear,
>> and it's something we need to solve, but I'd like to hear if others agree
>> or
>> disagree on that, and whether this implementation is appropriate.
>>
>>
>>
>
> We have been discussing this a bit with Chris on IRC and i'll add a couple
> of thoughts we had so that discussion isn't completely lost.
>
> As a final user of yocto, I find the need for templating in wic very
> usefull, it would allow me to specify disk size in the machine
> specification and adapt the wic image accordingly, or use different disk
> names ( mmcblk vs sda)
>
> however my need is more generic and I think it would be interesting to
> consider a bigger problem : using yocto variables in configuration files.
> (I mean files in /etc/ here, not yocto configuration)
>
> It is a pretty common problem to have to tailor configuration files for
> particular machines, distro features, optional dependencies etc... this is
> possible to do using OVERRIDES but it can only be done at the whole-file
> level, not within a configuration file. Moreover it makes some complex
> cases very tricky. let's present an example
>
> It is pretty common to need to include the build-machine's ip address in a
> configuration file. This can be usefull to send logs if the build machine
> is also the developer's machine. The ip address of the build machine can be
> easily obtained via python and put into the bitbake environement, but using
> that variable to set a value in a random file in /etc is pretty tricky.
>
> similarly, I like to include my public ssh key as an authorized key for
> root on my builds, il makes testing way easier
>
> I think having a generic templating mechanism that would recognise some
> source files as needing template extension would be awesome. I don't
> understand fully how bitbake/yocto works, so I can't design a complete
> archtecture, but here are a couple of thought we had with Chris on IRC
>
> * recognise *.in in the same way *.patch are recognized. Is there a risk
> of improper expansion ? maybe specify that templating is needed as a
> parameter in SRC_URI
> * should expansion be in do_fetch or do_patch or somewhere else... images
> tend to skip do_patch, but do_fetch is on the bitbake side IIUC. would that
> be a problem ?
> * interaction with sstate and rebuilding needs to be considered... changes
> need to be detected post-templating obviously
>
> Overall, I really like the idea of this patch, there are lot of things in
> a .wks that need expansion, but I think there is even more in every other
> configuration file of the system.
>
> Hope my random thoughts helped



This is an interesting concept, certainly a generic templating mechanism
for source files may be of use. I expect we could get this merged, and open
a new yocto feature request in bugzilla to add a more generic mechanism,
possibly based on this sort of thing.

The main concern I'd have is making sure changes to the referenced
variables, or changes to the list of referenced variables, changes
appropriate checksums, so as was the case in this patch series, they'd have
to be read in at parse time to gather that info. As long as the files are
relatively small, it should be reasonable to do so, and I expect the common
case will be small config files, so I doubt it'd be a blocking issue.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org

Re: [OE-core] [PATCH 18/42] conf: bump minimum kernel to 3.2.0

2016-05-12 Thread Ruslan Bilovol

Hi,

On 05/11/2016 08:35 PM, Khem Raj wrote:

glibc 2.24 have raised the bar for minimum supported kernel
for more details see

http://repo.or.cz/glibc.git/commit/5b4ecd3f95695ef593e4474b4ab5a117291ba5fc

Signed-off-by: Khem Raj 
---
  meta/classes/populate_sdk_base.bbclass | 2 +-
  meta/conf/bitbake.conf | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/populate_sdk_base.bbclass 
b/meta/classes/populate_sdk_base.bbclass
index 008bb57..645a7f4 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -90,7 +90,7 @@ SDK_POSTPROCESS_COMMAND = " create_sdk_files; 
check_sdk_sysroots; tar_sdk; ${SDK
  # Some archs override this, we need the nativesdk version
  # turns out this is hard to get from the datastore due to 
TRANSLATED_TARGET_ARCH
  # manipulation.
-SDK_OLDEST_KERNEL = "2.6.32"
+SDK_OLDEST_KERNEL = "3.2.0"
  
  fakeroot python do_populate_sdk() {

  from oe.sdk import populate_sdk
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 8e02e91..07d171d 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -403,7 +403,7 @@ SDKPATHNATIVE = "${SDKPATH}/sysroots/${SDK_SYS}"
  # Kernel info.
  ##
  
-OLDEST_KERNEL = "2.6.32"

+OLDEST_KERNEL = "3.2.0"
  OLDEST_KERNEL_aarch64 = "3.14"
  STAGING_KERNEL_DIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-source"
  STAGING_KERNEL_BUILDDIR = 
"${TMPDIR}/work-shared/${MACHINE}/kernel-build-artifacts"

Could you please keep 2.6.32 for i386/x86_64? In mentioned glibc commit
http://repo.or.cz/glibc.git/commit/5b4ecd3f95695ef593e4474b4ab5a117291ba5fc
I see that Linux v3.2 is required for all architectures except x86 / x86_64.
Currently we build OE and use SDK on x86_64 hosts and some of them
run Linux based on kernel 2.6.32 so we would like to still have ability
to use OE/SDK on such machines

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


Re: [OE-core] [PATCH 22/42] linux-yocto: Fix build on ppc with gcc-6

2016-05-12 Thread Khem Raj
On Thu, May 12, 2016 at 7:27 AM, Khem Raj  wrote:
> On Thu, May 12, 2016 at 7:27 AM, Bruce Ashfield
>  wrote:
>>
>>
>> On Thu, May 12, 2016 at 10:21 AM, Khem Raj  wrote:
>>>
>>> On Thu, May 12, 2016 at 6:28 AM, Bruce Ashfield
>>>  wrote:
>>> >
>>> > The patches are not integrated into linux-yocto-4.4 and I added the
>>> > patch
>>> > I've
>>> > attached o my zedd/kernel poky-contrib branch:
>>>
>>> Nice, is this branch already proposed for merge ?
>>
>>
>> Yes. I stacked it on top of the -stable updates I sent yesterday, so it is
>> proposed to merge
>> for master and krogoth.
>

I have now merged your pull branch into mine and dropped my kernel
patches from my original pull requests.

http://git.openembedded.org/openembedded-core-contrib/log/?h=kraj/gcc-6
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2][krogoth] feature-arm-neon.inc: restore vfpv3-d16 support

2016-05-12 Thread André Draszik
Commit 6661718 (feature-arm-{neon,vfp}.inc: refactor and fix issues)
effectively changed the gcc -mfpu= option from -mfpu=vfpv3-d16 to
-mfpu=vfpv3d16, which gcc doesn't understand.

Restore the original value.

After doing that, we also need to adjust ARMPKGSFX_FPU which should
contain the same value without dash '-' as it is used that way
throughout.

Signed-off-by: André Draszik 

(cherry picked from commit c7f139a0538515356b27367a753882abd6c4534d)
Signed-off-by: André Draszik 
---
 meta/conf/machine/include/arm/feature-arm-neon.inc | 2 +-
 meta/conf/machine/include/arm/feature-arm-vfp.inc  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/conf/machine/include/arm/feature-arm-neon.inc 
b/meta/conf/machine/include/arm/feature-arm-neon.inc
index 50d9175..b34af8e 100644
--- a/meta/conf/machine/include/arm/feature-arm-neon.inc
+++ b/meta/conf/machine/include/arm/feature-arm-neon.inc
@@ -8,7 +8,7 @@ TUNEVALID[neon] = "Enable Neon SIMD accelerator unit."
 TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'neon', ' neon', 
'', d)}"
 
 TUNEVALID[vfpv3d16] = "Enable Vector Floating Point Version 3 with 16 
registers (vfpv3-d16) unit."
-TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv3d16', ' 
vfpv3d16', '', d)}"
+TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv3d16', ' 
vfpv3-d16', '', d)}"
 
 TUNEVALID[vfpv3] = "Enable Vector Floating Point Version 3 with 32 registers 
(vfpv3) unit."
 TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv3', ' vfpv3', 
'' , d)}"
diff --git a/meta/conf/machine/include/arm/feature-arm-vfp.inc 
b/meta/conf/machine/include/arm/feature-arm-vfp.inc
index 4247255..9ef31e7 100644
--- a/meta/conf/machine/include/arm/feature-arm-vfp.inc
+++ b/meta/conf/machine/include/arm/feature-arm-vfp.inc
@@ -6,7 +6,7 @@ TUNEVALID[vfp] = "Enable Vector Floating Point (vfp) unit."
 TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfp', ' vfp', '', 
d)}"
 
 TUNE_CCARGS  .= "${@ (' -mfpu=%s ' % d.getVar('TUNE_CCARGS_MFPU', 
True).split()[-1]) if (d.getVar('TUNE_CCARGS_MFPU', True) != '') else ''}"
-ARMPKGSFX_FPU = "${@ ('-%s'% d.getVar('TUNE_CCARGS_MFPU', 
True).split()[-1]) if (d.getVar('TUNE_CCARGS_MFPU', True) != '') else ''}"
+ARMPKGSFX_FPU = "${@ ('-%s'% d.getVar('TUNE_CCARGS_MFPU', 
True).split()[-1].replace('vfpv3-d16', 'vfpv3d16')) if 
(d.getVar('TUNE_CCARGS_MFPU', True) != '') else ''}"
 
 TUNEVALID[callconvention-hard] = "Enable EABI hard float call convention, 
requires VFP."
 TUNE_CCARGS_MFLOAT = "${@ bb.utils.contains('TUNE_FEATURES', 
'callconvention-hard', 'hard', 'softfp', d) if (d.getVar('TUNE_CCARGS_MFPU', 
True) != '') else '' }"
-- 
2.8.1

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


Re: [OE-core] [PATCH v2 0/2] Create systemd users at build time

2016-05-12 Thread Stephano Cetola
On 05/12, Puustinen, Ismo wrote:
> On Wed, 2016-05-11 at 12:04 -0700, Stephano Cetola wrote:
> > > I think this is a valuable feature. However, have you considered
> > > adding
> > > the "m" and "r" options too? I think that at least "m" would be
> > > worthwhile to implement, since it's important to be able to add
> > > users
> > > to different groups for privilege management.
> >
> > I added "--system" to both useradd and groupadd, and I believe that
> > is
> > the same as "-r". Please correct me if I am wrong there.
> > 
> > I do not see how the "-m" option would help with groups. I thought
> > that
> > simply added a skeleton home directory. Could you give me an example?
> 
> I mean that when you parse the sysusers.d configuration file
> in create_systemd_sysusers() function, you only parse the lines
> starting with 'u' and 'g'. You are skipping 'm' and 'r'. See:
> 
> https://www.freedesktop.org/software/systemd/man/sysusers.d.html
> 
> What I'm after is a generic mechanism for reading all sysusers.d/
> configuration files during image creation and creating the necessary
> users and groups during that time. You could also separate mechanism
> and policy, meaning that the list of files to parse could come from
> outside of the create_systemd_sysusers() function.
> 
> Ismo

Ah, I see.  Yes, I agree this would be of value. I think that "m" should
be straight forward to implement, though "r" might get a little
complicated with the staticids class. I'll look into both of these.

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


[OE-core] [PATCH] feature-arm-vfp.inc: fix overzealous ARMPKGSFX_FPU modification

2016-05-12 Thread André Draszik
Since commit 972b4fc (feature-arm-neon.inc: restore vfpv3-d16 support)
we're replacing _all_ dashes (-) in ARMPKGSFX_FPU, which is causing
problems for all legitimate uses of the dash as TUNE_PKGARCH doesn't
have the right value anymore:

E.g. on raspberrypi2:

ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker 
(see sanity.conf).
Following is the list of potential problems / advisories:

Error, the PACKAGE_ARCHS variable (all any noarch armv5hf-vfp armv5thf-vfp
armv5ehf-vfp armv5tehf-vfp armv6hf-vfp armv6thf-vfp armv7ahf-vfp
armv7at2hf-vfp armv7vehf-vfp armv7vet2hf-vfp armv7vehf-neon armv7vet2hf-neon
armv7vehf-neon-vfpv4 armv7vet2hf-neon-vfpv4 cortexa7hf-vfp cortexa7hf-neon
cortexa7hf-neon-vfpv4 cortexa7t2hf-vfp cortexa7t2hf-neon
cortexa7t2hf-neon-vfpv4 raspberrypi3) for DEFAULTTUNE (cortexa7thf-neon-vfpv4)
does not contain TUNE_PKGARCH (cortexa7hf-neonvfpv4).

Fix this by being more explicit about what we're modifying.

Reported-by: Khem Raj 
Signed-off-by: André Draszik 
---
 meta/conf/machine/include/arm/feature-arm-vfp.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/machine/include/arm/feature-arm-vfp.inc 
b/meta/conf/machine/include/arm/feature-arm-vfp.inc
index bd366a1..9ef31e7 100644
--- a/meta/conf/machine/include/arm/feature-arm-vfp.inc
+++ b/meta/conf/machine/include/arm/feature-arm-vfp.inc
@@ -6,7 +6,7 @@ TUNEVALID[vfp] = "Enable Vector Floating Point (vfp) unit."
 TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfp', ' vfp', '', 
d)}"
 
 TUNE_CCARGS  .= "${@ (' -mfpu=%s ' % d.getVar('TUNE_CCARGS_MFPU', 
True).split()[-1]) if (d.getVar('TUNE_CCARGS_MFPU', True) != '') else ''}"
-ARMPKGSFX_FPU = "${@ ('-%s'% d.getVar('TUNE_CCARGS_MFPU', 
True).split()[-1].replace('-', '')) if (d.getVar('TUNE_CCARGS_MFPU', True) != 
'') else ''}"
+ARMPKGSFX_FPU = "${@ ('-%s'% d.getVar('TUNE_CCARGS_MFPU', 
True).split()[-1].replace('vfpv3-d16', 'vfpv3d16')) if 
(d.getVar('TUNE_CCARGS_MFPU', True) != '') else ''}"
 
 TUNEVALID[callconvention-hard] = "Enable EABI hard float call convention, 
requires VFP."
 TUNE_CCARGS_MFLOAT = "${@ bb.utils.contains('TUNE_FEATURES', 
'callconvention-hard', 'hard', 'softfp', d) if (d.getVar('TUNE_CCARGS_MFPU', 
True) != '') else '' }"
-- 
2.8.1

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


[OE-core] [PATCH] weston: Use HTTPS for tarball download

2016-05-12 Thread Otavio Salvador
The tarball now is served just on the HTTPS URI, thus update the
SRC_URI.

Signed-off-by: Otavio Salvador 
---
 meta/recipes-graphics/wayland/weston_1.10.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/wayland/weston_1.10.0.bb 
b/meta/recipes-graphics/wayland/weston_1.10.0.bb
index 150d2bf..dc0a614 100644
--- a/meta/recipes-graphics/wayland/weston_1.10.0.bb
+++ b/meta/recipes-graphics/wayland/weston_1.10.0.bb
@@ -5,7 +5,7 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70 \
 
file://src/compositor.c;endline=23;md5=1d535fed266cf39f6d8c0647f52ac331"
 
-SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
+SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
file://weston.png \
file://weston.desktop \
file://make-libwebp-explicitly-configurable.patch \
-- 
2.8.2

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


Re: [OE-core] [PATCH] gcc-4.9: fix build with gcc 6

2016-05-12 Thread Richard Purdie
On Thu, 2016-05-12 at 17:45 +0300, Ioan-Adrian Ratiu wrote:
> On Thu, 12 May 2016 07:38:00 -0700
> Khem Raj  wrote:
> 
> > On Thu, May 12, 2016 at 6:12 AM, Ioan-Adrian Ratiu <
> > adrian.ra...@ni.com> wrote:
> > > Building gcc-cross 4.9.3 with gcc 6 fails with the following
> > > error:
> > > 
> > > error: 'const char* libc_name_p(const char*, unsigned int)'
> > > redeclared inline with 'gnu_inline' attribute
> > > 
> > > This is a backport of the upstream fix.  
> > 
> > I have seen couple of such patches being proposed. I was of the
> > opinion to drop 4.9 from master however if we still want to
> > refresh it the I would propose that we change the SRC_URI to point
> > to
> > latest on gcc-4_9-branch and remove any backports
> > we have done since 4.9.3 release. It can also be merged into
> > krogoth.
> > Then we can latest decide if we want to keep 4.9 in
> > 2.2 release or not. Would you be able to test such a patch
> 
> Actually I'm all for dropping gcc 4 from master. It's about time IMO.
> 
> I need this patch to fix the build in krogoth and was just waiting
> for
> feedback on master before I sent this patch there.
> 
> I'll resend for krogoth directly then :)

Since several people are hitting this and we have the patch, lets merge
it, then drop 4.9 as a followup.

Cheers,

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


[OE-core] [Krogoth][PATCH] gcc-4.9: fix build with gcc 6

2016-05-12 Thread Ioan-Adrian Ratiu
Building gcc-cross 4.9.3 with gcc 6 fails with the following error:

error: 'const char* libc_name_p(const char*, unsigned int)' redeclared inline 
with 'gnu_inline' attribute

This is a backport of the upstream fix.

Signed-off-by: Ioan-Adrian Ratiu 
---
 meta/recipes-devtools/gcc/gcc-4.9.inc  |   1 +
 .../gcc/gcc-4.9/0075-Fix-build-with-gcc-6.patch| 151 +
 2 files changed, 152 insertions(+)
 create mode 100644 
meta/recipes-devtools/gcc/gcc-4.9/0075-Fix-build-with-gcc-6.patch

diff --git a/meta/recipes-devtools/gcc/gcc-4.9.inc 
b/meta/recipes-devtools/gcc/gcc-4.9.inc
index 7e03f31..a38a68b 100644
--- a/meta/recipes-devtools/gcc/gcc-4.9.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.9.inc
@@ -90,6 +90,7 @@ SRC_URI = "\
 file://0072-support-ffile-prefix-map.patch \
 file://0073-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch \
 file://0074-fdebug-prefix-map-support-to-remap-relative-path.patch \
+file://0075-Fix-build-with-gcc-6.patch \
 "
 SRC_URI[md5sum] = "6f831b4d251872736e8e9cc09746f327"
 SRC_URI[sha256sum] = 
"2332b2a5a321b57508b9031354a8503af6fdfb868b8c1748d33028d100a8b67e"
diff --git a/meta/recipes-devtools/gcc/gcc-4.9/0075-Fix-build-with-gcc-6.patch 
b/meta/recipes-devtools/gcc/gcc-4.9/0075-Fix-build-with-gcc-6.patch
new file mode 100644
index 000..f865d4f
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.9/0075-Fix-build-with-gcc-6.patch
@@ -0,0 +1,151 @@
+From efdf2b53b907c96ad3f00275588eb311335d0c91 Mon Sep 17 00:00:00 2001
+From: Ioan-Adrian Ratiu 
+Date: Thu, 12 May 2016 15:24:25 +0300
+Subject: [PATCH] Fix build with gcc 6
+
+* Make-lang.in: Invoke gperf with -L C++.
+* cfns.gperf: Remove prototypes for hash and libc_name_p
+inlines.
+* cfns.h: Regenerated.
+* except.c (nothrow_libfn_p): Adjust.
+
+svn rev: r233572
+
+Upstream-status: Backport [gcc 4.9]
+
+Signed-off-by: Ioan-Adrian Ratiu 
+---
+ gcc/cp/Make-lang.in |  2 +-
+ gcc/cp/cfns.gperf   | 10 ++
+ gcc/cp/cfns.h   | 41 ++---
+ gcc/cp/except.c |  3 ++-
+ 4 files changed, 19 insertions(+), 37 deletions(-)
+
+diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
+index bd1c1d7..a0ea0d4 100644
+--- a/gcc/cp/Make-lang.in
 b/gcc/cp/Make-lang.in
+@@ -111,7 +111,7 @@ else
+ # deleting the $(srcdir)/cp/cfns.h file.
+ $(srcdir)/cp/cfns.h:
+ endif
+-  gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L ANSI-C \
++  gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L C++ \
+   $(srcdir)/cp/cfns.gperf --output-file $(srcdir)/cp/cfns.h
+ 
+ #
+diff --git a/gcc/cp/cfns.gperf b/gcc/cp/cfns.gperf
+index 05ca753..d9b16b8 100644
+--- a/gcc/cp/cfns.gperf
 b/gcc/cp/cfns.gperf
+@@ -1,3 +1,5 @@
++%language=C++
++%define class-name libc_name
+ %{
+ /* Copyright (C) 2000-2014 Free Software Foundation, Inc.
+ 
+@@ -16,14 +18,6 @@ for more details.
+ You should have received a copy of the GNU General Public License
+ along with GCC; see the file COPYING3.  If not see
+ .  */
+-#ifdef __GNUC__
+-__inline
+-#endif
+-static unsigned int hash (const char *, unsigned int);
+-#ifdef __GNUC__
+-__inline
+-#endif
+-const char * libc_name_p (const char *, unsigned int);
+ %}
+ %%
+ # The standard C library functions, for feeding to gperf; the result is used
+diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h
+index c845ddf..65801d1 100644
+--- a/gcc/cp/cfns.h
 b/gcc/cp/cfns.h
+@@ -1,5 +1,5 @@
+-/* ANSI-C code produced by gperf version 3.0.3 */
+-/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L ANSI-C 
cfns.gperf  */
++/* C++ code produced by gperf version 3.0.4 */
++/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L C++ 
--output-file cfns.h cfns.gperf  */
+ 
+ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
+   && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
+@@ -28,7 +28,7 @@
+ #error "gperf generated tables don't work with this execution character set. 
Please report a bug to ."
+ #endif
+ 
+-#line 1 "cfns.gperf"
++#line 3 "cfns.gperf"
+ 
+ /* Copyright (C) 2000-2014 Free Software Foundation, Inc.
+ 
+@@ -47,25 +47,18 @@ for more details.
+ You should have received a copy of the GNU General Public License
+ along with GCC; see the file COPYING3.  If not see
+ .  */
+-#ifdef __GNUC__
+-__inline
+-#endif
+-static unsigned int hash (const char *, unsigned int);
+-#ifdef __GNUC__
+-__inline
+-#endif
+-const char * libc_name_p (const char *, unsigned int);
+ /* maximum key range = 391, duplicates = 0 */
+ 
+-#ifdef __GNUC__
+-__inline
+-#else
+-#ifdef __cplusplus
+-inline
+-#endif
+-#endif
+-static unsigned int
+-hash (register const char *str, register unsigned int len)
++class libc_name
++{
++private:
++  static inline unsigned int hash (const char *str, unsigned int len);

Re: [OE-core] [PATCH] gcc-4.9: fix build with gcc 6

2016-05-12 Thread Ioan-Adrian Ratiu
On Thu, 12 May 2016 07:38:00 -0700
Khem Raj  wrote:

> On Thu, May 12, 2016 at 6:12 AM, Ioan-Adrian Ratiu  
> wrote:
> > Building gcc-cross 4.9.3 with gcc 6 fails with the following error:
> >
> > error: 'const char* libc_name_p(const char*, unsigned int)' redeclared 
> > inline with 'gnu_inline' attribute
> >
> > This is a backport of the upstream fix.  
> 
> I have seen couple of such patches being proposed. I was of the
> opinion to drop 4.9 from master however if we still want to
> refresh it the I would propose that we change the SRC_URI to point to
> latest on gcc-4_9-branch and remove any backports
> we have done since 4.9.3 release. It can also be merged into krogoth.
> Then we can latest decide if we want to keep 4.9 in
> 2.2 release or not. Would you be able to test such a patch

Actually I'm all for dropping gcc 4 from master. It's about time IMO.

I need this patch to fix the build in krogoth and was just waiting for
feedback on master before I sent this patch there.

I'll resend for krogoth directly then :)

Thank you,
Ioan

> 
> >
> > Signed-off-by: Ioan-Adrian Ratiu 
> > ---
> >  meta/recipes-devtools/gcc/gcc-4.9.inc  |   1 +
> >  .../gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch| 151 
> > +
> >  2 files changed, 152 insertions(+)
> >  create mode 100644 
> > meta/recipes-devtools/gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch
> >
> > diff --git a/meta/recipes-devtools/gcc/gcc-4.9.inc 
> > b/meta/recipes-devtools/gcc/gcc-4.9.inc
> > index 208e092..0cd9826 100644
> > --- a/meta/recipes-devtools/gcc/gcc-4.9.inc
> > +++ b/meta/recipes-devtools/gcc/gcc-4.9.inc
> > @@ -91,6 +91,7 @@ SRC_URI = "\
> >  file://0073-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch \
> >  file://0074-fdebug-prefix-map-support-to-remap-relative-path.patch \
> >  file://0075-libgcc-use-ldflags.patch \
> > +file://0076-Fix-build-with-gcc-6.patch \
> >  "
> >  SRC_URI[md5sum] = "6f831b4d251872736e8e9cc09746f327"
> >  SRC_URI[sha256sum] = 
> > "2332b2a5a321b57508b9031354a8503af6fdfb868b8c1748d33028d100a8b67e"
> > diff --git 
> > a/meta/recipes-devtools/gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch 
> > b/meta/recipes-devtools/gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch
> > new file mode 100644
> > index 000..f865d4f
> > --- /dev/null
> > +++ b/meta/recipes-devtools/gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch
> > @@ -0,0 +1,151 @@
> > +From efdf2b53b907c96ad3f00275588eb311335d0c91 Mon Sep 17 00:00:00 2001
> > +From: Ioan-Adrian Ratiu 
> > +Date: Thu, 12 May 2016 15:24:25 +0300
> > +Subject: [PATCH] Fix build with gcc 6
> > +
> > +* Make-lang.in: Invoke gperf with -L C++.
> > +* cfns.gperf: Remove prototypes for hash and libc_name_p
> > +inlines.
> > +* cfns.h: Regenerated.
> > +* except.c (nothrow_libfn_p): Adjust.
> > +
> > +svn rev: r233572
> > +
> > +Upstream-status: Backport [gcc 4.9]
> > +
> > +Signed-off-by: Ioan-Adrian Ratiu 
> > +---
> > + gcc/cp/Make-lang.in |  2 +-
> > + gcc/cp/cfns.gperf   | 10 ++
> > + gcc/cp/cfns.h   | 41 ++---
> > + gcc/cp/except.c |  3 ++-
> > + 4 files changed, 19 insertions(+), 37 deletions(-)
> > +
> > +diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
> > +index bd1c1d7..a0ea0d4 100644
> > +--- a/gcc/cp/Make-lang.in
> >  b/gcc/cp/Make-lang.in
> > +@@ -111,7 +111,7 @@ else
> > + # deleting the $(srcdir)/cp/cfns.h file.
> > + $(srcdir)/cp/cfns.h:
> > + endif
> > +-  gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L ANSI-C \
> > ++  gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L C++ \
> > +   $(srcdir)/cp/cfns.gperf --output-file $(srcdir)/cp/cfns.h
> > +
> > + #
> > +diff --git a/gcc/cp/cfns.gperf b/gcc/cp/cfns.gperf
> > +index 05ca753..d9b16b8 100644
> > +--- a/gcc/cp/cfns.gperf
> >  b/gcc/cp/cfns.gperf
> > +@@ -1,3 +1,5 @@
> > ++%language=C++
> > ++%define class-name libc_name
> > + %{
> > + /* Copyright (C) 2000-2014 Free Software Foundation, Inc.
> > +
> > +@@ -16,14 +18,6 @@ for more details.
> > + You should have received a copy of the GNU General Public License
> > + along with GCC; see the file COPYING3.  If not see
> > + .  */
> > +-#ifdef __GNUC__
> > +-__inline
> > +-#endif
> > +-static unsigned int hash (const char *, unsigned int);
> > +-#ifdef __GNUC__
> > +-__inline
> > +-#endif
> > +-const char * libc_name_p (const char *, unsigned int);
> > + %}
> > + %%
> > + # The standard C library functions, for feeding to gperf; the result is 
> > used
> > +diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h
> > +index c845ddf..65801d1 100644
> > +--- a/gcc/cp/cfns.h
> >  b/gcc/cp/cfns.h
> > +@@ -1,5 +1,5 @@
> > +-/* ANSI-C code produced by gperf version 3.0.3 */
> > +-/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L 
> > ANSI-C cfns.gperf  */
> > 

Re: [OE-core] [PATCH 22/42] linux-yocto: Fix build on ppc with gcc-6

2016-05-12 Thread Khem Raj
On Thu, May 12, 2016 at 7:27 AM, Bruce Ashfield
 wrote:
>
>
> On Thu, May 12, 2016 at 10:21 AM, Khem Raj  wrote:
>>
>> On Thu, May 12, 2016 at 6:28 AM, Bruce Ashfield
>>  wrote:
>> >
>> > The patches are not integrated into linux-yocto-4.4 and I added the
>> > patch
>> > I've
>> > attached o my zedd/kernel poky-contrib branch:
>>
>> Nice, is this branch already proposed for merge ?
>
>
> Yes. I stacked it on top of the -stable updates I sent yesterday, so it is
> proposed to merge
> for master and krogoth.


perfect thanks

>
> Bruce
>
>
>
>
> --
> "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] gcc-4.9: fix build with gcc 6

2016-05-12 Thread Khem Raj
On Thu, May 12, 2016 at 6:12 AM, Ioan-Adrian Ratiu  wrote:
> Building gcc-cross 4.9.3 with gcc 6 fails with the following error:
>
> error: 'const char* libc_name_p(const char*, unsigned int)' redeclared inline 
> with 'gnu_inline' attribute
>
> This is a backport of the upstream fix.

I have seen couple of such patches being proposed. I was of the
opinion to drop 4.9 from master however if we still want to
refresh it the I would propose that we change the SRC_URI to point to
latest on gcc-4_9-branch and remove any backports
we have done since 4.9.3 release. It can also be merged into krogoth.
Then we can latest decide if we want to keep 4.9 in
2.2 release or not. Would you be able to test such a patch

>
> Signed-off-by: Ioan-Adrian Ratiu 
> ---
>  meta/recipes-devtools/gcc/gcc-4.9.inc  |   1 +
>  .../gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch| 151 
> +
>  2 files changed, 152 insertions(+)
>  create mode 100644 
> meta/recipes-devtools/gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch
>
> diff --git a/meta/recipes-devtools/gcc/gcc-4.9.inc 
> b/meta/recipes-devtools/gcc/gcc-4.9.inc
> index 208e092..0cd9826 100644
> --- a/meta/recipes-devtools/gcc/gcc-4.9.inc
> +++ b/meta/recipes-devtools/gcc/gcc-4.9.inc
> @@ -91,6 +91,7 @@ SRC_URI = "\
>  file://0073-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch \
>  file://0074-fdebug-prefix-map-support-to-remap-relative-path.patch \
>  file://0075-libgcc-use-ldflags.patch \
> +file://0076-Fix-build-with-gcc-6.patch \
>  "
>  SRC_URI[md5sum] = "6f831b4d251872736e8e9cc09746f327"
>  SRC_URI[sha256sum] = 
> "2332b2a5a321b57508b9031354a8503af6fdfb868b8c1748d33028d100a8b67e"
> diff --git 
> a/meta/recipes-devtools/gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch 
> b/meta/recipes-devtools/gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch
> new file mode 100644
> index 000..f865d4f
> --- /dev/null
> +++ b/meta/recipes-devtools/gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch
> @@ -0,0 +1,151 @@
> +From efdf2b53b907c96ad3f00275588eb311335d0c91 Mon Sep 17 00:00:00 2001
> +From: Ioan-Adrian Ratiu 
> +Date: Thu, 12 May 2016 15:24:25 +0300
> +Subject: [PATCH] Fix build with gcc 6
> +
> +* Make-lang.in: Invoke gperf with -L C++.
> +* cfns.gperf: Remove prototypes for hash and libc_name_p
> +inlines.
> +* cfns.h: Regenerated.
> +* except.c (nothrow_libfn_p): Adjust.
> +
> +svn rev: r233572
> +
> +Upstream-status: Backport [gcc 4.9]
> +
> +Signed-off-by: Ioan-Adrian Ratiu 
> +---
> + gcc/cp/Make-lang.in |  2 +-
> + gcc/cp/cfns.gperf   | 10 ++
> + gcc/cp/cfns.h   | 41 ++---
> + gcc/cp/except.c |  3 ++-
> + 4 files changed, 19 insertions(+), 37 deletions(-)
> +
> +diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
> +index bd1c1d7..a0ea0d4 100644
> +--- a/gcc/cp/Make-lang.in
>  b/gcc/cp/Make-lang.in
> +@@ -111,7 +111,7 @@ else
> + # deleting the $(srcdir)/cp/cfns.h file.
> + $(srcdir)/cp/cfns.h:
> + endif
> +-  gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L ANSI-C \
> ++  gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L C++ \
> +   $(srcdir)/cp/cfns.gperf --output-file $(srcdir)/cp/cfns.h
> +
> + #
> +diff --git a/gcc/cp/cfns.gperf b/gcc/cp/cfns.gperf
> +index 05ca753..d9b16b8 100644
> +--- a/gcc/cp/cfns.gperf
>  b/gcc/cp/cfns.gperf
> +@@ -1,3 +1,5 @@
> ++%language=C++
> ++%define class-name libc_name
> + %{
> + /* Copyright (C) 2000-2014 Free Software Foundation, Inc.
> +
> +@@ -16,14 +18,6 @@ for more details.
> + You should have received a copy of the GNU General Public License
> + along with GCC; see the file COPYING3.  If not see
> + .  */
> +-#ifdef __GNUC__
> +-__inline
> +-#endif
> +-static unsigned int hash (const char *, unsigned int);
> +-#ifdef __GNUC__
> +-__inline
> +-#endif
> +-const char * libc_name_p (const char *, unsigned int);
> + %}
> + %%
> + # The standard C library functions, for feeding to gperf; the result is used
> +diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h
> +index c845ddf..65801d1 100644
> +--- a/gcc/cp/cfns.h
>  b/gcc/cp/cfns.h
> +@@ -1,5 +1,5 @@
> +-/* ANSI-C code produced by gperf version 3.0.3 */
> +-/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L ANSI-C 
> cfns.gperf  */
> ++/* C++ code produced by gperf version 3.0.4 */
> ++/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L C++ 
> --output-file cfns.h cfns.gperf  */
> +
> + #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
> +   && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
> +@@ -28,7 +28,7 @@
> + #error "gperf generated tables don't work with this execution character 
> set. Please report a bug to ."
> + #endif
> +
> +-#line 1 "cfns.gperf"
> ++#line 3 "cfns.gperf"
> +
> + /* Copyright (C) 2000-2014 Free 

Re: [OE-core] [PATCH 00/42] GCC/GDB/Binutils Upgrades

2016-05-12 Thread Ioan-Adrian Ratiu
On Thu, 12 May 2016 07:19:50 -0700
akuster808  wrote:

> On 05/12/2016 02:05 AM, Ioan-Adrian Ratiu wrote:
> > Hello
> > 
> > Can the gcc 6 fixes be pulled into the krogoth branch as well?  
> 
> GCC 6 is new so we wont be pull that over to Krogoth. Any fixes you are
> interested in, patches are welcome.

I'm not talking about putting gcc 6 inside the krogoth branches, I'm
talking about using gcc 6 on the native system which builds the krogoth
branches, specifically about the patches which fix the -native packages
which are compiled using the native gcc 6.

Khem's patches for master apply cleanly and fix the -native build errors,
I'll pick and resend them for Krogoth if you want, but they are identical.

Ionel

> 
> - armin
> 
> > 
> > On Wed, 11 May 2016 10:35:25 -0700
> > Khem Raj  wrote:
> >   
> >> This patchset covers gcc 6 upgrade along with gdb 7.11
> >> and glibc 2.24 ( upcoming ) release.
> >>
> >> Rest of upgrades are necessaciated by gcc-6 due to backports
> >> that were already in newer versions of packages
> >>
> >> It has been boot tested with core-image-minimal on all qemu
> >> machines
> >>
> >> The following changes since commit 
> >> a5970809a2f01dbd152684266e2a3d946d896620:
> >>
> >>   oeqa/lic-checksum: Update after recent LIC_FILES_CHKSUM changes 
> >> (2016-05-11 10:33:16 +0100)
> >>
> >> are available in the git repository at:
> >>
> >>   git://git.openembedded.org/openembedded-core-contrib kraj/gcc-6
> >>   
> >> http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/gcc-6
> >>
> >> Dan McGregor (2):
> >>   pkgconfig: Fix build with gcc-6 and upgrade to 0.29.1
> >>   binutils: disable werror on native build
> >>
> >> Khem Raj (39):
> >>   gcc: Add gcc6 recipes
> >>   glibc: Add recipes for 2.24 release
> >>   glib-2.0: Ignore useless warning found with gcc-6
> >>   elfutils: Upgrade to 0.166
> >>   rpm: Fix build with gcc6
> >>   alsa-tools: Fix build with gcc6
> >>   lzop: Fix build with gcc-6
> >>   webkitgtk: Upgrade to 2.12.1
> >>   oprofile: Fix with gcc6
> >>   mdadm: Fix gcc 6 warnings
> >>   nss: Upgrade to 3.23
> >>   grub: Fix build with gcc-6
> >>   valgrind: Fix build with gcc6
> >>   busybox/mdev: Ensure /sys is mounted before using it
> >>   libc-common.bbclass: Use sed instead of grep
> >>   conf: bump minimum kernel to 3.2.0
> >>   systemd: Create missing sysusers offline
> >>   grub_git: Upgrade to latest tip
> >>   libunwind: Upgrade to 1.2rc1+
> >>   linux-yocto: Fix build on ppc with gcc-6
> >>   linux-yocto: Fix build with gcc6 on mips
> >>   python-native: Point to expat in native sysroot
> >>   bitbake.conf: Empty out BUILDSDK_CPPFLAGS
> >>   strace: Remove pipe.expected
> >>   musl: Upgrade to tip of tree
> >>   libgcc: Ensure that gcc configure options are passed to libgcc too
> >>   libunwind: Upgrade to 1.2rc1+
> >>   libgcc: Ensure that gcc configure options are passed to libgcc too
> >>   gdb,strace: Fix builds on ppc/musl
> >>   libunwind: Add a confgure option for tests
> >>   gdb: Upgrade to 7.11
> >>   gdb: Disable binutils components
> >>   tcmode-default: Bump gcc,glibc,gdb
> >>   musl: Create symlinks for stub libraries
> >>   mdadm: Fix build with clang
> >>   distcc: Upgrade to 3.2
> >>   ruby: Upgrade to 2.2.5
> >>   mpfr: Upgrade to 3.1.4
> >>   gcc-runtime,libgcc: Symlink c++ header and startup files in
> >> target_triplet for SDK use
> >>
> >> Marek Vasut (1):
> >>   bitbake: Oldest kernel for nios2 is 3.19
> >>
> >>  meta/classes/cross-canadian.bbclass|1 +
> >>  meta/classes/libc-common.bbclass   |6 +-
> >>  meta/classes/populate_sdk_base.bbclass |2 +-
> >>  meta/conf/bitbake.conf |7 +-
> >>  meta/conf/distro/include/tcmode-default.inc|6 +-
> >>  ...ettext-gettext.c-main_context-secondary_c.patch |   39 +
> >>  meta/recipes-bsp/grub/grub2.inc|1 +
> >>  meta/recipes-bsp/grub/grub_git.bb  |2 +-
> >>  meta/recipes-core/busybox/files/mdev   |4 +-
> >>  .../0001-Do-not-ignore-return-value-of-write.patch |   42 +
> >>  .../glib-2.0/0002-tests-Ignore-y2k-warnings.patch  |   42 +
> >>  .../ignore-format-nonliteral-warning.patch |   39 +
> >>  meta/recipes-core/glib-2.0/glib-2.0_2.46.2.bb  |7 +-
> >>  .../fix_for_centos_5.8.patch   |   18 -
> >>  ...tive_2.23.bb => cross-localedef-native_2.24.bb} |   26 +-
> >>  ...glibc-initial_2.23.bb => glibc-initial_2.24.bb} |0
> >>  .../{glibc-locale_2.23.bb => glibc-locale_2.24.bb} |0
> >>  .../{glibc-mtrace_2.23.bb => glibc-mtrace_2.24.bb} |0
> >>  ...glibc-scripts_2.23.bb => glibc-scripts_2.24.bb} |0
> >>  ...libc-Look-for-host-system-ld.so.cache-as-.patch |8 +-
> >>  ...libc-Fix-buffer-overrun-with-a-relocated-.patch |8 +-
> >>  ...libc-Raise-the-size-of-arrays-containing-.patch |   34 +-
> >>  

Re: [OE-core] [PATCH 22/42] linux-yocto: Fix build on ppc with gcc-6

2016-05-12 Thread Bruce Ashfield
On Thu, May 12, 2016 at 10:21 AM, Khem Raj  wrote:

> On Thu, May 12, 2016 at 6:28 AM, Bruce Ashfield
>  wrote:
> >
> > The patches are not integrated into linux-yocto-4.4 and I added the patch
> > I've
> > attached o my zedd/kernel poky-contrib branch:
>
> Nice, is this branch already proposed for merge ?
>

Yes. I stacked it on top of the -stable updates I sent yesterday, so it is
proposed to merge
for master and krogoth.

Bruce




-- 
"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] feature-arm-neon.inc: restore vfpv3-d16 support

2016-05-12 Thread Khem Raj
On Thu, May 12, 2016 at 2:51 AM, André Draszik  wrote:
> OK. Any suggestions for how to best fix that?
>
> I could be more specific and .replace('vfpv3-d16', 'vfpv3d16') only, but
> that seems ugly :-)

There seem to be no other usecase where '-' is used in fpu names so it
should be ok

>
>
> Thanks,
> André
>
> On Mi, 2016-05-11 at 11:55 -0700, Khem Raj wrote:
>> This causes raspberrypi2 not parse anymore
>>
>> ERROR:  OE-core's config sanity checker detected a potential
>> misconfiguration.
>> Either fix the cause of this error or at your own risk disable the
>> checker (see sanity.conf).
>> Following is the list of potential problems / advisories:
>>
>> Error, the PACKAGE_ARCHS variable (all any noarch armv5hf-vfp
>> armv5thf-vfp armv5ehf-vfp armv5tehf-vfp armv6hf-vfp a
>> rmv6thf-vfp armv7ahf-vfp armv7at2hf-vfp armv7vehf-vfp armv7vet2hf-vfp
>> armv7vehf-neon armv7vet2hf-neon armv7vehf-neon-vf
>> pv4 armv7vet2hf-neon-vfpv4 cortexa7hf-vfp cortexa7hf-neon cortexa7hf-neon-
>> vfpv4 cortexa7t2hf-vfp cortexa7t2hf-neon cort
>> exa7t2hf-neon-vfpv4 raspberrypi3) for DEFAULTTUNE (cortexa7thf-neon-vfpv4)
>> does not contain TUNE_PKGARCH (cortexa7hf-ne
>> onvfpv4).
>>
>>
>> >
>> > On Apr 26, 2016, at 2:27 AM, André Draszik  wrote:
>> >
>> > Commit 6661718 (feature-arm-{neon,vfp}.inc: refactor and fix issues)
>> > effectively changed the gcc -mfpu= option from -mfpu=vfpv3-d16 to
>> > -mfpu=vfpv3d16, which gcc doesn't understand.
>> >
>> > Restore the original value.
>> >
>> > After doing that, we also need to adjust ARMPKGSFX_FPU which should
>> > contain the same value without dash '-' as it is used that way
>> > throughout.
>> >
>> > Signed-off-by: André Draszik 
>> > ---
>> > meta/conf/machine/include/arm/feature-arm-neon.inc | 2 +-
>> > meta/conf/machine/include/arm/feature-arm-vfp.inc  | 2 +-
>> > 2 files changed, 2 insertions(+), 2 deletions(-)
>> >
>> > diff --git a/meta/conf/machine/include/arm/feature-arm-neon.inc
>> > b/meta/conf/machine/include/arm/feature-arm-neon.inc
>> > index 50d9175..b34af8e 100644
>> > --- a/meta/conf/machine/include/arm/feature-arm-neon.inc
>> > +++ b/meta/conf/machine/include/arm/feature-arm-neon.inc
>> > @@ -8,7 +8,7 @@ TUNEVALID[neon] = "Enable Neon SIMD accelerator unit."
>> > TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'neon', '
>> > neon', '', d)}"
>> >
>> > TUNEVALID[vfpv3d16] = "Enable Vector Floating Point Version 3 with 16
>> > registers (vfpv3-d16) unit."
>> > -TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv3d16',
>> > ' vfpv3d16', '', d)}"
>> > +TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv3d16',
>> > ' vfpv3-d16', '', d)}"
>> >
>> > TUNEVALID[vfpv3] = "Enable Vector Floating Point Version 3 with 32
>> > registers (vfpv3) unit."
>> > TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv3', '
>> > vfpv3', '' , d)}"
>> > diff --git a/meta/conf/machine/include/arm/feature-arm-vfp.inc
>> > b/meta/conf/machine/include/arm/feature-arm-vfp.inc
>> > index 4247255..bd366a1 100644
>> > --- a/meta/conf/machine/include/arm/feature-arm-vfp.inc
>> > +++ b/meta/conf/machine/include/arm/feature-arm-vfp.inc
>> > @@ -6,7 +6,7 @@ TUNEVALID[vfp] = "Enable Vector Floating Point (vfp)
>> > unit."
>> > TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfp', '
>> > vfp', '', d)}"
>> >
>> > TUNE_CCARGS  .= "${@ (' -mfpu=%s ' % d.getVar('TUNE_CCARGS_MFPU',
>> > True).split()[-1]) if (d.getVar('TUNE_CCARGS_MFPU', True) != '') else
>> > ''}"
>> > -ARMPKGSFX_FPU = "${@ ('-%s'% d.getVar('TUNE_CCARGS_MFPU',
>> > True).split()[-1]) if (d.getVar('TUNE_CCARGS_MFPU', True) != '') else
>> > ''}"
>> > +ARMPKGSFX_FPU = "${@ ('-%s'% d.getVar('TUNE_CCARGS_MFPU',
>> > True).split()[-1].replace('-', '')) if (d.getVar('TUNE_CCARGS_MFPU',
>> > True) != '') else ''}"
>> >
>> > TUNEVALID[callconvention-hard] = "Enable EABI hard float call
>> > convention, requires VFP."
>> > TUNE_CCARGS_MFLOAT = "${@ bb.utils.contains('TUNE_FEATURES',
>> > 'callconvention-hard', 'hard', 'softfp', d) if
>> > (d.getVar('TUNE_CCARGS_MFPU', True) != '') else '' }"
>> > --
>> > 2.8.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
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 22/42] linux-yocto: Fix build on ppc with gcc-6

2016-05-12 Thread Khem Raj
On Thu, May 12, 2016 at 6:28 AM, Bruce Ashfield
 wrote:
>
> The patches are not integrated into linux-yocto-4.4 and I added the patch
> I've
> attached o my zedd/kernel poky-contrib branch:

Nice, is this branch already proposed for merge ?
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 00/42] GCC/GDB/Binutils Upgrades

2016-05-12 Thread akuster808


On 05/12/2016 02:05 AM, Ioan-Adrian Ratiu wrote:
> Hello
> 
> Can the gcc 6 fixes be pulled into the krogoth branch as well?

GCC 6 is new so we wont be pull that over to Krogoth. Any fixes you are
interested in, patches are welcome.

- armin

> 
> On Wed, 11 May 2016 10:35:25 -0700
> Khem Raj  wrote:
> 
>> This patchset covers gcc 6 upgrade along with gdb 7.11
>> and glibc 2.24 ( upcoming ) release.
>>
>> Rest of upgrades are necessaciated by gcc-6 due to backports
>> that were already in newer versions of packages
>>
>> It has been boot tested with core-image-minimal on all qemu
>> machines
>>
>> The following changes since commit a5970809a2f01dbd152684266e2a3d946d896620:
>>
>>   oeqa/lic-checksum: Update after recent LIC_FILES_CHKSUM changes 
>> (2016-05-11 10:33:16 +0100)
>>
>> are available in the git repository at:
>>
>>   git://git.openembedded.org/openembedded-core-contrib kraj/gcc-6
>>   
>> http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/gcc-6
>>
>> Dan McGregor (2):
>>   pkgconfig: Fix build with gcc-6 and upgrade to 0.29.1
>>   binutils: disable werror on native build
>>
>> Khem Raj (39):
>>   gcc: Add gcc6 recipes
>>   glibc: Add recipes for 2.24 release
>>   glib-2.0: Ignore useless warning found with gcc-6
>>   elfutils: Upgrade to 0.166
>>   rpm: Fix build with gcc6
>>   alsa-tools: Fix build with gcc6
>>   lzop: Fix build with gcc-6
>>   webkitgtk: Upgrade to 2.12.1
>>   oprofile: Fix with gcc6
>>   mdadm: Fix gcc 6 warnings
>>   nss: Upgrade to 3.23
>>   grub: Fix build with gcc-6
>>   valgrind: Fix build with gcc6
>>   busybox/mdev: Ensure /sys is mounted before using it
>>   libc-common.bbclass: Use sed instead of grep
>>   conf: bump minimum kernel to 3.2.0
>>   systemd: Create missing sysusers offline
>>   grub_git: Upgrade to latest tip
>>   libunwind: Upgrade to 1.2rc1+
>>   linux-yocto: Fix build on ppc with gcc-6
>>   linux-yocto: Fix build with gcc6 on mips
>>   python-native: Point to expat in native sysroot
>>   bitbake.conf: Empty out BUILDSDK_CPPFLAGS
>>   strace: Remove pipe.expected
>>   musl: Upgrade to tip of tree
>>   libgcc: Ensure that gcc configure options are passed to libgcc too
>>   libunwind: Upgrade to 1.2rc1+
>>   libgcc: Ensure that gcc configure options are passed to libgcc too
>>   gdb,strace: Fix builds on ppc/musl
>>   libunwind: Add a confgure option for tests
>>   gdb: Upgrade to 7.11
>>   gdb: Disable binutils components
>>   tcmode-default: Bump gcc,glibc,gdb
>>   musl: Create symlinks for stub libraries
>>   mdadm: Fix build with clang
>>   distcc: Upgrade to 3.2
>>   ruby: Upgrade to 2.2.5
>>   mpfr: Upgrade to 3.1.4
>>   gcc-runtime,libgcc: Symlink c++ header and startup files in
>> target_triplet for SDK use
>>
>> Marek Vasut (1):
>>   bitbake: Oldest kernel for nios2 is 3.19
>>
>>  meta/classes/cross-canadian.bbclass|1 +
>>  meta/classes/libc-common.bbclass   |6 +-
>>  meta/classes/populate_sdk_base.bbclass |2 +-
>>  meta/conf/bitbake.conf |7 +-
>>  meta/conf/distro/include/tcmode-default.inc|6 +-
>>  ...ettext-gettext.c-main_context-secondary_c.patch |   39 +
>>  meta/recipes-bsp/grub/grub2.inc|1 +
>>  meta/recipes-bsp/grub/grub_git.bb  |2 +-
>>  meta/recipes-core/busybox/files/mdev   |4 +-
>>  .../0001-Do-not-ignore-return-value-of-write.patch |   42 +
>>  .../glib-2.0/0002-tests-Ignore-y2k-warnings.patch  |   42 +
>>  .../ignore-format-nonliteral-warning.patch |   39 +
>>  meta/recipes-core/glib-2.0/glib-2.0_2.46.2.bb  |7 +-
>>  .../fix_for_centos_5.8.patch   |   18 -
>>  ...tive_2.23.bb => cross-localedef-native_2.24.bb} |   26 +-
>>  ...glibc-initial_2.23.bb => glibc-initial_2.24.bb} |0
>>  .../{glibc-locale_2.23.bb => glibc-locale_2.24.bb} |0
>>  .../{glibc-mtrace_2.23.bb => glibc-mtrace_2.24.bb} |0
>>  ...glibc-scripts_2.23.bb => glibc-scripts_2.24.bb} |0
>>  ...libc-Look-for-host-system-ld.so.cache-as-.patch |8 +-
>>  ...libc-Fix-buffer-overrun-with-a-relocated-.patch |8 +-
>>  ...libc-Raise-the-size-of-arrays-containing-.patch |   34 +-
>>  ...ivesdk-glibc-Allow-64-bit-atomics-for-x86.patch |   10 +-
>>  ...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 |8 +-
>>  ...n-libm-err-tab.pl-with-specific-dirs-in-S.patch |   10 +-
>>  ...qrt-f-are-now-inline-functions-and-call-o.patch |6 +-
>>  ...ersion-output-matching-grok-gold-s-output.patch |   14 +-
>>  ...-configure.ac-handle-correctly-libc_cv_ro.patch |6 +-
>>  .../glibc/glibc/0014-Add-unused-attribute.patch|8 +-
>>  

Re: [OE-core] [fido][PATCH 0/1] Undo ABI breakage in OpenSSL

2016-05-12 Thread Martin Jansa
On Thu, May 12, 2016 at 01:06:33PM +0100, Joshua Lock wrote:
> The backported upgrade to OpenSSL 1.0.2h introduced a newer version of
> Debian's linker version-script which breaks the OpenSSL ABI.
> This isn't desirable for a stable release, thus the attached patch reverts
> the linker-version changes and simply adds the 2 new symbols required by
> 1.0.2h.
> 
> Thanks to Martin Jansa for spotting the issue and suggesting a fix.

Thanks for following it and getting it merged so quickly.

It was already merged in fido, can we get the same to jethro (which was
also recently upgraded to 1.0.2h)?

Small downside is that the same 1.0.2h version in fido and jethro will
have different ABI than 1.0.2h in krogoth (unless someone updates the
version there as suggested by Andre in:
http://lists.openembedded.org/pipermail/openembedded-core/2016-March/118433.html
).

Krogoth was released with this ABI, so it's something users have
to deal with when upgrading to newer Yocto release (and this won't be
the only component with different ABI).

> The following changes since commit e7c46ce3e59cb4fd770e76ae006c0166d0dd5265:
> 
>   build-appliance-image: Update to fido head revision (2016-05-11 18:00:15 
> +0100)
> 
> are available in the git repository at:
> 
>   git://git.openembedded.org/openembedded-core-contrib joshuagl/fido-next
>   
> http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=joshuagl/fido-next
> 
> Joshua Lock (1):
>   openssl: prevent ABI break from earlier fido releases
> 
>  .../openssl/debian1.0.2/version-script.patch   | 31 
> +++---
>  1 file changed, 22 insertions(+), 9 deletions(-)
> 
> -- 
> 2.5.5
> 
> -- 
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com


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


[OE-core] [PATCH] report-error: Replace the build directory path in the error text

2016-05-12 Thread Michael Wood
Replace the TOPDIR in the output error file so that the error report once
submitted can then be more easily matched to find duplicate error
reports. This also reduces the need to manually redact any information that
might be in the error log path such as hostnames or home directories.

Signed-off-by: Michael Wood 
---
 meta/classes/report-error.bbclass | 5 +
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/report-error.bbclass 
b/meta/classes/report-error.bbclass
index 82b5bcd..20d2bef 100644
--- a/meta/classes/report-error.bbclass
+++ b/meta/classes/report-error.bbclass
@@ -58,6 +58,11 @@ python errorreport_handler () {
 try:
 logFile = codecs.open(log, 'r', 'utf-8')
 logdata = logFile.read()
+
+topdir = e.data.getVar('TOPDIR', True)
+if topdir:
+logdata = logdata.replace(topdir, ' ')
+
 logFile.close()
 except:
 logdata = "Unable to read log file"
-- 
2.7.4

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


Re: [OE-core] [PATCH 22/42] linux-yocto: Fix build on ppc with gcc-6

2016-05-12 Thread Bruce Ashfield
On Thu, May 12, 2016 at 12:31 AM, Bruce Ashfield 
wrote:

>
>
> On Wed, May 11, 2016 at 5:55 PM, Khem Raj  wrote:
>
>> On Wed, May 11, 2016 at 2:36 PM, Bruce Ashfield
>>  wrote:
>> >
>> >
>> > On Wed, May 11, 2016 at 5:30 PM, Khem Raj  wrote:
>> >>
>> >> On Wed, May 11, 2016 at 2:27 PM, Bruce Ashfield
>> >>  wrote:
>> >> >
>> >> >
>> >> > On Wed, May 11, 2016 at 1:35 PM, Khem Raj 
>> wrote:
>> >> >>
>> >> >> Signed-off-by: Khem Raj 
>> >> >
>> >> >
>> >> >
>> >> > These shouldn't be carried out of tree. So can you drop the
>> linux-yocto
>> >> > changes from the
>> >> > series, and I'll look at getting them integrated later.
>> >>
>> >> I could but, this series switches to using gcc6 which will start to
>> fail.
>> >
>> >
>> > I can coordinate the fix. We just don't carry patches like this for
>> linux
>> > yocto. As you
>> > can see, your series will no longer apply with the consolidated pull
>> > requests that
>> > I just sent.
>>
>> Just include these patches in your pull request and send a v2. I will
>> then drop it from my list.
>> since these patches should work fine with older gcc as well your
>> changes then can go in first
>> or along with my changes.
>>
>
> Sounds good. I'll have them out first thing in the morning Thursday.
>

The patches are not integrated into linux-yocto-4.4 and I added the patch
I've
attached o my zedd/kernel poky-contrib branch:

Bruce


>
> Bruce
>
>
>>
>> >
>> > Bruce
>> >
>> >>
>> >>
>> >> >
>> >> > Bruce
>> >> >
>> >> >>
>> >> >> ---
>> >> >>  ...ace-Fix-out-of-bounds-array-access-warnin.patch | 50
>> >> >> ++
>> >> >>  meta/recipes-kernel/linux/linux-yocto_4.4.bb   |  4 +-
>> >> >>  2 files changed, 53 insertions(+), 1 deletion(-)
>> >> >>  create mode 100644
>> >> >>
>> >> >>
>> meta/recipes-kernel/linux/linux-yocto/0001-powerpc-ptrace-Fix-out-of-bounds-array-access-warnin.patch
>> >> >>
>> >> >> diff --git
>> >> >>
>> >> >>
>> a/meta/recipes-kernel/linux/linux-yocto/0001-powerpc-ptrace-Fix-out-of-bounds-array-access-warnin.patch
>> >> >>
>> >> >>
>> b/meta/recipes-kernel/linux/linux-yocto/0001-powerpc-ptrace-Fix-out-of-bounds-array-access-warnin.patch
>> >> >> new file mode 100644
>> >> >> index 000..05315ed
>> >> >> --- /dev/null
>> >> >> +++
>> >> >>
>> >> >>
>> b/meta/recipes-kernel/linux/linux-yocto/0001-powerpc-ptrace-Fix-out-of-bounds-array-access-warnin.patch
>> >> >> @@ -0,0 +1,50 @@
>> >> >> +From 32acc1d9a5738b02e8815047af8886978aa40ead Mon Sep 17 00:00:00
>> 2001
>> >> >> +From: Khem Raj 
>> >> >> +Date: Mon, 25 Apr 2016 05:47:01 +
>> >> >> +Subject: [PATCH V2] powerpc/ptrace: Fix out of bounds array access
>> >> >> warning
>> >> >> +
>> >> >> +gcc-6 correctly warns about a out of bounds access
>> >> >> +
>> >> >> +arch/powerpc/kernel/ptrace.c:407:24: warning: index 32 denotes an
>> >> >> offset
>> >> >> greater than size of 'u64[32][1] {aka long long unsigned
>> int[32][1]}'
>> >> >> [-Warray-bounds]
>> >> >> +offsetof(struct thread_fp_state, fpr[32][0]));
>> >> >> +^
>> >> >> +
>> >> >> +check the end of array instead of beginning of next element to fix
>> >> >> this
>> >> >> +
>> >> >> +Signed-off-by: Khem Raj 
>> >> >> +Cc: Kees Cook 
>> >> >> +Cc: Michael Ellerman 
>> >> >> +Cc: Segher Boessenkool 
>> >> >> +---
>> >> >> +Changes from v1 to v2:
>> >> >> +
>> >> >> +- Check for fpr[32] instead of fpr[31][1]
>> >> >> +
>> >> >> + arch/powerpc/kernel/ptrace.c | 4 ++--
>> >> >> + 1 file changed, 2 insertions(+), 2 deletions(-)
>> >> >> +
>> >> >> +diff --git a/arch/powerpc/kernel/ptrace.c
>> >> >> b/arch/powerpc/kernel/ptrace.c
>> >> >> +index 737c0d0..b38fd08 100644
>> >> >> +--- a/arch/powerpc/kernel/ptrace.c
>> >> >>  b/arch/powerpc/kernel/ptrace.c
>> >> >> +@@ -376,7 +376,7 @@ static int fpr_get(struct task_struct *target,
>> >> >> const
>> >> >> struct user_regset *regset,
>> >> >> +
>> >> >> + #else
>> >> >> +   BUILD_BUG_ON(offsetof(struct thread_fp_state, fpscr) !=
>> >> >> +-   offsetof(struct thread_fp_state, fpr[32][0]));
>> >> >> ++   offsetof(struct thread_fp_state, fpr[32]));
>> >> >> +
>> >> >> +   return user_regset_copyout(, , , ,
>> >> >> +  >thread.fp_state, 0, -1);
>> >> >> +@@ -404,7 +404,7 @@ static int fpr_set(struct task_struct *target,
>> >> >> const
>> >> >> struct user_regset *regset,
>> >> >> +   return 0;
>> >> >> + #else
>> >> >> +   BUILD_BUG_ON(offsetof(struct thread_fp_state, fpscr) !=
>> >> >> +-   offsetof(struct thread_fp_state, fpr[32][0]));
>> >> >> ++   offsetof(struct thread_fp_state, fpr[32]));
>> >> >> +
>> >> >> +   return user_regset_copyin(, , , ,
>> >> >> +

[OE-core] [PATCH] gcc-4.9: fix build with gcc 6

2016-05-12 Thread Ioan-Adrian Ratiu
Building gcc-cross 4.9.3 with gcc 6 fails with the following error:

error: 'const char* libc_name_p(const char*, unsigned int)' redeclared inline 
with 'gnu_inline' attribute

This is a backport of the upstream fix.

Signed-off-by: Ioan-Adrian Ratiu 
---
 meta/recipes-devtools/gcc/gcc-4.9.inc  |   1 +
 .../gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch| 151 +
 2 files changed, 152 insertions(+)
 create mode 100644 
meta/recipes-devtools/gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch

diff --git a/meta/recipes-devtools/gcc/gcc-4.9.inc 
b/meta/recipes-devtools/gcc/gcc-4.9.inc
index 208e092..0cd9826 100644
--- a/meta/recipes-devtools/gcc/gcc-4.9.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.9.inc
@@ -91,6 +91,7 @@ SRC_URI = "\
 file://0073-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch \
 file://0074-fdebug-prefix-map-support-to-remap-relative-path.patch \
 file://0075-libgcc-use-ldflags.patch \
+file://0076-Fix-build-with-gcc-6.patch \
 "
 SRC_URI[md5sum] = "6f831b4d251872736e8e9cc09746f327"
 SRC_URI[sha256sum] = 
"2332b2a5a321b57508b9031354a8503af6fdfb868b8c1748d33028d100a8b67e"
diff --git a/meta/recipes-devtools/gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch 
b/meta/recipes-devtools/gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch
new file mode 100644
index 000..f865d4f
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.9/0076-Fix-build-with-gcc-6.patch
@@ -0,0 +1,151 @@
+From efdf2b53b907c96ad3f00275588eb311335d0c91 Mon Sep 17 00:00:00 2001
+From: Ioan-Adrian Ratiu 
+Date: Thu, 12 May 2016 15:24:25 +0300
+Subject: [PATCH] Fix build with gcc 6
+
+* Make-lang.in: Invoke gperf with -L C++.
+* cfns.gperf: Remove prototypes for hash and libc_name_p
+inlines.
+* cfns.h: Regenerated.
+* except.c (nothrow_libfn_p): Adjust.
+
+svn rev: r233572
+
+Upstream-status: Backport [gcc 4.9]
+
+Signed-off-by: Ioan-Adrian Ratiu 
+---
+ gcc/cp/Make-lang.in |  2 +-
+ gcc/cp/cfns.gperf   | 10 ++
+ gcc/cp/cfns.h   | 41 ++---
+ gcc/cp/except.c |  3 ++-
+ 4 files changed, 19 insertions(+), 37 deletions(-)
+
+diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
+index bd1c1d7..a0ea0d4 100644
+--- a/gcc/cp/Make-lang.in
 b/gcc/cp/Make-lang.in
+@@ -111,7 +111,7 @@ else
+ # deleting the $(srcdir)/cp/cfns.h file.
+ $(srcdir)/cp/cfns.h:
+ endif
+-  gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L ANSI-C \
++  gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L C++ \
+   $(srcdir)/cp/cfns.gperf --output-file $(srcdir)/cp/cfns.h
+ 
+ #
+diff --git a/gcc/cp/cfns.gperf b/gcc/cp/cfns.gperf
+index 05ca753..d9b16b8 100644
+--- a/gcc/cp/cfns.gperf
 b/gcc/cp/cfns.gperf
+@@ -1,3 +1,5 @@
++%language=C++
++%define class-name libc_name
+ %{
+ /* Copyright (C) 2000-2014 Free Software Foundation, Inc.
+ 
+@@ -16,14 +18,6 @@ for more details.
+ You should have received a copy of the GNU General Public License
+ along with GCC; see the file COPYING3.  If not see
+ .  */
+-#ifdef __GNUC__
+-__inline
+-#endif
+-static unsigned int hash (const char *, unsigned int);
+-#ifdef __GNUC__
+-__inline
+-#endif
+-const char * libc_name_p (const char *, unsigned int);
+ %}
+ %%
+ # The standard C library functions, for feeding to gperf; the result is used
+diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h
+index c845ddf..65801d1 100644
+--- a/gcc/cp/cfns.h
 b/gcc/cp/cfns.h
+@@ -1,5 +1,5 @@
+-/* ANSI-C code produced by gperf version 3.0.3 */
+-/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L ANSI-C 
cfns.gperf  */
++/* C++ code produced by gperf version 3.0.4 */
++/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L C++ 
--output-file cfns.h cfns.gperf  */
+ 
+ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
+   && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
+@@ -28,7 +28,7 @@
+ #error "gperf generated tables don't work with this execution character set. 
Please report a bug to ."
+ #endif
+ 
+-#line 1 "cfns.gperf"
++#line 3 "cfns.gperf"
+ 
+ /* Copyright (C) 2000-2014 Free Software Foundation, Inc.
+ 
+@@ -47,25 +47,18 @@ for more details.
+ You should have received a copy of the GNU General Public License
+ along with GCC; see the file COPYING3.  If not see
+ .  */
+-#ifdef __GNUC__
+-__inline
+-#endif
+-static unsigned int hash (const char *, unsigned int);
+-#ifdef __GNUC__
+-__inline
+-#endif
+-const char * libc_name_p (const char *, unsigned int);
+ /* maximum key range = 391, duplicates = 0 */
+ 
+-#ifdef __GNUC__
+-__inline
+-#else
+-#ifdef __cplusplus
+-inline
+-#endif
+-#endif
+-static unsigned int
+-hash (register const char *str, register unsigned int len)
++class libc_name
++{
++private:
++  static inline unsigned int hash (const char *str, unsigned int len);

[OE-core] [PATCH 3/3] mmc-utils: update to latest git version

2016-05-12 Thread Maxin B. John
LIC_FILES_CHKSUM has changed due to modifications related to
field firmware update support. However, License remains the same.

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

diff --git a/meta/recipes-devtools/mmc/mmc-utils_git.bb 
b/meta/recipes-devtools/mmc/mmc-utils_git.bb
index 64b8910..0a8da19 100644
--- a/meta/recipes-devtools/mmc/mmc-utils_git.bb
+++ b/meta/recipes-devtools/mmc/mmc-utils_git.bb
@@ -1,10 +1,10 @@
 SUMMARY = "Userspace tools for MMC/SD devices"
 HOMEPAGE = "http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/;
 LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = 
"file://mmc.c;beginline=1;endline=17;md5=d7747fc87f1eb22b946ef819969503f0"
+LIC_FILES_CHKSUM = 
"file://mmc.c;beginline=1;endline=20;md5=fae32792e20f4d27ade1c5a762d16b7d"
 
 SRCBRANCH ?= "master"
-SRCREV = "44f94b925894577f9ffcf2c418dd013a5e582648"
+SRCREV = "bb779acfc385d135b32a6998c1d1fceef0491400"
 
 PV = "0.1"
 
-- 
2.4.0

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


[OE-core] [PATCH 2/3] connman: update to version 1.32

2016-05-12 Thread Maxin B. John
Removed following upstreamed/backported patches:
a) 0001-Detect-backtrace-API-availability-before-using-it.patch
b) 0001-iptables-Add-missing-function-item-of-xtables-to-mat.patch

Rearranged musl related patches.

Signed-off-by: Maxin B. John 
---
 ...acktrace-API-availability-before-using-it.patch | 55 --
 ...d-missing-function-item-of-xtables-to-mat.patch | 42 -
 meta/recipes-connectivity/connman/connman_1.31.bb  | 15 --
 meta/recipes-connectivity/connman/connman_1.32.bb  | 15 ++
 4 files changed, 15 insertions(+), 112 deletions(-)
 delete mode 100644 
meta/recipes-connectivity/connman/connman/0001-Detect-backtrace-API-availability-before-using-it.patch
 delete mode 100644 
meta/recipes-connectivity/connman/connman/0001-iptables-Add-missing-function-item-of-xtables-to-mat.patch
 delete mode 100644 meta/recipes-connectivity/connman/connman_1.31.bb
 create mode 100644 meta/recipes-connectivity/connman/connman_1.32.bb

diff --git 
a/meta/recipes-connectivity/connman/connman/0001-Detect-backtrace-API-availability-before-using-it.patch
 
b/meta/recipes-connectivity/connman/connman/0001-Detect-backtrace-API-availability-before-using-it.patch
deleted file mode 100644
index 5dc6fd6..000
--- 
a/meta/recipes-connectivity/connman/connman/0001-Detect-backtrace-API-availability-before-using-it.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-From 00d4447395725abaa651e12ed40095081e04011e Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Sun, 13 Sep 2015 13:22:01 -0700
-Subject: [PATCH 1/3] Detect backtrace() API availability before using it
-
-C libraries besides glibc do not have backtrace() implemented
-
-Signed-off-by: Khem Raj 

-Upstream-Status: Pending
-
- configure.ac | 2 ++
- src/log.c| 5 ++---
- 2 files changed, 4 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 69c0eeb..90099f2 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -171,6 +171,8 @@ fi
- AM_CONDITIONAL(PPTP, test "${enable_pptp}" != "no")
- AM_CONDITIONAL(PPTP_BUILTIN, test "${enable_pptp}" = "builtin")
- 
-+AC_CHECK_HEADERS([execinfo.h])
-+
- AC_CHECK_HEADERS(resolv.h, dummy=yes,
-   AC_MSG_ERROR(resolver header files are required))
- AC_CHECK_LIB(resolv, ns_initparse, dummy=yes, [
-diff --git a/src/log.c b/src/log.c
-index a693bd0..5b40c1f 100644
 a/src/log.c
-+++ b/src/log.c
-@@ -30,7 +30,6 @@
- #include 
- #include 
- #include 
--#include 
- #include 
- 
- #include "connman.h"
-@@ -215,9 +214,9 @@ static void print_backtrace(unsigned int offset)
- static void signal_handler(int signo)
- {
-   connman_error("Aborting (signal %d) [%s]", signo, program_exec);
--
-+#ifdef HAVE_EXECINFO_H
-   print_backtrace(2);
--
-+#endif /* HAVE_EXECINFO_H */
-   exit(EXIT_FAILURE);
- }
- 
--- 
-2.5.1
-
diff --git 
a/meta/recipes-connectivity/connman/connman/0001-iptables-Add-missing-function-item-of-xtables-to-mat.patch
 
b/meta/recipes-connectivity/connman/connman/0001-iptables-Add-missing-function-item-of-xtables-to-mat.patch
deleted file mode 100644
index 1b5a3e4..000
--- 
a/meta/recipes-connectivity/connman/connman/0001-iptables-Add-missing-function-item-of-xtables-to-mat.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From acea08a0e4234a4c1a87bedc087c73ff36de0c7b Mon Sep 17 00:00:00 2001
-From: Wu Zheng 
-Date: Thu, 28 Jan 2016 18:04:17 +0800
-Subject: [PATCH] iptables: Add missing function item of xtables to match
- iptables 1.6
-
-The struct of xtables_globals has been modified in iptables 1.6.
-If connman runs with iptables 1.6, it can crash.
-
-Program received signal SIGSEGV, Segmentation fault.
-0x in ?? ()
-0xb7dea89c in xtables_find_target () from /usr/lib/libxtables.so.11
-0xb7deac1c in ?? () from /usr/lib/libxtables.so.11
-0xb7dea793 in xtables_find_target () from /usr/lib/libxtables.so.11
-
-The the missing function item of xtables is added to xtables_globals.
-
-Upstream-Status: Backport
-
-Signed-off-by: Maxin B. John 
-Signed-off-by: Wu Zheng 

- src/iptables.c | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/src/iptables.c b/src/iptables.c
-index bc0c763..5ef757a 100644
 a/src/iptables.c
-+++ b/src/iptables.c
-@@ -1566,6 +1566,9 @@ struct xtables_globals iptables_globals = {
-   .option_offset = 0,
-   .opts = iptables_opts,
-   .orig_opts = iptables_opts,
-+#if XTABLES_VERSION_CODE > 10
-+  .compat_rev = xtables_compatible_revision,
-+#endif
- };
- 
- static struct xtables_target *prepare_target(struct connman_iptables *table,
--- 
-2.4.0
-
diff --git a/meta/recipes-connectivity/connman/connman_1.31.bb 
b/meta/recipes-connectivity/connman/connman_1.31.bb
deleted file mode 100644
index e71d221..000
--- a/meta/recipes-connectivity/connman/connman_1.31.bb
+++ /dev/null
@@ -1,15 +0,0 @@
-require connman.inc
-
-SRC_URI  = 

[OE-core] [PATCH 1/3] ofono: update to 1.18

2016-05-12 Thread Maxin B. John
1.17 -> 1.18

Signed-off-by: Maxin B. John 
---
 meta/recipes-connectivity/ofono/{ofono_1.17.bb => ofono_1.18.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-connectivity/ofono/{ofono_1.17.bb => ofono_1.18.bb} (59%)

diff --git a/meta/recipes-connectivity/ofono/ofono_1.17.bb 
b/meta/recipes-connectivity/ofono/ofono_1.18.bb
similarity index 59%
rename from meta/recipes-connectivity/ofono/ofono_1.17.bb
rename to meta/recipes-connectivity/ofono/ofono_1.18.bb
index 947f9d7..79d3dd0 100644
--- a/meta/recipes-connectivity/ofono/ofono_1.17.bb
+++ b/meta/recipes-connectivity/ofono/ofono_1.18.bb
@@ -5,7 +5,7 @@ SRC_URI  = "\
   file://ofono \
   file://Revert-test-Convert-to-Python-3.patch \
 "
-SRC_URI[md5sum] = "d280b1d267ba5bf391d2a898fea7c748"
-SRC_URI[sha256sum] = 
"cbf20f07fd15253c682b23c1786d517f505c3688f7c4ea93da777e1523b89635"
+SRC_URI[md5sum] = "0a6b37c8ace891cb2a7ca5d121043a0a"
+SRC_URI[sha256sum] = 
"53cdbf342913f46bce4827241c60e24255a3d43a94945edf77482ae5b312d51f"
 
 CFLAGS_append_libc-uclibc = " -D_GNU_SOURCE"
-- 
2.4.0

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


Re: [OE-core] [PATCH 16/42] busybox/mdev: Ensure /sys is mounted before using it

2016-05-12 Thread Andreas Oberritter
Dear Khem,

On 11.05.2016 19:35, Khem Raj wrote:
> echo would fail if /sys is not mounted and boot would abort

this sentence still doesn't make sense (hint: /proc).

Regards,
Andreas

> 
> Signed-off-by: Khem Raj 
> ---
>  meta/recipes-core/busybox/files/mdev | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-core/busybox/files/mdev 
> b/meta/recipes-core/busybox/files/mdev
> index 9625247..8c9c06e 100755
> --- a/meta/recipes-core/busybox/files/mdev
> +++ b/meta/recipes-core/busybox/files/mdev
> @@ -1,10 +1,12 @@
>  #!/bin/sh
> -
> +mount -t proc proc /proc
> +mount -t sysfs sysfs /sys
>  mount -t tmpfs tmpfs /dev  -o size=64k,mode=0755
>  mkdir /dev/pts /dev/shm
>  chmod 777 /dev/shm
>  mount -t devpts devpts /dev/pts
>  touch /dev/mdev.seq
> +#sysctl -w kernel.hotplug=/sbin/mdev
>  echo "/sbin/mdev" > /proc/sys/kernel/hotplug
>  mdev -s
>  
> 

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


[OE-core] Samba users are cleared after board reboot

2016-05-12 Thread Zhenhua Luo
Hello all,

I build samba(3.6.8).into rootfs by Yocto 1.4.1 (dylan), the rootfs can boot up 
the board via NFS and samba service can start successfully, then I use 
"smbpasswd -a samba" to create "samba" user, "samba" is a valid user to login 
Linux, "smbclient -L  -U samba" can be executed on host to connect to 
samba server normally.

When the target board reboot, samba service can be launched, but "smbclient -L 
 -U samba" reports the following error. The password storage 
file(/var/volatile/lock/passdb.tdb) is recreated and the users information is 
cleaned.
"session setup failed: NT_STATUS_LOGON_FAILURE"

Does somebody know what's the problem and how to store the samba user/password 
information in rootfs permantly?


Best Regards,

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


[OE-core] [fido][PATCH 1/1] openssl: prevent ABI break from earlier fido releases

2016-05-12 Thread Joshua Lock
The backported upgrade to 1.0.2h included an updated GNU LD
version-script which results in an ABI change. In order to try and
respect ABI for existing binaries built against fido this commit
partially reverts the version-script to maintain the existing ABI
and instead only add the new symbols required by 1.0.2h.

Suggested-by: Martin Jansa 
Signed-off-by: Joshua Lock 
---
 .../openssl/debian1.0.2/version-script.patch   | 31 +++---
 1 file changed, 22 insertions(+), 9 deletions(-)

diff --git 
a/meta/recipes-connectivity/openssl/openssl/debian1.0.2/version-script.patch 
b/meta/recipes-connectivity/openssl/openssl/debian1.0.2/version-script.patch
index 29f11a2..f53efdb 100644
--- a/meta/recipes-connectivity/openssl/openssl/debian1.0.2/version-script.patch
+++ b/meta/recipes-connectivity/openssl/openssl/debian1.0.2/version-script.patch
@@ -15,8 +15,8 @@ Index: 
openssl-1.0.2~beta1.obsolete.0.0498436515490575/openssl.ld
 ===
 --- /dev/null  1970-01-01 00:00:00.0 +
 +++ openssl-1.0.2~beta1.obsolete.0.0498436515490575/openssl.ld 2014-02-24 
22:19:08.601827266 +0100
-@@ -0,0 +1,4608 @@
-+OPENSSL_1.0.2d {
+@@ -0,0 +1,4621 @@
++OPENSSL_1.0.0 {
 +  global:
 +  BIO_f_ssl;
 +  BIO_new_buffer_ssl_connect;
@@ -4314,6 +4314,14 @@ Index: 
openssl-1.0.2~beta1.obsolete.0.0498436515490575/openssl.ld
 +  CRYPTO_cbc128_decrypt;
 +  CRYPTO_cfb128_encrypt;
 +  CRYPTO_cfb128_8_encrypt;
++
++  local:
++  *;
++};
++
++
++OPENSSL_1.0.1 {
++  global:
 +  SSL_renegotiate_abbreviated;
 +  TLSv1_1_method;
 +  TLSv1_1_client_method;
@@ -4475,7 +4483,15 @@ Index: 
openssl-1.0.2~beta1.obsolete.0.0498436515490575/openssl.ld
 +  BIO_s_datagram_sctp;
 +  BIO_dgram_is_sctp;
 +  BIO_dgram_sctp_notification_cb;
++} OPENSSL_1.0.0;
++
++OPENSSL_1.0.1d {
++  global:
 +  CRYPTO_memcmp;
++} OPENSSL_1.0.1;
++
++OPENSSL_1.0.2 {
++  global:
 +  SSL_CTX_set_alpn_protos;
 +  SSL_set_alpn_protos;
 +  SSL_CTX_set_alpn_select_cb;
@@ -4613,23 +4629,20 @@ Index: 
openssl-1.0.2~beta1.obsolete.0.0498436515490575/openssl.ld
 +  BUF_strnlen;
 +  sk_deep_copy;
 +  SSL_test_functions;
-+
-+  local:
-+  *;
-+};
++} OPENSSL_1.0.1d;
 +
 +OPENSSL_1.0.2g {
 +   global:
 +   SRP_VBASE_get1_by_user;
 +   SRP_user_pwd_free;
-+} OPENSSL_1.0.2d;
++} OPENSSL_1.0.2;
 +
 Index: openssl-1.0.2~beta1.obsolete.0.0498436515490575/engines/openssl.ld
 ===
 --- /dev/null  1970-01-01 00:00:00.0 +
 +++ openssl-1.0.2~beta1.obsolete.0.0498436515490575/engines/openssl.ld 
2014-02-24 21:02:30.0 +0100
 @@ -0,0 +1,10 @@
-+OPENSSL_1.0.2 {
++OPENSSL_1.0.0 {
 +  global:
 +  bind_engine;
 +  v_check;
@@ -4644,7 +4657,7 @@ Index: 
openssl-1.0.2~beta1.obsolete.0.0498436515490575/engines/ccgost/openssl.ld
 --- /dev/null  1970-01-01 00:00:00.0 +
 +++ openssl-1.0.2~beta1.obsolete.0.0498436515490575/engines/ccgost/openssl.ld  
2014-02-24 21:02:30.0 +0100
 @@ -0,0 +1,10 @@
-+OPENSSL_1.0.2 {
++OPENSSL_1.0.0 {
 +  global:
 +  bind_engine;
 +  v_check;
-- 
2.5.5

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


[OE-core] [fido][PATCH 0/1] Undo ABI breakage in OpenSSL

2016-05-12 Thread Joshua Lock
The backported upgrade to OpenSSL 1.0.2h introduced a newer version of
Debian's linker version-script which breaks the OpenSSL ABI.
This isn't desirable for a stable release, thus the attached patch reverts
the linker-version changes and simply adds the 2 new symbols required by
1.0.2h.

Thanks to Martin Jansa for spotting the issue and suggesting a fix.

The following changes since commit e7c46ce3e59cb4fd770e76ae006c0166d0dd5265:

  build-appliance-image: Update to fido head revision (2016-05-11 18:00:15 
+0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib joshuagl/fido-next
  
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=joshuagl/fido-next

Joshua Lock (1):
  openssl: prevent ABI break from earlier fido releases

 .../openssl/debian1.0.2/version-script.patch   | 31 +++---
 1 file changed, 22 insertions(+), 9 deletions(-)

-- 
2.5.5

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


Re: [OE-core] [PATCH v2 0/2] Create systemd users at build time

2016-05-12 Thread Puustinen, Ismo
On Wed, 2016-05-11 at 12:04 -0700, Stephano Cetola wrote:
> > I think this is a valuable feature. However, have you considered
> > adding
> > the "m" and "r" options too? I think that at least "m" would be
> > worthwhile to implement, since it's important to be able to add
> > users
> > to different groups for privilege management.
>
> I added "--system" to both useradd and groupadd, and I believe that
> is
> the same as "-r". Please correct me if I am wrong there.
> 
> I do not see how the "-m" option would help with groups. I thought
> that
> simply added a skeleton home directory. Could you give me an example?

I mean that when you parse the sysusers.d configuration file
in create_systemd_sysusers() function, you only parse the lines
starting with 'u' and 'g'. You are skipping 'm' and 'r'. See:

https://www.freedesktop.org/software/systemd/man/sysusers.d.html

What I'm after is a generic mechanism for reading all sysusers.d/
configuration files during image creation and creating the necessary
users and groups during that time. You could also separate mechanism
and policy, meaning that the list of files to parse could come from
outside of the create_systemd_sysusers() function.

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


Re: [OE-core] [PATCH] feature-arm-neon.inc: restore vfpv3-d16 support

2016-05-12 Thread André Draszik
OK. Any suggestions for how to best fix that?

I could be more specific and .replace('vfpv3-d16', 'vfpv3d16') only, but
that seems ugly :-)


Thanks,
André

On Mi, 2016-05-11 at 11:55 -0700, Khem Raj wrote:
> This causes raspberrypi2 not parse anymore
> 
> ERROR:  OE-core's config sanity checker detected a potential
> misconfiguration.
> Either fix the cause of this error or at your own risk disable the
> checker (see sanity.conf).
> Following is the list of potential problems / advisories:
> 
> Error, the PACKAGE_ARCHS variable (all any noarch armv5hf-vfp
> armv5thf-vfp armv5ehf-vfp armv5tehf-vfp armv6hf-vfp a
> rmv6thf-vfp armv7ahf-vfp armv7at2hf-vfp armv7vehf-vfp armv7vet2hf-vfp
> armv7vehf-neon armv7vet2hf-neon armv7vehf-neon-vf
> pv4 armv7vet2hf-neon-vfpv4 cortexa7hf-vfp cortexa7hf-neon cortexa7hf-neon-
> vfpv4 cortexa7t2hf-vfp cortexa7t2hf-neon cort
> exa7t2hf-neon-vfpv4 raspberrypi3) for DEFAULTTUNE (cortexa7thf-neon-vfpv4) 
> does not contain TUNE_PKGARCH (cortexa7hf-ne
> onvfpv4).
> 
> 
> > 
> > On Apr 26, 2016, at 2:27 AM, André Draszik  wrote:
> > 
> > Commit 6661718 (feature-arm-{neon,vfp}.inc: refactor and fix issues)
> > effectively changed the gcc -mfpu= option from -mfpu=vfpv3-d16 to
> > -mfpu=vfpv3d16, which gcc doesn't understand.
> > 
> > Restore the original value.
> > 
> > After doing that, we also need to adjust ARMPKGSFX_FPU which should
> > contain the same value without dash '-' as it is used that way
> > throughout.
> > 
> > Signed-off-by: André Draszik 
> > ---
> > meta/conf/machine/include/arm/feature-arm-neon.inc | 2 +-
> > meta/conf/machine/include/arm/feature-arm-vfp.inc  | 2 +-
> > 2 files changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/meta/conf/machine/include/arm/feature-arm-neon.inc
> > b/meta/conf/machine/include/arm/feature-arm-neon.inc
> > index 50d9175..b34af8e 100644
> > --- a/meta/conf/machine/include/arm/feature-arm-neon.inc
> > +++ b/meta/conf/machine/include/arm/feature-arm-neon.inc
> > @@ -8,7 +8,7 @@ TUNEVALID[neon] = "Enable Neon SIMD accelerator unit."
> > TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'neon', '
> > neon', '', d)}"
> > 
> > TUNEVALID[vfpv3d16] = "Enable Vector Floating Point Version 3 with 16
> > registers (vfpv3-d16) unit."
> > -TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv3d16',
> > ' vfpv3d16', '', d)}"
> > +TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv3d16',
> > ' vfpv3-d16', '', d)}"
> > 
> > TUNEVALID[vfpv3] = "Enable Vector Floating Point Version 3 with 32
> > registers (vfpv3) unit."
> > TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv3', '
> > vfpv3', '' , d)}"
> > diff --git a/meta/conf/machine/include/arm/feature-arm-vfp.inc
> > b/meta/conf/machine/include/arm/feature-arm-vfp.inc
> > index 4247255..bd366a1 100644
> > --- a/meta/conf/machine/include/arm/feature-arm-vfp.inc
> > +++ b/meta/conf/machine/include/arm/feature-arm-vfp.inc
> > @@ -6,7 +6,7 @@ TUNEVALID[vfp] = "Enable Vector Floating Point (vfp)
> > unit."
> > TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfp', '
> > vfp', '', d)}"
> > 
> > TUNE_CCARGS  .= "${@ (' -mfpu=%s ' % d.getVar('TUNE_CCARGS_MFPU',
> > True).split()[-1]) if (d.getVar('TUNE_CCARGS_MFPU', True) != '') else
> > ''}"
> > -ARMPKGSFX_FPU = "${@ ('-%s'% d.getVar('TUNE_CCARGS_MFPU',
> > True).split()[-1]) if (d.getVar('TUNE_CCARGS_MFPU', True) != '') else
> > ''}"
> > +ARMPKGSFX_FPU = "${@ ('-%s'% d.getVar('TUNE_CCARGS_MFPU',
> > True).split()[-1].replace('-', '')) if (d.getVar('TUNE_CCARGS_MFPU',
> > True) != '') else ''}"
> > 
> > TUNEVALID[callconvention-hard] = "Enable EABI hard float call
> > convention, requires VFP."
> > TUNE_CCARGS_MFLOAT = "${@ bb.utils.contains('TUNE_FEATURES',
> > 'callconvention-hard', 'hard', 'softfp', d) if
> > (d.getVar('TUNE_CCARGS_MFPU', True) != '') else '' }"
> > --
> > 2.8.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


[OE-core] [PATCH v4 1/2] kernel: Add KERNEL_IMAGETYPES to build multi types kernel at one time

2016-05-12 Thread zhe.he
From: He Zhe 

Add KERNEL_IMAGETYPES to support building packaging and installing
multi types of kernel images, such as zImage uImage, at one time.

KERNEL_IMAGETYPE and KERNEL_ALT_IMAGETYPE work as before.

Signed-off-by: He Zhe 
---
 meta/classes/kernel-fitimage.bbclass|  20 ++--
 meta/classes/kernel-grub.bbclass|  44 +---
 meta/classes/kernel-uimage.bbclass  |  22 ++--
 meta/classes/kernel.bbclass | 174 +++-
 meta/conf/documentation.conf|   1 +
 meta/recipes-kernel/linux/linux-dtb.inc |  49 +
 6 files changed, 208 insertions(+), 102 deletions(-)

diff --git a/meta/classes/kernel-fitimage.bbclass 
b/meta/classes/kernel-fitimage.bbclass
index 809bd4d..86a8ff8 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -1,8 +1,8 @@
 inherit kernel-uboot uboot-sign
 
 python __anonymous () {
-kerneltype = d.getVar('KERNEL_IMAGETYPE', True)
-if kerneltype == 'fitImage':
+kerneltypes = d.getVar('KERNEL_IMAGETYPES', True) or ""
+if 'fitImage' in kerneltypes.split():
 depends = d.getVar("DEPENDS", True)
 depends = "%s u-boot-mkimage-native dtc-native" % depends
 d.setVar("DEPENDS", depends)
@@ -10,7 +10,9 @@ python __anonymous () {
# Override KERNEL_IMAGETYPE_FOR_MAKE variable, which is internal
# to kernel.bbclass . We have to override it, since we pack zImage
# (at least for now) into the fitImage .
-d.setVar("KERNEL_IMAGETYPE_FOR_MAKE", "zImage")
+typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE", True) or ""
+if 'fitImage' in typeformake.split():
+d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', 
typeformake.replace('fitImage', 'zImage'))
 
 image = d.getVar('INITRAMFS_IMAGE', True)
 if image:
@@ -187,7 +189,7 @@ EOF
 }
 
 do_assemble_fitimage() {
-   if test "x${KERNEL_IMAGETYPE}" = "xfitImage" ; then
+   if echo ${KERNEL_IMAGETYPES} | grep -wq "fitImage"; then
kernelcount=1
dtbcount=""
rm -f fit-image.its arch/${ARCH}/boot/fitImage
@@ -265,14 +267,14 @@ addtask assemble_fitimage before do_install after 
do_compile
 kernel_do_deploy[vardepsexclude] = "DATETIME"
 kernel_do_deploy_append() {
# Update deploy directory
-   if test "x${KERNEL_IMAGETYPE}" = "xfitImage" ; then
+   if echo ${KERNEL_IMAGETYPES} | grep -wq "fitImage"; then
cd ${B}
echo "Copying fit-image.its source file..."
-   
its_base_name="${KERNEL_IMAGETYPE}-its-${PV}-${PR}-${MACHINE}-${DATETIME}"
-   its_symlink_name=${KERNEL_IMAGETYPE}-its-${MACHINE}
+   its_base_name="fitImage-its-${PV}-${PR}-${MACHINE}-${DATETIME}"
+   its_symlink_name=fitImage-its-${MACHINE}
install -m 0644 fit-image.its ${DEPLOYDIR}/${its_base_name}.its
-   
linux_bin_base_name="${KERNEL_IMAGETYPE}-linux.bin-${PV}-${PR}-${MACHINE}-${DATETIME}"
-   linux_bin_symlink_name=${KERNEL_IMAGETYPE}-linux.bin-${MACHINE}
+   
linux_bin_base_name="fitImage-linux.bin-${PV}-${PR}-${MACHINE}-${DATETIME}"
+   linux_bin_symlink_name=fitImage-linux.bin-${MACHINE}
install -m 0644 linux.bin 
${DEPLOYDIR}/${linux_bin_base_name}.bin
 
cd ${DEPLOYDIR}
diff --git a/meta/classes/kernel-grub.bbclass b/meta/classes/kernel-grub.bbclass
index a63f482..f7dcc07 100644
--- a/meta/classes/kernel-grub.bbclass
+++ b/meta/classes/kernel-grub.bbclass
@@ -10,41 +10,44 @@
 #   updates the new kernel as the boot priority.
 #
 
-pkg_preinst_kernel-image_append () {
+python __anonymous () {
+import re
+
+preinst = '''
# Parsing confliction
[ -f "$D/boot/grub/menu.list" ] && grubcfg="$D/boot/grub/menu.list"
[ -f "$D/boot/grub/grub.cfg" ] && grubcfg="$D/boot/grub/grub.cfg"
if [ -n "$grubcfg" ]; then
# Dereference symlink to avoid confliction with new kernel name.
-   if grep -q "/${KERNEL_IMAGETYPE} \+root=" $grubcfg; then
-   if [ -L "$D/boot/${KERNEL_IMAGETYPE}" ]; then
-   kimage=`realpath $D/boot/${KERNEL_IMAGETYPE} 
2>/dev/null`
+   if grep -q "/KERNEL_IMAGETYPE \+root=" $grubcfg; then
+   if [ -L "$D/boot/KERNEL_IMAGETYPE" ]; then
+   kimage=`realpath $D/boot/KERNEL_IMAGETYPE 
2>/dev/null`
if [ -f "$D$kimage" ]; then
-   sed -i "s:${KERNEL_IMAGETYPE} 
\+root=:${kimage##*/} root=:" $grubcfg
+   sed -i "s:KERNEL_IMAGETYPE 
\+root=:${kimage##*/} root=:" $grubcfg
fi
fi
fi
 
# Rename old kernel if it conflicts with new kernel name.
-   

[OE-core] [PATCH v4 2/2] kernel: Make symbol link to vmlinuz in boot directory

2016-05-12 Thread zhe.he
From: He Zhe 

Rename do_kernel_link_vmlinux to do_kernel_link_images and make a
symbol link to vmlinuz(if exists) for reference in arch/$arch/boot
directory.

Signen-off-by: He Zhe 
---
 meta/classes/kernel.bbclass   | 13 -
 meta/conf/documentation.conf  |  2 +-
 meta/recipes-kernel/linux/linux-yocto.inc |  2 +-
 3 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 775c827..28d0936 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -474,15 +474,18 @@ python split_kernel_packages () {
 }
 
 # Many scripts want to look in arch/$arch/boot for the bootable
-# image. This poses a problem for vmlinux based booting. This 
-# task arranges to have vmlinux appear in the normalized directory
-# location.
-do_kernel_link_vmlinux() {
+# image. This poses a problem for vmlinux and vmlinuz based
+# booting. This task arranges to have vmlinux and vmlinuz appear
+# in the normalized directory location.
+do_kernel_link_images() {
if [ ! -d "${B}/arch/${ARCH}/boot" ]; then
mkdir ${B}/arch/${ARCH}/boot
fi
cd ${B}/arch/${ARCH}/boot
ln -sf ../../../vmlinux
+   if [ -f ../../../vmlinuz ]; then
+   ln -sf ../../../vmlinuz
+   fi
 }
 
 do_strip() {
@@ -512,7 +515,7 @@ do_strip() {
 }
 do_strip[dirs] = "${B}"
 
-addtask do_strip before do_sizecheck after do_kernel_link_vmlinux
+addtask do_strip before do_sizecheck after do_kernel_link_images
 
 # Support checking the kernel size since some kernels need to reside in 
partitions
 # with a fixed length or there is a limit in transferring the kernel to memory
diff --git a/meta/conf/documentation.conf b/meta/conf/documentation.conf
index dcc324c..c0025f5 100644
--- a/meta/conf/documentation.conf
+++ b/meta/conf/documentation.conf
@@ -28,7 +28,7 @@ do_install_ptest_base[doc] = "Copies the runtime test suite 
files from the compi
 do_kernel_checkout[doc] = "Checks out source/meta branches for a linux-yocto 
style kernel"
 do_kernel_configcheck[doc] = "Validates the kernel configuration for a 
linux-yocto style kernel"
 do_kernel_configme[doc] = "Assembles the kernel configuration for a 
linux-yocto style kernel"
-do_kernel_link_vmlinux[doc] = "Creates a symbolic link in arch/$arch/boot for 
vmlinux kernel images"
+do_kernel_link_images[doc] = "Creates a symbolic link in arch/$arch/boot for 
vmlinux and vmlinuz kernel images"
 do_listtasks[doc] = "Lists all defined tasks for a target"
 do_menuconfig[doc] = "Runs 'make menuconfig' for the kernel"
 do_package[doc] = "Analyzes the content of the holding area and splits it into 
subsets based on available packages and files"
diff --git a/meta/recipes-kernel/linux/linux-yocto.inc 
b/meta/recipes-kernel/linux/linux-yocto.inc
index 6b161fc..fd68786 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -52,6 +52,6 @@ do_install_append(){
 }
 
 # extra tasks
-addtask kernel_link_vmlinux after do_compile before do_install
+addtask kernel_link_images after do_compile before do_install
 addtask validate_branches before do_patch after do_kernel_checkout
 addtask kernel_configcheck after do_configure before do_compile
-- 
2.8.1

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


[OE-core] [PATCH v4 0/2] Yocto Bug #6945

2016-05-12 Thread zhe.he
From: He Zhe 

This has been reviewed several rounds and no more comments are provided so far.
Here are the brief history. More details can be found in the previous threads.

v1 to v2:
 - Change KERNEL_OUTPUT to KERNEL_OUTPUT_DIR and update comments
 - Update related doc files
 - Replace all KERNEL_ALT_IMAGETYPEs with KERNEL_IMAGETYPES
 - Link built vmlinuz to boot directory for reference

v2 to v3:
 - Merge existing KERNEL_ALT_IMAGETYPE into KERNEL_IMAGETYPES in order that 
users can still use the old variables.
 - Run oe_rummake in a loop for every types so that we can add different 
configurations to them easily in the future.
 - Warn, intead of die, users if one of the types are over the size limit.
 - Remove the replacement of KERNEL_ALT_IMAGETYPE in v2.
 - Remove the doc parts. They will be submitted yocto-docs later.
 - Change some grep usage to make it more clear.
 - Correct a typo.

v3 to v4:
 - Adjust according to the latest code context

The following changes since commit 7ca60ec8bff7656b4e52f5a4d238913e851da089:

  test-empty-image: Fix LIC_FILES_CHKSUM typo (2016-05-06 10:48:06 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib zhe/yocto-bug-6945
  http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/?h=zhe%2Fyocto-bug-6945

for you to fetch changes up to 1f37fe5af2c41d0a4e1aa5543466a48d3ae41ddc:

  kernel: Make symbol link to vmlinuz in boot directory (2016-05-11 04:05:08 
-0400)


He Zhe (2):
  kernel: Add KERNEL_IMAGETYPES to build multi types kernel at one time
  kernel: Make symbol link to vmlinuz in boot directory

 meta/classes/kernel-fitimage.bbclass  |  20 ---
 meta/classes/kernel-grub.bbclass  |  44 
+---
 meta/classes/kernel-uimage.bbclass|  22 
 meta/classes/kernel.bbclass   | 187 
---
 meta/conf/documentation.conf  |   3 ++-
 meta/recipes-kernel/linux/linux-dtb.inc   |  49 
++--
 meta/recipes-kernel/linux/linux-yocto.inc |   2 +-
 7 files changed, 218 insertions(+), 109 deletions(-)

-- 
2.8.1

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


Re: [OE-core] [PATCH 3/3] package_manager.py: Add extract() method for RPM package manager

2016-05-12 Thread Joshua G Lock
On Wed, 2016-05-11 at 12:31 +, mariano.lo...@linux.intel.com wrote:
> From: Mariano Lopez 
> 
> This new method extract the content of RPM file to a tmpdir,
> without actually installing the package.
> 
> [YOCTO #9569]
> 
> Signed-off-by: Mariano Lopez 
> ---
>  meta/lib/oe/package_manager.py | 80
> ++
>  1 file changed, 80 insertions(+)
> 
> diff --git a/meta/lib/oe/package_manager.py
> b/meta/lib/oe/package_manager.py
> index 0830da9..d95564a 100644
> --- a/meta/lib/oe/package_manager.py
> +++ b/meta/lib/oe/package_manager.py
> @@ -1404,6 +1404,86 @@ class RpmPM(PackageManager):
>  for f in rpm_db_locks:
>  bb.utils.remove(f, True)
>  
> +"""
> +Returns a dictionary with the package info.
> +"""
> +def package_info(self, pkg):
> +cmd = "%s %s info --urls %s" % (self.smart_cmd,
> self.smart_opt, pkg)
> +try:
> +output = subprocess.check_output(cmd,
> stderr=subprocess.STDOUT, shell=True)
> +except subprocess.CalledProcessError as e:
> +bb.fatal("Unable to list available packages. Command
> '%s' "
> + "returned %d:\n%s" % (cmd, e.returncode,
> e.output))
> +
> +#Parse output
> +for line in output.splitlines():
> +line = line.rstrip()
> +if line.startswith("Name:"):
> +pkg = line.split(": ")[1]
> +elif line.startswith("Version:"):
> +tmp_str = line.split(": ")[1]
> +ver, arch = tmp_str.split("@")
> +break

Could pkg, ver and arch be potentially undefined here?

> +
> +# Get filename
> +index = re.search("^URLs", output, re.MULTILINE)
> +tmp_str = output[index.end():]
> +for line in tmp_str.splitlines():
> +if "/" in line:
> +line = line.lstrip()
> +filename = line.split(" ")[0]
> +break
> +
> +# To have the same data type than other package_info methods
> +pkg_dict = {}
> +pkg_dict[pkg] = {"arch":arch, "ver":ver,
> "filename":filename}
> +
> +return pkg_dict
> +
> +"""
> +Returns the path to a tmpdir where resides the contents of a
> package.
> +
> +Deleting the tmpdir is responsability of the caller.
> +
> +"""
> +def extract(self, pkg):
> +pkg_info = self.package_info(pkg)
> +if not pkg_info:
> +bb.fatal("Unable to get information for package '%s'
> while "
> + "trying to extract the package."  % pkg)
> +
> +pkg_arch = pkg_info[pkg]["arch"]
> +pkg_filename = pkg_info[pkg]["filename"]
> +pkg_path = os.path.join(self.deploy_dir, pkg_arch,
> pkg_filename)
> +
> +cpio_cmd = bb.utils.which(os.getenv("PATH"), "cpio")
> +rpm2cpio_cmd = bb.utils.which(os.getenv("PATH"), "rpm2cpio")
> +
> +if not os.path.isfile(pkg_path):
> +bb.fatal("Unable to extract package for '%s'."
> + "File %s doesn't exists" % (pkg, pkg_path))
> +
> +tmp_dir = tempfile.mkdtemp()
> +current_dir = os.getcwd()
> +os.chdir(tmp_dir)
> +
> +try:
> +cmd = "%s %s | %s -idmv" % (rpm2cpio_cmd, pkg_path,
> cpio_cmd)
> +output = subprocess.check_output(cmd,
> stderr=subprocess.STDOUT, shell=True)
> +except subprocess.CalledProcessError as e:
> +bb.utils.remove(tmp_dir, recurse=True)
> +bb.fatal("Unable to extract %s package. Command '%s' "
> + "returned %d:\n%s" % (pkg_path, cmd,
> e.returncode, e.output))
> +except OSError as e:
> +bb.utils.remove(tmp_dir, recurse=True)
> +bb.fatal("Unable to extract %s package. Command '%s' "
> + "returned %d:\n%s at %s" % (pkg_path, cmd,
> e.errno, e.strerror, e.filename))
> +
> +bb.note("Extracted %s to %s" % (pkg_path, tmp_dir))
> +os.chdir(current_dir)
> +
> +return tmp_dir
> +
>  
>  class OpkgDpkgPM(PackageManager):
>  """
> -- 
> 2.6.6
> 
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 1/3] package_manager.py: Move opkg_query() outside of Indexer class

2016-05-12 Thread Joshua G Lock
On Wed, 2016-05-11 at 12:31 +, mariano.lo...@linux.intel.com wrote:
> From: Mariano Lopez 
> 
> When using the opkg and apt-get package managers the function
> opkg_query() can be useful when query for package information.
> 
> This change moves the function outside the Indexer class so
> the Indexer, OpkgPM, DpkgPM can benefit from it.
> 
> [YOCTO #9569]
> 
> Signed-off-by: Mariano Lopez 
> ---
>  meta/lib/oe/package_manager.py | 104 ---
> --
>  1 file changed, 51 insertions(+), 53 deletions(-)
> 
> diff --git a/meta/lib/oe/package_manager.py
> b/meta/lib/oe/package_manager.py
> index b4b359a..427518d 100644
> --- a/meta/lib/oe/package_manager.py
> +++ b/meta/lib/oe/package_manager.py
> @@ -27,6 +27,55 @@ def create_index(arg):
>  
>  return None
>  
> +"""
> +This method parse the output from the package managerand return
> +a dictionary with the information of the packages. This is used
> +when the packages are in deb or ipk format.
> +"""
> +def opkg_query(cmd_output):
> +verregex = re.compile(' \([=<>]* [^ )]*\)')
> +output = dict()
> +filename = ""
> +dep = []
> +pkg = ""

Here we assign a default value for dep, pkg and filename but not arch
and ver. 

I feel it's safest we assign defaults for all of the variables that are
otherwise only created if a matching line is found, otherwise we might
run into unexpected UnboundLocalError's which cause nasty crashes.

> +for line in cmd_output.splitlines():
> +line = line.rstrip()
> +if ':' in line:
> +if line.startswith("Package: "):
> +pkg = line.split(": ")[1]
> +elif line.startswith("Architecture: "):
> +arch = line.split(": ")[1]
> +elif line.startswith("Version: "):
> +ver = line.split(": ")[1]
> +elif line.startswith("File: "):
> +filename = line.split(": ")[1]
> +elif line.startswith("Depends: "):
> +depends = verregex.sub('', line.split(": ")[1])
> +for depend in depends.split(", "):
> +dep.append(depend)
> +elif line.startswith("Recommends: "):
> +recommends = verregex.sub('', line.split(": ")[1])
> +for recommend in recommends.split(", "):
> +dep.append("%s [REC]" % recommend)
> +else:
> +# IPK doesn't include the filename
> +if not filename:
> +filename = "%s_%s_%s.ipk" % (pkg, ver, arch)
> +if pkg:
> +output[pkg] = {"arch":arch, "ver":ver,
> +"filename":filename, "deps": dep }
> +pkg = ""
> +filename = ""
> +dep = []
> +
> +if pkg:
> +if not filename:
> +filename = "%s_%s_%s.ipk" % (pkg, ver, arch)
> +output[pkg] = {"arch":arch, "ver":ver,
> +"filename":filename, "deps": dep }
> +
> +return output
> +
>  
>  class Indexer(object):
>  __metaclass__ = ABCMeta
> @@ -293,57 +342,6 @@ class PkgsList(object):
>  pass
>  
>  
> -"""
> -This method parse the output from the package manager
> -and return a dictionary with the information of the
> -installed packages. This is used whne the packages are
> -in deb or ipk format
> -"""
> -def opkg_query(self, cmd_output):
> -verregex = re.compile(' \([=<>]* [^ )]*\)')
> -output = dict()
> -filename = ""
> -dep = []
> -pkg = ""
> -for line in cmd_output.splitlines():
> -line = line.rstrip()
> -if ':' in line:
> -if line.startswith("Package: "):
> -pkg = line.split(": ")[1]
> -elif line.startswith("Architecture: "):
> -arch = line.split(": ")[1]
> -elif line.startswith("Version: "):
> -ver = line.split(": ")[1]
> -elif line.startswith("File: "):
> -filename = line.split(": ")[1]
> -elif line.startswith("Depends: "):
> -depends = verregex.sub('', line.split(": ")[1])
> -for depend in depends.split(", "):
> -dep.append(depend)
> -elif line.startswith("Recommends: "):
> -recommends = verregex.sub('', line.split(":
> ")[1])
> -for recommend in recommends.split(", "):
> -dep.append("%s [REC]" % recommend)
> -else:
> -# IPK doesn't include the filename
> -if not filename:
> -filename = "%s_%s_%s.ipk" % (pkg, ver, arch)
> -if pkg:
> -output[pkg] = {"arch":arch, "ver":ver,
> -"filename":filename, "deps": dep }
> - 

Re: [OE-core] [PATCH 2/3] package_manager.py: Add extract() method for opkg and dpkg

2016-05-12 Thread Joshua G Lock
On Wed, 2016-05-11 at 12:31 +, mariano.lo...@linux.intel.com wrote:
> From: Mariano Lopez 
> 
> Sometimes it is needed to have the content of a package outside
> the recipe context.  This new method extract the content of an
> IPK/DEB file to a tmpdir, without actually installing the package.
> 
> A new OpkgDpkgPM class was added to share the code for opkg and dpkg.
> 
> There were need some changes to opkg_query() in order to use it
> with apt-cache output.
> 
> [YOCTO #9569]
> 
> Signed-off-by: Mariano Lopez 
> ---
>  meta/lib/oe/package_manager.py | 134
> +++--
>  1 file changed, 129 insertions(+), 5 deletions(-)
> 
> diff --git a/meta/lib/oe/package_manager.py
> b/meta/lib/oe/package_manager.py
> index 427518d..0830da9 100644
> --- a/meta/lib/oe/package_manager.py
> +++ b/meta/lib/oe/package_manager.py
> @@ -38,6 +38,7 @@ def opkg_query(cmd_output):
>  filename = ""
>  dep = []
>  pkg = ""
> +pkgarch = ""

Hard to tell from the context here but it looks like arch and ver don't
have default values? Potential UnboundLocalError?

>  for line in cmd_output.splitlines():
>  line = line.rstrip()
>  if ':' in line:
> @@ -47,8 +48,10 @@ def opkg_query(cmd_output):
>  arch = line.split(": ")[1]
>  elif line.startswith("Version: "):
>  ver = line.split(": ")[1]
> -elif line.startswith("File: "):
> +elif line.startswith("File: ") or
> line.startswith("Filename:"):
>  filename = line.split(": ")[1]
> +if "/" in filename:
> +filename = os.path.basename(filename)
>  elif line.startswith("Depends: "):
>  depends = verregex.sub('', line.split(": ")[1])
>  for depend in depends.split(", "):
> @@ -57,15 +60,20 @@ def opkg_query(cmd_output):
>  recommends = verregex.sub('', line.split(": ")[1])
>  for recommend in recommends.split(", "):
>  dep.append("%s [REC]" % recommend)
> -else:
> +elif line.startswith("PackageArch: "):
> +pkgarch = line.split(": ")[1]
> +
> +# When there is a blank line save the package information
> +elif not line:
>  # IPK doesn't include the filename
>  if not filename:
>  filename = "%s_%s_%s.ipk" % (pkg, ver, arch)
>  if pkg:
>  output[pkg] = {"arch":arch, "ver":ver,
> -"filename":filename, "deps": dep }
> +"filename":filename, "deps": dep,
> "pkgarch":pkgarch }
>  pkg = ""
>  filename = ""
> +pkgarch = ""
>  dep = []
>  
>  if pkg:
> @@ -1397,7 +1405,70 @@ class RpmPM(PackageManager):
>  bb.utils.remove(f, True)
>  
>  
> -class OpkgPM(PackageManager):
> +class OpkgDpkgPM(PackageManager):
> +"""
> +This is an abstract class. Do not instantiate this directly.
> +"""
> +def __init__(self, d):
> +super(OpkgDpkgPM, self).__init__(d)
> +
> +"""
> +Returns a dictionary with the package info.
> +
> +This method extracts the common parts for Opkg and Dpkg
> +"""
> +def package_info(self, pkg, cmd):
> +
> +try:
> +output = subprocess.check_output(cmd,
> stderr=subprocess.STDOUT, shell=True)
> +except subprocess.CalledProcessError as e:
> +bb.fatal("Unable to list available packages. Command
> '%s' "
> + "returned %d:\n%s" % (cmd, e.returncode,
> e.output))
> +return opkg_query(output)
> +
> +"""
> +Returns the path to a tmpdir where resides the contents of a
> package.
> +
> +Deleting the tmpdir is responsability of the caller.
> +
> +This method extracts the common parts for Opkg and Dpkg
> +"""
> +def extract(self, pkg, pkg_path):
> +
> +ar_cmd = bb.utils.which(os.getenv("PATH"), "ar")
> +tar_cmd = bb.utils.which(os.getenv("PATH"), "tar")
> +
> +if not os.path.isfile(pkg_path):
> +bb.fatal("Unable to extract package for '%s'."
> + "File %s doesn't exists" % (pkg, pkg_path))
> +
> +tmp_dir = tempfile.mkdtemp()
> +current_dir = os.getcwd()
> +os.chdir(tmp_dir)
> +
> +try:
> +cmd = "%s x %s" % (ar_cmd, pkg_path)
> +output = subprocess.check_output(cmd,
> stderr=subprocess.STDOUT, shell=True)
> +cmd = "%s xf data.tar.*" % tar_cmd
> +output = subprocess.check_output(cmd,
> stderr=subprocess.STDOUT, shell=True)
> +except subprocess.CalledProcessError as e:
> +bb.utils.remove(tmp_dir, recurse=True)
> +bb.fatal("Unable to extract %s package. Command '%s' "
> + "returned %d:\n%s" % (pkg_path, cmd,
> e.returncode, 

Re: [OE-core] [PATCH 00/42] GCC/GDB/Binutils Upgrades

2016-05-12 Thread Ioan-Adrian Ratiu
Hello

Can the gcc 6 fixes be pulled into the krogoth branch as well?

On Wed, 11 May 2016 10:35:25 -0700
Khem Raj  wrote:

> This patchset covers gcc 6 upgrade along with gdb 7.11
> and glibc 2.24 ( upcoming ) release.
> 
> Rest of upgrades are necessaciated by gcc-6 due to backports
> that were already in newer versions of packages
> 
> It has been boot tested with core-image-minimal on all qemu
> machines
> 
> The following changes since commit a5970809a2f01dbd152684266e2a3d946d896620:
> 
>   oeqa/lic-checksum: Update after recent LIC_FILES_CHKSUM changes (2016-05-11 
> 10:33:16 +0100)
> 
> are available in the git repository at:
> 
>   git://git.openembedded.org/openembedded-core-contrib kraj/gcc-6
>   
> http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/gcc-6
> 
> Dan McGregor (2):
>   pkgconfig: Fix build with gcc-6 and upgrade to 0.29.1
>   binutils: disable werror on native build
> 
> Khem Raj (39):
>   gcc: Add gcc6 recipes
>   glibc: Add recipes for 2.24 release
>   glib-2.0: Ignore useless warning found with gcc-6
>   elfutils: Upgrade to 0.166
>   rpm: Fix build with gcc6
>   alsa-tools: Fix build with gcc6
>   lzop: Fix build with gcc-6
>   webkitgtk: Upgrade to 2.12.1
>   oprofile: Fix with gcc6
>   mdadm: Fix gcc 6 warnings
>   nss: Upgrade to 3.23
>   grub: Fix build with gcc-6
>   valgrind: Fix build with gcc6
>   busybox/mdev: Ensure /sys is mounted before using it
>   libc-common.bbclass: Use sed instead of grep
>   conf: bump minimum kernel to 3.2.0
>   systemd: Create missing sysusers offline
>   grub_git: Upgrade to latest tip
>   libunwind: Upgrade to 1.2rc1+
>   linux-yocto: Fix build on ppc with gcc-6
>   linux-yocto: Fix build with gcc6 on mips
>   python-native: Point to expat in native sysroot
>   bitbake.conf: Empty out BUILDSDK_CPPFLAGS
>   strace: Remove pipe.expected
>   musl: Upgrade to tip of tree
>   libgcc: Ensure that gcc configure options are passed to libgcc too
>   libunwind: Upgrade to 1.2rc1+
>   libgcc: Ensure that gcc configure options are passed to libgcc too
>   gdb,strace: Fix builds on ppc/musl
>   libunwind: Add a confgure option for tests
>   gdb: Upgrade to 7.11
>   gdb: Disable binutils components
>   tcmode-default: Bump gcc,glibc,gdb
>   musl: Create symlinks for stub libraries
>   mdadm: Fix build with clang
>   distcc: Upgrade to 3.2
>   ruby: Upgrade to 2.2.5
>   mpfr: Upgrade to 3.1.4
>   gcc-runtime,libgcc: Symlink c++ header and startup files in
> target_triplet for SDK use
> 
> Marek Vasut (1):
>   bitbake: Oldest kernel for nios2 is 3.19
> 
>  meta/classes/cross-canadian.bbclass|1 +
>  meta/classes/libc-common.bbclass   |6 +-
>  meta/classes/populate_sdk_base.bbclass |2 +-
>  meta/conf/bitbake.conf |7 +-
>  meta/conf/distro/include/tcmode-default.inc|6 +-
>  ...ettext-gettext.c-main_context-secondary_c.patch |   39 +
>  meta/recipes-bsp/grub/grub2.inc|1 +
>  meta/recipes-bsp/grub/grub_git.bb  |2 +-
>  meta/recipes-core/busybox/files/mdev   |4 +-
>  .../0001-Do-not-ignore-return-value-of-write.patch |   42 +
>  .../glib-2.0/0002-tests-Ignore-y2k-warnings.patch  |   42 +
>  .../ignore-format-nonliteral-warning.patch |   39 +
>  meta/recipes-core/glib-2.0/glib-2.0_2.46.2.bb  |7 +-
>  .../fix_for_centos_5.8.patch   |   18 -
>  ...tive_2.23.bb => cross-localedef-native_2.24.bb} |   26 +-
>  ...glibc-initial_2.23.bb => glibc-initial_2.24.bb} |0
>  .../{glibc-locale_2.23.bb => glibc-locale_2.24.bb} |0
>  .../{glibc-mtrace_2.23.bb => glibc-mtrace_2.24.bb} |0
>  ...glibc-scripts_2.23.bb => glibc-scripts_2.24.bb} |0
>  ...libc-Look-for-host-system-ld.so.cache-as-.patch |8 +-
>  ...libc-Fix-buffer-overrun-with-a-relocated-.patch |8 +-
>  ...libc-Raise-the-size-of-arrays-containing-.patch |   34 +-
>  ...ivesdk-glibc-Allow-64-bit-atomics-for-x86.patch |   10 +-
>  ...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 |8 +-
>  ...n-libm-err-tab.pl-with-specific-dirs-in-S.patch |   10 +-
>  ...qrt-f-are-now-inline-functions-and-call-o.patch |6 +-
>  ...ersion-output-matching-grok-gold-s-output.patch |   14 +-
>  ...-configure.ac-handle-correctly-libc_cv_ro.patch |6 +-
>  .../glibc/glibc/0014-Add-unused-attribute.patch|8 +-
>  ...thin-the-path-sets-wrong-config-variables.patch |   10 +-
>  ...-timezone-re-written-tzselect-as-posix-sh.patch |   16 +-
>  ...move-bash-dependency-for-nscd-init-script.patch |8 +-
>  ...c-Cross-building-and-testing-instructions.patch |6 +-
>  

[OE-core] [PATCHv2 02/16] u-boot-fw-utils: Use SYSROOT_DIRS to add dirs to stage in sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb 
b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
index dfda5c1..79f1548 100644
--- a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
@@ -40,10 +40,7 @@ do_install_class-cross () {
install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv
 }
 
-SYSROOT_PREPROCESS_FUNCS_class-cross = "uboot_fw_utils_cross"
-uboot_fw_utils_cross() {
-   sysroot_stage_dir ${D}${bindir_cross} ${SYSROOT_DESTDIR}${bindir_cross}
-}
+SYSROOT_DIRS_append_class-cross = " ${bindir_cross}"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 BBCLASSEXTEND = "cross"
-- 
2.1.0

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


[OE-core] [PATCHv2 03/16] libtool-cross: Use SYSROOT_DIRS to add dirs to stage in sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb | 7 +--
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb 
b/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb
index 0204d34..b268310 100644
--- a/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb
+++ b/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb
@@ -35,11 +35,6 @@ do_install () {
install -c -m 0644 ${S}/m4/*.m4 ${D}${target_datadir}/aclocal/
 }
 
-SYSROOT_PREPROCESS_FUNCS += "libtoolcross_sysroot_preprocess"
-
-libtoolcross_sysroot_preprocess () {
-   sysroot_stage_dir ${D}${bindir_crossscripts} 
${SYSROOT_DESTDIR}${bindir_crossscripts}
-   sysroot_stage_dir ${D}${target_datadir} 
${SYSROOT_DESTDIR}${target_datadir}
-}
+SYSROOT_DIRS += "${bindir_crossscripts} ${target_datadir}"
 
 SSTATE_SCAN_FILES += "libtoolize *-libtool"
-- 
2.1.0

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


[OE-core] [PATCHv2 14/16] gcc-target.inc: Use SYSROOT_DIRS_BLACKLIST to exclude dirs from sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-devtools/gcc/gcc-target.inc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-target.inc 
b/meta/recipes-devtools/gcc/gcc-target.inc
index b8dabe5..a960ed4 100644
--- a/meta/recipes-devtools/gcc/gcc-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-target.inc
@@ -205,6 +205,4 @@ do_install_append () {
 # and builds track file dependencies (e.g. perl and its makedepends code).
 # For determinism we don't install this ever and rely on the copy from 
gcc-cross.
 # [YOCTO #7287]
-sysroot_stage_dirs_append () {
-   rm -rf $to${libdir}/gcc
-}
+SYSROOT_DIRS_BLACKLIST += "${libdir}/gcc"
-- 
2.1.0

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


[OE-core] [PATCHv2 08/16] base-files: Use SYSROOT_DIRS to add dirs to stage in sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-core/base-files/base-files_3.0.14.bb | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb 
b/meta/recipes-core/base-files/base-files_3.0.14.bb
index d391707..5333110 100644
--- a/meta/recipes-core/base-files/base-files_3.0.14.bb
+++ b/meta/recipes-core/base-files/base-files_3.0.14.bb
@@ -165,9 +165,7 @@ do_install_append_linuxstdbase() {
 done
 }
 
-sysroot_stage_all_append () {
-   sysroot_stage_dir ${D}${sysconfdir}/skel 
${SYSROOT_DESTDIR}${sysconfdir}/skel
-}
+SYSROOT_DIRS += "${sysconfdir}/skel"
 
 PACKAGES = "${PN}-doc ${PN} ${PN}-dev ${PN}-dbg"
 FILES_${PN} = "/"
@@ -177,4 +175,3 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 CONFFILES_${PN} = "${sysconfdir}/fstab ${@['', 
'${sysconfdir}/hostname'][(d.getVar('hostname', True) != '')]} 
${sysconfdir}/shells"
 CONFFILES_${PN} += "${sysconfdir}/motd ${sysconfdir}/nsswitch.conf 
${sysconfdir}/profile"
-
-- 
2.1.0

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


[OE-core] [PATCHv2 16/16] font-util: Remove ${datadir}/fonts from SYSROOT_DIRS_BLACKLIST

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-graphics/xorg-font/font-util_1.3.1.bb | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/meta/recipes-graphics/xorg-font/font-util_1.3.1.bb 
b/meta/recipes-graphics/xorg-font/font-util_1.3.1.bb
index 2285124..34646ff 100644
--- a/meta/recipes-graphics/xorg-font/font-util_1.3.1.bb
+++ b/meta/recipes-graphics/xorg-font/font-util_1.3.1.bb
@@ -19,7 +19,4 @@ BBCLASSEXTEND = "native"
 SRC_URI[md5sum] = "23756dab809f9ec5011bb27fb2c3c7d6"
 SRC_URI[sha256sum] = 
"aa7ebdb0715106dd255082f2310dbaa2cd7e225957c2a77d719720c7cc92b921"
 
-SYSROOT_PREPROCESS_FUNCS += "fontutil_sysroot_preprocess"
-fontutil_sysroot_preprocess () {
-   sysroot_stage_dir ${D}${datadir}/fonts/ 
${SYSROOT_DESTDIR}${datadir}/fonts/
-}
+SYSROOT_DIRS_BLACKLIST_remove = "${datadir}/fonts"
-- 
2.1.0

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


[OE-core] [PATCHv2 11/16] gobject-introspection: Use SYSROOT_DIRS to add dirs to stage in sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 .../gobject-introspection/gobject-introspection_1.46.0.bb| 9 -
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git 
a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.46.0.bb 
b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.46.0.bb
index 47102ca..861af5f 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.46.0.bb
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.46.0.bb
@@ -151,13 +151,12 @@ FILES_${PN}-staticdev += 
"${libdir}/gobject-introspection/giscanner/*.a"
 
 # we need target versions of introspection tools in sysroot so that they can 
be run via qemu
 # when building introspection files in other packages
-SYSROOT_PREPROCESS_FUNCS_append_class-target += 
"gi_binaries_sysroot_preprocess"
+SYSROOT_DIRS_append_class-target = " ${bindir}"
 
+SYSROOT_PREPROCESS_FUNCS_append_class-target = " 
gi_binaries_sysroot_preprocess"
 gi_binaries_sysroot_preprocess() {
-sysroot_stage_dir ${D}${bindir} ${SYSROOT_DESTDIR}${bindir}
-
-# Also, tweak the binary names in introspection pkgconfig file, so 
that it picks up our 
-# wrappers which do the cross-compile and qemu magic.
+# Tweak the binary names in the introspection pkgconfig file, so that 
it
+# picks up our wrappers which do the cross-compile and qemu magic.
 sed -i \
-e "s|g_ir_scanner=.*|g_ir_scanner=${bindir}/g-ir-scanner-wrapper|" 
\
-e 
"s|g_ir_compiler=.*|g_ir_compiler=${bindir}/g-ir-compiler-wrapper|" \
-- 
2.1.0

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


[OE-core] [PATCHv2 00/16] Simplify how to stage directories in the sysroot

2016-05-12 Thread Peter Kjellerstedt
The first commit in this set makes it possible to specify the
directories that will be staged in the sysroot via variables rather
than hardcoding it in sysroot_stage_dirs(). This should make it a lot
easier to add/remove directories to stage.

The rest of the commits just change recipes to take advantage of the
new variables.

Because of the following if statement in sysroot_stage_dirs():

if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then

I have split the list of directories into SYSROOT_DIRS and
SYSROOT_DIRS_NATIVE, where the latter is included if that if statement
is true. I am not sure when that statement is true (my understanding
is that it should be true for native builds, but I am not sure if it
is also true for other builds like cross, nativesdk, etc). If it is
only true for native builds then that if statement could be removed,
and the SYSROOT_DIRS_NATIVE variable could be replaced by
SYSROOT_DIRS_append_class-native...

PATCHv2: Removed the if statement mentioned above and replaced it with
normal _append operations on SYSROOT_DIRS instead.

//Peter

The following changes since commit 28433319ad8299aa23b1fcfdddbe100b29e86517:

  bitbake: toaster: tests browser Add test for creating a project (2016-05-11 
11:32:58 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib pkj/sysroot_dirs
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/sysroot_dirs

Peter Kjellerstedt (16):
  staging.bbclass: Make it easier to define which dirs to stage
  u-boot-fw-utils: Use SYSROOT_DIRS to add dirs to stage in sysroot
  libtool-cross: Use SYSROOT_DIRS to add dirs to stage in sysroot
  qemuwrapper-cross: Use SYSROOT_DIRS to add dirs to stage in sysroot
  tcl: Use SYSROOT_DIRS to add dirs to stage in sysroot
  shadow-sysroot: Use SYSROOT_DIRS to add dirs to stage in sysroot
  depmodwrapper-cross: Use SYSROOT_DIRS to add dirs to stage in sysroot
  base-files: Use SYSROOT_DIRS to add dirs to stage in sysroot
  signing-keys: Use SYSROOT_DIRS to add dirs to stage in sysroot
  vala.inc: Use SYSROOT_DIRS to add dirs to stage in sysroot
  gobject-introspection: Use SYSROOT_DIRS to add dirs to stage in
sysroot
  grub2.inc: Use SYSROOT_DIRS_BLACKLIST to exclude dirs from the sysroot
  gettext: Use SYSROOT_DIRS_BLACKLIST to exclude dirs from the sysroot
  gcc-target.inc: Use SYSROOT_DIRS_BLACKLIST to exclude dirs from
sysroot
  libtool: Use SYSROOT_DIRS_BLACKLIST to exclude dirs from the sysroot
  font-util: Remove ${datadir}/fonts from SYSROOT_DIRS_BLACKLIST

 meta/classes/staging.bbclass   | 75 --
 meta/recipes-bsp/grub/grub2.inc|  5 +-
 meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb |  5 +-
 meta/recipes-core/base-files/base-files_3.0.14.bb  |  5 +-
 meta/recipes-core/gettext/gettext_0.16.1.bb|  7 +-
 meta/recipes-core/meta/signing-keys.bb |  6 +-
 meta/recipes-devtools/gcc/gcc-target.inc   |  4 +-
 .../libtool/libtool-cross_2.4.6.bb |  7 +-
 meta/recipes-devtools/libtool/libtool_2.4.6.bb | 13 ++--
 .../recipes-devtools/qemu/qemuwrapper-cross_1.0.bb |  6 +-
 meta/recipes-devtools/tcltk/tcl_8.6.4.bb   |  5 +-
 meta/recipes-devtools/vala/vala.inc| 13 ++--
 .../shadow/shadow-sysroot_4.2.1.bb |  6 +-
 .../gobject-introspection_1.46.0.bb|  9 ++-
 meta/recipes-graphics/xorg-font/font-util_1.3.1.bb |  5 +-
 .../recipes-kernel/kmod/depmodwrapper-cross_1.0.bb |  6 +-
 16 files changed, 71 insertions(+), 106 deletions(-)

-- 
2.1.0

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


[OE-core] [PATCHv2 01/16] staging.bbclass: Make it easier to define which dirs to stage

2016-05-12 Thread Peter Kjellerstedt
The directories that should be staged in the sysroot are now specified
in the SYSROOT_DIRS variable. Extra directories that should be staged
for native are specified in SYSROOT_DIRS_NATIVE. Finally, directories
that should not be staged are specified in SYSROOT_DIRS_BLACKLIST.

This also removes the sysroot_stage_libdir() function as it is no
longer used (it was just a wrapper for sysroot_stage_dir()).

Signed-off-by: Peter Kjellerstedt 
---
 meta/classes/staging.bbclass | 75 +---
 1 file changed, 42 insertions(+), 33 deletions(-)

diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index bc5dfa8..a0f82be 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -1,3 +1,37 @@
+# These directories will be staged in the sysroot
+SYSROOT_DIRS = " \
+${includedir} \
+${libdir} \
+${base_libdir} \
+${nonarch_base_libdir} \
+${datadir} \
+"
+
+# These directories are also staged in the sysroot when they contain files that
+# are usable on the build system
+SYSROOT_DIRS_NATIVE = " \
+${bindir} \
+${sbindir} \
+${base_bindir} \
+${base_sbindir} \
+${libexecdir} \
+${sysconfdir} \
+${localstatedir} \
+"
+SYSROOT_DIRS_append_class-native = " ${SYSROOT_DIRS_NATIVE}"
+SYSROOT_DIRS_append_class-cross = " ${SYSROOT_DIRS_NATIVE}"
+SYSROOT_DIRS_append_class-crosssdk = " ${SYSROOT_DIRS_NATIVE}"
+
+# These directories will not be staged in the sysroot
+SYSROOT_DIRS_BLACKLIST = " \
+${mandir} \
+${docdir} \
+${infodir} \
+${datadir}/locale \
+${datadir}/applications \
+${datadir}/fonts \
+${datadir}/pixmaps \
+"
 
 sysroot_stage_dir() {
src="$1"
@@ -14,43 +48,18 @@ sysroot_stage_dir() {
)
 }
 
-sysroot_stage_libdir() {
-   src="$1"
-   dest="$2"
-
-   sysroot_stage_dir $src $dest
-}
-
 sysroot_stage_dirs() {
from="$1"
to="$2"
 
-   sysroot_stage_dir $from${includedir} $to${includedir}
-   if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then
-   sysroot_stage_dir $from${bindir} $to${bindir}
-   sysroot_stage_dir $from${sbindir} $to${sbindir}
-   sysroot_stage_dir $from${base_bindir} $to${base_bindir}
-   sysroot_stage_dir $from${base_sbindir} $to${base_sbindir}
-   sysroot_stage_dir $from${libexecdir} $to${libexecdir}
-   sysroot_stage_dir $from${sysconfdir} $to${sysconfdir}
-   sysroot_stage_dir $from${localstatedir} $to${localstatedir}
-   fi
-   if [ -d $from${libdir} ]
-   then
-   sysroot_stage_libdir $from${libdir} $to${libdir}
-   fi
-   if [ -d $from${base_libdir} ]
-   then
-   sysroot_stage_libdir $from${base_libdir} $to${base_libdir}
-   fi
-   if [ -d $from${nonarch_base_libdir} ]
-   then
-   sysroot_stage_libdir $from${nonarch_base_libdir} 
$to${nonarch_base_libdir}
-   fi
-   sysroot_stage_dir $from${datadir} $to${datadir}
-   # We don't care about docs/info/manpages/locales
-   rm -rf $to${mandir}/ $to${docdir}/ $to${infodir}/ 
${to}${datadir}/locale/
-   rm -rf $to${datadir}/applications/ $to${datadir}/fonts/ 
$to${datadir}/pixmaps/
+   for dir in ${SYSROOT_DIRS}; do
+   sysroot_stage_dir "$from$dir" "$to$dir"
+   done
+
+   # Remove directories we do not care about
+   for dir in ${SYSROOT_DIRS_BLACKLIST}; do
+   rm -rf "$to$dir"
+   done
 }
 
 sysroot_stage_all() {
-- 
2.1.0

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


[OE-core] [PATCHv2 12/16] grub2.inc: Use SYSROOT_DIRS_BLACKLIST to exclude dirs from the sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-bsp/grub/grub2.inc | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc
index 146dde6..dd1ffe2 100644
--- a/meta/recipes-bsp/grub/grub2.inc
+++ b/meta/recipes-bsp/grub/grub2.inc
@@ -63,7 +63,4 @@ do_configure_prepend() {
 
 # grub and grub-efi's sysroot/${datadir}/grub/grub-mkconfig_lib are
 # conflicted, remove it since no one uses it.
-SYSROOT_PREPROCESS_FUNCS_class-target += "remove_sysroot_mkconfig_lib"
-remove_sysroot_mkconfig_lib() {
-rm -r "${SYSROOT_DESTDIR}${datadir}/grub/grub-mkconfig_lib"
-}
+SYSROOT_DIRS_BLACKLIST += "${datadir}/grub/grub-mkconfig_lib"
-- 
2.1.0

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


[OE-core] [PATCHv2 07/16] depmodwrapper-cross: Use SYSROOT_DIRS to add dirs to stage in sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | 6 +-
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb 
b/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb
index c2c2589..5c7dd52 100644
--- a/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb
+++ b/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb
@@ -41,10 +41,6 @@ EOF
chmod +x ${D}${bindir_crossscripts}/depmodwrapper
 }
 
-SYSROOT_PREPROCESS_FUNCS += "depmodwrapper_sysroot_preprocess"
-
-depmodwrapper_sysroot_preprocess () {
-   sysroot_stage_dir ${D}${bindir_crossscripts} 
${SYSROOT_DESTDIR}${bindir_crossscripts}
-}
+SYSROOT_DIRS += "${bindir_crossscripts}"
 
 inherit nopackages
-- 
2.1.0

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


[OE-core] [PATCHv2 13/16] gettext: Use SYSROOT_DIRS_BLACKLIST to exclude dirs from the sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-core/gettext/gettext_0.16.1.bb | 7 +--
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/meta/recipes-core/gettext/gettext_0.16.1.bb 
b/meta/recipes-core/gettext/gettext_0.16.1.bb
index cd0b759..6095c83 100644
--- a/meta/recipes-core/gettext/gettext_0.16.1.bb
+++ b/meta/recipes-core/gettext/gettext_0.16.1.bb
@@ -102,11 +102,6 @@ do_install_append() {
 # available, and we don't want to use older macros from the target gettext in
 # a non-gplv3 build, so kill them and let dependent recipes rely on
 # gettext-native.
-
-SYSROOT_PREPROCESS_FUNCS += "remove_sysroot_m4_macros"
-
-remove_sysroot_m4_macros () {
-rm -r "${SYSROOT_DESTDIR}${datadir}/aclocal"
-}
+SYSROOT_DIRS_BLACKLIST += "${datadir}/aclocal"
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.1.0

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


[OE-core] [PATCHv2 15/16] libtool: Use SYSROOT_DIRS_BLACKLIST to exclude dirs from the sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-devtools/libtool/libtool_2.4.6.bb | 13 +
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/meta/recipes-devtools/libtool/libtool_2.4.6.bb 
b/meta/recipes-devtools/libtool/libtool_2.4.6.bb
index 3851ec7..8858f6e 100644
--- a/meta/recipes-devtools/libtool/libtool_2.4.6.bb
+++ b/meta/recipes-devtools/libtool/libtool_2.4.6.bb
@@ -5,7 +5,11 @@ RDEPENDS_${PN} += "bash"
 #
 # We want the results of libtool-cross preserved - don't stage anything 
ourselves.
 #
-SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess"
+SYSROOT_DIRS_BLACKLIST += " \
+${bindir} \
+${datadir}/aclocal \
+${datadir}/libtool/build-aux \
+"
 
 do_install_append () {
 sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \
@@ -18,10 +22,3 @@ do_install_append () {
 -e 's@^\(postdep_objects="\).*@\1"@' \
 -i ${D}${bindir}/libtool
 }
-
-libtool_sysroot_preprocess () {
-   rm -rf ${SYSROOT_DESTDIR}${bindir}/*
-   rm -rf ${SYSROOT_DESTDIR}${datadir}/aclocal/*
-   rm -rf ${SYSROOT_DESTDIR}${datadir}/libtool/build-aux/*
-}
-
-- 
2.1.0

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


[OE-core] [PATCHv2 04/16] qemuwrapper-cross: Use SYSROOT_DIRS to add dirs to stage in sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb | 6 +-
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb 
b/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb
index 7f4c6d9..53b302d 100644
--- a/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb
+++ b/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb
@@ -41,10 +41,6 @@ EOF
chmod +x ${D}${bindir_crossscripts}/qemuwrapper
 }
 
-SYSROOT_PREPROCESS_FUNCS += "qemuwrapper_sysroot_preprocess"
-
-qemuwrapper_sysroot_preprocess () {
-   sysroot_stage_dir ${D}${bindir_crossscripts} 
${SYSROOT_DESTDIR}${bindir_crossscripts}
-}
+SYSROOT_DIRS += "${bindir_crossscripts}"
 
 INHIBIT_DEFAULT_DEPS = "1"
-- 
2.1.0

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


[OE-core] [PATCHv2 06/16] shadow-sysroot: Use SYSROOT_DIRS to add dirs to stage in sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-extended/shadow/shadow-sysroot_4.2.1.bb | 6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-extended/shadow/shadow-sysroot_4.2.1.bb 
b/meta/recipes-extended/shadow/shadow-sysroot_4.2.1.bb
index 697569c..ef01462 100644
--- a/meta/recipes-extended/shadow/shadow-sysroot_4.2.1.bb
+++ b/meta/recipes-extended/shadow/shadow-sysroot_4.2.1.bb
@@ -21,12 +21,10 @@ S = "${WORKDIR}"
 
 do_install() {
install -d ${D}${sysconfdir}
-   install -p -m 755 ${S}/login.defs_shadow-sysroot 
${D}${sysconfdir}/login.defs
+   install -p -m 644 ${S}/login.defs_shadow-sysroot 
${D}${sysconfdir}/login.defs
 }
 
-sysroot_stage_all() {
-   sysroot_stage_dir ${D} ${SYSROOT_DESTDIR}
-}
+SYSROOT_DIRS += "${sysconfdir}"
 
 # don't create any packages
 # otherwise: dbus-dev depends on shadow-sysroot-dev which depends on 
shadow-sysroot 
-- 
2.1.0

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


[OE-core] [PATCHv2 10/16] vala.inc: Use SYSROOT_DIRS to add dirs to stage in sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-devtools/vala/vala.inc | 13 ++---
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/meta/recipes-devtools/vala/vala.inc 
b/meta/recipes-devtools/vala/vala.inc
index 2a8875f..37aa38f 100644
--- a/meta/recipes-devtools/vala/vala.inc
+++ b/meta/recipes-devtools/vala/vala.inc
@@ -36,15 +36,14 @@ do_install_append_class-target() {
 install ${B}/vapigen-wrapper ${D}${bindir}/
 }
 
+# Put vapigen wrapper into target sysroot so that it can be used when building
+# vapi files.
+SYSROOT_DIRS_append_class-target = " ${bindir}"
 
-SYSROOT_PREPROCESS_FUNCS_append_class-target += "vapigen_sysroot_preprocess"
-
+SYSROOT_PREPROCESS_FUNCS_append_class-target = " vapigen_sysroot_preprocess"
 vapigen_sysroot_preprocess() {
-# Put vapigen wrapper into target sysroot so that it can be used when 
building vapi files.
-sysroot_stage_dir ${D}${bindir} ${SYSROOT_DESTDIR}${bindir}
-
-# Also, tweak the vapigen name in vapigen pkgconfig file, so that it 
picks up our
-# wrapper.
+# Tweak the vapigen name in the vapigen pkgconfig file, so that it 
picks
+# up our wrapper.
 sed -i \
-e "s|vapigen=.*|vapigen=${bindir}/vapigen-wrapper|" \
${SYSROOT_DESTDIR}${datadir}/pkgconfig/vapigen-${SHRT_VER}.pc
-- 
2.1.0

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


[OE-core] [PATCHv2 05/16] tcl: Use SYSROOT_DIRS to add dirs to stage in sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-devtools/tcltk/tcl_8.6.4.bb | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/meta/recipes-devtools/tcltk/tcl_8.6.4.bb 
b/meta/recipes-devtools/tcltk/tcl_8.6.4.bb
index 8e92b3e..61be81d 100644
--- a/meta/recipes-devtools/tcltk/tcl_8.6.4.bb
+++ b/meta/recipes-devtools/tcltk/tcl_8.6.4.bb
@@ -68,10 +68,7 @@ do_install() {
done
 }
 
-SYSROOT_PREPROCESS_FUNCS += "tcl_sysroot_preprocess"
-tcl_sysroot_preprocess () {
-   sysroot_stage_dir ${D}${bindir_crossscripts} 
${SYSROOT_DESTDIR}${bindir_crossscripts}
-}
+SYSROOT_DIRS += "${bindir_crossscripts}"
 
 PACKAGES =+ "tcl-lib"
 FILES_tcl-lib = "${libdir}/libtcl8.6.so.*"
-- 
2.1.0

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


[OE-core] [PATCHv2 09/16] signing-keys: Use SYSROOT_DIRS to add dirs to stage in sysroot

2016-05-12 Thread Peter Kjellerstedt
---
 meta/recipes-core/meta/signing-keys.bb | 6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-core/meta/signing-keys.bb 
b/meta/recipes-core/meta/signing-keys.bb
index e843301..ea7400b 100644
--- a/meta/recipes-core/meta/signing-keys.bb
+++ b/meta/recipes-core/meta/signing-keys.bb
@@ -12,6 +12,8 @@ inherit allarch deploy
 EXCLUDE_FROM_WORLD = "1"
 INHIBIT_DEFAULT_DEPS = "1"
 
+SYSROOT_DIRS += "${sysconfdir}/pki"
+
 PACKAGES =+ "${PN}-ipk ${PN}-rpm ${PN}-packagefeed"
 
 FILES_${PN}-rpm = "${sysconfdir}/pki/rpm-gpg"
@@ -54,10 +56,6 @@ do_install () {
 fi
 }
 
-sysroot_stage_all_append () {
-sysroot_stage_dir ${D}${sysconfdir}/pki ${SYSROOT_DESTDIR}${sysconfdir}/pki
-}
-
 do_deploy () {
 if [ -f "${B}/rpm-key" ]; then
 install -D -m 0644 "${B}/rpm-key" 
"${DEPLOYDIR}/RPM-GPG-KEY-${DISTRO_VERSION}"
-- 
2.1.0

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


Re: [OE-core] [PATCH 00/16] Simplify how to stage directories in the sysroot

2016-05-12 Thread Peter Kjellerstedt
> -Original Message-
> From: openembedded-core-boun...@lists.openembedded.org
> [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of 
> Richard Purdie
> Sent: den 11 maj 2016 23:35
> To: Peter Kjellerstedt; openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH 00/16] Simplify how to stage directories in the 
> sysroot
> 
> On Wed, 2016-05-11 at 19:27 +0200, Peter Kjellerstedt wrote:
> > The first commit in this set makes it possible to specify the
> > directories that will be staged in the sysroot via variables rather
> > than hardcoding it in sysroot_stage_dirs(). This should make it a lot
> > easier to add/remove directories to stage.
> >
> > The rest of the commits just change recipes to take advantage of the
> > new variables.
> >
> > Because of the following if statement in sysroot_stage_dirs():
> >
> > if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then
> >
> > I have split the list of directories into SYSROOT_DIRS and
> > SYSROOT_DIRS_NATIVE, where the latter is included if that if statement
> > is true. I am not sure when that statement is true (my understanding
> > is that it should be true for native builds, but I am not sure if it
> > is also true for other builds like cross, nativesdk, etc). If it is
> > only true for native builds then that if statement could be removed,
> > and the SYSROOT_DIRS_NATIVE variable could be replaced by
> > SYSROOT_DIRS_append_class-native...
> 
> It matches binaries that can run on the build system so it needs to
> match native and cross. Something like:
> 
> SYSROOT_DIRS_append_class-native = "${SYSROOT_DIRS_NATIVE}"
> SYSROOT_DIRS_append_class-cross = "${SYSROOT_DIRS_NATIVE}"

Apparently it is true for crodk as well (I ran recipes from each of 
the five classes through bitbake -e to verify). I will send an updated 
patch that uses the _append solution instead.

> I hadn't realised how much duplication there was in that class. Cleanup
> I'd never gotten around to doing. I guess most people don't even
> remember how we ended up with that code or the horrors of do_stage
> functions :)

I looked at some of the horrors in the git log while investigating how 
it works. I am glad you got rid of them. ;)

> Cheers,
> 
> Richard

//Peter

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


Re: [OE-core] [PATCH 00/13] Upgrades around graphics stack

2016-05-12 Thread Jussi Kukkonen
It seems I wasn't working on top of current master HEAD, apologies:
The xorg upgrade was already done by Andreas, other changes are still
valid.

I'll do a quick smoketest and push the rebased branch with same name,
dropping xserver-xorg patch. I'm not resending the patches as they are
otherwise identical.

 - Jussi

On 12 May 2016 at 10:20, Jussi Kukkonen  wrote:
> Upgrades around X, Wayland and Mesa. Mostly point upgrades but the
> Wayland upgrade is a fairly major one: their next release is also
> around the corner so if there are problems you can drop wayland-
> related bits and I can fix things in time for 1.11.
>
> These have been sanity tested with sato and weston images. piglit
> results are in line with previous mesa releases (~98% pass rate for
> non-skipped tests on a NUC with Intel HD 5000).
>
> Please take a look at the wayland-protocols patch: the recipe produces
> a -dev package only, I wasn't sure if that's a thing I can/should do?
>
> Thanks,
>   Jussi
>
> The following changes since commit 7ca60ec8bff7656b4e52f5a4d238913e851da089:
>
>   test-empty-image: Fix LIC_FILES_CHKSUM typo (2016-05-06 10:48:06 +0100)
>
> are available in the git repository at:
>
>   git://git.yoctoproject.org/poky-contrib jku/gfx-upgrades
>   http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=jku/gfx-upgrades
>
> Jussi Kukkonen (13):
>   xserver-xorg: Upgrade 1.18.0 -> 1.18.3
>   xrandr: Upgrade to 1.5.0
>   xkeyboard-config: Upgrade to 2.17
>   libinput: Upgrade 1.1.4 -> 1.3.0
>   xf86-input-evdev: Upgrade 2.10.1 -> 2.10.2
>   videoproto: Upgrade 2.3.2 -> 2.3.3
>   libxkbcommon: Upgrade 0.5.0 -> 0.6.1
>   libdrm: Upgrade 2.4.67 -> 2.4.68
>   mesa: Upgrade 11.1.1 -> 11.2.2
>   pixman: Upgrade 0.32.8 -> 0.34.0
>   wayland: Upgrade 1.9.0 -> 1.10.0
>   wayland-protocols: Add recipe
>   weston: Upgrade 1.9.0 -> 1.10.0
>
>  .../drm/{libdrm_2.4.67.bb => libdrm_2.4.68.bb} |  4 +-
>  .../mesa/{mesa-gl_11.1.1.bb => mesa-gl_11.2.2.bb}  |  0
>  .../mesa/{mesa_11.1.1.bb => mesa_11.2.2.bb}|  4 +-
>  .../{libinput_1.1.4.bb => libinput_1.3.0.bb}   |  5 +-
>  .../wayland-protocols/dont-use-AC_CANONICAL.patch  | 29 +
>  .../wayland/wayland-protocols_1.3.bb   | 19 ++
>  .../{wayland_1.9.0.bb => wayland_1.10.0.bb}|  6 +-
>  ...c-Use-PKG_CONFIG_SYSROOT_DIR-for-protocol.patch | 30 ++
>  .../weston/explicit-enable-disable-systemd.patch   | 70 
> --
>  .../wayland/weston/libsystemd.patch| 53 
>  .../weston/make-lcms-explicitly-configurable.patch | 43 -
>  .../wayland/{weston_1.9.0.bb => weston_1.10.0.bb}  | 10 ++--
>  .../xorg-app/{xrandr_1.4.3.bb => xrandr_1.5.0.bb}  |  4 +-
>  ...-evdev_2.10.1.bb => xf86-input-evdev_2.10.2.bb} |  4 +-
>  ...libxkbcommon_0.5.0.bb => libxkbcommon_0.6.1.bb} |  6 +-
>  ...0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch | 65 
>  .../xorg-lib/pixman/mips-export-revert.patch   | 22 ---
>  .../{pixman_0.32.8.bb => pixman_0.34.0.bb} |  6 +-
>  ...ard-config_2.16.bb => xkeyboard-config_2.17.bb} |  4 +-
>  .../{videoproto_2.3.2.bb => videoproto_2.3.3.bb}   |  4 +-
>  ac-Use-libsystemd-in-REQUIRED_LIBS-check.patch | 50 
>  .../modesetting_libdrm_requirements.patch  | 30 --
>  ...erver-xorg_1.18.0.bb => xserver-xorg_1.18.3.bb} |  8 +--
>  23 files changed, 108 insertions(+), 368 deletions(-)
>  rename meta/recipes-graphics/drm/{libdrm_2.4.67.bb => libdrm_2.4.68.bb} (92%)
>  rename meta/recipes-graphics/mesa/{mesa-gl_11.1.1.bb => mesa-gl_11.2.2.bb} 
> (100%)
>  rename meta/recipes-graphics/mesa/{mesa_11.1.1.bb => mesa_11.2.2.bb} (80%)
>  rename meta/recipes-graphics/wayland/{libinput_1.1.4.bb => 
> libinput_1.3.0.bb} (75%)
>  create mode 100644 
> meta/recipes-graphics/wayland/wayland-protocols/dont-use-AC_CANONICAL.patch
>  create mode 100644 meta/recipes-graphics/wayland/wayland-protocols_1.3.bb
>  rename meta/recipes-graphics/wayland/{wayland_1.9.0.bb => wayland_1.10.0.bb} 
> (89%)
>  create mode 100644 
> meta/recipes-graphics/wayland/weston/0001-configure.ac-Use-PKG_CONFIG_SYSROOT_DIR-for-protocol.patch
>  delete mode 100644 
> meta/recipes-graphics/wayland/weston/explicit-enable-disable-systemd.patch
>  delete mode 100644 meta/recipes-graphics/wayland/weston/libsystemd.patch
>  delete mode 100644 
> meta/recipes-graphics/wayland/weston/make-lcms-explicitly-configurable.patch
>  rename meta/recipes-graphics/wayland/{weston_1.9.0.bb => weston_1.10.0.bb} 
> (92%)
>  rename meta/recipes-graphics/xorg-app/{xrandr_1.4.3.bb => xrandr_1.5.0.bb} 
> (72%)
>  rename meta/recipes-graphics/xorg-driver/{xf86-input-evdev_2.10.1.bb => 
> xf86-input-evdev_2.10.2.bb} (83%)
>  rename meta/recipes-graphics/xorg-lib/{libxkbcommon_0.5.0.bb => 
> libxkbcommon_0.6.1.bb} (75%)
>  delete mode 100644 
> meta/recipes-graphics/xorg-lib/pixman/0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch
>  delete mode 100644 
> 

[OE-core] [PATCH 12/13] wayland-protocols: Add recipe

2016-05-12 Thread Jussi Kukkonen
wayland-protocols is a collection of Wayland protocols split
out from weston. It is a build dependency for Weston 1.10.

Added a patch to enable allarch build.

Signed-off-by: Jussi Kukkonen 
---
 .../wayland-protocols/dont-use-AC_CANONICAL.patch  | 29 ++
 .../wayland/wayland-protocols_1.3.bb   | 19 ++
 2 files changed, 48 insertions(+)
 create mode 100644 
meta/recipes-graphics/wayland/wayland-protocols/dont-use-AC_CANONICAL.patch
 create mode 100644 meta/recipes-graphics/wayland/wayland-protocols_1.3.bb

diff --git 
a/meta/recipes-graphics/wayland/wayland-protocols/dont-use-AC_CANONICAL.patch 
b/meta/recipes-graphics/wayland/wayland-protocols/dont-use-AC_CANONICAL.patch
new file mode 100644
index 000..6cc0f3b
--- /dev/null
+++ 
b/meta/recipes-graphics/wayland/wayland-protocols/dont-use-AC_CANONICAL.patch
@@ -0,0 +1,29 @@
+Check autoconfs $cross_compiling instead as AC_CANONICAL_HOST call
+will fail if the host cpu is not recognised (which can happen when
+e.g. Yocto builds for "allarch").
+
+Signed-off-by: Jussi Kukkonen 
+Upstream-Status: Backport [cc276dfa41]
+
+diff --git a/configure.ac b/configure.ac
+index 5b48b1a..3d45a4b 100644
+--- a/configure.ac
 b/configure.ac
+@@ -15,13 +15,10 @@ AC_CONFIG_MACRO_DIR([m4])
+ 
+ AC_SUBST([WAYLAND_PROTOCOLS_VERSION], [wayland_protocols_version])
+ 
+-AC_CANONICAL_HOST
+-AC_CANONICAL_BUILD
+-
+ AC_ARG_VAR([wayland_scanner], [The wayland-scanner executable])
+ AC_PATH_PROG([wayland_scanner], [wayland-scanner])
+ if test x$wayland_scanner = x; then
+-if test x$host = x$build; then
++if test "x$cross_compiling" != "xyes"; then
+ PKG_CHECK_MODULES(WAYLAND_SCANNER, [wayland-scanner])
+ wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner 
wayland-scanner`
+ else
+-- 
+cgit v0.10.2
+
diff --git a/meta/recipes-graphics/wayland/wayland-protocols_1.3.bb 
b/meta/recipes-graphics/wayland/wayland-protocols_1.3.bb
new file mode 100644
index 000..6072624
--- /dev/null
+++ b/meta/recipes-graphics/wayland/wayland-protocols_1.3.bb
@@ -0,0 +1,19 @@
+SUMMARY = "Collection of additional Wayland protocols"
+DESCRIPTION = "Wayland protocols that add functionality not \
+available in the Wayland core protocol. Such protocols either add \
+completely new functionality, or extend the functionality of some other \
+protocol either in Wayland core, or some other protocol in \
+wayland-protocols."
+HOMEPAGE = "http://wayland.freedesktop.org;
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=c7b12b6702da38ca028ace54aae3d484 \
+
file://stable/presentation-time/presentation-time.xml;endline=26;md5=4646cd7d9edc9fa55db941f2d3a7dc53"
+
+SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
+   file://dont-use-AC_CANONICAL.patch"
+SRC_URI[md5sum] = "88b5e3dce52908c7e74fad3e2cf8abb0"
+SRC_URI[sha256sum] = 
"6bcd0633fdf9225ef1c7d2831f542e947f7d79811c79fc37f57b2e5375ded82f"
+
+inherit allarch autotools pkgconfig
+
+FILES_${PN}-dev += "${datadir}/wayland-protocols"
-- 
2.1.4

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


[OE-core] [PATCH 13/13] weston: Upgrade 1.9.0 -> 1.10.0

2016-05-12 Thread Jussi Kukkonen
Support for multiple new protocols, many new features:
https://lists.freedesktop.org/archives/wayland-devel/2016-February/027039.html

Weston now depends on wayland-protocols (which is protocol
collection split off from weston).

Remove upstreamed patches, add a patch to fix the wayland-protocols
path used during build.

Signed-off-by: Jussi Kukkonen 
---
 ...c-Use-PKG_CONFIG_SYSROOT_DIR-for-protocol.patch | 30 ++
 .../weston/explicit-enable-disable-systemd.patch   | 70 --
 .../wayland/weston/libsystemd.patch| 53 
 .../weston/make-lcms-explicitly-configurable.patch | 43 -
 .../wayland/{weston_1.9.0.bb => weston_1.10.0.bb}  | 10 ++--
 5 files changed, 34 insertions(+), 172 deletions(-)
 create mode 100644 
meta/recipes-graphics/wayland/weston/0001-configure.ac-Use-PKG_CONFIG_SYSROOT_DIR-for-protocol.patch
 delete mode 100644 
meta/recipes-graphics/wayland/weston/explicit-enable-disable-systemd.patch
 delete mode 100644 meta/recipes-graphics/wayland/weston/libsystemd.patch
 delete mode 100644 
meta/recipes-graphics/wayland/weston/make-lcms-explicitly-configurable.patch
 rename meta/recipes-graphics/wayland/{weston_1.9.0.bb => weston_1.10.0.bb} 
(92%)

diff --git 
a/meta/recipes-graphics/wayland/weston/0001-configure.ac-Use-PKG_CONFIG_SYSROOT_DIR-for-protocol.patch
 
b/meta/recipes-graphics/wayland/weston/0001-configure.ac-Use-PKG_CONFIG_SYSROOT_DIR-for-protocol.patch
new file mode 100644
index 000..7c8ad94
--- /dev/null
+++ 
b/meta/recipes-graphics/wayland/weston/0001-configure.ac-Use-PKG_CONFIG_SYSROOT_DIR-for-protocol.patch
@@ -0,0 +1,30 @@
+From 1cfc1434a5d385a74de593ec7601674dba39e2fe Mon Sep 17 00:00:00 2001
+From: Jussi Kukkonen 
+Date: Wed, 11 May 2016 16:16:30 +0300
+Subject: [PATCH] configure.ac: Use PKG_CONFIG_SYSROOT_DIR for protocols path
+
+The wayland-protocols directory is used during build:
+make sure the one in sysroot is used.
+
+Signed-off-by: Jussi Kukkonen 
+Upstream-Status: Inappropriate [embedded specific]
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index bc7c329..15a05d3 100644
+--- a/configure.ac
 b/configure.ac
+@@ -184,7 +184,7 @@ PKG_CHECK_MODULES(LIBINPUT_BACKEND, [libinput >= 0.8.0])
+ PKG_CHECK_MODULES(COMPOSITOR, [$COMPOSITOR_MODULES])
+ 
+ PKG_CHECK_MODULES(WAYLAND_PROTOCOLS, [wayland-protocols >= 1.0],
+-[ac_wayland_protocols_pkgdatadir=`$PKG_CONFIG 
--variable=pkgdatadir wayland-protocols`])
++
[ac_wayland_protocols_pkgdatadir=${PKG_CONFIG_SYSROOT_DIR}`$PKG_CONFIG 
--variable=pkgdatadir wayland-protocols`])
+ AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, $ac_wayland_protocols_pkgdatadir)
+ 
+ AC_ARG_ENABLE(wayland-compositor, [  --enable-wayland-compositor],,
+-- 
+2.1.4
+
diff --git 
a/meta/recipes-graphics/wayland/weston/explicit-enable-disable-systemd.patch 
b/meta/recipes-graphics/wayland/weston/explicit-enable-disable-systemd.patch
deleted file mode 100644
index a40eaf1..000
--- a/meta/recipes-graphics/wayland/weston/explicit-enable-disable-systemd.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 8e1efcd40b3bad81c83744e2e120d70c2b567ef2 Mon Sep 17 00:00:00 2001
-From: Frederico Cadete 
-Date: Mon, 28 Sep 2015 00:30:10 +0200
-Subject: configure.ac: add explicit enable/disable for systemd-login support
-
-Otherwise, auto-enable depending on whether the system has the necessary
-libraries.
-
-[Updated help text as per pq suggestion -- bwh]
-
-Reviewed-by: Bryce Harrington 
-Reviewed-by: Pekka Paalanen 
-Tested-by: Pekka Paalanen 
-
-Upstream-Status: Backport
-Backported from Weston git:
-http://cgit.freedesktop.org/wayland/weston/commit/?id=8e1efc
-
-Signed-off-by: Joshua Lock 
-
-diff --git a/configure.ac b/configure.ac
-index a9cd429..67e80d0 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -380,18 +380,30 @@ AC_ARG_ENABLE(resize-optimization,
- AS_IF([test "x$enable_resize_optimization" = "xyes"],
-   [AC_DEFINE([USE_RESIZE_POOL], [1], [Use resize memory pool as a 
performance optimization])])
- 
--PKG_CHECK_MODULES(SYSTEMD_LOGIN,
--  [libsystemd >= 209],
--  [have_systemd_login_209=yes;have_systemd_login=yes],
--  [have_systemd_login_209=no;have_systemd_login=no])
--
--# Older versions of systemd package systemd-login separately. Fall back on 
that
--AS_IF([test x$have_systemd_login != xyes],[
--  PKG_CHECK_MODULES(SYSTEMD_LOGIN,
--[libsystemd-login >= 198],
--[have_systemd_login=yes],
--[have_systemd_login=no])
--  ])
-+AC_ARG_ENABLE(systemd-login,
-+  AS_HELP_STRING([--enable-systemd-login],
-+ [Enable logind 

[OE-core] [PATCH 04/13] libinput: Upgrade 1.1.4 -> 1.3.0

2016-05-12 Thread Jussi Kukkonen
Add PACKAGECONFIG for libwacom (which we currently do not
have in oe-core) as the default is --enable-libwacom.

Signed-off-by: Jussi Kukkonen 
---
 .../wayland/{libinput_1.1.4.bb => libinput_1.3.0.bb} | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/wayland/{libinput_1.1.4.bb => libinput_1.3.0.bb} 
(75%)

diff --git a/meta/recipes-graphics/wayland/libinput_1.1.4.bb 
b/meta/recipes-graphics/wayland/libinput_1.3.0.bb
similarity index 75%
rename from meta/recipes-graphics/wayland/libinput_1.1.4.bb
rename to meta/recipes-graphics/wayland/libinput_1.3.0.bb
index 4167679..13724d5 100644
--- a/meta/recipes-graphics/wayland/libinput_1.1.4.bb
+++ b/meta/recipes-graphics/wayland/libinput_1.3.0.bb
@@ -10,13 +10,14 @@ DEPENDS = "libevdev udev mtdev"
 SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BP}.tar.xz \

file://touchpad-serial-synaptics-need-to-fake-new-touches-on-TRIPLETAP.patch \
 "
-SRC_URI[md5sum] = "0945318141c1a9f52857bbf65d175f32"
-SRC_URI[sha256sum] = 
"302cb76209b9c57a5a318e178f9bc446eede8ea79386103b5291cbfaa5fab5b6"
+SRC_URI[md5sum] = "5f8bc2c746bfbc9454143f78e5b477a9"
+SRC_URI[sha256sum] = 
"998a75fb261d161efaa7da44411cdc9a32a953280e4ffc6322ca19f057d0c1ea"
 
 inherit autotools pkgconfig
 
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind"
+PACKAGECONFIG[libwacom] = "--enable-libwacom,--disable-libwacom,libwacom"
 PACKAGECONFIG[gui] = "--enable-event-gui,--disable-event-gui,cairo gtk+3"
 
 FILES_${PN} += "${libdir}/udev/"
-- 
2.1.4

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


[OE-core] [PATCH 10/13] pixman: Upgrade 0.32.8 -> 0.34.0

2016-05-12 Thread Jussi Kukkonen
Remove two patches that are no longer needed.

Signed-off-by: Jussi Kukkonen 
---
 ...0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch | 65 --
 .../xorg-lib/pixman/mips-export-revert.patch   | 22 
 .../{pixman_0.32.8.bb => pixman_0.34.0.bb} |  6 +-
 3 files changed, 2 insertions(+), 91 deletions(-)
 delete mode 100644 
meta/recipes-graphics/xorg-lib/pixman/0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch
 delete mode 100644 
meta/recipes-graphics/xorg-lib/pixman/mips-export-revert.patch
 rename meta/recipes-graphics/xorg-lib/{pixman_0.32.8.bb => pixman_0.34.0.bb} 
(85%)

diff --git 
a/meta/recipes-graphics/xorg-lib/pixman/0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch
 
b/meta/recipes-graphics/xorg-lib/pixman/0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch
deleted file mode 100644
index 6b7c1e6..000
--- 
a/meta/recipes-graphics/xorg-lib/pixman/0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-From fcd5eb9bd0e8674a6f4987a8fce7dc1ba8f9320c Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni 
-Date: Thu, 17 Sep 2015 03:08:36 +0200
-Subject: [PATCH] [v3] test: add a check for FE_DIVBYZERO
-
-Some architectures, such as Microblaze and Nios2, currently do not
-implement FE_DIVBYZERO, even though they have  and
-feenableexcept(). This commit adds a configure.ac check to verify
-whether FE_DIVBYZERO is defined or not, and if not, disables the
-problematic code in test/utils.c.
-
-Signed-off-by: Thomas Petazzoni 
-Signed-off-by: Marek Vasut 
-Upstream-Status: Backport [commit 4297e9058]

-Changes v1 -> v2:
-
- * Use the ac_cv_have_decl_FE_DIVBYZERO variable, which is
-   automatically set by AC_CHECK_DECL, to decide whether or not
-   HAVE_FEDIVBYZERO should be defined.
-
-Changes v2 -> v3:
-
- * Use action-if-yes of AC_CHECK_DECL as suggested in
-   http://lists.freedesktop.org/archives/pixman/2014-February/003176.html

- configure.ac | 5 +
- test/utils.c | 2 ++
- 2 files changed, 7 insertions(+)
-
-diff --git a/configure.ac b/configure.ac
-index f93cc30..424bfd3 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -891,6 +891,11 @@ if test x$have_feenableexcept = xyes; then
-AC_DEFINE(HAVE_FEENABLEEXCEPT, 1, [Whether we have feenableexcept()])
- fi
- 
-+AC_CHECK_DECL([FE_DIVBYZERO],
-+  [AC_DEFINE(HAVE_FEDIVBYZERO, 1, [Whether we have FE_DIVBYZERO])],
-+  [],
-+  [[#include ]])
-+
- AC_CHECK_FUNC(gettimeofday, have_gettimeofday=yes, have_gettimeofday=no)
- AC_CHECK_HEADER(sys/time.h, have_sys_time_h=yes, have_sys_time_h=no)
- if test x$have_gettimeofday = xyes && test x$have_sys_time_h = xyes; then
-diff --git a/test/utils.c b/test/utils.c
-index 222d4d5..8657966 100644
 a/test/utils.c
-+++ b/test/utils.c
-@@ -966,9 +966,11 @@ enable_divbyzero_exceptions (void)
- {
- #ifdef HAVE_FENV_H
- #ifdef HAVE_FEENABLEEXCEPT
-+#ifdef HAVE_FEDIVBYZERO
- feenableexcept (FE_DIVBYZERO);
-+#endif
- #endif
- #endif
- }
- 
- void
--- 
-2.1.4
-
diff --git a/meta/recipes-graphics/xorg-lib/pixman/mips-export-revert.patch 
b/meta/recipes-graphics/xorg-lib/pixman/mips-export-revert.patch
deleted file mode 100644
index 14a5fd2..000
--- a/meta/recipes-graphics/xorg-lib/pixman/mips-export-revert.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-Revert a commit in pixman 0.32.6 which breaks compliation on MIPS machines with
-errors such as:
-
-pixman-0.32.6/pixman/pixman-mips-dspr2-asm.S:4267:
-Error: invalid operands `mflo $14,$ac3'
-
-Upstream-Status: Pending
-Signed-off-by: Ross Burton 
-
 b/pixman/pixman-mips-dspr2-asm.h
-+++ a/pixman/pixman-mips-dspr2-asm.h
-@@ -72,10 +72,7 @@
- #define LEAF_MIPS32R2(symbol)   \
- .globl  symbol; \
- .align  2;  \
--#ifdef __ELF__
--.hidden symbol; \
- .type   symbol, @function;  \
--#endif
- .entsymbol, 0;  \
- symbol: .frame  sp, 0, ra;  \
- .setpush;   \
diff --git a/meta/recipes-graphics/xorg-lib/pixman_0.32.8.bb 
b/meta/recipes-graphics/xorg-lib/pixman_0.34.0.bb
similarity index 85%
rename from meta/recipes-graphics/xorg-lib/pixman_0.32.8.bb
rename to meta/recipes-graphics/xorg-lib/pixman_0.34.0.bb
index 553ce36..87da5c2 100644
--- a/meta/recipes-graphics/xorg-lib/pixman_0.32.8.bb
+++ b/meta/recipes-graphics/xorg-lib/pixman_0.34.0.bb
@@ -31,12 +31,10 @@ EXTRA_OECONF_class-nativesdk = "--disable-gtk"
 
 SRC_URI += "\
 
file://0001-ARM-qemu-related-workarounds-in-cpu-features-detecti.patch \
-file://mips-export-revert.patch \
file://asm_include.patch \
-   file://0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch \
 "
 
-SRC_URI[md5sum] = 

[OE-core] [PATCH 07/13] libxkbcommon: Upgrade 0.5.0 -> 0.6.1

2016-05-12 Thread Jussi Kukkonen
License file was renamed, content is the same.

Signed-off-by: Jussi Kukkonen 
---
 .../xorg-lib/{libxkbcommon_0.5.0.bb => libxkbcommon_0.6.1.bb}   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename meta/recipes-graphics/xorg-lib/{libxkbcommon_0.5.0.bb => 
libxkbcommon_0.6.1.bb} (75%)

diff --git a/meta/recipes-graphics/xorg-lib/libxkbcommon_0.5.0.bb 
b/meta/recipes-graphics/xorg-lib/libxkbcommon_0.6.1.bb
similarity index 75%
rename from meta/recipes-graphics/xorg-lib/libxkbcommon_0.5.0.bb
rename to meta/recipes-graphics/xorg-lib/libxkbcommon_0.6.1.bb
index de22a81..fc08109 100644
--- a/meta/recipes-graphics/xorg-lib/libxkbcommon_0.5.0.bb
+++ b/meta/recipes-graphics/xorg-lib/libxkbcommon_0.6.1.bb
@@ -2,15 +2,15 @@ SUMMARY = "Generic XKB keymap library"
 DESCRIPTION = "libxkbcommon is a keymap compiler and support library which \
 processes a reduced subset of keymaps as defined by the XKB specification."
 HOMEPAGE = "http://www.xkbcommon.org;
-LIC_FILES_CHKSUM = "file://COPYING;md5=09457b156e3155972abebc0cb434"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=09457b156e3155972abebc0cb434"
 LICENSE = "MIT & MIT-style"
 
 DEPENDS = "util-macros flex-native bison-native"
 
 SRC_URI = "http://xkbcommon.org/download/${BPN}-${PV}.tar.xz;
 
-SRC_URI[md5sum] = "2e1faeafcc609c30af3a561a91e84158"
-SRC_URI[sha256sum] = 
"90bd7824742b9a6f52a6cf80e2cadd6f5349cf600a358d08260772615b89d19c"
+SRC_URI[md5sum] = "67a8f322b5fa32352272e811bb90dd73"
+SRC_URI[sha256sum] = 
"5b0887b080b42169096a61106661f8d35bae783f8b6c58f97ebcd3af83ea8760"
 
 UPSTREAM_CHECK_URI = "http://xkbcommon.org/;
 
-- 
2.1.4

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


[OE-core] [PATCH 09/13] mesa: Upgrade 11.1.1 -> 11.2.2

2016-05-12 Thread Jussi Kukkonen
Signed-off-by: Jussi Kukkonen 
---
 meta/recipes-graphics/mesa/{mesa-gl_11.1.1.bb => mesa-gl_11.2.2.bb} | 0
 meta/recipes-graphics/mesa/{mesa_11.1.1.bb => mesa_11.2.2.bb}   | 4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/mesa/{mesa-gl_11.1.1.bb => mesa-gl_11.2.2.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_11.1.1.bb => mesa_11.2.2.bb} (80%)

diff --git a/meta/recipes-graphics/mesa/mesa-gl_11.1.1.bb 
b/meta/recipes-graphics/mesa/mesa-gl_11.2.2.bb
similarity index 100%
rename from meta/recipes-graphics/mesa/mesa-gl_11.1.1.bb
rename to meta/recipes-graphics/mesa/mesa-gl_11.2.2.bb
diff --git a/meta/recipes-graphics/mesa/mesa_11.1.1.bb 
b/meta/recipes-graphics/mesa/mesa_11.2.2.bb
similarity index 80%
rename from meta/recipes-graphics/mesa/mesa_11.1.1.bb
rename to meta/recipes-graphics/mesa/mesa_11.2.2.bb
index 502afcf..a864b54 100644
--- a/meta/recipes-graphics/mesa/mesa_11.1.1.bb
+++ b/meta/recipes-graphics/mesa/mesa_11.2.2.bb
@@ -4,8 +4,8 @@ SRC_URI = 
"ftp://ftp.freedesktop.org/pub/mesa/${PV}/mesa-${PV}.tar.xz \
file://replace_glibc_check_with_linux.patch \
 "
 
-SRC_URI[md5sum] = "1043dfb907beecb2a761272455960427"
-SRC_URI[sha256sum] = 
"64db074fc514136b5fb3890111f0d50604db52f0b1e94ba3fcb0fe8668a7fd20"
+SRC_URI[md5sum] = "e0ec73f7273662a74366f0d76dd19ac3"
+SRC_URI[sha256sum] = 
"40e148812388ec7c6d7b6657d5a16e2e8dabba8b97ddfceea5197947647bdfb4"
 
 #because we cannot rely on the fact that all apps will use pkgconfig,
 #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
-- 
2.1.4

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


[OE-core] [PATCH 06/13] videoproto: Upgrade 2.3.2 -> 2.3.3

2016-05-12 Thread Jussi Kukkonen
Signed-off-by: Jussi Kukkonen 
---
 .../xorg-proto/{videoproto_2.3.2.bb => videoproto_2.3.3.bb}   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/xorg-proto/{videoproto_2.3.2.bb => 
videoproto_2.3.3.bb} (69%)

diff --git a/meta/recipes-graphics/xorg-proto/videoproto_2.3.2.bb 
b/meta/recipes-graphics/xorg-proto/videoproto_2.3.3.bb
similarity index 69%
rename from meta/recipes-graphics/xorg-proto/videoproto_2.3.2.bb
rename to meta/recipes-graphics/xorg-proto/videoproto_2.3.3.bb
index 53aa759..6f97a26 100644
--- a/meta/recipes-graphics/xorg-proto/videoproto_2.3.2.bb
+++ b/meta/recipes-graphics/xorg-proto/videoproto_2.3.3.bb
@@ -10,5 +10,5 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=ce3472a119a864085fa4155cb0979a7b"
 
 PE = "1"
 
-SRC_URI[md5sum] = "e658641595327d3990eab70fdb55ca8b"
-SRC_URI[sha256sum] = 
"8dae168cb820fcd32f564879afb3f24d27c176300d9af66819a18265539bd4b6"
+SRC_URI[md5sum] = "fe86de8ea3eb53b5a8f52956c5cd3174"
+SRC_URI[sha256sum] = 
"c7803889fd08e6fcaf7b68cc394fb038b2325d1f315e571a6954577e07cca702"
-- 
2.1.4

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


[OE-core] [PATCH 11/13] wayland: Upgrade 1.9.0 -> 1.10.0

2016-05-12 Thread Jussi Kukkonen
Yes, Wayland now depends on another xml parser (just for build time
dtd validation).

Signed-off-by: Jussi Kukkonen 
---
 .../wayland/{wayland_1.9.0.bb => wayland_1.10.0.bb} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename meta/recipes-graphics/wayland/{wayland_1.9.0.bb => wayland_1.10.0.bb} 
(89%)

diff --git a/meta/recipes-graphics/wayland/wayland_1.9.0.bb 
b/meta/recipes-graphics/wayland/wayland_1.10.0.bb
similarity index 89%
rename from meta/recipes-graphics/wayland/wayland_1.9.0.bb
rename to meta/recipes-graphics/wayland/wayland_1.10.0.bb
index d12ac18..17e7b9c 100644
--- a/meta/recipes-graphics/wayland/wayland_1.9.0.bb
+++ b/meta/recipes-graphics/wayland/wayland_1.10.0.bb
@@ -11,8 +11,8 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=b31d8f53b6aaf2b4985d7dd7810a70d1 \
 
file://src/wayland-server.c;endline=24;md5=b8e046164a766bb1ede8ba38e9dcd7ce"
 
 SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz;
-SRC_URI[md5sum] = "5e141b3f2a7005d6c89d6f233c87c317"
-SRC_URI[sha256sum] = 
"9c8770720aa0034479735f58a4dc4ca9b172ecfede28f5134312e135b7301efa"
+SRC_URI[md5sum] = "e7751c38807c231afaba9d6b68f2a2b7"
+SRC_URI[sha256sum] = 
"4bf6e790aa6f50ab3825676282ecd75850ec9c4767af96ecb7127b1f3c3d60dc"
 
 EXTRA_OECONF_class-native = "--disable-documentation --disable-libraries"
 
@@ -20,7 +20,7 @@ inherit autotools pkgconfig
 
 BBCLASSEXTEND = "native nativesdk"
 
-DEPENDS = "expat libffi wayland-native"
+DEPENDS = "expat libxml2 libffi wayland-native"
 
 EXTRA_OECONF = "--disable-documentation --with-host-scanner"
 
-- 
2.1.4

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


[OE-core] [PATCH 08/13] libdrm: Upgrade 2.4.67 -> 2.4.68

2016-05-12 Thread Jussi Kukkonen
Signed-off-by: Jussi Kukkonen 
---
 meta/recipes-graphics/drm/{libdrm_2.4.67.bb => libdrm_2.4.68.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/drm/{libdrm_2.4.67.bb => libdrm_2.4.68.bb} (92%)

diff --git a/meta/recipes-graphics/drm/libdrm_2.4.67.bb 
b/meta/recipes-graphics/drm/libdrm_2.4.68.bb
similarity index 92%
rename from meta/recipes-graphics/drm/libdrm_2.4.67.bb
rename to meta/recipes-graphics/drm/libdrm_2.4.68.bb
index ddd697f..758f801 100644
--- a/meta/recipes-graphics/drm/libdrm_2.4.67.bb
+++ b/meta/recipes-graphics/drm/libdrm_2.4.68.bb
@@ -15,8 +15,8 @@ SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.bz2 \
file://fix_O_CLOEXEC_undeclared.patch \
   "
 
-SRC_URI[md5sum] = "b844c6af34e613ebf52f80b3cd8d7055"
-SRC_URI[sha256sum] = 
"ee5b71e1113be37544d0752681c12f040c01f782e2933df7d7bc21fd0d10cebe"
+SRC_URI[md5sum] = "bcc96848d969cecf28223f668eeff354"
+SRC_URI[sha256sum] = 
"5b4bd9a5922929bc716411cb74061fbf31b06ba36feb89bc1358a91a8d0ca9df"
 
 inherit autotools pkgconfig
 
-- 
2.1.4

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


[OE-core] [PATCH 03/13] xkeyboard-config: Upgrade to 2.17

2016-05-12 Thread Jussi Kukkonen
Signed-off-by: Jussi Kukkonen 
---
 .../xorg-lib/{xkeyboard-config_2.16.bb => xkeyboard-config_2.17.bb}   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/xorg-lib/{xkeyboard-config_2.16.bb => 
xkeyboard-config_2.17.bb} (88%)

diff --git a/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.16.bb 
b/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.17.bb
similarity index 88%
rename from meta/recipes-graphics/xorg-lib/xkeyboard-config_2.16.bb
rename to meta/recipes-graphics/xorg-lib/xkeyboard-config_2.17.bb
index 16a1f4f..ff9aa1d 100644
--- a/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.16.bb
+++ b/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.17.bb
@@ -13,8 +13,8 @@ LICENSE = "MIT & MIT-style"
 LIC_FILES_CHKSUM = "file://COPYING;md5=0e7f21ca7db975c63467d2e7624a12f9"
 
 SRC_URI = 
"${XORG_MIRROR}/individual/data/xkeyboard-config/${BPN}-${PV}.tar.bz2"
-SRC_URI[md5sum] = "bf6aa31195584cfce01b2194c3e5ea26"
-SRC_URI[sha256sum] = 
"1e8a1f212c96b7f71ca0b05da361cac1816d27baae1d8e03e7b53049b58d1d58"
+SRC_URI[md5sum] = "15034bb74deebde54161dface62abbce"
+SRC_URI[sha256sum] = 
"dec6be44bd31775cdc1ab95bfd75d5f2c0055613eeca8b4e9c6480b183430701"
 
 SECTION = "x11/libs"
 DEPENDS = "intltool-native virtual/gettext util-macros libxslt-native"
-- 
2.1.4

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


[OE-core] [PATCH 05/13] xf86-input-evdev: Upgrade 2.10.1 -> 2.10.2

2016-05-12 Thread Jussi Kukkonen
Signed-off-by: Jussi Kukkonen 
---
 .../{xf86-input-evdev_2.10.1.bb => xf86-input-evdev_2.10.2.bb}| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/xorg-driver/{xf86-input-evdev_2.10.1.bb => 
xf86-input-evdev_2.10.2.bb} (83%)

diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.10.1.bb 
b/meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.10.2.bb
similarity index 83%
rename from meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.10.1.bb
rename to meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.10.2.bb
index cf77ad2..2ea4574 100644
--- a/meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.10.1.bb
+++ b/meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.10.2.bb
@@ -16,5 +16,5 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=fefe33b1cf0cacba0e72e3b0fa0f0e16"
 
 DEPENDS += "mtdev libevdev"
 
-SRC_URI[md5sum] = "96d89d9406a02f5e36bdaa4edd9a243a"
-SRC_URI[sha256sum] = 
"af9c2b47f5b272ae56b45da6bd84610fc9a3d80a4b32c8215842a39d862de017"
+SRC_URI[md5sum] = "452bcc3bcce712b59af363eea94e3392"
+SRC_URI[sha256sum] = 
"a73a630d41ab90708d929f357e922bfbdb63d553491c5a30ab3e8fb1e35dfe1d"
-- 
2.1.4

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


[OE-core] [PATCH 02/13] xrandr: Upgrade to 1.5.0

2016-05-12 Thread Jussi Kukkonen
Signed-off-by: Jussi Kukkonen 
---
 meta/recipes-graphics/xorg-app/{xrandr_1.4.3.bb => xrandr_1.5.0.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/xorg-app/{xrandr_1.4.3.bb => xrandr_1.5.0.bb} 
(72%)

diff --git a/meta/recipes-graphics/xorg-app/xrandr_1.4.3.bb 
b/meta/recipes-graphics/xorg-app/xrandr_1.5.0.bb
similarity index 72%
rename from meta/recipes-graphics/xorg-app/xrandr_1.4.3.bb
rename to meta/recipes-graphics/xorg-app/xrandr_1.5.0.bb
index 41bd420..ea68979 100644
--- a/meta/recipes-graphics/xorg-app/xrandr_1.4.3.bb
+++ b/meta/recipes-graphics/xorg-app/xrandr_1.5.0.bb
@@ -11,5 +11,5 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=fe1608bdb33cf8c62a4438f7d34679b3"
 DEPENDS += "libxrandr libxrender"
 PE = "1"
 
-SRC_URI[md5sum] = "441fdb98d2abc6051108b7075d948fc7"
-SRC_URI[sha256sum] = 
"7154ac3486b86923692f2d6cdb2991a2ee72bc32af2c4379a6f1c068f204be1b"
+SRC_URI[md5sum] = "ebffac98021b8f1dc71da0c1918e9b57"
+SRC_URI[sha256sum] = 
"c1cfd4e1d4d708c031d60801e527abc9b6d34b85f2ffa2cadd21f75ff38151cd"
-- 
2.1.4

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


[OE-core] [PATCH 01/13] xserver-xorg: Upgrade 1.18.0 -> 1.18.3

2016-05-12 Thread Jussi Kukkonen
Remove two patches that are now upstream.

Signed-off-by: Jussi Kukkonen 
---
 ac-Use-libsystemd-in-REQUIRED_LIBS-check.patch | 50 --
 .../modesetting_libdrm_requirements.patch  | 30 -
 ...erver-xorg_1.18.0.bb => xserver-xorg_1.18.3.bb} |  8 ++--
 3 files changed, 3 insertions(+), 85 deletions(-)
 delete mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/configure.ac-Use-libsystemd-in-REQUIRED_LIBS-check.patch
 delete mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/modesetting_libdrm_requirements.patch
 rename meta/recipes-graphics/xorg-xserver/{xserver-xorg_1.18.0.bb => 
xserver-xorg_1.18.3.bb} (72%)

diff --git 
a/meta/recipes-graphics/xorg-xserver/xserver-xorg/configure.ac-Use-libsystemd-in-REQUIRED_LIBS-check.patch
 
b/meta/recipes-graphics/xorg-xserver/xserver-xorg/configure.ac-Use-libsystemd-in-REQUIRED_LIBS-check.patch
deleted file mode 100644
index cd30999..000
--- 
a/meta/recipes-graphics/xorg-xserver/xserver-xorg/configure.ac-Use-libsystemd-in-REQUIRED_LIBS-check.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 0c2153d468229f56e6fef71d2f002e0cae14aa55 Mon Sep 17 00:00:00 2001
-From: Jussi Kukkonen 
-Date: Mon, 16 Nov 2015 16:18:40 +0200
-Subject: [PATCH] configure.ac: Use libsystemd in REQUIRED_LIBS check
-
-REQUIRED_LIBS needs to be set to the correct systemd library,
-otherwise the later check will either fail or use the wrong
-pc file.
-
-Upstream-Status: Submitted [xorg-de...@lists.x.org]
-Signed-off-by: Jussi Kukkonen 

- configure.ac | 13 ++---
- 1 file changed, 10 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 96c0242..f63eca1 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -837,9 +837,16 @@ AC_ARG_WITH([systemd-daemon],
-   [support systemd socket activation (default: auto)]),
-   [WITH_SYSTEMD_DAEMON=$withval], [WITH_SYSTEMD_DAEMON=auto])
- PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd-daemon],
--  [HAVE_SYSTEMD_DAEMON=yes],
-+  [REQUIRED_SYSTEMD_DAEMON=libsystemd-daemon],
-   [PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd],
-- [HAVE_SYSTEMD_DAEMON=yes], 
[HAVE_SYSTEMD_DAEMON=no])])
-+ [REQUIRED_SYSTEMD_DAEMON=libsystemd],
-+ [REQUIRED_SYSTEMD_DAEMON=])])
-+if test "x$REQUIRED_SYSTEMD_DAEMON" = x; then
-+HAVE_SYSTEMD_DAEMON=no
-+else
-+HAVE_SYSTEMD_DAEMON=yes
-+fi
-+
- if test "x$WITH_SYSTEMD_DAEMON" = xauto; then
-   WITH_SYSTEMD_DAEMON="$HAVE_SYSTEMD_DAEMON"
- fi
-@@ -848,7 +855,7 @@ if test "x$WITH_SYSTEMD_DAEMON" = xyes; then
-   AC_MSG_ERROR([systemd support requested but no library has been 
found])
-   fi
-   AC_DEFINE(HAVE_SYSTEMD_DAEMON, 1, [Define to 1 if libsystemd-daemon is 
available])
--  REQUIRED_LIBS="$REQUIRED_LIBS libsystemd-daemon"
-+  REQUIRED_LIBS="$REQUIRED_LIBS $REQUIRED_SYSTEMD_DAEMON"
- fi
- AM_CONDITIONAL([HAVE_SYSTEMD_DAEMON], [test "x$HAVE_SYSTEMD_DAEMON" = "xyes"])
- 
--- 
-2.1.4
-
diff --git 
a/meta/recipes-graphics/xorg-xserver/xserver-xorg/modesetting_libdrm_requirements.patch
 
b/meta/recipes-graphics/xorg-xserver/xserver-xorg/modesetting_libdrm_requirements.patch
deleted file mode 100644
index 5f186cb..000
--- 
a/meta/recipes-graphics/xorg-xserver/xserver-xorg/modesetting_libdrm_requirements.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From bf23db42a4e5943129501223a47b48884cdeb62f Mon Sep 17 00:00:00 2001
-From: Adam Jackson 
-Date: Wed, 27 Jan 2016 11:50:13 -0500
-Subject: modesetting: Require sufficiently new libdrm
-
-Bugzilla: https://bugs.freedesktop.org/93883
-Signed-off-by: Adam Jackson 
-Reviewed-by: Alex Deucher 
-Reviewed-by: Julien Cristau 
-
-Upstream-Status: Backport
-Signed-off-by: Johannes Pointner 
-
-diff --git a/configure.ac b/configure.ac
-index ac3bb64..312fc69 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -2035,8 +2035,7 @@ if test "x$XORG" = xyes; then
- 
-   if test "x$DRM" = xyes; then
-   dnl 2.4.46 is required for cursor hotspot support.
--  PKG_CHECK_EXISTS(libdrm >= 2.4.46)
--  XORG_DRIVER_MODESETTING=yes
-+  PKG_CHECK_EXISTS(libdrm >= 2.4.46, XORG_DRIVER_MODESETTING=yes, 
XORG_DRIVER_MODESETTING=no)
-   fi
- 
-   AC_SUBST([XORG_LIBS])
--- 
-cgit v0.10.2
-
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.18.0.bb 
b/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.18.3.bb
similarity index 72%
rename from meta/recipes-graphics/xorg-xserver/xserver-xorg_1.18.0.bb
rename to meta/recipes-graphics/xorg-xserver/xserver-xorg_1.18.3.bb
index eb79b40..cdd2aa8 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.18.0.bb
+++ 

[OE-core] [PATCH 00/13] Upgrades around graphics stack

2016-05-12 Thread Jussi Kukkonen
Upgrades around X, Wayland and Mesa. Mostly point upgrades but the
Wayland upgrade is a fairly major one: their next release is also
around the corner so if there are problems you can drop wayland-
related bits and I can fix things in time for 1.11.

These have been sanity tested with sato and weston images. piglit
results are in line with previous mesa releases (~98% pass rate for
non-skipped tests on a NUC with Intel HD 5000).

Please take a look at the wayland-protocols patch: the recipe produces
a -dev package only, I wasn't sure if that's a thing I can/should do?

Thanks,
  Jussi

The following changes since commit 7ca60ec8bff7656b4e52f5a4d238913e851da089:

  test-empty-image: Fix LIC_FILES_CHKSUM typo (2016-05-06 10:48:06 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib jku/gfx-upgrades
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=jku/gfx-upgrades

Jussi Kukkonen (13):
  xserver-xorg: Upgrade 1.18.0 -> 1.18.3
  xrandr: Upgrade to 1.5.0
  xkeyboard-config: Upgrade to 2.17
  libinput: Upgrade 1.1.4 -> 1.3.0
  xf86-input-evdev: Upgrade 2.10.1 -> 2.10.2
  videoproto: Upgrade 2.3.2 -> 2.3.3
  libxkbcommon: Upgrade 0.5.0 -> 0.6.1
  libdrm: Upgrade 2.4.67 -> 2.4.68
  mesa: Upgrade 11.1.1 -> 11.2.2
  pixman: Upgrade 0.32.8 -> 0.34.0
  wayland: Upgrade 1.9.0 -> 1.10.0
  wayland-protocols: Add recipe
  weston: Upgrade 1.9.0 -> 1.10.0

 .../drm/{libdrm_2.4.67.bb => libdrm_2.4.68.bb} |  4 +-
 .../mesa/{mesa-gl_11.1.1.bb => mesa-gl_11.2.2.bb}  |  0
 .../mesa/{mesa_11.1.1.bb => mesa_11.2.2.bb}|  4 +-
 .../{libinput_1.1.4.bb => libinput_1.3.0.bb}   |  5 +-
 .../wayland-protocols/dont-use-AC_CANONICAL.patch  | 29 +
 .../wayland/wayland-protocols_1.3.bb   | 19 ++
 .../{wayland_1.9.0.bb => wayland_1.10.0.bb}|  6 +-
 ...c-Use-PKG_CONFIG_SYSROOT_DIR-for-protocol.patch | 30 ++
 .../weston/explicit-enable-disable-systemd.patch   | 70 --
 .../wayland/weston/libsystemd.patch| 53 
 .../weston/make-lcms-explicitly-configurable.patch | 43 -
 .../wayland/{weston_1.9.0.bb => weston_1.10.0.bb}  | 10 ++--
 .../xorg-app/{xrandr_1.4.3.bb => xrandr_1.5.0.bb}  |  4 +-
 ...-evdev_2.10.1.bb => xf86-input-evdev_2.10.2.bb} |  4 +-
 ...libxkbcommon_0.5.0.bb => libxkbcommon_0.6.1.bb} |  6 +-
 ...0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch | 65 
 .../xorg-lib/pixman/mips-export-revert.patch   | 22 ---
 .../{pixman_0.32.8.bb => pixman_0.34.0.bb} |  6 +-
 ...ard-config_2.16.bb => xkeyboard-config_2.17.bb} |  4 +-
 .../{videoproto_2.3.2.bb => videoproto_2.3.3.bb}   |  4 +-
 ac-Use-libsystemd-in-REQUIRED_LIBS-check.patch | 50 
 .../modesetting_libdrm_requirements.patch  | 30 --
 ...erver-xorg_1.18.0.bb => xserver-xorg_1.18.3.bb} |  8 +--
 23 files changed, 108 insertions(+), 368 deletions(-)
 rename meta/recipes-graphics/drm/{libdrm_2.4.67.bb => libdrm_2.4.68.bb} (92%)
 rename meta/recipes-graphics/mesa/{mesa-gl_11.1.1.bb => mesa-gl_11.2.2.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_11.1.1.bb => mesa_11.2.2.bb} (80%)
 rename meta/recipes-graphics/wayland/{libinput_1.1.4.bb => libinput_1.3.0.bb} 
(75%)
 create mode 100644 
meta/recipes-graphics/wayland/wayland-protocols/dont-use-AC_CANONICAL.patch
 create mode 100644 meta/recipes-graphics/wayland/wayland-protocols_1.3.bb
 rename meta/recipes-graphics/wayland/{wayland_1.9.0.bb => wayland_1.10.0.bb} 
(89%)
 create mode 100644 
meta/recipes-graphics/wayland/weston/0001-configure.ac-Use-PKG_CONFIG_SYSROOT_DIR-for-protocol.patch
 delete mode 100644 
meta/recipes-graphics/wayland/weston/explicit-enable-disable-systemd.patch
 delete mode 100644 meta/recipes-graphics/wayland/weston/libsystemd.patch
 delete mode 100644 
meta/recipes-graphics/wayland/weston/make-lcms-explicitly-configurable.patch
 rename meta/recipes-graphics/wayland/{weston_1.9.0.bb => weston_1.10.0.bb} 
(92%)
 rename meta/recipes-graphics/xorg-app/{xrandr_1.4.3.bb => xrandr_1.5.0.bb} 
(72%)
 rename meta/recipes-graphics/xorg-driver/{xf86-input-evdev_2.10.1.bb => 
xf86-input-evdev_2.10.2.bb} (83%)
 rename meta/recipes-graphics/xorg-lib/{libxkbcommon_0.5.0.bb => 
libxkbcommon_0.6.1.bb} (75%)
 delete mode 100644 
meta/recipes-graphics/xorg-lib/pixman/0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch
 delete mode 100644 
meta/recipes-graphics/xorg-lib/pixman/mips-export-revert.patch
 rename meta/recipes-graphics/xorg-lib/{pixman_0.32.8.bb => pixman_0.34.0.bb} 
(85%)
 rename meta/recipes-graphics/xorg-lib/{xkeyboard-config_2.16.bb => 
xkeyboard-config_2.17.bb} (88%)
 rename meta/recipes-graphics/xorg-proto/{videoproto_2.3.2.bb => 
videoproto_2.3.3.bb} (69%)
 delete mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/configure.ac-Use-libsystemd-in-REQUIRED_LIBS-check.patch
 delete mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/modesetting_libdrm_requirements.patch
 

Re: [OE-core] [PATCH 24/42] python-native: Point to expat in native sysroot

2016-05-12 Thread Khem Raj
Added missed dependency on expat-native as well is required pushed a v2 of this 
patch as well. It was saught during world build on musl


> On May 11, 2016, at 10:35 AM, Khem Raj  wrote:
> 
> This fixes inconsistency where expat dependency is
> then depending upon build host having it or not having it
> 
> Fixes errors like
> WARNING: renaming "pyexpat" since importing it failed: 
> build/lib.linux-x86_64-2.7/pyexpat.so: undefined symbol: XML_SetCommentHandler
> 
> also reported here
> https://dev.openwrt.org/ticket/20087
> 
> This work due to the fact that we use -isystem pointing to native sysroot
> so the search order of native includedir is moved after buildhosts system
> includdirs. Moment we replace it with -I, build falls apart
> 
> Signed-off-by: Khem Raj 
> ---
> meta/recipes-devtools/python/python-native_2.7.11.bb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-devtools/python/python-native_2.7.11.bb 
> b/meta/recipes-devtools/python/python-native_2.7.11.bb
> index 4c204a4..add8868 100644
> --- a/meta/recipes-devtools/python/python-native_2.7.11.bb
> +++ b/meta/recipes-devtools/python/python-native_2.7.11.bb
> @@ -27,7 +27,7 @@ inherit native
> 
> RPROVIDES += "python-distutils-native python-compression-native 
> python-textutils-native python-codecs-native python-core-native 
> python-unittest-native"
> 
> -EXTRA_OECONF_append = " --bindir=${bindir}/${PN}"
> +EXTRA_OECONF_append = " --bindir=${bindir}/${PN} 
> --with-system-expat=${STAGING_DIR_HOST}"
> 
> EXTRA_OEMAKE = '\
>   BUILD_SYS="" \
> --
> 2.8.2
> 



signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core