Your message dated Fri, 25 Jul 2008 22:47:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#489030: fixed in consolekit 0.2.10-1
has caused the Debian Bug report #489030,
regarding consolekit: please backport ck-launch-session
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
489030: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489030
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: consolekit
Version: 0.2.3-3
Severity: wishlist
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu intrepid ubuntu-patch

Hi,

In later versions upstream has added a "ck-launch-session" command.
It would be great to backport this, as it is useful for testing, and
for people who want to get a consolekit session without something
that creates one for them (I believe kdm4 may have a patch applied
now, but didn't before.

Attached is the patch that is used to do this in Ubuntu. Please consider
applying it.

Note that you will need to create an automake patch after applying
this one. I didn't forward that part, as it's probably safer for you
to create it in the correct environment.

Thanks,

James

diff -pruN 0.2.3-3/debian/90-console-kit 0.2.3-3ubuntu5/debian/90-console-kit
--- 0.2.3-3/debian/90-console-kit	1970-01-01 01:00:00.000000000 +0100
+++ 0.2.3-3ubuntu5/debian/90-console-kit	2008-03-21 11:12:35.000000000 +0000
@@ -0,0 +1,11 @@
+# -*- sh -*-
+# Xsession.d script for ck-launch-session.
+#
+#
+# This file is sourced by Xsession(5), not executed.
+
+CK_LAUNCH_SESSION=/usr/bin/ck-launch-session
+
+if [ -z "$XDG_SESSION_COOKIE" ] && [ -x "$CK_LAUNCH_SESSION" ]; then
+    STARTUP="$CK_LAUNCH_SESSION $STARTUP"
+fi
diff -pruN 0.2.3-3/debian/consolekit.install 0.2.3-3ubuntu5/debian/consolekit.install
--- 0.2.3-3/debian/consolekit.install	2008-03-21 11:16:32.000000000 +0000
+++ 0.2.3-3ubuntu5/debian/consolekit.install	2008-03-21 11:12:35.000000000 +0000
@@ -1,8 +1,10 @@
 debian/tmp/etc/dbus-1/system.d/ConsoleKit.conf
 debian/tmp/etc/ConsoleKit/
 debian/tmp/usr/bin/ck-list-sessions
+debian/tmp/usr/bin/ck-launch-session
 debian/tmp/usr/lib/consolekit/ck-get-x11-server-pid
 debian/tmp/usr/lib/consolekit/ck-get-x11-display-device
 debian/tmp/usr/lib/consolekit/ck-collect-session-info
 debian/tmp/usr/sbin/console-kit-daemon
 debian/org.freedesktop.ConsoleKit.service usr/share/dbus-1/system-services/
+debian/90-console-kit /etc/X11/Xsession.d
diff -pruN 0.2.3-3/debian/patches/ck-launch-session.patch 0.2.3-3ubuntu5/debian/patches/ck-launch-session.patch
--- 0.2.3-3/debian/patches/ck-launch-session.patch	1970-01-01 01:00:00.000000000 +0100
+++ 0.2.3-3ubuntu5/debian/patches/ck-launch-session.patch	2008-03-21 11:12:35.000000000 +0000
@@ -0,0 +1,142 @@
+diff -Nur consolekit-0.2.3/tools/Makefile.am consolekit-0.2.3.new/tools/Makefile.am
+--- consolekit-0.2.3/tools/Makefile.am	2007-08-16 22:23:41.000000000 -0400
++++ consolekit-0.2.3.new/tools/Makefile.am	2008-03-12 18:59:38.000000000 -0400
+@@ -18,6 +18,7 @@
+ 	-I.							\
+ 	-I$(srcdir)						\
+ 	-I$(top_srcdir)/src					\
++	-I$(top_srcdir)/libck-connector				\
+ 	$(CONSOLE_KIT_CFLAGS)					\
+ 	$(DISABLE_DEPRECATED_CFLAGS)				\
+ 	-DPREFIX=\""$(prefix)"\" 				\
+@@ -32,9 +33,19 @@
+ 	$(NULL)
+ 
+ bin_PROGRAMS = \
++	ck-launch-session		\
+ 	ck-list-sessions		\
+ 	$(NULL)
+ 
++ck_launch_session_SOURCES =		\
++	ck-launch-session.c		\
++	$(NULL)
++
++ck_launch_session_LDADD =		\
++	$(top_builddir)/libck-connector/libck-connector.la	\
++	$(CONSOLE_KIT_LIBS)		\
++	$(NULL)
++
+ ck_list_sessions_SOURCES =		\
+ 	list-sessions.c			\
+ 	$(NULL)
+diff -Nur consolekit-0.2.3/Makefile.am consolekit-0.2.3.new/Makefile.am
+--- consolekit-0.2.3/Makefile.am	2007-07-10 10:15:45.000000000 -0400
++++ consolekit-0.2.3.new/Makefile.am	2008-03-12 18:59:38.000000000 -0400
+@@ -6,10 +6,10 @@
+ 
+ SUBDIRS =			\
+ 	src			\
++	libck-connector         \
+ 	tools			\
+ 	data			\
+ 	doc			\
+-	libck-connector         \
+ 	pam-ck-connector        \
+ 	$(NULL)
+ 
+diff -Nur consolekit-0.2.3/tools/ck-launch-session.c consolekit-0.2.3.new/tools/ck-launch-session.c
+--- consolekit-0.2.3/tools/ck-launch-session.c	1969-12-31 19:00:00.000000000 -0500
++++ consolekit-0.2.3.new/tools/ck-launch-session.c	2008-03-12 18:52:45.000000000 -0400
+@@ -0,0 +1,92 @@
++/*
++ * Copyright Red Hat, Inc. 2007-2008.
++ * All rights reserved.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions are met:
++ *
++ *  * Redistributions of source code must retain the above copyright
++ *    notice, this list of conditions and the following disclaimer.
++ *  * Redistributions in binary form must reproduce the above copyright
++ *    notice, this list of conditions and the following disclaimer in
++ *    the documentation and/or other materials provided with the
++ *    distribution.
++ *  * Neither the name of Red Hat, Inc., nor the names of its
++ *    contributors may be used to endorse or promote products derived
++ *    from this software without specific prior written permission.
++ *
++ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
++ * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
++ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
++ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
++ * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
++ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
++ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
++ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
++ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
++ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
++ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++ *
++ * Gate a process inside of a ConsoleKit session.
++ *
++ */
++
++#include <sys/types.h>
++#include <sys/wait.h>
++#ifdef HAVE_PATHS_H
++#include <paths.h>
++#else
++#define _PATH_BSHELL "/bin/sh"
++#endif
++
++#include <stdlib.h>
++#include <syslog.h>
++#include <unistd.h>
++
++#include "ck-connector.h"
++
++int
++main (int argc, char **argv)
++{
++        CkConnector *ckc = NULL;
++        DBusError    error;
++        const char  *shell;
++        pid_t        pid;
++        int          status;
++
++        ckc = ck_connector_new ();
++        if (ckc != NULL) {
++                dbus_error_init (&error);
++                if (ck_connector_open_session (ckc, &error)) {
++                        pid = fork ();
++                        switch (pid) {
++                        case -1:
++                                syslog (LOG_ERR, "error forking child");
++                                break;
++                        case 0:
++                                setenv ("XDG_SESSION_COOKIE",
++                                       ck_connector_get_cookie (ckc), 1);
++                                break;
++                        default:
++                                waitpid (pid, &status, 0);
++                                exit (status);
++                                break;
++                        }
++                } else {
++                        syslog (LOG_ERR, "error connecting to ConsoleKit");
++                }
++        } else {
++                syslog (LOG_ERR, "error setting up to connection to ConsoleKit");
++        }
++
++        if (argc > 1) {
++                execvp (argv[1], argv + 1);
++        } else {
++                shell = getenv ("SHELL");
++                if (shell == NULL) {
++                        shell = _PATH_BSHELL;
++                }
++                execlp (shell, shell, NULL);
++        }
++        _exit (1);
++}
diff -pruN 0.2.3-3/debian/rules 0.2.3-3ubuntu5/debian/rules
--- 0.2.3-3/debian/rules	2008-03-21 11:16:32.000000000 +0000
+++ 0.2.3-3ubuntu5/debian/rules	2008-03-21 11:12:35.000000000 +0000
@@ -3,6 +3,7 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/rules/utils.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
 DEB_CONFIGURE_EXTRA_FLAGS := --enable-pam-module \
                              --enable-docbook-docs \

--- End Message ---
--- Begin Message ---
Source: consolekit
Source-Version: 0.2.10-1

We believe that the bug you reported is fixed in the latest version of
consolekit, which is due to be installed in the Debian FTP archive:

consolekit_0.2.10-1.diff.gz
  to pool/main/c/consolekit/consolekit_0.2.10-1.diff.gz
consolekit_0.2.10-1.dsc
  to pool/main/c/consolekit/consolekit_0.2.10-1.dsc
consolekit_0.2.10-1_i386.deb
  to pool/main/c/consolekit/consolekit_0.2.10-1_i386.deb
consolekit_0.2.10.orig.tar.gz
  to pool/main/c/consolekit/consolekit_0.2.10.orig.tar.gz
libck-connector-dev_0.2.10-1_i386.deb
  to pool/main/c/consolekit/libck-connector-dev_0.2.10-1_i386.deb
libck-connector0_0.2.10-1_i386.deb
  to pool/main/c/consolekit/libck-connector0_0.2.10-1_i386.deb
libpam-ck-connector_0.2.10-1_i386.deb
  to pool/main/c/consolekit/libpam-ck-connector_0.2.10-1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Biebl <[EMAIL PROTECTED]> (supplier of updated consolekit package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 26 Jul 2008 00:29:46 +0200
Source: consolekit
Binary: consolekit libck-connector0 libck-connector-dev libpam-ck-connector
Architecture: source i386
Version: 0.2.10-1
Distribution: unstable
Urgency: low
Maintainer: Utopia Maintenance Team <[EMAIL PROTECTED]>
Changed-By: Michael Biebl <[EMAIL PROTECTED]>
Description: 
 consolekit - framework for defining and tracking users, sessions and seats
 libck-connector-dev - ConsoleKit development files
 libck-connector0 - ConsoleKit libraries
 libpam-ck-connector - ConsoleKit PAM module
Closes: 422349 452627 464005 489030
Changes: 
 consolekit (0.2.10-1) unstable; urgency=low
 .
   * New upstream release. (Closes: #464005, #489030)
   * debian/control
     - Add Build-Depends on pkg-config.
     - Add Build-Depends on zlib1g-dev.
     - Add Build-Depends on quilt.
     - Bump Standards-Version to 3.8.0. No further changes.
   * debian/org.freedesktop.ConsoleKit.service
     - Removed, merged upstream.
   * debian/libck-connector0.symbols
     - Add symbols file for libck-connector library.
   * consolekit.install
     - Install all binaries in /usr/bin and /usr/sbin instead of listing them
       individually.
     - Update the list of installed directories.
     - Install 90consolekit into /etc/X11/Xsession.d.
   * debian/pam-foreground-compat.ck
     - Add run-session.d script which creates pam_console compatible tag files.
       Script shamelessly taken from Ubuntu. (Closes: #422349)
   * debian/rules
     - Install pam-foreground-compat.ck into /usr/lib/ConsoleKit/run-session.d.
     - Include patchsys-quilt.mk for patch management.
   * debian/90consolekit
     - Xsession ConsoleKit integration. Script is taken from Ubuntu but renamed
       to better fit with the existing naming conventions for Xsession scripts.
       (Closes: #452627)
   * debian/patches/01-dbus_policy.patch
     - Allow only root to call the Restart and Stop D-Bus methods since we are
       not using PolicyKit to restrict the access to those methods.
   * debian/patches/02-exit_with_dbus.patch
     - Pulled from upstream git. Exit when D-Bus system bus is stopped.
   * debian/patches/03-cleanup_console_tags.patch
     - Cleanup console tag files on application startup and shutdown.
Checksums-Sha1: 
 03f2c9fdb01cf138ee718824800b38616bfb63f6 1484 consolekit_0.2.10-1.dsc
 ac4107f2239b072156f4a815609ea1c6fbb5f6cf 521473 consolekit_0.2.10.orig.tar.gz
 46a21720ee45f5b12b54c84951795ffc0c447c04 6806 consolekit_0.2.10-1.diff.gz
 26ca550de1e797ebb0d550b124bcb6456459f7ce 125394 consolekit_0.2.10-1_i386.deb
 13e9bd675e38ddd8865b5dbc406183401bb5f09b 40736 
libck-connector0_0.2.10-1_i386.deb
 0f8e0245ed06925031f4bdc61680a60a653eb0d3 48102 
libck-connector-dev_0.2.10-1_i386.deb
 38cdd452289be5dea0ecbe0cea2fa4555a04fc01 40990 
libpam-ck-connector_0.2.10-1_i386.deb
Checksums-Sha256: 
 e51b941750bede6f9f3de46b017d1f1c0db5bf2aba812288d36536277818c4a4 1484 
consolekit_0.2.10-1.dsc
 02b9510f65256db33a5e079736bb7234cd5599bf02dc77399d81d50cf5183bcb 521473 
consolekit_0.2.10.orig.tar.gz
 ae975d3b9c109a8d7964868fe716651daf7aec6c9ed7630255282adab9e81586 6806 
consolekit_0.2.10-1.diff.gz
 6e4dc374fe19a77c821a756814b7b03500c8eaa6ef243e9dd8e00ac07354115b 125394 
consolekit_0.2.10-1_i386.deb
 c1e8fb2d1e3d213972bd0b10a3faf948ec427236b77929efe40f642e0c498939 40736 
libck-connector0_0.2.10-1_i386.deb
 a5705a70c56c270b67c01441f80e2631bbdc259ae48a8b65347725f26e44f210 48102 
libck-connector-dev_0.2.10-1_i386.deb
 eda7132e5434b7ea9dbb9e3c46510e504f9735b3c39303602a5bc817c2ea1050 40990 
libpam-ck-connector_0.2.10-1_i386.deb
Files: 
 4683cedd9430aef9896338956fb36c78 1484 admin optional consolekit_0.2.10-1.dsc
 b85c2333a8fe31c0d3f29caa14716634 521473 admin optional 
consolekit_0.2.10.orig.tar.gz
 5189969d8f7d2a2f0e8bcbaace98947d 6806 admin optional 
consolekit_0.2.10-1.diff.gz
 69a639f4e118385225ce207b0814f149 125394 admin optional 
consolekit_0.2.10-1_i386.deb
 c9dc89b6e818a6d4fcf3a5f066b5dedf 40736 libs optional 
libck-connector0_0.2.10-1_i386.deb
 0a15de4d792c7ef8716ef6796ed8ee17 48102 libdevel optional 
libck-connector-dev_0.2.10-1_i386.deb
 406272e6dbdf08029f976bc92af17569 40990 admin optional 
libpam-ck-connector_0.2.10-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkiKVpsACgkQh7PER70FhVTvDwCgyqm2yqG7hvJWvgB0CpF6+yXr
eykAmweIfwYxcq9ko8rEYVwPf0VauNte
=0t5I
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to