summaryrefslogtreecommitdiffstats
path: root/package/screen/screen-0007-install-always-chmod.patch
diff options
context:
space:
mode:
authorMaarten ter Huurne <maarten@treewalker.org>2014-09-15 04:39:49 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-09-21 19:58:28 +0200
commit6a16e1631f37e9d1e7c0cfb97ba25cd2f5e17bda (patch)
tree6e627f07cf3f6e10480b262e0248f69a9d70ab31 /package/screen/screen-0007-install-always-chmod.patch
parent22b65765556d544678749fc24fcd03d968a9a1c5 (diff)
downloadbuildroot-6a16e1631f37e9d1e7c0cfb97ba25cd2f5e17bda.tar.gz
buildroot-6a16e1631f37e9d1e7c0cfb97ba25cd2f5e17bda.zip
screen: bump to version 4.2.1
I re-did the patches: one patch per change, patch configure.in instead of the configure script itself, a few more issues fixed. This should hopefully make the patches acceptable for upstream, or at least make it easier to migrate them on version bumps. This also fixes compilation with musl libc. Signed-off-by: Maarten ter Huurne <maarten@treewalker.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/screen/screen-0007-install-always-chmod.patch')
-rw-r--r--package/screen/screen-0007-install-always-chmod.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/screen/screen-0007-install-always-chmod.patch b/package/screen/screen-0007-install-always-chmod.patch
new file mode 100644
index 0000000000..0aa7690b08
--- /dev/null
+++ b/package/screen/screen-0007-install-always-chmod.patch
@@ -0,0 +1,29 @@
+From: Maarten ter Huurne <maarten@treewalker.org>
+Date: Mon, 15 Sep 2014 00:03:05 +0200
+Subject: Change binary permission flags even if chown fails
+
+Typically when creating a package, the build is not run as root, so
+the chown will fail. But the chmod can still be done.
+
+Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
+---
+ Makefile.in | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 65549e9..3c12fdb 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -84,7 +84,8 @@ screen: $(OFILES)
+
+ install_bin: .version screen
+ $(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
+- -chown root $(DESTDIR)$(bindir)/$(SCREEN) && chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
++ -chown root $(DESTDIR)$(bindir)/$(SCREEN)
++ -chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
+ # This doesn't work if $(bindir)/screen is a symlink
+ rm -f $(DESTDIR)$(bindir)/screen
+ (cd $(DESTDIR)$(bindir) && ln -f -s $(SCREEN) screen)
+--
+1.8.4.5
+
OpenPOWER on IntegriCloud