[Unstable][PATCH 4/6] UBUNTU: [Debian]: Warn about modules without debug symbols
Mauricio Faria de Oliveira
mfo at canonical.com
Wed Aug 28 12:26:02 UTC 2019
BugLink: https://bugs.launchpad.net/bugs/1840704
Print a warning message in the build log if a module does
not have a corresponding file in 'dbgpkgdir/usr/lib/debug'.
This should help to identify any modules without debug symbols,
which introduce additional complexity for their supportability.
In the future, it may be interesting to implement an stricter
check, to fail the build (obviously providing options to skip
the check and an exception list of modules that can bypass it).
Signed-off-by: Mauricio Faria de Oliveira <mfo at canonical.com>
---
debian/rules.d/2-binary-arch.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 9836f9e70b00..9c991b49e868 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -418,6 +418,8 @@ ifneq ($(skipdbg),true)
$(MODPUBKEY) \
$$path_module; \
fi; \
+ else \
+ echo "WARNING: Missing debug symbols for module '$$module'."; \
fi; \
done
endif
--
2.17.1
More information about the kernel-team
mailing list