<leungbk>`gtags --skip-unreadable --skip-symlink` <- is this the right way to generate gtags for the scheme files in the guix repo? i appear to only get hits for the C files.
<bavier`>leungbk: idk that gtags works well for scheme source. otoh, I've heard geiser is a great tool for finding your way around scheme projects. I've personally not taken the time to really learn it.
<leungbk>the only thing i don't like about geiser for the guix repo is the fact that i have to use geiser-eval-buffer on every buffer to make the definition-hopping work, which takes some time.
<leungbk>well, every buffer in which i want to call the definition-jumping
<g_bor[m]>It seems that I would like to introduce a circular dependency into the module graph, which breaks stuff. However, the package I am defining belongs to that module, I am quite sure about that. What would be the best way to fix this?
<g_bor[m]>What I tried was to use select in the use module, to select only the package I need, but that does not work.
<mbakke>g_bor: What is the module cycle? Probably one of the packages will have to be moved.
<g_bor[m]>mbakke: it is benchmark and logging. I believe that a package named benchmark belongs to benchmark. I pushed it earlier today, and works fine. The other is a c++ logging library, I can imagine that it could be moved from logging. Wdyt?
<mbakke>g_bor: Including (gnu packages benchmark) from logging.scm should be fine, no?
<g_bor[m]>mbakke: another option would be to disable benchmarking on the logging library
<g_bor[m]>maybe I have something stale here, I am trying a make...
<g_bor[m]>the error I get is a bunch of failed to load module, unbound variable in module-lookup.
<g_bor[m]>As soon as I remove (gnu packages benchmark) it works fine. This looks like a dependency cycle to me...
***furrymcg1e is now known as furrymcgee
<kmicu>dGtlc3: so to clarify is Guix System already installed? Could you paste (on a paste service) ‘guix describe’ and ‘guix pull’ output?
<polezaivsani>Hey guix! Can somebody help me - i'm trying to install docker with guix on a foreign distro, but after having installed docker package, i don't see any dependencies (e.g. containerd) pulled into my profile. What am i missing?
<pkill9>polezaivsani: you might need the docker-cli package
<polezaivsani>pkill9: as i thought, the docker-cli gives you just the cli tool. And i still need to run the dockerd, which fails with the dependencies missing.
<pkill9>polezaivsani: when i go into a guix environment with docker, it download containerd as a dependency, but when i run dockerd it doesn't find containerd in the $PATH. I think you'll just have to install containerd as well
<pkill9>i think a patch for the package definition for docker wrapping dockerd with a $PATH pointing to containerd would be accepted
<polezaivsani>pkill9: is this the right way to go? i.e. doesn't having containerd as dep for docker mean that the dependencies will be installed too? i would be glad to figure it out and come up with a patch
<kmicu>Thank you dGtlc3: what about the output of ‘sudo guix system reconfigure /path/to/myconfig.scm’ (Please use /path/to/myconfig.scm not ~/myconfig.csm just be sure ;)
<polezaivsani>pkill9: with containerd installed manually, dockerd still fails for some other reason - wonder if i'd need to do so all the other packages mentioned in it's depencies list
<kmicu>dGtlc3: now the fun part: remove a random paren from myconfig.scm and execute reconfigure again.
<polezaivsani>pkill9: it's about devicemapper, but it's prob due to kernel config - i tried version from my native package manager and it shows the same. i'll tell more once i finish tweaking the kernel config
<dGtlc3>kmicu: I get an error, depending on which paren: missing closing paren, invalid field specifier, source expr failed to match any pattern
<anon43881>hello guys. can somebody tell me how I can get xorg working on guix. I installed xorg-server, xinit and drivers like xf86-video/xf86-input, but startx does not find X.
<pkill9>anon43881: the startx command from xinit is broken, I think there may be a service that provides a working startx command, I know there is a guide in an email somewhere that says how to get a working startx command, it's quite old now though
<pkill9>i dunno why it hasn't been fixed so it atleast works, even if it doesn't included a global system configuration as it's just a static package
<polezaivsani>pkill9: with a proper kernel, dockerd seem to be working with containerd installed manually.
<kmicu>dGtlc3: ok, so that config file is read correctly and everything should work. 🤷
<kmicu>dGtlc3: so I assume that if you add ‘hello’ to packages ‘(packages (cons hello %base-packages))’, then execute ‘sudo guix system reconfigure myconfig.scm’, (then to be sure execute ‘hash guix’) then ‘hello’ should be in your path. So the real issue is only with the keyboard layout, yes?
<kmicu>dGtlc3: so I think you need to replace the last line with ‘(services (cons (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout))) %desktop-services)’ and that should work.
<nckx>dGtlc3: Is your keyboard layout incorrect in GRUB or the Linux VT?
<nckx>You're getting several test errors, you might have to disable that last one (or not; I didn't look into it). The /homeless-shelter one means the test tries to write to $HOME, which is set to that non-existent directory by default.
<saslibre>nckx: or where do i add the xf86-video-openchrome?
<nckx>saslibre: No idea. I only know that xf86-video-openchrome was never part of %default-xorg-modules. It was never removed. If you didn't need it in 0.16, I wonder why X suddenly complains about it now.
<nckx>Marlin[m]: That's not right. It's failing before the test suite now… Could you paste the package?
<saslibre>nckx: I'm working on it right know, thanks
<nckx>saslibre: I can't give you exact syntax, but it could look something like this: (services (cons (set-xorg-configuration (xorg-configuration (modules (list xf86-video-openchrome xf86-input-libinput …)))))
<nckx>Of course that needs to be adapted to your configuration (cons is probably not appropriate) and is 100% untested.
<nckx>And the whole openchrome error might be a red herring to begin with.
<nckx>Marlin[m]: That makes more sense than the first ☺
<nckx>(Marlin[m]: Feel free to nckx: me, I'm doing other things™ and not keeping much watch here.)
<nckx>Marlin[m]: Why I muck about with that: note that the version's ‘v’ needs to be moved to the URL, and that you should be using git-fetch here instead of GitHub's auto-generated /archive/ tarballs, which can change (this has actually happened!)…
<nckx>Marlin[m]: I'm going to hand it back to you now. If there's no way to make those tests work without those 2 ridiculously heavy dependencies (*and* they're not actually needed to run this package), just disable them. That's unreasonable.
*nckx notices… you might want to change the name of that phase. Whups.
<nckx>str1ngs: Our xorg-configuration calls them modules.
<g_bor[m]>I tired to investigate the cycle that would be produced by using benchmark in logging. The problem seems to be that benchmark uses maths, which in turn uses logging. Do you have an idea what would be a better module for a c++ logging library, so that I can move it to break this loop?
<str1ngs>never mind I confused driver with modules
<nckx>Marlin[m]: Nah, haven't used Nix in ages. Is that all you get? That's basically empty output. Or is everything without Warning an error? In any case, we seem to be speaking some very old Nix to nixpkgs :-/
*nckx thought the Nix integration was brand-spanking new, but guesses that doesn't include the importer.
<Marlin[m]>i just cloned the git repo from nixpkgs really
<kmicu>It lookes like openchrome is not loaded. And that’s the real issue. I wanted to switch to not-GDM to exclude gdm .cache issues or countless ‘Jun 15 10:46:35 localhost gdm: Child process 3575 was already dead.’ already reported on the ml.
<nckx>quiliro`: That was kmicu's helpful file, not mine. And wait, there's a gotcha with remove: there are two, but I forget which one is the bad one.
<xavierm02_>rubic88: I had that problem at some point. I had installed i3lock as a user (guix install). Installing it for the whole system (putting it in config.scm and guix system reconfigure) fixed it
<kmicu>I understand that but NixOS builds different kernels and we can test them in 1min with ‘boot.kernelPackages = pkgs.linuxPackages_latest;’ and I don’t like when NixOS gives better experience 😹
<rubic88>xavierm02_: If thomassgn's suggestion fails, I'll try your approach. Thanks.
<quiliro`>so i what config should i use now to test?
<kmicu>I forgot that set-xorg-configuration implicitly uses gdm-service.
<g_bor[m]>I have a package that needs gcc 6+, and I have read the issue about it, and it is still open. I'd like to know if pushing a package with a workaround is acceptable until it is resolved, or should I wait?
<kmicu>quiliro: yep, a recent kernel update changed things related to Openchrome support. For now you can stay on 4.19 and comment out ‘(kernel …)’ line in the config from time to time to check whether the issue is fixed in the latest kernel.
<quiliro>kmicu: how can i solve the keyboard issue? it is correctly defined on the config file...i checked twice
<kmicu>quiliro: I didn’t investigate why IceCat doesn’t work out-of-the-box but I installed some fonts, refreshed cache with fc-cache -r and that fixed the issue for me.
<kmicu>quiliro: I think the problem with ES layout is with my switch to slim. Let’s go back to GDM.