diff mbox series

[Unstable,4/6] UBUNTU: [Debian]: Warn about modules without debug symbols

Message ID 20190828122604.6829-5-mfo@canonical.com
State New
Headers show
Series Add support for ZFS debug symbols | expand

Commit Message

Mauricio Faria de Oliveira Aug. 28, 2019, 12:26 p.m. UTC
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@canonical.com>
---
 debian/rules.d/2-binary-arch.mk | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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