[oe] [meta-oe][PATCH] rsyslog: CVE-2015-3243

2017-08-19 Thread Zhixiong Chi
rsyslog uses weak permissions for generating log files, which allows
local users to obtain sensitive information by reading files in
/var/log/cron.log

We add "create 0600 root root" to the /etc/logrotate.d/syslog file,
this will ensure the file is created with permissions when logrotate
runs. It is also recommended that users manually set the permissions
on existing or newly installed log files in order to prevent access
by untrusted users.
https://bugzilla.redhat.com/show_bug.cgi?id=1232826

CVE: CVE-2015-3243

Signed-off-by: Zhixiong Chi 
---
 meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate 
b/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate
index 94ec517..7960815 100644
--- a/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate
+++ b/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate
@@ -23,6 +23,9 @@
 /var/log/user.log
 /var/log/lpr.log
 /var/log/cron.log
+{
+create 0600 root root
+}
 /var/log/debug
 /var/log/messages
 {
-- 
1.9.1

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


Re: [oe] [meta-qt5] populate_sdk error in pyro

2017-08-19 Thread Khem Raj
On Sat, Aug 19, 2017 at 2:06 PM idealsim  wrote:

> I have resolve this issue like this thread explain, but i think this is
> not the good way :
>
> https://stackoverflow.com/a/45754078
>
> An idea ?
>

Look at the content of conflicting file and consolidate the changes into
one of the file
Delete the file from other package

>
>
> Le 19/08/2017 à 18:10, idealsim a écrit :
> > Hi all, i'm trying to build the sdk with "-c populate_sdk" but i have
> > this error at end :
> >
> > /Transaction Summary//
> >
> ////
> >
> > //Install  103 Packages//
> > //
> > //Total size: 108 M//
> > //Installed size: 310 M//
> > //Running transaction check//
> > //Transaction check succeeded.//
> > //Running transaction test//
> > //Error: Transaction check error://
> > //  file
> > /opt/poky/2.3.1/sysroots/x86_64-pokysdk-linux/environment-setup.d
> > conflicts between attempted installs of
> > nativesdk-cmake-3.7.2-r0.x86_64_nativesdk and
> > nativesdk-qtbase-tools-5.8.0+git0+49dc9aa409-r0.x86_64_nativesdk/
> >
> >
> > Complete log here :
> > https://gist.github.com/modjo756/c8a6eeebc1ab0787ee72033f09d99ac2
> >
> > Do you already meet this issue ?
> >
> > regards
> >
> >
> > Mickaël
> >
>
> --
> ___
> 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] populate_sdk error in pyro

2017-08-19 Thread idealsim
I have resolve this issue like this thread explain, but i think this is 
not the good way :


https://stackoverflow.com/a/45754078

An idea ?


Le 19/08/2017 à 18:10, idealsim a écrit :
Hi all, i'm trying to build the sdk with "-c populate_sdk" but i have 
this error at end :


/Transaction Summary//
//// 


//Install  103 Packages//
//
//Total size: 108 M//
//Installed size: 310 M//
//Running transaction check//
//Transaction check succeeded.//
//Running transaction test//
//Error: Transaction check error://
//  file 
/opt/poky/2.3.1/sysroots/x86_64-pokysdk-linux/environment-setup.d 
conflicts between attempted installs of 
nativesdk-cmake-3.7.2-r0.x86_64_nativesdk and 
nativesdk-qtbase-tools-5.8.0+git0+49dc9aa409-r0.x86_64_nativesdk/



Complete log here : 
https://gist.github.com/modjo756/c8a6eeebc1ab0787ee72033f09d99ac2


Do you already meet this issue ?

regards


Mickaël



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


Re: [oe] [meta-oe][PATCH] pcsc-lite: Update tp 1.8.22

2017-08-19 Thread Khem Raj
On Fri, Aug 18, 2017 at 2:22 AM Huang Qiyu 
wrote:

> 1) Upgrade pcsc-lite from 1.8.13 to 1.8.22.
>
> 2) License information has changed in pcsc-lite-1.8.22/COPYING, so modify
> the LIC_FILES_CHKSUM.


You should state what changed specifically

>
>
> Signed-off-by: Huang Qiyu 
> ---
>  .../pcsc-lite/{pcsc-lite_1.8.13.bb => pcsc-lite_1.8.22.bb}| 8
> 
>  1 file changed, 4 insertions(+), 4 deletions(-)
>  rename meta-oe/recipes-support/pcsc-lite/{pcsc-lite_1.8.13.bb =>
> pcsc-lite_1.8.22.bb} (82%)
>
> diff --git a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.13.bb
> b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.22.bb
> similarity index 82%
> rename from meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.13.bb
> rename to meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.22.bb
> index 0d2cb33..90d58b0 100644
> --- a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.13.bb
> +++ b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.22.bb
> @@ -8,12 +8,12 @@ LICENSE_${PN}-dev = "BSD"
>  LICENSE_${PN}-dbg = "BSD & GPLv3+"
>  LICENSE_${PN}-spy = "GPLv3+"
>  LICENSE_${PN}-spy-dev = "GPLv3+"
> -LIC_FILES_CHKSUM = "file://COPYING;md5=bcfbd85230ac3c586fb294c8b627cf32"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=f38b3d1c7ef7fc2c8b6d20cd38efdc29"
>  DEPENDS = "udev"
>
> -SRC_URI = "
> https://alioth.debian.org/frs/download.php/file/4126/pcsc-lite-${PV}.tar.bz2
> "
> -SRC_URI[md5sum] = "4dcd22d20a6df8810fac5480cc320b6d"
> -SRC_URI[sha256sum] =
> "f315047e808d63a3262c4a040f77548af2e04d1fd707e0c2759369b926fbbc3b"
> +SRC_URI = "
> https://alioth.debian.org/frs/download.php/file/4225/pcsc-lite-${PV}.tar.bz2
> "
> +SRC_URI[md5sum] = "0ec103b1ef298d0c58d6ef6b00b9cf17"
> +SRC_URI[sha256sum] =
> "6a358f61ed3b66a7f6e1f4e794a94c7be4c81b7a58ec360c33791e8d7d9bd405"
>
>
>  inherit autotools systemd pkgconfig
> --
> 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-python][PATCH 2/2] python*-pexpect: add v4.2.1

2017-08-19 Thread Tim Orling
The python2 version was dropped from oe-core.
Also add support for python3.

Signed-off-by: Tim Orling 
---
 .../recipes-devtools/python/python-pexpect.inc | 25 ++
 .../python/python-pexpect_4.2.1.bb |  2 ++
 .../python/python3-pexpect_4.2.1.bb|  2 ++
 3 files changed, 29 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-pexpect.inc
 create mode 100644 meta-python/recipes-devtools/python/python-pexpect_4.2.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-pexpect_4.2.1.bb

diff --git a/meta-python/recipes-devtools/python/python-pexpect.inc 
b/meta-python/recipes-devtools/python/python-pexpect.inc
new file mode 100644
index 0..47d09796d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-pexpect.inc
@@ -0,0 +1,25 @@
+SUMMARY = "A Pure Python Expect like Module for Python"
+HOMEPAGE = "http://pexpect.readthedocs.org/";
+SECTION = "devel/python"
+LICENSE = "ISC"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1c7a725251880af8c6a148181665385b"
+
+SRCNAME = "pexpect"
+
+SRC_URI[md5sum] = "3694410001a99dff83f0b500a1ca1c95"
+SRC_URI[sha256sum] = 
"3d132465a75b57aa818341c6521392a06cc660feb3988d7f1074f39bd23c9a92"
+
+UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/pexpect";
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+RDEPENDS_${PN} = "\
+${PYTHON_PN}-core \
+${PYTHON_PN}-io \
+${PYTHON_PN}-terminal \
+${PYTHON_PN}-resource \
+${PYTHON_PN}-fcntl \
+${PYTHON_PN}-ptyprocess \
+"
+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-devtools/python/python-pexpect_4.2.1.bb 
b/meta-python/recipes-devtools/python/python-pexpect_4.2.1.bb
new file mode 100644
index 0..1c46b47a2
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-pexpect_4.2.1.bb
@@ -0,0 +1,2 @@
+require python-pexpect.inc
+inherit pypi setuptools
diff --git a/meta-python/recipes-devtools/python/python3-pexpect_4.2.1.bb 
b/meta-python/recipes-devtools/python/python3-pexpect_4.2.1.bb
new file mode 100644
index 0..cf39233a3
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pexpect_4.2.1.bb
@@ -0,0 +1,2 @@
+require python-pexpect.inc
+inherit pypi setuptools3
-- 
2.13.5

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


[oe] [meta-python][PATCH 1/2] python*-ptyprocess: add v0.5.2

2017-08-19 Thread Tim Orling
The python2 version was dropped from oe-core.
Also add support for python3.

Signed-off-by: Tim Orling 
---
 .../recipes-devtools/python/python-ptyprocess.inc| 20 
 .../python/python-ptyprocess_0.5.2.bb|  2 ++
 .../python/python3-ptyprocess_0.5.2.bb   |  2 ++
 3 files changed, 24 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-ptyprocess.inc
 create mode 100644 
meta-python/recipes-devtools/python/python-ptyprocess_0.5.2.bb
 create mode 100644 
meta-python/recipes-devtools/python/python3-ptyprocess_0.5.2.bb

diff --git a/meta-python/recipes-devtools/python/python-ptyprocess.inc 
b/meta-python/recipes-devtools/python/python-ptyprocess.inc
new file mode 100644
index 0..43f2d094a
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-ptyprocess.inc
@@ -0,0 +1,20 @@
+SUMMARY = "Run a subprocess in a pseudo terminal"
+HOMEPAGE = "http://ptyprocess.readthedocs.io/en/latest/";
+SECTION = "devel/python"
+LICENSE = "ISC"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=cfdcd51fa7d5808da4e74346ee394490"
+
+SRCNAME = "ptyprocess"
+
+SRC_URI[md5sum] = "d3b8febae1b8c53b054bd818d0bb8665"
+SRC_URI[sha256sum] = 
"e64193f0047ad603b71f202332ab5527c5e52aa7c8b609704fc28c0dc20c4365"
+
+UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/ptyprocess";
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+RDEPENDS_${PN} = "\
+${PYTHON_PN}-core \
+"
+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-devtools/python/python-ptyprocess_0.5.2.bb 
b/meta-python/recipes-devtools/python/python-ptyprocess_0.5.2.bb
new file mode 100644
index 0..7ca458771
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-ptyprocess_0.5.2.bb
@@ -0,0 +1,2 @@
+require python-ptyprocess.inc
+inherit pypi setuptools
diff --git a/meta-python/recipes-devtools/python/python3-ptyprocess_0.5.2.bb 
b/meta-python/recipes-devtools/python/python3-ptyprocess_0.5.2.bb
new file mode 100644
index 0..bdcd0e253
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-ptyprocess_0.5.2.bb
@@ -0,0 +1,2 @@
+require python-ptyprocess.inc
+inherit pypi setuptools3
-- 
2.13.5

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


Re: [oe] [meta-qt5][PATCH] qtwebengine: disable SECURITY_STRINGFORMAT to fix the build

2017-08-19 Thread Khem Raj
On Sat, Aug 19, 2017 at 10:34 AM, Martin Jansa  wrote:
> The -Wno-format is added for whole openh264 directory (I haven't checked
> why), so at least this whole directory shouldn't use -Wformat-security or
> -Wno-format should be removed/restricted to some files from gyp files for
> 5.8 and from gn files for 5.9.

OK. I guess in this case if you added to gyp files along with -Wno-format
would be nicer but then order of SECURITY_FLAGS might be problematic
you might have to check they come before the gyp files specified flags

>
> On Sat, Aug 19, 2017 at 6:36 PM, Khem Raj  wrote:
>>
>> On Sat, Aug 19, 2017 at 3:33 AM, Martin Jansa 
>> wrote:
>> > * meta/conf/distro/include/security_flags.inc adds -Wformat and
>> >   -Wformat-security, but openh264 adds -Wno-format after that causing
>> >   build to fail
>> >
>> > Signed-off-by: Martin Jansa 
>> > ---
>> >  recipes-qt/qt5/qtwebengine_git.bb | 8 
>> >  1 file changed, 8 insertions(+)
>> >
>> > diff --git a/recipes-qt/qt5/qtwebengine_git.bb
>> > b/recipes-qt/qt5/qtwebengine_git.bb
>> > index 45b885c..830e640 100644
>> > --- a/recipes-qt/qt5/qtwebengine_git.bb
>> > +++ b/recipes-qt/qt5/qtwebengine_git.bb
>> > @@ -34,6 +34,14 @@ EXTRA_QMAKEVARS_PRE += "GYP_CONFIG+=use_system_yasm \
>> >  "
>> >  EXTRA_QMAKEVARS_CONFIGURE += "-feature-system-ninja
>> > -no-feature-system-gn"
>> >
>> > +# chromium/third_party/openh264/openh264.gyp adds
>> > +# -Wno-format to openh264_cflags_add
>> > +# similarly chromium/third_party/openh264/BUILD.gn for newer
>> > qtwebengine
>> > +# causing following error, because -Wformat-security cannot be used
>> > together with -Wno-format
>> > +# cc1plus: error: -Wformat-security ignored without -Wformat
>> > [-Werror=format-security]
>> > +# http://errors.yoctoproject.org/Errors/Details/150333/
>> > +SECURITY_STRINGFORMAT = ""
>> > +
>>
>> If its not happening in lot of files may be doing something like
>>
>>  QT_WARNING_PUSH
>>  QT_WARNING_DISABLE_GCC("-Wformat-security")
>> #ifdef __clang__
>> QT_WARNING_DISABLE_CLANG("-Wformat-security")
>> #endif
>> 
>>
>> QT_WARNING_POP
>>
>> is more targeted as it can be done per file.
>>
>> >  # To use system ffmpeg you need to enable also libwebp, opus, vpx
>> >  # Only depenedencies available in oe-core are enabled by default
>> >  PACKAGECONFIG ??= "libwebp flac libevent libxslt speex nss"
>> > --
>> > 2.14.0
>> >
>> > --
>> > ___
>> > 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][PATCH] qtwebengine: disable SECURITY_STRINGFORMAT to fix the build

2017-08-19 Thread Martin Jansa
The -Wno-format is added for whole openh264 directory (I haven't checked
why), so at least this whole directory shouldn't use -Wformat-security or
-Wno-format should be removed/restricted to some files from gyp files for
5.8 and from gn files for 5.9.

On Sat, Aug 19, 2017 at 6:36 PM, Khem Raj  wrote:

> On Sat, Aug 19, 2017 at 3:33 AM, Martin Jansa 
> wrote:
> > * meta/conf/distro/include/security_flags.inc adds -Wformat and
> >   -Wformat-security, but openh264 adds -Wno-format after that causing
> >   build to fail
> >
> > Signed-off-by: Martin Jansa 
> > ---
> >  recipes-qt/qt5/qtwebengine_git.bb | 8 
> >  1 file changed, 8 insertions(+)
> >
> > diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/
> qtwebengine_git.bb
> > index 45b885c..830e640 100644
> > --- a/recipes-qt/qt5/qtwebengine_git.bb
> > +++ b/recipes-qt/qt5/qtwebengine_git.bb
> > @@ -34,6 +34,14 @@ EXTRA_QMAKEVARS_PRE += "GYP_CONFIG+=use_system_yasm \
> >  "
> >  EXTRA_QMAKEVARS_CONFIGURE += "-feature-system-ninja
> -no-feature-system-gn"
> >
> > +# chromium/third_party/openh264/openh264.gyp adds
> > +# -Wno-format to openh264_cflags_add
> > +# similarly chromium/third_party/openh264/BUILD.gn for newer
> qtwebengine
> > +# causing following error, because -Wformat-security cannot be used
> together with -Wno-format
> > +# cc1plus: error: -Wformat-security ignored without -Wformat
> [-Werror=format-security]
> > +# http://errors.yoctoproject.org/Errors/Details/150333/
> > +SECURITY_STRINGFORMAT = ""
> > +
>
> If its not happening in lot of files may be doing something like
>
>  QT_WARNING_PUSH
>  QT_WARNING_DISABLE_GCC("-Wformat-security")
> #ifdef __clang__
> QT_WARNING_DISABLE_CLANG("-Wformat-security")
> #endif
> 
>
> QT_WARNING_POP
>
> is more targeted as it can be done per file.
>
> >  # To use system ffmpeg you need to enable also libwebp, opus, vpx
> >  # Only depenedencies available in oe-core are enabled by default
> >  PACKAGECONFIG ??= "libwebp flac libevent libxslt speex nss"
> > --
> > 2.14.0
> >
> > --
> > ___
> > 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][PATCH] qtwebengine: disable SECURITY_STRINGFORMAT to fix the build

2017-08-19 Thread Khem Raj
On Sat, Aug 19, 2017 at 3:33 AM, Martin Jansa  wrote:
> * meta/conf/distro/include/security_flags.inc adds -Wformat and
>   -Wformat-security, but openh264 adds -Wno-format after that causing
>   build to fail
>
> Signed-off-by: Martin Jansa 
> ---
>  recipes-qt/qt5/qtwebengine_git.bb | 8 
>  1 file changed, 8 insertions(+)
>
> diff --git a/recipes-qt/qt5/qtwebengine_git.bb 
> b/recipes-qt/qt5/qtwebengine_git.bb
> index 45b885c..830e640 100644
> --- a/recipes-qt/qt5/qtwebengine_git.bb
> +++ b/recipes-qt/qt5/qtwebengine_git.bb
> @@ -34,6 +34,14 @@ EXTRA_QMAKEVARS_PRE += "GYP_CONFIG+=use_system_yasm \
>  "
>  EXTRA_QMAKEVARS_CONFIGURE += "-feature-system-ninja -no-feature-system-gn"
>
> +# chromium/third_party/openh264/openh264.gyp adds
> +# -Wno-format to openh264_cflags_add
> +# similarly chromium/third_party/openh264/BUILD.gn for newer qtwebengine
> +# causing following error, because -Wformat-security cannot be used together 
> with -Wno-format
> +# cc1plus: error: -Wformat-security ignored without -Wformat 
> [-Werror=format-security]
> +# http://errors.yoctoproject.org/Errors/Details/150333/
> +SECURITY_STRINGFORMAT = ""
> +

If its not happening in lot of files may be doing something like

 QT_WARNING_PUSH
 QT_WARNING_DISABLE_GCC("-Wformat-security")
#ifdef __clang__
QT_WARNING_DISABLE_CLANG("-Wformat-security")
#endif


QT_WARNING_POP

is more targeted as it can be done per file.

>  # To use system ffmpeg you need to enable also libwebp, opus, vpx
>  # Only depenedencies available in oe-core are enabled by default
>  PACKAGECONFIG ??= "libwebp flac libevent libxslt speex nss"
> --
> 2.14.0
>
> --
> ___
> 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-qt5] populate_sdk error in pyro

2017-08-19 Thread idealsim
Hi all, i'm trying to build the sdk with "-c populate_sdk" but i have 
this error at end :


/Transaction Summary//
////
//Install  103 Packages//
//
//Total size: 108 M//
//Installed size: 310 M//
//Running transaction check//
//Transaction check succeeded.//
//Running transaction test//
//Error: Transaction check error://
//  file 
/opt/poky/2.3.1/sysroots/x86_64-pokysdk-linux/environment-setup.d 
conflicts between attempted installs of 
nativesdk-cmake-3.7.2-r0.x86_64_nativesdk and 
nativesdk-qtbase-tools-5.8.0+git0+49dc9aa409-r0.x86_64_nativesdk/



Complete log here : 
https://gist.github.com/modjo756/c8a6eeebc1ab0787ee72033f09d99ac2


Do you already meet this issue ?

regards


Mickaël

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


Re: [oe] [meta-qt5][PATCH] qtbase: fix Krogoth build regression from efa8aaf

2017-08-19 Thread Martin Jansa
Nothing from me yet, it's included in master-next for my next bitbake world
builds to test it, but first I need to resolve other issues in meta-qt5.

On Sat, Aug 19, 2017 at 2:55 PM, Matt Hoosier 
wrote:

> On Thu, Aug 17, 2017 at 7:27 AM, Matt Hoosier 
> wrote:
> >
> > From: Matt Hoosier 
> >
> > With
> >
> > commit efa8aaf82e580a7d32eaaab48eb92d436f2e222a
> > Author: Andreas Müller 
> > Date:   Thu Feb  9 00:26:09 2017
> >
> > qmake5_base.bbclass: set qt.conf by environment variable again
> >
> > we stopped pointing ${OE_QMAKE_QTCONF_PATH} at a valid file and
> > instead directed it to a path which was intended not to exist.
> >
> > The motivation was to permit qtbase/qtbase-native/nativesdk-qtbase
> > to build again after Qt 5.8 started paying attention to the
> > contents of this file.
> >
> > The change as done in efa8aaf works well enough for Morty and
> > subsequent releases' copies of Bitbake, but fails on earlier
> > releases because they lack the following change:
> >
> > commit 2afcbfef2cd1ca568e5225884a8021df38ee3db0
> > Author: Ross Burton 
> > Date: 2016-07-14 13:56:22
> >
> > bitbake: build: don't use $B as the default cwd for functions
> >
> > The result is that when we build with Krogoth or prior, the body
> > of do_generate_qt_config_file() runs with a cwd of ${B}, which was
> > _not_ the intent of efa8aaf. Because the working directory is ${B},
> > ${OE_QMAKE_QTCONF_PATH} is written in there too. do_configure() --
> > whose cwd is by design also ${B} -- then finds the file 'foodummy',
> > and the build breaks for the reasons outlined in efa8aaf.
> >
> > This change simply shifts the implementation tactics to suppress
> > the creation of ${OE_QMAKE_QTCONF_PATH} during qtbase rather than rely
> > on unspecified behavior about the cwd of do_generate_qt_config_file().
> >
> > (cherry picked from commit a17ff281aa8d99f770b0a049cb798235005fb93e
> > at https://codereview.qt-project.org/yocto/meta-qt5.)
> > ---
> >  recipes-qt/qt5/nativesdk-qtbase_git.bb | 2 +-
> >  recipes-qt/qt5/qtbase-native_git.bb| 2 +-
> >  recipes-qt/qt5/qtbase_git.bb   | 2 +-
> >  3 files changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/
> nativesdk-qtbase_git.bb
> > index f2ff5f7..ffbb917 100644
> > --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
> > +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
> > @@ -94,7 +94,7 @@ OE_QMAKE_PATH_HOST_LIBS = "${libdir}"
> >
> >  # for qtbase configuration we need default settings
> >  # since we cannot set empty set filename to a not existent file
> > -export OE_QMAKE_QTCONF_PATH = "foodummy"
> > +deltask generate_qt_config_file
> >
> >  do_configure() {
> >  ${S}/configure -v \
> > diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/
> qtbase-native_git.bb
> > index 98cbecc..0884a19 100644
> > --- a/recipes-qt/qt5/qtbase-native_git.bb
> > +++ b/recipes-qt/qt5/qtbase-native_git.bb
> > @@ -79,7 +79,7 @@ PACKAGECONFIG_CONFARGS = " \
> >
> >  # for qtbase configuration we need default settings
> >  # since we cannot set empty set filename to a not existent file
> > -export OE_QMAKE_QTCONF_PATH = "foodummy"
> > +deltask generate_qt_config_file
> >
> >  do_configure_prepend() {
> >  # Avoid qmake error "Cannot read 
> > [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri:
> No such file or directory"
> > diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
> > index 5cfbcfa..a2e8917 100644
> > --- a/recipes-qt/qt5/qtbase_git.bb
> > +++ b/recipes-qt/qt5/qtbase_git.bb
> > @@ -137,7 +137,7 @@ QT_CONFIG_FLAGS += " \
> >
> >  # for qtbase configuration we need default settings
> >  # since we cannot set empty set filename to a not existent file
> > -export OE_QMAKE_QTCONF_PATH = "foodummy"
> > +deltask generate_qt_config_file
> >
> >  do_configure() {
> >  # Avoid qmake error "Cannot read 
> > [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri:
> No such file or directory" during configuration
> > --
> > 2.12.0
> >
>
> Any comments?
>
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-qt5][WIP][PATCH] qt: upgrade to latest revision in 5.9 branch

2017-08-19 Thread Martin Jansa
* 3 patches were included upstream

Signed-off-by: Martin Jansa 
---
 recipes-qt/qt5/nativesdk-qtbase_git.bb |   6 +-
 .../qt5/qt3d/0001-Allow-a-tools-only-build.patch   |   2 +-
 ...2-Fix-BlenderDNA-for-clang-cross-compiler.patch |   2 +-
 recipes-qt/qt5/qt3d_git.bb |   4 +-
 recipes-qt/qt5/qt5-git.inc |   4 +-
 recipes-qt/qt5/qtbase-native_git.bb|   6 +-
 .../qt5/qtbase/0001-Add-linux-oe-g-platform.patch  |   6 +-
 ...make-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch |   2 +-
 ...o-allow-to-set-qt.conf-from-the-outside-u.patch |   2 +-
 ...ump-path-length-from-256-to-512-character.patch |   4 +-
 ...-unknown-features-instead-of-erroring-out.patch |   6 +-
 ...-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch |   4 +-
 .../0007-Delete-qlonglong-and-qulonglong.patch |   2 +-
 ...08-Replace-pthread_yield-with-sched_yield.patch |   4 +-
 recipes-qt/qt5/qtbase/0009-Always-build-uic.patch  |   2 +-
 recipes-qt/qt5/qtbase_git.bb   |   4 +-
 recipes-qt/qt5/qtcanvas3d_git.bb   |   2 +-
 recipes-qt/qt5/qtcharts_git.bb |   2 +-
 recipes-qt/qt5/qtconnectivity_git.bb   |   2 +-
 recipes-qt/qt5/qtdatavis3d_git.bb  |   2 +-
 recipes-qt/qt5/qtdeclarative_git.bb|   2 +-
 recipes-qt/qt5/qtenginio_git.bb|   1 -
 recipes-qt/qt5/qtgamepad_git.bb|   2 +-
 recipes-qt/qt5/qtgraphicaleffects_git.bb   |   2 +-
 recipes-qt/qt5/qtimageformats_git.bb   |   2 +-
 .../0001-Make-mapbox-gl-build-configurable.patch   |   8 +-
 recipes-qt/qt5/qtlocation_git.bb   |   6 +-
 recipes-qt/qt5/qtmultimedia_git.bb |   4 +-
 recipes-qt/qt5/qtnetworkauth_git.bb|   2 +-
 recipes-qt/qt5/qtquick1_git.bb |   2 +-
 ...fix-invalid-use-of-incomplete-type-class-.patch |   4 +-
 recipes-qt/qt5/qtquickcontrols2_git.bb |   2 +-
 recipes-qt/qt5/qtquickcontrols_git.bb  |   4 +-
 recipes-qt/qt5/qtremoteobjects_git.bb  |   4 +-
 recipes-qt/qt5/qtscript_git.bb |   2 +-
 ...Use-external-host-bin-path-for-cmake-file.patch |   4 +-
 recipes-qt/qt5/qtscxml_git.bb  |   4 +-
 recipes-qt/qt5/qtsensors_git.bb|   2 +-
 recipes-qt/qt5/qtserialbus_git.bb  |   2 +-
 recipes-qt/qt5/qtserialport_git.bb |   2 +-
 recipes-qt/qt5/qtsvg_git.bb|   2 +-
 recipes-qt/qt5/qtsystems_git.bb|   2 +-
 .../0001-add-noqtwebkit-configuration.patch|  12 +-
 ...ols-cmake-allow-overriding-the-location-f.patch |   2 +-
 recipes-qt/qt5/qttools_git.bb  |   4 +-
 recipes-qt/qt5/qttranslations_git.bb   |   2 +-
 .../0001-include-sys-time.h-for-timeval.patch  |   5 +-
 recipes-qt/qt5/qtvirtualkeyboard_git.bb|   4 +-
 .../0001-fix-build-without-xkbcommon-evdev.patch   |   2 +-
 recipes-qt/qt5/qtwayland_git.bb|   4 +-
 recipes-qt/qt5/qtwebchannel_git.bb |   2 +-
 ...ange-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch |   2 +-
 ...s.prf-allow-build-for-linux-oe-g-platform.patch |   6 +-
 ...quickwebengineview_p_p.h-add-include-QCol.patch |   4 +-
 ...romium-Force-host-toolchain-configuration.patch |   2 +-
 ...-dependency-to-QCoreApplication-translate.patch |   2 +-
 ...sl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch |   2 +-
 .../0004-Force-host-toolchain-configuration.patch  |   8 +-
 ...sl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch |   2 +-
 .../0005-Always-compile-QWebEnginePage-print.patch | 241 -
 ...-chromium-musl-include-fcntl.h-for-loff_t.patch |   2 +-
 ...sl-use-off64_t-instead-of-the-internal-__.patch |   2 +-
 ...ium-musl-linux-glibc-make-the-distinction.patch |   2 +-
 ...sl-allocator-Do-not-include-glibc_weak_sy.patch |   2 +-
 ...sl-Use-correct-member-name-__si_fields-fr.patch |   2 +-
 recipes-qt/qt5/qtwebengine_git.bb  |   9 +-
 recipes-qt/qt5/qtwebkit-examples_git.bb|   2 +-
 .../0001-qtwebkit-fix-QA-issue-bad-RPATH.patch |   2 +-
 ...ude-backtrace-API-for-non-glibc-libraries.patch |   2 +-
 .../0003-Fix-compilation-with-ICU-59.patch |  89 
 recipes-qt/qt5/qtwebkit_git.bb |   5 +-
 recipes-qt/qt5/qtwebsockets_git.bb |   2 +-
 .../0001-Add-missing-include-for-qWarning.patch|  22 --
 recipes-qt/qt5/qtwebview_git.bb|   6 +-
 recipes-qt/qt5/qtx11extras_git.bb  |   2 +-
 recipes-qt/qt5/qtxmlpatterns_git.bb|   2 +-
 76 files changed, 115 insertions(+), 477 deletions(-)
 delete mode 100644 
recipes-qt/qt5/qtwebengine/0005-Always-compile-QWebEnginePage-print.patch
 delete mode 100644 
recipes-qt/qt5/qtwebkit/0003-Fix-compilation-with-ICU-59.patch
 delete mode 100644 
recipes-qt/qt5/

[oe] [meta-qt5][PATCHv2] qt: refresh remaining patches and add links to meta-qt5 repos

2017-08-19 Thread Martin Jansa
* remove
  qtdeclarative/0001-Fix-QQmlExpression-leaking-QQmlError-objects.patch
  qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch
  which is already applied and fuzzy patch just apply the same section
  twice

* restore
  qttools/0001-add-noqtwebkit-configuration.patch
  which was removed from SRC_URI in 5.9 upgrade

* add comment with link to meta-qt5 repository where the meta-qt5 .patch
  files are maintained, include branch and tag name so that it's more
  clear from where these changes are exported (with:
  git format-patch --no-numbered --no-signature)

Signed-off-by: Martin Jansa 
---
 recipes-qt/qt5/nativesdk-qtbase_git.bb |  4 +++
 recipes-qt/qt5/qt3d_git.bb |  2 ++
 recipes-qt/qt5/qtbase-native_git.bb|  4 +++
 recipes-qt/qt5/qtbase_git.bb   |  2 ++
 ...-QQmlExpression-leaking-QQmlError-objects.patch | 35 --
 recipes-qt/qt5/qtdeclarative_git.bb|  4 ---
 recipes-qt/qt5/qtlocation_git.bb   |  2 ++
 recipes-qt/qt5/qtmultimedia_git.bb |  2 ++
 recipes-qt/qt5/qtquickcontrols_git.bb  |  2 ++
 recipes-qt/qt5/qtremoteobjects_git.bb  |  2 ++
 recipes-qt/qt5/qtscxml_git.bb  |  2 ++
 ...tch => 0001-add-noqtwebkit-configuration.patch} | 14 -
 ...ls-cmake-allow-overriding-the-location-f.patch} |  4 +--
 recipes-qt/qt5/qttools_git.bb  |  5 +++-
 recipes-qt/qt5/qtvirtualkeyboard_git.bb|  3 ++
 .../0001-fix-build-without-xkbcommon-evdev.patch   | 17 +--
 ...l-window-property-values-being-propagated.patch | 35 --
 recipes-qt/qt5/qtwayland_git.bb|  3 +-
 recipes-qt/qt5/qtwebengine_git.bb  |  2 ++
 .../0001-qtwebkit-fix-QA-issue-bad-RPATH.patch |  4 +--
 ...de-backtrace-API-for-non-glibc-libraries.patch} |  4 +--
 ...atch => 0003-Fix-compilation-with-ICU-59.patch} |  5 +---
 recipes-qt/qt5/qtwebkit_git.bb |  6 ++--
 recipes-qt/qt5/qtwebview_git.bb|  2 ++
 24 files changed, 60 insertions(+), 105 deletions(-)
 delete mode 100644 
recipes-qt/qt5/qtdeclarative/0001-Fix-QQmlExpression-leaking-QQmlError-objects.patch
 rename recipes-qt/qt5/qttools/{0003-add-noqtwebkit-configuration.patch => 
0001-add-noqtwebkit-configuration.patch} (80%)
 rename 
recipes-qt/qt5/qttools/{0004-linguist-tools-cmake-allow-overriding-the-location-f.patch
 => 0002-linguist-tools-cmake-allow-overriding-the-location-f.patch} (95%)
 delete mode 100644 
recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch
 rename 
recipes-qt/qt5/qtwebkit/{0003-Exclude-backtrace-API-for-non-glibc-libraries.patch
 => 0002-Exclude-backtrace-API-for-non-glibc-libraries.patch} (93%)
 rename recipes-qt/qt5/qtwebkit/{0004-Fix-compilation-with-ICU-59.patch => 
0003-Fix-compilation-with-ICU-59.patch} (98%)

diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb 
b/recipes-qt/qt5/nativesdk-qtbase_git.bb
index e1b30c9..d229c21 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -25,6 +25,8 @@ require qt5-git.inc
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"
 
 # common for qtbase-native, qtbase-nativesdk and qtbase
+# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9-shared
+# 5.9.meta-qt5-shared.1
 SRC_URI += "\
 file://0001-Add-linux-oe-g-platform.patch \
 file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \
@@ -37,6 +39,8 @@ SRC_URI += "\
 "
 
 # common for qtbase-native and nativesdk-qtbase
+# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9-native
+# 5.9.meta-qt5-native.1
 SRC_URI += " \
 file://0009-Always-build-uic.patch \
 "
diff --git a/recipes-qt/qt5/qt3d_git.bb b/recipes-qt/qt5/qt3d_git.bb
index 41b5fbc..4226bac 100644
--- a/recipes-qt/qt5/qt3d_git.bb
+++ b/recipes-qt/qt5/qt3d_git.bb
@@ -11,6 +11,8 @@ LIC_FILES_CHKSUM = " \
 DEPENDS += "qtbase"
 DEPENDS_class-target += "qtdeclarative qt3d-native"
 
+# Patches from https://github.com/meta-qt5/qt3d/commits/b5.9
+# 5.9.meta-qt5.1
 SRC_URI += " \
 file://0001-Allow-a-tools-only-build.patch \
 file://0002-Fix-BlenderDNA-for-clang-cross-compiler.patch \
diff --git a/recipes-qt/qt5/qtbase-native_git.bb 
b/recipes-qt/qt5/qtbase-native_git.bb
index 84cb2b0..336df95 100644
--- a/recipes-qt/qt5/qtbase-native_git.bb
+++ b/recipes-qt/qt5/qtbase-native_git.bb
@@ -20,6 +20,8 @@ require qt5-native.inc
 require qt5-git.inc
 
 # common for qtbase-native, qtbase-nativesdk and qtbase
+# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9-shared
+# 5.9.meta-qt5-shared.1
 SRC_URI += "\
 file://0001-Add-linux-oe-g-platform.patch \
 file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \
@@ -32,6 +34,8 @@ SRC_URI += "\
 "
 
 # common for qtbase-native and nativesdk-qtbase
+# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9

[oe] [meta-qt5][PATCHv2] qtbase: disable gold to work around binutils bug

2017-08-19 Thread Martin Jansa
Signed-off-by: Martin Jansa 
---
 recipes-qt/qt5/qtbase_git.bb | 24 +++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 8cd23a0..804a604 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -41,6 +41,27 @@ SRC_URI += "\
 # for syncqt
 RDEPENDS_${PN}-tools += "perl"
 
+# workaround for gold bug:
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842304
+# https://sourceware.org/bugzilla/show_bug.cgi?id=21712
+# it's triggered only in combination of gold and security_flags.inc,
+# because security_flags.inc now enable pie by default.
+# Adding -no-pie or changing -fuse-ld=gold to -fuse-ld=bfd
+# works around this issue, will use -fuse-ld=bfd as it's considered
+# binutils bug.
+# OE @ 
~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/tests/auto/corelib/kernel/qmetatype
 $ i586-oe-linux-g++  -m32 -march=i586 
--sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot
 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed 
--sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot
 -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -o tst_qmetatype 
.obj/tst_qmetatype.o   
-L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/lib
 -lQt5Test -lQt5Core -lpthread
+# .obj/tst_qmetatype.o(.qtversion+0x0): error: unexpected reloc 3 against 
global symbol qt_version_tag without base register in object file when 
generating a position-independent output file
+# collect2: error: ld returned 1 exit status
+#
+# with -no-pie:
+# OE @ 
~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/tests/auto/corelib/kernel/qmetatype
 $ i586-oe-linux-g++ -no-pie -m32 -march=i586 
--sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot
 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed 
--sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot
 -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -o tst_qmetatype 
.obj/tst_qmetatype.o   
-L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/lib
 -lQt5Test -lQt5Core -lpthread
+#
+# with -fuse-ld=gold replaced with -fuse-ld=bfd:
+# OE @ 
~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/tests/auto/corelib/kernel/qmetatype
 $ i586-oe-linux-g++  -m32 -march=i586 
--sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot
 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed 
--sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot
 -Wl,-O1 -fuse-ld=bfd -Wl,--enable-new-dtags -o tst_qmetatype 
.obj/tst_qmetatype.o   
-L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/lib
 -lQt5Test -lQt5Core -lpthread
+#
+# http://errors.yoctoproject.org/Errors/Details/150329/
+QT_CONFIG_FLAGS_GOLD_x86 = "-no-use-gold-linker"
+
 # separate some parts of PACKAGECONFIG which are often changed
 PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', 
'', d)}"
 PACKAGECONFIG_FB ?= "${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 
'directfb', '', d)}"
@@ -129,8 +150,9 @@ PACKAGECONFIG[libproxy] = "-libproxy,-no-libproxy,libproxy"
 PACKAGECONFIG[libinput] = "-libinput,-no-libinput,libinput"
 PACKAGECONFIG[journald] = "-journald,-no-journald,systemd"
 
+QT_CONFIG_FLAGS_GOLD = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 
'-use-gold-linker', '-no-use-gold-linker', d)}"
 QT_CONFIG_FLAGS += " \
-${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-use-gold-linker', 
'-no-use-gold-linker', d)} \
+${QT_CONFIG_FLAGS_GOLD} \
 -shared \
 -silent \
 -no-pch \
-- 
2.14.0

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


[oe] [meta-qt5][PATCH] qt: refresh remaining patches and add links to meta-qt5 repos

2017-08-19 Thread Martin Jansa
* remove
  qtdeclarative/0001-Fix-QQmlExpression-leaking-QQmlError-objects.patch
  qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch
  which is already applied and fuzzy patch just apply the same section
  twice

* restore
  qttools/0001-add-noqtwebkit-configuration.patch
  which was removed from SRC_URI in 5.9 upgrade

* add comment with link to meta-qt5 repository where the meta-qt5 .patch
  files are maintained, include branch and tag name so that it's more
  clear from where these changes are exported (with:
  git format-patch --no-numbered --no-signature)

Signed-off-by: Martin Jansa 
---
 recipes-qt/qt5/nativesdk-qtbase_git.bb |  4 +++
 recipes-qt/qt5/qt3d_git.bb |  2 ++
 recipes-qt/qt5/qtbase-native_git.bb|  4 +++
 recipes-qt/qt5/qtbase_git.bb   |  2 ++
 ...-QQmlExpression-leaking-QQmlError-objects.patch | 35 --
 recipes-qt/qt5/qtdeclarative_git.bb|  4 ---
 recipes-qt/qt5/qtlocation_git.bb   |  2 ++
 recipes-qt/qt5/qtmultimedia_git.bb |  2 ++
 recipes-qt/qt5/qtquickcontrols_git.bb  |  2 ++
 recipes-qt/qt5/qtremoteobjects_git.bb  |  2 ++
 recipes-qt/qt5/qtscxml_git.bb  |  2 ++
 ...tch => 0001-add-noqtwebkit-configuration.patch} | 14 -
 ...ls-cmake-allow-overriding-the-location-f.patch} |  4 +--
 recipes-qt/qt5/qttools_git.bb  |  5 +++-
 recipes-qt/qt5/qtvirtualkeyboard_git.bb|  3 ++
 .../0001-fix-build-without-xkbcommon-evdev.patch   | 17 +--
 ...l-window-property-values-being-propagated.patch | 35 --
 recipes-qt/qt5/qtwayland_git.bb|  3 +-
 recipes-qt/qt5/qtwebengine_git.bb  |  2 ++
 .../0001-qtwebkit-fix-QA-issue-bad-RPATH.patch |  4 +--
 ...de-backtrace-API-for-non-glibc-libraries.patch} |  4 +--
 ...atch => 0003-Fix-compilation-with-ICU-59.patch} |  5 +---
 recipes-qt/qt5/qtwebkit_git.bb |  2 ++
 recipes-qt/qt5/qtwebview_git.bb|  2 ++
 24 files changed, 58 insertions(+), 103 deletions(-)
 delete mode 100644 
recipes-qt/qt5/qtdeclarative/0001-Fix-QQmlExpression-leaking-QQmlError-objects.patch
 rename recipes-qt/qt5/qttools/{0003-add-noqtwebkit-configuration.patch => 
0001-add-noqtwebkit-configuration.patch} (80%)
 rename 
recipes-qt/qt5/qttools/{0004-linguist-tools-cmake-allow-overriding-the-location-f.patch
 => 0002-linguist-tools-cmake-allow-overriding-the-location-f.patch} (95%)
 delete mode 100644 
recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch
 rename 
recipes-qt/qt5/qtwebkit/{0003-Exclude-backtrace-API-for-non-glibc-libraries.patch
 => 0002-Exclude-backtrace-API-for-non-glibc-libraries.patch} (93%)
 rename recipes-qt/qt5/qtwebkit/{0004-Fix-compilation-with-ICU-59.patch => 
0003-Fix-compilation-with-ICU-59.patch} (98%)

diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb 
b/recipes-qt/qt5/nativesdk-qtbase_git.bb
index e1b30c9..d229c21 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -25,6 +25,8 @@ require qt5-git.inc
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"
 
 # common for qtbase-native, qtbase-nativesdk and qtbase
+# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9-shared
+# 5.9.meta-qt5-shared.1
 SRC_URI += "\
 file://0001-Add-linux-oe-g-platform.patch \
 file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \
@@ -37,6 +39,8 @@ SRC_URI += "\
 "
 
 # common for qtbase-native and nativesdk-qtbase
+# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9-native
+# 5.9.meta-qt5-native.1
 SRC_URI += " \
 file://0009-Always-build-uic.patch \
 "
diff --git a/recipes-qt/qt5/qt3d_git.bb b/recipes-qt/qt5/qt3d_git.bb
index 41b5fbc..4226bac 100644
--- a/recipes-qt/qt5/qt3d_git.bb
+++ b/recipes-qt/qt5/qt3d_git.bb
@@ -11,6 +11,8 @@ LIC_FILES_CHKSUM = " \
 DEPENDS += "qtbase"
 DEPENDS_class-target += "qtdeclarative qt3d-native"
 
+# Patches from https://github.com/meta-qt5/qt3d/commits/b5.9
+# 5.9.meta-qt5.1
 SRC_URI += " \
 file://0001-Allow-a-tools-only-build.patch \
 file://0002-Fix-BlenderDNA-for-clang-cross-compiler.patch \
diff --git a/recipes-qt/qt5/qtbase-native_git.bb 
b/recipes-qt/qt5/qtbase-native_git.bb
index 84cb2b0..336df95 100644
--- a/recipes-qt/qt5/qtbase-native_git.bb
+++ b/recipes-qt/qt5/qtbase-native_git.bb
@@ -20,6 +20,8 @@ require qt5-native.inc
 require qt5-git.inc
 
 # common for qtbase-native, qtbase-nativesdk and qtbase
+# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9-shared
+# 5.9.meta-qt5-shared.1
 SRC_URI += "\
 file://0001-Add-linux-oe-g-platform.patch \
 file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \
@@ -32,6 +34,8 @@ SRC_URI += "\
 "
 
 # common for qtbase-native and nativesdk-qtbase
+# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9-n

[oe] [meta-qt5][PATCH] qtbase: disable gold to work around binutils bug

2017-08-19 Thread Martin Jansa
Signed-off-by: Martin Jansa 
---
 recipes-qt/qt5/qtbase_git.bb | 22 ++
 1 file changed, 22 insertions(+)

diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 8cd23a0..ada8004 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -41,6 +41,28 @@ SRC_URI += "\
 # for syncqt
 RDEPENDS_${PN}-tools += "perl"
 
+# workaround for gold bug:
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842304
+# https://sourceware.org/bugzilla/show_bug.cgi?id=21712
+# it's triggered only in combination of gold and security_flags.inc,
+# because security_flags.inc now enable pie by default.
+# Adding -no-pie or changing -fuse-ld=gold to -fuse-ld=bfd
+# works around this issue, will use -fuse-ld=bfd as it's considered
+# binutils bug.
+# OE @ 
~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/tests/auto/corelib/kernel/qmetatype
 $ i586-oe-linux-g++  -m32 -march=i586 
--sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot
 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed 
--sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot
 -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -o tst_qmetatype 
.obj/tst_qmetatype.o   
-L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/lib
 -lQt5Test -lQt5Core -lpthread
+# .obj/tst_qmetatype.o(.qtversion+0x0): error: unexpected reloc 3 against 
global symbol qt_version_tag without base register in object file when 
generating a position-independent output file
+# collect2: error: ld returned 1 exit status
+#
+# with -no-pie:
+# OE @ 
~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/tests/auto/corelib/kernel/qmetatype
 $ i586-oe-linux-g++ -no-pie -m32 -march=i586 
--sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot
 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed 
--sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot
 -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -o tst_qmetatype 
.obj/tst_qmetatype.o   
-L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/lib
 -lQt5Test -lQt5Core -lpthread
+#
+# with -fuse-ld=gold replaced with -fuse-ld=bfd:
+# OE @ 
~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/tests/auto/corelib/kernel/qmetatype
 $ i586-oe-linux-g++  -m32 -march=i586 
--sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot
 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed 
--sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot
 -Wl,-O1 -fuse-ld=bfd -Wl,--enable-new-dtags -o tst_qmetatype 
.obj/tst_qmetatype.o   
-L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/lib
 -lQt5Test -lQt5Core -lpthread
+#
+# http://errors.yoctoproject.org/Errors/Details/150329/
+LDFLAGS_append_x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' 
-fuse-ld=bfd ', '', d)}"
+LDFLAGS_remove_x86 = "-fuse-ld=gold"
+
 # separate some parts of PACKAGECONFIG which are often changed
 PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', 
'', d)}"
 PACKAGECONFIG_FB ?= "${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 
'directfb', '', d)}"
-- 
2.14.0

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


Re: [oe] [meta-qt5][PATCH] qtbase: fix Krogoth build regression from efa8aaf

2017-08-19 Thread Matt Hoosier
On Thu, Aug 17, 2017 at 7:27 AM, Matt Hoosier  wrote:
>
> From: Matt Hoosier 
>
> With
>
> commit efa8aaf82e580a7d32eaaab48eb92d436f2e222a
> Author: Andreas Müller 
> Date:   Thu Feb  9 00:26:09 2017
>
> qmake5_base.bbclass: set qt.conf by environment variable again
>
> we stopped pointing ${OE_QMAKE_QTCONF_PATH} at a valid file and
> instead directed it to a path which was intended not to exist.
>
> The motivation was to permit qtbase/qtbase-native/nativesdk-qtbase
> to build again after Qt 5.8 started paying attention to the
> contents of this file.
>
> The change as done in efa8aaf works well enough for Morty and
> subsequent releases' copies of Bitbake, but fails on earlier
> releases because they lack the following change:
>
> commit 2afcbfef2cd1ca568e5225884a8021df38ee3db0
> Author: Ross Burton 
> Date: 2016-07-14 13:56:22
>
> bitbake: build: don't use $B as the default cwd for functions
>
> The result is that when we build with Krogoth or prior, the body
> of do_generate_qt_config_file() runs with a cwd of ${B}, which was
> _not_ the intent of efa8aaf. Because the working directory is ${B},
> ${OE_QMAKE_QTCONF_PATH} is written in there too. do_configure() --
> whose cwd is by design also ${B} -- then finds the file 'foodummy',
> and the build breaks for the reasons outlined in efa8aaf.
>
> This change simply shifts the implementation tactics to suppress
> the creation of ${OE_QMAKE_QTCONF_PATH} during qtbase rather than rely
> on unspecified behavior about the cwd of do_generate_qt_config_file().
>
> (cherry picked from commit a17ff281aa8d99f770b0a049cb798235005fb93e
> at https://codereview.qt-project.org/yocto/meta-qt5.)
> ---
>  recipes-qt/qt5/nativesdk-qtbase_git.bb | 2 +-
>  recipes-qt/qt5/qtbase-native_git.bb| 2 +-
>  recipes-qt/qt5/qtbase_git.bb   | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb 
> b/recipes-qt/qt5/nativesdk-qtbase_git.bb
> index f2ff5f7..ffbb917 100644
> --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
> +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
> @@ -94,7 +94,7 @@ OE_QMAKE_PATH_HOST_LIBS = "${libdir}"
>
>  # for qtbase configuration we need default settings
>  # since we cannot set empty set filename to a not existent file
> -export OE_QMAKE_QTCONF_PATH = "foodummy"
> +deltask generate_qt_config_file
>
>  do_configure() {
>  ${S}/configure -v \
> diff --git a/recipes-qt/qt5/qtbase-native_git.bb 
> b/recipes-qt/qt5/qtbase-native_git.bb
> index 98cbecc..0884a19 100644
> --- a/recipes-qt/qt5/qtbase-native_git.bb
> +++ b/recipes-qt/qt5/qtbase-native_git.bb
> @@ -79,7 +79,7 @@ PACKAGECONFIG_CONFARGS = " \
>
>  # for qtbase configuration we need default settings
>  # since we cannot set empty set filename to a not existent file
> -export OE_QMAKE_QTCONF_PATH = "foodummy"
> +deltask generate_qt_config_file
>
>  do_configure_prepend() {
>  # Avoid qmake error "Cannot read 
> [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory"
> diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
> index 5cfbcfa..a2e8917 100644
> --- a/recipes-qt/qt5/qtbase_git.bb
> +++ b/recipes-qt/qt5/qtbase_git.bb
> @@ -137,7 +137,7 @@ QT_CONFIG_FLAGS += " \
>
>  # for qtbase configuration we need default settings
>  # since we cannot set empty set filename to a not existent file
> -export OE_QMAKE_QTCONF_PATH = "foodummy"
> +deltask generate_qt_config_file
>
>  do_configure() {
>  # Avoid qmake error "Cannot read 
> [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" 
> during configuration
> --
> 2.12.0
>

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


[oe] [meta-qt5][PATCH] qtwebengine: disable SECURITY_STRINGFORMAT to fix the build

2017-08-19 Thread Martin Jansa
* meta/conf/distro/include/security_flags.inc adds -Wformat and
  -Wformat-security, but openh264 adds -Wno-format after that causing
  build to fail

Signed-off-by: Martin Jansa 
---
 recipes-qt/qt5/qtwebengine_git.bb | 8 
 1 file changed, 8 insertions(+)

diff --git a/recipes-qt/qt5/qtwebengine_git.bb 
b/recipes-qt/qt5/qtwebengine_git.bb
index 45b885c..830e640 100644
--- a/recipes-qt/qt5/qtwebengine_git.bb
+++ b/recipes-qt/qt5/qtwebengine_git.bb
@@ -34,6 +34,14 @@ EXTRA_QMAKEVARS_PRE += "GYP_CONFIG+=use_system_yasm \
 "
 EXTRA_QMAKEVARS_CONFIGURE += "-feature-system-ninja -no-feature-system-gn"
 
+# chromium/third_party/openh264/openh264.gyp adds
+# -Wno-format to openh264_cflags_add
+# similarly chromium/third_party/openh264/BUILD.gn for newer qtwebengine
+# causing following error, because -Wformat-security cannot be used together 
with -Wno-format
+# cc1plus: error: -Wformat-security ignored without -Wformat 
[-Werror=format-security]
+# http://errors.yoctoproject.org/Errors/Details/150333/
+SECURITY_STRINGFORMAT = ""
+
 # To use system ffmpeg you need to enable also libwebp, opus, vpx  

 # Only depenedencies available in oe-core are enabled by default
 PACKAGECONFIG ??= "libwebp flac libevent libxslt speex nss"
-- 
2.14.0

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


[oe] [meta-qt5][PATCH 2/2] qtwebengine: add a fix for building demobrowser without printing support

2017-08-19 Thread Martin Jansa
Signed-off-by: Martin Jansa 
---
 .../0005-Always-compile-QWebEnginePage-print.patch | 241 +
 recipes-qt/qt5/qtwebengine_git.bb  |   6 +
 2 files changed, 247 insertions(+)
 create mode 100644 
recipes-qt/qt5/qtwebengine/0005-Always-compile-QWebEnginePage-print.patch

diff --git 
a/recipes-qt/qt5/qtwebengine/0005-Always-compile-QWebEnginePage-print.patch 
b/recipes-qt/qt5/qtwebengine/0005-Always-compile-QWebEnginePage-print.patch
new file mode 100644
index 000..c63086d
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0005-Always-compile-QWebEnginePage-print.patch
@@ -0,0 +1,241 @@
+From a8c0deca850ca519b3f146c71492a8f42a33dd84 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=BCri=20Valdmann?= 
+Date: Tue, 20 Jun 2017 15:36:43 +0200
+Subject: [PATCH] Always compile QWebEnginePage::print
+
+- Remove two out of five layers of ifdefs around and inside this method.
+- Now always compiled but will yield an error if printing is disabled.
+- Remove printing-related ifdefs from demobrowser.
+
+Task-number: QTBUG-61510
+Change-Id: I79781189d3d3fb62db0a2216b2b989e3fa1d1f86
+Reviewed-by: Allan Sandfeld Jensen 
+Reviewed-by: Rolf Eike Beer 
+---
+ examples/webenginewidgets/demobrowser/browsermainwindow.cpp | 12 
+ examples/webenginewidgets/demobrowser/browsermainwindow.h   |  6 --
+ examples/webenginewidgets/demobrowser/printtopdfdialog.cpp  |  7 ---
+ src/webenginewidgets/api/qwebenginepage.cpp | 10 ++
+ src/webenginewidgets/api/qwebenginepage.h   |  8 
+ 5 files changed, 2 insertions(+), 41 deletions(-)
+
+diff --git a/examples/webenginewidgets/demobrowser/browsermainwindow.cpp 
b/examples/webenginewidgets/demobrowser/browsermainwindow.cpp
+index 327d7a9d..14d49f7f 100644
+--- a/examples/webenginewidgets/demobrowser/browsermainwindow.cpp
 b/examples/webenginewidgets/demobrowser/browsermainwindow.cpp
+@@ -109,9 +109,7 @@ BrowserMainWindow::BrowserMainWindow(QWidget *parent, 
Qt::WindowFlags flags)
+ , m_historyForward(0)
+ , m_stop(0)
+ , m_reload(0)
+-#ifndef QT_NO_PRINTER
+ , m_currentPrinter(nullptr)
+-#endif
+ {
+ setToolButtonStyle(Qt::ToolButtonFollowStyle);
+ setAttribute(Qt::WA_DeleteOnClose, true);
+@@ -312,9 +310,7 @@ void BrowserMainWindow::setupMenu()
+ #if defined(QWEBENGINEPAGE_PRINT)
+ fileMenu->addAction(tr("P&rint Preview..."), this, 
SLOT(slotFilePrintPreview()));
+ #endif
+-#ifndef QT_NO_PRINTER
+ fileMenu->addAction(tr("&Print..."), this, SLOT(slotFilePrint()), 
QKeySequence::Print);
+-#endif
+ fileMenu->addAction(tr("&Print to PDF..."), this, 
SLOT(slotFilePrintToPDF()));
+ fileMenu->addSeparator();
+ 
+@@ -702,23 +698,19 @@ void BrowserMainWindow::slotFileOpen()
+ 
+ void BrowserMainWindow::slotFilePrintPreview()
+ {
+-#ifndef QT_NO_PRINTPREVIEWDIALOG
+ if (!currentTab())
+ return;
+ QPrintPreviewDialog *dialog = new QPrintPreviewDialog(this);
+ connect(dialog, SIGNAL(paintRequested(QPrinter*)),
+ currentTab(), SLOT(print(QPrinter*)));
+ dialog->exec();
+-#endif
+ }
+ 
+ void BrowserMainWindow::slotFilePrint()
+ {
+-#ifndef QT_NO_PRINTER
+ if (!currentTab())
+ return;
+ printRequested(currentTab()->page());
+-#endif
+ }
+ 
+ void BrowserMainWindow::slotHandlePdfPrinted(const QByteArray& result)
+@@ -751,7 +743,6 @@ void BrowserMainWindow::slotFilePrintToPDF()
+ currentTab()->page()->printToPdf(invoke(this, 
&BrowserMainWindow::slotHandlePdfPrinted), dialog->pageLayout());
+ }
+ 
+-#ifndef QT_NO_PRINTER
+ void BrowserMainWindow::slotHandlePagePrinted(bool result)
+ {
+ Q_UNUSED(result);
+@@ -763,7 +754,6 @@ void BrowserMainWindow::slotHandlePagePrinted(bool result)
+ 
+ void BrowserMainWindow::printRequested(QWebEnginePage *page)
+ {
+-#ifndef QT_NO_PRINTDIALOG
+ if (m_currentPrinter)
+ return;
+ m_currentPrinter = new QPrinter();
+@@ -774,9 +764,7 @@ void BrowserMainWindow::printRequested(QWebEnginePage 
*page)
+ return;
+ }
+ page->print(m_currentPrinter, invoke(this, 
&BrowserMainWindow::slotHandlePagePrinted));
+-#endif
+ }
+-#endif
+ 
+ void BrowserMainWindow::slotPrivateBrowsing()
+ {
+diff --git a/examples/webenginewidgets/demobrowser/browsermainwindow.h 
b/examples/webenginewidgets/demobrowser/browsermainwindow.h
+index 91e1c1d2..5292 100644
+--- a/examples/webenginewidgets/demobrowser/browsermainwindow.h
 b/examples/webenginewidgets/demobrowser/browsermainwindow.h
+@@ -56,9 +56,7 @@
+ #include 
+ 
+ QT_BEGIN_NAMESPACE
+-#ifndef QT_NO_PRINTER
+ class QPrinter;
+-#endif
+ class QWebEnginePage;
+ QT_END_NAMESPACE
+ 
+@@ -142,10 +140,8 @@ private slots:
+ void slotSwapFocus();
+ void slotHandlePdfPrinted(const QByteArray&);
+ 
+-#ifndef QT_NO_PRINTER
+ void slotHandlePagePrinted(bool result);
+ void printRequested(QWebEnginePage *page);
+-#endif
+ void geometryChangeRequested(const QRect &geometry);
+ void updateToolbarAction

Re: [oe] [php5.6.26]error during build

2017-08-19 Thread idealsim
Thanks for this. For information i tested to build php5 because i have 
an issue when i try to build php7 in pyro !*

*

But,  Khem Ra give me the solution (for php 5 and 7) :

http://git.openembedded.org/meta-openembedded/commit/?id=6cd249225ecdd0a4592afe1844541378acae6cea


Regards,

Le 18/08/2017 à 21:26, Slater, Joseph a écrit :

There is a patch on master, 6cd2492, that you can cherry-pick.  It addresses 
more than just this issue, though.

Joe


From: openembedded-devel-boun...@lists.openembedded.org 
[openembedded-devel-boun...@lists.openembedded.org] on behalf of Randy MacLeod 
[randy.macl...@windriver.com]
Sent: Friday, August 18, 2017 11:15 AM
To: idealsim; openembedded-devel@lists.openembedded.org
Subject: Re: [oe] [php5.6.26]error during build

On 2017-08-17 06:32 AM, idealsim wrote:

Hi try to build an image with php5.6.26 in pyro branch. I have this
error during the build :

/| ERROR: oe_runmake failed//
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/usr/lib/../lib/libc-client.a(osdep.o):
In function `ssl_onceonlyinit'://
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/uw-imap/2007f-r0/imap-2007f/c-client/osdep.c:302:
warning: the use of `tmpnam' is dangerous, better use `mkstemp'//
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/ld:
TSRM/.libs/TSRM.o: undefined reference to symbol
'pthread_getspecific@@GLIBC_2.4'//
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/lib/libpthread.so.0:
error adding symbols: DSO missing from command line//
//| collect2: error: ld returned 1 exit status//
//| Makefile:270: recipe for target 'sapi/cli/php' failed//
//| make: *** [sapi/cli/php] Error 1//
//| make: *** Waiting for unfinished jobs//
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/usr/lib/../lib/libc-client.a(osdep.o):
In function `ssl_onceonlyinit'://
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/uw-imap/2007f-r0/imap-2007f/c-client/osdep.c:302:
warning: the use of `tmpnam' is dangerous, better use `mkstemp'//
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/ld:
TSRM/.libs/TSRM.o: undefined reference to symbol
'pthread_getspecific@@GLIBC_2.4'//
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/lib/libpthread.so.0:
error adding symbols: DSO missing from command line//
//| collect2: error: ld returned 1 exit status//
//| Makefile:306: recipe for target 'sapi/cgi/php-cgi' failed//
//| make: *** [sapi/cgi/php-cgi] Error 1//
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/usr/lib/../lib/libc-client.a(osdep.o):
In function `ssl_onceonlyinit'://
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/uw-imap/2007f-r0/imap-2007f/c-client/osdep.c:302:
warning: the use of `tmpnam' is dangerous, better use `mkstemp'//
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/ld:
TSRM/.libs/TSRM.o: undefined reference to symbol
'pthread_getspecific@@GLIBC_2.4'//
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/lib/libpthread.so.0:
error adding symbols: DSO missing from command line//
//| collect2: error: ld returned 1 exit status//
//| Makefile:283: recipe for target 'sapi/fpm/php-fpm' failed//
//| make: *** [sapi/fpm/php-fpm] Error 1//
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/usr/lib/../lib/libc-client.a(osdep.o):
In function `ssl_onceonlyinit'://
//|
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/uw-imap/2007f-r0/imap-2007f/c-client/osdep.c:302:
warning: the use of `tmpnam' is dangerous, better use `mkstemp'//
//| WARNING: exit code 1 from a shell command.//
//| ERROR: Function failed: do_compile (log file is located at
/media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/temp/log.do_compile.15528)//

//ERROR: Task
(/media/modjo/data1TO/yocto/pyro/sources/meta-openembedded/meta-oe/recipes-devtools/php/php_5.6.26.bb:do_compile)
failed with exit code '1'//
//NOTE: Tasks Summary: Attempted 6275 tasks of which 6269 didn't need to
be rerun and 1 failed.//
//
//Summary: 1 task fai