acheam changed the topic of #kisslinux to: Unnofficial KISS Linux community channel | https://kisscommunity.org | post logs or else | song of the day https://vid.puffyan.us/1IDZb7xrjPU
mahmutov has quit [Ping timeout: 240 seconds]
<deathmist> guess I did something wrong by choosing a user over 8 chars in length.. the ls output truncates the rest and am_owner in /usr/bin/kiss depends on this and so I can't e.g. "kiss u" as my regular user. not sure if this is just a glasnost issue of also present on base KISS
<deathmist> I feel like this should be fixed to use stat directly instead of ls which appears to not truncate the username
<deathmist> so what would be the preferred way to patch this: add the patch in https://github.com/kiss-community/repo/tree/master/core/kiss or PR to https://github.com/kiss-community/kiss?
mahmutov has joined #kisslinux
<jedavies> deathmist: have seen this before, think it's a bug in kiss. Will check logs
an3223 has quit [Ping timeout: 240 seconds]
an3223 has joined #kisslinux
humaid_ has joined #kisslinux
<humaid_> Hi
<humaid_> I'm trying mount an SD card, on my laptops internal card reader. It's mounted, but I can't create files in it.
<humaid_> mount says: Read-only filesystem.
<humaid_> "mount -t vfat -o remount,rw /dev/sdb1 /mnt/usb" didn't change anything. SD drivers are enabled(I think) in kernel.
<testuser[m]> Hi
mahmutov has quit [Ping timeout: 246 seconds]
<humaid_> Any thoughts?
humaid_ has quit [Ping timeout: 240 seconds]
an3223 has quit [Remote host closed the connection]
an3223 has joined #kisslinux
ejjdhfjsu has quit [Remote host closed the connection]
<deathmist> humaid_: anything maybe in dmesg? SD cards also can have a read-only lock so check that isn't on
<deathmist> also afaik you're giving mount an extra arg, try just "mount -t vfat -o remount,rw /mnt/usb"
<deathmist> jedavies: oh hey you are here, awesome work on Glasnost. would you like another maintainer for the project? I'd be down to help with various things currently and have documented all my issues with the setup process and such
<jedavies> deathmist: yeah contributions are welcome. You can raise issues or PRs on GitHub. Right now I'm testing the upgrade to llvm 14.0.1, getting new tarballs ready etc.
<jedavies> Including for the hot new architecture everyone will be using this summer: aarch64_be xD
<deathmist> jedavies: I have one concern about https://github.com/glasnostlinux/kiss which is the way it's updated right now, you should prefer rebases over merging code by hand if at all possible since right now it's almost 500 commits behind upstream while technically being up-to-date with the 5.5.28 upstream tag afaik
soliwilos has quit [Ping timeout: 240 seconds]
soliwilos has joined #kisslinux
<jedavies> There's lots of changes since 5.5.28 - not sure if these have been tested though? I think regular kiss is still on 5.5.28: https://github.com/kiss-community/repo/blob/master/core/kiss/version
<jedavies> Dylan did not release a new version for a while
illiliti has joined #kisslinux
<jedavies> Anyone here running the latest version of the package manager, or are people using 5.5.28? Any known issues with the latest version?
<deathmist> jedavies: I mean rebasing to the 5.5.28 tag which is 30 or so commits behind master, not literally using the latest hash
<jedavies> OK will check later today. btw what arch are you running on? Are you cross building?
<deathmist> just x86_64 for now without cross building anything
<deathmist> may take a look at running it on armv7 and aarch64 later both cross-compiled from x86_64
<illiliti> deathmist: re username truncation: https://github.com/kisslinux/kiss/pull/289
<illiliti> tldr stat isn't portable, hence can't be used.
barpthewire has quit [Remote host closed the connection]
<deathmist> damn... that's the only thing I thought of instantly. guess we'd have to lookup the full username based on UID
<deathmist> guess I could just get a shorter username, but really, 8 characters in 2022?
<testuser[m]> lol i just realized my username is exactly 8 ch
<illiliti> me too xd
<deathmist> the Linux kernel (and not to mention "useradd") can handle usernames up to 32 characters, I don't think it makes sense going back to 5 decades in logic in this particular case, KISS is a Linux distribution after all right?
<deathmist> are there modern coreutils or something that breaks with usernames over 8 chars?
<deathmist> busybox purposefully limits the output to 8 chars which happens to break the kiss package manager in this case https://github.com/mirror/busybox/blob/1_35_0/coreutils/ls.c#L519-L530
<deathmist> sadly the more limitations I learn about POSIX the more I'm starting to hate it
<testuser[m]> u can switch to gnu coreutils
<testuser[m]> for the ls command
barpthewire has joined #kisslinux
<deathmist> I know there are workarounds but I'm starting to think maybe KISS isn't the right choice for me after all, "going back to 1970's" is nice in some areas but I'm certainly not a fan of still forcing the limitations of yesteryears in a modern Linux environment
<deathmist> especially if the kernel isn't exchangeable for say BSD and everything is built around a Linux kernel
<illiliti> kiss(package manager) must be portable
barpthewire has quit [Remote host closed the connection]
<testuser[m]> kiss is nothing but a package manager deathmist
<testuser[m]> u can use any system packages with it
<testuser[m]> no defaults
<deathmist> at this point why am I not using LFS
<testuser[m]> cuz no pkg manager
<testuser[m]> btw u can just apply the patch to ur kiss locally
<deathmist> I understand, but if my 9 character username breaks a spec from 1980's while in a modern Linux env it's perfectly valid and supported even by the coreutils user creation I'm not a fan of this ideology, this just should be something I shouldn't have to be dealing with and keep applying a local patch for
<deathmist> even blocking creation of >8 char usernames would be better since then it at least respects the spec, right?
<testuser[m]> i really dont see what the problem is here
<testuser[m]> if u dont agree with the posix spec for any utility
<testuser[m]> just swap it
<testuser[m]> dylan can go a bit overboard with portability
<illiliti> to be clear, kiss package manager targets posix-like systems, not only linux. it can be used on any system with posix utilities right now. locking everything to linux defeats the point of portability
<illiliti> there's tradeoffs of course
<testuser[m]> anyway its a busybox issue really, not kiss
<testuser[m]> even alpine uses busybox
<illiliti> i wouldn't say it's a busybox issue. busybox does exactly what is allowed by posix
<illiliti> and we should handle that
<testuser[m]> ye
<testuser[m]> thats fair
<testuser[m]> deathmist: https://termbin.com/bh74
barpthewire has joined #kisslinux
barpthewire has quit [Read error: Connection reset by peer]
barpthewire has joined #kisslinux
soliwilos_ has joined #kisslinux
soliwilos has quit [Ping timeout: 240 seconds]
<deathmist> so $LOGNAME contains the full username, just also tested FreeBSD and there a 9 character user is nothing extraordinary either; $LOGNAME wasn't truncated and even "ls" returns the full username. kiss package manager should be fixed to not rely on output of "ls" since "broken" implementations for it such as busybox exists that truncate the output
<deathmist> I've got an idea: "ls -ldn $dir" -> get $uid from 3rd field -> "getent passwd $uid | cut -d: -f1" for dir owner username -> compare with $LOGNAME
<deathmist> works on FreeBSD as well
<illiliti> getent isn't portable
<deathmist> ffs, fine let's use grep then it's not like it does much anyway
<testuser[m]> lol
<illiliti> grep what? /etc/passwd? we can't assume that /etc/passwd exist
<testuser[m]> bruh
<deathmist> I give up
<deathmist> this mess cannot be fixed
<deathmist> (portably)
<testuser[m]> is there an actual platform where stat doesnt exist
barpthewire has quit [Remote host closed the connection]
<illiliti> illumos it seems
<deathmist> are any other coreutils other than gnu and busybox even packaged?
<illiliti> pretty sure there's more
<illiliti> also ubase stat doesn't support -c
<deathmist> I'm not keen on building GNU crap just to get a working package manager
<testuser[m]> deathmist: u could patch busybox ig
<testuser[m]> the format string
<deathmist> I could, but I already am hating other aspects of it too so I'd just replace it altogether (with something not GNU if possible)
<testuser[m]> with toybox even more stuff would need patching
<testuser[m]> just 2-3 things but still
<deathmist> eh?
<deathmist> on a personal note: I once contributed to busybox and however small the patch may have been, my authorship was stripped, so I'd just rather not use any of it
barpthewire has joined #kisslinux
<testuser[m]> check core/baseinit/patches/toybox.patch
<testuser[m]> looks like thats the only patch required
<testuser[m]> i remember some more in his repo but ig they're fixed
<omanom> "are any other coreutils other than gnu and busybox even packaged" -- where's mid when ya need them >.>
<deathmist> illiliti: doesn't appear very maintained, issue about musl build failure from 2020 without comment and PR to fix some segfault open still seemingly without resolution(?)
<deathmist> not that I need new features or whatever in coreutils often if at all, but fixes are always nice to have
<illiliti> omanom: mid uses sbase+ubase afaik
<illiliti> yeah, it seems unmaintained. i just pointed out that it exist :)
<omanom> acheam did you ever do much with ubase+nbase?
<testuser[m]> omanom: Hi
dilyn has joined #kisslinux
<dilyn> I can't believe someone complained about busybox's `ls` truncating usernames and then suggested we just solve the problem by parsing `ls` output :v
<dilyn> parsing ls is bad and dangerous
<testuser[m]> dilyn you';re alive
<dilyn> been very busy haha
<illiliti> there's no other way dilyn
<dilyn> id ?
<dilyn> testuser: let's be clear, I also don't want to install qt xD
<dilyn> I think I have to give in at this point though; I need file dialogs now for my work. It's too cumbersome scp'ing to my laptop...
<illiliti> id isn't intended to grep owner of file
<illiliti> id basically print uid/username of the current user and all of that things
<dilyn> is -un not posix?
<dilyn> f
<dilyn> it is
<dilyn> what's the malfunction then? we want to know some other user?
<testuser[m]> bro just rewrite kiss in compiled language and reimplement broken pozix functionality
<dilyn> ^
<dilyn> go to the rescue
<illiliti> how do you supposed to use id -un to fix this problem?
<illiliti> we need to get untruncated owner of file
<dilyn> ah, owner of a file in general
<dilyn> i see i see
<illiliti> yes
<illiliti> we need to somehow exploit the fact that ls can output uid
<dilyn> why not just always assume root :v
<dilyn> don't answer that
<omanom> `python -c 'from os import stat; print(stat("<filename>").st_uid)'` lol
<dilyn> gotim
<dilyn> wait do uid:gid get mapped somewhere outside of /etc/{group,passwd}?
<illiliti> we can't assume that /etc/{group,passwd} exist
<dilyn> we can if uid and gid are meaningless without them...
<dilyn> 0:0 doesn't have any actual semantics without /etc/group & /etc/passwd, no?
<illiliti> posix doesn't define /etc/{group,passwd}
<dilyn> riiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiight
<dilyn> of course it doesn't
<dilyn> what does BSD do? lmao
<illiliti> essentially, we need something like this: https://termbin.com/q040
<dilyn> why can't we just fix this in busybox?
<dilyn> they still accept patches. are they just... obstinate?
<illiliti> cause it isn't really a bug
<dilyn> it is one hundred percent a bug
<illiliti> posix allow this
<dilyn> smdh
<illiliti> we can fix this in busybox, but other implementations may have same behavior as busybox
<dilyn> and they should be fixed too >=|
<omanom> just get the standard updated duh
<dilyn> just chown the $file to $(id -u) and be done with it
<dilyn> you know what
<dilyn> better
<dilyn> rm -rf /
<dilyn> solve every problem
<testuser[m]> just install windooz
agsd has joined #kisslinux
<agsd> i wanna install kiss linux in a thumb drive but i dont know what configs to enable or disable on the kernel, can someone provide one or tell me where to find a generic one?
ella-0 has joined #kisslinux
ella-0_ has quit [Read error: Connection reset by peer]
<soliwilos_> agsd: For a generic kernel config, maybe grab alpine's? https://git.alpinelinux.org/aports/main/linux-lts/lts.x86_64.config
<agsd> soliwilos_ ill give it a try
<agsd> soliwilos_ it throws an invalid request when trying to open the link
agsd has quit [Quit: Client closed]
agsd has joined #kisslinux
dilyn has quit [Quit: Connection closed]
mahmutov has joined #kisslinux
agsd has quit [Quit: Client closed]
agsd has joined #kisslinux
agsd is now known as Guest4854
<Guest4854> nickserv identify agsd w5XUgjEoSmGKzk
<omanom> time to change your password :)
<Guest4854> i think i fucked lol
agsd has joined #kisslinux
Guest4854 has quit [Remote host closed the connection]
gst164375 has joined #kisslinux
<gst164375>
<gst164375> a
gst164459 has joined #kisslinux
<illiliti> hmm, looks like sudo and doas already support uid
gst164459 has quit [Remote host closed the connection]
gst164375 has quit [Remote host closed the connection]
<illiliti> i can add support for uid in ssu, no problem
<illiliti> so the only problem is su
<illiliti> LOGNAME usage can be replaced with $(id -un) i guess
gst164759 has joined #kisslinux
gst164759 has quit [Remote host closed the connection]
gst164892 has joined #kisslinux
gst164892 has quit [Remote host closed the connection]
agsd has quit [Killed (molybdenum.libera.chat (Nickname regained by services))]
agsd has joined #kisslinux
agsd has quit [Client Quit]
agsd has joined #kisslinux
Guest21 has joined #kisslinux
<agsd> im sorry for spamming, im testing birch
agsd has quit [Client Quit]
<illiliti> this fixes username truncation issue at the cost of removing su support
<illiliti> ssu will be added
<illiliti> and perhaps i should submit pull request...
soliwilos_ has quit [Ping timeout: 240 seconds]
agsd has joined #kisslinux
agsd has quit [Client Quit]
Guest21 has quit [Quit: Client closed]
soliwilos has joined #kisslinux
<phoebos> deathmist: the package manager works fine, you're completely welcome to apply the patch to use stat, but upstream kiss is _portable_, and >8 char usernames aren't. noone's preventing you from having longer than 8 char usernames, just swap out the bits you don't like, it's your system.
<deathmist> yeah I'd rather swap all of my coreutils, already have my issues with busybox anyway
<phoebos> ok! kiss is a package manager, KISS comes with busybox but only *by default*
<phoebos> when/if dylan starts swapping bits of shell out for C, this problem will be easier to fix.
agsd has joined #kisslinux
mahmutov has quit [Ping timeout: 272 seconds]
illiliti has quit [Read error: Connection reset by peer]
illiliti_ has joined #kisslinux
Guest80 has joined #kisslinux
<Guest80> Hi all! This is probably a mega dumb question, but how should I best handle file conflicts with the kiss package manager? I'm trying to install powertop but it wont install because busybox has its own /usr/bin/powertop file
<phoebos> in your build file, just install the /usr/bin/powertop file normally
<phoebos> then once you've installed the package, do `kiss a <packagename> /usr/bin/powertop`
<phoebos> `kiss a` lists all the packages which provide alternative versions of each file on your system
<phoebos> you can switch them at will
<Guest80> TIL about 'alternatives', beautiful! thanks phoebos :)
<phoebos> :)
Guest80 has quit [Quit: Client closed]
* agsd l
agsd has quit [Quit: ]
mahmutov has joined #kisslinux
agsd has joined #kisslinux
agsd has quit [Client Quit]
agsd has joined #kisslinux
<omanom> hey agsd check out catgirl as well: https://git.causal.agency/catgirl/about/
<agsd> what is that?
<omanom> it is another pretty minimal irc client
<omanom> kirc as well: https://github.com/mcpcpc/kirc
<agsd> im using birsh atm lol
<agsd> the most annoying thing is authenticating with nickserv
agsd has quit [Quit: ]
agsd has joined #kisslinux
<soliwilos> catgirl is pretty nice.
* soliwilos meows
agsd has quit [Remote host closed the connection]
<phoebos> ( ˘ ³˘)♥
<soliwilos> :D
<soliwilos> Seems like dylan is reawakening a little.
mahmutov has quit [Ping timeout: 246 seconds]
soliwilos has quit [Ping timeout: 240 seconds]
soliwilos has joined #kisslinux
ejjdhfjsu has joined #kisslinux