Bug 287286 - devel/py-joblib: Fix build
Summary: devel/py-joblib: Fix build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jason W. Bacon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-04 01:34 UTC by Xin LI
Modified: 2025-06-14 14:47 UTC (History)
5 users (show)

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


Attachments
Proposed fix (601 bytes, patch)
2025-06-04 01:34 UTC, Xin LI
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xin LI freebsd_committer freebsd_triage 2025-06-04 01:34:30 UTC
Created attachment 260954 [details]
Proposed fix

The port lacks required build dependencies.
Comment 1 Jason W. Bacon freebsd_committer freebsd_triage 2025-06-11 12:38:15 UTC
Was the 1.5.1 update tested under poudriere before being committed?  That step should never be skipped, no matter how small the change seems.  This regression is an example.  The port builds fine if setuptools and wheel happen to be installed, but fails under poudriere which starts with a blank slate.

I verified that both setuptools and wheel are required and sufficient to fix the poudriere build, so delphij's patch looks good.
Comment 2 Juraj Lutter freebsd_committer freebsd_triage 2025-06-11 12:42:24 UTC
I made the same patch. And I guess it should be committed right away as it fixes a build.
Comment 3 Jason W. Bacon freebsd_committer freebsd_triage 2025-06-11 12:48:59 UTC
(In reply to Juraj Lutter from comment #2)

Yes, it should be committed ASAP.  py-joblib has 22 direct dependencies, probably at least hundreds of indirect dependencies for which pkg builds are going to fail until this is fixed.
Comment 4 Jason W. Bacon freebsd_committer freebsd_triage 2025-06-11 12:51:24 UTC
(In reply to Jason W. Bacon from comment #3)

I can do the commit if nobody else wants to.  Let's just coordinate here to avoid a collision.
Comment 5 Einar Bjarni Halldórsson 2025-06-11 12:56:52 UTC
According to https://wiki.freebsd.org/Python/setuptools we can use ${PY_SETUPTOOLS} for dependency on setuptools. I'm currently building it in poudriere with:

BUILD_DEPENDS=	${PY_SETUPTOOLS} \
		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
Comment 6 Jason W. Bacon freebsd_committer freebsd_triage 2025-06-11 13:15:21 UTC
(In reply to Einar Bjarni Halldórsson from comment #5)

Good catch.  ${PY_SETUPTOOLS} worked fine in my poudriere tests.  I'm guessing there's a bulk change coming soon anyway, but I think it's a good idea to go with the newer standard here.
Comment 7 Vladimir Druzenko freebsd_committer freebsd_triage 2025-06-11 13:51:20 UTC
(In reply to Jason W. Bacon from comment #4)
The maintainer has not responded yet.
IMHO, since this is a build fix, you can commit without approval.
Comment 8 Jason W. Bacon freebsd_committer freebsd_triage 2025-06-11 13:59:31 UTC
(In reply to Vladimir Druzenko from comment #7)

Agreed, I was just about to.
Comment 9 commit-hook freebsd_committer freebsd_triage 2025-06-11 14:11:29 UTC
A commit in branch main references this bug:

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

commit 0b1ab7cf4c4dfce99f8a60e7eb37798a7a6b6559
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2025-06-11 14:01:15 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2025-06-11 14:11:11 +0000

    devel/py-joblib: Unbreak build

    Missing setuptools and wheel dependencies since 1.5.1 update
    Also alphabetize USE_PYTHON

    PR:             287286
    Reported by:    delphij
    Reviewed by:    otis, vvd, einar@isnic.is
    Tested by:      jwb
    Approved by:    blanket (build fix, maintainer timeout)
    Fixes:          0d65e1ba4c18 devel/py-joblib: update to v1.5.1

 devel/py-joblib/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Comment 10 Steven Kreuzer freebsd_committer freebsd_triage 2025-06-14 14:47:30 UTC
Thanks for taking care of this. I was pretty sure I committed a fix but I just looked at the checkout and realized I never actually pushed the change. apologies for all the grief it caused