2020-01-28T00:54:49 #kisslinux at this point I think Intel should have a daily x86 exploit reveal 2020-01-28T01:02:25 #kisslinux E5ten: let that man go, man. dude's a full-on nutcase 2020-01-28T01:06:15 #kisslinux I can'tttt 2020-01-28T01:06:31 #kisslinux he's so fucking off the wall and he just jumps from irrelevant argument to irrelevant argument 2020-01-28T01:08:25 #kisslinux ugh fuck it I'm done 2020-01-28T01:08:36 #kisslinux he's just a raving lunatic 2020-01-28T07:10:46 #kisslinux https://www.phoronix.com/scan.php?page=news_item&px=AppStream-1.0-Coming 2020-01-28T07:10:57 #kisslinux > XML based 2020-01-28T07:11:01 #kisslinux Hm, I wonder 2020-01-28T07:11:40 #kisslinux https://www.freedesktop.org/software/appstream/docs/ 2020-01-28T07:11:44 #kisslinux Ah, yes 2020-01-28T08:12:52 #kisslinux https://github.com/kisslinux/kiss/commit/60ac1c094e68214f93d756446ff67ee6109ff793 2020-01-28T08:16:48 #kisslinux kiss will now store build logs of failed builds 2020-01-28T08:16:48 #kisslinux Can store build logs of all builds by setting `KISS_DEBUG=1`. 2020-01-28T08:22:21 #kisslinux KISS_DEBUG=1 kiss b zlib >/dev/null 2020-01-28T08:23:37 #kisslinux (y) 2020-01-28T08:24:23 #kisslinux This command will now hide all build output but log it to a file under ~/.cache/kiss/logs 2020-01-28T08:24:23 #kisslinux Package manager output will still be shown to the terminal(!) 2020-01-28T08:27:32 #kisslinux huu, nice 2020-01-28T08:28:04 #kisslinux your doppelganger has logged in Dylan 2020-01-28T08:28:15 #kisslinux thats a it awkward 2020-01-28T08:28:29 #kisslinux bit awkward 2020-01-28T08:28:36 #kisslinux My power went out 2020-01-28T08:28:46 #kisslinux irc didn't disconnect properly 2020-01-28T08:29:24 #kisslinux sorry not you dzove855 2020-01-28T08:30:15 #kisslinux Guest83: haha i know 2020-01-28T08:31:58 #kisslinux holy crap the meteo here is disgusting today, it took me 1h to 10km with a car... the guys just don't know how to drive.. my journey started well :( 2020-01-28T08:34:04 #kisslinux weather? 2020-01-28T08:34:51 #kisslinux yeah, it's a mix of snow, rain and hail grains 2020-01-28T08:36:41 #kisslinux @dzobe855 where are you if you don't mind my asking? 2020-01-28T08:37:12 #kisslinux i'm from luxembourg 2020-01-28T08:37:47 #kisslinux ah, you're not mrneilypops are you? 2020-01-28T08:38:40 #kisslinux no i'm not :) 2020-01-28T08:38:54 #kisslinux he does a debian/dwm distrolette thing 2020-01-28T08:39:22 #kisslinux he is from luxembourg also i believe 2020-01-28T08:40:38 #kisslinux yeahh i just saw it. Didn't know this guy, actually there're not a lot of luxembourg poeple who try to contributate in the open source community actually 2020-01-28T08:40:58 #kisslinux i know a few one, but it(s a really small country, so it's difficult to find someone 2020-01-28T08:41:45 #kisslinux yes, same here 2020-01-28T08:41:53 #kisslinux where're you from? 2020-01-28T08:42:09 #kisslinux i'm in new zealand 2020-01-28T08:42:14 #kisslinux auckland 2020-01-28T08:42:55 #kisslinux hello from the other side :D 2020-01-28T08:43:08 #kisslinux you have sound in firefox now? 2020-01-28T08:43:40 #kisslinux yeah, just got it working yesterday, i had written a bad configuration in asound 2020-01-28T08:43:46 #kisslinux oh yes indeed, from the other side XD 2020-01-28T08:43:55 #kisslinux almost 10pm here 2020-01-28T08:43:59 #kisslinux actually it was a good configuration but for the wrong card :D 2020-01-28T08:44:17 #kisslinux here it is almos 10am haha 2020-01-28T08:44:25 #kisslinux ah yes that'll do it 2020-01-28T08:48:44 #kisslinux yeah, it was great now. 2020-01-28T08:49:11 #kisslinux s/was/works/ 2020-01-28T10:11:14 #kisslinux o/ 2020-01-28T10:28:08 #kisslinux adamantium: Did you see the log feature I added? :P 2020-01-28T10:28:27 #kisslinux hey dylanaraps not yet, about to check 2020-01-28T10:28:41 #kisslinux https://github.com/kisslinux/kiss/commit/60ac1c094e68214f93d756446ff67ee6109ff793 2020-01-28T10:29:50 #kisslinux > KISS_DEBUG=1 kiss b zlib >/dev/null 2020-01-28T10:29:57 #kisslinux This is my favourite part of it 2020-01-28T10:30:04 #kisslinux Can hide all build output but log it to a file 2020-01-28T10:34:22 #kisslinux looking now 2020-01-28T10:37:20 #kisslinux amazing stuff 2020-01-28T10:37:26 #kisslinux You make it look easy 2020-01-28T10:39:28 #kisslinux heh 2020-01-28T10:39:31 #kisslinux Thanks 2020-01-28T10:39:36 #kisslinux (Power went out again) 2020-01-28T10:39:41 #kisslinux I have been working on my own thing here. PAM is totally crap but i like using ext4 encrypt for directories in my $HOME now, with fscrypt (havent packaged it for kiss, yet)-- but i've been setting up for it. Currently I autologin on the getty to bash, then run this bash_profile ... 2020-01-28T10:40:31 #kisslinux so for a sensitive directory like a web browser that remains logged in to websites, i'll stick it in $HOME/LOCKER and symlink to it 2020-01-28T10:40:56 #kisslinux working on https://github.com/a-schaefers/dot-emacs/blob/master/.bash_profile and https://github.com/a-schaefers/dot-emacs/blob/master/.bash_logout 2020-01-28T10:42:25 #kisslinux Currently i autologin on the getty, it spawns gpg agent, asks my gpg password, decrypts and reads my ~/.authinfo.gpg file which contains misc. passwords for all kinds of stuff, then parses it with awk and pipes the passwords into other agents like ssh-agent and decrypts my $HOME/locker folder, emacs also uses this file so it then (if internet is available) will auto log me in to freenode and my email 2020-01-28T10:43:09 #kisslinux pretty nuts password automation. I just got SICK of entering my password 100 times a day 2020-01-28T11:19:31 #kisslinux Nice 2020-01-28T11:36:14 #kisslinux > -> zlib Found conflict (/usr/bin/ls), adding choice 2020-01-28T11:36:21 #kisslinux Looky looky what I'm working on 2020-01-28T11:36:30 #kisslinux Ignore me adding ls to zlib as an example :^) 2020-01-28T12:13:25 #kisslinux https://github.com/kisslinux/kiss/pull/94/files 2020-01-28T12:13:28 #kisslinux "kiss: initial alternatives system #94 2020-01-28T12:13:29 #kisslinux " 2020-01-28T12:13:35 #kisslinux Should be done soonish 2020-01-28T12:13:44 #kisslinux There's a TODO in there 2020-01-28T12:24:06 #kisslinux https://termbin.com/290c 2020-01-28T12:34:59 #kisslinux What philosophically different between Guix and KissLinux, why one should prefer KissLinux over Guix? 2020-01-28T12:36:41 #kisslinux That's up to you to decide. 2020-01-28T12:38:14 #kisslinux o/ 2020-01-28T12:38:25 #kisslinux Hya 2020-01-28T12:38:28 #kisslinux o/ 2020-01-28T12:38:35 #kisslinux dylanaraps: why don't you base kisslinux on Guix (or at least use their Shepherd service manager)? 2020-01-28T12:39:04 #kisslinux My web server is on carbs now 2020-01-28T12:39:21 #kisslinux Here's a better question, why should I? 2020-01-28T12:40:40 #kisslinux Because you don't want to reinvent the wheel and you want to embrace all the sweet features from Guix. 2020-01-28T12:40:51 #kisslinux Uses only 50 mbs of ram altogether with http serving, tls tunneling, and the git server daemon 2020-01-28T12:41:40 #kisslinux merakor: Nice 2020-01-28T12:42:23 #kisslinux KISS is a lot simpler than GUIX 2020-01-28T12:43:04 #kisslinux KISS also uses less software than GUIX 2020-01-28T12:43:26 #kisslinux dylanaraps: have you tried sabotage linux? 2020-01-28T12:43:38 #kisslinux and if so what did you think? 2020-01-28T12:45:35 #kisslinux I like a lot of the choices made with Sabotage 2020-01-28T12:45:42 #kisslinux There's a lot I don't like too 2020-01-28T12:48:31 #kisslinux About GUIX; The plans and vision I have for KISS can't be done by basing on top of another distribution. 2020-01-28T12:49:00 #kisslinux dylanaraps: I see you still get new testimonial-worthy messages everyday. 2020-01-28T12:49:53 #kisslinux I quite like my wheel better. :) 2020-01-28T12:50:46 #kisslinux Why doesn't GUIX base on KISS and embrace all of its sweet features? 2020-01-28T12:50:50 #kisslinux The simple answer to "why didn't you base x on y" is "why didn't y base on z?" 2020-01-28T12:51:10 #kisslinux Heh 2020-01-28T12:51:57 #kisslinux GUIX uses GLibc regardless no? 2020-01-28T12:52:05 #kisslinux Yeah and gnu coreutils 2020-01-28T12:52:14 #kisslinux gross 2020-01-28T12:53:28 #kisslinux You also won't find a Code of Conduct in any KISS projects 2020-01-28T12:53:38 #kisslinux Or any moderation of any kind. 2020-01-28T12:53:44 #kisslinux Besides I am pretty sure ludovic has received a similar message "why didn't you base guix on this other distro, I am so angry why do you reinvent the wheel grrr" 2020-01-28T12:53:45 #kisslinux Notice how this channel has no OPs? 2020-01-28T12:53:54 #kisslinux They aren't needed. 2020-01-28T12:54:08 #kisslinux :) 2020-01-28T12:54:52 #kisslinux merakor: https://github.com/kisslinux/kiss/pull/94 2020-01-28T12:57:01 #kisslinux Looks nice, 2020-01-28T12:57:43 #kisslinux So I have both linux-headers and linux-headers-lts 2020-01-28T12:57:47 #kisslinux Yeah, almost done with the bulk of it 2020-01-28T12:58:21 #kisslinux Can this be used to satisfy the requirement of a package 2020-01-28T12:58:36 #kisslinux Say a package says linux headers 2020-01-28T12:58:39 #kisslinux And I have lts 2020-01-28T12:58:45 #kisslinux No 2020-01-28T12:59:22 #kisslinux Say you have two packages which both provide 'ls', this will automatically setup the ability to swap between which 'ls' you want to use 2020-01-28T12:59:34 #kisslinux No changes to packages needed 2020-01-28T12:59:38 #kisslinux All dynamic 2020-01-28T12:59:44 #kisslinux I see 2020-01-28T12:59:47 #kisslinux I'm new here. What's wrong with GLibc and gnu coreutils? 2020-01-28T13:00:12 #kisslinux 'kiss a coreutils /usr/bin/ls' will swap to using 'ls' from coreutils instead of busybox 2020-01-28T13:00:15 #kisslinux So, like the way void xbps works, right? 2020-01-28T13:00:23 #kisslinux Swapping back is the same 2020-01-28T13:00:29 #kisslinux 'kiss a' lists all alternatives 2020-01-28T13:01:10 #kisslinux GNU tools in general are really big and have too many features 2020-01-28T13:01:17 #kisslinux ilyaigpetrov: They're large and complex 2020-01-28T13:01:27 #kisslinux thanks 2020-01-28T13:01:27 #kisslinux hey dylanaraps I have an idea 2020-01-28T13:01:33 #kisslinux Yeah 2020-01-28T13:01:36 #kisslinux Let's rebase on guix 2020-01-28T13:02:21 #kisslinux OK 2020-01-28T13:02:36 #kisslinux yeah cool :D 2020-01-28T13:02:55 #kisslinux merakor: void xbps requires packages to specify what they provide no? 2020-01-28T13:03:19 #kisslinux > Alternatives are classified by groups, and a group contains a number of symbolic links which are applied when the group is set. 2020-01-28T13:03:24 #kisslinux (Void) 2020-01-28T13:03:49 #kisslinux Yeah, I wasn't meaning how they handled it. I meant the concept. 2020-01-28T13:03:52 #kisslinux Mine is simply: Detect conflict during install -> create alternative -> install package 2020-01-28T13:04:15 #kisslinux That is a much simpler way 2020-01-28T13:04:33 #kisslinux It will help me a lot switching to sbase 2020-01-28T13:04:36 #kisslinux It's a part of the package as well so it is removed when the package is removed automatically 2020-01-28T13:04:39 #kisslinux That's the idea 2020-01-28T13:04:52 #kisslinux Since I don't want to remove busybox utilities 2020-01-28T13:05:04 #kisslinux The output of `kiss a` (listing alts) can be fed directly back to kiss 2020-01-28T13:05:12 #kisslinux (When swapping alts) 2020-01-28T13:05:39 #kisslinux So you could do: `kiss a | grep ^sbase | while read -r line; do kiss a "$line"; done` 2020-01-28T13:05:45 #kisslinux Tada 2020-01-28T13:06:12 #kisslinux That's an awesome change 2020-01-28T13:06:56 #kisslinux It's simply an "interface" around moving two files and upating the manifests 2020-01-28T13:07:01 #kisslinux updating* 2020-01-28T13:10:47 #kisslinux ilyaigpetrov: The number one reason for not basing on anything else (minus incompatible software choices) is that KISS is meant to be entirely maintainable by a single person. 2020-01-28T13:11:21 #kisslinux Every user has the full repositories on their machine and is able to take over if they wish. 2020-01-28T13:11:49 #kisslinux There's no infrastructure to fail, lose, etc 2020-01-28T13:12:09 #kisslinux There's no need for me at all 2020-01-28T13:12:31 #kisslinux Any user is capable of maintaining the distribution (on their machine or even for others) 2020-01-28T13:12:36 #kisslinux i mean, the community repo would be a tad sloppier without you, but yeah 2020-01-28T13:12:43 #kisslinux Heh 2020-01-28T13:13:27 #kisslinux Worst case (were something to happen to me, knock on wood) all it would take is a git remote change to a new location were someone to want to take over 2020-01-28T13:13:47 #kisslinux Else, a user could just do it themselves with minimal effort 2020-01-28T13:14:34 #kisslinux adamantium: It's on my todo to write a package linter which would pick up on most of my nitpicks 2020-01-28T13:14:47 #kisslinux I have a partially working one already 2020-01-28T13:14:57 #kisslinux :P 2020-01-28T13:15:03 #kisslinux oh my gawsh 2020-01-28T13:15:07 #kisslinux just quit 2020-01-28T13:15:23 #kisslinux im going to have nightmares about your nitpicker package 2020-01-28T13:15:26 #kisslinux oh my 2020-01-28T13:15:45 #kisslinux sometimes i hate muscle memory 2020-01-28T13:15:46 #kisslinux brb 2020-01-28T13:15:50 #kisslinux lol 2020-01-28T13:15:54 #kisslinux Old nick 2020-01-28T13:23:26 #kisslinux The nouveau module is literally bigger than the rest of my kernel combined 2020-01-28T13:23:49 #kisslinux lol 2020-01-28T13:23:54 #kisslinux > -> Swapping '/usr/bin/ls' from 'busybox' to 'zlib' 2020-01-28T13:24:26 #kisslinux to zlib? 2020-01-28T13:24:34 #kisslinux or is that just a test 2020-01-28T13:24:39 #kisslinux Test 2020-01-28T13:24:42 #kisslinux ah 2020-01-28T13:24:49 #kisslinux zlib is my test package as it builds in zero time 2020-01-28T13:24:53 #kisslinux Always :P 2020-01-28T13:25:30 #kisslinux My desktop at home requires nouveau so I built my kernel with nouveau as a module. My previous total kernel size: 10.3M, Current size: 20.8M 2020-01-28T13:26:26 #kisslinux oof 2020-01-28T13:26:53 #kisslinux I was planning on building a shared kernel for all of my systems, now I decided not to. 2020-01-28T13:28:53 #kisslinux Only my laptop has high build speeds so I am building and exporting packages from this laptop to others. 2020-01-28T13:29:19 #kisslinux My desktop can't build webkit 2020-01-28T13:29:23 #kisslinux Might as well yank out the gpu and use your igpu 2020-01-28T13:29:33 #kisslinux It terminates because it can't handle the ram requirement 2020-01-28T13:30:38 #kisslinux Oh yeah, I could use my igpu instead of novideo 2020-01-28T13:31:20 #kisslinux I don't do anything gpu intensive anyways. 2020-01-28T13:32:59 #kisslinux Same here 2020-01-28T13:33:26 #kisslinux Also means less heat, noise and power consumption 2020-01-28T13:34:36 #kisslinux I guess noise is no big deal with more recent cards where the fans simply don't run at all below a certain temp 2020-01-28T13:35:05 #kisslinux Yeah my laptop is dead silent 2020-01-28T13:35:34 #kisslinux But you can literally hear my desktop computer outside of the house 2020-01-28T13:36:00 #kisslinux lol 2020-01-28T13:36:39 #kisslinux I was planning to build a fanless desktop but that stuff is expensive 2020-01-28T13:37:15 #kisslinux I have a Pi that I usually use for desktop 2020-01-28T13:38:18 #kisslinux It amazes me how it can be faster than my actual desktop yet much more efficient in terms of electricity 2020-01-28T13:38:56 #kisslinux what's a good pi to get if i wanted to build a lightweight desktop for somebody. with wifi 2020-01-28T13:39:49 #kisslinux The latest? 2020-01-28T13:40:11 #kisslinux oh is that all there is to it 2020-01-28T13:40:12 #kisslinux ok 2020-01-28T13:40:32 #kisslinux I tried using a pi as desktop but I failed to compile mpv/ffmpeg with raspberry pi suppport 2020-01-28T13:41:01 #kisslinux https://termbin.com/6gxw 2020-01-28T13:41:03 #kisslinux TADA 2020-01-28T13:41:10 #kisslinux I have a pi4 with 4G ram 2020-01-28T13:41:53 #kisslinux Although now I think that even 4GB of ram for pi is too plenty 2020-01-28T13:42:33 #kisslinux Even with a modern webbroser? 2020-01-28T13:42:40 #kisslinux Browser* 2020-01-28T13:42:55 #kisslinux Compiling is always the problem since most binary distributions don't do them natively 2020-01-28T13:43:06 #kisslinux I mean I never tried firefox 2020-01-28T13:43:09 #kisslinux Right 2020-01-28T13:43:11 #kisslinux I always use surf 2020-01-28T13:43:14 #kisslinux Which is webkit 2020-01-28T13:43:33 #kisslinux But the experience was just as the same with my laptop 2020-01-28T13:43:54 #kisslinux Nicu, dylanaraps 2020-01-28T13:44:22 #kisslinux https://github.com/kisslinux/kiss/pull/94/files 2020-01-28T13:44:24 #kisslinux Code so far 2020-01-28T13:44:58 #kisslinux That's pretty good 2020-01-28T13:45:01 #kisslinux Let me modify sbase and try it 2020-01-28T13:45:20 #kisslinux My pi is just a server running btpd and my irc client 2020-01-28T13:45:44 #kisslinux I have way too many pis 2020-01-28T13:46:15 #kisslinux merakor: How do I "expand" sbase-box? 2020-01-28T13:46:21 #kisslinux sudo make install 2020-01-28T13:46:29 #kisslinux make install* 2020-01-28T13:46:31 #kisslinux Duh 2020-01-28T13:46:33 #kisslinux Thanks 2020-01-28T13:46:37 #kisslinux Sure thingg 2020-01-28T13:46:39 #kisslinux Oh sorry 2020-01-28T13:46:47 #kisslinux make install-sbase-box 2020-01-28T13:46:53 #kisslinux or make sbase-box-install 2020-01-28T13:47:52 #kisslinux Thanks 2020-01-28T13:48:21 #kisslinux That's a lot of utils 2020-01-28T13:48:29 #kisslinux Sorry for giving three seperate answers :D 2020-01-28T13:48:46 #kisslinux All good 2020-01-28T13:49:02 #kisslinux https://termbin.com/zsdq 2020-01-28T13:49:06 #kisslinux You can still do sbase-box --list, though 2020-01-28T13:49:08 #kisslinux Detection works 2020-01-28T13:49:14 #kisslinux > sed: unmatched '|' 2020-01-28T13:49:20 #kisslinux That's an oops in the middle though 2020-01-28T13:49:57 #kisslinux https://termbin.com/33j8 2020-01-28T13:49:58 #kisslinux be careful expanding sbase 2020-01-28T13:49:59 #kisslinux :D 2020-01-28T13:50:10 #kisslinux I just did it to the system. :^) 2020-01-28T13:50:13 #kisslinux omg 2020-01-28T13:50:16 #kisslinux https://termbin.com/33j8 2020-01-28T13:50:19 #kisslinux Look at all those alts 2020-01-28T13:50:30 #kisslinux thats a good way to break kiss 2020-01-28T13:50:41 #kisslinux Yeah 2020-01-28T13:50:58 #kisslinux i hope you can make it 100% compat dylanaraps 2020-01-28T13:51:05 #kisslinux that'd be epic to be busybox free....... 2020-01-28T13:57:31 #kisslinux adamantium: That's the idea 2020-01-28T14:00:02 #kisslinux I need to somehow make sed treat the search/replace as plain text (no regex) 2020-01-28T14:00:31 #kisslinux https://termbin.com/1yg7 2020-01-28T14:00:33 #kisslinux nice 2020-01-28T14:01:00 #kisslinux Note: It's not done yet 2020-01-28T14:01:05 #kisslinux Which line is that sed= 2020-01-28T14:01:15 #kisslinux s/=/?/ 2020-01-28T14:01:21 #kisslinux Basically, /usr/bin/[ causes sed to fail 2020-01-28T14:01:24 #kisslinux Due to unmatched [] 2020-01-28T14:01:48 #kisslinux Exact line number is unknown in this case 2020-01-28T14:02:25 #kisslinux You can do a sed for regex 2020-01-28T14:02:27 #kisslinux I need to either escape the string or make sed do no regex 2020-01-28T14:03:11 #kisslinux Yeah that's an issue, it's nice that you tested sbase 2020-01-28T14:03:33 #kisslinux Damage is nothing really :P 2020-01-28T14:03:43 #kisslinux Just the leftover sbase>usr>bin>[ file 2020-01-28T14:04:46 #kisslinux I have an idea 2020-01-28T14:06:25 #kisslinux nvm 2020-01-28T14:06:50 #kisslinux what was it? 2020-01-28T14:07:37 #kisslinux sed -i '/bla/d' file 2020-01-28T14:07:48 #kisslinux Can't do: sed -i '|bla|d' file 2020-01-28T14:08:07 #kisslinux Basically, delete the line and then append the new one to the bottom 2020-01-28T14:09:00 #kisslinux actually i don't know sed can be forced to not interpret it instead of escaping the char. 2020-01-28T14:09:32 #kisslinux You're right 2020-01-28T14:09:34 #kisslinux that's why i always use perl for this kind of stuff but i hope you don't will 2020-01-28T14:09:46 #kisslinux I won't 2020-01-28T14:09:59 #kisslinux stackoverflow is full of perl, ruby, python and nodejs solutions... 2020-01-28T14:10:03 #kisslinux God 2020-01-28T14:10:04 #kisslinux good boy :D 2020-01-28T14:11:12 #kisslinux actually ou could use inside sed $(printf '%q' "$line") but not sure if it is posix 2020-01-28T14:11:38 #kisslinux Dunno if %q is posixx 2020-01-28T14:11:49 #kisslinux Nope 2020-01-28T14:11:50 #kisslinux bashism 2020-01-28T14:11:57 #kisslinux erf.. 2020-01-28T14:12:33 #kisslinux Let me see how %q works and mimic it 2020-01-28T14:12:48 #kisslinux Using sed... 2020-01-28T14:12:58 #kisslinux what is the sed expression you are trying to escape 2020-01-28T14:13:08 #kisslinux sed '|bla|d' ? 2020-01-28T14:13:27 #kisslinux No no 2020-01-28T14:13:45 #kisslinux sed -i 's|/usr/bin/[|stuff here|' file 2020-01-28T14:13:50 #kisslinux '[' is the problem 2020-01-28T14:13:58 #kisslinux "Unmatched | ............." 2020-01-28T14:14:25 #kisslinux ? 2020-01-28T14:14:31 #kisslinux oups wrong chan 2020-01-28T14:14:48 #kisslinux You could form the sed expression outside of sed 2020-01-28T14:15:01 #kisslinux Yup 2020-01-28T14:15:07 #kisslinux That's what I'm going to do 2020-01-28T14:16:46 #kisslinux Now to find all problem chars 2020-01-28T14:17:07 #kisslinux Actually... 2020-01-28T14:17:46 #kisslinux escape every char haha 2020-01-28T14:17:57 #kisslinux sed 's/([|()/\&/g' 2020-01-28T14:18:02 #kisslinux Disgusting already 2020-01-28T14:18:20 #kisslinux Just for [ and ( 2020-01-28T14:19:09 #kisslinux Ah yes I love sed expressions for escaping special characters 2020-01-28T14:19:14 #kisslinux Eyebleach 2020-01-28T14:19:35 #kisslinux It's a bit better with 'sed -E' 2020-01-28T14:19:41 #kisslinux Is '-E' posix though? 2020-01-28T14:20:02 #kisslinux I don't think so 2020-01-28T14:20:07 #kisslinux Nope 2020-01-28T14:21:08 #kisslinux Actually, only [ is an issue 2020-01-28T14:21:12 #kisslinux ( and { are fine 2020-01-28T14:21:59 #kisslinux [ is the only program that uses [ anyways 2020-01-28T14:22:23 #kisslinux sed 's/([|$|^)/\&/g' 2020-01-28T14:22:28 #kisslinux Also $ and ^ 2020-01-28T14:23:25 #kisslinux sed 's/([|$|^)/\&/g' 2020-01-28T14:25:02 #kisslinux sed 's/[]/$*.^[]/\&/g' 2020-01-28T14:25:08 #kisslinux Winner winner chicken dinner 2020-01-28T14:25:17 #kisslinux How awful 2020-01-28T14:25:51 #kisslinux This is why I hate regex 2020-01-28T14:26:42 #kisslinux Ooh it handles forward slashes too 2020-01-28T14:31:12 #kisslinux that's the cleanest sed i saw in my life 2020-01-28T14:42:21 #kisslinux [sbase] owns '/usr/bin/[' 2020-01-28T14:43:55 #kisslinux I had to escape all 3 instances of sed 2020-01-28T14:44:00 #kisslinux Both find/replac 2020-01-28T14:44:01 #kisslinux e 2020-01-28T14:44:10 #kisslinux I pushed an awful commit 2020-01-28T14:44:16 #kisslinux I need to move it to a func 2020-01-28T14:49:42 #kisslinux https://github.com/kisslinux/kiss/pull/94/files#diff-4188679c1d8a284ccc41a6b601869e05R151 2020-01-28T14:49:44 #kisslinux Much nicer 2020-01-28T14:49:58 #kisslinux I should use printf 2020-01-28T14:55:07 #kisslinux actually i think i will create biss (kiss in pure bash) just for fun 2020-01-28T14:56:28 #kisslinux I'll help a little :P 2020-01-28T14:56:41 #kisslinux Will be a lot easier than what I'm doing 2020-01-28T14:56:50 #kisslinux will start tonight haha 2020-01-28T14:56:54 #kisslinux ooh yeah 2020-01-28T15:01:55 #kisslinux Did you remove sudo and doas? 2020-01-28T15:02:11 #kisslinux From the choices branch 2020-01-28T15:02:18 #kisslinux I did 2020-01-28T15:02:36 #kisslinux Oh okay 2020-01-28T15:03:03 #kisslinux I just thought you didn't implement it on alternatives 2020-01-28T15:03:13 #kisslinux Until I removed a package 2020-01-28T15:03:13 #kisslinux Read the comments in the source in master 2020-01-28T15:04:35 #kisslinux Last thing to do is add a hook to pkg_remove(). 2020-01-28T15:04:51 #kisslinux Say you remove the package which owns the current 'ls' 2020-01-28T15:05:05 #kisslinux Should kiss automatically use an alternative if available? 2020-01-28T15:05:26 #kisslinux What happens if there are multiple alternatives?.. lol 2020-01-28T15:07:07 #kisslinux You know what, I don't think anything auto should happen in this instance. 2020-01-28T15:07:48 #kisslinux Yeah, it would make the code way more complex 2020-01-28T15:08:11 #kisslinux If the user is removing a package they should be aware of the thing they are doing 2020-01-28T15:08:38 #kisslinux yup 2020-01-28T15:09:09 #kisslinux They should either do alternatives before removing a package, or should be keeping in mind what is being removed from their system 2020-01-28T15:09:15 #kisslinux Just some finishing touches now 2020-01-28T15:09:17 #kisslinux Ya 2020-01-28T15:09:19 #kisslinux dylanaraps, I think awk and an mv -f would be cleaner in this case 2020-01-28T15:09:35 #kisslinux Aarg[m]: Will look into it 2020-01-28T15:10:15 #kisslinux Looking forward to the next release 2020-01-28T15:10:32 #kisslinux Having an alternatives system is a powerful feature 2020-01-28T15:12:03 #kisslinux Just use -vvar=val and then use normal string comparison `$0 == val { ... }' 2020-01-28T15:12:16 #kisslinux Nice 2020-01-28T15:14:05 #kisslinux ouch sbase find doesn't work well with kiss 2020-01-28T15:16:08 #kisslinux https://termbin.com/2tjh 2020-01-28T15:17:11 #kisslinux Adding this as an issue 2020-01-28T15:18:07 #kisslinux Nic 2020-01-28T15:18:08 #kisslinux e 2020-01-28T15:18:21 #kisslinux That's my fault 2020-01-28T15:20:01 #kisslinux Oh 2020-01-28T15:20:30 #kisslinux It's failing on: find path path path -mindepth 1 -maxdepth1 -name "$1" 2020-01-28T15:21:16 #kisslinux Yeah the manpage doesn't have mindepth or mandepth 2020-01-28T15:21:21 #kisslinux I think it's not POSIX 2020-01-28T15:21:44 #kisslinux But the error seems otherwise 2020-01-28T15:22:19 #kisslinux oof 2020-01-28T15:22:27 #kisslinux Wait a second 2020-01-28T15:22:33 #kisslinux I think it might be an issue 2020-01-28T15:22:44 #kisslinux 's/it/the build/' 2020-01-28T15:22:58 #kisslinux None of the tools work as intended 2020-01-28T15:23:00 #kisslinux They aren't posix 2020-01-28T15:23:07 #kisslinux -mindepth/-maxdepth 2020-01-28T15:23:40 #kisslinux Yeah but sbase is pretty problematic regardless of that right now 2020-01-28T15:23:53 #kisslinux Ah 2020-01-28T15:24:22 #kisslinux That's really weird 2020-01-28T15:24:28 #kisslinux brb 2020-01-28T15:26:02 #kisslinux Oh okay so sbase doesn't work on the tty/terminal when you first build it 2020-01-28T15:26:28 #kisslinux Whatever command you type it just gives its usage output 2020-01-28T15:26:53 #kisslinux But when you spawn a new shell session the problem does not persist 2020-01-28T15:26:59 #kisslinux Ah 2020-01-28T15:28:14 #kisslinux Works for me 2020-01-28T15:29:17 #kisslinux !> Package 'sbase' conflicts with another package 2020-01-28T15:29:17 #kisslinux !> Run 'KISS_CHOICE=1 kiss i sbase' to add conflicts 2020-01-28T15:29:17 #kisslinux !> as alternatives. 2020-01-28T15:29:21 #kisslinux Thoughts on this? 2020-01-28T15:29:32 #kisslinux The idea is to make it entirely opt-in 2020-01-28T15:29:57 #kisslinux The problem is handling the user installing say firefox AND firefox-bin 2020-01-28T15:30:06 #kisslinux Alternatives becomes hell in this case 2020-01-28T15:31:04 #kisslinux So rather than try to detect whether or not alternatives are "legit" or not 2020-01-28T15:31:10 #kisslinux It's better left to the user. 2020-01-28T15:35:30 #kisslinux What is your source for sbase Dylan? 2020-01-28T15:36:07 #kisslinux The community package 2020-01-28T15:36:26 #kisslinux > make DESTDIR="$1" PREFIX=/usr sbase-box-install 2020-01-28T15:39:23 #kisslinux sbase is really unstable 2020-01-28T15:39:49 #kisslinux ls fixed itself after spawning a new shell 2020-01-28T15:39:51 #kisslinux cp did not 2020-01-28T15:41:40 #kisslinux I have never tested those simpler utilities before 2020-01-28T15:42:06 #kisslinux Would have expected for something like grep to malfunction rather than cp and ls 2020-01-28T15:43:02 #kisslinux sbase is not even version 0.1 right now anyways 2020-01-28T15:44:40 #kisslinux It did function now 2020-01-28T15:44:55 #kisslinux Although I didn't do anything? 2020-01-28T15:45:36 #kisslinux It worked when I called it with full path /usr/local/bin/cp 2020-01-28T15:45:47 #kisslinux but not with cp 2020-01-28T15:46:08 #kisslinux dylanaraps: https://termbin.com/gaxw 2020-01-28T15:46:14 #kisslinux only slightly better 2020-01-28T15:46:20 #kisslinux Oh because I have dumb ass aliases that aren't POSIX 2020-01-28T15:46:33 #kisslinux you could also do a read while loop instead tbh 2020-01-28T16:01:13 #kisslinux aarng: The one benefit of sed is that I can use the regex_escape function for all of the sed calls 2020-01-28T16:01:36 #kisslinux while read would work here though 2020-01-28T16:03:50 #kisslinux oh, didn't know it's used in other places too 2020-01-28T16:09:18 #kisslinux The less different utlities I use the better 2020-01-28T16:09:31 #kisslinux Makes it easier to run kiss on other coreutils 2020-01-28T16:19:31 #kisslinux The righteous pursuit of removing uses of external commands in scripts :) 2020-01-28T16:19:44 #kisslinux Alternatives feature has been merged 2020-01-28T16:22:51 #kisslinux OK. Adding one last feature. 2020-01-28T16:23:15 #kisslinux If # of conflicts < threshold, do it automatically. 2020-01-28T16:24:30 #kisslinux Else it's opt-in. 2020-01-28T16:25:00 #kisslinux This will allow us to clean up the build scripts containing deletions of 1, 2 or 3 conflicting programs. 2020-01-28T16:27:35 #kisslinux (ncurses is a simple example) 2020-01-28T16:28:08 #kisslinux (Also python, which will allow you to change the default 'python' bin version) 2020-01-28T16:31:20 #kisslinux dylanaraps: can i get feedback to make this better sometime when you're bored https://github.com/a-schaefers/spm 2020-01-28T16:31:36 #kisslinux I made it a long time ago 2020-01-28T16:32:05 #kisslinux Just tried cleaning it up, the worst part is the config file has redundant stanzas and I wish I knew how to make it cleaner, with some kind of loop or something. 2020-01-28T16:32:36 #kisslinux Sure 2020-01-28T16:33:14 #kisslinux I think you could actually turn the script into something that people would use 2020-01-28T16:33:21 #kisslinux *lol* 2020-01-28T16:33:25 #kisslinux https://github.com/kisslinux/kiss/releases/tag/untagged-7d1b528d2829a3d9dc8a 2020-01-28T16:33:34 #kisslinux Here's the draft for the next kiss release 2020-01-28T16:33:43 #kisslinux I think it's ready for 1.0 2020-01-28T16:34:48 #kisslinux Not until we get reproduceable builds with lock files and add an automated build system 2020-01-28T16:35:14 #kisslinux ;) 2020-01-28T16:40:06 #kisslinux https://termbin.com/lkbk 2020-01-28T16:40:11 #kisslinux Here's some fixes 2020-01-28T16:40:16 #kisslinux I probably broke something though 2020-01-28T16:40:44 #kisslinux Yeah, I didn't update the thresholds list in the loop 2020-01-28T16:43:46 #kisslinux HEHE 2020-01-28T16:45:28 #kisslinux dylanaraps: rm -rf "$conf_dir/state"/* > /dev/null 2>&1 #shh your comment about not having -rr 2020-01-28T16:45:38 #kisslinux it is globbing /* the directory 2020-01-28T16:45:43 #kisslinux lol 2020-01-28T16:45:43 #kisslinux just need to kill the files 2020-01-28T16:45:46 #kisslinux Ah 2020-01-28T16:45:51 #kisslinux in that one spot 2020-01-28T16:45:58 #kisslinux can't you use read instead of cat, adamantium? 2020-01-28T16:46:31 #kisslinux probably aarng IDK i'm still a script noob 2020-01-28T16:47:52 #kisslinux https://termbin.com/njzcm 2020-01-28T16:47:53 #kisslinux :D 2020-01-28T16:51:06 #kisslinux ya idk how to use the set thing you did dylanaraps 2020-01-28T16:56:39 #kisslinux adamantium, you generally don't need cat unless you really want to read multiple lines in one go 2020-01-28T16:57:06 #kisslinux How do you use read to with my example, then 2020-01-28T16:57:10 #kisslinux and especially stuff in /sys is just a single word/line 2020-01-28T16:57:14 #kisslinux cool 2020-01-28T16:57:17 #kisslinux just `read file` 2020-01-28T16:57:22 #kisslinux i tried that 2020-01-28T16:57:30 #kisslinux eeh 2020-01-28T16:57:33 #kisslinux read var file 2020-01-28T16:57:41 #kisslinux bash: read: `/sys/class/power_supply/BAT0/status': not a valid identifier 2020-01-28T16:58:03 #kisslinux but you have to be careful with backslash escapes, which read interprets unless you use -r 2020-01-28T16:58:54 #kisslinux and one more caveat, it strips leading and trailing field separator chars from the end and beginning of the string 2020-01-28T17:00:02 #kisslinux read var sry 2020-01-28T17:00:30 #kisslinux https://github.com/idunham/tinyxserver 2020-01-28T17:00:31 #kisslinux Woah 2020-01-28T17:02:16 #kisslinux Also 2020-01-28T17:02:17 #kisslinux http://www.microwindows.org/ 2020-01-28T17:04:16 #kisslinux thanks aarng 2020-01-28T17:10:17 #kisslinux dylanaraps: https://termbin.com/98id 2020-01-28T17:10:53 #kisslinux Can you tell me how to implement your set -- 99 80 40 20 10 5 section with https://termbin.com/98id 2020-01-28T17:11:15 #kisslinux sorry, pasted twice, my question is how to implement your set -- with the threshholds section. 2020-01-28T17:11:25 #kisslinux That populates '$@" with that list 2020-01-28T17:11:29 #kisslinux "$@"* 2020-01-28T17:11:45 #kisslinux k 2020-01-28T17:11:50 #kisslinux So you have a list instead of a "fake" list (a string) 2020-01-28T17:11:55 #kisslinux right 2020-01-28T17:12:35 #kisslinux not both "$@"* .... i have to choose $@ or $* correct? 2020-01-28T17:14:26 #kisslinux That was me correcting myself 2020-01-28T17:14:31 #kisslinux "$@" or "$*" yes 2020-01-28T17:14:43 #kisslinux "$*" is no different to how you had it though 2020-01-28T17:16:07 #kisslinux k got this 2020-01-28T17:16:12 #kisslinux time to test 2020-01-28T17:16:37 #kisslinux it's surprising low resources btw considering it has to poll every X seconds 2020-01-28T17:16:59 #kisslinux i remember last year i was thinking hard about how to do as few things repeatedly as possible in this script 2020-01-28T17:18:34 #kisslinux okay dylanaraps it works with all your changes. COOL 2020-01-28T17:18:40 #kisslinux going to push it 2020-01-28T17:20:35 #kisslinux :D 2020-01-28T17:21:06 #kisslinux dylanaraps: is there no way to make the config better 2020-01-28T17:21:13 #kisslinux it feels redundant 2020-01-28T17:21:47 #kisslinux lmao i also have a solo camelCase var. yolo 2020-01-28T17:27:38 #kisslinux I'll take a look in a bit 2020-01-28T17:32:11 #kisslinux lol you don't need to do echo "$*" | tr ' ' 'n' | while read -r state; do, they're already your positional parameters just loop over them with 'for state in "$@"; do' or 'for state do' 2020-01-28T17:33:15 #kisslinux adamantium: and instead of checking if $batt_percent is equal to $state and separately if it's less than $state you can use -le to check if it's less than or equal to 2020-01-28T17:35:51 #kisslinux ok cool. im about to sleep, too tired right now. im going to literally copy and paste your suggestion to my notes. thanks E5ten 2020-01-28T17:36:27 #kisslinux you shouldn't need to use >/dev/null 2>&1 with rm -f, since the config dir is yours there should never be a dir in it, and rm -f doesn't print an error message if a file doesn't exist 2020-01-28T17:36:58 #kisslinux ya dev nulls suck 2020-01-28T17:38:11 #kisslinux also, imo don't bother checking if the script is already running and just rely on the user knowing not to run it twice? but if you do need to check don't use pidof cuz it's not POSIX 2020-01-28T17:40:05 #kisslinux ya its overenginnered shit 2020-01-28T17:40:28 #kisslinux thanks dude 2020-01-28T17:40:34 #kisslinux actually I think what'd be best is on startup make the script create a file in the config dir like "running" and remove it on exit, and then have it check for that file before doing anything and die with the "SPM is already running" thing if it exists 2020-01-28T17:41:05 #kisslinux that is a neat approach 2020-01-28T17:42:27 #kisslinux hey E5ten i wonder if you might send me a termbin fixing the "$*" | tr ' ' 'n' | while read -r mess I've made to show me what you mean. ::D 2020-01-28T17:43:19 #kisslinux That line can just be replaced with for state do 2020-01-28T17:43:32 #kisslinux Which is equivalent to for state in "$@"; do 2020-01-28T17:43:49 #kisslinux Which loops over the positional parameters 2020-01-28T17:46:02 #kisslinux E5ten: https://termbin.com/1bkm 2020-01-28T17:46:08 #kisslinux i commented the old line, so like such? 2020-01-28T17:46:19 #kisslinux It sure looks a lot more sane to me 2020-01-28T17:46:43 #kisslinux I found that scrap a while back trying to switch from using bash arrays to posix, someone said to do it the other way, but i like hte looks of your way better 2020-01-28T17:47:21 #kisslinux It's not just the look that's better lol, that's the right way to loop over the positional parameters 2020-01-28T17:47:41 #kisslinux In this case they would never contain a space, but if they did your method would split one parameter that has a space in it into 2 2020-01-28T17:48:59 #kisslinux Think of $@ as a bash array 2020-01-28T17:49:10 #kisslinux It's just that in POSIX sh you only get one array 2020-01-28T17:49:24 #kisslinux used -le now. good 2020-01-28T17:50:12 #kisslinux Thanks so much. Couldn't figure out posix array for my life til now 2020-01-28T17:52:04 #kisslinux ya it's way better 2020-01-28T17:53:54 #kisslinux btw: https://termbin.com/p7lg 2020-01-28T17:53:56 #kisslinux opinions? 2020-01-28T17:54:39 #kisslinux 2 doesn't even need the backslash 2020-01-28T17:54:42 #kisslinux adamantium: Touch calls can be replaced with : >file (the : isn't necessary but without it you'll get a shellcheck warning) 2020-01-28T18:01:27 #kisslinux I think 4 is not hte same in all cases 2020-01-28T18:02:36 #kisslinux idk 2020-01-28T18:02:46 #kisslinux thanks E5ten good thinking on that again 2020-01-28T18:03:14 #kisslinux It's like a lost art, good shell scripts 2020-01-28T18:05:06 #kisslinux I tried all cases, should be good 2020-01-28T18:08:19 #kisslinux k 2020-01-28T18:17:44 #kisslinux adamantium: You should probably switch sbase community package to the official git repository. 2020-01-28T18:17:57 #kisslinux Now that we have git functionality 2020-01-28T18:18:07 #kisslinux They have also pulled michael's patches to sbase 2020-01-28T18:18:46 #kisslinux They still haven't pulled michael's patches to the suckless repository for ubase though 2020-01-28T18:19:14 #kisslinux It still doesn't build without Michael's patches 2020-01-28T18:19:20 #kisslinux Ok merakor. 2020-01-28T18:19:28 #kisslinux Thanks 2020-01-28T18:19:37 #kisslinux Sure thing 2020-01-28T18:19:54 #kisslinux Will try to do it tonight 2020-01-28T18:24:59 #kisslinux dylanaraps, libva-utils does not depend on libva and fails to build 2020-01-28T18:26:42 #kisslinux aarng: Will fix 2020-01-28T18:27:14 #kisslinux Fixed 2020-01-28T18:27:20 #kisslinux dylanaraps: you said something like `kiss a | grep ^sbase | while read -r line; do kiss a "$line"; done` 2020-01-28T18:27:30 #kisslinux Here is an issue though 2020-01-28T18:27:36 #kisslinux Now that sudo is gone 2020-01-28T18:27:43 #kisslinux I enter like a billion passwords 2020-01-28T18:27:50 #kisslinux cheers 2020-01-28T18:28:01 #kisslinux merakor: I know 2020-01-28T18:28:17 #kisslinux Are you going to keep it like that? 2020-01-28T18:29:10 #kisslinux I'll try to do `yes 'mypassword' | kiss a $line` for the memes 2020-01-28T18:29:19 #kisslinux merakor: I'll fix it 2020-01-28T18:30:20 #kisslinux Okay. 2020-01-28T18:30:32 #kisslinux Maybe take input over stdin one per line 2020-01-28T18:30:42 #kisslinux So you can pipe into 'kiss a' 2020-01-28T18:31:01 #kisslinux kiss a | grep ^sbase | kiss a 2020-01-28T18:31:02 #kisslinux lol 2020-01-28T18:32:29 #kisslinux That would make sense, actually. 2020-01-28T18:33:01 #kisslinux It would have to be 'kiss a -' to read from stdin 2020-01-28T18:34:25 #kisslinux Yeah 2020-01-28T18:34:38 #kisslinux I am trying to solve the `find` issue for sbase 2020-01-28T18:34:54 #kisslinux It sucks that mindepth is not POSIX 2020-01-28T18:35:41 #kisslinux most non-POSIX stuff GNU enforces are actually useless 2020-01-28T18:35:41 #kisslinux find is kinda unusable without those 2020-01-28T18:36:02 #kisslinux Yeah 2020-01-28T18:36:30 #kisslinux merakor: Pushed the stdin feature 2020-01-28T18:38:20 #kisslinux > command not found: mv 2020-01-28T18:38:25 #kisslinux now that's nice 2020-01-28T18:38:55 #kisslinux lol 2020-01-28T18:39:25 #kisslinux Let me fix that 2020-01-28T18:40:40 #kisslinux I manually did a mv with busybox 2020-01-28T18:44:19 #kisslinux Fixed 2020-01-28T18:44:46 #kisslinux Swapped first 'mv' to 'cp' to ensure the swap never leaves the package manager without a utility it needs during the swap. 2020-01-28T18:46:17 #kisslinux aiight this thing is DONE 2020-01-28T18:46:27 #kisslinux creates its' own config now and stops bitching 2020-01-28T18:46:35 #kisslinux https://github.com/a-schaefers/spm 2020-01-28T18:50:28 #kisslinux dylanaraps: sbase sed doesn't work with kiss either :D 2020-01-28T18:54:43 #kisslinux i think the find had issues too iirc 2020-01-28T18:54:52 #kisslinux Yeah 2020-01-28T18:55:02 #kisslinux I am reverting to busybox :( 2020-01-28T18:55:09 #kisslinux merakor: if you run into bugs with sbase, please report them (preferably with a patch), so they can get fixed 2020-01-28T18:55:23 #kisslinux Oh hey michael 2020-01-28T18:55:45 #kisslinux Yeah the issue is the compatability rather than bugs 2020-01-28T18:58:42 #kisslinux I only had issues with ubase, but your patches fix them. 2020-01-28T18:59:56 #kisslinux no -i in suckless sed, merakor? 2020-01-28T18:59:57 #kisslinux dylanaraps: regarding sed -E, it's accepted for posix-next (http://austingroupbugs.net/view.php?id=528), so i wouldn't refrain from using it 2020-01-28T19:00:45 #kisslinux aarng: Nope 2020-01-28T19:01:30 #kisslinux sed -i was proposed and rejected for inclusion in posix because implementations have conflicting behavior that can't be standardized: http://austingroupbugs.net/view.php?id=530 2020-01-28T19:01:42 #kisslinux sed -i is not POSIX, but not having it is not an issue 2020-01-28T19:01:57 #kisslinux you could manually do it via shell 2020-01-28T19:02:03 #kisslinux yeah, it's easy enough to just redirect to a temporary file and then rename 2020-01-28T19:02:10 #kisslinux yeah, just write a wrapper 2020-01-28T19:02:25 #kisslinux or use ed :p 2020-01-28T19:02:32 #kisslinux sed expr file > file.tmp && mv file.tmp file 2020-01-28T19:04:32 #kisslinux merakor: yeah, ubase is currently unmaintained. i need to reach out to the current maintainer to see if he's okay with me maintaining it 2020-01-28T19:04:44 #kisslinux OK. 2020-01-28T19:04:54 #kisslinux Will write a sed wrapper function now 2020-01-28T19:05:24 #kisslinux Yeah, I have mailed Dimitris the other day and didn't have any response 2020-01-28T19:05:26 #kisslinux It's only 'sed -i' which is the issue right? 2020-01-28T19:05:55 #kisslinux I was going to ask him to add a source tarball for sinit 1.1 2020-01-28T19:06:23 #kisslinux By the other day, I mean it was weeks ago 2020-01-28T19:06:32 #kisslinux dylanaraps: yup 2020-01-28T19:08:57 #kisslinux i think an 'inplace' function might be kind of useful, for other tools as well. inplace() { file=$1; shift; "$@" < "$1" > "$1.tmp" && mv "$1.tmp" "$1"; } 2020-01-28T19:10:09 #kisslinux could use it with awk, sort, cut, grep, etc 2020-01-28T19:10:44 #kisslinux Neat 2020-01-28T19:11:11 #kisslinux There's actually only one other place that could be used 2020-01-28T19:11:54 #kisslinux There's 3 'sed -i' instances and one separate instance of 'sort' which uses a temporary file 2020-01-28T19:19:03 #kisslinux I'd still be pro ed for the things you do in kiss but busybox ed doesn't even have -s 2020-01-28T19:20:33 #kisslinux I'm conflicted between which sed -i choice is worse cuz on one hand optional args are stupid but on the other hand who ever wants to use the backup feature of sed -i I wish it didn't have an argument at all and I can do that with the optional arg -i but not with BSD's required arg 2020-01-28T19:22:14 #kisslinux It's so handy... 2020-01-28T19:22:36 #kisslinux the backup feature or -i in general? 2020-01-28T19:22:41 #kisslinux -i in general 2020-01-28T19:22:46 #kisslinux agreed 2020-01-28T19:22:50 #kisslinux Never used the backup feature 2020-01-28T19:23:19 #kisslinux Two of these 'sed -i' calls must run as root so I have to workaround this issue now 2020-01-28T19:23:24 #kisslinux I do not understand why the backup feature exists if you want a backup just copy the file first 2020-01-28T19:23:27 #kisslinux I'll push my commit so you can see 2020-01-28T19:23:38 #kisslinux dylanaraps: to master? 2020-01-28T19:23:39 #kisslinux if the people who created -i just did that it could be entirely argument free and that would be so much nicer 2020-01-28T19:23:57 #kisslinux merakor: yes 2020-01-28T19:24:13 #kisslinux oops 2020-01-28T19:24:16 #kisslinux Hang on 2020-01-28T19:24:20 #kisslinux > sed: unmatched '/' 2020-01-28T19:24:56 #kisslinux Hang on 2020-01-28T19:24:58 #kisslinux Still borked 2020-01-28T19:26:04 #kisslinux mforney: I'm gonna make a PR for the samurai one-line thing, so that if you decide you're willing to accept adding any more ifdefs but have problems with the code you can comment on those 2020-01-28T19:26:46 #kisslinux merakor: Wait 5 pls 2020-01-28T19:27:07 #kisslinux Sure, it's okay 2020-01-28T19:28:14 #kisslinux E5ten: okay, thanks 2020-01-28T19:32:42 #kisslinux dylanaraps: https://termbin.com/4221 2020-01-28T19:34:23 #kisslinux aarng: The issue is that this may need to run as root through 'su' 2020-01-28T19:34:42 #kisslinux Actually, that'd be fine 2020-01-28T19:35:03 #kisslinux Neat 2020-01-28T19:49:36 #kisslinux Hm, busybox ed seems to fail with / in the string 2020-01-28T19:50:29 #kisslinux > : ed: unknown option for substitute 2020-01-28T19:50:40 #kisslinux This appears and it fails when the string contains escape slashes 2020-01-28T19:53:22 #kisslinux It works when I replace the separator 2020-01-28T19:55:15 #kisslinux > Within the RE, the RE delimiter itself can be used as a literal character if it is preceded by a backslash. 2020-01-28T19:55:19 #kisslinux From the POSIX spec 2020-01-28T19:55:24 #kisslinux busybox bug? :( 2020-01-28T19:58:09 #kisslinux Ah, busybox also fails with all escaped forward slashes 2020-01-28T20:04:04 #kisslinux rip 2020-01-28T20:04:29 #kisslinux seems it didn't get any love at all 2020-01-28T20:06:31 #kisslinux I also need to match the whole line 2020-01-28T20:09:49 #kisslinux oh I see, it doesn't even have ^ and $ 2020-01-28T20:10:06 #kisslinux yeah, forget it then, busybox ed sucks hard unfortunately 2020-01-28T20:10:40 #kisslinux for sinit I think at this point since kiss already supports commit hash we should point there instead of asking for a tarball version 2020-01-28T20:11:28 #kisslinux adamantium: 2020-01-28T20:13:33 #kisslinux k 2020-01-28T20:19:58 #kisslinux i'm unconvinced of the value of the single commit for sinit 1.1 vs 1.0. see https://lists.suckless.org/hackers/1803/15983.html. as far as i can tell from the source (and this matches results from my testing), init will get SIGCHLD, even if the process died and the original parent ignored SIGCHLD: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/kernel/exit.c#n586 2020-01-28T20:23:00 #kisslinux Noted 2020-01-28T20:23:08 #kisslinux Will ask adamantium to make the change 2020-01-28T20:23:54 #kisslinux revert to 1.0 ? 2020-01-28T20:24:06 #kisslinux Yup 2020-01-28T20:24:09 #kisslinux hah 2020-01-28T20:24:17 #kisslinux making my job easy 2020-01-28T20:24:20 #kisslinux it does no harm, but as far as i can tell, has no benefit 2020-01-28T20:24:38 #kisslinux (at least on linux) 2020-01-28T20:25:07 #kisslinux Replacing 'sed -i' is a little tricky here 2020-01-28T20:26:59 #kisslinux 1) I need to be able to match the whole line (busybox ed or even POSIX ed can't(?)) 2020-01-28T20:27:30 #kisslinux 2) The temporary file business needs to work over say 'su'/'sudo' (tee works here probably) 2020-01-28T20:27:50 #kisslinux 3) It needs to accept escaped forward slashes (busybox ed fails here) 2020-01-28T20:29:28 #kisslinux how big can the file be expected to be/would it be reasonable to just save it in a variable, printf '%sn' "$var" | sed 'exp' > file 2020-01-28T20:30:24 #kisslinux The file is a package manifest 2020-01-28T20:30:43 #kisslinux Can be anywhere from 20~ lines to 5000+ lines 2020-01-28T20:30:55 #kisslinux nevermind then lol 2020-01-28T20:31:26 #kisslinux Can't you just do something like `sed 'exp' < manifest > manifest.bak && mv manifest.bak manifest` 2020-01-28T20:31:53 #kisslinux merakor: Nope 2020-01-28T20:32:02 #kisslinux Can't use shell redirection as the shell runs as a normal user 2020-01-28T20:32:19 #kisslinux I see 2020-01-28T20:32:57 #kisslinux can't you use tee, then? 2020-01-28T20:33:28 #kisslinux Here's the idea I have now: https://termbin.com/x75e 2020-01-28T20:34:00 #kisslinux This isn't 100% what it will look like once in kiss 2020-01-28T20:34:03 #kisslinux Just a general idea 2020-01-28T20:34:11 #kisslinux busybox sed seems to fail here though 2020-01-28T20:34:19 #kisslinux Actually 2020-01-28T20:34:19 #kisslinux Oh I see 2020-01-28T20:34:30 #kisslinux I think our 'su' wrapper fails as stdin is blocke 2020-01-28T20:34:35 #kisslinux blocked* 2020-01-28T20:34:37 #kisslinux Great 2020-01-28T20:34:56 #kisslinux Ah 2020-01-28T20:35:09 #kisslinux It fails as stdin is used for password input 2020-01-28T20:35:21 #kisslinux 'tee' can't be used then 2020-01-28T20:35:47 #kisslinux This is a 10/10 situation 2020-01-28T20:36:07 #kisslinux why does this need to run with elevated privileges? 2020-01-28T20:36:25 #kisslinux This is for the alternatives feature which touches the filesystem 2020-01-28T20:36:26 #kisslinux It edits the manifest files in /var/db/kiss/installed 2020-01-28T20:36:45 #kisslinux 'sed' is used here to rewrite a line in a package's manifest 2020-01-28T20:39:13 #kisslinux I wonder if I could use 'ed' to find and delete the whole line and then insert the new one 2020-01-28T20:42:28 #kisslinux does `dosu 'sed expr manifest > manifest.bak && mv manifest.bak manifest'` work? since you are using `su -c "$*"` anyway 2020-01-28T20:44:00 #kisslinux mforney: I'm trying to do it in a function but the issue is that the function may also run as a normal user. 2020-01-28T20:44:10 #kisslinux I could use that in the two places it needs root though. 2020-01-28T20:45:54 #kisslinux > doas: Operation not permitted 2020-01-28T20:46:47 #kisslinux Oh sorry this is doas not dosu 2020-01-28T20:46:50 #kisslinux Whoops 2020-01-28T20:53:39 #kisslinux i quite like runtool from perp (http://b0llix.net/perp/site.cgi?page=runtool.8) for similar redirection issues. i use it to suspend my system: `doas runtool -F '1>/sys/power/state' echo mem`. but obviously not appropriate here 2020-01-28T21:05:08 #kisslinux Neat 2020-01-28T21:08:51 #kisslinux Done... 2020-01-28T21:09:27 #kisslinux https://github.com/kisslinux/kiss/commit/ea9dc1278ae3916ad1efe72c6afb873060879e09 2020-01-28T21:09:30 #kisslinux Tada 2020-01-28T21:09:49 #kisslinux I wanted to put this in a function but as it can run as both a normal user and through 'su'... 2020-01-28T21:21:25 #kisslinux Ooh 2020-01-28T21:21:31 #kisslinux Found how I can use posix find 2020-01-28T21:30:58 #kisslinux > find "$@" ( ! -name . -prune ) -name "$query" 2020-01-28T21:31:05 #kisslinux Basically -mindepth 1 and -maxdepth 1 2020-01-28T21:31:11 #kisslinux With one caveat 2020-01-28T21:31:21 #kisslinux Each search path must end in /. 2020-01-28T21:39:20 #kisslinux looking good 2020-01-28T21:39:34 #kisslinux also: https://git.busybox.net/busybox/tree/editors/ed.c#n128 2020-01-28T21:39:49 #kisslinux no regex support, lol 2020-01-28T21:40:16 #kisslinux heh 2020-01-28T21:41:56 #kisslinux OK. kiss now works with sbase find 2020-01-28T21:42:22 #kisslinux sbase sed time 2020-01-28T21:42:41 #kisslinux -> Swapping '/usr/bin/sed' from 'busybox' to 'sbase' 2020-01-28T21:42:45 #kisslinux This is so cool... 2020-01-28T21:45:54 #kisslinux sed is gud 2020-01-28T21:57:49 #kisslinux OK 2020-01-28T21:57:55 #kisslinux Full sbase compatibility 2020-01-28T22:00:43 #kisslinux ALSO: kiss a | grep ^sbase | kiss a - 2020-01-28T22:00:48 #kisslinux This is awesome 2020-01-28T22:07:07 #kisslinux very nice. if you run into any problems with building packages against sbase, don't hesitate to reach out to me. it'd be great to have more people using sbase on their system to try to find and fix any incompatibilities 2020-01-28T22:07:34 #kisslinux Will do 2020-01-28T22:07:44 #kisslinux recently i've been messing around with pkgsrc, which has been a good testing ground 2020-01-28T22:08:11 #kisslinux Next up I'll be testing our bootup/shutdown scripts 2020-01-28T22:16:11 #kisslinux OK. Init scripts are gud 2020-01-28T22:23:29 #kisslinux buffet: im here now 2020-01-28T22:23:37 #kisslinux hello 2020-01-28T22:23:45 #kisslinux Wont be for long though 2020-01-28T22:25:17 #kisslinux have to go 2020-01-28T22:25:25 #kisslinux o/ 2020-01-28T22:49:13 #kisslinux dylanaraps: are you there? 2020-01-28T22:50:11 #kisslinux Yeah 2020-01-28T22:51:49 #kisslinux actually i'm now working on biss, but there is something that i don't understand. It's line 90-92 2020-01-28T22:52:22 #kisslinux Of master? 2020-01-28T22:52:40 #kisslinux you say'd in the comment The below commands read from '/dev/tty' to ensure they work when run from a subshell. 2020-01-28T22:52:49 #kisslinux what do you mean by this comment? 2020-01-28T22:52:52 #kisslinux yeah master 2020-01-28T22:53:40 #kisslinux If that function is run from a ()/$() block the original tty won't be connected anymore. 2020-01-28T22:54:03 #kisslinux Try running : $(vim) 2020-01-28T22:54:06 #kisslinux As an example 2020-01-28T22:54:10 #kisslinux ': $(vim)' 2020-01-28T22:54:34 #kisslinux okey i see 2020-01-28T22:55:59 #kisslinux mforney: I don't really expect that querying terminal size on each print would tangibly decrease efficiency and switching to it from the SIGWINCH checking would drop 16 lines from the PR in exchange of 1, including removing one of the ifdefs the PR adds, I think that's a lot better and worth the tradeoff 2020-01-28T23:14:57 #kisslinux sounds fine to me