lightning icon indicating copy to clipboard operation
lightning copied to clipboard

Build: Skip contrib/pyln-grpc-proto ?

Open IngwiePhoenix opened this issue 1 year ago • 5 comments

Issue and Steps to Reproduce

Hello there,

I am trying to migrate my btc/cln stack into an incus Alpine 3.19 container, however I am facing issues while building v24.02.2: grpc_tools.protoc is missing, and while APK provides py3-grpcio, it does not provide py3-grpcio-tools. Thus, this particular module can not be built.

Hence, I would like to skip it. Is there a way - like a configure flag - I can do that?

Thanks!

getinfo output

None; my node is offline. Migrated from my previous setup with OpenWrt to Debian and Alpine in Incus as part of the Kubernetes-restructure of my network.

Kind regards, Ingwie

IngwiePhoenix avatar Apr 27 '24 15:04 IngwiePhoenix

Concept ack for this, compile cln on odroid is a very log process due the grpc depencencies

vincenzopalazzo avatar Apr 28 '24 21:04 vincenzopalazzo

i believe there is a flag to disable building the rust crates, something like ./configure --disable-rust iirc

daywalker90 avatar Apr 30 '24 19:04 daywalker90

Yes, you can en- or disable rust; but you can not do the same for the gRPC stuff, let alone for the Python modules - which I personally see no use for except perhaps for the built-in REST API, which in return doesn't need any of the gRPC stuff either as it is launched as a plugin that consumes STDIN/STDOUT.

IngwiePhoenix avatar Apr 30 '24 20:04 IngwiePhoenix

the grpc stuff IS only from building the rust crate cln-grpc, i'm pretty sure i did not need a protoc compiler or grpc dependencies if i did not build that crate

daywalker90 avatar Apr 30 '24 20:04 daywalker90

@daywalker90 are you sure that it is not required also by pyln-client? I remember some hidden dependencies

vincenzopalazzo avatar May 01 '24 18:05 vincenzopalazzo