Package: wmctrl
Version: 1.07-5
Severity: important
Tags: patch

This might also reopen  #344080: wmctrl: -d option is broken on amd64

>From the following mail archive with subject "Re: 64 bit implementation"

See:
http://mail.gnome.org/archives/wm-spec-list/2003-March/msg00067.html

In partilar the section:

When the X window system was ported to 64-bit architectures, a rather
peculiar design decision was made. 32-bit quantities such as Window
IDs, atoms, etc, were kept as longs in the client side APIs, even
when long was changed to 64 bits.

So all 32-bit returns are of 64 bits in size. I believe this would
render recasting as CARD32 useless on big-endian machines. 

The patch applied to main.c file needs to be undone and I have supplied
a patch that works for me (tested on x86_64 and x86). The notes I also
decribed above are in the patch :)

Thanks


Chris Donoghue



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-amd64
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages wmctrl depends on:
ii  libc6                     2.3.6-5        GNU C Library: Shared libraries an
ii  libglib2.0-0              2.10.1-2       The GLib library of C routines
ii  libice6                   6.9.0.dfsg.1-6 Inter-Client Exchange library
ii  libsm6                    6.9.0.dfsg.1-6 X Window System Session Management
ii  libx11-6                  6.9.0.dfsg.1-6 X Window System protocol client li
ii  libxmu6                   6.9.0.dfsg.1-6 X Window System miscellaneous util

wmctrl recommends no packages.

-- debconf-show failed

Attachment: main.patch.gz
Description: Binary data

Reply via email to