Created attachment 147194 [details]
New databases/mariadb100-client and -server ports and bsd.databases.mk patch
I've created ports (client and server) for MariaDB 10.0 which was released end of March 2014. This also requires changes to Mk/bsd.databases.mk.
I'll be creating/attaching separate patch files to update the CONFLICTS lines of all MySQL, PerconaDB and MariaDB as well.
Based mostly on the existing mariadb55 ports, modified the patches for the new version. Borrowed some info from the mysql56 ports (what binary goes where) for the plist.
Tested on 2 machines, hope it works for everyone!
Great work Bernard!
As discussed on IRC:
* Attach successful build logs (poudriere or redports, might be worth doing both)
* Attach portlint -AC output (after addressing any issues)
* A single patch containing all changes (rather than split, or a tarball)
Created attachment 147249 [details]
shar containing mariadb100-client and -server ports and Mk/bsd.databases.mk patch
As per request, added a shar version of the ports and patch
Created attachment 147316 [details]
Build log of mariadb100-client
Created attachment 147317 [details]
Build log of mariadb100-server
Created attachment 147518 [details]
Patch to include the ports in databases/Makefile
Created attachment 147718 [details]
Patch to upgrade -client port from 10.0.13 to 10.0.14
Created attachment 147719 [details]
Patch to upgrade -server port from 10.0.13 to 10.0.14
Needs proper review. Some new code was added with improper handling of casts and pointers (int vs uintptr_t and (int) vs *(int*)) in the patch-storage-connect patches.
Created attachment 147720 [details]
Build log mariadb100-client_10.0.14
Created attachment 147721 [details]
Build log mariadb100-server 10.0.14
The patches for the server to compile on amd64 clang 3.3 have been submitted upstream as well https://mariadb.atlassian.net/browse/MDEV-6802
This has been sitting here for 5 weeks. I guess I'll take this out of pity.
(In reply to spil.oss from comment #5)
> Created attachment 147518 [details]
> Patch to include the ports in databases/Makefile
FYI, this patch is unnecessary. the committer will normally do this (you can assume he/she will)
(In reply to spil.oss from comment #6)
> Created attachment 147718 [details]
> Patch to upgrade -client port from 10.0.13 to 10.0.14
This is not good.
If you want to update a new port after you submit it, you need to upload an entire new shar. Nobody wants to extract and then apply patches.
(In reply to spil.oss from comment #8)
> Created attachment 147720 [details]
> Build log mariadb100-client_10.0.14
This is gzipped unnecessarily. Now I can't read it from a browser. So in the future, if the log is < 1 Mb, upload it as plain uncompressed text.
Comment on attachment 147316 [details]
Build log of mariadb100-client
old log wasn't set to obsolete, doing it now.
it appears that the pkg-plist on the server wasn't checked at all, e.g. it was copied from another port and not modified. There are several orphaned files and it installs like a 12,000 line testsuite in stage dir.
I've found a few issues and added my own tweaks, but I just noticed that you assigned a third-party as the maintainer (email@example.com). That is not permitted for obvious reasons. New ports also have to be maintained (ports@FreeBSD.org) is not allowed either)
Did you mean to put yourself as maintainer?
If no, I just wasted several hours of my time. These ports are ready to commit.
I didn't necessarily mean to make myself or firstname.lastname@example.org the maintainer but would not mind being the maintainer. Seems that I'm up for maintainer for mariadb-server -client and -scripts (5.3) as well. You have correctly noticed that I've taken the mariadb55 ports as a starting point.
Sorry to have wasted so much of your time, I'd gladly have done the work myself if you had pointed out the mistakes I made, it is a learning effort for me.
Thanks for all your comments, taking heed for next porting efforts!
A commit references this bug:
Date: Tue Nov 4 08:22:02 UTC 2014
New revision: 372136
Add new ports databases/mariadb100-server and -client (version 10.0)
Submitted by: spil.oss (gmail)
MariaDB is a database server that offers drop-in replacement functionality
for MySQL. MariaDB is built by some of the original authors of MySQL, with
assistance from the broader community of Free and open source software
developers. In addition to the core functionality of MySQL, MariaDB offers
a rich set of feature enhancements including alternate storage engines,
server optimizations, and patches.
(In reply to spil.oss from comment #18)
> Seems that I'm up for maintainer for mariadb-server -client and -scripts (5.3) as well.
Hmm, those ports are currently maintained so I can't assign them to you without the current maintainer agreeing (or not being reachable / responsive)
Okay, I've made a few fixes and I've mades some minor changes on my own to support DragonFly withhout patches. These build; I tested them without poudriere against 10.0 jails and 8.4 jails.
I didn't verify how well they run. I leave that up to you. Enjoy your ports!
I tried to install databases/mytop with pkg, which in turn tried to remove mariadb100-server. It turns out mariadb100-server already installs /usr/local/bin/mytop which is kind of strange, given that it does not depend on perl and other modules mytop requires to run. This should be cleaned up...
I did notice the mytop conflict. Yet I left it as is as this is how other mysql (fork) ports have implemented it as well. Some ports specifically conflict(ed?) with mytop for that purpose.
Adding a dependency on perl did not seem the right thing to do for a server-only application. Should be in the client portion? But in the client would not need mytop for most users either.
I am opposed against adding perl dependencies to -server and I also don't like it adding to -client...
I noticed there is databases/mariadb-scripts and I think this this solution is best, and could be made for mariadb100 as well and move mytop and other stuff there.
Did a bit of research here...
There's a port databases/mytop which has been on 1.6 for a very long time, this port refers to the original author's site http://jeremy.zawodny.com/mysql/mytop/
Obviously Jeremy has since moved to github where he released version 1.7 (AKA, databases/mytop needs an update) see https://github.com/jzawodn/mytop
The blob in MariaDB has a version 1.91 by mgrennan which I've tracked back to here http://www.mysqlfanboy.com/mytop-3 which is a modified fork of the original code. The bit that says "FreeBSD users can find mytop in the ports collection. The maintainer seems to keep it relatively current." is misleading...
Propose to update the databases/mytop port and remove mytop from the MariaDB pkg-plist.