Bug#493963: xserver-xephyr: Allow starting Xephyr at other than 0,0 location

2008-08-06 Thread Loic Grenie
Package: xserver-xephyr
Version: 2:1.4.2-2
Severity: wishlist
Tags: patch

Background:
I'd like to use Xephyr to have a multiseat setup. My graphic card has
two displays and I don't know how to do differently than having one
large screen encompassing both monitors (ideally I'd have :0.0 on
first monitor and :0.1 on the second, but hey, I'm not capable). I
start Xephyr to have two X servers.

Problem:
I'd like to start one Xephyr on first monitor and one Xephyr on
second monitor. Without window manager it's a bit tricky.

Workaround:
I can use an X client that honor the -geometry option and use
the ``-parent'' option of Xephyr. It's realy ugly (but it works).

Better approach:
There is a ``-origin'' option of Xephyr that is used in PanoramiX
mode but is ignored in non-PanoramiX mode. The following patch
sets the upper-left corner of the Xephyr window to the coordinates
specified as origin if PanoramiX is not activated.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25.13 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xserver-xephyr depends on:
ii  libc6 2.7-10 GNU C Library: Shared libraries
ii  libdbus-1-3   1.2.1-2simple interprocess messaging syst
ii  libfontenc1   1:1.0.4-3  X11 font encoding library
ii  libhal1   0.5.11-2   Hardware Abstraction Layer - share
ii  libpixman-1-0 0.10.0-2   pixel-manipulation library for X a
ii  libx11-6  2:1.1.4-2  X11 client-side library
ii  libxau6   1:1.0.3-3  X11 authorisation library
ii  libxdmcp6 1:1.0.2-3  X11 Display Manager Control Protoc
ii  libxext6  2:1.0.4-1  X11 miscellaneous extension librar
ii  libxfont1 1:1.3.3-1  X11 font rasterisation library
ii  x11-common1:7.3+14   X Window System (X.Org) infrastruc

Versions of packages xserver-xephyr recommends:
ii  xbase-clients 1:7.3+14   miscellaneous X clients - metapack
ii  xfonts-base   1:1.0.0-5  standard fonts for X

xserver-xephyr suggests no packages.

-- no debconf information
diff -u hw/kdrive/ephyr.orig/ephyr.c hw/kdrive/ephyr/ephyr.c
--- hw/kdrive/ephyr.orig/ephyr.c	2008-05-12 18:53:59.0 +0200
+++ hw/kdrive/ephyr/ephyr.c	2008-08-05 12:31:50.0 +0200
@@ -227,7 +227,7 @@
   else
 buffer_height = 3 * screen->height;
   
-  priv->base = hostx_screen_init (screen->width, screen->height, buffer_height);
+  priv->base = hostx_screen_init (screen->origin.x, screen->origin.y, screen->width, screen->height, buffer_height);
 
   screen->memory_base  = (CARD8 *) (priv->base);
   screen->memory_size  = priv->bytes_per_line * buffer_height;
diff -u hw/kdrive/ephyr.orig/hostx.c hw/kdrive/ephyr/hostx.c
--- hw/kdrive/ephyr.orig/hostx.c	2008-05-12 18:53:59.0 +0200
+++ hw/kdrive/ephyr/hostx.c	2008-08-05 22:23:35.0 +0200
@@ -445,7 +445,7 @@
  * by fakexa for storing offscreen pixmap data.
  */
 void*
-hostx_screen_init (int width, int height, int buffer_height)
+hostx_screen_init (int x, int y, int width, int height, int buffer_height)
 {
   int bitmap_pad;
   Boolshm_success = False;
@@ -533,6 +533,9 @@
   XSetWMNormalHints(HostX.dpy, HostX.win, size_hints);
   XFree(size_hints);
 
+#ifndef PANORAMIX
+  XMoveWindow(HostX.dpy, HostX.win, x, y);
+#endif
   XMapWindow(HostX.dpy, HostX.win);
 
   XSync(HostX.dpy, False);
diff -u hw/kdrive/ephyr.orig/hostx.h hw/kdrive/ephyr/hostx.h
--- hw/kdrive/ephyr.orig/hostx.h	2008-05-12 18:53:59.0 +0200
+++ hw/kdrive/ephyr/hostx.h	2008-08-05 12:26:56.0 +0200
@@ -147,7 +147,7 @@
 		 unsigned char b);
 
 void*
-hostx_screen_init (int width, int height, int buffer_height);
+hostx_screen_init (int x, int y, int width, int height, int buffer_height);
 
 void
 hostx_paint_rect(int sx,int sy,


Bug#492957: xulrunner-1.9-gnome-support: libmozgnome induces problem with plugin

2008-07-30 Thread Loic Grenie
Package: xulrunner-1.9-gnome-support
Version: 1.9.0.1-1
Severity: normal

I have observed the problem with both Debian and Ubuntu. When visiting
http://web.mate.polimi.it/viste/studenti/pagina_docente5.php?id=171&id_insegnamento=329
clicking any PDF leads to a dialog that offers only to "save" file. When
I disable libmozgnome.so (with
sudo chmod 0 /usr/lib/xulrunner-1.9/libmozgnome.so
) I get the (expected) dialog offering either to save the or to view it
using my favorite application for PDF.

This is a problem I did not have time to report earlier but that
appeared with FF3.0.

Thanks,

Loïc Grenié

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25.11 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xulrunner-1.9-gnome-support depends on:
ii  libc6 2.7-10 GNU C Library: Shared libraries
ii  libdbus-1-3   1.2.1-2simple interprocess messaging syst
ii  libdbus-glib-1-2  0.76-1 simple interprocess messaging syst
ii  libgconf2-4   2.22.0-1   GNOME configuration database syste
ii  libglib2.0-0  2.16.4-2   The GLib library of C routines
ii  libgnome2-0   2.20.1.1-1 The GNOME 2 library - runtime file
ii  libgnomevfs2-01:2.22.0-4 GNOME Virtual File System (runtime
ii  libnspr4-0d   4.7.1-3NetScape Portable Runtime Library
ii  libstdc++64.3.1-2The GNU Standard C++ Library v3
ii  xulrunner-1.9 1.9.0.1-1  XUL + XPCOM application runner

xulrunner-1.9-gnome-support recommends no packages.

xulrunner-1.9-gnome-support suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#492035: libmagic1: Screen font version 2 not recognized

2008-07-23 Thread Loic Grenie
Package: file
Version: 4.24-4
Severity: normal

file does not recognize PSF (PC Screen Font) v2 file format. See for
instance
http://www.win.tue.nl/~aeb/linux/kbd/font-formats-1.html
for information.


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25.11 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libmagic1 depends on:
ii  libc6  2.7-10GNU C Library: Shared libraries
ii  zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

libmagic1 recommends no packages.

Versions of packages file depends on:
ii  libc6  2.7-10GNU C Library: Shared libraries
ii  zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#491149: initramfs-tools: panic() won't print error message

2008-07-17 Thread Loic Grenie
Package: initramfs-tools
Version: 0.92e
Severity: normal
Tags: patch

If the panic() function is invoked it should print a message
but it does not because stdout is not connected to the
console.

The fix is easy: just add a "> /dev/console" to the echo command.

I attach a patch, but it's probably easier to fix by hand.
Consider changing echo $@ > /dev/console to echo "$@" > /dev/console
(I don't know if it's a good idea, but it looks better; if you don't
want to protect $@ for whatever reason, $* would be philosophically
better).

Thanks,

   Loïc Grenié

-- Package-specific info:
-- /proc/cmdline
auto BOOT_IMAGE=Linux23 ro root=806 resume=/dev/sda8 mem=4G quiet splash

-- /proc/filesystems
ext3
cramfs
iso9660
fuseblk

-- lsmod
Module  Size  Used by
radeon138384  2 
drm   175952  3 radeon
video  21972  0 
output  4736  1 video
fan 6152  0 
cpufreq_userspace   4972  0 
cpufreq_stats   6112  0 
nfs   261208  0 
lockd  68816  1 nfs
nfs_acl 4160  1 nfs
sunrpc184232  4 nfs,lockd,nfs_acl
af_packet  24204  2 
ipv6  272296  28 
fuse   48688  1 
eeprom  8720  0 
kvm_amd29452  0 
kvm   139200  1 kvm_amd
snd_hda_intel 330212  1 
snd_pcm_oss44320  0 
snd_mixer_oss  17280  1 snd_pcm_oss
snd_pcm85640  2 snd_hda_intel,snd_pcm_oss
snd_timer  24712  1 snd_pcm
snd61752  7 
snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
sdhci  19084  0 
ehci_hcd   34380  0 
ohci_hcd   22404  0 
soundcore   9104  1 snd
mmc_core   32648  1 sdhci
snd_page_alloc 11344  2 snd_hda_intel,snd_pcm
thermal18272  0 
usbcore   151408  3 ehci_hcd,ohci_hcd

-- /etc/kernel-img.conf
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no

-- /etc/initramfs-tools/initramfs.conf
MODULES=dep
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto

-- /sys/block
hda
loop0
loop1
loop2
loop3
loop4
loop5
loop6
loop7
ram0
ram1
ram10
ram11
ram12
ram13
ram14
ram15
ram2
ram3
ram4
ram5
ram6
ram7
ram8
ram9
sda


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23.14 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages initramfs-tools depends on:
ii  cpio  2.9-13 GNU cpio -- a program to manage ar
ii  findutils 4.4.0-2utilities for finding files--find,
ii  klibc-utils   1.5.11-3   small utilities built with klibc f
ii  module-init-tools 3.4-1  tools for managing Linux kernel mo
ii  udev  0.114-2/dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii  busybox   1:1.9.2-3  Tiny utilities for small and embed

-- no debconf information
diff -ur scripts.orig/functions scripts/functions
--- scripts.orig/functions  2008-07-05 02:09:51.0 +0200
+++ scripts/functions   2008-07-17 10:28:35.191804081 +0200
@@ -49,7 +49,7 @@
fi
modprobe i8042
modprobe atkbd
-   echo $@
+   echo $@ > /dev/console
PS1='(initramfs) ' /bin/sh -i /dev/console 2>&1
 }
 


Bug#489755: mozplugger: Fails to swallow on amd64

2008-07-07 Thread Loic Grenie
Package: mozplugger
Version: 1.10.2-1
Severity: important
Tags: patch

I found that, since roughly two month ago, mozplugger would
not swallow windows anymore. The following patch makes it
swallow them again. I've not checked the X11 manuals to check
that the patch is correct (looks ok on the surface, but
everything depends on the fact that only the lower 32 bit
of each property "long" is set).

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23.14 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mozplugger depends on:
ii  epiphany-browser 2.22.1.1-1  Intuitive web browser - dummy pack
ii  iceweasel2.0.0.14-2  lightweight web browser based on M
ii  konqueror4:3.5.9.dfsg.1-2+b1 KDE's advanced file manager, web b
ii  libc62.7-10  GNU C Library: Shared libraries
ii  libx11-6 2:1.1.4-2   X11 client-side library
ii  m4   1.4.11-1a macro processing language

mozplugger recommends no packages.

-- no debconf information
diff -ru mozplugger-1.10.2-orig/mozplugger-helper.c 
mozplugger-1.10.2/mozplugger-helper.c
--- mozplugger-1.10.2-orig/mozplugger-helper.c  2008-03-22 22:44:52.0 
+0100
+++ mozplugger-1.10.2/mozplugger-helper.c   2008-07-07 17:07:09.0 
+0200
@@ -306,8 +306,8 @@
"%ld,%d,%lu,%lu\n", (long) type, fmt, 
nitems, 
bytes);
   }
-  else if( ( ((unsigned long *)property)[1] == ourPid)
-  && ( ((unsigned long *)property)[0] == ourHostId) )
+  else if( ( (uint32)((unsigned long *)property)[1] == ourPid)
+  && ( (uint32)((unsigned long *)property)[0] == ourHostId) )
   {
gotIt = 1;
   }


Bug#428797: xscreensaver: Similar problem, cause found, hacky fix proposed

2007-11-02 Thread Loic Grenie
Package: xscreensaver
Version: 5.03-2
Followup-For: Bug #428797


I have also an xscreensaver showing hacks only on part of the
screen. The cause is the following: when xscreensaver looks for the
Xinerama screen, it does not check whether the screen is on or off.
It should check for that information using RandR when available. It
is too difficult for me. I propose the following hack to solve the
problem, even though I know that this is not the best. I think it
should not break anything and it is rather clear that it is not the
best possible fix. Anyway.

8<---8<---8<---8<---8<
diff -c xscreensaver-5.03/driver/windows.c 
xscreensaver-5.03-perso/driver/windows.c
*** xscreensaver-5.03/driver/windows.c  Mon Apr  2 00:02:31 2007
--- xscreensaver-5.03-perso/driver/windows.cFri Nov  2 16:27:30 2007
***
*** 1044,1060 
  {
target_x = ssi->x;
target_y = ssi->y;
  }
  
/* Find the Xinerama rectangle that contains the mouse position. */
!   for (i = 0; i < si->nscreens; i++)
! {
!   if (target_x >= si->screens[i].x &&
!   target_y >= si->screens[i].y &&
!   target_x <  si->screens[i].x + si->screens[i].width &&
!   target_y <  si->screens[i].y + si->screens[i].height)
! which = i;
! }
if (which == -1) which = 0;  /* didn't find it?  Use the first. */
*x_ret = si->screens[which].x;
*y_ret = si->screens[which].y;
--- 1044,1070 
  {
target_x = ssi->x;
target_y = ssi->y;
+ /* Look if a screen is exactly our ssi */
+ for (i = 0; i < si->nscreens; i++)
+   {
+ if (target_x == si->screens[i].x &&
+ target_y == si->screens[i].y &&
+ w == si->screens[i].width &&
+ h == si->screens[i].height)
+   which = i;
+   }
  }
  
/* Find the Xinerama rectangle that contains the mouse position. */
!   if (which == -1)
! for (i = 0; i < si->nscreens; i++)
!   {
! if (target_x >= si->screens[i].x &&
! target_y >= si->screens[i].y &&
! target_x <  si->screens[i].x + si->screens[i].width &&
! target_y <  si->screens[i].y + si->screens[i].height)
!   which = i;
!   }
if (which == -1) which = 0;  /* didn't find it?  Use the first. */
*x_ret = si->screens[which].x;
*y_ret = si->screens[which].y;
8<---8<---8<---8<---8<

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22.1 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xscreensaver depends on:
ii  libatk1.0-01.20.0-1  The ATK accessibility toolkit
ii  libc6  2.6.1-1   GNU C Library: Shared libraries
ii  libcairo2  1.4.10-1+b2   The Cairo 2D vector graphics libra
ii  libfontconfig1 2.4.2-1.2 generic font configuration library
ii  libglade2-01:2.6.2-1 library to load .glade files at ru
ii  libglib2.0-0   2.14.1-5  The GLib library of C routines
ii  libgtk2.0-02.10.13-1 The GTK+ graphical user interface 
ii  libice62:1.0.4-1 X11 Inter-Client Exchange library
ii  libjpeg62  6b-14 The Independent JPEG Group's JPEG 
ii  libpam0g   0.99.7.1-5Pluggable Authentication Modules l
ii  libpango1.0-0  1.18.2-1  Layout and rendering of internatio
ii  libsm6 2:1.0.3-1+b1  X11 Session Management library
ii  libx11-6   2:1.0.3-7 X11 client-side library
ii  libxcursor11:1.1.9-1 X cursor management library
ii  libxext6   1:1.0.3-2 X11 miscellaneous extension librar
ii  libxfixes3 1:4.0.3-2 X11 miscellaneous 'fixes' extensio
ii  libxi6 2:1.1.3-1 X11 Input extension library
ii  libxinerama1   1:1.0.2-1 X11 Xinerama extension library
ii  libxml22.6.30.dfsg-2 GNOME XML library
ii  libxmu61:1.0.3-1 X11 miscellaneous utility library
ii  libxpm41:3.5.7-1 X11 pixmap library
ii  libxrandr2 2:1.2.2-1 X11 RandR extension library
ii  libxrender11:0.9.4-1 X Rendering Extension client libra
ii  libxt6 1:1.0.5-3 X11 toolkit intrinsics library
ii  libxxf86misc1  1:1.0.1-2 X11 XFree86 miscellaneous extensio
ii  libxxf86vm11:1.0.1-2 X11 XFree86 video mode extension l
ii  netpbm 2:10.0-11 

Bug#432175: Non existent usplash-artwork.so

2007-07-07 Thread Loic Grenie
Package: usplash
Version: 0.4-43-1
Severity: normal


 I've tried to install usplash + usplash-debian-theme packages and
  they would not configure because usplash-artwork.so did not exist.

update-alternatives --install /usr/lib/usplash/usplash-artwork.so 
usplash-artwork.so /usr/lib/usplash/debian-theme.so 55  

  solved the problem.


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.21 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages usplash depends on:
ii  debconf [debconf-2.0] 1.5.13 Debian configuration management sy
ii  initramfs-tools   0.88   tools for generating an initramfs
ii  libc6 2.5-9  GNU C Library: Shared libraries
ii  libusplash0   0.4-43-1   userspace bootsplash library

usplash recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#427616: xfig: Screen organisation is messed up when resizing

2007-06-05 Thread Loic Grenie
Package: xfig
Version: 1:3.2.5-rel-1
Severity: normal

My screen is relatively small WRT to current standards: 1280x800 pixels
xfig starts with Drawing Mode and Editing Mode Panels with 3 columns of
buttons.
When I resize the window vertically, the canvas gets too wide and the
right side of the window disappears gradually.
It looks as if this is somehow related to the "show window while resizing"
option of the window manager (if I resize in one fast move, the problem
does not appear). Images are available at

http://picasaweb.google.com/loic.grenie/XfigProblems

(note that in the 3rd image there are visual artifacts at the top which
are due to the fact that the window is too high for the screen, thus the
topmost part is out of the visible area and the backing store does not
exist => screen capture is wrong; those artifacts should not be
considered) and make clear what happens at the right part of the window.

I've not found any way to take the right part of the window back in the
visible part of the world.


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.21 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xfig depends on:
ii  libc6 2.5-9  GNU C Library: Shared libraries
ii  libjpeg62 6b-13  The Independent JPEG Group's JPEG 
ii  libpng12-01.2.15~beta5-2 PNG library - runtime
ii  libx11-6  2:1.0.3-7  X11 client-side library
ii  libxi61:1.0.1-4  X11 Input extension library
ii  libxpm4   1:3.5.6-3  X11 pixmap library
ii  libxt61:1.0.5-3  X11 toolkit intrinsics library
ii  xaw3dg1.5+E-14   Xaw3d widget set

Versions of packages xfig recommends:
ii  transfig1:3.2.5-alpha7-5 Utilities for converting XFig figu
ii  xfig-libs   1:3.2.5-rel-1XFig image libraries and examples

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#411821: Upgrade to kicad 0.0.20060829-2 in etch

2007-02-21 Thread Loic Grenie

Package: kicad
Version: 0.0.20060829-1

   Would it be possible to upgrade (update ?) the version of kicad to
  0.0.20060829-2 in Etch ?

 Thanks,

Loïc Grenié


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]