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