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