[debian-mysql] Bug#912902: mariadb-10.1: FTBFS on !linux

Samuel Thibault sthibault at debian.org
Sun Nov 4 19:41:23 GMT 2018


Source: mariadb-10.1
Version: 1:10.1.35-1
Severity: important
Tags: patch

Hello,

mariadb-10.1 currently can't be built on !linux because it build-depends
on libsystemd-dev, which is not built any more on !linux. I have
attached a patch.

The Hurd build also needs a cmake file to properly enable _GNU_SOURCE
just like on Linux, I have attached a hurd.patch.

The installation file lists also need fixing, I have attached patch2.

And debian/libmariadbclient18.install will need a chmod +x

Samuel

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 
Samuel
/*
 * Oops. The kernel tried to access some bad page. We'll have to
 * terminate things with extreme prejudice.
*/
die_if_kernel("Oops", regs, error_code);
(From linux/arch/i386/mm/fault.c)				   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hurd.patch
Type: text/x-diff
Size: 1478 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-mysql-maint/attachments/20181104/644201bc/attachment-0001.patch>
-------------- next part --------------
--- debian//mariadb-server-10.1.install.original	2018-11-04 18:24:40.000000000 +0000
+++ debian//mariadb-server-10.1.install	2018-11-04 18:25:06.000000000 +0000
@@ -83,9 +83,9 @@
 usr/share/mysql/policy/selinux/mariadb-server.fc
 usr/share/mysql/policy/selinux/mariadb-server.te
 usr/share/mysql/policy/selinux/mariadb.te
-usr/share/mysql/systemd/use_galera_new_cluster.conf
-usr/share/mysql/systemd/mariadb.service
-usr/share/mysql/systemd/mariadb at .service
+[linux-any] usr/share/mysql/systemd/use_galera_new_cluster.conf
+[linux-any] usr/share/mysql/systemd/mariadb.service
+[linux-any] usr/share/mysql/systemd/mariadb at .service
 usr/share/mysql/wsrep_notify
 usr/share/mysql/mysql.server
 usr/share/mysql/my-large.cnf
--- debian/libmariadbclient18.install.original	2018-11-04 18:26:33.000000000 +0000
+++ debian/libmariadbclient18.install	2018-11-04 18:26:41.000000000 +0000
@@ -1,5 +1,6 @@
+#!/usr/bin/dh-exec
 usr/lib/*/libmariadbclient.so.*
 usr/lib/*/mariadb18/plugin/client_ed25519.so
 usr/lib/*/mariadb18/plugin/dialog.so
-usr/lib/*/mariadb18/plugin/disks.so
+[!hurd-i386] usr/lib/*/mariadb18/plugin/disks.so
 usr/lib/*/mariadb18/plugin/mysql_clear_password.so
-------------- next part --------------
--- debian/control.original	2018-11-04 18:09:56.000000000 +0000
+++ debian/control	2018-11-04 18:10:00.000000000 +0000
@@ -22,7 +22,7 @@
                libpam0g-dev,
                libpcre3-dev (>= 2:8.35-3.2~),
                libreadline-gplv2-dev,
-               libsystemd-dev,
+               libsystemd-dev [linux-any],
                libxml2-dev,
                lsb-release,
                perl,


More information about the pkg-mysql-maint mailing list