💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2020-02-07.txt captured on 2024-05-12 at 16:09:14.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
2020-02-07T00:36:45 #kisslinux <dilyn> The build hangs at making the parser. Crazy. 2020-02-07T00:45:00 #kisslinux <konimex> isn't flang (not f18) unmaintained? 2020-02-07T00:46:30 #kisslinux <konimex> though f18 is iirc in the process of inclusion to llvm 2020-02-07T00:47:05 #kisslinux <dilyn> Yeah o was trying to build f18 2020-02-07T00:47:31 #kisslinux <dilyn> That's supposed to happen this year 2020-02-07T10:08:53 #kisslinux <mattradomski> hi, I was browsing unixporn and came across this screenshot "https://i.redd.it/paxiand7hvx31.jpg", and was just wondering how is that st or htop take less memory then they would on my linux 2020-02-07T10:20:47 #kisslinux <dylanaraps> Hello 2020-02-07T10:21:31 #kisslinux <mattradomski> Hi 2020-02-07T10:33:55 #kisslinux <dylanaraps> mattradomski: Apologies for the delay in my reply. Power went out 2020-02-07T10:34:15 #kisslinux <dylanaraps> Memory usage depends a lot on your system. 2020-02-07T10:34:36 #kisslinux <dylanaraps> glibc is a lot heavier than musl which may play a big part in this 2020-02-07T10:37:01 #kisslinux <mattradomski> if i was to use a system that was compiled using musl would it lower the memory footprint? 2020-02-07T10:39:14 #kisslinux <dylanaraps> Most likely 2020-02-07T10:39:36 #kisslinux <dylanaraps> It also depends on how many things are dynamically linked to your st, etc. 2020-02-07T12:32:29 #kisslinux <admicos> just posting this here too, might be interesting to some of you: https://www.reddit.com/r/kisslinux/comments/f09c9k/aggressive_compiler_optimizations_under_kiss_linux/ 2020-02-07T13:03:46 #kisslinux <dylanaraps> admicos: Thanks for opening the issue. 2020-02-07T13:03:53 #kisslinux <dylanaraps> Not sure if you're still online in irc. 2020-02-07T13:07:04 #kisslinux <admicos> i'm here 2020-02-07T13:07:41 #kisslinux <dylanaraps> I'm open to the idea but I'm unsure about the best way of implementing it 2020-02-07T13:08:12 #kisslinux <dylanaraps> kiss is meant to be run as a normal user so /etc/* might not be the best place for said files 2020-02-07T13:08:57 #kisslinux <admicos> i don't really mind the implementation as long as it works 2020-02-07T13:09:53 #kisslinux <dylanaraps> Also, the build script is run as a regular shellscript and isn't sourced by the package manager. I don't know if overwriting the environment will carry over to the subprocess 2020-02-07T13:10:27 #kisslinux <admicos> sourcing the hook might not be the best idea, actually 2020-02-07T13:10:43 #kisslinux <admicos> as once an environment variable changes, it won't get reset for the next package 2020-02-07T13:11:49 #kisslinux <admicos> maybe you could do something like `sh -c "run-hooks-for pre-build && build-script /destdir"` 2020-02-07T13:12:16 #kisslinux <dylanaraps> (It *should* work though) 2020-02-07T13:13:07 #kisslinux <dylanaraps> admicos: That would fail if there are no hooks 2020-02-07T13:13:18 #kisslinux <dylanaraps> I'm laggy so my messages are delayed, apologies. 2020-02-07T13:13:51 #kisslinux <dylanaraps> (Off topic: This will be an init option shortly. https://github.com/kisslinux/init/blob/master/bin/init.c) 2020-02-07T13:13:57 #kisslinux <dylanaraps> (I'm using it right now.) 2020-02-07T13:14:03 #kisslinux <icyphox> Evening. 2020-02-07T13:14:05 #kisslinux <admicos> the "run-hooks-for" command (placeholder name) would ideally always return 0, so it won't fail 2020-02-07T13:14:17 #kisslinux <dylanaraps> icyphox: Hello 2020-02-07T13:14:26 #kisslinux <admicos> o/ 2020-02-07T13:14:31 #kisslinux <KayW> howdy all 2020-02-07T13:14:51 #kisslinux <dylanaraps> admicos: Maybe an envar called: 'KISS_HOOK'. It would take a path to a script and will receive the package name as '$1'. 2020-02-07T13:15:03 #kisslinux <dylanaraps> You'd then have a single script as the entry point on the user side 2020-02-07T13:15:09 #kisslinux <icyphox> I'm likely doing something very stupid; I've compiled a new kernel (5.5.2) and I've installed it using, well, 'make install'. The problem is, it still boots the old one. 2020-02-07T13:15:29 #kisslinux <dylanaraps> icyphox: Did you rename vmlinux/System.map to *-ver 2020-02-07T13:15:37 #kisslinux <icyphox> Yes. 2020-02-07T13:16:01 #kisslinux <icyphox> Oh wait, not System.map. 2020-02-07T13:16:09 #kisslinux <dylanaraps> Did you run: 'grub-mkconfig -o /boot/grub/grub.cfg'? 2020-02-07T13:16:14 #kisslinux <icyphox> Not using grub. 2020-02-07T13:16:18 #kisslinux <dylanaraps> Gotcha 2020-02-07T13:16:21 #kisslinux <icyphox> efistub 2020-02-07T13:16:48 #kisslinux <admicos> dylanaraps: envvar would work, but the name "KISS_HOOK" feels too general, as there might be hooks other than pre-build in the future (maybe?) 2020-02-07T13:17:11 #kisslinux <admicos> for multiple hooks i assume a wrapper script could be made 2020-02-07T13:17:32 #kisslinux <dylanaraps> Could be that KISS_HOOK's '$1' is pre/post/whatever and '$2' is the package name 2020-02-07T13:18:03 #kisslinux <admicos> that should work 2020-02-07T13:18:10 #kisslinux <admicos> i don't really see a reason 2020-02-07T13:18:21 #kisslinux <admicos> why it wouldn't 2020-02-07T13:18:24 #kisslinux <icyphox> I'm confused. How does the bootloader determine which kernel binary to boot? 2020-02-07T13:18:34 #kisslinux <icyphox> Or does it boot just vmlinuz? 2020-02-07T13:18:34 #kisslinux <dylanaraps> You're not using a bootloader :P 2020-02-07T13:18:54 #kisslinux <dylanaraps> I have no idea about EFISTUBs been a long time since I used them last 2020-02-07T13:18:59 #kisslinux <icyphox> Right. Heh. 2020-02-07T13:19:22 #kisslinux <icyphox> Okay, but do you have a 'vmlinuz' file? (No version) 2020-02-07T13:20:03 #kisslinux <dylanaraps> admicos: Which hooks are needed? 2020-02-07T13:20:08 #kisslinux <dylanaraps> pre/post build? 2020-02-07T13:20:57 #kisslinux <admicos> for my specific use case a pre-build would be enough, though i can't really know what other people might need 2020-02-07T13:21:03 #kisslinux <dylanaraps> icyphox: I have vmlinux-VERSION 2020-02-07T13:21:09 #kisslinux <dylanaraps> (and System.map-VERSION) 2020-02-07T13:21:11 #kisslinux <icyphox> Hmmm. 2020-02-07T13:21:22 #kisslinux <dylanaraps> Grub requires that they be named that way 2020-02-07T13:21:32 #kisslinux <icyphox> Ah, you use grub. 2020-02-07T13:21:36 #kisslinux <dylanaraps> That I do 2020-02-07T13:21:46 #kisslinux <dylanaraps> admicos: I'll add pre/post build for now. 2020-02-07T13:22:11 #kisslinux <admicos> alright! 2020-02-07T13:22:13 #kisslinux <dylanaraps> Shall I mask their errors? 2020-02-07T13:22:29 #kisslinux <dylanaraps> If I don't and the hook exits > 0, kiss will abort. 2020-02-07T13:22:52 #kisslinux <admicos> aborting seems like the best option 2020-02-07T13:22:56 #kisslinux <dylanaraps> Alrighty 2020-02-07T13:23:24 #kisslinux <icyphox> So while configuring efibootmgr, I remember specifying '--loader /vmlinuz'. 2020-02-07T13:23:45 #kisslinux <dylanaraps> icyphox: Naming it vmlinuz (and removing the old one) should do it then 2020-02-07T13:23:49 #kisslinux <icyphox> So, efistub will boot only the binary named vmlinuz. I think. 2020-02-07T13:23:58 #kisslinux <icyphox> But, I already have that dylanaraps. 2020-02-07T13:24:22 #kisslinux <icyphox> The latest build has been named vmlinuz. (Automatically done by 'make install'). 2020-02-07T13:24:50 #kisslinux <icyphox> I even checked the time stamps and md5 hashes just to make sure. 2020-02-07T13:25:00 #kisslinux <icyphox> Still boots the old one, idk why. 2020-02-07T13:25:07 #kisslinux <icyphox> I will dig into this further. 2020-02-07T13:26:48 #kisslinux <dylanaraps> admicos: Done 2020-02-07T13:26:50 #kisslinux <dylanaraps> :) 2020-02-07T13:27:10 #kisslinux <admicos> that was fast 2020-02-07T13:27:12 #kisslinux <dylanaraps> admicos: Hm. This won't overwrite the environment 2020-02-07T13:27:57 #kisslinux <dylanaraps> If I source them then we won't be able to give arguments to the hooks. 2020-02-07T13:28:07 #kisslinux <dylanaraps> (POSIX sh doesn't allow '. script' to take arguments 2020-02-07T13:28:45 #kisslinux <admicos> hm 2020-02-07T13:29:04 #kisslinux <dylanaraps> Idea 2020-02-07T13:29:05 #kisslinux <dylanaraps> 2 secs 2020-02-07T13:32:01 #kisslinux <dylanaraps> admicos: Fixed. 2020-02-07T13:32:16 #kisslinux <dylanaraps> https://github.com/kisslinux/kiss/commit/9afe0baafd7d46b917571af6e57ff70df7b5208d 2020-02-07T13:32:30 #kisslinux <dylanaraps> The script will have $TYPE, $PKG, and $DEST set in its environment. 2020-02-07T13:32:48 #kisslinux <dylanaraps> You can use these variables in place of $1, $2 and $3 2020-02-07T13:33:03 #kisslinux <dylanaraps> $DEST is where 'make install' will plop its files 2020-02-07T13:33:12 #kisslinux <dylanaraps> Thought it'd be nifty for use in hooks as well 2020-02-07T13:34:09 #kisslinux <admicos> that should work 2020-02-07T13:34:10 #kisslinux <admicos> thanks! 2020-02-07T13:34:24 #kisslinux <dylanaraps> I like it better actually 2020-02-07T13:43:00 #kisslinux <dylanaraps> admicos: Added documentation to the man page. https://github.com/kisslinux/kiss/commit/cfa4123121cdd906b3e345cacc253f583e2106f1 2020-02-07T13:48:24 #kisslinux <dylanaraps> Pushed an update to kiss. 2020-02-07T13:48:25 #kisslinux <dylanaraps> :-) 2020-02-07T13:49:56 #kisslinux <admicos> thanks! 2020-02-07T14:03:25 #kisslinux <E5ten> I found it incredibly strange that only 2 fuser implementations exist (not counting BSD fstat) because it's POSIX but I just went to its page on opengroup and it turns out it's not POSIX just XSI so I guess that makes more sense 2020-02-07T14:06:13 #kisslinux <dylanaraps> Interesting 2020-02-07T14:06:23 #kisslinux <dylanaraps> You should swap to the best init https://github.com/kisslinux/init/blob/master/bin/init.c 2020-02-07T14:06:38 #kisslinux <dylanaraps> Then you can forget all about fuser :^) 2020-02-07T14:07:02 #kisslinux <dzove855> holy, the init have too much features, it's too big... 2020-02-07T14:07:35 #kisslinux <icyphox> dylanaraps: Not a priority, but my name still shows up as 'Anirudh' on the /packages page lol. 2020-02-07T14:08:01 #kisslinux <icyphox> Even for the new gdb package. 2020-02-07T14:08:43 #kisslinux <icyphox> Is the script checking the GitHub name? 2020-02-07T14:09:16 #kisslinux <dylanaraps> It's checking 'git log' 2020-02-07T14:09:21 #kisslinux <icyphox> I guess, I'll set my full name on GitHub anyway. 2020-02-07T14:09:35 #kisslinux <icyphox> Odd, it should show my full name then. Heh. 2020-02-07T14:19:19 #kisslinux <dylanaraps> Hm. I wonder if there's a way to detect if busybox is init. 2020-02-07T14:20:19 #kisslinux <dylanaraps> (Problem being that sinit/rich-felker-init/other-small-inits require rc.boot to loop forever and busybox init doesn't) 2020-02-07T14:20:32 #kisslinux <dylanaraps> (This would also make the sinit package simpler) 2020-02-07T14:25:58 #kisslinux <E5ten> Uses _XOPEN_SOURCE features absolutely unacceptable 2020-02-07T14:26:35 #kisslinux <dylanaraps> :( 2020-02-07T14:27:00 #kisslinux <dylanaraps> brb 2020-02-07T14:27:04 #kisslinux <dylanaraps> changing to #define _GNU_SOURCE 2020-02-07T14:27:43 #kisslinux <E5ten> You know full well that's even more unacceptable :( 2020-02-07T14:29:26 #kisslinux <dylanaraps> Adding init detection to rc.lib so we can make swapping init as seamless as possible 2020-02-07T14:30:04 #kisslinux <dylanaraps> There's no other way :>( 2020-02-07T14:32:24 #kisslinux <dylanaraps> Hm 2020-02-07T14:32:30 #kisslinux <dylanaraps> Not doing this 2020-02-07T14:32:47 #kisslinux <dylanaraps> Deprecate /etc/inittab instead(?) 2020-02-07T14:34:42 #kisslinux <E5ten> seems #define _POSIX_C_SOURCE 200809L gives access to everything the program needs? 2020-02-07T14:34:56 #kisslinux <dylanaraps> What's wrong with _XOPEN_SOURCE? 2020-02-07T14:35:19 #kisslinux <E5ten> nothing actually lol, it's just not POSIX 2020-02-07T14:35:21 #kisslinux <E5ten> don't you wanna be POSIX :>) 2020-02-07T14:35:36 #kisslinux <dylanaraps> Ah 2020-02-07T14:36:00 #kisslinux <dylanaraps> _POSIX_BLABLA works 2020-02-07T14:36:24 #kisslinux <dylanaraps> fixed 2020-02-07T14:36:28 #kisslinux <dylanaraps> happy now? :^) 2020-02-07T14:37:33 #kisslinux <E5ten> I mean I'm still not gonna use it cuz of the reason I mentioned I won't be switching off openrc but yeah :p 2020-02-07T14:38:14 #kisslinux <dylanaraps> Ok 2020-02-07T14:38:16 #kisslinux <dylanaraps> much better fix 2020-02-07T14:38:28 #kisslinux <dylanaraps> just set $1 in rc.boot when called from sinit and friends 2020-02-07T14:38:30 #kisslinux <dylanaraps> :D 2020-02-07T14:47:10 #kisslinux <aarng> icyphox, your uefi loads whatever you told it to 2020-02-07T14:47:25 #kisslinux <aarng> it's the "loader" option 2020-02-07T14:47:27 #kisslinux <icyphox> I told it to load 'vmlinuz'. 2020-02-07T14:47:33 #kisslinux <icyphox> Yes, which is why I'm baffled. 2020-02-07T14:48:05 #kisslinux <aarng> so you are sure vmlinuz actually is the new kernel and it still loads the old one? 2020-02-07T14:48:10 #kisslinux <icyphox> Yes. 2020-02-07T14:48:16 #kisslinux <icyphox> I compared the hashes. 2020-02-07T14:48:18 #kisslinux <aarng> that is strange 2020-02-07T14:48:21 #kisslinux <icyphox> Indeed. 2020-02-07T14:48:27 #kisslinux <icyphox> I'll give it another go, regardless. 2020-02-07T14:50:19 #kisslinux <E5ten> dylanaraps: is $((0x<hex number>)) to get it as an integer POSIX sh, or do I have to use printf? 2020-02-07T14:54:09 #kisslinux <c_t_b> Is it possible to install kiss on a system with a encrypted root partition? I saw kiss doesn't support initramfs, and it is my understanding initramfs is needed to decrypt root filesystem before it is mounted. 2020-02-07T15:18:36 #kisslinux <dylanaraps> c_t_b: See https://cateee.net/lkddb/web-lkddb/DM_INIT.html 2020-02-07T15:19:11 #kisslinux <dylanaraps> This is a better link: https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/dm-init.html 2020-02-07T15:20:33 #kisslinux <konimex> you can patch busybox init a bit and make its argv[0] renamed to busybox-init 2020-02-07T15:20:43 #kisslinux <konimex> at least that's what runit does 2020-02-07T15:21:04 #kisslinux <dylanaraps> konimex: That would work 2020-02-07T15:21:20 #kisslinux <dylanaraps> Second issue is detecting which getty is installed... 2020-02-07T15:21:40 #kisslinux <dylanaraps> ubase getty is incompatible with busybox getty and util-linux agetty, etc etc 2020-02-07T15:22:27 #kisslinux <dylanaraps> I may leave this up to the user. 2020-02-07T15:22:51 #kisslinux <dylanaraps> "Uncomment these lines in /etc/rc.d/blabla if swapping from busybox init" 2020-02-07T15:24:58 #kisslinux <E5ten> I just checked my system for usages and I think I don't even need hexdump? 2020-02-07T15:25:12 #kisslinux <dylanaraps> Nice 2020-02-07T15:25:24 #kisslinux <E5ten> which was what I was using lobase to provide from util-linux and the reason I was also keeping col even though I don't think I need it so I'm gonna get rid of both 2020-02-07T15:29:43 #kisslinux <E5ten> dylanaraps: is there a way to read stdin character by character in POSIX sh? 2020-02-07T15:29:54 #kisslinux <dylanaraps> E5ten: Only with dd 2020-02-07T15:30:07 #kisslinux <E5ten> (including newlines) 2020-02-07T15:30:17 #kisslinux <E5ten> ughhh 2020-02-07T15:30:19 #kisslinux <dylanaraps> dd 2020-02-07T15:30:27 #kisslinux <dylanaraps> dd works well here actually 2020-02-07T15:31:40 #kisslinux <E5ten> yeah but I was hoping to avoid the overhead of running an external command for every single character of input 2020-02-07T15:31:48 #kisslinux <E5ten> will probably be incredibly slow 2020-02-07T15:31:55 #kisslinux <E5ten> anyway what do I run? 2020-02-07T15:33:13 #kisslinux <dylanaraps> $(dd ibs=1 count=1 2>/dev/null) 2020-02-07T15:33:47 #kisslinux <dylanaraps> Might also want:stty -icanon -echo 2020-02-07T15:33:50 #kisslinux <dylanaraps> And the inverse 2020-02-07T16:09:23 #kisslinux <admicos> can i just say that i love the kiss package manager (from the perspective of creating packages) 2020-02-07T16:09:40 #kisslinux <admicos> there isn't anything special going on in the background, you just write a script and it works 2020-02-07T16:09:48 #kisslinux <admicos> especially compared to gentoo's ebuilds 2020-02-07T16:10:06 #kisslinux <admicos> (i still cannot write an ebuild if my life depended on it) 2020-02-07T16:12:26 #kisslinux <admicos> i have been using kiss (on a spare laptop) for ~4 days or so now, and i have already made more packages than i've done on gentoo 2020-02-07T16:28:53 #kisslinux <dylanaraps> admicos: Good to hear :P 2020-02-07T17:59:38 #kisslinux <E5ten> dylanaraps: why is the (:;:) thing needed for checkwinsize in bash? 2020-02-07T19:23:03 #kisslinux <dylanaraps> E5ten: It adds a tiny delay and also acts as a command causing bash to populate the variables 2020-02-07T19:23:31 #kisslinux <dylanaraps> The delay is needed so that the variables are accessible immediately afterwards