public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in x11-wm/xpra/files: xpra-0.9.5-opengl-auto.patch
@ 2013-06-24 15:41 Michael Weber (xmw)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Weber (xmw) @ 2013-06-24 15:41 UTC (permalink / raw
  To: gentoo-commits

xmw         13/06/24 15:41:20

  Added:                xpra-0.9.5-opengl-auto.patch
  Log:
  Revbump to add IUSE=opengl (bug 470274, thanks Oliver Freyermuth). Make opengl default to auto and improve --help output. Replace configuration patches with setup.py --with/--without syntax. IUSE=sound adopted from upstream, but untested.
  
  (Portage version: 2.2.0_alpha184/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

Revision  Changes    Path
1.1                  x11-wm/xpra/files/xpra-0.9.5-opengl-auto.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xpra/files/xpra-0.9.5-opengl-auto.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xpra/files/xpra-0.9.5-opengl-auto.patch?rev=1.1&content-type=text/plain

Index: xpra-0.9.5-opengl-auto.patch
===================================================================
--- xpra-0.9.5/xpra/scripts/config.py
+++ xpra-0.9.5/xpra/scripts/config.py
@@ -117,9 +117,10 @@
         if e.args[0]==errno.EACCES:
             return "VirtualBox is present (VBoxMiniRdrDN)"
     return None
-OPENGL_DEFAULT = False
-#if OpenGL_safety_check() is not None:
-#    OPENGL_DEFAULT = False
+if OpenGL_safety_check() is not None:
+    OPENGL_DEFAULT = False
+else:
+    OPENGL_DEFAULT = None
 
 
 
@@ -452,6 +453,13 @@
     else:
         warn("Warning: cannot parse value '%s' for '%s' as a boolean" % (v, k))
 
+def print_bool(k, v):
+    if type(v)==type(None):
+	return 'auto'
+    if type(v)==bool:
+	return v and 'yes' or 'no'
+    warn("Warning: cannot print value '%s' for '%s' as a boolean" % (v, k))
+
 def parse_number(numtype, k, v, auto=-1):
     if type(v)==str:
         v = v.lower()
--- xpra-0.9.5/xpra/scripts/main.py
+++ xpra-0.9.5/xpra/scripts/main.py
@@ -24,7 +24,7 @@
                            get_default_socket_dir,
                            init as platform_init)
 from xpra.bytestreams import TwoFileConnection, SocketConnection
-from xpra.scripts.config import ENCODINGS, ENCRYPTION_CIPHERS, make_defaults_struct, show_codec_help, parse_bool
+from xpra.scripts.config import ENCODINGS, ENCRYPTION_CIPHERS, make_defaults_struct, show_codec_help, parse_bool, print_bool
 from wimpiggy.gobject_compat import import_gobject
 
 SIGNAMES = {signal.SIGINT:"SIGINT", signal.SIGTERM:"SIGTERM"}
@@ -253,7 +253,7 @@
                 "These options control client features that affect the appearance or the keyboard.")
     parser.add_option_group(group)
     group.add_option("--opengl", action="store",
-                      dest="opengl", default=defaults.opengl,
+                      dest="opengl", default=print_bool('opengl', defaults.opengl),
                       help="Use OpenGL accelerated rendering, options: yes,no,auto. Default: %default.")
     group.add_option("--no-windows", action="store_false",
                       dest="windows", default=defaults.windows,





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in x11-wm/xpra/files: xpra-0.9.5-opengl-auto.patch
@ 2013-07-03 12:58 Michael Weber (xmw)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Weber (xmw) @ 2013-07-03 12:58 UTC (permalink / raw
  To: gentoo-commits

xmw         13/07/03 12:58:57

  Modified:             xpra-0.9.5-opengl-auto.patch
  Log:
  reference upstream changeset
  
  (Portage version: 2.2.0_alpha183/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

Revision  Changes    Path
1.3                  x11-wm/xpra/files/xpra-0.9.5-opengl-auto.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xpra/files/xpra-0.9.5-opengl-auto.patch?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xpra/files/xpra-0.9.5-opengl-auto.patch?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xpra/files/xpra-0.9.5-opengl-auto.patch?r1=1.2&r2=1.3

Index: xpra-0.9.5-opengl-auto.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/x11-wm/xpra/files/xpra-0.9.5-opengl-auto.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- xpra-0.9.5-opengl-auto.patch	3 Jul 2013 11:49:13 -0000	1.2
+++ xpra-0.9.5-opengl-auto.patch	3 Jul 2013 12:58:57 -0000	1.3
@@ -1,4 +1,5 @@
 reported upstream as https://www.xpra.org/trac/ticket/367#ticket
+upstream adapted the print_bool part in https://www.xpra.org/trac/changeset/3761/xpra
 
 --- xpra-0.9.5/xpra/scripts/config.py
 +++ xpra-0.9.5/xpra/scripts/config.py





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-03 12:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-24 15:41 [gentoo-commits] gentoo-x86 commit in x11-wm/xpra/files: xpra-0.9.5-opengl-auto.patch Michael Weber (xmw)
  -- strict thread matches above, loose matches on Subject: below --
2013-07-03 12:58 Michael Weber (xmw)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox