From nobody Sun Dec 26 02:10:24 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9DD66190151B; Sun, 26 Dec 2021 02:10:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JM45D2ckGz4SD7; Sun, 26 Dec 2021 02:10:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3B28B216F8; Sun, 26 Dec 2021 02:10:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BQ2AOt4049315; Sun, 26 Dec 2021 02:10:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BQ2AO9u049314; Sun, 26 Dec 2021 02:10:24 GMT (envelope-from git) Date: Sun, 26 Dec 2021 02:10:24 GMT Message-Id: <202112260210.1BQ2AO9u049314@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: bad9dded1f1a - main - net-p2p/prowlarr: tell .NET to disable ipv6 when system has not configured it List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bad9dded1f1a65e48975b4f45f114c788d801fc5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640484624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V0kjRjQ+BCMoZH5/AVD3IxkrAUIdjB7loojaMbKz0JA=; b=dPCc96n2pHB8fzlTrxptzmZ6BnFIhhrlvlTY06SqttBpN/9GUCyeDycMft5MLmVcrsY7lh yIHD8f3ErIW/gy2qEdldxLJzIkeQpKeTDoB2VMdaxfQbQRm+F+eNUytOzsh/TEPTSy0b4Q w9zTyA3PBXLvX1qhmrew0OmFPY2WnnZlwNbwF/1kKtr3TiAo0/qz+NO+NSuf9tuEeKNf1v ldRibnJWra74bwM2wArmN+b8ZMxxSUU5jeMQfzaU5FFKESivND/4GuO5VjB8g3dEq4HaQ5 o2zF8//x8/F4fRasBjHpY4ZQOgSRB7gnCGvZ3RBAijuMBroKu8l2IPHgXZDnsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640484624; a=rsa-sha256; cv=none; b=qIX/CdipkjugvyqLd60wEY+n3VN5e1HDYcjA/1K5PrMnKB7fZ6oVhJuauhz7cwQOeREhG0 4dw4k8UThAtTt97ipSeRP8oAQIc/WP59d9TwHDSBbPM9YCh+n+Q8bP1lVg2pUKdsWqbJxC GhaiVyJ3VHAQGXrzx2H19hzHNIoKwlutNO68N54RW48Al2GNVaG29zgnr1jGcOTccCJv8v 7jCQMQhofsQ/OeD9YtWurPU8QK3wsl9Lv7HaV4LIE7uni7h5dixIAtRZqVCfmj9lcQecsk TiiYXFaiT9nadT75pB2GmWWt98s/iZfDaRlXdZo97TY5mvhDBtMtqWoYoFMkjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=bad9dded1f1a65e48975b4f45f114c788d801fc5 commit bad9dded1f1a65e48975b4f45f114c788d801fc5 Author: Michiel van Baak AuthorDate: 2021-12-26 02:08:13 +0000 Commit: Hiroki Tagato 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 (maintainer) --- net-p2p/prowlarr/Makefile | 1 + net-p2p/prowlarr/files/prowlarr.in | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/net-p2p/prowlarr/Makefile b/net-p2p/prowlarr/Makefile index d50d01787699..8847845fc052 100644 --- a/net-p2p/prowlarr/Makefile +++ b/net-p2p/prowlarr/Makefile @@ -1,5 +1,6 @@ PORTNAME= prowlarr PORTVERSION= 0.1.8.1231 +PORTREVISION= 1 CATEGORIES= net-p2p MASTER_SITES= https://github.com/Prowlarr/Prowlarr/releases/download/v${PORTVERSION}/ DISTNAME= Prowlarr.develop.${PORTVERSION}.freebsd-core-x64 diff --git a/net-p2p/prowlarr/files/prowlarr.in b/net-p2p/prowlarr/files/prowlarr.in index db8c50e169dd..43e5bac3b626 100644 --- a/net-p2p/prowlarr/files/prowlarr.in +++ b/net-p2p/prowlarr/files/prowlarr.in @@ -40,6 +40,14 @@ start_precmd=${name}_precmd install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_pid_dir} fi + # .NET 6+ use dual mode sockets to avoid the separate AF handling. + # disable .NET use of V6 if no ipv6 is configured. + # See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259194#c17 + ifconfig | grep -q inet6 + if [ $? == 1 ]; then + export DOTNET_SYSTEM_NET_DISABLEIPV6=1 + fi + chown -R ${%%PORTNAME%%_user}:${%%PORTNAME%%_group} ${%%PORTNAME%%_exec_dir} rc_flags="-r -f -p ${pidfile_child} -P ${pidfile} ${%%PORTNAME%%_exec_dir}/Prowlarr --data=${%%PORTNAME%%_data_dir} --nobrowser >> /dev/null 2>&1 ${rc_flags}"