pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/editors/lyx-qt Add patch so on NetBSD, it will not cor...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/164a3a39c94a
branches:  trunk
changeset: 503224:164a3a39c94a
user:      reed <reed%pkgsrc.org@localhost>
date:      Wed Nov 16 18:06:12 2005 +0000

description:
Add patch so on NetBSD, it will not core dump on exit.
According to trolltech's support, the QT code for Lyx was done
wrong and so the locked() doesn't return with true and so the
unlock() is never done causing NetBSD's
  Error detected by libpthread: Destroying locked mutex.

I contacted lyx developers about this several times.

This is for PR 26454.

diffstat:

 editors/lyx-qt/Makefile         |   3 ++-
 editors/lyx-qt/distinfo         |   3 ++-
 editors/lyx-qt/patches/patch-ab |  17 +++++++++++++++++
 3 files changed, 21 insertions(+), 2 deletions(-)

diffs (51 lines):

diff -r 013f2047a6f7 -r 164a3a39c94a editors/lyx-qt/Makefile
--- a/editors/lyx-qt/Makefile   Wed Nov 16 17:42:20 2005 +0000
+++ b/editors/lyx-qt/Makefile   Wed Nov 16 18:06:12 2005 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.19 2005/07/19 17:49:33 drochner Exp $
+# $NetBSD: Makefile,v 1.20 2005/11/16 18:06:13 reed Exp $
 #
 
 .include "./Makefile.common"
 
 PKGNAME=       ${DISTNAME:S/lyx-/lyx-qt-/}
+PKGREVISION=   1
 
 COMMENT+=      (QT version)
 
diff -r 013f2047a6f7 -r 164a3a39c94a editors/lyx-qt/distinfo
--- a/editors/lyx-qt/distinfo   Wed Nov 16 17:42:20 2005 +0000
+++ b/editors/lyx-qt/distinfo   Wed Nov 16 18:06:12 2005 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.9 2005/07/19 17:49:33 drochner Exp $
+$NetBSD: distinfo,v 1.10 2005/11/16 18:06:13 reed Exp $
 
 SHA1 (lyx-1.3.6.tar.gz) = 9a0045bf007e4ebc4ca024536e03b3d95acb5ace
 RMD160 (lyx-1.3.6.tar.gz) = c05c106fdf4159fbde70747eced9b3685121ac5f
 Size (lyx-1.3.6.tar.gz) = 7782849 bytes
 SHA1 (patch-aa) = 90a09a1adbb899cbaf063d4d7f46dc77f78a62da
+SHA1 (patch-ab) = e46def6f52b4c1c3c5197795454867c6bc2dbed6
 SHA1 (patch-ah) = 278f5deaf94c1082b755af3cb9511bc2f68231ba
 SHA1 (patch-ai) = ddd905f335293fa510745c5fe4f8011a5b3a1d9e
 SHA1 (patch-aj) = bfbd7b6f0a512a5034009c221b4851309ca6fb56
diff -r 013f2047a6f7 -r 164a3a39c94a editors/lyx-qt/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/lyx-qt/patches/patch-ab   Wed Nov 16 18:06:12 2005 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.5 2005/11/16 18:06:12 reed Exp $
+
+--- src/frontends/qt2/lyx_gui.C.orig   2005-10-12 16:16:12.000000000 -0700
++++ src/frontends/qt2/lyx_gui.C        2005-10-12 16:19:15.000000000 -0700
+@@ -123,7 +123,12 @@
+ LQApplication::~LQApplication()
+ {
+ #ifdef QT_THREAD_SUPPORT
++/* For some reason it doesn't indicate it is locked on NetBSD
++   resulting in a Error detected by libpthread: Destroying locked mutex.
++*/
++#if !defined(__NetBSD__)
+       if (locked())
++#endif
+               unlock();
+ #endif
+ }



Home | Main Index | Thread Index | Old Index