Bug 267646 - security/fragrouter: fix build on BPF-less jails
Summary: security/fragrouter: fix build on BPF-less jails
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: Juraj Lutter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-08 17:37 UTC by Robert Clausecker
Modified: 2022-11-11 20:34 UTC (History)
2 users (show)

See Also:
fuz: merge-quarterly?


Attachments
security/fragrouter: fix build on BPF-less jails (4.78 KB, patch)
2022-11-08 17:37 UTC, Robert Clausecker
fuz: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Clausecker freebsd_committer freebsd_triage 2022-11-08 17:37:15 UTC
Created attachment 237948 [details]
security/fragrouter: fix build on BPF-less jails

Such jails don't have /dev/bpf0, making a crucial configure test fail.
Fix the configure test to make the build succeed (e.g. on armv7).

While we are at it, take maintainership of this unmaintained port and
sprinkle in some patches here and there.

Tested with Poudriere on armv7 arm64 FreeBSD 13.1.
Please MFH if possible.
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-11-11 20:34:20 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=37cf0da23dbd0c1d91602d25e831a7dc0dde1224

commit 37cf0da23dbd0c1d91602d25e831a7dc0dde1224
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-11-11 20:32:38 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2022-11-11 20:32:38 +0000

    security/fragrouter: fix build on BPF-less jails

    Such jails don't have /dev/bpf0, making a crucial configure test fail.
    Fix the configure test to make the build succeed (e.g. on armv7).

    And while here, also assume MAINTAINER.

    PR:             267646

 security/fragrouter/Makefile                              |  5 ++++-
 security/fragrouter/files/patch-Libnet-0.99b__configure   | 15 ++++++++++++---
 .../files/patch-Libnet-0.99b_src_version.c (new)          |  9 +++++++++
 security/fragrouter/files/patch-attack.c (new)            | 10 ++++++++++
 security/fragrouter/files/patch-fragrouter.c (new)        | 13 +++++++++++++
 security/fragrouter/files/patch-list.c (new)              | 10 ++++++++++
 6 files changed, 58 insertions(+), 4 deletions(-)
Comment 2 Juraj Lutter freebsd_committer freebsd_triage 2022-11-11 20:34:35 UTC
Committed, thanks.