File deprecated_proj.patch of Package qgis2
--- qgis2-2.18.32/src/core/qgscoordinatereferencesystem.cpp 2021-07-01 13:39:01.000000000 +0200
+++ qgis2-2.18.32-new/src/core/qgscoordinatereferencesystem.cpp 2021-08-29 20:52:55.000000000 +0200
@@ -38,6 +38,7 @@
#include "qgslocalec.h"
#include <sqlite3.h>
+#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#include <proj_api.h>
//gdal and ogr includes (needed for == operator)
--- qgis2-2.18.32/src/core/qgscoordinatetransform.cpp 2021-07-01 13:39:01.000000000 +0200
+++ qgis2-2.18.32-new/src/core/qgscoordinatetransform.cpp 2021-08-29 20:53:45.000000000 +0200
@@ -28,6 +28,8 @@
#include <QStringList>
#include <QVector>
+#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
+
extern "C"
{
#include <proj_api.h>
--- qgis2-2.18.32/tests/src/core/testqgscoordinatereferencesystem.cpp 2021-07-01 13:39:01.000000000 +0200
+++ qgis2-2.18.32-new/tests/src/core/testqgscoordinatereferencesystem.cpp 2021-08-29 21:33:35.000000000 +0200
@@ -23,6 +23,8 @@ Email : sherman at mrcc d
#include <qgis.h>
#include <qgsvectorlayer.h>
+#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
+
#include <proj_api.h>
#include <gdal.h>
#include <cpl_conv.h>
--- qgis2-2.18.32/src/app/qgisapp.cpp 2021-07-01 13:39:01.000000000 +0200
+++ qgis2-2.18.32-new/src/app/qgisapp.cpp 2021-08-29 22:55:44.000000000 +0200
@@ -261,6 +261,7 @@
//
#include <ogr_api.h>
#include <gdal_version.h>
+#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#include <proj_api.h>
#if defined(GDAL_COMPUTE_VERSION) && GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(1,11,0)
--- qgis2-2.18.32/src/app/qgscustomprojectiondialog.cpp 2021-07-01 13:39:01.000000000 +0200
+++ qgis2-2.18.32-new/src/app/qgscustomprojectiondialog.cpp 2021-08-30 08:35:13.778347360 +0200
@@ -37,6 +37,7 @@
#include <sqlite3.h>
//proj4 includes
+#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
extern "C"
{
#include <proj_api.h>