[Bug 875150] Review Request: MariaDB - An enhanced drop-in replacement for MySQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=875150

--- Comment #7 from Honza Horak <hhorak@xxxxxxxxxx> ---
(In reply to comment #4)
> Done. What should be the correct location of the post and postun in the
> kickstart? After %install?

You mean in a spec file? I believe it doesn't matter, but they are usually
located between %install/%check and %files sections.

> > If I see correctly, the packages rely on default datadir path, but we should
> > define one explicitelly, something like /var/lib/mariadb? Then the directory
> > should also be owned by -server subpackage:
> > https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/
> > Guidelines#The_directory_is_wholly_contained_in_your_package.
> > 2C_or_involves_core_functionality_of_your_package
> > 
> > The rule above is valid also for log file.
> 
> As up to now, these guys consider themselves a MySQL replacement. Most lib
> dirs and tools (/usr/bin) are named mysql*.

As I understand the "replacement" statement, we can safely use maria instead of
mysql from the view of application. But I wouldn't rely on any promise to use
exactly the same file formats in datadir and I'm not sure if there even is such
promise.

> The big issue with this is that the libclient files replace the mysql's
> client files. Also, libs is going to have issues with this.

If we'll ever replace mysql by maria, I'd suggest to do it together with new
major/minor version rebase (probably to 5.6). Then soname versions would bump
and all clients would have to be rebuilt anyway.

> What I am saying is that it's either MySQL or MariaDB so far. The later
> works fine with the former's lib /var/lib dir. 
> 
> What to do?

I'd suggest not to use former mysql's directory silently. Even if it works in
most cases, it can do bad things if it doesn't work. On the other hand, all
users would have to do some manual work after installing maria, which is
annoying. At any case, I think this can be consulted on fedora-list to find the
least problematic solution.

> Yeah, I put mysql_clients and client.cnf in the clients subpackage. Why do
> you mention libs?

Actually I'm not sure what is meant by mysql_clients. I thought client.cnf is a
config file for mysql utility and mysql_clients.cnf for libmysqlclient
libraries. That's why I thought it should be in the same package as that
library. But maybe I didn't get their purpose correctly.

(In reply to comment #5)
> errr.. it seems I am having some problems when separating *.so in /var/lib64
> from everything... It appears that MariaDB needs those libs there...

I'm not sure if we understand each other here. By separating *.so into devel I
meant only packaging them into different sub-package, not moving them in the
tree, just keep them in /usr/lib64.

You can do the separation as follows:

%files libs
%{_libdir}/libmysqlclient*.so.*
...

%files devel
%{_libdir}/libmysqlclient*.so
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review



[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]