xserver: Branch 'master' - 6 commits

Keith Packard keithp at kemper.freedesktop.org
Fri Oct 4 14:10:49 PDT 2013


 hw/xfree86/Makefile.am |   19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

New commits:
commit e0a678f0596f3547b98d74d5f0438b484b059458
Author: Gaetan Nadon <memsize at videotron.ca>
Date:   Sat Sep 28 15:26:38 2013 -0400

    xfree86: add a comment as to why the logdir is created
    
    Without the logdir, the xserver will write the content of the log file on the
    terminal stating that it cannot be written and will stop.
    
    Refer to https://bugs.freedesktop.org/show_bug.cgi?id=3889
    
    Reviewed-By:  Matt Dew <marcoz at osource.org>
    Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
    Signed-off-by: Keith Packard <keithp at keithp.com>

diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am
index aed631b..59cfb5f 100644
--- a/hw/xfree86/Makefile.am
+++ b/hw/xfree86/Makefile.am
@@ -84,6 +84,7 @@ os-support/solaris/solaris- at SOLARIS_INOUT_ARCH@.il:
 	 $(MAKE) $(AM_MAKEFLAGS) solaris- at SOLARIS_INOUT_ARCH@.il
 endif
 
+# Without logdir, X will post an error on the terminal and will not start
 install-data-local:
 	$(AM_V_GEN)$(MKDIR_P) $(DESTDIR)$(logdir)
 if CYGWIN
commit 5bdbf2dba3f7da4a593b286020eab0c7857e940c
Author: Gaetan Nadon <memsize at videotron.ca>
Date:   Sat Sep 28 15:26:37 2013 -0400

    xfree86: Use $(MKDIR_P) for better code portability
    
    Still true that we should not use the lower case $(mkdir_p) version.
    However, remove the 2005 comment as the MKDIR_P is widely used now.
    
    Reviewed-By:  Matt Dew <marcoz at osource.org>
    Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
    Signed-off-by: Keith Packard <keithp at keithp.com>

diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am
index 3410e4a..aed631b 100644
--- a/hw/xfree86/Makefile.am
+++ b/hw/xfree86/Makefile.am
@@ -84,9 +84,8 @@ os-support/solaris/solaris- at SOLARIS_INOUT_ARCH@.il:
 	 $(MAKE) $(AM_MAKEFLAGS) solaris- at SOLARIS_INOUT_ARCH@.il
 endif
 
-# do not use $(mkdir_p) if you want automake 1.7 to work
 install-data-local:
-	mkdir -p $(DESTDIR)$(logdir)
+	$(AM_V_GEN)$(MKDIR_P) $(DESTDIR)$(logdir)
 if CYGWIN
 	$(INSTALL_DATA) libXorg.exe.a $(DESTDIR)$(libdir)/libXorg.exe.a
 endif
commit b8cfb0dc8426754b477b561bc158b8a24c143ddf
Author: Gaetan Nadon <memsize at videotron.ca>
Date:   Sat Sep 28 15:26:36 2013 -0400

    Uninstall X link and CYGWIN libXorg.exe.a in local install targets
    
    It is our duty to uninstall any files and/or directories that we installed
    through install-data-local and install-exec-hook.
    
    Currently the X symbolic link to Xorg remains on disk after running
    make uninstall.
    
    Note the exception for logdir which is usually shared by other modules.
    
    Reviewed-By:  Matt Dew <marcoz at osource.org>
    Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
    Signed-off-by: Keith Packard <keithp at keithp.com>

diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am
index 4b0edeb..3410e4a 100644
--- a/hw/xfree86/Makefile.am
+++ b/hw/xfree86/Makefile.am
@@ -98,6 +98,14 @@ if INSTALL_SETUID
 	chmod u+s $(DESTDIR)$(bindir)/Xorg
 endif
 
+uninstall-local:
+if CYGWIN
+	$(AM_V_at)rm -f $(DESTDIR)$(libdir)/libXorg.exe.a
+endif
+
+uninstall-hook:
+	$(AM_V_at)rm -f $(DESTDIR)$(bindir)/X
+
 # Use variables from XORG_MANPAGE_SECTIONS and X Server configuration
 # Do not include manpages.am as values are not appropriate for rc files
 CONF_SUBSTS =	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' \
commit 35a528e49269c3df75486cc606e51a8c1c083c06
Author: Gaetan Nadon <memsize at videotron.ca>
Date:   Sat Sep 28 15:26:35 2013 -0400

    Xorg binary: use install-exec-hook rather than install-exec-local
    
    The former was explicitly designed to execute additional code after the binary
    has been installed. The latter can be executed in any order, hence it's
    current dependency on install-binPROGRAMS as a workaround.
    
    The CYGWIN libXorg.exe.a target is an installation target rather than
    a post-installation one, so it should not be done as a hook. It does not depend
    on the Xorg executable being installed.
    
    Automake:
    "These hooks are run after all other install rules of the appropriate type,
    exec or data, have completed. So, for instance, it is possible to perform
    post-installation modifications using an install hook".
    
    "With the -local targets, there is no particular guarantee of execution order;
    typically, they are run early, but with parallel make, there is no way
    to be sure of that".
    
    Reviewed-by: Eric Anholt <eric at anholt.net>
    Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
    Signed-off-by: Keith Packard <keithp at keithp.com>

diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am
index 73bddab..4b0edeb 100644
--- a/hw/xfree86/Makefile.am
+++ b/hw/xfree86/Makefile.am
@@ -87,17 +87,16 @@ endif
 # do not use $(mkdir_p) if you want automake 1.7 to work
 install-data-local:
 	mkdir -p $(DESTDIR)$(logdir)
+if CYGWIN
+	$(INSTALL_DATA) libXorg.exe.a $(DESTDIR)$(libdir)/libXorg.exe.a
+endif
 
-
-install-exec-local: install-binPROGRAMS
+install-exec-hook:
 	(cd $(DESTDIR)$(bindir) && rm -f X && $(LN_S) Xorg$(EXEEXT) X)
 if INSTALL_SETUID
 	chown root $(DESTDIR)$(bindir)/Xorg
 	chmod u+s $(DESTDIR)$(bindir)/Xorg
 endif
-if CYGWIN
-	$(INSTALL_DATA) libXorg.exe.a $(DESTDIR)$(libdir)/libXorg.exe.a
-endif
 
 # Use variables from XORG_MANPAGE_SECTIONS and X Server configuration
 # Do not include manpages.am as values are not appropriate for rc files
commit a1d87576a30008253eb0cc92b44c9718f6665062
Author: Gaetan Nadon <memsize at videotron.ca>
Date:   Sat Sep 28 15:26:34 2013 -0400

    Use $(LN_S) provided by AC_PROG_LN_S macro to create links
    
    For better code portability.
    
    Reviewed-By:  Matt Dew <marcoz at osource.org>
    Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
    Signed-off-by: Keith Packard <keithp at keithp.com>

diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am
index 6b66732..73bddab 100644
--- a/hw/xfree86/Makefile.am
+++ b/hw/xfree86/Makefile.am
@@ -90,7 +90,7 @@ install-data-local:
 
 
 install-exec-local: install-binPROGRAMS
-	(cd $(DESTDIR)$(bindir) && rm -f X && ln -s Xorg$(EXEEXT) X)
+	(cd $(DESTDIR)$(bindir) && rm -f X && $(LN_S) Xorg$(EXEEXT) X)
 if INSTALL_SETUID
 	chown root $(DESTDIR)$(bindir)/Xorg
 	chmod u+s $(DESTDIR)$(bindir)/Xorg
commit 28c8e1910797970dbf1d40794f1804a8fcc812bc
Author: Gaetan Nadon <memsize at videotron.ca>
Date:   Sat Sep 28 15:26:33 2013 -0400

    The Xorg binary is missing the extension $(EXEEXT) in the makefile
    
    This is not a problem on UNIX platforms, but on CYGWIN it creates a broken
    link to Xorg rather than a link to Xorg.exe.
    
    From the CYGWIN log on tinderbox, we can see that the executable Xorg.exe is
    installed correctly. We can see the command used to create the link:
    
    (cd /jhbuild/install/[...]/install/bin && rm -f X && ln -s Xorg X)
    
    Note that the "relink" makefile target correctly appends $(EXEEXT) to Xorg.
    
    Reviewed-By:  Matt Dew <marcoz at osource.org>
    Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
    Signed-off-by: Keith Packard <keithp at keithp.com>

diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am
index d568e0d..6b66732 100644
--- a/hw/xfree86/Makefile.am
+++ b/hw/xfree86/Makefile.am
@@ -90,7 +90,7 @@ install-data-local:
 
 
 install-exec-local: install-binPROGRAMS
-	(cd $(DESTDIR)$(bindir) && rm -f X && ln -s Xorg X)
+	(cd $(DESTDIR)$(bindir) && rm -f X && ln -s Xorg$(EXEEXT) X)
 if INSTALL_SETUID
 	chown root $(DESTDIR)$(bindir)/Xorg
 	chmod u+s $(DESTDIR)$(bindir)/Xorg


More information about the xorg-commit mailing list