file conflict between qemu and dtc

Joshua Root jmr at macports.org
Tue Aug 20 08:43:44 UTC 2024


Kenneth Wolcott wrote:

> circular dependency between qemu and dtc

This is not a circular dependency. Qemu (now) depends on dtc, dtc does 
not depend on qemu.

> self-update
>
> qemu fails due to conflict with dtc
>
> deactivating dtc then trying to update qemu fails because it activates dtc

The previous version of qemu, 9.0.2_0, did not declare a dependency on 
the dtc port and installed its own copy of dtc. The current version of 
qemu, 9.0.2_1, declares a dependency on the dtc port and uses it instead 
of installing its own copy. See 
<https://github.com/macports/macports-ports/pull/25389>.

That unfortunately means that there is a conflict that you will see when 
upgrading qemu, because its new dependency dtc is installed before qemu 
itself is upgraded. Some code to deactivate qemu in this case needs to 
be added to the dtc port. A workaround is to deactivate the old qemu 
version, activate dtc, and then activate the new qemu version.

- Josh



More information about the macports-users mailing list