Bug 281850 - textproc/py-towncrier23: Missing dependencies error
Summary: textproc/py-towncrier23: Missing dependencies error
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
: 281911 281927 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-10-04 15:05 UTC by Dimitry Andric
Modified: 2024-10-08 13:44 UTC (History)
4 users (show)

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


Attachments
poudriere build log for py311-towncrier23 (14.73 KB, text/plain)
2024-10-04 15:06 UTC, Dimitry Andric
no flags Details
textproc/py-towncrier23: fix build under poudriere (1008 bytes, patch)
2024-10-04 19:40 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2024-10-04 15:05:08 UTC
Not sure when this happened exactly, but after a recent ports tree update (from about a week ago to today), I'm getting an error building textproc/py-towncrier23 in poudriere:

=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  Building for py311-towncrier23-23.11.0
* Getting build dependencies for wheel...

ERROR Missing dependencies:
	incremental
	setuptools>=61.0
*** Error code 1

Stop.
make: stopped making "build" in /usr/ports/textproc/py-towncrier23
=>> Cleaning up wrkdir
===>  Cleaning for py311-towncrier23-23.11.0
build of textproc/py-towncrier23@py311 | py311-towncrier23-23.11.0 ended at Fri Oct  4 14:08:46 CEST 2024
build time: 00:00:07
!!! build failure encountered !!!


Note that building outside of poudriere does work, so it is probably missing py-setuptools, or some other dependent port in BUILD_DEPENDS?

I will attach the full poudriere build log for reference.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2024-10-04 15:06:17 UTC
Created attachment 253997 [details]
poudriere build log for py311-towncrier23
Comment 2 Dimitry Andric freebsd_committer freebsd_triage 2024-10-04 19:40:33 UTC
Created attachment 254003 [details]
textproc/py-towncrier23: fix build under poudriere

This is a simple fix, that add devel/py-setuptools as a build dependency, and it allows building the port under poudriere, at least for me.
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-10-07 04:49:53 UTC
It was caused by ports 0472a238188abdac5673554480581a30495dbc73. I'll fix it ASAP.
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-10-07 05:05:51 UTC
A commit in branch main references this bug:

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

commit 39fbbc8a6a01eee02649bba48f96a935e2ade511
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-10-07 05:02:24 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-10-07 05:04:12 +0000

    devel/py-incremental: Add missing BUILD_DEPENDS and RUN_DEPENDS

    - While I'm here, remove PY_SETUPTOOLS: py-setuptools should be used rather than PY_SETUPTOOLS
    - Bump PORTREVISION for dependency change

    from pyproject.toml:
    ]requires = [
        # Keep this aligned with the project dependencies.
        "setuptools >= 61.0",
        "tomli; python_version < '3.11'",
    ]
    ...
    dependencies = [
        "setuptools >= 61.0",
        "tomli; python_version < '3.11'",
    ]

    PR:             281850
    Reported by:    dim
    Reference:      https://github.com/twisted/incremental/blob/incremental-24.7.2/pyproject.toml#L2-L6
                    https://github.com/twisted/incremental/blob/incremental-24.7.2/pyproject.toml#L31-L34
    Approved by:    portmgr (blanket)
    With hat:       python

 devel/py-incremental/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Comment 5 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-10-07 05:11:23 UTC
I've also tested devel/py-pip builds fine. Thanks.
Comment 6 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-10-07 05:11:28 UTC
*** Bug 281911 has been marked as a duplicate of this bug. ***
Comment 7 Dan Langille freebsd_committer freebsd_triage 2024-10-08 13:44:59 UTC
*** Bug 281927 has been marked as a duplicate of this bug. ***