IRC channel logs

2019-11-30.log

back to list of logs

<pat_h>Hello, how do I go about installing guix in such a way that the store is located on an external drive?
<bandali>pat_h, hi, should be able to do it if you set up /gnu/store and /var/guix as mount points to elsewhere ?
<pkill9>pat_h: are you going to be running guix on a foreign distribution, or installing it as a distro?
<bandali>this blog post talks about installing guix on a cluster https://hpc.guix.info/blog/2017/11/installing-guix-on-a-cluster/
<pat_h>pkill9: on a foreign distro at the very least, I might bootstrap a guix system image from there
<pat_h>bandali: ok I'll look in to that, thanks
<pkill9>on a foreign distro you can just bind-mount the gnu store
<pkill9>and put that in fstab
<bandali>cheers
<pkill9>e.g. mount --bind /external/drive/gnu /gnu
<pat_h>pkill9: got it, thanks so much!
<pkill9>with guix as as distro i think you can put it in the system configuration as long as you configure it to mount at the initrd stage
<pat_h>pkill9: Alright perhaps I will try that as well, thank you :)
<ScaredySquirrel>how do I diagnose missing field specifiers in scheme code?
<sneek>Welcome back ScaredySquirrel, you have 1 message.
<sneek>ScaredySquirrel, leoprikler says: I've experienced your -6 error before, but IIRC it was not Guix' fault. I think I forgot to `herd start cow-store` or my hard drive was already dying. Not sure which of those it was.
<Minall>Hello guix!
<sneek>Welcome back Minall, you have 1 message.
<sneek>Minall, nckx says: Is copying everything to /mnt a deal breaker? Running grub-install --boot-directory /mnt/boot --bootloader-id=Guix --efi-directory /mnt/boot/efi might work fine, it also might result in an unbootable system if not all configuration was installed…
<Minall>thanks sneek !
<Minall>I'm on a new guix installation now, the usb was corrupted, thus the problems
<Minall>Btw, I seem to have a 'locale' message everytime I try to guix pull or install something
<Minall>Is this normal on a guix installation?
<Minall>Hello guix!
<Minall>I'm on a new Guix System installation, how can I install gnome extensions?
<Minall>Or install gnome app store?
<Blackbeard[m]>Minall: did you install GNOME ? Are you logged on GNOME right now?
<Minall>Blackbeard[m]: Yes, I'm installed on gnome right now
<Minall>logged*
<Blackbeard[m]>Minall: do you have icecat?
<demonshreder>Hi all, Just got installed Guix on my X230 and rebooted but guix pull is failing with HTTP 502, anything I did wrong?
<Blackbeard[m]>demonshreder: do you have internet?
<Blackbeard[m]>What happens if you do
<Blackbeard[m]>ping -c 3 gnu.org
<bgardner>I'm also getting 502 on all my guix nodes
<bgardner>Just on 'guix pull', though
<bgardner>Blackbeard[m]: demonshreder went offline, but I can still reliably reproduce the 502 error if it helps debugging
<Blackbeard[m]>bgardner: I think we should wait
<Blackbeard[m]>It is probably a temporary thing
<bgardner>Blackbeard[m]: Agreed, I'll check tomorrow
<drainful>I did my first guix package today: a simple common lisp library. It works fine, but I noticed that the MIT license is not provided in the (guix licenses) module. Is it incompatible with guix or gnu somehow?
<Blackbeard[m]>drainful: nice :D
<Blackbeard[m]>٩(◕‿◕。)۶
<marusich>Hello!
<drainful>Blackbeard[m]: Thanks! I'm a recent nixos convert and as an lisp/Emacs guy I'm already loving guixsd way more.
<Blackbeard[m]>drainful: really? Is there anything you are missing from NixOs?
<Blackbeard[m]>drainful: do you write common lisp?
<drainful>Blackbeard[m]: I enjoy writing CL in a hobbyist sense, and the guix support for CL packaging is 100x nicer than nix's. As far as things I'm missing, I quite miss qutebrowser as the latest version is based on chromium. Besides that there isn't really much. I was using nixops to put some stuff on a VPS, but I have just installed nix on guixsd and nixops works fine (I may switch to guix to deploy things in the future). Nixos has feels like
<drainful>it has faster substitute downloads as well.
<drainful>Though I also took the opportunity while partitioning to set up dual boot with ubuntu for if I ever 100% need some nonfree software (forgive me stallman for I have sinned).
<Blackbeard[m]>drainful: have you tried Next browser?
<Blackbeard[m]>It is on Guix
<drainful>Blackbeard[m]: I am using both that and icecat right now. It is rough around the edges, but I do approve of the choice of language :). It has great potential, especially for Emacs integration.
<Blackbeard[m]>Yeah ٩(◕‿◕。)۶
<Blackbeard[m]>I enjoy Emacs a lot too
<Blackbeard[m]>I like it so much
<drainful>I wrote this bit of elisp to send a common lisp sexp to Next https://gist.github.com/Drainful/9ac950253b0638721d413e44c3443b78 . Combine that with CL code to do the reverse, and there's no end to the potential for integration. I use emacs window manager, so Next could be used as a general-purpose media program that embeds within Emacs like any other buffer, complete with keybindings defined in Emacs.
<drainful>Sorry for getting off topic
<Blackbeard[m]>drainful: awesome ٩(◕‿◕。)۶
<raghav-gururajan>Hello Guix!
<user_oreloznog>o/
<Franciman>how can I see installed packages?
<Franciman>ah guix package -A
<Franciman>uh no
<cbaines>I think you want guix package -I
<cbaines>which is shorthand for guix package --list-installed
<Franciman>urg, thanks
<Franciman>sorry couldn't fin it
<thomassgn>drainful: the possibilities you describe with your CL <-> Next setup sounds awesome :) There are a few different MIT licenses going by rather similar names, so the rationale for not having MIT license in the license module as far as I understand is clarity. I see this written sometimes: (license license:expat))) ;; MIT license
<thomassgn>I'd compare the text of expat and the MIT for your package and then use expat if it is the same (disregarding package and maintener names)
<drainful>I see. What do you mean by the test exactly?
<drainful>Oh I misread "the text" as "the test". Please disregard.
<drainful>Thank you.
<thomassgn>:)
<Franciman>Does anybody use cups and over the network printers?
<Franciman>Do i also need to install avahi to make it work?
<marusich>Franciman, it does work, but it likely depends very much on your specific printer. Not all features work for all printers - beyond the fact that printing on Linux is a bit tricky to begin with (is it ever easy on any OS, though, really?), the cups packaging seems to have subtle problems in Guix that I've never figured out.
<Franciman>hmm
<marusich>I don't know if you need avahi; I don't think you need it, since you should be able to set up a printer if you provide the necessary information, like its IP address.
<Franciman>I think the issue is in the name it chooses
<Franciman>because the printer is discovered fine and all
<Franciman>but then it won't respond to my requests
<Franciman>I'm trying setting the ip address manually
<marusich>FWIW, I do not print from Guix System right now because it's really painful for me. My printer works from other GNU/Linux systems, so I print from there. I know Debian has pretty good auto-detection and auto-setup with CUPS.
<marusich>If you need a fall-back, consider installing a small Debian system or whatever you prefer, in a VM, and printing from that, while the kinks are worked out in Guix (which of course you can help with).
<marusich>You should be able to set it up manually. I've found with printers on GNU/Linux, you often need to provide just the right combination of parameters etc. It's pretty tedious. :(
<marusich>For a lot of printers, you can get away with using the "IPP anywhere" drivers, if the printer supports IPP.
<marusich>Oh, I guess it's actually called "IPP Everywhere".
<Franciman>thanks
<marusich>You may need avahi for the auto-detection to work, but you can try specifying the driver manually along with the parameters like IP address. See: https://wiki.debian.org/CUPSIPPEverywhere
<marusich>That page doesn't describe precisely what to do. But it's a good starting point. I think you basically need to add your printer and select the "ipp everywhere" driver.
<marusich>avahi might help you autodetect the printer, but i don't think it's required for using it?
<marusich>good luck!
<Franciman>E [29/Nov/2019:00:40:39 +0100] Unable to change ownership of "/gnu/store/vy9jkpblnj5b4jadkq5hylc5d1w3h3ds-cupsd.conf" - Read-only file system
<Franciman>I see this error
<Franciman>but I don't think it's relevant for my issues
<Franciman>thanks marusich
<Franciman>yay I made it work
<Franciman>marusich, do you have an hp printer?
<marusich>Franciman, no, I use a Brother. You can read about my trials and tribulations here: https://lists.gnu.org/archive/html/help-guix/2019-04/msg00069.html
<marusich>see also: https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=marusich+printer&submit=Search%21&idxname=help-guix&max=20&result=normal&sort=score
<marusich>specifically this thread: https://lists.gnu.org/archive/html/help-guix/2019-03/msg00113.html
<Franciman>ah I see
<Franciman>not sure I can add much :<
<Franciman>I had luck using hplip
<Franciman>instead of ipp
<Franciman>I use hplip + appsocket/hp jetdirect for connecting over the net
<drainful>Nixos has the buildFHSUserEnv function to create a chroot environment that follows FHS for running unpatched binaries; is there anything similar for Guix sd?
<nckx>Franciman: I use CUPS to print to my HP 5652 on the LAN and over the Internet. LAN (mDNS) just works with (service avahi-service-type) on both client & server. Windows visitors can see & use printers with no configuration when on the LAN. I use IPP in both cases. Even proxied through nginx…
<nckx>Hm, writing it all out sounds insane, but it works.
<ng0>drainful: no
<ng0>as far as i know
<ng0>there's however elfpatching
<ng0>i think someone started packaging a FHS environment at some point in 2019
<drainful>interesting
<ng0>but I can't focus as much as I want anymore on guix, so i don't know what happened to this
<drainful>thanks for the help
<ng0>some bootstrap compilers are elfpatched. this used to apply to rustc, but i think guix is beyond that now
<ng0>what i did for some software i bought is I created a package which then patches the rpath etc via elfpatch(1) by nix, which is packaged by guix
<ng0>(or was it patchelf?)
<nckx>patchelf.
<drainful>I see. I'll use patchelf or use a backup distro for not.
<ng0>drainful: for examples:
<ng0>find . -type f -print0 | xargs -0 awk '/patchelf/ {print FILENAME":"NR":"$0}'
<ng0>or something along those lines
<ng0>woww. there used to be more results than just haskel.scm and julia.scm. so much progress in 2019?
<nckx>Franciman: Checked; my error_log has the same ‘Unable to change ownership’ error; it's harmless.
<ng0>or maybe i have forgotten how this works and you need to search for 'rpath'. anyway, code is out there.
<drainful>cool
<ng0>this week i learned that the 6th edition of SICP has been adapted for scheme standards meeting scheme
<ng0>i think the 6th edition is already "old" but it's new compared to other books i have
<ng0>published in 1996
<raingloom>did something kill BTRFS? i can't boot after doing a system reconfigure last night. previous configs work fine.
<nckx>raingloom: What errors (if any) do you get?
<raingloom>nckx: it was something like "failed to open ctree" and then it pops me into a guile shell
<nckx>Oh, wow, that kind of error.
<nckx>raingloom: Could you run ‘btrfs check’ from a rescue system?
<raingloom>nckx: hmm, i guess i could boot into the other SSD and run it from Arch
<raingloom>brb
<raingloom>nckx: back from Arch. btrfs check found no errors.
<nckx>raingloom: Good, I guess 🙂 Ideally, we'd get the exact error message + any kernel messages. Don't know if they're still printed to the console at that point or whether you'll need to read /proc/kmsg yourself from ,bournish or the REPL.
*nckx hasta go but would really appreciate a bug report with as much info as you can muster.
<Franciman>nckx, thanks. In my case the problems is that the hostname for the printer found in the discovery phase
<raingloom>nckx: i'll try booting it from Arch in QEMU, might be easier to investigate that way
<Franciman>is unreachable later
<smithras>hi guix!
<chrislck>I'd thought that guix would install things cleanly. I somehow installed guile-next, which means now I can't access guile-2.2 anymore :(
<zig>chrislck: you can use an environment for that kind of things
<pkill9>drainful, ng0: I made a service that adds support for running portable binaries designed to run in an FHS environment https://gitlab.com/pkill-9/guix-packages-free/blob/master/pkill9/services/fhs.scm
<chrislck>"guix package -I" showed guile-next and I didn't really want that
<pkill9>chrislck: you can undo that with `guix package --roll-back`
<pkill9>chrislck: then you can install "guile@2.2"
<chrislck>thx all -- I guix remove -r guile-next and used the system-wide guile-2.2 instead
<ng0>pkill9: ah
<raghav-gururajan>nckx I have tried what you gave me. I am getting the following errors.
<raghav-gururajan>configure: error: in `/home/rg/git/guix/guix':
<raghav-gururajan>configure: error: no acceptable C compiler found in $PATH
<raghav-gururajan>Folks! Is `guix pull` working fine? I am getting errors "git error:502" and "git error: 504".
<snape>raghav-gururajan: indeed, Guix's Git repository returns 502
<snape>raghav-gururajan: I'm seeing your previous messages. You were trying to build Guix from source right?
<raghav-gururajan>snape Thanks. Yes, I am.
<snape>and it still doesn't work?
<snape>first you need to make sure you don't source anything in your ~/.bashrc
<snape>because otherwise it would pollute your 'guix environment guix'
<raghav-gururajan>snape I did bootstrap part. But configure part does not work.
<raghav-gururajan>snape I have not made any manual changes to ~/.bashrc. But how do I double check if anything is changed?
<snape>I don't know an easy way, it depends on what bad things you would have done in your .bashr
<snape>anyway even if you change your environment in .bashrc, 'guix environment -C guix' should work well
<snape>so if you do: git -C /your/guix/repository clean -xdf
<snape>then cd /your/guix/repository
<snape>then 'guix environment -C guix'
<snape>then ./bootstrap && ./configure --localstatedir=/var --sysconfdir=/etc
<snape>it should work
<raghav-gururajan>snape Thanks. I will try that.
*raghav-gururajan accidentally nuked the cloned git repo. Has to re-clone now.
<snape>(which returns 502...)
<raghav-gururajan>snape By any chance do you know what is currently wrong with guix's git repo that causing 502/504?
<snape>it's an infrastructure issue
<snape>not our fault
<raghav-gururajan>I see.
*raghav-gururajan will be brb
<bandali>in the mean time, try a "member checkout"
<bandali>i.e. clone via ssh
<chrislck>here's a bug report: "guix package -v -I": "guix/status.scm:777:9: In procedure logger-for-level:
<chrislck>"In procedure nan?: Wrong type argument in position 1: 0.0-1.0i"
<snape>raghav-gururajan: for example you shouldn't modify your PATH environment variable in .bashrc
<snape>(you should do it in .profile instead)
<snape>chrislck: '-v' takes an argument
<chrislck>my argument was the level (0-1i) :-)
<snape>hehe
<chrislck>still a bug ;)
<snape>well, why?
<chrislck>because noobs like me will try various combinations of options and experiment and will try -I which is a valid argument
<snape>try to call 'python -c -m', you'll have a backtrace
<snape>is it a bug though?
<chrislck>(string->number* str) should error out on non-natural numbers
<roptat>at least, it's not nice to get a backtrace, so we could have so sort of explanation, maybe?
<chrislck>I'd say yes, a silly bug but weird to a noob nonetheless
<snape>parsing all the weird ways users could call your program to return a nice error message is tedious...
<raghav-gururajan>snape The only extra thing I manually added to .bashrc is this.
<raghav-gururajan>function tor {
<raghav-gururajan>sudo herd restart tor
<raghav-gururajan>}
<snape>and anyway a bug is when there is a backtrace while you're using the program correctly. If you're using it incorrectly and would like a nicer error message, I'd call that a 'feature request'
<raghav-gururajan>No other changes. Also, there is no word "PATH" in .bashrc
<snape>raghav-gururajan: good ;) It was just a random idea I had anyway
<raghav-gururajan>bandali were you telling me to try member checkout via ssh?
<raghav-gururajan>snape Cool!
<snape>raghav-gururajan: feel free to 'git clone' https://git.lassieur.org/cgit/guix.git/ in the meantime. It should work
<snape>(you can discard the 8th top commits though, which are not upstream)
<snape>s/8th/8/
<raghav-gururajan>snape Thanks! Anyway how do I do member checkout via ssh?
<snape>well, I think you need a Savannah account
<raghav-gururajan>I have one
<raghav-gururajan>username is "raghavgururajan"
<snape>git clone raghavgururajan@git.sv.gnu.org:/srv/git/guix.git
<raghav-gururajan>Hmm! My savannah password is not working, Says "permission denied".
<snape>:/
<raghav-gururajan>But I can login on web just fine.
<snape>it's an ssh key authentication, not a password
<raghav-gururajan>Ah I see.
<snape>anyway having a Savannah account doesn't mean you have access to the Git repositories
<snape>through ssh
<snape>it's two different things
<raghav-gururajan>I see.
<snape>raghav-gururajan: I think it works now
<snape>it's back up
<raghav-gururajan>snape Thanks!
<bandali>raghav-gururajan, yes, i was
<bandali>snape, i'm not a member of the guix project, but was able to do a member checkout through ssh just fine
<bandali>the issue was probably that raghav-gururajan didn't have an ssh key set up on savannah
<civodul>Hello Guix!
<bandali>hi ludo!
<bandali>have there been any news about the tls issue with ci.guix?
<raghav-gururajan>bandali I see. I do have ssh key setup on savannah. Not sure how to use it though.
<bandali>raghav-gururajan, you'd probably want to look into ssh-agent and ssh-add to add your key to the agent
<bandali>and then ssh should automatically try and use it
<raghav-gururajan>bandali I see. Thanks!
<bandali>raghav-gururajan, cheers!
<raghav-gururajan>Do anyone use ungoogled-chromium inside gnome session? After opening browser, within 5-10min of browsing/paying videos, the whole system (media+windows) starts to stutter. Happens everytime and been there for quite a long time.
<elais[m]>That's never happened to me
<raghav-gururajan>I see.
<nckx>Hullo everyone. raghav-gururajan: How far'd you get?
<raghav-gururajan>nckx I'll be getting back to it in a while. I'll ping you with an update :-)
<lispmacs>Is something broke today in guix? I'm getting a 502 error when I attempt to clone or pull the guix git repo
<Blukunfando>It happens sometimes.
<lispmacs>I tried M-x butterfly but that didn't fix it
<Blukunfando>Butterflies were made to cause storms, not to fly through them.
<lispmacs>I'll just try it another ten times