diff --git a/srcpkgs/lyx/patches/0001-Fix-compilation-with-Qt5.8dev.patch b/srcpkgs/lyx/patches/0001-Fix-compilation-with-Qt5.8dev.patch deleted file mode 100644 index f79a03482fc..00000000000 --- a/srcpkgs/lyx/patches/0001-Fix-compilation-with-Qt5.8dev.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 6d375ddeac49ac8c6340398c9797354edca3f5d1 Mon Sep 17 00:00:00 2001 -From: Guillaume Munch -Date: Tue, 20 Dec 2016 00:15:58 +0100 -Subject: [PATCH] Fix compilation with Qt5.8dev - ---- - src/frontends/qt4/GuiViewSource.cpp | 9 ++------- - 1 file changed, 2 insertions(+), 7 deletions(-) - -diff --git a/src/frontends/qt4/GuiViewSource.cpp b/src/frontends/qt4/GuiViewSource.cpp -index 9c0ea1d707..fe593875e6 100644 ---- src/frontends/qt4/GuiViewSource.cpp -+++ src/frontends/qt4/GuiViewSource.cpp -@@ -218,14 +218,9 @@ void ViewSourceWidget::updateView(BufferView const * bv) - if (changed && !texrow_) { - // position-to-row is unavailable - // we jump to the first modification -- const QChar * oc = old.constData(); -- const QChar * nc = qcontent.constData(); -+ int length = min(old.length(), qcontent.length()); - int pos = 0; -- while (*oc != '\0' && *nc != '\0' && *oc == *nc) { -- ++oc; -- ++nc; -- ++pos; -- } -+ for (; pos < length && old.at(pos) == qcontent.at(pos); ++pos) {} - QTextCursor c = QTextCursor(viewSourceTV->document()); - //get some space below the cursor - c.setPosition(pos); --- -2.12.2 - diff --git a/srcpkgs/lyx/template b/srcpkgs/lyx/template index c2dccdaa460..31f7dd67207 100644 --- a/srcpkgs/lyx/template +++ b/srcpkgs/lyx/template @@ -1,7 +1,7 @@ # Template file for 'lyx' pkgname=lyx -version=2.2.2 -revision=5 +version=2.2.3 +revision=1 build_style=gnu-configure configure_args="--enable-qt5 --without-included-mythes --without-included-boost" short_desc="The Document Processor WYSIWYM Editor & Latex frontend" @@ -12,4 +12,4 @@ makedepends="file-devel boost-devel mythes-devel enchant-devel qt5-svg-devel" depends="virtual?texlive GraphicsMagick" homepage="http://www.lyx.org/Home" distfiles="ftp://ftp.lyx.org/pub/${pkgname}/stable/2.2.x/${pkgname}-${version}.tar.xz" -checksum=a85c3d7412c4069f8a1f5af4eb172948ae9a50394602f6318ab5c8e990aa5568 +checksum=4fcaeb7c202472d9ea21bf826fb30541015fef33e7217eda2be2b5d589c82b57