-
mns
In BSD Make, I want to do something like: ID = $(expr $(cat /path/to/counter_file) + 1). I have something like this: ID = $(expr `cat ${COUNTER_FILE} 2>/dev/null || echo 1` + 1) and ID comes back as empty
-
ivy
mns: you are probably looking for: ID!= expr `cat ...
-
ivy
see "Variable assignment operators" in make(1)
-
mns
ivy: thanks. let me look at htat
-
mns
*that
-
SponiX
rwp: a lot of folks are forgetting to do a fresh install of /usr/ports/graphics/drm-XX-kmod when doing the 14.2 to 14.3
-
SponiX
need to comment out drm-kmod in rc.conf or loader.conf (or both), so you can build the new drm-kmod and load it by hand the 1st time to verify that it is working correctly
-
mason
SponiX: Shouldn't be a matter of forgetting, especially for folks only using binary packages.
-
oxbar
Thanks rwp
-
SponiX
Yeah, I've heard that starting with 14.3 there is a "kmod" repo that drm-XX-kmod can be installed from. I have no experience with this so far though
-
mason
There's discussion here, but I don't see any definitive links:
wiki.freebsd.org/KernelModulePackages
-
mason
-
SponiX
FreeBSD-kmods: {
-
SponiX
url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest}",
-
SponiX
mirror_type: "srv",
-
SponiX
signature_type: "fingerprints",
-
SponiX
fingerprints: "/usr/share/keys/pkg",
-
SponiX
enabled: no
-
SponiX
priority: 1
-
SponiX
}
-
oxbar
I’ll google it… thanks
-
kevans
I believe the appropriate kmod repo config made it into /etc/pkg/FreeBSD.conf on 14.3
-
kevans
-
kevans
(I believe -> I note that)
-
oxbar
kevans: why is FreeBSD changing everything on us ? I’ve installed FreeBSD about 20 times and it just works
-
kevans
?
-
mason
kevans: cool, ty
-
mason
SponiX: Also: cool, ty
-
oxbar
In FreeBSD.conf I’m going to change it to latest .. how do I change the kmod part to latest ?
-
kevans
looking at the two files I linked to, it would seem you can just s/quarterly/latest/g and be happy
-
oxbar
Ok
-
tuaris
I would have chosen "Kernel ABI compatibility" as the way forward. That would have been the right way to fix the problem.
-
mason
Hm, so, asking for "drm-kmod" appears to want to give me the same old drm-kmod, despite the kmod repo. Is there some trick?
-
mzar
upgrade: pkg upgrade -r FreeBSD-kmods"
-
kevans
tuaris: you're welcome to try and provide the Q/A necessary to get there
-
kevans
if it were an easy problem to solve for the modules that commonly have problems then we would've just done that
-
mason
mzar: TIL, ty
-
oxbar
-
rwp
Woot!
-
antranigv
sup y'all?
-
nwe
If I want to 3d-print stuff from FreeBSD what do I need Freecad, and another program to convert models to gcode-format ?.. does someone know any good program for that?
-
kevans
nwe: I haven't 3d printed in a while, but we have cad/cura for slicing that worked pretty well last time I used it
-
» |cos| is of the experience that "all" of the slicers are pretty much win32/macOS/Linux only. One can perhaps get something working with huge effort, but that kind of software typically doesn't even merge bugfixes.
-
» |cos| would love to be proven wrong, but my experience has not been a walk in the park so I've always reverted to slice on some other machine.
-
kevans
odd, I don't recall putting in *that* much effort to tweak it for my machine
-
kevans
pretty much just worked
-
kevans
find a relatively close profile, twiddle there fiddle over here
-
Zerock
I'm having a network routing issue with a bhyve VM, but I'm not certain it's a bhyve-specific issue. I have two NICs on the host, and I made a second virtual NIC to attach the secondary one to the VM. The problem is that return traffic is not making it back to the VM. If I use tcpdump, I can see what's happening: the traffic reaches the target, the target does an ARP query to get the ethernet
-
Zerock
address of the VM's virtual NIC, then it sends a reply as expected. However, on the VM host, I can't see the ping reply packet in tcpdump, and I suspect this is because the hardware MAC address differs from the VM's, so it's ignoring it. What I don't understand is why this isn't a problem with the primary NIC which is working fine. The secondary NIC is different hardware, and I had to install a
-
Zerock
kmod to get it to work, so my current suspicion is that this may be a hardware or driver limitation, but I am inexperienced in these things. Any ideas?
-
ivy
Zerock: does it work if you enable promiscuous mode on the second nic? e.g. ifconfig ix1 promisc
-
Zerock
let's see
-
Zerock
no
-
ivy
how did you attach the nic to the bhyve vm?
-
Zerock
I'm using vm-bhyve. I made a virtual switch for the secondary NIC and attached that switch to the VM.
-
ivy
ah, then it created a bridge for you. if you run tcpdump on the bridge, do you see the expected traffic?
-
ivy
annoying that atf-c++ doesn't support std::wstring in ATF_REQUIRE_EQ...
-
Zerock
looks the same as tcpdump on the real nic
-
Zerock
I see the ping requests going out as well as some ARP queries from the VM
-
ivy
Zerock: okay, then you should have a tap interface in the bridge, which is the VM's NIC, what does tcpdump on the tap show?
-
Zerock
hmm.. on the tap I'm only seeing those ARP queries, not the ping requests
-
Zerock
that may be a coincidence though; it is inconsistent when I see the ping requests on the real nic also
-
ivy
hm, if you (sometimes) don't see the reply on the real nic that suggests the problem is in the nic itself or in the network
-
ivy
what hardware is the second nic?
-
Zerock
AQtion AQC107 NBase-T/IEEE 802.3an Ethernet Controller [Atlantic 10G]
-
ivy
do you happen to have another NIC you could install temporary to see if it's a problem with the hardware/driver?
-
Zerock
I don't think so
-
ivy
i feel like buying a $10 ix(4) off ebay may be the easiest way to test this, especially if your existing nic works
-
Zerock
yeah that's not a terrible idea
-
Zerock
oh, I just noticed
-
Zerock
<ivy> hm, if you (sometimes) don't see the reply on the real nic
-
Zerock
I *never* see the reply on the real NIC. Only sometimes I see the *request*
-
Zerock
I can only see the reply if I tcpdump the nic on the *target* machine
-
ivy
that's definitely a NIC problem, i would say. it sounds like perhaps the driver is not honouring the PROMISC flag correctly
-
ivy
(bridge(4) sets PROMISC on every member interface so it can receive traffic for other MAC addresses)
-
Zerock
right, that stands to reason
-
oxbar
Does FreeBSD have a poweroff option ? I do shutdown -h now but it leaves my laptop on
-
ivy
oxbar: `shutdown -p now` or `poweroff`
-
oxbar
Nice
-
ivy
i added a port for the ACME client i wrote, in case anyone is interested:
cgit.freebsd.org/ports/commit/?id=4…ef6e182a4505171518025cc855b593cd498
-
oxbar
anyone seen this
dpaste.org/dk3Uo im trying to get audio working
-
oxbar
/dev/sndstat and dmesg |grep pcm show things like normal
-
oxbar
-
oxbar
-
mzar
oxbar: does freebsd seem useful ?
-
nwe
kevans: is cura in ports or?
-
ivy
nwe: cad/cura
-
nwe
ivy: ah thanks!
-
mzar
pkg install cad/cura
-
nwe
my 3d-printer will arrive in a couple of weeks so :P
-
oxbar
mzar: i realized in freebsd it works or it dosen't lol
-
oxbar
no grey area
-
mzar
nice conclusion
-
mzar
FreeBSD is not any shady OS
-
nwe
also another question regarding laptop lid/close and dont set computer while external monitor is connected.. Are guys using devd with custom script to detecd if external monitor is connected?
-
ivy
mzar: are you sure? who is CSRG, really? and i heard they'll let just about anyone have a commit bit
-
mzar
the guys at CSRG have not had much work lately, mining jobs are getting safer
-
mzar
if you think that they sometimes rush out to hand out commit bits to keep the average age and gender parity, that's your opinion. I know that old committers are still active, and can spot them on the mailing lists
lists.freebsd.org/archives/freebsd-hackers/2025-June/004610.html
-
ivy
uh, "age and gender parity"? that was supposed to be a self-deprecating joke, not some sort of sociopolitical commentary
-
mzar
ha.. same here
-
mzar
we can only joke here, the OS is rock solid, so people no longer seek for support and channel is idling
-
Alver
Oh, I can help with that... I'm trying to build tensorflow on 14.3... which is unsupported on so many levels.
-
Alver
Already getting the _build system_ to _build_ on FreeBSD is a quest
-
ivy
what's a tensorflow
-
Alver
ivy: OSS "machine learning".
-
Alver
Grody. After finishing all 3647 files to be built in order to get the build system... it fails. :°)
-
crb
I have some zfs filesystems when I do get for properties many have values of YES or NO but the values field list on | off as values, I find that interesting