Conversation
Notices
-
Embed this notice
anna (navi@social.vlhl.dev)'s status on Wednesday, 16-Oct-2024 11:23:46 JST anna tbh i kinda wish portage used posix sh instead of bash
would be cool (says the gremlin)- Haelwenn /элвэн/ :triskell: likes this.
-
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Wednesday, 16-Oct-2024 11:28:44 JST Haelwenn /элвэн/ :triskell: @navi Well purely posix sh would kind of suck but I think something like openrc initscripts could be neat, or at least allow ksh extensions. -
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Wednesday, 16-Oct-2024 11:32:11 JST Haelwenn /элвэн/ :triskell: @navi Yeah but you get the #!/bin/openrc-run thing and so can effectively extend the shell nicely and still keep most of it declarative.
-
Embed this notice
anna (navi@social.vlhl.dev)'s status on Wednesday, 16-Oct-2024 11:32:15 JST anna @lanodan openrc init scripts are supposed to be posix though (we do use things that are on every posix shell but not really on the spec, like `local`, but still, supposed to be parseable by any /bin/sh) -
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Wednesday, 16-Oct-2024 11:43:40 JST Haelwenn /элвэн/ :triskell: @navi Yeah and the `depend()` part is effectively directly relevant to build recipes (*DEPEND variables), in fact pretty sure having something command-like for declaration of dependencies would allow to be a bit more expressive (say correctly managing static-libs) and be less weird when like python library dependencies are involved. -
Embed this notice
anna (navi@social.vlhl.dev)'s status on Wednesday, 16-Oct-2024 11:43:44 JST anna @lanodan that shebang does basically two things
dependency resolution, so well, depend() works and starts stuff it depends on
then call the actual script through /lib/rc/sh/openrc-run.sh (soon to be /usr/libexec/rc) which defines the helper functions (like default `start` and `stop`, loading the supervisor=...) and such
and portage would be similar, since it already has /usr/lib/portage/python-*/*.sh scripts, so if we do that with bash already, similar would be posix sh defining helper functions there -
Embed this notice
anna (navi@social.vlhl.dev)'s status on Wednesday, 16-Oct-2024 11:46:07 JST anna @lanodan i would like having depend be a declarative-ish function like in openrc, would be neat
tho we'd need some better syntax than what openrc does bc ebuilds dependency graphs get a lot more complex than openrc'sHaelwenn /элвэн/ :triskell: likes this. -
Embed this notice
翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Wednesday, 16-Oct-2024 19:35:53 JST 翠星石 @navi I'm proud of Gentoo of getting at least that thing right.