]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: (debian) Abort build on unresolved symbols
authorStefan Bader <stefan.bader@canonical.com>
Tue, 9 Apr 2013 17:18:46 +0000 (19:18 +0200)
committerTim Gardner <tim.gardner@canonical.com>
Fri, 26 Feb 2016 02:44:02 +0000 (19:44 -0700)
When splitting the flavours of a module into the extras and base
package, we already run depmod. Unfortunately this only produces
warnings when modules in the base package have unresolved depen-
dencies.
This change will abort the build in that case, so we can fix things.

BugLink: http://bugs.launchpad.net/bugs/1166197
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
debian/rules.d/2-binary-arch.mk

index 06ae6bcdfb5523d5129713bc01e91ec4bfb23557..9ed5f2234c61bd8e2aa5e8d840eccb9e7a8bb173 100644 (file)
@@ -127,6 +127,10 @@ ifeq ($(do_extras_package),true)
                                tee $(target_flavour).inclusion-list.log; \
                /sbin/depmod -b $(pkgdir) -ea -F $(pkgdir)/boot/System.map-$(abi_release)-$* \
                        $(abi_release)-$* 2>&1 |tee $(target_flavour).depmod.log; \
+               if [ `grep -c 'unknown symbol' $(target_flavour).depmod.log` -gt 0 ]; then \
+                       echo "EE: Unresolved module dependencies in base package!"; \
+                       exit 1; \
+               fi \
        fi
 endif