Bug 2059188

Summary: cmake: 3.23.0rc2 broke subdir builds (%cmake_* rpm macros)
Product: [Fedora] Fedora Reporter: Kaleb KEITHLEY <kkeithle>
Component: cmakeAssignee: Björn 'besser82' Esser <besser82>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: besser82, jreznik, mhroncok, rdieter, trpost, walter.pete
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cmake-3.24.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2139909 (view as bug list) Environment:
Last Closed: 2022-11-03 19:28:55 UTC Type: Bug
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: 2057738, 2079833    
Bug Blocks: 2081479, 2139909    

Description Kaleb KEITHLEY 2022-02-28 12:58:13 UTC
Description of problem: several (of my) packages that built previously on rawhide with cmake-3.22.0 now don't build.

E.g. https://kojipkgs.fedoraproject.org//work/tasks/6197/83316197/build.log (https://koji.fedoraproject.org/koji/taskinfo?taskID=83316197) fails with 
  Error: /builddir/build/BUILD/nfs-ganesha-4.0/src/redhat-linux-build is not a directory

Other packages like ceph now fail with the same error.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Kaleb KEITHLEY 2022-02-28 15:14:32 UTC
If I disable the subdir build (with '%global __cmake_in_source_build 1'  then with ceph builds I also get the following:
   ninja: error: dependency cycle: src/ceph-volume/setup.py -> src/ceph-volume/setup.py

Comment 2 Fedora Update System 2022-03-02 22:11:53 UTC
FEDORA-2022-a48185dae6 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-a48185dae6

Comment 3 Fedora Update System 2022-03-02 22:12:40 UTC
FEDORA-2022-a48185dae6 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Miro Hrončok 2022-03-02 22:24:43 UTC
Sorry about that. I've put "Related: rhbz#2059201, rhbz#2059188, rhbz#2057738" in the changelog and Bodhi closed this :(

Comment 5 Ben Cotton 2022-08-09 13:13:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.

Comment 6 Kaleb KEITHLEY 2022-11-03 19:28:55 UTC
f37 has cmake-3.24.2, which works fine.