💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2020-09-16.txt captured on 2022-07-17 at 03:18:56.

View Raw

More Information

⬅️ Previous capture (2021-12-17)

-=-=-=-=-=-=-

2020-09-16T00:16:00 #kisslinux <muevoid_> I have herbew(my temporary name for the wayland port of herbe) connecting to the wayland server and compositor then creating a surface.
2020-09-16T00:25:18 #kisslinux <dilyn> that's exciting!
2020-09-16T01:52:48 #kisslinux <admicos> i have, like, two qt programs total and i am currently stealing half of the packages from kiss-kde to theme them properly
2020-09-16T01:53:08 #kisslinux <admicos> one of them even has it's own configuration for theming but the context menus and file pickers are raw qt
2020-09-16T01:53:35 #kisslinux <admicos> (well, 3 is not exactly half, but whatevs)
2020-09-16T02:00:40 #kisslinux <dilyn> wouldn't that look weird?
2020-09-16T02:00:55 #kisslinux <dilyn> unless you don't use graphical apps that aren't cute xD
2020-09-16T02:00:55 #kisslinux <admicos> weird, as in...?
2020-09-16T02:01:20 #kisslinux <dilyn> as in, not uniform
2020-09-16T02:02:01 #kisslinux <admicos> i try to use arc everywhere, falling back to dracula if arc's not available (so, everything but gtk/qt)
2020-09-16T02:02:06 #kisslinux <admicos> works p well so far for me
2020-09-16T02:02:09 #kisslinux <dilyn> oh i see
2020-09-16T03:20:39 #kisslinux <muevoid> Hey dilyn. When I get this a little further would you mind testing it on your machine as well?
2020-09-16T03:29:20 #kisslinux <dilyn> definitely!
2020-09-16T03:31:57 #kisslinux <kirc> :q
2020-09-16T13:57:59 #kisslinux <micr0> muevoids[m] / dilyn : I *think* i have an x-less system. At least from the standpoint of no xwayland, so I could also help test things. I do have firefox though so that might have installed some X dependencies during build. Any way to check if I can help test things?
2020-09-16T15:20:15 #kisslinux <merakor2> If I am checking that a process exists in C by calling 'kill(0, pid)' and it fails due to permission errors
2020-09-16T15:20:27 #kisslinux <merakor2> Is it safe to assume that it is indeed running?
2020-09-16T15:32:28 #kisslinux <illiliti> merakor: no
2020-09-16T15:32:34 #kisslinux <illiliti> POSIX: In secure implementations, a process may be restricted from sending a signal to a process having a different security label. In order to prevent the existence or nonexistence of a process from being used as a covert channel, such processes should appear nonexistent to the sender; that is, [ESRCH] should be returned, rather than [EPERM], if pid refers only to such processes.
2020-09-16T15:33:04 #kisslinux <sh4rm4^bnc> also it would be racy
2020-09-16T15:33:22 #kisslinux <sh4rm4^bnc> process could be there in the moment of test, but not when you want to do something to it
2020-09-16T15:33:50 #kisslinux <illiliti> ++
2020-09-16T15:35:31 #kisslinux <merakor2> How can I possibly check for a process without race conditions?
2020-09-16T15:38:04 #kisslinux <merakor2> illiliti: I may have totally misunderstood that, but doesn't that basically say it EPERM is for permissions, ESRCH is for processes that look like they don't exist.
2020-09-16T15:38:06 #kisslinux <sh4rm4^bnc> it depends on what you wanna do to the process, there may be a way to do it atomically
2020-09-16T15:38:48 #kisslinux <merakor2> I was thinking of checking the error of kill() and let it pass if it is EPERM
2020-09-16T15:39:16 #kisslinux <merakor2> sh4rm4^bnc: It is for sysmgr
2020-09-16T15:39:37 #kisslinux <sh4rm4^bnc> some kind of task manager?
2020-09-16T15:39:46 #kisslinux <merakor2> Yeah
2020-09-16T15:40:32 #kisslinux <merakor2> The program itself is a shell script, but I am thinking of a utility just for checking processes
2020-09-16T15:41:15 #kisslinux <merakor2> It's just a random thought though
2020-09-16T15:41:46 #kisslinux <illiliti> merakor2: secure implementation can return ESRCH to prevent enumeration of process...
2020-09-16T15:42:48 #kisslinux <merakor2> But the purpose is to only check if a process exists
2020-09-16T15:42:56 #kisslinux <merakor2> The kill() call is going to fail on ESRCH anyway
2020-09-16T15:44:08 #kisslinux <merakor2> Only POSIX way of properly checking is kill() and I can't move away from that
2020-09-16T15:44:23 #kisslinux <merakor2> The thing I want to be sure is EPERM == process exists
2020-09-16T15:45:09 #kisslinux <merakor2> I didn't find anything against it, but I don't want to implement such a thing unless I am sure.
2020-09-16T15:45:37 #kisslinux <illiliti> you can't assume that kill return EPERM if process running
2020-09-16T15:45:56 #kisslinux <merakor2> I am not assuming that
2020-09-16T15:46:29 #kisslinux <merakor2> I am assuming the opposite
2020-09-16T15:46:46 #kisslinux <merakor2> If it returns EPERM, then that means the process is running
2020-09-16T15:46:58 #kisslinux <merakor2> I just don't have permission to kill it
2020-09-16T15:49:32 #kisslinux <illiliti> kill can return ESRCH if process running even if signal == 0 to prevent enumeration
2020-09-16T15:49:37 #kisslinux <illiliti> if you don't have permission to that process
2020-09-16T15:51:04 #kisslinux <merakor2> Yeah, but I can't handle every situation
2020-09-16T15:51:14 #kisslinux <merakor2> I am just going to handle no error and EPERM
2020-09-16T15:52:34 #kisslinux <illiliti> ok, but keep in mind that you can get false positive
2020-09-16T15:53:38 #kisslinux <merakor2> As far as I understand ESRCH can arise for multiple reasons
2020-09-16T15:53:58 #kisslinux <merakor2> It also arises when the process does indeed not exist
2020-09-16T15:54:12 #kisslinux <merakor2> But EPERM is only due to permission errors
2020-09-16T15:54:35 #kisslinux <claudia02> Hola!
2020-09-16T15:54:47 #kisslinux <merakor2> claudia02: Hey!
2020-09-16T15:55:00 #kisslinux <claudia02> I have trouble fetching the sources from this package through 'kiss'. https://github.com/sdsddsd1/kiss-games/tree/master/games/srb2kart
2020-09-16T15:55:05 #kisslinux <claudia02> Can someone reproduce?
2020-09-16T15:55:31 #kisslinux <claudia02> It returns '406 - Not Acceptable'
2020-09-16T15:55:55 #kisslinux <merakor2> can you fetch normally?
2020-09-16T15:56:18 #kisslinux <illiliti> i can reproduce
2020-09-16T15:59:34 #kisslinux <illiliti> i managed to bypass that error by adding '--user-agent Firefox' to curl
2020-09-16T15:59:57 #kisslinux <claudia02> I can fetch witch wget and firefox
2020-09-16T16:00:30 #kisslinux <illiliti> looks like WAF rejects curl requests lol
2020-09-16T16:01:13 #kisslinux <claudia02> illiliti: I can reproduce your fix.
2020-09-16T18:03:47 #kisslinux <chloe1> hey all, not sure if i'm doing something totally wrong here, but i've compiled the kiss kernel with firmware for my AMD cpu and intel wireless card, and compiled and installed it, with a working grub and fstab configuration, but when i try to boot it just gives one error about kvm being disabled by bios, and then doesnt show a login prompt or any other debugging info, e ven when i pass a
2020-09-16T18:03:49 #kisslinux <chloe1> loglevel of 8 with grub. any ideas for what i should try next?
2020-09-16T18:04:32 #kisslinux <chloe1> i have read the wiki and tried finding relevant troubleshooting info on the gentoo wiki
2020-09-16T18:14:38 #kisslinux <admicos> i ported /etc/portage/patches into kiss, https://git.ebc.li/kiss/custom/src/branch/main/custom/katch
2020-09-16T18:14:41 #kisslinux <admicos> might be useful to some
2020-09-16T18:28:00 #kisslinux <soliwilos> admicos: Neat. I'm poking around a kiss chroot for the first time, considering trying it on my laptop and I'm currently using gentoo (and that feature).
2020-09-16T20:43:33 #kisslinux <admicos> ouch: /usr/bin/kiss: 10: .: 3: No file descriptors available
2020-09-16T20:44:19 #kisslinux <admicos> AAAAH i made a very dumb mistake that's why
2020-09-16T20:44:24 #kisslinux <admicos> it only took compiling gcc to find out :(
2020-09-16T22:46:44 #kisslinux <nihal> /m ghost
2020-09-16T23:41:39 #kisslinux <admicos> well, recompiling musl with some special sauce killed my ability to properly compile anything
2020-09-16T23:41:40 #kisslinux <admicos> fun!
2020-09-16T23:42:30 #kisslinux <admicos> i assume i can extract the musl from the kiss tarball while fixing my own musl
2020-09-16T23:44:49 #kisslinux <muevoid> Wayland client's def have a lot more boiler plate code then xorg
2020-09-16T23:45:35 #kisslinux <muevoid> Also a lot more flexibility it seems though.
2020-09-16T23:56:36 #kisslinux <sh4rm4^bnc> admicos, special sauce == -flto ?
2020-09-16T23:56:46 #kisslinux <admicos> might be :p
2020-09-16T23:57:01 #kisslinux <admicos> found a patch in a mailing list that fixed musl's compile issue, but apparently it screwed up everything else
2020-09-16T23:57:17 #kisslinux <admicos> ngl i kinda expected it, it was dumb of me not to back up
2020-09-16T23:57:27 #kisslinux <sh4rm4^bnc> musl is *the* implementation
2020-09-16T23:57:33 #kisslinux <sh4rm4^bnc> you can't LTO it
2020-09-16T23:58:05 #kisslinux <sh4rm4^bnc> because the compiler will throw away stuff it thinks is unnecessary
2020-09-16T23:58:24 #kisslinux <admicos> as a wise man once said: "HOLY COW I'M TOTALLY GOING SO FAST OH F***"
2020-09-16T23:58:47 #kisslinux <sh4rm4^bnc> anyway, as long as your busybox an cc is statically linked you can fix it
2020-09-16T23:59:11 #kisslinux <admicos> i fixed it already, copied the crt files over from kiss installation tarball and rebuilt musl