💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2019-12-17.txt captured on 2024-06-16 at 13:52:42.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
2019-12-17T00:35:25 #kisslinux <dylanaraps> E5ten: nice 2019-12-17T01:18:16 #kisslinux <E5ten> I guess if use_udev is enabled in the chromium build in qt webengine it dlopens libudev cuz with it gone falkon crashes, now I've gotta rebuild webengine with the build system files modified to set use_udev=false cuz there's no option in webengine to disable it and it chooses what to enable in the chromium part 2019-12-17T01:46:59 #kisslinux <E5ten> ok now I can actually be done with libudev 2019-12-17T03:29:28 #kisslinux <E5ten> mforney: would it no longer be UB if __container_of was changed to be defined to "#define __container_of(ptr, sample, member) 2019-12-17T03:29:28 #kisslinux <E5ten> (void *)((char *)(ptr) - (sample ? ((char *)&(sample)->member - (char *)(sample)) : 0))" basically the same thing, but it checks if sample is NULL and only involves it in the pointer math if it is, I think that should work the same but not be UB because it won't be used if NULL and if it is NULL uses of it would do nothing because they'd be subtracting NULL from the original address which wouldn't change anything? 2019-12-17T04:10:19 #kisslinux <mforney> it's wrong for the NULL case though, right? container_of would just return the pointer you passed in, not the container 2019-12-17T04:13:56 #kisslinux <mforney> how extensively used is __container_of? could you change the second argument to the type? then you could do what musl does: `#define container_of(p,t,m) ((t*)((char *)(p)-offsetof(t,m)))` 2019-12-17T05:36:58 #kisslinux <s4shubham4u> hi 2019-12-17T07:07:19 #kisslinux <adamantium> hi 2019-12-17T13:21:13 #kisslinux <E5ten> mforney: you're probably right, I have no idea how it works and was throwing out a pretty random guess 2019-12-17T13:21:39 #kisslinux <E5ten> dylanaraps: imagine asking someone who has a paid option to buy their ebook "hey can your repo include a way to make this into an ebook for free" 2019-12-17T23:02:38 #kisslinux <dylanaraps> E5ten: I know right... 2019-12-17T23:03:57 #kisslinux <dylanaraps> I ordered a present online 3 days ago with 2 day shipping and it won't arrive until the 27th of December. :( 2019-12-17T23:04:23 #kisslinux <dylanaraps> Really defeats the purpose of 2 day shipping y'know? 2019-12-17T23:04:51 #kisslinux <dylanaraps> I've contacted the seller and UPS but I doubt anything can be done. 2019-12-17T23:06:48 #kisslinux <E5ten> damn :( 2019-12-17T23:07:13 #kisslinux <E5ten> I'm sure whoever you're getting it for will understand, nothing you can do about delivery company sucking 2019-12-17T23:07:35 #kisslinux <dylanaraps> Yup 2019-12-17T23:08:19 #kisslinux <dylanaraps> I only started having trouble with getting things delivered when I moved to Europe funny enough. 2019-12-17T23:08:30 #kisslinux <dylanaraps> International to Australia, no problem. 2019-12-17T23:08:38 #kisslinux <E5ten> mforney: I think after the last change util.c doesn't need _POSIX_C_SOURCE anymore 2019-12-17T23:08:53 #kisslinux <E5ten> all the stuff I wanted to order is gonna take too long cuz it's from US to canda 2019-12-17T23:08:55 #kisslinux <E5ten> canada* 2019-12-17T23:09:17 #kisslinux <E5ten> gotta think of alternatives like now 2019-12-17T23:09:30 #kisslinux <dylanaraps> My brother ordered a charger from China and it went China -> USA -> Canada -> Germany -> Greece 2019-12-17T23:09:50 #kisslinux <dylanaraps> Had to also hand over tax info for it to get through customs. 2019-12-17T23:09:53 #kisslinux <dylanaraps> Crazy 2019-12-17T23:10:02 #kisslinux <E5ten> wow 2019-12-17T23:10:18 #kisslinux <dylanaraps> He joked that his charger had travelled more than he had. 2019-12-17T23:10:26 #kisslinux <dylanaraps> It saw the world 2019-12-17T23:10:53 #kisslinux <E5ten> lmao 2019-12-17T23:12:11 #kisslinux <dylanaraps> Repology has been down since yesterday 2019-12-17T23:16:28 #kisslinux <E5ten> yikes 2019-12-17T23:27:40 #kisslinux <mforney> E5ten: it still needs it for mkdir (in makedirs) 2019-12-17T23:29:05 #kisslinux <mforney> dylanaraps: btw, i'm thinking of calling current samurai master version 1.0. do you think you could do a test build of kiss packages with it to see if any bugs snuck in? 2019-12-17T23:35:00 #kisslinux <E5ten> huh, so it does, I wonder why there was no warning about it when I tried it without the define 2019-12-17T23:37:40 #kisslinux <mforney> mkdir comes from sys/stat.h, which is a POSIX-specific header, so it doesn't have to worry about exposing POSIX-specific functions 2019-12-17T23:41:38 #kisslinux <E5ten> but if the header always defines mkdir why is the define needed? isn't including sys/stat.h at all the indicator that you're using POSIX-specific functionality? or do some C libraries only expose mkdir when _POSIX_C_SOURCE is defined and some don't? 2019-12-17T23:53:29 #kisslinux <mforney> i think you're right that it could be removed (since mkdir is there since forever) 2019-12-17T23:54:11 #kisslinux <mforney> but it's nice as a reminder for me that the file uses some POSIX interfaces 2019-12-17T23:57:02 #kisslinux <E5ten> makes sense