Bug 2380799 - python-torch: FTBFS with change proposal CMake 4.0
Summary: python-torch: FTBFS with change proposal CMake 4.0
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-torch
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom.Rix
QA Contact:
URL:
Whiteboard:
Depends On: 2372164
Blocks: CMake4.0
TreeView+ depends on / blocked
 
Reported: 2025-07-16 10:49 UTC by Cristian Le
Modified: 2026-02-16 20:53 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-02-16 20:53:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.