diff mbox series

[meta-oe] influxdb: Allow network access during do_compile

Message ID 20250621095506.1484044-1-alperyasinak1@gmail.com
State New
Headers show
Series [meta-oe] influxdb: Allow network access during do_compile | expand

Commit Message

Alper Ak June 21, 2025, 9:55 a.m. UTC
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/bigtable@v1.2.0: 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/bigtable@v1.2.0: 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.

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

Comments

Gyorgy Sarvari June 21, 2025, 11:31 a.m. UTC | #1
On 6/21/25 11:55, Alper Ak via lists.openembedded.org wrote:
> +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
Alper Ak June 21, 2025, 12:03 p.m. UTC | #2
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 <skandigraun@gmail.com>, 21 Haz 2025 Cmt, 14:31
tarihinde şunu yazdı:
>
> On 6/21/25 11:55, Alper Ak via lists.openembedded.org wrote:
> > +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
diff mbox series

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 cc305f6e8d..e9164e0507 100644
--- a/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb
+++ b/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb
@@ -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"