Bug 260645 - net-p2p/prowlarr Tell .NET to disable ipv6 when system has not configured it
Summary: net-p2p/prowlarr Tell .NET to disable ipv6 when system has not configured it
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: Hiroki Tagato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-23 16:41 UTC by Michiel van Baak Jansen
Modified: 2021-12-26 02:11 UTC (History)
1 user (show)

See Also:


Attachments
0001-net-p2p-prowlarr-Disable-.NET-ipv6-if-system-has-not.patch (1.68 KB, patch)
2021-12-23 16:41 UTC, Michiel van Baak Jansen
michiel: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michiel van Baak Jansen 2021-12-23 16:41:12 UTC
Created attachment 230353 [details]
0001-net-p2p-prowlarr-Disable-.NET-ipv6-if-system-has-not.patch

As stated in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259194#c17 .NET 6+ use dual mode sockets to avoid the separate AF handling.

This breaks on systems (jails) where ipv6 is not enabled.
This patch detects this on prowlarr starts and disables .NET ipv6 support if no ipv6 is configured.

testport ok
runs on my 13.0 system
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-12-26 02:10:47 UTC
A commit in branch main references this bug:

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

commit bad9dded1f1a65e48975b4f45f114c788d801fc5
Author:     Michiel van Baak <michiel@vanbaak.eu>
AuthorDate: 2021-12-26 02:08:13 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2021-12-26 02:08:13 +0000

    net-p2p/prowlarr: tell .NET to disable ipv6 when system has not configured it

    As stated in
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259194#c17
    .NET 6+ uses dual mode sockets to avoid the separate AF handling.

    This breaks on systems (jails) where ipv6 is not enabled. This patch
    detects this on prowlarr starts and disables .NET ipv6 support if no
    ipv6 is configured.

    PR:             260645
    Reported by:    Michiel van Baak <michiel@vanbaak.eu> (maintainer)

 net-p2p/prowlarr/Makefile          | 1 +
 net-p2p/prowlarr/files/prowlarr.in | 8 ++++++++
 2 files changed, 9 insertions(+)
Comment 2 Hiroki Tagato freebsd_committer freebsd_triage 2021-12-26 02:11:35 UTC
Committed, thanks!