💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2020-07-22.txt captured on 2024-05-26 at 16:23:32.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
2020-07-22T06:00:32 #kisslinux <dylanaraps> o/ 2020-07-22T06:01:39 #kisslinux <illiliti> hi 2020-07-22T06:03:37 #kisslinux <dylanaraps> How is the hotplugging support going for libudev-zero? 2020-07-22T06:03:44 #kisslinux <dylanaraps> I saw the initial PR this morning 2020-07-22T06:06:31 #kisslinux <illiliti> i'm planning done hotplugging in this week 2020-07-22T06:06:54 #kisslinux <illiliti> idea is very similar to vdev libudev-compar 2020-07-22T06:07:21 #kisslinux <illiliti> but i decided to use fifo instead of files 2020-07-22T06:08:24 #kisslinux <dylanaraps> Nice 2020-07-22T06:08:35 #kisslinux <dylanaraps> I can't wait until it's done 2020-07-22T06:08:41 #kisslinux <dylanaraps> =) 2020-07-22T06:09:31 #kisslinux <illiliti> it's pretty straightforward implementation 2020-07-22T06:10:57 #kisslinux <illiliti> i already cut a release btw 2020-07-22T06:11:13 #kisslinux <illiliti> https://github.com/illiliti/libudev-zero/releases 2020-07-22T06:11:19 #kisslinux <dylanaraps> Nice 2020-07-22T06:11:55 #kisslinux <dylanaraps> With this release, do I still need Xorg conf files for Xorg to know about my devices? 2020-07-22T06:12:03 #kisslinux <dylanaraps> Or is this separate to hotplugging support? 2020-07-22T06:12:37 #kisslinux <illiliti> you don't need xorg.conf 2020-07-22T06:13:03 #kisslinux <dylanaraps> Awesome. I'll package it now and try it out. 2020-07-22T06:15:25 #kisslinux <illiliti> when hotplugging will be implemented you can handle all uevents by using simple oneliner in mdev.conf 2020-07-22T06:15:32 #kisslinux <illiliti> .* root:root 660 *env > /tmp/.libudev-zero 2020-07-22T06:15:39 #kisslinux <illiliti> something like that 2020-07-22T06:15:43 #kisslinux <illiliti> no helpers 2020-07-22T06:16:01 #kisslinux <dylanaraps> Nice 2020-07-22T06:16:03 #kisslinux <dylanaraps> libinput list-devices 2020-07-22T06:16:07 #kisslinux <dylanaraps> This seems to hang. 2020-07-22T06:16:11 #kisslinux <illiliti> yee 2020-07-22T06:16:22 #kisslinux <illiliti> due to lacking caching support 2020-07-22T06:16:24 #kisslinux <dylanaraps> Gotcha 2020-07-22T06:17:08 #kisslinux <dylanaraps> Our libinput package now checks for libudev-zero 2020-07-22T06:17:21 #kisslinux <dylanaraps> Support will be conditionally enabled (same as eudev) 2020-07-22T06:18:31 #kisslinux <illiliti> why not pkg-config --exists libudev ? 2020-07-22T06:19:09 #kisslinux <dylanaraps> Sure, will do. 2020-07-22T06:20:18 #kisslinux <dylanaraps> Done. 2020-07-22T06:20:21 #kisslinux <dylanaraps> Also packaged libudev-zero. 2020-07-22T06:20:39 #kisslinux <illiliti> cool 2020-07-22T06:21:16 #kisslinux <dylanaraps> I have some packages to compile (llvm, clang, Firefox (to test new rust), etc). Will fully migrate my machine to libudev-zero in a few hours. 2020-07-22T06:23:13 #kisslinux <illiliti> great 2020-07-22T07:03:40 #kisslinux <illiliti> dylanaraps: you forgot to add 'linux-headers make' to depends 2020-07-22T07:04:25 #kisslinux <dylanaraps> Thanks 2020-07-22T07:05:20 #kisslinux <dylanaraps> Fixed 2020-07-22T09:18:30 #kisslinux <claudia02> ilitiliti: libudev-zero: I use it now for some days. Works good, but there is still this rare ocation, when I do a 'pkill sway', the computer hangs with a black screen and does not switch back to vt1. I have tried to make a debug log but this is empty then. 2020-07-22T09:20:05 #kisslinux <dylanaraps> illiliti: I get a compilation error with xorg-server and libudev-zero: https://termbin.com/1418 2020-07-22T09:24:07 #kisslinux <dylanaraps> This patch fixes the build: https://termbin.com/t6k9 2020-07-22T09:26:40 #kisslinux <dylanaraps> illiliti: I've also noticed that Xorg startup has a 2~ second delay when launching with libudev-zero. 2020-07-22T09:26:50 #kisslinux <dylanaraps> Everything "just works" though! 2020-07-22T09:26:56 #kisslinux <dylanaraps> This is great. 2020-07-22T09:30:09 #kisslinux <dylanaraps> illiliti: I think this is happening as udev/eudev include this file in libudev.h whereas libudev-zero does not. 2020-07-22T09:30:26 #kisslinux <dylanaraps> https://github.com/gentoo/eudev/blob/51ba6124f513c500511d842158fff433f5fec0f8/src/libudev/libudev.h#L23 2020-07-22T09:30:53 #kisslinux <dylanaraps> https://github.com/systemd/systemd/blob/master/src/libudev/libudev.h#L7 2020-07-22T09:31:54 #kisslinux <konimex> dylan: you've tried rust 1.45 with firefox 78? firefox didn't build with 1.45 from my side 2020-07-22T09:32:09 #kisslinux <dylanaraps> I'm about to start some builds actually. 2020-07-22T09:32:18 #kisslinux <dylanaraps> I first wanted to check Rust with the new LLVM release. 2020-07-22T09:32:27 #kisslinux <dylanaraps> This is why Rust is still in testing. 2020-07-22T09:33:57 #kisslinux <konimex> alright, I've pushed rust 1.45.0 to my repo but rolled back to 1.44.1 due to one of those rust "crates" not able to link to libclang.so.10 (this is before 10.0.1 released, so things may have changed) 2020-07-22T09:34:11 #kisslinux <dylanaraps> Will let you know how it goes 2020-07-22T09:37:06 #kisslinux <j`ey> dylanaraps: I was wondering if it made sense to make the main 'kiss' file be sourced by other sh files 2020-07-22T09:37:18 #kisslinux <j`ey> so that some of the functions could be used by kiss-* extensions 2020-07-22T09:40:25 #kisslinux <dylanaraps> Yeah. There are certainly benefits to structuring everything in this way. I still prefer the single file structure we currently use however. 2020-07-22T09:40:52 #kisslinux <j`ey> Fair 2020-07-22T09:41:16 #kisslinux <dylanaraps> For me to expose kiss' internal functions to external scripts we'd need to create some kind of "public" API. 2020-07-22T09:41:37 #kisslinux <dylanaraps> Otherwise changes to functions may cause breakage to scripts sourcing them. 2020-07-22T09:42:43 #kisslinux <dylanaraps> I have an idea though! 2020-07-22T09:43:18 #kisslinux <j`ey> Oh? 2020-07-22T09:45:01 #kisslinux <dylanaraps> When utilities are called /from/ kiss instead of bare kiss-<name>, the package manager could do a little work to make utilities easier to write. 2020-07-22T09:46:03 #kisslinux <dylanaraps> This obviously needs some thought. 2020-07-22T09:46:44 #kisslinux <dylanaraps> It might be worth exposing a new shell based library for use in extensions. 2020-07-22T09:48:17 #kisslinux <j`ey> Locally I modified the main kiss script to allow me to do it (Im only messing around with kiss in a vm currently tho) 2020-07-22T09:51:11 #kisslinux <dylanaraps> I'll look into making kiss sourceable even if there isn't a stable API. 2020-07-22T09:51:25 #kisslinux <dylanaraps> I think it's good to have even if there's a risk of breakage. 2020-07-22T09:52:23 #kisslinux <j`ey> I added a new 'action' so I did `source kiss functions` (or something like that) 2020-07-22T09:53:08 #kisslinux <j`ey> but I'm not a shell expert, so maybe there's something like that python trick if __name__ == "main" or whatever 2020-07-22T09:53:13 #kisslinux <dylanaraps> https://github.com/kisslinux/kiss/pull/150 2020-07-22T09:53:18 #kisslinux <dylanaraps> There was a PR for this. 2020-07-22T09:53:31 #kisslinux <dylanaraps> There's a rationale from me as well. 2020-07-22T09:53:34 #kisslinux <j`ey> ah 2020-07-22T17:43:58 #kisslinux <illiliti> claudia02: this can be bug in sway itself. did you try to reproduce this bug with eudev ? 2020-07-22T17:44:45 #kisslinux <illiliti> dylanaraps: will fix 2020-07-22T17:44:47 #kisslinux <dylanaraps> konimex: Firefox build failed. Not sure if OOM or not. Will do it again with -j4. 2020-07-22T17:46:07 #kisslinux <illiliti> about performance, i don't know how to optimize it. i don't want implement caching 2020-07-22T17:46:45 #kisslinux <j`ey> illiliti: why no to caching? 2020-07-22T17:49:36 #kisslinux <illiliti> honestly, there is no way to implement caching. eudev caches things at boot and this speed up things later. libudev-zero can't do that because this requires additional tools which caches things at boot. 2020-07-22T17:50:22 #kisslinux <illiliti> maybe pthreads will help 2020-07-22T17:50:26 #kisslinux <illiliti> idk 2020-07-22T17:50:56 #kisslinux <dylanaraps> I don't really mind, it's just an extra second or two. 2020-07-22T17:52:05 #kisslinux <illiliti> https://freenode.logbot.info/kisslinux/20200718#c4426776 2020-07-22T17:52:19 #kisslinux <illiliti> 3.850 vs 0.950 2020-07-22T17:52:49 #kisslinux <illiliti> that's really bad 2020-07-22T17:53:54 #kisslinux <j`ey> how often does this stuff get called? is it just at startup/hotplugigng stuff? 2020-07-22T17:55:20 #kisslinux <dylanaraps> I'd focus on getting it working first anyway. Can always look at making it faster later. 2020-07-22T17:55:40 #kisslinux <illiliti> at startup 2020-07-22T17:56:13 #kisslinux <dylanaraps> What exactly is slow? 2020-07-22T17:56:44 #kisslinux <illiliti> try to strace libinput list-devices 2020-07-22T17:56:53 #kisslinux <himmalerin> dylanaraps: How do I go about getting the pre/post-install Kiss hooks to work? sudo doesn't carry the KISS_HOOK variable over so the script never runs. 2020-07-22T17:57:26 #kisslinux <dylanaraps> I see. 2020-07-22T17:57:28 #kisslinux <illiliti> open() , readlink() 2020-07-22T17:57:30 #kisslinux <illiliti> etc 2020-07-22T17:57:32 #kisslinux <illiliti> ioctl() 2020-07-22T17:57:36 #kisslinux <dylanaraps> Yup 2020-07-22T17:58:22 #kisslinux <illiliti> i have some ideas how to speed up performance, but this will limit current functionality 2020-07-22T17:58:39 #kisslinux <dylanaraps> himmalerin: Set KISS_HOOK for both user and root. This was done on purpose to prevent running the user's hook script as root. 2020-07-22T17:58:48 #kisslinux <dylanaraps> adamantium: o/ 2020-07-22T18:00:12 #kisslinux <illiliti> i can implement enumeration only drm and input devices 2020-07-22T18:00:51 #kisslinux <himmalerin> I tried setting `KISS_HOOK=/etc/profile.d/kiss_hook.sh` (which is where I had the script living), it still didn't run though. I can give it another shot after clang and whatever's next is done 2020-07-22T18:01:07 #kisslinux <illiliti> this will dramatically speed up performance 2020-07-22T18:01:12 #kisslinux <himmalerin> tried setting KISS_HOOK in /etc/profile* 2020-07-22T18:01:21 #kisslinux <xzcvczx> himmalerin: clang? so like 14hrs? :P 2020-07-22T18:01:41 #kisslinux <himmalerin> Hey, it's already 40% down 2020-07-22T18:01:48 #kisslinux <himmalerin> done* 2020-07-22T18:01:52 #kisslinux <dylanaraps> himmalerin: Let me see if I can reproduce. 2020-07-22T18:02:36 #kisslinux <xzcvczx> himmalerin: its an exponential %, every 10% takes twice as long as the previous 10% :P 2020-07-22T18:02:53 #kisslinux <xzcvczx> well logarithmic 2020-07-22T18:03:01 #kisslinux <dylanaraps> Tip: Set CMAKE_GENERATOR to Ninja. This will force cmake to use Ninja for all builds. Gives a count ([XXX/XXX]) instead of percentage and I've found it works much better with ccache. 2020-07-22T18:03:13 #kisslinux <himmalerin> xzcvczx lmao, it's drastically slowed down since the first 30% so I buy that 2020-07-22T18:03:23 #kisslinux <dylanaraps> (Ninja is actually Samurai in KISS) 2020-07-22T18:04:15 #kisslinux <himmalerin> I should set up ccache 2020-07-22T18:04:23 #kisslinux <dylanaraps> It's very easy to set up. 2020-07-22T18:04:34 #kisslinux <dylanaraps> Just: export PATH=/usr/lib/ccache/bin:$PATH 2020-07-22T18:05:04 #kisslinux <himmalerin> wow, ok. That is pretty easy! 2020-07-22T18:05:41 #kisslinux <xzcvczx> dylanaraps: how reliable is ccache these days? back when i used it with gentoo it was rather terrible 2020-07-22T18:05:46 #kisslinux <xzcvczx> requiring disablling it like 20% of hte time 2020-07-22T18:06:09 #kisslinux <dylanaraps> I also set a larger cache size in a config file (max_size = 50.0G) -> ~/.config/ccache/ccache.conf 2020-07-22T18:06:23 #kisslinux <dylanaraps> I use ccache for everything. Zero issues. 2020-07-22T18:07:04 #kisslinux <xzcvczx> fine, fine, fine i wil linstall ccache 2020-07-22T18:07:16 #kisslinux <xzcvczx> when it blows up im blaming you :P 2020-07-22T18:08:01 #kisslinux <dylanaraps> This is neat too: https://termbin.com/h95l 2020-07-22T18:08:58 #kisslinux <xzcvczx> aww its not using ccache to build ccache for the first time 2020-07-22T18:09:02 #kisslinux <illiliti> dylanaraps: i did release version with bugfix 2020-07-22T18:09:11 #kisslinux <himmalerin> xzcvczx: clang is done :D Now it's nodejs and then I can mess with the KISS_HOOK 2020-07-22T18:09:35 #kisslinux <dylanaraps> illiliti: Nice, thanks 2020-07-22T18:09:49 #kisslinux <xzcvczx> dylanaraps: any reason you recommend .profile and not /etc/profile/? 2020-07-22T18:10:26 #kisslinux <himmalerin> I use .profile and .env since it's pretty shell-agnostic 2020-07-22T18:10:39 #kisslinux <himmalerin> And I don't have to use sudo to edit it then 2020-07-22T18:12:24 #kisslinux <dylanaraps> illiliti: Works! 2020-07-22T18:13:45 #kisslinux <illiliti> awesome 2020-07-22T18:13:55 #kisslinux <xzcvczx> dylanaraps: whats the default max_size? 2020-07-22T18:14:07 #kisslinux <dylanaraps> xzcvczx: 5GB iirc 2020-07-22T18:14:16 #kisslinux <xzcvczx> wtf? what is this 1998? 2020-07-22T18:14:28 #kisslinux <dylanaraps> lol 2020-07-22T18:16:05 #kisslinux <dylanaraps> ccache 4.0 (next major release) will be very different btw 2020-07-22T18:16:14 #kisslinux <himmalerin> xzcvczx: And now nodejs is done. A nice short 14 hours 2020-07-22T18:16:32 #kisslinux <himmalerin> Oh? I figured something like ccache would be basically a finished product at this point 2020-07-22T18:17:23 #kisslinux <xzcvczx> dylanaraps: and how long has 4.0 been in the pipeline? 2020-07-22T18:18:36 #kisslinux <dylanaraps> See: https://github.com/ccache/ccache/milestone/21 2020-07-22T18:19:02 #kisslinux <dylanaraps> (The closed issues are all changes in 4.0)) 2020-07-22T18:19:05 #kisslinux <xzcvczx> haha 2017 2020-07-22T18:19:47 #kisslinux <xzcvczx> ah nah thats just a old bug 2020-07-22T18:22:06 #kisslinux <himmalerin> my /etc/profile has `export KISS_HOOK=/etc/profile.d/kiss_hook.sh` and kiss_hook.sh contains only `whoami`. It prints out when running kiss b but not with kiss i 2020-07-22T18:22:34 #kisslinux <himmalerin> it is executable 2020-07-22T18:24:53 #kisslinux <dylanaraps> Odd. It works for me. 2020-07-22T18:25:11 #kisslinux <dylanaraps> My config is just wheel group. 2020-07-22T18:25:20 #kisslinux <xzcvczx> dylanaraps: hmmmm my ccache looks at ~/.ccache/ccache.conf not .config 2020-07-22T18:25:55 #kisslinux <dylanaraps> xzcvczx: Set XDG_CONFIG_HOME to ~/.config 2020-07-22T18:26:05 #kisslinux <xzcvczx> ah does it not default to that? 2020-07-22T18:26:05 #kisslinux <dylanaraps> ccache uses that directory otherwise 2020-07-22T18:26:10 #kisslinux <dylanaraps> Nope 2020-07-22T18:26:13 #kisslinux <dylanaraps> :( 2020-07-22T18:26:23 #kisslinux <xzcvczx> ah naughty naughty 2020-07-22T18:26:30 #kisslinux <xzcvczx> thats probably what the 2017 bug is about 2020-07-22T18:27:37 #kisslinux <dylanaraps> The config directory is the last bug before 4.0 is released lol 2020-07-22T18:27:38 #kisslinux <dylanaraps> https://github.com/ccache/ccache/issues/191 2020-07-22T18:28:29 #kisslinux <xzcvczx> hmmmm XDG_CONFIG_HOME=~/.config yet ccache -s still says ~/.ccache 2020-07-22T18:29:05 #kisslinux <dylanaraps> Try deleting ~/.ccache ? 2020-07-22T18:29:14 #kisslinux <xzcvczx> >_< 2020-07-22T18:29:26 #kisslinux <dylanaraps> :D 2020-07-22T18:29:40 #kisslinux <xzcvczx> nop 2020-07-22T18:32:24 #kisslinux <xzcvczx> dylanaraps: have you got CCACHE_DIR set? 2020-07-22T18:32:47 #kisslinux <dylanaraps> yeah 2020-07-22T18:32:52 #kisslinux <dylanaraps> turns out I do 2020-07-22T18:33:00 #kisslinux <xzcvczx> ah cool 2020-07-22T18:33:04 #kisslinux <xzcvczx> that will explain it then 2020-07-22T18:41:18 #kisslinux <himmalerin> dylanaraps: What about the output of `sudo env`? Mine doesn't include KISS_HOOK, maybe yours does? 2020-07-22T18:43:39 #kisslinux <dylanaraps> Mine does 2020-07-22T18:44:37 #kisslinux <himmalerin> Weird, this is mine http://0x0.st/iwaw.txt 2020-07-22T18:45:18 #kisslinux <himmalerin> Do you have anything in the sudoers file that might make it carry over? 2020-07-22T18:46:43 #kisslinux <dylanaraps> It's all default except for wheel group 2020-07-22T18:47:35 #kisslinux <himmalerin> Huh. My only changes are the wheel group and the modifications that sudo's post-install talks about 2020-07-22T18:47:51 #kisslinux <himmalerin> None of which should change this 2020-07-22T18:47:52 #kisslinux <dylanaraps> Are you calling kiss with sudo? 2020-07-22T18:48:21 #kisslinux <himmalerin> No, just `kiss i <pkg>` 2020-07-22T18:48:43 #kisslinux <dylanaraps> Good 2020-07-22T18:49:24 #kisslinux * xzcvczx considers switching back to sudo, doas is rather annoying 2020-07-22T18:49:34 #kisslinux <dylanaraps> Actually, KISS_HOOK doesn't appear with 'sudo env' for me either. 2020-07-22T18:50:36 #kisslinux <himmalerin> That's what I'd expect, but the install hooks still run for you? 2020-07-22T18:51:07 #kisslinux <himmalerin> Maybe the easiest thing to to is add `Defaults env_keep += "KISS_PATH"` to the sudoers file 2020-07-22T18:51:34 #kisslinux <dylanaraps> They do run for me. 2020-07-22T18:51:39 #kisslinux <dylanaraps> Odd 2020-07-22T18:52:31 #kisslinux <himmalerin> Super odd. Where do you set the KISS_HOOK variable? Maybe I'm doing something wrong 2020-07-22T18:55:10 #kisslinux <dylanaraps> Hm 2020-07-22T19:20:14 #kisslinux <himmalerin> Well I added Defaults env_keep += "KISS_HOOK" to my sudoers file so that works out 2020-07-22T20:03:16 #kisslinux <himmalerin> I really wish /etc/sudoers wasn't so picky 2020-07-22T20:04:32 #kisslinux <himmalerin> So I could just run `echo 'Defaults env_keep += "KISS_HOOK"' | sudo tee -a /etc/sudoers` instead of visudo 2020-07-22T20:12:33 #kisslinux * xzcvczx sorta lols at how bad ccache starts off being due to lack of cache.... currently at 0.13% hit 2020-07-22T20:13:06 #kisslinux <xzcvczx> apparently cmake and clang don't share many c files, who would have thought 2020-07-22T21:10:51 #kisslinux <clydefisher> Ahoy 2020-07-22T21:32:17 #kisslinux <adamantium[m]> sup dylanaraps 2020-07-22T21:32:33 #kisslinux <adamantium[m]> dylanaraps: o/ 2020-07-22T21:34:03 #kisslinux <himmalerin> not in irc atm 2020-07-22T21:45:28 #kisslinux * xzcvczx wonders how dylanaraps connects to irc as i find it much more convinient just to screen irssi and idle in irc