-
CrtxReavr
freebsd-update fetch | awk 'NF>1{print $NF}'
-
crb
bitblt: there is a freebsd-ports channel
-
MelMalik
I assume there is no legitimate reason for Xorg to be resident for more than a gigabyte?
-
badkat
MelMalik: your desktop enviroment software selection for sure :)
-
MelMalik
badkat, did you just gloss over the word «legitimate»
-
MelMalik
I could see Xorg being resident for slightly more memory based on my decision to use or not use a certain programme, but that memory should be released when I stop using said programme (be it mpv, firefox, or anything else).
-
nimaje
afaik, memory usage of Xorg depends on your screen resolution too
-
Dooshki
I remember many years ago running the old fglrx driver on Linux, and that made the Xorg process leak quite a bit of memory on my system
-
Dooshki
the usage gradually kept rising and never went down
-
MelMalik
do I remember you
-
MelMalik
also: that just tells us that the problem is prolonged, not that it's not a problem
-
benjamino
hi folks! i installed a game and noticed the version was outdated (port doesn't have a maintainer), so i downloaded the latest version straight from github and built it with a few minor changes, what do i do now? do i sumbit a PR where i explain everything i did or do i try to modify the port by myself and the ask for a merge somehow? (I have no idea what I'm doing)
-
ivy
-
benjamino
ivy: thank you! i'll read it at once!
-
luser
If you have successfully got the game going, perhaps consider becoming the port maintainer:
docs.freebsd.org/en/articles/contributing/#ports-contributing
-
ivy
if you use the port yourself, you may also consider becoming its maintainer by editing MAINTAINER= in the makefile, but that isn't required to submit an update
-
CrtxReavr
What's that Plex replacement people are implementing?
-
ivy
CrtxReavr: Jellyfin for video and Navidrome for audio here
-
ivy
both are well maintained in ports (navidrome wasn't for a while but it has a maintainer now)
-
CrtxReavr
ahh - Jellyfin is the one I think was mentioned.
-
CrtxReavr
Thanks.
-
ivy
/usr/bin/cd annoys me every time i am reminded that it exists
-
mzar
that's really sad
-
ivy
heartbreaking, really
-
CrtxReavr
o_O
-
phryk
is there a way to permanently protect(1) daemons from rc.conf?
-
CrtxReavr
WTF even is that?
-
CrtxReavr
It doesn't even seem to work.
-
ivy
CrtxReavr: it "works" in that it changes the directory, then immediately exits, so it does nothing. it only exists because it's required by POSIX
-
CrtxReavr
phryk, you could probably follow the example of what you find when you look at: grep protect /etc/defaults/rc.conf
-
nimaje
CrtxReavr: well, that cd script starts a shell, cds in that shell and then exits that shell, seems really useful
-
CrtxReavr
# This file is in the public domain.
-
CrtxReavr
Well, thank goodness for that.
-
nimaje
wait, where does posix requires an executable cd? I only know about the shell built-in cd being required by posix
-
CrtxReavr
nimaje, there's gotta be some legacy kruft reason for it.
-
CrtxReavr
I can't say I've noticed that before.
-
phryk
CrtxReavr: oh neat, thanks for pointing out the obvious. seems like it's not a thing specifically implemented in rc.d/syslogd either. :)
-
CrtxReavr
Though. .. /usr/bin/[ generally bothers people more.
-
ivy
nimaje: there's some requirement that all the shell builtins have to be available as actual commands, i don't remember where off hand
-
CrtxReavr
phryk, it is useful to always remember that /etc/defaults/rc.conf is there.
-
phryk
CrtxReavr: yeah, every 3-4 years i stumble over /etc/defaults but then forget about it again ^^;
-
» CrtxReavr casually pulls out his tatoo gun.
-
phryk
well, i've been looking for inspiration for a new tattoo, so… 🤔
-
nimaje
CrtxReavr: well, [ is usually not a shell built
-
nimaje
ivy: found it, but cd is excluded as it is an intrinsic (at least in posix 2024)
pubs.opengroup.org/onlinepubs/97999…/utilities/V3_chap01.html#tag_18_07
-
ivy
interesting, i wonder if that changed at some point, i would love to get rid of these
-
ivy
(last time i asked i was told we can't, but that was a while ago)
-
MelMalik
sometimes doing the right thing gets in the way of posix compliance
-
phryk
mhh, i'm getting "protect: option requires an argument -- p" when trying to start services with _oomprotect="YES". but not reliably reproducable…
-
phryk
i have one service where it always happens. had 2 other ones where it just disappeared without further changes to rc.conf when restarting the service a second time.
-
phryk
the service where it always happens also has "service foo status" reporting it's not running, even tho the .pid file exists and points to the correct pid that's running.
-
phryk
okay, these issues seem to be independent. get the same issue with status claiming the service ain't running when i remove the _oomprotect and restart…
-
phryk
Mhh, the package wasn't in my poudriere package list and is still an ancient build with py39 flavor. Gonna ignore it for now and see if it resolves itself when I got a py311 build.
-
phryk
can i get ps or some other tool to show process flags in a *human readable* form?
-
dstolfa
phryk: ps has libxo support
-
dstolfa
phryk: try ps --libxo=json -auxw
-
dstolfa
er, you can probably drop the w
-
dstolfa
habit :)
-
phryk
ps --libxo=json -o flags 91843
-
phryk
{"process-information": {"process": [{"flags":"10100100"}]}}
-
dstolfa
oh, you asked for **human readable**
-
phryk
that's even less human-readable if anything^^
-
dstolfa
oops
-
dstolfa
in that case, ps auxwww should do?
-
dstolfa
unless by process flags you mean something differently than what i'm assuming it means
-
dstolfa
oh, you mean -o flags, i really should read. in my defence, it's really hot here :|
-
phryk
:P
-
ivy
i really thought procstat(1) would be able to do this, but it cannot
-
ivy
or at least if it can i cannot find it in the manual page
-
phryk
i never really understood why there's ps *and* procstat in the first place tbh. is this some historical thing like apt/aptitude/apt-get on debian?^^
-
ivy
procstat can do more things, it's more like a debugging utility than a system management thing like ps
-
ivy
also ps is kind of terrible
-
ivy
like, even allowing for the two completely different option syntaxes, the way the options interact with each other just makes no sense
-
dstolfa
phryk: i can't really find a way to print them in human-readable form through the man page and a skim through the code, sorry :(
-
phryk
dstolfa: no problem – thanks for looking into it and confirming it. :)
-
phryk
mhh, is there really no way to use procctl in a jail? would like to use *_oomprotect for a few services in there.
-
phryk
i assume i could protect those by using jail_oomprotect="ALL" on the host, but that would cast a much wider net and as poudriere jails are the only reason the oomkiller is ever triggered, i'm not sure if that isn't just a recipe for an immediate deadlock.
-
ivy
how do i split a make(1) variable definition over multiple lines without it inserting a space after each backslash?
-
ek
ivy: Can you be more specific about what you're trying to accomplish? How are you attempting this now?
-
ivy
% printf 'FOO=bar\\\nbaz\n' | make -VFOO -f -
-
ivy
bar baz
-
ivy
i want the output to be "barbaz"
-
ivy
(the reason it's "bar baz" is that make(1) inserts a space after a line continuation using backslash)
-
CrtxReavr
dstolfa, FYI, auxwww does nothing different than auxww - no more than two w are recognized.
-
ek
Is there a reason you can't printf simply "barbaz" instead of including the \\'s and \n's?
-
ek
CrtxReavr: It was so ingrained in me to use "auxwww" over the years, I still find myself using it. Have to re-learn not to use the 3rd "w".
-
ek
ivy: Is "printf 'FOO=barbaz' | make -VFOO -f -" not going to work?
-
ivy
ek: for context,
reviews.freebsd.org/D50150 - i solved this another way but it would be neater if there was a way to do it directly in make
-
ek
ivy: Ah. Gotcha'. Hrm... That does make it a little more intricate. Can't just pipe to sed or something to remove the whitespace.
-
CrtxReavr
ek, trying to save the world 10 ms at a time.
-
ek
Well, I suppose you could, but you're looking for "cleaner"
-
ek
Yep.
-
ivy
i think just fudging it in the lua is neater than using sed :-)
-
ek
Yeah. I'm trying to fudge it via regex but I can't, for the life of me, think of a "clean" way to replace "\\\n" with a non-whitespace while still needing "\\\n" (or a replacement.)
-
ek
To be fair, "printf 'FOO=bar\\\nbaz\n' | make -VFOO -f -" Isn't terribly readable or clean anyway. Running "printf 'FOO=bar\\\nbaz\n' | make -VFOO -f - | sed 's# ##'" wouldn't make much of a difference.
-
ivy
well, yeah, but we're not actually using printf here, that was just the shortest method to demonstrate the make behaviour i was trying to solve
-
nullsector
-
ek
Right. I see the code in there. That's what I'm trying to adhere to. I'm not sure what a cleaner way would be to remove that whitespace while following that same syntax for that for loop.
-
nullsector
About EOL software link above.. I type this from EOL software.. Hexchat, lol. Yet to find suitable replacement :|
-
ek
nullsector: Yep. For a desktop/GUI IRC client, Hexchat still works just dandy. Shame they haven't continued to maintain it (much.)
-
ek
I'd imagine here in the next couple or so years, it'll start to choke due to GTK updates and such. Another end of an era.
-
CrtxReavr
May The Forth be with you. . . always.
-
ek
CrtxReavr: May the 4th be with you!
-
badkat
may 7th next ethereum hardfork $>:)|--^<
-
badkat
is anyone here is using only keepassxc secrets provider integration in D-Bus?
-
badkat
maybe some hint to migrate th gnomekeyring to this one? :P