Skip to content

Instantly share code, notes, and snippets.

@mvexel
Created May 5, 2016 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvexel/d127bcc2290a434f6449379051f3a9d6 to your computer and use it in GitHub Desktop.
Save mvexel/d127bcc2290a434f6449379051f3a9d6 to your computer and use it in GitHub Desktop.
qgis-patch-error.txt
patching file src/server/qgswfsserver.cpp
can't find file to patch at input line 307
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--
|2.6.4
|
|From 69faab9b8b9361e0e1fcea8390fc8a11fc2c24ca Mon Sep 17 00:00:00 2001
|From: Even Rouault <even.rouault@spatialys.com>
|Date: Fri, 8 Apr 2016 19:19:49 +0200
|Subject: [PATCH] Fix thread-unsafe initialization of
| QgsExpression::Functions()
|
|The method initializes the gmFunctions static member, without any mutex protection.
|This turned out to cause random crashes in the tests of the WFS provider since the downloader
|thread may evaluate an expression, in parallel of the main thread, which does the same.
|This was mainly seen on Mac Travis (2 crashes + 1 failures, over 50 iterations), when
|parallelizing tests so as to get particular scheduling :
|https://travis-ci.org/rouault/Quantum-GIS/builds/121720556.
|But I could finally reproduce it systematically on my Linux box when inserting the following sleep.
|
|diff --git a/src/providers/wfs/qgswfsshareddata.cpp b/src/providers/wfs/qgswfsshareddata.cpp
|index adc7042..e9e4577 100644
|--- a/src/providers/wfs/qgswfsshareddata.cpp
|+++ b/src/providers/wfs/qgswfsshareddata.cpp
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
patching file src/core/qgsexpression.cpp
patching file python/core/conversions.sip
Error: Failure while executing: /usr/bin/patch -g 0 -f -p1 -i /private/tmp/qgis-28--patch-20160505-51015-nlfqib/qgis-2.8.8-patch.diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment