<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/pymol/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/pymol/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 21 Dec 2017 13:00:05 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pymol/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>#13 Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)</title><link>https://sourceforge.net/p/pymol/patches/13/?limit=25#f8dc</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I haven't gotten any feedback on my revised patch (tk-aqua-v2.patch). Is there still interest is getting this patch in?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Holder</dc:creator><pubDate>Thu, 21 Dec 2017 13:00:05 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netea5cd67c22c7e92285323358511abd57edbac166</guid></item><item><title>#13 Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)</title><link>https://sourceforge.net/p/pymol/patches/13/?limit=25#f094</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Max -&lt;/p&gt;
&lt;p&gt;Would you mind testing my modified patch (tk-aqua-v2.patch)? It reuses more existing code.&lt;/p&gt;
&lt;p&gt;Also, please add a note or comment to this issue that you put your patch in the public domain or under a BSD-like license.&lt;/p&gt;
&lt;p&gt;For the record, this works for me with:&lt;br/&gt;
- homebrew&lt;br/&gt;
- system Python&lt;br/&gt;
- anaconda&lt;/p&gt;
&lt;p&gt;It does not work with:&lt;br/&gt;
- macports (tk +quartz), threading issues&lt;br/&gt;
- GLUT framework instead of X11 freeglut&lt;/p&gt;
&lt;p&gt;Thomas&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Holder</dc:creator><pubDate>Mon, 11 Sep 2017 10:23:51 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netc9732491d7e25821a8fe22efbc30ab4b447842b8</guid></item><item><title>#12 make build reproducible</title><link>https://sourceforge.net/p/pymol/patches/12/?limit=25#8a97</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: accepted --&amp;gt; closed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Holder</dc:creator><pubDate>Mon, 11 Sep 2017 09:32:41 -0000</pubDate><guid isPermaLink="false">https://sourceforge.nete7d57174f4948b8f04edb94a51602c6a11bffe9d</guid></item><item><title>#13 Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)</title><link>https://sourceforge.net/p/pymol/patches/13/?limit=25#0b1c</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: Thomas Holder&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Holder</dc:creator><pubDate>Mon, 21 Aug 2017 17:55:19 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netcfd0eeb5734c6b16efb4780712178051e01856d6</guid></item><item><title>#13 Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)</title><link>https://sourceforge.net/p/pymol/patches/13/?limit=25#eb8b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Here's the latest verson of the patch, with a fix for a bug that showed up durring testing on Linux.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Max Klein</dc:creator><pubDate>Wed, 09 Aug 2017 23:26:14 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net2d3f418390d2088ae9a659b523946948a44f8bd7</guid></item><item><title>Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)</title><link>https://sourceforge.net/p/pymol/patches/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Dear Shroedinger (or possibly just Thomas Holder),&lt;/p&gt;
&lt;p&gt;Hi, I'm Max Klein. I'm a 5th year PhD student the computational biophysics department at Johns Hopkins. I've been a heavy Pymol user for about 7 years now.&lt;/p&gt;
&lt;p&gt;I first ran into issues with the Pymol external GUI on OS X 5 years ago when I started making builds of the open source Pymol. Up until now, the best fix that had been available was to build a version of tcl-tk against X11 using homebrew (which is in general pretty great), then build a version of Python using homebrew against that brewed tcl-tk, and then build Pymol itself against that brewed Python. &lt;/p&gt;
&lt;p&gt;It was a pretty involved build, but it worked fine once you got the hang of it. The problem now is that Homebrew has dropped all support for X11, including in tcl-tk. In light of that, I worked out how to get the external GUI to actually run just using the tcl-tk that's shipped with OS X, and that uses the OS X native Aqua winowing manager. You can find the complete patch code in context (built on top of a mirror of this SVN) over on GitHub at &lt;a href="https://github.com/telamonian/pymol/tree/osx_gui_fix_-_invert_threads." rel="nofollow"&gt;https://github.com/telamonian/pymol/tree/osx_gui_fix_-_invert_threads.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And it works! Pretty well actually, from my initial testing. Basically, any Aqua windows made by Python's Tkinter absolutely have to run in the main thread or else they trigger errors at both the Python level and the operating system level (via Apple's Core Services libs). In order to accomodate this, and only when Pymol is running on OS X using Aqua, I wrote a patch that tweaks Pymol's kickoff routine. What ends up happening is that the external GUI thread runs in the main thread, while the glut GUI, which normally runs on the main thread, runs instead in a child thread. &lt;/p&gt;
&lt;p&gt;This inversion of threads does not seem to have any effect on the performance or function of Pymol, so I think that this is a viable fix for a long-standing bug. Please feel free to ask me for any changes to the patch that you think are appropriate. Everything has been throroughly tested on several different version of OS X, but I assume that there will be at least a few issues of syntanx and/or semantics to iron out with respect to the rest of the Pymol project. Overall I have attempted to alter as little as possible, both in terms of program execution and the code itself.&lt;/p&gt;
&lt;p&gt;Thank you very much for your attention, and I hope that this patch will prove useful to the community of open source Pymol users. Some extra notes can be found in the header of the patchfile itself.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Max Klein&lt;br/&gt;
PhD Candidate in Biophysics&lt;br/&gt;
Roberts Lab, Johns Hopkins&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Max Klein</dc:creator><pubDate>Fri, 04 Aug 2017 21:43:17 -0000</pubDate><guid isPermaLink="false">https://sourceforge.neta4d0d5c7158a110f9a9ccf1c546d0c75826448fb</guid></item><item><title>Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)</title><link>https://sourceforge.net/p/pymol/patches/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 13 has been modified: Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)&lt;br/&gt;
Edited By: Thomas Holder (speleo3)&lt;br/&gt;
Owner updated: None =&amp;gt; u'speleo3'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Max Klein</dc:creator><pubDate>Fri, 04 Aug 2017 21:43:17 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netb4eddddf6ddf9de8344ee4c8820713ba8e395b53</guid></item><item><title>#12 make build reproducible</title><link>https://sourceforge.net/p/pymol/patches/12/?limit=25#ba2b</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; accepted&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: Thomas Holder&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Holder</dc:creator><pubDate>Mon, 03 Jul 2017 13:14:27 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netfbaca3e930c0569200234816de18c491a0cb12dc</guid></item><item><title>make build reproducible</title><link>https://sourceforge.net/p/pymol/patches/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;when building packages (e.g. for openSUSE Linux)&lt;br/&gt;
(random) filesystem order of input files&lt;br/&gt;
influences ordering of functions in the output,&lt;br/&gt;
thus without the patch, builds (in disposable VMs) would usually differ.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://reproducible-builds.org/" rel="nofollow"&gt;https://reproducible-builds.org/&lt;/a&gt; for why this matters. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bernhard M. Wiedemann</dc:creator><pubDate>Mon, 05 Jun 2017 14:38:58 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net746c19e093bf1f8526fc07c4af4d158f8a792d83</guid></item><item><title>make build reproducible</title><link>https://sourceforge.net/p/pymol/patches/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 12 has been modified: make build reproducible&lt;br/&gt;
Edited By: Thomas Holder (speleo3)&lt;br/&gt;
Status updated: u'open' =&amp;gt; u'accepted'&lt;br/&gt;
Owner updated: None =&amp;gt; u'speleo3'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bernhard M. Wiedemann</dc:creator><pubDate>Mon, 05 Jun 2017 14:38:58 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net0db9da879c6b1e1f35a78c29ef73e723f1e968d9</guid></item></channel></rss>