Bug #47270 SVR4 package should create required directories
Submitted: 11 Sep 2009 11:01 Modified: 3 Jun 2012 2:16
Reporter: Jonathan Perkin Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Packaging Severity:S2 (Serious)
Version: OS:Solaris
Assigned to: Assigned Account CPU Architecture:Any

[11 Sep 2009 11:01] Jonathan Perkin
Description:
Installing, for example, mysql-cluster-gpl-7.0.6-solaris9-sparc-64bit.pkg.gz on a stripped-down Solaris 9 host:

/usr/man/man1/comp_err.1 <symbolic link>
pkgadd: ERROR: unable to create package object </usr/man/man1/comp_err.1>.
    pathname does not exist
    unable to create symbolic link to </opt/mysql/mysql/man/man1/comp_err.1>
/usr/man/man1/comp_err.1
[...]

This is wrong, I have SUNWman installed which is enough for manual pages to work.  I shouldn't have to install some random package like SUNWsfman to get /usr/man/man1 created, the MySQL package should do that.

Another minor nit is that we should be creating the symlinks in /usr/share/man/ not /usr/man, they point to the same location but the former is more 'correct'.

This problem is also true for /opt/mysql, which needs to be created before our package can be installed - I think the package should create this if required, like other SVR4 packages do.

As we use a single packaging script for all our releases this bug is likely (although I haven't checked) to exist across all current releases.

How to repeat:
pkgadd a mysql .pkg on a Solaris machine with no /usr/share/man/man1 directory.
[3 May 2012 2:16] Miguel Solorzano
This bug is still valid and open the correct status?. Thanks.
[4 Jun 2012 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".