0003-install-always-chmod.patch 970 B

1234567891011121314151617181920212223242526272829
  1. From: Maarten ter Huurne <maarten@treewalker.org>
  2. Date: Mon, 15 Sep 2014 00:03:05 +0200
  3. Subject: Change binary permission flags even if chown fails
  4. Typically when creating a package, the build is not run as root, so
  5. the chown will fail. But the chmod can still be done.
  6. Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
  7. ---
  8. Makefile.in | 3 ++-
  9. 1 file changed, 2 insertions(+), 1 deletion(-)
  10. diff --git a/Makefile.in b/Makefile.in
  11. index 65549e9..3c12fdb 100644
  12. --- a/Makefile.in
  13. +++ b/Makefile.in
  14. @@ -84,7 +84,8 @@ screen: $(OFILES)
  15. install_bin: .version screen
  16. $(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
  17. - -chown root $(DESTDIR)$(bindir)/$(SCREEN) && chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
  18. + -chown root $(DESTDIR)$(bindir)/$(SCREEN)
  19. + -chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
  20. # This doesn't work if $(bindir)/screen is a symlink
  21. rm -f $(DESTDIR)$(bindir)/screen
  22. (cd $(DESTDIR)$(bindir) && ln -f -s $(SCREEN) screen)
  23. --
  24. 1.8.4.5