Re: [oe] [meta-qt5][PATCH] qt5: Update to Qt 5.11.0

2018-06-20 Thread Samuli Piippo
On 20 June 2018 at 15:19, Martin Jansa  wrote:
> On Wed, Jun 20, 2018 at 02:57:39PM +0300, Samuli Piippo wrote:
>> On 20 June 2018 at 14:29, Martin Jansa  wrote:
>> > 3) we cannot use nobranch=1, because that breaks AUTOREV
>>
>> How does it break AUTOREV?
>> We are using nobranch=1 when testing non-released Qt versions and
>> haven't seen issues with it.
>
> And are you using AUTOREV? How is it supposed to know which branch to
> track?

Had to test this myself and I still don't see problem here.
As long as there still is "branch=${QT_MODULE_BRANCH}" in the URI,
nobranch=1 doesn't seem to make difference for AUTOREV.
It only stops the SHA1 validation, when you do have SHA1 in SRCREV.
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [PATCH v2] devmem2: ensure word is 32-bit, add support for 64-bit long

2018-06-20 Thread Denys Dmytriyenko
From: Denys Dmytriyenko 

Since sizeof(unsigned long) can be 8-byte on 64-bit architectures, use
uint32_t instead for "word" access to always be 4-byte/32-bit long.

Also introduce proper "long" 8-byte/64-bit access by using uint64_t.

Signed-off-by: Denys Dmytriyenko 
---
v2 - change 64-bit name from "double" to "long" to match busybox

 meta-oe/recipes-support/devmem2/devmem2.bb |  4 +-
 ...sure-word-is-32-bit-and-add-support-for-6.patch | 70 ++
 2 files changed, 73 insertions(+), 1 deletion(-)
 create mode 100644 
meta-oe/recipes-support/devmem2/devmem2/0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch

diff --git a/meta-oe/recipes-support/devmem2/devmem2.bb 
b/meta-oe/recipes-support/devmem2/devmem2.bb
index c86eb2e..9bd1eb7 100644
--- a/meta-oe/recipes-support/devmem2/devmem2.bb
+++ b/meta-oe/recipes-support/devmem2/devmem2.bb
@@ -4,7 +4,9 @@ LIC_FILES_CHKSUM = 
"file://devmem2.c;endline=38;md5=a9eb9f3890384519f435aedf9862
 PR = "r7"
 
 SRC_URI = 
"http://www.free-electrons.com/pub/mirror/devmem2.c;downloadfilename=devmem2-new.c
 \
-   file://devmem2-fixups-2.patch;apply=yes;striplevel=0"
+   file://devmem2-fixups-2.patch;apply=yes;striplevel=0 \
+   
file://0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch"
+
 S = "${WORKDIR}"
 
 CFLAGS += "-DFORCE_STRICT_ALIGNMENT"
diff --git 
a/meta-oe/recipes-support/devmem2/devmem2/0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch
 
b/meta-oe/recipes-support/devmem2/devmem2/0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch
new file mode 100644
index 000..2a57f29
--- /dev/null
+++ 
b/meta-oe/recipes-support/devmem2/devmem2/0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch
@@ -0,0 +1,70 @@
+From 1360a907879dd24041797a3b709d49aeac2ab444 Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko 
+Date: Tue, 29 May 2018 16:55:42 -0400
+Subject: [PATCH] devmem.c: ensure word is 32-bit and add support for 64-bit
+ long
+
+Signed-off-by: Denys Dmytriyenko 
+---
+ devmem2.c | 23 +--
+ 1 file changed, 17 insertions(+), 6 deletions(-)
+
+diff --git a/devmem2.c b/devmem2.c
+index 5845381..68131b2 100644
+--- a/devmem2.c
 b/devmem2.c
+@@ -39,6 +39,7 @@
+ 
+ #include 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
+@@ -69,7 +70,7 @@ int main(int argc, char **argv) {
+   if(argc < 2) {
+   fprintf(stderr, "\nUsage:\t%s { address } [ type [ data ] ]\n"
+   "\taddress : memory address to act upon\n"
+-  "\ttype: access operation type : [b]yte, 
[h]alfword, [w]ord\n"
++  "\ttype: access operation type : [b]yte, 
[h]alfword, [w]ord, [l]ong\n"
+   "\tdata: data to be written\n\n",
+   argv[0]);
+   exit(1);
+@@ -103,9 +104,14 @@ int main(int argc, char **argv) {
+   read_result = *((unsigned short *) virt_addr);
+   break;
+   case 'w':
+-  data_size = sizeof(unsigned long);
++  data_size = sizeof(uint32_t);
+   virt_addr = fixup_addr(virt_addr, data_size);
+-  read_result = *((unsigned long *) virt_addr);
++  read_result = *((uint32_t *) virt_addr);
++  break;
++  case 'l':
++  data_size = sizeof(uint64_t);
++  virt_addr = fixup_addr(virt_addr, data_size);
++  read_result = *((uint64_t *) virt_addr);
+   break;
+   default:
+   fprintf(stderr, "Illegal data type '%c'.\n", 
access_type);
+@@ -129,9 +135,14 @@ int main(int argc, char **argv) {
+   read_result = *((unsigned short *) virt_addr);
+   break;
+   case 'w':
+-  virt_addr = fixup_addr(virt_addr, 
sizeof(unsigned long));
+-  *((unsigned long *) virt_addr) = write_val;
+-  read_result = *((unsigned long *) virt_addr);
++  virt_addr = fixup_addr(virt_addr, 
sizeof(uint32_t));
++  *((uint32_t *) virt_addr) = write_val;
++  read_result = *((uint32_t *) virt_addr);
++  break;
++  case 'l':
++  virt_addr = fixup_addr(virt_addr, 
sizeof(uint64_t));
++  *((uint64_t *) virt_addr) = write_val;
++  read_result = *((uint64_t *) virt_addr);
+   break;
+   }
+   sprintf(fmt_str, "Write at address 0x%%08lX (%%p): 0x%%0%dlX, "
+-- 
+2.7.4
+
-- 
2.7.4

-- 
___
Openembedded-devel mailing list

Re: [oe] [PATCH] devmem2: ensure word is 32-bit, add support for 64-bit double

2018-06-20 Thread Denys Dmytriyenko
On Tue, Jun 19, 2018 at 05:58:29PM -0700, Andre McCurdy wrote:
> On Tue, Jun 19, 2018 at 4:42 PM, Denys Dmytriyenko  wrote:
> > From: Denys Dmytriyenko 
> >
> > Since sizeof(unsigned long) can be 8-byte on 64-bit architectures, use
> > uint32_t instead for "word" access to always be 4-byte/32-bit long.
> >
> > Also introduce proper "double" 8-byte/64-bit access by using uint64_t.
> >
> > Signed-off-by: Denys Dmytriyenko 
> > ---
> >  meta-oe/recipes-support/devmem2/devmem2.bb |  4 +-
> >  ...sure-word-is-32-bit-and-add-support-for-6.patch | 70 
> > ++
> >  2 files changed, 73 insertions(+), 1 deletion(-)
> >  create mode 100644 
> > meta-oe/recipes-support/devmem2/devmem2/0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch
> >
> > diff --git a/meta-oe/recipes-support/devmem2/devmem2.bb 
> > b/meta-oe/recipes-support/devmem2/devmem2.bb
> > index c86eb2e..9bd1eb7 100644
> > --- a/meta-oe/recipes-support/devmem2/devmem2.bb
> > +++ b/meta-oe/recipes-support/devmem2/devmem2.bb
> > @@ -4,7 +4,9 @@ LIC_FILES_CHKSUM = 
> > "file://devmem2.c;endline=38;md5=a9eb9f3890384519f435aedf9862
> >  PR = "r7"
> >
> >  SRC_URI = 
> > "http://www.free-electrons.com/pub/mirror/devmem2.c;downloadfilename=devmem2-new.c
> >  \
> > -   file://devmem2-fixups-2.patch;apply=yes;striplevel=0"
> > +   file://devmem2-fixups-2.patch;apply=yes;striplevel=0 \
> > +   
> > file://0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch"
> > +
> >  S = "${WORKDIR}"
> >
> >  CFLAGS += "-DFORCE_STRICT_ALIGNMENT"
> > diff --git 
> > a/meta-oe/recipes-support/devmem2/devmem2/0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch
> >  
> > b/meta-oe/recipes-support/devmem2/devmem2/0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch
> > new file mode 100644
> > index 000..ad8ae67
> > --- /dev/null
> > +++ 
> > b/meta-oe/recipes-support/devmem2/devmem2/0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch
> > @@ -0,0 +1,70 @@
> > +From 1360a907879dd24041797a3b709d49aeac2ab444 Mon Sep 17 00:00:00 2001
> > +From: Denys Dmytriyenko 
> > +Date: Tue, 29 May 2018 16:55:42 -0400
> > +Subject: [PATCH] devmem.c: ensure word is 32-bit and add support for 64-bit
> > + double
> > +
> > +Signed-off-by: Denys Dmytriyenko 
> > +---
> > + devmem2.c | 23 +--
> > + 1 file changed, 17 insertions(+), 6 deletions(-)
> > +
> > +diff --git a/devmem2.c b/devmem2.c
> > +index 5845381..68131b2 100644
> > +--- a/devmem2.c
> >  b/devmem2.c
> > +@@ -39,6 +39,7 @@
> > +
> > + #include 
> > + #include 
> > ++#include 
> > + #include 
> > + #include 
> > + #include 
> > +@@ -69,7 +70,7 @@ int main(int argc, char **argv) {
> > +   if(argc < 2) {
> > +   fprintf(stderr, "\nUsage:\t%s { address } [ type [ data ] 
> > ]\n"
> > +   "\taddress : memory address to act upon\n"
> > +-  "\ttype: access operation type : [b]yte, 
> > [h]alfword, [w]ord\n"
> > ++  "\ttype: access operation type : [b]yte, 
> > [h]alfword, [w]ord, [d]ouble\n"
> 
> The busybox version of devmem (which seems to be the "upstream" for
> devmem development activity, such as it is) has already picked "l" as
> the command line option for 64bit values.

Hmm, busybox now does devmem? "who would have thunk it" :)
Still not upstream though...
I don't mind changing it to "l" (long?) to match busybox - will send v2.


> > +   "\tdata: data to be written\n\n",
> > +   argv[0]);
> > +   exit(1);
> > +@@ -103,9 +104,14 @@ int main(int argc, char **argv) {
> > +   read_result = *((unsigned short *) virt_addr);
> > +   break;
> > +   case 'w':
> > +-  data_size = sizeof(unsigned long);
> > ++  data_size = sizeof(uint32_t);
> > +   virt_addr = fixup_addr(virt_addr, data_size);
> > +-  read_result = *((unsigned long *) virt_addr);
> > ++  read_result = *((uint32_t *) virt_addr);
> > ++  break;
> > ++  case 'd':
> > ++  data_size = sizeof(uint64_t);
> > ++  virt_addr = fixup_addr(virt_addr, data_size);
> > ++  read_result = *((uint64_t *) virt_addr);
> > +   break;
> > +   default:
> > +   fprintf(stderr, "Illegal data type '%c'.\n", 
> > access_type);
> > +@@ -129,9 +135,14 @@ int main(int argc, char **argv) {
> > +   read_result = *((unsigned short *) 
> > virt_addr);
> > +   break;
> > +   case 'w':
> > +-  virt_addr = fixup_addr(virt_addr, 
> > sizeof(unsigned long));
> > +-  *((unsigned long *) virt_addr) = write_val;
> > +-   

Re: [oe] [meta-oe][PATCH] mozjs: Update Double-Conversion inside mozjs

2018-06-20 Thread Khem Raj
On Wed, Jun 20, 2018 at 1:32 PM Alistair Francis  wrote:
>
> On Wed, Jun 20, 2018 at 1:25 PM, Khem Raj  wrote:
> > On Wed, Jun 20, 2018 at 1:22 PM Alistair Francis
> >  wrote:
> >>
> >> Update the Double-Conversion source inside mozjs to add support for more
> >> architectures.
> >>
> >
> > could you describe the patch a bit more and testing it needs.
>
> Do you want it updated in the commit message or is the list fine?
>
> Either way, the Double-Conversion
> (https://github.com/google/double-conversion) library is used inside a
> lot of projects for IEEE doubles. The version in mozjs 17 is very old
> and it missing a lot of newer achitecutre support. It's even missing
> AArch64 which is why there is a seperate patch to add that.
>
> This just updates the script already included in mozjs for updating
> Double Conversion and then updates Double Conversion to the latest.
> This gives us RISC-V support as well as other architectures.
>

This all looks good to me. Although I think there are couple of things, may be
bring it up upstream as well, and if its going to cause any
regressions or compatibility
issues in given version of mozjs

> Alistair
>
> >
> >> Signed-off-by: Alistair Francis 
> >> ---
> >>  .../mozjs/0003-Add-AArch64-support.patch  |   76 -
> >>  .../mozjs/Update-Double-Conversion.patch  | 1732 +
> >>  ...-the-double-conversion-update-script.patch |  175 ++
> >>  .../recipes-extended/mozjs/mozjs_17.0.0.bb|3 +-
> >>  4 files changed, 1909 insertions(+), 77 deletions(-)
> >>  delete mode 100644 
> >> meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch
> >>  create mode 100644 
> >> meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch
> >>  create mode 100644 
> >> meta-oe/recipes-extended/mozjs/mozjs/Update-the-double-conversion-update-script.patch
> >>
> >> diff --git 
> >> a/meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch 
> >> b/meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch
> >> deleted file mode 100644
> >> index 6e724292a..0
> >> --- a/meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch
> >> +++ /dev/null
> >> @@ -1,76 +0,0 @@
> >> -From 15e710e331d36eb279852b5cd1ba37a9a6005217 Mon Sep 17 00:00:00 2001
> >> -From: Koen Kooi 
> >> -Date: Mon, 2 Mar 2015 19:08:22 +0800
> >> -Subject: [PATCH 3/5] Add AArch64 support
> >> -
> >> 
> >> -Upstream-status: Pending
> >> -
> >> - js/src/assembler/jit/ExecutableAllocator.h | 6 ++
> >> - js/src/assembler/wtf/Platform.h| 4 
> >> - js/src/configure.in| 4 
> >> - mfbt/double-conversion/utils.h | 1 +
> >> - 4 files changed, 15 insertions(+)
> >> -
> >> -diff --git a/js/src/assembler/jit/ExecutableAllocator.h 
> >> b/js/src/assembler/jit/ExecutableAllocator.h
> >> -index c071c33..90764c3 100644
> >>  a/js/src/assembler/jit/ExecutableAllocator.h
> >> -+++ b/js/src/assembler/jit/ExecutableAllocator.h
> >> -@@ -382,6 +382,12 @@ public:
> >> - {
> >> - reprotectRegion(start, size, Executable);
> >> - }
> >> -+#elif WTF_CPU_AARCH64 && WTF_PLATFORM_LINUX
> >> -+static void cacheFlush(void* code, size_t size)
> >> -+{
> >> -+intptr_t end = reinterpret_cast(code) + size;
> >> -+__builtin___clear_cache(reinterpret_cast(code), 
> >> reinterpret_cast(end));
> >> -+}
> >> - #else
> >> - static void makeWritable(void*, size_t) {}
> >> - static void makeExecutable(void*, size_t) {}
> >> -diff --git a/js/src/assembler/wtf/Platform.h 
> >> b/js/src/assembler/wtf/Platform.h
> >> -index 0c84896..e8763a7 100644
> >>  a/js/src/assembler/wtf/Platform.h
> >> -+++ b/js/src/assembler/wtf/Platform.h
> >> -@@ -325,6 +325,10 @@
> >> - #define WTF_THUMB_ARCH_VERSION 0
> >> - #endif
> >> -
> >> -+/* CPU(AArch64) - 64-bit ARM */
> >> -+#if defined(__aarch64__)
> >> -+#define WTF_CPU_AARCH64 1
> >> -+#endif
> >> -
> >> - /* WTF_CPU_ARMV5_OR_LOWER - ARM instruction set v5 or earlier */
> >> - /* On ARMv5 and below the natural alignment is required.
> >> -diff --git a/js/src/configure.in b/js/src/configure.in
> >> -index 64c7606..0673aca 100644
> >>  a/js/src/configure.in
> >> -+++ b/js/src/configure.in
> >> -@@ -1121,6 +1121,10 @@ arm*)
> >> - CPU_ARCH=arm
> >> - ;;
> >> -
> >> -+aarch64)
> >> -+CPU_ARCH=aarch64
> >> -+;;
> >> -+
> >> - mips|mipsel)
> >> - CPU_ARCH="mips"
> >> - ;;
> >> -diff --git a/mfbt/double-conversion/utils.h 
> >> b/mfbt/double-conversion/utils.h
> >> -index 0eec2d9..fe26dab 100644
> >>  a/mfbt/double-conversion/utils.h
> >> -+++ b/mfbt/double-conversion/utils.h
> >> -@@ -58,6 +58,7 @@
> >> - defined(__mips__) || defined(__powerpc__) || \
> >> - defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
> >> - defined(__SH4__) || defined(__alpha__) || \
> >> -+defined(__aarch64__) || \
> >> - defined(_MIPS_ARCH_MIPS32R2)
> >> - #define 

[oe] [meta-oe][PATCH] README: fix links to repos and improve formatting

2018-06-20 Thread open . source
From: Oleksandr Kravchuk 

Signed-off-by: Oleksandr Kravchuk 
---
 meta-oe/README | 12 ++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/meta-oe/README b/meta-oe/README
index 7cde0a2da..db5697dd9 100644
--- a/meta-oe/README
+++ b/meta-oe/README
@@ -1,6 +1,9 @@
+meta-oe
+===
+
 This layer depends on:
 
-URI: git://github.com/openembedded/oe-core.git
+URI: git://github.com/openembedded/openembedded-core.git
 branch: master
 revision: HEAD
 
@@ -9,6 +12,11 @@ Send pull requests to 
openembedded-devel@lists.openembedded.org with '[meta-oe]'
 When sending single patches, please use something like:
 'git send-email -M -1 --to openembedded-devel@lists.openembedded.org 
--subject-prefix=meta-oe][PATCH'
 
-You are encouraged to fork the mirror on github 
https://github.com/openembedded/meta-oe/ to share your patches, this is 
preferred for patch sets consisting of more than one patch. Other services like 
gitorious, repo.or.cz or self hosted setups are of course accepted as well, 
'git fetch ' works the same on all of them. We recommend github because 
it is free, easy to use, has been proven to be reliable and has a really good 
web GUI.
+You are encouraged to fork the mirror on GitHub 
https://github.com/openembedded/openembedded-core
+to share your patches, this is preferred for patch sets consisting of more 
than one patch.
+
+Other services like gitorious, repo.or.cz or self-hosted setups are of course 
accepted as well,
+'git fetch ' works the same on all of them. We recommend GitHub 
because it is free, easy
+to use, has been proven to be reliable and has a really good web GUI.
 
 Main layer maintainer: Armin Kuster 
-- 
2.17.1

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


Re: [oe] [meta-oe][PATCH] mozjs: Update Double-Conversion inside mozjs

2018-06-20 Thread Alistair Francis
On Wed, Jun 20, 2018 at 1:25 PM, Khem Raj  wrote:
> On Wed, Jun 20, 2018 at 1:22 PM Alistair Francis
>  wrote:
>>
>> Update the Double-Conversion source inside mozjs to add support for more
>> architectures.
>>
>
> could you describe the patch a bit more and testing it needs.

Do you want it updated in the commit message or is the list fine?

Either way, the Double-Conversion
(https://github.com/google/double-conversion) library is used inside a
lot of projects for IEEE doubles. The version in mozjs 17 is very old
and it missing a lot of newer achitecutre support. It's even missing
AArch64 which is why there is a seperate patch to add that.

This just updates the script already included in mozjs for updating
Double Conversion and then updates Double Conversion to the latest.
This gives us RISC-V support as well as other architectures.

Alistair

>
>> Signed-off-by: Alistair Francis 
>> ---
>>  .../mozjs/0003-Add-AArch64-support.patch  |   76 -
>>  .../mozjs/Update-Double-Conversion.patch  | 1732 +
>>  ...-the-double-conversion-update-script.patch |  175 ++
>>  .../recipes-extended/mozjs/mozjs_17.0.0.bb|3 +-
>>  4 files changed, 1909 insertions(+), 77 deletions(-)
>>  delete mode 100644 
>> meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch
>>  create mode 100644 
>> meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch
>>  create mode 100644 
>> meta-oe/recipes-extended/mozjs/mozjs/Update-the-double-conversion-update-script.patch
>>
>> diff --git 
>> a/meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch 
>> b/meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch
>> deleted file mode 100644
>> index 6e724292a..0
>> --- a/meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch
>> +++ /dev/null
>> @@ -1,76 +0,0 @@
>> -From 15e710e331d36eb279852b5cd1ba37a9a6005217 Mon Sep 17 00:00:00 2001
>> -From: Koen Kooi 
>> -Date: Mon, 2 Mar 2015 19:08:22 +0800
>> -Subject: [PATCH 3/5] Add AArch64 support
>> -
>> 
>> -Upstream-status: Pending
>> -
>> - js/src/assembler/jit/ExecutableAllocator.h | 6 ++
>> - js/src/assembler/wtf/Platform.h| 4 
>> - js/src/configure.in| 4 
>> - mfbt/double-conversion/utils.h | 1 +
>> - 4 files changed, 15 insertions(+)
>> -
>> -diff --git a/js/src/assembler/jit/ExecutableAllocator.h 
>> b/js/src/assembler/jit/ExecutableAllocator.h
>> -index c071c33..90764c3 100644
>>  a/js/src/assembler/jit/ExecutableAllocator.h
>> -+++ b/js/src/assembler/jit/ExecutableAllocator.h
>> -@@ -382,6 +382,12 @@ public:
>> - {
>> - reprotectRegion(start, size, Executable);
>> - }
>> -+#elif WTF_CPU_AARCH64 && WTF_PLATFORM_LINUX
>> -+static void cacheFlush(void* code, size_t size)
>> -+{
>> -+intptr_t end = reinterpret_cast(code) + size;
>> -+__builtin___clear_cache(reinterpret_cast(code), 
>> reinterpret_cast(end));
>> -+}
>> - #else
>> - static void makeWritable(void*, size_t) {}
>> - static void makeExecutable(void*, size_t) {}
>> -diff --git a/js/src/assembler/wtf/Platform.h 
>> b/js/src/assembler/wtf/Platform.h
>> -index 0c84896..e8763a7 100644
>>  a/js/src/assembler/wtf/Platform.h
>> -+++ b/js/src/assembler/wtf/Platform.h
>> -@@ -325,6 +325,10 @@
>> - #define WTF_THUMB_ARCH_VERSION 0
>> - #endif
>> -
>> -+/* CPU(AArch64) - 64-bit ARM */
>> -+#if defined(__aarch64__)
>> -+#define WTF_CPU_AARCH64 1
>> -+#endif
>> -
>> - /* WTF_CPU_ARMV5_OR_LOWER - ARM instruction set v5 or earlier */
>> - /* On ARMv5 and below the natural alignment is required.
>> -diff --git a/js/src/configure.in b/js/src/configure.in
>> -index 64c7606..0673aca 100644
>>  a/js/src/configure.in
>> -+++ b/js/src/configure.in
>> -@@ -1121,6 +1121,10 @@ arm*)
>> - CPU_ARCH=arm
>> - ;;
>> -
>> -+aarch64)
>> -+CPU_ARCH=aarch64
>> -+;;
>> -+
>> - mips|mipsel)
>> - CPU_ARCH="mips"
>> - ;;
>> -diff --git a/mfbt/double-conversion/utils.h b/mfbt/double-conversion/utils.h
>> -index 0eec2d9..fe26dab 100644
>>  a/mfbt/double-conversion/utils.h
>> -+++ b/mfbt/double-conversion/utils.h
>> -@@ -58,6 +58,7 @@
>> - defined(__mips__) || defined(__powerpc__) || \
>> - defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
>> - defined(__SH4__) || defined(__alpha__) || \
>> -+defined(__aarch64__) || \
>> - defined(_MIPS_ARCH_MIPS32R2)
>> - #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
>> - #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
>> ---
>> -1.9.3
>> -
>> diff --git 
>> a/meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch 
>> b/meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch
>> new file mode 100644
>> index 0..c5979c97b
>> --- /dev/null
>> +++ b/meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch
>> @@ -0,0 +1,1732 @@
>> +From b4961d6e1d273dd9643fc3c055163d5cd3362fb7 Mon Sep 17 

Re: [oe] [meta-oe][PATCH] mozjs: Update Double-Conversion inside mozjs

2018-06-20 Thread Khem Raj
On Wed, Jun 20, 2018 at 1:22 PM Alistair Francis
 wrote:
>
> Update the Double-Conversion source inside mozjs to add support for more
> architectures.
>

could you describe the patch a bit more and testing it needs.

> Signed-off-by: Alistair Francis 
> ---
>  .../mozjs/0003-Add-AArch64-support.patch  |   76 -
>  .../mozjs/Update-Double-Conversion.patch  | 1732 +
>  ...-the-double-conversion-update-script.patch |  175 ++
>  .../recipes-extended/mozjs/mozjs_17.0.0.bb|3 +-
>  4 files changed, 1909 insertions(+), 77 deletions(-)
>  delete mode 100644 
> meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch
>  create mode 100644 
> meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch
>  create mode 100644 
> meta-oe/recipes-extended/mozjs/mozjs/Update-the-double-conversion-update-script.patch
>
> diff --git 
> a/meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch 
> b/meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch
> deleted file mode 100644
> index 6e724292a..0
> --- a/meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch
> +++ /dev/null
> @@ -1,76 +0,0 @@
> -From 15e710e331d36eb279852b5cd1ba37a9a6005217 Mon Sep 17 00:00:00 2001
> -From: Koen Kooi 
> -Date: Mon, 2 Mar 2015 19:08:22 +0800
> -Subject: [PATCH 3/5] Add AArch64 support
> -
> 
> -Upstream-status: Pending
> -
> - js/src/assembler/jit/ExecutableAllocator.h | 6 ++
> - js/src/assembler/wtf/Platform.h| 4 
> - js/src/configure.in| 4 
> - mfbt/double-conversion/utils.h | 1 +
> - 4 files changed, 15 insertions(+)
> -
> -diff --git a/js/src/assembler/jit/ExecutableAllocator.h 
> b/js/src/assembler/jit/ExecutableAllocator.h
> -index c071c33..90764c3 100644
>  a/js/src/assembler/jit/ExecutableAllocator.h
> -+++ b/js/src/assembler/jit/ExecutableAllocator.h
> -@@ -382,6 +382,12 @@ public:
> - {
> - reprotectRegion(start, size, Executable);
> - }
> -+#elif WTF_CPU_AARCH64 && WTF_PLATFORM_LINUX
> -+static void cacheFlush(void* code, size_t size)
> -+{
> -+intptr_t end = reinterpret_cast(code) + size;
> -+__builtin___clear_cache(reinterpret_cast(code), 
> reinterpret_cast(end));
> -+}
> - #else
> - static void makeWritable(void*, size_t) {}
> - static void makeExecutable(void*, size_t) {}
> -diff --git a/js/src/assembler/wtf/Platform.h 
> b/js/src/assembler/wtf/Platform.h
> -index 0c84896..e8763a7 100644
>  a/js/src/assembler/wtf/Platform.h
> -+++ b/js/src/assembler/wtf/Platform.h
> -@@ -325,6 +325,10 @@
> - #define WTF_THUMB_ARCH_VERSION 0
> - #endif
> -
> -+/* CPU(AArch64) - 64-bit ARM */
> -+#if defined(__aarch64__)
> -+#define WTF_CPU_AARCH64 1
> -+#endif
> -
> - /* WTF_CPU_ARMV5_OR_LOWER - ARM instruction set v5 or earlier */
> - /* On ARMv5 and below the natural alignment is required.
> -diff --git a/js/src/configure.in b/js/src/configure.in
> -index 64c7606..0673aca 100644
>  a/js/src/configure.in
> -+++ b/js/src/configure.in
> -@@ -1121,6 +1121,10 @@ arm*)
> - CPU_ARCH=arm
> - ;;
> -
> -+aarch64)
> -+CPU_ARCH=aarch64
> -+;;
> -+
> - mips|mipsel)
> - CPU_ARCH="mips"
> - ;;
> -diff --git a/mfbt/double-conversion/utils.h b/mfbt/double-conversion/utils.h
> -index 0eec2d9..fe26dab 100644
>  a/mfbt/double-conversion/utils.h
> -+++ b/mfbt/double-conversion/utils.h
> -@@ -58,6 +58,7 @@
> - defined(__mips__) || defined(__powerpc__) || \
> - defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
> - defined(__SH4__) || defined(__alpha__) || \
> -+defined(__aarch64__) || \
> - defined(_MIPS_ARCH_MIPS32R2)
> - #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
> - #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
> ---
> -1.9.3
> -
> diff --git 
> a/meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch 
> b/meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch
> new file mode 100644
> index 0..c5979c97b
> --- /dev/null
> +++ b/meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch
> @@ -0,0 +1,1732 @@
> +From b4961d6e1d273dd9643fc3c055163d5cd3362fb7 Mon Sep 17 00:00:00 2001
> +From: Alistair Francis 
> +Date: Fri, 1 Jun 2018 14:47:31 -0700
> +Subject: [PATCH] Update double conversion
> +
> +Signed-off-by: Alistair Francis 
> +---
> + mfbt/double-conversion/COPYING  |  26 ++
> + mfbt/double-conversion/bignum-dtoa.cc   |  19 +-
> + mfbt/double-conversion/bignum-dtoa.h|   2 +-
> + mfbt/double-conversion/bignum.cc|  39 +--
> + mfbt/double-conversion/bignum.h |   5 +-
> + mfbt/double-conversion/cached-powers.cc |  14 +-
> + mfbt/double-conversion/cached-powers.h  |   2 +-
> + mfbt/double-conversion/diy-fp.cc|   4 +-
> + mfbt/double-conversion/diy-fp.h |  24 +-
> + mfbt/double-conversion/double-conversion.cc | 293 

[oe] [meta-oe][PATCH] mozjs: Update Double-Conversion inside mozjs

2018-06-20 Thread Alistair Francis
Update the Double-Conversion source inside mozjs to add support for more
architectures.

Signed-off-by: Alistair Francis 
---
 .../mozjs/0003-Add-AArch64-support.patch  |   76 -
 .../mozjs/Update-Double-Conversion.patch  | 1732 +
 ...-the-double-conversion-update-script.patch |  175 ++
 .../recipes-extended/mozjs/mozjs_17.0.0.bb|3 +-
 4 files changed, 1909 insertions(+), 77 deletions(-)
 delete mode 100644 
meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch
 create mode 100644 
meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch
 create mode 100644 
meta-oe/recipes-extended/mozjs/mozjs/Update-the-double-conversion-update-script.patch

diff --git 
a/meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch 
b/meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch
deleted file mode 100644
index 6e724292a..0
--- a/meta-oe/recipes-extended/mozjs/mozjs/0003-Add-AArch64-support.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-From 15e710e331d36eb279852b5cd1ba37a9a6005217 Mon Sep 17 00:00:00 2001
-From: Koen Kooi 
-Date: Mon, 2 Mar 2015 19:08:22 +0800
-Subject: [PATCH 3/5] Add AArch64 support
-

-Upstream-status: Pending
-
- js/src/assembler/jit/ExecutableAllocator.h | 6 ++
- js/src/assembler/wtf/Platform.h| 4 
- js/src/configure.in| 4 
- mfbt/double-conversion/utils.h | 1 +
- 4 files changed, 15 insertions(+)
-
-diff --git a/js/src/assembler/jit/ExecutableAllocator.h 
b/js/src/assembler/jit/ExecutableAllocator.h
-index c071c33..90764c3 100644
 a/js/src/assembler/jit/ExecutableAllocator.h
-+++ b/js/src/assembler/jit/ExecutableAllocator.h
-@@ -382,6 +382,12 @@ public:
- {
- reprotectRegion(start, size, Executable);
- }
-+#elif WTF_CPU_AARCH64 && WTF_PLATFORM_LINUX
-+static void cacheFlush(void* code, size_t size)
-+{
-+intptr_t end = reinterpret_cast(code) + size;
-+__builtin___clear_cache(reinterpret_cast(code), 
reinterpret_cast(end));
-+}
- #else
- static void makeWritable(void*, size_t) {}
- static void makeExecutable(void*, size_t) {}
-diff --git a/js/src/assembler/wtf/Platform.h b/js/src/assembler/wtf/Platform.h
-index 0c84896..e8763a7 100644
 a/js/src/assembler/wtf/Platform.h
-+++ b/js/src/assembler/wtf/Platform.h
-@@ -325,6 +325,10 @@
- #define WTF_THUMB_ARCH_VERSION 0
- #endif
- 
-+/* CPU(AArch64) - 64-bit ARM */
-+#if defined(__aarch64__)
-+#define WTF_CPU_AARCH64 1
-+#endif
- 
- /* WTF_CPU_ARMV5_OR_LOWER - ARM instruction set v5 or earlier */
- /* On ARMv5 and below the natural alignment is required. 
-diff --git a/js/src/configure.in b/js/src/configure.in
-index 64c7606..0673aca 100644
 a/js/src/configure.in
-+++ b/js/src/configure.in
-@@ -1121,6 +1121,10 @@ arm*)
- CPU_ARCH=arm
- ;;
- 
-+aarch64)
-+CPU_ARCH=aarch64
-+;;
-+
- mips|mipsel)
- CPU_ARCH="mips"
- ;;
-diff --git a/mfbt/double-conversion/utils.h b/mfbt/double-conversion/utils.h
-index 0eec2d9..fe26dab 100644
 a/mfbt/double-conversion/utils.h
-+++ b/mfbt/double-conversion/utils.h
-@@ -58,6 +58,7 @@
- defined(__mips__) || defined(__powerpc__) || \
- defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
- defined(__SH4__) || defined(__alpha__) || \
-+defined(__aarch64__) || \
- defined(_MIPS_ARCH_MIPS32R2)
- #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
- #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
--- 
-1.9.3
-
diff --git 
a/meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch 
b/meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch
new file mode 100644
index 0..c5979c97b
--- /dev/null
+++ b/meta-oe/recipes-extended/mozjs/mozjs/Update-Double-Conversion.patch
@@ -0,0 +1,1732 @@
+From b4961d6e1d273dd9643fc3c055163d5cd3362fb7 Mon Sep 17 00:00:00 2001
+From: Alistair Francis 
+Date: Fri, 1 Jun 2018 14:47:31 -0700
+Subject: [PATCH] Update double conversion
+
+Signed-off-by: Alistair Francis 
+---
+ mfbt/double-conversion/COPYING  |  26 ++
+ mfbt/double-conversion/bignum-dtoa.cc   |  19 +-
+ mfbt/double-conversion/bignum-dtoa.h|   2 +-
+ mfbt/double-conversion/bignum.cc|  39 +--
+ mfbt/double-conversion/bignum.h |   5 +-
+ mfbt/double-conversion/cached-powers.cc |  14 +-
+ mfbt/double-conversion/cached-powers.h  |   2 +-
+ mfbt/double-conversion/diy-fp.cc|   4 +-
+ mfbt/double-conversion/diy-fp.h |  24 +-
+ mfbt/double-conversion/double-conversion.cc | 293 ++--
+ mfbt/double-conversion/double-conversion.h  |  78 +++---
+ mfbt/double-conversion/fast-dtoa.cc |  29 +-
+ mfbt/double-conversion/fast-dtoa.h  |   2 +-
+ mfbt/double-conversion/fixed-dtoa.cc|  23 +-
+ mfbt/double-conversion/fixed-dtoa.h |   2 +-
+ mfbt/double-conversion/ieee.h   |   8 +-
+ mfbt/double-conversion/strtod.cc

Re: [oe] [meta-qt5][PATCH] qt5: Update to Qt 5.11.0

2018-06-20 Thread Martin Jansa
On Wed, Jun 20, 2018 at 03:52:19PM +0200, Daniel Mack wrote:
> On Wednesday, June 20, 2018 01:29 PM, Martin Jansa wrote:
> > On Wed, Jun 20, 2018 at 12:50:52PM +0200, Daniel Mack wrote:
> >> On Wednesday, June 20, 2018 12:36 PM, Martin Jansa wrote:
> >>> It's already in meta-qt5/master with couple fixes on top of that.
> >>
> >> Ah, sorry. For some reason, I only looked into the -next branches.
> > 
> > Well, meta-qt5/master-next is exactly the same as meta-qt5/master :).
> > 
> >> Stupid. FWIW, I have a patch for 5.11.1 ready. Will send once the build
> >> succeeded.
> > 
> > I've started rebasing the patches in meta-qt5 as well, but we cannot use
> > 5.11.1 until downmerge to 5.11 is finished, because:
> > 
> > 1) we cannot use 5.11.1 branch, because they might delete this branch at
> > any time (like with 5.10.1)
> 
> But there's also a v5.11.1 tag, which is unlikely to be deleted?

This is true. But not good enough for bitbake fetcher.

> I might miss something and I haven't followed the discussions, but is 
> your idea to drop the explicit SRCREVs in the recipes in favor of 
> AUTOREV and a branch name?

Definitely not.

bitbake fetcher checks out the defined SRCREV, but also checks that the
revision exists in the branch specified in branch parameter ("master" is
the default when the parameter is missing), if the revision exists, but
isn't in the specified branch then an error is shown (which happens when
upstream deletes the branch e.g. 5.10.1 branch and the revision of v5.10.1
tag which is used in SRCREV exists currently only in 5.11 and dev
branches.

qtbase $ git branch -a --contains v5.10.1 | grep origin
  remotes/origin/5.11
  remotes/origin/5.11.0
  remotes/origin/5.11.1
  remotes/origin/dev
  remotes/origin/wip/qbs2
  remotes/origin/wip/webassembly

There is fix for meta-qt5/sumo which is using 5.10.1:
https://patchwork.openembedded.org/patch/151543/
but that's quite unfortunate to use 5.11 branch from 5.10.1 recipes..

That's why I was waiting with 5.9.6 upgrade until it was downmerged to
5.9 branch:
qtbase $ git branch -a --contains v5.9.6 | grep origin
  remotes/origin/5.9
  remotes/origin/5.9.6

and now I wait for the same with v5.11.1
qtbase $ git branch -a --contains v5.11.1 | grep origin
  remotes/origin/5.11.1

AUTOREV is just for people who want to track latest revision in given
branch (e.g. in CI builds).

It's not acceptable to use AUTOREV by default in public layers, because
that would break the build every other day without any change in the
metadata so it would be a mess to use such layer. But in some layers we
were providing .inc files for easy switch between well-tested SRCREVs
and bleeding edge AUTOREV e.g. for developers.

> FWIW, I've written a small shell script that retrieves the SHA1 for each 
> of the qt projects and updates the .bb files automatically. That seems 
> to work quite well, and I'm happy to share it. There's still the problem 
> with downstream patches and other necessary changes in the recipes for 
> new Qt versions, but that's an issue either way.

I have some scripts as well, SRCREV is the easy part, updating the
patches in meta-qt5 and corresponding branches/tags on meta-qt5/qt*
repos is the tricky part, because only small part of it can be
automated - that's probably why I'm the only one who updates them when I
find the time :).

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


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


Re: [oe] [meta-networking][PATCH] Fix confilct error in do_rootfs.

2018-06-20 Thread Khem Raj
Can you rebase it on master and send again ?
On Tue, Jun 5, 2018 at 8:43 PM Lei Maohui  wrote:
>
> Error: Transaction check error:
>   file /usr/bin/mailq conflicts between attempted installs of 
> esmtp-1.2-r0.x86_64 and postfix-3.2.2-r0.x86_64
>   file /usr/bin/newaliases conflicts between attempted installs of 
> esmtp-1.2-r0.x86_64 and postfix-3.2.2-r0.x86_64
>
> Signed-off-by: Lei Maohui 
> ---
>  meta-networking/recipes-daemons/postfix/postfix.inc | 7 ---
>  meta-networking/recipes-support/esmtp/esmtp_1.2.bb  | 6 +++---
>  2 files changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/meta-networking/recipes-daemons/postfix/postfix.inc 
> b/meta-networking/recipes-daemons/postfix/postfix.inc
> index 09447d5..a5e8618 100644
> --- a/meta-networking/recipes-daemons/postfix/postfix.inc
> +++ b/meta-networking/recipes-daemons/postfix/postfix.inc
> @@ -219,9 +219,10 @@ do_install_append_class-target() {
>  sed -i 's:-fdebug-prefix-map[^ ]*::g; 
> s:--sysroot=${STAGING_DIR_TARGET}::g' ${D}/etc/postfix/makedefs.out
>  }
>
> -ALTERNATIVE_${PN} = "sendmail"
> -ALTERNATIVE_TARGET[sendmail] = "${sbindir}/sendmail.postfix"
> -ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail"
> +ALTERNATIVE_${PN} += "mailq newaliases"
> +ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq"
> +ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases"
> +
>  ALTERNATIVE_PRIORITY = "120"
>
>  ALTERNATIVE_${PN}-doc += "mailq.1 newaliases.1 sendmail.1"
> diff --git a/meta-networking/recipes-support/esmtp/esmtp_1.2.bb 
> b/meta-networking/recipes-support/esmtp/esmtp_1.2.bb
> index 2da73e7..9fb817b 100644
> --- a/meta-networking/recipes-support/esmtp/esmtp_1.2.bb
> +++ b/meta-networking/recipes-support/esmtp/esmtp_1.2.bb
> @@ -18,10 +18,10 @@ EXTRA_OECONF = "--with-libesmtp=${STAGING_EXECPREFIXDIR}"
>
>  inherit autotools update-alternatives
>
> -ALTERNATIVE_${PN} = "sendmail"
> +ALTERNATIVE_${PN} += "mailq newaliases"
> +ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq"
> +ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases"
>
> -ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail"
> -ALTERNATIVE_TARGET[sendmail] = "${bindir}/esmtp"
>  ALTERNATIVE_PRIORITY = "10"
>
>  ALTERNATIVE_${PN}-doc += "mailq.1 newaliases.1 sendmail.1"
> --
> 1.9.1
>
>
>
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-networking][PATCH] samba:Deleted config for lsb, since this part has been deleted from samba upstream.

2018-06-20 Thread Khem Raj
Can you rebase it on latest master or master-next and resend.
On Wed, Jun 20, 2018 at 12:39 AM Lei, Maohui  wrote:
>
> Ping
>
> > -Original Message-
> > From: Lei, Maohui
> > Sent: Sunday, May 27, 2018 5:36 AM
> > To: openembedded-devel@lists.openembedded.org
> > Cc: Lei, Maohui
> > Subject: [oe] [meta-networking][PATCH] samba:Deleted config for lsb, since 
> > this
> > part has been deleted from samba upstream.
> >
> > Signed-off-by: Lei Maohui 
> > ---
> >  .../recipes-connectivity/samba/samba_4.7.6.bb  | 25 
> > --
> >  1 file changed, 9 insertions(+), 16 deletions(-)
> >
> > diff --git a/meta-networking/recipes-connectivity/samba/samba_4.7.6.bb 
> > b/meta-
> > networking/recipes-connectivity/samba/samba_4.7.6.bb
> > index a8517c5..b570e4b 100644
> > --- a/meta-networking/recipes-connectivity/samba/samba_4.7.6.bb
> > +++ b/meta-networking/recipes-connectivity/samba/samba_4.7.6.bb
> > @@ -46,8 +46,6 @@ DEPENDS_append_libc-musl = " libtirpc"
> >  CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc"
> >  LDFLAGS_append_libc-musl = " -ltirpc"
> >
> > -LSB = ""
> > -LSB_linuxstdbase = "lsb"
> >
> >  INITSCRIPT_NAME = "samba"
> >  INITSCRIPT_PARAMS = "start 20 3 5 . stop 20 0 1 6 ."
> > @@ -68,7 +66,6 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES',
> > 'systemd zeroconf', d)}
> > acl ad-dc cups gnutls ldap mitkrb5 \
> >  "
> >
> > -RDEPENDS_${PN}-base += "${LSB}"
> >  RDEPENDS_${PN}-ctdb-tests += "bash util-linux-getopt"
> >
> >  PACKAGECONFIG[acl] = "--with-acl-support,--without-acl-support,acl"
> > @@ -150,19 +147,15 @@ do_install_append() {
> >  install -m644 packaging/systemd/samba.conf.tmp
> > ${D}${sysconfdir}/tmpfiles.d/samba.conf
> >  echo "d ${localstatedir}/log/samba 0755 root root -" \
> >  >> ${D}${sysconfdir}/tmpfiles.d/samba.conf
> > -if [ "${LSB}" = "lsb" ]; then
> > -install -d ${D}${sysconfdir}/init.d
> > -install -m 0755 packaging/LSB/samba.sh 
> > ${D}${sysconfdir}/init.d/samba
> > -else
> > -install -d ${D}${sysconfdir}/init.d
> > -install -m 0755 packaging/sysv/samba.init
> > ${D}${sysconfdir}/init.d/samba
> > -sed -e 's,/opt/samba/bin,${sbindir},g' \
> > --e 's,/opt/samba/smb.conf,${sysconfdir}/samba/smb.conf,g' \
> > --e 's,/opt/samba/log,${localstatedir}/log/samba,g' \
> > --e 's,/etc/init.d/samba.server,${sysconfdir}/init.d/samba,g' \
> > --e 's,/usr/bin,${base_bindir},g' \
> > --i ${D}${sysconfdir}/init.d/samba
> > -fi
> > +
> > +install -d ${D}${sysconfdir}/init.d
> > +install -m 0755 packaging/sysv/samba.init 
> > ${D}${sysconfdir}/init.d/samba
> > +sed -e 's,/opt/samba/bin,${sbindir},g' \
> > +-e 's,/opt/samba/smb.conf,${sysconfdir}/samba/smb.conf,g' \
> > +-e 's,/opt/samba/log,${localstatedir}/log/samba,g' \
> > +-e 's,/etc/init.d/samba.server,${sysconfdir}/init.d/samba,g' \
> > +-e 's,/usr/bin,${base_bindir},g' \
> > +-i ${D}${sysconfdir}/init.d/samba
> >
> >  install -d ${D}${sysconfdir}/samba
> >  echo "127.0.0.1 localhost" > ${D}${sysconfdir}/samba/lmhosts
> > --
> > 1.9.1
>
>
>
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] meta-python/python-scipy

2018-06-20 Thread Maxime Roussin-Bélanger
Without the crosscompiling and building for x86-64 I was able to reach far into 
the compilation of scipy.

I have issues with how libgfortran deploys it’s file so that scipy can see 
them. I found an OpenBlas recipe that I use to configure/build scipy with the 
site.cfg file.

I skipped atlas for now.

Max
On Jun 20, 2018, 07:38 -0400, Philip Balister , wrote:
> On 06/19/2018 03:24 PM, Maxime Roussin-Bélanger wrote:
> > Has anyone been able to have some sort of a breakthrough to build
> > python-scipy?
> >
> > I'm trying to build python-scipy on a x86-64generic MACHINE and I reached
> > math-atlas fun...
> >
> > I couldn't find any math-atlas recipe... at this point I think it might be
> > a lot easier to build an ISO with a preseed configuration that installs
> > python-scipy for our purpose.
> >
> > Has anyone worked on it and would share they work on the contrib repo?
>
> I just spent some time working on getting it to build natively on a Pi3
> successfully (failed about 85 for 3500 tests). Next step is see if I can
> use the same trick numpy does to get a configuration in place so it
> cross compiles.
>
> The configure phase of the compile is completely broken for cross
> compilation since it is collecting information about python from the
> sysroot, which is not going to match python on the target.
>
> I skipped atlas and built lapack. Atlas has similar issues with cross
> compilation.
>
> I'm coming back to this, but not for several weeks.
>
> Philip
>
>
>
> >
> > Thanks.
> > Max.
> >
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-qt5][PATCH] qt5: Update to Qt 5.11.0

2018-06-20 Thread Daniel Mack

On Wednesday, June 20, 2018 01:29 PM, Martin Jansa wrote:

On Wed, Jun 20, 2018 at 12:50:52PM +0200, Daniel Mack wrote:

On Wednesday, June 20, 2018 12:36 PM, Martin Jansa wrote:

It's already in meta-qt5/master with couple fixes on top of that.


Ah, sorry. For some reason, I only looked into the -next branches.


Well, meta-qt5/master-next is exactly the same as meta-qt5/master :).


Stupid. FWIW, I have a patch for 5.11.1 ready. Will send once the build
succeeded.


I've started rebasing the patches in meta-qt5 as well, but we cannot use
5.11.1 until downmerge to 5.11 is finished, because:

1) we cannot use 5.11.1 branch, because they might delete this branch at
any time (like with 5.10.1)


But there's also a v5.11.1 tag, which is unlikely to be deleted?

I might miss something and I haven't followed the discussions, but is 
your idea to drop the explicit SRCREVs in the recipes in favor of 
AUTOREV and a branch name?


FWIW, I've written a small shell script that retrieves the SHA1 for each 
of the qt projects and updates the .bb files automatically. That seems 
to work quite well, and I'm happy to share it. There's still the problem 
with downstream patches and other necessary changes in the recipes for 
new Qt versions, but that's an issue either way.



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


Re: [oe] [meta-qt5][PATCH] qt5: Update to Qt 5.11.0

2018-06-20 Thread Samuli Piippo
no, sorry, I mixed AUTOREV with something else.

On 20 June 2018 at 15:19, Martin Jansa  wrote:
> On Wed, Jun 20, 2018 at 02:57:39PM +0300, Samuli Piippo wrote:
>> On 20 June 2018 at 14:29, Martin Jansa  wrote:
>> > 3) we cannot use nobranch=1, because that breaks AUTOREV
>>
>> How does it break AUTOREV?
>> We are using nobranch=1 when testing non-released Qt versions and
>> haven't seen issues with it.
>
> And are you using AUTOREV? How is it supposed to know which branch to
> track?
>
> --
> Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-qt5][PATCH] qt5: Update to Qt 5.11.0

2018-06-20 Thread Martin Jansa
On Wed, Jun 20, 2018 at 02:57:39PM +0300, Samuli Piippo wrote:
> On 20 June 2018 at 14:29, Martin Jansa  wrote:
> > 3) we cannot use nobranch=1, because that breaks AUTOREV
> 
> How does it break AUTOREV?
> We are using nobranch=1 when testing non-released Qt versions and
> haven't seen issues with it.

And are you using AUTOREV? How is it supposed to know which branch to
track?

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


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


Re: [oe] [meta-qt5][PATCH] qt5: Update to Qt 5.11.0

2018-06-20 Thread Samuli Piippo
On 20 June 2018 at 14:29, Martin Jansa  wrote:
> 3) we cannot use nobranch=1, because that breaks AUTOREV

How does it break AUTOREV?
We are using nobranch=1 when testing non-released Qt versions and
haven't seen issues with it.
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] meta-python/python-scipy

2018-06-20 Thread Philip Balister
On 06/19/2018 03:24 PM, Maxime Roussin-Bélanger wrote:
> Has anyone been able to have some sort of a breakthrough to build
> python-scipy?
> 
> I'm trying to build python-scipy on a x86-64generic MACHINE and I reached
> math-atlas fun...
> 
> I couldn't find any math-atlas recipe... at this point I think it might be
> a lot easier to build an ISO with a preseed configuration that installs
> python-scipy for our purpose.
> 
> Has anyone worked on it and would share they work on the contrib repo?

I just spent some time working on getting it to build natively on a Pi3
successfully (failed about 85 for 3500 tests). Next step is see if I can
use the same trick numpy does to get a configuration in place so it
cross compiles.

The configure phase of the compile is completely broken for cross
compilation since it is collecting information about python from the
sysroot, which is not going to match python on the target.

I skipped atlas and built lapack. Atlas has similar issues with cross
compilation.

I'm coming back to this, but not for several weeks.

Philip



> 
> Thanks.
> Max.
> 
SUMMARY = "Linear Algebra PACKage"
URL = "http://www.netlib.org/lapack;
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=930f8aa500a47c7dab0f8efb5a1c9a40"

DEPENDS = "libgfortran"

SRC_URI = "http://www.netlib.org/lapack/lapack-${PV}.tar.gz;
SRC_URI[md5sum] = "96591affdbf58c450d45c1daa540dbd2"
SRC_URI[sha256sum] = 
"deb22cc4a6120bff72621155a9917f485f96ef8319ac074a7afbc68aab88bcf6"

EXTRA_OECMAKE = " -DBUILD_SHARED_LIBS=ON "
OECMAKE_GENERATOR = "Unix Makefiles"

inherit cmake pkgconfig

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


Re: [oe] [meta-qt5][PATCH] qt5: Update to Qt 5.11.0

2018-06-20 Thread Martin Jansa
On Wed, Jun 20, 2018 at 12:50:52PM +0200, Daniel Mack wrote:
> On Wednesday, June 20, 2018 12:36 PM, Martin Jansa wrote:
> > It's already in meta-qt5/master with couple fixes on top of that.
> 
> Ah, sorry. For some reason, I only looked into the -next branches. 

Well, meta-qt5/master-next is exactly the same as meta-qt5/master :).

> Stupid. FWIW, I have a patch for 5.11.1 ready. Will send once the build 
> succeeded.

I've started rebasing the patches in meta-qt5 as well, but we cannot use
5.11.1 until downmerge to 5.11 is finished, because:

1) we cannot use 5.11.1 branch, because they might delete this branch at
any time (like with 5.10.1)
2) we cannot use 5.11 because the tag isn't included in this branch yet
3) we cannot use nobranch=1, because that breaks AUTOREV

So like 5.9.6 upgrade from last week, I'll wait till all repositories
have the 5.11.1 tag in 5.11 branch (I'm waiting for the same with
5.10.1, because I don't like 5.10 recipes tracking 5.11 branch because
of AUTOREV as well).

Regards,

> > On Wed, Jun 20, 2018 at 12:12 PM Daniel Mack  > > wrote:
> > 
> > Hi Samuli,
> > 
> > I tried to give this patch a try but failed to find a base to apply it
> > against. Is there a public git tree that has these commits?
> > 
> > 
> > Thanks,
> > Daniel
> > 
> > On Tuesday, May 29, 2018 11:25 AM, Samuli Piippo wrote:
> >  > Add recipes for Qt OPC UA and Qt WebGL platform plugin.
> >  > ---
> >  >   recipes-qt/qt5/nativesdk-qtbase_git.bb
> >         |  7 +-
> >  >   recipes-qt/qt5/qt3d_git.bb    
> >      |  2 +-
> >  >   recipes-qt/qt5/qt5-git.inc                    |  2 +-
> >  >   recipes-qt/qt5/qtbase-native_git.bb
> >            |  3 +-
> >  >   recipes-qt/qt5/qtbase_git.bb    
> >        |  7 +-
> >  >   recipes-qt/qt5/qtcanvas3d_git.bb    
> >            |  2 +-
> >  >   recipes-qt/qt5/qtcharts_git.bb    
> >          |  2 +-
> >  >   recipes-qt/qt5/qtconnectivity_git.bb
> >           |  2 +-
> >  >   recipes-qt/qt5/qtdeclarative_git.bb
> >            |  6 +-
> >  >   recipes-qt/qt5/qtgamepad_git.bb  
> >           |  2 +-
> >  >   recipes-qt/qt5/qtgraphicaleffects_git.bb
> >       |  2 +-
> >  >   recipes-qt/qt5/qtimageformats_git.bb
> >           |  2 +-
> >  >   recipes-qt/qt5/qtknx_git.bb  
> >       |  2 +-
> >  >   recipes-qt/qt5/qtlocation_git.bb    
> >            | 10 +--
> >  >   recipes-qt/qt5/qtmultimedia_git.bb
> >             |  2 +-
> >  >   recipes-qt/qt5/qtopcua_git.bb  
> >         | 13 
> >  >   recipes-qt/qt5/qtpurchasing_git.bb
> >             |  2 +-
> >  >   recipes-qt/qt5/qtquickcontrols2_git.bb
> >         |  2 +-
> >  >   recipes-qt/qt5/qtquickcontrols_git.bb
> >          |  2 +-
> >  >   recipes-qt/qt5/qtremoteobjects_git.bb
> >          |  2 +-
> >  >   recipes-qt/qt5/qtscript_git.bb    
> >          |  2 +-
> >  >   recipes-qt/qt5/qtscxml_git.bb  
> >         |  2 +-
> >  >   recipes-qt/qt5/qtsensors_git.bb  
> >           |  2 +-
> >  >   recipes-qt/qt5/qtserialbus_git.bb  
> >             |  2 +-
> >  >   recipes-qt/qt5/qtserialport_git.bb
> >             |  7 +-
> >  >   recipes-qt/qt5/qtsvg_git.bb  
> >       |  2 +-
> >  >   recipes-qt/qt5/qttools_git.bb  
> >         |  2 +-
> >  >   recipes-qt/qt5/qtvirtualkeyboard_git.bb
> >        |  2 +-
> >  >   ...01-fix-build-without-xkbcommon-evdev.patch | 68
> > ---
> >  >   recipes-qt/qt5/qtwayland_git.bb  
> >           |  9 +--
> >  >   recipes-qt/qt5/qtwebchannel_git.bb
> >             |  2 +-
> >  >   recipes-qt/qt5/qtwebengine_git.bb  
> >             |  4 +-
> >  >   recipes-qt/qt5/qtwebglplugin_git.bb
> >            | 21 ++
> >  >   recipes-qt/qt5/qtwebsockets_git.bb
> >             |  2 +-
> >  >   recipes-qt/qt5/qtwebview_git.bb 

Re: [oe] [meta-qt5][PATCH] qt5: Update to Qt 5.11.0

2018-06-20 Thread Daniel Mack

On Wednesday, June 20, 2018 12:36 PM, Martin Jansa wrote:

It's already in meta-qt5/master with couple fixes on top of that.


Ah, sorry. For some reason, I only looked into the -next branches. 
Stupid. FWIW, I have a patch for 5.11.1 ready. Will send once the build 
succeeded.



Thanks,
Daniel




On Wed, Jun 20, 2018 at 12:12 PM Daniel Mack > wrote:


Hi Samuli,

I tried to give this patch a try but failed to find a base to apply it
against. Is there a public git tree that has these commits?


Thanks,
Daniel

On Tuesday, May 29, 2018 11:25 AM, Samuli Piippo wrote:
 > Add recipes for Qt OPC UA and Qt WebGL platform plugin.
 > ---
 >   recipes-qt/qt5/nativesdk-qtbase_git.bb
        |  7 +-
 >   recipes-qt/qt5/qt3d_git.bb    
     |  2 +-

 >   recipes-qt/qt5/qt5-git.inc                    |  2 +-
 >   recipes-qt/qt5/qtbase-native_git.bb
           |  3 +-
 >   recipes-qt/qt5/qtbase_git.bb    
       |  7 +-
 >   recipes-qt/qt5/qtcanvas3d_git.bb    
           |  2 +-
 >   recipes-qt/qt5/qtcharts_git.bb    
         |  2 +-

 >   recipes-qt/qt5/qtconnectivity_git.bb
          |  2 +-
 >   recipes-qt/qt5/qtdeclarative_git.bb
           |  6 +-
 >   recipes-qt/qt5/qtgamepad_git.bb  
          |  2 +-

 >   recipes-qt/qt5/qtgraphicaleffects_git.bb
      |  2 +-
 >   recipes-qt/qt5/qtimageformats_git.bb
          |  2 +-
 >   recipes-qt/qt5/qtknx_git.bb  
      |  2 +-
 >   recipes-qt/qt5/qtlocation_git.bb    
           | 10 +--

 >   recipes-qt/qt5/qtmultimedia_git.bb
            |  2 +-
 >   recipes-qt/qt5/qtopcua_git.bb  
        | 13 

 >   recipes-qt/qt5/qtpurchasing_git.bb
            |  2 +-
 >   recipes-qt/qt5/qtquickcontrols2_git.bb
        |  2 +-
 >   recipes-qt/qt5/qtquickcontrols_git.bb
         |  2 +-
 >   recipes-qt/qt5/qtremoteobjects_git.bb
         |  2 +-
 >   recipes-qt/qt5/qtscript_git.bb    
         |  2 +-
 >   recipes-qt/qt5/qtscxml_git.bb  
        |  2 +-
 >   recipes-qt/qt5/qtsensors_git.bb  
          |  2 +-
 >   recipes-qt/qt5/qtserialbus_git.bb  
            |  2 +-

 >   recipes-qt/qt5/qtserialport_git.bb
            |  7 +-
 >   recipes-qt/qt5/qtsvg_git.bb  
      |  2 +-
 >   recipes-qt/qt5/qttools_git.bb  
        |  2 +-

 >   recipes-qt/qt5/qtvirtualkeyboard_git.bb
       |  2 +-
 >   ...01-fix-build-without-xkbcommon-evdev.patch | 68
---
 >   recipes-qt/qt5/qtwayland_git.bb  
          |  9 +--

 >   recipes-qt/qt5/qtwebchannel_git.bb
            |  2 +-
 >   recipes-qt/qt5/qtwebengine_git.bb  
            |  4 +-

 >   recipes-qt/qt5/qtwebglplugin_git.bb
           | 21 ++
 >   recipes-qt/qt5/qtwebsockets_git.bb
            |  2 +-
 >   recipes-qt/qt5/qtwebview_git.bb  
          |  2 +-
 >   recipes-qt/qt5/qtx11extras_git.bb  
            |  2 +-

 >   recipes-qt/qt5/qtxmlpatterns_git.bb
           |  2 +-
 >   37 files changed, 84 insertions(+), 123 deletions(-)
 >   create mode 100644 recipes-qt/qt5/qtopcua_git.bb

 >   delete mode 100644
recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch
 >   create mode 100644 recipes-qt/qt5/qtwebglplugin_git.bb

 >
 > diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb

b/recipes-qt/qt5/nativesdk-qtbase_git.bb

 > index 27bd563..5971eeb 100644
 > --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb

 > +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb

 > @@ -6,7 +6,6 @@ HOMEPAGE = 

Re: [oe] [meta-qt5][PATCH] qt5: Update to Qt 5.11.0

2018-06-20 Thread Martin Jansa
It's already in meta-qt5/master with couple fixes on top of that.

On Wed, Jun 20, 2018 at 12:12 PM Daniel Mack  wrote:

> Hi Samuli,
>
> I tried to give this patch a try but failed to find a base to apply it
> against. Is there a public git tree that has these commits?
>
>
> Thanks,
> Daniel
>
> On Tuesday, May 29, 2018 11:25 AM, Samuli Piippo wrote:
> > Add recipes for Qt OPC UA and Qt WebGL platform plugin.
> > ---
> >   recipes-qt/qt5/nativesdk-qtbase_git.bb|  7 +-
> >   recipes-qt/qt5/qt3d_git.bb|  2 +-
> >   recipes-qt/qt5/qt5-git.inc|  2 +-
> >   recipes-qt/qt5/qtbase-native_git.bb   |  3 +-
> >   recipes-qt/qt5/qtbase_git.bb  |  7 +-
> >   recipes-qt/qt5/qtcanvas3d_git.bb  |  2 +-
> >   recipes-qt/qt5/qtcharts_git.bb|  2 +-
> >   recipes-qt/qt5/qtconnectivity_git.bb  |  2 +-
> >   recipes-qt/qt5/qtdeclarative_git.bb   |  6 +-
> >   recipes-qt/qt5/qtgamepad_git.bb   |  2 +-
> >   recipes-qt/qt5/qtgraphicaleffects_git.bb  |  2 +-
> >   recipes-qt/qt5/qtimageformats_git.bb  |  2 +-
> >   recipes-qt/qt5/qtknx_git.bb   |  2 +-
> >   recipes-qt/qt5/qtlocation_git.bb  | 10 +--
> >   recipes-qt/qt5/qtmultimedia_git.bb|  2 +-
> >   recipes-qt/qt5/qtopcua_git.bb | 13 
> >   recipes-qt/qt5/qtpurchasing_git.bb|  2 +-
> >   recipes-qt/qt5/qtquickcontrols2_git.bb|  2 +-
> >   recipes-qt/qt5/qtquickcontrols_git.bb |  2 +-
> >   recipes-qt/qt5/qtremoteobjects_git.bb |  2 +-
> >   recipes-qt/qt5/qtscript_git.bb|  2 +-
> >   recipes-qt/qt5/qtscxml_git.bb |  2 +-
> >   recipes-qt/qt5/qtsensors_git.bb   |  2 +-
> >   recipes-qt/qt5/qtserialbus_git.bb |  2 +-
> >   recipes-qt/qt5/qtserialport_git.bb|  7 +-
> >   recipes-qt/qt5/qtsvg_git.bb   |  2 +-
> >   recipes-qt/qt5/qttools_git.bb |  2 +-
> >   recipes-qt/qt5/qtvirtualkeyboard_git.bb   |  2 +-
> >   ...01-fix-build-without-xkbcommon-evdev.patch | 68 ---
> >   recipes-qt/qt5/qtwayland_git.bb   |  9 +--
> >   recipes-qt/qt5/qtwebchannel_git.bb|  2 +-
> >   recipes-qt/qt5/qtwebengine_git.bb |  4 +-
> >   recipes-qt/qt5/qtwebglplugin_git.bb   | 21 ++
> >   recipes-qt/qt5/qtwebsockets_git.bb|  2 +-
> >   recipes-qt/qt5/qtwebview_git.bb   |  2 +-
> >   recipes-qt/qt5/qtx11extras_git.bb |  2 +-
> >   recipes-qt/qt5/qtxmlpatterns_git.bb   |  2 +-
> >   37 files changed, 84 insertions(+), 123 deletions(-)
> >   create mode 100644 recipes-qt/qt5/qtopcua_git.bb
> >   delete mode 100644
> recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch
> >   create mode 100644 recipes-qt/qt5/qtwebglplugin_git.bb
> >
> > diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/
> nativesdk-qtbase_git.bb
> > index 27bd563..5971eeb 100644
> > --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
> > +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
> > @@ -6,7 +6,6 @@ HOMEPAGE = "http://qt-project.org;
> >   LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 &
> The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+
> | LGPL-3.0 | The-Qt-Company-Commercial )"
> >   LIC_FILES_CHKSUM = " \
> >   file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
> > -file://LICENSE.LGPLv3;md5=86d02ed8764e77c1c0b194fde895a51b \
> >   file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
> >   file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
> >   file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \
> > @@ -174,8 +173,8 @@ do_install() {
> >   install -m 644 ${WORKDIR}/OEQt5Toolchain.cmake
> ${D}${datadir}/cmake/OEToolchainConfig.cmake.d/
> >
> >   # Fix up absolute paths in scripts
> > -grep -lr /usr/bin/python ${D}${OE_QMAKE_PATH_QT_ARCHDATA}/ | \
> > -xargs -r sed -i -e '1s,#!.*python,#! ${USRBINPATH}/env python,'
> > +sed -i -e '1s,#!/usr/bin/python,#! ${USRBINPATH}/env python,' \
> > +
> ${D}${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/features/uikit/devices.py
> >   }
> >
> >   fakeroot do_generate_qt_environment_file() {
> > @@ -210,4 +209,4 @@ fakeroot do_generate_qt_environment_file() {
> >   do_generate_qt_environment_file[umask] = "022"
> >   addtask generate_qt_environment_file after do_install before do_package
> >
> > -SRCREV = "2b5587d901a0cc23749bf27a923d50bf0e5860d3"
> > +SRCREV = "6eef81ee1c82f934e14d47047d8b6103b8755321"
> > diff --git a/recipes-qt/qt5/qt3d_git.bb b/recipes-qt/qt5/qt3d_git.bb
> > index 6b5ddeb..07b28ac 100644
> > --- a/recipes-qt/qt5/qt3d_git.bb
> > +++ b/recipes-qt/qt5/qt3d_git.bb
> > @@ -36,6 +36,6 @@ do_configure_prepend() {
> >${S}/src/quick3d/imports/input/importsinput.pro
> >   }
> >
> > -SRCREV = 

Re: [oe] [meta-qt5][PATCH] qt5: Update to Qt 5.11.0

2018-06-20 Thread Daniel Mack

Hi Samuli,

I tried to give this patch a try but failed to find a base to apply it 
against. Is there a public git tree that has these commits?



Thanks,
Daniel

On Tuesday, May 29, 2018 11:25 AM, Samuli Piippo wrote:

Add recipes for Qt OPC UA and Qt WebGL platform plugin.
---
  recipes-qt/qt5/nativesdk-qtbase_git.bb|  7 +-
  recipes-qt/qt5/qt3d_git.bb|  2 +-
  recipes-qt/qt5/qt5-git.inc|  2 +-
  recipes-qt/qt5/qtbase-native_git.bb   |  3 +-
  recipes-qt/qt5/qtbase_git.bb  |  7 +-
  recipes-qt/qt5/qtcanvas3d_git.bb  |  2 +-
  recipes-qt/qt5/qtcharts_git.bb|  2 +-
  recipes-qt/qt5/qtconnectivity_git.bb  |  2 +-
  recipes-qt/qt5/qtdeclarative_git.bb   |  6 +-
  recipes-qt/qt5/qtgamepad_git.bb   |  2 +-
  recipes-qt/qt5/qtgraphicaleffects_git.bb  |  2 +-
  recipes-qt/qt5/qtimageformats_git.bb  |  2 +-
  recipes-qt/qt5/qtknx_git.bb   |  2 +-
  recipes-qt/qt5/qtlocation_git.bb  | 10 +--
  recipes-qt/qt5/qtmultimedia_git.bb|  2 +-
  recipes-qt/qt5/qtopcua_git.bb | 13 
  recipes-qt/qt5/qtpurchasing_git.bb|  2 +-
  recipes-qt/qt5/qtquickcontrols2_git.bb|  2 +-
  recipes-qt/qt5/qtquickcontrols_git.bb |  2 +-
  recipes-qt/qt5/qtremoteobjects_git.bb |  2 +-
  recipes-qt/qt5/qtscript_git.bb|  2 +-
  recipes-qt/qt5/qtscxml_git.bb |  2 +-
  recipes-qt/qt5/qtsensors_git.bb   |  2 +-
  recipes-qt/qt5/qtserialbus_git.bb |  2 +-
  recipes-qt/qt5/qtserialport_git.bb|  7 +-
  recipes-qt/qt5/qtsvg_git.bb   |  2 +-
  recipes-qt/qt5/qttools_git.bb |  2 +-
  recipes-qt/qt5/qtvirtualkeyboard_git.bb   |  2 +-
  ...01-fix-build-without-xkbcommon-evdev.patch | 68 ---
  recipes-qt/qt5/qtwayland_git.bb   |  9 +--
  recipes-qt/qt5/qtwebchannel_git.bb|  2 +-
  recipes-qt/qt5/qtwebengine_git.bb |  4 +-
  recipes-qt/qt5/qtwebglplugin_git.bb   | 21 ++
  recipes-qt/qt5/qtwebsockets_git.bb|  2 +-
  recipes-qt/qt5/qtwebview_git.bb   |  2 +-
  recipes-qt/qt5/qtx11extras_git.bb |  2 +-
  recipes-qt/qt5/qtxmlpatterns_git.bb   |  2 +-
  37 files changed, 84 insertions(+), 123 deletions(-)
  create mode 100644 recipes-qt/qt5/qtopcua_git.bb
  delete mode 100644 
recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch
  create mode 100644 recipes-qt/qt5/qtwebglplugin_git.bb

diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb 
b/recipes-qt/qt5/nativesdk-qtbase_git.bb
index 27bd563..5971eeb 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -6,7 +6,6 @@ HOMEPAGE = "http://qt-project.org;
  LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | 
The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )"
  LIC_FILES_CHKSUM = " \
  file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
-file://LICENSE.LGPLv3;md5=86d02ed8764e77c1c0b194fde895a51b \
  file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
  file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
  file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \
@@ -174,8 +173,8 @@ do_install() {
  install -m 644 ${WORKDIR}/OEQt5Toolchain.cmake 
${D}${datadir}/cmake/OEToolchainConfig.cmake.d/
  
  # Fix up absolute paths in scripts

-grep -lr /usr/bin/python ${D}${OE_QMAKE_PATH_QT_ARCHDATA}/ | \
-xargs -r sed -i -e '1s,#!.*python,#! ${USRBINPATH}/env python,'
+sed -i -e '1s,#!/usr/bin/python,#! ${USRBINPATH}/env python,' \
+${D}${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/features/uikit/devices.py
  }
  
  fakeroot do_generate_qt_environment_file() {

@@ -210,4 +209,4 @@ fakeroot do_generate_qt_environment_file() {
  do_generate_qt_environment_file[umask] = "022"
  addtask generate_qt_environment_file after do_install before do_package
  
-SRCREV = "2b5587d901a0cc23749bf27a923d50bf0e5860d3"

+SRCREV = "6eef81ee1c82f934e14d47047d8b6103b8755321"
diff --git a/recipes-qt/qt5/qt3d_git.bb b/recipes-qt/qt5/qt3d_git.bb
index 6b5ddeb..07b28ac 100644
--- a/recipes-qt/qt5/qt3d_git.bb
+++ b/recipes-qt/qt5/qt3d_git.bb
@@ -36,6 +36,6 @@ do_configure_prepend() {
   ${S}/src/quick3d/imports/input/importsinput.pro
  }
  
-SRCREV = "6d73c51d44d10925a05804cd8e70978f155643df"

+SRCREV = "15e863517ea37ca7ba6bcb75b078272eddbc5d37"
  
  BBCLASSEXTEND += "native nativesdk"

diff --git a/recipes-qt/qt5/qt5-git.inc b/recipes-qt/qt5/qt5-git.inc
index ae7394c..41ad280 100644
--- a/recipes-qt/qt5/qt5-git.inc
+++ b/recipes-qt/qt5/qt5-git.inc
@@ -14,4 +14,4 @@ CVE_PRODUCT = "qt"
  
  S = "${WORKDIR}/git"
  
-PV = "5.10.1+5.11-beta3+git${SRCPV}"

+PV = "5.11.0+git${SRCPV}"
diff --git 

Re: [oe] [meta-networking][PATCH] opensaf:Modified PACKAGECONFIG to fix the following error:

2018-06-20 Thread Lei, Maohui
Ping

> -Original Message-
> From: Lei, Maohui
> Sent: Sunday, May 27, 2018 5:55 AM
> To: openembedded-devel@lists.openembedded.org
> Cc: Lei, Maohui
> Subject: [oe] [meta-networking][PATCH] opensaf:Modified PACKAGECONFIG to fix
> the following error:
> 
> | configure: error: Package requirements (libvirt) were not met:
> |
> | No package 'libvirt' found
> 
> Signed-off-by: Lei Maohui 
> ---
>  meta-networking/recipes-daemons/opensaf/opensaf_5.18.02.bb | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/meta-networking/recipes-daemons/opensaf/opensaf_5.18.02.bb 
> b/meta-
> networking/recipes-daemons/opensaf/opensaf_5.18.02.bb
> index 4b556ce..ca0ae42 100644
> --- a/meta-networking/recipes-daemons/opensaf/opensaf_5.18.02.bb
> +++ b/meta-networking/recipes-daemons/opensaf/opensaf_5.18.02.bb
> @@ -38,9 +38,10 @@ SYSTEMD_SERVICE_${PN} += "opensafd.service"
>  SYSTEMD_AUTO_ENABLE = "disable"
> 
>  PACKAGECONFIG[systemd] = ",,systemd"
> -PACKAGECONFIG[openhpi] = "--with-hpi-interface=B03 --enable-ais-plm,,openhpi"
> +PACKAGECONFIG[openhpi] = "--with-hpi-interface=B03,,openhpi"
> +PACKAGECONFIG[plm] = "--enable-ais-plm,--disable-ais-plm,libvirt openhpi"
> 
> -PACKAGECONFIG_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '
> systemd', '', d)}"
> +PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '
> systemd', '', d)}"
> 
>  PKGLIBDIR="${libdir}"
> 
> --
> 1.9.1



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


Re: [oe] [meta-oe][PATCH] engine-pkcs11: has been merged to libp11, so deleted.

2018-06-20 Thread Lei, Maohui
Ping

> -Original Message-
> From: Lei, Maohui
> Sent: Monday, May 28, 2018 5:39 AM
> To: openembedded-devel@lists.openembedded.org
> Cc: Lei, Maohui
> Subject: [oe] [meta-oe][PATCH] engine-pkcs11: has been merged to libp11, so
> deleted.
> 
> Reference to https://github.com/OpenSC/engine_pkcs11,there is no need to
> maitain this recipe.
> 
> Signed-off-by: Lei Maohui 
> ---
>  .../engine-pkcs11/engine-pkcs11_0.2.2.bb   | 31 
> --
>  1 file changed, 31 deletions(-)
>  delete mode 100644 
> meta-oe/recipes-crypto/engine-pkcs11/engine-pkcs11_0.2.2.bb
> 
> diff --git a/meta-oe/recipes-crypto/engine-pkcs11/engine-pkcs11_0.2.2.bb
> b/meta-oe/recipes-crypto/engine-pkcs11/engine-pkcs11_0.2.2.bb
> deleted file mode 100644
> index bc79f35..000
> --- a/meta-oe/recipes-crypto/engine-pkcs11/engine-pkcs11_0.2.2.bb
> +++ /dev/null
> @@ -1,31 +0,0 @@
> -SUMMARY = "A PKCS"
> -DESCRIPTION = "\
> -Engine_pkcs11 is an implementation of an engine for OpenSSL. It can be \
> -loaded using code, config file or command line and will pass any function \
> -call by openssl to a PKCS cards and software for using smart cards in PKCS"
> -HOMEPAGE = "https://github.com/OpenSC/engine_pkcs11;
> -SECTION = "Development/Libraries"
> -LICENSE = "LGPLv2.1+"
> -LIC_FILES_CHKSUM =
> "file://src/engine_pkcs11.h;beginline=1;endline=26;md5=973a19f8a6105de047f2adfb
> bfc04c33"
> -DEPENDS = "openssl libp11"
> -
> -SRC_URI = "git://github.com/OpenSC/engine_pkcs11.git"
> -SRCREV = "132fcf2c8b319f9f4b2ebdc8dcb54ff496dc0519"
> -
> -S = "${WORKDIR}/git"
> -
> -inherit autotools pkgconfig
> -
> -EXTRA_OECONF = "\
> ---disable-static \
> ---libdir ${libdir}/engines \
> -"
> -
> -do_install_append () {
> -rm -f ${D}${libdir}/engines/libpkcs11.la
> -}
> -
> -FILES_${PN} += "${libdir}/engines/libpkcs11${SOLIBSDEV}"
> -FILES_${PN}-dbg += "${libdir}/engines/.debug/"
> -
> -RDEPENDS_${PN} += "openssl libp11 opensc"
> --
> 1.9.1



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


Re: [oe] [meta-python][PATCH] python-pytest: Fix conflict error as following:

2018-06-20 Thread Lei, Maohui
Ping

> -Original Message-
> From: Lei, Maohui
> Sent: Monday, May 28, 2018 8:34 AM
> To: openembedded-devel@lists.openembedded.org
> Cc: Lei, Maohui
> Subject: [oe] [meta-python][PATCH] python-pytest: Fix conflict error as
> following:
> 
>   file /usr/bin/py.test conflicts between attempted installs of 
> python3-pytest-
> 3.4.2-r0 and python-pytest-3.4.2-r0
>   file /usr/bin/pytest conflicts between attempted installs of python3-pytest-
> 3.4.2-r0 and python-pytest-3.4.2-r0
> 
> Signed-off-by: Lei Maohui 
> ---
>  meta-python/recipes-devtools/python/python-pytest.inc   | 10 ++
>  meta-python/recipes-devtools/python/python-pytest_3.4.2.bb  |  1 +
>  meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb |  2 ++
>  3 files changed, 13 insertions(+)
> 
> diff --git a/meta-python/recipes-devtools/python/python-pytest.inc b/meta-
> python/recipes-devtools/python/python-pytest.inc
> index 4feb9a0..4c32dfb 100644
> --- a/meta-python/recipes-devtools/python/python-pytest.inc
> +++ b/meta-python/recipes-devtools/python/python-pytest.inc
> @@ -9,6 +9,8 @@ SRC_URI[sha256sum] =
> "117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad590
>  SRC_URI_append = " file://0001-setup.py-remove-the-setup_requires-for-
> setuptools-scm.patch \
> file://pytest_version_fix.patch "
> 
> +inherit update-alternatives
> +
>  RDEPENDS_${PN}_class-target += " \
>  ${PYTHON_PN}-attrs \
>  ${PYTHON_PN}-debugger \
> @@ -22,4 +24,12 @@ RDEPENDS_${PN}_class-target += " \
> 
>  FILESEXTRAPATHS_prepend := "${THISDIR}/python-pytest:"
> 
> +ALTERNATIVE_${PN} += "py.test pytest"
> +
> +NATIVE_LINK_NAME[pytest] = "${bindir}/pytest"
> +ALTERNATIVE_TARGET[pytest] = "${bindir}/pytest"
> +
> +ALTERNATIVE_LINK_NAME[py.test] = "${bindir}/py.test"
> +ALTERNATIVE_TARGET[py.test] = "${bindir}/py.test"
> +
>  BBCLASSEXTEND = "native nativesdk"
> diff --git a/meta-python/recipes-devtools/python/python-pytest_3.4.2.bb 
> b/meta-
> python/recipes-devtools/python/python-pytest_3.4.2.bb
> index 201ab05..39e50ac 100644
> --- a/meta-python/recipes-devtools/python/python-pytest_3.4.2.bb
> +++ b/meta-python/recipes-devtools/python/python-pytest_3.4.2.bb
> @@ -6,3 +6,4 @@ RDEPENDS_${PN}_class-target += " \
>  ${PYTHON_PN}-compiler \
>  ${PYTHON_PN}-funcsigs \
>  "
> +ALTERNATIVE_PRIORITY = "10"
> diff --git a/meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb
> b/meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb
> index 466cfa8..eba6632 100644
> --- a/meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb
> +++ b/meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb
> @@ -1,2 +1,4 @@
>  inherit pypi setuptools3
>  require python-pytest.inc
> +
> +ALTERNATIVE_PRIORITY = "100"
> --
> 1.9.1



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


Re: [oe] [meta-networking][PATCH] samba:Deleted config for lsb, since this part has been deleted from samba upstream.

2018-06-20 Thread Lei, Maohui
Ping

> -Original Message-
> From: Lei, Maohui
> Sent: Sunday, May 27, 2018 5:36 AM
> To: openembedded-devel@lists.openembedded.org
> Cc: Lei, Maohui
> Subject: [oe] [meta-networking][PATCH] samba:Deleted config for lsb, since 
> this
> part has been deleted from samba upstream.
> 
> Signed-off-by: Lei Maohui 
> ---
>  .../recipes-connectivity/samba/samba_4.7.6.bb  | 25 
> --
>  1 file changed, 9 insertions(+), 16 deletions(-)
> 
> diff --git a/meta-networking/recipes-connectivity/samba/samba_4.7.6.bb b/meta-
> networking/recipes-connectivity/samba/samba_4.7.6.bb
> index a8517c5..b570e4b 100644
> --- a/meta-networking/recipes-connectivity/samba/samba_4.7.6.bb
> +++ b/meta-networking/recipes-connectivity/samba/samba_4.7.6.bb
> @@ -46,8 +46,6 @@ DEPENDS_append_libc-musl = " libtirpc"
>  CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc"
>  LDFLAGS_append_libc-musl = " -ltirpc"
> 
> -LSB = ""
> -LSB_linuxstdbase = "lsb"
> 
>  INITSCRIPT_NAME = "samba"
>  INITSCRIPT_PARAMS = "start 20 3 5 . stop 20 0 1 6 ."
> @@ -68,7 +66,6 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES',
> 'systemd zeroconf', d)}
> acl ad-dc cups gnutls ldap mitkrb5 \
>  "
> 
> -RDEPENDS_${PN}-base += "${LSB}"
>  RDEPENDS_${PN}-ctdb-tests += "bash util-linux-getopt"
> 
>  PACKAGECONFIG[acl] = "--with-acl-support,--without-acl-support,acl"
> @@ -150,19 +147,15 @@ do_install_append() {
>  install -m644 packaging/systemd/samba.conf.tmp
> ${D}${sysconfdir}/tmpfiles.d/samba.conf
>  echo "d ${localstatedir}/log/samba 0755 root root -" \
>  >> ${D}${sysconfdir}/tmpfiles.d/samba.conf
> -if [ "${LSB}" = "lsb" ]; then
> -install -d ${D}${sysconfdir}/init.d
> -install -m 0755 packaging/LSB/samba.sh ${D}${sysconfdir}/init.d/samba
> -else
> -install -d ${D}${sysconfdir}/init.d
> -install -m 0755 packaging/sysv/samba.init
> ${D}${sysconfdir}/init.d/samba
> -sed -e 's,/opt/samba/bin,${sbindir},g' \
> --e 's,/opt/samba/smb.conf,${sysconfdir}/samba/smb.conf,g' \
> --e 's,/opt/samba/log,${localstatedir}/log/samba,g' \
> --e 's,/etc/init.d/samba.server,${sysconfdir}/init.d/samba,g' \
> --e 's,/usr/bin,${base_bindir},g' \
> --i ${D}${sysconfdir}/init.d/samba
> -fi
> +
> +install -d ${D}${sysconfdir}/init.d
> +install -m 0755 packaging/sysv/samba.init ${D}${sysconfdir}/init.d/samba
> +sed -e 's,/opt/samba/bin,${sbindir},g' \
> +-e 's,/opt/samba/smb.conf,${sysconfdir}/samba/smb.conf,g' \
> +-e 's,/opt/samba/log,${localstatedir}/log/samba,g' \
> +-e 's,/etc/init.d/samba.server,${sysconfdir}/init.d/samba,g' \
> +-e 's,/usr/bin,${base_bindir},g' \
> +-i ${D}${sysconfdir}/init.d/samba
> 
>  install -d ${D}${sysconfdir}/samba
>  echo "127.0.0.1 localhost" > ${D}${sysconfdir}/samba/lmhosts
> --
> 1.9.1



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


Re: [oe] [meta-oe][PATCH] gd: Replace strncpy with memccpy to fix -Wstringop-truncation.

2018-06-20 Thread Robert Yang

Hi Khem,

On 06/20/2018 10:34 AM, Robert Yang wrote:



On 06/20/2018 10:28 AM, Khem Raj wrote:

On Tue, Jun 19, 2018 at 7:14 PM Robert Yang  wrote:


Fixed:
git/src/gdft.c:1699:2: error: 'strncpy' output truncated before terminating 
nul copying as many bytes from a string as its length 
[-Werror=stringop-truncation]


Signed-off-by: Robert Yang 
---
  ...gdft.c-Replace-strncpy-with-memccpy-to-fi.patch | 46 ++
  meta-oe/recipes-support/gd/gd_2.2.5.bb |  1 +
  2 files changed, 47 insertions(+)
  create mode 100644 
meta-oe/recipes-support/gd/gd/0001-annotate.c-gdft.c-Replace-strncpy-with-memccpy-to-fi.patch 



diff --git 
a/meta-oe/recipes-support/gd/gd/0001-annotate.c-gdft.c-Replace-strncpy-with-memccpy-to-fi.patch 
b/meta-oe/recipes-support/gd/gd/0001-annotate.c-gdft.c-Replace-strncpy-with-memccpy-to-fi.patch 


new file mode 100644
index 000..b175c44
--- /dev/null
+++ 
b/meta-oe/recipes-support/gd/gd/0001-annotate.c-gdft.c-Replace-strncpy-with-memccpy-to-fi.patch 


@@ -0,0 +1,46 @@
+From 85c7694a5cf34597909bdd1ca6931b0f99904c2e Mon Sep 17 00:00:00 2001
+From: Robert Yang 
+Date: Tue, 19 Jun 2018 00:40:49 -0700
+Subject: [PATCH] annotate.c/gdft.c: Replace strncpy with memccpy to fix
+ -Wstringop-truncation.
+
+Fixed:
+git/src/gdft.c:1699:2: error: 'strncpy' output truncated before terminating 
nul copying as many bytes from a string as its length 
[-Werror=stringop-truncation]

+
+Upstream-Status: Pending
+


could you also post this patch upstream and start a discussion?


Thanks, I will do it today.


I sent it to upstream and sent a V2:

https://github.com/libgd/libgd/pull/442

// Robert



// Robert





+Signed-off-by: Robert Yang 
+---
+ src/annotate.c | 2 +-
+ src/gdft.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/annotate.c b/src/annotate.c
+index 00aaf49..17df813 100644
+--- a/src/annotate.c
 b/src/annotate.c
+@@ -104,7 +104,7 @@ int main(int argc, char *argv[])
+   fprintf(stderr, "Font maximum length 
is 1024, %d given\n", font_len);

+   goto badLine;
+   }
+-  strncpy(font, st, font_len);
++  memcpy(font, st, font_len);
+   }
+   } else if(!strcmp(st, "align")) {
+   char *st = strtok(0, " \t\r\n");
+diff --git a/src/gdft.c b/src/gdft.c
+index 9fa8295..81dbe41 100644
+--- a/src/gdft.c
 b/src/gdft.c
+@@ -1696,7 +1696,7 @@ static char * font_path(char **fontpath, char *name_list)
+   gdFree(path);
+   return "could not alloc full list of fonts";
+   }
+-  strncpy(fontlist, name_list, name_list_len);
++  memcpy(fontlist, name_list, name_list_len);
+   fontlist[name_list_len] = 0;
+
+   /*
+--
+2.10.2
+
diff --git a/meta-oe/recipes-support/gd/gd_2.2.5.bb 
b/meta-oe/recipes-support/gd/gd_2.2.5.bb

index 63d9acf..62d0df0 100644
--- a/meta-oe/recipes-support/gd/gd_2.2.5.bb
+++ b/meta-oe/recipes-support/gd/gd_2.2.5.bb
@@ -14,6 +14,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=07384b3aa2e0d39afca0d6c40286f545"

  DEPENDS = "freetype libpng jpeg zlib tiff"

  SRC_URI = "git://github.com/libgd/libgd.git;branch=GD-2.2 \
+   
file://0001-annotate.c-gdft.c-Replace-strncpy-with-memccpy-to-fi.patch \

    "

  SRCREV = "8255231b68889597d04d451a72438ab92a405aba"
--
2.10.2

--
___
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-oe][PATCH][V2] gd: Replace strncpy with memccpy to fix -Wstringop-truncation.

2018-06-20 Thread Robert Yang
Fixed for gcc8:
git/src/gdft.c:1699:2: error: 'strncpy' output truncated before terminating nul 
copying as many bytes from a string as its length [-Werror=stringop-truncation]

Signed-off-by: Robert Yang 
---
 ...gdft.c-Replace-strncpy-with-memccpy-to-fi.patch | 46 ++
 meta-oe/recipes-support/gd/gd_2.2.5.bb |  1 +
 2 files changed, 47 insertions(+)
 create mode 100644 
meta-oe/recipes-support/gd/gd/0001-annotate.c-gdft.c-Replace-strncpy-with-memccpy-to-fi.patch

diff --git 
a/meta-oe/recipes-support/gd/gd/0001-annotate.c-gdft.c-Replace-strncpy-with-memccpy-to-fi.patch
 
b/meta-oe/recipes-support/gd/gd/0001-annotate.c-gdft.c-Replace-strncpy-with-memccpy-to-fi.patch
new file mode 100644
index 000..c377b37
--- /dev/null
+++ 
b/meta-oe/recipes-support/gd/gd/0001-annotate.c-gdft.c-Replace-strncpy-with-memccpy-to-fi.patch
@@ -0,0 +1,46 @@
+From 85c7694a5cf34597909bdd1ca6931b0f99904c2e Mon Sep 17 00:00:00 2001
+From: Robert Yang 
+Date: Tue, 19 Jun 2018 00:40:49 -0700
+Subject: [PATCH] annotate.c/gdft.c: Replace strncpy with memccpy to fix
+ -Wstringop-truncation.
+
+Fixed for gcc8:
+git/src/gdft.c:1699:2: error: 'strncpy' output truncated before terminating 
nul copying as many bytes from a string as its length 
[-Werror=stringop-truncation]
+
+Upstream-Status: Submitted [https://github.com/libgd/libgd/pull/442]
+
+Signed-off-by: Robert Yang 
+---
+ src/annotate.c | 2 +-
+ src/gdft.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/annotate.c b/src/annotate.c
+index 00aaf49..17df813 100644
+--- a/src/annotate.c
 b/src/annotate.c
+@@ -104,7 +104,7 @@ int main(int argc, char *argv[])
+   fprintf(stderr, "Font maximum length is 
1024, %d given\n", font_len);
+   goto badLine;
+   }
+-  strncpy(font, st, font_len);
++  memcpy(font, st, font_len);
+   }
+   } else if(!strcmp(st, "align")) {
+   char *st = strtok(0, " \t\r\n");
+diff --git a/src/gdft.c b/src/gdft.c
+index 9fa8295..81dbe41 100644
+--- a/src/gdft.c
 b/src/gdft.c
+@@ -1696,7 +1696,7 @@ static char * font_path(char **fontpath, char *name_list)
+   gdFree(path);
+   return "could not alloc full list of fonts";
+   }
+-  strncpy(fontlist, name_list, name_list_len);
++  memcpy(fontlist, name_list, name_list_len);
+   fontlist[name_list_len] = 0;
+ 
+   /*
+-- 
+2.10.2
+
diff --git a/meta-oe/recipes-support/gd/gd_2.2.5.bb 
b/meta-oe/recipes-support/gd/gd_2.2.5.bb
index 63d9acf..62d0df0 100644
--- a/meta-oe/recipes-support/gd/gd_2.2.5.bb
+++ b/meta-oe/recipes-support/gd/gd_2.2.5.bb
@@ -14,6 +14,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=07384b3aa2e0d39afca0d6c40286f545"
 DEPENDS = "freetype libpng jpeg zlib tiff"
 
 SRC_URI = "git://github.com/libgd/libgd.git;branch=GD-2.2 \
+   
file://0001-annotate.c-gdft.c-Replace-strncpy-with-memccpy-to-fi.patch \
   "
 
 SRCREV = "8255231b68889597d04d451a72438ab92a405aba"
-- 
2.7.4

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