Magellan Linux

Diff of /smage/trunk/core/mariadb/mariadb-10.1.11-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9641 by niro, Thu Feb 4 12:49:53 2016 UTC revision 9642 by niro, Tue Aug 1 08:23:18 2017 UTC
# Line 11  HOMEPAGE="http://www.mariadb.org/" Line 11  HOMEPAGE="http://www.mariadb.org/"
11    
12  COMMON_DEPEND=">= sys-libs/zlib-1.2  COMMON_DEPEND=">= sys-libs/zlib-1.2
13   >= sys-libs/ncurses-6.0   >= sys-libs/ncurses-6.0
14   >= sys-libs/libstdc++-5.3"   >= sys-libs/libstdc++-5.3
15     >= dev-libs/openssl-1.0.2
16     >= dev-libs/libpcre-8.38
17     >= dev-libs/libxml2-2.9"
18    
19  SDEPEND="${COMMON_DEPEND}  SDEPEND="${COMMON_DEPEND}
20   >= virtual/sed   >= virtual/sed
21   >= sys-libs/zlib-dev-1.2   >= sys-libs/zlib-dev-1.2
22   >= sys-libs/ncurses-dev-6.0   >= sys-libs/ncurses-dev-6.0
23   >= sys-libs/libstdc++-dev-5.3"   >= sys-libs/libstdc++-dev-5.3
24     >= dev-libs/openssl-dev-1.0.2
25     >= dev-libs/libpcre-dev-8.38
26     >= dev-libs/libxml2-dev-2.9"
27    
28  SRCFILE="${PNAME}-${PVER}.tar.gz"  SRCFILE="${PNAME}-${PVER}.tar.gz"
29  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
# Line 26  sminclude mtools cmake systemd Line 32  sminclude mtools cmake systemd
32    
33  TMP_REV=1.2  TMP_REV=1.2
34    
35    # not parallel make safe
36    MAKEOPTS="-j1"
37    
38  SRC_URI=(  SRC_URI=(
39   http://downloads.mariadb.org/interstitial/mariadb-${PVER}/source/${SRCFILE}   http://downloads.mariadb.org/interstitial/mariadb-${PVER}/source/${SRCFILE}
40   mirror://mysql/${SRCFILE}   mirror://mysql/${SRCFILE}
# Line 82  src_prepare() Line 91  src_prepare()
91    
92  src_compile()  src_compile()
93  {  {
94   cd ${SRCDIR}   # off-tree build
95     install -d ${SRCDIR}/build
96     cd ${SRCDIR}/build
97    
98   # fixes some issues   # fixes some issues
99   export CFLAGS="${CFLAGS} -fno-exceptions -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer"   export CFLAGS="${CFLAGS} -fno-exceptions -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer"
# Line 94  src_compile() Line 105  src_compile()
105    
106   cmake_configure \   cmake_configure \
107   -DWITH_COMMENT="Magellan MariaDB ${PVER}-${PBUILD}" \   -DWITH_COMMENT="Magellan MariaDB ${PVER}-${PBUILD}" \
108    -DCMAKE_AR=/usr/bin/gcc-ar \
109    -DCMAKE_RANLIB=/usr/bin/gcc-ranlib \
110   $(cmake_install BINDIR bin) \   $(cmake_install BINDIR bin) \
111   $(cmake_install SBINDIR sbin) \   $(cmake_install SBINDIR sbin) \
112   $(cmake_install DOCDIR share/doc/mysql) \   $(cmake_install DOCDIR share/doc/mysql) \
# Line 118  src_compile() Line 131  src_compile()
131   $(cmake_opt DEFAULT_COLLATION utf8_general_ci) \   $(cmake_opt DEFAULT_COLLATION utf8_general_ci) \
132   $(cmake_without READLINE) \   $(cmake_without READLINE) \
133   $(cmake_with ZLIB system) \   $(cmake_with ZLIB system) \
134   $(cmake_without SSL) \   $(cmake_with SSL system) \
135     $(cmake_with PCRE system) \
136   $(cmake_without LIBWRAP) \   $(cmake_without LIBWRAP) \
137   $(cmake_with EMBEDDED_SERVER) \   $(cmake_with EMBEDDED_SERVER) \
138   $(cmake_with INNOBASE_STORAGE_ENGINE) \   $(cmake_with INNOBASE_STORAGE_ENGINE) \
# Line 128  src_compile() Line 142  src_compile()
142   $(cmake_without BLACKHOLE_STORAGE_ENGINE) \   $(cmake_without BLACKHOLE_STORAGE_ENGINE) \
143   $(cmake_without FEDERATED_STORAGE_ENGINE) \   $(cmake_without FEDERATED_STORAGE_ENGINE) \
144   $(cmake_without UNIT_TESTS) \   $(cmake_without UNIT_TESTS) \
145    $(cmake_without JEMALLOC) \
146    $(cmake_without WSREP) \
147    $(cmake_without TOKUDB) \
148    $(cmake_without MROONGA) \
149    $(cmake_opt PLUGIN_MROONGA NO) \
150    $(cmake_opt CONNECT_WITH_LIBXML2 ON) \
151    $(cmake_opt CONNECT_WITH_ODBC OFF) \
152   || die   || die
153    
154   mmake || die   mmake || die
# Line 135  src_compile() Line 156  src_compile()
156    
157  src_install_mariadb-libs()  src_install_mariadb-libs()
158  {  {
159   cd ${SRCDIR}   cd ${SRCDIR}/build
160    
161   # install only includes and clients libraries   # install only includes and clients libraries
162   local i   local i
# Line 164  src_install_mariadb-libs() Line 185  src_install_mariadb-libs()
185    
186  src_install_mariadb-clients()  src_install_mariadb-clients()
187  {  {
188   cd ${SRCDIR}   cd ${SRCDIR}/build
189   mmake -C client DESTDIR=${BINDIR} install || die   mmake -C client DESTDIR=${BINDIR} install || die
190    
191   # some common symlinks   # some common symlinks
# Line 188  src_install_mariadb-clients() Line 209  src_install_mariadb-clients()
209    
210  src_install_mariadb()  src_install_mariadb()
211  {  {
212   cd ${SRCDIR}   cd ${SRCDIR}/build
213   mmake DESTDIR=${BINDIR} install || die   mmake DESTDIR=${BINDIR} install || die
214    
215   # remove all unneeded stuff   # remove all unneeded stuff

Legend:
Removed from v.9641  
changed lines
  Added in v.9642