UBUNTU: [debian] prep linux-libc-dev only if do_libc_dev_package=true

Message ID 1513194265-15518-2-git-send-email-kamal@canonical.com
State New
Headers show
Series
  • UBUNTU: [debian] prep linux-libc-dev only if do_libc_dev_package=true
Related show

Commit Message

Kamal Mostafa Dec. 13, 2017, 7:44 p.m.
Required for do_libc_dev_package=false to not break the build.

Ignore: yes

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
---
 debian/rules.d/2-binary-arch.mk | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index b0829c2..2944126 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -415,7 +415,9 @@  install-arch-headers:
 	@echo Debug: $@
 	dh_testdir
 	dh_testroot
+ifeq ($(do_libc_dev_package),true)
 	dh_prep -plinux-libc-dev
+endif
 
 	rm -rf $(headers_tmp)
 	install -d $(headers_tmp) $(headers_dir)/usr/include/