Bug 2336949

Summary: boost: FTBFS in Fedora Rawhide: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘elsize’
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: boostAssignee: Jonathan Wakely <jwakely>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: denis.arnaud_fedora, jwakely, laurent.rineau__fedora, mcermak, ppalka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/boost
Whiteboard:
Fixed In Version: boost-1.83.0-10.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-01-10 17:09:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2300528, 2322407, 2332159    

Description Karolina Surma 2025-01-10 15:49:20 UTC
Description of problem:
Package boost fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
1.83.0-9.fc42

Steps to Reproduce:
koji build --scratch f42 boost-1.83.0-9.fc42.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/boost

Reproducible: Always

Actual Results:  
libs/python/src/numpy/dtype.cpp: In member function ‘int boost::python::numpy::dtype::get_itemsize() const’:
libs/python/src/numpy/dtype.cpp:101:83: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘elsize’
  101 | int dtype::get_itemsize() const { return reinterpret_cast<PyArray_Descr*>(ptr())->elsize;}
      | 


This has started to happen after the update to numpy 2.

Comment 1 Jonathan Wakely 2025-01-10 17:09:52 UTC
This is already fixed

Comment 2 Jonathan Wakely 2025-01-10 17:11:02 UTC
(I merged https://src.fedoraproject.org/rpms/boost/pull-request/32 a couple of hours ago and rebuilt boost)

Comment 3 Karolina Surma 2025-01-10 19:14:44 UTC
Oh, thank you, my data must have been obsolete.