summaryrefslogtreecommitdiff
path: root/editors/lyx-qt/patches
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2006-01-18 21:00:45 +0000
committerreed <reed@pkgsrc.org>2006-01-18 21:00:45 +0000
commit9398a9603dc12769ce29d4413f814e0c0e597d33 (patch)
tree26440b7a2533184cde03232ef6a159083d569413 /editors/lyx-qt/patches
parent248f29103a8f7aba1d93fe3ed355d2dc82798172 (diff)
downloadpkgsrc-9398a9603dc12769ce29d4413f814e0c0e597d33.tar.gz
Update lyx to lyx-1.3.7.
Verified that this works without qt3-tools so remove that comment and BUILDLINK_DEPMETHOD for that. (Now defaults to build only.) Add another download mirror. Use bzipped tar file. Update PLIST to add "hu" locale file, compiled python code, and other updates. And use PKG_LOCALTEXMFPREFIX instead of PKG_TEXMFPREFIX for the dirrm. Removed three patches related to DragonFly and other patch for a bug fix as all are now fixed in official release. Updated patch-ab. The official release removed the unlock() so still coredumps on NetBSD without this patch. And regenerated two other patches as lines didn't line up anymore. And remove PKGREVISION from Makefiles. (Note I did not test "xforms" version.) Changes include: ** Updates - Update lyx2lyx to handle properly the latest LyX 1.4 format (245). - New hungarian translation. Update Spanish translation. - Update German documentation. ** Bug fixes * Document input/output: - Don't load the wasysym package automatically anymore (bug 1942) - Fix crash with S-Home while entering a macro name (bug 2046) - Do not delete selection when entering an index entry. - Fix LaTeX output when a bibtex inset is used in a child document. - Support tex4ht for Tex -> MS Word conversion - Support the previewers kdvi, kpdf, and kghostview * User Interface: - Fix wrong path when drag-and-dropping files on Windows. [Qt only] - Fix interaction of LyX with external clipboard (e.g. Klipper) (bug 1976). - Ensure that no dialogs have one shortcut assigned to more than one action. Always connect the OK button to the Alt-O shortcut. [Qt only] - Ensure that the user cannot create a reference without first selecting one in the reference dialog. [Qt only]. - The Return key is no longer bound to the Goto button in the reference dialog. [Qt only]. - Double clicking in the reference dialog now inserts a reference (bug 2187) [Qt only]. - Searching backwards in the citation dialog always skipped one result (bug 2002). Fixed now. - Do not trim spaces from either end of the find and replace strings in the Edit->Find & Replace... dialog. [XForms only]. - Fix crash when trying to display current directory and ${HOME} is empty. - Don't force alignment to BLOCK when switching to fixed width cell (bug 1840). - Add key bindings for "primary-selection-paste". - Fix some math key sequences for sciword.bind. - On exit, don't attempt to unlock a mutex in the Qt library --- it causes undefined behaviour and leads to a crash on NetBSD. - Enable Instant Preview to work if the path to the external GhostScript executable contains spaces. (bug 2193). - The error/warning/confirmation dialogs aren't hidden behind the main window anymore [Qt only] (bug 1977). * Configuration/Installation: - Enable TeXFiles.sh to run when its path contains spaces. - Compile without STL compatibility support, since some systems do that by default (Slackware, for ex.). [Qt only] - Fix compilation with gcc 2.95 under OSX 10.4. This is useful because LyX crashes on startup when compiled with gcc3. - Fix compilation with Solaris/x86 (bug 992). - Enable compilation of LyX on DragonFly BSD. - Add missing cygwin support file in the distribution (bug 2035). - Enable Windows boxes to recognize the hard-coded paths needed to run LyX from the build tree.
Diffstat (limited to 'editors/lyx-qt/patches')
-rw-r--r--editors/lyx-qt/patches/patch-ab40
-rw-r--r--editors/lyx-qt/patches/patch-ac13
-rw-r--r--editors/lyx-qt/patches/patch-ad13
-rw-r--r--editors/lyx-qt/patches/patch-ae30
-rw-r--r--editors/lyx-qt/patches/patch-af12
-rw-r--r--editors/lyx-qt/patches/patch-aj14
-rw-r--r--editors/lyx-qt/patches/patch-ak13
7 files changed, 39 insertions, 96 deletions
diff --git a/editors/lyx-qt/patches/patch-ab b/editors/lyx-qt/patches/patch-ab
index b2fc54516e0..4b2cd8f236d 100644
--- a/editors/lyx-qt/patches/patch-ab
+++ b/editors/lyx-qt/patches/patch-ab
@@ -1,17 +1,29 @@
-$NetBSD: patch-ab,v 1.5 2005/11/16 18:06:12 reed Exp $
+$NetBSD: patch-ab,v 1.6 2006/01/18 21:00:45 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 @@
+--- src/frontends/qt2/lyx_gui.C.orig 2006-01-18 12:25:08.000000000 -0800
++++ src/frontends/qt2/lyx_gui.C 2006-01-18 12:33:05.000000000 -0800
+@@ -122,8 +122,22 @@
+
+
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())
+-{}
+-
++{
++/* revision 1.30.2.11 says:
++ * "Don't unlock QApplication's mutex as it leads to undefined behaviour
++ * (and crashes NetBSD)".
++ *
++ * Really the problem was that checking for locked() on NetBSD
++ * for some unknown reason did not work. It did not crash, but just
++ * core dumped when exiting due to "Destroying locked mutex".
++ *
++ * The "lyx: Error detected by libpthread: Destroying locked mutex."
++ * problem still continues on NetBSD, so re-adding the following:
++ */
++#if defined(__NetBSD__) && defined(QT_THREAD_SUPPORT)
++ unlock();
+#endif
- unlock();
- #endif
- }
++}
+
+ #ifdef Q_OS_MAC
+ bool LQApplication::macEventFilter(EventRef event)
diff --git a/editors/lyx-qt/patches/patch-ac b/editors/lyx-qt/patches/patch-ac
deleted file mode 100644
index d512ead5c76..00000000000
--- a/editors/lyx-qt/patches/patch-ac
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ac,v 1.3 2005/11/18 06:23:09 reed Exp $
-
---- boost/boost/integer_traits.hpp.orig 2005-08-23 23:30:03.000000000 -0700
-+++ boost/boost/integer_traits.hpp 2005-08-23 22:27:02.000000000 -0700
-@@ -93,7 +93,7 @@
- #elif defined(__BORLANDC__) || defined(__CYGWIN__) || defined(__MINGW32__) || (defined(__BEOS__) && defined(__GNUC__))
- // No WCHAR_MIN and WCHAR_MAX, whar_t is short and unsigned:
- public detail::integer_traits_base<wchar_t, 0, 0xffff>
--#elif (defined(__sgi) && (!defined(__SGI_STL_PORT) || __SGI_STL_PORT < 0x400)) || (defined __APPLE__) || (defined(__FreeBSD__) && defined(__GNUC__)) || (defined(__OpenBSD__) && defined(__GNUC__)) || (defined(__NetBSD__) && defined(__GNUC__)) || (defined(__hpux) && defined(__GNUC__) && (__GNUC__ == 3) && !defined(__SGI_STL_PORT))
-+#elif (defined(__sgi) && (!defined(__SGI_STL_PORT) || __SGI_STL_PORT < 0x400)) || (defined __APPLE__) || (defined(__FreeBSD__) && defined(__GNUC__)) || (defined(__DragonFly__) && defined(__GNUC__)) || (defined(__OpenBSD__) && defined(__GNUC__)) || (defined(__NetBSD__) && defined(__GNUC__)) || (defined(__hpux) && defined(__GNUC__) && (__GNUC__ == 3) && !defined(__SGI_STL_PORT))
- // No WCHAR_MIN and WCHAR_MAX, wchar_t has the same range as int.
- // - SGI MIPSpro with native library
- // - gcc 3.x on HP-UX
diff --git a/editors/lyx-qt/patches/patch-ad b/editors/lyx-qt/patches/patch-ad
deleted file mode 100644
index 6d1a5b82037..00000000000
--- a/editors/lyx-qt/patches/patch-ad
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ad,v 1.3 2005/11/18 06:23:09 reed Exp $
-
---- boost/boost/config/select_platform_config.hpp.orig 2005-08-23 23:29:40.000000000 -0700
-+++ boost/boost/config/select_platform_config.hpp 2005-08-23 22:29:53.000000000 -0700
-@@ -16,7 +16,7 @@
- // linux:
- # define BOOST_PLATFORM_CONFIG "boost/config/platform/linux.hpp"
-
--#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
-+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
- // BSD:
- # define BOOST_PLATFORM_CONFIG "boost/config/platform/bsd.hpp"
-
diff --git a/editors/lyx-qt/patches/patch-ae b/editors/lyx-qt/patches/patch-ae
deleted file mode 100644
index 716c97a95df..00000000000
--- a/editors/lyx-qt/patches/patch-ae
+++ /dev/null
@@ -1,30 +0,0 @@
-$NetBSD: patch-ae,v 1.3 2005/11/18 06:23:09 reed Exp $
-
---- boost/boost/config/platform/bsd.hpp.orig 2005-08-23 22:25:05.000000000 -0700
-+++ boost/boost/config/platform/bsd.hpp 2005-08-23 22:29:21.000000000 -0700
-@@ -7,7 +7,7 @@
-
- // generic BSD config options:
-
--#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
-+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
- #error "This platform is not BSD"
- #endif
-
-@@ -17,6 +17,8 @@
- #define BOOST_PLATFORM "NetBSD " BOOST_STRINGIZE(__NetBSD__)
- #elif defined(__OpenBSD__)
- #define BOOST_PLATFORM "OpenBSD " BOOST_STRINGIZE(__OpenBSD__)
-+#elif defined(__DragonFly__)
-+#define BOOST_PLATFORM "DragonFly " BOOST_STRINGIZE(__DragonFly__)
- #endif
-
- //
-@@ -24,7 +26,7 @@
- // FreeBSD has <nl_types.h> but does not
- // advertise the fact in <unistd.h>:
- //
--#if defined(__FreeBSD__) && (__FreeBSD__ >= 3)
-+#if (defined(__FreeBSD__) && (__FreeBSD__ >= 3)) || defined(__DragonFly__)
- # define BOOST_HAS_NL_TYPES_H
- #endif
diff --git a/editors/lyx-qt/patches/patch-af b/editors/lyx-qt/patches/patch-af
index 777d308325c..04f1b40155c 100644
--- a/editors/lyx-qt/patches/patch-af
+++ b/editors/lyx-qt/patches/patch-af
@@ -1,13 +1,13 @@
-$NetBSD: patch-af,v 1.3 2005/11/18 16:47:35 reed Exp $
+$NetBSD: patch-af,v 1.4 2006/01/18 21:00:45 reed Exp $
---- lib/Makefile.in.orig 2005-11-17 12:27:24.000000000 -0800
-+++ lib/Makefile.in 2005-11-17 12:27:58.000000000 -0800
-@@ -211,7 +211,7 @@
+--- lib/Makefile.in.orig 2006-01-16 06:51:40.000000000 -0800
++++ lib/Makefile.in 2006-01-17 10:46:05.000000000 -0800
+@@ -244,7 +244,7 @@
+ TEXSUPPORT = tex/*.cls tex/*.sty
UI = ui/*.ui
-
LIBINSTFILES = $(BIND) $(CLIPART) $(DOCINST) $(EXAMPLES) $(HELP) $(IMAGES) \
- $(KBD) $(LAYOUT) $(TEMPL) $(TEXSUPPORT) $(UI)
+ $(KBD) $(LAYOUT) $(TEMPL) $(UI)
-
LIBDISTFILES = $(BIND) $(CLIPART) $(DOCDIST) $(EXAMPLES) $(HELP) $(IMAGES) \
+ $(KBD) $(LAYOUT) $(TEMPL) $(UI) $(TEXSUPPORT) $(LYXSCRIPTS)
diff --git a/editors/lyx-qt/patches/patch-aj b/editors/lyx-qt/patches/patch-aj
index 6d8eb4d805b..29f507deaea 100644
--- a/editors/lyx-qt/patches/patch-aj
+++ b/editors/lyx-qt/patches/patch-aj
@@ -1,16 +1,16 @@
-$NetBSD: patch-aj,v 1.1 2005/07/19 17:49:33 drochner Exp $
+$NetBSD: patch-aj,v 1.2 2006/01/18 21:00:45 reed Exp $
---- src/support/Makefile.in.orig 2005-07-18 18:00:23.000000000 +0200
-+++ src/support/Makefile.in
-@@ -651,12 +651,11 @@ package.lo: ../config.h \
+--- src/support/Makefile.in.orig 2006-01-16 06:51:45.000000000 -0800
++++ src/support/Makefile.in 2006-01-17 10:47:16.000000000 -0800
+@@ -626,12 +626,11 @@
$(top_srcdir)/src/BoostFormat.h $(top_srcdir)/src/debug.h \
$(top_srcdir)/src/gettext.h $(top_srcdir)/src/Lsstream.h \
$(top_srcdir)/src/LString.h
- $(CXXCOMPILE) \
+ $(LTCXXCOMPILE) \
- -DLYX_DIR=\"$(pkgdatadir)\" \
- -DTOP_SRCDIR=\"$(top_srcdir)\" \
- -DLOCALEDIR=\"$(localedir)\" \
+ -DLYX_DIR=\"$(LYX_ABS_INSTALLED_DATADIR)\" \
+ -DTOP_SRCDIR=\"$(LYX_ABS_TOP_SRCDIR)\" \
+ -DLOCALEDIR=\"$(LYX_ABS_INSTALLED_LOCALEDIR)\" \
- -c $(top_srcdir)/src/support/package.C && \
- echo "timestamp" > $@
+ -c $(top_srcdir)/src/support/package.C
diff --git a/editors/lyx-qt/patches/patch-ak b/editors/lyx-qt/patches/patch-ak
deleted file mode 100644
index a506d890cf2..00000000000
--- a/editors/lyx-qt/patches/patch-ak
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ak,v 1.1 2005/07/19 17:49:33 drochner Exp $
-
---- src/frontends/qt2/QPrefs.C.orig 2005-07-18 19:00:12.000000000 +0200
-+++ src/frontends/qt2/QPrefs.C
-@@ -347,7 +347,7 @@ void setComboxFont(QComboBox * cb, strin
- string const & default_font_name = tmp.first;
-
- for (int i = cb->count() - 1; i >= 0; --i) {
-- if (cb->text(i) == default_font_name) {
-+ if (fromqstr(cb->text(i)) == default_font_name) {
- cb->setCurrentItem(i);
- return;
- }