Am Dienstag, 12. Juni 2018, 17:46:45 CEST schrieb Bruno Friedmann:
On mardi, 12 juin 2018 17.33:15 h CEST Axel Braun wrote:
Hi,
following my mail request from last week on 'Prevent Postgres 10 from installation', it points that the solution to block postgres10 from installation is not ideal, as it breaks openQA testing
So, the idea is to use update-alternatives in the %post section: update-alternatives --set postgresql /usr/lib/postgresql96
This results in an error message when the build is tested: .... [ 70s] ... testing GConf scriptlet presence [ 70s] ... running 50-check-installtest [ 70s] ... testing for pre/postinstall scripts that are not idempotent [ 71s] update-alternatives: error: no alternatives for postgresql ..... This error occurs even with Requires: postgresql10-server Requires: postgresql96-server means explicitly setting the requirement for both versions
Any hints how to get this running?
rpm -qf /usr/share/postgresql/install-alternatives postgresql-10-20.13.noarch
You need this one to initiate the alternatives.
That went into the right direction: BuildRequires: postgresql BuildRequires: postgresql96-server was the missing link, then the update-alternatives in the %post-section works! Thanks! Axel -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org