Bug 276913 - devel/py-watchdog 4.0.0 fails to build
Summary: devel/py-watchdog 4.0.0 fails to build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Nicola Vitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-09 08:15 UTC by Marko Cupać
Modified: 2024-02-09 11:08 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (nivit)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Cupać 2024-02-09 08:15:22 UTC
Hi,

I cannot build latest devel/py-watchdog on 14.0 amd64, below is poudriere log excerpt. I have DOCS=off set globally, perhaps it matters.

---Begin OPTIONS List---
===> The following configuration options are available for py39-watchdog-4.0.0:
     DOCS=off: Build and/or install documentation
===> Use 'make config' to modify these settings
---End OPTIONS List---
(...)
===>   py39-watchdog-4.0.0 depends on shared library: libinotify.so - found (/usr/local/lib/libinotify.so)
===>   Returning to build of py39-watchdog-4.0.0
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  Configuring for py39-watchdog-4.0.0
===========================================================================
=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  Building for py39-watchdog-4.0.0
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'setuptools'

ERROR Backend 'setuptools.build_meta:__legacy__' is not available.
*** Error code 1
Comment 1 Nicola Vitale freebsd_committer freebsd_triage 2024-02-09 09:46:48 UTC
Thanks to report this. I didn't commit the Makefile from poudriere tree...
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-02-09 09:59:30 UTC
A commit in branch main references this bug:

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

commit 230b6dd8fda0f09b754c478ab23144d8eaee86ad
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2024-02-09 09:57:06 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2024-02-09 09:57:06 +0000

    devel/py-watchdog: Fix build

    - Add missing build dependency: devel/py-setuptools

    PR:     276913
    Reported by:    Marko Cupać <marko.cupac@mimar.rs>

 devel/py-watchdog/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 3 Nicola Vitale freebsd_committer freebsd_triage 2024-02-09 10:00:36 UTC
Fixed. Thank you for the PR!
Comment 4 Marko Cupać 2024-02-09 11:08:39 UTC
(In reply to Nicola Vitale from comment #3)

That was quick, thanks!

Builds fine now.