IRC channel logs

2024-08-08.log

back to list of logs

<dckc>pola is short for Principle of Least Authority. see https://en.wikipedia.org/wiki/Principle_of_least_privilege , https://www.youtube.com/watch?v=br9DwtjqmVI
<nigko>jaft_r: It is very strange. I have installed a fresh Guix System with a very basic configuration in a virtual machine, added https://gitlab.com/anigko/test-channel.git to channels.scm and obtained exectly the same error for 'guix build test-repo': No such file or directory "content".
<nigko>jaft_r: In the virtual mashine guix channel is pinned to commit "9a2ddcc". May be your machine is at older guix commit which does not have this bug.
<jaft_r>nigko: Hmm; weird, indeed. No; I have a script which runs every 4 hours and pulls to tell me if there're any updates. I'm on commit 7bf1d7aeaf, the latest one.
<Rutherther>nigko how did you add this to your channels.scm? Did you make sure to not share the host store with the VM? Or did you try guix gc with options to verify the store and its contents?
<nigko>Rutherther: by adding "(channel (name 'test-channel) (url "https://gitlab.com/anigko/test-channel.git") (branch "main"))" to list of channels in ~/.config/guix/channels.scm file.
<nigko>Rutherther: In creating VM I followed https://guix.gnu.org/en/manual/devel/en/html_node/Installing-Guix-in-a-VM.html guide.
<Rutherther>nigko okay, if you've downloaded the ISO then there should be nothing possibly corrupted from your store
<nigko>Rutherther: I have performed 'guix gc --verify=contents' and 'sudo guix gc --verify=repair' on both VM and host Guix System whithout any error.
<Rutherther>nigko good. Then I am out of ideas
<cnx>hi, could someone please trigger a rerun for https://qa.guix.gnu.org/issue/72512
<cnx>somehow i got my base commit newer than the infra's
<fnat>Is there any standard way to serialise to YAML in a Guix service or Guix Home service? E.g. if the app one wants to start expects a YAML configuration file.
<carpa>I recently moved to guix and am now trying to make my first package for a
<carpa>programming language I use that is not packaged.
<carpa>To build the language, after obtaining the sources through git, a shell script
<carpa>should be run.
<carpa>I'm a bit lost on how to make this happen with the build systems.
<carpa>In the docs I don't see a build system that runs a single shell script, so I'm
<carpa>guessing I need to pass by `trivial-build-system` and have some scheme
<futurile>carpa: I think generally the copy-build-system is suggested over trivial-build-system - as it has more of the basic stuff - https://guix.gnu.org/manual/en/html_node/Build-Systems.html
<futurile>cnx: a lot of people are away on holiday - if you want QA to rerun it I would just reroll your patch again and send it - the reroll with a new version will trigger QA to run it again (eventually)
<futurile>fnat: according to this https://notabug.org/ZelphirKaltstahl/awesome-guile/src/master/list.md#file-formats-yaml - there's a lib called guile-libyaml - link on that page
<cnx>thanks, futurile
<fnat>futurile: Hey, thanks! That's interesting, I might give it a try.
<fnat>I've put together this simple Guix Home service that writes a YAML configuration file for an app (Beets, a music metadata retriever and file manager).
<fnat>For now, the service configuration expects just a field or two (the bare minimum), all the other config options can be passed as extra values in a long YAML string.
<fnat>It works, but not exactly aesthetically pleasant.
<fnat>Perhaps the Guile YAML library might help serialising from a more Scheme-y format instead of using a long string.
<fnat>On a different note, I have a server where I've just introduced Guix Home and 'guix-home-service-type' for one of the users. If I now log as that user, I get a complaint re 'warning: XDG_RUNTIME_DIR doesn't exists'.
<fnat>I suppose I can manually create '/run/user/1000' and assign correct permissions/ownership, but I was wondering if there's a more declarative way.
<fnat>Am I missing any service in my user's home environment?
<f1refly>is there a list of recommended hardware I can use with linux-libre? I'm currently in the market for a gigabit ethernet usb dongle but I'm unsure what to get. The only thing I'm sure is supported is TPE-1000NET3 and I don't think I can buy it anywhere near me..
<Alx>Please update the version of the "xorg-server-xwayland" package to 23.2.6-1. Recently, I have been encountering issues similar to those described here: https://gitlab.archlinux.org/archlinux/packaging/packages/xorg-xwayland/-/issues/2
<faust700>hi guix!
<faust700>screen sharing is not working, on chrome wayland i got this output
<faust700>11182:11182:0808/151909.381871:ERROR:screen_capture_portal_interface.cc(48)] Failed to request session: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop
<faust700>[11182:11182:0808/151909.381886:ERROR:base_capturer_pipewire.cc(81)] ScreenCastPortal failed: 3
<faust700>[11182:11182:0808/151916.866099:ERROR:screen_capture_portal_interface.cc(48)] Failed to request session: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop
<faust700>i use sway wm
<faust700>please help, how i can fix that?
<fnat>Ha! The 'XDG_RUNTIME_DIR doesn't exist' issue is actually clearly addressed here! https://guix.gnu.org/manual/devel/en/html_node/Declaring-the-Home-Environment.html
<fnat>ACTION facepalms themselves for not reading the manual carefully.
<Altadil>faust700: I think you need xdg-desktop-portal for screesharing.
<faust700>Do any one know how to start xdg-desktop-portal-wlr ?
<Rutherther>I think it should get started automatically when you have Xdg desktop portal and dbus session. See https://github.com/emersion/xdg-desktop-portal-wlr/wiki/%22It-doesn't-work%22-Troubleshooting-Checklist for a list to troubleshoot
<faust700>Rutherther: how i can check is xdg portal started?
<Altadil>Hello everyone. Does anyone have a pointer to how to configure git for the cuirass user? I’m getting git errors (repository path is not owned by current user) and that in turn prevents cuirass from launching any job. Searching the Web gave a fix, but it has to go in the git config file for the cuirass user. :/
<fnat>A guix deploy fails after adding elogind to my configuration. The remote system becomes unreachable. Logging in on a console is also not an option, as the user gets logged out immediately. A reboot fixes things though.
<fnat>Looking at the logs I see mentions of 'pam_open_session: Error in service module' and 'policy plugin failed session initialization'.
<fnat>Any idea what the problem could be here?
<faust700>Do any one know how to run  xdg-desktop-portal and how i can ensure is it runing?
<nigko>Hello Guix! I am trying to figure out what is wrong with building package from repository which is packages repository and channel at the same time, see https://guix.gnu.org/en/cookbook/en/html_node/The-Repository-as-a-Channel.html. I have created test-channel repository https://gitlab.com/anigko/test-channel.git and I have got error "No such file
<nigko>or directory 'content'" when trying run 'guix build test-channel'. It turns out that the reason for this error is the wrong source checkout used for building the package. This can be seen by lowering source object of test-channel in 'guix repl':
<nigko>,use (test-repo-package)
<nigko>,use (guix packages)
<nigko>(define src (package-source test-repo))
<nigko>,use (guix monad-repl)
<nigko>,lower src
<nigko>which produces /gnu/store/nzjyc...-test-repo-checkout path in the store. The problem with this path is that it does not contain the source of the package (i.e. the content of the repository root directory), but instead the content of the ~/.config/guix/current/share/guile path. I do not know why.
<nigko>* 'guix build test-repo' (not 'guix build test-channel')
<nigko>It is important that building test-repo package in 'guix repl' is a way to reliably reproduce the bug
<nigko>in contrast to 'guix build test-repo' command which does not always fail:
<nigko>,use (test-repo-package)
<nigko>,use (guix monad-repl)
<nigko>,lower test-repo
<faust700>Do any one know how to run  xdg-desktop-portal and how i can ensure is it runing?
<cow_2001>`guix shell kdenlive -- kdenlive` crashes with "QPaintDevice: Cannot destroy paint device that is being painted". it's a side installation on a flavour of debian
<faust700>Hi guix!
<faust700>Do any one know, how to run xdg-desktop-portal? i use sway wm
<Rutherther>please don't spam the same question over and over again
<faust700>sorry
<vagrantc>*sigh* new test suite failures on Debian build guix with no in-guix code changes.
<vagrantc>some of the tests/style.scm are apparently removing some whitespace ...
<vagrantc>ACTION shakes first in the air
<Rutherther>I would like to use "let" inside of package to assign a list of package into a variable. I then want to use this variable at two places - native inputs, and under phases for wrap-program. I called this variable "wrap-paths". I have a let block inside of a new phase I made. When I build it, I get "unbound variable: wrap-paths". I was thinking this could be because daemon doesn't have this variable, so I tried unquoting it, having ",wrap-paths". But...
<Rutherther>... this unquoted it as something like (#<package ..>), and it's erroring that it doesn't know this construct on evaluation.
<Rutherther>here is file with the package, it's the last one https://termbin.com/25si, here is the error when I try to unquote it https://termbin.com/4vo5