]> git.pld-linux.org Git - packages/xorg-app-xinit.git/commitdiff
- updated to 1.3.0 auto/th/xorg-app-xinit-1_3_0-1 auto/ti/xorg-app-xinit-1_3_0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 31 Oct 2010 10:18:23 +0000 (10:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- updated patches (ck functioning untested)

Changed files:
    xorg-app-xinit-consolekit-support.patch -> 1.3
    xorg-app-xinit-xwrapper.patch -> 1.5
    xorg-app-xinit.spec -> 1.29

xorg-app-xinit-consolekit-support.patch
xorg-app-xinit-xwrapper.patch
xorg-app-xinit.spec

index 9e8f014a9cbbdf44a070236d0beb5254d6f44913..087ae7676c56b4c91ccd6f7ae8f919862b024ca5 100644 (file)
@@ -50,13 +50,11 @@ index 42421ef..998c7f8 100644
  #if defined(__SCO__) || defined(__UNIXWARE__)
  if [ "$REMOTE_SERVER" = "TRUE" ]; then
          exec SHELL_CMD ${client}
-diff --git a/xinit.c b/xinit.c
-index 46dee54..c2c4527 100644
---- a/xinit.c
-+++ b/xinit.c
-@@ -39,6 +39,12 @@ in this Software without prior written authorization from The Open Group.
- #include <ctype.h>
- #include <stdint.h>
+--- xinit-1.3.0/xinit.c.orig   2010-10-31 10:39:31.355103290 +0100
++++ xinit-1.3.0/xinit.c        2010-10-31 10:51:48.107104966 +0100
+@@ -41,6 +41,12 @@
+ #include <setjmp.h>
+ #include <stdarg.h>
  
 +#ifdef USE_CONKIT
 +#include <ck-connector.h>
@@ -64,11 +62,11 @@ index 46dee54..c2c4527 100644
 +static CkConnector *ckc = NULL;
 +#endif /* USE_CONKIT */
 +
- #ifdef X_POSIX_C_SOURCE
- #define _POSIX_C_SOURCE X_POSIX_C_SOURCE
- #include <signal.h>
-@@ -521,6 +527,39 @@ processTimeout(int timeout, char *string)
-       return( serverpid != pidfound );
+ #ifdef __APPLE__
+ #include <AvailabilityMacros.h>
+ #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
+@@ -395,6 +401,38 @@
+     return (serverpid != pidfound);
  }
  
 +
@@ -96,9 +94,8 @@ index 46dee54..c2c4527 100644
 +       * element in newenviron. See set_environment() where we
 +       * earlier have made sure there is room...
 +       */
-+      conkitbuf[sizeof (conkitbuf) - 1] = '\0';
-+      snprintf (conkitbuf, sizeof (conkitbuf) - 1, "XDG_SESSION_COOKIE=%s", ck_connector_get_cookie (ckc));
-+      newenviron[1] = conkitbuf;
++      if (setenv("XDG_SESSION_COOKIE", ck_connector_get_cookie (ckc), TRUE) == -1)
++          Fatal("unable to set XDG_SESSION_COOKIE");
 +out:
 +      ;
 +}
@@ -107,78 +104,27 @@ index 46dee54..c2c4527 100644
  static int
  startServer(char *server[])
  {
-@@ -631,6 +670,12 @@ startServer(char *server[])
-               break;
-       }
+@@ -568,6 +606,9 @@
+     if (clientpid == 0) {
+         set_environment();
+         setWindowPath();
 +#ifdef USE_CONKIT
-+      if (serverpid != -1 ) {
-+              register_new_session_with_console_kit ();
-+      }
++      register_new_session_with_console_kit();
 +#endif /* USE_CONKIT */
-+
-       return(serverpid);
- }
-@@ -775,6 +820,13 @@ shutdown(void)
-                               clientpid);
-       }
  
-+#ifdef USE_CONKIT
-+      if (ckc != NULL) {
-+              ck_connector_unref (ckc);
-+              ckc = NULL;
-+      }
-+#endif
-+
-       if (serverpid < 0)
-               return;
-       errno = 0;
-@@ -811,6 +863,13 @@ shutdown(void)
-  * make a new copy of environment that has room for DISPLAY
-  */
-+
-+#ifdef USE_CONKIT
-+#define NUM_EXTRA_ENV_VARS 4
-+#else
-+#define NUM_EXTRA_ENV_VARS 3
-+#endif
-+
- static void 
- set_environment(void)
- {
-@@ -822,11 +881,11 @@ set_environment(void)
-     for (oldPtr = environ; *oldPtr; oldPtr++) ;
-     nenvvars = (oldPtr - environ);
--    newenviron = (char **) malloc ((nenvvars + 3) * sizeof(char **));
-+    newenviron = (char **) malloc ((nenvvars + NUM_EXTRA_ENV_VARS) * sizeof(char **));
-     if (!newenviron) {
-       fprintf (stderr,
-                "%s:  unable to allocate %d pointers for environment\n",
--               program, nenvvars + 3);
-+               program, nenvvars + NUM_EXTRA_ENV_VARS);
-       exit (1);
+         if (setuid(getuid()) == -1) {
+             Error("cannot change uid");
+@@ -612,6 +653,13 @@
+             Error("can't send HUP to process group %d", clientpid);
      }
  
-@@ -836,10 +895,18 @@ set_environment(void)
-     newPtr = newenviron;
-     *newPtr++ = displaybuf;
 +#ifdef USE_CONKIT
-+    *newPtr++ = "XDG_SESSION_COOKIE=";
++    if (ckc != NULL) {
++      ck_connector_unref (ckc);
++      ckc = NULL;
++    }
 +#endif
 +
-     /* copy pointers to other variables */
-     for (oldPtr = environ; *oldPtr; oldPtr++) {
-       if (strncmp (*oldPtr, "DISPLAY=", 8) != 0
--       && strncmp (*oldPtr, "WINDOWPATH=", 11) != 0) {
-+       && strncmp (*oldPtr, "WINDOWPATH=", 11) != 0
-+#ifdef USE_CONKIT
-+       && strncmp (*oldPtr, "XDG_SESSION_COOKIE=", 19) != 0
-+#endif
-+       ) {
-           *newPtr++ = *oldPtr;
-       }
-     }
+     if (serverpid < 0)
+         return;
index 1e516493007455017d6fd4cab035b1aa4d858f9c..1eb7ce1e525ecb639b85ef9861b0c667218d7272 100644 (file)
  defaultclientargs=""
  defaultserverargs=""
  clientargs=""
---- xinit-1.0.8/xinit.c.orig   2008-03-06 23:08:48.000000000 +0100
-+++ xinit-1.0.8/xinit.c        2008-03-08 02:12:06.010657245 +0100
-@@ -166,6 +166,7 @@
- #define       OK_EXIT         0
- #define       ERR_EXIT        1
+--- xinit-1.3.0/xinit.c.orig   2010-06-12 03:14:10.000000000 +0200
++++ xinit-1.3.0/xinit.c        2010-10-31 10:38:50.551098261 +0100
+@@ -92,6 +92,7 @@
+ #define TRUE 1
+ #define FALSE 0
  
 +static char *default_wrapper = BINDIR "/Xwrapper";
  static char *default_server = "X";
- static char *default_display = ":0";          /* choose most efficient */
+ static char *default_display = ":0";        /* choose most efficient */
  static char *default_client[] = {"xterm", "-geometry", "+1+1", "-n", "login", NULL};
-@@ -374,7 +375,10 @@
-       if (argc == 0 ||
- #ifndef __UNIXOS2__
-           (**argv != '/' && **argv != '.')) {
--              *sptr++ = default_server;
-+              if (access(default_wrapper, X_OK) == 0)
-+                      *sptr++ = default_wrapper;
-+              else
-+                      *sptr++ = default_server;
- #else
-           (**argv != '/' && **argv != '\\' && **argv != '.' &&
-            !(isalpha(**argv) && (*argv)[1]==':'))) {
+@@ -191,7 +192,10 @@
+      */
+     if (argc == 0 ||
+         (**argv != '/' && **argv != '.')) {
+-        *sptr++ = default_server;
++      if (access(default_wrapper, X_OK) == 0)
++          *sptr++ = default_wrapper;
++      else
++            *sptr++ = default_server;
+     } else {
+         server_given = 1;
+         *sptr++ = *argv++;
index ec18b4b7bbc5e6b001c3bc646974c15de70bde0e..2c0ba32d656a64709efb5e7faa996690385e0185 100644 (file)
@@ -5,12 +5,12 @@
 Summary:       xinit application - X Window System initializer
 Summary(pl.UTF-8):     Aplikacja xinit do uruchamiania X Window System
 Name:          xorg-app-xinit
-Version:       1.2.1
+Version:       1.3.0
 Release:       1
 License:       MIT
 Group:         X11/Applications
 Source0:       http://xorg.freedesktop.org/releases/individual/app/xinit-%{version}.tar.bz2
-# Source0-md5: 56f2d202b3dc10fcd21931a67bb270f7
+# Source0-md5: bc4e8b7d1919597cc37a0d24aa149dda
 Source1:       startx.1x.it
 Source2:       startx.1x.pl
 Source3:       xinit.1x.it
@@ -19,13 +19,13 @@ Patch0:             %{name}-xwrapper.patch
 Patch1:                %{name}-consolekit-support.patch
 URL:           http://xorg.freedesktop.org/
 BuildRequires: ConsoleKit-devel
-BuildRequires: autoconf >= 2.57
+BuildRequires: autoconf >= 2.60
 BuildRequires: automake
 BuildRequires: cpp
 BuildRequires: pkgconfig >= 1:0.19
 BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xorg-proto-inputproto-devel
-BuildRequires: xorg-util-util-macros >= 1.3
+BuildRequires: xorg-util-util-macros >= 1.8
 Requires:      /etc/X11/xinit/xinitrc
 Requires:      xorg-app-xauth
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
This page took 0.079259 seconds and 4 git commands to generate.