[2022-12-30T05:52:14Z] Hi [2022-12-30T05:57:16Z] HI [2022-12-30T05:58:57Z] Is Unix dead? [2022-12-30T06:57:34Z] Probably, but BSD isnt [2022-12-30T08:13:21Z] Hi [2022-12-30T14:54:09Z] illiliti: is there an accurate way to determine if disk has enough space for pkg installation? [2022-12-30T14:54:16Z] for adding a check [2022-12-30T14:54:34Z] also i need to look into pipewire hotplug, forgot about it [2022-12-30T16:07:58Z] perhaps you can parse output of df "${KISS_ROOT:-/}" [2022-12-30T16:09:09Z] not sure if it's accurate way though [2022-12-30T16:12:29Z] imagine user has separate /usr [2022-12-30T16:13:42Z] to get accurate size, you have to iterate over df output and take into the account these separate mountpoints [2022-12-30T16:14:01Z] i believe this is the only way [2022-12-30T16:15:42Z] oh [2022-12-30T16:15:54Z] also pseudo filesystems [2022-12-30T16:16:10Z] you need to ignore them somehow [2022-12-30T16:31:46Z] hmm [2022-12-30T16:31:49Z] how do current pkg managers do it [2022-12-30T16:33:16Z] Your'd have to store size of build tree in a file and compare against free on root [2022-12-30T16:33:48Z] * Your'd have to store size of build tree in a file and compare against free on root [2022-12-30T16:33:48Z] (A post build hook?) [2022-12-30T16:34:34Z] not that simple because mountpoints [2022-12-30T16:48:37Z] idea: iterate over package's manifest, get size of each top-level directory and run df -P on that directory in KISS_ROOT to get available size, compare [2022-12-30T16:49:49Z] but as you see it is not perfect because we don't handle nested mountpoints [2022-12-30T16:51:06Z] i wish df have a flag to print nested mountpoints [2022-12-30T16:51:25Z] that would simplify things [2022-12-30T16:54:38Z] you can still handle nested mountpoints though [2022-12-30T16:54:51Z] parse parse parse df -P output [2022-12-30T17:31:09Z] hei illiliti does the opengroup have plans to require make to set a PWD macro in 202x? [2022-12-30T17:37:21Z] hmm https://www.austingroupbugs.net/view.php?id=338 [2022-12-30T18:05:42Z] no clue [2022-12-30T18:05:49Z] why do you ask [2022-12-30T18:06:55Z] would be useful and BSD and GNU have incompatible syntaxes for it [2022-12-30T18:12:54Z] i see [2022-12-30T18:13:13Z] smake also has CURDIR [2022-12-30T18:19:48Z] i'll send a proposal when i get free time [2022-12-30T18:32:47Z] nice [2022-12-30T18:32:50Z] let me know if i can help [2022-12-30T19:15:42Z] is there a floating wayland wm thats reasonably good? I only know of spkp, which it seems its really working :p [2022-12-30T19:52:20Z] I don't understand your question. Monero doesn't need any wrappers to use LMDB. Nor does LMDB have any memory management bugs, so a language like rust would only bloat it and slow it down. [2022-12-30T20:02:25Z] sad_plan: wayfire? [2022-12-30T20:02:53Z] phoebos: hm, isnt that what dilyn used earlier? Ill check it out [2022-12-30T20:04:29Z] *3D*. fancy stuff [2022-12-30T20:13:53Z] hikari was the one which I thought about, but dilyn did use wayfire [2022-12-30T20:15:52Z] phoebos: wait, what make should put into CURDIR if run with -f path/to/Makefile [2022-12-30T20:18:49Z] implementations seem to not handle this case [2022-12-30T21:23:54Z] illiliti: make -C is an explicit chdir, -f is just using a different makefile, so I think CURDIR should not be changed by -f but should be by -C [2022-12-30T21:24:02Z] bmake does this [2022-12-30T21:24:39Z] gnu make distinguishes PWD and CURDIR when doing -C [2022-12-30T21:26:28Z] in that case, PWD is where you run it and CURDIR is where make is running (-C CURDIR) [2022-12-30T21:26:30Z] weird [2022-12-30T21:27:01Z] oh no i forgot gmake doesn't set PWD [2022-12-30T21:29:17Z] -C is no problem [2022-12-30T21:29:44Z] i afraid -f will break CURDIR [2022-12-30T21:30:33Z] cd /tmp && make -f /tmp/project/Makefile [2022-12-30T21:30:58Z] why? because a makefile using CURDIR will expect CURDIR to be the same dir as it's written in? [2022-12-30T21:31:14Z] yes2 [2022-12-30T21:31:56Z] then there should be a note that in that case it is necessary to do cd dir; make rather than make -f dir/Makefile [2022-12-30T21:34:57Z] > in particular note that if you include files from other directories the value of CURDIR does not change [2022-12-30T21:35:51Z] is PWD a better name because of the incompatibility with CURDIR/.CURDIR [2022-12-30T21:37:49Z] PWD would be an invention; not suitable for addition [2022-12-30T21:42:24Z] which incompatibility btw? i only see that bmake need leading dot, but that's minor [2022-12-30T21:47:31Z] oh wait, PWD is documented in bmake. then it would not be invention [2022-12-30T21:50:26Z] yeah i just meant the leading dot