On Wed, Jul 23, 2008 at 11:49:02AM +0530, Sunanda Menon wrote: > The question is since the customer who has previously installed MySQL 5.0 > will have his /var/mysql/data pointing to /var/mysql/5.0/data which has > real time data .Now if I install 5.1 packages the links will change > pointing to 5.1 which he may not be ready for as he is caught unaware . > How do I communicate to the user that his links will be overwritten ?
At the moment, release notes are your best bet. Or don't change the links. You have a real dilemma trying to support a product whose file format changes every time you upgrade. If that didn't happen, then the data directory wouldn't have to be versioned, and you wouldn't have the problem. Or are the 5.0 and 5.1 database formats compatible? Is the intent to have mysql 5.0 and 5.1 on the system at the same time (as well as 4.0)? The ARC case for mysql5 stated that the next version of mysql we intended to ship was going to be 6.0, which is why the packages (although not the directories) were named as "5" rather than "50". In addition, the case stated that the intent was to have the links always point to the latest version of mysql. So there needs to be a bit more clarity about what the intent is now, six months later. At any rate, if you want for a fresh install to point to 5.1, but for existing links to continue pointing to 5.0, then I believe that the tag "preserve=true" will prevent the link from being overwritten. I don't think we do that for any symlinks right now, but there's no reason I can think of that it shouldn't work. But I'd rather that you state the exact behavior you need/want, and we can figure out a mechanism to support that if appropriate, rather than trying to triangulate the path forward based on a vague explanation of the desired behavior and a vague understanding of what might or might not be possible now, or in the future. Danek _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
