Debian Patches

Status for qdl/2.9-3

Patch Description Author Forwarded Bugs Origin Last update
0001-tests-build-test_firehose-without-jump-tables.patch tests: build test_firehose without jump tables
test_firehose.c #includes firehose.c and relies on -ffunction-sections
and --gc-sections to discard everything but the response parsers under
test, so that only the ux_* logging stubs need to be provided.

On ppc64el this fails to link with undefined references to qdl_read,
ux_progress, vip_*, SHA256* and others. The switch statement in
firehose_run() is compiled to a jump table whose address is loaded from
the .toc section. Unlike .text, .toc is a single section per object
shared by every function, so it is always kept, and its relocation
against .text.firehose_run keeps firehose_run() and its whole call
graph alive.

Build the test with -fno-jump-tables so no .toc entry points into
otherwise dead code. This only affects the test binary; the parsers it
exercises are unchanged.
Christopher Obbard <chris.obbard@oss.qualcomm.com> yes 2026-11-03
0002-meson-generate-the-man-page-when-cross-building-with.patch meson: generate the man page when cross-building with an exe wrapper
The man page is generated by running the built qdl binary through
help2man, so it was skipped when cross building. Cross builds that
provide an exe_wrapper (for example Debian's debcrossgen, when
cross-exe-wrapper is installed) can run the binary, but still shipped
no qdl.1.

Use meson.can_run_host_binaries() instead of not is_cross_build(), so
generation is enabled natively or when an exe_wrapper is available.

help2man runs the program itself, so it cannot use the exe_wrapper.
Capture the --help and --version output in custom targets, which meson
does run through the exe_wrapper and have help2man read them back via
cat using --help-option and --version-option. help2man takes the
program name from the "qdl version X" line, so the native output is
unchanged.
Christopher Obbard <chris.obbard@oss.qualcomm.com> yes 2026-11-06

All known versions for source package 'qdl'

Links