[MDEV-11973] MariaDB 10.0.29 should depend on "shadow-utils" package for yum install Created: 2017-02-02  Updated: 2020-12-01

Status: Open
Project: MariaDB Server
Component/s: Packaging, Platform RedHat
Affects Version/s: 10.0.29
Fix Version/s: 10.2

Type: Bug Priority: Minor
Reporter: Jesse Mundis Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: packaging
Environment:

CentOS 7.2 64 bit x86



 Description   

Packaging up a series of CentOS rpms and others, including MariaDB-server 10.0.29 as a reduced mini CentOS 7 "distro." along with all other needed rpms for a functional system may cause anaconda to install MariaDB before "shadow-utils". "shadow-utils" is package which provides commands like "useradd" which is used by the MariaDB-server post-install scriptlet to create the "mysql" user. The scriptlet intentionally, silently ignores failures (in case the user already exists) but this masks a failure if the "useradd" command isn't present on the system yet. As a result of this unpredictable package ordering by anaconda/yum, MariaDB may end up installed, with no "mysql" user on the system.

Suggested fix:

Add a "Requires:" line to the .spec file for the rpm, to make MariaDB-server explicitly dependent on packages which provide system commands like "useradd" employed by the install scriptlet. This will ensure yum will order the packages correctly.


Generated at Thu Feb 08 07:54:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.