Bug 2381383 - prusa-slicer: FTBFS with change proposal CMake 4.0
Summary: prusa-slicer: FTBFS with change proposal CMake 4.0
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: prusa-slicer
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Pazdziora
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: CMake4.0
TreeView+ depends on / blocked
 
Reported: 2025-07-16 17:23 UTC by Cristian Le
Modified: 2025-08-05 07:10 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-08-05 07:10:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github prusa3d PrusaSlicer pull 14388 0 None open Some update work that you might find useful for moving forward 2025-08-02 14:47:29 UTC

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?


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