IRC channel logs

2018-01-01.log

back to list of logs

<Sleep_Walker>happy new year!
<amz3>+!
<soundtoxin>Having some trouble near the end of my guixsd install. Can anyone give me a bit of help? http://chunk.io/bard/234bc81e90494c1da9127d90e81cb8a5 Here are the errors that were at the bottom.
<soundtoxin>It failed to install the bootloader, but I'm not quite sure what went wrong.
<str1ngs>soundtoxin: what is the output of guix build grub?
<soundtoxin>/gnu/store/xqfpwxbghvi3h85pfji6kdzw7db2sgxz-grub-2.02
<str1ngs>soundtoxin: does /gnu/store/xqfpwxbghvi3h85pfji6kdzw7db2sgxz-grub-2.02q/lib/grub/x86_64-efi/modinfo.sh exist?
<soundtoxin>Hm. Once I get to the latter grub folder, there is an i386 folder, but not x86_64.
<soundtoxin>For the record, I think I was doing a BIOS Grub install, not an EFI one.
<str1ngs>lscpu | Arch # is x86_64?
<soundtoxin>The CPU is amd64 and I thought I grabbed the proper iso. I'll run that, one sec.
<str1ngs>also uname -a will tell you arch
<soundtoxin>I'm guessing you left out a 'grep' on accident in there, but I got this:
<soundtoxin>Architecture: x86_64
<soundtoxin>uname -a also confirms x86_64
<str1ngs>ya sorry missed the grep
<str1ngs>have you done the guix pull?
<str1ngs>first what does guix --version say?
<soundtoxin>Uhh. Sorry, not completely sure what a guix pull is.
<str1ngs>don't worry about pull quite yet
<soundtoxin>guix (GNU Guix) 0.14.0-1.ad4953b
<str1ngs>ok that looks like release
<soundtoxin>I grabbed the iso, put it on a flash drive, and started this install last night. Went to bed after getting networking set up and then continued it today.
<str1ngs>so are you using grub bios or efi?
<soundtoxin>I was trying to use grub bios, although maybe I did something wrong.
<soundtoxin>This SSD might be formatted as gpt instead of mbr, but I was going with the bios typed grub anyway. Is that possibly the problem?
<str1ngs>could be
<soundtoxin>I got the ssd used from a friend and it had some stuff on it. I just went forward partitioning it with cfdisk, which I haven't used much. I typically use gparted.
<str1ngs>I mean if it's gpt I would use EFI assuming you have a efi bios?
<soundtoxin>That's the thing, not sure on efi bios.
<str1ngs>if you don't have a efi bios then you have to create a BIOS grub partition
<soundtoxin>Yeah, I figured BIOS grub was the safer bet since it should work either way.
<str1ngs>if it's GPT
<soundtoxin>The SSD being gpt was because it was in a different computer before and I just didn't remake the partition table, since I don't know how to do that in cfdisk.
<str1ngs>bios grub will only work with GPT if you have 1MiB grub bios partition
<soundtoxin>Ah, okay. I don't have one of those.
<str1ngs>efibootmgr what does its say?
<soundtoxin>I'm on a ThinkPad X220T, and I think running the most up-to-date BIOS in case you know how to look up if it's uefi or bios.
<soundtoxin>Uh, was I supposed to run 'efibootmgr'? Command not found.
<str1ngs>oh one sec
<str1ngs>hey I use a x220
<soundtoxin>Neat!
<str1ngs>it's probably EFI then
<soundtoxin>Alright, cool. How much do I have to re-do at this point then?
<str1ngs>if your disk is GPT and you have a EFI partition. just use a grub efi segment
<str1ngs>as per the example
<soundtoxin>I don't an EFI partition anymore. There was one, but I wiped all the partitions earlier.
<soundtoxin>s/an/have an
<soundtoxin>I'm navigating back to the partitioning part of the docs now, I'll see if I can figure this out.
<soundtoxin>I'm not quite a beginner, but I'm barely past that. Partitioning from a TTY is still a bit tricky for me.
<str1ngs>soundtoxin: does not have to be huge about 200MiB
<str1ngs>you can get away with 100MiB
<soundtoxin>Is can be different sizes? Hm. What is it doing exactly?
<soundtoxin>s/Is/It
<soundtoxin>I'll go for 200MiB then just to be safe. I've heard people recommending 10-20GB for Root partitions if you have a separate home, just to find out later 30 worked out better for me.
<soundtoxin>So, I delete my /home since I didn't know if I could shrink it, then I made a 200M partition and set the type to 'EFI System'.
<str1ngs>guix like a large root due /gnu/store unless you mount that on another partition
<soundtoxin>Ah, good point. is 30G enough or should I make it bigger?
<str1ngs>I would make it better
<str1ngs>on my x220 mine is 50G
<soundtoxin>How much bigger do you think? I think this SSD is 250GB or so and I was gonna leave the majority for /home
<soundtoxin>Alright, 50 sounds good.
<str1ngs>only 10GiB used but still
<str1ngs>my SSD is only 120
<str1ngs>also you need a free wifi dongle or hacked bios
<str1ngs>free as in freedom
<str1ngs>but if you have network right now, you should be ok
<soundtoxin>Oh wow. Kind glad I'm redoing the partitions. I had made them all "Linux filesystem" before, but now I see there are types for home and root.
<soundtoxin>Yeah, I'm using ethernet right now and was planning to get an half-size mini pci-e wireless nic replacement. I looked at some options but haven't picked one yet.
<soundtoxin>I found one that sounds good, has wireless ac, but it costs $50 which is a bit steep.
<soundtoxin>oh, and I was gonna probably flash coreboot later to get past the whitelist problem.
<str1ngs>soundtoxin: you cant just get a pci-e and plug it in. it needs to be whitelisted
<str1ngs>if the x220T is anything like x220
<soundtoxin>Yeah. Modded BIOS or coreboot. Leaning toward doing coreboot anyway, so I'll probably do that.
<soundtoxin>I've got a raspberry pi and soic clip handy already, just gotta find a good coreboot guide later.
<str1ngs>thing with coreboot is you can brick your system. kinda why I've not messed with my bios
<str1ngs>cause love my x220 too much
<str1ngs>mines i7 with 8G of ram
<soundtoxin>Well, I think you back up the existing payload before flashing another one, so as long as that backup is done right I think it's fairly safe.
<soundtoxin>I've got the i5 version, 8G of RAM also. I kind of wish I had the i7 version, mainly for the usb 3 ports.
<str1ngs>what's the T stand for?
<str1ngs>oh tablet, nice
<soundtoxin>Yeah. Guaranteed IPS panel was the main reason, but it's kind of fun having a touchscreen also.
<str1ngs>I'll look into coreboot, if I can flash it safely then I would do it.
<str1ngs>don't you need a jtag aswell?
<soundtoxin>Not sure of the technical definition of a jtag, I only know of people using them with xboxes in the past. You get a soic clip, or you can technically just use some wires attached to the chip, then a raspberry pi or beaglebone black on the other end.
<soundtoxin>I'm hoping for this model to get libreboot support later on. I think if you already have coreboot, you don't have to go through the painful process again, you can just switch over via software.
<soundtoxin>Hm. The docs use parted for the efi partition example. I already did the other stuff with cfdisk. I hope this doesn't screw stuff up.
<soundtoxin>Gonna attempt to paste a couple lines quick, sorry if it ends up being longer
<str1ngs>should be fine with cfisk, provided its GPT and you made the right partitions
<soundtoxin>Error: Partition(s) 2, 3 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, theold partition(s) will remain in use. You should reboot now before making further changes.
<soundtoxin>Ignore/Cancel
<soundtoxin>I did the parted command after trying to set it up in cfdisk...
<soundtoxin>I hit Cancel for now.
<str1ngs>run partprobe
<str1ngs>if it does not exist, just reboot to be safe. so the kernel reads the partion table
<soundtoxin>ugh
<soundtoxin>Error: Partition(s) 2, 3 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
<soundtoxin>Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space (an extra 27977584 blocks) or continue with the current setting?
<soundtoxin>If I reboot, won't I be starting the install over? I guess I'd mainly be losing my edits to the default config.
<str1ngs>safe the config to a persitant drive
<str1ngs> /mnt/etc/config.scm maybe?
<str1ngs>assuming you mounted the target root to /mnt
<soundtoxin>Hm. Actually, I think I just wiped all the partitions again so it might be gone already.
<str1ngs>doh
<soundtoxin>Alright. I'll reboot and start over and just try to speedrun it a bit to get back to where I was.
<soundtoxin>Okay, back in the install and just got networking up again.
<soundtoxin>str1ngs: So you think I can do it all with cfdisk? I'm somewhat comfortable in it now so that'd certainly be preferable. I'll give it a go.
<str1ngs>soundtoxin: cfdisk is fine, provide the disk is GPT table. and you make the partitions required
<soundtoxin>str1ngs: https://comfy.moe/njjtoc.jpg Does this seem okay?
<soundtoxin>I'm mainly worried about the part of the docs that say "must have the esp flag set". Is that equivalent to how I've set "EFI System"?
<str1ngs>I think so, let me check
<soundtoxin>I'm also worried some labels I set in earlier partitioning attempts may have stuck, and they no longer apply to the same partitions. How can I check labels of partitions?
<str1ngs>soundtoxin: use lsblk -f
<soundtoxin>Okay, sweet, labels are all blank.
<str1ngs>you can set the label when you format
<soundtoxin>Yeah. I just didn't know how to for the efi partition, so I was worried it'd have the same label as another one and screw things up later.
<soundtoxin>The example with the EFI partition has you use -F32 or whatever, so I wasn't sure if I do -F32 -L or if I append L to -F32 or what.
<str1ngs>generally you use -L
<str1ngs>so -L EFI
<str1ngs>or whatever label you want
<str1ngs>same with mkfs.ext4
<soundtoxin>Can I do the first command with the -F32 and then run it again with -L instead? Adding -L separately doesn't work before or after -F32, and adding L so it's -F32L efi gives an error.
<soundtoxin>Oh, mkfs.fat might not have the -L argument...
<str1ngs>no do -F32 -L <label>
<soundtoxin>Yeah, tried that with no luck.
<str1ngs>k one sec, let me check
<soundtoxin>mkfs.fat -F32 -L EFI /dev/sda1
<soundtoxin>this is one of several things I tried with no luck
<soundtoxin>mkfs.fat: invalid option -- 'L'
<soundtoxin>Do I want -n for volume name maybe?
<str1ngs>mkfs.fat --help
<str1ngs>I have to install dosfstools to check
<soundtoxin>Ah, yes, -n worked.
<soundtoxin>The label shows now in lsblk -f
<str1ngs>does it say volume name for -n?
<soundtoxin>Yep!
<str1ngs>kk
<str1ngs>sorry I dont use mkfs.fat often
<soundtoxin>Same, haha.
<str1ngs>if you are super meticulous UUID's are safer
<str1ngs>but labels are easier to remember IMO
<soundtoxin>Yeah. Just trying to get through the install and a lot of this stuff is tricky. I think I prefer using UUID, but I'm gonna follow this guide pretty close.
<str1ngs>the nice thing is you can always reconfigure
<str1ngs>guixsd is really nice that way
<str1ngs>and it breaks, you can boot the last profile
<soundtoxin>Yeah, I used NixOS very briefly in the past. I knew a guy who was really into it. It was tricky, but interesting.
<str1ngs>I'm hooked on it now
<soundtoxin>Any thoughts on the encryption step? How difficult will it be? Should I do it?
<soundtoxin>I care about security a bit, but I also hate the thought of losing my data if I can't decrypt.
<str1ngs>honestly encryption is more pain then it's worth. if need encryption that badly then maybe it's worth it
<soundtoxin>Yeah, that's kind of what I was thinking. I'll skip that for now and consider it in the future.
<str1ngs>this is just my opinion
<soundtoxin>So, I mounted the root partition to /mnt as instructed. Should I also be mounting my separate home partition to /mnt/home ?
<soundtoxin>Not sure if anything is written to it during the install.
<str1ngs>soundtoxin: I would mount home yes. so it creates the user directory
<str1ngs>but I think it does that on boot
<soundtoxin>kk
<str1ngs>so the honest answer is I don't know
<str1ngs>mounting it wont hurt anything.
<soundtoxin>Yeah, good point.
<soundtoxin>Sigh. May have screwed up again.
<str1ngs>did you get an error?
<soundtoxin>no
<soundtoxin>I'm editing the config.scm now and for the bootloader step, it mentions a /boot thing that I don't think I have
<str1ngs>you don't have to have boot partition
<soundtoxin>Says if I'm doing it the efi way, to change grub-bootloader to grub-efi-bootloader and /dev/sdx to something like /boot/efi
<soundtoxin>Oh, okay.
<str1ngs>that part is fine
<soundtoxin>Oh, my efi thing is /dev/sda1, can I put that instead of /boot/efi?
<str1ngs>one sec
<soundtoxin>Yeah, pull up this part of the docs maybe. I think I'm doing it the non-legacy way, but I don't think I set it all up right.
<str1ngs>what do you have for device for EFI?
<soundtoxin>It's just a partition on /dev/sda
<soundtoxin>I made the 200MB partition as /dev/sda1 and marked it as type EFI System
<soundtoxin>Then I did the mkfs.fat command on it
<str1ngs>are we talking bootloader section or file-systems?
<soundtoxin>Uh, not sure. I'm a bit lost.
<str1ngs>on https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html#Using-the-Configuration-System
<str1ngs>there is EFI example at A graphical UEFI system
<soundtoxin>Looks like it's using that /boot/efi, but I haven't got a separate boot partition, nor a boot folder under root or anything.
<str1ngs>that find you can simply make it with mkdir -p /mnt/boot/efi
<str1ngs>assuming your target root is mounted on /mnt
<soundtoxin>Yeah, it is. Okay.
<str1ngs>also you can mount with mount -L <EFI-LABEL> /mnt/boot/efi
<str1ngs>dunno if it needs to be mounted
<str1ngs>lets assume it does
<soundtoxin>Okay, mounted that. I'll continue now.
<soundtoxin>Can I delete the section in the config about the encrypted root partition since I'm not using one?
<str1ngs>soundtoxin: also you can do lsblk -f . to see whats mounted and where
<str1ngs>soundtoxin: use the EFI example on the link I posted
<soundtoxin>Okay, I'll look over that again.
<str1ngs> https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html
<str1ngs>has a UEFI desktop example. alot like how your partion is setup
<str1ngs>you'll need to add a home file-system item
<soundtoxin>Slowly trying to figure this out. I'm glad I saw this, because I wanted to use i3 instead of gnome/xfce but wasn't sure what to put, and this has i3 in the example.
<str1ngs>soundtoxin: the lightdesktop example is good if your going to use i3
<str1ngs>soundtoxin: actually ya the UEFI example is also the lightdesktop
<soundtoxin>Okay, I think I finally got the config to an okay state. I scp'd it to another machine on my network just in case something happens, and now I'm doing the guix system init command again.
<soundtoxin>>miss closing parentheses
<soundtoxin>fff
<str1ngs>soundtoxin: should be easy to fix
<soundtoxin>Yeah, was comparing to the example and found two spots where I was missing a ), but now I've gotten a different error
<soundtoxin>guix system: error: failed to load '/mnt/etc/config.scm':
<soundtoxin>/mnt/etc/config.scm:22:16: /mnt/etc/config.scm:22:16: Wrong number of arguments to #<procedure cons (_ _)>
<soundtoxin>Not quite sure how to interpret this.
<str1ngs>what's on line 22 . should be a cons
<soundtoxin>Yeah.
<brendyn>soundtoxin: try change cons to cons* perhaps
<soundtoxin>Thanks, brendyn, that got me a step closer. New error.
<soundtoxin>/mnt/etc/config.scm:39:9: /mnt/etc/config.scm:39:9: rofi: unbound variable
<soundtoxin>hint: Did you forget `(use-modules (gnu packages xdisorg))'?
<brendyn>personally I use (map specification->package '("nss-certs" "gvfs" ...))
<brendyn>that way you don't need to install modules
<soundtoxin>Ugh. Really stuck.
<brendyn>what's the problem?
<soundtoxin>I've been at the end of the install for over an hour having trouble getting my config file right.
<soundtoxin>I have basically no idea what I'm doing.
<brendyn>what's the latest problem
<soundtoxin>I was just gonna try to upload my config to show you guys, but I can't scp to my other computer anymore for some reason.
<brendyn>use debians pastebin
<soundtoxin>I don't know how to get it there.
<soundtoxin>I was copying to another machine and then using an alias I have to upload text to a site from the terminal.
<brendyn>then just type the error and the line it refers too
<brendyn>and where it is in the config
<soundtoxin>I pasted it already. The rofi: unbound variable thing
<soundtoxin>/mnt/etc/config.scm:39:9: /mnt/etc/config.scm:39:9: rofi: unbound variable
<soundtoxin>hint: Did you forget `(use-modules (gnu packages xdisorg))'?
<brendyn>and the suggestion says to import the module. so up at the top where use-package-modules is, add xdisorg
<brendyn>mine has certs gnome bootloaders
<soundtoxin>Ah, I'm seeing a pattern now. I got a similar error, but instead of rofi it's polybar, but this time it doesn't have a specific suggestion to add.
<soundtoxin>I'll just take out polybar for now.
<brendyn>polybar doesn't exist
<brendyn>I think polybar hasn't been packaged yet.
<soundtoxin>Alright, good to know.
<soundtoxin>It's finally starting without an error now. Thanks.
<str1ngs>\\o/
<brendyn>ok. it should run until it it fails to download a package because of network issues, or when it finishes the packages and you discover your grub config is also wrong.
<soundtoxin>lol
<soundtoxin>Yeah, this is my second try. I had some grub issues the first time around and ended up starting the install over.
<brendyn>I wish there was a way to make all my users packages also system-wide packages
<str1ngs>brendyn: I use manifests, not exactly system wide
<brendyn>I don't know what that means
<str1ngs>guix package -m
<str1ngs>then just add (specifications->manifest "emacs" "git") to a file
<brendyn>is it possible to specify the output of a package when refering to it that way?
<str1ngs>actually should be (specifications->manifests '("emacs" "git"))
<str1ngs>not sure about, but this will install all the missing packages into one profile
<str1ngs>make it easier to move across machines
<soundtoxin>Jesus. The install is pulling in pulseaudio and networkmanager. This is rape.
<soundtoxin>I think I might've done something wrong. I had a grub error about it not finding /boot/efi, so I changed both instances of /boot/efi in my config to /mnt/boot/efi, but now I'm thinking post-install I won't want it to be set there.
<soundtoxin>str1ngs: Any idea what I should do?
<soundtoxin>It actually completed without errors now, but I feel like once I boot into the OS it won't be able to boot because I was using a temporary mountpoint in the config
<soundtoxin>You think it'll work if I just edit it back to /boot/efi before rebooting?
<soundtoxin>Okay, I changed it from /mnt/boot/efi to /boot/efi and now I'm gonna reboot and hope it works...
<soundtoxin>Okay, seems to have been a success.
<str1ngs>soundtoxin: should be /boot/efi
<str1ngs>soundtoxin: but it's working then?
<soundtoxin>After booting, df -h shows it did end up in /mnt/boot/efi after the install...
<soundtoxin>It was giving an error when it was /boot/efi
<soundtoxin>So how do I pull in updates after I add more packages to the config?
<soundtoxin>str1ngs: How do I download new packages after adding them to config.scm?
<soundtoxin>Figured it out, I think.
<Nemaster654>▄▄▄▄▄▄▄▄▄▄▄▄▄▄ A DISCUSSION IS GOING ON ABOUT TO TO RE-ENSLAVE NIGGERS IN #/JOIN IF THIS GETS YOUR DICK HARD JOIN IN (MESSAGE VAP0R FOR HELP) biglqwgs: soundtoxin Sleep_Walker gnusosa ▄▄▄▄▄▄▄▄▄▄▄▄▄▄
<Nemaster654>▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ A DISCUSSION IS GOING ON ABOUT TO TO RE-ENSLAVE NIGGERS IN #/JOIN IF THIS GETS YOUR DICK HARD JOIN IN (MESSAGE VAP0R FOR HELP) zjggszgozr: davidl iyzsong sentriz ▄▄▄▄▄▄▄▄▄▄▄▄▄
<Nemaster654>▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ A DISCUSSION IS GOING ON ABOUT TO TO RE-ENSLAVE NIGGERS IN #/JOIN IF THIS GETS YOUR DICK HARD JOIN IN (MESSAGE VAP0R FOR HELP) mirvg: DoublePlusGood23 daviid slyfox ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄,
<Nemaster654>▄▄▄▄▄▄▄▄▄▄▄▄ A DISCUSSION IS GOING ON ABOUT TO TO RE-ENSLAVE NIGGERS IN #/JOIN IF THIS GETS YOUR DICK HARD JOIN IN (MESSAGE VAP0R FOR HELP) nyaarffe: lxo daviid mbuf ▄▄▄▄▄▄▄▄▄▄▄
<Nemaster654>▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ A DISCUSSION IS GOING ON ABOUT TO TO RE-ENSLAVE NIGGERS IN #/JOIN IF THIS GETS YOUR DICK HARD JOIN IN (MESSAGE VAP0R FOR HELP) plikxu: iyzsong Digit Steap ▄▄▄▄▄▄▄▄▄▄▄▄▄,
<Nemaster654>▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ A DISCUSSION IS GOING ON ABOUT TO TO RE-ENSLAVE NIGGERS IN #/JOIN IF THIS GETS YOUR DICK HARD JOIN IN (MESSAGE VAP0R FOR HELP) zxfyxql: csprng Cheeky-Celery davidl ▄▄▄▄▄▄▄▄▄▄▄▄▄
<Nemaster654>▄▄▄▄▄▄▄▄▄▄▄▄▄▄ A DISCUSSION IS GOING ON ABOUT TO TO RE-ENSLAVE NIGGERS IN #/JOIN IF THIS GETS YOUR DICK HARD JOIN IN (MESSAGE VAP0R FOR HELP) nkiprqa: dimaursu16 rekado csprng ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
<Nemaster654>▄▄▄▄▄▄▄▄▄▄▄ A DISCUSSION IS GOING ON ABOUT TO TO RE-ENSLAVE NIGGERS IN #/JOIN IF THIS GETS YOUR DICK HARD JOIN IN (MESSAGE VAP0R FOR HELP) frahd: sentriz brendyn slyfox ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
<soundtoxin>Is there something I can change so I don't have to keep adding stuff to package modules AND packages? On NixOS I could just add packages to one spot. I know they're not exactly the same, but I'm just wondering if I'm doing something differently here than I was on NixOS.
<soundtoxin>Also, is it normal for config.scm to be read-only? It's kind of annoying that I have to do :wq! instead of ZZ
<brendyn>soundtoxin: yeah, you can use specification->package
<soundtoxin>Can you link me a page from the docs on that or something so I can better understand it?
<brendyn>im looking for it
<soundtoxin>Also, a bit unrelated, but I added icecat to my system-wide package list and then started updates and it's been taking like 10+ minutes. Is it compiling it? Am I stuck for 20 hours now?
<brendyn> (packages (append (map specification->package
<brendyn> '("tcpdump" "htop" "gnupg@2.0"))
<brendyn> %base-packages)))
<brendyn>That's an example. you refer to packages by name with strings, and you don't need to add any extra modules
<brendyn>so modify your packages definition to use that style.
<soundtoxin>Alright. I'll give it a try later. Thanks.
<brendyn>I'd recommend removing icecat and doing your first install with a minimal package set, rebooting to check your system works, then you can upgrade.
<brendyn>or have you already succeeded in installing?
<soundtoxin>Oh, I'm installed now.
<soundtoxin>I added a few basics like vim, ssh, rsync, i3wm. Trying to get to a more workable system now.
<brendyn>ok cool. Well you might be stuck for 20 hours, it depends on how much the build server has already built.
<soundtoxin>I am considering canceling compiling and putting in qutebrowser or something, though.
<soundtoxin>>how much the build server has already built
<soundtoxin>Cool, I was wondering about this.
<soundtoxin>I was pretty sure on NixOS I didn't have to compile all of firefox due to the hydra thing.
<soundtoxin>So, does me installing it benefit anyone else?
<soundtoxin>Like, does it donate my processing power to the build server also or anything?
<brendyn>Yeah. Guix is the same in theory but being a smaller project, there are only a couple build servers and they are compiling for their dear lives 24/7
<brendyn>nope, it's purely for your own purpose.
<soundtoxin>Alright.
<brendyn>one thing you could try is adding the berlin substitutes server as well and you might find yourself building less things yourself
<soundtoxin>brendyn: Do I want to keep the cons* thing in my packages block if I am switching to that other format, or do I remove it?
<brendyn>remove it and make it like how i pasted, with append
<soundtoxin>Alright.
<soundtoxin>brendyn: http://chunk.io/bard/f2a17689e4c444189ef21dfe8aca45a9 Can you tell me what's wrong with this? It's not working.
<soundtoxin>I get a huge messy error after changing my config to be the other format.
<brendyn>You need to move %base-packages outside by one parenthesis
<brendyn>outside the map expression
<soundtoxin>Ah, okay.
<soundtoxin>guix system: error: failed to load '/etc/config.scm':
<soundtoxin>guix/utils.scm:464:2: In procedure package-name->name+version:
<soundtoxin>guix/utils.scm:464:2: In procedure string-index-right: Wrong type argument in position 1 (expecting string): i3-wm
<soundtoxin>Any other problems in that section? It's all I changed and I get these errors now.
<brendyn>well i see "i3-wm" as a string so im not sure
<soundtoxin>Oh, shoot. My bad. I removed the quotes for some reason and saved it.
<brendyn>^.^
<soundtoxin>I was trying random stuff when the parantheses placement was the problem before.
<soundtoxin>Nice! Works now it seems.
<str1ngs>soundtoxin: you are using guix package reconfigure right?
<str1ngs>soundtoxin: also once this system booted. have you done a guix pull yet?
<soundtoxin>I'm doing guix system reconfigure. I did a guix pull once also.
<str1ngs>kk
<str1ngs>guix pull is kinda hit and miss in terms of substitutes. generally it's pretty rare you'll have to build anything though
<str1ngs>also for things like icecat I don't add them to my system config.
<soundtoxin>So, how painful of a process is it to try and get something new packaged? So far off the top of my head, I found that polybar, deluge, and tewi (a font) are not packaged.
<str1ngs>generally not to bad. deluge may take some work. I was looking at packaging it myself the other day.
<soundtoxin>I've got the deluge daemon running on a server in my basement. I had been using deluge-gtk to attach to it from my laptop before.
<str1ngs>so fare I've gotten deluge to build manually, still working on packaging it though
<brendyn>I reckon polybar would be pretty easy
<efraim>i try not to add too much to my system config, cups for the print service, btrfs because i have a btrfs partition
<brendyn>str1ngs: if you want to try packaging polybar i can help
<soundtoxin>Really? I feel like declarative package management is the main selling point of this sort of distro. You can put your favorite packages in your config file, put it on a fresh install, and recreate your setup very quickly.
<soundtoxin>The only reason I can think of to not install something via the config is if it's a multi-user machine.
<efraim>i have weak machines, easier to install them as my user
<brendyn>I'd like to have global packages too but guix makes it awkward
<brendyn>installing packages with guix package -i installs them locally. you have to edit a config file and run reconfigure to do it systemwide unfortunately
<brendyn>but its also nice for the system to be a small core to easily upgrade
<soundtoxin>Yeah, I've been only installing packages via the config + reconfiguring.
<brendyn>oh and every system revision makes it's own entry in grub that can be booted from....
<soundtoxin>Hm. I guess ranger (file manager) isn't packaged either.
<str1ngs>gasp, emacs dired! :P
<efraim>i have a copy of ranger, never submitted it though
<brendyn>dired is still awkward for running things like xdg-open from so i use pcmanfm
<efraim> http://git.flashner.co.il/cgit/cgit.cgi/my-guix.git/tree/dfsg/main/ranger.scm
<str1ngs>I guess deluge would go in python.scm?
<str1ngs>I'm creating the file so probably does not matter, just thinking if a submit a patch
<brendyn>str1ngs: python.scm was split recently because it was way too big and taking up heaps of ram to compile. deluge would be better in bittorrent.scm
<str1ngs>ahh bittorrent.scm is a better place thanks
<str1ngs>it's GPL 3 so probably won't be an issue to submit a patch, once I have it sorted out.
<str1ngs>for python inputs do i use native-inputs or propagated-inputs ?
<str1ngs>I guess propagated is for outputs like :bin?
<soundtoxin>I'm seeing i3lock-color and i3lock-fancy, but not regular i3lock. I tried installing i3lock-fancy, but it doesn't work without regular i3lock.
<groffer>Hello, I'm using GUIX_PACKAGE_PATH to (try to) build some applications that are not yet in the official repository.
<groffer>Now I want to override only the version and checksum for a package that already exists in the original repo to test if it can be upgraded.
<groffer>(How) can I do that from a file in GUIX_PACKAGE_PATH without editing the original?
<ng0>soundtoxin: do you use GuixSD? I can help you setting up i3lock-fancy
<efraim>groffer: you're already using (inherit ...) to inherit the original package?
<ng0>soundtoxin: I'm using it with i3lock-color + i3lock-fancy in the global package list (i3lock-fancy just needs to be availabe to the user view somehow, profile, global, doesn't matter) and this in services: (screen-locker-service i3lock-color "i3lock")
<ng0>soundtoxin: we do not have the "normal" i3lock yet, but it would be good if you could express what your issue was so that the description of i3lock-color could be improved. I thought it was implicit that you need i3lock, and i3lock needs to be suid.
<groffer>efraim, I'm very, *very* nooby with all things guix/scheme :) Trying now with (inherit...), thanks!
<groffer>efraim, I've posted what I have so far on https://pastebin.com/TwrLLCjk
<groffer>When I try to use it I get an error "ERROR: no code for module (gnu packages darktable-2.4)"
<ng0>where do you have this file (module) placed?
<ng0>the module name (gnu packages foo) would reflect a path of gnu/packages/foo.scm
<ng0>in the guile load path, that is
<ng0>so you'd have to put this file into let's say '$home/packages/gnu/packages/darktable-2.4.scm' and export a GUIX_PACKAGE_PATH with the '$home/packages'
<ng0>unless you were working on an update to darktable
<brendyn>str1ngs: I think python programs often require propagated-inputs due to how it finds dependencies. I don't understand it any more than that.
<groffer>ng0: it's in a file "~/DEV/Guix/packages/gnu/packages/darktable-2.4.scm" and GUIX_PACKAGE_PATH is set to "~/DEV/Guix/packages/" (actually, the absolute path)
<ng0>groffer: hm.I'd just rename the file and module to 'darktable'
<str1ngs>brendyn: ya think I'll use that for now. seems native-inputs is for build time anyways
<str1ngs>thanks
<str1ngs>also I need to inherit libtorrent for python2-libtorrent and then modify before build phase, to run configure --enable-python-binding
<groffer>ng0, then I get "ERROR: Unbound variable: darktable"
<str1ngs>kinda complex for my first package
<ng0>you have to add a name to it, like (name "darktable-2.4") which goes against conventions, but for versioned names you can look at the source
<str1ngs>I've created a package called python2-libtorrent, which inherits libtorrent. it uses python-build-system. but before the build phase I need to run ./configure --enable-python-binding . then the python build continues as normal. here is what I have so far. https://gist.github.com/mrosset/4d9c85ae3cc3bbc9adcc3f72081f4f13
<str1ngs>I'm not sure how to add configure to the lambda THUNK though
<efraim>if you're using the python-build-system then you probably don't need the regular configure-flags, so you should be able to do (add-before 'build 'enable-python-libtorrent (lambda _ (zero? (system* "./configure" "--enable-python-binding"))))
<groffer>ng0, efraim: thanks for your help! As it turns out I apparently forgot to pull and darktable is now at 2.4.0 anyway... but good to know for the future.
<str1ngs>efraim: thanks, that gives me somewhere to start.
<ng0>nee`: how's the GNUsocial service going?
<ng0>iirc you were working on it, right?
<shiranaihito>so are normal user accounts in GuixSD forbidden from switching to root with "su"?
<shiranaihito>how naughty is it to circumvent that with "sudo su"? :)
<shiranaihito>and how do i list all the user accounts in the system? ("users" just shows my own account name for some reason)
<str1ngs>shiranaihito: you can use su -
<shiranaihito>str1ngs what does the "-" mean there?
<str1ngs>have you set your root password?
<str1ngs>- just means --login
<str1ngs>also sudo -i or sudo --login is fine
<shiranaihito>oh ok
<shiranaihito>yeah i did set a password for root
<str1ngs>ok the su - should work
<shiranaihito>um.. the "cat" and "less" commands are not found - what's wrong?
<shiranaihito>i did include "%base-packages" in the system config though
<str1ngs>how about sudo -i cat
<str1ngs>su - -c cat . works for me
<shiranaihito>"su -" doesn't seem to work either: "su: Authentication failure"
<str1ngs>maybe wrong password?
<str1ngs>or maybe you forgot to set root password
<shiranaihito>hm yeah it works with sudo -i
<shiranaihito>weird
<shiranaihito>well, i'm pretty sure i set it (and remember it :p)
<str1ngs>sudo -i uses your user credentials though
<shiranaihito>str1ngs yeah, you mean i give it my own password, right? yep, it's fine
<shiranaihito>but how do i get postgresql's command line utilities to show in my user's path?
<shiranaihito>like they usually would
<shiranaihito>my electricity bill for december was ~135 USD.. :(
<shiranaihito>ouch..
<shiranaihito>and this month will be similar
<str1ngs>probably just need to do guix package -i postgresql
<str1ngs>stop mining bitcoin!
<shiranaihito>i'm not!
<shiranaihito>just heating and dehumidifying a small apartment! :)
<shiranaihito>.. in taipei
<str1ngs>invest in good coat :P
<str1ngs>how cold does taipei get?
<shiranaihito>nah.. i prefer hemorrhaging money to being cold :P
<shiranaihito>well, basically the lowest temperature ever in taipei is roughly +10C, but it feels a lot colder because it's really humid too
<str1ngs>homeostasis is important for happiness :)
<shiranaihito>i mean.. +10C is generally the minimum (nighttime) temperature in taipei in the winter
<shiranaihito>i'd have to look that word up and i don't wanna :p
<str1ngs>it's number 1 on the happiness pyramid
<str1ngs> http://www.pursuit-of-happiness.org/wp-content/uploads/Maslows_Hierarchy_of_Needs.gif
<shiranaihito>but yeah.. the 135 dollars stings a bit
<str1ngs>slightly offtopic sorry
<shiranaihito>why is "morality" on two different levels? :P
<shiranaihito>np, i'm not allergic to general discussions :p
<str1ngs>well if you have to kill someone for food. that probably throw morality out the window
<str1ngs>morbid thought I know
<shiranaihito>ok, but food is at the lowest level, but morality is not :P
<str1ngs>right food is more important then morality I guess
<shiranaihito>but ok, maybe morality can be connected to safety
<shiranaihito>though it doesn't actually need to be thrown out the window for safety
<str1ngs>I guess that's why Jean Valjean in Les Misérables went to jail
<shiranaihito>and there's nothing immoral about defending yourself.. so.. it's still a mystery!
<shiranaihito>dude, you're still talking like an encyclopedia :P
<str1ngs>sorry :(
<shiranaihito>no worries :)
<shiranaihito>anyhow, i just wanted to fish for some sympathy for my nasty electricity bill :P
<str1ngs>I hear ya man!
<shiranaihito>so like.. what does "guix package -i postgresql" do?
<shiranaihito>.. besides adding the CLI tools to my path
<shiranaihito>the package is already there because postgresql-service needs it, right?
<shiranaihito>so it seems weird to have to -i(nstall?) it like that
<str1ngs>guix works like gnu stow. the files exist in /gnu/store but they are linked into a profile. find in $HOME/.guix-profile
<str1ngs>if the files are not in /gnu/store it will either download a substitute or build the files
<str1ngs>-i(nstall) is not like normal packages managers. guix build is
<clacke[m]>shiranaihito: I'm in HK so winter just means no air conditioning bill. :-)
<shiranaihito>clacke[m] mmm.. well, i doubt it's much warmer there :)
<shiranaihito>HK seems like a really cool city though
<shiranaihito>(.. but crazy expensive!)
<clacke[m]>I love it
<clacke[m]>After you paid rent, everything is cheap
<str1ngs>-3C I live in Canada, which is pretty good for Canada
<str1ngs>I want to build a echo friendly camper. using open hardware and software.
<str1ngs>then I don't need to pay rent
<shiranaihito>str1ngs ok, but i'm still confused :) maybe i'll add psql to the system config packages - i suppose that would get it into all users' paths
<shiranaihito>you mean "eco-friendly"?
<str1ngs>shiranaihito: that works, but it's not the best habit to get into. psql might be the exception to the rule though
<shiranaihito>yeah
<str1ngs>yes thank you eco-friendly
<shiranaihito>str1ngs but how would a normal user generally set up his account then? to have all the packages he wants, maybe configured in a system config?
<str1ngs>keep it minds its much easier to do guix pull. guix package -u. then guix system reconfigure
<shiranaihito>str1ngs the camper sounds like a good idea
<str1ngs>shiranaihito: if you have a list of package you normally use. create a manifest file
<shiranaihito>hm
<str1ngs>say in profile.scm have (specifications->manifest '("emacs" "git")) then do guix package -m profile.scm
<str1ngs>addd postgresql
<str1ngs>you can also use guix package -l . personally I find -m easier to use
<str1ngs>how can I modify or inherit configure-flags? from an inherited package?
<shiranaihito>so "guix package" is like "guix system" but for users?
<str1ngs>yes though not as stateful
<str1ngs>using manifests is closer to guix system. guix package -i not so much
<shiranaihito>hmm
<shiranaihito>guix is surprisingly versatile already
<str1ngs>sigh libtorrent-rasterbar already has python enabled.
<str1ngs>ACTION facepalms
<shiranaihito>is that a problem? :)
<str1ngs>no it's a good thing. considering I was trying to recreate the wheel
<str1ngs>shiranaihito: once yous start groking guix. nothing beats it
<shiranaihito>:P
<shiranaihito>that's exactly what i'm hoping for
<str1ngs>it only lacks in performance. but it made up in features
<str1ngs>or I'm just impatient person :P
<shiranaihito> https://i.redd.it/tul0ap4dgf701.jpg - Gal looks like she's already there :P
<shiranaihito>what do you mean with performance?
<str1ngs>well guix pull on weaker laptops is pretty slow
<str1ngs>also if a substitute does not exist, you'll have to build it some how.
<shiranaihito>hmm
<shiranaihito>i've had some really slow installs of guixsd when practising, and but it seems it's just because of limited bandwith
<str1ngs>I have a high powered desktop that I use a substitute/publish server
<str1ngs>once I build or download once on the server. my other machines populate pretty quickly
<shiranaihito>yeah, i think i need something like that too
<shiranaihito>later on
<str1ngs>also I use my publish server to guix pull. which make guix pull on other machines use a substitute.
<str1ngs>provided the commit hash is the same
<shiranaihito>i'll take your word for that :)
<str1ngs>that a first!
<str1ngs>starting 2018 out right!
<shiranaihito>str1ngs first time someone ever took your word for something? :p
<str1ngs>shiranaihito: I'm failing at writing
<str1ngs>my first guix package
<str1ngs>of course I had to pick something hard
<shiranaihito>oh? :)
<shiranaihito>so what was it, and what made it hard?
<shiranaihito>( str1ngs "ping!" :p )
<str1ngs>I need to inherit a package
<str1ngs>and use another build system with it. but I think I have it figured out
<str1ngs>shiranaihito: deluge need python2-libtorrent but libtorrent-rasterbar does not install the python files. so I need to build and install those
<shiranaihito>oh ok :)
<str1ngs>libtorrent-rasterbar build with python support, but it's just to so file not the python files
<str1ngs>I suspect since libtorrent-rasterbar is building the so file. building the python files would not be a stretch
<str1ngs>which I've done, but now the two packages conflict
<str1ngs>I guess I can graft?
<str1ngs>ACTION is confused
<str1ngs>it works@!
<str1ngs>shiranaihito: it works!
<shiranaihito>hooray! :P
<shiranaihito>btw, does guix have other ways of specifying package versions besides the "regexy" strings or something?
<shiranaihito>i think they need to be used in some slightly different way anyway
<str1ngs>yes you can doe guix package -i foo@2.2
<shiranaihito>ok but in system configs?
<str1ngs>you might need to use specifications for that
<str1ngs>I don't use it them in system. someone else might understand it better
<str1ngs>shiranaihito: new users have a tendency to over use system packages
<str1ngs>ideally system is best suited for services an limited base files
<shiranaihito>hmm
<shiranaihito>yeah i guess
<str1ngs>soundtoxin: I have deluge packaged if you want to try it out. https://github.com/mrosset/guix-free
<shiranaihito>str1ngs oh btw.. i was thinking of postgresql and how the official system package is always the latest version right? sometimes you don't want the latest version
<str1ngs>shiranaihito: right I think using specifications could resolve that. I just forget how to use them them with system
<shiranaihito>ok
<str1ngs>shiranaihito: https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html has an example see gnupg@2.0
<shiranaihito>thanks
<str1ngs>it's basically syntactic sugar. also you don't have to book keep your use-modules and use-package-modules with this IIRC
<shiranaihito>"warning: Consider running 'guix pull' before 'reconfigure'." <-- but it continues with the reconfigure anyway :P
<str1ngs>yes, have you run guix pull as root?
<shiranaihito>what does "book-keeping use-modules" mean?
<shiranaihito>not yet
<shiranaihito>is using sudo good enough?
<str1ngs>if you do guix pull as user it only updates for that user. since guix reconfigure uses root you should pull as root aswell
<shiranaihito>oh
<shiranaihito>well, i wasn't aware of the distinction anyway
<str1ngs>how do you invoke guix system reconfigure?
<shiranaihito>well, now i just ran it as my normal user
<str1ngs>also by book keeping I mean you don't need to add packages to use-modules or use-package-modules
<shiranaihito>i still don't get it :P
<shiranaihito>"add packages to use-modules"?
<str1ngs>in order to install a package you need to import the module into guile
<str1ngs>either with use-modules or use-package-modules
<shiranaihito>ohh right, "use-modules" was the basic one
<shiranaihito>i was thinking of use-service-modules and use-package-modules
<str1ngs>eg if you want to install i3wm you might add wm to use-package-modules
<str1ngs>use-modules and use-package-modules can be interchangeable. just the syntax changes
<shiranaihito>yeah, as far as i understand, use-service-modules and use-package-modules are just "shortcuts" over use-modules
<str1ngs>(use-modules (gnu packages wm)) == (use-package-modules wm)
<shiranaihito>yeah :)
<str1ngs>but if you use specification->package you only need to (use-modules (gnu packages))
<str1ngs>IIRC
<shiranaihito>i think i should only use the shortcuts
<str1ngs>I'm no guix guru. so when it doubt read docs blah blah
<shiranaihito>:)
<shiranaihito>str1ngs btw, do you know if there's a way to set global environment variables in a system config?
<shiranaihito>"/tmp/guix-build-expat-2.2.4.drv-0/expat-2.2.4/libtool: line 1784: ldconfig: command not found" <-- i wonder if this is noteworthy
<shiranaihito>dozens of lines of this: "substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%" looks kind of fishy though :)
<efraim>The ldconfig line is normal
<shiranaihito>ok
<efraim>For Hydra I think it is checking recursively for substitutes and linked inputs and their build requirements etc. as it finds some missing
<shiranaihito>efraim is the list of eeeeevveerrythingggg too massive to be downloaded just once?
<shiranaihito>i mean.. is it downloading the list in pieces or something?
<efraim>Whats available changes constantly as new substitutes are built
<efraim>Hits are cached for a number of hours iirc, misses are dropped
<shiranaihito>hmm..
<shiranaihito>but does guix download the actual list of everything upon each of those messages?
<shiranaihito>like, all the substitutes that are available
<efraim>Only whats relevant to what you're trying to build
<shiranaihito>well, i'm probably missing something but i get the feeling this could be optimized
<shiranaihito>we don't care about changes to available substitutes that happen while running one invocation of guix, right?
<shiranaihito>now it sounded like availability changes would be picked up even during one invocation of guix
<efraim>Its possible, if you're installing mpv and you have to build from ffmpeg the rest might be ready after you've finished building
<efraim>But then its only checking a few items so it should be much faster than the initial request
<shiranaihito>again, probably missing something.. :) but is that possibility worth all the round-trips to keep checking for changes?
<efraim>Probably
<shiranaihito>probably missing something or probably worth it? :P
<efraim>Probably worth it
<shiranaihito>ok, well, i'm not convinced about that :)
<shiranaihito>efraim btw, any idea why downloads from mirror.hydra are so slow?
<shiranaihito>for example, now guix is downloading a 52MB file at 176KiB/s
<shiranaihito>my connection could handle several megabytes per second, as you'd expect from a decent modern connection
<efraim>Hydra is a underpowered VM, sometimes items arent cached yet on the mirror and the request gets passed through and then you get the slow speeds
<efraim>Wow, failed rocksdb build is 15G of space in /tmp
<shiranaihito>but hydra is the default mirror for all guixsd installations, right? it seems like a good idea to give it enough power to handle that responsibility.. unless the resources just aren't there, etc
<efraim>There was an effort underway to buy librebooted AMD machines to replace Hydra but it's been having trouble, we're also looking into enabling MDC's guix build cluster as a default substitute server
<shiranaihito>hmm, alrighty
<shiranaihito>"sometimes items arent cached yet on the mirror and the request gets passed through" <-- where does the request go then?
<shiranaihito>"guix system: error: symlink: Permission denied: "/var/guix/profiles/system-2-link.new"" <-- so i guess i was supposed to run system reconfigure as root? :P
<shiranaihito>with "sudo -i" or something?
<efraim>I normally run it as 'sudo -E'
<efraim>It gets passed through the mirror directly to Hydra itself
<efraim>That way I can keep just my user's guix checkout up to date and any extra packages
<catonano>I created a virtual machine gifted with a desktop environment. Which password has my user in that machine ? I can't log in !
<catonano>I can't log in with root and no password
<catonano>I'm locked out
<catonano>ah no
<catonano>root succeded
<catonano>but thhe screen remains black
<catonano>ah now the login screen came back
<catonano>seems liek the root login failed
<OriansJ>catonano: you need to either set the password during setup or have its hash included in your setup configuration file
<OriansJ>otherwise no password would be set by guix
<catonano>OriansJ: thanks. How do I do that ? Is there any example anywhere ?
<catonano>Also, root can login withhout password, but the screen remains black then the login screen pops up again
<catonano>I wrote to guix bugs about this
<OriansJ>catonano: ctrl-F1, login as root. Set password for your user. Also https://www.gnu.org/software/guix/manual/html_node/User-Accounts.html
<OriansJ>if you set the default shell for root to /usr/sbin/nologin, you would have to boot from the install medium and chroot to set a proper password for your user.
<catonano>OriansJ: thank you
<catonano>OriansJ: with ctrl-F1 you mean an xfce session ?
<OriansJ>catonano: well TTY1 should be accessable (could be ctrl-alt-F1) but yes alternate gui sessions could work if your default needs configuration prior to use
<efraim>i fixed gcc-4.8 on core-updates and then tried to test cross building to armhf, which was already working :/
<efraim>time to try aarch64->powerpc to try to fix the asan error
<efraim>looks like ludo started the full core-updates evaluation, fixing gcc-4.9 is going to need to include 'unfixing' in commencement.scm
<efraim>anyone have experience removing a snippet from an inherited package-source?
<OriansJ>out of curiousity, what command is used to generate the release ISO image?
<mekeor>OriansJ: `guix system disk-image`, i guess
<OriansJ>mekeor: I'm surprised that it isn't well documented. As guix is one of the few systems that can have a reproducible install media generation process. Which would allow for some interesting auditing capabilities
<reirob>Hello
<reirob>I am trying to install gnu smalltalk in a hosted guix
<reirob>And I get an error
<reirob>what should I do?
<reirob>Can I just tell it here?
<reirob>ld: /gnu/store/94liwlb92cd2h81py4bywxd4yh1z4b2m-libsigsegv-2.11/lib/libsigsegv.a(stackvma.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status
<reirob>This is what I get
<reirob>I will stay for some minutes, so if somebody has an idea what to do - please let me know
<reirob>otherwise I will just install the gnu smalltalk of the host distribution
<reirob>Will be back in 5 minutes
<efraim>does smalltalk build on guix?
<reirob>@efraim: For me it didn't build
<reirob>Seems like a linker problem:
<reirob>ld: /gnu/store/94liwlb92cd2h81py4bywxd4yh1z4b2m-libsigsegv-2.11/lib/libsigsegv.a(stackvma.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
<reirob>but it's part of the packages, so it should build
<reirob>I tried to install with the command: guix package -i smalltalk
<efraim>it looks like smalltalk hasn't built successfully on x86_64 since october 2015
<efraim> https://hydra.gnu.org/job/gnu/master/smalltalk-3.2.5.x86_64-linux/all
<reirob>So, what should be done about it?
<efraim>looks like I broke it building on armhf
<reirob>I'm happy that I could report something reasonable O:-)
<reirob>What is going to happen next?
<efraim>looks like a core-updates merge in 2015 broke it
<efraim>thats up to you, do you want to try to fix it? I know they had a release candidate about a year ago
<reirob>@efraim: I am a guix newbie and installed it on Ubuntu - to slowly get used to the environment. I am far away from being able to fix anything :-O
<efraim>fair enough
<reirob>Sorry. But I thought, I report it in case it helps the project
<efraim>can you try 'guix build smalltalk --with-source=https://alpha.gnu.org/gnu/smalltalk/smalltalk-3.2.91.tar.xz'
<reirob>@efraim: trying now
<reirob>hmm, this throws errors
<reirob>ERROR: X.509 certificate of 'alpha.gnu.org' could not be verified:
<reirob>then
<reirob>failed to download "/tmp/guix-file.gTYTXT" from "https://alpha.gnu.org/gnu/smalltalk/smalltalk-3.2.91.tar.xz"
<pkill9>reirob: get the nss-certs package
<reirob>but after this it still continues to do something
<reirob>@pkill9. How do I do this?
<pkill9>`guix package -i nss-certs`
<reirob>thanx pkill9
<pkill9>you might need to add a couple variables too: https://www.gnu.org/software/guix/manual/html_node/X_002e509-Certificates.html#X_002e509-Certificates
<pkill9>all info there
<efraim>smalltalk@3.2.91 builds on aarch64
<reirob>pkill9: following your instruction helped, now the download does not fail anymore
<pkill9>ah good
<reirob>crossing fingers for building smalltalk 3.2.91
<amz3>sorry for my dubious message in guix-devel, it was meant for help-guix, I will reply to add more context for my question
<reirob>efraim: smalltalk 3.2.91 does NOT build either
<reirob>ld: /gnu/store/94liwlb92cd2h81py4bywxd4yh1z4b2m-libsigsegv-2.11/lib/libsigsegv.a(stackvma.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
<reirob>ld: /gnu/store/94liwlb92cd2h81py4bywxd4yh1z4b2m-libsigsegv-2.11/lib/libsigsegv.a(handler.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
<reirob>I have to leave now. Happy New Year People! I wish a successful year 2018 for guix!
<reirob>bb
<mlin>Could anyone please help me package https://github.com/jaagr/polybar? So far I have this https://pastebin.com/GkLXwbkH
<amz3>mlin: it looks neat
<amz3>mlin: ah! you forgot about i3-gaps
<mlin>amz3: I actually realised that I didn't need i3-gaps. Doh. I do need polybar, however
<mlin>I seem to be getting the error `no code for module (gnu package cairo)` now
<amz3>amirouche@ubudec:~/tmp/rootfs$ guix package -A cairo
<amz3>cairo 1.14.10 out gnu/packages/gtk.scm:108:2
<amz3>it's inside gtk.scm
<amz3>I read the manual today, maybe I will be of some help
<amz3>:)
<mlin>amz3: I replaced it with gtk, seems to pass that. But now I get an error about `no code for module (gnu packages xcb-util-wm)`, but I ran `guix package -I xcb-util-wm` and it is indeed in the package `xcb-util-wm`
<amz3>it's "guix package -A xcb-util-wm"
<amz3>that givest the path to the module like in the above example I pasted
<mlin>amz3: Got it. Thanks. I now get an error about the sha256 not being in base32. How do I convert it to base32?
<amz3>mlin: can you paste the error at dpaste.de for instance, avoid pastebin.com as it's blocking tor users and is bad pastebin service
<amz3>paste the recipe too
<mlin>error: https://dpaste.de/iaUa#L1. Recipe: https://dpaste.de/NFAg
<amz3>mlin: it seems like what you pasted inside base32 procedure call is not base32 encoded, how did you find it?
<amz3>guix download takes a -f option that must be equal to base32 i think
<amz3>or maybe the default is correct, dunno, the manual seem to say to use the default
<mlin>amz3: I downloaded the tar using wget and ran `echo -n 3.1.0.tar.gz | sha256sum`
<amz3>that's not good
<amz3>guix download http://github.com/foo/bar
<amz3>or guix download -f base32 http://github.com/foo/bar
<mlin>amz3: it does begin to build now, but it seems to say that there is a hash mismatch for the output path
<mlin>amz3: There now seems to be an error in `configure`: https://dpaste.de/JNXY
<amz3>sorry I was afk
<amz3>ACTION looking at it
<amz3>it's missing native-inputs
<amz3>pkg-config
<mlin>Do I format that in the same way as (inputs?
<amz3>yes
<amz3>look at 'guix edit i3-wm'
<amz3>"native-inputs is typically used to list tools needed at build time, but not at run time, such as Autoconf, Automake, pkg-config, Gettext, or Bison."
<mlin>amz3: Got it. I am now getting this error: https://dpaste.de/70jG
<amz3>let's duckduckgo the error
<mlin>amz3: I see at the bottom of this page, it suggests some flags to pass to cmake: https://github.com/jaagr/polybar/wiki/Compiling
<amz3>yes, but we are not using gcc 7.x but 5.4.0
<mlin>amz3: I should probably go to sleep now, but it would be great if you could make any suggestions. I'll check the logs
<amz3>mlin: do you plan to use polybar with i3?
<mlin>Yes I do
<mlin>Here is the recipe I have so far: https://dpaste.de/g90t
<amz3>tx
<amz3>I don't understand the error, except if cmake-build-system doesn't do the good thing
<amz3>I'll try the recipe on my machie
<mlin>amz3: perhaps. Thanks for all of your help though
<mlin>See you.
<amz3>ah
<amz3>I mean maybe cmake-build-system is not good solution for that case