[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#456628: compiz: fails to start when POSIXLY_CORRECT is set



Package: compiz
Version: 0.6.3~git20071208.25941d14-1
Severity: important
Tags: patch

When POSIXLY_CORRECT is set, compiz fails to start:

lakeview ok % Checking for Xgl: not present. Detected PCI ID for VGA: 00:02.0 0300: 8086:27a2 (rev 03) (prog-if 00 [VGA])
Checking for texture_from_pixmap: grep: -c: No such file or directory
/usr/bin/compiz: line 153: [: -gt: unary operator expected
not present. Trying again with indirect rendering:
Checking for texture_from_pixmap: grep: -c: No such file or directory
/usr/bin/compiz: line 153: [: -gt: unary operator expected
not present. aborting and using fallback: /usr/bin/metacity metacity: Unknown option --fast-filter

This is because under POSIX, the first non-option argument terminates
option processing, and so the grep invocation produces no valid output
(since -c comes at the end).  A patch is attached to reorder the
arguments to grep so that it works even in this case.

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

Kernel: Linux 2.6.24-rc5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages compiz depends on:
ii  compiz-core 0.6.3~git20071208.25941d14-1 OpenGL window and compositing mana
ii  compiz-gnom 0.6.3~git20071208.25941d14-1 OpenGL window and compositing mana
ii  compiz-gtk  0.6.3~git20071208.25941d14-1 OpenGL window and compositing mana
ii  compiz-plug 0.6.3~git20071208.25941d14-1 OpenGL window and compositing mana

compiz recommends no packages.

-- no debconf information

--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
a typesetting engine: http://crustytoothpaste.ath.cx/~bmc/code/thwack
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
--- compiz.old	2007-12-17 03:53:16.000000000 +0000
+++ compiz	2007-12-17 03:53:33.000000000 +0000
@@ -150,7 +150,7 @@
 check_tfp()
 {
 	verbose "Checking for texture_from_pixmap: "
-	if [ $($GLXINFO 2>/dev/null | grep GLX_EXT_texture_from_pixmap -c) -gt 2 ] ; then
+	if [ $($GLXINFO 2>/dev/null | grep -c GLX_EXT_texture_from_pixmap) -gt 2 ] ; then
 		verbose "present. \n"
 		return 0;
 	else

Attachment: signature.asc
Description: Digital signature


Reply to: