diff options
author | Armin Kuster <akuster808@gmail.com> | 2017-10-26 13:25:43 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-03-01 16:10:35 -0800 |
commit | 31f337c1af1223ca5e973f31c0cbc3599393e322 (patch) | |
tree | 45c12b18ca36312b5255a91eee9ff299dc717e31 /meta-oe/recipes-support/mysql | |
parent | 036b3e794650cfc92f2f983d860ce93575198b57 (diff) | |
download | meta-openembedded-31f337c1af1223ca5e973f31c0cbc3599393e322.tar.gz |
mysql: move to recipes-dbs
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/mysql')
16 files changed, 0 insertions, 840 deletions
diff --git a/meta-oe/recipes-support/mysql/mariadb-native_5.5.57.bb b/meta-oe/recipes-support/mysql/mariadb-native_5.5.57.bb deleted file mode 100644 index 4ce960d7d..000000000 --- a/meta-oe/recipes-support/mysql/mariadb-native_5.5.57.bb +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | require mariadb.inc | ||
2 | inherit native | ||
3 | |||
4 | PROVIDES += "mysql5-native" | ||
5 | DEPENDS = "ncurses-native zlib-native bison-native" | ||
6 | |||
7 | RDEPENDS_${PN} = "" | ||
8 | PACKAGES = "" | ||
9 | EXTRA_OEMAKE = "" | ||
10 | |||
11 | do_install() { | ||
12 | oe_runmake 'DESTDIR=${D}' install | ||
13 | |||
14 | install -d ${D}${bindir} | ||
15 | install -m 0755 sql/gen_lex_hash ${D}${bindir}/ | ||
16 | install -m 0755 extra/comp_err ${D}${bindir}/ | ||
17 | install -m 0755 scripts/comp_sql ${D}${bindir}/ | ||
18 | } | ||
19 | |||
diff --git a/meta-oe/recipes-support/mysql/mariadb.inc b/meta-oe/recipes-support/mysql/mariadb.inc deleted file mode 100644 index a29d441e1..000000000 --- a/meta-oe/recipes-support/mysql/mariadb.inc +++ /dev/null | |||
@@ -1,297 +0,0 @@ | |||
1 | SUMMARY = "A robust, scalable, and reliable SQL server" | ||
2 | HOMEPAGE = "http://mariadb.org" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
6 | |||
7 | SRC_URI = "https://downloads.mariadb.org/f/${BP}/source/${BP}.tar.gz \ | ||
8 | file://fix-cmake-module-path.patch \ | ||
9 | file://remove-bad-path.patch \ | ||
10 | file://fix-mysqlclient-r-version.patch \ | ||
11 | file://my.cnf \ | ||
12 | file://mysqld.service \ | ||
13 | file://install_db.service \ | ||
14 | file://install_db \ | ||
15 | file://mysql-systemd-start \ | ||
16 | file://configure.cmake-fix-valgrind.patch \ | ||
17 | file://fix-a-building-failure.patch \ | ||
18 | file://change-cc-to-cc-version.patch \ | ||
19 | file://0001-disable-ucontext-on-musl.patch \ | ||
20 | " | ||
21 | |||
22 | SRC_URI[md5sum] = "2d4104aae0b9e5efa8878918bd329cb4" | ||
23 | SRC_URI[sha256sum] = "5dbde98d7e4a5a1721b6cbed7898b2549a88866247951cf586057975c6cea641" | ||
24 | |||
25 | S = "${WORKDIR}/mariadb-${PV}" | ||
26 | |||
27 | BINCONFIG_GLOB = "mysql_config" | ||
28 | |||
29 | inherit cmake gettext binconfig update-rc.d useradd systemd | ||
30 | |||
31 | INITSCRIPT_PACKAGES = "${PN}-server ${PN}-setupdb" | ||
32 | INITSCRIPT_NAME_${PN}-server = "mysqld" | ||
33 | INITSCRIPT_PARAMS_${PN}-server ?= "start 45 5 . stop 45 0 6 1 ." | ||
34 | |||
35 | USERADD_PACKAGES = "${PN}-server" | ||
36 | USERADD_PARAM_${PN}-server = "--system --home-dir /var/mysql -g mysql --shell /bin/false mysql" | ||
37 | GROUPADD_PARAM_${PN}-server = "--system mysql" | ||
38 | |||
39 | INITSCRIPT_NAME_${PN}-setupdb = "install_db" | ||
40 | INITSCRIPT_PARAMS_${PN}-setupdb ?= "defaults 44 44" | ||
41 | |||
42 | SYSTEMD_PACKAGES = "${PN}-server ${PN}-setupdb" | ||
43 | SYSTEMD_SERVICE_${PN}-server = "mysqld.service" | ||
44 | SYSTEMD_AUTO_ENABLE_${PN}-server ?= "disable" | ||
45 | |||
46 | SYSTEMD_SERVICE_${PN}-setupdb = "install_db.service" | ||
47 | SYSTEMD_AUTO_ENABLE_${PN}-setupdb ?= "enable" | ||
48 | ALLOW_EMPTY_${PN}-setupdb ?= "1" | ||
49 | FILES_${PN}-setupdb = "${sysconfdir}/init.d/install_db" | ||
50 | |||
51 | EXTRA_OEMAKE = "'GEN_LEX_HASH=${STAGING_BINDIR_NATIVE}/gen_lex_hash'" | ||
52 | |||
53 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} setupdb" | ||
54 | PACKAGECONFIG_class-native = "" | ||
55 | PACKAGECONFIG[pam] = ",-DWITHOUT_AUTH_PAM=TRUE,libpam" | ||
56 | PACKAGECONFIG[valgrind] = "-DWITH_VALGRIND=TRUE,-DWITH_VALGRIND=FALSE,valgrind" | ||
57 | PACKAGECONFIG[libedit] = "-DLIBEDIT_INTERFACE=TRUE,-DLIBEDIT_INTERFACE=FALSE,libedit" | ||
58 | PACKAGECONFIG[krb5] = ", ,krb5" | ||
59 | PACKAGECONFIG[setupdb] = ", ,,${PN}-setupdb" | ||
60 | |||
61 | # MariaDB doesn't link properly with gold | ||
62 | # https://mariadb.atlassian.net/browse/MDEV-5982 | ||
63 | TARGET_CFLAGS += "-fuse-ld=bfd" | ||
64 | |||
65 | BUILD_CFLAGS += "-fuse-ld=bfd" | ||
66 | BUILD_CXXFLAGS += "-fuse-ld=bfd" | ||
67 | |||
68 | EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \ | ||
69 | -DWITH_JEMALLOC=no \ | ||
70 | -DWITHOUT_TOKUDB=TRUE \ | ||
71 | -DCMAKE_DISABLE_FIND_PACKAGE_Boost=TRUE \ | ||
72 | -DGROFF=FALSE \ | ||
73 | -DNROFF=FALSE \ | ||
74 | -DENABLE_DTRACE=FALSE \ | ||
75 | -DWITH_PIC=ON \ | ||
76 | -DINSTALL_LAYOUT=RPM \ | ||
77 | -DINSTALL_DOCDIR:PATH=${datadir}/doc/${BPN} \ | ||
78 | -DINSTALL_LIBDIR:PATH=${baselib} \ | ||
79 | -DINSTALL_PLUGINDIR:PATH=${baselib}/plugin \ | ||
80 | -DINSTALL_SYSCONFDIR:PATH=${sysconfdir} \ | ||
81 | -DMYSQL_DATADIR:PATH=/var/mysql \ | ||
82 | -DCAT_EXECUTABLE=`which cat` \ | ||
83 | -DCMAKE_AR:FILEPATH=${AR}" | ||
84 | |||
85 | # With Ninja it fails with: | ||
86 | # make: *** No rule to make target `install'. Stop. | ||
87 | OECMAKE_GENERATOR = "Unix Makefiles" | ||
88 | |||
89 | ARM_INSTRUCTION_SET_armv4 = "arm" | ||
90 | ARM_INSTRUCTION_SET_armv5 = "arm" | ||
91 | |||
92 | do_configure_append() { | ||
93 | # handle distros with different values of ${libexecdir} | ||
94 | libexecdir2=`echo ${libexecdir} | sed -e 's+/usr/++g'` | ||
95 | sed -i -e "s:/libexec:/$libexecdir2:g" ${S}/scripts/mysql_install_db.sh | ||
96 | sed -i -e "s:mysqld libexec:mysqld $libexecdir2:g" ${S}/scripts/mysql_install_db.sh | ||
97 | sed -i -e "s:/libexec:/$libexecdir2:g" ${S}/scripts/mysqld_safe.sh | ||
98 | } | ||
99 | |||
100 | do_generate_toolchain_file_append_class-native () { | ||
101 | # If these are set cmake will assume we're cross-compiling, which will | ||
102 | # result in certain things we want being disabled | ||
103 | sed -i "/set( CMAKE_SYSTEM_NAME/d" ${WORKDIR}/toolchain.cmake | ||
104 | sed -i "/set( CMAKE_SYSTEM_PROCESSOR/d" ${WORKDIR}/toolchain.cmake | ||
105 | } | ||
106 | |||
107 | do_compile_prepend_class-target () { | ||
108 | # These need to be in-tree or make will think they need to be built, | ||
109 | # and since we're cross-compiling that is disabled | ||
110 | cp ${STAGING_BINDIR_NATIVE}/comp_err ${S}/extra | ||
111 | cp ${STAGING_BINDIR_NATIVE}/comp_sql ${S}/scripts | ||
112 | |||
113 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'krb5', 'yes', 'no', d)}" = "no" ]; then | ||
114 | if ! [ -e ${B}/include/openssl/kssl.h ] ; then | ||
115 | mkdir -p ${B}/include/openssl | ||
116 | echo "#ifndef KSSL_H" >${B}/include/openssl/kssl.h | ||
117 | echo "#define KSSL_H" >>${B}/include/openssl/kssl.h | ||
118 | echo "#include <openssl/opensslconf.h>">>${B}/include/openssl/kssl.h | ||
119 | echo "#endif" >>${B}/include/openssl/kssl.h | ||
120 | fi | ||
121 | fi | ||
122 | } | ||
123 | |||
124 | SYSROOT_PREPROCESS_FUNCS += "mariadb_sysroot_preprocess" | ||
125 | |||
126 | # We need to append this so it runs *after* binconfig's preprocess function | ||
127 | # | ||
128 | # We really don't care exactly what the directories were set to originally. | ||
129 | # plugindir is not fixed, but we don't create any plugins. | ||
130 | # | ||
131 | mariadb_sysroot_preprocess () { | ||
132 | sed -i -es,^pkgincludedir=.*,pkgincludedir=\'${STAGING_INCDIR}/mysql\', ${SYSROOT_DESTDIR}${bindir_crossscripts}/mysql_config | ||
133 | sed -i -es,^pkglibdir=.*,pkglibdir=\'${STAGING_LIBDIR}\', ${SYSROOT_DESTDIR}${bindir_crossscripts}/mysql_config | ||
134 | } | ||
135 | |||
136 | do_install() { | ||
137 | oe_runmake 'DESTDIR=${D}' install | ||
138 | |||
139 | install -d ${D}/${sysconfdir}/init.d | ||
140 | install -m 0644 ${WORKDIR}/my.cnf ${D}/${sysconfdir}/ | ||
141 | install -m 0755 ${WORKDIR}/install_db ${D}/${sysconfdir}/init.d/ | ||
142 | mv ${D}/${sysconfdir}/init.d/mysql ${D}/${sysconfdir}/init.d/mysqld | ||
143 | |||
144 | install -d ${D}${systemd_unitdir}/system | ||
145 | install -m 0644 ${WORKDIR}/mysqld.service ${D}${systemd_unitdir}/system | ||
146 | install -m 0644 ${WORKDIR}/install_db.service ${D}${systemd_unitdir}/system | ||
147 | sed -i -e 's,@BINDIR@,${bindir},g' -e 's,@PREFIX@,${prefix},g' ${D}${systemd_unitdir}/system/mysqld.service \ | ||
148 | ${D}${systemd_unitdir}/system/install_db.service | ||
149 | |||
150 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
151 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
152 | echo "f /var/log/mysqld.err 0640 mysql mysql -" \ | ||
153 | > ${D}${sysconfdir}/tmpfiles.d/99-mysqld.conf | ||
154 | fi | ||
155 | install -d ${D}${bindir} | ||
156 | install -m 755 ${WORKDIR}/mysql-systemd-start ${D}${bindir} | ||
157 | install -d ${D}${datadir}/doc/${PN} | ||
158 | if [ -f ${D}${datadir}/doc/README ]; then | ||
159 | mv ${D}${datadir}/doc/README ${D}${datadir}/doc/${PN}/ | ||
160 | fi | ||
161 | } | ||
162 | |||
163 | PACKAGES = "${PN}-dbg ${PN} \ | ||
164 | libmysqlclient-r libmysqlclient-r-dev libmysqlclient-r-staticdev libmysqlclient-r-dbg \ | ||
165 | libmysqlclient libmysqlclient-dev libmysqlclient-staticdev libmysqlclient-dbg \ | ||
166 | libmysqld libmysqld-dev ${PN}-client ${PN}-server ${PN}-setupdb ${PN}-leftovers" | ||
167 | CONFFILES_${PN}-server += "${sysconfdir}/my.cnf ${sysconfdir}/my.cnf.d/server.cnf" | ||
168 | CONFFILES_${PN}-client += "${sysconfdir}/my.cnf.d/mysql-clients.cnf" | ||
169 | CONFFILES_libmysqlclient += "${sysconfdir}/my.cnf.d/client.cnf" | ||
170 | |||
171 | FILES_${PN} = " " | ||
172 | RDEPENDS_${PN} = "${PN}-client ${PN}-server" | ||
173 | ALLOW_EMPTY_${PN} = "1" | ||
174 | |||
175 | RDEPENDS_${PN}-client = "perl perl-module-getopt-long perl-module-file-temp \ | ||
176 | perl-module-fcntl perl-module-sys-hostname perl-module-ipc-open3 \ | ||
177 | perl-module-exporter" | ||
178 | RDEPENDS_${PN}-server = "perl perl-module-getopt-long perl-module-data-dumper \ | ||
179 | perl-module-file-basename perl-module-file-path perl-module-sys-hostname \ | ||
180 | perl-module-file-copy perl-module-file-temp perl-module-posix \ | ||
181 | ${PN}-client libdbi-perl libdbd-mysql-perl" | ||
182 | RDEPENDS_${PN}-leftovers = "perl perl-module-cwd perl-module-benchmark perl-module-getopt-long \ | ||
183 | perl-module-posix perl-module-data-dumper perl-module-sigtrap perl-module-threads \ | ||
184 | perl-module-threads-shared perl-module-io-socket perl-module-sys-hostname perl-module-file-copy \ | ||
185 | perl-module-file-spec perl-module-file-find perl-module-file-basename perl-module-file-path \ | ||
186 | perl-module-constant perl-module-lib perl-module-file-temp perl-module-file-spec-functions \ | ||
187 | perl-module-io-socket-inet perl-module-io-select" | ||
188 | RDEPENDS_${PN}-setupdb = "coreutils" | ||
189 | |||
190 | # Allow old code to link to the backward compatible library | ||
191 | RDEPENDS_libmysqlclient-dev = "libmysqlclient-r-dev" | ||
192 | |||
193 | FILES_libmysqlclient = "\ | ||
194 | ${libdir}/libmysqlclient.so.* \ | ||
195 | ${sysconfdir}/my.cnf.d/client.cnf" | ||
196 | FILES_libmysqlclient-dev = " \ | ||
197 | ${includedir}/mysql/ \ | ||
198 | ${libdir}/libmysqlclient.so \ | ||
199 | ${sysconfdir}/aclocal \ | ||
200 | ${bindir}/mysql_config" | ||
201 | FILES_libmysqlclient-staticdev = "\ | ||
202 | ${libdir}/*.a" | ||
203 | FILES_libmysqlclient-dbg = "${libdir}/plugin/.debug/ \ | ||
204 | ${datadir}/mysql-test/lib/My/SafeProcess/.debug/my_safe_process" | ||
205 | |||
206 | # Avoid warnings about ha_xtradb.so.0.0.0 and ha_innodb_plugin.so.0.0.0 | ||
207 | # which are intentionally non-PIC on 32-bit x86 (see e.g. | ||
208 | # storage/xtradb/plug.in in the source) | ||
209 | INSANE_SKIP_libmysqlclient_append_x86 = " textrel" | ||
210 | |||
211 | FILES_libmysqlclient-r = "${libdir}/libmysqlclient_r.so.*" | ||
212 | FILES_libmysqlclient-r-dev = "\ | ||
213 | ${libdir}/libmysqlclient_r.so" | ||
214 | FILES_libmysqlclient-r-staticdev = "${libdir}/libmysqlclient_r.a" | ||
215 | FILES_libmysqlclient-r-dbg = "${libdir}/plugin/.debuglibmysqlclient_r.so.*" | ||
216 | |||
217 | FILES_libmysqld = "\ | ||
218 | ${libdir}/libmysqld.so.*" | ||
219 | FILES_libmysqld-dev = "\ | ||
220 | ${libdir}/libmysqld.so" | ||
221 | |||
222 | FILES_${PN}-client = "\ | ||
223 | ${bindir}/myisam_ftdump \ | ||
224 | ${bindir}/mysql \ | ||
225 | ${bindir}/mysql_client_test \ | ||
226 | ${bindir}/mysql_client_test_embedded \ | ||
227 | ${bindir}/mysql_find_rows \ | ||
228 | ${bindir}/mysql_fix_extensions \ | ||
229 | ${bindir}/mysql_waitpid \ | ||
230 | ${bindir}/mysqlaccess \ | ||
231 | ${bindir}/mysqladmin \ | ||
232 | ${bindir}/mysqlbug \ | ||
233 | ${bindir}/mysqlcheck \ | ||
234 | ${bindir}/mysqldump \ | ||
235 | ${bindir}/mysqldumpslow \ | ||
236 | ${bindir}/mysqlimport \ | ||
237 | ${bindir}/mysqlshow \ | ||
238 | ${bindir}/mysqlslap \ | ||
239 | ${bindir}/mysqltest_embedded \ | ||
240 | ${libexecdir}/mysqlmanager \ | ||
241 | ${sysconfdir}/my.cnf.d/mysql-clients.cnf" | ||
242 | |||
243 | FILES_${PN}-server = "\ | ||
244 | ${bindir}/comp_err \ | ||
245 | ${bindir}/isamchk \ | ||
246 | ${bindir}/isamlog \ | ||
247 | ${bindir}/msql2mysql \ | ||
248 | ${bindir}/my_print_defaults \ | ||
249 | ${bindir}/myisamchk \ | ||
250 | ${bindir}/myisamlog \ | ||
251 | ${bindir}/myisampack \ | ||
252 | ${bindir}/mysql_convert_table_format \ | ||
253 | ${bindir}/mysql_fix_privilege_tables \ | ||
254 | ${bindir}/mysql_install_db \ | ||
255 | ${bindir}/mysql_secure_installation \ | ||
256 | ${bindir}/mysql_setpermission \ | ||
257 | ${bindir}/mysql-systemd-start \ | ||
258 | ${bindir}/mysql_tzinfo_to_sql \ | ||
259 | ${bindir}/mysql_upgrade \ | ||
260 | ${bindir}/mysql_plugin \ | ||
261 | ${bindir}/mysql_zap \ | ||
262 | ${bindir}/mysqlbinlog \ | ||
263 | ${bindir}/mysqld_multi \ | ||
264 | ${bindir}/mysqld_safe \ | ||
265 | ${bindir}/mysqld_safe_helper \ | ||
266 | ${bindir}/mysqlhotcopy \ | ||
267 | ${bindir}/mysqltest \ | ||
268 | ${bindir}/ndb_delete_all \ | ||
269 | ${bindir}/ndb_desc \ | ||
270 | ${bindir}/ndb_drop_index \ | ||
271 | ${bindir}/ndb_drop_table \ | ||
272 | ${bindir}/ndb_mgm \ | ||
273 | ${bindir}/ndb_restore \ | ||
274 | ${bindir}/ndb_select_all \ | ||
275 | ${bindir}/ndb_select_count \ | ||
276 | ${bindir}/ndb_show_tables \ | ||
277 | ${bindir}/ndb_waiter \ | ||
278 | ${bindir}/pack_isam \ | ||
279 | ${bindir}/perror \ | ||
280 | ${bindir}/replace \ | ||
281 | ${bindir}/resolve_stack_dump \ | ||
282 | ${bindir}/resolveip \ | ||
283 | ${libexecdir}/mysqld \ | ||
284 | ${sbindir}/mysqld \ | ||
285 | ${sbindir}/ndb_cpcd \ | ||
286 | ${sbindir}/ndbd \ | ||
287 | ${sbindir}/ndb_mgmd \ | ||
288 | ${libdir}/plugin/*.so \ | ||
289 | ${datadir}/mysql/ \ | ||
290 | ${localstatedir}/mysql/ \ | ||
291 | ${sysconfdir}/init.d/mysqld \ | ||
292 | ${sysconfdir}/my.cnf \ | ||
293 | ${sysconfdir}/my.cnf.d/server.cnf \ | ||
294 | ${sysconfdir}/tmpfiles.d" | ||
295 | |||
296 | DESCRIPTION_${PN}-leftovers = "unpackaged and probably unneeded files for ${PN}" | ||
297 | FILES_${PN}-leftovers = "/" | ||
diff --git a/meta-oe/recipes-support/mysql/mariadb/0001-disable-ucontext-on-musl.patch b/meta-oe/recipes-support/mysql/mariadb/0001-disable-ucontext-on-musl.patch deleted file mode 100644 index 60e9199f9..000000000 --- a/meta-oe/recipes-support/mysql/mariadb/0001-disable-ucontext-on-musl.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From 5bc3e7ef9700d12054e0125a126f1bb093f01ef9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 26 Mar 2017 14:30:33 -0700 | ||
4 | Subject: [PATCH] disable ucontext on musl | ||
5 | |||
6 | musl does not have *contex() APIs even though it has ucontext.h header | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | include/my_context.h | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/include/my_context.h b/include/my_context.h | ||
14 | index dd44103..9b28c17 100644 | ||
15 | --- a/include/my_context.h | ||
16 | +++ b/include/my_context.h | ||
17 | @@ -31,7 +31,7 @@ | ||
18 | #define MY_CONTEXT_USE_X86_64_GCC_ASM | ||
19 | #elif defined(__GNUC__) && __GNUC__ >= 3 && defined(__i386__) | ||
20 | #define MY_CONTEXT_USE_I386_GCC_ASM | ||
21 | -#elif defined(HAVE_UCONTEXT_H) | ||
22 | +#elif defined(__GLIBC__) && defined(HAVE_UCONTEXT_H) | ||
23 | #define MY_CONTEXT_USE_UCONTEXT | ||
24 | #else | ||
25 | #define MY_CONTEXT_DISABLE | ||
26 | -- | ||
27 | 2.12.1 | ||
28 | |||
diff --git a/meta-oe/recipes-support/mysql/mariadb/change-cc-to-cc-version.patch b/meta-oe/recipes-support/mysql/mariadb/change-cc-to-cc-version.patch deleted file mode 100644 index 02bda24f7..000000000 --- a/meta-oe/recipes-support/mysql/mariadb/change-cc-to-cc-version.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | mariadb: replace the CC with CC_VERSION and CXX with CXX_VERSION | ||
2 | |||
3 | mysqlbug.sh is a bug report script. It makes a report with the build information, | ||
4 | including gcc version. The CC is the local path of gcc, which is useless for bug | ||
5 | report, and the path may expose private information, so change it to CC_VERSION. | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Yue Tao <Yue.Tao@windriver.com> | ||
10 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
11 | ================================ | ||
12 | diff --git a/scripts/mysqlbug.sh.old b/scripts/mysqlbug.sh | ||
13 | index e9df210..d4b8d53 100644 | ||
14 | --- a/scripts/mysqlbug.sh.old | ||
15 | +++ b/scripts/mysqlbug.sh | ||
16 | @@ -24,8 +24,8 @@ VERSION="@VERSION@@MYSQL_SERVER_SUFFIX@" | ||
17 | COMPILATION_COMMENT="@COMPILATION_COMMENT@" | ||
18 | BUGmysql="maria-developers@lists.launchpad.net" | ||
19 | # This is set by configure | ||
20 | -COMP_CALL_INFO="CC='@SAVE_CC@' CFLAGS='@SAVE_CFLAGS@' CXX='@SAVE_CXX@' CXXFLAGS='@SAVE_CXXFLAGS@' LDFLAGS='@SAVE_LDFLAGS@' ASFLAGS='@SAVE_ASFLAGS@'" | ||
21 | -COMP_RUN_INFO="CC='@CC@' CFLAGS='@CFLAGS@' CXX='@CXX@' CXXFLAGS='@CXXFLAGS@' LDFLAGS='@LDFLAGS@' ASFLAGS='@ASFLAGS@'" | ||
22 | +COMP_CALL_INFO="CC='@CC_VERSION@' CFLAGS='@SAVE_CFLAGS@' CXX='@CXX_VERSION@' CXXFLAGS='@SAVE_CXXFLAGS@' LDFLAGS='@SAVE_LDFLAGS@' ASFLAGS='@SAVE_ASFLAGS@'" | ||
23 | +COMP_RUN_INFO="CC='@CC_VERSION@' CFLAGS='@CFLAGS@' CXX='@CXX_VERSION@' CXXFLAGS='@CXXFLAGS@' LDFLAGS='@LDFLAGS@' ASFLAGS='@ASFLAGS@'" | ||
24 | CONFIGURE_LINE="@CONF_COMMAND@" | ||
25 | |||
26 | LIBC_INFO="" | ||
diff --git a/meta-oe/recipes-support/mysql/mariadb/configure.cmake-fix-valgrind.patch b/meta-oe/recipes-support/mysql/mariadb/configure.cmake-fix-valgrind.patch deleted file mode 100644 index e97def602..000000000 --- a/meta-oe/recipes-support/mysql/mariadb/configure.cmake-fix-valgrind.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From 5effba0d7d47071a3f1bca56823190d5a95bb1a6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jackie Huang <jackie.huang@windriver.com> | ||
3 | Date: Wed, 12 Nov 2014 03:09:10 -0500 | ||
4 | Subject: [PATCH] configure.cmake: fix valgrind | ||
5 | |||
6 | Check valgrind headers only if WITH_VALGRIND is set. | ||
7 | |||
8 | mariadb uses two macros for valgrind compilations: | ||
9 | HAVE_valgrind - valgrind is installed and can be set by configure option -DWITH_VALGRIND | ||
10 | HAVE_VALGRIND - valgrind debug libraries is installed, set by auto check | ||
11 | |||
12 | We would like to set them both by the configure option so that we can use | ||
13 | PACKAGECONFIG to decide if valgrind is needed or not. | ||
14 | |||
15 | Upstream-Status: Inappropriate [oe specific] | ||
16 | |||
17 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
18 | --- | ||
19 | configure.cmake | 4 ++-- | ||
20 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
21 | |||
22 | diff --git a/configure.cmake b/configure.cmake | ||
23 | index 0bd7bbe..51a098f 100644 | ||
24 | --- a/configure.cmake | ||
25 | +++ b/configure.cmake | ||
26 | @@ -1047,10 +1047,10 @@ MARK_AS_ADVANCED(WITH_ATOMIC_LOCKS MY_ATOMIC_MODE_RWLOCK MY_ATOMIC_MODE_DUMMY) | ||
27 | |||
28 | IF(WITH_VALGRIND) | ||
29 | SET(HAVE_valgrind 1) | ||
30 | + CHECK_INCLUDE_FILES("valgrind/memcheck.h;valgrind/valgrind.h" | ||
31 | + HAVE_VALGRIND) | ||
32 | ENDIF() | ||
33 | |||
34 | -CHECK_INCLUDE_FILES("valgrind/memcheck.h;valgrind/valgrind.h" | ||
35 | - HAVE_VALGRIND) | ||
36 | |||
37 | #-------------------------------------------------------------------- | ||
38 | # Check for IPv6 support | ||
39 | -- | ||
40 | 2.0.0 | ||
41 | |||
diff --git a/meta-oe/recipes-support/mysql/mariadb/fix-a-building-failure.patch b/meta-oe/recipes-support/mysql/mariadb/fix-a-building-failure.patch deleted file mode 100644 index 0c4e10237..000000000 --- a/meta-oe/recipes-support/mysql/mariadb/fix-a-building-failure.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | [PATCH] fix a building failure | ||
2 | |||
3 | Upstream-Status: Inappropriate [configuration] | ||
4 | |||
5 | building failed since native does not generate import_executables.cmake | ||
6 | In fact, our building system will export the needed commands | ||
7 | |||
8 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | ||
9 | --- | ||
10 | CMakeLists.txt | 5 ----- | ||
11 | 1 file changed, 5 deletions(-) | ||
12 | |||
13 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
14 | index c1ce1c5..83b3a7e 100644 | ||
15 | --- a/CMakeLists.txt | ||
16 | +++ b/CMakeLists.txt | ||
17 | @@ -350,11 +350,6 @@ MYSQL_CHECK_READLINE() | ||
18 | |||
19 | CHECK_JEMALLOC() | ||
20 | |||
21 | -IF(CMAKE_CROSSCOMPILING) | ||
22 | - SET(IMPORT_EXECUTABLES "IMPORTFILE-NOTFOUND" CACHE FILEPATH "Path to import_executables.cmake from a native build") | ||
23 | - INCLUDE(${IMPORT_EXECUTABLES}) | ||
24 | -ENDIF() | ||
25 | - | ||
26 | # | ||
27 | # Setup maintainer mode options by the end. Platform checks are | ||
28 | # not run with the warning options as to not perturb fragile checks | ||
29 | -- | ||
30 | 1.9.1 | ||
31 | |||
diff --git a/meta-oe/recipes-support/mysql/mariadb/fix-cmake-module-path.patch b/meta-oe/recipes-support/mysql/mariadb/fix-cmake-module-path.patch deleted file mode 100644 index 8d9f558d0..000000000 --- a/meta-oe/recipes-support/mysql/mariadb/fix-cmake-module-path.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | Avoid CMAKE_MODULE_PATH being overwritten | ||
2 | |||
3 | OE-Core's setting of CMAKE_MODULE_PATH stomps on MariaDB's value unless | ||
4 | we set it after setting the project name. | ||
5 | |||
6 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
7 | |||
8 | Upstream-Status: Inappropriate [working around OE-Core bug] | ||
9 | |||
10 | --- mariadb/CMakeLists.txt 2014-07-17 11:01:07.676353047 +0100 | ||
11 | +++ mariadb/CMakeLists.txt 2014-07-17 11:01:31.299353107 +0100 | ||
12 | @@ -28,8 +28,6 @@ | ||
13 | |||
14 | MESSAGE(STATUS "Running cmake version ${CMAKE_VERSION}") | ||
15 | |||
16 | -SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) | ||
17 | - | ||
18 | # Distinguish between community and non-community builds, with the | ||
19 | # default being a community build. This does not impact the feature | ||
20 | # set that will be compiled in; it's merely provided as a hint to | ||
21 | @@ -77,6 +75,8 @@ | ||
22 | ENDIF() | ||
23 | PROJECT(${MYSQL_PROJECT_NAME}) | ||
24 | |||
25 | +SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) | ||
26 | + | ||
27 | IF(BUILD_CONFIG) | ||
28 | INCLUDE( | ||
29 | ${CMAKE_SOURCE_DIR}/cmake/build_configurations/${BUILD_CONFIG}.cmake) | ||
diff --git a/meta-oe/recipes-support/mysql/mariadb/fix-mysqlclient-r-version.patch b/meta-oe/recipes-support/mysql/mariadb/fix-mysqlclient-r-version.patch deleted file mode 100644 index 7516619eb..000000000 --- a/meta-oe/recipes-support/mysql/mariadb/fix-mysqlclient-r-version.patch +++ /dev/null | |||
@@ -1,161 +0,0 @@ | |||
1 | From 6db2a606196fb38a6d106dc409eee1cb9a40a440 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tor Didriksen <tor.didriksen@oracle.com> | ||
3 | Date: Mon, 24 Jun 2013 17:15:35 +0200 | ||
4 | Subject: [PATCH] Bug#16809055 MYSQL 5.6 AND 5.7 STILL USE LIBMYSQLCLIENT.SO.18 | ||
5 | |||
6 | With this patch, the libmysql/ directory contains: | ||
7 | libmysqlclient.a | ||
8 | libmysqlclient_r.a -> libmysqlclient.a | ||
9 | libmysqlclient_r.so -> libmysqlclient.so* | ||
10 | libmysqlclient_r.so.18 -> libmysqlclient.so.18* | ||
11 | libmysqlclient_r.so.18.1.0 -> libmysqlclient.so.18.1.0* | ||
12 | libmysqlclient.so -> libmysqlclient.so.18* | ||
13 | libmysqlclient.so.18 -> libmysqlclient.so.18.1.0* | ||
14 | libmysqlclient.so.18.1.0* | ||
15 | |||
16 | This fixes libmysqlclient_r symlinks pointing to the unversioned | ||
17 | libmysqlclient.so symlink (leading to package QA errors since the | ||
18 | libmysqlclient-r package ends up depending on libmysqlclient-dev). | ||
19 | |||
20 | Borrowed from MySQL 5.6 tree at https://github.com/percona/mysql/ | ||
21 | |||
22 | Upstream-Status: Pending | ||
23 | |||
24 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
25 | |||
26 | --- | ||
27 | cmake/install_macros.cmake | 25 +++++++++++++++---------- | ||
28 | cmake/mysql_version.cmake | 3 ++- | ||
29 | libmysql/CMakeLists.txt | 36 ++++++++++++++++++++++++++++-------- | ||
30 | 3 files changed, 45 insertions(+), 19 deletions(-) | ||
31 | |||
32 | diff --git a/cmake/install_macros.cmake b/cmake/install_macros.cmake | ||
33 | index b8efdf8..a0d0e68 100644 | ||
34 | --- a/cmake/install_macros.cmake | ||
35 | +++ b/cmake/install_macros.cmake | ||
36 | @@ -1,4 +1,4 @@ | ||
37 | -# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. | ||
38 | +# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. | ||
39 | # | ||
40 | # This program is free software; you can redistribute it and/or modify | ||
41 | # it under the terms of the GNU General Public License as published by | ||
42 | @@ -111,28 +111,33 @@ FUNCTION(INSTALL_SCRIPT) | ||
43 | ENDFUNCTION() | ||
44 | |||
45 | # Install symbolic link to CMake target. | ||
46 | -# the link is created in the same directory as target | ||
47 | -# and extension will be the same as for target file. | ||
48 | -MACRO(INSTALL_SYMLINK linkname target destination component) | ||
49 | +# We do 'cd path; ln -s target_name link_name' | ||
50 | +# We also add an INSTALL target for "${path}/${link_name}" | ||
51 | +MACRO(INSTALL_SYMLINK target target_name link_name destination component) | ||
52 | IF(UNIX) | ||
53 | GET_TARGET_PROPERTY(location ${target} LOCATION) | ||
54 | GET_FILENAME_COMPONENT(path ${location} PATH) | ||
55 | - GET_FILENAME_COMPONENT(name ${location} NAME) | ||
56 | - SET(output ${path}/${linkname}) | ||
57 | + MESSAGE(STATUS "target ${target}") | ||
58 | + MESSAGE(STATUS "link_name ${link_name}") | ||
59 | + MESSAGE(STATUS "target_name ${target_name}") | ||
60 | + MESSAGE(STATUS "path ${path}") | ||
61 | + MESSAGE(STATUS "") | ||
62 | + | ||
63 | + SET(output ${path}/${link_name}) | ||
64 | ADD_CUSTOM_COMMAND( | ||
65 | OUTPUT ${output} | ||
66 | COMMAND ${CMAKE_COMMAND} ARGS -E remove -f ${output} | ||
67 | COMMAND ${CMAKE_COMMAND} ARGS -E create_symlink | ||
68 | - ${name} | ||
69 | - ${linkname} | ||
70 | + ${target_name} | ||
71 | + ${link_name} | ||
72 | WORKING_DIRECTORY ${path} | ||
73 | DEPENDS ${target} | ||
74 | ) | ||
75 | |||
76 | - ADD_CUSTOM_TARGET(symlink_${linkname} | ||
77 | + ADD_CUSTOM_TARGET(symlink_${link_name} | ||
78 | ALL | ||
79 | DEPENDS ${output}) | ||
80 | - SET_TARGET_PROPERTIES(symlink_${linkname} PROPERTIES CLEAN_DIRECT_OUTPUT 1) | ||
81 | + SET_TARGET_PROPERTIES(symlink_${link_name} PROPERTIES CLEAN_DIRECT_OUTPUT 1) | ||
82 | IF(CMAKE_GENERATOR MATCHES "Xcode") | ||
83 | # For Xcode, replace project config with install config | ||
84 | STRING(REPLACE "${CMAKE_CFG_INTDIR}" | ||
85 | diff --git a/libmysql/CMakeLists.txt b/libmysql/CMakeLists.txt | ||
86 | index be5760f..96286ff 100644 | ||
87 | --- a/libmysql/CMakeLists.txt | ||
88 | +++ b/libmysql/CMakeLists.txt | ||
89 | @@ -180,6 +180,12 @@ IF(MSVC) | ||
90 | INSTALL_DEBUG_TARGET(mysqlclient DESTINATION ${INSTALL_LIBDIR}/debug) | ||
91 | ENDIF() | ||
92 | |||
93 | +MACRO(GET_TARGET_NAME target out_name) | ||
94 | + GET_TARGET_PROPERTY(location ${target} LOCATION) | ||
95 | + GET_FILENAME_COMPONENT(name ${location} NAME) | ||
96 | + SET(${out_name} ${name}) | ||
97 | +ENDMACRO() | ||
98 | + | ||
99 | IF(UNIX) | ||
100 | MACRO(GET_VERSIONED_LIBNAME LIBNAME EXTENSION VERSION OUTNAME) | ||
101 | SET(DOT_VERSION ".${VERSION}") | ||
102 | @@ -192,7 +198,13 @@ IF(UNIX) | ||
103 | SET(${OUTNAME} ${LIBNAME}${EXTENSION}${DOT_VERSION}) | ||
104 | ENDIF() | ||
105 | ENDMACRO() | ||
106 | - INSTALL_SYMLINK(${CMAKE_STATIC_LIBRARY_PREFIX}mysqlclient_r.a mysqlclient ${INSTALL_LIBDIR} Development) | ||
107 | +ENDIF() | ||
108 | + | ||
109 | +IF(UNIX) | ||
110 | + GET_TARGET_NAME(mysqlclient lib_name) | ||
111 | + INSTALL_SYMLINK(mysqlclient | ||
112 | + ${lib_name} ${CMAKE_STATIC_LIBRARY_PREFIX}mysqlclient_r.a | ||
113 | + ${INSTALL_LIBDIR} Development) | ||
114 | ENDIF() | ||
115 | |||
116 | IF(NOT DISABLE_SHARED) | ||
117 | @@ -205,10 +217,9 @@ IF(NOT DISABLE_SHARED) | ||
118 | # libtool compatability | ||
119 | IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR APPLE) | ||
120 | SET(OS_SHARED_LIB_VERSION "${SHARED_LIB_MAJOR_VERSION}") | ||
121 | - ELSEIF(CMAKE_SYSTEM_NAME MATCHES "HP-UX") | ||
122 | - SET(OS_SHARED_LIB_VERSION "${SHARED_LIB_MAJOR_VERSION}.0") | ||
123 | ELSE() | ||
124 | - SET(OS_SHARED_LIB_VERSION "${SHARED_LIB_MAJOR_VERSION}.0.0") | ||
125 | + SET(OS_SHARED_LIB_VERSION | ||
126 | + "${SHARED_LIB_MAJOR_VERSION}.${SHARED_LIB_MINOR_VERSION}.0") | ||
127 | ENDIF() | ||
128 | # Name of shared library is mysqlclient on Unix | ||
129 | SET_TARGET_PROPERTIES(libmysql PROPERTIES | ||
130 | @@ -239,8 +250,13 @@ IF(NOT DISABLE_SHARED) | ||
131 | "${CMAKE_SHARED_LIBRARY_SUFFIX}" | ||
132 | "" | ||
133 | linkname) | ||
134 | - INSTALL_SYMLINK(${linkname} libmysql ${INSTALL_LIBDIR} SharedLibraries) | ||
135 | - SET(OS_SHARED_LIB_SYMLINKS "${SHARED_LIB_MAJOR_VERSION}" "${OS_SHARED_LIB_VERSION}") | ||
136 | + GET_TARGET_NAME(libmysql lib_name) | ||
137 | + GET_FILENAME_COMPONENT(lib_name_we ${lib_name} NAME_WE) | ||
138 | + INSTALL_SYMLINK(libmysql | ||
139 | + ${lib_name} ${linkname} | ||
140 | + ${INSTALL_LIBDIR} SharedLibraries) | ||
141 | + SET(OS_SHARED_LIB_SYMLINKS | ||
142 | + "${SHARED_LIB_MAJOR_VERSION}" "${OS_SHARED_LIB_VERSION}") | ||
143 | LIST(REMOVE_DUPLICATES OS_SHARED_LIB_SYMLINKS) | ||
144 | FOREACH(ver ${OS_SHARED_LIB_SYMLINKS}) | ||
145 | GET_VERSIONED_LIBNAME( | ||
146 | @@ -248,7 +264,11 @@ IF(NOT DISABLE_SHARED) | ||
147 | "${CMAKE_SHARED_LIBRARY_SUFFIX}" | ||
148 | "${ver}" | ||
149 | linkname) | ||
150 | - INSTALL_SYMLINK(${linkname} libmysql ${INSTALL_LIBDIR} SharedLibraries) | ||
151 | + GET_VERSIONED_LIBNAME( | ||
152 | + ${lib_name_we} "${CMAKE_SHARED_LIBRARY_SUFFIX}" "${ver}" lib_name_ver) | ||
153 | + INSTALL_SYMLINK(libmysql | ||
154 | + ${lib_name_ver} ${linkname} | ||
155 | + ${INSTALL_LIBDIR} SharedLibraries) | ||
156 | ENDFOREACH() | ||
157 | ENDIF() | ||
158 | ENDIF() | ||
159 | -- | ||
160 | 2.0.3 | ||
161 | |||
diff --git a/meta-oe/recipes-support/mysql/mariadb/install_db b/meta-oe/recipes-support/mysql/mariadb/install_db deleted file mode 100755 index 512a7da7e..000000000 --- a/meta-oe/recipes-support/mysql/mariadb/install_db +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | case "$1" in | ||
3 | start) | ||
4 | echo "Starting to install database for mariadb" | ||
5 | /usr/bin/mysql-systemd-start pre | ||
6 | echo "done." | ||
7 | ;; | ||
8 | *) | ||
9 | echo "Usage: /etc/init.d/install_db start" | ||
10 | exit 1 | ||
11 | esac | ||
12 | |||
13 | exit 0 | ||
diff --git a/meta-oe/recipes-support/mysql/mariadb/install_db.service b/meta-oe/recipes-support/mysql/mariadb/install_db.service deleted file mode 100644 index c8369f569..000000000 --- a/meta-oe/recipes-support/mysql/mariadb/install_db.service +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | # | ||
2 | # Simple install MySQL database service file | ||
3 | # It shoulb be done before mysqld.service | ||
4 | |||
5 | [Unit] | ||
6 | Description=Install MySQL Community Server Database | ||
7 | After=network.target | ||
8 | After=syslog.target | ||
9 | Before=mysqld.service | ||
10 | |||
11 | [Install] | ||
12 | WantedBy=multi-user.target | ||
13 | |||
14 | [Service] | ||
15 | Type=oneshot | ||
16 | ExecStart=@BINDIR@/mysql-systemd-start pre | ||
17 | |||
diff --git a/meta-oe/recipes-support/mysql/mariadb/my.cnf b/meta-oe/recipes-support/mysql/mariadb/my.cnf deleted file mode 100644 index dc4c172e5..000000000 --- a/meta-oe/recipes-support/mysql/mariadb/my.cnf +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | [client] | ||
2 | #password = password | ||
3 | port = 3306 | ||
4 | socket = /var/lib/mysql/mysql.sock | ||
5 | |||
6 | [mysqld_safe] | ||
7 | |||
8 | [mysqld] | ||
9 | user = mysql | ||
10 | port = 3306 | ||
11 | socket = /var/lib/mysql/mysql.sock | ||
12 | pid-file = /var/lib/mysql/mysqld.pid | ||
13 | log-error = /var/log/mysqld.err | ||
14 | basedir = /usr | ||
15 | datadir = /var/lib/mysql | ||
16 | skip-external-locking | ||
17 | skip-networking | ||
18 | ignore-builtin-innodb | ||
19 | default-storage-engine = myisam | ||
20 | bind-address = localhost | ||
21 | |||
22 | # | ||
23 | # include all files from the config directory | ||
24 | # | ||
25 | !includedir /etc/my.cnf.d | ||
diff --git a/meta-oe/recipes-support/mysql/mariadb/mysql-systemd-start b/meta-oe/recipes-support/mysql/mariadb/mysql-systemd-start deleted file mode 100644 index 189c02021..000000000 --- a/meta-oe/recipes-support/mysql/mariadb/mysql-systemd-start +++ /dev/null | |||
@@ -1,66 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # | ||
3 | # Needed argument: pre | post | ||
4 | # | ||
5 | # pre mode : try to run mysql_install_db and fix perms and SELinux contexts | ||
6 | # post mode : ping server until answer is received | ||
7 | # | ||
8 | |||
9 | get_option () { | ||
10 | local section=$1 | ||
11 | local option=$2 | ||
12 | local default=$3 | ||
13 | ret=$(/usr/bin/my_print_defaults $section | grep '^--'${option}'=' | cut -d= -f2-) | ||
14 | [ -z $ret ] && ret=$default | ||
15 | echo $ret | ||
16 | } | ||
17 | |||
18 | install_db () { | ||
19 | # Note: something different than datadir=/var/lib/mysql requires SELinux policy changes (in enforcing mode) | ||
20 | datadir=$(get_option mysqld datadir "/var/lib/mysql") | ||
21 | |||
22 | # Restore log, dir, perms and SELinux contexts | ||
23 | [ -d "$datadir" ] || install -d -m 0755 -omysql -gmysql "$datadir" || exit 1 | ||
24 | log=/var/log/mysqld.log | ||
25 | [ -e $log ] || touch $log | ||
26 | chmod 0640 $log | ||
27 | chown mysql:mysql $log || exit 1 | ||
28 | if [ -x /usr/sbin/restorecon ]; then | ||
29 | /usr/sbin/restorecon "$datadir" | ||
30 | /usr/sbin/restorecon $log | ||
31 | fi | ||
32 | |||
33 | # If special mysql dir is in place, skip db install | ||
34 | [ -d "$datadir/mysql" ] && exit 0 | ||
35 | |||
36 | # Create initial db | ||
37 | /usr/bin/mysql_install_db --rpm --datadir="$datadir" --user=mysql | ||
38 | exit 0 | ||
39 | } | ||
40 | |||
41 | pinger () { | ||
42 | # Wait for ping to answer to signal startup completed, | ||
43 | # might take a while in case of e.g. crash recovery | ||
44 | # MySQL systemd service will timeout script if no answer | ||
45 | datadir=$(get_option mysqld datadir "/var/lib/mysql") | ||
46 | socket=$(get_option mysqld socket "$datadir/mysql.sock") | ||
47 | case $socket in | ||
48 | /*) adminsocket="$socket" ;; | ||
49 | *) adminsocket="$datadir/$socket" ;; | ||
50 | esac | ||
51 | |||
52 | while /bin/true ; do | ||
53 | sleep 1 | ||
54 | mysqladmin --no-defaults --socket="$adminsocket" --user=UNKNOWN_MYSQL_USER ping >/dev/null 2>&1 && break | ||
55 | done | ||
56 | exit 0 | ||
57 | } | ||
58 | |||
59 | # main | ||
60 | case $1 in | ||
61 | "pre") install_db ;; | ||
62 | "post") pinger ;; | ||
63 | esac | ||
64 | |||
65 | exit 0 | ||
66 | |||
diff --git a/meta-oe/recipes-support/mysql/mariadb/mysqld.service b/meta-oe/recipes-support/mysql/mariadb/mysqld.service deleted file mode 100644 index d88361703..000000000 --- a/meta-oe/recipes-support/mysql/mariadb/mysqld.service +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | [Unit] | ||
2 | Description=MariaDB database server | ||
3 | After=syslog.target | ||
4 | After=network.target | ||
5 | |||
6 | [Service] | ||
7 | PIDFile=/var/lib/mysql/mysqld.pid | ||
8 | Type=simple | ||
9 | User=mysql | ||
10 | Group=mysql | ||
11 | |||
12 | # Execute post scripts as root | ||
13 | PermissionsStartOnly=true | ||
14 | |||
15 | # Start main service | ||
16 | ExecStart=@BINDIR@/mysqld_safe --basedir=@PREFIX@ | ||
17 | |||
18 | # Don't signal startup success before a ping works | ||
19 | ExecStartPost=@BINDIR@/mysql-systemd-start post | ||
20 | |||
21 | TimeoutSec=300 | ||
22 | PrivateTmp=true | ||
23 | |||
24 | [Install] | ||
25 | WantedBy=multi-user.target | ||
diff --git a/meta-oe/recipes-support/mysql/mariadb/remove-bad-path.patch b/meta-oe/recipes-support/mysql/mariadb/remove-bad-path.patch deleted file mode 100644 index ff26b0b86..000000000 --- a/meta-oe/recipes-support/mysql/mariadb/remove-bad-path.patch +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | Remove host path from include directories | ||
2 | |||
3 | Naturally this breaks cross-compilation if present. | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
8 | |||
9 | --- mariadb-5.5.38/storage/tokudb/ft-index/CMakeLists.txt 2014-07-17 14:37:04.529327998 +0100 | ||
10 | +++ mariadb-5.5.38/storage/tokudb/ft-index/CMakeLists.txt 2014-07-17 14:43:56.991337895 +0100 | ||
11 | @@ -39,7 +39,6 @@ | ||
12 | |||
13 | ## default includes and libraries | ||
14 | include_directories(SYSTEM | ||
15 | - /usr/local/include | ||
16 | ${ZLIB_INCLUDE_DIRS} | ||
17 | ) | ||
18 | |||
diff --git a/meta-oe/recipes-support/mysql/mariadb_5.5.57.bb b/meta-oe/recipes-support/mysql/mariadb_5.5.57.bb deleted file mode 100644 index d7895732a..000000000 --- a/meta-oe/recipes-support/mysql/mariadb_5.5.57.bb +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | require mariadb.inc | ||
2 | |||
3 | EXTRA_OECMAKE += "-DSTACK_DIRECTION=-1" | ||
4 | |||
5 | DEPENDS += "mariadb-native ncurses zlib readline libaio libevent" | ||
6 | |||
7 | PROVIDES += "mysql5 libmysqlclient" | ||
8 | |||
9 | RPROVIDES_${PN} += "mysql5" | ||
10 | RREPLACES_${PN} += "mysql5" | ||
11 | RCONFLICTS_${PN} += "mysql5" | ||
12 | |||
13 | RPROVIDES_${PN}-dbg += "mysql5-dbg" | ||
14 | RREPLACES_${PN}-dbg += "mysql5-dbg" | ||
15 | RCONFLICTS_${PN}-dbg += "mysql5-dbg" | ||
16 | |||
17 | RPROVIDES_${PN}-leftovers += "mysql5-leftovers" | ||
18 | RREPLACES_${PN}-leftovers += "mysql5-leftovers" | ||
19 | RCONFLICTS_${PN}-leftovers += "mysql5-leftovers" | ||
20 | |||
21 | RPROVIDES_${PN}-client += "mysql5-client" | ||
22 | RREPLACES_${PN}-client += "mysql5-client" | ||
23 | RCONFLICTS_${PN}-client += "mysql5-client" | ||
24 | |||
25 | RPROVIDES_${PN}-server += "mysql5-server" | ||
26 | RREPLACES_${PN}-server += "mysql5-server" | ||
27 | RCONFLICTS_${PN}-server += "mysql5-server" | ||
diff --git a/meta-oe/recipes-support/mysql/mysql-python_1.2.5.bb b/meta-oe/recipes-support/mysql/mysql-python_1.2.5.bb deleted file mode 100644 index ac0df4f06..000000000 --- a/meta-oe/recipes-support/mysql/mysql-python_1.2.5.bb +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | SUMMARY = "Python interface to MySQL" | ||
2 | HOMEPAGE = "https://github.com/farcepest/MySQLdb1" | ||
3 | SECTION = "devel/python" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://GPL-2.0;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
6 | |||
7 | DEPENDS = "mysql5" | ||
8 | |||
9 | SRCNAME = "MySQL-python" | ||
10 | |||
11 | SRC_URI = "https://pypi.python.org/packages/source/M/${SRCNAME}/${SRCNAME}-${PV}.zip" | ||
12 | SRC_URI[md5sum] = "654f75b302db6ed8dc5a898c625e030c" | ||
13 | SRC_URI[sha256sum] = "811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74" | ||
14 | |||
15 | S = "${WORKDIR}/${SRCNAME}-${PV}" | ||
16 | |||
17 | inherit setuptools | ||