From nobody Wed Jan 7 14:10:16 2026 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 4dmVL06S3Gz6MvFK for ; Wed, 07 Jan 2026 14:10:16 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dmVL03Rl6z3bH3 for ; Wed, 07 Jan 2026 14:10:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767795016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=64LOFF29EppwOlDr7Zcy+Rgqig+fgq8y3Kb+otwy8KM=; b=s8IHQOKYk6j++5VwcSTQyE7ZVo+HC8KR9BnoapW3eGinuh8tbDFcyLdF3T9kVnFg/HylWX joJH8exL3doTNYa4UCdotrPC+m/w2EiYHGGnUQwCFCTV5vK+XXo2LipV3q5S2zRxD1oHtx E32fsjh3TQnLQdgLHr+6z2F968FBj1FooGQ4Dpw8mMutqqqbYB2Qdg5vVj430PwZ73p+zN oxPz/Wm1oLPTIo7Ad7lYmKMPZ1hSG8v5eSCc8Lfr5NM4p9NWTrAHEanSoLknOknVlOjAEq D3a32YAW2OZfXpQ+mcqNe/QBxkNni58AVEJQR3b2Sy0vXmKGPWr5wDlrgh1ofA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767795016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=64LOFF29EppwOlDr7Zcy+Rgqig+fgq8y3Kb+otwy8KM=; b=tHrZK7pQYFsWRTkSObhiHn+AkqdfE9seHdkne+tqs0Yab0PxIlcN5cFv/aYukozs8GRtrf hYdQ4pGsE+a1gPGeZ5/XA9HUOik8vjG0gFVYDVTG+hqOnjxqyP9p3col7e5neNKUd/axHh Cho2BCwdNKadHeDLyGpe8mTav02DeiqTPwk4JOuRIZdRwQcioWHwx2yhoLzfnpOdVQ8lu6 gcsDYW1lu17n9iPqCWtwURFf2EURXzZKJk8fNWRhN5D7b4Wln2QbAnjWTaUgydnyuIrknj bP6L4t539yjM6QFGGi44+tf/xdmpdKAImyWg0CtK/rqWY+S/fMU0VcbJhuw/Nw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767795016; a=rsa-sha256; cv=none; b=uNS3YWGVZLqlYRCHXuoGCIXYZSlZBZlO8MpzjCM0f83BjXYzrG8LgT5xao4doAlngo05U5 VyTeOX4ypN8uC/1vkiDawpMTppT1oCOk7ygRCSZZpPue4xgSlT12MuJ5tvG9ct3nZsMRJA JUvfkG5y5aHrsqvKtOCebHYAh/3JcsVGXnUvwVlFPrz+tXK78gpbbv7oOi+b/HgYk84lWU RON9U2YvAXeTs3HytVkpNKp9vcG5gPCtK2+sdSySc/tZeczEPv14TF5Tnaf4730/xA1xwj 2GAUaCa0HP0CGRF2Nr1vNtRQbiWYScOadr0rKaGRqSOC8PymbUkSC0bGvQAMXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dmVL02n6YzwDR for ; Wed, 07 Jan 2026 14:10:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 8f0e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 07 Jan 2026 14:10:16 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Cc: Jason W. Bacon From: Nicola Vitale Subject: git: f49ababc2946 - main - textproc/py-mdformat: Add a patch to fix program crashing 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nivit X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f49ababc29460ebc5f980e996c75e2d366b76047 Auto-Submitted: auto-generated Date: Wed, 07 Jan 2026 14:10:16 +0000 Message-Id: <695e6948.8f0e.79024b70@gitrepo.freebsd.org> The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=f49ababc29460ebc5f980e996c75e2d366b76047 commit f49ababc29460ebc5f980e996c75e2d366b76047 Author: Jason W. Bacon AuthorDate: 2026-01-07 14:02:50 +0000 Commit: Nicola Vitale CommitDate: 2026-01-07 14:08:55 +0000 textproc/py-mdformat: Add a patch to fix program crashing - mdformat throws an exception when trying to access /net, a directory used only by autoconf with special attributes. See https://github.com/hukkin/mdformat/issues/565#issuecomment-3697204512 - Bump PORTREVISION PR: 292021 --- textproc/py-mdformat/Makefile | 2 +- .../py-mdformat/files/patch-src_mdformat___conf.py | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/textproc/py-mdformat/Makefile b/textproc/py-mdformat/Makefile index 989ab1be270d..b7c930b72f33 100644 --- a/textproc/py-mdformat/Makefile +++ b/textproc/py-mdformat/Makefile @@ -1,7 +1,7 @@ # XXX: see below (post-patch target) before updating PORTNAME= mdformat DISTVERSION= 0.7.22 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= textproc python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/textproc/py-mdformat/files/patch-src_mdformat___conf.py b/textproc/py-mdformat/files/patch-src_mdformat___conf.py new file mode 100644 index 000000000000..772ec1c6678b --- /dev/null +++ b/textproc/py-mdformat/files/patch-src_mdformat___conf.py @@ -0,0 +1,22 @@ +--- src/mdformat/_conf.py.orig 2025-01-30 17:57:20 UTC ++++ src/mdformat/_conf.py +@@ -1,6 +1,6 @@ from __future__ import annotations + from __future__ import annotations + +-import functools ++import functools, os + from pathlib import Path + from types import MappingProxyType + from typing import Mapping +@@ -35,7 +35,10 @@ def read_toml_opts(conf_dir: Path) -> tuple[Mapping, P + @functools.lru_cache() + def read_toml_opts(conf_dir: Path) -> tuple[Mapping, Path | None]: + conf_path = conf_dir / ".mdformat.toml" +- if not conf_path.is_file(): ++ # conf_path.is_file() throws an exception when trying to access /net, ++ # a directory used only by autoconf with special attributes. ++ # https://github.com/hukkin/mdformat/issues/565#issuecomment-3697204512 ++ if not os.path.isfile(str(conf_path)): + parent_dir = conf_dir.parent + if conf_dir == parent_dir: + return {}, None