public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in x11-misc/slim/files: slim-1.3.2-ck.patch
@ 2011-12-15 19:45 Jeroen Roovers (jer)
  0 siblings, 0 replies; only message in thread
From: Jeroen Roovers (jer) @ 2011-12-15 19:45 UTC (permalink / raw
  To: gentoo-commits

jer         11/12/15 19:45:32

  Modified:             slim-1.3.2-ck.patch
  Log:
  Fix building with USE=-consolekit (bug #394845).
  
  (Portage version: 2.2.0_alpha81/cvs/Linux x86_64)

Revision  Changes    Path
1.2                  x11-misc/slim/files/slim-1.3.2-ck.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/slim/files/slim-1.3.2-ck.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/slim/files/slim-1.3.2-ck.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/slim/files/slim-1.3.2-ck.patch?r1=1.1&r2=1.2

Index: slim-1.3.2-ck.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/x11-misc/slim/files/slim-1.3.2-ck.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- slim-1.3.2-ck.patch	14 Dec 2011 20:23:55 -0000	1.1
+++ slim-1.3.2-ck.patch	15 Dec 2011 19:45:32 -0000	1.2
@@ -1,6 +1,5 @@
-diff -Naur slim-1.3.2/app.cpp slim-1.3.2.new/app.cpp
---- slim-1.3.2/app.cpp	2011-12-14 14:33:45.000000000 -0500
-+++ slim-1.3.2.new/app.cpp	2011-12-14 13:25:19.000000000 -0500
+--- a/slim-1.3.2/app.cpp
++++ b/slim-1.3.2/app.cpp
 @@ -536,6 +536,60 @@
      string xauthority = pw->pw_dir;
      xauthority.append("/.Xauthority");
@@ -62,16 +61,18 @@
  #ifdef USE_PAM
      // Setup the PAM environment
      try{
-@@ -548,6 +602,8 @@
+@@ -548,6 +602,10 @@
          pam.setenv("DISPLAY", DisplayName);
          pam.setenv("MAIL", maildir.c_str());
          pam.setenv("XAUTHORITY", xauthority.c_str());
++#ifdef USE_CONSOLEKIT
 +        pam.setenv("XDG_SESSION_COOKIE", ck_connector_get_cookie(ckconnector));
 +    cerr << APPNAME << ": ck_connector has XDG_SESSION_COOKIE of " << ck_connector_get_cookie(ckconnector) << endl;
++#endif
      }
      catch(PAM::Exception& e){
          cerr << APPNAME << ": " << e << endl;
-@@ -564,7 +620,11 @@
+@@ -564,7 +622,11 @@
          char** child_env = pam.getenvlist();
          pam.end();
  #else
@@ -83,7 +84,7 @@
          char** child_env = static_cast<char**>(malloc(sizeof(char*)*Num_Of_Variables));
          int n = 0;
          if(term) child_env[n++]=StrConcat("TERM=", term);
-@@ -576,6 +636,10 @@
+@@ -576,6 +638,10 @@
          child_env[n++]=StrConcat("DISPLAY=", DisplayName);
          child_env[n++]=StrConcat("MAIL=", maildir.c_str());
          child_env[n++]=StrConcat("XAUTHORITY=", xauthority.c_str());
@@ -94,7 +95,7 @@
          child_env[n++]=0;
  #endif
  
-@@ -617,6 +681,28 @@
+@@ -617,6 +683,28 @@
          }
      }
  
@@ -123,7 +124,7 @@
  #ifdef USE_PAM
      try{
          pam.close_session();
-@@ -881,12 +967,18 @@
+@@ -881,12 +969,18 @@
              bool ok = false;
              Cfg::string2int(server[i]+2, &ok);
              if (ok) {
@@ -142,9 +143,8 @@
          server[argc++] = (char*)"vt07";
      }
      server[argc] = NULL;
-diff -Naur slim-1.3.2/app.h slim-1.3.2.new/app.h
---- slim-1.3.2/app.h	2011-12-14 14:33:45.000000000 -0500
-+++ slim-1.3.2.new/app.h	2011-12-14 11:51:39.000000000 -0500
+--- a/slim-1.3.2/app.h
++++ b/slim-1.3.2/app.h
 @@ -27,6 +27,10 @@
  #ifdef USE_PAM
  #include "PAM.h"
@@ -169,9 +169,8 @@
  
      // Options
      char* DispName;
-diff -Naur slim-1.3.2/Makefile slim-1.3.2.new/Makefile
---- slim-1.3.2/Makefile	2011-12-14 14:33:45.000000000 -0500
-+++ slim-1.3.2.new/Makefile	2011-12-14 11:43:02.000000000 -0500
+--- a/slim-1.3.2/Makefile
++++ b/slim-1.3.2/Makefile
 @@ -13,6 +13,11 @@
  LDFLAGS+= -lpam
  CUSTOM+= -DUSE_PAM






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-15 19:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-15 19:45 [gentoo-commits] gentoo-x86 commit in x11-misc/slim/files: slim-1.3.2-ck.patch Jeroen Roovers (jer)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox