Description of problem: Error: Transaction test error: file /usr/share/ansible/roles/linux-system-roles.certificate from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.cockpit from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.crypto_policies from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.firewall from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.ha_cluster from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.kdump from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.kernel_settings from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.logging from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.metrics from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.nbde_client from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.nbde_server from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.network from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.postfix from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.selinux from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.ssh from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.sshd from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.storage from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.timesync from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.tlog from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch file /usr/share/ansible/roles/linux-system-roles.vpn from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch This is likely caused by trying to go from a symbolic link to something else. See https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/
Is https://src.fedoraproject.org/rpms/linux-system-roles/pull-request/89 the correct solution? If so, I'll merge, build and push this now.
(In reply to Rich Megginson from comment #1) > Is https://src.fedoraproject.org/rpms/linux-system-roles/pull-request/89 the > correct solution? If so, I'll merge, build and push this now. The solution Sergei implemented is the one recommended by the Packaging Guidelines[1]. I tested this locally on a Fedora 36 machine. I installed linux-system-roles-0:1.21.1-1.fc36.noarch. Afterwards, I tried to install 1.22.0-2.fc36 from updates-testing and got the same error as Orion. Then, I built https://src.fedoraproject.org/rpms/linux-system-roles/pull-request/89 for F36 and was able to install that successfully. I did the same in a Rawhide container. So yes, go ahead and merge it :). [1]: https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/#_scriptlet_to_replace_a_symlink_to_a_directory_with_a_directory. Let me tes
FEDORA-2022-6a3a8ccaee has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-6a3a8ccaee
FEDORA-2022-6a3a8ccaee has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.