[oe] [meta-oe][PATCH 16/16] mg: Update to 20161005

2016-10-18 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 .../mg/{mg_20110905.bb => mg_20161005.bb}| 20 +---
 1 file changed, 9 insertions(+), 11 deletions(-)
 rename meta-oe/recipes-support/mg/{mg_20110905.bb => mg_20161005.bb} (59%)

diff --git a/meta-oe/recipes-support/mg/mg_20110905.bb 
b/meta-oe/recipes-support/mg/mg_20161005.bb
similarity index 59%
rename from meta-oe/recipes-support/mg/mg_20110905.bb
rename to meta-oe/recipes-support/mg/mg_20161005.bb
index 95aeb62..f9ceb46 100644
--- a/meta-oe/recipes-support/mg/mg_20110905.bb
+++ b/meta-oe/recipes-support/mg/mg_20161005.bb
@@ -1,15 +1,13 @@
 SUMMARY = "A portable version of the mg maintained by the OpenBSD team"
 HOMEPAGE = "http://homepage.boetes.org/software/mg/;
 LICENSE = "PD"
-LIC_FILES_CHKSUM = "file://version.c;md5=811e1b67a5cd60c12b218a2b7c1adbf2"
-DEPENDS = "ncurses"
+LIC_FILES_CHKSUM = "file://version.c;md5=1895eb37bf6bd79cdc5c89d8166fabfb"
+DEPENDS = "ncurses libbsd"
 SECTION = "console/editors"
 
-SRC_URI = "http://homepage.boetes.org/software/mg/mg-${PV}.tar.gz \
-   file://remove_ncurses_check.patch"
-
-SRC_URI[md5sum] = "2de35316fa8ebafe6003efaae70b723e"
-SRC_URI[sha256sum] = 
"1cd37d7e6a3eecc890a5718c38b8f38495057ba93856762a756ccee2f9618229"
+SRC_URI = "http://homepage.boetes.org/software/mg/mg-${PV}.tar.gz;
+SRC_URI[md5sum] = "fc6fa7308bb46f3512b75867ed51"
+SRC_URI[sha256sum] = 
"b7fcb5136a6783ca24c8463ab0852fc1f26bdb2bb1c24759b2c51ccfc46c5e61"
 
 # CFLAGS isn't in EXTRA_OEMAKE, as the makefile picks it up via ?=
 EXTRA_OEMAKE = "\
@@ -21,13 +19,13 @@ EXTRA_OEMAKE = "\
 'libdir=${libdir}' \
 'includedir=${includedir}' \
 'mandir=${mandir}' \
+'PKG_CONFIG=pkg-config' \
 "
 
-do_configure () {
-sed -i Makefile.in -e 's,^prefix=.*,prefix=${prefix},'
-./configure
-}
+CFLAGS += "-I${STAGING_INCDIR}/bsd"
 
 do_install () {
 oe_runmake install DESTDIR=${D}
 }
+
+inherit pkgconfig
-- 
2.10.0

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


Re: [oe] [meta-oe][PATCH 1/1] v4l-utils: add support for "native" build

2016-10-18 Thread Khem Raj
On Tue, Oct 18, 2016 at 1:10 AM, Herve Jourdain  wrote:
> Signed-off-by: Herve Jourdain 
> ---
>  meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb 
> b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb
> index 6148695..b9732fe 100644
> --- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb
> +++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb
> @@ -43,3 +43,6 @@ FILES_libv4l-dbg += "${libdir}/libv4l/.debug 
> ${libdir}/libv4l/plugins/.debug"
>  FILES_libv4l-dev += "${includedir} ${libdir}/pkgconfig \
>   ${libdir}/libv4l*${SOLIBSDEV} ${libdir}/*.la \
>   ${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la 
> ${libdir}/libv4l/plugins/*.la"
> +
> +PARALLEL_MAKE_class-native = ""

you seem to have root casued it. Then why not fix the Makefile instead

> +BBCLASSEXTEND = "native"
> --
> 2.7.4
>
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-networking][PATCH 15/16] libmnl, nftables: Update versions

2016-10-18 Thread Khem Raj
libmnl -> 1.0.4
nftables -> 0.6

Signed-off-by: Khem Raj 
---
 .../recipes-filter/libmnl/{libmnl_1.0.3.bb => libmnl_1.0.4.bb}   | 4 ++--
 .../recipes-filter/nftables/{nftables_0.5.bb => nftables_0.6.bb} | 5 ++---
 2 files changed, 4 insertions(+), 5 deletions(-)
 rename meta-networking/recipes-filter/libmnl/{libmnl_1.0.3.bb => 
libmnl_1.0.4.bb} (78%)
 rename meta-networking/recipes-filter/nftables/{nftables_0.5.bb => 
nftables_0.6.bb} (74%)

diff --git a/meta-networking/recipes-filter/libmnl/libmnl_1.0.3.bb 
b/meta-networking/recipes-filter/libmnl/libmnl_1.0.4.bb
similarity index 78%
rename from meta-networking/recipes-filter/libmnl/libmnl_1.0.3.bb
rename to meta-networking/recipes-filter/libmnl/libmnl_1.0.4.bb
index b3a5f2e..b458799 100644
--- a/meta-networking/recipes-filter/libmnl/libmnl_1.0.3.bb
+++ b/meta-networking/recipes-filter/libmnl/libmnl_1.0.4.bb
@@ -7,7 +7,7 @@ LICENSE = "LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
 SRC_URI = 
"http://www.netfilter.org/projects/libmnl/files/libmnl-${PV}.tar.bz2;name=tar;
-SRC_URI[tar.md5sum] = "7d95fc3bea3365bc03c48e484224f65f"
-SRC_URI[tar.sha256sum] = 
"6f14336e9acdbc62c2dc71bbb59ce162e54e9af5c80153e92476c5443fe784de"
+SRC_URI[tar.md5sum] = "be9b4b5328c6da1bda565ac5dffadb2d"
+SRC_URI[tar.sha256sum] = 
"171f89699f286a5854b72b91d06e8f8e3683064c5901fb09d954a9ab6f551f81"
 
 inherit autotools pkgconfig
diff --git a/meta-networking/recipes-filter/nftables/nftables_0.5.bb 
b/meta-networking/recipes-filter/nftables/nftables_0.6.bb
similarity index 74%
rename from meta-networking/recipes-filter/nftables/nftables_0.5.bb
rename to meta-networking/recipes-filter/nftables/nftables_0.6.bb
index 11b5e5a..5dd9362 100644
--- a/meta-networking/recipes-filter/nftables/nftables_0.5.bb
+++ b/meta-networking/recipes-filter/nftables/nftables_0.6.bb
@@ -10,8 +10,7 @@ RRECOMMENDS_${PN} += "kernel-module-nf-tables \
 SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2 \
file://fix-to-generate-ntf.8.patch \
   "
-
-SRC_URI[md5sum] = "94bfe1c54bcb9f6ed974835f2fca8069"
-SRC_URI[sha256sum] = 
"1fb6dff333d8a4fc347cbbe273bf905a2634b27a8c39df0d3a45d5a3fde10ad6"
+SRC_URI[md5sum] = "fd320e35fdf14b7be795492189b13dae"
+SRC_URI[sha256sum] = 
"dede62655f1c56f2bc9f9be12d103d930dcef6d5f9e0855854ad9c6f93cd6c2d"
 
 inherit autotools pkgconfig
-- 
2.10.0

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


[oe] [meta-oe][PATCH 12/16] glcompbench: Demand c++11 explicitly

2016-10-18 Thread Khem Raj
Helps in fixing build issues when default std of C++
compiler is older

Signed-off-by: Khem Raj 
---
 .../0001-build-Specify-std-c-11-on-cmdline.patch   | 45 ++
 .../glcompbench/glcompbench_2012.08.bb |  4 +-
 2 files changed, 48 insertions(+), 1 deletion(-)
 create mode 100644 
meta-oe/recipes-graphics/glcompbench/glcompbench/0001-build-Specify-std-c-11-on-cmdline.patch

diff --git 
a/meta-oe/recipes-graphics/glcompbench/glcompbench/0001-build-Specify-std-c-11-on-cmdline.patch
 
b/meta-oe/recipes-graphics/glcompbench/glcompbench/0001-build-Specify-std-c-11-on-cmdline.patch
new file mode 100644
index 000..ffbc297
--- /dev/null
+++ 
b/meta-oe/recipes-graphics/glcompbench/glcompbench/0001-build-Specify-std-c-11-on-cmdline.patch
@@ -0,0 +1,45 @@
+From 47bfef0dd83ed2e10ec4c615908ec926c4d5fe2e Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Wed, 19 Oct 2016 00:56:54 +
+Subject: [PATCH] build: Specify -std=c++11 on cmdline
+
+We use c++11 features so demand it explicitly from compiler
+
+Fixes
+| ../src/libmatrix/shader-source.cc:37:10: error: no member named 'unique_ptr' 
in namespace 'std'
+| std::unique_ptr is_ptr(Util::get_resource(filename));
+| ~^
+| ../src/libmatrix/shader-source.cc:37:33: error: expected '(' for 
function-style cast or type construction
+| std::unique_ptr is_ptr(Util::get_resource(filename));
+| ^
+| ../src/libmatrix/shader-source.cc:37:35: error: use of undeclared identifier 
'is_ptr'
+| std::unique_ptr is_ptr(Util::get_resource(filename));
+|   ^
+| ../src/libmatrix/shader-source.cc:38:30: error: use of undeclared identifier 
'is_ptr'
+| std::istream& inputFile(*is_ptr);
+|  ^
+| 4 errors generated.
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj 
+---
+ wscript | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/wscript b/wscript
+index dcaf298..485a9fb 100644
+--- a/wscript
 b/wscript
+@@ -79,7 +79,7 @@ def configure(ctx):
+ ctx.check_cfg(package = pkg, uselib_store = uselib, args = 
'--cflags --libs',
+   mandatory = True)
+ 
+-ctx.env.append_unique('CXXFLAGS', '-Wall -Werror -Wextra'.split(' '))
++ctx.env.append_unique('CXXFLAGS', '-Wall -Werror -std=c++11 
-Wextra'.split(' '))
+ 
+ # Prepend -O# and -g flags so that they can be overriden by the CFLAGS 
environment variable
+ if Options.options.opt:
+-- 
+1.9.1
+
diff --git a/meta-oe/recipes-graphics/glcompbench/glcompbench_2012.08.bb 
b/meta-oe/recipes-graphics/glcompbench/glcompbench_2012.08.bb
index 35fb4ad..7cf9692 100755
--- a/meta-oe/recipes-graphics/glcompbench/glcompbench_2012.08.bb
+++ b/meta-oe/recipes-graphics/glcompbench/glcompbench_2012.08.bb
@@ -9,7 +9,9 @@ SRC_URI = 
"https://launchpad.net/glcompbench/trunk/${PV}/+download/${BPN}-${PV}.
file://glbench-compile-fix.patch \
file://Fix-configure-for-sqrt-check.patch \
file://Fix_space_issues.patch \
-   file://Fix_auto_ptr_deprecated.patch"
+   file://Fix_auto_ptr_deprecated.patch \
+   file://0001-build-Specify-std-c-11-on-cmdline.patch \
+"
 
 SRC_URI[md5sum] = "c939d9156fe940960098f38707fea827"
 SRC_URI[sha256sum] = 
"b04b738cec06c6786ceafa86e4735fd8b971c078265754854ef356b0379542ee"
-- 
2.10.0

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


[oe] [meta-oe][PATCH 13/16] joe: Fix build with clang

2016-10-18 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 .../joe/joe/0001-adjust-signature-of-main.patch| 30 ++
 meta-oe/recipes-support/joe/joe_3.1.bb |  4 ++-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 
meta-oe/recipes-support/joe/joe/0001-adjust-signature-of-main.patch

diff --git 
a/meta-oe/recipes-support/joe/joe/0001-adjust-signature-of-main.patch 
b/meta-oe/recipes-support/joe/joe/0001-adjust-signature-of-main.patch
new file mode 100644
index 000..00f48e8
--- /dev/null
+++ b/meta-oe/recipes-support/joe/joe/0001-adjust-signature-of-main.patch
@@ -0,0 +1,30 @@
+From 27e4639254f2b2eb7d04790bd8cf16ecfcbac1c2 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Wed, 19 Oct 2016 01:07:16 +
+Subject: [PATCH] adjust signature of main()
+
+clang complains about the types of main() function
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj 
+---
+ main.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/main.c b/main.c
+index 81ba543..ee7506c 100644
+--- a/main.c
 b/main.c
+@@ -159,7 +159,7 @@ extern int breakflg;
+ 
+ unsigned char **mainenv;
+ 
+-int main(int argc, unsigned char **argv, unsigned char **envv)
++int main(int argc, char **argv, char **envv)
+ {
+   CAP *cap;
+   unsigned char *s;
+-- 
+1.9.1
+
diff --git a/meta-oe/recipes-support/joe/joe_3.1.bb 
b/meta-oe/recipes-support/joe/joe_3.1.bb
index fb9a9fb..1ad355b 100644
--- a/meta-oe/recipes-support/joe/joe_3.1.bb
+++ b/meta-oe/recipes-support/joe/joe_3.1.bb
@@ -4,7 +4,9 @@ HOMEPAGE = "http://joe-editor.sourceforge.net/;
 LICENSE = "GPLv1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=da10ed7cf8038981c580e11c1d3e8fb6"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/joe-editor/joe-${PV}.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/joe-editor/joe-${PV}.tar.gz \
+   file://0001-adjust-signature-of-main.patch \
+   "
 
 PACKAGECONFIG ??= "curses"
 PACKAGECONFIG[curses] = 
"--enable-curses,--disable-curses,ncurses,ncurses-terminfo"
-- 
2.10.0

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


[oe] [meta-oe][PATCH 09/16] gpm: Remove nested functions

2016-10-18 Thread Khem Raj
Helps compiling with clang which doesnt support
nested functions

Signed-off-by: Khem Raj 
---
 .../gpm/gpm-1.99.7/remove_nested_functions.patch   | 326 +
 meta-oe/recipes-support/gpm/gpm_1.99.7.bb  |   1 +
 2 files changed, 327 insertions(+)
 create mode 100644 
meta-oe/recipes-support/gpm/gpm-1.99.7/remove_nested_functions.patch

diff --git 
a/meta-oe/recipes-support/gpm/gpm-1.99.7/remove_nested_functions.patch 
b/meta-oe/recipes-support/gpm/gpm-1.99.7/remove_nested_functions.patch
new file mode 100644
index 000..d2d6cb8
--- /dev/null
+++ b/meta-oe/recipes-support/gpm/gpm-1.99.7/remove_nested_functions.patch
@@ -0,0 +1,326 @@
+Remove nested functions, they are not available in all compilers
+e.g. clang will not support them.
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj 
+
+Index: gpm-1.99.7/src/drivers/summa/i.c
+===
+--- gpm-1.99.7.orig/src/drivers/summa/i.c
 gpm-1.99.7/src/drivers/summa/i.c
+@@ -36,6 +36,28 @@ extern int summamaxy;
+ 
+ extern signed char summaid;
+ 
++static void resetsumma(int fd)
++{
++   write(fd, 0, 1);  /* Reset */
++   usleep(40);   /* wait */
++}
++
++static int waitsumma(int fd)
++{
++   struct timeval timeout;
++
++   fd_set readfds;
++
++   int err;
++
++   FD_ZERO();
++   FD_SET(fd, );
++   timeout.tv_sec = 0;
++   timeout.tv_usec = 20;
++   err = select(FD_SETSIZE, , NULL, NULL, );
++   return (err);
++}
++
+ Gpm_Type *I_summa(int fd, unsigned short flags, struct Gpm_Type *type, int 
argc,
+   char **argv)
+ {
+@@ -43,24 +65,6 @@ Gpm_Type *I_summa(int fd, unsigned short
+flags = argc = 0;/* FIXME: 1.99.13 */
+argv = NULL;
+ 
+-   void resetsumma() {
+-  write(fd, 0, 1);  /* Reset */
+-  usleep(40);   /* wait */
+-   }
+-   int waitsumma() {
+-  struct timeval timeout;
+-
+-  fd_set readfds;
+-
+-  int err;
+-
+-  FD_ZERO();
+-  FD_SET(fd, );
+-  timeout.tv_sec = 0;
+-  timeout.tv_usec = 20;
+-  err = select(FD_SETSIZE, , NULL, NULL, );
+-  return (err);
+-   }
+int err;
+ 
+char buffer[255];
+@@ -91,7 +95,7 @@ Gpm_Type *I_summa(int fd, unsigned short
+ */
+setspeed(fd, 1200, 9600, 1,
+ B9600 | CS8 | CREAD | CLOCAL | HUPCL | PARENB | PARODD);
+-   resetsumma();
++   resetsumma(fd);
+ 
+write(fd, SS_PROMPT_MODE, strlen(SS_PROMPT_MODE));
+ 
+@@ -103,7 +107,7 @@ Gpm_Type *I_summa(int fd, unsigned short
+* read the Summa Firm-ID 
+*/
+   write(fd, SS_FIRMID, strlen(SS_FIRMID));
+-  err = waitsumma();
++  err = waitsumma(fd);
+   if(!((err == -1) || (!err))) {
+  summaid = 10;  /* Original Summagraphics */
+  read(fd, buffer, 255); /* Read Firm-ID */
+@@ -111,14 +115,14 @@ Gpm_Type *I_summa(int fd, unsigned short
+}
+ 
+if(summaid < 0) {/* Genius-test */
+-  resetsumma();
++  resetsumma(fd);
+   write(fd, GEN_MMSERIES, 1);
+   write(fd, _MODELL, 1);/* Read modell */
+-  err = waitsumma();
++  err = waitsumma(fd);
+   if(!((err == -1) || (!err))) {/* read Genius-ID */
+- err = waitsumma();
++ err = waitsumma(fd);
+  if(!((err == -1) || (!err))) {
+-err = waitsumma();
++err = waitsumma(fd);
+ if(!((err == -1) || (!err))) {
+read(fd, , 1);
+summaid = (config[0] & 224) >> 5;/* genius tablet-id
+@@ -135,14 +139,14 @@ Gpm_Type *I_summa(int fd, unsigned short
+ * unknown tablet ?
+ */
+if((summaid < 0) || (summaid == 11)) {
+-  resetsumma();
++  resetsumma(fd);
+   write(fd, SS_BINARY_FMT SS_PROMPT_MODE, 3);
+}
+ 
+/*
+ * read tablet size 
+ */
+-   err = waitsumma();
++   err = waitsumma(fd);
+if(!((err == -1) || (!err)))
+   read(fd, buffer, sizeof(buffer));
+write(fd, SS_READCONFIG, 1);
+Index: gpm-1.99.7/src/drivers/wacom/i.c
+===
+--- gpm-1.99.7.orig/src/drivers/wacom/i.c
 gpm-1.99.7/src/drivers/wacom/i.c
+@@ -30,10 +30,6 @@
+ #include "message.h"/* gpm_report */
+ #include "wacom.h"  /* wacom */
+ 
+-Gpm_Type *I_wacom(int fd, unsigned short flags, struct Gpm_Type *type, int 
argc,
+-  char **argv)
+-{
+-
+ /* wacom graphire tablet */
+ #define UD_RESETBAUD "\r$"  /* reset baud rate to default (wacom V) */
+/*
+@@ -45,83 +41,91 @@ Gpm_Type *I_wacom(int fd, unsigned short
+ #define UD_COORD "~C\r" /* Request max coordinates */
+ #define UD_STOP  "\nSP\r"   /* stop sending coordinates */
+ 
+-   flags = 0;   /* FIXME: 1.99.13 */
+ 
+-   void reset_wacom() {
+-  /*
+-   * Init Wacom communication; this is modified from xf86Wacom.so module 
+-   */
+-  

[oe] [meta-oe][PATCH 14/16] fwts: Update to 16.09 release

2016-10-18 Thread Khem Raj
license change is just year change from 2014 to 2016
Fix build with clang while here

Signed-off-by: Khem Raj 
---
 ...nstant-logical-operand-warning-with-clang.patch | 81 ++
 meta-oe/recipes-test/fwts/fwts_git.bb  | 15 ++--
 2 files changed, 91 insertions(+), 5 deletions(-)
 create mode 100644 
meta-oe/recipes-test/fwts/fwts/0001-ignore-constant-logical-operand-warning-with-clang.patch

diff --git 
a/meta-oe/recipes-test/fwts/fwts/0001-ignore-constant-logical-operand-warning-with-clang.patch
 
b/meta-oe/recipes-test/fwts/fwts/0001-ignore-constant-logical-operand-warning-with-clang.patch
new file mode 100644
index 000..ccfe580
--- /dev/null
+++ 
b/meta-oe/recipes-test/fwts/fwts/0001-ignore-constant-logical-operand-warning-with-clang.patch
@@ -0,0 +1,81 @@
+From 953cff93c85d3cfd5cbcac56e14443dc5f6e5fbd Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Wed, 19 Oct 2016 01:57:16 +
+Subject: [PATCH] ignore constant-logical-operand warning with clang
+
+Signed-off-by: Khem Raj 
+---
+ src/uefi/uefirtauthvar/uefirtauthvar.c | 5 +
+ 1 file changed, 5 insertions(+)
+
+Index: git/src/uefi/uefirtauthvar/uefirtauthvar.c
+===
+--- git.orig/src/uefi/uefirtauthvar/uefirtauthvar.c
 git/src/uefi/uefirtauthvar/uefirtauthvar.c
+@@ -142,6 +142,9 @@ static int uefirtauthvar_deinit(fwts_fra
+   return FWTS_OK;
+ }
+ 
++#pragma clang diagnostic push
++#pragma clang diagnostic ignored "-Wconstant-logical-operand"
++
+ static int check_fw_support(fwts_framework *fw, uint64_t status)
+ {
+   if ((status == EFI_INVALID_PARAMETER) &&
+@@ -172,6 +175,8 @@ static int check_fw_support(fwts_framewo
+   return FWTS_OK;
+ }
+ 
++#pragma clang diagnostic pop
++
+ /*
+  * Set the created authenticated variable, AuthVarCreate,
+  * and checking the data size and data.
+Index: git/src/lib/src/fwts_acpi_tables.c
+===
+--- git.orig/src/lib/src/fwts_acpi_tables.c
 git/src/lib/src/fwts_acpi_tables.c
+@@ -392,10 +392,14 @@ static int fwts_acpi_handle_fadt(
+   /* Determine FACS addr and load it.
+* Will ignore the missing FACS in the hardware-reduced mode.
+*/
++#pragma clang diagnostic push
++#pragma clang diagnostic ignored "-Waddress-of-packed-member"
++
+   result = fwts_acpi_handle_fadt_tables(fw, fadt,
+   "FACS", "FIRMWARE_CTRL", "X_FIRMWARE_CTRL",
+   >firmware_control, >x_firmware_ctrl,
+   provenance);
++
+   if (result != FWTS_OK) {
+   if ((result == FWTS_NULL_POINTER) &&
+   fwts_acpi_is_reduced_hardware(fadt)) {
+@@ -414,6 +418,7 @@ static int fwts_acpi_handle_fadt(
+   return FWTS_ERROR;
+   }
+   return FWTS_OK;
++#pragma clang diagnostic pop
+ }
+ 
+ /*
+Index: git/src/dmi/dmicheck/dmicheck.c
+===
+--- git.orig/src/dmi/dmicheck/dmicheck.c
 git/src/dmi/dmicheck/dmicheck.c
+@@ -209,6 +209,8 @@ static const char *uuid_patterns[] = {
+   "0A0A0A0A-0A0A-0A0A-0A0A-0A0A0A0A0A0A",
+   NULL,
+ };
++#pragma clang diagnostic push
++#pragma clang diagnostic ignored "-Wunneeded-internal-declaration"
+ 
+ static const fwts_chassis_type_map fwts_dmi_chassis_type[] = {
+   { "Invalid",FWTS_SMBIOS_CHASSIS_INVALID },
+@@ -245,6 +247,7 @@ static const fwts_chassis_type_map fwts_
+   { "Convertible",FWTS_SMBIOS_CHASSIS_CONVERTIBLE },
+   { "Detachable", FWTS_SMBIOS_CHASSIS_DETACHABLE },
+ };
++#pragma clang diagnostic pop
+ 
+ /* Remapping table from buggy version numbers to correct values */
+ static const fwts_dmi_version dmi_versions[] = {
diff --git a/meta-oe/recipes-test/fwts/fwts_git.bb 
b/meta-oe/recipes-test/fwts/fwts_git.bb
index 197fe20..cbf5154 100644
--- a/meta-oe/recipes-test/fwts/fwts_git.bb
+++ b/meta-oe/recipes-test/fwts/fwts_git.bb
@@ -3,12 +3,14 @@ DESCRIPTION = "The tool fwts comprises of over fifty tests 
that are designed to
 HOMEPAGE = "https://wiki.ubuntu.com/Kernel/Reference/fwts;
 
 LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = 
"file://src/main.c;beginline=1;endline=16;md5=deb8af5388e838d133eaa036f4d1496f"
+LIC_FILES_CHKSUM = 
"file://src/main.c;beginline=1;endline=16;md5=31da590f3e9f3bd34dcdb9e4db568519"
 
-PV = "14.12.00"
+PV = "16.09.00"
 
-SRCREV = "efc18d16294f492b7f72bba64344b2eed50e6a69"
-SRC_URI = "git://kernel.ubuntu.com/hwe/fwts.git"
+SRCREV = "7fd1834a879f27647b371c18284868c9a54f6474"
+SRC_URI = "git://kernel.ubuntu.com/hwe/fwts.git \
+   
file://0001-ignore-constant-logical-operand-warning-with-clang.patch \
+   "
 
 S = "${WORKDIR}/git"
 
@@ -16,9 +18,12 @@ DEPENDS = "libpcre json-c glib-2.0"
 
 inherit autotools-brokensep
 
-CFLAGS += "-I${STAGING_INCDIR}/json-c -Wno-error=misleading-indentation"

[oe] [meta-networking][PATCH 08/16] lowpan-tools: Fix errors found with clang

2016-10-18 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 .../0001-Fix-build-errors-with-clang.patch | 34 ++
 .../lowpan-tools/lowpan-tools_git.bb   |  6 +++-
 2 files changed, 39 insertions(+), 1 deletion(-)
 create mode 100644 
meta-networking/recipes-support/lowpan-tools/lowpan-tools/0001-Fix-build-errors-with-clang.patch

diff --git 
a/meta-networking/recipes-support/lowpan-tools/lowpan-tools/0001-Fix-build-errors-with-clang.patch
 
b/meta-networking/recipes-support/lowpan-tools/lowpan-tools/0001-Fix-build-errors-with-clang.patch
new file mode 100644
index 000..8e906f7
--- /dev/null
+++ 
b/meta-networking/recipes-support/lowpan-tools/lowpan-tools/0001-Fix-build-errors-with-clang.patch
@@ -0,0 +1,34 @@
+From 5f9e80acb0a1ac399839bf160e43f6120c4b5128 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Tue, 18 Oct 2016 23:49:09 +
+Subject: [PATCH] Fix build errors with clang
+
+| 
../../../../../../../workspace/sources/lowpan-tools/src/coordinator.c:313:50: 
error: format specifies type 'unsigned char' but the argument has type 'int' 
[-Werror,-Wformat]
+| fprintf(stderr, "Opt: %c (%hhx)\n", (char)opt, opt);
+|    ^~~
+|   %x
+| 1 error generated.
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj 
+---
+ src/coordinator.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/coordinator.c b/src/coordinator.c
+index c139aae..f0de6d2 100644
+--- a/src/coordinator.c
 b/src/coordinator.c
+@@ -310,7 +310,7 @@ int main(int argc, char **argv)
+ #else
+   opt = getopt(argc, argv, "l:f:d:m:n:i:s:p:c:hv");
+ #endif
+-  fprintf(stderr, "Opt: %c (%hhx)\n", opt, opt);
++  fprintf(stderr, "Opt: %c (%hhx)\n", opt, (unsigned char)opt);
+   if (opt == -1)
+   break;
+ 
+-- 
+1.9.1
+
diff --git a/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb 
b/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb
index 76a4edf..8c7dbc0 100644
--- a/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb
+++ b/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb
@@ -9,7 +9,9 @@ DEPENDS = "flex-native bison-native libnl python"
 
 PV = "0.3.1+git${SRCPV}"
 SRC_URI = "git://git.code.sf.net/p/linux-zigbee/linux-zigbee \
-   file://no-help2man.patch"
+   file://no-help2man.patch \
+   file://0001-Fix-build-errors-with-clang.patch \
+   "
 SRCREV = "38f42dbfce9e13629263db3bd3b81f14c69bb733"
 
 S = "${WORKDIR}/git"
@@ -18,6 +20,8 @@ inherit autotools python-dir pkgconfig
 
 CACHED_CONFIGUREVARS += 
"am_cv_python_pythondir=${PYTHON_SITEPACKAGES_DIR}/lowpan-tools"
 
+CFLAGS += "-Wno-initializer-overrides"
+
 do_install_append() {
 rmdir ${D}${localstatedir}/run
 }
-- 
2.10.0

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


[oe] [meta-oe][PATCH 10/16] flashrom: Fix build with clang and aarch64

2016-10-18 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 .../flashrom/0001-Fix-compilation-on-aarch64.patch | 62 +++
 ...utological-pointer-compare-when-using-cla.patch | 35 +++
 .../0003-remove-duplicate-const-qualifiers.patch   | 71 ++
 .../recipes-extended/flashrom/flashrom_0.9.6.1.bb  |  8 ++-
 4 files changed, 175 insertions(+), 1 deletion(-)
 create mode 100644 
meta-oe/recipes-extended/flashrom/flashrom/0001-Fix-compilation-on-aarch64.patch
 create mode 100644 
meta-oe/recipes-extended/flashrom/flashrom/0002-Disable-Wtautological-pointer-compare-when-using-cla.patch
 create mode 100644 
meta-oe/recipes-extended/flashrom/flashrom/0003-remove-duplicate-const-qualifiers.patch

diff --git 
a/meta-oe/recipes-extended/flashrom/flashrom/0001-Fix-compilation-on-aarch64.patch
 
b/meta-oe/recipes-extended/flashrom/flashrom/0001-Fix-compilation-on-aarch64.patch
new file mode 100644
index 000..6c2f64e
--- /dev/null
+++ 
b/meta-oe/recipes-extended/flashrom/flashrom/0001-Fix-compilation-on-aarch64.patch
@@ -0,0 +1,62 @@
+From d9e4dc750dc45e42b482d744829254a3672c11b3 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Wed, 19 Oct 2016 00:24:08 +
+Subject: [PATCH 1/3] Fix compilation on aarch64
+
+Signed-off-by: Khem Raj 
+---
+ arch.h | 2 +-
+ hwaccess.c | 2 +-
+ hwaccess.h | 6 +++---
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+Index: flashrom-0.9.6.1/arch.h
+===
+--- flashrom-0.9.6.1.orig/arch.h
 flashrom-0.9.6.1/arch.h
+@@ -27,7 +27,7 @@
+ #define __FLASHROM_ARCH__ "mips"
+ #elif defined(__powerpc__) || defined(__powerpc64__) || defined(__ppc__) || 
defined(__ppc64__)
+ #define __FLASHROM_ARCH__ "ppc"
+-#elif defined(__arm__)
++#elif defined(__arm__) || defined(__aarch64__)
+ #define __FLASHROM_ARCH__ "arm"
+ #endif
+ __FLASHROM_ARCH__
+Index: flashrom-0.9.6.1/hwaccess.c
+===
+--- flashrom-0.9.6.1.orig/hwaccess.c
 flashrom-0.9.6.1/hwaccess.c
+@@ -121,7 +121,7 @@ int rget_io_perms(void)
+   return 0;
+ }
+ 
+-#elif defined (__arm__)
++#elif defined (__arm__) || defined (__aarch64__)
+ 
+ static inline void sync_primitive(void)
+ {
+Index: flashrom-0.9.6.1/hwaccess.h
+===
+--- flashrom-0.9.6.1.orig/hwaccess.h
 flashrom-0.9.6.1/hwaccess.h
+@@ -68,8 +68,8 @@
+ #error Little-endian PowerPC #defines are unknown
+ #endif
+ 
+-#elif defined (__arm__)
+-#if defined (__ARMEL__)
++#elif defined (__arm__) || defined (__aarch64__)
++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+ #define __FLASHROM_LITTLE_ENDIAN__ 1
+ #else
+ #error Big-endian ARM #defines are unknown
+@@ -337,7 +337,7 @@ int libpayload_wrmsr(int addr, msr_t msr
+ 
+ /* PCI port I/O is not yet implemented on MIPS. */
+ 
+-#elif defined(__arm__)
++#elif defined(__arm__) || defined (__aarch64__)
+ 
+ /* Non memory mapped I/O is not supported on ARM. */
+ 
diff --git 
a/meta-oe/recipes-extended/flashrom/flashrom/0002-Disable-Wtautological-pointer-compare-when-using-cla.patch
 
b/meta-oe/recipes-extended/flashrom/flashrom/0002-Disable-Wtautological-pointer-compare-when-using-cla.patch
new file mode 100644
index 000..aec11bf
--- /dev/null
+++ 
b/meta-oe/recipes-extended/flashrom/flashrom/0002-Disable-Wtautological-pointer-compare-when-using-cla.patch
@@ -0,0 +1,35 @@
+From 9be0d152dfe8ac0f9b665d61aeb3f99dae533e0f Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Wed, 19 Oct 2016 00:25:09 +
+Subject: [PATCH 2/3] Disable Wtautological-pointer-compare when using clang
+
+Signed-off-by: Khem Raj 
+---
+ flashrom.c | 4 
+ 1 file changed, 4 insertions(+)
+
+diff --git a/flashrom.c b/flashrom.c
+index 04e9934..bf49104 100644
+--- a/flashrom.c
 b/flashrom.c
+@@ -1569,6 +1569,9 @@ int selfcheck(void)
+* For 'flashchips' we check the first element to be non-null. In the
+* other cases there exist use cases where the first element can be
+* null. */
++#pragma clang diagnostic push
++#pragma clang diagnostic ignored "-Wtautological-pointer-compare"
++
+   if (flashchips == NULL || flashchips[0].vendor == NULL) {
+   msg_gerr("Flashchips table miscompilation!\n");
+   ret = 1;
+@@ -1602,6 +1605,7 @@ int selfcheck(void)
+   msg_gerr("Known laptops table does not exist!\n");
+   ret = 1;
+   }
++#pragma clang diagnostic pop
+ #endif
+   return ret;
+ }
+-- 
+1.9.1
+
diff --git 
a/meta-oe/recipes-extended/flashrom/flashrom/0003-remove-duplicate-const-qualifiers.patch
 
b/meta-oe/recipes-extended/flashrom/flashrom/0003-remove-duplicate-const-qualifiers.patch
new file mode 100644
index 000..99283d3
--- /dev/null
+++ 
b/meta-oe/recipes-extended/flashrom/flashrom/0003-remove-duplicate-const-qualifiers.patch
@@ -0,0 +1,71 @@
+From 

[oe] [meta-networking][PATCH 11/16] openl2tp: Fix build with clang

2016-10-18 Thread Khem Raj
Fix a typo in compile cmdline specified via
EXTRA_OECMAKE

Signed-off-by: Khem Raj 
---
 .../0001-test-pppd_dummy.c-Fix-return-value.patch  | 38 ++
 .../recipes-protocols/openl2tp/openl2tp_1.8.bb |  5 +--
 2 files changed, 41 insertions(+), 2 deletions(-)
 create mode 100644 
meta-networking/recipes-protocols/openl2tp/openl2tp/0001-test-pppd_dummy.c-Fix-return-value.patch

diff --git 
a/meta-networking/recipes-protocols/openl2tp/openl2tp/0001-test-pppd_dummy.c-Fix-return-value.patch
 
b/meta-networking/recipes-protocols/openl2tp/openl2tp/0001-test-pppd_dummy.c-Fix-return-value.patch
new file mode 100644
index 000..1f576fa
--- /dev/null
+++ 
b/meta-networking/recipes-protocols/openl2tp/openl2tp/0001-test-pppd_dummy.c-Fix-return-value.patch
@@ -0,0 +1,38 @@
+From ce5f5563ab54db9d28dba44a0e25e8a8c7bb9876 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Wed, 19 Oct 2016 00:34:35 +
+Subject: [PATCH] test/pppd_dummy.c: Fix return value
+
+pause() is defined in unistd.h, clang does not
+like the fact that we are using a function without
+declaration
+
+Signed-off-by: Khem Raj 
+---
+ test/pppd_dummy.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/test/pppd_dummy.c b/test/pppd_dummy.c
+index 148e7d2..b564c36 100644
+--- a/test/pppd_dummy.c
 b/test/pppd_dummy.c
+@@ -26,6 +26,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define PPPD_DUMMY_TMP_FILE   "/tmp/pppd_dummy"
+ 
+@@ -40,7 +41,7 @@ int main(int argc, char **argv)
+   
+   if (file == NULL) {
+   syslog(LOG_ERR, "Failed to open %s\n", filename);
+-  return;
++  return -1;
+   }
+ 
+   for (arg = 1; arg < argc; arg++) {
+-- 
+1.9.1
+
diff --git a/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb 
b/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
index 270472e..5a63404 100644
--- a/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
+++ b/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
@@ -15,14 +15,15 @@ SRC_URI = 
"http://ftp.jaist.ac.jp/pub/sourceforge/o/op/${PN}/${PN}/${PV}/${BP}.t
file://Makefile-modify-CFLAGS-to-aviod-build-error.patch \
file://openl2tp-simplify-gcc-warning-hack.patch \
file://Makefile-obey-LDFLAGS.patch \
-  "
+   file://0001-test-pppd_dummy.c-Fix-return-value.patch \
+   "
 SRC_URI[md5sum] = "e3d08dedfb9e6a9a1e24f6766f6dadd0"
 SRC_URI[sha256sum] = 
"1c97704d4b963a87fbc0e741668d4530933991515ae9ab0dffd11b5444f4860f"
 
 inherit autotools-brokensep pkgconfig
 
 PARALLEL_MAKE = ""
-EXTRA_OEMAKE = 'CFLAGS="${CFLAGS} -Wno-nused-but-set-variable"'
+EXTRA_OEMAKE = 'CFLAGS="${CFLAGS} -Wno-unused-but-set-variable"'
 
 do_compile_prepend() {
 sed -i -e "s:SYS_LIBDIR=.*:SYS_LIBDIR=${libdir}:g" \
-- 
2.10.0

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


[oe] [meta-multimedia][PATCH 07/16] libdc1394: Upgrade to 2.2.4

2016-10-18 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta-multimedia/recipes-multimedia/libdc1394/libdc1394_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-multimedia/recipes-multimedia/libdc1394/libdc1394_git.bb 
b/meta-multimedia/recipes-multimedia/libdc1394/libdc1394_git.bb
index 0ea5cb9..c298b44 100755
--- a/meta-multimedia/recipes-multimedia/libdc1394/libdc1394_git.bb
+++ b/meta-multimedia/recipes-multimedia/libdc1394/libdc1394_git.bb
@@ -7,9 +7,9 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=c848e78d9a4a5cc69906178e4d6fbd64"
 # libsdl to provide sdl.m4 with AM_PATH_SDL
 DEPENDS += "libusb1 libraw1394 libsdl"
 
-PV = "2.2.1+gitr${SRCPV}"
+PV = "2.2.4+gitr${SRCPV}"
 
-SRCREV = "b90342933b4b48634b98b73805f47bd25ed5857e"
+SRCREV = "9ac63fe7a7561bea83bfd4a5db47d4d74fde43a6"
 
 SRC_URI = "git://git.code.sf.net/p/libdc1394/code;branch=master;protocol=git \
file://install_examples.patch \
-- 
2.10.0

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


[oe] [meta-python][PATCH 06/16] python-greenlet: Rename register from rX to xX for aarch64

2016-10-18 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 ...x-instead-of-r-for-aarch64-register-names.patch | 38 ++
 .../python/python-greenlet_0.4.9.bb|  3 ++
 2 files changed, 41 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python-greenlet/0001-Use-x-instead-of-r-for-aarch64-register-names.patch

diff --git 
a/meta-python/recipes-devtools/python/python-greenlet/0001-Use-x-instead-of-r-for-aarch64-register-names.patch
 
b/meta-python/recipes-devtools/python/python-greenlet/0001-Use-x-instead-of-r-for-aarch64-register-names.patch
new file mode 100644
index 000..4868bf3
--- /dev/null
+++ 
b/meta-python/recipes-devtools/python/python-greenlet/0001-Use-x-instead-of-r-for-aarch64-register-names.patch
@@ -0,0 +1,38 @@
+From b53fb3bf861f895034452e984f2accb8bebbd3c9 Mon Sep 17 00:00:00 2001
+From: Fredrik Fornwall 
+Date: Wed, 7 Sep 2016 09:25:54 +0200
+Subject: [PATCH] Use x instead of r for aarch64 register names
+
+This fixes clang compatibility.
+---
+Upstream-Status: Backport
+
+ platform/switch_aarch64_gcc.h | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/platform/switch_aarch64_gcc.h b/platform/switch_aarch64_gcc.h
+index 2fbc569..0b9d556 100644
+--- a/platform/switch_aarch64_gcc.h
 b/platform/switch_aarch64_gcc.h
+@@ -2,6 +2,7 @@
+  * this is the internal transfer function.
+  *
+  * HISTORY
++ * 07-Sep-16 Add clang support using x register naming. Fredrik Fornwall
+  * 13-Apr-13 Add support for strange GCC caller-save decisions
+  * 08-Apr-13 File creation. Michael Matz
+  *
+@@ -15,8 +16,8 @@
+ 
+ #ifdef SLP_EVAL
+ #define STACK_MAGIC 0
+-#define REGS_TO_SAVE "r19", "r20", "r21", "r22", "r23", "r24", "r25", "r26", \
+- "r27", "r28", "r30" /* aka lr */, \
++#define REGS_TO_SAVE "x19", "x20", "x21", "x22", "x23", "x24", "x25", "x26", \
++ "x27", "x28", "x30" /* aka lr */, \
+  "v8", "v9", "v10", "v11", \
+  "v12", "v13", "v14", "v15"
+ 
+-- 
+1.9.1
+
diff --git a/meta-python/recipes-devtools/python/python-greenlet_0.4.9.bb 
b/meta-python/recipes-devtools/python/python-greenlet_0.4.9.bb
index c1bc214..4c0faf5 100644
--- a/meta-python/recipes-devtools/python/python-greenlet_0.4.9.bb
+++ b/meta-python/recipes-devtools/python/python-greenlet_0.4.9.bb
@@ -3,6 +3,9 @@ LICENSE = "MIT & PSF"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=03143d7a1a9f5d8a0fee825f24ca9c36 \
 file://LICENSE.PSF;md5=c106931d9429eda0492617f037b8f69a"
 
+SRC_URI += "\
+   file://0001-Use-x-instead-of-r-for-aarch64-register-names.patch \
+   "
 SRC_URI[md5sum] = "c6659cdb2a5e591723e629d2eef22e82"
 SRC_URI[sha256sum] = 
"58b2f3a2e7075c655616bf95e82868db4980f3bb6661db70ad02a51e4ddd2252"
 
-- 
2.10.0

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


[oe] [meta-oe][PATCH 04/16] libplist: Squash warnings found by clang

2016-10-18 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 .../files/0001-Fix-warnings-found-with-clang.patch | 51 ++
 .../libimobiledevice/libplist_1.8.bb   |  3 +-
 2 files changed, 53 insertions(+), 1 deletion(-)
 create mode 100644 
meta-oe/recipes-extended/libimobiledevice/files/0001-Fix-warnings-found-with-clang.patch

diff --git 
a/meta-oe/recipes-extended/libimobiledevice/files/0001-Fix-warnings-found-with-clang.patch
 
b/meta-oe/recipes-extended/libimobiledevice/files/0001-Fix-warnings-found-with-clang.patch
new file mode 100644
index 000..f8114a0
--- /dev/null
+++ 
b/meta-oe/recipes-extended/libimobiledevice/files/0001-Fix-warnings-found-with-clang.patch
@@ -0,0 +1,51 @@
+From ad1be542b87b3186f8ef7bee2c594daefe5bb4c8 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Tue, 18 Oct 2016 21:31:40 +
+Subject: [PATCH] Fix warnings found with clang
+
+| 
/mnt/oe/openembedded-core/build/workspace/sources/libplist/src/base64.c:107:12: 
error: non-void function 'base64decode' should return a value [-Wreturn-type]
+| if (!buf) return;
+|   ^
+| 
/mnt/oe/openembedded-core/build/workspace/sources/libplist/src/base64.c:109:16: 
error: non-void function 'base64decode' should return a value [-Wreturn-type]
+| if (len <= 0) return;
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj 
+---
+ libcnary/node.c | 2 +-
+ src/base64.c| 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/libcnary/node.c b/libcnary/node.c
+index 1f9f669..d6f3f63 100644
+--- a/libcnary/node.c
 b/libcnary/node.c
+@@ -104,7 +104,7 @@ int node_detach(node_t* parent, node_t* child) {
+ 
+ int node_insert(node_t* parent, unsigned int index, node_t* child)
+ {
+-  if (!parent || !child) return;
++  if (!parent || !child) return -1;
+   child->isLeaf = TRUE;
+   child->isRoot = FALSE;
+   child->parent = parent;
+diff --git a/src/base64.c b/src/base64.c
+index 65c6061..531a06a 100644
+--- a/src/base64.c
 b/src/base64.c
+@@ -104,9 +104,9 @@ static int base64decode_block(unsigned char *target, const 
char *data, size_t da
+ 
+ unsigned char *base64decode(const char *buf, size_t *size)
+ {
+-  if (!buf) return;
++  if (!buf) return 0;
+   size_t len = strlen(buf);
+-  if (len <= 0) return;
++  if (len <= 0) return 0;
+   unsigned char *outbuf = (unsigned char*)malloc((len/4)*3+3);
+ 
+   unsigned char *line;
+-- 
+1.9.1
+
diff --git a/meta-oe/recipes-extended/libimobiledevice/libplist_1.8.bb 
b/meta-oe/recipes-extended/libimobiledevice/libplist_1.8.bb
index 6e8d69f..10d40fb 100644
--- a/meta-oe/recipes-extended/libimobiledevice/libplist_1.8.bb
+++ b/meta-oe/recipes-extended/libimobiledevice/libplist_1.8.bb
@@ -10,7 +10,8 @@ inherit cmake pkgconfig
 
 SRC_URI = "http://www.libimobiledevice.org/downloads/libplist-${PV}.tar.bz2 \
file://fix-parallel-make.patch \
-"
+   file://0001-Fix-warnings-found-with-clang.patch \
+   "
 
 SRC_URI[md5sum] = "2a9e0258847d50f9760dc3ece25f4dc6"
 SRC_URI[sha256sum] = 
"a418da3880308199b74766deef2a760a9b169b81a868a6a9032f7614e20500ec"
-- 
2.10.0

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


[oe] [meta-oe][PATCH 05/16] frame: Fix build with clang

2016-10-18 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 .../frame/pessimizing-move.patch   | 27 ++
 .../canonical-multitouch/frame_2.5.0.bb|  3 ++-
 2 files changed, 29 insertions(+), 1 deletion(-)
 create mode 100644 
meta-oe/recipes-support/canonical-multitouch/frame/pessimizing-move.patch

diff --git 
a/meta-oe/recipes-support/canonical-multitouch/frame/pessimizing-move.patch 
b/meta-oe/recipes-support/canonical-multitouch/frame/pessimizing-move.patch
new file mode 100644
index 000..aa5a56a
--- /dev/null
+++ b/meta-oe/recipes-support/canonical-multitouch/frame/pessimizing-move.patch
@@ -0,0 +1,27 @@
+let compiler decide on copy elision
+Fixes compiler errors with clang
+| ../../frame-2.5.0/src/x11/device_x11.cpp:126:13: error: moving a temporary 
object prevents copy elision [-Werror,-Wpessimizing-move]
+| std::move(UniqueUFAxis(static_cast(axis)));
+| ^
+| ../../frame-2.5.0/src/x11/device_x11.cpp:126:13: note: remove std::move call 
here
+| std::move(UniqueUFAxis(static_cast(axis)));
+| ^~~
+| 1 error generated.
+
+Signed-off-by: Khem Raj 
+Upstream-Status: Pending
+
+Index: frame-2.5.0/src/x11/device_x11.cpp
+===
+--- frame-2.5.0.orig/src/x11/device_x11.cpp
 frame-2.5.0/src/x11/device_x11.cpp
+@@ -122,8 +122,7 @@ UFDeviceX11::UFDeviceX11(Display* displa
+ UFAxis_* axis = new UFAxis(type, valuator_info->min, 
valuator_info->max,
+valuator_info->resolution);
+ 
+-axes_[type] =
+-std::move(UniqueUFAxis(static_cast(axis)));
++axes_[type] = UniqueUFAxis(static_cast(axis));
+ 
+ axis_map_[valuator_info->number] = type;
+ 
diff --git a/meta-oe/recipes-support/canonical-multitouch/frame_2.5.0.bb 
b/meta-oe/recipes-support/canonical-multitouch/frame_2.5.0.bb
index ecc9524..0ad10a4 100644
--- a/meta-oe/recipes-support/canonical-multitouch/frame_2.5.0.bb
+++ b/meta-oe/recipes-support/canonical-multitouch/frame_2.5.0.bb
@@ -10,7 +10,8 @@ LIC_FILES_CHKSUM = " \
 
 inherit autotools pkgconfig
 
-SRC_URI = 
"https://launchpad.net/${BPN}/trunk/v${PV}/+download/${BPN}-${PV}.tar.gz;
+SRC_URI = 
"https://launchpad.net/${BPN}/trunk/v${PV}/+download/${BPN}-${PV}.tar.gz \
+   file://pessimizing-move.patch"
 SRC_URI[md5sum] = "02baa941091c5d198cd1623b3ad36e68"
 SRC_URI[sha256sum] = 
"cfb9ab52cdccd926f1822a457264d0014c7eb9f4600a72626063dd073b26256f"
 
-- 
2.10.0

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


[oe] [meta-oe][PATCH 01/16] boinc: Add recipe for boinc-client

2016-10-18 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 .../boinc/boinc-client/boinc-AM_CONDITIONAL.patch  | 19 +
 .../boinc/boinc-client/cross-compile.patch | 92 ++
 .../boinc/boinc-client/opengl_m4_check.patch   | 13 +++
 .../recipes-extended/boinc/boinc-client_7.6.33.bb  | 60 ++
 4 files changed, 184 insertions(+)
 create mode 100644 
meta-oe/recipes-extended/boinc/boinc-client/boinc-AM_CONDITIONAL.patch
 create mode 100644 
meta-oe/recipes-extended/boinc/boinc-client/cross-compile.patch
 create mode 100644 
meta-oe/recipes-extended/boinc/boinc-client/opengl_m4_check.patch
 create mode 100644 meta-oe/recipes-extended/boinc/boinc-client_7.6.33.bb

diff --git 
a/meta-oe/recipes-extended/boinc/boinc-client/boinc-AM_CONDITIONAL.patch 
b/meta-oe/recipes-extended/boinc/boinc-client/boinc-AM_CONDITIONAL.patch
new file mode 100644
index 000..3ebf7c8
--- /dev/null
+++ b/meta-oe/recipes-extended/boinc/boinc-client/boinc-AM_CONDITIONAL.patch
@@ -0,0 +1,19 @@
+--- A/configure.ac
 B/configure.ac
+@@ -39,6 +39,7 @@ AC_PROG_CC
+ AC_PROG_CXX
+ AC_PROG_F77
+ AC_PROG_CPP
++AC_PROG_OBJCXX
+ AC_PROG_MAKE_SET
+ SAH_LINKS
+ AC_LANG_PUSH(C)
+@@ -744,6 +745,8 @@ AM_CONDITIONAL(ENABLE_LIBRARIES, [test "
+ AM_CONDITIONAL(INSTALL_HEADERS, [test "${enable_install_headers}" = yes])
+ AM_CONDITIONAL(HAVE_CUDA_LIB, [test "${enable_client}" = yes -a -f 
./coprocs/CUDA/posix/${boinc_platform}/libcudart.so])
+ 
++PKG_CHECK_MODULES([GTK2], [gtk+-2.0])
++
+ dnl ==
+ dnl some more vodoo required for building portable client-binary (client, 
clientgui)
+ dnl ==
diff --git a/meta-oe/recipes-extended/boinc/boinc-client/cross-compile.patch 
b/meta-oe/recipes-extended/boinc/boinc-client/cross-compile.patch
new file mode 100644
index 000..3d29558
--- /dev/null
+++ b/meta-oe/recipes-extended/boinc/boinc-client/cross-compile.patch
@@ -0,0 +1,92 @@
+Index: boinc-client_release-7.6-7.6.33/api/Makefile.am
+===
+--- boinc-client_release-7.6-7.6.33.orig/api/Makefile.am
 boinc-client_release-7.6-7.6.33/api/Makefile.am
+@@ -43,18 +43,18 @@ endif
+ 
+ lib_LTLIBRARIES = libboinc_api.la
+ libboinc_api_la_SOURCES = $(api_files)
+-libboinc_api_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number 
$(LIBBOINC_VERSION)
++libboinc_api_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
+ 
+ if BUILD_GRAPHICS_API
+ lib_LTLIBRARIES += libboinc_graphics2.la
+ libboinc_graphics2_la_SOURCES = $(graphics2_files)
+ libboinc_graphics2_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib 
-I$(top_srcdir)/samples/image_libs
+-libboinc_graphics2_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number 
$(LIBBOINC_VERSION) -ljpeg
++libboinc_graphics2_la_LDFLAGS = -version-number $(LIBBOINC_VERSION) -ljpeg
+ endif #BUILD_GRAPHICS_API
+ 
+ lib_LTLIBRARIES += libboinc_opencl.la
+ libboinc_opencl_la_SOURCES = $(opencl_files)
+-libboinc_opencl_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number 
$(LIBBOINC_VERSION)
++libboinc_opencl_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
+ 
+ if INSTALL_HEADERS
+ ## install only headers that are meant for exporting the API !!
+Index: boinc-client_release-7.6-7.6.33/lib/Makefile.am
+===
+--- boinc-client_release-7.6-7.6.33.orig/lib/Makefile.am
 boinc-client_release-7.6-7.6.33/lib/Makefile.am
+@@ -173,7 +173,7 @@ lib_LTLIBRARIES = libboinc.la
+ libboinc_la_SOURCES = $(generic_sources) $(mac_sources) $(win_sources)
+ libboinc_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
+ libboinc_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
+-libboinc_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -static -version-number 
$(LIBBOINC_VERSION)
++libboinc_la_LDFLAGS = -static -version-number $(LIBBOINC_VERSION)
+ libboinc_la_LIBADD =
+ 
+ if ENABLE_BOINCCRYPT
+@@ -181,7 +181,7 @@ lib_LTLIBRARIES += libboinc_crypt.la
+ libboinc_crypt_la_SOURCES = crypt.cpp
+ libboinc_crypt_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) 
$(SSL_CFLAGS)
+ libboinc_crypt_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) 
$(SSL_CXXFLAGS)
+-libboinc_crypt_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -static 
-version-number $(LIBBOINC_VERSION)
++libboinc_crypt_la_LDFLAGS = -static -version-number $(LIBBOINC_VERSION)
+ libboinc_crypt_la_LIBADD =
+ endif
+ 
+@@ -190,7 +190,7 @@ lib_LTLIBRARIES += libboinc_fcgi.la
+ libboinc_fcgi_la_SOURCES = $(libfcgi_sources) $(mac_sources) $(win_sources)
+ libboinc_fcgi_la_CFLAGS = -D_USING_FCGI_ $(AM_CFLAGS) $(PICFLAGS) 
$(PTHREAD_CFLAGS)
+ libboinc_fcgi_la_CXXFLAGS = -D_USING_FCGI_ $(AM_CXXFLAGS) $(PICFLAGS) 
$(PTHREAD_CFLAGS)
+-libboinc_fcgi_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number 
$(LIBBOINC_VERSION)
++libboinc_fcgi_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
+ 

[oe] [meta-oe][PATCH 03/16] libmbim: Fix build with clang

2016-10-18 Thread Khem Raj
We need to check for clang in configure so
the warning options can be added surgically
depending upon compiler type

Signed-off-by: Khem Raj 
---
 .../libmbim/libmbim/clang.patch| 73 ++
 .../recipes-connectivity/libmbim/libmbim_1.14.0.bb |  4 +-
 2 files changed, 76 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-connectivity/libmbim/libmbim/clang.patch

diff --git a/meta-oe/recipes-connectivity/libmbim/libmbim/clang.patch 
b/meta-oe/recipes-connectivity/libmbim/libmbim/clang.patch
new file mode 100644
index 000..92e657c
--- /dev/null
+++ b/meta-oe/recipes-connectivity/libmbim/libmbim/clang.patch
@@ -0,0 +1,73 @@
+Check for clang compiler since we need to disable
+unused-function warning for clang, at same time
+pass werror when checking for compiler options if
+werror is enabled so spurious options do not get
+enabled. Only the ones that are supported by given
+compiler are accepted.
+
+Signed-off-by: Khem Raj 
+Upstream-Status: Pending
+
+Index: libmbim-1.14.0/m4/compiler-warnings.m4
+===
+--- libmbim-1.14.0.orig/m4/compiler-warnings.m4
 libmbim-1.14.0/m4/compiler-warnings.m4
+@@ -2,10 +2,30 @@ AC_DEFUN([LIBMBIM_COMPILER_WARNINGS],
+ [AC_ARG_ENABLE(more-warnings,
+   AS_HELP_STRING([--enable-more-warnings], [Possible values: 
no/yes/error]),
+   set_more_warnings="$enableval",set_more_warnings=error)
++
++# Clang throws a lot of warnings when it does not understand a flag. Disable
++# this warning for now so other warnings are visible.
++AC_MSG_CHECKING([if compiling with clang])
++AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[
++#ifndef __clang__
++  not clang
++#endif
++  ]])],
++  [CLANG=yes],
++  [CLANG=no]
++)
++AC_MSG_RESULT([$CLANG])
++AS_IF([test "x$CLANG" = "xyes"], [CLANG_FLAGS=-Wno-error=unused-function])
++CFLAGS="$CFLAGS $CLANG_FLAGS"
++LDFLAGS="$LDFLAGS $CLANG_FLAGS"
++
+ AC_MSG_CHECKING(for more warnings)
+ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
+   AC_MSG_RESULT(yes)
+   CFLAGS="-Wall -std=gnu89 $CFLAGS"
++  if test "x$set_more_warnings" = xerror; then
++  WERROR="-Werror"
++  fi
+ 
+   for option in -Wmissing-declarations -Wmissing-prototypes \
+ -Wdeclaration-after-statement -Wstrict-prototypes \
+@@ -17,22 +37,23 @@ if test "$GCC" = "yes" -a "$set_more_war
+ -Wmissing-include-dirs -Waggregate-return \
+ -Wformat-security; do
+   SAVE_CFLAGS="$CFLAGS"
+-  CFLAGS="$CFLAGS $option"
++  CFLAGS="$CFLAGS $option $WERROR"
+   AC_MSG_CHECKING([whether gcc understands $option])
+   AC_TRY_COMPILE([], [],
+   has_option=yes,
+   has_option=no,)
+   if test $has_option = no; then
+   CFLAGS="$SAVE_CFLAGS"
++  else
++  CFLAGS="$SAVE_CFLAGS $option"
+   fi
+   AC_MSG_RESULT($has_option)
+   unset has_option
+   unset SAVE_CFLAGS
+   done
++  CFLAGS="$CFLAGS $WERROR"
+   unset option
+-  if test "x$set_more_warnings" = xerror; then
+-  CFLAGS="$CFLAGS -Werror"
+-  fi
++  unset WERROR
+ else
+   AC_MSG_RESULT(no)
+ fi
diff --git a/meta-oe/recipes-connectivity/libmbim/libmbim_1.14.0.bb 
b/meta-oe/recipes-connectivity/libmbim/libmbim_1.14.0.bb
index 0a8aaaf..02a1788 100644
--- a/meta-oe/recipes-connectivity/libmbim/libmbim_1.14.0.bb
+++ b/meta-oe/recipes-connectivity/libmbim/libmbim_1.14.0.bb
@@ -11,6 +11,8 @@ DEPENDS = "glib-2.0 libgudev"
 
 inherit autotools pkgconfig bash-completion
 
-SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BPN}-${PV}.tar.xz;
+SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BPN}-${PV}.tar.xz \
+   file://clang.patch \
+"
 SRC_URI[md5sum] = "2ed809e65c85353d3ab59e372890e549"
 SRC_URI[sha256sum] = 
"ca8d52a95a18cbabae8f15f83f1572316e888b6504f946e6645d24405127ab5b"
-- 
2.10.0

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


[oe] [meta-gnome][PATCH 02/16] libbonobo: Fix missing dep on orbit2-native and build with clang

2016-10-18 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta-gnome/recipes-gnome/bonobo/libbonobo.inc  |  2 +-
 .../libbonobo/fix-nonliteral-in-string.patch   | 26 ++
 .../recipes-gnome/bonobo/libbonobo_2.32.1.bb   |  1 +
 3 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 
meta-gnome/recipes-gnome/bonobo/libbonobo/fix-nonliteral-in-string.patch

diff --git a/meta-gnome/recipes-gnome/bonobo/libbonobo.inc 
b/meta-gnome/recipes-gnome/bonobo/libbonobo.inc
index e0f6168..60a8597 100644
--- a/meta-gnome/recipes-gnome/bonobo/libbonobo.inc
+++ b/meta-gnome/recipes-gnome/bonobo/libbonobo.inc
@@ -3,7 +3,7 @@ LICENSE = "GPLv2 & LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
 file://COPYING.LIB;md5=7fbc338309ac38fefcd64b04bb903e34"
 SECTION = "x11/gnome/libs"
-DEPENDS = "glib-2.0 orbit2 intltool-native libxml2 dbus dbus-glib"
+DEPENDS = "glib-2.0 orbit2-native orbit2 intltool-native libxml2 dbus 
dbus-glib"
 
 inherit gnomebase gtk-doc lib_package
 
diff --git 
a/meta-gnome/recipes-gnome/bonobo/libbonobo/fix-nonliteral-in-string.patch 
b/meta-gnome/recipes-gnome/bonobo/libbonobo/fix-nonliteral-in-string.patch
new file mode 100644
index 000..20db671
--- /dev/null
+++ b/meta-gnome/recipes-gnome/bonobo/libbonobo/fix-nonliteral-in-string.patch
@@ -0,0 +1,26 @@
+This checks whether the format string is a literal on the calling function. As 
bonobo_debug_print()
+takes already a va_list, we specify the format on the functions that call it
+The second number, which is 0 here, should then be the argument index of the 
variadic argument
+
+Fixed warning with clang
+
+| ../../libbonobo-2.32.1/bonobo/bonobo-debug.c:58:32: error: format string is 
not a string literal [-Werror,-Wformat-nonliteral]
+| vfprintf (_bonobo_debug_file, fmt, args);
+|   ^~~
+| 1 error generated.
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj 
+
+Index: libbonobo-2.32.1/bonobo/bonobo-debug.c
+===
+--- libbonobo-2.32.1.orig/bonobo/bonobo-debug.c
 libbonobo-2.32.1/bonobo/bonobo-debug.c
+@@ -47,6 +47,7 @@ bonobo_debug_init(void)
+ _bonobo_debug_file = stderr;
+ }
+ 
++__attribute__((__format__ (printf, 2, 0)))
+ void
+ bonobo_debug_print (const char *name, char *fmt, ...)
+ {
diff --git a/meta-gnome/recipes-gnome/bonobo/libbonobo_2.32.1.bb 
b/meta-gnome/recipes-gnome/bonobo/libbonobo_2.32.1.bb
index fd4d812..8e00eb4 100644
--- a/meta-gnome/recipes-gnome/bonobo/libbonobo_2.32.1.bb
+++ b/meta-gnome/recipes-gnome/bonobo/libbonobo_2.32.1.bb
@@ -2,6 +2,7 @@ require libbonobo.inc
 
 SRC_URI += "file://0001-Remove-use-of-G_DISABLE_DEPRECATED.patch \
 file://do-not-use-srcdir-variable.patch \
+file://fix-nonliteral-in-string.patch \
"
 SRC_URI[archive.md5sum] = "27fa902d4fdf6762ee010e7053aaf77b"
 SRC_URI[archive.sha256sum] = 
"9160d4f277646400d3bb6b4fa73636cc6d1a865a32b9d0760e1e9e6ee624976b"
-- 
2.10.0

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


[oe] [PATCH] linux-atm: fix do_compile error

2016-10-18 Thread Dengke Du
Issue: LIN9-1688

With linux kernel v4.8, for file ./src/maint/zntune.c, glibc time.h is
included before linux time.h, when compile zntune.c, it break down by
the following errors:

redefinition of 'struct timespec' 'struct timeval'
'struct timezone' 'struct itimerval'

We should exclude the linux time.h by disable linux/atm_zatm.h and move
some useful definition in linux/atm_zatm.h to a new header file in linux-atm
source code to resolve it.

(LOCAL REV: NOT UPSTREAM) -- will sent to oe-devel 20161019

Signed-off-by: Dengke Du 
---
 ...-fix-compile-error-with-linux-kernel-v4.8.patch | 74 ++
 .../recipes-support/linux-atm/linux-atm_2.5.2.bb   |  4 +-
 2 files changed, 77 insertions(+), 1 deletion(-)
 create mode 100644 
meta-networking/recipes-support/linux-atm/linux-atm/0001-fix-compile-error-with-linux-kernel-v4.8.patch

diff --git 
a/meta-networking/recipes-support/linux-atm/linux-atm/0001-fix-compile-error-with-linux-kernel-v4.8.patch
 
b/meta-networking/recipes-support/linux-atm/linux-atm/0001-fix-compile-error-with-linux-kernel-v4.8.patch
new file mode 100644
index 000..583a6ca
--- /dev/null
+++ 
b/meta-networking/recipes-support/linux-atm/linux-atm/0001-fix-compile-error-with-linux-kernel-v4.8.patch
@@ -0,0 +1,74 @@
+From 7cdafc0dee8054f82777ed3bf6d4c8b5582d09ad Mon Sep 17 00:00:00 2001
+From: Dengke Du 
+Date: Tue, 18 Oct 2016 07:56:02 +
+Subject: [PATCH] fix compile error with linux kernel v4.8
+
+In src/maint/zntune.c, the glibc time.h is included before linux
+time.h, so when compile the zntune.c, it break down by errors:
+
+   redefinition of 'struct timespec' 'struct timeval'
+   'struct timezone' 'struct itimerval'
+
+We should exclude the linux time.h by disable linux/atm_zatm.h and
+move some useful definition in linux/atm_zatm.h to zntune.c to resolve
+it.
+
+Upstream-status: Pending
+
+Signed-off-by: Dengke Du 
+---
+ src/include/atm_zatm.h | 26 ++
+ src/maint/zntune.c |  3 +--
+ 2 files changed, 27 insertions(+), 2 deletions(-)
+ create mode 100644 src/include/atm_zatm.h
+
+diff --git a/src/include/atm_zatm.h b/src/include/atm_zatm.h
+new file mode 100644
+index 000..7d64f4d
+--- /dev/null
 b/src/include/atm_zatm.h
+@@ -0,0 +1,26 @@
++#include 
++#include 
++
++#define ZATM_GETPOOL_IOW('a',ATMIOC_SARPRV+1,struct atmif_sioc)
++/* get pool statistics */
++#define ZATM_GETPOOLZ   _IOW('a',ATMIOC_SARPRV+2,struct atmif_sioc)
++/* get statistics and zero */
++#define ZATM_SETPOOL_IOW('a',ATMIOC_SARPRV+3,struct atmif_sioc)
++
++struct zatm_pool_info {
++int ref_count;  /* free buffer pool usage counters */
++int low_water,high_water;   /* refill parameters */
++int rqa_count,rqu_count;/* queue condition counters */
++int offset,next_off;/* alignment optimizations: offset */
++int next_cnt,next_thres;/* repetition counter and threshold */
++};/* set pool parameters */
++
++struct zatm_pool_req {
++int pool_num;   /* pool number */
++struct zatm_pool_info info; /* actual information */
++};
++
++#define ZATM_OAM_POOL   0   /* free buffer pool for OAM cells */
++#define ZATM_AAL0_POOL  1   /* free buffer pool for AAL0 cells */
++#define ZATM_AAL5_POOL_BASE 2   /* first AAL5 free buffer pool */
++#define ZATM_LAST_POOL  ZATM_AAL5_POOL_BASE+10 /* max. 64 kB */
+diff --git a/src/maint/zntune.c b/src/maint/zntune.c
+index 62d62ab..bb93eab 100644
+--- a/src/maint/zntune.c
 b/src/maint/zntune.c
+@@ -13,9 +13,8 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include  /* for struct timeval, although it's not used */
+-#include 
+-
+ 
+ static void usage(const char *name)
+ {
+-- 
+2.9.0
+
diff --git a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb 
b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
index edfb045..6ab8b07 100644
--- a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
+++ b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
@@ -9,7 +9,9 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 SRC_URI = 
"http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.gz 
\
file://link-with-ldflags.patch \
-   file://install-from-buildir.patch"
+   file://install-from-buildir.patch \
+   file://0001-fix-compile-error-with-linux-kernel-v4.8.patch \
+"
 
 SRC_URI[md5sum] = "d49499368c3cf15f73a05d9bce8824a8"
 SRC_URI[sha256sum] = 
"9645481a2b16476b59220aa2d6bc5bc41043f291326c9b37581018fbd16dd53a"
-- 
2.7.4

-- 
___
Openembedded-devel mailing list

[oe] [meta-perl][PATCH] adduser: always add -M option for useradd

2016-10-18 Thread jackie.huang
From: Jackie Huang 

The useradd (from package passwd) in debian based system
sets -M (--no-create-home) by default, but the one we are
using (from package shadow) sets -m (--create-home) by
default, the previous patch added -M option conditionally,
which worked but we see a confused message:
"The home directory `/home/newuser' already exists. Not copying from 
`/etc/skel'"

So change it to always add the -M option for useradd and let
adduser handle the home creation with its logic.

Signed-off-by: Jackie Huang 
---
 meta-perl/recipes-perl/adduser/adduser_3.115.bb|  2 +-
 ...atch => adduser-add-M-option-for-useradd.patch} | 48 --
 2 files changed, 19 insertions(+), 31 deletions(-)
 rename 
meta-perl/recipes-perl/adduser/files/{adduser-add-M-option-for-useradd-when-no-create-home.patch
 => adduser-add-M-option-for-useradd.patch} (38%)

diff --git a/meta-perl/recipes-perl/adduser/adduser_3.115.bb 
b/meta-perl/recipes-perl/adduser/adduser_3.115.bb
index 312bad8..81068d6 100644
--- a/meta-perl/recipes-perl/adduser/adduser_3.115.bb
+++ b/meta-perl/recipes-perl/adduser/adduser_3.115.bb
@@ -7,7 +7,7 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = 
"file://debian/copyright;md5=caed49ab166f22ef31bf1127f558d0ef"
 
 SRC_URI = 
"http://ftp.de.debian.org/debian/pool/main/a/${BPN}/${BPN}_${PV}.tar.xz \
-   file://adduser-add-M-option-for-useradd-when-no-create-home.patch \
+   file://adduser-add-M-option-for-useradd.patch \
 "
 
 SRC_URI[md5sum] = "6bb6d93922d281f1b56393a53f8ce5fd"
diff --git 
a/meta-perl/recipes-perl/adduser/files/adduser-add-M-option-for-useradd-when-no-create-home.patch
 b/meta-perl/recipes-perl/adduser/files/adduser-add-M-option-for-useradd.patch
similarity index 38%
rename from 
meta-perl/recipes-perl/adduser/files/adduser-add-M-option-for-useradd-when-no-create-home.patch
rename to 
meta-perl/recipes-perl/adduser/files/adduser-add-M-option-for-useradd.patch
index 4b0a03f..2ecec51 100644
--- 
a/meta-perl/recipes-perl/adduser/files/adduser-add-M-option-for-useradd-when-no-create-home.patch
+++ 
b/meta-perl/recipes-perl/adduser/files/adduser-add-M-option-for-useradd.patch
@@ -1,57 +1,45 @@
-From 809f00a6ef0224b41b2e1207194c8da3cd3e3c7e Mon Sep 17 00:00:00 2001
+From 55a0adfc416ad85dbc440eaa667d98c200a8ce62 Mon Sep 17 00:00:00 2001
 From: Jackie Huang 
 Date: Thu, 18 Dec 2014 17:23:37 +0800
-Subject: [PATCH] adduser: add -M option for useradd when --no-create-home is 
specified
+Subject: [PATCH] adduser: add -M option for useradd
 
 The useradd (from package passwd) in debian based system sets -M 
(--no-create-home) by default,
 but the one we are using (from package shadow) sets -m (--create-home) by 
default, so we
-need to explicitly add -M option for useradd call when --no-create-home is 
specified for adduser.
+need to explicitly add -M option for useradd call or it will try to create 
home twice and
+throw a confused message:
+"The home directory `/home/newuser' already exists. Not copying from 
`/etc/skel'"
 
-Upstream-Status: Pending
+Upstream-Status: Submitted [1]
+
+[1] 
https://lists.alioth.debian.org/pipermail/adduser-devel/2016-October/005478.html
 
 Signed-off-by: Jackie Huang 
 ---
- adduser |   20 
- 1 files changed, 16 insertions(+), 4 deletions(-)
+ adduser | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/adduser b/adduser
-index c3bd8b0..9a07f9f 100755
+index a5f83f3..f6cb52c 100755
 --- a/adduser
 +++ b/adduser
-@@ -434,8 +434,14 @@ if ($action eq "addsysuser") {
- $shell = $special_shell || '/bin/false';
+@@ -435,7 +435,7 @@ if ($action eq "addsysuser") {
  $undouser = $new_name;
  my $useradd = ('useradd');
--($useradd, '-d', $home_dir, '-g', $ingroup_name, '-s',
+ ($useradd, '-d', $home_dir, '-g', $ingroup_name, '-s',
 -  $shell, '-u', $new_uid, $new_name);
-+if ($no_create_home) {
-+($useradd, '-d', $home_dir, '-g', $ingroup_name, '-s',
-+  $shell, '-u', $new_uid, '-M', $new_name);
-+}
-+else {
-+($useradd, '-d', $home_dir, '-g', $ingroup_name, '-s',
-+$shell, '-u', $new_uid, $new_name);
-+}
++  $shell, '-u', $new_uid, '-M', $new_name);
  if(!$disabled_login) {
  my $usermod = ('usermod');
  ($usermod, '-p', '*', $new_name);
-@@ -524,8 +530,14 @@ if ($action eq "adduser") {
-   $shell = $special_shell || $config{"dshell"};
+@@ -525,7 +525,7 @@ if ($action eq "adduser") {
  $undouser = $new_name;
  my $useradd = ('useradd');
--($useradd, '-d', $home_dir, '-g', $ingroup_name, '-s',
+ ($useradd, '-d', $home_dir, '-g', $ingroup_name, '-s',
 -  $shell, '-u', $new_uid, $new_name);
-+if ($no_create_home) {
-+($useradd, '-d', $home_dir, '-g', $ingroup_name, '-s',
-+  $shell, '-u', $new_uid, '-M', $new_name);

[oe] [PATCH] libndp: 1.5 -> 1.6

2016-10-18 Thread Dengke Du
Signed-off-by: Dengke Du 
---
 meta-oe/recipes-connectivity/libndp/libndp_1.5.bb | 10 --
 meta-oe/recipes-connectivity/libndp/libndp_1.6.bb | 10 ++
 2 files changed, 10 insertions(+), 10 deletions(-)
 delete mode 100644 meta-oe/recipes-connectivity/libndp/libndp_1.5.bb
 create mode 100644 meta-oe/recipes-connectivity/libndp/libndp_1.6.bb

diff --git a/meta-oe/recipes-connectivity/libndp/libndp_1.5.bb 
b/meta-oe/recipes-connectivity/libndp/libndp_1.5.bb
deleted file mode 100644
index 8f1d1ff..000
--- a/meta-oe/recipes-connectivity/libndp/libndp_1.5.bb
+++ /dev/null
@@ -1,10 +0,0 @@
-SUMMARY = "Library for IPv6 Neighbor Discovery Protocol"
-
-LICENSE = "LGPLv2.1"
-LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
-
-SRC_URI = "http://libndp.org/files/${BPN}-${PV}.tar.gz;
-SRC_URI[md5sum] = "beb82e8d75d8382d1b7c0bb0f68be429"
-SRC_URI[sha256sum] = 
"faf116ab70ce9514ec4e8573556025debea08f606e7f38b616de1f26e120c795"
-
-inherit autotools
diff --git a/meta-oe/recipes-connectivity/libndp/libndp_1.6.bb 
b/meta-oe/recipes-connectivity/libndp/libndp_1.6.bb
new file mode 100644
index 000..a35dff8
--- /dev/null
+++ b/meta-oe/recipes-connectivity/libndp/libndp_1.6.bb
@@ -0,0 +1,10 @@
+SUMMARY = "Library for IPv6 Neighbor Discovery Protocol"
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+
+SRC_URI = "http://libndp.org/files/${BPN}-${PV}.tar.gz;
+SRC_URI[md5sum] = "1e54d26bcb4a4110bc3f90c5dd04f1a7"
+SRC_URI[sha256sum] = 
"0c7dfa84e013bd5e569ef2c6292a6f72cfaf14f4ff77a77425e52edc33ffac0e"
+
+inherit autotools
-- 
2.7.4

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


Re: [oe] [meta-qt5] Latest Qt5 5.6.1+ update breaks qtwayland?

2016-10-18 Thread Khem Raj
On Tue, Oct 18, 2016 at 10:23 AM, Denys Dmytriyenko  wrote:
> On Wed, Aug 10, 2016 at 11:49:47PM -0400, Denys Dmytriyenko wrote:
>> Has anyone seen this:
>>
>> git/src/client/qwaylandintegration_p.h:91:29: error: 
>> 'QPlatformAccessibility* 
>> QtWaylandClient::QWaylandIntegration::accessibility() const' marked 
>> 'override', but does not override
>> |  QPlatformAccessibility *accessibility() const Q_DECL_OVERRIDE;
>>
>
> Ping on this one. Anyone else is seeing this? Is it C++11 specific? I'm using
> gcc-5.3 from Linaro...

are you using -std=c++11 to compile it ?

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


[oe] [meta-networking][PATCH] wireshark: install missing header files

2016-10-18 Thread Armin Kuster
Wireshark does not install header files. add install_append
Remove ALLOW_EMPTY & INHIBIT_PACKAGE_DEBUG_SPLIT, they are no longer needed

Signed-off-by: Armin Kuster 
---
 .../recipes-support/wireshark/wireshark_2.2.1.bb   | 22 +++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/meta-networking/recipes-support/wireshark/wireshark_2.2.1.bb 
b/meta-networking/recipes-support/wireshark/wireshark_2.2.1.bb
index a5fb7f6..f7d7927 100644
--- a/meta-networking/recipes-support/wireshark/wireshark_2.2.1.bb
+++ b/meta-networking/recipes-support/wireshark/wireshark_2.2.1.bb
@@ -43,7 +43,23 @@ PACKAGECONFIG[c-ares] = "--with-c-ares=yes, 
--with-c-ares=no, c-ares"
 
 EXTRA_OECONF += "--with-qt=no --enable-tshark --enable-rawshark"
 
-ALLOW_EMPTY_${PN} = "1"
-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+# Currently wireshark does not install header files
+do_install_append () {
 
-FILES_${PN} += "${datadir}*"
+   install -d ${D}/${includedir}/${BPN}
+   install -d ${D}/${includedir}/${BPN}/epan
+   install -d ${D}/${includedir}/${BPN}/epan/crypt
+   install -d ${D}/${includedir}/${BPN}/epan/dfilter
+   install -d ${D}/${includedir}/${BPN}/epan/dissectors
+   install -d ${D}/${includedir}/${BPN}/epan/ftypes
+   install -d ${D}/${includedir}/${BPN}/epan/wmem
+
+   install config.h ${D}/${includedir}/${BPN}
+   install ${S}/register.h ${D}/${includedir}/${BPN}
+   install -D ${S}/epan/*.h ${D}/${includedir}/${BPN}/epan
+   install -D ${S}/epan/crypt/*.h ${D}/${includedir}/${BPN}/epan/crypt
+   install -D ${S}/epan/dfilter/*.h ${D}/${includedir}/${BPN}/epan/dfilter
+   install -D ${S}/epan/dissectors/*.h 
${D}/${includedir}/${BPN}/epan/dissectors
+   install -D ${S}/epan/ftypes/*.h ${D}/${includedir}/${BPN}/epan/ftypes
+   install -D ${S}/epan/wmem/*.h ${D}/${includedir}/${BPN}/epan/wmem
+}
-- 
2.7.4

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


Re: [oe] [meta-qt5][krogoth][PATCH] qtwayland: Fix building of QWaylandIntegration if some Qt5 features are disabled.

2016-10-18 Thread Denys Dmytriyenko
On Sun, Sep 25, 2016 at 10:54:49AM +0300, Vesa Jääskeläinen wrote:
> QPlatformIntegration's interface methods are disabled based on QT_NO_OPENGL,
> QT_NO_CLIPBOARD, QT_NO_DRAGANDDROP, QT_NO_ACCESSIBILITY and
> QT_NO_SESSIONMANAGER, these has to be taken into account when compiling
> QtWayland.
> 
> Signed-off-by: Vesa Jääskeläinen 

Tested-by: Denys Dmytriyenko 

Resolves the build issue for me on krogoth and Qt 5.6.1

I also forward-ported this patch to master and Qt 5.7.0 and submitted it 
separately.

-- 
Denys


> ---
>  recipes-qt/qt5/qtwayland-native_git.bb |   1 +
>  ...g-of-QWaylandIntegration-if-some-Qt5-feat.patch | 156 
> +
>  recipes-qt/qt5/qtwayland_git.bb|   1 +
>  3 files changed, 158 insertions(+)
>  create mode 100644 
> recipes-qt/qt5/qtwayland/0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch
> 
> diff --git a/recipes-qt/qt5/qtwayland-native_git.bb 
> b/recipes-qt/qt5/qtwayland-native_git.bb
> index 8fc1862..18477b0 100644
> --- a/recipes-qt/qt5/qtwayland-native_git.bb
> +++ b/recipes-qt/qt5/qtwayland-native_git.bb
> @@ -15,6 +15,7 @@ DEPENDS = "qtbase-native wayland-native"
>  
>  SRC_URI += " \
>  file://0001-Install-the-qtwaylandscanner-tool-to-the-native-side.patch \
> +file://0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch \
>  "
>  
>  do_configure() {
> diff --git 
> a/recipes-qt/qt5/qtwayland/0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch
>  
> b/recipes-qt/qt5/qtwayland/0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch
> new file mode 100644
> index 000..d173e67
> --- /dev/null
> +++ 
> b/recipes-qt/qt5/qtwayland/0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch
> @@ -0,0 +1,156 @@
> +From de85e1c1ee76be845a21b441d9e4ea12a30d84c7 Mon Sep 17 00:00:00 2001
> +From: =?UTF-8?q?Vesa=20J=C3=A4=C3=A4skel=C3=A4inen?= 
> +Date: Sun, 18 Sep 2016 11:51:59 +0300
> +Subject: [PATCH] Fix building of QWaylandIntegration if some Qt5 features are
> + disabled.
> +
> +QPlatformIntegration's interface methods are disabled based on QT_NO_OPENGL,
> +QT_NO_CLIPBOARD, QT_NO_DRAGANDDROP, QT_NO_ACCESSIBILITY and
> +QT_NO_SESSIONMANAGER, these has to be taken into account when compiling
> +QtWayland.
> +---
> + src/client/qwaylandintegration.cpp | 21 ++---
> + src/client/qwaylandintegration_p.h | 12 
> + 2 files changed, 30 insertions(+), 3 deletions(-)
> +
> +diff --git a/src/client/qwaylandintegration.cpp 
> b/src/client/qwaylandintegration.cpp
> +index 39fff53..481e3d6 100644
> +--- a/src/client/qwaylandintegration.cpp
>  b/src/client/qwaylandintegration.cpp
> +@@ -39,7 +39,9 @@
> + #include "qwaylandinputcontext_p.h"
> + #include "qwaylandshmbackingstore_p.h"
> + #include "qwaylandnativeinterface_p.h"
> ++#ifndef QT_NO_CLIPBOARD
> + #include "qwaylandclipboard_p.h"
> ++#endif
> + #include "qwaylanddnd_p.h"
> + #include "qwaylandwindowmanagerintegration_p.h"
> + #include "qwaylandscreen_p.h"
> +@@ -57,7 +59,9 @@
> + #include 
> + 
> + #include 
> ++#ifndef QT_NO_ACCESSIBILITY
> + #include 
> ++#endif
> + #include 
> + 
> + #include "qwaylandhardwareintegration_p.h"
> +@@ -117,8 +121,6 @@ QWaylandIntegration::QWaylandIntegration()
> + , mNativeInterface(new QWaylandNativeInterface(this))
> + #ifndef QT_NO_ACCESSIBILITY
> + , mAccessibility(new QPlatformAccessibility())
> +-#else
> +-, mAccessibility(0)
> + #endif
> + , mClientBufferIntegrationInitialized(false)
> + , mServerBufferIntegrationInitialized(false)
> +@@ -126,9 +128,12 @@ QWaylandIntegration::QWaylandIntegration()
> + {
> + initializeInputDeviceIntegration();
> + mDisplay = new QWaylandDisplay(this);
> ++#ifndef QT_NO_CLIPBOARD
> + mClipboard = new QWaylandClipboard(mDisplay);
> ++#endif
> ++#ifndef QT_NO_DRAGANDDROP
> + mDrag = new QWaylandDrag(mDisplay);
> +-
> ++#endif
> + QString icStr = QPlatformInputContextFactory::requested();
> + icStr.isNull() ? mInputContext.reset(new QWaylandInputContext(mDisplay))
> +: 
> mInputContext.reset(QPlatformInputContextFactory::create(icStr));
> +@@ -136,8 +141,12 @@ QWaylandIntegration::QWaylandIntegration()
> + 
> + QWaylandIntegration::~QWaylandIntegration()
> + {
> ++#ifndef QT_NO_DRAGANDDROP
> + delete mDrag;
> ++#endif
> ++#ifndef QT_NO_CLIPBOARD
> + delete mClipboard;
> ++#endif
> + #ifndef QT_NO_ACCESSIBILITY
> + delete mAccessibility;
> + #endif
> +@@ -213,15 +222,19 @@ QPlatformFontDatabase 
> *QWaylandIntegration::fontDatabase() const
> + return mFontDb;
> + }
> + 
> ++#ifndef QT_NO_CLIPBOARD
> + QPlatformClipboard *QWaylandIntegration::clipboard() const
> + {
> + return mClipboard;
> + }
> ++#endif
> + 
> ++#ifndef QT_NO_DRAGANDDROP
> + QPlatformDrag *QWaylandIntegration::drag() const
> + {
> + return mDrag;
> + }
> ++#endif
> + 
> + QPlatformInputContext 

[oe] [meta-qt5][master][PATCH] qtwayland: Fix building of QWaylandIntegration if some Qt5 features are disabled.

2016-10-18 Thread Denys Dmytriyenko
From: Vesa Jääskeläinen 

QPlatformIntegration's interface methods are disabled based on QT_NO_OPENGL,
QT_NO_CLIPBOARD, QT_NO_DRAGANDDROP, QT_NO_ACCESSIBILITY and
QT_NO_SESSIONMANAGER, these has to be taken into account when compiling
QtWayland.

Signed-off-by: Vesa Jääskeläinen 
Signed-off-by: Denys Dmytriyenko 
---
Adopted to current meta-qt5/master with Qt 5.7.0 from here:
http://lists.openembedded.org/pipermail/openembedded-devel/2016-September/109281.html

 recipes-qt/qt5/qtwayland-native_git.bb |   1 +
 ...g-of-QWaylandIntegration-if-some-Qt5-feat.patch | 156 +
 recipes-qt/qt5/qtwayland_git.bb|   1 +
 3 files changed, 158 insertions(+)
 create mode 100644 
recipes-qt/qt5/qtwayland/0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch

diff --git a/recipes-qt/qt5/qtwayland-native_git.bb 
b/recipes-qt/qt5/qtwayland-native_git.bb
index a214346..1149aa5 100644
--- a/recipes-qt/qt5/qtwayland-native_git.bb
+++ b/recipes-qt/qt5/qtwayland-native_git.bb
@@ -18,6 +18,7 @@ DEPENDS = "qtbase-native wayland-native"
 
 SRC_URI += " \
 file://0001-Install-the-qtwaylandscanner-tool-to-the-native-side.patch \
+file://0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch \
 "
 
 do_configure() {
diff --git 
a/recipes-qt/qt5/qtwayland/0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch
 
b/recipes-qt/qt5/qtwayland/0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch
new file mode 100644
index 000..d173e67
--- /dev/null
+++ 
b/recipes-qt/qt5/qtwayland/0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch
@@ -0,0 +1,156 @@
+From de85e1c1ee76be845a21b441d9e4ea12a30d84c7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Vesa=20J=C3=A4=C3=A4skel=C3=A4inen?= 
+Date: Sun, 18 Sep 2016 11:51:59 +0300
+Subject: [PATCH] Fix building of QWaylandIntegration if some Qt5 features are
+ disabled.
+
+QPlatformIntegration's interface methods are disabled based on QT_NO_OPENGL,
+QT_NO_CLIPBOARD, QT_NO_DRAGANDDROP, QT_NO_ACCESSIBILITY and
+QT_NO_SESSIONMANAGER, these has to be taken into account when compiling
+QtWayland.
+---
+ src/client/qwaylandintegration.cpp | 21 ++---
+ src/client/qwaylandintegration_p.h | 12 
+ 2 files changed, 30 insertions(+), 3 deletions(-)
+
+diff --git a/src/client/qwaylandintegration.cpp 
b/src/client/qwaylandintegration.cpp
+index 39fff53..481e3d6 100644
+--- a/src/client/qwaylandintegration.cpp
 b/src/client/qwaylandintegration.cpp
+@@ -39,7 +39,9 @@
+ #include "qwaylandinputcontext_p.h"
+ #include "qwaylandshmbackingstore_p.h"
+ #include "qwaylandnativeinterface_p.h"
++#ifndef QT_NO_CLIPBOARD
+ #include "qwaylandclipboard_p.h"
++#endif
+ #include "qwaylanddnd_p.h"
+ #include "qwaylandwindowmanagerintegration_p.h"
+ #include "qwaylandscreen_p.h"
+@@ -57,7 +59,9 @@
+ #include 
+ 
+ #include 
++#ifndef QT_NO_ACCESSIBILITY
+ #include 
++#endif
+ #include 
+ 
+ #include "qwaylandhardwareintegration_p.h"
+@@ -117,8 +121,6 @@ QWaylandIntegration::QWaylandIntegration()
+ , mNativeInterface(new QWaylandNativeInterface(this))
+ #ifndef QT_NO_ACCESSIBILITY
+ , mAccessibility(new QPlatformAccessibility())
+-#else
+-, mAccessibility(0)
+ #endif
+ , mClientBufferIntegrationInitialized(false)
+ , mServerBufferIntegrationInitialized(false)
+@@ -126,9 +128,12 @@ QWaylandIntegration::QWaylandIntegration()
+ {
+ initializeInputDeviceIntegration();
+ mDisplay = new QWaylandDisplay(this);
++#ifndef QT_NO_CLIPBOARD
+ mClipboard = new QWaylandClipboard(mDisplay);
++#endif
++#ifndef QT_NO_DRAGANDDROP
+ mDrag = new QWaylandDrag(mDisplay);
+-
++#endif
+ QString icStr = QPlatformInputContextFactory::requested();
+ icStr.isNull() ? mInputContext.reset(new QWaylandInputContext(mDisplay))
+: 
mInputContext.reset(QPlatformInputContextFactory::create(icStr));
+@@ -136,8 +141,12 @@ QWaylandIntegration::QWaylandIntegration()
+ 
+ QWaylandIntegration::~QWaylandIntegration()
+ {
++#ifndef QT_NO_DRAGANDDROP
+ delete mDrag;
++#endif
++#ifndef QT_NO_CLIPBOARD
+ delete mClipboard;
++#endif
+ #ifndef QT_NO_ACCESSIBILITY
+ delete mAccessibility;
+ #endif
+@@ -213,15 +222,19 @@ QPlatformFontDatabase 
*QWaylandIntegration::fontDatabase() const
+ return mFontDb;
+ }
+ 
++#ifndef QT_NO_CLIPBOARD
+ QPlatformClipboard *QWaylandIntegration::clipboard() const
+ {
+ return mClipboard;
+ }
++#endif
+ 
++#ifndef QT_NO_DRAGANDDROP
+ QPlatformDrag *QWaylandIntegration::drag() const
+ {
+ return mDrag;
+ }
++#endif
+ 
+ QPlatformInputContext *QWaylandIntegration::inputContext() const
+ {
+@@ -243,10 +256,12 @@ QVariant QWaylandIntegration::styleHint(StyleHint hint) 
const
+ return QPlatformIntegration::styleHint(hint);
+ }
+ 
++#ifndef QT_NO_ACCESSIBILITY
+ QPlatformAccessibility *QWaylandIntegration::accessibility() const
+ {
+ return mAccessibility;
+ }

Re: [oe] [meta-qt5] Latest Qt5 5.6.1+ update breaks qtwayland?

2016-10-18 Thread Vesa Jääskeläinen

On 18/10/2016 20.23, Denys Dmytriyenko wrote:


On Wed, Aug 10, 2016 at 11:49:47PM -0400, Denys Dmytriyenko wrote:

Has anyone seen this:

git/src/client/qwaylandintegration_p.h:91:29: error: 'QPlatformAccessibility* 
QtWaylandClient::QWaylandIntegration::accessibility() const' marked 'override', 
but does not override
|  QPlatformAccessibility *accessibility() const Q_DECL_OVERRIDE;


Ping on this one. Anyone else is seeing this? Is it C++11 specific? I'm using
gcc-5.3 from Linaro...


Try the patch I sent earlier to this mailing list:
http://lists.openembedded.org/pipermail/openembedded-devel/2016-September/109281.html

FYI -- filed the bug report for this:
https://bugreports.qt.io/browse/QTBUG-56192

Thanks,
Vesa Jääskeläinen
--
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] Minutes from OEDEM on 10/14

2016-10-18 Thread Philip Balister
Many thanks to the people that helped take minutes at OEDEM. Jefro
copied them fro the google doc to the wiki.

http://openembedded.org/wiki/OEDEM_2016#Minutes

Philip

PS: Please trim replies to this email to an appropriate list. -ETOOMANYLISTS
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-python][PATCH] python-pybind11: add pybind11 for operability between C++11 and Python

2016-10-18 Thread Denys Dmytriyenko
Khem, Tim,

http://lists.openembedded.org/pipermail/openembedded-devel/2016-October/109403.html


On Thu, Oct 06, 2016 at 06:07:28PM -0700, Tim Orling wrote:
> Agree with Khem, we don't use PR in anything new anymore.
> 
> I built (on krogoth) both python-pybind11 and python3-pybind11 and both
> import inside their respective pythons. I did not do any more testing than
> that.
> 
> I'll try on master too.
> 
> As always, it would be nice to add ptest, but hardly any python recipes
> have it. :/
> 
> --Tim (Intel)
> 
> On Thu, Oct 6, 2016 at 4:48 PM, Khem Raj  wrote:
> 
> >
> > > On Oct 6, 2016, at 12:58 PM, Denys Dmytriyenko  wrote:
> > >
> > > From: Denys Dmytriyenko 
> > >
> > > Signed-off-by: Denys Dmytriyenko 
> > > ---
> > > meta-python/recipes-devtools/python/python-pybind11.inc   | 9
> > +
> > > meta-python/recipes-devtools/python/python-pybind11_1.8.1.bb  | 2 ++
> > > meta-python/recipes-devtools/python/python3-pybind11_1.8.1.bb | 2 ++
> > > 3 files changed, 13 insertions(+)
> > > create mode 100644 meta-python/recipes-devtools/
> > python/python-pybind11.inc
> > > create mode 100644 meta-python/recipes-devtools/python/
> > python-pybind11_1.8.1.bb
> > > create mode 100644 meta-python/recipes-devtools/python/
> > python3-pybind11_1.8.1.bb
> > >
> > > diff --git a/meta-python/recipes-devtools/python/python-pybind11.inc
> > b/meta-python/recipes-devtools/python/python-pybind11.inc
> > > new file mode 100644
> > > index 000..e13f6a5
> > > --- /dev/null
> > > +++ b/meta-python/recipes-devtools/python/python-pybind11.inc
> > > @@ -0,0 +1,9 @@
> > > +SUMMARY = "Seamless operability between C++11 and Python"
> > > +HOMEPAGE = "https://github.com/wjakob/pybind11;
> > > +LICENSE = "BSD-2-Clause"
> > > +LIC_FILES_CHKSUM = "file://PKG-INFO;md5=1e9383cd3e97753d7dd6067d079519
> > ea"
> > > +PR = “r0"
> >
> > Drop this
> >
> > > +
> > > +SRC_URI = "https://pypi.python.org/packages/89/0b/
> > f3a25633e49be5fae17ed2c7751c8106a08199db70e3c82e8cc043388ba9
> > /pybind11-1.8.1.tar.gz"
> > > +SRC_URI[md5sum] = "67845d8fd89a1c400dc7c61ccdee14d6"
> > > +SRC_URI[sha256sum] = "358d4b7d8c38cd1dde66064178c6bb
> > aaa2c479a44e67e642820fe0f329a4fff8"
> > > diff --git a/meta-python/recipes-devtools/python/python-
> > pybind11_1.8.1.bb b/meta-python/recipes-devtools/python/python-
> > pybind11_1.8.1.bb
> > > new file mode 100644
> > > index 000..e567430
> > > --- /dev/null
> > > +++ b/meta-python/recipes-devtools/python/python-pybind11_1.8.1.bb
> > > @@ -0,0 +1,2 @@
> > > +inherit pypi setuptools
> > > +require python-pybind11.inc
> > > diff --git a/meta-python/recipes-devtools/python/python3-
> > pybind11_1.8.1.bb b/meta-python/recipes-devtools/python/python3-
> > pybind11_1.8.1.bb
> > > new file mode 100644
> > > index 000..355e284
> > > --- /dev/null
> > > +++ b/meta-python/recipes-devtools/python/python3-pybind11_1.8.1.bb
> > > @@ -0,0 +1,2 @@
> > > +inherit pypi setuptools3
> > > +require python-pybind11.inc
> > > --
> > > 2.7.4
> > >
> > > --
> > > ___
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> >
> > --
> > ___
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> >
> -- 
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-qt5] Latest Qt5 5.6.1+ update breaks qtwayland?

2016-10-18 Thread Denys Dmytriyenko
On Wed, Aug 10, 2016 at 11:49:47PM -0400, Denys Dmytriyenko wrote:
> Has anyone seen this:
> 
> git/src/client/qwaylandintegration_p.h:91:29: error: 'QPlatformAccessibility* 
> QtWaylandClient::QWaylandIntegration::accessibility() const' marked 
> 'override', but does not override
> |  QPlatformAccessibility *accessibility() const Q_DECL_OVERRIDE;
> 

Ping on this one. Anyone else is seeing this? Is it C++11 specific? I'm using 
gcc-5.3 from Linaro...

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


Re: [oe] [meta-oe][PATCH] xterm: use ${libdir} to avoid installed-vs-shipped error on ppc64

2016-10-18 Thread Otavio Salvador
On Tue, Oct 18, 2016 at 1:16 PM,   wrote:
> From: Ting Liu 
>
> xterm installs files into PREFIX/lib/X11/app-defaults by default.
> This leads to QA issue on ppc64 which defines libdir as /usr/lib64:
> ERROR: QA Issue: xterm: Files/directories were installed but not shipped in 
> any package:
>   /usr/lib
>   /usr/lib/X11
>   /usr/lib/X11/app-defaults
>   /usr/lib/X11/app-defaults/UXTerm
>   /usr/lib/X11/app-defaults/KOI8RXTerm-color
>   /usr/lib/X11/app-defaults/XTerm-color
>   /usr/lib/X11/app-defaults/UXTerm-color
>   /usr/lib/X11/app-defaults/KOI8RXTerm
>   /usr/lib/X11/app-defaults/XTerm
>
> Fix it by passing --with-app-defaults=${libdir}/X11/app-defaults to configure.
>
> Signed-off-by: Ting Liu 

Acked-by: Otavio Salvador 

Armin/Martin: this is an important fix as ppc64 machines are currently
broken. Please apply this onto master and morty branches.

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


[oe] [meta-multimedia][PATCH 1/1] dvb-apps: fix recipe, and update to the latest version

2016-10-18 Thread Herve Jourdain
Fixed error "GNU_HASH not present"
Fixed dvb-scan-data package
Fixed the VERSION_FILE (used to check the dvb api version) to the one used for 
the target
(by default, it uses the one on the host)
Updated to the "latest" version (2014/03/22)
The latest version suppressed the original scan tables (not maintained 
anymore), so fetch and install the latest ones (using dvb api v3 
format)(introduces a dependency on v4l-utils-native)

Signed-off-by: Herve Jourdain 
---
 .../recipes-dvb/dvb-apps/dvb-apps_1.1.1.bb | 26 ++
 1 file changed, 22 insertions(+), 4 deletions(-)

diff --git a/meta-multimedia/recipes-dvb/dvb-apps/dvb-apps_1.1.1.bb 
b/meta-multimedia/recipes-dvb/dvb-apps/dvb-apps_1.1.1.bb
index d9ee439..0b4b72d 100644
--- a/meta-multimedia/recipes-dvb/dvb-apps/dvb-apps_1.1.1.bb
+++ b/meta-multimedia/recipes-dvb/dvb-apps/dvb-apps_1.1.1.bb
@@ -4,20 +4,38 @@ SUMMARY = "Linux DVB API applications and utilities"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
-SRC_URI = "hg://linuxtv.org/hg;module=dvb-apps;protocol=http"
-SRCREV = "3fc7dfa68484"
+DEPENDS = "v4l-utils-native"
+
+SRC_URI = " \
+hg://linuxtv.org/hg;module=dvb-apps;protocol=http;name=apps \
+
git://linuxtv.org/git/dtv-scan-tables.git;protocol=http;destsuffix=dvb-apps/initial-scan-tables;name=scantables
 \
+  "
+SRCREV_apps = "3d43b280298c"
+SRCREV_scantables = "ceb11833b35f05813b1f0397a60e0f3b99430aab"
+SRCREV_FORMAT = "apps_scantables"
 
 S = "${WORKDIR}/${BPN}"
 
+TARGET_CC_ARCH += "${LDFLAGS}"
+EXTRA_OEMAKE = "VERSION_FILE='${STAGING_INCDIR}/linux/dvb/version.h'"
+
 do_configure() {
 sed -i -e s:/usr/include:${STAGING_INCDIR}:g 
util/av7110_loadkeys/generate-keynames.sh
 }
 
+do_compile_append() {
+# dvb-apps only support DVBAPI v3, so generate them from the DVBAPI v5 
downloaded files
+make -C initial-scan-tables clean
+make -C initial-scan-tables dvbv3
+}
+
 do_install() {
 make DESTDIR=${D} install
+# dvb-apps only support DVBAPI v3, so only install the generated DVBAPI v3 
files
+make -C initial-scan-tables DATADIR=${D}/${datadir} DVBV3DIR=dvb install_v3
+
 install -d ${D}/${bindir}
 install -d ${D}/${docdir}/dvb-apps
-install -d ${D}/${docdir}/dvb-apps/scan
 install -d ${D}/${docdir}/dvb-apps/szap
 chmod a+rx ${D}/${libdir}/*.so*
 
@@ -89,7 +107,7 @@ FILES_dvbnet-dbg = "${bindir}/.debug/dvbnet"
 
 FILES_dvb-scan = "${bindir}/*scan "
 FILES_dvb-scan-dbg = "${bindir}/.debug/*scan"
-FILES_dvb-scan-data = "${docdir}/dvb-apps/scan"
+FILES_dvb-scan-data = "${datadir}/dvb"
 
 FILES_dvb-azap = "${bindir}/azap"
 FILES_dvb-azap-dbg = "${bindir}/.debug/azap"
-- 
2.7.4

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


[oe] [meta-multimedia][PATCH 0/1] dvb-apps: fix recipe, and update to the latest version

2016-10-18 Thread Herve Jourdain
Fixed error "GNU_HASH not present"
Fixed dvb-scan-data package
Fixed the VERSION_FILE (used to check the dvb api version) to the one used for 
the target
(by default, it uses the one on the host)
Updated to the "latest" version (2014/03/22)
The latest version suppressed the original scan tables (not maintained 
anymore), so fetch and install the latest ones (using dvb api v3 
format)(introduces a dependency on v4l-utils-native)

Herve Jourdain (1):
  Fix recipe, and update to the latest version

 .../recipes-dvb/dvb-apps/dvb-apps_1.1.1.bb | 26 ++
 1 file changed, 22 insertions(+), 4 deletions(-)

-- 
2.7.4

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


[oe] [meta-oe][PATCH 0/1] v4l-utils: add support for "native" build

2016-10-18 Thread Herve Jourdain
Herve Jourdain (1):
 Add support for "native" build (dvb-format-convert can be used in
 other packages, for instance)
 PARALLEL_MAKE is disabled for native because of a race condition between
 libv4l2 and v4l2convert when installing (because of relinking needed for both)

 meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.7.4

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


[oe] [meta-oe][PATCH 1/1] v4l-utils: add support for "native" build

2016-10-18 Thread Herve Jourdain
Signed-off-by: Herve Jourdain 
---
 meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb 
b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb
index 6148695..b9732fe 100644
--- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.10.1.bb
@@ -43,3 +43,6 @@ FILES_libv4l-dbg += "${libdir}/libv4l/.debug 
${libdir}/libv4l/plugins/.debug"
 FILES_libv4l-dev += "${includedir} ${libdir}/pkgconfig \
  ${libdir}/libv4l*${SOLIBSDEV} ${libdir}/*.la \
  ${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la 
${libdir}/libv4l/plugins/*.la"
+
+PARALLEL_MAKE_class-native = ""
+BBCLASSEXTEND = "native"
-- 
2.7.4

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