stable

galera-26.4.21-2.fc42 and mariadb10.11-10.11.11-5.fc42

FEDORA-2025-d0066caef6 created by mschorm a year ago for Fedora 42

MariaDB + Galera - F42 sysusers.d fix

UID / GID number 27 is no longer enforced !!!

How to install

Updates may require up to 24 hours to propagate to mirrors. If the following command doesn't work, please retry later:

sudo dnf upgrade --refresh --advisory=FEDORA-2025-d0066caef6

This update has been submitted for testing by mschorm.

a year ago

This update's test gating status has been changed to 'passed'.

a year ago

Problem?:

Running transaction
[ 1/20] Verify package files                                                                                                                                                                                                     100% |  75.0   B/s |   9.0   B |  00m00s
[ 2/20] Prepare transaction                                                                                                                                                                                                      100% |  28.0   B/s |  18.0   B |  00m01s
[ 3/20] Upgrading mariadb-common-3:10.11.11-4.fc42.noarch                                                                                                                                                                        100% |   5.2 MiB/s | 190.6 KiB |  00m00s
[ 4/20] Upgrading mariadb-3:10.11.11-4.fc42.x86_64                                                                                                                                                                               100% |  83.1 MiB/s |  22.0 MiB |  00m00s
[ 5/20] Upgrading mariadb-errmsg-3:10.11.11-4.fc42.noarch                                                                                                                                                                        100% |  31.5 MiB/s |   3.0 MiB |  00m00s
>>> Running unknown scriptlet: mariadb-server-3:10.11.11-4.fc42.x86_64                                                                                                                                                                                                   
>>> Finished unknown scriptlet: mariadb-server-3:10.11.11-4.fc42.x86_64                                                                                                                                                                                                  
>>> Scriptlet output:                                                                                                                                                                                                                                                    
>>> <stdin>:1: Conflict with earlier configuration for user 'mysql' in /usr/lib/sysusers.d/mariadb.conf:1, ignoring line.

Hi @cmorris, thank you for the feedback.

Functionally, this shouldn't be an issue.

It was caused by sub-optimal handling of the Fedora Change regarding sysusers.d in MariaDB and MySQL packages, where the setup is complicated.

Until recently, we shipped the MariaDB upstream sysusers.d configuration file:

# cat mariadb-server-10.11.11-1.fc42.x86_64/usr/lib/sysusers.d/mariadb.conf 
u mysql - "MariaDB" /var/lib/mysql

but it was not applied, and the user/group was set up by the '%pre' installation scriptlet.

Then, with the Fedora 42 sysusers.d change, the sysusers.d configuration file started to be applied instead of the '%pre' installation scriptlet. This was not intended.

Now, the package contains a proper fix, providing a downstream sysusers.d configuration file

# cat mariadb-server-10.11.11-1.fc42.x86_64/usr/lib/sysusers.d/mariadb.conf 
u mysql - 'MySQL Server'  /var/lib/mysql -

So functionally, there is no change, only the user description differs.

I will check whether the problem will persist though subsequent updates and if it can be reasonably fixed.

User Icon imabug provided feedback a year ago
karma

This update has been pushed to testing.

a year ago

This update can be pushed to stable now if the maintainer wishes

a year ago

@mschorm Thank you for taking the time to explain the problem, and for your work on these packages.

I'm back with more details.

First - I've made a mistake in my previous message.

The sysusers.d file now match the name of the package source.

So now it's /usr/lib/sysusers.d/mariadb10.11.conf instead of /usr/lib/sysusers.d/mariadb.conf

I've easily reproduced the message:

>>> <stdin>:1: Conflict with earlier configuration for user 'mysql' in /usr/lib/sysusers.d/mariadb.conf:1, ignoring line.

when updating to the current version.

Then, during the package update process the old mariadb.conf is removed (since it belongs to the old package) and the new mariadb10.11.conf is installed (as it belongs to the new package).

So during the sub-sequent updates to newer and newer version, the scriptlet message about the conflict is not present, as long as the sysusers.d config files remain unchanged during the update.

With the same logic, swapping between installations of MariaDB and MySQL will work fine, as I will keep the sysusers.d config file in both identical. (not yet in production though. At this moment, mysql8.0 does not contain any sysusers.d config file).

So anyone affected should only see this message once per the config file content change.

I'm thinking of adding one final tweak inside, so you may see it once again

But I hope once I'm done here, I won't need to touch it at least for a decade :)

mschorm edited this update.

a year ago

mschorm edited this update.

New build(s):

  • mariadb10.11-10.11.11-5.fc42

Removed build(s):

  • mariadb10.11-10.11.11-4.fc42

Karma has been reset.

a year ago

This update has been submitted for testing by mschorm.

a year ago
User Icon imabug provided feedback a year ago
karma

This update has been pushed to testing.

a year ago

This update can be pushed to stable now if the maintainer wishes

a year ago
karma

This update has been submitted for stable by bodhi.

There is an ongoing freeze; this will be pushed to stable after the freeze is over.

a year ago
User Icon derekenz commented & provided feedback a year ago
karma

Works

This update has been pushed to stable.

a year ago

Please log in to add feedback.

Metadata
Type
bugfix
Severity
medium
Karma
3
Signed
Content Type
RPM
Test Gating
Autopush Settings
Unstable by Karma
-1
Stable by Karma
2
Stable by Time
7 days
Dates
submitted
a year ago
in testing
a year ago
in stable
a year ago
modified
a year ago
approved
a year ago
BZ#2330320 mariadb BuildRequires: lzma-sdk-devel but links against liblzma.so provided by xz-devel
0
0

Automated Test Results