Bug 2380799

Summary: python-torch: FTBFS with change proposal CMake 4.0
Product: [Fedora] Fedora Reporter: Cristian Le <fedora>
Component: python-torchAssignee: Tom.Rix
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: alexjnewt, lx, rocm-packagers-sig, Tom.Rix
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-02-16 20:53:50 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: 2372164    
Bug Blocks: 2376114    

Description Cristian Le 2025-07-16 10:49:58 UTC
\
Dear package maintainer,

This is an automated bug created due to a FTBFS when rebuilding this package for the change proposal CMake 4.0.

The rebuild is being tracked in https://copr.fedorainfracloud.org/coprs/cmake-4.0.

See https://fedoraproject.org/wiki/Changes/CMake4.0 for more information on how to make the package compatible.

More specifically, depending on the state of the project:
- If it is actively maintained, please update the `cmake_minimum_required`, and instruct upstream to do so as well.
  To minimize future maintenance, please add a higher bound as well, preferrably with the highest CMake version being
  tested. You may use 4.0 as the higher bound as this is being tested in the tracked copr project.
- If the project is not maintained, you may add `CMAKE_POLICY_VERSION_MINIMUM=3.5` as a CMake variable or environment
  variable.

You can check the build locally following the instructions in the change proposal, or submit your build to the tracking
copr project.

Let me know if you encounter any issues, or need any other help.

Comment 1 Alexander Lent 2025-12-25 22:30:37 UTC
According to upstream bug https://github.com/pytorch/pytorch/issues/150149 this issue is fixed by upstream commit https://github.com/pytorch/pytorch/commit/493c7fa66f82cf781ee0f9d0cc9e305688f0a286 which is present in PyTorch 2.8.0 and later releases.

Since Fedora 43 and Rawhide both use 2.8.0 or later, it's likely that PyTorch will correctly build with CMake 4.0 going forward. Please let us know if there's anything we should do to test it prior to the change going live.