source: npl/system/klibc/patches/install-headers-with-consistent-mode.patch @ 0105685

gcc484ntopperl-5.22
Last change on this file since 0105685 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[c5c522c]1From: Ben Hutchings <ben@decadent.org.uk>
2Date: Wed, 09 Sep 2015 01:24:56 +0100
3Subject: Install headers with consistent mode
4Forwarded: http://www.zytor.com/pipermail/klibc/2016-January/003891.html
5
6Currently we ensure the installed headers are readable by everyone,
7but write permissions will depend on the current umask.  Turn off the
8group and other writable bits to ensure consistent results.
9
10Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
11---
12--- a/scripts/Kbuild.install
13+++ b/scripts/Kbuild.install
14@@ -102,7 +102,7 @@ header:
15                ln -sf /usr/include/$(DEB_HOST_MULTIARCH)/asm $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/ || exit; \
16        fi
17        $(Q)cp -rf usr/include/. $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/.
18-       $(Q)chmod -R a+rX $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
19+       $(Q)chmod -R a+rX,go-w $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
20        $(Q)$(install-data) $(srctree)/klcc/klcc.1 $(INSTALLROOT)$(mandir)/man1/$(KCROSS)klcc.1
21        $(Q)$(install-bin) $(objtree)/klcc/$(KCROSS)klcc $(INSTALLROOT)$(bindir)
22 
Note: See TracBrowser for help on using the repository browser.