00:28:20 after i have changed a *.c file under /usr/src, how can I just rebuild and update/install the needed stuff? is there a generic solution to this? a buildworld would rebuild everything... 00:30:42 deever: depends on which file you changed. if it's something in usr.bin/ for example you can just run 'make install' in the binary's directory. if it's a library or kernel change, you probably want to buildworld/buildkernel. if you're editing the source often, consider using make's meta mode to improve build times 00:31:40 (meta mode enables incremental buildworld without needing NO_CLEAN, which causes problems) 00:54:35 @#$%*!@#%@#&$!@$!$!#$!#$%*(&!($ 00:54:41 libc++ in base is... FML 00:55:14 jbo: having fun? :-) 00:55:28 lw, I think I suck hard 00:56:24 lw, https://coliru.stacked-crooked.com/a/5e6ce9f166a01d44 00:56:42 lw, does that compile with base clang++ for you? 00:56:50 (I'm on stable/14, so llvm 17.0.6) 00:58:22 jbo: works fine with "FreeBSD clang version 16.0.6" (releng/14.0) and "FreeBSD clang version 17.0.6" (main), as long as -std=c++20 is provided 00:58:36 I must be heavily retarded then 00:58:54 I encountered another (real) libc++ bug ealier (no kidding, can show later) 00:58:58 lw, I need some serious help. 00:59:03 jbo: fwiw you can just write 'return m_payload' because span has an implicit constructor from a contiguous container 00:59:17 lw, yeah but I don't want the full range 00:59:22 ah right 00:59:36 lw, wanna have some look at my "real" code? 00:59:44 sure 01:00:40 lw, help 01:00:42 lw, https://coliru.stacked-crooked.com/a/e929df837ae1df51 01:00:56 L200 01:02:43 jbo: make return type std::span because m_payload is const in that function 01:03:05 omfg 01:03:11 afk jumping out the window 01:03:15 lw: thank you! 01:04:06 lw... 01:04:16 fucking hell, I have been staring at this for almost an hour 01:04:34 thank you... (obviously) 01:05:04 lw, I do have another one for you, if you feel like it... 01:05:06 anyone here using pkgbase for keeping a STABLE branch system updated? I saw one caveat mentioned about how it can break the system if a package gets split 01:05:23 jbo: i am always up for questions about strange C++ issues 01:05:31 I'm a bit confused about why a metapackage isn't being used that specifies all other base system packages as a dependency 01:05:47 so that if a package gets split the new package will automatically get picked up 01:05:52 tm512: probably because then you couldn't remove the individual packages, which is part of the reason to use pkgbase. but this is a problem, yes 01:06:07 lw, it's not as much of a strange issue as it is lack of understanding (and skill) on my end. I am trying to work with static std::span and I am failing hard. 01:06:35 lw, https://coliru.stacked-crooked.com/a/274c085370315ea2 01:06:37 tm512: probably pkg needs a way to understand that if a new package is split out of an existing package, it should offer to auto install the new package. this would help ports, too (with subpackages) 01:06:55 lw, as per my understaind of std::span::subspan, it shouldn't use std::dynamic_extend if I specify the Count in my call to subspan() 01:07:19 lw: is there a specific mailing list to track that would give advance warning about this? I guess I could also get in the habit of snapshotting the system and using it as a fallback boot environment, should things go awry. good idea regardless of whether I use pkgbase or not 01:07:20 lw, don't even dare to bring up L52:L53 - it's an illustrative example :p 01:15:02 jbo: you're using the wrong overload of subspan() in make() which is returning a span with std::dynamic_extent, which is (std::size_t)-1, which trips your assert. do this instead: return make(msg_id, data.template subspan()); 01:15:11 jbo: https://en.cppreference.com/w/cpp/container/span/subspan 01:15:12 Title: std::span::subspan - cppreference.com 01:16:28 wtf 01:16:56 how did you figure that one out so quickly? do I truly suck so hard at reading the reference manual? 01:17:36 the clue is in the error message: test.cc:32:27: error: static assertion failed due to requirement '18446744073709551615UL <= message::max_payload': payload does not fit into message 01:17:56 and i happen to work with std::span a lot and know that std::dynamic_extent is (std::size_t)-1 which led me to the cause fairly quickly 01:18:11 the sad things is that I know that too and that I realized that that is what is happening 01:18:15 I just failed at figuring out why :( 01:18:42 tm512: i would assume that freebsd-pkgbase@ has announcements about this, but i only recently subscribed, so i can't say for sure 01:19:00 tm512: this might be worth bringing up on that list in case there's a better solution than on the wiki, the wiki can be out of date sometimes 01:19:52 jbo: btw, you might consider adding something like 'requires (PayloadSize != std::dynamic_extent)' in appropriate places to catch issues like this earlier :-) 01:20:11 lw, that is a very good proposal - I like it! 01:20:55 Psssst, that list has archives. https://lists.freebsd.org/archives/freebsd-pkgbase/. 01:20:56 Title: freebsd-pkgbase⊙Fo 01:22:19 lw, now that I look at this after you pointed it out it is so painfully obvious. 01:22:53 jbo: in return will you quickly review my new port before i submit it? :-) no need to build it, just have a quick look at the makefile 01:23:49 lw, gladly. I certainly owe you at least a commit now :p 01:23:59 jbo: https://www.le-fay.org/tmp/30d/0001-NEW-PORT-databases-postgres_exporter-PostgreSQL-metr.patch ... ty! 01:25:25 lw, I am quite new to the ports committer game as you know so... take everything I say with a big grain of salt. 01:25:47 lw, I wonder whether PORTNAME=prometheus-postgres-exported is the more fitting name (after a quick look at existing ports) 01:26:15 hmm, looks like where that is the case upstream was decent enough to name it as such tho 01:26:55 hmm, there's net-mgmt/prometheus-collectd-exporter and dns/prometheus-dnssec-exporter but most of the rest are just called foo_exporter... but i actually prefer the prometheus-foo-exporter name. i wonder if there's policy on this 01:27:33 there's also nfs-exporter and nginx-prometheus-exporter so apparently not :-) 01:28:17 (also there's both php-fpm_exporter and phpfpm_exporter? apparently these are actually two different ports that do the same thing...) 01:28:45 given that upstream is prometheus-community I wonder whether naming it prometheus- would indeed be "reasonable" 01:29:04 I'm a sucker for naming stuff. but I don't know whether we have any "real" guidelines on this that would apply without argument here 01:29:14 yeah... that is not consistent with existing prometheus-community ports but i might try submitting it under that name and see if anyone objects 01:29:57 lw, did you check whether upstream has some "special" requirements regarding go:modules, ? 01:30:46 how would i know? the upstream go.mod says "go 1.19", i guess that means 1.19 or later? https://github.com/prometheus-community/postgres_exporter/blob/master/go.mod 01:30:47 Title: postgres_exporter/go.mod at master · prometheus-community/postgres_exporter · GitHub 01:30:57 (which seems to be the oldest version in ports...) 01:33:27 that seems reasonable 01:33:50 lw, that port seems quite high-quality from what I can tell. nice work! 01:34:01 i don't know anything about go, this is my first time packaging a go project so i mostly just copied net-mgmt/blackbox_exporter 01:34:07 lw, can't speak much for GO_TARGET tho. also, I'm far from an expert. but this looks quite "polished" 01:34:10 jbo: ty! will open a bug and see what happens then 01:34:23 lw, I'll pick it up. drop the PR. 01:34:33 (if you don't mind the mentor review time...) 01:34:40 are you sure? i think you might have regretted offering to do that last time :-D 01:35:36 not at all! happy to help where I can. I just have to follow the usual proccedure. Also, this time around I assume (expect) you have done poudriere-testport on 13.2-RELEASE and 14.0-RELEASE :D 01:37:11 jbo: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276996 01:37:15 Title: 276996 – [NEW PORT] databases/postgres_exporter: PostgreSQL metric exporter for Prometheus 01:37:31 oh, i didn't change the name in the end. but maybe i'll mention that in a comment 01:37:52 I'll check with somebody more authoritive than me before I submit the review. 01:38:19 lw, so the libc++ bug I ran into earlier is this: template P> auto foo() { return P.first + P.second; } 01:38:42 and "shockingly": https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97930 01:38:45 Title: 97930 – pair is not a structural type 01:39:25 wait, libc++ or libstdc++? 01:39:45 which ever is the clang one - and the gcc one had the same issue :p 01:39:51 (according to that PR at least) 01:39:52 ah right 01:40:00 libc++ is llvm AFAIK 01:40:07 yeah 01:40:09 but my brain is totally fried after this stuff you just helped me out with 01:40:49 no, i was just confused because you linked to a gcc bug, but you mean gcc had the same issue... i guess they both implemented it in the same way 01:41:10 although actually no, libc++'s span doesn't have a base class 01:41:11 yeah, the "shockingly" comment was not very telling sorry 01:41:35 oh wait this is pair not span 01:41:45 yep 01:41:54 lw, I put wondering whether I should open a base PR regarding this on the ToDo list for tomorrow 01:42:06 yeah... struct _LIBCPP_TEMPLATE_VIS pair : private __non_trivially_copyable_base<_T1, _T2> 01:42:20 jbo: if it's libc++, better to open an upstream issue then open a src PR asking to merge the fix 01:42:29 that is reasonable 01:42:30 lw, do you feel like answering a basic C++ question that I should probably know? 01:42:36 always 01:42:49 i often don't know what i'm talking about though, perhaps don't trust my answers 01:42:56 lw, how come the compiler cannot deduct N automagically in this case? https://coliru.stacked-crooked.com/a/8577611f2fbb4012 01:45:13 good question: template< class U, std::size_t N > constexpr span( std::array& arr ) noexcept; 01:46:30 foo(std::span(a)) does work as i guess you already noticed.. i'm not sure why it can't find the appropriate ctor automatically. #c++ might know 01:48:13 I was playing with the thought of asking SO but I am not yet mentally ready for the abusive comments :D 01:49:10 jbo: if you're on discord, there's a discord server called "#include" which has several people very familiar with the technical details of C++, including a few WG21 members... i'd ask there, they are quite friendly 01:49:38 lw, I probably will, thanks! 01:49:42 https://www.includecpp.org/ 01:49:43 Title: #include <C++> - #include <C++> 01:50:00 lw, anyway, I was wondering if I have to write some deduction guide or whatever. but first wanted to understand why it doesn't "just work" 01:50:25 > #include is a global, inclusive, and diverse community [...] 01:50:28 jesus christ... 01:50:29 i don't think CTAD is allowed for a function? 01:50:45 why on earth would it NOT be inclusive and diverse by default? 01:51:15 jbo: have you used the internet before? 01:52:39 yes? 01:52:50 what's going on here pkg: manifest parsing error: error while parsing : line: 1, column: 0 - 'key must begin with a letter', character: '0x00' 01:53:40 uh, this is probably not right "/builds/obj/builds/src/freebsd/src/lf/amd64.amd64/worldstage/libcasper-dev.ucl" may be a binary file. See it anyway? 01:58:36 this is what happens when you use UFS (??) 01:59:01 dunno 01:59:03 only used UFS once 02:00:28 actually all of this is on zfs so that doesn't explain it. hrm. 02:07:33 lw, I really can't believe this... 02:07:43 lw, I was sitting all night at the office trying to figure these two problems out. 02:07:48 next time I'll just bug you immediately :p 02:12:53 lw, have you done coroutine shenanigans yet? 02:17:20 jbo: a little bit, yes. i wrote a coro-based kqueue wrapper for netd so you can do things like co_await read(...) 02:18:14 lw, I have to write a communication manager for CAN bus stuff. it's a request/response based protocol over CAN so I feel like I should take coroutines for a spin. 02:19:39 jbo: that seems like a reasonable idea 02:20:05 jbo: if it's any help: https://github.com/llfw/netd/blob/main/src/netd.async/netd.async-kq.ccm 02:20:07 Title: netd/src/netd.async/netd.async-kq.ccm at main · llfw/netd · GitHub 02:20:28 std::expected <3 02:23:33 where it gets more complicated (and i haven't addressed this here yet) is if you need to wait for multiple tasks, or make tasks cancellable 02:24:09 lw, yep. I need to be able to have timeouts. I did look into that briefly yesterday but didn't find a neat solution yet. 02:41:52 Mem: 532K Active, 352M Inact, 50M Laundry, 30G Wired, 113K Buf, 787M Free 02:42:00 532K active? that seems... low 04:01:39 if I opt to upgrade STABLE the old-fashioned way, I'm wondering how much time a from-scratch build would take on this laptop, has a 2-core/4-thread i3-10110U 04:02:20 I seem to recall building STABLE from source on my old i3-3225 was tolerable back in the 10/11 days 04:02:30 tm512: a long, long time, most of which will be spent building llvm. as a wild uninformed guess, 6-12 hours 04:04:22 with ccache and/or not running make clean before each build, am I still going to be waiting for LLVM to build most of the time? 04:05:02 ccache and meta mode helps a lot (especially meta mode), but at least on main it does want to rebuild llvm quite often. maybe less so on stable 04:05:49 I guess LLVM has gotten incredibly bloated since the last time I was using FreeBSD. sounds substantially worse than even GCC 04:06:49 I've got Dragonfly on my home server which requires building from source for any upgrade (even between stable releases), and even on my home server with its Atom D525, the build only takes like 8hr I think 04:07:15 like if I start it at night it should be done by morning 04:08:13 reminds me of building netbsd on m68k. i guess not much has changed since then :-) 04:08:41 it would be nice if you could use an out-of-tree llvm for building src, so you could just use a package 04:09:10 maybe there is a way to do this 04:10:12 huh, ran into this weird issue, wifibox seems to be blocking incoming ssh connections 04:38:40 also can't seem to use wpa_cli on the host even though wifibox appears to be forwarding the wpa_supplicant control sockets. instead, socat just seems to enter some kind of busy loop where I have to restart the wifibox guest in order to get it to stop 07:04:07 great, getting the "fault errors on pipe A" spam in my dmesg again 07:04:14 ls 07:06:05 went back to drm-515-kmod to check whether the bug with VT switching breaking acceleration was also identical there, and it seemed like the fault errors weren't happening anymore, but I guess that didn't last 07:06:17 back to 510 :/ 07:07:00 wish I could try out the 6.1 drivers, but it sounds like some LinuxKPI stuff has to be merged back from main into stable/14 before those will build 07:10:21 I guess I could set up a 15-CURRENT boot environment, give things a spin, hrm 07:25:28 "Normally, the kdc.conf file is found in the KDC state directory, /usr/local/var/krb5kdc." - /usr/local/var? really? 07:33:42 Are there any main Drawbacks to running FreeBSD as your Desktop OS when compared with Linux? 07:34:16 SponiX: worse hardware support, worse application support 07:39:36 although on the second point, linux emulation can help, really depends on the application 07:42:37 SponiX: if you run into stuff you have to compile yourself, expect some annoyances there on occasion 07:46:54 gaming in particular seems to be one area where Linux excels especially now with proton being integrated into steam, which from what I read, seems like that's still a bit rough under the Linuxulator. all of the results I saw were talking about Linux-native games iirc 07:48:42 with this most recent FreeBSD setup I've made, I just don't plan on doing much beyond some emulators and maybe classic Doom which is about all I expect this laptop's iGPU to be able to handle anyway, so it's less of a factor 07:49:48 i've been using freebsd on my desktop for about 3 months, but most of what i use it for is... developing freebsd, administrating other machines on the network which also run freebsd, and listening to music... so... that's probably not a very representitive sample. i have been meaning to try some games when i have spare minute though 07:52:41 I went Linux-free between like spring 2015 and late 2017, with FreeBSD on my desktop and OpenBSD on my laptop, and tbh I probably won't be doing that again 07:52:59 Linux is just about as convenient as computing gets without resorting to proprietary OSes 07:53:41 still love me some BSD though, and I keep coming back to it when I have an excuse to use it, lol 09:25:12 I've been doing FreeBSD on the desktop since 2000, but with the caveat that 1) I don't do a whole lot of gaming, and 2) when I do, I treat Windows like an appliance OS. 09:43:40 Last time I gamed was with OpenRA. It was not a great experience, but I'm not blaming that on the game nor the OS 10:06:02 I do pretty much all of my gaming on Linux. haven't run Windows, even as an "appliance OS", since 2010. though I don't play a whole lot of PC games, even though that's more than viable on Linux nowadays 10:12:16 I play too many games that'd either need an extra layer of emulation of some sort, and while I'm sure wine works great for some games, there's a _lot_ it doesn't work well for. 10:13:29 If developers en-mass eventually target something other than Windows, I might consider another appliance OS - but Linux would just become it, if it's Linux they're targeting. I can't be arsed to have to admin either Linux or Windows more than absolutely necessary. 10:13:47 Linux would just become another appliance OS to me* 10:14:43 I've had too many times in production resulting in me running Linux in anger, to ever consider it anything other than minimal-effort. 10:25:47 in the last few years Wine has progressed significantly. Valve's Steam Deck is based on Linux, and they obviously want as many games as possible to run on it, so they've put a lot of development into Wine 10:26:19 seems like more than half of the titles on Steam are either officially verified or reported as playable by users 10:28:18 already wasn't inclined on installing Windows even just exclusively to play games but now there's even less reason to consider it 10:31:24 also generally not a fan of dual-booting, so Linux is just the obvious choice for desktop use for me. at the end of the day, the differences between Linux and the BSDs are way more subtle than the differences between Windows or Mac vs *nix, my workflows mostly translate over 10:31:53 doesn't make a huge difference what's running under the hood 10:36:11 windows for the occasional use of Word or MS Visual Studio 10:37:20 Linux for software testing but VirtualBox and access to the GCC server farm also covers a lot 10:38:32 mac for listening to music, some youtube  and web browsing 10:38:55 rpi playing around for the moment 10:39:10 and FreeBSD for most development stuff at home 11:08:24 and z/OS for bookkeeping? 11:09:37 9front for pipes and vpn ;) 11:09:59 Andoid for gaming ;( 11:17:40 not quite 12:17:28 ArcaOS? 12:17:37 do i need to compile my own kernel if i want to add my own boot splash these days? 12:17:52 i know i got a reply to look at splash(4) :p but it doesn't work 12:21:16 By boot splash, what do you refer to specifically? 12:21:40 https://man.freebsd.org/cgi/man.cgi?query=splash&sektion=4&manpath=freebsd-release-ports#end 12:21:41 Title: splash(4) 12:21:45 an image to hider the entire boot process 12:22:19 basically when i try to change to the old terminal/tty boot just hangs 12:22:19 https://vermaden.wordpress.com/2018/03/29/freebsd-desktop-part-1-simplified-boot/ 12:22:20 Title: FreeBSD Desktop – Part 1 – Simplified Boot | 𝚟𝚎𝚛𝚖𝚊𝚍𝚎𝚗 12:24:09 Nixkernal: that's.. not at all helpful. 12:25:52 splash(4) is for screensavers at runtime, whereas the loader has its own thing going on (with files in /boot/), and the FreeBSD orb that's presented when the kernel initialization messages are muted requires kernel recompilation if memory serves. 12:29:04 I believe the default is /boot/logo-orbbw.4th for the loader, and I'm trying to remember which source is responsible for the muted logo. 12:31:05 Anyway, you can try adding boot_mute="YES" to loader.conf(5) to see if that's what you want, then we can figure out which file it is after that. 12:31:51 If splash(4) doesn't work as in it doesn't present a screensaver when configuured properly, that's a separate issue that should be reported on https://bugs.freebsd.org 12:31:54 Title: FreeBSD Bugzilla Main Page 12:32:40 The boot process on x86-like systems consist of a whole bunch of things, and there's only so much that FreeBSD has control over. 13:43:40 https://i.imgur.com/2WTIGkE.png 13:44:26 hi, when i want to open FreeBSD-14.0-RELEASE-riscv-riscv64.qcow2 with qemu, it doesn't resume like that ^ 13:45:35 https://bpa.st/UYEQ 13:45:36 Title: View paste UYEQ 13:45:43 i run with this parameters 13:46:37 any idea, any wrong with my parameters or env? 15:04:50 aaah yes, the good old: "The complexity of an attempted match against a regular expression exceeded a pre-set level." 15:24:16 Since you guy having problems RTFM -> splash -> In order to load the splash screen or the screen saver, 15:27:54 debdrup: That's the bootscreen your talking about, a splashscreen is like the spinning wheel on windows or the apple on mac's 15:28:20 You can see it in vermadens post 18:02:46 Ooo neat, christos@ is doing some work on mixer(8) and snd_uaudio(4). 20:40:54 Mounting from ufs:/dev/vtbd0p2 failed with error 2: unknown file system. 20:41:06 does that mean my kernel doesn't support ufs? 20:43:26 rtprio: or that you need to load ufs.ko 20:45:12 ah nuts 20:46:33 at i think that's right, i got this error yesterday as it happens but i don't recall the exact message 20:47:42 ufs_load="YES" was just the thing 20:47:42 yeah, clear sign you're missing `options FFS` (and probably related goodies) and haven't loaded the kmod 20:50:05 switching to MINIMAL kernel; 8mb vs 28mb 20:50:25 trick is i just have to find all i need in loader.conf first 20:52:55 fwiw, on bhyve i load virtio, virtio_pci, if_vtnet (these are in MINIMAL anyway, but i remove them from mine), efirt, nvme, ufs, and sysvmsg/sysvsem/sysvshm if running postgres 20:55:14 yeah, i just need to add that to my template when switching to the minimal kernel 22:37:04 has anyone had an issue with freebsd's libgss where it ignores $KRB5CCNAME when loading the kerberos ticket? 23:59:05 During daily periodic... lockf: /var/run/periodic.daily.lock: already locked 23:59:12 It tried to run twice? 23:59:33 Or the lock file was never cleaned up?