Bug 2139909

Summary: cmake: 3.20.2-4 throws ninja: error: dependency cycle: src/ceph-volume/setup.py -> src/ceph-volume/setup.py
Product: Red Hat Enterprise Linux 8 Reporter: Kaleb KEITHLEY <kkeithle>
Component: cmakeAssignee: Tom Stellard <tstellar>
Status: CLOSED MIGRATED QA Contact: qe-baseos-tools-bugs
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: besser82, bstinson, extras-qa, jreznik, jwboyer, rdieter, sipoyare, tbaeder, trpost, walter.pete
Target Milestone: rcKeywords: MigratedToJIRA, Reopened, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2059188 Environment:
Last Closed: 2023-09-22 16:34:07 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, 2059188, 2079833    
Bug Blocks: 2081479    

Description Kaleb KEITHLEY 2022-11-03 19:20:52 UTC
see, e.g., https://cbs.centos.org/koji/taskinfo?taskID=3073264 or more specifically  the end of https://cbs.centos.org/kojifiles/work/tasks/3264/3073264/build.log where $subject is thrown

using cmake-3.24.2-1 works (e.g. see https://cbs.centos.org/koji/taskinfo?taskID=3073579. Even if the build fails later for other reasons.)

Curiously, cmake-3.20.2-4 in Stream 9 doesn't exhibit the same error. Perhaps a cmake expert can figure out why?


+++ This bug was initially created as a clone of Bug #2059188 +++

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:

--- Additional comment from Kaleb KEITHLEY on 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

--- Additional comment from Fedora Update System on 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

--- Additional comment from Fedora Update System on 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.

--- Additional comment from Miro Hrončok on 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 :(

--- Additional comment from Ben Cotton on 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 1 Timm Bäder 2022-12-02 07:30:34 UTC
> +++ This bug was initially created as a clone of Bug #2059188 +++

That bug and this one are different though, right?

I don't think we have a real cmake expert unfortunately (and if Tom is, he is out for the rest of the year).
It does sound like cmake is at fault here (since an upgrade fixes the problem), but is this really the first
ceph build since that cmake package hit the buildroot? Serge pushed the update mid-2021.

Can you work around the problem by switching back to make files instead?

Comment 2 Tom Stellard 2023-01-21 07:20:39 UTC
Is this still an issue?

Comment 3 Kaleb KEITHLEY 2023-05-03 12:22:29 UTC
(In reply to Tom Stellard from comment #2)
> Is this still an issue?

Yes, it's still an issue. Builds still fail in cmake using the cmake from appstream.

Comment 4 RHEL Program Management 2023-09-22 16:32:16 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 5 RHEL Program Management 2023-09-22 16:34:07 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.