Debian Patches

Status for libvhdi/20251119-2

Patch Description Author Forwarded Bugs Origin Last update
ac-path-pkgconfig.patch Use cross-build compatible macro for finding pkg-config. .
The package uses AC_PATH_PROG to discover the location of pkg-config(1). This
macro fails to select the correct version to support cross-compilation.
.
This patch changes it to use AC_PATH_TOOL.
.
Refer to https://bugs.debian.org/884798 for details.

=== modified file 'configure.ac'
no other 2020-11-10
disable-memory-tests.patch Disable the dlsym-based memory fault-injection tests
The upstream test suite interposes malloc(), memcpy(), memset() and
realloc() via dlsym(RTLD_NEXT, ...) in tests/vhdi_test_memory.c and
counts the calls made by the function under test, so that it can inject
a failure at the n-th call. Upstream itself notes in that file that this
"might fail if compiled with optimation and as a shared libary": when
the library is built optimised, fixed-size memory_copy() calls are
expanded inline as compiler builtins and never reach the interposer, so
the accounting drifts and the injected failure lands on an unrelated
memcpy() whose result nobody checks. The test then sees success where it
expects -1 and fails.

This has been worked around per-architecture since #978528, most
recently disabling the tests on alpha, arm64, powerpc, ppc64, ppc64el,
riscv64 and s390x. With the current toolchain in unstable amd64 fails
the same way:

vhdi_test_dynamic_disk_header.c:561 result (1) != -1
Unable to run test: libvhdi_dynamic_disk_header_read_data
Testing: dynamic_disk_header (FAIL)

Since the architecture blocklist has to be extended on every toolchain
change and these tests only exercise upstream's own out-of-memory error
paths rather than anything about the shipped library, disable them
everywhere instead.

Original patch by Aurelien Jarno <aurel32@debian.org>.
Christopher Obbard <obbardc@debian.org> not-needed debian 2026-08-14

All known versions for source package 'libvhdi'

Links