-
K5KGT
evening
-
K5KGT
sorry for the part/join dawned on me to set up irssi on my main freebsd server, not one of my home boxes
-
K5KGT
there we go, installing screen / irssi and sasl on three machines helps the memory
-
_xor
"pidfd_open - obtain a file descriptor that refers to a process"
-
_xor
^-- Is there a call on FreeBSD similar to that? or at least which one(s) are closest that I could use to implement a function to mimic it?
-
Onepamopa
what are you trying to do exactly ?
-
_xor
Porting a project to FreeBSD. Two errors where it tries to call pidfd_open and waitid, both of which are Linux-specific. They seem relatively straightforward though (on the surface at least).
-
Onepamopa
-
VimDiesel
Title: pdfork(2)
-
_xor
That looks pretty close to what I need.
-
_xor
Though in the source of this project, right above where it invokes the call, there's a comment: "// pidfd_open sets `O_CLOEXEC` by default, without requiring a flag."
-
Onepamopa
you can set PD_CLOEXEC
-
Onepamopa
worth a shot.. at least you'd know if this works for you or not :)
-
_xor
Yup, I need to find all call sites though and make sure to do what it expects.
-
Onepamopa
you can always do a #IF __FBSD__ or some such ..
-
_xor
Though I'm now searching the full codebase and it might not even be calling the function. The library that implements it has a compile guard that errors on anything but Linux. I might just be able to patch-remove that.
-
Onepamopa
what are you porting exactly ?
-
_xor
Yup, that's what I might do. This is a combination of rust + c.
-
_xor
-
VimDiesel
Title: GitHub - JakeStanger/ironbar: Customisable gtk-layer-shell wlroots/sway bar written in rust.
-
meena
i'd hoped rust people would do better than putting if not Linux, fuck off. given all the tools at their disposal
-
Onepamopa
meena yeah..
-
Onepamopa
btw, where can I direct a very specific PF question? mailing list or bug tracker (even though it's not a bug..)
-
Onepamopa
since it's too long a text to write here, I added the question in paste:
bsd.to/wLnm
-
VimDiesel
Title: dpaste/wLnm (Plain Text)
-
parv
Onepamopa, Could ask on -questions list
-
Onepamopa
where, exactly? kindly provide the full email..
-
parv
Onepamopa, Subscribe to the list at
lists.freebsd.org/subscription/freebsd-questions ; after replying to confirmation email, you should be able to post to the list
-
VimDiesel
Title: FreeBSD Mailing lists: subscription for freebsd-questions
-
Midjak
I've just tried make delete-old-libs . It broke many packages on my system. Is it safe to use ? How can I see ports using a specific lib ?
-
Midjak
now when I try git pull I have error message about libss needed by libssh. But both are installed with the system. I have no port to rebuild.
-
rtprio
Midjak: what version of freebsd?
-
mushbox
what about make reinstall? also, i think your question is on the todo list (import the data into a database)
-
Midjak
rtprio, CURRENT
-
Midjak
mushbox, I don't understand. I need to make resintall all broken ports yes
-
rtprio
usually on updates all the packages/ports befor make-delete-old
-
Midjak
I did that
-
rtprio
pkg upgrade / portupgrade -a
-
Midjak
well with portmaster
-
Midjak
how can I fix this issue with libssl ?
-
rtprio
then you didn't install the world correctly
-
Midjak
I don't know I follow the guide
-
Midjak
make installworld
-
rtprio
ok, let's check; do you have /usr/lib/libssl.so.30 ?
-
Midjak
-
VimDiesel
Title: Chapter 26. Updating and Upgrading FreeBSD | FreeBSD Documentation Portal
-
Midjak
yes I have
-
rtprio
-
VimDiesel
Title: Chapter 26. Updating and Upgrading FreeBSD | FreeBSD Documentation Portal
-
Midjak
Yes I did
-
Midjak
You are sure it is due to me ?
-
rtprio
yes
-
Midjak
How do you know that ?
-
rtprio
because the freebsd developers are generally careful about these things
-
rtprio
let's verify; let's see ls -al /usr/lib/libssl.so.30
-
Midjak
I am carefull about thes thing too...
-
mushbox
it's easy to have unknowns in a first upgrade, kinda sounds like it
-
Midjak
YES rtprio I have libssl
-
rtprio
ok, and what exact error message are you seeing when you, git pull, you said?
-
RhodiumToad
if you built your ports before updating current from before the openssl 3.x merge to after it, then you'll need to rebuild a lot of ports
-
Midjak
ld-elf.so.1: shared object "libssl.so.111" not found, required by libssh2.so.1
-
RhodiumToad
right, you built your port when base ssl was still version 1.1.1
-
RhodiumToad
and it's since been updated to 3.x
-
Midjak
there is a package libssh2 but I have never installed it
-
RhodiumToad
that's irrelevant
-
rtprio
it's a required package for something else
-
RhodiumToad
you will need to rebuild the affected ports
-
rtprio
i thought you said you updated your packages/ rebuilt your ports?
-
Midjak
I answer rtprio RhodiumToad
-
rtprio
this indicates that you ... did not
-
Midjak
What is indicated I did not ?
-
Midjak
I never manage libssl nor libssh
-
rtprio
because you still have libssl errors
-
RhodiumToad
the fact that git is still expecting the old openssl version rather than the new one shows that it was not rebuilt
-
rtprio
doesn't manage if it's unmanaged, you still haven't updated it
-
Midjak
I just rebuilt git
-
RhodiumToad
if you're using ports, note that it's not enough to reinstall the port if the old build is still in /usr/obj, you actually have to rebuild it
-
RhodiumToad
e.g. do make do-clean first
-
RhodiumToad
(the ports makefiles won't rebuild the port if the old build is still there)
-
Midjak
make do-clean on git port or in /usr/src ?
-
RhodiumToad
in /usr/ports/devel/git
-
rtprio
* in /usr/ports ^, i think toad means?
-
mushbox
portmaster has a force rebuild option too
-
rtprio
i'm a fan of `rm -Rf /usr/ports/*/*/work`
-
mushbox
yeah, for some reason make clean doesn't always remove everything
-
Midjak
BTW the guide doesn't give the same step in different section
-
RhodiumToad
I'm a fan of using WRKDIRPREFIX to not pollute /usr/ports with work/ dirs
-
Midjak
in 26.6.1 and 26.6.4
-
RhodiumToad
e.g. using WRKDIRPREFIX=/usr/obj lets you do rm -rf /usr/obj/usr/ports
-
rtprio
that's not a bad idea either
-
RhodiumToad
also throw portmaster away and use poudriere
-
mushbox
i might try out WRKDIRPREFIX=/tmp
-
RhodiumToad
(and I say this as someone who was an avid portmaster user back in the day)
-
rtprio
i've never used portmaster, but current packages seem fine, and portupgrade works although i have mixed feelings about ruby
-
Midjak
So if i sumarize I need to rebuild all port after a kernel upgrade. That's it ?
-
rtprio
Midjak: it's not needed all the time, but a good habit to be in
-
Midjak
it's just irrealistic
-
mushbox
if it's a major version upgrade the ABI has changed
-
RhodiumToad
CURRENT explicitly does not have a stable ABI, which means you need to rebuild ports frequently, any time _FreeBSD_version changes
-
mushbox
otherwise you don't need to
-
RhodiumToad
if you want a stable ABI that's what -stable is for
-
Midjak
posrtmaster is not a choice it's the tool the gui recommands. So when you are new with freebsd you follow the guide.
-
Midjak
the guide
-
rtprio
Midjak: you just rebuild the whole os, and updating the packages is unrealiastic?
-
rtprio
current is not for everyone
-
Midjak
yes rtprio you have the point
-
Midjak
but current is installed
-
rtprio
i've had some rather collosal current failures
-
Midjak
update all package yes it's unrealistic, sure....
-
Midjak
Just firefox... LOL
-
rtprio
not at all, not with the many tools to do it for you
-
Midjak
if I had to do it all over again, I'd install the 13 with poudriere
-
Midjak
but now it's a current with package installed with portmaster
-
mushbox
idk, can you upgrade to an older version?
-
rtprio
you can stop using portmaster
-
Midjak
je préfèrerai pas
-
Midjak
I'd rather not
-
Midjak
sorry
-
vishwin
unfortunately more and more software referenced in ports assume building in clean/isolated environments anymore
-
Midjak
stop using portmaster I plan to do that taking the time.
-
Midjak
because i don't know how to deal with already installed package
-
rtprio
you could, also use packages, i've not a had a problem with them;
-
Midjak
but I plan tobuild all port from poudriere indeed
-
rtprio
that's great
-
mushbox
one problem i have with poudriere, how do you wipe out old jails?
-
RhodiumToad
old?
-
mushbox
unused
-
RhodiumToad
poudriere jail -d
-
Midjak
when I started freebsd (near 2015) I used pkg but I have quickly to switch to ports because version were outdated
-
mushbox
oh with poudriere... does that clear the file system too?
-
RhodiumToad
what do you mean?
-
mushbox
i mean if you rm -rf a jail you can't get rid of it
-
RhodiumToad
what poudriere does is to create a bunch of jails, use them to build the list of ports you gave it into packages, then delete them all
-
RhodiumToad
nothing is left behind but the packages and the logfiles
-
mushbox
yeah, i mean the jail itself on the file system
-
Midjak
> right, you built your port when base ssl was still version 1.1.1
-
Midjak
How does libssl upgrade from 1.0 to 3.0 in few days ?
-
RhodiumToad
the change was merged into CURRENT in one commit? you can check the date
-
Midjak
ok just try to understand
-
mushbox
it's part of what delayed 14 release
-
RhodiumToad
it happened around June 23rd
-
Midjak
How do you search that RhodiumToad ?
-
Midjak
I think I could be from git command line but it doesn't work
-
Midjak
I tried from web interface but I don't find
-
RhodiumToad
I just did a git log and searched for openssl
-
Midjak
yes the web interface in not usable
-
Midjak
not for a project like that anyway
-
vishwin
since this came with an ABI version bump, look at the file history of sys/sys/param.h
-
vishwin
good idea to bookmark it when using -CURRENT lol
-
Midjak
So if I try to sumarize
-
rtprio
vishwin: oh, good idea
-
Midjak
for upgrade. make buildworld then upgrade all port then make buildkernel and next steps. Am I right ?
-
rtprio
no, not right
-
rtprio
update all ports at the end
-
Midjak
what are the steps so ?
-
rtprio
then delete old libs
-
Midjak
ok
-
Midjak
so I need to rebuild only when I want clean /usr/obj ?
-
Midjak
well ok for that (I will do that)
-
Midjak
for now how can I fix my issue ?
-
rtprio
when you want to clean /usr/obj you can just rm -Rf /usr/obj/* ; i don't understand your question
-
rtprio
issue? we already told you, rebuild all ports or update all packages
-
Midjak
-
VimDiesel
Title: Chapter 26. Updating and Upgrading FreeBSD | FreeBSD Documentation Portal
-
Midjak
I never try to remove /usr/obj
-
rtprio
Midjak: "Programs which were still using those old libraries will stop working when the library has been deleted. These programs must be rebuilt or replaced after deleting the old libraries."
-
rtprio
it says it right there, what we've been trying to explain to you
-
Midjak
I didn't ask you about this
-
Midjak
my issue was that: now when I try git pull I have error message about libss needed by libssh. But both are installed with the system. I have no port to rebuild.
-
rtprio
libssh is a port
-
Midjak
I didn't use it
-
Midjak
I never installed ti
-
Midjak
ssh is installed with freebsd
-
rtprio
you know that ports can install, more ports
-
Midjak
you know it ask you at the end pf the process
-
Midjak
install process
-
rtprio
firefox, as you mentioned, has like 140 dependant ports. they _all_ need updated if you want your shit to work
-
Midjak
sorry but it's not clear.
-
Midjak
yes I will see for firefox
-
Midjak
but it's not my problem right now
-
rtprio
i don't understand what the problem is. you need to update the ports you installed and all the ports you didn't install.
-
Midjak
git pull doesn't work
-
rtprio
i don't understand what the problem is. you need to update the ports you installed and all the ports you didn't install yourself that are installed on the system..
-
Midjak
I need to pull the /usr/port
-
rtprio
here's an idea, to get you going again, try `pkg update; pkg upgrade git`
-
rtprio
you also don't need the latest git, you just need to rebuild git
-
rtprio
OR ; `cd /usr/ports/devel/git; make clean; make install`
-
Midjak
I did that. I just tried pkg install and got the same error
-
rtprio
do the other one; i forgot that pkg rquires libssl also
-
Midjak
RhodiumToad, just reread your answers what is make do-clean where I must do that ? Is it documented somewhere ?
-
Midjak
rtprio, libssh2 ?
-
rtprio
clean is documented in `man ports`
-
RhodiumToad
make clean in a port dir is recursive, it cleans the dependencies too
-
RhodiumToad
make do-clean just cleans the current port
-
Midjak
ok I did that too
-
Midjak
what is weird is libssh2 is not installed
-
rtprio
how do you figure?
-
Midjak
when I try whereis libssh2 I see the port but not the path where the lib should be installed
-
rtprio
that's not how whereis works, iirc
-
rtprio
pkg-static info libssh2
-
Midjak
yes I found it
-
Midjak
it's a curl requirement
-
Midjak
I reinstall curl
-
Midjak
but problem persists
-
Midjak
I could remove libssh2 but this removes 76 dependant packages.
-
rtprio
thats why
-
rtprio
as i have said several times now
-
rtprio
rebuild all packages
-
Midjak
just as I have said several time, SSH and CURL are installed WITH Freebsd. they are not pacakages ?
-
rtprio
they are both
-
rtprio
curl is not installed with freebsd
-
rtprio
ssh is both
-
Midjak
SSH
-
Midjak
but it's good it works
-
rtprio
you could have been done 20 minutes ago
-
Midjak
Do you know how I fixed it ?
-
debdrup
It turns out that if you're planning to do pkg upgrade -f, it's probably a good idea to do pkg update -f first, even if pkg-upgrade doesn't tell you to do so. Who knew.
-
rtprio
at this point i'm starting to not care givien your propensity for not following along
-
mushbox
to continue accept rebuilding all packages ;p
-
Midjak
Well I don't follow you right now
-
rtprio
glad it works.
-
Midjak
thanks I will consider to swtich to 13
-
Midjak
poudrier is on going
-
puddinghead
hello
-
la_mettrie
hi
-
puddinghead
ive been considering on making some sort of shell script collection recently
-
puddinghead
since ive been using freebsd for almost two months and have managed to even start thinking of mantaining some ports i might as well make something that will allow people to set up a desktop with ports easily
-
rtprio
i seem to recall something like this existing already
-
puddinghead
yeah i know
-
puddinghead
but this one would be more suited towards port development and stuff like that
-
puddinghead
like, setting up a vm for port building and such
-
rtprio
there are tools for that already as well
-
puddinghead
ooh, thats cool
-
puddinghead
i guess ill just stick with my original idea of just making a script that should reinstall all the configs i need for my own desktop in case i end up accidentally formatting my drives again
-
puddinghead
(which happened to me time ago
-
puddinghead
(like, a few weeks ago, no backups either)
-
rtprio
there's tools for that also; puppet, salt, ansible, etc
-
puddinghead
yeah i know about ansible and all that
-
RhodiumToad
they can be kind of overkill
-
puddinghead
agreed
-
RhodiumToad
I have a setup script that I use on my own machines
-
puddinghead
id rather have something i can execute almost instantly after installing
-
rtprio
you could just make a carefully constructed tar and extract it
-
RhodiumToad
it's a bit more complicated than that if you want to cope with changes in the OS
-
puddinghead
yeah
-
puddinghead
i want my script to at least support all the versions freebsd hasnt eoled yet
-
RhodiumToad
my script does a lot of files by just using cat <<EOF so that they can be edited easily in the script
-
puddinghead
damn thats cool
-
RhodiumToad
some files like host keys are restored from an encrypted archive
-
puddinghead
i was thinking of just copying some config files lol
-
RhodiumToad
passwords are set from an encrypted data block in the script
-
puddinghead
damn thats cool
-
puddinghead
i actually got bhyve working for a windows vm which ill be using for photoshop like yesterday too
-
RhodiumToad
(though if I go for a long time without having to use it, there is the risk of forgetting the password)
-
puddinghead
yea
-
puddinghead
i have a thing to say though, does bhyve support resolutions higher than 1024x768? i heard it could go to 1920x1200 once
-
michaeldexter
puddinghead: Have you tested it?
-
RhodiumToad
"maximum is 1920x1200 pixels" says the manpage
-
RhodiumToad
it's only a framebuffer for vnc, so very high resolutions wouldn't perform well
-
michaeldexter
If Windows, simply enable RDP/Desktop Sharing from within Windows.
-
RhodiumToad
I guess that works too (I have no interest in windows myself)
-
puddinghead
@michaeldexter testing what?
-
puddinghead
and yeah that makes sense
-
puddinghead
i guess i could try using desktop shraing to get at least 1920x1080 then
-
michaeldexter
puddinghead: Simply crank it up in your configuration or try RDP. Or both!
-
puddinghead
that sounds cool!
-
puddinghead
will try after i get home then! (and also finally set up my freebsd 14.0 vm for port building lol9
-
puddinghead
i will admit one of my favorite things about freebsd how easily i can get rid of stuff like pulseaudio
-
puddinghead
if i used linux itd a real struggle to get these things out, like for example i still have dbus installed on my desktop in theory but in practice its never enabled
-
puddinghead
if i still used linux id have been forced to use it as soon as i set up the desktop environment