Bug #71170 Please, make MySQL RPMs relocatable
Submitted: 18 Dec 2013 10:08 Modified: 20 Dec 2013 11:49
Reporter: Valeriy Kravchuk Email Updates:
Status: Unsupported Impact on me:
Category:MySQL Server: Packaging Severity:S4 (Feature request)
Version:5.6.15, any OS:Linux
Assigned to: Balasubramanian Kandasamy CPU Architecture:Any
Tags: prefix, rpm

[18 Dec 2013 10:08] Valeriy Kravchuk
I wonder why MySQL RPMs still do not support --prefix option:

[root@chief openxs]# rpm -i --prefix /tmp/usr MySQL-server-5.6.15-1.linux_glibc2.5.x86_64.rpm
error: package MySQL-server is not relocatable

It could help a lot while testing different versions and upgrades.

How to repeat:
Try to install any MySQL RPM to some non-default location, entirely or partially:

[root@chief openxs]# rpm -i --relocate /usr=/tmp/usr MySQL-server-5.6.15-1.linux_glibc2.5.x86_64.rpm
        path /usr in package MySQL-server-5.6.15-1.linux_glibc2.5.x86_64 is not relocatable

No way?

Suggested fix:
Make MySQL RPMs relocatable.
[20 Dec 2013 11:49] Balasubramanian Kandasamy
Thanks you for the bug report.

At the moment we are not planning to support  relocatable packages.

Per Fedora guidelines, The use of RPM's facility for generating relocatable packages is strongly discouraged. It is difficult to make work properly, impossible to use from the installer or from yum, and not
generally necessary if other packaging guidelines are followed.

If user wants to test rpms, they should use chroot technology such as mock
or similar.