2020-07-22T06:00:32 #kisslinux o/ 2020-07-22T06:01:39 #kisslinux hi 2020-07-22T06:03:37 #kisslinux How is the hotplugging support going for libudev-zero? 2020-07-22T06:03:44 #kisslinux I saw the initial PR this morning 2020-07-22T06:06:31 #kisslinux i'm planning done hotplugging in this week 2020-07-22T06:06:54 #kisslinux idea is very similar to vdev libudev-compar 2020-07-22T06:07:21 #kisslinux but i decided to use fifo instead of files 2020-07-22T06:08:24 #kisslinux Nice 2020-07-22T06:08:35 #kisslinux I can't wait until it's done 2020-07-22T06:08:41 #kisslinux =) 2020-07-22T06:09:31 #kisslinux it's pretty straightforward implementation 2020-07-22T06:10:57 #kisslinux i already cut a release btw 2020-07-22T06:11:13 #kisslinux https://github.com/illiliti/libudev-zero/releases 2020-07-22T06:11:19 #kisslinux Nice 2020-07-22T06:11:55 #kisslinux With this release, do I still need Xorg conf files for Xorg to know about my devices? 2020-07-22T06:12:03 #kisslinux Or is this separate to hotplugging support? 2020-07-22T06:12:37 #kisslinux you don't need xorg.conf 2020-07-22T06:13:03 #kisslinux Awesome. I'll package it now and try it out. 2020-07-22T06:15:25 #kisslinux when hotplugging will be implemented you can handle all uevents by using simple oneliner in mdev.conf 2020-07-22T06:15:32 #kisslinux .* root:root 660 *env > /tmp/.libudev-zero 2020-07-22T06:15:39 #kisslinux something like that 2020-07-22T06:15:43 #kisslinux no helpers 2020-07-22T06:16:01 #kisslinux Nice 2020-07-22T06:16:03 #kisslinux libinput list-devices 2020-07-22T06:16:07 #kisslinux This seems to hang. 2020-07-22T06:16:11 #kisslinux yee 2020-07-22T06:16:22 #kisslinux due to lacking caching support 2020-07-22T06:16:24 #kisslinux Gotcha 2020-07-22T06:17:08 #kisslinux Our libinput package now checks for libudev-zero 2020-07-22T06:17:21 #kisslinux Support will be conditionally enabled (same as eudev) 2020-07-22T06:18:31 #kisslinux why not pkg-config --exists libudev ? 2020-07-22T06:19:09 #kisslinux Sure, will do. 2020-07-22T06:20:18 #kisslinux Done. 2020-07-22T06:20:21 #kisslinux Also packaged libudev-zero. 2020-07-22T06:20:39 #kisslinux cool 2020-07-22T06:21:16 #kisslinux 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 great 2020-07-22T07:03:40 #kisslinux dylanaraps: you forgot to add 'linux-headers make' to depends 2020-07-22T07:04:25 #kisslinux Thanks 2020-07-22T07:05:20 #kisslinux Fixed 2020-07-22T09:18:30 #kisslinux 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 illiliti: I get a compilation error with xorg-server and libudev-zero: https://termbin.com/1418 2020-07-22T09:24:07 #kisslinux This patch fixes the build: https://termbin.com/t6k9 2020-07-22T09:26:40 #kisslinux illiliti: I've also noticed that Xorg startup has a 2~ second delay when launching with libudev-zero. 2020-07-22T09:26:50 #kisslinux Everything "just works" though! 2020-07-22T09:26:56 #kisslinux This is great. 2020-07-22T09:30:09 #kisslinux 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 https://github.com/gentoo/eudev/blob/51ba6124f513c500511d842158fff433f5fec0f8/src/libudev/libudev.h#L23 2020-07-22T09:30:53 #kisslinux https://github.com/systemd/systemd/blob/master/src/libudev/libudev.h#L7 2020-07-22T09:31:54 #kisslinux 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 I'm about to start some builds actually. 2020-07-22T09:32:18 #kisslinux I first wanted to check Rust with the new LLVM release. 2020-07-22T09:32:27 #kisslinux This is why Rust is still in testing. 2020-07-22T09:33:57 #kisslinux 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 Will let you know how it goes 2020-07-22T09:37:06 #kisslinux 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 so that some of the functions could be used by kiss-* extensions 2020-07-22T09:40:25 #kisslinux 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 Fair 2020-07-22T09:41:16 #kisslinux 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 Otherwise changes to functions may cause breakage to scripts sourcing them. 2020-07-22T09:42:43 #kisslinux I have an idea though! 2020-07-22T09:43:18 #kisslinux Oh? 2020-07-22T09:45:01 #kisslinux When utilities are called /from/ kiss instead of bare kiss-, the package manager could do a little work to make utilities easier to write. 2020-07-22T09:46:03 #kisslinux This obviously needs some thought. 2020-07-22T09:46:44 #kisslinux It might be worth exposing a new shell based library for use in extensions. 2020-07-22T09:48:17 #kisslinux 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 I'll look into making kiss sourceable even if there isn't a stable API. 2020-07-22T09:51:25 #kisslinux I think it's good to have even if there's a risk of breakage. 2020-07-22T09:52:23 #kisslinux I added a new 'action' so I did `source kiss functions` (or something like that) 2020-07-22T09:53:08 #kisslinux 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 https://github.com/kisslinux/kiss/pull/150 2020-07-22T09:53:18 #kisslinux There was a PR for this. 2020-07-22T09:53:31 #kisslinux There's a rationale from me as well. 2020-07-22T09:53:34 #kisslinux ah 2020-07-22T17:43:58 #kisslinux claudia02: this can be bug in sway itself. did you try to reproduce this bug with eudev ? 2020-07-22T17:44:45 #kisslinux dylanaraps: will fix 2020-07-22T17:44:47 #kisslinux konimex: Firefox build failed. Not sure if OOM or not. Will do it again with -j4. 2020-07-22T17:46:07 #kisslinux about performance, i don't know how to optimize it. i don't want implement caching 2020-07-22T17:46:45 #kisslinux illiliti: why no to caching? 2020-07-22T17:49:36 #kisslinux 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 maybe pthreads will help 2020-07-22T17:50:26 #kisslinux idk 2020-07-22T17:50:56 #kisslinux I don't really mind, it's just an extra second or two. 2020-07-22T17:52:05 #kisslinux https://freenode.logbot.info/kisslinux/20200718#c4426776 2020-07-22T17:52:19 #kisslinux 3.850 vs 0.950 2020-07-22T17:52:49 #kisslinux that's really bad 2020-07-22T17:53:54 #kisslinux how often does this stuff get called? is it just at startup/hotplugigng stuff? 2020-07-22T17:55:20 #kisslinux I'd focus on getting it working first anyway. Can always look at making it faster later. 2020-07-22T17:55:40 #kisslinux at startup 2020-07-22T17:56:13 #kisslinux What exactly is slow? 2020-07-22T17:56:44 #kisslinux try to strace libinput list-devices 2020-07-22T17:56:53 #kisslinux 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 I see. 2020-07-22T17:57:28 #kisslinux open() , readlink() 2020-07-22T17:57:30 #kisslinux etc 2020-07-22T17:57:32 #kisslinux ioctl() 2020-07-22T17:57:36 #kisslinux Yup 2020-07-22T17:58:22 #kisslinux i have some ideas how to speed up performance, but this will limit current functionality 2020-07-22T17:58:39 #kisslinux 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 adamantium: o/ 2020-07-22T18:00:12 #kisslinux i can implement enumeration only drm and input devices 2020-07-22T18:00:51 #kisslinux 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 this will dramatically speed up performance 2020-07-22T18:01:12 #kisslinux tried setting KISS_HOOK in /etc/profile* 2020-07-22T18:01:21 #kisslinux himmalerin: clang? so like 14hrs? :P 2020-07-22T18:01:41 #kisslinux Hey, it's already 40% down 2020-07-22T18:01:48 #kisslinux done* 2020-07-22T18:01:52 #kisslinux himmalerin: Let me see if I can reproduce. 2020-07-22T18:02:36 #kisslinux himmalerin: its an exponential %, every 10% takes twice as long as the previous 10% :P 2020-07-22T18:02:53 #kisslinux well logarithmic 2020-07-22T18:03:01 #kisslinux 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 xzcvczx lmao, it's drastically slowed down since the first 30% so I buy that 2020-07-22T18:03:23 #kisslinux (Ninja is actually Samurai in KISS) 2020-07-22T18:04:15 #kisslinux I should set up ccache 2020-07-22T18:04:23 #kisslinux It's very easy to set up. 2020-07-22T18:04:34 #kisslinux Just: export PATH=/usr/lib/ccache/bin:$PATH 2020-07-22T18:05:04 #kisslinux wow, ok. That is pretty easy! 2020-07-22T18:05:41 #kisslinux dylanaraps: how reliable is ccache these days? back when i used it with gentoo it was rather terrible 2020-07-22T18:05:46 #kisslinux requiring disablling it like 20% of hte time 2020-07-22T18:06:09 #kisslinux 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 I use ccache for everything. Zero issues. 2020-07-22T18:07:04 #kisslinux fine, fine, fine i wil linstall ccache 2020-07-22T18:07:16 #kisslinux when it blows up im blaming you :P 2020-07-22T18:08:01 #kisslinux This is neat too: https://termbin.com/h95l 2020-07-22T18:08:58 #kisslinux aww its not using ccache to build ccache for the first time 2020-07-22T18:09:02 #kisslinux dylanaraps: i did release version with bugfix 2020-07-22T18:09:11 #kisslinux xzcvczx: clang is done :D Now it's nodejs and then I can mess with the KISS_HOOK 2020-07-22T18:09:35 #kisslinux illiliti: Nice, thanks 2020-07-22T18:09:49 #kisslinux dylanaraps: any reason you recommend .profile and not /etc/profile/? 2020-07-22T18:10:26 #kisslinux I use .profile and .env since it's pretty shell-agnostic 2020-07-22T18:10:39 #kisslinux And I don't have to use sudo to edit it then 2020-07-22T18:12:24 #kisslinux illiliti: Works! 2020-07-22T18:13:45 #kisslinux awesome 2020-07-22T18:13:55 #kisslinux dylanaraps: whats the default max_size? 2020-07-22T18:14:07 #kisslinux xzcvczx: 5GB iirc 2020-07-22T18:14:16 #kisslinux wtf? what is this 1998? 2020-07-22T18:14:28 #kisslinux lol 2020-07-22T18:16:05 #kisslinux ccache 4.0 (next major release) will be very different btw 2020-07-22T18:16:14 #kisslinux xzcvczx: And now nodejs is done. A nice short 14 hours 2020-07-22T18:16:32 #kisslinux Oh? I figured something like ccache would be basically a finished product at this point 2020-07-22T18:17:23 #kisslinux dylanaraps: and how long has 4.0 been in the pipeline? 2020-07-22T18:18:36 #kisslinux See: https://github.com/ccache/ccache/milestone/21 2020-07-22T18:19:02 #kisslinux (The closed issues are all changes in 4.0)) 2020-07-22T18:19:05 #kisslinux haha 2017 2020-07-22T18:19:47 #kisslinux ah nah thats just a old bug 2020-07-22T18:22:06 #kisslinux 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 it is executable 2020-07-22T18:24:53 #kisslinux Odd. It works for me. 2020-07-22T18:25:11 #kisslinux My config is just wheel group. 2020-07-22T18:25:20 #kisslinux dylanaraps: hmmmm my ccache looks at ~/.ccache/ccache.conf not .config 2020-07-22T18:25:55 #kisslinux xzcvczx: Set XDG_CONFIG_HOME to ~/.config 2020-07-22T18:26:05 #kisslinux ah does it not default to that? 2020-07-22T18:26:05 #kisslinux ccache uses that directory otherwise 2020-07-22T18:26:10 #kisslinux Nope 2020-07-22T18:26:13 #kisslinux :( 2020-07-22T18:26:23 #kisslinux ah naughty naughty 2020-07-22T18:26:30 #kisslinux thats probably what the 2017 bug is about 2020-07-22T18:27:37 #kisslinux The config directory is the last bug before 4.0 is released lol 2020-07-22T18:27:38 #kisslinux https://github.com/ccache/ccache/issues/191 2020-07-22T18:28:29 #kisslinux hmmmm XDG_CONFIG_HOME=~/.config yet ccache -s still says ~/.ccache 2020-07-22T18:29:05 #kisslinux Try deleting ~/.ccache ? 2020-07-22T18:29:14 #kisslinux >_< 2020-07-22T18:29:26 #kisslinux :D 2020-07-22T18:29:40 #kisslinux nop 2020-07-22T18:32:24 #kisslinux dylanaraps: have you got CCACHE_DIR set? 2020-07-22T18:32:47 #kisslinux yeah 2020-07-22T18:32:52 #kisslinux turns out I do 2020-07-22T18:33:00 #kisslinux ah cool 2020-07-22T18:33:04 #kisslinux that will explain it then 2020-07-22T18:41:18 #kisslinux dylanaraps: What about the output of `sudo env`? Mine doesn't include KISS_HOOK, maybe yours does? 2020-07-22T18:43:39 #kisslinux Mine does 2020-07-22T18:44:37 #kisslinux Weird, this is mine http://0x0.st/iwaw.txt 2020-07-22T18:45:18 #kisslinux Do you have anything in the sudoers file that might make it carry over? 2020-07-22T18:46:43 #kisslinux It's all default except for wheel group 2020-07-22T18:47:35 #kisslinux Huh. My only changes are the wheel group and the modifications that sudo's post-install talks about 2020-07-22T18:47:51 #kisslinux None of which should change this 2020-07-22T18:47:52 #kisslinux Are you calling kiss with sudo? 2020-07-22T18:48:21 #kisslinux No, just `kiss i ` 2020-07-22T18:48:43 #kisslinux Good 2020-07-22T18:49:24 #kisslinux * xzcvczx considers switching back to sudo, doas is rather annoying 2020-07-22T18:49:34 #kisslinux Actually, KISS_HOOK doesn't appear with 'sudo env' for me either. 2020-07-22T18:50:36 #kisslinux That's what I'd expect, but the install hooks still run for you? 2020-07-22T18:51:07 #kisslinux Maybe the easiest thing to to is add `Defaults env_keep += "KISS_PATH"` to the sudoers file 2020-07-22T18:51:34 #kisslinux They do run for me. 2020-07-22T18:51:39 #kisslinux Odd 2020-07-22T18:52:31 #kisslinux Super odd. Where do you set the KISS_HOOK variable? Maybe I'm doing something wrong 2020-07-22T18:55:10 #kisslinux Hm 2020-07-22T19:20:14 #kisslinux Well I added Defaults env_keep += "KISS_HOOK" to my sudoers file so that works out 2020-07-22T20:03:16 #kisslinux I really wish /etc/sudoers wasn't so picky 2020-07-22T20:04:32 #kisslinux 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 apparently cmake and clang don't share many c files, who would have thought 2020-07-22T21:10:51 #kisslinux Ahoy 2020-07-22T21:32:17 #kisslinux sup dylanaraps 2020-07-22T21:32:33 #kisslinux dylanaraps: o/ 2020-07-22T21:34:03 #kisslinux 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