summaryrefslogtreecommitdiff
path: root/debian
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-12096: Fix ln syntax in debian/rules for libmariadb3 symlink creationOtto Kekäläinen2017-03-111-4/+4
| | | | | | | Compatibility links ended up looking like this: libmysqlclient.so.18 -> /tmp/buildd/mariadb-10.2-10.2.0/debian/tmp/usr/lib/i386-linux-gnu/libmariadb.so.3 This change fixes ln syntax to create links with correct target paths.
* Travis: Revert to optional MYSQL_{BUILD_CC,BUILD_CXX,COMPILER_LAUNCHER}Daniel Black2017-03-071-0/+4
| | | | | | | | | | | | To facilitate multiple build types in Travis, the environment variable MYSQL_{BUILD_CC,BUILD_CXX} will be passed to cmake if used. This will fallback to $CC/$CXX otherwise. Added MYSQL_COMPILER_LAUNCHER (usually ccache) which isn't supported until cmake-3.4, which isn't in travis (trusty), but hopefully a later version can use it or in CI systems other than travis. Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
* MariaDB 10.2 can now start from MySQL 5.7 data directoryVicențiu Ciorbaru2017-02-151-1/+1
| | | | An upgrade is still necessary however.
* Merge branch '10.1' into 10.2Sergei Golubchik2017-02-102-12/+13
|\
| * mysql_install_db enhancements to facilitate Debian bug#848616 fixKristian Nielsen2017-01-171-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Debian, the default install is made more secure by omitting the anonymous user and by making the root account authenticate by unix socket authentication instead of the default password-less root. However, Debian hard-codes this change in mysql_install_db, which breaks that program for other users. This commit instead implements new general options for mysql_install_db that can be used by anyone to similarly perform a more secure install: --skip-auth-anonymous-user: omits the anonymous user. --auth-root-authentication-method=normal: Keeps the existing behaviour with a password-less root account. Currently on by default. --auth-root-socket-user=USER --auth-root-authentication-method=socket: creates the MariaDB root user with the name USER (defaults to 'root') and using unix socket authentication. This way, only that user has MariaDB root access after install. The idea with --auth-root-authentication-method=normal is that applications that need this behaviour can give that option explicitly. Then eventually we could make --auth-root-authentication-method=socket the default, giving a more secure default installation. Note that it is perfectly possible to do a secure install with --auth-root-authentication-method=normal. For example, installing a private server just for local access by a single OS-level user, by using --skip-networking and putting the connection socket in a location without public access. So it is important to preserve this API for backwards compatibility.
| * Merge branch '10.0' into 10.1Vicențiu Ciorbaru2017-01-161-0/+1
| |\
| | * Fix problems from 5.5 mergeVicențiu Ciorbaru2017-01-102-0/+2
| | | | | | | | | | | | | | | | | | | | | * Update mysqld_safe script to remove duplicated parameter --crash-script * Make --core-file-size accept underscores as well as dashes correctly. * Add mysqld_safe_helper to Debian and Ubuntu files. * Update innodb minor version to 35
| * | Merge branch '10.0' into 10.1Sergei Golubchik2016-12-111-1/+0
| |\ \ | | |/
| | * MDEV-11164 - hardening-wrapper has been removed from Debian SidSergey Vojtovich2016-10-283-3/+0
| | | | | | | | | | | | | | | The hardening-wrapper package has been removed from Debian Sid. Remove dependency and relevant settings.
* | | Fixes for running with gcovMonty2017-01-111-1/+1
| | |
* | | update libmariadb, and fix debian packaging for client libsVladislav Vaintroub2016-12-223-6/+5
| | |
* | | Deb: Streamline package listing order to make comparisons downstream easierOtto Kekäläinen2016-11-272-123/+123
| | |
* | | Deb: wrap-and-sort for easier comparison to downstream in futureOtto Kekäläinen2016-11-276-32/+38
| | |
* | | Deb: Make libmariadb3 to provide the libmysqlclient.so.XX linksOtto Kekäläinen2016-11-273-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For backwards compatibility reasons. E.g. innotop builds against libmysqlclient.so and expects to find a libmysqlclient.so.18 library and does not use libmariadb.so.3 even when built from our own sources. This commit mimics to dcfe6cb834b8106e384e24ac038cf6a6456fa9ee
* | | Deb: Rename libmariadbclient-dev to libmariadb-devOtto Kekäläinen2016-11-271-7/+6
| | | | | | | | | | | | This change was accidentally omitted from commit 2bcc16c17b
* | | Deb: Fix libmariadbclient.so.18 link path to point to libmariadb.so.3Otto Kekäläinen2016-11-271-1/+1
| | | | | | | | | | | | | | | As libmariadb.so.3 does not reside in a multi-arch directory (yet), use the plain path.
* | | MDEV-10126: replace deprecated iproute dependency with iproute2Otto Kekäläinen2016-11-262-1/+9
| | | | | | | | | | | | | | | Fall back to old iproute on Debian Wheezy and Ubuntu Precise that don't have iproute2 available.
* | | MDEV-9165: Run chown much faster on the datadir during install/updateOtto Kekäläinen2016-11-262-4/+4
| | |
* | | Deb: make server core package breaks/replaces earlier client packagesOtto Kekäläinen2016-11-251-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is required, as the innochecksum binary has moved package. Without this change the following error would be emitted: Unpacking mariadb-server-core-10.2 (10.2.3+maria~jessie) over (10.2.2+maria-1~jessie) ... dpkg: error processing archive /var/cache/apt/archives/mariadb-server-core-10.2_10.2.3+maria~jessie_amd64.deb (--unpack): trying to overwrite '/usr/bin/innochecksum', which is also in package mariadb-client-10.2 10.2.2+maria-1~jessie
* | | Deb: skip invoke-rc.d mysql stop if no mysql process is running at allOtto Kekäläinen2016-11-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Quite often in upgrades on systemd systems dpkg emitted an error like: Failed to stop mysql.service: Unit mysql.service not loaded. invoke-rc.d: initscript mysql, action "stop" failed. invoke-rc.d returned 5 There is a MySQL server running, but we failed in our attempts to stop it. Stop it yourself and try again! dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.2 This is because the mariadb/mysql.service file is not loaded during the upgrade/unpack stage of dpkg in certain situations. With this simple check we can easily skip the shutdown step when it is really not needed, which is for sure the case if no mysqld process at all is running on the entire system.
* | | Deb: provide the libmysqlclient shim packages that exist in Debian/UbuntuOtto Kekäläinen2016-11-201-1/+1
| | | | | | | | | | | | | | | This way all 3rd party apps configured to build against any MySQL or MariaDB version will pick up the libmariadb3-dev package instead.
* | | Deb: make libmariadb3 to provide the libmariadbclient.so.18 linkOtto Kekäläinen2016-11-202-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Debian many existing applications in Debian/Ubuntu have been built while libmariadbclient-dev or libmariadbclient-dev-compat was installed. To satisfy installation dependencies, the package name libmariadbclient18 must be provided, and at runtime a shared library must by the name libmariadbclient.so.18. Provide these to remain backwards compatible.
* | | Deb: rename client library packages to reflect its contentsOtto Kekäläinen2016-11-209-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new library name libmariadb3 matches the libmariadb.so.3 filename. Packages that want to build against MariaDB Connector C have as build-dependency libmariadb-dev and as run-time dependency libmariadb3. Make the package provide libmariadbclient18 for backwards compatibility, though compatibility is not always assured. There library did change to a whole new generation after all, even though ABI compatibility has been a design goal. Also do the equivalent change for the -dev package. Packages that explicitly want to use the MariaDB Connector C should mark it as their build-depends. Also provide an empty libmariadbclient18 metapackage to facilitate upgrades from old MariaDB installs, just like there is an empty libmysqlclient18 package. Create more of these in the future as needed.
* | | Deb: provide the default-mysql-* packages that exist in Debian/UbuntuOtto Kekäläinen2016-11-201-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Debian 9 (Stretch) and Ubuntu 16.10 (Yakkety) the following packages have existed: * virtual-mysql-client * virtual-mysql-client-core * virtual-mysql-server * virtual-mysql-server-core * virtual-libmysqlclient-dev They are metapackages that in Debian depend on MariaDB and in Ubuntu currently on MySQL. We need to provide them and point them to MariaDB so that systems that have the mariadb.org repositories enabled automatically get everything MariaDB and not MySQL. This change makes the packaging provide the four first ones, and later commits will fix the client library issues.
* | | Deb: install GSSAPI and Cracklib config filesOtto Kekäläinen2016-11-202-0/+2
| | |
* | | Deb: correct comment about socket auth in Spider/Mroong maintainer scriptsOtto Kekäläinen2016-11-203-6/+0
| | |
* | | Deb: install libmysqld.so and libmysqld.so.19 in correct packagesOtto Kekäläinen2016-11-183-3/+4
| | | | | | | | | | | | | | | The versioned so-file belongs to the run-time package and the unversioned symlink shall be in the development package.
* | | MDEV-5725: mysqld embedded libraries into libmariadbd19 Deb packageDaniel Black2016-11-174-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libmariadbd19 was intended to be added as the package that included the libmysqld shared library. This was missing from the debian control file. The libmariadbd-dev package requires libmariadbd19 to provide the shared library. The shared libraries for embedded mysql will go into the libmariadbd18 package rather than the libmariadbd-dev development package. /usr/bin/mariadb_config is a executable that assists embedded developers to use the correctly correct header and library files during their development. Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
* | | MDEV-5725: Don't install private mysql header filesDaniel Black2016-11-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously private/*.h where included in the package. These represent internal mysqld structures that aren't guarenteed to provide a stable ABI. There aren't intended to be used by embedded mysqld applications so they have been removed. Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
* | | Deb: add gdb as a build dependency for stack traces on test suite failuresOtto Kekäläinen2016-11-101-0/+1
| | | | | | | | | | | | | | | If mysqld crashed during the test suite run and gdb is available, a stack trace will be printed automatically.
* | | Deb: List package contents as part of the build logOtto Kekäläinen2016-11-101-0/+13
| | |
* | | Deb: clean up, strip legacy and simplify autobake-deb.shOtto Kekäläinen2016-11-101-34/+19
| | |
* | | MDEV-6284: Install systemd files (almost) the Debian wayOtto Kekäläinen2016-10-294-5/+30
| | | | | | | | | | | | | | | | | | | | | | | | The control file contents must be correct from the start and cannot be modified at build time by CMake. Also all static Debian package analyzers will fail to see all manipulations by CMake later on. It is best to do all manipulations like these in autobake-deb.sh.
* | | Deb: use deb-sys-maint user credentials to configure MariaDB pluginsOtto Kekäläinen2016-10-293-3/+3
| | | | | | | | | | | | | | | On systems with unix socket authentication root could run these without any special maintenance accounts.
* | | Deb: delete runnable files we don't want to have in the test data packageOtto Kekäläinen2016-10-291-0/+5
| | |
* | | Deb: omit source building step when running from autobake-deb.shOtto Kekäläinen2016-10-291-1/+3
| | | | | | | | | | | | This will increase the speed of the build by a minute or two.
* | | Travis-CI: skip building mariadb-test packages to speed up buildOtto Kekäläinen2016-10-271-0/+7
| | | | | | | | | | | | | | | | | | The build must stay under the Travis-CI 50 minute limit. Currently they often exceed, and the huge test suite is the single most long step in moving/packaging files, so remove it on Travis-CI automatically.
* | | Deb: fix commit 1369696 and change autobake strategy to Debian Sid firstOtto Kekäläinen2016-10-272-21/+24
| | |
* | | MDEV-6284: Break/replace MySQL 5.7 packages to allow upgradeOtto Kekäläinen2016-10-272-21/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also sort control file slightly to be easier to compare to downstream control file and include gdb for automatic backtraces if the test suite fails. Delete duplicate man page installation. Make mariadb-test breaks/replaces mariadb-server-5.5 as /usr/lib/mysql/plugin/adt_null.so changed package.
* | | MDEV-6284: Activate quilt patches again: test table expection neededOtto Kekäläinen2016-10-273-1/+2
| | | | | | | | | | | | | | | Buildbot tries to create database 'test' so we need to have these Debian-only exceptions enabled and patch our own source at build time.
* | | Travis-CI: build less verbose, log must stay under 4MB limitOtto Kekäläinen2016-10-271-0/+7
| | |
* | | MDEV-6284: Revert commit af03ba84 partially for systemdOtto Kekäläinen2016-10-272-0/+4
| | | | | | | | | | | | | | | This version of Debian packaging does not yet install systemd scripts, so revert that part to the CMakeLists.txt based hack.
* | | MDEV-6284: Clean up crufs (dirs files, duplicate entries etc)Otto Kekäläinen2016-10-275-44/+1
| | |
* | | MDEV-6284: wrap-and-sortOtto Kekäläinen2016-10-276-132/+145
| | |
* | | MDEV-6284: Fix issues detected by LintianOtto Kekäläinen2016-10-273-22/+7
| | |
* | | MDEV-6284: Remove CMakeLists.txt hack that mangled the server install fileOtto Kekäläinen2016-10-274-4/+25
| | | | | | | | | | | | | | | | | | For Debian the rules file is the main makefile and assuming that a upstream makefile will mangle the Debian packaging files creates false alerts from static analysis tools and other problems.
* | | MDEV-6284: Spliy Mroonga, Spider and TokuDB into their own packagesOtto Kekäläinen2016-10-2710-1/+89
| | | | | | | | | | | | | | | Also each package has it's own maintainer scripts to install and uninstall them.
* | | MDEV-6284: Rename plugin packages to match new Debian conventionOtto Kekäläinen2016-10-276-16/+16
| | |
* | | MDEV-6284: Split mariadb-test-data out of mariadb-testOtto Kekäläinen2016-10-274-19/+72
| | |
* | | MDEV-6284: Make mariadb-test package versionlessOtto Kekäläinen2016-10-274-118/+30
| | | | | | | | | | | | | | | | | | There is no need for a separate mariadb-test metapackage and a versioned mariadb-test-* package. Simply make it versionless and make it depend on the client and server packages that stem from same source version.