[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] How to apply patches to qt.py ?
From: Gerard Vermeulen <gvermeul () grenoble ! cnrs ! fr>
Date: 2002-10-07 7:00:51
[Download RAW message or body]
Marc,
Patching between the build.py and running make is simplest (especially
if you make an rpm package).
Gerard
PS: of course you know: build.py make sip generate the code in
the qt subdirectory.
On Sun, Oct 06, 2002 at 08:48:47PM +0200, Marc Schmitt wrote:
>
> The following "solution" should work, at least until the problem will be
> solved in general.
> Up to Adrian, it's an issue with the fast malloc used in SuSE qt version,
> which was applied
> to increase speed by about 10%.
>
> > the problem is that python is loaded first and qt is opened later via
> > dlopen. Our qt has the fast malloc implementation which improves the speed
> > for threaded apps a lot (and will be the default malloc in glibc 2.3).
> > But the problem here is that malloc routine is exchanged later what
> > caused the crash.
>
> My workaround now would be to patch the file /%{python_site}/qt.py with the
> following code,
> which should prevent Qt from using fast-malloc.
>
> # You should have received a copy of the GNU General Public License along
> with
> # PyQt; see the file LICENSE. If not, write to the Free Software
> Foundation,
> # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
>
> +
> + # hotfix for "fast malloc", not using this can cause crashes on some systems
> + from os import environ
> + environ["KDE_MALLOC"]="0"
> + del environ
> +
> +
> # Support for signals.
>
> def SLOT(slot):
> return '1' + slot
>
>
>
> Where is the best/most elegant point to apply this ? I looked over the
> build.py script, but found no appropriate place.
>
> Thanks
> -Marc
>
>
> _______________________________________________
> PyKDE mailing list PyKDE@mats.gmd.de
> http://mats.gmd.de/mailman/listinfo/pykde
_______________________________________________
PyKDE mailing list PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic