From nobody Fri Oct 30 22:28:04 2026 X-Original-To: python@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 4jGbMm3sTyz6xgTK for ; Fri, 30 Oct 2026 22:28:04 +0000 (UTC) (envelope-from bugzilla-noreply@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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jGbMl6xCwz4dmy for ; Fri, 30 Oct 2026 22:28:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793399284; 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=M0SYsdCnHKAjR+wyV5UJ9qvcXxNTz4DqUp4dw3Sm8Qk=; b=Vcpe13RWqqdxbbGJc2/DJ7iNxbbWEAzYomCQVF55eLa2B+B9Ys2BXsVibVCzHP1pHFjJ0K XFZu1yif4rwIoCgAq1p8vJJ3AWWBf1xKZWDl/I0WOY/5HczbOTMyydCJz8I9v+WDGdd2cp Iy54tpHl97lZpbWNgkfj+wFH3/OMAE/a6n5inGaiS2E6VWe0J6hx5/6dJn8vnwwEpjtOUN HCtrK2wR6J2lctPkogQOS1FAOmyGHC77NW1PcUsn+9Ch+XrmHYulSPDqsy+MsKkFg1bbZK Tta/GFb9sHk0ZA5hyrwauAZVjMTSGRULiT0EfG9Bd4KCOp3Ka3nj4nM6bm9OcQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793399284; b=ogm0zChPCBKW/+U075+pPqpbMa8bWRDX2FbMk0DJtWoBtnRyAZFyamLMim+SReXOBpG8LQ 5BJuer7S7EhasDvEMlSGTijPr3mML8K0ProQ2s9qz0Ktk/eTac5pG9g3w3q35815eBnBQ8 YmullxWHQs3VpizEGIaDl7Z10cc4qlhSMZJCM94zA5bpMTrIAebZynPaZD1VP1Afy3yLgJ NjvJqAEPBDq8oAj//fCNH298IgZjTMyhjKtFKpuFLFgHLhHboxeyvs5uCki18cUaXWpEnk aF5DUflF43JKZA3TWGLtRFcnKFvEt2GEtgCKWzSJdt0KRoAwYsjQhIMxoZAxBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793399284; 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=M0SYsdCnHKAjR+wyV5UJ9qvcXxNTz4DqUp4dw3Sm8Qk=; b=C39Xbg1JtOssOd25nfR8mGzDqJ4jamqu4bzi9eJp5PrP+zwHba/WwFbYd9rTCnjWYiiX0/ Sr/kosWcO/PVQQmW6I96vd+Bi3j2zGrSJ+UQIxU8X+SJpDWz2OnuRi/fSrlYwzn6XhnJrq 0I8+TjBGcgIox/V09WTRxXB+UEBwq+PtWNxiv5xbHIATCc8TR6f/nbzYPzr8JFrq4ckLXV /ZqtTJJLUJNSt28neWPBFWQVab5hkk5Yczb2y5WohTS/804B8aXPZ7py69BIk4WkiZvkIl MgGVs8wac7TRh15BEnKdRBuWxH2aATUKwe9T5MRyoDHeYgan2g8pRO+3gSu6cQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4jGbMl6Y05zmch for ; Fri, 30 Oct 2026 22:28:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 69UMS3M0022354 for ; Fri, 30 Oct 2026 22:28:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 69UMS3EF022353 for python@FreeBSD.org; Fri, 30 Oct 2026 22:28:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 300366] devel/py-jsonsir: Fix RegexEncoder on Python 3.7+ (re._pattern_type) Date: Fri, 30 Oct 2026 22:28:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: patrick@crandol.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Archive: https://lists.freebsd.org/archives/freebsd-python X-BeenThere: freebsd-python@freebsd.org Sender: owner-freebsd-python@FreeBSD.org List-Id: FreeBSD-specific Python issues List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D300366 Bug ID: 300366 Summary: devel/py-jsonsir: Fix RegexEncoder on Python 3.7+ (re._pattern_type) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: python@FreeBSD.org Reporter: patrick@crandol.com Assignee: python@FreeBSD.org Flags: maintainer-feedback?(python@FreeBSD.org) jsonsir.contrib.regexencoder, the RegexEncoder of devel/py-jsonsir 0.0.2, can't be imported on any Python since 3.7, including 3.12 (and 3.13): $ python3.12 -c 'import jsonsir.contrib.regexencoder' AttributeError: module 're' has no attribute '_pattern_type' jsonsir/contrib/regexencoder.py:12 uses re._pattern_type, which Python 3.7 removed; re.Pattern is the same type. The patch uses re.Pattern and bumps PORTREVISION. The core serializer and the other contrib encoders are not affected. Misc changes: - jsonsir.contrib.objectidencoder imports bson, which neither upstream nor the port declared; it now comes from the new MONGO option (pymongo, off by default) - the patches in files/ get a header saying what each one does and its upstream status (Description, Issue ID, Changeset, TODO) Impact: the only port that depends on it, devel/py-resource, imports exactly this encoder in its Mongo serializer; py-resource is proposed for deprecation in bug 300364 for other reasons. Tested: poudriere bulk -C -t on 15.1-RELEASE amd64, both with Python 3.12 and with DEFAULT_VERSIONS+=3Dpython=3D3.13: builds, check-plist is clean, and from a clean install jsonsir and jsonsir.contrib.regexencoder import and a compiled pattern round-trips through serialize() and deserialize() (unpatched: AttributeError re._pattern_type). The default package is unchanged by the new option; with MONGO enabled, the package depends on pymongo, and jsonsir.contrib.objectidencoder imports and round-trips a bson ObjectId. Upstream: 0.0.2 (2015-01-16) is the only release, and github.com/RussellLuo/jsonsir has had no commits since that day, so the port carries the fix as a local patch. --=20 You are receiving this mail because: You are the assignee for the bug.=