Download raw body.
[update] numpy 1.x -> numpy 2.x
On Thu, May 08, 2025 at 10:46:12AM +0100, Stuart Henderson wrote:
> On 2025/05/08 19:20, Jonathan Gray wrote:
> > On Thu, May 08, 2025 at 04:32:09AM +0200, Theo Buehler wrote:
> > > On Wed, May 07, 2025 at 07:38:29PM -0400, Daniel Dickman wrote:
> > > > numpy 1.x in the tree is a blocker for updating quite a few ports.
> > > >
> > > > The main blocker for the update used to be boost. But now that we have
> > > > boost 1.87 I think it's a good time to update numpy to the 2.x series. The
> > > > diff below gets us to 2.0.2.
> > > >
> > > > I have fixes for these which are all fairly straightforward and I can
> > > > commit once numpy is at the 2.x series:
> > > > astro/py-erfa (update 2.0.1.1 -> 2.0.1.3)
> > > > graphics/py-matplotlib (remove hardcoded upper bound on numpy < 2)
> > > > math/py-cvxpy (update 1.2.1 -> 1.6.2)
> > > > math/py-numexpr (update 2.8.4 -> 2.10.2)
> > > > math/py-scikit-learn (update 1.4.1post1 -> 1.5.2)
> > > > math/py-scs (update 2.1.1-2 -> 3.2.6)
> > > > math/py-tables (upstream wants numpy 2.x, but we patch it. undo our local patch)
> > >
> > > Would you mind sharing a diff including these fixes? When running a bulk,
> > > every build failure costs some time triaging, and while most of these are
> > > nearly leaf ports, py-matplotlib has more than a dozen reverse deps.
> > >
> > > Like for math/py-tables, landry had to relax a build requirement in
> > > geo/py-rasterio (and maybe elsewhere?). This can also be removed.
> > >
> > > > These I'd like to mark BROKEN until they can be fixed by someone with an
> > > > interest:
> > > > - graphics/piglit (very old and stale)
> > > > - x11/qt6/pyside/shiboken (core vs _core include path update is needed?)
> > >
> > > While I'm fine with this, I know that jsg used to use piglit for drm
> > > stress testing and jtt might want to look into pyside.
> >
> > Yes, piglit continues to be useful for that.
> >
> > The complication is they stopped the github mirror and don't do releases.
> >
> > I'm not sure if gitlab has hash stable git archives. The FDO instance
> > also has Anubis in front of it.
> > https://gitlab.freedesktop.org/mesa/piglit
>
> Anubis only hits user-agents that look like browsers, ftp(1) gets through.
>
> The git-archive download from fd.o gitlab matches the hash from github's,
> we could switch upstream easily enough:
The infrastructure bit is ok tb as it is.
> Index: graphics/piglit//Makefile
> ===================================================================
> RCS file: /cvs/ports/graphics/piglit/Makefile,v
> diff -u -p -r1.25 Makefile
> --- graphics/piglit//Makefile 21 Dec 2024 11:38:16 -0000 1.25
> +++ graphics/piglit//Makefile 8 May 2025 09:43:49 -0000
> @@ -3,9 +3,7 @@ ONLY_FOR_ARCHS = amd64 i386
>
> DISTNAME = piglit-20210128
>
> -GH_ACCOUNT = mesa3d
> -GH_PROJECT = piglit
> -GH_COMMIT = 83173d9536c9f5e1571efe5933d210466ec255b8
> +DIST_TUPLE = fdo mesa piglit 83173d9536c9f5e1571efe5933d210466ec255b8 .
> REVISION = 9
HOMEPAGE changes, so this needs a revision bump.
WRKSRC changes with this approach so the patches no longer apply. There
are three ways around it. The first approach is to set
DISTNAME = piglit-83173d9536c9f5e1571efe5933d210466ec255b8
the second approach is to do
DIST_TUPLE = fdo mesa piglit 83173d9536c9f5e1571efe5933d210466ec255b8 ${WRKDIST}/
and the third is to regenerate the patches. Not sure which is best.
[update] numpy 1.x -> numpy 2.x