Mantis - mysql5
Viewing Issue Advanced Details
4295 packaging minor have not tried 2010-02-18 19:52 2013-07-28 10:32
skayser  
laurent  
normal  
closed  
fixed  
none    
none  
0004295: Warns about "old configuration directory", but references /opt/csw/mysql5/var while doing so
Just upgraded from an oldish-installation (5.0.51,REV=2008.01.20) to 5.0.87,REV=2010.01.08. On installation of the new version there was a warning about a still existing "old configuration directory", but it referenced /opt/csw/mysql5/var which isn't a configuration directory, is it?

==> Installing CSWmysql5-5.0.87,REV=2010.01.08
Please see /opt/csw/share/doc/mysql5/license for license information.

*******************************************************************
* The old configuration directory /opt/csw/mysql5/var still exists.
* Please move your configuration to /var/opt/csw/mysql5.
*
* Installation will continue in 10 seconds.
* Press CTRL+C if you want to stop now.
*******************************************************************

Installing class <cswusergroup> ...
Group mysql already exists
User mysql already exists
...
# pkgparam CSWmysql5 VERSION
5.0.87,REV=2010.01.08
Issue History
2010-02-18 19:52 skayser New Issue
2010-02-27 17:29 maciej Note Added: 0007543
2010-02-27 17:29 maciej Assigned To => maciej
2010-02-27 17:29 maciej Status new => feedback
2011-01-02 16:54 maciej Note Added: 0008652
2011-01-07 16:31 skayser Note Added: 0008677
2011-01-07 16:46 maciej Note Added: 0008678
2011-01-07 21:40 skayser Note Added: 0008680
2013-06-30 18:17 laurent Note Added: 0010454
2013-06-30 18:18 laurent Status feedback => assigned
2013-06-30 18:18 laurent Assigned To maciej => laurent
2013-06-30 18:18 laurent Note Added: 0010455
2013-06-30 18:18 laurent Status assigned => resolved
2013-06-30 18:18 laurent Resolution open => fixed
2013-07-28 10:32 laurent Status resolved => closed

Notes
(0007543)
maciej   
2010-02-27 17:29   
This bit belongs to cswclassutils. Revision 8865 updates the message.

Plase see experimental for the updated package.
(0008652)
maciej   
2011-01-02 16:54   
ping?
(0008677)
skayser   
2011-01-07 16:31   
Just to make sure that I test the right pieces: were you referring to an experimental mysql package or an experimental cswclassutils package?
(0008678)
maciej   
2011-01-07 16:46   
That was almost a year ago, so I don't remember clearly, but I probably referred to the classutils package.
(0008680)
skayser   
2011-01-07 21:40   
Dug into it a bit. The mysql5 package from current doesn't rely on classutils but uses a custom preinstall script to raise the text in question.

http://sourceforge.net/apps/trac/gar/browser/csw/mgar/pkg/mysql5/branches/mysql-5.0.x/files/CSWmysql5.preinstall?rev=7914 [^]

Same for the latest build description in trunk/ and other branches.

https://gar.svn.sf.net/svnroot/gar/csw/mgar/pkg/mysql5/trunk/files/CSWmysql51.preinstall [^]
https://gar.svn.sf.net/svnroot/gar/csw/mgar/pkg/mysql5/branches/mysql-5.0.x/files/CSWmysql5.preinstall [^]
https://gar.svn.sf.net/svnroot/gar/csw/mgar/pkg/mysql5/branches/mysql-5.1.x/files/CSWmysql51.preinstall [^]
https://gar.svn.sf.net/svnroot/gar/csw/mgar/pkg/mysql5/branches/mysql-5.1.x-optcsw/files/CSWmysql51.preinstall [^]
https://gar.svn.sf.net/svnroot/gar/csw/mgar/pkg/mysql5/branches/mysql-5.5.x/files/CSWmysql51.preinstall [^]

I am not very familiar with the package, but in effect, existing databases in /opt/csw/mysql5/var will be ignored if the user doesn't interrupt the preinstall script during the warning message, right? If so, a message saying exactly this would be good. Or maybe even an automatic abort of the preinstall script? After all, a user very likely wants to continue to use his existing database.
(0010454)
laurent   
2013-06-30 18:17   
This has not appeared in the latest 5.5 build. I'll close soon if there's nothing new.
(0010455)
laurent   
2013-06-30 18:18   
MySQL and recipe have been greatly improved since then.