Bug #12822 RPM Installation on SuSE 8.1 fails due to wrong dependencies
Submitted: 26 Aug 2005 9:12 Modified: 27 Sep 2005 22:36
Reporter: Dino Tsoumakis
Status: Won't fix
Category:Server Severity:S3 (Non-critical)
Version:MySQL-server-4.1.14-0.i386.rpm OS:Linux (SuSE 8.1 (2.4.21-273-default))
Assigned to: Lenz Grimmer Target Version:

[26 Aug 2005 9:12] Dino Tsoumakis
Description:
Installation of the MySQL-server-4.1.14-0.i386.rpm fails on SuSE Linux 8.1 due to wrong
dependencies (Mybe beacause of Bug #12233).
--------><------------
lx180:/projects/rd/mysql/MySQL-4.1.14 # rpm -Uvh MySQL-server-4.1.14-0.i386.rpm
error: failed dependencies:
        coreutils is needed by MySQL-server-4.1.14-0
        procps is needed by MySQL-server-4.1.14-0
--------><------------
There are no coreutils and procps available on SuSE 8.1. Only the individual packages for
fileutils, shareutils, textutils,... are available and installed.

As a workaround installation works fine with --nodeps option set.

How to repeat:
Try to install on SuSE 8.1:
rpm -Uvh MySQL-server-4.1.14-0.i386.rpm
error: failed dependencies:
        coreutils is needed by MySQL-server-4.1.14-0
        procps is needed by MySQL-server-4.1.14-0

Suggested fix:
In case of SuSE 8.1 dependencies for coreutils and procps should be replaced by the
individual packages (e.g. fileutils, shareutils, textutils, ps,...)
[31 Aug 2005 23:56] Jorge del Conde
Verified w/Suse 8
[27 Sep 2005 22:36] Lenz Grimmer
It's almost impossible to come up with a "Requires:" line that does not cause a conflict
one one or the other distribution. The current line is an attempt to satisfy most of the
dependencies for the most popular recent distributions.

Sorry, but we're not going to change this again to support SUSE 8.1 (which is now around
3 years old and no longer supported by SUSE themselves) - please use the "--nodeps"
option in this case. More recent SUSE versions provide the currently listed requirements
and should not cause any dependency conflicts.
[28 Sep 2005 8:48] Dino Tsoumakis
Bad news. :-(
We are running over 1.000 installations world wide. It's impossible for use to update all
systems to a newer OS.
[28 Sep 2005 15:44] Lenz Grimmer
Sorry to hear that, but I hope you can understand that this is problematic for us to do.
If you can not use "--nodeps" in your environment, how about installing a dummy RPM
package that will fulfil the required dependencies? Below is an example on how to do
that:

[SNIP]
Name: dummydeps
Version: 0.1
Release: 0
License: GPL
Group: System
Requires: fileutils sharutils textutils ps
Provides: coreutils procps
Buildarch: noarch
Summary: A virtual package to fulfil dependencies
%description
This package is just a dummy package to satisfy RPM dependencies that actually
are fulfilled.
%files
[SNIP]

Save this as "/usr/src/packages/SPECS/dummydeps.spec" and build it by running "rpm -ba
/usr/src/packages/SPECS/dummydeps.spec". The resulting package will be in
/usr/src/packages/RPMS/noarch/dummydeps-0.1-0.noarch.rpm. As you can see, it requires
the
"old" package names as they are installed on SuSE 8.1 and will provide theas as the
package names required by the MySQL server RPMs. If you install this
dummydeps-0.1-0.noarch.rpm package on your 8.1 system, the requirements for the
MySQL-Server package should be fulfilled and you should be able to install it without
having to use "--nodeps".
[29 Sep 2005 8:27] Dino Tsoumakis
Ok. Thank you. I will try that.