💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › kisslinux-2022-08-31.txt captured on 2024-05-10 at 14:10:46.
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
[2022-08-31T05:10:18Z] <midfavila> woot, ssh client and server are up in the chroot [2022-08-31T06:33:10Z] <virutalmachineus> what happen to dylan? [2022-08-31T08:17:47Z] <wael[m]> Dylan is uhhh [2022-08-31T08:17:55Z] <wael[m]> honestly idk just pretend he is retired and taking a break [2022-08-31T08:21:54Z] <testuser[m]12> ~~He's working on proprietary software in private shithub repos~~ [2022-08-31T08:21:54Z] <testuser[m]12> Hi [2022-08-31T08:26:14Z] <wael[m]> Hi testuser or git-bruh or Gupta or idfk what I'm supposed to call yoy [2022-08-31T08:28:00Z] <testuser[m]12> Lol I'm not gupta [2022-08-31T08:28:03Z] <testuser[m]12> That's a local meme [2022-08-31T08:36:21Z] <testuser[m]12> There's this scummy edtech company who used a fictional 13 yr old kid "wolf gupta" in their marketing saying that he got 150k usd job (in India) at google at 13 yrs lol [2022-08-31T08:36:53Z] <testuser[m]12> 12-year Old Wolf Gupta learnt AI to get Rs 1.2 cr job from Google while other kids his age didn’t know what to do after school. Coding makes your kids entrepreneurs and scientists in the new world. World’s first 1:1 AI coding course for kids. Free Trial. Age 6-18 Only [2022-08-31T08:51:23Z] <wael[m]> What do I call youuu [2022-08-31T08:51:33Z] <testuser[m]12> testuser [2022-08-31T09:20:17Z] <wael[m]> more like [2022-08-31T09:20:31Z] <wael[m]> customer [2022-08-31T10:00:18Z] <iceman[m]> Hello Good day everyone! [2022-08-31T10:01:35Z] <testuser[m]12> hi [2022-08-31T10:01:41Z] <iceman[m]> am I in [2022-08-31T10:02:24Z] <testuser[m]12> yeah [2022-08-31T10:04:24Z] <iceman[m]> Nice [2022-08-31T10:06:46Z] <wael[m]> iceman more like [2022-08-31T10:06:47Z] <wael[m]> boilingman [2022-08-31T10:07:11Z] <iceman[m]> them I am steamman [2022-08-31T10:07:17Z] <iceman[m]> ☁ [2022-08-31T12:34:34Z] <testuser[m]12> noocsharp: firefox doesnt even need perl for anything [2022-08-31T12:34:49Z] <testuser[m]12> https://termbin.com/txjf [2022-08-31T12:36:15Z] <testuser[m]12> and nss only needs perl for converting some fixed certificates into C code [2022-08-31T12:43:46Z] <testuser[m]12> https://github.com/kiss-community/repo/pull/86 [2022-08-31T12:48:33Z] <testuser[m]12> https://hg.mozilla.org/projects/nss/file/tip/lib/ckfw/builtins/certdata.perl [2022-08-31T12:58:31Z] <sad_plan> hi [2022-08-31T12:59:46Z] <wael[m]> wheres your nemesis happy_plan [2022-08-31T13:01:06Z] <illiliti> testuser[m]12: could you give me input data for that perl script, so that i can try to rewrite it in sh/awk [2022-08-31T13:01:55Z] <testuser[m]12> https://hg.mozilla.org/projects/nss/file/tip/lib/ckfw/builtins/certdata.txt [2022-08-31T13:02:27Z] <testuser[m]12> output http://0x0.st/op_m.c.gz [2022-08-31T13:07:01Z] <sad_plan> wael[m]: lol. [2022-08-31T14:06:59Z] <testuser[m]12> sad_plan: libxslt source is dead [2022-08-31T14:07:23Z] <testuser[m]12> 1.1.37 is latest [2022-08-31T14:57:43Z] <noocsharp> illiliti: if you want it accepted upstream i'd write it in python [2022-08-31T15:47:50Z] <testuser[m]12> https://github.com/kiss-community/repo/labels/proposal [2022-08-31T15:53:24Z] <illiliti> nack on sed -i [2022-08-31T16:30:36Z] <sad_plan> testuser[m]12: im on it [2022-08-31T16:33:39Z] <sad_plan> why on earth does always fossies.org just delete their old tarballs? its really annoying [2022-08-31T16:38:16Z] <wael[m]> to save space i guess [2022-08-31T16:41:48Z] <sad_plan> well that could be one reason for it.. [2022-08-31T19:10:02Z] <ioraff> testuser[m]12: how about libressl? [2022-08-31T19:12:53Z] <sad_plan> ioraff: add that as a proposal? [2022-08-31T19:14:20Z] <testuser[m]12> Yeah make an issue, I don't think it's viable cuz of compatibility issues [2022-08-31T19:15:26Z] <sad_plan> is there anything in particular that isnt compatible that you can think of? rust is one thing that comes to mind anyway. python will need a patch, but Ive one on hand in any case. there are several of us that use libressl, so I dont really think it too much of an issue imo [2022-08-31T19:17:29Z] <testuser[m]12> Python and rust only, but the patches will grow bigger and bigger as new apis start being used [2022-08-31T19:19:52Z] <illiliti> rust considers switching to rustls iirc [2022-08-31T19:31:19Z] <illiliti> https://illiliti.pastes.sh/certdata.sh [2022-08-31T19:32:14Z] <illiliti> it's total garbage but at least it works and i can understand it unlike perl [2022-08-31T19:34:46Z] <illiliti> i'll consider rewriting it in python and sending it to upstream, maybe [2022-08-31T19:36:45Z] <testuser[m]12> illiliti: nice [2022-08-31T19:37:09Z] <sad_plan> testuser[m]12: yeah, I know.. thats one of the perils of using niche software. in any case, bsds use libressl, so Im sure we can use patches from those guys, or atleast work off of them [2022-08-31T21:59:15Z] <riteo> hiiiiiiiiii! [2022-08-31T21:59:41Z] <riteo> I just read the log part about the mdev wrapper and how scripts are bad because of forks [2022-08-31T22:00:21Z] <riteo> wasn't the issue with hotplug just the fact that at boot it would call scripts for all of the devices and absolutely blast very weak computers? [2022-08-31T22:00:43Z] <riteo> all at once [2022-08-31T22:01:01Z] <ioraff> yes [2022-08-31T22:01:39Z] <riteo> well, I guess that one could make some sort of """""universal""""" rule language and then make it a "script" called by mdev [2022-08-31T22:01:46Z] <riteo> it'd still fork, but way less [2022-08-31T22:01:48Z] <riteo> I mean, in compiled C [2022-08-31T22:02:29Z] <riteo> yeah I meant a rule parser in C for something made to be device manager agnostic which would then be called by mdev [2022-08-31T22:02:30Z] <ioraff> the hotplugger itself being called a bunch of times is also an issue [2022-08-31T22:02:49Z] <riteo> I wonder, couldn't it just be called serially? [2022-08-31T22:02:57Z] <riteo> instead of all at nce [2022-08-31T22:03:00Z] <riteo> s/nce/once [2022-08-31T22:03:53Z] <ioraff> perhaps. it may also be less of an issue with a busybox/toybox/whatever device manager, since elf overhead won't be a factor [2022-08-31T22:04:07Z] <illiliti> that would be slow anyway [2022-08-31T22:04:24Z] <riteo> yeah but how much [2022-08-31T22:04:52Z] <illiliti> imagine forking script for each uevent [2022-08-31T22:05:57Z] <riteo> I see your point [2022-08-31T22:06:16Z] <riteo> perhaps one could make a listener? But that might as well be a device manager, wouldn't it? [2022-08-31T22:06:50Z] <riteo> my approach used an mdev rule for the USB subsystem, so it definitely isn't for each uevent [2022-08-31T22:07:01Z] <riteo> but it's surely more limited than the amalgamated mdev rules [2022-08-31T22:08:11Z] <riteo> what if we really made a listening daemon though [2022-08-31T22:08:50Z] <illiliti> what it would do [2022-08-31T22:09:29Z] <riteo> it'd read some "generic" device managment language and... manage devices [2022-08-31T22:09:33Z] <riteo> which is well, a device manager [2022-08-31T22:09:33Z] <riteo> oof [2022-08-31T22:09:43Z] <riteo> yeah that won't do [2022-08-31T22:10:21Z] <riteo> the thing is, can we really avoid the forking while staying dm agnostic? [2022-08-31T22:10:51Z] <riteo> I'm not really that's even a problem if it's enabled post boot, it's not like hotplugs are *that* frequent [2022-08-31T22:11:11Z] <riteo> s/I'm not really/I'm not really sure/ [2022-08-31T22:12:12Z] <riteo> and speed isn't the #1 priority, it's not like the priority is the absoulely fastest device configuration routine ever, expecially since as I said hotplugs are actually pretty rare [2022-08-31T22:13:16Z] <illiliti> i think we still could experiment with scripts [2022-08-31T22:13:28Z] <illiliti> we could just make them optional maybe [2022-08-31T22:13:55Z] <riteo> technically, they would already be, in my case it's just an mdev rule [2022-08-31T22:14:16Z] <riteo> you can pop that off the config and the "framework" would effectively be disabled [2022-08-31T22:14:42Z] <riteo> I haven't checked, but I'm pretty sure all dm supports running hotplug scripts [2022-08-31T22:14:46Z] <illiliti> i.e basic functionality is handled by device manager. additional functionality such as package-specific rules could be installed as scripts [2022-08-31T22:15:34Z] <illiliti> by basic i mean setting up permissions for /dev/null, /dev/input and stuff [2022-08-31T22:16:33Z] <riteo> perhaps we could do a bit of a compromise [2022-08-31T22:17:01Z] <riteo> what if we made some small sub-scripts/c programs that handled their own extremely specific configuration? [2022-08-31T22:17:31Z] <illiliti> how they would do that [2022-08-31T22:18:02Z] <illiliti> via device manager or on their own? [2022-08-31T22:18:08Z] <riteo> via device manager [2022-08-31T22:18:15Z] <illiliti> ok [2022-08-31T22:18:31Z] <riteo> I've published my small POC which actually does something like that in a ticket thread [2022-08-31T22:18:45Z] <riteo> running small c programs would limit forks by a lot, wouldn't it? [2022-08-31T22:19:00Z] <riteo> here's the link btw: https://github.com/kiss-community/repo/issues/89#issuecomment-1233460989 [2022-08-31T22:19:47Z] <riteo> the `/etc/mdev.d/usb/usbgroup.sh` file could be turned into a (better) C program and the dispatcher script could be removed perhaps, or there could be a dedicated rule, dunno [2022-08-31T22:19:54Z] <illiliti> forking isn't an issue if you don't do it for every uevent [2022-08-31T22:20:33Z] <riteo> wait, are uevent device-related only or do they do a lot more? [2022-08-31T22:21:20Z] <illiliti> mostly device-related [2022-08-31T22:21:51Z] <riteo> then I guess that if we want to allow a lot of control that it has to be on every/almost all uevents [2022-08-31T22:22:04Z] <riteo> like the device add and device remove ones [2022-08-31T22:22:19Z] <riteo> if they even exists in such form, don't really remember, sorry [2022-08-31T22:23:43Z] <riteo> perhaps you meant that the issue would be for every netlink message? [2022-08-31T22:24:23Z] <illiliti> it's same thing, more or less [2022-08-31T22:24:30Z] <illiliti> because uevent based on netlink [2022-08-31T22:25:18Z] <riteo> yeah, but unless uevent handles a *lot* of things (list of which I'm still searching online) I guess that it'd be pretty much irrelevant to do it on every uevent [2022-08-31T22:25:29Z] <riteo> worst case we could just handle device additions and removals, no? [2022-08-31T22:26:19Z] <riteo> which is what /sbin/hotplug does actually [2022-08-31T22:27:00Z] <riteo> reading online it just handles additions and removals, so I don't see the problem tbh [2022-08-31T22:27:20Z] <illiliti> there are also device change events [2022-08-31T22:27:38Z] <illiliti> online offline events [2022-08-31T22:28:04Z] <riteo> mh, but we don't care about such events, do we? [2022-08-31T22:28:27Z] <illiliti> i think we should care about change event [2022-08-31T22:28:56Z] <riteo> then we could perhaps invoke the script only if these events happen? [2022-08-31T22:29:08Z] <riteo> if there are a lot of uevents we don't need [2022-08-31T22:29:45Z] <riteo> ok here's the list: https://www.kernel.org/doc/html/latest/filesystems/gfs2-uevents.html [2022-08-31T22:29:55Z] <riteo> no wait it's gfs2 related [2022-08-31T22:30:00Z] <illiliti> yeah, but isn't the initial idea to give user full control over it? [2022-08-31T22:30:21Z] <illiliti> instead of selecting events which should be handled [2022-08-31T22:30:57Z] <riteo> then I don't think we really have many options around this if we want to stay dm agnostic [2022-08-31T22:32:02Z] <riteo> no wait I think there might be a lot of uevents [2022-08-31T22:32:33Z] <illiliti> we could delegate basic functionality to device manager [2022-08-31T22:32:40Z] <riteo> yeah that for sure [2022-08-31T22:33:10Z] <riteo> the focus is allowing packages to have special features embedded [2022-08-31T22:33:16Z] <riteo> with the dm [2022-08-31T22:35:30Z] <illiliti> we could just let packages to install scripts for device manager. [2022-08-31T22:35:48Z] <illiliti> user will have to specify them in device manager [2022-08-31T22:36:12Z] <riteo> I would like to avoid this approach, as it's pretty easy to mess up and too manua [2022-08-31T22:36:19Z] <riteo> s/manua/manual/ [2022-08-31T22:36:34Z] <illiliti> so you want udev approach [2022-08-31T22:36:47Z] <riteo> that's definitely what we're trying to avoid [2022-08-31T22:37:04Z] <riteo> the argument for some sort of framework is to avoid depending on a specific devman [2022-08-31T22:37:18Z] <riteo> udev has made some hellish abomination which wants exactly the opposite [2022-08-31T22:37:38Z] <illiliti> it's not possible because we can't decouple basic functionality into scripts [2022-08-31T22:37:53Z] <riteo> basic functionality would stay in the devman configuration [2022-08-31T22:37:59Z] <illiliti> ok [2022-08-31T22:38:10Z] <riteo> I'm talking about the extra stuff packages might want to add [2022-08-31T22:38:42Z] <riteo> I'm starting to wonder though why /sbin/hotplug might give issues [2022-08-31T22:38:57Z] <riteo> it's only called on additions and removals, which is enough for 99% of uses [2022-08-31T22:39:25Z] <riteo> hell, said 99% are just the usb thing which could be done in a simpler configuration language [2022-08-31T22:39:59Z] <riteo> if you see my poc it's pretty much a grep and a read [2022-08-31T22:40:07Z] <riteo> and one might as well port it in C [2022-08-31T22:40:36Z] <riteo> IIRC *all* of our troublesome packages have the same usecase for eudev [2022-08-31T22:40:45Z] <illiliti> i see [2022-08-31T22:41:24Z] <illiliti> having scripts is fine as long as we don't touch basic functionality [2022-08-31T22:41:37Z] <riteo> that was never the scope of the proposal actually [2022-08-31T22:41:50Z] <illiliti> we just need to make device manager aware of that scripts [2022-08-31T22:42:09Z] <riteo> That's simple if running it on every devman event is acceptable [2022-08-31T22:42:51Z] <riteo> that'd be the easy route [2022-08-31T22:43:07Z] <illiliti> hm [2022-08-31T22:43:34Z] <riteo> otherwise we could make some still "configurable" but specific script that does eg. the usb thing [2022-08-31T22:43:43Z] <riteo> but manual intervention is kinda bad IMO [2022-08-31T22:44:03Z] <riteo> and still, it'd become part of the "base" framework in case we avoided it [2022-08-31T22:45:38Z] <riteo> just to wrap my point (I have difficulty at ending discussions) I might settle on the idea of domain specific configuration languages dispatched by a main script [2022-08-31T22:45:51Z] <riteo> a decent compromise IMO [2022-08-31T22:47:28Z] <illiliti> could we filter scripts based on subsystem? i.e if subsystem == usb, then run scripts in /etc/hotplug.d/usb/* [2022-08-31T22:47:40Z] <illiliti> instead of having main script [2022-08-31T22:47:51Z] <illiliti> catch-all script* [2022-08-31T22:48:04Z] <riteo> what difference would that make? [2022-08-31T22:48:16Z] <riteo> if we made a script for each subsystem, it'd still call a script everytime [2022-08-31T22:48:31Z] <riteo> we could perhaps avoid some forks though [2022-08-31T22:49:10Z] <illiliti> yeah, but if user doesn't have scripts for usb subsystem, we could avoid needless fork [2022-08-31T22:49:38Z] <riteo> that'd make sense [2022-08-31T22:49:41Z] <riteo> y'know what [2022-08-31T22:50:34Z] <riteo> in the worst case if subsystems aren't defined we could do the (kinda scary) approach of making the subsystem name lowercase and using it as a directory for checking the scripts [2022-08-31T22:51:00Z] <riteo> I mean, it's the kernel giving us the subsystems string, so it shouldn't be a problem [2022-08-31T22:51:54Z] <illiliti> yeah [2022-08-31T22:52:40Z] <riteo> then I think we got an even better compromise [2022-08-31T22:53:13Z] <riteo> dynamic subsystem-specific hotplug script handling [2022-08-31T22:54:01Z] <riteo> with this we should be covered for 99% of usecases, with the remaining 1% left for either problem specific solutions or something else on which we don't care rn [2022-08-31T22:54:15Z] <illiliti> we could make it event-specific as well [2022-08-31T22:54:36Z] <riteo> I think that'd be excessive [2022-08-31T22:55:05Z] <riteo> but I could start experimenting and tell you [2022-08-31T22:55:29Z] <riteo> I still think that going per subsystem we should be all right [2022-08-31T22:55:58Z] <riteo> tbf we could even be ok with just the usb thing handler, but that sounds very, very risky [2022-08-31T22:56:23Z] <illiliti> and too specific [2022-08-31T22:56:27Z] <riteo> yup [2022-08-31T22:56:42Z] <riteo> we might need further managers and stuff would pile up too much [2022-08-31T22:58:03Z] <riteo> no wait there's an issue [2022-08-31T22:58:16Z] <riteo> how do we actually do the directory handling [2022-08-31T22:58:24Z] <riteo> we would still need a main dispatcher script, wouldn't we? [2022-08-31T22:58:35Z] <riteo> it'd parse the subsystem string and then look for scripts [2022-08-31T22:58:46Z] <riteo> I mean it shouldn't make much of a difference, right? [2022-08-31T22:59:56Z] <illiliti> you could inline for loop in mdev.conf [2022-08-31T23:00:39Z] <riteo> ehhhh I don't think that would be much different than a generic script [2022-08-31T23:00:54Z] <riteo> also I fear that it'd might narrow down the compatible dm list [2022-08-31T23:01:05Z] <illiliti> SUBSYSTEM=usb;.* root:root 660 @for f in /etc/hotplug.d/usb/*; do ... [2022-08-31T23:01:12Z] <riteo> shouldn't the inlined for loop still fork /bin/sh? [2022-08-31T23:01:30Z] <riteo> oh no wait, I don't think we know all the possible subsystems [2022-08-31T23:01:47Z] <riteo> I thought about making a script that takes the subsystem env and uses it as a directory for scripts [2022-08-31T23:02:12Z] <riteo> it'd still be 1 fork per subsystem [2022-08-31T23:02:16Z] <riteo> at least [2022-08-31T23:02:19Z] <illiliti> but that's a catch-all script [2022-08-31T23:02:31Z] <riteo> yeah but if we put a script for each subsystem it would make little to no difference [2022-08-31T23:02:40Z] <riteo> it'd still be one script called each time [2022-08-31T23:02:58Z] <riteo> the savings come from the differention per directory [2022-08-31T23:03:24Z] <riteo> so that we avoid forking usb scripts that quit right away because we're in the dri subsystem [2022-08-31T23:03:44Z] <riteo> dunno if you get my point [2022-08-31T23:04:05Z] <riteo> or if it makes sense [2022-08-31T23:08:04Z] <illiliti> how you would implement that differention [2022-08-31T23:08:46Z] <riteo> with a catch all script that looks for a specific directory depending on the subsystem [2022-08-31T23:08:50Z] <riteo> it'd still be one fork [2022-08-31T23:09:38Z] <riteo> the logic is that if we put a script for each subsystem that it'd be still one fork at every event [2022-08-31T23:09:44Z] <illiliti> SUBSYSTEM=.*;.* root:root 660 @for f in /etc/hotplug.d/%1/*; do ... [2022-08-31T23:09:59Z] <illiliti> idk if it works [2022-08-31T23:10:03Z] <riteo> wait what would %1 do [2022-08-31T23:10:18Z] <riteo> but still, I'm pretty sure that the @ argument would equal one sh fork [2022-08-31T23:11:07Z] <illiliti> according to mdev conf spec, %1 will be replaced by the match from regex [2022-08-31T23:11:22Z] <riteo> and since it isn't garaunteed to be implemented in this way for every dm I'd just make a small script with that for loop and ask users to configure their specific dm to just run it [2022-08-31T23:11:47Z] <riteo> I think that the %1 would be replaced by the device directory [2022-08-31T23:11:54Z] <riteo> or whatever that `;.*` refers to [2022-08-31T23:12:14Z] <illiliti> ignore `;.*` [2022-08-31T23:12:52Z] <illiliti> it basically says mdev that we don't care about other uevent variables [2022-08-31T23:13:35Z] <riteo> are you sure that mdev even handles non dev-subsystem related events? [2022-08-31T23:14:02Z] <illiliti> not sure [2022-08-31T23:14:28Z] <illiliti> https://git.busybox.net/busybox/tree/docs/mdev.txt#n98 [2022-08-31T23:14:38Z] <riteo> I don't have hotpluggable devices rn but it looks to me that everything it does has always a subsystem [2022-08-31T23:15:08Z] <riteo> like if I mess up with my backlight it has the subsystem backlight [2022-08-31T23:17:04Z] <riteo> to test what mdev sees you can run `mdev -vfd` [2022-08-31T23:17:18Z] <illiliti> i use mdevd [2022-08-31T23:17:57Z] <riteo> does mdevd have a verbose flag? [2022-08-31T23:18:13Z] <riteo> -v here is verbose, -f is foreground and -d is "daemon, listen on netlink" [2022-08-31T23:19:15Z] <illiliti> it does, but i don't know if it's useful [2022-08-31T23:20:59Z] <riteo> I think that it's supposed to only have subsystem stuff [2022-08-31T23:22:04Z] <riteo> reading from busybox's big comment on top of their mdev source it says that it by default is a hotplug helper that reads `$SUBSYSTEM` and `$DEVPATH` [2022-08-31T23:22:29Z] <riteo> so I imagine that it being in daemon mode would just imply it doing the same thing but without the kernel hotplug facility [2022-08-31T23:23:32Z] <illiliti> so we can freely rely on subsystem [2022-08-31T23:24:45Z] <riteo> I think so? To be sure we could log unexpected results like an undefined/empty subsystem into some file [2022-08-31T23:28:31Z] <riteo> mhh, the linux usb hotplugging documentation says that the subsystem is mandatory, so we can rely on it at least there https://www.kernel.org/doc/html/latest/driver-api/usb/hotplug.html [2022-08-31T23:31:51Z] <riteo> yeah ok I'm now sure we can depend on said variable [2022-08-31T23:32:06Z] <riteo> http://lists.busybox.net/pipermail/busybox/2019-May/087244.html this is the description for busybox's daemon netlink mode [2022-08-31T23:32:44Z] <riteo> it says that it handles hotplug events from the netlink. Since hotplug events must have the subsystem variable set we can rely on it 100% of the time [2022-08-31T23:33:13Z] <illiliti> ok