Package: release.debian.org
Severity: normal
Tags: buster
User: release.debian....@packages.debian.org
Usertags: pu

  * Link mydumper against libm. (Closes: #956020)

libmariadb-dev removed some libraries like -lssl and -lm
from Libs in the pkg-config file.

This is correct, and reduces the amount of unnecessary linking.

But in mydumper this exposed a missing -lm
(OpenSSL is not used directly by mydumper).

gcc appears to inline the one call to ceil() on all release
architectures except armel/armhf/mips/mipsel, only on these
architectures did the libmariadb-dev change expose the FTBFS.
diff -Nru mydumper-0.9.5/debian/changelog mydumper-0.9.5/debian/changelog
--- mydumper-0.9.5/debian/changelog     2018-12-19 11:17:53.000000000 +0200
+++ mydumper-0.9.5/debian/changelog     2020-07-09 15:25:49.000000000 +0300
@@ -1,3 +1,10 @@
+mydumper (0.9.5-1+deb10u1) buster; urgency=medium
+
+  * Non-maintainer upload.
+  * Link mydumper against libm. (Closes: #956020)
+
+ -- Adrian Bunk <b...@debian.org>  Thu, 09 Jul 2020 15:25:49 +0300
+
 mydumper (0.9.5-1) unstable; urgency=medium
 
   * New upstream release (Closes: #897913)
diff -Nru mydumper-0.9.5/debian/patches/0001-Link-mydumper-against-libm.patch 
mydumper-0.9.5/debian/patches/0001-Link-mydumper-against-libm.patch
--- mydumper-0.9.5/debian/patches/0001-Link-mydumper-against-libm.patch 
1970-01-01 02:00:00.000000000 +0200
+++ mydumper-0.9.5/debian/patches/0001-Link-mydumper-against-libm.patch 
2020-07-09 15:25:49.000000000 +0300
@@ -0,0 +1,26 @@
+From 47b179ace22a2b4f4e5a3e783d6a79cc44a65708 Mon Sep 17 00:00:00 2001
+From: Adrian Bunk <b...@stusta.de>
+Date: Fri, 8 May 2020 20:12:57 +0300
+Subject: Link mydumper against libm
+
+This is required due to mydumper.c using ceil().
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ca9591f..ea4bb85 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -37,7 +37,7 @@ if (WITH_BINLOG)
+ else (WITH_BINLOG)
+   add_executable(mydumper mydumper.c server_detect.c g_unix_signal.c 
connection.c getPassword.c)
+ endif (WITH_BINLOG)
+-target_link_libraries(mydumper ${MYSQL_LIBRARIES} ${GLIB2_LIBRARIES} 
${GTHREAD2_LIBRARIES} ${PCRE_PCRE_LIBRARY} ${ZLIB_LIBRARIES} stdc++)
++target_link_libraries(mydumper ${MYSQL_LIBRARIES} ${GLIB2_LIBRARIES} 
${GTHREAD2_LIBRARIES} ${PCRE_PCRE_LIBRARY} ${ZLIB_LIBRARIES} stdc++ m)
+ 
+ 
+ add_executable(myloader myloader.c connection.c getPassword.c)
+-- 
+2.20.1
+
diff -Nru mydumper-0.9.5/debian/patches/series 
mydumper-0.9.5/debian/patches/series
--- mydumper-0.9.5/debian/patches/series        2018-12-19 11:17:53.000000000 
+0200
+++ mydumper-0.9.5/debian/patches/series        2020-07-09 15:25:49.000000000 
+0300
@@ -1,3 +1,4 @@
 0001-manpage-whatis-description.patch
 0002-dont-install-documentation-source.patch
 0005-fix-cmake-define-ssl
+0001-Link-mydumper-against-libm.patch

Reply via email to