Bug 2381383

Summary: prusa-slicer: FTBFS with change proposal CMake 4.0
Product: [Fedora] Fedora Reporter: Cristian Le <fedora>
Component: prusa-slicerAssignee: Jan Pazdziora <adelton>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: adelton, jstanek, j, mhroncok, spotrh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-08-05 07:10:27 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: 2376114    

Description Cristian Le 2025-07-16 17:23:04 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/lecris/cmake-4.0/package/prusa-slicer.

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 Jan Pazdziora 2025-08-02 11:28:22 UTC
I'm getting 404 Not Found when I try to look at the logs of the build https://copr.fedorainfracloud.org/coprs/lecris/cmake-4.0/build/9276540/.

Could you rerun the build with the latest 2.9.2-5 so that we get fresh logs?

Comment 2 Cristian Le 2025-08-02 14:47:29 UTC
Sure, I've triggered a rebuild. I have linked the relevant upstream PR, but downstream, it is sufficient to go with adding
```
export CMAKE_POLICY_VERSION_MINIMUM=3.5
```
until they update it in their project.

Comment 3 Jan Pazdziora 2025-08-03 08:17:57 UTC
So based on the discussion in the upstream PR https://github.com/prusa3d/PrusaSlicer/pull/14388#pullrequestreview-2744684355 I filed a Fedora .spec PR https://src.fedoraproject.org/rpms/prusa-slicer/pull-request/55. I went with a patch instead of that export because when that upstream PR gets finally merged, we will get a merge failure (== notification that the patch is no longer needed).

Could you try the CMake 4.0 build in copr with the .src.rpm from that PR, for example from a scratch build https://koji.fedoraproject.org/koji/taskinfo?taskID=135633883?