Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 930951

Summary: [TRACKER] >=dev-python/numpy-2 porting
Product: Quality Assurance Reporter: Michał Górny <mgorny>
Component: TrackersAssignee: Python Gentoo Team <python>
Status: CONFIRMED ---    
Severity: normal CC: bugs.gentoo.org, pacho, undrwater
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/numpy/numpy/issues/26191
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 932639, 932642, 932712, 933256, 934490, 934817, 932459, 932480, 932518    
Bug Blocks:    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-04-30 05:01:55 UTC
NumPy 2 introduces many API changes, and a forward-incompatible ABI change.  Since we can't do one-way ABI compatibility in Gentoo, I went for a full subslot bump.

Since Python extensions don't do SOVERSIONs, ABI mismatch causes a runtime error of mismatched data type size.  This often shows up in a different package's test suite.  When it does, you need to track down the package that hasn't been rebuilt, and make sure to put numpy in DEPEND and include := slot operator, i.e.:

  DEPEND="
    dev-python/numpy:=
  "

Aside from that, you're probably going to see errors about removed stuff, numeric mismatched and other weird errors.