[2022-10-03T02:51:08Z] Hi [2022-10-03T04:38:19Z] Hi [2022-10-03T06:41:29Z] HI! [2022-10-03T09:27:30Z] phoebos: [2022-10-03T09:27:31Z] any idea why installing baselayout with KISS_ROOT set doesn't set correct perms for /tmp etc? [2022-10-03T09:42:32Z] Hi [2022-10-03T09:42:37Z] Do any of you use River ? [2022-10-03T09:45:21Z] If yes, how did you compile it ? It requires libevdev, but on Kiss we use libudev-zero right ? It will fuck up the system if I install libevdev too ? [2022-10-03T09:46:00Z] I have absolutely 0 knowledges on evdev/udev/libinput things [2022-10-03T09:46:23Z] evdev is unrealted to libudev-zero [2022-10-03T09:46:48Z] it needs libevdev, but that's currently bundled into libinput [2022-10-03T09:46:54Z] https://codeberg.org/kiss-community/repo/pulls/114 will be fixed by this [2022-10-03T09:47:21Z] Oh thanks ! [2022-10-03T09:48:17Z] Hope the PR will be merged soon [2022-10-03T09:50:10Z] its ready to merge [2022-10-03T09:50:17Z] but i havent tested it much [2022-10-03T09:50:32Z] does mako get split into another package in that PR? [2022-10-03T09:50:44Z] yea [2022-10-03T09:50:47Z] 3 python packages [2022-10-03T09:50:48Z] or does it remove the ability to build dependencies at build time and instead does them in package [2022-10-03T09:50:48Z] so bad [2022-10-03T09:51:00Z] so bad indeed [2022-10-03T10:32:22Z] Any of you use zig ? [2022-10-03T10:33:37Z] Zig's working fine except when I try to link libc I got a segfault. GDB say absolutely nothing, it seems that there is only a _start function in the binary [2022-10-03T10:34:16Z] you're using the official binary? [2022-10-03T10:34:18Z] it happens with that for some reason [2022-10-03T10:35:54Z] I built zig with the package from community [2022-10-03T10:36:15Z] I tried with a master build of zig, same issue [2022-10-03T10:41:12Z] testuser[m]: https://codeberg.org/kiss-community/kiss/commit/1933a19e105d83a512c9312022ba1d57bc04fd73 [2022-10-03T10:41:23Z] maybe to do with this [2022-10-03T10:43:01Z] phoebos: Zig build fine, but whenever I try to build a zig app linked with libc it segfaults... [2022-10-03T10:43:50Z] he's not talking about the zig isue [2022-10-03T10:43:56Z] Oh my bad [2022-10-03T10:47:19Z] ah testuser[m]: file_rwx gets st_mode & 0777 so it doesn't realise the sticky bit is set [2022-10-03T10:47:34Z] ie. /tmp is 1777, but file_rwx /tmp gives 777 [2022-10-03T10:58:02Z] this is the kind of place where a bit of C makes it much easier [2022-10-03T11:08:46Z] testuser[m]: with reverting 1933a19e105d83a512c9312022ba1d57bc04fd73 and the PR I opened, I think it is fixed? [2022-10-03T11:18:37Z] not sure why explicit tar -p is required though. it should be used by default for root [2022-10-03T11:19:03Z] im installing as user [2022-10-03T11:26:28Z] wrks [2022-10-03T11:27:50Z] oh yeah [2022-10-03T11:28:00Z] KISS_ROOT is owned by whoever [2022-10-03T11:28:06Z] works with explicit -p? [2022-10-03T11:29:00Z] same with and without [2022-10-03T11:29:06Z] as use [2022-10-03T11:29:08Z] user [2022-10-03T11:29:40Z] what's your umask [2022-10-03T11:30:10Z] 0022 [2022-10-03T11:30:19Z] same [2022-10-03T11:32:30Z] without -p, /tmp in KISS_ROOT is 0755 [2022-10-03T11:33:13Z] with -p, 1777 [2022-10-03T11:34:30Z] with -p but without rwx patch, 0777 [2022-10-03T11:44:46Z] s [2022-10-03T11:45:53Z] ig ill just spoof uid with bwrap [2022-10-03T11:45:54Z] works fine with that [2022-10-03T11:47:05Z] along with ur patch [2022-10-03T12:05:38Z] https://termbin.com/3095 [2022-10-03T12:07:41Z] the script is garbage but much better than manually creating ta [2022-10-03T12:07:42Z] tar [2022-10-03T12:07:55Z] https://codeberg.org/kiss-community/maintainer-utils/src/branch/master/kiss-bootstrap/bootstrap.sh [2022-10-03T12:12:43Z] i need to fix the error handlig [2022-10-03T12:12:56Z] it doesnt work if kiss build fails, the whole script ends with [2022-10-03T12:12:59Z] "Terminated" [2022-10-03T12:26:57Z] o/ [2022-10-03T12:27:05Z] \o [2022-10-03T13:56:18Z] phoebos why are `old`, `sys` and `new` checksums compared for /etc, can't we just `if hash(new) != hash(existing) mv new new.new` [2022-10-03T13:56:24Z] why does it matter what the original checksum was [2022-10-03T13:57:39Z] oh it's just to avoid saving the file as .new if it's same as the original one [2022-10-03T13:58:38Z] is that really needed though, removing that logic will get rid of storing checksums anywhere which simplifies the b3 transition a bit [2022-10-03T14:00:50Z] ioraff: illiliti ? [2022-10-03T14:04:39Z] Wait nvm [2022-10-03T14:04:44Z] I forgot the main purpose lol [2022-10-03T14:05:01Z] it'll keep installing .new files otherwise even if everything is unchanged [2022-10-03T14:14:18Z] testuser[m]: who owned KISS_ROOT when you were testing earlier [2022-10-03T14:14:50Z] phoebos: my user [2022-10-03T14:15:01Z] uid 1000 [2022-10-03T14:15:30Z] i don't understand why you didn't need tar -p but i do [2022-10-03T14:16:23Z] it doesnt work either way with non-root user [2022-10-03T14:25:45Z] btw i think i figured out a way to reduce conflict detection time by inf % [2022-10-03T14:26:11Z] make the whole file list into a fat (/file1|/file2) expr instead of 1000 individual patterns [2022-10-03T14:26:25Z] runs in 0.06s instead of 10s but idk if it even works so [2022-10-03T14:28:17Z] this is for 5000 files [2022-10-03T14:29:31Z] ooh sounds nice [2022-10-03T14:30:34Z] https://tmp.bvnf.space/log [2022-10-03T14:31:11Z] testuser[m]: kiss owns /bin/tar ? [2022-10-03T14:31:27Z] busybox [2022-10-03T14:31:35Z] actually [2022-10-03T14:31:35Z] ah [2022-10-03T14:31:48Z] not in kiss [2022-10-03T14:31:48Z] i was trying with raw tar [2022-10-03T14:31:49Z] but it should be the same so [2022-10-03T14:32:34Z] gtar? [2022-10-03T14:32:49Z] i mean i was trying iwth busybox tar outside of kiss [2022-10-03T14:33:11Z] ok [2022-10-03T14:35:10Z] yea busybox tar is shit [2022-10-03T14:35:11Z] λ ls -ld busy/tmp [2022-10-03T14:35:11Z] drwxr-xr-t 2 testuser testuser 40 Oct 3 18:58 busy/tmp [2022-10-03T14:35:11Z] λ ls -ld gnoo/tmp [2022-10-03T14:35:11Z] drwxrwxrwt 2 testuser testuser 40 Oct 3 18:58 gnoo/tmp [2022-10-03T14:38:41Z] btw how does `grep -q ":/var/db/kiss/installed/" "$_tmp_file" || safe=1` ever match ? my grep doesn't seem to do anything if i try `echo test | grep :t` [2022-10-03T14:38:54Z] : means line starting with substr i think [2022-10-03T14:40:48Z] maybe he meant to use ^ [2022-10-03T14:42:42Z] OH [2022-10-03T14:42:55Z] its cuz when grepping on multiple files it appends : after filename [2022-10-03T14:43:32Z] ah [2022-10-03T14:43:42Z] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html [2022-10-03T14:43:52Z] : has no special meaning except in [::] [2022-10-03T14:44:57Z] now tell me [2022-10-03T14:45:06Z] how to escape filenames to safely includein (|) [2022-10-03T14:47:42Z] what are you trying to do? [2022-10-03T14:49:51Z] make pkg_conflicts do grep -E '(/usr/bin/file1|/usr/bin/file2|...)' /var/db/kiss/installed/*/manifest [2022-10-03T14:49:59Z] instead of making file1 file2 as individual patterns [2022-10-03T14:50:08Z] grep can make a trie with -E [2022-10-03T14:54:42Z] it already does it via -f, no? [2022-10-03T14:55:17Z] escape .[\*^$, don't escape 1-9(){} [2022-10-03T14:55:22Z] -f pattern_file [2022-10-03T14:55:39Z] oh yeah thats a better way [2022-10-03T14:55:58Z] illiliti: no [2022-10-03T14:56:17Z] what it does with -f is equivalent to -e [2022-10-03T14:56:18Z] not -E [2022-10-03T14:56:31Z] and that works cuz it tells grep to treat is as a string not a pattern [2022-10-03T14:56:38Z] so .* | etc arent an issue [2022-10-03T14:56:50Z] why do you need -E [2022-10-03T14:56:51Z] but to make it go big fast it must be made into a ( pattern ) [2022-10-03T14:56:53Z] is the grep -Fxf the slow bit [2022-10-03T14:57:03Z] for fast [2022-10-03T14:57:05Z] look [2022-10-03T14:57:12Z] wait [2022-10-03T14:58:06Z] i would say that -E is slower [2022-10-03T14:58:11Z] generally [2022-10-03T15:01:13Z] https://termbin.com/m9fi [2022-10-03T15:01:17Z] ignore the partial matches i have to figure that out [2022-10-03T15:01:35Z] -E being slower would make sense considering it uses a more complex regex engine. [2022-10-03T15:02:00Z] 116x diff [2022-10-03T15:02:51Z] which grep? [2022-10-03T15:02:56Z] busybox [2022-10-03T15:03:02Z] try gnu [2022-10-03T15:04:24Z] hmmmm yea its 0s vs 0.06s [2022-10-03T15:04:30Z] ig ggrep does this sort of optimization by itself [2022-10-03T15:13:06Z] just use gnu grep [2022-10-03T15:13:13Z] no need to attempt to workaround busybox using -E and stuff like that [2022-10-03T15:14:38Z] iirc freebsd grep is also fast [2022-10-03T15:15:34Z] btw [2022-10-03T15:15:57Z] like wireguard-tools's wg-quick needs /usr/bin/ip set to iproute2 [2022-10-03T15:16:16Z] what would be a good way to indicate that somewhere [2022-10-03T15:16:32Z] i mean like without swapping /usr/bin/ip [2022-10-03T15:16:44Z] prefixing all of iproute's binaries? [2022-10-03T15:16:57Z] post-install message [2022-10-03T15:17:06Z] but it seems hacky [2022-10-03T15:17:17Z] busybox so bad [2022-10-03T15:19:39Z] [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820 [2022-10-03T15:19:39Z] ip: invalid argument '51820' to 'table' [2022-10-03T15:19:49Z] is this something missing inside busybox or an actual bug [2022-10-03T15:19:55Z] the ideal option would be to make it work with busybox [2022-10-03T15:20:22Z] probably busybox has no idea about table arg [2022-10-03T15:20:45Z] then thats probably out of scope for a KISS specific patch [2022-10-03T15:22:24Z] is upstream interested in busybox compatibility? [2022-10-03T15:22:33Z] but considering how they recklessly harcoded bash and shit, i guess no [2022-10-03T15:23:18Z] I meant more like adding the feature to busybox [2022-10-03T15:23:26Z] I don't think there's a "portable" alternative to that rule [2022-10-03T15:25:24Z] so you want to contribute a patch to busybox? do it then [2022-10-03T15:25:32Z] btw what about toybox [2022-10-03T15:27:10Z] toybox needs a patch for removing the bash make dep. unless we wanna put bash into the repo.. [2022-10-03T15:27:24Z] its also.. way less complete [2022-10-03T15:27:53Z] illiliti: can u read today's conversation about tar and sticky bits [2022-10-03T15:33:49Z] phoebos has sent a fix already and you merged, no? [2022-10-03T15:34:10Z] i'm still unsure about tar -p [2022-10-03T15:34:13Z] or fix depends on tar implementation? [2022-10-03T15:36:24Z] Its a partial fix [2022-10-03T15:36:43Z] sticky bit is preserved, but only as root with busybox tar [2022-10-03T15:36:57Z] stick bit is not preserved as regular user with busybox tar [2022-10-03T15:37:03Z] but it works in both cases with gtar [2022-10-03T15:37:26Z] ^ only with tar -p [2022-10-03T15:46:27Z] i doubt that we can do anything with this bug [2022-10-03T15:46:48Z] ~~other than C rewrite~~ [2022-10-03T15:46:55Z] speaking of bugs and C, [2022-10-03T15:47:04Z] could one you guys take a hot minute to do me a small favor? [2022-10-03T15:47:05Z] not with tar [2022-10-03T15:47:10Z] we could use pax [2022-10-03T15:47:45Z] i need someone to compile XMag with tcc, then attempt to magnify a section of the display and report back any errors [2022-10-03T15:48:20Z] also i doubt that current fix is good fix [2022-10-03T15:48:26Z] there seems to be a problem with tcc potentially generating incorrect output with programs that use Xt inheritance operations... whatever that means [2022-10-03T15:48:42Z] some systems don't support setting sticky bit on files [2022-10-03T15:48:52Z] this could be problematic [2022-10-03T15:49:56Z] phoebos: are there more cases that rwx needs to handle other than stick and rwx stuff already present? Eg if you were to do something like this, will it work? [2022-10-03T15:49:57Z] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=flutter#n42 [2022-10-03T15:51:27Z] isn't that just adding rw-rw-rw- [2022-10-03T15:51:54Z] rwx handles that already [2022-10-03T16:29:28Z] imho we should use chroot() rather than inventing our own using KISS_ROOT [2022-10-03T16:29:49Z] wdym [2022-10-03T16:31:36Z] i mean chroot() looks cleaner than prepending KISS_ROOT to everything [2022-10-03T16:32:32Z] chroot(KISS_ROOT) [2022-10-03T16:36:53Z] You mean in terms of post install files? [2022-10-03T16:36:59Z] How else would pkgs get installer [2022-10-03T16:37:05Z] if ur talking about KISS [2022-10-03T16:37:16Z] not the post* hooks [2022-10-03T16:37:39Z] And i think for hooks we should chroot cuz there can be many hooks like for adding users, which won't work without chrot [2022-10-03T16:44:23Z] i mean in general. if i haven't missed anything, chroot(KISS_ROOT) is a cleaner way [2022-10-03T16:44:31Z] but as you noted, how kiss would access ~/.cache/kiss/bin. does it need such access [2022-10-03T16:46:13Z] re adding users, imo packages shouldn't modify anything in /etc [2022-10-03T16:47:29Z] they can only add new files and/or modify only their own files [2022-10-03T16:48:04Z] that's something we should enforce in sandbox [2022-10-03T16:54:48Z] illiliti: what about openssl certificate updaye [2022-10-03T16:56:11Z] it's ok cuz /etc/ssl/* is owned by openssl [2022-10-03T16:56:48Z] to be exact, openssl is a sole app that writes to /etc/ssl/* [2022-10-03T16:57:20Z] things get messy when apps start write to /etc/shells [2022-10-03T16:57:25Z] or /etc/passwd [2022-10-03T16:58:07Z] and on remove, they don't cleanup their shit [2022-10-03T16:58:40Z] midfavila: I managed to build tinyx statically, if youre interested in doing so yourself [2022-10-03T16:59:12Z] that would be something I'd be interested in seeing, yeah [2022-10-03T16:59:57Z] set XSERVERCFLAGS_CFLAGS to --static. maybe -static works for you, but for me it didnt seem to work. [2022-10-03T17:01:00Z] you may also have to add some libs to XSERVERLIBS_LIBS aswell. I had to add libz, freetype and harfbuzz and libpng. I also set *.a aswell to begin with. dunno if it made any difference tbh. [2022-10-03T17:02:49Z] could you package the changes and send me a copy? [2022-10-03T17:03:07Z] just the buildscript? [2022-10-03T17:03:12Z] correct [2022-10-03T17:03:32Z] http://0x0.st/oJqB.sh there you go [2022-10-03T17:10:19Z] thanks, I'll fiddle with it next time I'm looking at tinyx [2022-10-03T17:10:29Z] for now I've put any X-related stuff off to the side [2022-10-03T17:10:39Z] youre welcome :D [2022-10-03T17:10:51Z] alot of other stuff to figure out first? [2022-10-03T17:11:01Z] no, stuff that I'm not capable of figuring out right now [2022-10-03T17:11:17Z] tinycc doesn't generate executables that use motif or athena properly [2022-10-03T17:11:29Z] that's not something I can fix [2022-10-03T17:11:29Z] xwx [2022-10-03T17:12:08Z] well I cant help you there unfortunatly. [2022-10-03T17:12:14Z] do you have to use those though? [2022-10-03T17:12:45Z] I mean, if I cant use tool x, then sometimes I look for tool y or z instead, that might fit the bill [2022-10-03T17:12:59Z] do i have to use athena/motif, or do i have to use tcc? [2022-10-03T17:13:07Z] athena/motif [2022-10-03T17:13:07Z] technically no to the former, yes for the latter [2022-10-03T17:13:17Z] i could just use programs that exclusively use xlib directly [2022-10-03T17:13:20Z] but that's a horrible idea [2022-10-03T17:13:34Z] motif and athena are the only toolkits that my system can build [2022-10-03T17:13:34Z] so [2022-10-03T17:14:11Z] but they dont generate executables, so dont build properly now do they? but whats wrong with using xlibs tools? [2022-10-03T17:14:34Z] I mostly like tools that depend purly on xlibs, as theyre likely simpler to build statically.. [2022-10-03T17:14:44Z] the code is valid and some athena programs work as they should [2022-10-03T17:14:45Z] some are anyway, not everyone [2022-10-03T17:14:53Z] this is a problem in tcc that needs to be resolved [2022-10-03T17:14:58Z] hm, ok [2022-10-03T17:15:16Z] anyway, while i can appreciate that mindset, going toolkit-less isn't viable for larger-scale projects, I think [2022-10-03T17:18:53Z] im not saying you should drop something you initially need, but if some other tool can accomplish what you want, why not give that a try? I get that some tools might not be easily replacable though. [2022-10-03T17:19:57Z] also dont waste too much time on 1 issue. if you cant figure it out, do something else for some time, then come back to it afterwards [2022-10-03T17:20:21Z] I do that all the time. makes troublesome issues.. abit less troublesome imo [2022-10-03T17:20:37Z] illiliti: why does mdev still have to run as a service when baseinit specifies mdev to kernel via /proc/sys/kernel/hotplug [2022-10-03T17:22:22Z] because mdev need to listen to uevents [2022-10-03T17:22:40Z] /proc/sys/kernel/hotplug is an old way for that [2022-10-03T17:22:53Z] it can fork bomb system [2022-10-03T17:23:11Z] because it fork/execs mdev for each uevent [2022-10-03T17:23:49Z] testuser[m]: mirror to github doesn't seem to work? [2022-10-03T17:24:06Z] illiliti: I forgot to sync it [2022-10-03T17:24:11Z] Codeberg interval is disabled [2022-10-03T17:24:17Z] So i have to click the mirror. Button manually [2022-10-03T17:24:27Z] got it [2022-10-03T17:26:25Z] I'd set up a cron job but the endpoint for triggering push mirror is only going to be available in the next gitea version [2022-10-03T17:26:28Z] It's present in latest git [2022-10-03T17:28:31Z] Synced all repos [2022-10-03T17:31:21Z] why does codeberg add so many crap tags to merge commit message [2022-10-03T17:32:03Z] Idk [2022-10-03T17:32:25Z] Ask on #codeberg.org:matrix.org [2022-10-03T17:50:41Z] eh [2022-10-03T17:52:09Z] * testuser[m] uploaded an image: (11KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.pratham.cc/WqsxpQQmIbeMAhuZZHzFIHvc/image.png > [2022-10-03T17:52:11Z] It's a gitea setting [2022-10-03T18:13:27Z] is it possible to drop python packages from unbundle branch? [2022-10-03T18:14:08Z] illiliti: why [2022-10-03T18:14:11Z] mesa needs mako for codegen [2022-10-03T18:14:15Z] templation [2022-10-03T18:14:25Z] docutils can be remover [2022-10-03T18:14:47Z] But you'll still have markupsafe and mako [2022-10-03T18:22:50Z] i would like to keep repos free of python packages [2022-10-03T18:23:05Z] there's no rush to drop them [2022-10-03T18:25:36Z] and this is not a blocker also [2022-10-03T18:25:49Z] we could merge unbundle branch once it done [2022-10-03T18:27:14Z] just having python-free repo would be good for general sanity [2022-10-03T18:31:32Z] at least making it clear that they are present solely as dependencies for mesa, mpv would be enough too [2022-10-03T18:32:12Z] and not intended or guaranteed to work with normal use cases [2022-10-03T18:35:31Z] btw has anyone investigated netbsd patch that removes nodejs dep for firefox? [2022-10-03T18:36:25Z] You'd have to generate the nodejs junk outside [2022-10-03T18:36:27Z] Just like openssl [2022-10-03T18:36:46Z] it is generated already [2022-10-03T18:37:02Z] But we have to update it [2022-10-03T18:37:20Z] true but how often [2022-10-03T18:37:33Z] However often devtools and stuff are updated [2022-10-03T18:37:35Z] I'll check the exact files