From 352621b4703b09cc00763e69c333852298f0d4b1 Mon Sep 17 00:00:00 2001 From: Christian Dersch Date: Fri, 20 Jan 2017 10:05:36 +0100 Subject: [PATCH] Added patch to fix command detection --- texstudio-2.12.0_fix_command_detection.patch | 12 ++++++++++++ texstudio.spec | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 texstudio-2.12.0_fix_command_detection.patch diff --git a/texstudio-2.12.0_fix_command_detection.patch b/texstudio-2.12.0_fix_command_detection.patch new file mode 100644 index 0000000..686b5a7 --- /dev/null +++ b/texstudio-2.12.0_fix_command_detection.patch @@ -0,0 +1,12 @@ +diff -Naur texstudio2.12.0/buildmanager.cpp texstudio2.12.0.new/buildmanager.cpp +--- texstudio2.12.0/buildmanager.cpp 2017-01-06 21:32:26.000000000 +0100 ++++ texstudio2.12.0.new/buildmanager.cpp 2017-01-20 10:00:32.103909199 +0100 +@@ -599,7 +599,7 @@ + + QString addPathDelimeter(const QString &a) + { +- return ((a.endsWith("/") || a.endsWith("\\")) ? a : (a + "\\")); ++ return ((a.endsWith("/") || a.endsWith("\\")) ? a : (a + QDir::separator())); + } + + QString BuildManager::findFileInPath(QString fileName) diff --git a/texstudio.spec b/texstudio.spec index 7ded4fa..d96adf0 100644 --- a/texstudio.spec +++ b/texstudio.spec @@ -1,6 +1,6 @@ Name: texstudio Version: 2.12.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A feature-rich editor for LaTeX documents Group: Applications/Publishing @@ -16,6 +16,8 @@ Patch2: texstudio-debughelper-arm-fix.patch Patch3: texstudio-disable-update-check.patch # don't muck with default build flags Patch4: texstudio-wtf_flags.patch +# Fix for https://sourceforge.net/p/texstudio/bugs/2037/ +Patch5: texstudio-2.12.0_fix_command_detection.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: qt5-qtbase-devel @@ -54,6 +56,7 @@ so it keeps it look&feel. %patch2 -p1 -b .arm %patch3 -p1 -b .update_check %patch4 -p1 -b .wtf_flags +%patch5 -p1 -b .command_detection rm -rf {hunspell,qtsingleapplication,quazip} @@ -139,6 +142,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null ||: %doc utilities/AUTHORS utilities/COPYING utilities/manual/CHANGELOG.txt %changelog +* Fri Jan 20 2017 Christian Dersch - 2.12.0-2 +- Added patch to fix command detection + * Sat Jan 07 2017 Johannes Lips 2.12.0-1 - Update to latest upstream bugfix release 2.12.0