1
0
xorg-x11-server/N_Install-Avoid-failure-on-wrapper-installation.patch
Stefan Dirsch 4de8f90dd1 Accepting request 628980 from home:tobijk:X11:XOrg
- Update to version 1.20.1:
  This bugfix release fixes several issues in RANDR, Xwayland, glamor, the
  modesetting driver, and elsewhere.
- Packaging changes:
  + Adapt patch N_Install-Avoid-failure-on-wrapper-installation.patch to work
    with the new version
  + Remove patch U_Xext-shm-Refuse-to-work-for-remote-clients.patch
  + Remove patch U_modesetting-use-drmmode_bo_import-for-rotate_fb.patch
  + Remove patch u_modesetting-Fix-cirrus-24bpp-breakage.patch
  + Remove patch U_exa-use-picturematchformat.patch

OBS-URL: https://build.opensuse.org/request/show/628980
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xorg-x11-server?expand=0&rev=715
2018-08-13 14:09:27 +00:00

35 lines
1.3 KiB
Diff

From: Egbert Eich <eich@suse.de>
Date: Tue Apr 12 09:22:40 2016 +0200
Subject: [PATCH]Install: Avoid failure on wrapper installation
Patch-mainline: never
References:
Signed-off-by: Egbert Eich <eich@suse.com>
- Check for SUID_WRAPPER_DIR being identical to bindir
before copying script.
- Check whether user is root before doing a chmod/chown
Signed-off-by: Egbert Eich <eich@suse.de>
---
hw/xfree86/Makefile.am | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am
index 85bd0be..461e818 100644
--- a/hw/xfree86/Makefile.am
+++ b/hw/xfree86/Makefile.am
@@ -108,9 +108,10 @@ if INSTALL_SETUID
endif
if SUID_WRAPPER
$(MKDIR_P) $(DESTDIR)$(SUID_WRAPPER_DIR)
- mv $(DESTDIR)$(bindir)/Xorg $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg
- ${INSTALL} -m 755 Xorg.sh $(DESTDIR)$(bindir)/Xorg
- -chown 0 $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap && chmod u+s $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap
+ mv $(DESTDIR)$(bindir)/Xorg $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg 2>/dev/null && target=Xorg; \
+ ${INSTALL} -m 755 Xorg.sh $(DESTDIR)$(bindir)/$${target}
+ -test "x$UID" = "x0" -o "x$EUID" = "x0" && \
+ chown root $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap && chmod u+s $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap
endif
uninstall-local: