[debian-mysql] Bug#981905: mysql-8.0: missing runtime dependency on -dev package
Gianfranco Costamagna
locutusofborg at debian.org
Thu Feb 4 21:38:11 GMT 2021
Source: mysql-8.0
Version: 8.0.23-1
Severity: serious
tags: patch
Hello, the dev package exposes zstd build flags, but doesn't depend on it.
e.g. you can see boinc build log failing
checking mysql libraries... -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lz -lzstd -lm -lrt -lssl -lcrypto -ldl -lresolv
checking mysql includes... -I/usr/include/mysql
[...]
libtool: link: /usr/bin/g++ -Wall -Wextra -Wshadow -Wredundant-decls -Wdisabled-optimization -Wpointer-arith -Wstrict-aliasing -Wcast-align -g -O2 -ffile-prefix-map=/<<BUILDDIR>>/boinc-7.16.16+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O3 -funroll-loops -fforce-addr -ffast-math -flto -Wall -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -flto -g -O2 -ffile-prefix-map=/<<BUILDDIR>>/boinc-7.16.16+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O3 -funroll-loops -fforce-addr -ffast-math -flto -o .libs/adjust_user_priority adjust_user_priority.o ../sched/.libs/libsched.so ../lib/.libs/libboinc_crypt.so ../lib/.libs/libboinc.so -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lz -lzstd -lm -lrt -ldl -lresolv -lssl -lcrypto -pthread
/usr/bin/ld: cannot find -lzstd
collect2: error: ld returned 1 exit status
this patch should do the trick
diff -Nru mysql-8.0-8.0.23/debian/control mysql-8.0-8.0.23/debian/control
--- mysql-8.0-8.0.23/debian/control 2021-01-19 15:07:46.000000000 +0100
+++ mysql-8.0-8.0.23/debian/control 2021-02-04 22:30:12.000000000 +0100
@@ -62,6 +62,7 @@
Section: libdevel
Depends: libmysqlclient21 (= ${binary:Version}),
libssl-dev,
+ libzstd-dev,
zlib1g-dev,
${misc:Depends},
${shlibs:Depends}
Gianfranco
More information about the pkg-mysql-maint
mailing list