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
5 Typically when creating a package, the build is not run as root, so
6 the chown will fail. But the chmod can still be done.
8 Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
11 1 file changed, 2 insertions(+), 1 deletion(-)
13 diff --git a/Makefile.in b/Makefile.in
14 index 65549e9..3c12fdb 100644
17 @@ -84,7 +84,8 @@ screen: $(OFILES)
19 install_bin: .version screen
20 $(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
21 - -chown root $(DESTDIR)$(bindir)/$(SCREEN) && chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
22 + -chown root $(DESTDIR)$(bindir)/$(SCREEN)
23 + -chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
24 # This doesn't work if $(bindir)/screen is a symlink
25 rm -f $(DESTDIR)$(bindir)/screen
26 (cd $(DESTDIR)$(bindir) && ln -f -s $(SCREEN) screen)