Bug #19149 solaris pkg files are unrelocatable
Submitted: 17 Apr 2006 20:05 Modified: 30 Nov 2016 14:16
Reporter: Matthew Lord Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S4 (Feature request)
Version:all OS:Solaris (solaris all)
Assigned to: CPU Architecture:Any

[17 Apr 2006 20:05] Matthew Lord
Description:
Our solaris packages should be relocatable using the standard pkgadd -R /path option.  This is not working with our packages.

How to repeat:
http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-standard-5.0.20-solaris10-i386.pkg.gz/f...

pkgadd -R /usr/local mysql-standard-5.0.20-solaris10-i386.pkg
[18 Apr 2006 10:00] Valeriy Kravchuk
Thank you for a problem report. What (error) messages you got from that pkgadd -R command (if any)? Have you tried to relocate it to some other directory (/home, for example)? 

That package contains commands to create symbolic links in /usr/local (to basedir, where files are really installed), and it may be the real reason for the problem.
[18 Apr 2006 16:10] Kent Boortz
The package is not relocable. With

  pkgadd -R /usr/local

files are put in /usr/local/opt/mysql/mysql instead of
the expected /usr/local/mysql. Also the soft linking from
"standard locations" fails, it will try to put links from non
existing directories, like /usr/local/usr/man (if I recall
correctly). Anyway, the packaging needs more work to
create relocable packages.

Note that the MySQL RPM packages are not relocable
either, this is a feature addition.

Also note that there is a TAR binary package for
Solaris that can be installed into /usr/local following
the instructions in the documentation.