Your message dated Tue, 06 Oct 2020 13:34:31 +0000
with message-id <[email protected]>
and subject line Bug#971579: fixed in mariadb-10.5 1:10.5.5-2
has caused the Debian Bug report #971579,
regarding mariadb-10.5 FTCBFS: multiple reasons
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
971579: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971579
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: mariadb-10.5
Version: 1:10.5.5-1
Tags: patch
User: [email protected]
Usertags: ftcbfs
Control: tags 920365 + wontfix
Control: close 920365

Hi Otto,

great news. I managed to make mariadb cross buildable. It wasn't that
hard in the end, I just got a number of things wrong on the road, which
made it take a little longer. Instead of detailing on the problems
encountered, I'm attaching a patch with a descriptive changelog. If you
have any questions on why a particular change is needed, don't hesitate
to ask. Integrating this may not be entirely trivial as you already
cherry picked the dh_auto_configure part into git, but this patch is
against the unstable version.

One aspect I'd like to highlight is that mariadb wants to know the stack
direction and you cannot determine this during cross compilation. For
that reason, mariadb includes the stack direction for each architecture.
Updating it will be required for new architectures from time to time.
Hope this works for you.

Do note however that making mariadb cross buildable implies not turning
mariadb_config into a shell script. Doing so would require running
mariadb_config during build, which we cannot do during cross builds. It
was only ever meant as s stop-gap solution and the real solution is
using pkg-config. So I'll have to send a lot of patches to mariadb users
to make them stop using mariadb_config, which is fundamentally
incompatible with cross compilation. Thus closing that bug. There is
nothing we can do about that on the mariadb side anymore.

Thanks for your cooperation with this matter

Helmut
diff --minimal -Nru mariadb-10.5-10.5.5/debian/changelog 
mariadb-10.5-10.5.5/debian/changelog
--- mariadb-10.5-10.5.5/debian/changelog        2020-09-25 18:56:59.000000000 
+0200
+++ mariadb-10.5-10.5.5/debian/changelog        2020-09-26 08:00:12.000000000 
+0200
@@ -1,3 +1,15 @@
+mariadb-10.5 (1:10.5.5-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Add native dependencies on gnutls, libedit and ncurses.
+    + Use a native perl interpreter during build.
+    + Let dh_auto_configure pass -DCMAKE_SYSTEM_NAME to cmake.
+    + Keep default CMAKE_BUILD_TYPE=RelWithDebInfo instead of debhelper's None.
+    + Cache the per-architecture stack direction.
+
+ -- Helmut Grohne <[email protected]>  Sat, 26 Sep 2020 08:00:12 +0200
+
 mariadb-10.5 (1:10.5.5-1) unstable; urgency=medium
 
   * New upstream version 10.5.5 (Closes: #968895)
diff --minimal -Nru mariadb-10.5-10.5.5/debian/control 
mariadb-10.5-10.5.5/debian/control
--- mariadb-10.5-10.5.5/debian/control  2020-09-24 00:19:37.000000000 +0200
+++ mariadb-10.5-10.5.5/debian/control  2020-09-26 08:00:12.000000000 +0200
@@ -17,12 +17,15 @@
                libcrack2-dev (>= 2.9.0),
                libcurl4-openssl-dev | libcurl4-dev,
                libedit-dev,
+               libedit-dev:native,
                libgnutls28-dev (>= 3.3.24),
+               libgnutls28-dev:native (>= 3.3.24),
                libjemalloc-dev [linux-any],
                libjudy-dev,
                libkrb5-dev,
                liblz4-dev,
                libncurses5-dev (>= 5.0-6~),
+               libncurses5-dev:native (>= 5.0-6~),
                libnuma-dev [!armhf],
                libpam0g-dev,
                libpcre2-dev,
@@ -31,7 +34,7 @@
                libxml2-dev,
                libzstd-dev (>= 1.3.3),
                lsb-release,
-               perl,
+               perl:any,
                po-debconf,
                psmisc,
                unixodbc-dev,
diff --minimal -Nru mariadb-10.5-10.5.5/debian/rules 
mariadb-10.5-10.5.5/debian/rules
--- mariadb-10.5-10.5.5/debian/rules    2020-09-17 22:17:28.000000000 +0200
+++ mariadb-10.5-10.5.5/debian/rules    2020-09-26 08:00:12.000000000 +0200
@@ -22,8 +22,7 @@
 RELEASE := $(shell lsb_release -r -s) # Use changelog based DEB_DISTRIBUTION 
instead?
 TMP:=$(CURDIR)/debian/tmp
 
-CC := $(DEB_HOST_GNU_TYPE)-gcc
-CXX := $(DEB_HOST_GNU_TYPE)-g++
+-include /usr/share/dpkg/buildtools.mk
 
 # According to Debian Policy version 4.2.0 builds should be as verbose as
 # possible unless 'terse' is specifically passed.
@@ -53,6 +52,15 @@
     CMAKEFLAGS += -DPLUGIN_ROCKSDB=NO
 endif
 
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+ifneq (,$(filter $(DEB_HOST_ARCH_CPU),alpha amd64 arm arm64 i386 ia64 m68k 
mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sh4 sparc64))
+CMAKEFLAGS += -DSTACK_DIRECTION=-1
+endif
+ifneq (,$(filter $(DEB_HOST_ARCH_CPU),hppa))
+CMAKEFLAGS += -DSTACK_DIRECTION=1
+endif
+endif
+
 ifeq ($(DEB_HOST_ARCH),riscv64)
     # riscv64 is currently very slow.
     TESTCASE_TIMEOUT=120
@@ -75,7 +83,7 @@
        @echo "RULES.$@"
        dh_testdir
        dh_testroot
-       rm -rf $(BUILDDIR) builddir-native
+       rm -rf $(BUILDDIR) builddir-native extra/readline
 
        [ ! -f debian/mysql-test-unstable-tests.orig ] || \
            mv debian/mysql-test-unstable-tests.orig mysql-test/unstable-tests
@@ -94,12 +102,10 @@
        # Remove -DWITH_SSL=bundle if you want to use system OpenSSL, otherwise
        # the server will use YaSSL and Connector/C will use GnuTLS.
        # Don't build ColumnStore, not mature enough for Debian yet.
-       mkdir -p $(BUILDDIR) && cd $(BUILDDIR) && \
-       sh -c  
'PATH=$${MYSQL_BUILD_PATH:-"/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin"} \
-               CC=${CC} \
-               CXX=${CXX} \
-               NO_UPDATE_BUILD_VERSION=1 \
-           cmake -DCMAKE_INSTALL_PREFIX=/usr \
+       
PATH=$${MYSQL_BUILD_PATH:-"/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin"} \
+           NO_UPDATE_BUILD_VERSION=1 \
+           dh_auto_configure --builddirectory=$(BUILDDIR) -- \
+           -DCMAKE_BUILD_TYPE=RelWithDebInfo \
            $(CMAKEFLAGS) \
            $(if $(filter 
$(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)),,-DIMPORT_EXECUTABLES=$(CURDIR)/builddir-native/import_executables.cmake)
 \
            -DCOMPILATION_COMMENT="$(DEB_VENDOR) $(RELEASE)" \
@@ -113,7 +119,7 @@
            -DPLUGIN_AWS_KEY_MANAGEMENT=NO \
            -DPLUGIN_COLUMNSTORE=NO \
            -DWITH_INNODB_SNAPPY=ON \
-           -DDEB=$(DEB_VENDOR) ..'
+           -DDEB=$(DEB_VENDOR)
 
 # This is needed, otherwise 'make test' will run before binaries have been 
built
 override_dh_auto_build:

--- End Message ---
--- Begin Message ---
Source: mariadb-10.5
Source-Version: 1:10.5.5-2
Done: =?utf-8?b?T3R0byBLZWvDpGzDpGluZW4=?= <[email protected]>

We believe that the bug you reported is fixed in the latest version of
mariadb-10.5, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Otto Kekäläinen <[email protected]> (supplier of updated mariadb-10.5 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 06 Oct 2020 14:44:39 +0300
Source: mariadb-10.5
Binary: libmariadb-dev libmariadb-dev-compat libmariadb3 libmariadbd19 
libmariadbd-dev mariadb-common mariadb-client-core-10.5 mariadb-client-10.5 
mariadb-server-core-10.5 mariadb-server-10.5 mariadb-server mariadb-client 
mariadb-backup mariadb-plugin-connect mariadb-plugin-s3 mariadb-plugin-rocksdb 
mariadb-plugin-oqgraph mariadb-plugin-mroonga mariadb-plugin-spider 
mariadb-plugin-gssapi-server mariadb-plugin-gssapi-client 
mariadb-plugin-cracklib-password-check mariadb-test mariadb-test-data
Architecture: source
Version: 1:10.5.5-2
Distribution: unstable
Urgency: medium
Maintainer: Debian MySQL Maintainers <[email protected]>
Changed-By: Otto Kekäläinen <[email protected]>
Description:
 libmariadb-dev - MariaDB database development files
 libmariadb-dev-compat - MariaDB Connector/C, compatibility symlinks
 libmariadb3 - MariaDB database client library
 libmariadbd-dev - MariaDB embedded database, development files
 libmariadbd19 - MariaDB embedded database, shared library
 mariadb-backup - Backup tool for MariaDB server
 mariadb-client - MariaDB database client (metapackage depending on the latest 
vers
 mariadb-client-10.5 - MariaDB database client binaries
 mariadb-client-core-10.5 - MariaDB database core client binaries
 mariadb-common - MariaDB common configuration files
 mariadb-plugin-connect - Connect storage engine for MariaDB
 mariadb-plugin-cracklib-password-check - CrackLib Password Validation Plugin 
for MariaDB
 mariadb-plugin-gssapi-client - GSSAPI authentication plugin for MariaDB client
 mariadb-plugin-gssapi-server - GSSAPI authentication plugin for MariaDB server
 mariadb-plugin-mroonga - Mroonga storage engine for MariaDB
 mariadb-plugin-oqgraph - OQGraph storage engine for MariaDB
 mariadb-plugin-rocksdb - RocksDB storage engine for MariaDB
 mariadb-plugin-s3 - Amazon S3 archival storage engine for MariaDB
 mariadb-plugin-spider - Spider storage engine for MariaDB
 mariadb-server - MariaDB database server (metapackage depending on the latest 
vers
 mariadb-server-10.5 - MariaDB database server binaries
 mariadb-server-core-10.5 - MariaDB database core server files
 mariadb-test - MariaDB database regression test suite
 mariadb-test-data - MariaDB database regression test suite - data files
Closes: 933063 933151 970662 971256 971399 971579
Changes:
 mariadb-10.5 (1:10.5.5-2) unstable; urgency=medium
 .
   [ Otto Kekäläinen ]
   * Salsa-CI: Extend feature tests to ensure TLS connections work at v1.2
   * Fix x32 compilation issue (Closes: #970662)
   * Implement unified logrotate from upstream PR#1556 (Closes: #971399)
   * Fix upgrade from Percona.com by ensuring server uses mariadb.cnf
   * Revert emptying /etc/mysql/debian.cnf (Closes: #971256)
   * Use build flag to enforce default charset as utf8mb4 (Closes: #933063)
   * Remove "Multi-Arch: same" from libmariadbd-dev
   * Disable flaky MTR tests to get builds pass
   * Automatically use libatomics on 64-bit archs (Closes: #933151)
 .
   [ Daniel Black ]
   * Fix upgrade from MySQL.com with a new 'auth_socket' rename
 .
   [ Helmut Grohne ]
   * Fix FTCBFS so cross-compiling works (Closes: #971579)
     - Add native dependencies on gnutls, libedit and ncurses.
     - Use a native perl interpreter during build.
     - Let dh_auto_configure pass -DCMAKE_SYSTEM_NAME to cmake.
     - Keep default CMAKE_BUILD_TYPE=RelWithDebInfo instead of debhelper's None.
     - Cache the per-architecture stack direction.
Checksums-Sha1:
 3a545d5977d2c0193e18cce20e50011156a55c64 4728 mariadb-10.5_10.5.5-2.dsc
 6aa85afd6e293a84b7d9f6da69dcf18f1678f260 231608 
mariadb-10.5_10.5.5-2.debian.tar.xz
 e1774491030d8bf8a358384cd8824bdea5a5b12c 9313 
mariadb-10.5_10.5.5-2_source.buildinfo
Checksums-Sha256:
 9837be4446692143a0db694913762ba85b8cd585359c8928226124158df5b8c0 4728 
mariadb-10.5_10.5.5-2.dsc
 5ef46525c45310efb2a47a4fd227a56a95966d6bcf00de5954ecf7b0547ddddf 231608 
mariadb-10.5_10.5.5-2.debian.tar.xz
 d7cd365c4c07835a7930cc9d7b3404d6ac788d28a397b54f602c709361e714af 9313 
mariadb-10.5_10.5.5-2_source.buildinfo
Files:
 21db034ef35f5c34f87e6c48068f408f 4728 database optional 
mariadb-10.5_10.5.5-2.dsc
 6ab23d7483bcde4484bca3e0973d027a 231608 database optional 
mariadb-10.5_10.5.5-2.debian.tar.xz
 61d892839b9ff7bcb1a7a655d84faa39 9313 database optional 
mariadb-10.5_10.5.5-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEmbRSsR88dMO0U+RvvthEn87o2ogFAl98WXUACgkQvthEn87o
2oiSNRAAydSoPzUZosi88toJ3DS9M6/BXd/+ZY7IN0GLyNloanH2rU6E6j2ErvLG
nJNRlvojEuATYMy/IvHTnTHngyVjVrV3czJ+jB5gbhEq+WJKqTfVluM1e8yVkKn2
dJNxMBa9WhCRwM07N8e9E6x86kzt15/tnYWdE8mLzwsBaBJ3p0HeXDXO0VWbDs92
hjmh8y+iN7azG3dQwHAJlpwsqZoxUg3vEKGFvDS4svgtPPBlXP2liS4Hid+8O6as
HnrRPzK0AMwlu8RwvAJLyyWrWz4YmTOT+IVAiudgpRnGOznI3CBo+K26I7LhIrYL
fU8bc8TBbUQv+j5t+zyaRXbSDpnPQG0DoevbjVI75gV+H0dwNFL9k9hdP9po3hOf
KEbQjumlKaqggqa2Uue5Mk9tLZ8Gr5Xc3ffNFbN70bIakVrJubupBtoK58iHAgTO
wzdjbb+SqYcTEGxM1nN7yzM5At6lUiww0G6vBROtkJq0S263cziQSlimRdfGKgll
EzJG+ixq8Y1Wb/l8QUQqRYCp98rq3tRKacHpZwF4zldB/masMTKYZRET2YwjcFhN
Fo091dKuO1zC8zImD5dqitL4nq1XtUXYDkAqEhV79hDzI0k/x47xIEFbjDeXoZEt
um7g3NPmJiNAZm+qvHn9N9ztLS/OAZiIEFOH2nteds7WUpY4KlI=
=rBt2
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to