IRC channel logs
2024-11-02.log
back to list of logs
<wakyct>hello, I'm having trouble finding a process via top/ps/GUI task manager (in xfce) which my power manager says is preventing my application from sleeping (when I press the sleep hotkey) <wakyct>this might not be a Guix issue but is there some other way to see a process that might be running besides what I mentioned? <wakyct>oh and I'm finding which process it is with dbus-send <wakyct>so when I search on the dbus-send result, I can't find the process via the tools mentioned <wakyct>this has started happening after a reconfigure a couple of days ago <wakyct>sorry I meant preventing my laptop from sleeping ;p <ieure>What's the process? You checked `ps aux' and its name isn't in there anywhere? <wakyct>it's my browser, sorry I didn't even know about ps aux until just now, thanks <ieure>Is it running, but not showing any windows? <ieure>Would think that if it was preventing sleep, you could quit it, then sleep. <wakyct>yes, it shows up in ps aux, but not ps or top <wakyct>is that normal? sorry my linux knowledge is pretty basic <ieure>Bare `ps' only shows you processes you own which are running on the same pty, it's pretty useless. It should definitely show up in top (or htop, which is nicer). <wakyct>I'm searching in top via 'L' then the string, is that not right? <ieure>Maybe you didn't scroll down the process list in top? pgdn/pgup will scroll. <ieure>It should show up with L. But note that at least Firefox/derived browsers do weird stuff with their process names, so you get a lot of them titled "Isolated Web Content" -- which won't match a search for icecat/mullvad/librewolf/torbrowser/whatever. <ieure>I usually use `ps axuwwww | grep -i some-program-name' to find processes on the CLI. Emacs has proced, which I use more often. <wakyct>thanks ieure, that's very helpful <wakyct>actually I'm dumb as usual and I was wrong, no it doesn't show up in ps aux <wakyct>so it's some other process name like you're saying, or I'm not understanding dbus-send <wakyct>which just says the browser name <ieure>Not sure what command you're running, but existence of some dbus service doesn't imply that anything is running. dbus will launche processes on demand to handle messages. <vagrantc>guix refresh --list-dependent python-dbus-python ... Building the following 1796 packages would ensure 3987 dependent packages are rebuilt ... <wakyct>yeah, that echoes what I'm seeing in searching the issue <vagrantc>yup, a9abf9a7b30f6801e122cae759df87b44c458773 should not have just gone to master ... <vagrantc>i suspect the reordering of the inputs might be what triggered the rebuild <vagrantc>yup, putting the inputs back the way they were fixes it. <noe`>who is ISO-8859-1 and why does he keep breaking my unicode >:( <wakyct>has anyone run into problems viewing heif images? I have ristretto and libheif, and the mime type is associated correctly, but ristretto can't read the file <wakyct>Thunar can read the thumbnails though <darkk99>is there a guide on how to use nix on guix? <PotentialUser-83>Here is a small suggestion to this community. Why don't we take advantage of the nix situation and start creating more guix content for nix users? <constantine>the Nix drama is actually why I'm installing Guix on a VM right now :-) <constantine>is this an appropriate place for troubleshooting a Guix System installation, by chance? <PotentialUser-83>I wonder what a hlissner/dotfiles like guix configuration would look like tbh <PotentialUser-83>Yes! He has a very cool nix config structure that I am trying to replicate ATM. But it ain't looking bright with my guile knowledge <PotentialUser-83>The cool thing is we have a channels.scm that we can use as an alternative for flake inputs (to a very limited degree, since we cannot nitpick from the damn channels) <PuercoPop>in (guix build emacs-utils) there is an %emacs parameter, which is used to determine the emacs package to compile elisp files with afacit. How would I rebinding it to change the emacs to build my emacs packages from emacs to emacs-next? consult is running into some errors because of the version mismatch between the byte-code and emacs version I'm running <constantine>PotentialUser-83, I barely know Nix but isn't flakes a point of contention in the Nix community right now? It seems prudent for Guix to leverage that kind of functionality <itflakes>So if you familiar to both of NixOS and Guix, what do you think of them? <itflakes>I like Nix very much, mainly its usage. But I don't like some of its practices. So I want to try Guix. At the same time, I want to know if Guix is a fork of Nix, that is, based on cppnix? <itflakes>I have some suggestions to help guix influence NixOS users. 1. Improve the website and art design, make it more tiled, simple and modern, and avoid problems with blur and mobile phone adaptation. 2. It might be better to use a self-built gitlab. I really like the convenience of Github. Many people contribute to nixpkgs, but Guix can't do it, but I don't like Github very much. 3. Keep it transparen <itflakes>For example, make it easy for users to find the information they want, such as what is updated and upgraded each time (you can learn NextJS, I can see what they update directly on the homepage every time), make a more intuitive site map, and optimize the site layout and link distribution, and make it easy to find sample code and FQA. <PuercoPop>I disagree with a lot of the suggestions that you mention itflakes, but I agree that there are some things that Guix can learn from nix. I don't think that switching to GitLab would be a good idea, but I do think there is value in automating more things in the CI (Cuirass). Like merging with a comment/command for example. And implementing 'merge trains' to reduce rebuild-times. <PuercoPop>One thing that moving merge responsability (integration) to the CI is that one can give merge access to parts of the monorepo. Being more liberal with the 'commit bit'. Which would hopefuly help with the response time to PRs <itflakes>Our NixOS China community has a lot of people who contribute to nixpkgs a lot <PotentialUser-83>Either that or we spin up a Dahl configured package manager written in haskell <PuercoPop>Is there an easy way to capture the warnings when building guix from git? (./bootstrap;./configure;make) <hiecaq`>Hi Guix, is it doable to build the installation image on a foreign distro? <hiecaq`>vhns: Cool, time to make my full migration ;) <attila_lendvai>what am i doing wrong? this doesn't seem to work: ((options->transformation '((with-commit . "23.12.0=24.5.0.10328"))) (specification->package "smplayer")) <attila_lendvai>while this does seem to work: guix shell smplayer --with-commit=v23.12.0=v24.5.0.10328 <Rutherther>attila_lendvai: you need to specify name of the package in the transformation, like smplayer=24.5.0.10328 <attila_lendvai>what confused me was that this works: ./pre-inst-env guix shell smplayer --with-commit=v24.5.0=v24.5.0.10328 <ArneBab>sneek: later tell apteryx: packaging games is not slacking off. It is enabling others to slack off ☺ (and a lot of thanks for that!) <futurile>PuercoPop: for capturing the output of building the guix source tree I do this: make --jobs=24 2>&1 | tee ../`date +%Y%m%d`-guix-build.log <Rutherther>in what package can I find man pages for glibc, like malloc functions? <apteryx>Rutherther: I'd recommend using Info though, for most GNU packages <sneek>Welcome back apteryx, you have 1 message! <sneek>apteryx, ArneBab says: packaging games is not slacking off. It is enabling others to slack off ☺ (and a lot of thanks for that!) <apteryx>then you can access a specific function by the index, e.g. i malloc RET <dariqq>apteryx: i sent patches to lightdm+service to #73859 , i hope the cc worked. Feel free to adjust as you see fit <jpoiret>PuercoPop: might be a bit late to the party, but you should be able to specify the emacs argument of the emacs-build-system to change the emacs that's used to build the package <jpoiret>this is also available for most other build systems with implicit inputs <apteryx>how do I run an appimage? I'm getting: dlopen(): error loading libfuse.so.2 <apteryx>I'm trying: guix shell -C --emulate-fhs zlib fuse -- ./SpeedDreams-Experimental-20230930-r9158.AppImage <Rutherther>apteryx: I am pretty sure your /lib in the environment does not contain libfuse.so.2 <Rutherther>try with fuse@2, then it could have a chance to work <apteryx>runs a bit longer; now I need to figure out what to expose to the container <apteryx>why can't we have --emulate-fhs on a non-container? I forgot the reason. <apteryx>i'm getting: fusermount: mount failed: Operation not permitted <apteryx>re my previous question: ah, yes, can't have an actual '/etc' unless you're in a container <PuercoPop>jpoiret: Thanks, to do it in masse I'm guessing I can use a transform <Rutherther>apteryx: I don't know what you mean "emulate" it without container, I would think it's the container that is what makes us call it emulation. If you had it without container, why would we call it emulation if it's real? and you can definitely do that with the special files service. But maybe it would make more sense to first try with LD_LIBRARY_PATH pointed to a profile with both packages (so guix shell zlib fuse, and export... <intermet>Hi there! I am writing a config for a system container (without user or home). Is there a simple way to set up env variables? <intermet>Let's say I sudo nsenter -a -t into the container (so as root), I would like to have custom env variable in the bash shell <Rutherther>intermet: okay, I don't know of a service that would do that natively, one way would be to use special files and write exports into /root/.bash_profile. If you needed for every user you could modify etc service configuration to write to /etc/profile, but it would be a bit more complicated than /root/.bash_profile <intermet>Rutherther: Sounds like a solution indeed, thank you! When I set up a cron service calling a cmd, does the cmd has access to the bash env variables? Is the cmd call wrapped in a bash shell? <intermet>I see. I wanted to set the value of the args for this cmd using the env varibales. The most convenient is then probably to set those args in the config file of the container. Thanks for you precious help!! <Rutherther>intermet: you can of course wrap it yourself by pointing mcron to bash with arguments "-c" "the command you want to execute" <pjals>Is there a reason GIMP's Python-Fu support was disabled? The comment says "Only Python 2 is supported; disable it.", but that isn't a good enough reason because the python-2 package clearly exists. It seems like a patch was made in 2015 to add it but it has been disabled for some reason after that. <futurile>pjals: can you track down the commit where that was done, might be a reason <Rutherther>pjals: does it need only python or also some packages? because currently there is not an easy way to get python 2 with packages <pjals>Happened on commit 8d71e5b2, gnu: gimp: Drop Python 2 support. <pjals>Oh, it needs python2-pygtk, might be optional though? <pjals>Huh? We have spotifyd but Discord RPC is explicitly disabled for some packages? <futurile>pjals: well I packaged spotidyd, I don't know about Discord - but spotifyd is fully "Free Software". I thought I saw a home-service for it the other day but I closed the tab heh (or I might have been sleep deprived) <pjals>futurile: Discord's RPC (at least the SDK part) is also Free Software, MIT/ISC license. <futurile>pjals: then AFAIK it shouldn't be restricted - "user freedom" also means users get to choose as far as I'm concerned <jaft_r>I'd assume someone simply hasn't gone forth and packaged it, yet, – rather than it's being explicitly not allowed –, if it's free software; more often than not, the lack of a package is the former rather than the latter. <pjals>jaft_r: Well, the package that has it explicitly disabled uses its own fork of the Discord SDK which might as well be considered part of the rest of the package. <jaft_r>pjals: which package (out of curiosity; simple greping, I don't think, was getting me any obvious hits)? <[>Discord RPC being disabled in some packages is a good thing. It means I don't have to patch that malware integration out myself. <pjals>jaft_r: The package is warzone2100. <icepic1984>Hey guix! Is there a way in guix to rebuild a package in debug mode (without optimiaztion, flag -g in gcc)? I just stumbled upon the package transformation `--with-debug-info` but this doesn't seem to quite cut it. <Rutherther>icepic1984: of course, you can change any package, for stuff that's not supported by transformations better to use guile - probably something like inheriting from the original one, and setting the configure-flags / make-flags in arguments - you can use substitute-keyword-arguments or ensure-keyword-arguments functions for keeping original arguments except one you change <icepic1984>I see thanks. I thought that maybe there is a cli option to directly instruct guix build to build in "debug mode". <ieure>What's the CLI command to get a package's source? <ieure>Rutherther, Thanks. This doesn't give me the actual upstream source, but is good enough. <Elouin>Hi, the certbot service should renew the cers automatically, right? <Elouin>Just got an email from letsencrypt that it only has a few days left. <Rutherther>ieure: it gives you the source guix uses for the build <cow_2001>you know how you have a guix.scm file in a guix package so you can guix shell -f guix.scm? how do you copy your package's files into the build daemon? <Rutherther>cow_2001: what do you mean into the build daemon? do you mean into the store? and what files - what do you want to do with them? <cow_2001>the store, yes. i wanna build the package using guix.scm without committing anything and retrieving from the server <cow_2001>committing into git, pushing, and then retrieving latest commit <Rutherther>cow_2001: then one way is to use "--with-source=name=./" <yelninei>cow_2001: If you want to do this directly from you guix.scm you can just set the source of your package to something like (local-file "." #:recursive #t) for the whole directory the guix.scm lives in