Re: [OE-core] [for-krogoth] Backport for libc != glibc

2016-06-20 Thread akuster808


On 06/20/2016 09:08 AM, Otavio Salvador wrote:
> On Mon, Jun 20, 2016 at 1:04 PM, Khem Raj  wrote:
> ...
>>> Could those be reviewed and queued for the next backport?
>>
>> They look fine for backport to krogoth. Please submit pull requests
> 
> Armin can easily pick them; I gave the OE-Core hashes.

Ok got them. running test builds.

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


Re: [OE-core] [PATCH v4] qemu-native: set ld.bfd, fix cflags, and set some environment vars

2016-06-20 Thread Stephen Arnold
And I finally figured out git send-email no longer has a
--subject-prefix= option so it looks like --compose and hand-edit the
Subject line in the patch is the only way to increment the version.

This is [PATCH v4] btw...

Steve

On Mon, Jun 20, 2016 at 5:54 PM, Stephen Arnold  wrote:
> The main thing is build failures with gold linker, but qemu is also a
> little too aggressive at finding random tools on the build host, so we
> also set the build env for qemu-native and make sure it doesn't reset
> its own (hard-coded) cflags when we don't want it to.
>
> Signed-off-by: Stephen Arnold 
>
> The cflags patch was imported from Gentoo Portage and has been
> manitained over several versions; this version was rebased against
> upstream qemu git.
>
> Upstream-Status: Inappropriate
>  - Patch addresses distribution maintenance and build environment
>sanity.
>
> Signed-off-by: Stephen Arnold 
> ---
>  meta/recipes-devtools/qemu/qemu.inc| 11 ++--
>  .../qemu/qemu/qemu-2.6.0-cflags.patch  | 31 
> ++
>  meta/recipes-devtools/qemu/qemu_2.6.0.bb   |  1 +
>  3 files changed, 41 insertions(+), 2 deletions(-)
>  create mode 100644 meta/recipes-devtools/qemu/qemu/qemu-2.6.0-cflags.patch
>
> diff --git a/meta/recipes-devtools/qemu/qemu.inc 
> b/meta/recipes-devtools/qemu/qemu.inc
> index bf689bb..0a68f05 100644
> --- a/meta/recipes-devtools/qemu/qemu.inc
> +++ b/meta/recipes-devtools/qemu/qemu.inc
> @@ -30,8 +30,10 @@ SRC_URI_append_class-native = "\
>
>  EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror  
> --disable-bluez --disable-libiscsi --with-system-pixman 
> --extra-cflags='${CFLAGS}'"
>
> -EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} 
> --disable-werror \
> -   "
> +EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} 
> --disable-werror"
> +
> +EXTRA_OEMAKE_append_class-native = " LD="${TARGET_PREFIX}ld.bfd" AR="${AR}" 
> OBJCOPY="${OBJCOPY}" LDFLAGS="${LDFLAGS}""
> +
>  export LIBTOOL="${HOST_SYS}-libtool"
>
>  do_configure_prepend_class-native() {
> @@ -40,6 +42,11 @@ do_configure_prepend_class-native() {
> if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
> export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
> fi
> +
> +   # Alter target makefiles to accept CFLAGS set via env
> +   sed -i -r \
> +   -e 's/^(C|OP_C|HELPER_C)FLAGS=/\1FLAGS+=/' \
> +   "${S}"/Makefile "${S}"/Makefile.target
>  }
>
>  KVMENABLE = "--enable-kvm"
> diff --git a/meta/recipes-devtools/qemu/qemu/qemu-2.6.0-cflags.patch 
> b/meta/recipes-devtools/qemu/qemu/qemu-2.6.0-cflags.patch
> new file mode 100644
> index 000..5b78edf
> --- /dev/null
> +++ b/meta/recipes-devtools/qemu/qemu/qemu-2.6.0-cflags.patch
> @@ -0,0 +1,31 @@
> +From 5d29baaf7a8c09f2f97231116e0f396b0402b23d Mon Sep 17 00:00:00 2001
> +From: Steve Arnold 
> +Date: Sun, 19 Jun 2016 11:29:44 -0700
> +Subject: [PATCH] configure: remove hard-coded flags and let build env handle
> + it
> +
> +Apply distribution patch for handling debug and fortify source options.
> +
> +Signed-off-by: Steve Arnold 
> +---
> + configure | 4 
> + 1 file changed, 4 deletions(-)
> +
> +diff --git a/configure b/configure
> +index 10cb212..6f1b10c 100755
> +--- a/configure
>  b/configure
> +@@ -4539,10 +4539,6 @@ fi
> + if test "$gcov" = "yes" ; then
> +   CFLAGS="-fprofile-arcs -ftest-coverage -g $CFLAGS"
> +   LDFLAGS="-fprofile-arcs -ftest-coverage $LDFLAGS"
> +-elif test "$fortify_source" = "yes" ; then
> +-  CFLAGS="-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS"
> +-elif test "$debug" = "no"; then
> +-  CFLAGS="-O2 $CFLAGS"
> + fi
> +
> + ##
> +--
> +2.8.1
> +
> diff --git a/meta/recipes-devtools/qemu/qemu_2.6.0.bb 
> b/meta/recipes-devtools/qemu/qemu_2.6.0.bb
> index e391326..62c509b 100644
> --- a/meta/recipes-devtools/qemu/qemu_2.6.0.bb
> +++ b/meta/recipes-devtools/qemu/qemu_2.6.0.bb
> @@ -8,6 +8,7 @@ SRC_URI += 
> "file://configure-fix-Darwin-target-detection.patch \
>  file://Qemu-Arm-versatilepb-Add-memory-size-checking.patch \
>  file://no-valgrind.patch \
>  file://pathlimit.patch \
> +file://qemu-2.5.0-cflags.patch \
> "
>  SRC_URI_prepend = "http://wiki.qemu-project.org/download/${BP}.tar.bz2;
>  SRC_URI[md5sum] = "ca3f70b43f093e33e9e014f144067f13"
> --
> 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

[OE-core] [PATCH] qemu-native: set ld.bfd, fix cflags, and set some environment vars

2016-06-20 Thread Stephen Arnold
The main thing is build failures with gold linker, but qemu is also a
little too aggressive at finding random tools on the build host, so we
also set the build env for qemu-native and make sure it doesn't reset
its own (hard-coded) cflags when we don't want it to.

Signed-off-by: Stephen Arnold 

The cflags patch was imported from Gentoo Portage and has been
manitained over several versions; this version was rebased against
upstream qemu git.

Upstream-Status: Inappropriate
 - Patch addresses distribution maintenance and build environment
   sanity.

Signed-off-by: Stephen Arnold 
---
 meta/recipes-devtools/qemu/qemu.inc| 11 ++--
 .../qemu/qemu/qemu-2.6.0-cflags.patch  | 31 ++
 meta/recipes-devtools/qemu/qemu_2.6.0.bb   |  1 +
 3 files changed, 41 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-devtools/qemu/qemu/qemu-2.6.0-cflags.patch

diff --git a/meta/recipes-devtools/qemu/qemu.inc 
b/meta/recipes-devtools/qemu/qemu.inc
index bf689bb..0a68f05 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -30,8 +30,10 @@ SRC_URI_append_class-native = "\
 
 EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror  
--disable-bluez --disable-libiscsi --with-system-pixman 
--extra-cflags='${CFLAGS}'"
 
-EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} 
--disable-werror \
-   "
+EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} 
--disable-werror"
+
+EXTRA_OEMAKE_append_class-native = " LD="${TARGET_PREFIX}ld.bfd" AR="${AR}" 
OBJCOPY="${OBJCOPY}" LDFLAGS="${LDFLAGS}""
+
 export LIBTOOL="${HOST_SYS}-libtool"
 
 do_configure_prepend_class-native() {
@@ -40,6 +42,11 @@ do_configure_prepend_class-native() {
if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
fi
+
+   # Alter target makefiles to accept CFLAGS set via env
+   sed -i -r \
+   -e 's/^(C|OP_C|HELPER_C)FLAGS=/\1FLAGS+=/' \
+   "${S}"/Makefile "${S}"/Makefile.target
 }
 
 KVMENABLE = "--enable-kvm"
diff --git a/meta/recipes-devtools/qemu/qemu/qemu-2.6.0-cflags.patch 
b/meta/recipes-devtools/qemu/qemu/qemu-2.6.0-cflags.patch
new file mode 100644
index 000..5b78edf
--- /dev/null
+++ b/meta/recipes-devtools/qemu/qemu/qemu-2.6.0-cflags.patch
@@ -0,0 +1,31 @@
+From 5d29baaf7a8c09f2f97231116e0f396b0402b23d Mon Sep 17 00:00:00 2001
+From: Steve Arnold 
+Date: Sun, 19 Jun 2016 11:29:44 -0700
+Subject: [PATCH] configure: remove hard-coded flags and let build env handle
+ it
+
+Apply distribution patch for handling debug and fortify source options.
+
+Signed-off-by: Steve Arnold 
+---
+ configure | 4 
+ 1 file changed, 4 deletions(-)
+
+diff --git a/configure b/configure
+index 10cb212..6f1b10c 100755
+--- a/configure
 b/configure
+@@ -4539,10 +4539,6 @@ fi
+ if test "$gcov" = "yes" ; then
+   CFLAGS="-fprofile-arcs -ftest-coverage -g $CFLAGS"
+   LDFLAGS="-fprofile-arcs -ftest-coverage $LDFLAGS"
+-elif test "$fortify_source" = "yes" ; then
+-  CFLAGS="-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS"
+-elif test "$debug" = "no"; then
+-  CFLAGS="-O2 $CFLAGS"
+ fi
+ 
+ ##
+-- 
+2.8.1
+
diff --git a/meta/recipes-devtools/qemu/qemu_2.6.0.bb 
b/meta/recipes-devtools/qemu/qemu_2.6.0.bb
index e391326..62c509b 100644
--- a/meta/recipes-devtools/qemu/qemu_2.6.0.bb
+++ b/meta/recipes-devtools/qemu/qemu_2.6.0.bb
@@ -8,6 +8,7 @@ SRC_URI += "file://configure-fix-Darwin-target-detection.patch \
 file://Qemu-Arm-versatilepb-Add-memory-size-checking.patch \
 file://no-valgrind.patch \
 file://pathlimit.patch \
+file://qemu-2.5.0-cflags.patch \
"
 SRC_URI_prepend = "http://wiki.qemu-project.org/download/${BP}.tar.bz2;
 SRC_URI[md5sum] = "ca3f70b43f093e33e9e014f144067f13"
-- 
2.8.1

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


[OE-core] [PATCH] openssh: add systemd service file sshd.service

2016-06-20 Thread Dai, Caiyun
ping


If sysvinit is disabled from DISTRO_FEATURES,then /etc/init.d/sshd will be 
removed,and this will cause sshd daemon failed to start by systemd, So add it.

Signed-off-by: Li Xin 
---
 .../recipes-connectivity/openssh/openssh/sshd.service | 19 +++
 meta/recipes-connectivity/openssh/openssh_7.1p2.bb|  9 +++--
 2 files changed, 26 insertions(+), 2 deletions(-)  create mode 100644 
meta/recipes-connectivity/openssh/openssh/sshd.service

diff --git a/meta/recipes-connectivity/openssh/openssh/sshd.service 
b/meta/recipes-connectivity/openssh/openssh/sshd.service
new file mode 100644
index 000..6c05f23
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/sshd.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=OpenSSH server daemon
+Documentation=man:sshd(8) man:sshd_config(5) After=network.target 
+sshd-keygen.service Wants=sshd-keygen.service
+
+[Service]
+Type=forking
+PIDFile=@localstatedir@/run/sshd.pid
+EnvironmentFile=-@SYSCONFDIR@/sysconfig/sshd
+ExecStart=@SBINDIR@/sshd $OPTIONS
+ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID KillMode=process 
+Restart=on-failure RestartSec=42s
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/meta/recipes-connectivity/openssh/openssh_7.1p2.bb 
b/meta/recipes-connectivity/openssh/openssh_7.1p2.bb
index 3b5e28a..8b31b40 100644
--- a/meta/recipes-connectivity/openssh/openssh_7.1p2.bb
+++ b/meta/recipes-connectivity/openssh/openssh_7.1p2.bb
@@ -23,7 +23,9 @@ SRC_URI = 
"ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar.
file://run-ptest \
file://CVE-2016-1907_upstream_commit.patch \
file://CVE-2016-1907_2.patch \
-   file://CVE-2016-1907_3.patch "
+   file://CVE-2016-1907_3.patch \
+   file://sshd.service"
+
 
 PAM_SRC_URI = "file://sshd"
 
@@ -39,7 +41,7 @@ INITSCRIPT_NAME_${PN}-sshd = "sshd"
 INITSCRIPT_PARAMS_${PN}-sshd = "defaults 9"
 
 SYSTEMD_PACKAGES = "${PN}-sshd"
-SYSTEMD_SERVICE_${PN}-sshd = "sshd.socket"
+SYSTEMD_SERVICE_${PN}-sshd = "sshd.socket sshd.service"
 
 inherit autotools-brokensep ptest
 
@@ -118,9 +120,12 @@ do_install_append () {
install -c -m 0644 ${WORKDIR}/sshd.socket ${D}${systemd_unitdir}/system
install -c -m 0644 ${WORKDIR}/sshd@.service 
${D}${systemd_unitdir}/system
install -c -m 0644 ${WORKDIR}/sshdgenkeys.service 
${D}${systemd_unitdir}/system
+   install -c -m 0644 ${WORKDIR}/sshd.service 
+${D}${systemd_unitdir}/system
sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
-e 's,@SBINDIR@,${sbindir},g' \
-e 's,@BINDIR@,${bindir},g' \
+   -e 's,@SYSCONFDIR@,${sysconfdir},g' \
+   -e 's,@localstatedir@,${localstatedir},g' \
${D}${systemd_unitdir}/system/sshd.socket 
${D}${systemd_unitdir}/system/*.service
 }
 
--
1.8.4.2



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


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


Re: [OE-core] [PATCH 29/37] sysprof: Upgrade to git version slightly past 3.20

2016-06-20 Thread Burton, Ross
On 20 June 2016 at 21:08, Martin Jansa  wrote:

> sysprof-3.20.0+gitAUTOINC+9c6cec9b49: sysprof: Files/directories were
> installed but not shipped in any package:
>   /lib
>   /usr/share/dbus-1
>   /usr/share/dbus-1/system.d
>   /usr/share/dbus-1/system-services
>   /usr/share/dbus-1/system.d/org.gnome.Sysprof2.conf
>   /usr/share/dbus-1/system-services/org.gnome.Sysprof2.service
>   /lib/systemd
>   /lib/systemd/system
>   /lib/systemd/system/sysprof2.service
> Please set FILES such that these items are packaged. Alternatively if they
> are unneeded, avoid installing them or delete them within do_install.
> sysprof: 9 installed and not shipped files. [installed-vs-shipped]
> sysprof-3.20.0+gitAUTOINC+9c6cec9b49: sysprof rdepends on polkit, but it
> isn't a build dependency, missing polkit in DEPENDS or PACKAGECONFIG?
> [build-deps]
>

Thanks, I noticed this in a long-running build but was travelling so
couldn't reply.

Jussi, this happens if you have systemd and policykit present in the
sysroot.

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


Re: [OE-core] [oe] Patchwork users: Help test new version

2016-06-20 Thread Burton, Ross
On 20 June 2016 at 18:47, Michael Halstead 
wrote:

> OpenEmbedded is nearly ready to upgrade to a new version of Patchwork.
> The new version offers several new features that will allow OpenEmbedded
> to improve developer workflow and automated checks on incoming patches.
>

Woohoo!

Thanks Michael (and everyone else who helped on this over the months).

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


Re: [OE-core] [PATCH 29/37] sysprof: Upgrade to git version slightly past 3.20

2016-06-20 Thread Martin Jansa
This upgrade seems to cause following issues:

sysprof-3.20.0+gitAUTOINC+9c6cec9b49: sysprof: Files/directories were
installed but not shipped in any package:
  /lib
  /usr/share/dbus-1
  /usr/share/dbus-1/system.d
  /usr/share/dbus-1/system-services
  /usr/share/dbus-1/system.d/org.gnome.Sysprof2.conf
  /usr/share/dbus-1/system-services/org.gnome.Sysprof2.service
  /lib/systemd
  /lib/systemd/system
  /lib/systemd/system/sysprof2.service
Please set FILES such that these items are packaged. Alternatively if they
are unneeded, avoid installing them or delete them within do_install.
sysprof: 9 installed and not shipped files. [installed-vs-shipped]
sysprof-3.20.0+gitAUTOINC+9c6cec9b49: sysprof rdepends on polkit, but it
isn't a build dependency, missing polkit in DEPENDS or PACKAGECONFIG?
[build-deps]

On Tue, Jun 7, 2016 at 10:47 AM, Jussi Kukkonen 
wrote:

> New version uses Gtk+3.
>
> 3.20 release requires a bunch of fixes to build without polkit,
> this git revision inclues those fixes.
>
> Signed-off-by: Jussi Kukkonen 
> ---
>  .../sysprof/files/0001-Avoid-building-docs.patch   | 42
> ++
>  .../0001-Disable-check-for-polkit-for-UI.patch | 32 +
>  .../sysprof/files/define-NT_GNU_BUILD_ID.patch |  4 +--
>  .../sysprof/files/gui-argument.patch   | 35 --
>  meta/recipes-kernel/sysprof/files/rmb-arm.patch| 21 ---
>  meta/recipes-kernel/sysprof/files/rmb-mips.patch   | 22 
>  meta/recipes-kernel/sysprof/sysprof_git.bb | 32 +
>  7 files changed, 93 insertions(+), 95 deletions(-)
>  create mode 100644
> meta/recipes-kernel/sysprof/files/0001-Avoid-building-docs.patch
>  create mode 100644
> meta/recipes-kernel/sysprof/files/0001-Disable-check-for-polkit-for-UI.patch
>  delete mode 100644 meta/recipes-kernel/sysprof/files/gui-argument.patch
>  delete mode 100644 meta/recipes-kernel/sysprof/files/rmb-arm.patch
>  delete mode 100644 meta/recipes-kernel/sysprof/files/rmb-mips.patch
>
> diff --git
> a/meta/recipes-kernel/sysprof/files/0001-Avoid-building-docs.patch
> b/meta/recipes-kernel/sysprof/files/0001-Avoid-building-docs.patch
> new file mode 100644
> index 000..202f354
> --- /dev/null
> +++ b/meta/recipes-kernel/sysprof/files/0001-Avoid-building-docs.patch
> @@ -0,0 +1,42 @@
> +From 27df521c68e7c8b5b050dab15f40aa15fd03623a Mon Sep 17 00:00:00 2001
> +From: Jussi Kukkonen 
> +Date: Wed, 4 May 2016 14:58:24 +0300
> +Subject: [PATCH] Avoid building docs
> +
> +Upstream-Status: Inappropriate
> +Signed-off-by: Jussi Kukkonen 
> +---
> + Makefile.am | 2 +-
> + m4/yelp.m4  | 6 --
> + 2 files changed, 1 insertion(+), 7 deletions(-)
> +
> +diff --git a/Makefile.am b/Makefile.am
> +index b919a3f..3a3851d 100644
> +--- a/Makefile.am
>  b/Makefile.am
> +@@ -1,4 +1,4 @@
> +-SUBDIRS = daemon data help lib po src tools tests
> ++SUBDIRS = daemon data lib po src tools tests
> +
> + EXTRA_DIST = AUTHORS tap-test COPYING.gpl-2
> +
> +diff --git a/m4/yelp.m4 b/m4/yelp.m4
> +index 5db847f..1b6ede4 100644
> +--- a/m4/yelp.m4
>  b/m4/yelp.m4
> +@@ -27,12 +27,6 @@ AC_ARG_WITH([help-dir],
> + HELP_DIR="$with_help_dir"
> + AC_SUBST(HELP_DIR)
> +
> +-AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
> +-AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
> +-if test x"$ITSTOOL" = x; then
> +-  AC_MSG_ERROR([itstool not found])
> +-fi
> +-
> + AC_ARG_VAR([XMLLINT], [Path to the `xmllint` command])
> + AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
> + if test x"$XMLLINT" = x; then
> +--
> +2.1.4
> +
> diff --git
> a/meta/recipes-kernel/sysprof/files/0001-Disable-check-for-polkit-for-UI.patch
> b/meta/recipes-kernel/sysprof/files/0001-Disable-check-for-polkit-for-UI.patch
> new file mode 100644
> index 000..6085232
> --- /dev/null
> +++
> b/meta/recipes-kernel/sysprof/files/0001-Disable-check-for-polkit-for-UI.patch
> @@ -0,0 +1,32 @@
> +From 765d578145e31ddc9495adfab8037ade33c6a9cc Mon Sep 17 00:00:00 2001
> +From: Jussi Kukkonen 
> +Date: Wed, 4 May 2016 10:59:36 +0300
> +Subject: [PATCH] Disable check for polkit for UI
> +
> +The check is not technically required: sysprof just needs
> +to be able to access system perf counters at runtime.
> +
> +Upstream-Status: Pending
> +Signed-off-by: Jussi Kukkonen 
> +---
> + configure.ac | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/configure.ac b/configure.ac
> +index 8559597..ecf93ad 100644
> +--- a/configure.ac
>  b/configure.ac
> +@@ -131,8 +131,8 @@ AS_IF([test "$enable_gtk" = auto],[
> +   AS_IF([test "$have_gtk" = "yes" && test "$have_polkit" =
> "yes"],[enable_gtk=yes],[enable_gtk=no])
> + ])
> + AS_IF([test "$enable_gtk" = "yes"],[
> +-  AS_IF([test "$have_gtk" = "yes" && test "$have_polkit" =
> "yes"],[],[
> +-  

[OE-core] [PATCH 2/2] initramfs-framework: base: Ensures /run/lock is available

2016-06-20 Thread Otavio Salvador
Depending on the module we use, the /run/lock may be required. This
creates it as part of initial setup and thus makes it available for
every sub module.

Signed-off-by: Otavio Salvador 
---

 meta/recipes-core/initrdscripts/initramfs-framework/init | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init 
b/meta/recipes-core/initrdscripts/initramfs-framework/init
index 204f237..37527a8 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/init
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/init
@@ -76,8 +76,8 @@ MODULES_DIR=/init.d  # place to look for modules
 # make mount stop complaining about missing /etc/fstab
 touch /etc/fstab
 
-# initialize /proc, /sys and /var/lock
-mkdir -p /proc /sys /var/lock
+# initialize /proc, /sys, /run/lock and /var/lock
+mkdir -p /proc /sys /run/lock /var/lock
 mount -t proc proc /proc
 mount -t sysfs sysfs /sys
 
-- 
2.8.3

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


[OE-core] [PATCH 1/2] initramfs-framework: mdev: Add a runtime dependency on busybox-mdev

2016-06-20 Thread Otavio Salvador
The mdev support relies on the mdev support inside busybox, which thus
builds the busybox-mdev package. Adding the runtime dependency ensures
its installation fails if mdev support is disabled.

Signed-off-by: Otavio Salvador 
---

 meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb 
b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
index 0664a95..e5cf9cb 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
+++ b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
@@ -50,7 +50,7 @@ PACKAGES = "${PN}-base \
 FILES_${PN}-base = "/init /init.d/99-finish /dev"
 
 SUMMARY_initramfs-module-mdev = "initramfs support for mdev"
-RDEPENDS_initramfs-module-mdev = "${PN}-base"
+RDEPENDS_initramfs-module-mdev = "${PN}-base busybox-mdev"
 FILES_initramfs-module-mdev = "/init.d/01-mdev"
 
 SUMMARY_initramfs-module-udev = "initramfs support for udev"
-- 
2.8.3

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


[OE-core] [PATCH v3 5/5] linux-firmware : add iwlwifi-misc package for remaining iwlwifi firmware

2016-06-20 Thread christopher . w . clark
From: Christopher Clark 

Package all remaining iwlwifi firmwares that are not individually
packaged into a single package. This is distinct from the virtual
linux-firmware-iwlwifi package so that the -misc firmwares can be
installed without pulling in all other firmwares via dependencies.

Signed-off-by: Christopher Clark 
---
 meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 10 ++
 1 file changed, 10 insertions(+)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
index 947e79b..fd2403f 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
@@ -229,6 +229,7 @@ PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \
  ${PN}-iwlwifi-7260 \
  ${PN}-iwlwifi-7265 \
  ${PN}-iwlwifi-7265d ${PN}-iwlwifi-8000c ${PN}-iwlwifi-8265 \
+ ${PN}-iwlwifi-misc \
  ${PN}-i915-license ${PN}-i915 \
  ${PN}-adsp-sst-license ${PN}-adsp-sst \
  ${PN}-bnx2-mips \
@@ -462,6 +463,7 @@ LICENSE_${PN}-iwlwifi-7265  = 
"Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-7265d = "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-8000c = "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-8265  = "Firmware-iwlwifi_firmware"
+LICENSE_${PN}-iwlwifi-misc  = "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-license   = "Firmware-iwlwifi_firmware"
 
 
@@ -482,6 +484,7 @@ FILES_${PN}-iwlwifi-7265   = 
"/lib/firmware/iwlwifi-7265-*.ucode"
 FILES_${PN}-iwlwifi-7265d   = "/lib/firmware/iwlwifi-7265D-*.ucode"
 FILES_${PN}-iwlwifi-8000c   = "/lib/firmware/iwlwifi-8000C-*.ucode"
 FILES_${PN}-iwlwifi-8265   = "/lib/firmware/iwlwifi-8265-*.ucode"
+FILES_${PN}-iwlwifi-misc   = "/lib/firmware/iwlwifi-*.ucode"
 
 RDEPENDS_${PN}-iwlwifi-135-6 = "${PN}-iwlwifi-license"
 RDEPENDS_${PN}-iwlwifi-3160-7= "${PN}-iwlwifi-license"
@@ -499,8 +502,15 @@ RDEPENDS_${PN}-iwlwifi-7265  = "${PN}-iwlwifi-license"
 RDEPENDS_${PN}-iwlwifi-7265d = "${PN}-iwlwifi-license"
 RDEPENDS_${PN}-iwlwifi-8000c = "${PN}-iwlwifi-license"
 RDEPENDS_${PN}-iwlwifi-8265  = "${PN}-iwlwifi-license"
+RDEPENDS_${PN}-iwlwifi-misc  = "${PN}-iwlwifi-license"
 
+# -iwlwifi-misc is a "catch all" package that includes all the iwlwifi
+# firmwares that are not already included in other -iwlwifi- packages.
+# -iwlwifi is a virtual package that depends upon all iwlwifi packages.
+# These are distinct in order to allow the -misc firmwares to be installed
+# without pulling in every other iwlwifi package.
 ALLOW_EMPTY_${PN}-iwlwifi = "1"
+ALLOW_EMPTY_${PN}-iwlwifi-misc = "1"
 
 # Handle package updating for the newly merged iwlwifi groupings
 RPROVIDES_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-7265-8 ${PN}-iwlwifi-7265-9"
-- 
2.1.4

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


[OE-core] [PATCH v3 4/5] linux-firmware : add iwlwifi virtual package of all iwlwifi firmwares

2016-06-20 Thread christopher . w . clark
From: Christopher Clark 

Depends upon all available iwlwifi firmware packages at build time.
Fix typo in ALLOW_EMPTY of earlier version.

Motivation: simplifies inclusion of all Intel wifi firmwares.

Signed-off-by: Christopher Clark 
---
 meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
index cdc7315..947e79b 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
@@ -220,7 +220,8 @@ PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \
  ${PN}-atheros-license ${PN}-ar9170 ${PN}-ath6k ${PN}-ath9k \
  ${PN}-ar3k-license  ${PN}-ar3k  ${PN}-ath10k-license  
${PN}-ath10k  \
  \
- ${PN}-iwlwifi-license ${PN}-iwlwifi-135-6 \
+ ${PN}-iwlwifi-license ${PN}-iwlwifi \
+ ${PN}-iwlwifi-135-6 \
  ${PN}-iwlwifi-3160-7 ${PN}-iwlwifi-3160-8 ${PN}-iwlwifi-3160-9 \
  ${PN}-iwlwifi-6000-4 ${PN}-iwlwifi-6000g2a-5 
${PN}-iwlwifi-6000g2a-6 \
  ${PN}-iwlwifi-6000g2b-5 ${PN}-iwlwifi-6000g2b-6 \
@@ -444,6 +445,7 @@ FILES_${PN}-whence-license = "/lib/firmware/WHENCE"
 RDEPENDS_${PN}-bnx2-mips += "${PN}-whence-license"
 
 # For iwlwifi
+LICENSE_${PN}-iwlwifi   = "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-135-6 = "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-3160-7= "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-3160-8= "Firmware-iwlwifi_firmware"
@@ -498,6 +500,8 @@ RDEPENDS_${PN}-iwlwifi-7265d = "${PN}-iwlwifi-license"
 RDEPENDS_${PN}-iwlwifi-8000c = "${PN}-iwlwifi-license"
 RDEPENDS_${PN}-iwlwifi-8265  = "${PN}-iwlwifi-license"
 
+ALLOW_EMPTY_${PN}-iwlwifi = "1"
+
 # Handle package updating for the newly merged iwlwifi groupings
 RPROVIDES_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-7265-8 ${PN}-iwlwifi-7265-9"
 RREPLACES_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-7265-8 ${PN}-iwlwifi-7265-9"
@@ -571,7 +575,11 @@ RDEPENDS_${PN} += "${PN}-license"
 RDEPENDS_${PN} += "${PN}-whence-license"
 
 # Make linux-firmware depend on all of the split-out packages.
+# Make linux-firmware-iwlwifi depend on all of the split-out iwlwifi packages.
 python populate_packages_prepend () {
 firmware_pkgs = oe.utils.packages_filter_out_system(d)
 d.appendVar('RDEPENDS_linux-firmware', ' ' + ' '.join(firmware_pkgs))
+
+iwlwifi_pkgs = filter(lambda x: x.find('-iwlwifi-') != -1, firmware_pkgs)
+d.appendVar('RDEPENDS_linux-firmware-iwlwifi', ' ' + ' 
'.join(iwlwifi_pkgs))
 }
-- 
2.1.4

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


[OE-core] [PATCH v3 3/5] linux-firmware : fix typo in RDEPENDS line for iwlwifi-6000g2b-5

2016-06-20 Thread christopher . w . clark
From: Christopher Clark 

Signed-off-by: Christopher Clark 
---
 meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
index bce2c0b..cdc7315 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
@@ -488,7 +488,7 @@ RDEPENDS_${PN}-iwlwifi-3160-9= "${PN}-iwlwifi-license"
 RDEPENDS_${PN}-iwlwifi-6000-4= "${PN}-iwlwifi-license"
 RDEPENDS_${PN}-iwlwifi-6000g2a-5 = "${PN}-iwlwifi-license"
 RDEPENDS_${PN}-iwlwifi-6000g2a-6 = "${PN}-iwlwifi-license"
-RDEPENDS_${PN}-iwlwifi-6000g2a-5 = "${PN}-iwlwifi-license"
+RDEPENDS_${PN}-iwlwifi-6000g2b-5 = "${PN}-iwlwifi-license"
 RDEPENDS_${PN}-iwlwifi-6000g2b-6 = "${PN}-iwlwifi-license"
 RDEPENDS_${PN}-iwlwifi-6050-4= "${PN}-iwlwifi-license"
 RDEPENDS_${PN}-iwlwifi-6050-5= "${PN}-iwlwifi-license"
-- 
2.1.4

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


[OE-core] [PATCH v3 1/5] linux-firmware : fix typo in LICENSE line for iwlwifi-6000g2b-5

2016-06-20 Thread christopher . w . clark
From: Christopher Clark 

Signed-off-by: Christopher Clark 
---
 meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
index 52fd176..c39a9ca 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
@@ -451,7 +451,7 @@ LICENSE_${PN}-iwlwifi-3160-9= 
"Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-6000-4= "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-6000g2a-5 = "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-6000g2a-6 = "Firmware-iwlwifi_firmware"
-LICENSE_${PN}-iwlwifi-6000g2a-5 = "Firmware-iwlwifi_firmware"
+LICENSE_${PN}-iwlwifi-6000g2b-5 = "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-6000g2b-6 = "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-6050-4= "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-6050-5= "Firmware-iwlwifi_firmware"
-- 
2.1.4

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


[OE-core] [PATCH v3 2/5] linux-firmware : add LICENSE line for iwlwifi-license package

2016-06-20 Thread christopher . w . clark
From: Christopher Clark 

Signed-off-by: Christopher Clark 
---
 meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
index c39a9ca..bce2c0b 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
@@ -460,6 +460,7 @@ LICENSE_${PN}-iwlwifi-7265  = 
"Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-7265d = "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-8000c = "Firmware-iwlwifi_firmware"
 LICENSE_${PN}-iwlwifi-8265  = "Firmware-iwlwifi_firmware"
+LICENSE_${PN}-iwlwifi-license   = "Firmware-iwlwifi_firmware"
 
 
 FILES_${PN}-iwlwifi-license = "/lib/firmware/LICENCE.iwlwifi_firmware"
-- 
2.1.4

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


[OE-core] Patchwork users: Help test new version

2016-06-20 Thread Michael Halstead
Hello,

OpenEmbedded is nearly ready to upgrade to a new version of Patchwork.
The new version offers several new features that will allow OpenEmbedded
to improve developer workflow and automated checks on incoming patches.

If you are a Patchwork user please visit
https://patchwork-next.openembedded.org/ and take a look. If you find
anything amiss please e-mail me directly and include patchwork in the
subject line.

Thank you for your help upgrading this important system!

-- 
Michael Halstead
Linux Foundation / SysAdmin
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 1/3] oeqa/targetbuild: fix folder name estimate logic

2016-06-20 Thread Ross Burton
The re.sub() used to transform a tarball into a best guess folder name wasn't
right, as there isn't enough escaping and tar.xz was missing.

Signed-off-by: Ross Burton 
---
 meta/lib/oeqa/utils/targetbuild.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/utils/targetbuild.py 
b/meta/lib/oeqa/utils/targetbuild.py
index d538f6b..6177a12 100644
--- a/meta/lib/oeqa/utils/targetbuild.py
+++ b/meta/lib/oeqa/utils/targetbuild.py
@@ -17,9 +17,10 @@ class BuildProject(metaclass=ABCMeta):
 self.uri = uri
 self.archive = os.path.basename(uri)
 self.localarchive = os.path.join(tmpdir,self.archive)
-self.fname = re.sub(r'.tar.bz2|tar.gz$', '', self.archive)
 if foldername:
 self.fname = foldername
+else:
+self.fname = re.sub(r'\.tar\.bz2$|\.tar\.gz$|\.tar\.xz$', '', 
self.archive)
 
 # Download self.archive to self.localarchive
 def _download_archive(self):
-- 
2.8.1

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


[OE-core] [PATCH 3/3] oeqa/targetbuild: use os.path.join instead of string concatenation

2016-06-20 Thread Ross Burton
Signed-off-by: Ross Burton 
---
 meta/lib/oeqa/utils/targetbuild.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/utils/targetbuild.py 
b/meta/lib/oeqa/utils/targetbuild.py
index f087670..59593f5 100644
--- a/meta/lib/oeqa/utils/targetbuild.py
+++ b/meta/lib/oeqa/utils/targetbuild.py
@@ -117,7 +117,7 @@ class SDKBuildProject(BuildProject):
 subprocess.check_call(cmd, shell=True)
 
 #Change targetdir to project folder
-self.targetdir = self.targetdir + self.fname
+self.targetdir = os.path.join(self.targetdir, self.fname)
 
 def run_configure(self, configure_args='', extra_cmds=' gnu-configize; '):
 return super(SDKBuildProject, 
self).run_configure(configure_args=(configure_args or '$CONFIGURE_FLAGS'), 
extra_cmds=extra_cmds)
-- 
2.8.1

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


[OE-core] [PATCH 2/3] oeqa/targetbuild: add extra_cmds argument to run_configure

2016-06-20 Thread Ross Burton
Some upstreams need more than just gnu-configize ran before ./configure works,
such as ./autogen.sh or autoreconf.  Add extra_args (defaulting to
gnu-configize) so that this can be done in test cases.

Signed-off-by: Ross Burton 
---
 meta/lib/oeqa/utils/targetbuild.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/meta/lib/oeqa/utils/targetbuild.py 
b/meta/lib/oeqa/utils/targetbuild.py
index 6177a12..f087670 100644
--- a/meta/lib/oeqa/utils/targetbuild.py
+++ b/meta/lib/oeqa/utils/targetbuild.py
@@ -119,8 +119,8 @@ class SDKBuildProject(BuildProject):
 #Change targetdir to project folder
 self.targetdir = self.targetdir + self.fname
 
-def run_configure(self, configure_args=''):
-return super(SDKBuildProject, 
self).run_configure(configure_args=(configure_args or '$CONFIGURE_FLAGS'), 
extra_cmds=' gnu-configize; ')
+def run_configure(self, configure_args='', extra_cmds=' gnu-configize; '):
+return super(SDKBuildProject, 
self).run_configure(configure_args=(configure_args or '$CONFIGURE_FLAGS'), 
extra_cmds=extra_cmds)
 
 def run_install(self, install_args=''):
 return super(SDKBuildProject, 
self).run_install(install_args=(install_args or "DESTDIR=%s/../install" % 
self.targetdir))
@@ -133,4 +133,3 @@ class SDKBuildProject(BuildProject):
 def _run(self, cmd):
 self.log("Running . %s; " % self.sdkenv + cmd)
 return subprocess.call(". %s; " % self.sdkenv + cmd, shell=True)
-
-- 
2.8.1

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


Re: [OE-core] [for-krogoth] Backport for libc != glibc

2016-06-20 Thread Otavio Salvador
On Mon, Jun 20, 2016 at 1:04 PM, Khem Raj  wrote:
...
>> Could those be reviewed and queued for the next backport?
>
> They look fine for backport to krogoth. Please submit pull requests

Armin can easily pick them; I gave the OE-Core hashes.

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


Re: [OE-core] [for-krogoth] Backport for libc != glibc

2016-06-20 Thread Khem Raj
On Sat, Jun 18, 2016 at 6:27 AM, Otavio Salvador
 wrote:
> Hello,
>
> At O.S. Systems we are involved in some projects which uses musl as
> libC. For those, we are doing the SDK for faster development and found
> that it is currently broken on Krogoth.
>
> Master branch has the need fixes. The fixes needed are
> OE-Core:2b9ae0ab and OE-Core:fcaaabb4
>
> commit 2b9ae0ab056e62290f2328aa0d4dd70e6f138759
> Author: Khem Raj 
> Date:   Wed May 11 10:35:40 2016 -0700
>
> musl: Create symlinks for stub libraries
>
> Some libraries e.g. libm.so are needed to be
> created so that SDKs built with distros which
> disable static librararies can have the stubs
> and since default linker script requires -lm
> this helps in compiling applications with SDK
>
> there are .a equivalents for these libraries
> but they do not land in SDKs when static libs
> are disabled distrowide
>
> Signed-off-by: Khem Raj 
> Signed-off-by: Richard Purdie 
>
> commit fcaaabb401fffcda4db9a7d1f927a2a404e4776d
> Author: Khem Raj 
> Date:   Wed May 11 10:35:45 2016 -0700
>
>gcc-runtime, libgcc: Symlink c++ header and startup files in
> target_triplet for SDK use
>
>We build SDKs such that gcc-cross-candian is built for only one
>target *-*-linux and then use -muclibc or -mmusl to let it compile
>code for other libc variants. This works fine when libc = glibc
>however it does not work for c++ programs when libc != glibc since
>there are c++ headers installed under 
> ${includedir}/c++/${BINV}/${TARGET_SYS}
>which is fine when gcc-runtime and gcc-cross-candian uses same
> --target options
>gxx includedir searches in right triplet, but it fails with musl/uclibc
>since gcc will look for glibc based triplet but gcc-runtime will install
>them under musl/uclibc triplet.
>
>This patch symlinks the musl/uclibc triplet to glibc triplet when
> libc != glibc
>
>This fixes SDKs for musl/uclibc
>
>Signed-off-by: Khem Raj 
>Signed-off-by: Richard Purdie 
>
> Backporting those, on top of current Krogoth branch, fixes the SDK
> issues we had at the moment.
>
> Could those be reviewed and queued for the next backport?

They look fine for backport to krogoth. Please submit pull requests

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


Re: [OE-core] [PATCH 2/2] uclibc: never build with SSP

2016-06-20 Thread André Draszik
On Mo, 2016-06-20 at 15:48 +0100, André Draszik wrote:
> This patch fixes uclibc builds when SSP has been enabled by including
> security_flags.inc in distro.conf

Should read:

This patch fixes uclibc builds when SSP has been enabled by including
security_flags.inc in distro.conf and adding "ssp" to DISTRO_FEATURES.

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


Re: [OE-core] [PATCH 2/2] uclibc: never build with SSP

2016-06-20 Thread André Draszik
Hi Khem,

On Mi, 2016-06-15 at 17:20 -0700, Khem Raj wrote:
> On Fri, Jun 10, 2016 at 8:12 AM, André Draszik  wrote:
> > From: André Draszik 
> > 
> > This doesn't work, as the initial gcc that is used for compiling
> > uclibc doesn't have support for SSP yet (since that will only
> > be available once uclibc has been compiled). Since during that
> > same compilation step uclibc is trying to build its own utils
> > those are failing to compile with SSP enabled as the
> > initial gcc doesn't have access to the required libraries,
> > yet.
> 
> Please look at how we do this for glibc based systems.

Are you saying glibc is compiled *with* SSP enabled?

I can't seem to find anything relevant. The only thing I can find seems to
result in glibc and (and glibc-initial) and all glibc executables (!) being
compiled without stack protector. As you seem to have something in mind, can
you please be more specific and give me a pointer?


>  This patch is
> not something we need.

This patch fixes uclibc builds when SSP has been enabled by including
security_flags.inc in distro.conf. Why is it not needed? Can you be more
specific please?


Cheers,
Andre

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


Re: [OE-core] [PATCH 00/72] Krogoth-next V2, pull request

2016-06-20 Thread Anders Darander
* akuster808  [160609 13:14]:

> On 06/09/2016 03:34 AM, Martin Jansa wrote:
> > On Thu, Jun 09, 2016 at 02:33:56AM -0700, akuster808 wrote:
> > > ping

Do we have a status on this one?

Cheers,
Anders

-- 
Anders Darander, Senior System Architect
ChargeStorm AB / eStorm AB
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] bitbake.conf: don't set CCACHE_DIR to $HOME by default

2016-06-20 Thread Ross Burton
If the user hasn't inherited ccache.bbclass then CCACHE_DIR is set to $HOME.

This was to work around a bug (#2554) for some users where if ccache < 3.1.10
(released 2014-10-19) was installed and enabled by default (i.e. /usr/bin/gcc is
a symlink to ccache) and ccache.bbclass wasn't being inherited then autogen
would fail to build because it sets $HOME to /dev/null during the build and
ccache (prior to 3.1.10) would always create CCACHE_DIR even if it was disabled.
As the default is $HOME/.ccache, this results in ccache attempting to create
/dev/null/.ccache.

However there was a mistake in this assignment of CCACHE_DIR - it should be
$HOME/.ccache - as ccache will do cleanup inside CCACHE_DIR which will result in
it deleting $HOME/tmp.  In the future when we can assume that everyone has
ccache 3.1.10 onwards this assignment can be deleted, but as of now we still
support OpenSUSE 13.2 which ships with 3.1.9 so fix the assignment to be
$HOME/.ccache.

[ YOCTO #9798 ]

Signed-off-by: Ross Burton 
---
 meta/conf/bitbake.conf | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 942b8b1..a72d2f6 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -450,10 +450,10 @@ CCACHE ??= ""
 # Disable ccache explicitly if CCACHE is null since gcc may be a symlink
 # of ccache some distributions (e.g., Fedora 17).
 export CCACHE_DISABLE ??= "${@[0,1][d.getVar('CCACHE', True) == '']}"
-# Assign CCACHE_DIR a default value to fix a bug of ccache 3.1.7,
-# since it would always create CCACHE_DIR/.ccache even if
-# CCACHE_DISABLE = 1.
-export CCACHE_DIR ??= "${@os.getenv('HOME')}"
+# ccache < 3.1.10 will create CCACHE_DIR on startup even if disabled, and
+# autogen sets HOME=/dev/null so in certain situations builds can fail.
+# Explicitly export CCACHE_DIR until we can assume ccache >3.1.10 on the host.
+export CCACHE_DIR ??= "${@os.getenv('HOME')}/.ccache"
 
 TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"
 
-- 
2.8.1

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


[OE-core] [PATCH 6/6] libmad: remove recipe

2016-06-20 Thread Alexander Kanavin
[YOCTO #6020]

Signed-off-by: Alexander Kanavin 
---
 .../libmad/libmad/add-pkgconfig.patch  | 70 --
 .../libmad/libmad/automake-foreign.patch   | 12 
 .../libmad/fix_for_mips_with_gcc-4.5.0.patch   | 33 --
 .../libmad/libmad/no-force-mem.patch   | 18 --
 .../libmad/libmad/obsolete_automake_macros.patch   | 14 -
 meta/recipes-multimedia/libmad/libmad_0.15.1b.bb   | 36 ---
 6 files changed, 183 deletions(-)
 delete mode 100644 meta/recipes-multimedia/libmad/libmad/add-pkgconfig.patch
 delete mode 100644 meta/recipes-multimedia/libmad/libmad/automake-foreign.patch
 delete mode 100644 
meta/recipes-multimedia/libmad/libmad/fix_for_mips_with_gcc-4.5.0.patch
 delete mode 100644 meta/recipes-multimedia/libmad/libmad/no-force-mem.patch
 delete mode 100644 
meta/recipes-multimedia/libmad/libmad/obsolete_automake_macros.patch
 delete mode 100644 meta/recipes-multimedia/libmad/libmad_0.15.1b.bb

diff --git a/meta/recipes-multimedia/libmad/libmad/add-pkgconfig.patch 
b/meta/recipes-multimedia/libmad/libmad/add-pkgconfig.patch
deleted file mode 100644
index b49dc8c..000
--- a/meta/recipes-multimedia/libmad/libmad/add-pkgconfig.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-Here is a patch for adding pkg-config support to libmad.
-It would make life a bit easier for distro maintainers if this was applied.
-In case you didn't know, pkg-config is a tool for providing LDFLAGS and
-CFLAGS for packages using shared libraries. It's on freedesktop.org.
-Debian has already been distributing the pkg-config file mad.pc with
-libmad for some time, and people developing on debian (notably xmms2 
-developers) have started relying on this support being present, causing
-some confusion for people installing from source and on some BSDs which
-do not provide mad.pc (google: pkgconfig libmad).
-
-EMH
-
-Upstream-Status: Inappropriate [configuration]
-
---h31gzZEtNLTqOjlF
-Content-Type: text/plain; charset=us-ascii
-Content-Disposition: attachment; 
filename=libmad-0.15.1b-pkgconfig.patch
-
-diff -Naur libmad-0.15.1b.old/configure.ac libmad-0.15.1b/configure.ac
 libmad-0.15.1b.old/configure.ac2004-01-23 10:41:32.0 +0100
-+++ libmad-0.15.1b/configure.ac2004-08-07 02:25:24.633462168 +0200
-@@ -429,5 +429,5 @@
- dnl AC_SUBST(LTLIBOBJS)
- 
- AC_CONFIG_FILES([Makefile msvc++/Makefile  \
--  libmad.list])
-+  libmad.list mad.pc])
- AC_OUTPUT
-diff -Naur libmad-0.15.1b.old/mad.pc.in libmad-0.15.1b/mad.pc.in
 libmad-0.15.1b.old/mad.pc.in   1970-01-01 01:00:00.0 +0100
-+++ libmad-0.15.1b/mad.pc.in   2004-08-07 02:04:59.617692872 +0200
-@@ -0,0 +1,14 @@
-+# libmad pkg-config source file
-+
-+prefix=@prefix@
-+exec_prefix=@exec_prefix@
-+libdir=@libdir@
-+includedir=@includedir@
-+
-+Name: mad
-+Description: MPEG Audio Decoder
-+Version: @VERSION@
-+Requires:
-+Conflicts:
-+Libs: -L${libdir} -lmad -lm
-+Cflags: -I${includedir}
-diff -Naur libmad-0.15.1b.old/Makefile.am libmad-0.15.1b/Makefile.am
 libmad-0.15.1b.old/Makefile.am 2004-02-17 03:02:03.0 +0100
-+++ libmad-0.15.1b/Makefile.am 2004-08-07 02:03:19.859858368 +0200
-@@ -24,6 +24,9 @@
- SUBDIRS = 
- DIST_SUBDIRS =msvc++
- 
-+pkgconfigdir =$(libdir)/pkgconfig
-+pkgconfig_DATA =  mad.pc
-+
- lib_LTLIBRARIES = libmad.la
- include_HEADERS = mad.h
- 
-@@ -34,7 +37,8 @@
- minimad_LDADD =   libmad.la
- 
- EXTRA_DIST =  mad.h.sed  \
--  CHANGES COPYRIGHT CREDITS README TODO VERSION
-+  CHANGES COPYRIGHT CREDITS README TODO VERSION \
-+  mad.pc.in
- 
- exported_headers =version.h fixed.h bit.h timer.h stream.h frame.h  \
-   synth.h decoder.h
-
diff --git a/meta/recipes-multimedia/libmad/libmad/automake-foreign.patch 
b/meta/recipes-multimedia/libmad/libmad/automake-foreign.patch
deleted file mode 100644
index 3e54424..000
--- a/meta/recipes-multimedia/libmad/libmad/automake-foreign.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Pass foreign to AM_INIT_AUTOMAKE so it doesn't enforce GNU strictness.
-
-Upstream-Status: Pending
-Signed-off-by: Ross Burton 
-
-diff --git a/configure.ac b/configure.ac
-index e602fd3..e075b86 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -29 +29 @@ AC_CONFIG_SRCDIR([decoder.h])
--AM_INIT_AUTOMAKE
-+AM_INIT_AUTOMAKE([foreign])
diff --git 
a/meta/recipes-multimedia/libmad/libmad/fix_for_mips_with_gcc-4.5.0.patch 
b/meta/recipes-multimedia/libmad/libmad/fix_for_mips_with_gcc-4.5.0.patch
deleted file mode 100644
index 01c7aa3..000
--- a/meta/recipes-multimedia/libmad/libmad/fix_for_mips_with_gcc-4.5.0.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-gcc 4.4 did this: The MIPS port no longer recognizes the h  asm constraint. It 
was necessary to remove this constraint in order to avoid generating 
unpredictable code sequences. 
-

[OE-core] [PATCH 2/6] security_flags.inc: add python3-pycairo and libnewt-python to no-pie exception list

2016-06-20 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 meta/conf/distro/include/security_flags.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/conf/distro/include/security_flags.inc 
b/meta/conf/distro/include/security_flags.inc
index cd2b964..a7be185 100644
--- a/meta/conf/distro/include/security_flags.inc
+++ b/meta/conf/distro/include/security_flags.inc
@@ -65,6 +65,7 @@ SECURITY_CFLAGS_pn-libcap = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libgcc = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libid3tag = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libnewt = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-libnewt-python = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libglu = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libpcap = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libpcre = "${SECURITY_NO_PIE_CFLAGS}"
@@ -80,6 +81,7 @@ SECURITY_CFLAGS_pn-python-pycurl = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-python-smartpm = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-python-numpy = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-python3-numpy = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-python3-pycairo = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-python3 = "${SECURITY_NO_PIE_CFLAGS}"
 # Revert RPM to using internally supported values
 SECURITY_CFLAGS_pn-rpm = "${lcl_maybe_fortify} -fstack-protector"
-- 
2.8.1

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


[OE-core] [PATCH 3/6] security_flags.inc: enable PIE for a few recipes

2016-06-20 Thread Alexander Kanavin
They used to fail with PIE enabled, but no longer do.

Signed-off-by: Alexander Kanavin 
---
 meta/conf/distro/include/security_flags.inc | 16 
 1 file changed, 16 deletions(-)

diff --git a/meta/conf/distro/include/security_flags.inc 
b/meta/conf/distro/include/security_flags.inc
index a7be185..f3e4bf0 100644
--- a/meta/conf/distro/include/security_flags.inc
+++ b/meta/conf/distro/include/security_flags.inc
@@ -29,10 +29,7 @@ SECURITY_CFLAGS_pn-libmatchbox_powerpc = ""
 SECURITY_CFLAGS_pn-lttng-tools_arm = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-aspell = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-beecrypt = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-blktrace = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-coreutils = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-cups = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-db = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-directfb = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-glibc = ""
 SECURITY_CFLAGS_pn-glibc-initial = ""
@@ -40,7 +37,6 @@ SECURITY_CFLAGS_pn-elfutils = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-enchant = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-expect = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-flac = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-flex = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gcc = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gcc-runtime = ""
 SECURITY_CFLAGS_pn-gcc-sanitizers = "${SECURITY_NO_PIE_CFLAGS}"
@@ -53,8 +49,6 @@ SECURITY_CFLAGS_pn-grub-efi-native = ""
 SECURITY_CFLAGS_pn-grub-efi-x86-native = ""
 SECURITY_CFLAGS_pn-grub-efi-i586-native = ""
 SECURITY_CFLAGS_pn-grub-efi-x86-64-native = ""
-SECURITY_CFLAGS_pn-gst-plugins-bad = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-gst-plugins-gl = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gstreamer1.0-plugins-bad = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gstreamer1.0-plugins-good = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-harfbuzz = "${SECURITY_NO_PIE_CFLAGS}"
@@ -64,19 +58,14 @@ SECURITY_CFLAGS_pn-libaio = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libcap = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libgcc = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libid3tag = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-libnewt = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libnewt-python = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libglu = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libpcap = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libpcre = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libproxy = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-lttng-ust = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-mesa = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-mesa-gl = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-openssl = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-opensp = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-ppp = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-python = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-python-pycurl = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-python-smartpm = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-python-numpy = "${SECURITY_NO_PIE_CFLAGS}"
@@ -85,7 +74,6 @@ SECURITY_CFLAGS_pn-python3-pycairo = 
"${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-python3 = "${SECURITY_NO_PIE_CFLAGS}"
 # Revert RPM to using internally supported values
 SECURITY_CFLAGS_pn-rpm = "${lcl_maybe_fortify} -fstack-protector"
-SECURITY_CFLAGS_pn-syslinux = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-tcl = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-tiff = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-uclibc = ""
@@ -93,10 +81,6 @@ SECURITY_CFLAGS_pn-uclibc-initial = ""
 SECURITY_CFLAGS_pn-valgrind = ""
 SECURITY_CFLAGS_pn-zlib = "${SECURITY_NO_PIE_CFLAGS}"
 
-# These 2 have text relco errors with the pie options enabled
-SECURITY_CFLAGS_pn-ltp = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-pulseaudio = "${SECURITY_NO_PIE_CFLAGS}"
-
 # Recipes which fail to compile when elevating -Wformat-security to an error
 SECURITY_STRINGFORMAT_pn-busybox = ""
 SECURITY_STRINGFORMAT_pn-console-tools = ""
-- 
2.8.1

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


[OE-core] [PATCH 5/6] gstreamer1.0-plugins-ugly: disable mad, enable mpg123

2016-06-20 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly.inc 
b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly.inc
index 4582e5b..708ad7a 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly.inc
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly.inc
@@ -9,7 +9,7 @@ inherit gettext
 
 PACKAGECONFIG ??= " \
 ${GSTREAMER_ORC} \
-a52dec lame mad mpeg2dec \
+a52dec lame mpg123 mpeg2dec \
 "
 
 PACKAGECONFIG[a52dec]   = "--enable-a52dec,--disable-a52dec,liba52"
-- 
2.8.1

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


[OE-core] [PATCH 4/6] mpg123: add a recipe from meta-oe

2016-06-20 Thread Alexander Kanavin
The recipe is updated to latest upstream release.
Also audiofile dependency is dropped as it's not actually used anywhere.

[YOCTO #6020]

Signed-off-by: Alexander Kanavin 
---
 meta/recipes-multimedia/mpg123/mpg123_1.23.4.bb | 63 +
 1 file changed, 63 insertions(+)
 create mode 100644 meta/recipes-multimedia/mpg123/mpg123_1.23.4.bb

diff --git a/meta/recipes-multimedia/mpg123/mpg123_1.23.4.bb 
b/meta/recipes-multimedia/mpg123/mpg123_1.23.4.bb
new file mode 100644
index 000..3101023
--- /dev/null
+++ b/meta/recipes-multimedia/mpg123/mpg123_1.23.4.bb
@@ -0,0 +1,63 @@
+SUMMARY = "Audio decoder for MPEG-1 Layer 1/2/3"
+DESCRIPTION = "The core of mpg123 is an MPEG-1 Layer 1/2/3 decoding library, 
which can be used by other programs. \
+mpg123 also comes with a command-line tool which can playback using ALSA, 
PulseAudio, OSS, and several other APIs, \
+and also can write the decoded audio to WAV."
+HOMEPAGE = "http://mpg123.de/;
+BUGTRACKER = "http://sourceforge.net/p/mpg123/bugs/;
+SECTION = "multimedia"
+
+LICENSE = "LGPLv2.1"
+LICENSE_FLAGS = "commercial"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1e86753638d3cf2512528b99079bc4f3"
+
+SRC_URI = "https://www.mpg123.de/download/${BP}.tar.bz2;
+
+SRC_URI[md5sum] = "dea9e3a815d127d04ebe9f6b80f229ce"
+SRC_URI[sha256sum] = 
"3495e678dec9a60f29cbcd4fc698abc4c811ec60d1276e744f7a10ac35023b48"
+
+inherit autotools pkgconfig
+
+# The options should be mutually exclusive for configuration script.
+# If both alsa and pulseaudio are specified (as in the default distro features)
+# pulseaudio takes precedence.
+PACKAGECONFIG_ALSA = "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', 
'', d)}"
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 
'pulseaudio', '${PACKAGECONFIG_ALSA}', d)}"
+
+PACKAGECONFIG[alsa] = "--with-default-audio=alsa,,alsa-lib"
+PACKAGECONFIG[esd] = ",,esound"
+PACKAGECONFIG[jack] = ",,jack"
+PACKAGECONFIG[openal] = ",,openal-soft"
+PACKAGECONFIG[portaudio] = ",,portaudio-v19"
+PACKAGECONFIG[pulseaudio] = "--with-default-audio=pulse,,pulseaudio"
+PACKAGECONFIG[sdl] = ",,libsdl"
+
+# Following are possible sound output modules:
+# alsa arts coreaudio dummy esd jack nas openal os2 oss portaudio pulse sdl 
sndio sun tinyalsa win32 win32_wasapi
+AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'alsa', 'alsa', '', d)}"
+AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'esd', 'esd', '', d)}"
+AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'jack', 'jack', '', d)}"
+AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'openal', 'openal', '', 
d)}"
+AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'portaudio', 'portaudio', 
'', d)}"
+AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'pulse', '', 
d)}"
+AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'sdl', 'sdl', '', d)}"
+
+EXTRA_OECONF = " \
+--enable-shared \
+--with-audio='${AUDIOMODS}' \
+--with-module-suffix=.so \
+${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-cpu=neon', '', d)} \
+${@bb.utils.contains('TUNE_FEATURES', 'altivec', '--with-cpu=altivec', '', 
d)} \
+"
+
+# The x86 assembler optimisations contains text relocations and there are no
+# upstream plans to fix them: http://sourceforge.net/p/mpg123/bugs/168/
+INSANE_SKIP_${PN}_append_x86 = " textrel"
+
+# Fails to build with thumb-1 (qemuarm)
+#| {standard input}: Assembler messages:
+#| {standard input}:47: Error: selected processor does not support Thumb mode 
`smull r5,r6,r7,r4'
+#| {standard input}:48: Error: shifts in CMP/MOV instructions are only 
supported in unified syntax -- `mov r5,r5,lsr#24'
+#...
+#| make[3]: *** [equalizer.lo] Error 1
+ARM_INSTRUCTION_SET_armv4 = "arm"
+ARM_INSTRUCTION_SET_armv5 = "arm"
-- 
2.8.1

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


[OE-core] [PATCH 1/6] security_flags.inc: add SECURITY_NO_PIE_CFLAGS to libgcc and gcc-sanitizers

2016-06-20 Thread Alexander Kanavin
These recipes no longer seem to need full exclusion from security hardening.

The rest (glibc, gcc-runtime, valgrind, grub, grub-efi, uclibc) still do.

[YOCTO #9489]

Signed-off-by: Alexander Kanavin 
---
 meta/conf/distro/include/security_flags.inc | 6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta/conf/distro/include/security_flags.inc 
b/meta/conf/distro/include/security_flags.inc
index ea1d4e5..cd2b964 100644
--- a/meta/conf/distro/include/security_flags.inc
+++ b/meta/conf/distro/include/security_flags.inc
@@ -43,7 +43,7 @@ SECURITY_CFLAGS_pn-flac = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-flex = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gcc = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gcc-runtime = ""
-SECURITY_CFLAGS_pn-gcc-sanitizers = ""
+SECURITY_CFLAGS_pn-gcc-sanitizers = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gdb = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gmp = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gnutls = "${SECURITY_NO_PIE_CFLAGS}"
@@ -62,7 +62,7 @@ SECURITY_CFLAGS_pn-kexec-tools = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-iptables = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libaio = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libcap = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-libgcc = ""
+SECURITY_CFLAGS_pn-libgcc = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libid3tag = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libnewt = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libglu = "${SECURITY_NO_PIE_CFLAGS}"
@@ -109,10 +109,8 @@ TARGET_CFLAGS_append_class-target = " ${SECURITY_CFLAGS}"
 TARGET_LDFLAGS_append_class-target = " ${SECURITY_LDFLAGS}"
 
 SECURITY_LDFLAGS_remove_pn-gcc-runtime = "-fstack-protector-strong"
-SECURITY_LDFLAGS_remove_pn-gcc-sanitizers = "-fstack-protector-strong"
 SECURITY_LDFLAGS_remove_pn-glibc = "-fstack-protector-strong"
 SECURITY_LDFLAGS_remove_pn-glibc-initial = "-fstack-protector-strong"
-SECURITY_LDFLAGS_remove_pn-libgcc = "-fstack-protector-strong"
 SECURITY_LDFLAGS_remove_pn-uclibc = "-fstack-protector-strong"
 SECURITY_LDFLAGS_remove_pn-uclibc-initial = "-fstack-protector-strong"
 SECURITY_LDFLAGS_pn-xf86-video-fbdev = "${SECURITY_X_LDFLAGS}"
-- 
2.8.1

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


[OE-core] Minimum host gcc version? (was: [PATCH] qemu-native: set ld.bfd, fix cflags, and set some environment vars)

2016-06-20 Thread Peter Kjellerstedt
> -Original Message-
> From: openembedded-core-boun...@lists.openembedded.org
> [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of
> Stephen Arnold
> Sent: den 19 juni 2016 21:40
> To: openembedded-core@lists.openembedded.org
> Cc: Stephen Arnold; Stephen Arnold
> Subject: [OE-core] [PATCH] qemu-native: set ld.bfd, fix cflags, and set
> some environment vars
> 
> The main thing is build failures with gold linker, but qemu is also
> a little too aggressive at finding random tools on the build host, so
> we also set the build env for qemu-native and make sure it doesn't
> reset its own (hard-coded) cflags when we don't want it to.
> 
> Signed-off-by: Stephen Arnold 
> 
> The cflags patch was imported from Gentoo Portage and has been
> manitained over several versions; this version was rebased against
> upstream qemu git.
> 
> Upstream-Status: Inappropriate
>  - Patch addresses distribution maintenance and build environment
>sanity.
> 
> Signed-off-by: Stephen Arnold 
> ---
>  meta/recipes-devtools/qemu/qemu.inc| 13 +++--
>  .../qemu/qemu/qemu-2.6.0-cflags.patch  | 31
> ++
>  meta/recipes-devtools/qemu/qemu_2.6.0.bb   |  1 +
>  3 files changed, 43 insertions(+), 2 deletions(-)
>  create mode 100644 meta/recipes-devtools/qemu/qemu/qemu-2.6.0-
> cflags.patch
> 
> diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-
> devtools/qemu/qemu.inc
> index bf689bb..d5925fd 100644
> --- a/meta/recipes-devtools/qemu/qemu.inc
> +++ b/meta/recipes-devtools/qemu/qemu.inc
> @@ -30,8 +30,12 @@ SRC_URI_append_class-native = "\
> 
>  EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror  
> --disable-bluez --disable-libiscsi --with-system-pixman 
> --extra-cflags='${CFLAGS}'"
> 
> -EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} 
> --disable-werror \
> - "
> +EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} 
> --disable-werror"
> +
> +EXTRA_OEMAKE_append_class-native = " LD='${LD}' AR='${AR}' 
> OBJCOPY='${OBJCOPY}' LDFLAGS='${LDFLAGS}'"
> +
> +LDFLAGS_append_class-native = " -fuse-ld=bfd"

The use of -fuse-ld=bfd causes a build a failure with gcc 4.7.2 
that I still use as host compiler. Was it intentional to increase 
the minimum required host compiler version? If not, can this 
option be made conditional for compilers that do not support it?

//Peter

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


[OE-core] State of bitbake world 2016-06-15

2016-06-20 Thread Martin Jansa
== Number of issues - stats ==
{| class='wikitable'
!|Date   !!colspan='3'|Failed tasks 
!!colspan='6'|Failed depencencies!!|Signatures
!!colspan='12'|QA !!Comment
|-
||  ||qemuarm   ||qemux86   ||qemux86_64
||qemuarm||max||min ||qemux86||max||min ||all   ||already-stripped  
||libdir||textrel   ||build-deps||file-rdeps
||version-going-backwards   ||host-user-contaminated
||installed-vs-shipped  ||unknown-configure-option  ||symlink-to-sysroot
||invalid-pkgconfig ||pkgname   ||  
|-
||2016-06-15||3 ||5 ||4 ||24||8 ||6 ||31||11
||10||0 ||0 ||0 ||1 ||4 
||18||0 ||2 ||0 ||0 
||0 ||0 ||0 ||  
|}

http://www.openembedded.org/wiki/Bitbake_World_Status

== Failed tasks 2016-06-15 ==

INFO: jenkins-job.sh-1.8.10 Complete log available at 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.report.20160619_230455.log

=== common (3) ===
* 
meta-openembedded/meta-webserver/recipes-httpd/nginx/nginx_1.10.1.bb:do_install
* 
meta-openembedded/meta-webserver/recipes-httpd/nostromo/nostromo_1.9.5.bb:do_install
* 
meta-openembedded/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.27.0.bb:do_install

=== common-x86 (1) ===
* openembedded-core/meta/recipes-graphics/piglit/piglit_git.bb:do_compile

=== qemuarm (0) ===

=== qemux86 (1) ===
* 
openembedded-core/meta/recipes-core/meta/meta-ide-support.bb:do_package_write_ipk

=== qemux86_64 (0) ===

=== Number of failed tasks (12) ===
{| class=wikitable
|-
|| qemuarm  || 3 || 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.world.qemuarm.20160615_033246.log/
 || http://errors.yoctoproject.org/Errors/Build/17410/
|-
|| qemux86  || 5 || 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.world.qemux86.20160615_033108.log/
 || http://errors.yoctoproject.org/Errors/Build/17412/
|-
|| qemux86_64   || 4 || 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.world.qemux86-64.20160615_235518.log/
 || http://errors.yoctoproject.org/Errors/Build/17446/
|}

=== PNBLACKLISTs (145) ===

=== QA issues (25) ===
{| class=wikitable
!| Count||Issue
|-
||0 ||already-stripped
|-
||0 ||installed-vs-shipped
|-
||0 ||invalid-pkgconfig
|-
||0 ||libdir
|-
||0 ||pkgname
|-
||0 ||symlink-to-sysroot
|-
||0 ||unknown-configure-option
|-
||0 ||version-going-backwards
|-
||18||file-rdeps
|-
||1 ||textrel
|-
||2 ||host-user-contaminated
|-
||4 ||build-deps
|}



=== Failed dependencies for qemuarm (24) ===

Complete log: 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.dependencies.qemuarm.20160615_232849.log/
Found differences: 
* WARN: samba: samba rdepends on libpam, but it isn't a build dependency?
* WARN: libdrm: libdrm-tests rdepends on cunit, but it isn't a build 
dependency?
* WARN: libdrm: libdrm-tests rdepends on libdrm-amdgpu, but it isn't a 
build dependency?
* WARN: jasper: jasper-bin rdepends on freeglut, but it isn't a build 
dependency?
* WARN: jasper: jasper-bin rdepends on libgl-mesa, but it isn't a build 
dependency?
* WARN: jasper: jasper-bin rdepends on libglu, but it isn't a build 
dependency?
* WARN: enchant: enchant rdepends on hunspell, but it isn't a build 
dependency?
Found errors: 
* ERROR: 24 issues were found in these recipes: 
chkconfig-alternatives-native enchant gtkmathview jasper libdrm 
meta-world-pkgdata netmap nginx nostromo proxy-libintl samba sthttpd

=== Recipes failing with maximal dependencies for qemuarm (8) ===
* chkconfig-alternatives-native -- 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.dependencies.qemuarm.20160615_232849.log//2_max/failed/chkconfig-alternatives-native.log
* gtkmathview -- 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.dependencies.qemuarm.20160615_232849.log//2_max/failed/gtkmathview.log
* meta-world-pkgdata -- 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.dependencies.qemuarm.20160615_232849.log//2_max/failed/meta-world-pkgdata.log
* netmap -- 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.dependencies.qemuarm.20160615_232849.log//2_max/failed/netmap.log
* nginx -- 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.dependencies.qemuarm.20160615_232849.log//2_max/failed/nginx.log
* nostromo -- 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.dependencies.qemuarm.20160615_232849.log//2_max/failed/nostromo.log
* proxy-libintl -- 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.dependencies.qemuarm.20160615_232849.log//2_max/failed/proxy-libintl.log
* sthttpd -- 
http://logs.nslu2-linux.org/buildlogs/oe/world/log.dependencies.qemuarm.20160615_232849.log//2_max/failed/sthttpd.log

=== Recipes failing with minimal 

[OE-core] [PATCH] openssh: add systemd service file sshd.service

2016-06-20 Thread Dai, Caiyun
Ping



If sysvinit is disabled from DISTRO_FEATURES,then /etc/init.d/sshd will be 
removed,and this will cause sshd daemon failed to start by systemd, So add it.



Signed-off-by: Li Xin 
>

---

.../recipes-connectivity/openssh/openssh/sshd.service | 19 +++

meta/recipes-connectivity/openssh/openssh_7.1p2.bb|  9 +++--

2 files changed, 26 insertions(+), 2 deletions(-)  create mode 100644 
meta/recipes-connectivity/openssh/openssh/sshd.service



diff --git a/meta/recipes-connectivity/openssh/openssh/sshd.service 
b/meta/recipes-connectivity/openssh/openssh/sshd.service

new file mode 100644

index 000..6c05f23

--- /dev/null

+++ b/meta/recipes-connectivity/openssh/openssh/sshd.service

@@ -0,0 +1,19 @@

+[Unit]

+Description=OpenSSH server daemon

+Documentation=man:sshd(8) man:sshd_config(5) After=network.target

+sshd-keygen.service Wants=sshd-keygen.service

+

+[Service]

+Type=forking

+PIDFile=@localstatedir@/run/sshd.pid

+EnvironmentFile=-@SYSCONFDIR@/sysconfig/sshd

+ExecStart=@SBINDIR@/sshd $OPTIONS

+ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID KillMode=process

+Restart=on-failure RestartSec=42s

+

+[Install]

+WantedBy=multi-user.target

+

diff --git a/meta/recipes-connectivity/openssh/openssh_7.1p2.bb 
b/meta/recipes-connectivity/openssh/openssh_7.1p2.bb

index 3b5e28a..8b31b40 100644

--- a/meta/recipes-connectivity/openssh/openssh_7.1p2.bb

+++ b/meta/recipes-connectivity/openssh/openssh_7.1p2.bb

@@ -23,7 +23,9 @@ SRC_URI = 
"ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar.

file://run-ptest \


file://CVE-2016-1907_upstream_commit.patch
 \

file://CVE-2016-1907_2.patch \

-   file://CVE-2016-1907_3.patch "

+   file://CVE-2016-1907_3.patch \

+   file://sshd.service"

+

 PAM_SRC_URI = "file://sshd"

@@ -39,7 +41,7 @@ INITSCRIPT_NAME_${PN}-sshd = "sshd"

INITSCRIPT_PARAMS_${PN}-sshd = "defaults 9"

 SYSTEMD_PACKAGES = "${PN}-sshd"

-SYSTEMD_SERVICE_${PN}-sshd = "sshd.socket"

+SYSTEMD_SERVICE_${PN}-sshd = "sshd.socket sshd.service"

 inherit autotools-brokensep ptest

@@ -118,9 +120,12 @@ do_install_append () {

   install -c -m 0644 ${WORKDIR}/sshd.socket ${D}${systemd_unitdir}/system

   install -c -m 0644 
${WORKDIR}/sshd@.service 
${D}${systemd_unitdir}/system

   install -c -m 0644 ${WORKDIR}/sshdgenkeys.service 
${D}${systemd_unitdir}/system

+   install -c -m 0644 ${WORKDIR}/sshd.service

+${D}${systemd_unitdir}/system

   sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \

-e 's,@SBINDIR@,${sbindir},g' \

-e 's,@BINDIR@,${bindir},g' \

+-e 's,@SYSCONFDIR@,${sysconfdir},g' \

+-e 's,@localstatedir@,${localstatedir},g' \

${D}${systemd_unitdir}/system/sshd.socket 
${D}${systemd_unitdir}/system/*.service

}

--

1.8.4.2







--

___

Openembedded-core mailing list

Openembedded-core@lists.openembedded.org

http://lists.openembedded.org/mailman/listinfo/openembedded-core



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


[OE-core] Problematic IMAGE_FEATURES combination for core-image

2016-06-20 Thread Pascal Bach
Hello

It tried to build an image deived from core-image-minimal-dev with the 
following image features:

IMAGE_FEATURES += "ssh-server-dropbear eclipse-debug dev-pkgs"

But it seems like this combination is not possible as the do_rootfs task fails 
with the following message:

ERROR: core-image-minimal-dev-1.0-r0 do_rootfs:

Collected errors:
 
 * check_conflicts_for: The following packages conflict with openssh:
 
 * check_conflicts_for: dropbear *
 
 * opkg_install: Cannot install package openssh-dev.
 
tetime.
 
 
ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed: do_rootfs


As far as I understand the problem is the following:

1. ssh-server-dropbear installs dropbear on the target
2. eclipse-debug installs openssh-sftp-server to make dropbear support sftp
3. dev-pkgs installs the dev packages, which causes openssh to be installed as 
well
This then leads to a conflict between openssh and dropbear causing the above 
error message.

Is the above image feature combination supported? If yes what is the correct 
way to do this?

Regards
Pascal

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


Re: [OE-core] [PATCH] The CMake recipes contain a mismatch between the environmental variable which defines where the Modules are installed and the location where they actually are. This patch fixes t

2016-06-20 Thread Burton, Ross
On 20 June 2016 at 08:04, Koen Kooi  wrote:

> And I can’t find the patch that was committed in the mailinglist folder
> locally, otherwise I would have responded to that.
>

The v2 is on the list.  I think it's mostly my fault that this got merged
due to bad branch practices.  It's been reverted in master.

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


Re: [OE-core] [PATCH] The CMake recipes contain a mismatch between the environmental variable which defines where the Modules are installed and the location where they actually are. This patch fixes t

2016-06-20 Thread Koen Kooi

> Op 16 jun. 2016, om 16:27 heeft Jose Pardeiro 
>  het volgende geschreven:
> 
> Signed-off-by: Jose Pardeiro 
> ---
> meta/classes/cmake.patch | 20 
> 1 file changed, 20 insertions(+)
> create mode 100644 meta/classes/cmake.patch
> 
> diff --git a/meta/classes/cmake.patch b/meta/classes/cmake.patch
> new file mode 100644
> index 000..c9cc9f2
> --- /dev/null
> +++ b/meta/classes/cmake.patch
> @@ -0,0 +1,20 @@
> +The CMake recipes contain a mismatch between the environmental variable
> +which defines where the Modules are installed and the location where they
> +actually are. This patch fixes the environmental variable to point to the
> +proper folder defined according to the cmake version.
> +
> +Signed-off-by: Jose Pardeiro 
> +
> +diff --git a/cmake.bbclass b/cmake.bbclass
> +index 995ddf1..6de4247 100644
> +--- a/meta/classes/cmake.bbclass
>  b/meta/classes/cmake.bbclass
> +@@ -60,7 +60,7 @@ set( ENV{QT_CONF_PATH} ${WORKDIR}/qt.conf )
> + set( CMAKE_INSTALL_RPATH ${OECMAKE_RPATH} )
> +
> + # Use native cmake modules
> +-set( CMAKE_MODULE_PATH ${STAGING_DATADIR}/cmake/Modules/ )
> ++set( CMAKE_MODULE_PATH 
> ${STAGING_DATADIR}/cmake-\${CMAKE_MAJOR_VERSION}.\${CMAKE_MINOR_VERSION}/Modules/
>  )

CMAKE_MINOR_VERSION doesn’t exist in OE, and the escaping is wrong, leading to:

|   Syntax error in cmake code at
|
| 
/build/linaro/build/build/tmp-glibc/work/aarch64-oe-linux/cmake/3.5.2-r0/toolchain.cmake:34
|
|   when parsing string
|
| 
/build/linaro/build/build/tmp-glibc/sysroots/genericarmv8/usr/share/cmake-\3.5.${CMAKE_MINOR_VERSION}/Modules/
|
|   Invalid character escape '\3'.
| Call Stack (most recent call first):
|   
/build/linaro/build/build/tmp-glibc/sysroots/x86_64-linux/usr/share/cmake-3.5/Modules/CMakeDetermineSystem.cmake:98
 (include)
|   CMakeLists.txt:19 (project)

And I can’t find the patch that was committed in the mailinglist folder 
locally, otherwise I would have responded to that.
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 3/4] systemd-bootchart: add recipe

2016-06-20 Thread ChenQi

On 06/18/2016 02:36 AM, Burton, Ross wrote:


On 17 June 2016 at 04:36, Chen Qi > wrote:


+DEPENDS = "libxslt-native libxslt-native xmlto-native
docbook-xml-dtd4-native docbook-xsl-stylesheets-native intltool"


Can we not disable documentation?


Hi Ross,

There's not available option to disable it in its source codes.
Do you think we should try to add one for it? Or we just leave things as 
it is?


Best Regards,
Chen Qi


+SYSTEMD_SERVICE_${PN} = "systemd-bootchart.service"
+SYSTEMD_AUTO_ENABLE_${PN} = "disable"


Enable by default, I'd suggest.

+do_configure_prepend() {
+# intltool.m4 is a soft link to /usr/share/aclocal/m4, delete
it and use the one in our sysroot
+rm ${S}/m4/intltool.m4
+cp ${STAGING_DIR_TARGET}${datadir}/aclocal/intltool.m4
${S}/m4/intltool.m4
+}


IIRC just deleting the file should be sufficient, as we'll pull it in 
from the sysroot automatically.


Ross


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