package/webp: enable host build
PATCH v6 1/8 package/webp: enable host build
This will be needed by qt5webengine.
--- package/webp/webp.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/webp/webp.mk +5 -0
@@ -19,6 +19,10 @@ WEBP_CONF_OPTS += \ --with-tiffincludedir=$(STAGING_DIR)/usr/include \ --with-tifflibdir=$(STAGING_DIR)/usr/lib +HOST_WEBP_CONF_OPTS += \ + --enable-libwebpdemux \ + --enable-libwebpmux + ifeq ($(BR2_PACKAGE_WEBP_DEMUX),y) WEBP_CONF_OPTS += --enable-libwebpdemux else
@@ -56,3 +60,4 @@ WEBP_DEPENDENCIES += $(if $(BR2_PACKAGE_JPEG),jpeg) WEBP_DEPENDENCIES += $(if $(BR2_PACKAGE_TIFF),tiff) $(eval $(autotools-package)) +$(eval $(host-autotools-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v6 2/8 package/re2: switch to generic-package make build
The cmake build appears to be missing features such as pkg-config generation support, switch to the regular makefile based build which appears to work better.
This will be needed by qt5webengine.
---
Changes v1 -> v2:
- don't built shared libraries if BR2_STATIC_LIBS is set
--- package/re2/re2.mk | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-)
package/re2/re2.mk +28 -4
@@ -10,8 +10,32 @@ RE2_LICENSE = BSD-3-Clause RE2_LICENSE_FILES = LICENSE RE2_INSTALL_STAGING = YES -RE2_CONF_OPTS += -DRE2_BUILD_TESTING=OFF -HOST_RE2_CONF_OPTS += -DRE2_BUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON +define RE2_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ + -C $(@D) $(if $(BR2_STATIC_LIBS),static) +endef -$(eval $(cmake-package)) -$(eval $(host-cmake-package)) +define RE2_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ + DESTDIR="$(STAGING_DIR)" prefix=/usr -C $(@D) \ + $(if $(BR2_STATIC_LIBS),static-install,install) +endef + +define RE2_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ + DESTDIR="$(TARGET_DIR)" prefix=/usr -C $(@D) \ + $(if $(BR2_STATIC_LIBS),static-install,install) +endef + +define HOST_RE2_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \ + -C $(@D) +endef + +define HOST_RE2_INSTALL_CMDS + $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \ + -C $(@D) DESTDIR="$(HOST_DIR)" prefix=/usr install +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 2/8] package/re2: switch to generic-package make build
Jmes, All,
On 2022-02-05 13:18 -0700, James Hilliard spake thusly:
Quoted 3 lines
The cmake build appears to be missing features such as pkg-config generation support, switch to the regular makefile based build which appears to work better.
I was wondering why we could not just fix the CMake buildsystem, and submit the fix upstream...
And then I remembered already talking about this earlier, but this commit did not carry any explanations why we could not do it... So I had to dig the archives to recover the previous discussion.
So, bottom line is, the commit log would be better off with more explanations, like:
The cmake build appears to be missing features, such as pkg-config generation support which is needed for some packages to find re2, like qt5webengine.
Upstream is not keen on fixing the CMake-absed buildsystem [0]
Instead of patching it on our side, and then have to carry the patch forever, we switch to the Makefile-based generic buildsystem.
Note that previously some packages like grpc failed when the generic Makefile was used, because they would not find the cmake-equivalent of pkg-config, but this is now fixed [1].
[0] https://github.com/google/re2/issues/349
[1] https://github.com/grpc/grpc/commit/45e413d2520795e7281e9a592af81620349bc186
Quoted 20 lines
This will be needed by qt5webengine.
Signed-off-by James Hilliard <[email protected]>---
Changes v1 -> v2:
- don't built shared libraries ifBR2_STATIC_LIBSis set--- package/re2/re2.mk | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-)package/re2/re2.mk +0
-2@@ -10,8 +10,32 @@ RE2_LICENSE = BSD-3-Clause RE2_LICENSE_FILES = LICENSE RE2_INSTALL_STAGING = YES -RE2_CONF_OPTS += -DRE2_BUILD_TESTING=OFF -HOST_RE2_CONF_OPTS += -DRE2_BUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON
package/re2/re2.mk RE2_LICENSE = BSD-3-Clause · line 20
Quoted 10 lines
package/re2/re2.mk +7
-2+define RE2_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ + -C $(@D) $(if $(BR2_STATIC_LIBS),static) +endef -$(eval $(cmake-package)) -$(eval $(host-cmake-package)) +define RE2_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ + DESTDIR="$(STAGING_DIR)" prefix=/usr -C $(@D) \
We usually do not double-quote STAGING_DIR, TARGET_DIR, or HOST_DIR, because we do not even support building in a directory with spaces in its name.
$ git grep -E '=\$\(STAGING_DIR\)' |wc -l
693
$ git grep -E '="\$\(STAGING_DIR\)"' |wc -l
23So I'd prefer we stick to the not-double-quoted situation.
No need to respin, this can be fixed when applying...
Regards,
Yann E. MORIN.
Quoted 28 lines
package/re2/re2.mk +21
-0+ $(if $(BR2_STATIC_LIBS),static-install,install) +endef + +define RE2_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ + DESTDIR="$(TARGET_DIR)" prefix=/usr -C $(@D) \ + $(if $(BR2_STATIC_LIBS),static-install,install) +endef + +define HOST_RE2_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \ + -C $(@D) +endef + +define HOST_RE2_INSTALL_CMDS + $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \ + -C $(@D) DESTDIR="$(HOST_DIR)" prefix=/usr install +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package))Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 2/8] package/re2: switch to generic-package make build
Quoted 27 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Jmes, All,
On 2022-02-05 13:18 -0700, James Hilliard spake thusly:Quoted 3 lines
The cmake build appears to be missing features such as pkg-config generation support, switch to the regular makefile based build which appears to work better.
I was wondering why we could not just fix the CMake buildsystem, and submit the fix upstream...
And then I remembered already talking about this earlier, but this commit did not carry any explanations why we could not do it... So I had to dig the archives to recover the previous discussion.
So, bottom line is, the commit log would be better off with more explanations, like:
The cmake build appears to be missing features, such as pkg-config generation support which is needed for some packages to find re2, like qt5webengine.
Upstream is not keen on fixing the CMake-absed buildsystem [0]
Instead of patching it on our side, and then have to carry the patch forever, we switch to the Makefile-based generic buildsystem.
Quoted 8 lines
Note that previously some packages like grpc failed when the generic
Makefilewas used, because they would not find the cmake-equivalent of pkg-config, but this is now fixed [1].Signed-off-by you.[0] https://github.com/google/re2/issues/349
[1] https://github.com/grpc/grpc/commit/45e413d2520795e7281e9a592af81620349bc186
Yes, a lot nicer! Committed with the commit message changed to the above, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v6 3/8 package/icu: don't disable renaming for host build
In reply to James HilliardUsing a different renaming option for the icu host build can cause issues for packages such as qt5webengine which expect target and host packages to be built with the same options.
--- package/icu/icu.mk | 3 +-- package/nodejs/nodejs.mk | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
package/icu/icu.mk +1 -2
@@ -45,8 +45,7 @@ HOST_ICU_CONF_OPTS = \ --disable-tests \ --disable-extras \ --disable-icuio \ - --disable-layout \ - --disable-renaming + --disable-layout ICU_SUBDIR = source HOST_ICU_SUBDIR = source
package/nodejs/nodejs.mk +1 -1
@@ -94,7 +94,7 @@ NODEJS_HOST_TOOLS_V8 = \ NODEJS_HOST_TOOLS_NODE = mkcodecache NODEJS_HOST_TOOLS = $(NODEJS_HOST_TOOLS_V8) $(NODEJS_HOST_TOOLS_NODE) -HOST_NODEJS_CXXFLAGS = $(HOST_CXXFLAGS) -DU_DISABLE_RENAMING=1 +HOST_NODEJS_CXXFLAGS = $(HOST_CXXFLAGS) define HOST_NODEJS_BUILD_CMDS $(HOST_MAKE_ENV) PYTHON=$(HOST_DIR)/bin/python3 \
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 3/8] package/icu: don't disable renaming for host build
James, All,
On 2022-02-05 13:18 -0700, James Hilliard spake thusly:
Quoted 3 lines
Using a different renaming option for the icu host build can cause issues for packages such as qt5webengine which expect target and host packages to be built with the same options.
This little hand-waving is not explaning the actual error that those packages encounter, nor the root cause for that error.
A package that needs both host and target to have the same options is most probably doing somethig wrong, like linking a host program and taking the result as valid for the target...
However, our adding the --disable-renaming in the first place in 3911e67151b (icu: security bump to version 51.2) did not provide any explanations why it was needed to begin with.
So it is not much uglier to remove it without further explanations either.
Yet, a reference to the original commit would be nice, like the little blurb I wrote above maybe...
Regards,
Yann E. MORIN.
Quoted 40 lines
Signed-off-by James Hilliard <[email protected]>--- package/icu/icu.mk | 3 +-- package/nodejs/nodejs.mk | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)package/icu/icu.mk +1
-2@@ -45,8 +45,7 @@ HOST_ICU_CONF_OPTS = \ --disable-tests \ --disable-extras \ --disable-icuio \ - --disable-layout \ - --disable-renaming + --disable-layout ICU_SUBDIR = source HOST_ICU_SUBDIR = sourcepackage/nodejs/nodejs.mk +1
-1@@ -94,7 +94,7 @@ NODEJS_HOST_TOOLS_V8 = \ NODEJS_HOST_TOOLS_NODE = mkcodecache NODEJS_HOST_TOOLS = $(NODEJS_HOST_TOOLS_V8) $(NODEJS_HOST_TOOLS_NODE) -HOST_NODEJS_CXXFLAGS = $(HOST_CXXFLAGS) -DU_DISABLE_RENAMING=1 +HOST_NODEJS_CXXFLAGS = $(HOST_CXXFLAGS) define HOST_NODEJS_BUILD_CMDS $(HOST_MAKE_ENV) PYTHON=$(HOST_DIR)/bin/python3 \Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 3/8] package/icu: don't disable renaming for host build
Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
James, All,
On 2022-02-05 13:18 -0700, James Hilliard spake thusly:Quoted 3 lines
Using a different renaming option for the icu host build can cause issues for packages such as qt5webengine which expect target and host packages to be built with the same options.
This little hand-waving is not explaning the actual error that those packages encounter, nor the root cause for that error.
A package that needs both host and target to have the same options is most probably doing somethig wrong, like linking a host program and taking the result as valid for the target...
However, our adding the --disable-renaming in the first place in
3911e67151b(icu: security bump to version 51.2) did not provide any explanations why it was needed to begin with.
Quoted 5 lines
So it is not much uglier to remove it without further explanations either.
Yet, a reference to the original commit would be nice, like the little blurb I wrote above maybe...
Committed with the commit message extended, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 3/8] package/icu: don't disable renaming for host build
In reply to James HilliardOn 2022-02-05 13:18 -0700, James Hilliard spake thusly:
Quoted 5 lines
Using a different renaming option for the icu host build can cause issues for packages such as qt5webengine which expect target and host packages to be built with the same options.
Signed-off-by James Hilliard <[email protected]>
I forgot to add:
Regards,
Yann E. MORIN.
Quoted 39 lines
--- package/icu/icu.mk | 3 +-- package/nodejs/nodejs.mk | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)package/icu/icu.mk +1
-2@@ -45,8 +45,7 @@ HOST_ICU_CONF_OPTS = \ --disable-tests \ --disable-extras \ --disable-icuio \ - --disable-layout \ - --disable-renaming + --disable-layout ICU_SUBDIR = source HOST_ICU_SUBDIR = sourcepackage/nodejs/nodejs.mk +1
-1@@ -94,7 +94,7 @@ NODEJS_HOST_TOOLS_V8 = \ NODEJS_HOST_TOOLS_NODE = mkcodecache NODEJS_HOST_TOOLS = $(NODEJS_HOST_TOOLS_V8) $(NODEJS_HOST_TOOLS_NODE) -HOST_NODEJS_CXXFLAGS = $(HOST_CXXFLAGS) -DU_DISABLE_RENAMING=1 +HOST_NODEJS_CXXFLAGS = $(HOST_CXXFLAGS) define HOST_NODEJS_BUILD_CMDS $(HOST_MAKE_ENV) PYTHON=$(HOST_DIR)/bin/python3 \Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v6 4/8 package/qt5/qt5base: enable ccache via configure option
In reply to James HilliardThis should be cleaner than editing mkspecs/common/g++-base.conf.
--- package/qt5/qt5base/qt5base.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
package/qt5/qt5base/qt5base.mk +3 -4
@@ -289,10 +289,9 @@ endef endif # This allows to use ccache when available -define QT5BASE_CONFIGURE_HOSTCC - $(SED) 's,^QMAKE_CC\s*=.*,QMAKE_CC = $(HOSTCC),' $(@D)/mkspecs/common/g++-base.conf - $(SED) 's,^QMAKE_CXX\s*=.*,QMAKE_CXX = $(HOSTCXX),' $(@D)/mkspecs/common/g++-base.conf -endef +ifeq ($(BR2_CCACHE),y) +QT5BASE_CONFIGURE_OPTS += -ccache +endif # Must be last so can override all options set by Buildroot QT5BASE_CONFIGURE_OPTS += $(call qstrip,$(BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 4/8] package/qt5/qt5base: enable ccache via configure option
package/qt5/qt5base/qt5base.mk endef · line 295
Quoted 5 lines · On Sat, 5 Feb 2022 13:18:33 -0700 James Hilliard <[email protected]>…
# This allows to use ccache when available
package/qt5/qt5base/qt5base.mk +0
-4-define QT5BASE_CONFIGURE_HOSTCC - $(SED) 's,^QMAKE_CC\s*=.*,QMAKE_CC = $(HOSTCC),' $(@D)/mkspecs/common/g++-base.conf - $(SED) 's,^QMAKE_CXX\s*=.*,QMAKE_CXX = $(HOSTCXX),' $(@D)/mkspecs/common/g++-base.conf -endef
This this variable is dropped, then surely the place it was used should also be modified?
package/qt5/qt5base/qt5base.mk endef · line 294
Quoted 3 lines
package/qt5/qt5base/qt5base.mk +3
-0+ifeq ($(BR2_CCACHE),y) +QT5BASE_CONFIGURE_OPTS += -ccache +endif
Are we sure this is going to use Buildroot's ccache and not the system ccache?
Indeed, $(HOSTCC) and $(HOSTCXX) are defined as:
CCACHE = $(HOST_DIR)/bin/ccache
HOSTCC = $(CCACHE) $(HOSTCC_NOCCACHE)
HOSTCXX = $(CCACHE) $(HOSTCXX_NOCCACHE)
so we know that it's the Buildroot ccache that will be used.
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 4/8] package/qt5/qt5base: enable ccache via configure option
Quoted 11 lines · Thomas Petazzoni
package/qt5/qt5base/qt5base.mk endef · line 295
Quoted 5 lines · On Sat, 5 Feb 2022 13:18:33 -0700 James Hilliard <[email protected]>…
# This allows to use ccache when available
package/qt5/qt5base/qt5base.mk +0
-4-define QT5BASE_CONFIGURE_HOSTCC - $(SED) 's,^QMAKE_CC\s*=.*,QMAKE_CC = $(HOSTCC),' $(@D)/mkspecs/common/g++-base.conf - $(SED) 's,^QMAKE_CXX\s*=.*,QMAKE_CXX = $(HOSTCXX),' $(@D)/mkspecs/common/g++-base.conf -endefThis this variable is dropped, then surely the place it was used should also be modified?
Oh, forgot to remove it from there.
Quoted 7 lines
package/qt5/qt5base/qt5base.mk endef · line 294
Quoted 4 lines
package/qt5/qt5base/qt5base.mk +3
-0+ifeq ($(BR2_CCACHE),y) +QT5BASE_CONFIGURE_OPTS += -ccache +endifAre we sure this is going to use Buildroot's ccache and not the system ccache?
Looks to be detecting it properly at least(my system also has a system ccache):
Checking for ccache...
Searching for file ccache.
Found at /home/buildroot/buildroot/output/per-package/qt5base/host/bin/ccache.
test config.qtbase.tests.ccache succeeded
Quoted 8 lines
Indeed, $(HOSTCC) and $(HOSTCXX) are defined as:
CCACHE = $(HOST_DIR)/bin/ccache
HOSTCC = $(CCACHE) $(HOSTCC_NOCCACHE)
HOSTCXX = $(CCACHE) $(HOSTCXX_NOCCACHE)so we know that it's the Buildroot ccache that will be used.
The gn build system in qt5webengine has some special ccache conditional handling that doesn't get properly enabled with this method as it enables based on the qt5base
ccache flag instead AFAIU.
Quoted 6 lines
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 4/8] package/qt5/qt5base: enable ccache via configure option
In reply to James HilliardJames, All,
+Arnout
On 2022-02-05 13:18 -0700, James Hilliard spake thusly:
Quoted 1 line
This should be cleaner than editing
mkspecs/common/g++-base.conf.
Is this actually fixing something? Is ccache as we sue it badly handled by the qt5webengin buildsystem somehow?
Thomas, Arnout: IIRC some time ago, there were talks about using the compiler wrapper also for the host compiler. Maybe this would solve this kind of situations?
Regards,
Yann E. MORIN.
Quoted 30 lines
Signed-off-by James Hilliard <[email protected]>--- package/qt5/qt5base/qt5base.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)package/qt5/qt5base/qt5base.mk +3
-4@@ -289,10 +289,9 @@ endef endif # This allows to use ccache when available -define QT5BASE_CONFIGURE_HOSTCC - $(SED) 's,^QMAKE_CC\s*=.*,QMAKE_CC = $(HOSTCC),' $(@D)/mkspecs/common/g++-base.conf - $(SED) 's,^QMAKE_CXX\s*=.*,QMAKE_CXX = $(HOSTCXX),' $(@D)/mkspecs/common/g++-base.conf -endef +ifeq ($(BR2_CCACHE),y) +QT5BASE_CONFIGURE_OPTS += -ccache +endif # Must be last so can override all options set by Buildroot QT5BASE_CONFIGURE_OPTS += $(call qstrip,$(BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS))Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 4/8] package/qt5/qt5base: enable ccache via configure option
Quoted 5 lines · Yann E. MORIN
James, All,
+Arnout
On 2022-02-05 13:18 -0700, James Hilliard spake thusly:
Quoted 8 lines
Quoted 1 line
This should be cleaner than editing
mkspecs/common/g++-base.conf.Is this actually fixing something? Is ccache as we sue it badly handled by the qt5webengin buildsystem somehow?
Thomas, Arnout: IIRC some time ago, there were talks about using the compiler wrapper also for the host compiler. Maybe this would solve this kind of situations?
Yes it would. However, it would be pretty much the only thing handled by that
wrapper, so I don't know if it's worth the bother. If we want to do that, it would probably be better to use the symlink approach for ccache, i.e. create a gcc->ccache symlink in HOST_DIR/bin and set HOSTCC to $(HOST_DIR)/bin/gcc.
Regards,
Arnout
Quoted 30 lines
Regards,
Yann E. MORIN.Quoted 26 lines
Signed-off-by James Hilliard <[email protected]>--- package/qt5/qt5base/qt5base.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)package/qt5/qt5base/qt5base.mk +3
-4@@ -289,10 +289,9 @@ endef endif # This allows to use ccache when available -define QT5BASE_CONFIGURE_HOSTCC - $(SED) 's,^QMAKE_CC\s*=.*,QMAKE_CC = $(HOSTCC),' $(@D)/mkspecs/common/g++-base.conf - $(SED) 's,^QMAKE_CXX\s*=.*,QMAKE_CXX = $(HOSTCXX),' $(@D)/mkspecs/common/g++-base.conf -endef +ifeq ($(BR2_CCACHE),y) +QT5BASE_CONFIGURE_OPTS += -ccache +endif # Must be last so can override all options set by Buildroot QT5BASE_CONFIGURE_OPTS += $(call qstrip,$(BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS))Signature · 1 line
2.25.1
Quoted 5 lines
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v6 5/8 package/qt5/qt5webengine-chromium-catapult: new package
In reply to James HilliardThis version of catapult is python3 compatible and will be used to replace the python2 only version in qt5webengine-chromium.
---
Changes v2 -> v3:
- add kconfig entry
--- package/qt5/Config.in | 1 + .../qt5/qt5webengine-chromium-catapult/Config.in | 4 ++++ .../qt5webengine-chromium-catapult.hash | 3 +++ .../qt5webengine-chromium-catapult.mk | 14 ++++++++++++++ 4 files changed, 22 insertions(+) create mode 100644 package/qt5/qt5webengine-chromium-catapult/Config.in create mode 100644 package/qt5/qt5webengine-chromium-catapult/qt5webengine-chromium-catapult.hash create mode 100644 package/qt5/qt5webengine-chromium-catapult/qt5webengine-chromium-catapult.mk
package/qt5/Config.in +1 -0
@@ -68,6 +68,7 @@ source "package/qt5/qt5wayland/Config.in" source "package/qt5/qt5webchannel/Config.in" source "package/qt5/qt5webkit/Config.in" source "package/qt5/qt5webengine/Config.in" +source "package/qt5/qt5webengine-chromium-catapult/Config.in" source "package/qt5/qt5websockets/Config.in" source "package/qt5/qt5webview/Config.in" source "package/qt5/qt5x11extras/Config.in"
package/qt5/qt5webengine-chromium-catapult/Config.in new file +4 -0
@@ -0,0 +1,4 @@ +# Not user-selectable, it is only needed to be copied +# into the chromium source tree. +config BR2_PACKAGE_QT5WEBENGINE_CHROMIUM_CATAPULT + bool
package/qt5/qt5webengine-chromium-catapult/qt5webengine-chromium-catapult.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated +sha256 66b8593e665c4236f7b1c487548d41d3826eddbf486ff985dbdfd01cddcaa1a8 qt5webengine-chromium-catapult-5eedfe23148a234211ba477f76fc2ea2e8529189-br1.tar.gz +sha256 f0df289ba9d03d857ad1c2f5918861376b1510b71588ffc60eff5c7a7bfedb09 LICENSE
package/qt5/qt5webengine-chromium-catapult/qt5webengine-chromium-catapult.mk new file +14 -0
@@ -0,0 +1,14 @@ +################################################################################ +# +# qt5webengine-chromium-catapult +# +################################################################################ + +QT5WEBENGINE_CHROMIUM_CATAPULT_VERSION = 5eedfe23148a234211ba477f76fc2ea2e8529189 +QT5WEBENGINE_CHROMIUM_CATAPULT_SITE = https://chromium.googlesource.com/catapult.git +QT5WEBENGINE_CHROMIUM_CATAPULT_SITE_METHOD = git +QT5WEBENGINE_CHROMIUM_CATAPULT_LICENSE = BSD-3-Clause +QT5WEBENGINE_CHROMIUM_CATAPULT_LICENSE_FILES = LICENSE +QT5WEBENGINE_CHROMIUM_CATAPULT_INSTALL_TARGET = NO + +$(eval $(generic-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v6 6/8 package/qt5/qt5webengine-chromium: new package
In reply to James HilliardWe need to add a separate package for the chromium submodule so that we can apply patches for python3 support to it and replace catapult with a python3 compatible version.
--- package/qt5/Config.in | 1 + .../0001-Add-python3-build-support.patch | 1858 +++++++++++++++++ .../0002-Don-t-rebase-sysroot-path.patch | 32 + package/qt5/qt5webengine-chromium/Config.in | 5 + .../qt5webengine-chromium/chromium-latest.inc | 1257 +++++++++++ .../qt5webengine-chromium.hash | 1256 +++++++++++ .../qt5webengine-chromium.mk | 23 + 7 files changed, 4432 insertions(+) create mode 100644 package/qt5/qt5webengine-chromium/0001-Add-python3-build-support.patch create mode 100644 package/qt5/qt5webengine-chromium/0002-Don-t-rebase-sysroot-path.patch create mode 100644 package/qt5/qt5webengine-chromium/Config.in create mode 100644 package/qt5/qt5webengine-chromium/chromium-latest.inc create mode 100644 package/qt5/qt5webengine-chromium/qt5webengine-chromium.hash create mode 100644 package/qt5/qt5webengine-chromium/qt5webengine-chromium.mk
package/qt5/Config.in +1 -0
@@ -68,6 +68,7 @@ source "package/qt5/qt5wayland/Config.in" source "package/qt5/qt5webchannel/Config.in" source "package/qt5/qt5webkit/Config.in" source "package/qt5/qt5webengine/Config.in" +source "package/qt5/qt5webengine-chromium/Config.in" source "package/qt5/qt5webengine-chromium-catapult/Config.in" source "package/qt5/qt5websockets/Config.in" source "package/qt5/qt5webview/Config.in"
package/qt5/qt5webengine-chromium/0001-Add-python3-build-support.patch new file +1858 -0
1,858 lines not on this page · raw message
package/qt5/qt5webengine-chromium/0002-Don-t-rebase-sysroot-path.patch new file +32 -0
@@ -0,0 +1,32 @@ +From bfc520671693587a0b81842018326da35aa97f80 Mon Sep 17 00:00:00 2001 +From: James Hilliard <[email protected]> +Date: Thu, 3 Feb 2022 20:41:08 -0700 +Subject: [PATCH] Don't rebase sysroot path + +Just use the actual sysroot as rebase_path will generate an invalid +sysroot path. + +Fixes: +/home/buildroot/buildroot/output/per-package/qt5webengine/host/opt/ext-toolchain/bin/../lib/gcc/aarch64-buildroot-linux-gnu/10.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: cannot find crti.o: No such file or directory + +Signed-off-by: James Hilliard <[email protected]> +--- + chromium/build/config/posix/BUILD.gn | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/chromium/build/config/posix/BUILD.gn b/chromium/build/config/posix/BUILD.gn +index e61554c5656..dc957225869 100644 +--- a/chromium/build/config/posix/BUILD.gn ++++ b/chromium/build/config/posix/BUILD.gn +@@ -27,7 +27,7 @@ config("runtime_library") { + + if (!is_apple && sysroot != "") { + # Pass the sysroot to all C compiler variants, the assembler, and linker. +- sysroot_flags = [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ] ++ sysroot_flags = [ "--sysroot=" + sysroot ] + if (is_linux || is_chromeos) { + # This is here so that all files get recompiled after a sysroot roll and + # when turning the sysroot on or off. (defines are passed via the command +-- +2.25.1 +
package/qt5/qt5webengine-chromium/Config.in new file +5 -0
@@ -0,0 +1,5 @@ +# Not user-selectable, it is only needed to be copied +# into the qt5webengine source tree. +config BR2_PACKAGE_QT5WEBENGINE_CHROMIUM + bool + select BR2_PACKAGE_QT5WEBENGINE_CHROMIUM_CATAPULT
package/qt5/qt5webengine-chromium/chromium-latest.inc new file +1257 -0
1,098 lines not on this page · raw message
package/qt5/qt5webengine-chromium/qt5webengine-chromium.hash new file +1256 -0
1,256 lines not on this page · raw message
package/qt5/qt5webengine-chromium/qt5webengine-chromium.mk new file +23 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 7 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Part of the diff is not shown here. View the raw message.
Re: [Buildroot] [PATCH v6 6/8] package/qt5/qt5webengine-chromium: new package
James, All,
On 2022-02-05 13:18 -0700, James Hilliard spake thusly:
Quoted 8 lines
We need to add a separate package for the chromium submodule so that we can apply patches for python3 support to it and replace catapult with a python3 compatible version.
Signed-off-by James Hilliard <[email protected]>--- package/qt5/Config.in | 1 + .../0001-Add-python3-build-support.patch | 1858 +++++++++++++++++
This is a very big patch...
The commit you are using here, 0ad2814370799a2161057d92231fe3ee00e2fe98, is on the '87-based' branch, which is supposedly not a recent branch, even if the commit itself is not so old (a bit over two months).
However, there are more recent branches that already have python3 support, starting from '90-based' onward.
Why can't we use those branches, instead of carrying such a beast of a patch?
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 6/8] package/qt5/qt5webengine-chromium: new package
Quoted 19 lines · Yann E. MORIN
James, All,
On 2022-02-05 13:18 -0700, James Hilliard spake thusly:
Quoted 8 lines
We need to add a separate package for the chromium submodule so that we can apply patches for python3 support to it and replace catapult with a python3 compatible version.
Signed-off-by James Hilliard <[email protected]>--- package/qt5/Config.in | 1 + .../0001-Add-python3-build-support.patch | 1858 +++++++++++++++++This is a very big patch...
The commit you are using here,
0ad2814370799a2161057d92231fe3ee00e2fe98, is on the '87-based' branch, which is supposedly not a recent branch, even if the commit itself is not so old (a bit over two months).
Quoted 5 lines
However, there are more recent branches that already have python3 support, starting from '90-based' onward.
Why can't we use those branches, instead of carrying such a beast of a patch?
I'm using the commit that matches v5.15.8-lts, I think others aren't compatible:
https://invent.kde.org/qt/qt/qtwebengine/-/tree/v5.15.8-lts/src
Quoted 11 lines
Regards,
Yann E. MORIN.--
.-----------------.--------------------.------------------.--------------------.| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v6 7/8 package/qt5/qt5base: disable broken qmake sysrootify
In reply to James HilliardCurrently the qmake gcc sysrootify path logic causes issues with per-package directories, disable automatic gcc sysroot for qt5base install and override all qt.conf paths manually to point to their correct locations.
Redirect HostData to STAGING_DIR as mkspecs need to be available there instead of the HOST_DIR for cross compilation to work.
Improves pkg-config target/host separation.
---
Changes v5 -> v6:
- rebase/rework with qt5webengine bump
Changes v4 -> v5:
- rework qt5webengine config to use feature flags
- try to fix more random breakage
Changes v3 -> v4:
- fix target pkg-config path mangling
Changes v2 -> v3:
- set target pkg-config path
Changes v1 -> v2:
- add some missing overrides to qt.conf.in
--- package/qt5/qt5base/qt.conf.in | 21 ++++++++++++++++++--- package/qt5/qt5base/qt5base.mk | 5 ++++- 2 files changed, 22 insertions(+), 4 deletions(-)
package/qt5/qt5base/qt.conf.in +18 -3
@@ -2,6 +2,21 @@ Prefix=/usr HostPrefix=@@HOST_DIR@@ Sysroot=@@STAGING_DIR@@ -Headers=/usr/include/qt5 -Plugins=/usr/lib/qt/plugins -Examples=/usr/lib/qt/examples +SysrootifyPrefix=false +Binaries=@@STAGING_DIR@@/usr/bin +Libraries=@@STAGING_DIR@@/usr/lib +Headers=@@STAGING_DIR@@/usr/include/qt5 +Plugins=@@STAGING_DIR@@/usr/lib/qt/plugins +Examples=@@STAGING_DIR@@/usr/lib/qt/examples +Tests=@@STAGING_DIR@@/usr/lib/qt/tests +Data=@@STAGING_DIR@@ +Translations=@@STAGING_DIR@@/translations +Documentation=@@STAGING_DIR@@/doc +ArchData=@@STAGING_DIR@@/usr +LibraryExecutables=@@STAGING_DIR@@/usr/libexec +Imports=@@STAGING_DIR@@/usr/imports +Qml2Imports=@@STAGING_DIR@@/usr/qml +Settings=@@STAGING_DIR@@/etc +HostBinaries=@@HOST_DIR@@/bin +HostLibraries=@@HOST_DIR@@/lib +HostData=@@STAGING_DIR@@
package/qt5/qt5base/qt5base.mk +4 -1
@@ -315,12 +315,15 @@ define QT5BASE_CONFIGURE_CMDS -v \ -prefix /usr \ -hostprefix $(HOST_DIR) \ + -hostdatadir $(STAGING_DIR) \ -headerdir /usr/include/qt5 \ -sysroot $(STAGING_DIR) \ + -no-gcc-sysroot \ -plugindir /usr/lib/qt/plugins \ -examplesdir /usr/lib/qt/examples \ -no-rpath \ -nomake tests \ + -pkg-config \ -device buildroot \ -device-option CROSS_COMPILE="$(TARGET_CROSS)" \ -device-option BR_COMPILER_CFLAGS="$(QT5BASE_CFLAGS)" \
@@ -329,6 +332,6 @@ define QT5BASE_CONFIGURE_CMDS ) endef -QT5BASE_POST_INSTALL_STAGING_HOOKS += QT5_INSTALL_QT_CONF +QT5BASE_PRE_INSTALL_STAGING_HOOKS += QT5_INSTALL_QT_CONF $(eval $(qmake-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v6 8/8 package/qt5/qt5webengine: bump to version 5.15.8
In reply to James HilliardWe need to use the separate package for the chromium submodule so that which has python3 support patches.
We also need to apply a patch to qt5webengine to allow building with python3.
Drop a patch which is now upstream.
We need to set QT5WEBENGINE_SYNC_QT_HEADERS = YES as we are building from a repository archive instead of a release archive.
We need to add some new required dependencies to qt5webengine so that it will build.
Switch libraries to system libraries instead of bundled when possible.
Migrate unsupported WEBENGINE_CONFIG to new config flag option.
Override feature detection using config override flags to ensure we get the expected features enabled/disabled as autodetection logic may otherwise disable features without throwing build errors.
---
Changes v5 -> v6:
- switch to python3
- fix up config flags and rebase
Changes v3 -> v4:
- linker fixes
Changes v2 -> v3:
- add kconfig entries
--- package/qt5/qt5.mk | 1 - .../0002-Add-python3-build-support.patch | 168 +++ ...m-breakpad-fix-build-with-glibc-2.34.patch | 76 -- package/qt5/qt5webengine/Config.in | 13 + .../qt5/qt5webengine/host-python-wrapper.in | 3 + package/qt5/qt5webengine/qt5webengine.hash | 1001 +---------------- package/qt5/qt5webengine/qt5webengine.mk | 157 ++- 7 files changed, 322 insertions(+), 1097 deletions(-) create mode 100644 package/qt5/qt5webengine/0002-Add-python3-build-support.patch delete mode 100644 package/qt5/qt5webengine/0002-chromium-breakpad-fix-build-with-glibc-2.34.patch create mode 100644 package/qt5/qt5webengine/host-python-wrapper.in
package/qt5/qt5.mk +0 -1
@@ -6,7 +6,6 @@ QT5_VERSION_MAJOR = 5.15 QT5_VERSION = $(QT5_VERSION_MAJOR).8 -QT5_SOURCE_TARBALL_PREFIX = everywhere-src QT5_SITE = https://invent.kde.org/qt/qt include $(sort $(wildcard package/qt5/*/*.mk))
package/qt5/qt5webengine/0002-Add-python3-build-support.patch new file +168 -0
168 lines not on this page · raw message
package/qt5/qt5webengine/0002-chromium-breakpad-fix-build-with-glibc-2.34.patch deleted +0 -9
@@ -1,76 +0,0 @@ -From a3bc792bdc116806a50e022d9102914c8daf6210 Mon Sep 17 00:00:00 2001 -From: Martin Jansa <[email protected]> -Date: Wed, 4 Aug 2021 19:11:06 +0200 -Subject: [PATCH] chromium: breakpad: fix build with glibc-2.34 - -* fixes: -[218/24061] CXX obj/third_party/breakpad/client/exception_handler.o -FAILED: obj/third_party/breakpad/client/exception_handler.o -/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/qtwebengine/5.15.4+gitAUTOINC+dd7f7a9166_555f348ae8-r0/recipe-sysroot-native/usr/bin/x86_64-webos-linux/x86_64-webos-linux-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -Wdate-time --sysroot=/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/qtwebengine/5.15.4+gitAUTOINC+dd7f7a9166_555f348ae8-r0/recipe-sysroot -MMD -MF obj/third_party/breakpad/client/exception_handler.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -DCR_SYSROOT_HASH=5f64b417e1018dcf8fcc81dc2714e0f264b9b911 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../../../git/src/3rdparty/chromium/third_party/breakpad -I../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src -I../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client -I../../../../git/
src/3rdparty/chromium/third_party/breakpad/breakpad/src/third_party/linux/include -Igen -I../../../../git/src/3rdparty/chromium -I../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -fvisibility=hidden -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu++14 -fno-exceptions -fno-rtti --sysroot=../../../../recipe-sysroot -fvisibility-inlines-hidden -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -c ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad /src/client/linux/handler/exception_handler.cc -o obj/third_party/breakpad/client/exception_handler.o
-../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc: In function 'void google_breakpad::{anonymous}::InstallAlternateStackLocked()':
-../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: error: no matching function for call to 'max(int, long int)'
- 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
- | ~~~~~~~~^~~~~~~~~~~~~~~~~
-In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/char_traits.h:39,
- from ../../../../recipe-sysroot/usr/include/c++/11.2.0/string:40, - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h:38, - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:66: -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)' - 254 | max(const _Tp& __a, const _Tp& __b) - | ^~~
-../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
-../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long int')
- 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
- | ~~~~~~~~^~~~~~~~~~~~~~~~~
-In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/char_traits.h:39,
- from ../../../../recipe-sysroot/usr/include/c++/11.2.0/string:40, - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h:38, - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:66: -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)' - 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) - | ^~~
-../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
-../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long int')
- 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
- | ~~~~~~~~^~~~~~~~~~~~~~~~~
-In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/algorithm:62,
- from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:85:-../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3461:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
- 3461 | max(initializer_list<_Tp> __l) - | ^~~
-../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3461:5: note: template argument deduction/substitution failed:
-../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
- 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
- | ~~~~~~~~^~~~~~~~~~~~~~~~~
-In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/algorithm:62,
- from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:85:-../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
- 3467 | max(initializer_list<_Tp> __l, _Compare __comp) - | ^~~
-../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: template argument deduction/substitution failed:
-../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
- 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
- | ~~~~~~~~^~~~~~~~~~~~~~~~~
-
-Adapted from:
-https://github.com/meta-qt5/meta-qt5/blob/2a38fca150f065f869ed530fffe1a07beec80692/recipes-qt/qt5/qtwebengine/chromium/0013-chromium-breakpad-fix-build-with-glibc-2.34.patch
-
-Signed-off-by: Martin Jansa <[email protected]>
-Signed-off-by: James Hilliard <[email protected]>
----
- .../breakpad/src/client/linux/handler/exception_handler.cc | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc b/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -index ca353c40997..2e43ba6fc04 100644
---- a/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
-+++ b/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
-@@ -138,7 +138,7 @@ void InstallAlternateStackLocked() {
- // SIGSTKSZ may be too small to prevent the signal handlers from overrunning - // the alternative stack. Ensure that the size of the alternative stack is - // large enough. -- static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ); -+ static const unsigned kSigStackSize = std::max<size_t>(16384, SIGSTKSZ);
-
- // Only set an alternative stack if there isn't already one, or if the current
- // one is too small.
package/qt5/qt5webengine/Config.in +13 -0
@@ -32,24 +32,35 @@ config BR2_PACKAGE_QT5WEBENGINE depends on BR2_PACKAGE_QT5_GL_AVAILABLE # qt5declarative, qt5base-eglfs depends on BR2_PACKAGE_HAS_LIBEGL # qt5base-eglfs depends on BR2_PACKAGE_HAS_UDEV + select BR2_PACKAGE_HOST_NODEJS # v8 (a chromium 3rd-party) compiles its internal host-tools with the # same word size as the target. For 32-bits targets, it adds the -m32 # flag (for 64-bits, it adds the -m64 flag). # https://github.com/v8/v8/blob/5.6.326.55/gypfiles/toolchain.gypi#L1036-L1037 select BR2_HOSTARCH_NEEDS_IA32_COMPILER if !BR2_ARCH_IS_64 # v8/chromium select BR2_PACKAGE_FFMPEG + select BR2_PACKAGE_LCMS2 + select BR2_PACKAGE_LIBEVENT select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_LIBNSS select BR2_PACKAGE_LIBVPX select BR2_PACKAGE_LIBXKBCOMMON + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_LIBXSLT + select BR2_PACKAGE_MINIZIP select BR2_PACKAGE_OPUS + select BR2_PACKAGE_RE2 + select BR2_PACKAGE_SNAPPY select BR2_PACKAGE_WEBP select BR2_PACKAGE_WEBP_DEMUX + select BR2_PACKAGE_WEBP_MUX select BR2_PACKAGE_QT5BASE_DBUS select BR2_PACKAGE_QT5BASE_EGLFS select BR2_PACKAGE_QT5BASE_FONTCONFIG + select BR2_PACKAGE_QT5BASE_JPEG select BR2_PACKAGE_QT5BASE_ICU select BR2_PACKAGE_QT5BASE_GUI + select BR2_PACKAGE_QT5BASE_PNG select BR2_PACKAGE_QT5BASE_WIDGETS select BR2_PACKAGE_QT5DECLARATIVE select BR2_PACKAGE_QT5DECLARATIVE_QUICK
@@ -57,9 +68,11 @@ config BR2_PACKAGE_QT5WEBENGINE select BR2_PACKAGE_QT5QUICKCONTROLS2 select BR2_PACKAGE_QT5SVG if BR2_PACKAGE_QT5BASE_EXAMPLES select BR2_PACKAGE_QT5WEBCHANNEL + select BR2_PACKAGE_QT5WEBENGINE_CHROMIUM select BR2_PACKAGE_XLIB_LIBXCOMPOSITE if BR2_PACKAGE_QT5BASE_XCB select BR2_PACKAGE_XLIB_LIBXCURSOR if BR2_PACKAGE_QT5BASE_XCB select BR2_PACKAGE_XLIB_LIBXI if BR2_PACKAGE_QT5BASE_XCB + select BR2_PACKAGE_XLIB_LIBXKBFILE if BR2_PACKAGE_QT5BASE_XCB select BR2_PACKAGE_XLIB_LIBXRANDR if BR2_PACKAGE_QT5BASE_XCB select BR2_PACKAGE_XLIB_LIBXSCRNSAVER if BR2_PACKAGE_QT5BASE_XCB select BR2_PACKAGE_XLIB_LIBXTST if BR2_PACKAGE_QT5BASE_XCB
package/qt5/qt5webengine/host-python-wrapper.in new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh +LD_LIBRARY_PATH="@HOST_DIR@/lib" \ +exec @HOST_DIR@/bin/python "$@"
package/qt5/qt5webengine/qt5webengine.hash +2 -999
1,007 lines not on this page · raw message
package/qt5/qt5webengine/qt5webengine.mk +136 -21
199 lines not on this page · raw message
Signature · 7 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"James" == James Hilliard <[email protected]> writes:
This will be needed by qt5webengine.
Signed-off-by James Hilliard <[email protected]>--- package/webp/webp.mk | 5 +++++ 1 file changed, 5 insertions(+)package/webp/webp.mk +0
-0
package/webp/webp.mk WEBP_CONF_OPTS += \ · line 24
Quoted 6 lines
package/webp/webp.mk +3
-0@@ -19,6 +19,10 @@ WEBP_CONF_OPTS += \ --with-tiffincludedir=$(STAGING_DIR)/usr/include \ --with-tifflibdir=$(STAGING_DIR)/usr/lib +HOST_WEBP_CONF_OPTS += \ + --enable-libwebpdemux \ + --enable-libwebpmux
What about the other configure options? It should also explicitly disable gif/gl/png/jpeg/tiff support (unless you need it?)
Committed with that fixed, thanks. I also pushed a cleanup patch to use --enable/--disable for png/jpeg/tiff for the target build.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot