Bug 238523 - net/libdnet fails to build in jail
Summary: net/libdnet fails to build in jail
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-12 14:37 UTC by Dean E. Weimer
Modified: 2021-02-18 21:24 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (onatan)


Attachments
Disable build-time checking for /dev/bpf0 (1.47 KB, text/plain)
2019-06-30 19:01 UTC, Eygene Ryabinkin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dean E. Weimer 2019-06-12 14:37:37 UTC
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.
Comment 1 Dean E. Weimer 2019-06-12 17:45:32 UTC
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
Comment 2 Eygene Ryabinkin freebsd_committer freebsd_triage 2019-06-30 19:01:20 UTC
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!
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-02-16 20:02:58 UTC
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
Comment 4 Dmitry Marakasov freebsd_committer freebsd_triage 2021-02-16 20:04:13 UTC
Just to be sure I've checked that adding the patch results in binary equivalent package.
Comment 5 commit-hook freebsd_committer freebsd_triage 2021-02-18 21:24:34 UTC
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/