Mailinglist Archive: opensuse-factory (244 mails)

< Previous Next >
Re: [opensuse-factory] Advise needed on update-alternatives
  • From: Axel Braun <axel.braun@xxxxxx>
  • Date: Sun, 15 Jul 2018 10:42:16 +0200
  • Message-id: <1805478.xvLCsJUbFN@t520.axxite.internal>
Hi Oliver,

Am Dienstag, 19. Juni 2018, 16:17:58 CEST schrieb Oliver Kurz:
On Monday, 18 June 2018 09:19:18 CEST Axel Braun wrote:
Hello Stefan,

Am Sonntag, 17. Juni 2018, 17:39:00 CEST schrieb Stefan BrĂ¼ns:
On Sonntag, 17. Juni 2018 17:08:40 CEST Axel Braun wrote:

we had some days ago a discussion on how to prevent postgres10

as postgres96 is required:

I think you are trying to solve the problem on the wrong level.
GH needs postgres in version 9.6, but how this requirement is met is out
scope for RPM. You can run PG as a local instance on a random, local
You can run PG on a remote server or in a container on the same host.

Using update-alternatives is IMHO not an option, as it would change the
system default, but still does not guarantee which database version will
used, e.g. if not running on the local host.

Both of your points above are true, but I would consider this as 'expert
option' - they know what to do anyway.
The target is to have a system up and running after the installation, with
only minor interaction needed, and without the need to read a

This was all achieved out of a single package, but not anymore with
postgres10 as default.

Probably, you should add a dependency on a metapackage, and provide
different variants for this dependency:
- one package configuring GH to use a remote PG instance
- one package configuring GH to use a local PG instance, running on a
randomized local port.

Do you maybe have an example?

I know of
providing a local database for openQA for the most simple case of a single-
user local setup. So a user can install this helper package. For any expert
setup do not install the package and configure the database on your own

I had a look at the example, but I dont think it brings me forward.
Ideally we have an option that sets the database used (similar as update-
alternatives) per user - so all processes running for user xyz use postgres9.

Anyone aware on such a configuration option?


To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages