Skip to contentSkip to conversation

package/qt6grpc: new package

PATCH Superseded Jack Rubacha 2 participants 2 messages May 6, 2025 – May 8, 2025

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/qt6grpc: new package

---
 package/qt6/Config.in            |  1 +
 package/qt6/qt6grpc/Config.in    |  7 +++++++
 package/qt6/qt6grpc/qt6grpc.hash | 10 ++++++++++
 package/qt6/qt6grpc/qt6grpc.mk   | 34 ++++++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 100644 package/qt6/qt6grpc/Config.in
 create mode 100644 package/qt6/qt6grpc/qt6grpc.hash
 create mode 100644 package/qt6/qt6grpc/qt6grpc.mk
package/qt6/Config.in +1 -0
index 10594691cf..9c297b321e 100644
@@ -48,6 +48,7 @@ source "package/qt6/qt6charts/Config.in"
 source "package/qt6/qt6core5compat/Config.in"
 source "package/qt6/qt6declarative/Config.in"
 source "package/qt6/qt6graphs/Config.in"
+source "package/qt6/qt6grpc/Config.in"
 source "package/qt6/qt6languageserver/Config.in"
 source "package/qt6/qt6mqtt/Config.in"
 source "package/qt6/qt6multimedia/Config.in"
package/qt6/qt6grpc/Config.in new file +7 -0
new file mode 100644
index 0000000000..66adc85cfa
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_QT6GRPC
+	bool "qt6grpc"
+	select BR2_PACKAGE_HOST_QT6BASE
+	help
+	  This package corresponds the Qt GRPC module:
+
+	  https://doc.qt.io/qt-6/qtgrpc-index.html
package/qt6/qt6grpc/qt6grpc.hash new file +10 -0
new file mode 100644
index 0000000000..0ebcaaf2a0
@@ -0,0 +1,10 @@
+# Hash from: https://download.qt.io/official_releases/qt/6.8/6.8.1/submodules/qtgrpc-everywhere-src-6.8.1.tar.xz.sha256
+sha256  b1615c7096b012e5f42aea57c420d2ce21c906d0eda3ea373b09a47cf40b5e80  qtgrpc-everywhere-src-6.8.1.tar.xz
+
+# Hashes for license files:
+sha256  9f0490f18656c6f2435bd14f603ef0c96434d1825615363dce43abb42ed1dcce  LICENSES/BSD-3-Clause.txt
+sha256  110535522396708cea37c72a802c5e7e81391139f5f7985631c93ef242b206a4  LICENSES/GFDL-1.3-no-invariants-only.txt
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  LICENSES/GPL-2.0-only.txt
+sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  LICENSES/GPL-3.0-only.txt
+sha256  da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768  LICENSES/LGPL-3.0-only.txt
+sha256  40678d338ce53cd93f8b22b281a2ecbcaa3ee65ce60b25ffb0c462b0530846b2  LICENSES/Qt-GPL-exception-1.0.txt
package/qt6/qt6grpc/qt6grpc.mk new file +34 -0
new file mode 100644
index 0000000000..f443116ae0
@@ -0,0 +1,34 @@
+################################################################################
+#
+# qt6grpc
+#
+################################################################################
+
+QT6GRPC_VERSION = $(QT6_VERSION)
+QT6GRPC_SITE = $(QT6_SITE)
+QT6GRPC_SOURCE = qtgrpc-$(QT6_SOURCE_TARBALL_PREFIX)-$(QT6GRPC_VERSION).tar.xz
+QT6GRPC_INSTALL_STAGING = YES
+QT6GRPC_SUPPORTS_IN_SOURCE_BUILD = NO
+QT6GRPC_CMAKE_BACKEND = ninja
+QT6GRPC_LICENSE = GPL-3.0
+QT6GRPC_LICENSE_FILES = LICENSES/GPL-3.0-only.txt
+
+QT6GRPC_CONF_OPTS = \
+	-DQT_HOST_PATH=$(HOST_DIR) \
+	-DBUILD_WITH_PCH=OFF \
+	-DQT_BUILD_EXAMPLES=OFF \
+	-DQT_BUILD_TESTS=OFF
+
+QT6GRPC_DEPENDENCIES = \
+	host-pkgconf \
+	qt6base \
+	host-qt6grpc
+
+ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y)
+QT6GRPC_DEPENDENCIES += qt6declarative
+endif
+
+HOST_QT6GRPC_DEPENDENCIES = host-qt6base host-protobuf
+
+$(eval $(cmake-package))
+$(eval $(host-cmake-package))
Signature · 6 lines
2.49.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Jack,

Thanks for contributing this patch.

By the way, the commit message should be: "package/qt6/qt6grpc: new package" (not 'package/qt6grpc:...')

I have rebased and tested your package on top of qt 6.9.0.

Looks good so far.

tir. 6. mai 2025 kl. 06:06 skrev Jack Rubacha <[email protected]>:

Quoted 30 lines
---
 package/qt6/Config.in            |  1 +
 package/qt6/qt6grpc/Config.in    |  7 +++++++
 package/qt6/qt6grpc/qt6grpc.hash | 10 ++++++++++
 package/qt6/qt6grpc/qt6grpc.mk   | 34 ++++++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 100644 package/qt6/qt6grpc/Config.in
 create mode 100644 package/qt6/qt6grpc/qt6grpc.hash
 create mode 100644 package/qt6/qt6grpc/qt6grpc.mk
package/qt6/Config.in +1 -0
index 10594691cf..9c297b321e 100644
@@ -48,6 +48,7 @@ source "package/qt6/qt6charts/Config.in"
 source "package/qt6/qt6core5compat/Config.in"
 source "package/qt6/qt6declarative/Config.in"
 source "package/qt6/qt6graphs/Config.in"
+source "package/qt6/qt6grpc/Config.in"
 source "package/qt6/qt6languageserver/Config.in"
 source "package/qt6/qt6mqtt/Config.in"
 source "package/qt6/qt6multimedia/Config.in"
package/qt6/qt6grpc/Config.in new file +0 -0
new file mode 100644
index 0000000000..66adc85cfa

package/qt6/qt6grpc/Config.in line 3

Quoted 3 lines
package/qt6/qt6grpc/Config.in new file +3 -0
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_QT6GRPC
+       bool "qt6grpc"
+       select BR2_PACKAGE_HOST_QT6BASE

What is your intention when selecting this option?

package/qt6/qt6grpc/Config.in line 5

Quoted 3 lines
package/qt6/qt6grpc/Config.in new file +2 -0
+       help
+         This package corresponds the Qt GRPC module:

I think it is more correct to use the word 'provides' than 'corresponds' here, since the package provides atleast one more module.

package/qt6/qt6grpc/Config.in line 7

Quoted 2 lines
package/qt6/qt6grpc/Config.in new file +2 -0
+
+         https://doc.qt.io/qt-6/qtgrpc-index.html

I like to have a link to the official git repo here too.

Quoted 20 lines
package/qt6/qt6grpc/qt6grpc.hash new file +1 -0
new file mode 100644
index 0000000000..0ebcaaf2a0
@@ -0,0 +1,10 @@
+# Hash from:

https://download.qt.io/official_releases/qt/6.8/6.8.1/submodules/qtgrpc-everywhere-src-6.8.1.tar.xz.sha256
+sha256
<https://download.qt.io/official_releases/qt/6.8/6.8.1/submodules/qtgrpc-everywhere-src-6.8.1.tar.xz.sha256+sha256>
b1615c7096b012e5f42aea57c420d2ce21c906d0eda3ea373b09a47cf40b5e80 qtgrpc-everywhere-src-6.8.1.tar.xz

package/qt6/qt6grpc/qt6grpc.hash new file +3 -0
+
+# Hashes for license files:
+sha256  9f0490f18656c6f2435bd14f603ef0c96434d1825615363dce43abb42ed1dcce

LICENSES/BSD-3-Clause.txt
+sha256 110535522396708cea37c72a802c5e7e81391139f5f7985631c93ef242b206a4 LICENSES/GFDL-1.3-no-invariants-only.txt

Quoted 9 lines

+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSES/GPL-2.0-only.txt
+sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSES/GPL-3.0-only.txt
+sha256 da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768 LICENSES/LGPL-3.0-only.txt
+sha256 40678d338ce53cd93f8b22b281a2ecbcaa3ee65ce60b25ffb0c462b0530846b2 LICENSES/Qt-GPL-exception-1.0.txt

You hashes for more filen than in _LICENSE_FILES.

Quoted 20 lines
package/qt6/qt6grpc/ renamed from package/qt6/qt6grpc/qt6grpc.mk +0 -0

qt6grpc.mk
new file mode 100644
index 0000000000..f443116ae0

package/qt6/qt6grpc/qt6grpc.mk new file +9 -0
@@ -0,0 +1,34 @@
 
+################################################################################
+#
+# qt6grpc
+#
 
+################################################################################
+
+QT6GRPC_VERSION = $(QT6_VERSION)
+QT6GRPC_SITE = $(QT6_SITE)
+QT6GRPC_SOURCE =

qtgrpc-$(QT6_SOURCE_TARBALL_PREFIX)-$(QT6GRPC_VERSION).tar.xz

package/qt6/qt6grpc/qt6grpc.mk line 14

Quoted 5 lines
package/qt6/qt6grpc/qt6grpc.mk new file +5 -0
+QT6GRPC_INSTALL_STAGING = YES
+QT6GRPC_SUPPORTS_IN_SOURCE_BUILD = NO
+QT6GRPC_CMAKE_BACKEND = ninja
+QT6GRPC_LICENSE = GPL-3.0
+QT6GRPC_LICENSE_FILES = LICENSES/GPL-3.0-only.txt

You only list the toplevel target license file here, but you list hashes for most of the license files.

package/qt6/qt6grpc/qt6grpc.mk line 20

Quoted 7 lines
package/qt6/qt6grpc/qt6grpc.mk new file +6 -0
+
+QT6GRPC_CONF_OPTS = \
+       -DQT_HOST_PATH=$(HOST_DIR) \
+       -DBUILD_WITH_PCH=OFF \
+       -DQT_BUILD_EXAMPLES=OFF \
+       -DQT_BUILD_TESTS=OFF

I think you follow the same pattern as in the other qt6 pacakges, but I think it is better to order the optons alpabetically:

QT6GRPC_CONF_OPTS = \
       -DBUILD_WITH_PCH=OFF \
       -DQT_BUILD_EXAMPLES=OFF \
       -DQT_BUILD_TESTS=OFF \
       -DQT_HOST_PATH=$(HOST_DIR)

package/qt6/qt6grpc/qt6grpc.mk line 25

Quoted 6 lines
package/qt6/qt6grpc/qt6grpc.mk new file +5 -0
+
+QT6GRPC_DEPENDENCIES = \
+       host-pkgconf \
+       qt6base \
+       host-qt6grpc

The same applies here:

QT6GRPC_DEPENDENCIES = \
       host-pkgconf \
       host-qt6grpc \
       qt6base

package/qt6/qt6grpc/qt6grpc.mk line 31

Quoted 7 lines
package/qt6/qt6grpc/qt6grpc.mk new file +6 -0
+
+ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y)
+QT6GRPC_DEPENDENCIES += qt6declarative
+endif
+
+HOST_QT6GRPC_DEPENDENCIES = host-qt6base host-protobuf

For me this is more readable:

HOST_QT6GRPC_DEPENDENCIES = \
       host-qt6base \
       host-protobuf
Quoted 6 lines

+
+$(eval $(cmake-package))
+$(eval $(host-cmake-package))
--
2.49.0

Best Regards,
Roy

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot