graphics/qgis-ltr: Update to 3.40.6

Changelog: https://github.com/qgis/QGIS/compare/final-3_40_5%5E...final-3_40_6

Reported by:	Repology
MFH:		2025Q2

(cherry picked from commit 7016705317)
This commit is contained in:
Rainer Hurling 2025-04-20 12:03:57 +02:00
parent cad3a3dd23
commit 026ab14c93
3 changed files with 28 additions and 4 deletions

View file

@ -1,5 +1,5 @@
PORTNAME= qgis
DISTVERSION= 3.40.5
DISTVERSION= 3.40.6
CATEGORIES= graphics geography
MASTER_SITES= https://qgis.org/downloads/
PKGNAMESUFFIX= -ltr

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1742723541
SHA256 (qgis-3.40.5.tar.bz2) = 4a71ffb6374656e130f2c22e5e5e0d7302eb97659a7a34dcbf8ccf156edaa60e
SIZE (qgis-3.40.5.tar.bz2) = 182472461
TIMESTAMP = 1745126800
SHA256 (qgis-3.40.6.tar.bz2) = dd68d39a2a29326031195bed2125e8b0fa7112fe9ee74d5f9850d06b02cef6a8
SIZE (qgis-3.40.6.tar.bz2) = 182776341

View file

@ -0,0 +1,24 @@
--- src/server/qgsfcgiserverresponse.cpp.orig 2025-04-18 12:00:43 UTC
+++ src/server/qgsfcgiserverresponse.cpp
@@ -31,6 +31,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <chrono>
+#include <pthread_np.h>
//
// QgsFCGXStreamData copied from libfcgi FCGX_Stream_Data
@@ -114,7 +115,12 @@ void QgsSocketMonitoringThread::run()
}
#if defined( Q_OS_UNIX ) && !defined( Q_OS_ANDROID )
- const pid_t threadId = gettid();
+ // https://github.com/qgis/QGIS/commit/6ecc1c31c95894199b88b56f8023e74807743957
+ #if !defined (__FreeBSD__)
+ const pid_t threadId = gettid();
+ #else
+ const pid_t threadId = pthread_getthreadid_np();
+ #endif
char c;