If I understand correctly, mariadb packages on OpenBSD machine (5.3, amd64)
should work fine, only the client has these posix issues on platforms other
than i386 or amd64.

and as far as I can see the integration of mariadb in
OpenBSD on archs other than i386 or amd64 depends on the implementation of
that
assembler code.


Having these in mind what is the roadmap of integrating
mariadb in OpenBSD?

Bogdan



________________________________
 From: Stuart
Henderson <[email protected]>
To: Bogdan Andu <[email protected]>; Bogdan Andu
<[email protected]>; "[email protected]" <[email protected]> 
Sent: Monday, July
1, 2013 11:04 AM
Subject: Re: MariaDB and OpenBSD
 

The relevant code is in
the client library and if I remember correctly is just used for asynchronous
access functions. It won't affect your use of the server on Linux x86/x86_64.
The relevant code is written in assembler for amd64/i386 and for other arches
it falls back to using ucontext.h functions specified by an old version of
posix which were never implemented on OpenBSD. They were marked 'obsokescent'
in newer posix due to a dependency on an obsolescent C language feature (see
'rationale' in
http://pubs.opengroup.org/onlinepubs/009695399/functions/makecontext.html) so
can't be used in strictly posix-conforming software.

They aren't widely used
(I've only seen it in mariadb and powerdns-recursor) and unlikely to be added
to OpenBSD. (For some uses, boost's context library might be an alternative,
though I'm unsure about arch support).

Bogdan Andu <[email protected]> wrote:
>
>
>maybe the fact that mariadb packages built correctly made me blind
>enough  to forget about any other package  that might depend on mysql
>and
not mariadb libraries, and curiously enough p5-DBD-mysql was one of
>them,
which I modified it to suport mariadb
>
>
>i was excited to use mariadb on my
OpenBSD machines.
>
>i'll clean'em up and i'll  switch back to mysql-5.1
packages.
>
>i have a some remaining bits, though left in the dark namely,
>concerning that cryptic message from cvs :
>
>"Revert back to using MySQL 5.1
for the time being. MariaDB 5.5
>introduces
>a new libmysqlclient non-blocking
API which utilizes co-routines. The
>X86
>specific GCC ASM co-routine support
hid the fact that there was an
>issue.
>The only fallback code so far is POSIX
user contexts which OpenBSD does
>not
>support."
>
>Please if someone can shed
more light upon this comment, because it
>seems that it has impact on linux
also
>and based on this comment, which seems to me very important, I want to
>know if it is safe to run mariadb server
>on linux also, as I do currently on
an Ubuntu 13.04 linux x86_64 .
>
>Thank you all , for your comments,
>
>Bogdan
>
>
>________________________________
> From: Stuart Henderson
<[email protected]>
>To: Bogdan Andu <[email protected]>; Bogdan Andu
<[email protected]>;
>"[email protected]" <[email protected]> 
>Sent: Monday, July
1, 2013 10:01 AM
>Subject: Re: MariaDB and OpenBSD
> 
>
>You are trying to use
a -current ports tree on 5.3 which is not
>supported and you can have various
problems as a result of this.
>
>Also mariadb is not currently enabled in the
ports tree. It is setup to
>use mysql not mariadb so you're going to have to
modify the port for
>anything you're installing which uses mysql.
>
>
>Bogdan
Andu <[email protected]> wrote:
>
>>on that machine I have imported mariadb in 
>>/usr/ports/databases/mariadb, via cvs, which compiled ok.
>>
>>The problem
was with p5-DBD-mysql needed by mariadb-server-5.5.31p0,
>>which refuses to
install without it, and for that reason I had to
>>generate a p5-DBD-mysql for
mariadb, using the Makefile rev. 1.36 for
>>that package.
>>
>>I took the
following steps:
>>1. checkout mariadb from cvs repository into
>>
/usr/ports/databases/mariadb
>>2. compiled and generated the packages 
mariadb-server-5.5.31p0 and
>>mariadb-client-5.5.31p0;
>>3. removed mysql*
packages (client and server) because of conflicts
>>4. when tried to install
newlly generated  mariadb-server-5.5.31p0 it
>>required
>> p5-DBD-mysql, but
p5-DBD-mysql depends on mysql-* stuff;
>>5. I removed p5-DBD-mysql;
>>6. I
update the Makefile with rev. 1.36 in
>>/usr/ports/databases/p5-DBD-mysql/Makefile to make it mariadb
>>compatible
>>7. I did sudo make install for p5-DBD-mysql
>>8. sudo pkg_add
mariadb-server-5.5.31p0
>>9. sudo pkg_add mariadb-client-5.5.31p0
>>
>>
>>both
client and server are working, but programmaticaly I encountered
>>that error
which seems to be solved, as Stefan Sperling suggested, via
>>LD_PRELOAD env,
var.
>>
>>what I am doing wrong?
>>
>>
>>
>>________________________________
>> From: Stuart Henderson <[email protected]>
>>To: [email protected]
>>Sent: Saturday, June 29, 2013 1:19 AM
>>Subject: Re: MariaDB and OpenBSD
>>
>>
>>On 2013-06-28, Bogdan Andu <[email protected]> wrote:
>>> Hello,
>>>
>>> I
have installed mariadb-server-5.5.31p0 and mariadb-client-5.5.31p0
>>> on an
OpenBSD 5.3 amd64 machine.
>>
>>http://www.openbsd.org/faq/faq15.html#NoFun

Reply via email to