Bug #15562 Package for Solaris 10 has invalid unix group 'wheel' reference
Submitted: 7 Dec 2005 22:22 Modified: 14 Feb 2006 4:29
Reporter: Alex Zhilyakov
Status: Closed
Category:Server Severity:S3 (Non-critical)
Version:5.0.16 OS:Sun Solaris (Solaris 10 / SPARC)
Assigned to: Kent Boortz Target Version:

[7 Dec 2005 22:22] Alex Zhilyakov
Description:

The package provided for MySQL 5.0.16 SOLARIS 10 SPARC 32 BIT, file
mysql-standard-5.0.16-solaris10-sparc.pkg.gz contains files created with 'wheel' group,
which does not exist on Solaris 10 3/05 (and I don't remember 'wheel' group being on
previous solaris versions 8,9,10).

Due to non-existent group 'wheel' , package installation partially fails:

[ ... ]
## Executing preinstall script.
## Installing part 1 of 1.
pkgadd: ERROR: unable to create package object </opt/mysql/mysql>.
    pathname does not exist
    group name <wheel> not found in group table(s)
/opt/mysql/mysql/COPYING
ERROR: attribute verification of </opt/mysql/mysql/COPYING> failed
    group name <wheel> not found in group table(s)
/opt/mysql/mysql/EXCEPTIONS-CLIENT
ERROR: attribute verification of </opt/mysql/mysql/EXCEPTIONS-CLIENT> failed
    group name <wheel> not found in group table(s)
/opt/mysql/mysql/INSTALL-BINARY
ERROR: attribute verification of </opt/mysql/mysql/INSTALL-BINARY> failed
    group name <wheel> not found in group table(s)
[ ... thousands of identical warnings skipped ... ]

Installation of <mysql> partially failed.

How to repeat:
Download referenced package and pkgadd it on Solaris 10 3/05.

Suggested fix:
rebuild the package
[8 Dec 2005 10:47] Valeriy Kravchuk
Thank you for a problem report. It is very easy to verify. Just unzip that .gz and use
Solaris tools to get a detailed content of the package:

gzip -d mysql-standard-5.0.16-solaris10-sparc.pkg.gz
/usr/sbin/pkgchk -d mysql-standard-5.0.16-solaris10-sparc.pkg -l | grep wheel

and you'll see a lot of

Expected group: wheel

messages. I had discussed the problem with our Engineering team. The workaround is to
create that wheel group manually before installing MySQL package. The reason is that all
our servers has this group (to be able to perfrom actions using sudo). But this is,
surely, the packaging problem to be fixed some day.
[8 Feb 2006 20:23] Kent Boortz
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

The packaging script is changed, packages in 4.1.19 and 5.0.19
will use the group 'bin' that always exists on Solaris.
[14 Feb 2006 4:29] Paul DuBois
Noted in 4.1.19, 5.0.19 changelogs.

          Binary distributions for Solaris contained files with group
          ownership set to the non-existing <literal>wheel</literal>
          group. Now the <literal>bin</literal> group is used. (Bug
          #15562)