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

gcc484ntopperl-5.22
Last change on this file since c5c522c 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
  • scripts/Kbuild.install

    From: Ben Hutchings <ben@decadent.org.uk>
    Date: Wed, 09 Sep 2015 01:24:56 +0100
    Subject: Install headers with consistent mode
    Forwarded: http://www.zytor.com/pipermail/klibc/2016-January/003891.html
    
    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 <ben@decadent.org.uk>
    ---
    a b header: 
    102102                ln -sf /usr/include/$(DEB_HOST_MULTIARCH)/asm $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/ || exit; \
    103103        fi
    104104        $(Q)cp -rf usr/include/. $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/.
    105         $(Q)chmod -R a+rX $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
     105        $(Q)chmod -R a+rX,go-w $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
    106106        $(Q)$(install-data) $(srctree)/klcc/klcc.1 $(INSTALLROOT)$(mandir)/man1/$(KCROSS)klcc.1
    107107        $(Q)$(install-bin) $(objtree)/klcc/$(KCROSS)klcc $(INSTALLROOT)$(bindir)
    108108
Note: See TracBrowser for help on using the repository browser.