aboutsummaryrefslogtreecommitdiff
path: root/package/mysql
Commit message (Collapse)AuthorAgeFilesLines
* mysql: properly order "depends on" vs. boolGravatar Thomas Petazzoni2018-10-261-1/+1
| | | | | | | | | | | | This fixes a check-package warning introduced by commit 19df27ed03b33cd86c971afb355091161972851f ("package/mariadb: add option to disable build of embedded server") Fixes: package/mysql/Config.in:59: attributes order: type, default, depends on, select, help (http://nightly.buildroot.org/#_config_files) Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mariadb: add option to disable build of embedded serverGravatar Bernd Kuhls2018-10-221-0/+6
| | | | | | | | | | | | | | | | Size of output/target/usr: with embedded: 1,7G without embedded: 648M This config option saves space on the target if the embedded server is not used by any other package: https://mariadb.com/kb/en/library/embedded-mariadb-interface/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Tested-by: Ryan Coe <bluemrp9@gmail.com> [Peter: make Config.in option depend on _MARIADB_SERVER] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mariadb: bump version to 10.3.10Gravatar Peter Seiderer2018-10-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Release notes: https://mariadb.com/kb/en/library/mariadb-10310-release-notes/ Changelog: https://mariadb.com/kb/en/mariadb-10310-changelog/ This bump also fixes broken atomic support for BR2_TOOLCHAIN_HAS_LIBATOMIC=y with mariadb-10.2: [ 59%] Linking CXX executable mariabackup ../../storage/innobase/libinnobase.a(handler0alter.cc.o): In function `my_atomic_add64': /home/bernd/buildroot/output/build/mariadb-10.2.17/include/my_atomic.h:274: undefined reference to `__sync_fetch_and_add_8' with this defconfig BR2_arcle=y BR2_archs38=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arcle-hs38-full-2018.02-926-gb393c24.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_7=y BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_1=y BR2_TOOLCHAIN_EXTERNAL_LOCALE=y BR2_TOOLCHAIN_EXTERNAL_CXX=y BR2_PACKAGE_MYSQL=y BR2_PACKAGE_MARIADB=y BR2_PACKAGE_MARIADB_SERVER=y Adding "-latomic" to CXXFLAGS and/or adding -DHAVE_GCC_ATOMIC_BUILTINS=1 to CONF_OPTS, like we do for mariadb-10.3, does not fix the build error with mariadb-10.2. There the build would stop even earlier without these options: /home/bernd/buildroot/output/build/mariadb-10.2.17/include/my_atomic.h:138:2: error: #error atomic ops for this platform are not implemented #error atomic ops for this platform are not implemented Mariadb-10.3 contains improved atomic support, this build error does not occur here. Updated license hash of README.md after upstream commits: https://github.com/MariaDB/server/commits/10.3/README.md my-small.cnf.sh is not provided anymore by upstream: https://github.com/MariaDB/server/commit/7fee164faf8fce7be4ebe322d2178efd3d075eae [Peter Seiderer: bumped to version 10.3.7] Signed-off-by: Peter Seiderer <ps.report@gmx.net> [Bernd: bumped to version 10.3.10, fixed atomic support, fixed my-small.cnf.sh, updated license hash] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* libaio: bump to 0.3.111Gravatar Thomas Petazzoni2018-08-211-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Until now, libaio contained some architecture specific code to do the syscalls. In fact, it contained a generic variant of the code called syscall-generic.h, but it was showing a warning when it was used, as if it was "not safe". Consequently, in Buildroot, we had chosen to support libaio only on a the subset of architectures that were explicitly handled by libaio. However, between 0.3.110 and 0.3.111, libaio upstream entirely dropped the architecture-specific code: https://pagure.io/libaio/c/97fd3fc0195500e616e34047cba4846164c411d9?branch=master Consequently, in this patch, we: - Bump libaio to 0.3.111. - Switch to the new upstream at https://pagure.io/libaio/. - Drop the 0001-arches.patch patch, which was adding support for MIPS, since we no longer need architecture-specific code. - Update the remaining patches, and Git-format one of them which wasn't Git-formatted. - Drop the BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS option and all its uses. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* mariadb: needs dynamic library supportGravatar Ryan Coe2018-07-301-0/+5
| | | | | | | | | | | | | | | In a static-only configuration, mariadb fails to build because it tries to build a shared library: [ 18%] Linking CXX shared module ha_spider.so output/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/6.4.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: output/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/6.4.0/../../../../arm-buildroot-linux-uclibcgnueabi/lib/libstdc++.a(eh_globals.o)(.text.__cxa_get_globals_fast+0x14): R_ARM_TLS_LE32 relocation not permitted in shared object This is not detected by the autobuilders, because mariadb is part of a Config.in choice, and such choices are not randomized by our current testing infrastructure. Signed-off-by: Ryan Coe <bluemrp9@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/*/Config.in: fix help text check-package warningsGravatar Thomas Petazzoni2017-12-181-3/+3
| | | | | | | | | | | | | This commit fixes the warnings reported by check-package on the help text of all package Config.in files, related to the formatting of the help text: should start with a tab, then 2 spaces, then at most 62 characters. The vast majority of warnings fixed were caused by too long lines. A few warnings were related to spaces being used instead of a tab to indent the help text. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: propagate common dependencies to toplevel configGravatar Peter Korsgaard2017-01-091-15/+7
| | | | | | | | | | | | | | | | | | | | | | | Commit 3d707d2b (mysql: rename package to oracle-mysql, make a virtual package) introduced a user selectable virtual BR2_PACKAGE_MYSQL package, but didn't propagate the (common) dependencies of the two variants to it, so the virtual package can now be selected even though neither of the variants are available. As several packages enable mysql support when BR2_PACKAGE_MYSQL is selected, this causes a number of autobuilder issues: http://autobuild.buildroot.net/results/7fe/7fe0d0a3e7ed0430852dc42b718dd037557207e8/ http://autobuild.buildroot.net/results/cc4/cc4c2d936f3e1ba6c0a9782b2218de54a4ff75d2/ Fix it by propagating the common dependencies of the two variants to the virtual package to ensure it cannot be enabled unless at least one of them are available. Also move the toolchain comment outside the conditional so it is visible when mysql isn't available. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* mysql: rename package to oracle-mysql, make a virtual packageGravatar Ryan Coe2016-12-1713-3966/+67
| | | | | | | | | | This commit turns mysql into a virtual package, after renaming the original mysql package to oracle-mysql. This way, all existing packages that "depends on" or "select" BR2_PACKAGE_MYSQL continue to work with no modification. Signed-off-by: Ryan Coe <bluemrp9@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mariadb: new packageGravatar Ryan Coe2016-12-171-0/+1
| | | | | Signed-off-by: Ryan Coe <bluemrp9@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/mysql: fix SITE url, add sha256 hashGravatar Bernd Kuhls2016-10-302-1/+3
| | | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: use $(HOST_MAKE_ENV) when calling $(MAKE)Gravatar Gustavo Zacarias2016-10-221-7/+7
| | | | | | Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: Make S97mysqld source a default fileGravatar Eloi BAIL2016-10-151-2/+7
| | | | | | | | | | | Hardcoded parameters are used for mysql user/directory. Make S97mysqld source a /etc/default/mysql file where these parameters can be overridden. Signed-off-by: Eloi BAIL <eloi.bail@savoirfairelinux.com> Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mysql: add MYSQL_SOCKET variableGravatar Floris Bos2016-09-183-1/+8
| | | | | | | Add MYSQL_SOCKET variable with MySQL socket location Signed-off-by: Floris Bos <bos@je-eigen-domein.nl> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: don't install libraries in /usr/lib/mysql directoryGravatar Arnout Vandecappelle2015-12-292-5/+182
| | | | | | | | | | | | | | | | | | Installing libraries in a subdirectory of /usr/lib leads to no end of trouble. It requires either setting a RUN_PATH in the ELF files linked with it or adding the path to ld.so.conf and calling ldconfig on the target. So to simplify things, put everything in /usr/lib instead of /usr/lib/mysql [Thomas: - tweak commit title. - also remove ld.so.conf handling in mysql.mk, since it is no longer necessary.] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: fix start script for /run on separate tmpfsGravatar Arnout Vandecappelle2015-12-121-3/+7
| | | | | | | | | | | | | | Recently the default skeleton was changed to have /run as a separate tmpfs instead of a symlink to /tmp. /run is not world-writable, but mysqld tries to write its PID file as user mysql. Therefore, it fails to start. To fix, create /run/mysql and give it to user mysql. While we're at it, change the paths to /run instead of /var/run. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/mysql: unconditionally define host variablesGravatar Yann E. MORIN2015-11-171-19/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | To build the host-mysql, we only build parts of the source, just the strictly minimum required to then cross-compile it. However, the host variables (conf opts, build and install cmds) are only defined when the mysql server is enabled in the configuration. So, this breaks: make defconfig; make host-mysql Even though it is not much use to have that partial host-mysql on its own, it is still very interesting to be able to build it, if at least for testing changes in the core package infrastructures (like new step hooks or the likes...) Move the definitions of the host variant out of the server conditional block. [Peter: add comment about what we build and why as suggested by Arnout] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Marcelo Gutiérrez(UTN/FRH) <kuyurix@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package: Replace 'echo -n' by 'printf'Gravatar Maxime Hadjinlian2015-10-041-2/+2
| | | | | | | | | | | | 'echo -n' is not a POSIX construct (no flag support), we shoud use 'printf', especially in init script. This patch was generated by the following command line: git grep -l 'echo -n' -- `git ls-files | grep -v 'patch'` | xargs sed -i 's/echo -n/printf/' Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* mysql: systemd supportGravatar Alex Suykov2015-07-132-0/+18
| | | | | | | | | Service startup follows sysv initscript and includes db init. [Thomas: use a relative symlink rather than an absolute symlink.] Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: remove stray commentGravatar Thomas Petazzoni2015-04-091-1/+0
| | | | | | | | | | In commit 9863553fe8fa16a4d19f652b409a44bb58ef5567 ("packages: all salute the passing of avr32"), the dependency on !BR2_avr32 was removed, but not the comment above it. So now, the comment seems to apply to a line selecting some library, which doesn't make sense. This commit gets rid of the unneeded and confusing comment. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: all salute the passing of avr32Gravatar Yann E. MORIN2015-02-141-1/+0
| | | | | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: add hashGravatar Gustavo Zacarias2015-01-141-0/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/mysql: do not force a static build for internal programsGravatar Yann E. MORIN2014-12-221-0/+18
| | | | | | | | | | | | | | | | | | | mysql wants to statically link some of the programs it uses internally, like conf_to_src (whatever it is used for) which links against -lz. This does not work for a shared-only build, as we would be missing libz.a in that case. Fix that by not forcing static builds for internal programs. Fixes a slew of autobuild failures: http://autobuild.buildroot.net/results/018/018a579f37c9c8eca5a36fc76e93508dcf9bba35/ http://autobuild.buildroot.net/results/2cc/2cc481b0ae43713a6fc50a1ca720f91384892af7/ http://autobuild.buildroot.net/results/d98/d985c5824f9012374d64e6085d6c8ec9b3cd932b/ ... Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/mysql: rename patches to the new conventionGravatar Yann E. MORIN2014-12-226-0/+0
| | | | | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: host variant needs ncurses as wellGravatar Peter Korsgaard2014-11-191-1/+1
| | | | | | | | | | | | | | Similar to the target variant. Fixes: http://autobuild.buildroot.net/results/0b8/0b8411482def8fdfba0aaaa19be01a477707d874/ http://autobuild.buildroot.net/results/dc0/dc0dd9e878edd2b359900d02e1d53d294321c00b/ http://autobuild.buildroot.net/results/dde/dde299d341135b547bd5c6a59edd7ba76f12ad10/ http://autobuild.buildroot.net/results/67a/67a3fc90fc26241f0c8257d08fb44ceea07f1335/ And many more. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: rename FOO_CONF_OPT into FOO_CONF_OPTSGravatar Thomas De Schampheleire2014-10-041-6/+6
| | | | | | | | | | | | To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_CONF_OPT. Sed command used: find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: no longer pass --disable-dependency-tracking in individual packagesGravatar Thomas Petazzoni2014-08-291-1/+0
| | | | | | | | | Now that --disable-dependency-tracking is passed by the autotools-package infrastructure, there's no longer any reason to pass it in individual packages. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* mysql: host-mysql depends on host-zlibGravatar Marcelo Gutiérrez(UTN/FRH)2014-07-221-1/+1
| | | | | | | | | | | Fixes: http://autobuild.buildroot.org/results/ffe/ffe8229f869a67e84c1eacec0055cce8b1906441/ [Thomas: add autobuilder reference.] Signed-off-by: Marcelo Gutiérrez <kuyurix@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: add mysql init scriptGravatar Marcelo Gutiérrez(UTN/FRH)2014-07-212-0/+35
| | | | | | | | | | | [Thomas: explicitly specify the path to the PID file, and also on the first boot, generate the mandatory MySQL system tables so that the MySQL daemon actually starts properly.] Signed-off-by: Marcelo Gutiérrez <kuyurix@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> merge init script
* mysql: add mysql userGravatar Marcelo Gutiérrez(UTN/FRH)2014-07-211-0/+4
| | | | | | | | | | [Thomas: do not define a password nor a shell, add a description for the user.] Signed-off-by: Marcelo Gutiérrez <kuyurix@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> merge user def
* mysql: fix missing directoryGravatar Marcelo Gutiérrez(UTN/FRH)2014-07-211-0/+7
| | | | | Signed-off-by: Marcelo Gutiérrez <kuyurix@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: disable for AVR32Gravatar Gustavo Zacarias2014-06-011-0/+2
| | | | | | | | The compiler can't even build it, fixes: http://autobuild.buildroot.net/results/b5c/b5c3893accc777d717e1d70283437aa626f0aa2d/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* mysql: Add optional OpenSSL dependencyGravatar Bernd Kuhls2014-05-171-0/+4
| | | | | | | Make sure OpenSSL is built before mysql. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* mysql: Add optional zlib dependencyGravatar Bernd Kuhls2014-05-171-0/+4
| | | | | | | Make sure zlib is built before mysql. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* mysql: disable maintainer modeGravatar Thomas Petazzoni2014-04-211-2/+4
| | | | | | | | | | | | | The maintainer mode enables additional gcc warnings, including -Werror, which causes build failures with certain toolchains. Since we generally don't enable -Werror in Buildroot, it doesn't make much sense to have it enabled for MySQL. Fixes: http://autobuild.buildroot.net/results/6b6/6b61f90d1a36ba43ff568933bb74975128380516/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: fix debugging optionsGravatar Marcelo Gutierrez2014-03-031-2/+9
| | | | | | | | | | | | | The usual --{en,dis}able-debug passed by the infrastructure are not recognised by mysql's ./configure, as it uses unusual options. Also, debugging is only meaningful to the server, not the client. Signed-off-by: Marcelo Gutierrez (UTN/FRH) <kuyurix@gmail.com> [yann.morin.1998@free.fr: actually add the options, move in server if-block] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: add option to build the serverGravatar Marcelo Gutierrez2014-03-035-1/+3411
| | | | | | Signed-off-by: Marcelo Gutierrez (UTN/FRH) <kuyurix@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* mysql: bump to version 5.1.73Gravatar Marcelo Gutiérrez(UTN/FRH)2014-02-031-1/+1
| | | | | Signed-off-by: Marcelo Gutiérrez <kuyurix@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* mysql: rename the patches so they have a numberGravatar Marcelo Gutiérrez(UTN/FRH)2014-01-213-0/+0
| | | | | | | | Rename patches to add sequence numbers Signed-off-by: Marcelo Gutiérrez <kuyurix@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Rename MySQL client packageGravatar Marcelo Gutiérrez(UTN/FRH)2014-01-215-0/+279
MySQL client package has been renamed to MySQL. [Peter: fixup help text] Signed-off-by: Marcelo Gutiérrez <kuyurix@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>