package/qt5location: handle plugins being conditionally built
PATCH v3 1/1 package/qt5location: handle plugins being conditionally built
Fixes a build issue [1] where the qt5location plugins are not built, but are attempted to be installed by buildroot.
The qt5location plugins have dependencies that are automatically and incorrectly resolved causing plugins to conditionally be built based on whether quick is available. This change adds a patch for an upstream bug [2] that builds the plugins directory irrelevant of the quick module.
[1] http://autobuild.buildroot.net/results/bc1/bc13abf3bb2fe1c991aec2334ee658c9641d1fd5/build-end.log
[2] https://bugreports.qt.io/browse/QTBUG-62098
--
Changes for v3:
- Change commit message to be more inline with actual fix.
- Issue with upstream patch - use Peter's upstream patch instead.
Changes for v2:
- Instead of skipping missing files, fix the root cause of improper dependency on quick when building the position plugin.
--- ...001-Fix-plugins-build-dependency-tracking.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/qt5/qt5location/5.9.1/0001-Fix-plugins-build-dependency-tracking.patch
package/qt5/qt5location/5.9.1/0001-Fix-plugins-build-dependency-tracking.patch new file +39 -0
@@ -0,0 +1,39 @@ +From 3ac051c4549575634cecc706175b019f4ed4c3bf Mon Sep 17 00:00:00 2001 +From: Peter Seiderer <[email protected]> +Date: Sat, 22 Jul 2017 22:47:05 +0200 +Subject: [PATCH] Fix plugins build dependency + +Do not build the plugins before the dependency on module positioning for +the plugin subdir position is available. + +Task-number: QTBUG-62098 +Change-Id: Ic7473db937359f3dad47aef0ffa3671be8cbd349 +Reviewed-by: Alex Blasche <[email protected]> +--- + src/src.pro | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/src/src.pro b/src/src.pro +index d0a1ee4..0c0bf50 100644 +--- a/src/src.pro ++++ b/src/src.pro +@@ -7,8 +7,6 @@ SUBDIRS += positioning + positioning.depends = 3rdparty/clip2tri + + qtHaveModule(quick) { +- plugins.depends += positioning +- + SUBDIRS += location + location.depends += positioning 3rdparty/clip2tri + +@@ -18,6 +16,7 @@ qtHaveModule(quick) { + imports.depends += positioning location + } + ++plugins.depends += positioning + SUBDIRS += plugins + + !android:contains(QT_CONFIG, private_tests) { +-- +2.7.4 +
Signature · 1 line
2.7.4
PATCH v3 1/1 package/qt5location: handle plugins being conditionally built
Hello,
Quoted 22 lines · Joshua Henderson
Fixes a build issue [1] where the qt5location plugins are not built, but are attempted to be installed by buildroot.
The qt5location plugins have dependencies that are automatically and incorrectly resolved causing plugins to conditionally be built based on whether quick is available. This change adds a patch for an upstream bug [2] that builds the plugins directory irrelevant of the quick module.
[1] http://autobuild.buildroot.net/results/bc1/bc13abf3bb2fe1c991aec2334ee658c9641d1fd5/build-end.log
[2] https://bugreports.qt.io/browse/QTBUG-62098Cc Julien Corjon <[email protected]>Cc Peter Seiderer <[email protected]>Cc Thomas Petazzoni <[email protected]>Signed-off-by Joshua Henderson <[email protected]>--
Changes for v3:
- Change commit message to be more inline with actual fix.
- Issue with upstream patch - use Peter's upstream patch instead.
Quoted 7 lines
Changes for v2:
- Instead of skipping missing files, fix the root cause of improper dependency on quick when building the position plugin.--- ...001-Fix-plugins-build-dependency-tracking.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/qt5/qt5location/5.9.1/0001-Fix-plugins-build-dependency-tracking.patch
Thanks, but Peter had sent an almost identical patch a few hours before, and I've applied his patch.
Thanks a lot for all this work on Qt5, much appreciated! Note that we still have a build failure of qt5webkit 5.6.1:
http://autobuild.buildroot.net/results/2f3/2f381967c82775ad911a246a9607034ef489c1ce/build-end.log
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v3 1/1 package/qt5location: handle plugins being conditionally built
Hello Thomas, Joshua,
Quoted 9 lines
Thanks, but Peter had sent an almost identical patch a few hours before, and I've applied his patch.
Thanks a lot for all this work on Qt5, much appreciated! Note that we still have a build failure of qt5webkit 5.6.1:
http://autobuild.buildroot.net/results/2f3/2f381967c82775ad911a246a9607034ef489c1ce/build-end.log
From the build-end.log:
The WebKit build was disabled for the following reasons:
* ICU is required.
ICU depends on BR2_HOST_GCC_AT_LEAST_4_8 and BR2_TOOLCHAIN_GCC_AT_LEAST_4_8, this dependency is propagated to qt5webkit but not to qt-webkit-kiosk (which selects qt5webkit circumventing the icu prerequisite)...
Patch (propagating the icu dependencies to qt-webkit-kiosk) will follow...
Regards,
Peter
Quoted 3 lines
Thanks!
Thomas
PATCH v3 1/1 package/qt5location: handle plugins being conditionally built
In reply to Thomas PetazzoniThomas, Peter,
Quoted 33 lines · Thomas Petazzoni
Hello,
Quoted 22 lines · Joshua Henderson
Fixes a build issue [1] where the qt5location plugins are not built, but are attempted to be installed by buildroot.
The qt5location plugins have dependencies that are automatically and incorrectly resolved causing plugins to conditionally be built based on whether quick is available. This change adds a patch for an upstream bug [2] that builds the plugins directory irrelevant of the quick module.
[1] http://autobuild.buildroot.net/results/bc1/bc13abf3bb2fe1c991aec2334ee658c9641d1fd5/build-end.log
[2] https://bugreports.qt.io/browse/QTBUG-62098Cc Julien Corjon <[email protected]>Cc Peter Seiderer <[email protected]>Cc Thomas Petazzoni <[email protected]>Signed-off-by Joshua Henderson <[email protected]>--
Changes for v3:
- Change commit message to be more inline with actual fix.
- Issue with upstream patch - use Peter's upstream patch instead.Quoted 7 lines
Changes for v2:
- Instead of skipping missing files, fix the root cause of improper dependency on quick when building the position plugin.--- ...001-Fix-plugins-build-dependency-tracking.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/qt5/qt5location/5.9.1/0001-Fix-plugins-build-dependency-tracking.patch
Quoted 2 lines
Thanks, but Peter had sent an almost identical patch a few hours before, and I've applied his patch.
It wasn't exactly identical. The applied patch now causes a build failure for 5.6.2:
qt5location 5.6.2 Patching
Applying 0001-Fix-plugins-build-dependency.patch using patch:
patching file src/src.pro
Hunk #1 FAILED at 7.
Hunk #2 succeeded at 14 (offset -4 lines).
1 out of 2 hunks FAILED -- saving rejects to file src/src.pro.rej
Quoted 6 lines
Thanks a lot for all this work on Qt5, much appreciated! Note that we still have a build failure of qt5webkit 5.6.1:
http://autobuild.buildroot.net/results/2f3/2f381967c82775ad911a246a9607034ef489c1ce/build-end.log
I also have several other patches to rev (add qt5wayland and license hashes for all of qt5).
Josh
PATCH v3 1/1 package/qt5location: handle plugins being conditionally built
Quoted 3 lines · Joshua Henderson
Thomas, Peter,
On 07/25/2017 12:52 PM, Thomas Petazzoni wrote:
[snip]
Quoted 4 lines
Quoted 2 lines
Thanks, but Peter had sent an almost identical patch a few hours before, and I've applied his patch.
It wasn't exactly identical. The applied patch now causes a build failure for 5.6.2:
If you noticed that Peter's patch was wrong, you could have mentioned it in the
commit message of your patch (below the --- line). Then Thomas might have seen the difference and applied your patch instead.
Quoted 6 lines
qt5location 5.6.2 Patching
Applying 0001-Fix-plugins-build-dependency.patch using patch:
patching file src/src.pro
Hunk #1 FAILED at 7.
Hunk #2 succeeded at 14 (offset -4 lines).
1 out of 2 hunks FAILED -- saving rejects to file src/src.pro.rej
Care to send a fix (I guess just moving the patch to the right directory)?
When you do, please also add a reference to the autobuilder failure:
http://autobuild.buildroot.net/results/676abe008c9c4bddfddd7b041d8db9999e9e899d
Quoted 8 lines
Quoted 6 lines
Thanks a lot for all this work on Qt5, much appreciated! Note that we still have a build failure of qt5webkit 5.6.1:
http://autobuild.buildroot.net/results/2f3/2f381967c82775ad911a246a9607034ef489c1ce/build-end.log
I also have several other patches to rev (add qt5wayland and license hashes for all of qt5).
For the qt5wayland patch, since you wrote yourself "This needs a v3 before
applying.", it's been marked as Changes Requested in patchwork so it won't be applied and probably won't be reviewed either.
Regards,
Arnout
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH v3 1/1 package/qt5location: handle plugins being conditionally built
Arnout,
Quoted 7 lines · Arnout Vandecappelle
Quoted 3 lines · Joshua Henderson
Thomas, Peter,
On 07/25/2017 12:52 PM, Thomas Petazzoni wrote:
[snip]
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Thanks, but Peter had sent an almost identical patch a few hours before, and I've applied his patch.
It wasn't exactly identical. The applied patch now causes a build failure for 5.6.2:
If you noticed that Peter's patch was wrong, you could have mentioned it in the
commit message of your patch (below the --- line). Then Thomas might have seen the difference and applied your patch instead.
It was caught last night by a local build server. Didn't notice it previously. I have actually been flying right along using his patch, but only with 5.9.1. This is only an issue with 5.6.2.
Quoted 10 lines
Quoted 8 lines
qt5location 5.6.2 Patching
Applying 0001-Fix-plugins-build-dependency.patch using patch:
patching file src/src.pro
Hunk #1 FAILED at 7.
Hunk #2 succeeded at 14 (offset -4 lines).
1 out of 2 hunks FAILED -- saving rejects to file src/src.pro.rejCare to send a fix (I guess just moving the patch to the right directory)?
That should do it. Done.
Quoted 4 lines
When you do, please also add a reference to the autobuilder failure:
http://autobuild.buildroot.net/results/676abe008c9c4bddfddd7b041d8db9999e9e899d
OK. Is there any way to subscribe to these failures? Even better, for specific packages?
Quoted 1 line
...
Quoted 6 lines
Quoted 2 lines
I also have several other patches to rev (add qt5wayland and license hashes for all of qt5).
For the qt5wayland patch, since you wrote yourself "This needs a v3 before
applying.", it's been marked as Changes Requested in patchwork so it won't be applied and probably won't be reviewed either.
OK.
Josh
PATCH v3 1/1 package/qt5location: handle plugins being conditionally built
Hello,
Quoted 3 lines · Joshua Henderson
OK. Is there any way to subscribe to these failures? Even better, for specific packages?
Yes: if you put your name in the DEVELOPERS file for specific packages, you'll get notified of build failures happening on those packages.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH v3 1/1 package/qt5location: handle plugins being conditionally built
In reply to Joshua HendersonHello Joshua,
Quoted 15 lines · Joshua Henderson
Arnout,
Quoted 12 lines · Arnout Vandecappelle
Quoted 3 lines · Joshua Henderson
Thomas, Peter,
On 07/25/2017 12:52 PM, Thomas Petazzoni wrote:
[snip]
Quoted 4 lines
Quoted 2 lines
Thanks, but Peter had sent an almost identical patch a few hours before, and I've applied his patch.
It wasn't exactly identical. The applied patch now causes a build failure for 5.6.2:
Quoted 8 lines
Quoted 3 lines
If you noticed that Peter's patch was wrong, you could have mentioned it in the
commit message of your patch (below the --- line). Then Thomas might have seen the difference and applied your patch instead.It was caught last night by a local build server. Didn't notice it previously. I have actually been flying right along using his patch, but only with 5.9.1. This is only an issue with 5.6.2.
Ups, my fault...
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
qt5location 5.6.2 Patching
Applying 0001-Fix-plugins-build-dependency.patch using patch:
patching file src/src.pro
Hunk #1 FAILED at 7.
Hunk #2 succeeded at 14 (offset -4 lines).
1 out of 2 hunks FAILED -- saving rejects to file src/src.pro.rej
Quoted 3 lines
Quoted 1 line
Care to send a fix (I guess just moving the patch to the right directory)?
That should do it. Done.
Thanks...
Quoted 8 lines
Quoted 5 lines
When you do, please also add a reference to the autobuilder failure:
http://autobuild.buildroot.net/results/676abe008c9c4bddfddd7b041d8db9999e9e899d
OK. Is there any way to subscribe to these failures? Even better, for specific packages?
The DEVELOPERS file in the buildroot root directory, send a patch adding yourself for packages you contributed to/interested in...
Quoted 6 lines
Quoted 1 line
...
Quoted 2 lines
Quoted 2 lines
I also have several other patches to rev (add qt5wayland and license hashes for all of qt5).
Did not find time for testing the qt5wayland patch yet and missed the license hash patch...
Regards,
Peter
Quoted 8 lines
Quoted 4 lines
For the qt5wayland patch, since you wrote yourself "This needs a v3 before
applying.", it's been marked as Changes Requested in patchwork so it won't be applied and probably won't be reviewed either.OK.
Josh