ChanServ changed the topic of #kisslinux to: Unnofficial KISS Linux community channel | https://kisscommunity.bvnf.space | post logs or else | song of the day https://vid.puffyan.us/H7PvgY65OxA
<trunc88> what the HECK
<trunc88> >compiling mpv
<trunc88> >-Dpulse=disabled
<trunc88> >ldd mpv
<trunc88> >libpulse.so.0 not found
<Torr> Ever compiled Mongodb?
<Torr> It's one damn slow process.
<trunc88> oh im sure thats way worse. mpv compiles quick, just trying to get it to work
<trunc88> i think its ffmpeg, need to compile that without pulse also
<trunc88> was trying to avoid compiling things like ffmpeg on this machine by using a binary distro, but here we are
<Torr> trunc88: Regarding Mpv, have u tried the Waf flag ' --disable-caca
<trunc88> first attempt failed right near the end so now trying on latest release rather than git master
<trunc88> i dont think i have caca
<Torr> Ops
<Torr> '--disable-pulse'
<trunc88> lol
<trunc88> i used meson with -Dpulse=disabled
<trunc88> i thought i might try waf but im almost positive its ffmpeg because i just tried running ffmpeg and it tells me libpulse wasnt found also
<Torr> I see
<Torr> Linux audio is such a mess.
<Torr> Sndio brings it to shame.
<trunc88> yeah
<trunc88> ffmpeg is actually annoying to build on this because its a core 2 duo. glad i did decide to use a binary distro
<Torr> Be gentle on that machine.
<Torr> Which binary distro are u running?
<trunc88> Obarun, it seems pretty cool so far. just installed the other day
<trunc88> dont know of any better options
<Torr> It has its own init, right?
<Torr> 66 iirc
<trunc88> 66 is their set of scripts/programs they wrote to manage the s6 init system i think
<trunc88> looks like ffmpeg compile worked
<trunc88> and s6 is by the skarnet people
<Torr> Oh yeah
<trunc88> havent tried removing udev / dbus yet but i plan to
<trunc88> wow its still looking for libpulse
<trunc88> i hate everything
<Torr> Dbus is the most intrusive of all the crippy deps.
<Torr> Come on, don't despair lad.
<Torr> U can do it.
<trunc88> of course i can but i wanted this to be kinda easy not much fussing around recompiling everything type of deal
<trunc88> we're nearing the point that it would have been easier to just use kiss
<trunc88> i have no idea which ffmpeg deps i need to compile without pulse now
<Torr> Well, we're for a reason aren't we?...
<trunc88> yes, i was born with the sole purpose of removing satan from my own computer
* Torr sees Terry smirk on the background
<trunc88> RIP
<trunc88> i dont even understand how any of these ffmpeg deps would do it. shouldnt ffmpeg itself be the thing thats outputting to the sound device or whatever?
<Torr> No idea how Mpv communicates with the sound subsystem.
<trunc88> or am i really going to have to compile every decoder that ffmepg uses
<trunc88> redhat destroyed linux
<trunc88> im so mad
<trunc88> lol
<trunc88> i just wanted to watch ceephax acid crew music videos
<trunc88> i can go through my configure script and look at which libs i can compile w/o pulse but then idk what it got through autodetection
<trunc88> suppose i can use ldd for that
<trunc88> could also disable all autodetection and manually enable what i want but thats super annoying with ffmpeg
<trunc88> how do i tell ffmpeg --disable-pulse and then its still like hhuhhh pulse not found
<trunc88> how is this real life
<trunc88> goes through the entire compile without caring
<trunc88> i should have been serious about learning to code
<trunc88> and saved the world
<Torr> Already staring at the abyss?
* trunc88 sigh
<trunc88> i might just install libpulse and call it a day
<trunc88> i really really dont want to though
<Torr> Ceephax Acid Crew has some fine music.
<trunc88> ye he's pretty great. released a new album last year, or 2020 maybe
<trunc88> i also just dont understand why it cant fall back to alsa, not like i didnt enable alsa
<trunc88> "cant find libpulse" fine, ignore it and use alsa
<trunc88> i dont think thats ffmpegs fault though i guess but idk
<Torr> It's not uncommon to have those options defined as 'ifdefs'.
<trunc88> for runtime or compile time? or both?
<Torr> Compile time.
<trunc88> well yeah im telling it not to look for pulse with --disable-pulse
<trunc88> but then at runtime it wont run without it
<trunc88> "we allow you to enable multiple sound systems but you need to have all of them installed in order for the program to start"
<trunc88> according to dude in #ffmpeg it should be fine with just --disable-libpulse
<trunc88> <redacted> trunc88: ffmpeg looks for libpulse for its own audio output stuff. if other libraries happen to link to libpulse that doesn't affect ffmpeg
<trunc88> <redacted> trunc88: looks like it's not checking for libpulse or compiling with libpulse
<trunc88> <redacted> so one of its dependencies must require it
<trunc88> anybody more knowledgeable than me able to tell me if this is a contradiction or not? kinda sounds like it to me
<Torr> Check the source, it's *the* way to learn that stuff.
<trunc88> <redacted> it is if any of the libraries that ffmpeg depends on links to it
<trunc88> oof defenite contradiction he uses the term "link" here again
<trunc88> tells me it doesnt matter, looks at my log, tells me it must be exactly what i said i thought it was
<trunc88> gotta love it
<trunc88> im not much of a programmer Torr, wish i had actually pursued that more earlier in my life
<trunc88> i did a little bit of java ina high school class and some obj-c for a summer camp thing
<Torr> trunc88: U don't have to program, just to read the source.
<trunc88> i dont know the language though
<trunc88> wow i am big boy dumb
<trunc88> forgot to put /usr/local/lib into ld.so.conf
<trunc88> first guy didnt even think of that though
<trunc88> but neither did i
<Torr> Did it compile?
<trunc88> it was already compiling, but it runs now
<Torr> o/
<trunc88> ah yeah now i can watch some ceephax
<Torr> Leaving here, see ya
<trunc88> later
<trunc88> nice talking
<Torr> Later ^^
Torr has quit [Quit: leaving]
Guest78 has joined #kisslinux
<Guest78> Hi
gtms has joined #kisslinux
<Guest78> Does anyone use gkiss/wayland? Please share chromium/firefox binary
<testuser[m]> I'll send it in few hrs
<Guest78> Ok, thanks
Guest78 has quit [Quit: Ping timeout (120 seconds)]
<wael_> Hi
<wael[m]> illiliti: can you consider adding /etc/acpi/PWRF/00000080: poweroff to busybox acpid for easy no-configuration poweroff?
<virutalmachineus> I just installed a open source AI companion. What a time to be alive.
aelspire has joined #kisslinux
<testuser[m]> Guest78:
<testuser[m]> https://file.io/ igL4W0PUNViP
<testuser[m]> or hxkfFryMdi3Q
Guest37 has joined #kisslinux
<Guest37> testuser[m]: Thanks a lot!
Guest37 has quit [Ping timeout: 260 seconds]
chomwitt has quit [Ping timeout: 265 seconds]
chomwitt has joined #kisslinux
mmatongo has joined #kisslinux
mmatongo has left #kisslinux [#kisslinux]
mmatongo has joined #kisslinux
mmatongo has quit [Remote host closed the connection]
<testuser[m]> Anyone here experienced with wireguard? Is there a way to enable wireguard just for a specific domain/ip?
<testuser[m]> ig AllowedIPs is relevant here but I'd rather not update the IP constantly
<aelspire> testuser: ip route tables should work if wg is visible as extra interface, but I haven't used wg
<testuser[m]> aelspire: yeah it makes wg0 interface
<testuser[m]> can you give an example for using iproute tables?
<aelspire> ok, one moment
<aelspire> basically you create table with some id and name, add desired ips to it and set wg0 iterface as default route for this table (maybe default will not work and You will need to manipulate it's metric)
<aelspire> but I'll find tutorial on net
<aelspire> http://linux-ip.net/html/routing-tables.html - this one is not very helpful I'm looking for better one
<aelspire> scroll down to creating tables for vpns
<aelspire> around line: "echo 1 vpn1 >> /etc/ip route2/rt_tables"
<aelspire> but I'm sure that I managed to achieve it without firewall
<aelspire> ok I found my notes: sudo ip rule add dport 49012 table test
<aelspire> this adds all traffic to destination port 49012 to table test
<aelspire> /etc/iproute2/rt_tables here I added "200 test"
<aelspire> ip route add default dev wwp0s20u1u2i5 table test
<aelspire> this was using new this interface as default route for rules in table test
<aelspire> but I my case I just needed to use GSM modem to connect to internet and normal interface was used as intranet
<aelspire> if You want to use VPN and not to fallback to your normal interface if wg disconnect You will need to block it in firewall somehow
Guest78 has joined #kisslinux
<Guest78> testuser[m]: Hmm, the file was deleted :(
<Guest78> "The transfer you requested has been deleted."
<wael_> oh
<wael_> ok then lets wait for the testuser
<testuser[m]> Guest78: it was delted cuz someone clicked the link
<testuser[m]> it only works once
<testuser[m]> wait
<testuser[m]> Guest78: create a dm with me
<Guest78> Hmm, I guess I downloaded it
<Guest78> testuser[m]: ok
Guest78 is now known as laksjdhd
<testuser[m]> Guest78: https://termbin.com/4nzo
<laksjdhd> Thanks again
<laksjdhd> (I couldn't register (I'm from a phone)
phinxy has quit [Ping timeout: 256 seconds]
phinxy has joined #kisslinux
laksjdhd has quit [Ping timeout: 260 seconds]
mmatongo has joined #kisslinux
mmatongo has quit [Remote host closed the connection]
mmatongo has joined #kisslinux
mmatongo has quit [Remote host closed the connection]
mmatongo has joined #kisslinux
Guest78 has joined #kisslinux
<Guest78> testuser[m]: A little silly question: do you mind if I use your binary in my repository?
<testuser[m]> which
<Guest78> firefox
<testuser[m]> which repository lol
<Guest78> ah
<Guest78> ;)
mmatongo has quit [Remote host closed the connection]
<wael[m]> nullcoder is a badass name why are you Guest78
<Guest78> I don't know :)
Guest78 is now known as nullcoder
<nullcoder> Hi
<wael[m]> also make sure to use bin/ in your repository
<nullcoder> wael[m]: Yes, I know
<wael[m]> hell yea
<wael[m]> hello nullcoder
<nullcoder> Nice to meet you, wael
mmatongo has joined #kisslinux
mmatongo has quit [Remote host closed the connection]
chomwitt has quit [Ping timeout: 268 seconds]
<phoebos> find the bug
nullcoder has quit [Quit: Client closed]
<phoebos> answer: struct textpair tp is on the heap for setup_sx, but is used for the callback in w[2], which gets used in MainLoop which is called from main
<phoebos> s/heap/stack/
<phoebos> so it's gone from the stack when it's needed
<phoebos> solution: static struct textpair tp
mmatongo has joined #kisslinux
<trunc88> blargh, now i have to figure out my original trouble with ffmpeg
<testuser[m]> phoebos: how could anyone figure out that &tp is being stored by makebutton in global state without checking doc
<phoebos> obviously just find the relevant line in the library source
sxirc has joined #kisslinux
<sxirc> hi from my libsx IRC client
<midfavila> post pics
<midfavila> you using an IRC library or just a couple routines you hacked together yourself?
<midfavila> also, this is a really nice program
<midfavila> nice, dude
<phoebos> IRC library? no
* midfavila shrugs
<sxirc> need to figure out scrolling in a text widget
<midfavila> with a scrollbar or on content update?
<midfavila> or just with a scrollwheel proper?
<sxirc> :content update, ideally. currently writing to it causes it to jump up to the top
<midfavila> could always write a small routine to handle updating and jumping to bottom, then call that instead of just updating the contents of the text buffer directly... or something
<midfavila> idk
<midfavila> that's the naive approach
<sxirc> PRIVMSG #kisslinux :hmm
<midfavila> if i knew more about the athena widgets internally i'd have a better suggestion
<midfavila> i know there's an internal structure that textClass uses to keep track of its state... maybe you can just an element in that or whatever
* midfavila shrugs again
<sxirc> libsx also hides the routines which let you insert or delete text in arbitrary places. currently i'm having to read the whole contents, append the new line, and write it all back
<midfavila> rip
<midfavila> yeah the more i learn about sx the more i learn that i only really like it conceptually
<midfavila> if there was just a tad more freedom it'd be really nice
<sxirc> i've managed to use some Xt routines alongside libsx. I do like it, I'll see if I can use those xaw text routines still
<midfavila> go for it
<testuser[m]> <phoebos> "obviously just find the relevant..." <- bruh i mean just from the 10 lines u posted without knowing what the lib is
<phoebos> yeah sorry, I was pretty much talking to myself
sxirc has quit [Quit: bye then]
<midfavila> :DDDDDDDDDDDD
<midfavila> oh huh
<midfavila> a minimal IRC client doesn't take much does it?
<phoebos> tbf, this is really just a graphical fronted to nc
<phoebos> have to PRIVMSG #channel :msg and reply to PINGs
<midfavila> well, i figure that wouldn't be too hard to implement, honestly
<midfavila> if I knew more about... everything, I'd take a shot at implementing that stuff
<midfavila> having a prototype Athena client using sx would be neat
mmatongo has quit [Remote host closed the connection]
<midfavila> at least until I write my own and totally upstage you :^)
<phoebos> :v i know nothing but just hack together stuff for fun
<phoebos> but I know you need to understand *everything* before taking a shot
<midfavila> rip
<midfavila> idk i'm trying to get over that
chomwitt has joined #kisslinux
<midfavila> aaa i can't decide if i wanna work on fetch or read the Xt manual
<midfavila> i should *probably* finish fetch
<phoebos> i've only skimmed and then used it for specific reference
mmatongo has joined #kisslinux
<midfavila> nooooo you can't just refer to material
<midfavila> you have to memorize it cover to cover!!!
<midfavila> otherwise you can't be a Real Programmer:tm:
<wael[m]> is pipefail a real thing in sh POSIX
<midfavila> "One justification for ignoring the contents of IFS upon entry to the script, beyond security considerations, is to assist possible future shell compilers"
<midfavila> where's my shell compiler, open group? where is it?
<testuser[m]> wael: no
<wael[m]> awh
<illiliti> pipefail will be posix soon
<midfavila> what is it?
<testuser[m]> illiliti: how many decades for it to be available everywhere
<illiliti> test1 | test2
<illiliti> midfavila: with pipefail, test2 won't run if test1 failed
<midfavila> aah
<illiliti> testuser[m]: it is available already
<testuser[m]> fake
<illiliti> give me a shell name which does not support it
<aelspire> dash?
<illiliti> ok
<wael[m]> but is it byyy posixxxx
<wael[m]> cuz muh posix certificiations
<aelspire> ash is so much nicer than dash
<aelspire> but dash is fast, I like using dash as POSIX shell for scripts and fish as interactive shell
<testuser[m]> yash is so much nicer than ash
<testuser[m]> lol i like how 3 shells are just replacing 1 letter
<wael[m]> or adding
<testuser[m]> Replace with zwsp
<illiliti> i see there is a patch available in dash ml
<midfavila> aelspire do you know of a standalone ash?
<aelspire> midfavila: I don't, probably
<midfavila> rip
<aelspire> currently I'm using busybox's ash on alpine and kiss
<aelspire> aah
<aelspire> that ash
<aelspire> precursor of dash?
<midfavila> yeah
<midfavila> afaik ash went from the BSDs and Minix to slackware, where it was picked up by debian
<aelspire> I haven't used it
<aelspire> most cursed shell I had displeasure using is csh
<midfavila> fwiw i'm not talking about sash
<midfavila> which is, somewhat confusingly, not related to ash
<illiliti> busybox ash sucks
<midfavila> and yeah, csh is... unpleasant
<midfavila> ksh is much nicer
<aelspire> AFAIK current ash from busybox is fork of previous dash's version
<aelspire> but don't quote me on ti
<midfavila> feq
<testuser[m]> midfavila: u can just build busybox with ash enabled
<aelspire> currently I'm using ash/dash for speed I've lot of small scripts in my kakoune's config
<aelspire> and I can immediately tell when it's using bash…
<aelspire> dash is faster acording to some weird benchmark on net but I cannot tell difference
<aelspire> between ash and dash
<midfavila> testuser[m]: mmmmmmmmmeh
<midfavila> don't wanna
<midfavila> also i don't think i *can* build busybox right now, pff
<aelspire> Whats wrong with busybox?
<midfavila> i just personally don't like it. there's nothing wrong with it, strictly speaking
<aelspire> I've heard about toybox but i find busybox in sweet spot between completly sucklesss and comfortable for daily usage
<midfavila> i daily the suckless tools :p
<illiliti> busybox is source of CVEs
<midfavila> they have their fair share of issues though, so i'm (very slowly) writing my own replacement
<aelspire> mhm, I didn't know
<illiliti> due to absolutely fucked codebase
<illiliti> look at their ash code
<midfavila> i haven't looked at their code myself
<illiliti> it's a mess
<midfavila> isn't surprising to hear it's gross
<midfavila> that's part of why i dislike suckless
<aelspire> I've tried to debug problem in gnu libc
<midfavila> their programs are hard to read
<aelspire> now no other code looks like mess for me…
<illiliti> busybox has nothing to do with suckless
<midfavila> yes, obviously
<midfavila> i'm drawing a comparison
<midfavila> my "fair share of issues" wrt: suckless tools was in part referring to their code style being hideously dense and hard to work with, at least imo
<midfavila> to hear that busybox is also hard to work with and "a mess" as you put it is a convenient hook to hang a comparison on
<aelspire> yeah, I usually prefer writing code in such way, so I'll know what it's doing after month…
mmatongo has quit [Remote host closed the connection]
<aelspire> but other programmers are found of ifdefs zigzags in code…
<midfavila> ifdef users should be shot
<midfavila> change my mind
<illiliti> and typedefs
<midfavila> typedefs are fine in relation to structs and only structs
<illiliti> needless obfuscation
<testuser[m]> typedef void******** ptr
<midfavila> a)
<midfavila> contrived example
<midfavila> b)
<illiliti> function pointers are exception
<midfavila> you shouldn't have so many indirection levels in the first place
<midfavila> c)
<illiliti> otherwise typedef is harmful
<midfavila> it's a one-time thing
<testuser[m]> typedef is ok only for opaque structs
<midfavila> you just say "hey what's that again?", grep for it, and it's done
<aelspire> and C++ should burn in hell
<midfavila> it's *significantly* less harmful than the CPP
<aelspire> I'm forced to use C++ and Qt in work
<midfavila> i'm sorry
<aelspire> and have seen my share of error messages longer than my code
<testuser[m]> Template moment
<aelspire> look at this beauty
<midfavila> lmao
<midfavila> C++lets really be like this
<midfavila> hah, holy shit
<testuser[m]> LOL
<aelspire> it's basically what is happening if everything is template
mmatongo has joined #kisslinux
<aelspire> C++ took major role in convincing me that technology need to be scaled to human level again
mmatongo has quit [Remote host closed the connection]
mmatongo has joined #kisslinux
<phoebos> midfavila: you may find my server_connect function useful for your fetch
<midfavila> probably!
<midfavila> i'll see if there's anything i can ~~steal~~ borrow for dial from it
<phoebos> hehe
aelspire has left #kisslinux [#kisslinux]
<phoebos> i think i stole it pretty much verbatim from freeaddrinfo(3)
* midfavila nod-nods
<midfavila> i actually need to rewrite dial() to avoid a few unnecessary branches
<midfavila> as is i test for whether a TLS context is present too late
mmatongo has quit [Remote host closed the connection]
chomwitt has quit [Ping timeout: 264 seconds]
<wael_> whats an alternative to wc -L
<illiliti> longest=0; while read -r line; do longest=${#line}; done < file; echo $longest
<illiliti> oh wait
<phoebos> * if [ ${#line} -gt $longest ]; then ...
<phoebos> or awk
<illiliti> yes
<illiliti> posted wrong snippet
<illiliti> longest=0; while read -r line; do len=${#line}; longest=$((len > longest ? len : longest)); done < file; echo $longest
<illiliti> pure shell, no [
<phoebos> nice, i didn't know $(()) had the ternary operator
<illiliti> Dylan taught me
sam_sepi0l has joined #kisslinux
trunc88 has quit []