Enable network during compile for Flutter app recipes 52/30152/2
authorScott Murray <scott.murray@konsulko.com>
Wed, 31 Jul 2024 17:14:54 +0000 (13:14 -0400)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 1 Aug 2024 10:05:58 +0000 (10:05 +0000)
Explicitly enable network access during compilation in the Flutter
app recipes for now to avoid hangs when building on systems where
BitBake's network sandboxing is working.  The underlying issue has
been raised with upstream, but may take a while to resolve, so we
need to work around it in the meantime.

Bug-AGL: SPEC-5215

Change-Id: I8cd9cad626addd85ff77a22e221a817b09f0e73f
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/30152
Tested-by: Jenkins Job builder account
ci-image-boot-test: Jenkins Job builder account
ci-image-build: Jenkins Job builder account
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb
recipes-demo/flutter-ics-homescreen/flutter-ics-homescreen_git.bb

index b09156b..2c9109c 100644 (file)
@@ -33,6 +33,8 @@ APP_CONFIG = "flutter_cluster_dashboard_on_bg.json"
 
 SYSTEMD_SERVICE:${PN} = "flutter-cluster-dashboard.service"
 
+do_compile[network] = "1"
+
 do_install:append() {
     install -D -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service
 
index 45d75b7..23e58af 100644 (file)
@@ -35,6 +35,8 @@ DISABLE_BG_ANIMATION = "-DDISABLE_BKG_ANIMATION=true"
 DISABLE_BG_ANIMATION:rcar-gen3 = ""
 APP_AOT_EXTRA:append = " ${DISABLE_BG_ANIMATION}"
 
+do_compile[network] = "1"
+
 do_install:append() {
     install -D -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service