Project

General

Profile

Feature #7168

Add MariaDB 10.1

Added by Predrag Zečević over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
OI-Userland
Target version:
Start date:
2016-09-11
Due date:
2016-11-10
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
database

Description

Hi all,

MariaDB even provides 64 bit package: https://downloads.mariadb.org/mariadb/10.1.14/#bits=64, so Solaris is considered.

I have experimenting, and found that compilation is fairly easy [with limitation that GCC 3 has to be used - maybe 5+ also - because of some problems with series 4]

Download and navigate to top source tree directory. Used this shell:

#!/bin/bash 
export MY_PREFIX=/opt/MariaDB/${MariaDB}
export MY_ARCH=${MariaDB#*_}

  export CC=/usr/gcc/3.4/bin/gcc
  export CXX=/usr/gcc/3.4/bin/g++

export MAKE=gmake

[[ -d bld ]] && pfexec rm -rf bld
mkdir bld && cd bld

    sfwLIB=
    [[ ${MY_ARCH} = "64" ]] && sfwLIB="/64" 
    export CFLAGS="-mtune=i386 -D__sun -mtune=athlon64 -m${MY_ARCH} -O2 -fno-delete-null-pointer-checks -Wmissing-declarations" 
    export CXXFLAGS="-mtune=i386 -D__sun -mtune=athlon64 -m${MY_ARCH}" 
    export LDFLAGS="-m${MY_ARCH} -lmtmalloc -R/usr/sfw/lib${sfwLIB} --enable-new-dtags" 
    export CXXLDFLAGS="-m${MY_ARCH} -lmtmalloc -R/usr/sfw/lib${sfwLIB} --enable-new-dtags" 

    PKG_CONFIG_PATH="/usr/lib/pkgconfig" \
      cmake .. -DCMAKE_INSTALL_PREFIX=${MY_PREFIX} \
               -DINSTALL_SYSCONFDIR=${MY_PREFIX}/etc \
               -DDTRACE=OFF \
               -DWITH_READLINE=ON \
               -DWITH_MAX=ON \
               -DWITH_EMBEDDED_SERVER=ON \
               -DWITHOUT_MROONGA_STORAGE_ENGINE=ON \
               -DMY_CONTEXT_USE_UCONTEXT=1 \
               -DWITH_EXTRA_CHARSETS=complex \
               -DWITH_ZLIB=bundled -DWITH_PCRE=bundled -DWITH_SSL=bundled

    nice gmake -j6 VERBOSE=1
    pfexec gmake install DESTDIR=/

    # fix shell on OI 
    [[ -d /opt/MariaDB/${MariaDB}/bin/ ]]   && pfexec sed -i "s#/bin/sh#/bin/bash#g" $(grep bin/sh /opt/MariaDB/${MariaDB}/bin/* | cut -d ":" -f 1 | sort -u)

and to get both versions (32 and 64 bit) compiled, call it:
$ MariaDB=10.1.14_32 nice bash ~/bin/compile.MariaDB-10.sh
$ MariaDB=10.1.14_64 nice bash ~/bin/compile.MariaDB-10.sh

That results in creating 2 separate installation directories (I use it for testing purposes only, that is why this layout. Also, there is sym link, so I can test both versions... Sym link path is used in manifest and method files, which I have created from existing mariadb 5.5 ones - can share here is needed):
/opt/MariaDB/10.1.14_32
/opt/MariaDB/10.1.14_64
/opt/MariaDB/10.1 -> 10.1.14_32

Would be nice to have this (instead or together with existing one)..

Regards.

History

#1

Updated by Aurélien Larcher over 3 years ago

  • Subject changed from /hipster: Add (upgrade to) MariaDB 10.1 to Add MariaDB 10.1
  • Category set to OI-Userland
  • Assignee set to OI Userland
  • Target version set to Hipster
#2

Updated by Franklin Ronald over 3 years ago

I'm working on this.

#3

Updated by Aurélien Larcher over 3 years ago

  • Assignee changed from OI Userland to Franklin Ronald
  • Target version changed from Hipster to 2017.04
  • Start date changed from 2016-07-05 to 2016-09-11
  • Tags changed from needs-triage to database
#4

Updated by Aurélien Larcher about 3 years ago

  • Due date set to 2016-11-10
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF