jaeger changed the topic of #crux to: CRUX 3.6 | Homepage: https://crux.nu/ | Ports: https://crux.nu/portdb/ https://crux.ninja/portdb/ | Logs: https://libera.irclog.whitequark.org/crux/
_moth_ has quit [Ping timeout: 256 seconds]
ivandi has quit [Quit: WeeChat 3.5]
ivandi has joined #crux
groovy3shoes has joined #crux
groovy2shoes has quit [Read error: Connection reset by peer]
cybi has quit [Read error: Connection reset by peer]
cybi has joined #crux
cybi has quit [Read error: Connection reset by peer]
cybi has joined #crux
cybi has quit [Read error: Connection reset by peer]
_moth_ has joined #crux
ppetrov^ has joined #crux
Guest3753 has joined #crux
Guest3753 has quit [Client Quit]
cybi has joined #crux
ocb has quit [Ping timeout: 240 seconds]
ocb has joined #crux
cybi has quit [Read error: Connection reset by peer]
cybi has joined #crux
cybi has quit [Read error: Connection reset by peer]
cybi has joined #crux
_0bitcount has joined #crux
cybi has quit [Read error: Connection reset by peer]
_0bitcount has quit [Quit: Leaving]
samsep10l has quit [Quit: leaving]
stoffepojken has quit [Quit: ZNC 1.8.2 - https://znc.in]
stoffepojken has joined #crux
_moth_ has quit [Quit: _moth_]
groovy3shoes is now known as groovy2shoes
<groovy2shoes> farkuhar, is there some reason that pkgmeek wants to run pkgadd with su?
<farkuhar> groovy2shoes, are you building as a normal user, or as root? it should have a test for $UID=0 and run pkgadd without su in that case.
<groovy2shoes> i'm running as root. looks like it wants to use sudo for non-root, and `su -c` for root. but then su complains when it mistakes pkgadd's options for its own
<farkuhar> my bad, I should have added one more test on line 195.
<groovy2shoes> a [ -z "$PKGMK_SU" ] in front?
<farkuhar> that's right. I think I accidentally deleted it at some point.
SiFuh has quit [Ping timeout: 258 seconds]
SiFuh has joined #crux
<groovy2shoes> ok. if it ever falls back on `su -c`, i think it'll still have this problem. i find su's option parsing surprising. seems like it wants the whole command to be quoted? i tried sticking a '--' after -c to convince it to stop parsing arguments, but that doesn't work, either.
<farkuhar> yeah, maybe it should just fail the operation if it can't find sudo or doas.
<farkuhar> thanks again for testing. i can't by myself spin up all the VMs or containers that would be needed to discover these edge cases; i only work with the two or three CRUX installations i have on hand.
<groovy2shoes> np. i've updated my sysup script to optionally use pkgmeek, but i wanted to try a couple by hand before kicking it off.
<SiFuh> alias su="su -c "
<SiFuh> Would this concept work? Creating a variable and sticking a whitespace after it?
<SiFuh> Or even using alias itself
<groovy2shoes> nah. su's option parsing expects -c to have exactly one argument; the problem is that it's getting `su -c pkgadd -u <file>`, at which point only 'pkgadd' is passed to -c and su tries to parse '-u' as another of its own options
<groovy2shoes> so i think it'd have to be `su -c "pkgadd -u <file>"`, but i don't know how sudo or doas would like getting all their args stuffed into one like that
<groovy2shoes> it'd probably need to be a function rather than an alias, something like: ghetto_sudo() { su -c "$*"; }
<SiFuh> Yeah, I see.
<farkuhar> fwiw, the work that inspired pkgmeek just takes it for granted that the user will have sudo installed, there's no test of its existence (because sudo is a core package and opendoas wasn't on the radar four years ago): https://gitlab.com/therealfun/oprt/-/tree/master/
<SiFuh> Remember that. Changed to opendoas because sudo and doas were full of security issues.
<cruxbot> [opt.git/3.6]: thunderbird-bin: updated to version 91.10.0
<farkuhar> i admire Fun's dedication to the principle "do one thing and do it well", but i think it can be taken to an extreme. The same pithy coding style can also achieve feature parity with legacy code like pkgmk, without needing to separate out the desired functions across multiple independent scripts.
<SiFuh> I am good at drinking beer, but I don't think I would like to that to be the only thing ;-)
<groovy2shoes> yeah, sometimes i'd like to drink whiskey ;)
<SiFuh> Haha
<SiFuh> Drinking homemade beer and Sake. Was going to run 60 litres of vodka mash today but it is still fermenting. Maybe Tuesday or Wednesday I will do that.
SiFuh has quit [Quit: leaving]
SiFuh has joined #crux
_moth_ has joined #crux
ocb has quit [Remote host closed the connection]
ocb has joined #crux
ppetrov^ has quit [Quit: Leaving]
ax has quit [*.net *.split]
ax has joined #crux
tilman has quit [Ping timeout: 240 seconds]
tilman has joined #crux