Allow choosing between Oracle and Postgres RPMs
Problem to solve
At the moment our CTA binaries can work with either Oracle or Postgres client support.
It only needs one of the following RPMs to be installed:
- cta-lib-catalogue-occi
- cta-lib-catalogue-postgres
This was achieved with the following merge request:
However, it seems that if we try to install a CTA RPM, it will automatically try to install both dependencies.
There is no clear way on how to install only one of them when using yum
/dnf
.
Example, when installing cta-frontend
:
======================================================================================================================================================================================================================
Package Architecture Version Repository Size
======================================================================================================================================================================================================================
Installing:
cta-frontend x86_64 5.11.1.0-1.el9 public-testing-cta-5-alma9 857 k
Upgrading:
openssl x86_64 1:3.2.2-6.el9_5 baseos 1.3 M
openssl-libs x86_64 1:3.2.2-6.el9_5 baseos 2.4 M
Installing dependencies:
abseil-cpp x86_64 20211102.0-3.el9 epel 548 k
c-ares x86_64 1.19.1-2.el9_4 baseos 109 k
cryptopp x86_64 8.6.0-1.el9 epel 1.3 M
cta-common x86_64 5.11.1.0-1.el9 public-testing-cta-5-alma9 12 k
cta-lib x86_64 5.11.1.0-1.el9 public-testing-cta-5-alma9 2.6 M
cta-lib-catalogue x86_64 5.11.1.0-1.el9 public-testing-cta-5-alma9 1.4 M
cta-lib-catalogue-inmemory x86_64 5.11.1.0-1.el9 public-testing-cta-5-alma9 70 k
cta-lib-catalogue-occi x86_64 5.11.1.0-1.el9 public-testing-cta-5-alma9 379 k
cta-lib-catalogue-postgres x86_64 5.11.1.0-1.el9 public-testing-cta-5-alma9 386 k
[...]
Steps to reproduce
Follow the CTA installation steps on:
See that installing cta-frontend
will always try to install the following 2 RPMs:
- cta-lib-catalogue-occi
- cta-lib-catalogue-postgres
Stakeholders
External sites.
Proposal
Find a way to make the choice between installing cta-lib-catalogue-occi
, cta-lib-catalogue-postgres
or both simpler.