[packages/xorg-app-xdm] - rediffed
hawk
hawk at pld-linux.org
Wed Apr 6 20:26:24 CEST 2022
commit 21d22656266ad8ddd1b17393d135fcb2b070c506
Author: Marcin Krol <hawk at tld-linux.org>
Date: Wed Apr 6 18:26:10 2022 +0000
- rediffed
xorg-app-xdm-config.patch | 20 +++---
xorg-app-xdm-consolekit.patch | 161 ++++++++++++++++++++++--------------------
xorg-app-xdm.spec | 2 +-
3 files changed, 95 insertions(+), 88 deletions(-)
---
diff --git a/xorg-app-xdm.spec b/xorg-app-xdm.spec
index 7745b7d..0336143 100644
--- a/xorg-app-xdm.spec
+++ b/xorg-app-xdm.spec
@@ -7,7 +7,7 @@ Summary(ru.UTF-8): Менеджер дисплея X
Summary(uk.UTF-8): Менеджер дисплею X
Name: xorg-app-xdm
Version: 1.1.12
-Release: 1
+Release: 2
License: MIT
Group: X11/Applications
Source0: https://xorg.freedesktop.org/releases/individual/app/xdm-%{version}.tar.bz2
diff --git a/xorg-app-xdm-config.patch b/xorg-app-xdm-config.patch
index 67faebc..ce595c5 100644
--- a/xorg-app-xdm-config.patch
+++ b/xorg-app-xdm-config.patch
@@ -1,7 +1,8 @@
---- xdm-1.1.12/config/Xresources.in.orig 2006-08-14 20:12:34.000000000 +0200
-+++ xdm-1.1.12/config/Xresources.in 2006-10-15 02:18:19.860305500 +0200
-@@ -78,7 +78,7 @@
- #endif /* XPM */
+diff -urNp -x '*.orig' xdm-1.1.12.org/config/Xresources.in xdm-1.1.12/config/Xresources.in
+--- xdm-1.1.12.org/config/Xresources.in 2019-03-02 22:06:13.000000000 +0000
++++ xdm-1.1.12/config/Xresources.in 2022-04-06 18:24:57.852216768 +0000
+@@ -58,7 +58,7 @@ xlogin*shdColor: black
+ xlogin*hiColor: black
XHASHendif
#ifdef XPM
-XHASHif PLANES >= 8
@@ -9,20 +10,21 @@
xlogin*logoFileName: BITMAPDIR/**//XDM_PIXMAP
XHASHelse
xlogin*logoFileName: BITMAPDIR/**//XDM_BWPIXMAP
---- xdm-1.1.0/xdm-xinitrc-0.2/GiveConsole.orig 2000-10-29 20:59:44.000000000 +0100
-+++ xdm-1.1.0/xdm-xinitrc-0.2/GiveConsole 2006-10-15 02:18:00.359086750 +0200
+diff -urNp -x '*.orig' xdm-1.1.12.org/xdm-xinitrc-0.2/GiveConsole xdm-1.1.12/xdm-xinitrc-0.2/GiveConsole
+--- xdm-1.1.12.org/xdm-xinitrc-0.2/GiveConsole 2000-10-29 19:59:44.000000000 +0000
++++ xdm-1.1.12/xdm-xinitrc-0.2/GiveConsole 2022-04-06 18:24:57.852216768 +0000
@@ -8,4 +8,4 @@
# causing serious grief.
#
chown $USER /dev/console
-/usr/X11R6/bin/sessreg -a -x "/etc/X11/xdm/Xservers" -l $DISPLAY -h "" $USER
+/usr/bin/sessreg -a -x "/etc/X11/xdm/Xservers" -l $DISPLAY -h "" $USER
---- xdm-1.1.0/xdm-xinitrc-0.2/TakeConsole.orig 2000-10-29 20:59:44.000000000 +0100
-+++ xdm-1.1.0/xdm-xinitrc-0.2/TakeConsole 2006-10-15 02:18:07.591538750 +0200
+diff -urNp -x '*.orig' xdm-1.1.12.org/xdm-xinitrc-0.2/TakeConsole xdm-1.1.12/xdm-xinitrc-0.2/TakeConsole
+--- xdm-1.1.12.org/xdm-xinitrc-0.2/TakeConsole 2000-10-29 19:59:44.000000000 +0000
++++ xdm-1.1.12/xdm-xinitrc-0.2/TakeConsole 2022-04-06 18:24:57.852216768 +0000
@@ -5,4 +5,4 @@
#
chmod 622 /dev/console
chown root /dev/console
-/usr/X11R6/bin/sessreg -d -x "/etc/X11/xdm/Xservers" -l $DISPLAY -h "" $USER
+/usr/bin/sessreg -d -x "/etc/X11/xdm/Xservers" -l $DISPLAY -h "" $USER
-
diff --git a/xorg-app-xdm-consolekit.patch b/xorg-app-xdm-consolekit.patch
index 885ac6f..ff566c3 100644
--- a/xorg-app-xdm-consolekit.patch
+++ b/xorg-app-xdm-consolekit.patch
@@ -8,11 +8,12 @@
Index: xdm-1.1.10/configure.ac
===================================================================
---- xdm-1.1.10.orig/configure.ac
-+++ xdm-1.1.10/configure.ac
-@@ -434,6 +434,20 @@ fi
-
- AM_CONDITIONAL(DYNAMIC_GREETER, test x$DYNAMIC_GREETER = xyes)
+diff -urNp -x '*.orig' xdm-1.1.12.org/configure.ac xdm-1.1.12/configure.ac
+--- xdm-1.1.12.org/configure.ac 2019-03-02 22:06:13.000000000 +0000
++++ xdm-1.1.12/configure.ac 2022-04-06 18:25:09.812244306 +0000
+@@ -429,6 +429,20 @@ AM_CONDITIONAL(HAS_XDM_AUTH, test x$xdma
+ AC_SUBST(XDM_CFLAGS)
+ AC_SUBST(XDM_LIBS)
+# ConsoleKit support
+AC_ARG_WITH(consolekit, AC_HELP_STRING([--with-consolekit], [Use ConsoleKit]),
@@ -29,10 +30,84 @@ Index: xdm-1.1.10/configure.ac
+dnl AM_CONDITIONAL(USE_CONSOLEKIT, test$USE_CONSOLEKIT = xyes)
+
#
- # XDM
+ # xdmshell
#
---- xdm-1.1.12/xdm/session.c.orig 2019-03-02 23:06:13.000000000 +0100
-+++ xdm-1.1.12/xdm/session.c 2019-03-05 18:55:19.964592706 +0100
+diff -urNp -x '*.orig' xdm-1.1.12.org/include/dm.h xdm-1.1.12/include/dm.h
+--- xdm-1.1.12.org/include/dm.h 2019-03-02 22:06:13.000000000 +0000
++++ xdm-1.1.12/include/dm.h 2022-04-06 18:25:09.813244308 +0000
+@@ -327,6 +327,9 @@ extern char *randomFile;
+ extern char *prngdSocket;
+ extern int prngdPort;
+ # endif
++#ifdef USE_CONSOLEKIT
++extern int use_consolekit;
++#endif
+
+ extern char *greeterLib;
+ extern char *willing;
+diff -urNp -x '*.orig' xdm-1.1.12.org/man/xdm.man xdm-1.1.12/man/xdm.man
+--- xdm-1.1.12.org/man/xdm.man 2019-03-02 22:06:13.000000000 +0000
++++ xdm-1.1.12/man/xdm.man 2022-04-06 18:25:09.813244308 +0000
+@@ -48,6 +48,8 @@ xdm \- X Display Manager with support fo
+ ] [
+ .B \-session
+ .I session_program
++] [
++.B \-noconsolekit
+ ]
+ .SH DESCRIPTION
+ .I Xdm
+@@ -215,6 +217,10 @@ indicates the program to run as the sess
+ .IP "\fB\-xrm\fP \fIresource_specification\fP"
+ Allows an arbitrary resource to be specified, as in most
+ X Toolkit applications.
++.IP "\fB\-noconsolekit\fP"
++Specifies ``false'' as the value for the \fBDisplayManager.consoleKit\fP
++resource.
++This suppresses the session management using ConsoleKit.
+ .SH RESOURCES
+ At many stages the actions of
+ .I xdm
+diff -urNp -x '*.orig' xdm-1.1.12.org/xdm/resource.c xdm-1.1.12/xdm/resource.c
+--- xdm-1.1.12.org/xdm/resource.c 2019-03-02 22:06:13.000000000 +0000
++++ xdm-1.1.12/xdm/resource.c 2022-04-06 18:25:09.813244308 +0000
+@@ -65,6 +65,9 @@ char *randomDevice;
+ char *prngdSocket;
+ int prngdPort;
+ #endif
++#ifdef USE_CONSOLEKIT
++int use_consolekit;
++#endif
+
+ char *greeterLib;
+ char *willing;
+@@ -192,6 +195,10 @@ struct dmResources {
+ "false"} ,
+ { "willing", "Willing", DM_STRING, &willing,
+ ""} ,
++#ifdef USE_CONSOLEKIT
++{ "consoleKit", "ConsoleKit", DM_BOOL, (char **) &use_consolekit,
++ "true"} ,
++#endif
+ };
+
+ #define NUM_DM_RESOURCES (sizeof DmResources / sizeof DmResources[0])
+@@ -377,7 +384,11 @@ XrmOptionDescRec optionTable [] = {
+ {"-debug", "*debugLevel", XrmoptionSepArg, (caddr_t) NULL },
+ {"-xrm", NULL, XrmoptionResArg, (caddr_t) NULL },
+ {"-daemon", ".daemonMode", XrmoptionNoArg, "true" },
+-{"-nodaemon", ".daemonMode", XrmoptionNoArg, "false" }
++{"-nodaemon", ".daemonMode", XrmoptionNoArg, "false" },
++#ifdef USE_CONSOLEKIT
++{"-consolekit", ".consoleKit", XrmoptionNoArg, "true" },
++{"-noconsolekit", ".consoleKit", XrmoptionNoArg, "false" }
++#endif
+ };
+
+ static int originalArgc;
+diff -urNp -x '*.orig' xdm-1.1.12.org/xdm/session.c xdm-1.1.12/xdm/session.c
+--- xdm-1.1.12.org/xdm/session.c 2019-03-02 22:06:13.000000000 +0000
++++ xdm-1.1.12/xdm/session.c 2022-04-06 18:25:09.812244306 +0000
@@ -73,6 +73,11 @@ extern int key_setnet(struct key_netstar
# endif
#endif /* USE_PAM */
@@ -163,73 +238,3 @@ Index: xdm-1.1.10/configure.ac
switch (pid = fork ()) {
case 0:
CleanUpChild ();
---- xdm-1.1.11.orig/include/dm.h
-+++ xdm-1.1.11/include/dm.h
-@@ -323,6 +323,9 @@ extern char *randomFile;
- extern char *prngdSocket;
- extern int prngdPort;
- # endif
-+#ifdef USE_CONSOLEKIT
-+extern int use_consolekit;
-+#endif
-
- extern char *greeterLib;
- extern char *willing;
---- xdm-1.1.11.orig/xdm/resource.c
-+++ xdm-1.1.11/xdm/resource.c
-@@ -65,6 +65,9 @@ char *randomDevice;
- char *prngdSocket;
- int prngdPort;
- #endif
-+#ifdef USE_CONSOLEKIT
-+int use_consolekit;
-+#endif
-
- char *greeterLib;
- char *willing;
-@@ -196,6 +199,10 @@ struct dmResources {
- "false"} ,
- { "willing", "Willing", DM_STRING, &willing,
- ""} ,
-+#ifdef USE_CONSOLEKIT
-+{ "consoleKit", "ConsoleKit", DM_BOOL, (char **) &use_consolekit,
-+ "true"} ,
-+#endif
- };
-
- #define NUM_DM_RESOURCES (sizeof DmResources / sizeof DmResources[0])
-@@ -378,7 +385,11 @@ XrmOptionDescRec optionTable [] = {
- {"-debug", "*debugLevel", XrmoptionSepArg, (caddr_t) NULL },
- {"-xrm", NULL, XrmoptionResArg, (caddr_t) NULL },
- {"-daemon", ".daemonMode", XrmoptionNoArg, "true" },
--{"-nodaemon", ".daemonMode", XrmoptionNoArg, "false" }
-+{"-nodaemon", ".daemonMode", XrmoptionNoArg, "false" },
-+#ifdef USE_CONSOLEKIT
-+{"-consolekit", ".consoleKit", XrmoptionNoArg, "true" },
-+{"-noconsolekit", ".consoleKit", XrmoptionNoArg, "false" }
-+#endif
- };
-
- static int originalArgc;
---- xdm-1.1.10.orig/man/xdm.man
-+++ xdm-1.1.10/man/xdm.man
-@@ -48,6 +48,8 @@ xdm \- X Display Manager with support fo
- ] [
- .B \-session
- .I session_program
-+] [
-+.B \-noconsolekit
- ]
- .SH DESCRIPTION
- .I Xdm
-@@ -215,6 +217,10 @@ indicates the program to run as the sess
- .IP "\fB\-xrm\fP \fIresource_specification\fP"
- Allows an arbitrary resource to be specified, as in most
- X Toolkit applications.
-+.IP "\fB\-noconsolekit\fP"
-+Specifies ``false'' as the value for the \fBDisplayManager.consoleKit\fP
-+resource.
-+This suppresses the session management using ConsoleKit.
- .SH RESOURCES
- At many stages the actions of
- .I xdm
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xorg-app-xdm.git/commitdiff/21d22656266ad8ddd1b17393d135fcb2b070c506
More information about the pld-cvs-commit
mailing list