[meta-oe,3/3] influxdb: Enable network during do_compile

Message ID 20220111202225.1526283-3-raj.khem@gmail.com
State New
Headers show
Series [meta-python,1/3] python3-matplotlib: Do not use setuptools_scm_git_archive | expand

Commit Message

Khem Raj Jan. 11, 2022, 8:22 p.m. UTC
This should actually be fixed in the package's build system to not
do the network access during compile task but go modules are invoked
during do_compile which needs to access the network.
Lets workaround it for now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ross Burton Jan. 11, 2022, 8:49 p.m. UTC | #1
On Tue, 11 Jan 2022 at 20:22, Khem Raj <raj.khem@gmail.com> wrote:
> +do_compile[network] = "1"

Can you add a comment making it clear in the recipe why this is here
and that it is a short-term measure?

(ditto for the other patches)

Ross

Patch

diff --git a/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb b/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb
index b2899ec381..db453c0849 100644
--- a/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb
+++ b/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb
@@ -27,6 +27,8 @@  SRCREV = "688e697c51fd5353725da078555adbeff0363d01"
 
 inherit go-mod pkgconfig systemd update-rc.d useradd
 
+do_compile[network] = "1"
+
 USERADD_PACKAGES = "${PN}"
 USERADD_PARAM:${PN} = "--system -d /var/lib/influxdb -m -s /bin/nologin influxdb"