IRC channel logs
2025-09-14.log
back to list of logs
<ajarara>hi #guix, I'm packaging a rust app. In the tests, it uses a std library behind a cfg. I want to strip that config. The regex " #\\[cfg\\(feature = \"ssh\")]\n" works, but I want to narrow it down to only the occurence that's followed by a " use std::iter". That's the part that doesn't work. <ajarara> ((" #\\[cfg\\(feature = \"ssh\")]\n use std::iter;") <FuncProgLinux>Is it possible to use a package that guix thinks doesn't exist but actually does? <FuncProgLinux>I'm trying to patch my own libmateweather package because I have been blocked from testing for changes for a week and tried to use libxml2-next-for-grafting replacing libxml2 as a propagated input <FuncProgLinux>but when I try to trigger a rebuild, guix reports error: libxml2-next-for-grafting: unbound variable, which is a blatant lie because it's being called at gnu/packages/gnome.scm if it was unbound it should be everywhere except gnu/packages/xml.scm not selectively :/ <ieure>Are you using (gnu packages xml) in whatever defines your libmateweather variant? <ieure>That's the module where libxml2-next-for-grafting is defined. <ieure>If you paste the file with your variant in it, I can try to reproduce. <ieure>And what command are you running to build this? `guix build -f mate.scm'? <FuncProgLinux>ieure: I'm doing a channel workflow so I use ./pre-inst-env guix build libmateweather but I think I can extract it to a file :s <FuncProgLinux>I mean I can upload the changes to the channel, nobody else uses it anyways 😅 <ieure>I think the only thing which explains your issue is that your guix is behind the commit which added libxml2-next-for-grafting. <ieure>Since you're using the module. <FuncProgLinux>I'm at Generación 139 13 sep 2025 21:32:54 (eda0ae0185d3cff93ba962a0ea1635f139b61c56) <ieure>So just minimally reproducing what you're doing there, on a Guix after that commit, it works. <FuncProgLinux>I thought it was my dev env but I've reset my terminals & double-pulled just in case. I can confirm because I can see the package if I run guix edit libxml2 and it takes me to libxml2-next and the two packages are there <ieure>FuncProgLinux, You mentioned a pre-inst-env thing earlier, and I didn't ask, but that doesn't really make sense to me. pre-inst-env is only part of the guix channel, your stuff obviously isn't in there. <ieure>FuncProgLinux, So maybe your pre-inst-env is from before that commit? <ieure>FuncProgLinux, Cool, was about to ask. <FuncProgLinux>ieure: would it be spam if I send a link to the pre-inst-env? I know it works but It's...a bit cursed when you see it <ieure>None of that makes a lick of sense to me, but I'm into cursed things, so uh. fire away I guess <ieure>Well I guess this is just setting some paths at the end of the day. <ieure>But the only thing that makes sense to me is the guix you're building that package with doesn't have the libxml2-next-for-grafting package. <FuncProgLinux>Loaded guix repl -L ./channel and made sure I replicated your paste 1:1 <FuncProgLinux>The amount of incompetence to myself in these scenarios 🤦. I solved it through sheer luck <FuncProgLinux>Didn't test it. Pushed changes, upgraded guix, rebooted and it worked. Idk why the guix shell was using an outdated daemon/commit (or if it will keep doing it in the future?) but doing that definitively solved it for now <apteryx>our main browsers are about to all be up to date soon <apteryx>looks like updating ungoogled-chromium was more straightforward than qtwebengine; good! <natarasee>Hey all. I was trying to learn Guix using the QEMU VM image from the Guix downloads page, but when I boot it up it doesn't seem to have an /etc/config.scm file. Does anyone know why that might be? <Rutherther>yes, it is missing it, just copy the one for the current system out of /run/current-system/configuration.scm wherever <Rutherther>you will have to change the root filesystem to /dev/vda2 <natarasee>Ahh, right. I think I tried something like that (copying from a path from "guix system describe") but also pulled new updates as well, and had a couple other issues. <natarasee>I'm now trying to build my own VM from scratch using the install ISO. <natarasee>That'll probably be better for having a username, password, etc from the start. <janneke>hello nickname previously known as Guest2245! <roptat>is there a procedure to get a team branch? I'd like to create an ocaml-team branch and a java-team branch <roptat>or do I simply push a new branch to the repo? <janneke>roptat: i think that you can "just push", but etc/teams needs to list the existance and the members so you should create an entry with you as member of those first, i'd think <ColdSideOfPillow>What is the recommended method to pass test flags to `emacs-build-system'? <ColdSideOfPillow>I tried using `test-flags', but that does not seem to be a valid option. <janneke>ColdSideOfPillow: you can set #:test-command <ColdSideOfPillow>janneke: That's what I was thinking of as well. So I just do 'env FOO_FLAG="bar" make check'? <janneke>I'd say something like #:test-command #~(list "make" "check" "FOO_FLAG=bar") <retropikzel>I have Jenkins set up. I would like to allow running guix shell on the build nodes for the jenkins user but prevent package installation globally. Is there way to do it? <ColdSideOfPillow>janneke: Oh, I didn't know that make accepts flags as arguments in such a manner! <serok>hello guys do you know maybe why `guix system reconfigure` is crashing on `guix system: error: reading file `/gnu/store/w3837anzywssz52ax6gx4q95yk03s75l-module-import-compiled.drv': No such file or directory` and how to fix it ? <makx>whats going on with webkitgtk :( <apoorv569>futurile: Hey, sorry to bother, but did you manage to take a look at those PRs? <ColdSideOfPillow>aight so I've been debugging for 20 minutes a package definition I wrote <Franciman>ColdSideOfPillow: use a automatic paren handler software <ColdSideOfPillow>Franciman: I've already set up Emacs to handles parenthesis for me. The problem was not that the parenthesis were not balanced, but that they were not placed at the correct positions. <nsten>Hi. I'm still newbie with guix and trying to install proton bridge. So far I was able to build it in the guix shell. That was not very hard. Then I tried to use `guix build` but this part has been a bit hard for me. It is a go project but it is using Makefile, so I have tried to use gnu-build-system instead of go-build-system. First I had trouble with gocache not having permissions to create directory in the build container. I was able <nsten>to fix that. Now the issue is that go wants to download dependencies but cannot connect to the internet from the build container. Is that even possible in the gnu-build-system? Should I swap to go-build-system? <nsten>Or if there is some other way to install it without building it my self, I would be happy to hear any suggestions how to proceed. <kestrelwx>Have you made sure the go module dependencies are already packaged? <nsten>I don't know how to do that. I have guix.scm which will get the sources from the github and runs the `make build-nogui` target. That will cause fetching of the dependencies from the internet so they are not prepackaged. I guess `go download` should be run after the unpack phase but that would require access to the internet again. <kestrelwx>You could take a peek at how some other go packages are done with 'guix edit ...'. You would need to add the go dependencies to the inputs list, and if they are not packaged yet, you'd have to package them first. I think you would rather use the 'go-build-system' and if needed modify the build phase to use the makefile. <kestrelwx>As a hack you could build it without the build daemon and just use 'local-file' as source, if you need it available system wide. <nsten>Okay. It did not occur to me to put go dependencies as inputs. I will research and learn more about these things. Thank you for these pointers. <ieure>nsten, Build environments have no Internet access, no matter what build-system you use. <nsten>I understand it now :). It makes perfect sense and aligns well with the purely functional ideas (same inputs should lead to same outputs consistently). Having something from the network in the mix could lead to inconsistency. <abbe>Could someone unbreak guix pull <ieure>Looking. Someone removed the package without removing the service that uses it. <simendsjo>abbe: Pull a commit from before the deletion. I just pulled the following: guix pull --commit=7562b50c02eae16ae917999a4988aa0ab15f1354 <ieure>abbe, Have a patch, pulling to make sure the problem is fixed before I commit it. <trev>folks, need some assistance...i'm writing a manifest with a bunch of local packages that are basically a giant dependency tree until the binary. For some reason PKG_CONFIG_PATH doesn't get set when building a library that depends on another local one. I actually see the .pc file generated in the store for the dependency. Is this something with my environment not sourcing something when i enter the guix shell with the manifest?