Debian Codegraph @

debian/patches/1003_no-signon-plugins-deps-via-pkgconf.patch

raw symbols SCIP
1 Descriptionscip-debian debian buteo-sync-plugin-caldav 0.4.8-1 buteo-sync-plugin-caldav/patches/`1003_no-signon-plugins-deps-via-pkgconf.patch`#Description.: Allow building against Qt5 with sigon-oauth2plugin having been built against Qt6.
2 Authorscip-debian debian buteo-sync-plugin-caldav 0.4.8-1 buteo-sync-plugin-caldav/patches/`1003_no-signon-plugins-deps-via-pkgconf.patch`#Author.: Mike Gabriel <[email protected]scip-debian . . . identity/`[email protected]`.>
3 Abstractscip-debian debian buteo-sync-plugin-caldav 0.4.8-1 buteo-sync-plugin-caldav/patches/`1003_no-signon-plugins-deps-via-pkgconf.patch`#Abstract.:
4 After some investigation of the signond stack, it was discovered that
5 the .pc file of signon-oauth2plugin causes Qt6 libraries being pulled
6 into the build of Qt5 buteo-sync-plugin-caldav unnecessarily.
7 .
8 The <signon-plugins/oauth2data.h> file contains no Qt-specific code and
9 does neither include from other Qt'ish headers. So it can be used
10 anywhere. On the other hand, the signon-oauth2plugin.pc file requires
11 signon-plugins.pc which in turn requires libsignon-qt{5,6}.pc. This
12 Would causes unnecessary linking against Qt5+Qt6 if signond is built
13 against Qt6. However, this project is Qt5-only for now, so the
14 Qt6-pull-in needs to be avoided at all means.
15 .
16 The solution is presented below...
17 Forwardedscip-debian debian buteo-sync-plugin-caldav 0.4.8-1 buteo-sync-plugin-caldav/patches/`1003_no-signon-plugins-deps-via-pkgconf.patch`#Forwarded.: https://github.com/sailfishos/buteo-sync-plugin-caldav/pull/29
18
19 --- a/src/src.priscip-debian debian buteo-sync-plugin-caldav 0.4.8-1 buteo-sync-plugin-caldav/upstream/`src/src.pri`:
20 +++ b/src/src.priscip-debian debian buteo-sync-plugin-caldav 0.4.8-1 buteo-sync-plugin-caldav/upstream/`src/src.pri`:
21 @@ -4,7 +4,16 @@
22 CONFIG += link_pkgconfig console
23
24 PKGCONFIG += buteosyncfw5 libsignon-qt5 accounts-qt5
25 -PKGCONFIG += signon-oauth2plugin KF5CalendarCore libmkcal-qt5
26 +PKGCONFIG += KF5CalendarCore libmkcal-qt5
27 +
28 +# We only need one include file from signon-oauth2plugin... No need
29 +# to parse the .pc file. The challenge is to build this package against Qt5
30 +# whereas signond and signon-plugins + signon-oauth2plugin has already been
31 +# build via Qt6 e.g. in Debian
32 +#
33 +# We have to make sure that the include file gets found!!! But the rest from
34 +# the .pc file can be ignored.
35 +#PKGCONFIG += signon-oauth2plugin
36
37 packagesExist(libsailfishkeyprovider) {
38 PKGCONFIG += libsailfishkeyprovider
39 --- a/src/authhandler.cppscip-debian debian buteo-sync-plugin-caldav 0.4.8-1 buteo-sync-plugin-caldav/upstream/`src/authhandler.cpp`:
40 +++ b/src/authhandler.cppscip-debian debian buteo-sync-plugin-caldav 0.4.8-1 buteo-sync-plugin-caldav/upstream/`src/authhandler.cpp`:
41 @@ -35,7 +35,7 @@
42 #include <Accounts/AccountService>
43 #include <SignOn/SessionData>
44
45 -#include <oauth2data.h>
46 +#include <signon-plugins/oauth2data.h>
47
48 #include <ProfileEngineDefs.h>
49 #include "logging.h"