[Debian-ha-maintainers] Bug#1065486: sbd: FTBFS due to hardcoded libaio SONAME used in dlopen()

Guillem Jover guillem at debian.org
Tue Mar 5 11:29:36 GMT 2024


Source: sbd
Source-Version: 1.5.2-1
Severity: serious
Tags: patch upstream

Hi!

For the time64 transition I've done a local SONAME bump. This will
make this package FTBFS (once the mass binNMUs are triggered) due to
its test suite hardcoding the libaio SONAME for a dlopen() call.

Because the package is already explicitly linking against -laio (which
I guess also means there's a missing Build-Depends here), we are
guaranteed to have libaio.so available, so we can use that to avoid
hardcoding the SONAME. Of course dlopen()ing a shared library like
this is dangerous as the code might use the wrong ABI and that might
go unnoticed at build time, so perhaps it might also be worth
investigating in the future whether the dlopen is really necessary at
all (the test case is already being linked also against -laio).

The attached patch fixes the build for me with the new libaio.

Thanks,
Guillem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libaio-so.patch
Type: text/x-diff
Size: 1120 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-ha-maintainers/attachments/20240305/3686a36b/attachment.patch>


More information about the Debian-ha-maintainers mailing list