Bug#362224: libgksu1.2-0: looking for xauth in the wrong folder

Michael Rasmussen mir at datanom.net
Wed Apr 12 21:08:27 UTC 2006


Package: libgksu1.2-0
Version: 1.3.7-1
Severity: grave
Tags: patch
Justification: renders package unusable

After xorg is upgraded in Debian Sid to 7.0 gksu no longer works because
it looks in a wrong folder for xauth. See debug output below

$gksu -d /usr/bin/x-terminal-emulator
try_su_run: buf: -Password:
sh: /usr/X11R6/bin/xauth: No such file or directory
xauth: --
display: -:0.0-
gksu_context_run: buf: -Password: -
DEBUG (run:after-pass) buf: -Password: -
DEBUG (run:post-after-pass) buf: -gksu: waiting
-
DEBUG (gksu: waiting) buf: -gksu: waiting
-
sh: /usr/X11R6/bin/xauth: No such file or directory
xauth: --
display: -:0.0-
gksu_context_run: buf: -Password: -
DEBUG (run:after-pass) buf: -Password: -

# Patch to solve bug below

diff -ur libgksu1.2-1.3.7/libgksu/gksu-context.c
libgksu1.2-1.3.8/libgksu/gksu-context.c
--- libgksu1.2-1.3.7/libgksu/gksu-context.c     2005-11-18
01:18:02.000000000 +0100
+++ libgksu1.2-1.3.8/libgksu/gksu-context.c     2006-04-12
22:46:18.000000000 +0200
@@ -464,7 +464,7 @@
g_strfreev (tmpv);

/* get the authorization token */
-  tmp = g_strdup_printf ("/usr/X11R6/bin/xauth list %s | "
+  tmp = g_strdup_printf ("/usr/bin/xauth list %s | "
                         "head -1 | awk '{ print $3 }'",
                         context->display);
   if ((xauth_output = popen (tmp, "r")) == NULL)
diff -ur libgksu1.2-1.3.7/libgksu/gksu-run-helper.c libgksu1.2-1.3.8/libgksu/gksu-run-helper.c
--- libgksu1.2-1.3.7/libgksu/gksu-run-helper.c  2005-08-03 04:28:40.000000000 +0200
+++ libgksu1.2-1.3.8/libgksu/gksu-run-helper.c  2006-04-12 22:43:22.000000000 +0200
@@ -129,7 +129,7 @@
     setenv ("XAUTHORITY", xauth_file, TRUE);

     command =
-      g_strdup_printf ("/usr/X11R6/bin/xauth add %s . \"`cat %s.tmp`\""
+      g_strdup_printf ("/usr/bin/xauth add %s . \"`cat %s.tmp`\""
                       " > /dev/null 2>&1", xauth_display, xauth_file);

     system (command);
		 
-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=da_DK, LC_CTYPE=da_DK (charmap=ISO-8859-1)

Versions of packages libgksu1.2-0 depends on:
ii  libc6                         2.3.6-6    GNU C Library: Shared libraries
ii  libglib2.0-0                  2.10.2-1   The GLib library of C routines
ii  xbase-clients                 1:7.0.0-2  miscellaneous X clients

Versions of packages libgksu1.2-0 recommends:
ii  sudo                          1.6.8p12-3 Provide limited super user privile

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgksu1.2-1.3.7.patch
Type: text/x-c
Size: 1123 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20060412/982d28f4/libgksu1.2-1.3.7.bin


More information about the Pkg-gnome-maintainers mailing list