maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #05022
Re: mariadb-backup meta deb package
-
To:
maria-discuss@xxxxxxxxxxxxxxxxxxx
-
From:
Reindl Harald <h.reindl@xxxxxxxxxxxxx>
-
Date:
Wed, 14 Feb 2018 13:07:26 +0100
-
In-reply-to:
<d201efbb-8d91-e374-12f3-e194a9a10af5@coppint.com>
-
Organization:
the lounge interactive design
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
Am 14.02.2018 um 12:56 schrieb Florent B:
On 14/02/2018 12:49, Sergei Golubchik wrote:
Hi, Florent!
On Feb 14, Florent B wrote:
Hi,
Wouldn't be nice to have a metapackage mariadb-backup in Debian
repository, that depends on the current best version
(mariadb-backup-10.2, etc..) ?
Like "mariadb-server" package in fact.
Yes, I guess.
It'll be consistent with what we do with the server.
Of course, if you also have a solution how to reduce the number of
packages, that'd be perfect :)
Hmm, how about that?
We rename the following packages to remove "-10.1" at the end.
mariadb-connect-engine-10.1
mariadb-oqgraph-engine-10.1
mariadb-cracklib-password-check-10.1
mariadb-gssapi-server-10.1
mariadb-gssapi-client-10.1
mariadb-backup-10.1
This way the server package will specify the version (either
"mariadb-server-10.1" for 10.1 or "mariadb-server" for the latest)
and everything else will follow.
Looks logical and doesn't increase the number of packages (!!!).
But I need to try whether it'll actually work in Debian :)
Wow ! Someone understood what I mean. Thank you a lot Sergei, I though I
was crazy seeing other people's answers
well, i don't get why there needs to be a metapackage at all
http://yum.mariadb.org/10.1/rhel6-x86/rpms/
http://yum.mariadb.org/10.2/rhel6-x86/rpms/
these are different repos and you have either 10.1 or 10.2 enabled
whatever packages in whatever versions are there, the update manager
without mention a version explicit takes the one with the highest number
independent of a new install or update
%package server
Summary: The MariaDB server and related files
Requires: %{name} = %{epoch}:%{version}-%{release},
%{name}-libs = %{epoch}:%{version}-%{release}
Requires: sh-utils
Requires(pre): shadow-utils
Provides: mysql-server = %{epoch}:%{version}-%{release},
mysql-server%{?_isa} = %{epoch}:%{version}-%{release}
Obsoletes: mysql-server, community-mysql-server
%description server
"dnf install mysql-server" == "dnf install mariadb-server" == "dnf
install community-mysql-server"
why? because the Provides/Obsoletes in my spec say so
References