Am 13.01.2023 um 04:30 schrieb Hiroo Ono (小野寛生):
I made a port of MongoDB Compasshttps://www.mongodb.com/docs/compass/current/ .
As it is an electron app, I need to use "npm install" to build it.
npm install does not work without network connection, while poudriere
allow network connection only at fetch time.
As a result, I need to do bunch of things in fetch mode, and the
Makefile became as attached. Is this acceptable as a port?
If not, I need to rework the Makefile to do npm install at build time,
but that makes the port not officially buildable I think. (though to
each of us, there is ALLOW_NETWORKING_PACKAGES option in
poudriere.conf)
there are several frameworks that bring there own dependency management
with it (go, node, rust, ...).
Go also needs to fetch dependencies and maybe it is an idea to do the in
a post-fetch step.
I and go is doing it be using something similar like this:
https://cgit.freebsd.org/ports/tree/devel/gitaly/Makefile#n60
Maybe this can be done in a similar way for npm?
Gruß
Matthias
--
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook