From: Ben Hutchings Date: Wed, 9 Sep 2015 00:24:56 +0000 (+0100) Subject: Install headers with consistent mode X-Git-Tag: archive/raspbian/2.0.4-11+rpi1~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e2b1bdc74e8717d67f50bd257731528f3df7c573;p=klibc.git Install headers with consistent mode Currently we ensure the installed headers are readable by everyone, but write permissions will depend on the current umask. Turn off the group and other writable bits to ensure consistent results. Signed-off-by: Ben Hutchings Gbp-Pq: Name install-headers-with-consistent-mode.patch --- diff --git a/scripts/Kbuild.install b/scripts/Kbuild.install index 93c0396..cab68b1 100644 --- a/scripts/Kbuild.install +++ b/scripts/Kbuild.install @@ -102,7 +102,7 @@ header: ln -sf /usr/include/$(DEB_HOST_MULTIARCH)/asm $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/ || exit; \ fi $(Q)cp -rf usr/include/. $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/. - $(Q)chmod -R a+rX $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include + $(Q)chmod -R a+rX,go-w $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include $(Q)$(install-data) $(srctree)/klcc/klcc.1 $(INSTALLROOT)$(mandir)/man1/$(KCROSS)klcc.1 $(Q)$(install-bin) $(objtree)/klcc/$(KCROSS)klcc $(INSTALLROOT)$(bindir)