Fails to build in Jail. |------------------------------------------| |No suitable Ethernet interface found. Most| |probably you are not running the FreeBSD | |OS. Please consider using this version | |of libdnet with the FreeBSD system | |------------------------------------------| ===> Script "configure" failed unexpectedly. Not sure if this is even useful to have in a jail, I am simply using a jail to temporarily run the host operating system (clone of ZFS snapshot) to install upgrades before rebooting to limit downtime as much as possible. The system is running on vmWare, and this is a requirement of open-vm-tools. This maybe fixable with options being sent to jail, However I was unable to determine from the log what it is doing to check for an Adapter.
I was able to look through more of the source files, and get it to successuflly build by passing the jail a custom devfs rules and adding the following to the defaults. This of course also required I pass the mount.devfs option as well. add path 'bpf' unhide add path 'bpf0' unhide
Created attachment 205439 [details] Disable build-time checking for /dev/bpf0 Could you, please, put the attached file into the port's directory as files/patch-configure.ac-bpf and try your in-jail build without devfs (and, thus, /dev/bpf*). If the build will be successful, will you be able to test the resulting port in the cases where BPF is used (by consumers of libdnet)? Thanks!
A commit references this bug: Author: amdmi3 Date: Tue Feb 16 20:02:33 UTC 2021 New revision: 565450 URL: https://svnweb.freebsd.org/changeset/ports/565450 Log: net/libdnet: disable useless buildtime check for /dev/bpf presence Device is not guarateed to exist at package building time. PR: 238523 Submitted by: rea@FreeBSD.org Reported by: dweimer@dweimer.net Approved by: maintainer timeout (onatan@gmail.com, 1.5 years) MFH: 2021Q1 Changes: head/net/libdnet/files/ head/net/libdnet/files/patch-configure.ac
Just to be sure I've checked that adding the patch results in binary equivalent package.
A commit references this bug: Author: amdmi3 Date: Thu Feb 18 21:23:40 UTC 2021 New revision: 565990 URL: https://svnweb.freebsd.org/changeset/ports/565990 Log: MFH: r565450 net/libdnet: disable useless buildtime check for /dev/bpf presence Device is not guarateed to exist at package building time. PR: 238523 Submitted by: rea@FreeBSD.org Reported by: dweimer@dweimer.net Approved by: maintainer timeout (onatan@gmail.com, 1.5 years) Changes: _U branches/2021Q1/ branches/2021Q1/net/libdnet/files/