[Bug 242896] lang/python*: Fail to package in poudriere (testport) when cross-building

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242896

--- Comment #7 from Christian Ullrich  ---
(In reply to Mark Linimon from comment #6)
> Is it still worth attempting to work on this bug report?

To be honest, I don't know. I can say that the secondary symptom fixed by (what
remains of) my patch, i.e. the /nxb-bin paths in the .opt-2.pyc file, is still
there in 3.8 and 3.11 (so probably in the two in between as well).

The primary symptom, staging violations, does not happen anymore, but I don't
know why.

Some trivial tests to see if it causes something not to build or run have not
turned up any problems either.

My local overlay does not have anything like this patch in it, and certainly
has not in years; I would have noticed any actual problem affecting my own use
of Python on aarch64.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


[Bug 268283] databases/py-sqlite3: switch away from distutils

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268283

--- Comment #22 from commit-h...@freebsd.org ---
A commit in branch main references this bug:

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

commit 7e633595cf9df9a557a7d3b421b73e74ab0c057f
Author: Charlie Li 
AuthorDate: 2025-03-10 00:02:09 +
Commit: Charlie Li 
CommitDate: 2025-03-10 19:28:13 +

lang/python27: re-add _tkinter into the distribution

x11-toolkits/py-tkinter is otherwise built separately, ie disabled
in the main Python distribution build, due to circular (build)
dependencies with Python itself in lang/tk*. Since this Python
version is never default anymore, having been EOLed for years among
other things, it is safe to re-add _tkinter as part of the main
distribution build. Also update pkg-message to reflect extension
module ports unavailability.

This is to benefit the only remaining consumer, games/renpy, as
x11-toolkits/py-tkinter transitions to Python 3+ only. The relevant
OPTION has been removed as having _tkinter always present makes the
option a no-op.

PR: 268283

 games/renpy/Makefile   |  8 +++-
 lang/python27/Makefile |  4 ++--
 lang/python27/files/patch-setup.py | 18 +-
 lang/python27/pkg-message  |  9 ++---
 lang/python27/pkg-plist|  1 +
 5 files changed, 17 insertions(+), 23 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 285283] devel/py-pyyaml fails to build: AttributeError: cython_sources

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285283

--- Comment #1 from rob...@gmail.com ---
I have the same build failure. Build log below.

This seems to be caused by having lang/cython3 installed, which is required for
some other ports. Replacing it with /lang/cython allows the port to build. 

portmaster -o lang/cython py311-cython3-3.0.12
portmaster devel/py-pyyaml@py311
portmaster -o lang/cython3 py311-cython-0.29.37_2

See a similar problem with another cython port, see
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285292


===>  Cleaning for py311-pyyaml-6.0.1_1
===>  License MIT accepted by the user
===>   py311-pyyaml-6.0.1_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by py311-pyyaml-6.0.1_1 for building
===>  Extracting for py311-pyyaml-6.0.1_1
=> SHA256 Checksum OK for PyYAML-6.0.1.tar.gz.
===>  Patching for py311-pyyaml-6.0.1_1
===>   py311-pyyaml-6.0.1_1 depends on executable: cython-3.11 - found
===>   py311-pyyaml-6.0.1_1 depends on package: py311-setuptools>=63.1.0 -
found
===>   py311-pyyaml-6.0.1_1 depends on file: /usr/local/bin/python3.11 - found
===>   py311-pyyaml-6.0.1_1 depends on file: /usr/local/bin/ccache - found
===>   py311-pyyaml-6.0.1_1 depends on shared library: libyaml.so - found
(/usr/local/lib/libyaml.so)
===>  Configuring for py311-pyyaml-6.0.1_1
running config
===>  Building for py311-pyyaml-6.0.1_1
running build_ext
Traceback (most recent call last):
  File "", line 1, in 
  File "setup.py", line 289, in 
setup(
  File "/usr/local/lib/python3.11/site-packages/setuptools/__init__.py", line
87, in setup
return distutils.core.setup(**attrs)
   ^
  File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/core.py",
line 177, in setup
return run_commands(dist)
   ^^
  File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/core.py",
line 193, in run_commands
dist.run_commands()
  File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py",
line 968, in run_commands
self.run_command(cmd)
  File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217,
in run_command
super().run_command(command)
  File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py",
line 987, in run_command
cmd_obj.run()
  File "setup.py", line 191, in run
_build_ext.run(self)
  File
"/usr/local/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py",
line 339, in run
self.build_extensions()
  File "setup.py", line 233, in build_extensions
ext.sources = self.cython_sources(ext.sources, ext)
  ^^^
  File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py",
line 103, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
*** Error code 1

Stop.
make[1]: stopped making
"/usr/home/obj/ports/usr/ports/devel/py-pyyaml/work-py311/.build_done.pyyaml._usr_local"
in /usr/ports/devel/py-pyyaml
*** Error code 1

Stop.
make: stopped making "build" in /usr/ports/devel/py-pyyaml

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 285313] x11-toolkits/py-tkinter is broken

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285313

Charlie Li  changed:

   What|Removed |Added

 Status|New |Closed
 Resolution|--- |FIXED
   Assignee|ports-b...@freebsd.org  |python@FreeBSD.org

--- Comment #3 from Charlie Li  ---
Fixed by 088b19ff046c5c1723b379ea6585c31dcb065f79

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 268283] databases/py-sqlite3: switch away from distutils

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268283

--- Comment #24 from commit-h...@freebsd.org ---
A commit in branch main references this bug:

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

commit b4529dc74457f6c0db0692aee8976b89a52aae5d
Author: Charlie Li 
AuthorDate: 2025-03-12 02:34:18 +
Commit: Charlie Li 
CommitDate: 2025-03-12 02:35:51 +

x11-toolkits/py-tkinter: convert to USE_PYTHON=pep517

Note USES=tk limited to 8.6; 9.0 support is not expected until Python 3.14

PR: 268283

 x11-toolkits/py-tkinter/Makefile   | 36 ---
 .../py-tkinter/files/pyproject.toml.in (new)   | 11 ++
 x11-toolkits/py-tkinter/files/setup.py (gone)  | 40 --
 x11-toolkits/py-tkinter/files/setup.py.in (new)| 24 +
 4 files changed, 59 insertions(+), 52 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 268283] databases/py-sqlite3: switch away from distutils

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268283

--- Comment #26 from commit-h...@freebsd.org ---
A commit in branch main references this bug:

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

commit b7e75ada7e388c089d7655d78077f81d75cdb070
Author: Charlie Li 
AuthorDate: 2025-03-12 02:32:06 +
Commit: Charlie Li 
CommitDate: 2025-03-12 02:32:06 +

databases/py-sqlite3: convert to USE_PYTHON=pep517

PR: 268283

 databases/py-sqlite3/Makefile  | 26 +-
 databases/py-sqlite3/files/pyproject.toml.in (new) | 11 +
 databases/py-sqlite3/files/setup.py| 22 --
 3 files changed, 30 insertions(+), 29 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 268283] databases/py-sqlite3: switch away from distutils

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268283

--- Comment #25 from commit-h...@freebsd.org ---
A commit in branch main references this bug:

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

commit 7a5f12ca6a82f80b6846aa727807cf697d1f5345
Author: Charlie Li 
AuthorDate: 2025-03-12 02:24:07 +
Commit: Charlie Li 
CommitDate: 2025-03-12 02:31:08 +

databases/py-gdbm: convert to USE_PYTHON=pep517

PR: 268283

 databases/py-gdbm/Makefile  | 27 ++---
 databases/py-gdbm/files/pyproject.toml.in (new) | 11 ++
 databases/py-gdbm/files/setup.py| 21 ---
 3 files changed, 35 insertions(+), 24 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 268283] databases/py-sqlite3: switch away from distutils

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268283

Charlie Li  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|In Progress |Closed

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 271673] lang/python312: New port, update to 3.12.8

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271673
Bug 271673 depends on bug 268283, which changed state.

Bug 268283 Summary: databases/py-sqlite3: switch away from distutils
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268283

   What|Removed |Added

 Status|In Progress |Closed
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 267515] lang/python312: New port, repocopied from lang/python311

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267515
Bug 267515 depends on bug 268283, which changed state.

Bug 268283 Summary: databases/py-sqlite3: switch away from distutils
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268283

   What|Removed |Added

 Status|In Progress |Closed
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 285339] textproc/py-sphinxcontrib-seqdiag: missing run depend py-setuptools

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285339

Bug ID: 285339
   Summary: textproc/py-sphinxcontrib-seqdiag: missing run depend
py-setuptools
   Product: Ports & Packages
   Version: Latest
  Hardware: amd64
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: Individual Port(s)
  Assignee: python@FreeBSD.org
  Reporter: matt...@wener.org
  Assignee: python@FreeBSD.org
 Flags: maintainer-feedback?(python@FreeBSD.org)

When building Docs in www/py-flask-dance error is presented by
sphinxcontrib.seqdiag that pkg_resources (part of setuptools) is missing. This
was reported by pkg-fallout after
https://github.com/FreeBSD/freebsd-ports/commit/06a08e69f3acb846ad8252945f53c3a2d211e303
removed py-setuptools from distutils.

===>  Building for py311-flask-dance-7.1.0
Running Sphinx v5.3.0

Extension error:
Could not import extension sphinxcontrib.seqdiag (exception: No module named
'pkg_resources')
*** Error code 2

-- 
You are receiving this mail because:
You are the assignee for the bug.


maintainer-feedback requested: [Bug 285339] textproc/py-sphinxcontrib-seqdiag: missing run depend py-setuptools

2025-03-11 Thread bugzilla-noreply
Bugzilla Automation  has asked freebsd-python (Nobody)
 for maintainer-feedback:
Bug 285339: textproc/py-sphinxcontrib-seqdiag: missing run depend py-setuptools
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285339



--- Description ---
When building Docs in www/py-flask-dance error is presented by
sphinxcontrib.seqdiag that pkg_resources (part of setuptools) is missing. This
was reported by pkg-fallout after
https://github.com/FreeBSD/freebsd-ports/commit/06a08e69f3acb846ad8252945f53c3a
2d211e303
removed py-setuptools from distutils.

===>  Building for py311-flask-dance-7.1.0
Running Sphinx v5.3.0

Extension error:
Could not import extension sphinxcontrib.seqdiag (exception: No module named
'pkg_resources')
*** Error code 2



[Bug 285339] textproc/py-sphinxcontrib-seqdiag: missing run depend py-setuptools

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285339

--- Comment #1 from Matthew Wener  ---
Created attachment 258576
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=258576&action=edit
patch RUN_DEPS and pep517

Changes:
- Build with pep517 instead of distutils
- Add missing run dependency setuptools

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 285339] textproc/py-sphinxcontrib-seqdiag: missing run depend py-setuptools

2025-03-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285339

--- Comment #2 from Matthew Wener  ---
Reported by pkg-fallout

Log URL:   
https://pkg-status.freebsd.org/beefy22/data/141amd64-default/02dd5021d6f9/logs/py311-flask-dance-7.1.0.log
Build URL: 
https://pkg-status.freebsd.org/beefy22/build.html?mastername=141amd64-default&build=02dd5021d6f9

-- 
You are receiving this mail because:
You are the assignee for the bug.