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)
Index: mariadb-10.1-10.1.35/cmake/os/GNU.cmake =================================================================== --- /dev/null +++ mariadb-10.1-10.1.35/cmake/os/GNU.cmake @@ -0,0 +1,33 @@ + +# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +# This file includes GNU/Hurd specific options and quirks, related to system checks + +INCLUDE(CheckSymbolExists) + +# Something that needs to be set on legacy reasons +SET(_GNU_SOURCE 1) +SET(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} -D_GNU_SOURCE=1) + +# Ensure we have clean build for shared libraries +# without unresolved symbols +# Not supported with AddressSanitizer +IF(NOT WITH_ASAN) + SET(LINK_FLAG_NO_UNDEFINED "-Wl,--no-undefined") +ENDIF() + +# 64 bit file offset support flag +SET(_FILE_OFFSET_BITS 64)
--- 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@.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@.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
--- 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,