Hi all, On 04.07.22 at 08:26 Johannes Kastl wrote:
OK, as it seems solver.onlyRequires is set to true on most installations, the only solution without big fallout would be to have docker-compose "Require" docker-compose-switch. As docker-compose providers a higher version of docker-compose than python3-docker-dompose, it will get pulled in automatically on updates. And as "Recommends" might not get respected, users will lose the docker-compose binary.
Unfortunately this far I do not get docker-compose installed during zypper dup on Tumbleweed, while everything works on Leap 15.x. If I manually install docker-compose I correctly get docker-compose-switch, and the python3-docker-compose is removed. What am I missing? And can I somehow create all those python3* things per macro? Kind Regards, Johannes
https://build.opensuse.org/package/view_file/home:ojkastl_buildservice:docke...
... Requires: docker # Docker Compose V2 is a major version bump release of Docker Compose. # It has been completely rewritten from scratch in Golang (V1 was in Python). Obsoletes: python2-docker-compose < 2.0.0 Obsoletes: python3-docker-compose < 2.0.0 Obsoletes: python38-docker-compose < 2.0.0 Obsoletes: python39-docker-compose < 2.0.0 Obsoletes: python310-docker-compose < 2.0.0 Provides: python2-docker-compose = %{version} Provides: python3-docker-compose = %{version} Provides: python38-docker-compose = %{version} Provides: python39-docker-compose = %{version} Provides: python310-docker-compose = %{version} # docker-compose-switch is intended to ease the transition from v1 to v2 # as it provides the docker-compose binary that was dropped in v2 # As Recommends are not working on many systems, use Requires to make sure # we do not break existing setups Requires: docker-compose-switch ... I thought that should be enough. -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537