[arch-commits] Commit in codeblocks/trunk (PKGBUILD fix-crash.patch)

Balló György bgyorgy at archlinux.org
Thu Mar 28 20:58:30 UTC 2019


    Date: Thursday, March 28, 2019 @ 20:58:29
  Author: bgyorgy
Revision: 445640

upgpkg: codeblocks 17.12-9

wx3-gtk3: Fix crash when doing Control-A, Control-V (FS#62148)

Added:
  codeblocks/trunk/fix-crash.patch
Modified:
  codeblocks/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   12 +++++++++---
 fix-crash.patch |   11 +++++++++++
 2 files changed, 20 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-28 20:57:52 UTC (rev 445639)
+++ PKGBUILD	2019-03-28 20:58:29 UTC (rev 445640)
@@ -8,7 +8,7 @@
 
 pkgname=codeblocks
 pkgver=17.12
-pkgrel=8
+pkgrel=9
 pkgdesc='Cross-platform C/C++ IDE'
 arch=('x86_64')
 url='http://codeblocks.org/'
@@ -15,8 +15,10 @@
 license=('GPL3')
 depends=('boost-libs' 'wxgtk3' 'hunspell')
 makedepends=('boost' 'imagemagick' 'zip')
-source=("https://downloads.sourceforge.net/codeblocks/${pkgname}_$pkgver.tar.xz")
-sha256sums=('13881a0a72769694e82e531b8e7814d51fbf1fa122c73c5004e186560fbc57e0')
+source=("https://downloads.sourceforge.net/codeblocks/${pkgname}_$pkgver.tar.xz"
+        "fix-crash.patch")
+sha256sums=('13881a0a72769694e82e531b8e7814d51fbf1fa122c73c5004e186560fbc57e0'
+            '5c01a81734a075c8809ca6d3c0171e53133ccb1a89d60a6a551f15a53e4df3fa')
 
 prepare() {
   cd $pkgname-$pkgver
@@ -23,6 +25,10 @@
   convert src/mime/codeblocks.png +set date:create +set date:modify -background none -extent 64x64 src/mime/codeblocks.png
   sed -i 's|$(datadir)/pixmaps|$(datadir)/icons/hicolor/64x64/apps|' src/mime/Makefile.{am,in}
   sed -i 's|$(datarootdir)/appdata|$(datarootdir)/metainfo|' Makefile.{am,in} src/plugins/contrib/appdata/Makefile.{am,in}
+
+  # wx3-gtk3: Fix crash when doing Control-A, Control-V (FS#62148)
+  # https://sourceforge.net/p/codeblocks/code/11320/
+  patch -Np2 -i ../fix-crash.patch
 }
 
 build() {

Added: fix-crash.patch
===================================================================
--- fix-crash.patch	                        (rev 0)
+++ fix-crash.patch	2019-03-28 20:58:29 UTC (rev 445640)
@@ -0,0 +1,11 @@
+--- a/trunk/src/src/main.cpp
++++ b/trunk/src/src/main.cpp
+@@ -4321,7 +4321,7 @@
+     }
+ 
+     if (Manager::Get()->GetEditorManager() && event.GetEditor() == Manager::Get()->GetEditorManager()->GetActiveEditor())
+-        DoUpdateStatusBar();
++        CallAfter(&MainFrame::DoUpdateStatusBar);
+ 
+     event.Skip();
+ }


More information about the arch-commits mailing list