IRC channel logs

2026-04-28.log

back to list of logs

<nox>Is it possible to add an arbitrary string to grub.cfg ?
<nckx>nox: I don't think so. Guix's menuentry records are unreasonably restrictive (it won't even let you boot ‘linux’ without an ‘initrd’ IIRC). Newlines in ‘file names’ (and ignoring ugly boot-time errors) are a hacky work-around.
<rogerfarrell>I just read up on the Hurd VM service. Is there something like it for Guix system containers?
<rogerfarrell> https://guix.gnu.org/manual/devel/en/html_node/Virtualization-Services.html#The-Hurd-in-a-Virtual-Machine
<nox>> nox: I don't think so. Guix's menuentry records are unreasonably restrictive (it won't even let you boot ‘linux’ without an ‘initrd’ IIRC). Newlines in ‘file names’ (and ignoring ugly boot-time errors) are a hacky work-around.
<nox>It also doesn't provide `insmod lvm`, even with luks.
<nox>lvm.mod isn't even part of another package
<nox> https://codeberg.org/guix/guix/pulls/8194 wrote a small PR for this
<GalaxyNova>Hey can someone help me figure out why my .guix-channel file isn't working?
<GalaxyNova> https://thelounge.rm-r.org/uploads/4c131386ce9ca9f2/.guix-channel
<GalaxyNova>I get: `.guix-channel:12:4: error: channel dependency has an invalid introduction field`
<apteryx>how can I tell the exit status of a one-shot? service?
<Rutherther>GalaxyNova: the only thing I see is that you do not have two spaces in the middle of the fingerprint. Not sure that's a requirement, though
<sneek>Welcome back Rutherther, you have 1 message!
<sneek>Rutherther, nckx says: I think you should go ahead and push https://codeberg.org/guix/guix/pulls/6213 if you want to.
<Rutherther>I should want to. I should. :)
<Rutherther>And even moreso I should've done it two months ago :)
<Rutherther>But it's not so trivial, just pushing this to master will not fix it fully, also need to backport to 1.5.0 branch and fix in all translations
<apteryx>(info "(shepherd) Defining Services") says "As for other services, the ‘start’ method of a one-shot service must return a truth value to indicate success, and false to indicate failure.", but that's not what I'm seeing when I use make-forkexec-constructor with a program-file guile script that throws an exception as argument
<Rutherther>apteryx: you shouldn't fork in oneshots in the firstplace. Make forkexec will return the pid, so always truthful value
<apteryx>but it says "as for other services"; so that's not true?
<apteryx>I'm pretty sure that's how make-forkexec-constructor is used "for other services", right?
<apteryx>I guess the difference is that in this case the service is short lived, so shepherd doesn't do some monitoring of the service life (it's expected to stop), while it would on the pid of a long lived (not one-shot) service?
<Rutherther>apteryx: other services accept PID as start value that forkexec gives them
<apteryx>would raising an exception in a one-shot start lambda procedure counts as a falsy value? or do I need to handle exceptions and return #f?
<Rutherther>apteryx: yes, it does not do service monitoring at all since it doesn't have a way to do that, as it accepts truthful value for success and failjre for not. Not pid
<apteryx>thanks, I'm starting to see clearly.
<Rutherther>apteryx: raising exceptions should be fine
<apteryx>by the way, our code base has lots of make-forkexec-constructor in one-shot?, perhaps worth raising an issue about that
<apteryx>their exit status will be silenced (always passing)
<apteryx>ah... I was using make-forkexec-constructor because I wanted to run it as a specific user/group
<apteryx>I guess I need to do my own waitpid and check for the exit code manually then
<apteryx>probably simpler to just use 'su' if it's on PATH though.
<rutherotg>oh yeah that's not good that in Guix there are services that do that. Presumably. But just changing them to something like spawn can also be problematic
<rutherotg>because ideally it should not really be blocking for too long
<rutherotg>a
<rutherotg>apteryx: I've been meaning to ask you for a couple of weeks about something you said
<apteryx>I hope I remember
<rutherotg>apteryx: you said something like it would be nice having certificates as an extensible service in guix system. Why is that since you can just add a package with etc/ssl/certs in its output to `packages` and add certificates like that?
<apteryx>maybe I was thinking about the new way it works for gnutls; it now relies on p11-kit, which is itself configured to trust the nss-certs by default
<apteryx>that's all configurable/overridable via p11-kit and configuration files, I had read, but there could be abstractions in Guix to do that more easily, perhaps. I don't remember if that's what I was hinting at :-)
<rutherotg>I see, I will check it out
<apteryx>commit 38e7132dcfd was the one making use of p11-kit in gnutls
<rutherotg>well I tried to 'hunt' you sooner but the timezone difference is just too much to not miss you typically
<rutherotg>so I understand it's already too late for you to remember well
<apteryx>no worries
<rutherotg>thanks, though
<efraim>I'm working on a maybe-nasm package input and of course I chose a package that takes a while to build :/
<test202020>hello guys. how to clean all profiles and save only from home reconfigure?
<ebrasca>How to program vulkan app in Guix?
<trev>learn c++
<ebrasca>Make file can't find the vulkan libraries, that is the problem.
<identity>i doubt a Makefile can find anything
<ebrasca>It can't find then things in guix
<identity>‹it›, being? you would need to be more informative for us to be able to give you help
<ebrasca>I did follow https://vulkan-tutorial.com/Development_environment#page_Vulkan-Packages and when I "make test" it did not find glfw.
<ebrasca>Here the log https://paste.c-net.org/EvadingCarve
<efraim>add pkg-config to your environment and try adding `pkg-config --cflags glfw3` to your CFLAGS
<efraim>'-lvulkan' looks like it would come from the vulkan-loader package
<ebrasca>It is stated in the tutorial that I need vulkan-loader, thank you.
<efraim>you might need to adjust the LDFLAGS also to use `pkg-config --libs` on the different libraries you're linking to
<ebrasca>Not sure how to use pkg-config, trying to figura thet part out
<efraim>a quick look would suggest changing "-lglfw" to `pkg-config --libs glfw3` (with the backticks so it gets evaluated)
<efraim>try messing around with the different options from `pkg-config -h`, but in general I default to assuming pkg-config --cflags for the CFLAGS and pkg-config --libs for the LDFLAGS
<ebrasca>Thx, time to experiment a bit
<ebrasca>efraim: I got past the glfw error, thank you!