influxdb: Allow network access during do_compile
PATCH 1/1 influxdb: Allow network access during do_compile
Allow network access during do_compile to let Go modules be fetched at build time and avoid network unreachable errors.
ERROR: influxdb-1.8.10-r0 do_compile: Execution of '/tmp/work/core2-64-poky-linux/influxdb/1.8.10/temp/run.do_compile.1473782' failed with exit code 1 Log data follows:
| DEBUG: Executing shell function do_compile | go: cloud.google.com/go/[email protected]: Get "https://proxy.golang.org/cloud.google.com/go/bigtable/@v/v1.2.0.mod": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable | go: cloud.google.com/go/[email protected]: Get "https://proxy.golang.org/cloud.google.com/go/bigtable/@v/v1.2.0.mod": dial tcp: lookup proxy.golang.org on 77.88.8.1:53: dial udp 77.88.8.1:53: connect: network is unreachable | WARNING: exit code 1 from a shell command.
--- meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb +2 -0
@@ -24,6 +24,8 @@ GO_INSTALL = "\ inherit go-mod pkgconfig systemd update-rc.d useradd +do_compile[network] = "1" + INITSCRIPT_PACKAGES = "${PN}" INITSCRIPT_NAME = "influxdb" INITSCRIPT_PARAMS = "defaults"
Signature · 1 line
2.43.0
meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb GO_INSTALL = "\ · line 28
Quoted 3 lines · Alper Ak via lists.openembedded.org
meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb +2
-0+do_compile[network] = "1" +
This was just removed yesterday[1], it hasn't found its way to the master branch yet. It would be better if the original patch trying to fix this could be tweaked - if that is possible.
[1]: https://lists.openembedded.org/g/openembedded-devel/message/117947
Hi, thank you for pointing this out. I was fixing latest UNPACKDIR changes and after removed the S = "${WORKDIR}/git" line in the recipe, I tried to compile to be make sure and got "connect: network is unreachable" error. So I fixed with this way. I wasn't aware of the latest changes in GO.
I tried with poky and meta-openembedded master-next branch without adding this fix and got the same error.
Gyorgy Sarvari <[email protected]>, 21 Haz 2025 Cmt, 14:31 tarihinde şunu yazdı:
Quoted 10 lines · Alper Ak via lists.openembedded.org
meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb GO_INSTALL = "\ · line 28
Quoted 3 lines
meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb +2
-0+do_compile[network] = "1" +This was just removed yesterday[1], it hasn't found its way to the master branch yet. It would be better if the original patch trying to fix this could be tweaked - if that is possible.
[1]: https://lists.openembedded.org/g/openembedded-devel/message/117947