IRC channel logs

2019-03-16.log

back to list of logs

<lfam>katco: `guix environment guix` is for doing the `make`. So if you've already run `make` you don't need to be in the guix environment anymore
<lfam>You can test your changes from Git with e.g. `./pre-inst-env guix build --no-grafts go`
<katco>lfam: ah, ok! so: (1) create branch, `make clean && ./bootstrap && ./configure --localstatedir=var` do i have to run `make check` if i'm just working on a package? (2) i can proceed to run `./pre-inst-env` commands?
<lfam>I usually do plain `make` to save time — the test suite is long
<lfam>After you've done `make` you'll get the ./pre-inst-env script for testing your changes
<katco>do i need to run another instance of the daemon other than my userland one?
<lfam>katco: Not unless you are testing changes to the daemon
<katco>lfam: thank you! you've helped me to arrive at a better place :) however, if i'm not within a guix environment, i get a nice stacktrace when i try and use ./pre-inst-env
<lfam>katco: You might need to install guile-gcrypt or guile-git
<katco>that looks plausible
<rvgn>Hello Guix!
<Blackbeard[m]>rvgn: ٩(◕‿◕。)۶
<Blackbeard[m]>hello
<zacts>hello #guix
<nckx>The Guixers start pouring into the office.
<nckx>o/
<Blackbeard[m]>:D
***rekado_ is now known as rekado
*rekado clocks in
<rekado>hi Guix!
<zacts>how's progress with guix?
<zacts>I've been away for 1-2 years
<Blackbeard[m]>rekado: hi ٩(◕‿◕。)۶
<rvgn>rekado o/
<rvgn>rekado do you need anything else regarding evolution? let me know :)
<felicien>Hi #Guix, I am facing a problem in setting up my GuixSD vm, I can't get "guix system reconfigure config.scm" to work. I can give you a link to the log file.
<felicien>I run my vm from this command: qemu-system-x86_64 -net user -net nic,model=virtio-net-pci -enable-kvm -m 512 /...path/guixsd-vm-image-0.16.0.x86_64-linux
<felicien>Does it look incorrect to you ?
<felicien> According to this log, the build fails at the 'grub_func_test' step: https://framabin.org/p/?fb32758419e09ab6#DCCG3+1WHBEHaAOzVcsqOJ4l8AXNzkhGL2vzEY1FBj8=
<wigust->felicien: “qemu-system-i386: cannot set up guest memory 'pc.ram': Cannot allocate memory” seems 512 megabytes is not enough.
<wigust->felicien: you could increase it by qemu's ‘-m’ flag or adding a swap file (or partition) http://guix.info/manual/en/Preparing-for-Installation.html#Preparing-for-Installation
<tune>I made a guix system vm image. should I copy it out of the store like the manual says or run the
<tune>*-run-vm.sh file
<felicien>wigust-: I'll try it, thanks!
<mbakke>civodul: Is the Python2 test failure on core-updates deterministic? I can not reproduce it.
***bnw is now known as Guest34280
<civodul>Hello Guix!
<wigust->Hello civodul
<rvgn>Hello Guix!
<rvgn>civodul o/
<rvgn>Anyone know all-rounded, light-weight and python-written web server?
<civodul>i hear Flask is popular these days
<smatchcube>Hello, I'm trying to setup networking with guix inside a vm (gnome-boxes), i followed the manual and ping to gnu.org does not work. Is there an additional command to set up networking inside a vm?
<wigust->We should get rid of ping test in the documentation and use something else instead :-)
<wigust->smatchcube: probably the reason is virtual machine doesn't allow ping, but internet is working
<wigust->e.g. qemu (which gnome-boxes use as i know) does this by default
<ng0>we could test with: ftp http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz >/dev/null or something similar
<ng0>or have a script in the virtual machine facility for a minimal test
<rain1>what about a short URL that hosts a one line text file
<nckx>‘curl ci.guix.info/nix-cache-info’ comes close and is Guix-controlled.
<rain1>perfect
<smatchcube>wigust-: thank you, virtual machine was blocking my pings
<felicien>I am now trying to repair my vm: I created the swap partition by shrinking the main root partition, but I forgot to first shorten the ext4 filesystem inside it.
<felicien>Now it's too late, I am stuck into the "bournish(@guile-user)>" prompt. How could I resize partitions from there?
<felicien>IIUC I need to 0) delete the swap, 1) grow the main partition, 2) shrink the root filesystem 3) shrink the partition (no smaller than the fs) and 4) recreate the swap. All that into this weird bournish shell
***rvgn-net is now known as rvgn
<felicien>I finally managed to resize and repair my filesystem from my host machine, using qemu-nbd.
<Tirifto>Hello all!
<felicien>Hi
<Tirifto>So I tried installing Guix again after a while, and this time it actually worked!
<felicien>Well done ;)
<Tirifto>To whoever wrote the script, mostly. :P
<felicien>Even with a perfect installation script, solid documentation and a good knowledge of GNU systems, it is still a great challenge for a user to move on to installing a system as particular as GuixSD.
<civodul>Tirifto: you're talking about the script that installs the binary tarball on another distro, right?
<felicien>At least it has been one for me, and now that I'm testing it in a virtual machine, it's another one ;)
<Tirifto>civodul: Yes!
<felicien>Sorry, I got GuixSD instead of Guix
<civodul>Tirifto: yeah that one certainly helps :-)
<Tirifto>Aha, perhaps that would have been more of a challenge, indeed. xP
<civodul>felicien: it's true that the standalone Guix is certainly a challenge in that it's very different from what users are familiar with
<civodul>and perhaps there are rough edges too ;-)
<Tirifto>Guix makes a loud impression on me.
<Tirifto>It's been printing a lot of text so far.
<Tirifto>Including some locale complains; I'll restart the computer and see if they persist after some setup.
<felicien>How do you enable copy-paste between host and vm?
<Tirifto>They do!
<Tirifto>It instructs me to install ‘glibc-locales’ and define ‘GUIX_LOCPATH’. Doing so appears to change nothing. Do I perhaps need to define that as a different user? Any guess?
<rekado>Tirifto: you need to do this in the *daemon’s* environment.
<rekado>but… aren’t you using the Guix system? Or is this Guix on a foreign distribution?
<Tirifto>rekado: I installed Guix on Parabola!
<rekado>oh, I see.
<rekado>how are you running the daemon?
<Tirifto>However the installation script made me run it, probably.
<rekado>does Parabola use SystemD?
<civodul>"systemd" if i may ;-)
<Tirifto>Yes. It seems like the service is called ‘guix-daemon’, from looking at the script?
<Tirifto>(Well, I use systemd, anyways. I think Parabola has a variant with openrc.)
<rekado>But Capitalizing Things Is FuN!
<rekado>Tirifto: okay, the systemd service definition already sets GUIX_LOCPATH
<rekado>so as long as “glibc-locales” is installed into the root user’s profile it should be fine
<rekado>(the systemd unit file references a directory in the root user’s Guix profile)
<Tirifto>Oh, so I should run ‘guix package -i glibc-locales’ as root, then?
<rekado>this should do the trick in this case, yes.
<Tirifto>It did! :D
<rekado>neat!
<rekado>I wonder if we can do better here.
<rekado>civodul: aren’t we already bundling glibc-utf8-locales when doing “guix pull”?
<civodul>rekado: i thought we were, but maybe not for guix-daemon?
<civodul>lemme see
<civodul>but OTOH we wrap 'guix' anyway, so i don't know
<civodul>so we append to GUIX_LOCPATH, in (guix self)
<Tirifto>If the user has some setup left to do after installation via the script, perhaps the script could point them to a section in the manual where they're supposed to pick back up?
<Blackbeard[m]>Tirifto: hi
<Blackbeard[m]>٩(◕‿◕。)۶
<Tirifto>Hello Blackbeard[m]!
<civodul>rekado: BTW, i'm looking at hiding grub-install's output when its exit status is zero
<Blackbeard[m]>Tirifto: ٩(◕‿◕。)۶
***jonsger1 is now known as jonsger
<vejetaryenvampir>BTW, the guix's trf keyboard layout is realy broken. I use loadkeys -s <file> to fix them individualy. :)
***e^x is now known as nekomancer
<nckx>vejetaryenvampir: Specifically Guix's?
<vejetaryenvampir>ONLY for Guix. :)
<vejetaryenvampir>I installed ranger for more visuality. Now I'm looking at trf.map.gz file. :)
<vejetaryenvampir>I hope, it is the bug.
<vejetaryenvampir>So, we can fix the bug easyly. :)
<vejetaryenvampir>Noway!
<vejetaryenvampir>It is same.
<vejetaryenvampir>And I use "loadkeys" command on the file itself and worked...
<vejetaryenvampir>How could that possible?
<nckx>vejetaryenvampir: So ‘loadkeys foo’ is broken but ‘loadkeys …/bar/foo.gz’ is fine? I have no idea.
<vejetaryenvampir>I actualy ungunzip it.
<vejetaryenvampir>But yeah, it is.
<nckx>I only have X, so I can't test it. Damn.
<nckx>‘Couldn't get a file descriptor referring to the console’
<vejetaryenvampir>If I install it correcly, I will have only X too. :)
<vejetaryenvampir>I need damn pipe...
<nckx>|
<vejetaryenvampir>...
<nckx>You don't have gdm?
<nckx>*gpm
<vejetaryenvampir>gpm? What's that?
<nckx>VT mouse server. I always keep it around, but don't know if it's enabled by default.
<nckx>That would at least allow you to copy-paste things like pipes.
<vejetaryenvampir>Yeah.
<vejetaryenvampir>But how do I find pipe?
<vejetaryenvampir>BTW, my solution was "loadkeys us" then type pipe. :)
<nckx>I'm afraid you know the answer and it's no fun. Hunt for it.
<nckx>Oh, that's a good one too. In its horribleness.
<vejetaryenvampir>:p
<nckx>As a dvorak user who's fingers turn to spaghetti when I try to type QWERTY, I feel your pain :-/
<vejetaryenvampir>I can use both. :)
<vejetaryenvampir>But sometimes I have to look at keyboard on qwerty.
<vejetaryenvampir>trq in my case. :)
<vejetaryenvampir>in fact, I know how to type "loadkeys trf" on qwerty. :)
<nckx>Hehe. Same.
<vejetaryenvampir>Once you realize that your fingers always stays at home row, you can't use qwerty again. :)
<vejetaryenvampir>stay*
<vejetaryenvampir>How can I download something from internet with guix?
<nckx>vejetaryenvampir: I'm a bit confused, though. You said ’loadkeys /full/path/ungzipped.map’ worked. But you still cant type ’|’? Or was that just a general gripe.
<nckx>‘guix download’ will download it to the store.
<nckx>Then print the path & hash.
<vejetaryenvampir>nckx: The full path is /gnu/store/<random insane chars>kbd/keymaps/i386/qwerty/trf.map.gz
<nckx>It's not meant as a general download tool though.
<vejetaryenvampir>So, I have to use pipe to use grep. :)
<vejetaryenvampir>nckx: I just want my key file from a pastebin client.
<vejetaryenvampir>So, I think it would be enough for that.
<nckx>vejetaryenvampir: You forgot /share/ but I was already in the kbd directory anyway :-)
<vejetaryenvampir>Why guixsd have this hierarcy?
<nckx>vejetaryenvampir: It's a hack but it works. Note that it will leave a world-readable file in the store. ‘guix gc -d /that/file’ when you're done.
<vejetaryenvampir>I mean, it was so hard to find trf keymap file. :)
<vejetaryenvampir>I will learn it...
<nckx>vejetaryenvampir: How would you organise it?
<vejetaryenvampir>/usr/share was enough.
<vejetaryenvampir>/gnu/store also could be enough if it was using just /gnu/stor/kbd instead of random chars.
<nckx>vejetaryenvampir: But how would you keep different kbd packages from clobbering /usr/share?
<vejetaryenvampir>Or even better, /gnu/store/kbd.<version>
<vejetaryenvampir>by using <version>
<vejetaryenvampir>Or even better date. :)
<vejetaryenvampir>There are different ways better than random chars. *In my opinion*.
<nckx>grep -i pipe trf.map returns nothing. What am I looking for?
<vejetaryenvampir>My command was ls /gnu/store | grep -i kbd.
<vejetaryenvampir>"-i" was a habit. :)
<nckx>vejetaryenvampir: Well, ls -d /gnu/store/*-kbd*/ ;-)
<nckx>Pipes are fun but not really necessary here.
<vejetaryenvampir>* - are also random.
<vejetaryenvampir>Same as pipe anyways. :)
<nckx>Random?
<vejetaryenvampir>I mean, I can't find them in this buggy layout.
<nckx>Ah.
<vejetaryenvampir>Same as pipe*
<vejetaryenvampir>But I thought it first.
<vejetaryenvampir>So realized that pipe would be easier if I could find it. :)
<vejetaryenvampir>"-" was in the screen, so I didn't find it on keyboard.
<vejetaryenvampir>So, there is * left. :)
<vejetaryenvampir>* is same as pipe. :)
<vejetaryenvampir>lol
<nckx>vejetaryenvampir: Anyway, to get back to the directory hierarchy, versions aren't unique (you could have many kbd-2.0.4 packages on the system, i.e. one built with GCC 5, the other with 6, 7...) and dates aren't reproducible.
<vejetaryenvampir>So, why don't they put /gnu/current/kbd?
<vejetaryenvampir>I mean, it would be the bester!
<nckx>And putting the hash (the long ’random’ string) after the name (so you get /gnu/store/kbd-2.0.4-oetubeoubtno…, which tab-completes at least) would slow down Guix for $reasons.
<vejetaryenvampir>nckx: Right.
<nckx>vejetaryenvampir: Current to whom? Different profiles can have different kbds.
<vejetaryenvampir>But at least they can make a current dir.
<vejetaryenvampir>different profiles?
<nckx>As somebody who often thinks ’why didn't they just do X?’, I've learnt that the answer is never ‘they're less clever than me and missed the obvious’ ;-)
<nckx>Well, almost never.
<vejetaryenvampir>:)
<vejetaryenvampir>I'm pretty sure, this case is not one of them. :)
<nckx>Nope.
<vejetaryenvampir>But, maybe I don't know the details for that like "different profiles".
<vejetaryenvampir>What did you refer by saying "different profiles"?
<nckx>vejetaryenvampir: Profiles are fundamental to how Guix makes packages available to the user. Have you read section 4.1 (at least) of the manual?
<nckx>It's not urgent, but will help you make the most of your Guix experience™.
<vejetaryenvampir>I'm reading it for installing.
<nckx>Also since I have to leave soon and don't have time for the full explanation.
<nckx>Soon as in now o/
<vejetaryenvampir>o/
<vejetaryenvampir>I can't close the nano....
<vejetaryenvampir>ctrl+x doesn't work...
<vejetaryenvampir>and f<n> doesn't work also...
<wigust->vejetaryenvampir: ctrl+x asks you to save a file if you modified it, doesn't it?
<vejetaryenvampir>I have used nano before. :)
<vejetaryenvampir>It doesn't do that.
<vejetaryenvampir>seems like it is searching something.
<vejetaryenvampir>Lol.
<vejetaryenvampir>ctrl+x acts as ctrl+\
<vejetaryenvampir>Why me???? :)
<vejetaryenvampir>I will use vi. What am I thinking while using nano? :)
<vejetaryenvampir>How can I skip the encryption part in the config.scm?
<mikadoZero>vejetaryenvampir: You could also try using zile.
<vejetaryenvampir>I don't like emacs and its variants. :)
<vejetaryenvampir>I installed neovim. :)
<vejetaryenvampir>Anyways, how can I skip the encrypition part?
<vejetaryenvampir>Beacause it is the last thing that blocks me to install Guxsd! :)
<vejetaryenvampir>encryption*
<OriansJ>vejetaryenvampir: that is rather simple don't encrypt your volume and remove the luks pieces from your configuration
<vejetaryenvampir>If I remove luks pieces, it throws errors.
<OriansJ>vejetaryenvampir: only if they are referenced else where in your config
<vejetaryenvampir>Lemme put the error here.
<vejetaryenvampir>deal?
<OriansJ>vejetaryenvampir: and I will try to give you an example config without encryption that you can use as a base to work with
<vejetaryenvampir>Fair enough. :)
<mikadoZero>vejetaryenvampir: 8.1 Using the Configuration System of the manual has an example configuration without encryption.
<mikadoZero>under the heading:
<mikadoZero>;; This is an operating system configuration template
<mikadoZero> ;; for a "bare bones" setup, with no X11 display server.
<vejetaryenvampir>mikadoZero: 8.1 as in the index of man?
<vejetaryenvampir>I got it I think.
<OriansJ>vejetaryenvampir: https://paste.debian.net/1073402/
<OriansJ>that is what your filesystem definition should be looking like
<vejetaryenvampir>I will check this after mikadoZero's solution.
<mikadoZero>vejetaryenvampir: https://www.gnu.org/software/guix/manual/en/html_node/Using-the-Configuration-System.html#Using-the-Configuration-System
<mikadoZero>vejetaryenvampir: The guix manual. Available online, using info in emacs `C-h i` or `info guix`.
<vejetaryenvampir>I was looking at the link that you give me. :)
<vejetaryenvampir>I'm trying something. :)
<vejetaryenvampir>INSTALLING!!!!
<vejetaryenvampir>The first package I see is guix. :)
<vejetaryenvampir>I didn't mount the boot partition to /mnt/boot lol.
<charlag>Hey everyone! I just wanted to try out Guix but I've failed at the very beginning: verifying tarball. I cannot import keys because of the "unknown pubkey algotihm" error. I would appreaciate any help!
***nekomancer is now known as e^x
<charlag>I asked about importing keys like an hour ago, turns out I was using pgp1, I feel stupid right now, hope it'll help someone
<mikadoZero>Doing pull and reconfigure give me a new error message:
<mikadoZero>guix system: error: failed to install bootloader /gnu/store/45myfaqas69fnp3mfbqlsf9l
<mikadoZero>afm30cl0-bootloader-installer
<mikadoZero>I have not change the bootloader section of the configuration.
<mikadoZero>(bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda")))
<nckx>mikadoZero: I'm leaving so can't help you, but noone will without the actual error message(s).
*nckx → 😴
<mikadoZero>What I included above is the relevant error message that reconfigure outputs. Where should I look for further error information?